(function (_, kotlin_com_github_UstadMobile_door_door_runtime, kotlin_kotlin, kotlin_app_cash_paging_paging_common, kotlin_io_ktor_ktor_client_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_io_ktor_ktor_http, kotlin_io_github_aakira_napier) { 'use strict'; //region block: imports var imul = Math.imul; var RoomDatabase = kotlin_com_github_UstadMobile_door_door_runtime.$_$.a2; var protoOf = kotlin_kotlin.$_$.ed; var classMeta = kotlin_kotlin.$_$.qb; var setMetadataFor = kotlin_kotlin.$_$.fd; var VOID = kotlin_kotlin.$_$.f; var DoorJsImplClasses = kotlin_com_github_UstadMobile_door_door_runtime.$_$.c2; var getKClass = kotlin_kotlin.$_$.e; var objectMeta = kotlin_kotlin.$_$.dd; var listOf = kotlin_kotlin.$_$.o8; var ReplicationFieldMetaData = kotlin_com_github_UstadMobile_door_door_runtime.$_$.x1; var listOf_0 = kotlin_kotlin.$_$.p8; var RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.r2; var Order_INSTEAD_OF_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.w2; var Event_INSERT_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.s2; var On_RECEIVEVIEW_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.u2; var Trigger = kotlin_com_github_UstadMobile_door_door_runtime.$_$.a; var ReplicationEntityMetaData = kotlin_com_github_UstadMobile_door_door_runtime.$_$.w1; var to = kotlin_kotlin.$_$.yj; var Order_AFTER_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.v2; var On_ENTITY_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.t2; var mapOf = kotlin_kotlin.$_$.s8; var DoorDatabaseMetadata = kotlin_com_github_UstadMobile_door_door_runtime.$_$.d; var LazyThreadSafetyMode_NONE_getInstance = kotlin_kotlin.$_$.h; var lazy = kotlin_kotlin.$_$.pj; var KProperty1 = kotlin_kotlin.$_$.fe; var getPropertyCallableRef = kotlin_kotlin.$_$.ac; var lazy_0 = kotlin_kotlin.$_$.qj; var NodeEventManagerJs = kotlin_com_github_UstadMobile_door_door_runtime.$_$.n1; var DoorDatabaseWrapper = kotlin_com_github_UstadMobile_door_door_runtime.$_$.j2; var get_rootDatabase = kotlin_com_github_UstadMobile_door_door_runtime.$_$.q; var get_nodeIdAuthCache = kotlin_com_github_UstadMobile_door_door_runtime.$_$.o; var NodeIdAuthCache = kotlin_com_github_UstadMobile_door_door_runtime.$_$.d2; var equals = kotlin_kotlin.$_$.ub; var doorDatabaseMetadata = kotlin_com_github_UstadMobile_door_door_runtime.$_$.h; var DoorPrimaryKeyManager = kotlin_com_github_UstadMobile_door_door_runtime.$_$.k2; var getKClassFromExpression = kotlin_kotlin.$_$.d; var copyToArray = kotlin_kotlin.$_$.i7; var InvalidationTracker = kotlin_com_github_UstadMobile_door_door_runtime.$_$.y1; var RoomDatabaseJdbcImplHelper = kotlin_com_github_UstadMobile_door_door_runtime.$_$.z1; var mutableLinkedListOf = kotlin_com_github_UstadMobile_door_door_runtime.$_$.n; var Unit_instance = kotlin_kotlin.$_$.m5; var DoorDatabaseJdbc = kotlin_com_github_UstadMobile_door_door_runtime.$_$.h2; var RoomJdbcImpl = kotlin_com_github_UstadMobile_door_door_runtime.$_$.b2; var RepositoryHelper = kotlin_com_github_UstadMobile_door_door_runtime.$_$.o2; var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2; var DoorDatabaseRepository = kotlin_com_github_UstadMobile_door_door_runtime.$_$.i2; var EntityInsertionAdapter = kotlin_com_github_UstadMobile_door_door_runtime.$_$.m2; var THROW_CCE = kotlin_kotlin.$_$.si; var CoroutineImpl = kotlin_kotlin.$_$.ab; var get_doorPrimaryKeyManager = kotlin_com_github_UstadMobile_door_door_runtime.$_$.l; var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m; var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ma; var Long = kotlin_kotlin.$_$.li; var systemTimeInMillis = kotlin_com_github_UstadMobile_door_door_runtime.$_$.f2; var mapNextRow = kotlin_com_github_UstadMobile_door_door_runtime.$_$.d1; var PreparedStatement = kotlin_com_github_UstadMobile_door_door_runtime.$_$.k1; var isInterface = kotlin_kotlin.$_$.mc; var executeQueryAsyncKmp = kotlin_com_github_UstadMobile_door_door_runtime.$_$.a3; var useResults = kotlin_com_github_UstadMobile_door_door_runtime.$_$.j1; var mapRows = kotlin_com_github_UstadMobile_door_door_runtime.$_$.e1; var getFloatNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.y; var PreparedStatementConfig = kotlin_com_github_UstadMobile_door_door_runtime.$_$.n2; var prepareAndUseStatementAsync = kotlin_com_github_UstadMobile_door_door_runtime.$_$.x2; var DoorLimitOffsetPagingSource = kotlin_com_github_UstadMobile_door_door_runtime.$_$.p1; var createArrayOrProxyArrayOf = kotlin_com_github_UstadMobile_door_door_runtime.$_$.e; var executeUpdateAsyncKmp = kotlin_com_github_UstadMobile_door_door_runtime.$_$.b3; var doorFlow = kotlin_com_github_UstadMobile_door_door_runtime.$_$.v; var LoadParams = kotlin_app_cash_paging_paging_common.$_$.d; var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.j; var setRepoUrl = kotlin_com_github_UstadMobile_door_door_runtime.$_$.s; var doorNodeIdHeader = kotlin_com_github_UstadMobile_door_door_runtime.$_$.j; var header = kotlin_io_ktor_ktor_client_core.$_$.l; var Companion_getInstance = kotlin_kotlin.$_$.g5; var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l1; var parameter = kotlin_io_ktor_ktor_client_core.$_$.m; var StringCompanionObject_instance = kotlin_kotlin.$_$.a5; var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d1; var IntCompanionObject_instance = kotlin_kotlin.$_$.y4; var serializer_1 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h1; var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c1; var pagingSourceLoadParameters = kotlin_com_github_UstadMobile_door_door_runtime.$_$.p; var Companion_getInstance_0 = kotlin_io_ktor_ktor_http.$_$.g; var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.q; var onClientRepoDoorMessageHttpResponse = kotlin_com_github_UstadMobile_door_door_runtime.$_$.d3; var endOfPaginationReached = kotlin_com_github_UstadMobile_door_door_runtime.$_$.v1; var Napier_getInstance = kotlin_io_github_aakira_napier.$_$.g; var Companion_instance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.f3; var Exception = kotlin_kotlin.$_$.hi; var withRepoChangeMonitorAsync = kotlin_com_github_UstadMobile_door_door_runtime.$_$.e3; var RepoDaoFlowHelper = kotlin_com_github_UstadMobile_door_door_runtime.$_$.w; var DoorRepositoryReplicatePullPagingSource = kotlin_com_github_UstadMobile_door_door_runtime.$_$.s1; var prepareAndUseStatementAsync_0 = kotlin_com_github_UstadMobile_door_door_runtime.$_$.y2; var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z; var bodyAsText = kotlin_io_ktor_ktor_client_core.$_$.a; var BooleanCompanionObject_instance = kotlin_kotlin.$_$.u4; var serializer_2 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k1; var getIntNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.z; var getBooleanNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.x; var setFloatNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.g1; var mapNextRow_0 = kotlin_com_github_UstadMobile_door_door_runtime.$_$.c1; var OutgoingReplication = kotlin_com_github_UstadMobile_door_door_runtime.$_$.c; var serializer_3 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f1; var getStringNonNull = kotlin_com_github_UstadMobile_door_door_runtime.$_$.b1; var SyncNode = kotlin_com_github_UstadMobile_door_door_runtime.$_$.q2; var setLongNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.i1; var getLongNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.a1; var setBooleanNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.f1; var setIntNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.h1; var emptyList = kotlin_kotlin.$_$.n7; var DoorMigrationStatementList = kotlin_com_github_UstadMobile_door_door_runtime.$_$.m1; var dbType = kotlin_com_github_UstadMobile_door_door_runtime.$_$.g; var Companion_getInstance_1 = kotlin_com_github_UstadMobile_door_door_runtime.$_$.h3; var numberRangeToNumber = kotlin_kotlin.$_$.vc; var Pair = kotlin_kotlin.$_$.pi; var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x2; var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s; var LongSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x; var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g; var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s2; var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t2; var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c3; var objectCreate = kotlin_kotlin.$_$.cd; var getBooleanHashCode = kotlin_kotlin.$_$.xb; var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y; var getStringHashCode = kotlin_kotlin.$_$.bc; var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w; var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v; var getNumberHashCode = kotlin_kotlin.$_$.zb; var hashCode = kotlin_kotlin.$_$.cc; var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q2; var DoubleSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u; var enumEntries = kotlin_kotlin.$_$.eb; var Enum = kotlin_kotlin.$_$.fi; var throwArrayMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b3; var ensureNotNull = kotlin_kotlin.$_$.kj; var ByteSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t; var toString = kotlin_kotlin.$_$.xj; var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.f1; var SyncNodeIdCallback = kotlin_com_github_UstadMobile_door_door_runtime.$_$.p2; //endregion //region block: pre-declaration setMetadataFor(UmAppDatabase, 'UmAppDatabase', classMeta, RoomDatabase, VOID, VOID, VOID, VOID, [0, 1]); setMetadataFor(UmAppDatabaseJsImplementations, 'UmAppDatabaseJsImplementations', objectMeta, DoorJsImplClasses); setMetadataFor(UmAppDatabase_DoorMetadata, 'UmAppDatabase_DoorMetadata', classMeta, DoorDatabaseMetadata, VOID, UmAppDatabase_DoorMetadata); setMetadataFor(UmAppDatabase_DoorWrapper, 'UmAppDatabase_DoorWrapper', classMeta, UmAppDatabase, [UmAppDatabase, DoorDatabaseWrapper], VOID, VOID, VOID, [0, 1]); setMetadataFor(UmAppDatabase_JdbcImpl, 'UmAppDatabase_JdbcImpl', classMeta, UmAppDatabase, [UmAppDatabase, DoorDatabaseJdbc, RoomJdbcImpl], VOID, VOID, VOID, [0, 1]); setMetadataFor(Companion, 'Companion', objectMeta); setMetadataFor(UmAppDatabase_Repo, 'UmAppDatabase_Repo', classMeta, UmAppDatabase, [UmAppDatabase, DoorDatabaseRepository], VOID, VOID, VOID, [0, 1]); setMetadataFor(CacheLockJoinDao, 'CacheLockJoinDao', classMeta, VOID, VOID, VOID, VOID, VOID, [0, 3, 1, 2]); setMetadataFor(CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CacheLockJoinDao_JdbcImpl, 'CacheLockJoinDao_JdbcImpl', classMeta, CacheLockJoinDao, VOID, VOID, VOID, VOID, [1, 0, 3, 2]); setMetadataFor(ClazzAssignmentDao, 'ClazzAssignmentDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 4, 2]); setMetadataFor($upsertListAsyncCOROUTINE$1, '$upsertListAsyncCOROUTINE$1', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$2, '$insertAsyncCOROUTINE$2', classMeta, CoroutineImpl); setMetadataFor(ClazzAssignmentDao_DoorWrapper, 'ClazzAssignmentDao_DoorWrapper', classMeta, ClazzAssignmentDao, VOID, VOID, VOID, VOID, [1, 3, 4, 2]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda, 'ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda, 'ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda, 'ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda, 'ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda, 'ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda, 'ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda, 'ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda, 'ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda, 'ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda, 'ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda, 'ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda, 'ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda, 'ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$4, '$insertAsyncCOROUTINE$4', classMeta, CoroutineImpl); setMetadataFor($updateActiveByListCOROUTINE$7, '$updateActiveByListCOROUTINE$7', classMeta, CoroutineImpl); setMetadataFor(ClazzAssignmentDao_JdbcImpl, 'ClazzAssignmentDao_JdbcImpl', classMeta, ClazzAssignmentDao, VOID, VOID, VOID, VOID, [1, 3, 4, 2]); setMetadataFor(ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda, 'ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda, 'ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentDao_Repo$upsertListAsync$slambda, 'ClazzAssignmentDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentDao_Repo$updateActiveByList$slambda, 'ClazzAssignmentDao_Repo$updateActiveByList$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda, 'ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentDao_Repo$insertAsync$slambda, 'ClazzAssignmentDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($getSubmitterUidsByClazzOrGroupSetUidCOROUTINE$14, '$getSubmitterUidsByClazzOrGroupSetUidCOROUTINE$14', classMeta, CoroutineImpl); setMetadataFor($getSubmitterUidsAndNameByClazzOrGroupSetUidCOROUTINE$15, '$getSubmitterUidsAndNameByClazzOrGroupSetUidCOROUTINE$15', classMeta, CoroutineImpl); setMetadataFor($getSubmitterUidCOROUTINE$17, '$getSubmitterUidCOROUTINE$17', classMeta, CoroutineImpl); setMetadataFor($findByUidWithBlockAsyncCOROUTINE$22, '$findByUidWithBlockAsyncCOROUTINE$22', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$27, '$insertAsyncCOROUTINE$27', classMeta, CoroutineImpl); setMetadataFor(ClazzAssignmentDao_Repo, 'ClazzAssignmentDao_Repo', classMeta, ClazzAssignmentDao, VOID, VOID, VOID, VOID, [1, 3, 4, 2]); setMetadataFor(ClazzDao, 'ClazzDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor($insertAsyncCOROUTINE$28, '$insertAsyncCOROUTINE$28', classMeta, CoroutineImpl); setMetadataFor(ClazzDao_DoorWrapper, 'ClazzDao_DoorWrapper', classMeta, ClazzDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda, 'ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda, 'ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda, 'ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda, 'ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda, 'ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda, 'ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda, 'ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda, 'ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$updateAsync$slambda, 'ClazzDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$findByClazzCode$slambda, 'ClazzDao_JdbcImpl$findByClazzCode$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$findByUidAsync$slambda, 'ClazzDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$findByUidAsFlow$slambda, 'ClazzDao_JdbcImpl$findByUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda, 'ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$findClazzesWithPermission$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda, 'ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda, 'ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda, 'ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda, 'ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda, 'ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda, 'ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$29, '$insertAsyncCOROUTINE$29', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$30, '$updateAsyncCOROUTINE$30', classMeta, CoroutineImpl); setMetadataFor(ClazzDao_JdbcImpl, 'ClazzDao_JdbcImpl', classMeta, ClazzDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(ClazzDao_Repo$findByUidAsFlow$slambda, 'ClazzDao_Repo$findByUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_Repo$updateAsync$slambda, 'ClazzDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_Repo$findClazzesWithPermission$slambda, 'ClazzDao_Repo$findClazzesWithPermission$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda, 'ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_Repo$getClazzWithDisplayDetails$slambda, 'ClazzDao_Repo$getClazzWithDisplayDetails$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_Repo$getTitleByUidAsFlow$slambda, 'ClazzDao_Repo$getTitleByUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda, 'ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_Repo$getClazzNameAsFlow$slambda, 'ClazzDao_Repo$getClazzNameAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_Repo$insertAsync$slambda, 'ClazzDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($findByClazzCodeCOROUTINE$32, '$findByClazzCodeCOROUTINE$32', classMeta, CoroutineImpl); setMetadataFor($findByUidAsyncCOROUTINE$34, '$findByUidAsyncCOROUTINE$34', classMeta, CoroutineImpl); setMetadataFor($findByUidWithHolidayCalendarAsyncCOROUTINE$36, '$findByUidWithHolidayCalendarAsyncCOROUTINE$36', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$37, '$updateAsyncCOROUTINE$37', classMeta, CoroutineImpl); setMetadataFor($getClazzTimeZoneByClazzUidAsyncCOROUTINE$39, '$getClazzTimeZoneByClazzUidAsyncCOROUTINE$39', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$42, '$insertAsyncCOROUTINE$42', classMeta, CoroutineImpl); setMetadataFor(ClazzDao_Repo, 'ClazzDao_Repo', classMeta, ClazzDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(ClazzEnrolmentDao, 'ClazzEnrolmentDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 4, 9, 2, 10, 5]); setMetadataFor($insertAsyncCOROUTINE$43, '$insertAsyncCOROUTINE$43', classMeta, CoroutineImpl); setMetadataFor(ClazzEnrolmentDao_DoorWrapper, 'ClazzEnrolmentDao_DoorWrapper', classMeta, ClazzEnrolmentDao, VOID, VOID, VOID, VOID, [1, 3, 4, 9, 2, 10, 5]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda, 'ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda, 'ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda, 'ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda, 'ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda, 'ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda, 'ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda, 'ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda, 'ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda, 'ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda, 'ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda, 'ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda, 'ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$44, '$insertAsyncCOROUTINE$44', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$45, '$updateAsyncCOROUTINE$45', classMeta, CoroutineImpl); setMetadataFor(ClazzEnrolmentDao_JdbcImpl, 'ClazzEnrolmentDao_JdbcImpl', classMeta, ClazzEnrolmentDao, VOID, VOID, VOID, VOID, [1, 3, 4, 9, 2, 10, 5]); setMetadataFor(ClazzEnrolmentDao_Repo$updateAsync$slambda, 'ClazzEnrolmentDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda, 'ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda, 'ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_Repo$insertAsync$slambda, 'ClazzEnrolmentDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($findEnrolmentWithLeavingReasonCOROUTINE$47, '$findEnrolmentWithLeavingReasonCOROUTINE$47', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$48, '$updateAsyncCOROUTINE$48', classMeta, CoroutineImpl); setMetadataFor($getAllEnrolmentsAtTimeByClazzAndPersonCOROUTINE$51, '$getAllEnrolmentsAtTimeByClazzAndPersonCOROUTINE$51', classMeta, CoroutineImpl); setMetadataFor($getClazzNameAndPersonNameCOROUTINE$60, '$getClazzNameAndPersonNameCOROUTINE$60', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$62, '$insertAsyncCOROUTINE$62', classMeta, CoroutineImpl); setMetadataFor(ClazzEnrolmentDao_Repo, 'ClazzEnrolmentDao_Repo', classMeta, ClazzEnrolmentDao, VOID, VOID, VOID, VOID, [1, 3, 4, 9, 2, 10, 5]); setMetadataFor(ClazzLogAttendanceRecordDao, 'ClazzLogAttendanceRecordDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor($upsertListAsyncCOROUTINE$64, '$upsertListAsyncCOROUTINE$64', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$65, '$insertAsyncCOROUTINE$65', classMeta, CoroutineImpl); setMetadataFor(ClazzLogAttendanceRecordDao_DoorWrapper, 'ClazzLogAttendanceRecordDao_DoorWrapper', classMeta, ClazzLogAttendanceRecordDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda, 'ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$66, '$insertAsyncCOROUTINE$66', classMeta, CoroutineImpl); setMetadataFor(ClazzLogAttendanceRecordDao_JdbcImpl, 'ClazzLogAttendanceRecordDao_JdbcImpl', classMeta, ClazzLogAttendanceRecordDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda, 'ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda, 'ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($findByClazzAndTimeCOROUTINE$68, '$findByClazzAndTimeCOROUTINE$68', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$69, '$insertAsyncCOROUTINE$69', classMeta, CoroutineImpl); setMetadataFor(ClazzLogAttendanceRecordDao_Repo, 'ClazzLogAttendanceRecordDao_Repo', classMeta, ClazzLogAttendanceRecordDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(ClazzLogDao, 'ClazzLogDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 5]); setMetadataFor($upsertListAsyncCOROUTINE$70, '$upsertListAsyncCOROUTINE$70', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$71, '$insertAsyncCOROUTINE$71', classMeta, CoroutineImpl); setMetadataFor(ClazzLogDao_DoorWrapper, 'ClazzLogDao_DoorWrapper', classMeta, ClazzLogDao, VOID, VOID, VOID, VOID, [1, 2, 5]); setMetadataFor(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda, 'ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda, 'ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda, 'ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda, 'ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda, 'ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda, 'ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$72, '$insertAsyncCOROUTINE$72', classMeta, CoroutineImpl); setMetadataFor(ClazzLogDao_JdbcImpl, 'ClazzLogDao_JdbcImpl', classMeta, ClazzLogDao, VOID, VOID, VOID, VOID, [1, 2, 5]); setMetadataFor(ClazzLogDao_Repo$findByClazzUidAsFactory$slambda, 'ClazzLogDao_Repo$findByClazzUidAsFactory$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogDao_Repo$upsertListAsync$slambda, 'ClazzLogDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzLogDao_Repo$insertAsync$slambda, 'ClazzLogDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($findByClazzUidAsyncCOROUTINE$75, '$findByClazzUidAsyncCOROUTINE$75', classMeta, CoroutineImpl); setMetadataFor($findMostRecentClazzLogToEditUidCOROUTINE$78, '$findMostRecentClazzLogToEditUidCOROUTINE$78', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$79, '$insertAsyncCOROUTINE$79', classMeta, CoroutineImpl); setMetadataFor(ClazzLogDao_Repo, 'ClazzLogDao_Repo', classMeta, ClazzLogDao, VOID, VOID, VOID, VOID, [1, 2, 5]); setMetadataFor(CommentsDao, 'CommentsDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor($insertAsyncCOROUTINE$80, '$insertAsyncCOROUTINE$80', classMeta, CoroutineImpl); setMetadataFor(CommentsDao_DoorWrapper, 'CommentsDao_DoorWrapper', classMeta, CommentsDao, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda, 'CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda, 'CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda, 'CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda, 'CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda, 'CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda, 'CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CommentsDao_JdbcImpl$_insertAdapterComments_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda, 'CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor($insertAsyncCOROUTINE$81, '$insertAsyncCOROUTINE$81', classMeta, CoroutineImpl); setMetadataFor($updateDeletedByCommentUidCOROUTINE$82, '$updateDeletedByCommentUidCOROUTINE$82', classMeta, CoroutineImpl); setMetadataFor(CommentsDao_JdbcImpl, 'CommentsDao_JdbcImpl', classMeta, CommentsDao, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(CommentsDao_Repo$insertAsync$slambda, 'CommentsDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CommentsDao_Repo$updateDeletedByCommentUid$slambda, 'CommentsDao_Repo$updateDeletedByCommentUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda, 'CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda, 'CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda, 'CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$83, '$insertAsyncCOROUTINE$83', classMeta, CoroutineImpl); setMetadataFor(CommentsDao_Repo, 'CommentsDao_Repo', classMeta, CommentsDao, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(ContentCategoryDao, 'ContentCategoryDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$86, '$insertAsyncCOROUTINE$86', classMeta, CoroutineImpl); setMetadataFor(ContentCategoryDao_DoorWrapper, 'ContentCategoryDao_DoorWrapper', classMeta, ContentCategoryDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$87, '$insertAsyncCOROUTINE$87', classMeta, CoroutineImpl); setMetadataFor(ContentCategoryDao_JdbcImpl, 'ContentCategoryDao_JdbcImpl', classMeta, ContentCategoryDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentCategoryDao_Repo$insertAsync$slambda, 'ContentCategoryDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$88, '$insertAsyncCOROUTINE$88', classMeta, CoroutineImpl); setMetadataFor(ContentCategoryDao_Repo, 'ContentCategoryDao_Repo', classMeta, ContentCategoryDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentCategorySchemaDao, 'ContentCategorySchemaDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$89, '$insertAsyncCOROUTINE$89', classMeta, CoroutineImpl); setMetadataFor(ContentCategorySchemaDao_DoorWrapper, 'ContentCategorySchemaDao_DoorWrapper', classMeta, ContentCategorySchemaDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$90, '$insertAsyncCOROUTINE$90', classMeta, CoroutineImpl); setMetadataFor(ContentCategorySchemaDao_JdbcImpl, 'ContentCategorySchemaDao_JdbcImpl', classMeta, ContentCategorySchemaDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentCategorySchemaDao_Repo$insertAsync$slambda, 'ContentCategorySchemaDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$91, '$insertAsyncCOROUTINE$91', classMeta, CoroutineImpl); setMetadataFor(ContentCategorySchemaDao_Repo, 'ContentCategorySchemaDao_Repo', classMeta, ContentCategorySchemaDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryContentCategoryJoinDao, 'ContentEntryContentCategoryJoinDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$92, '$insertAsyncCOROUTINE$92', classMeta, CoroutineImpl); setMetadataFor(ContentEntryContentCategoryJoinDao_DoorWrapper, 'ContentEntryContentCategoryJoinDao_DoorWrapper', classMeta, ContentEntryContentCategoryJoinDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$93, '$insertAsyncCOROUTINE$93', classMeta, CoroutineImpl); setMetadataFor(ContentEntryContentCategoryJoinDao_JdbcImpl, 'ContentEntryContentCategoryJoinDao_JdbcImpl', classMeta, ContentEntryContentCategoryJoinDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda, 'ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$94, '$insertAsyncCOROUTINE$94', classMeta, CoroutineImpl); setMetadataFor(ContentEntryContentCategoryJoinDao_Repo, 'ContentEntryContentCategoryJoinDao_Repo', classMeta, ContentEntryContentCategoryJoinDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao, 'ContentEntryDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($upsertAsyncCOROUTINE$96, '$upsertAsyncCOROUTINE$96', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$97, '$insertAsyncCOROUTINE$97', classMeta, CoroutineImpl); setMetadataFor(ContentEntryDao_DoorWrapper, 'ContentEntryDao_DoorWrapper', classMeta, ContentEntryDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda, 'ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda, 'ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda, 'ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda, 'ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda, 'ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda, 'ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda, 'ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda, 'ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$findByUidAsync$slambda, 'ContentEntryDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda, 'ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda, 'ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda, 'ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(ContentEntryDao_JdbcImpl$getContentFromMyCourses$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(ContentEntryDao_JdbcImpl$getContentByOwner$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda, 'ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$98, '$insertAsyncCOROUTINE$98', classMeta, CoroutineImpl); setMetadataFor(ContentEntryDao_JdbcImpl, 'ContentEntryDao_JdbcImpl', classMeta, ContentEntryDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_Repo$upsertAsync$slambda, 'ContentEntryDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda, 'ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda, 'ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_Repo$insertAsync$slambda, 'ContentEntryDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($findByUidAsyncCOROUTINE$100, '$findByUidAsyncCOROUTINE$100', classMeta, CoroutineImpl); setMetadataFor($findByUidWithEditDetailsCOROUTINE$102, '$findByUidWithEditDetailsCOROUTINE$102', classMeta, CoroutineImpl); setMetadataFor($findTitleByUidAsyncCOROUTINE$103, '$findTitleByUidAsyncCOROUTINE$103', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$112, '$insertAsyncCOROUTINE$112', classMeta, CoroutineImpl); setMetadataFor(ContentEntryDao_Repo, 'ContentEntryDao_Repo', classMeta, ContentEntryDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryImportJobDao, 'ContentEntryImportJobDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda, 'ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda, 'ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryImportJobDao_JdbcImpl, 'ContentEntryImportJobDao_JdbcImpl', classMeta, ContentEntryImportJobDao, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(ContentEntryParentChildJoinDao, 'ContentEntryParentChildJoinDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 0, 3]); setMetadataFor($insertAsyncCOROUTINE$119, '$insertAsyncCOROUTINE$119', classMeta, CoroutineImpl); setMetadataFor(ContentEntryParentChildJoinDao_DoorWrapper, 'ContentEntryParentChildJoinDao_DoorWrapper', classMeta, ContentEntryParentChildJoinDao, VOID, VOID, VOID, VOID, [1, 0, 3]); setMetadataFor(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda, 'ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda, 'ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$120, '$insertAsyncCOROUTINE$120', classMeta, CoroutineImpl); setMetadataFor($moveListOfEntriesToNewParentCOROUTINE$121, '$moveListOfEntriesToNewParentCOROUTINE$121', classMeta, CoroutineImpl); setMetadataFor($setEntriesDeletedCOROUTINE$122, '$setEntriesDeletedCOROUTINE$122', classMeta, CoroutineImpl); setMetadataFor(ContentEntryParentChildJoinDao_JdbcImpl, 'ContentEntryParentChildJoinDao_JdbcImpl', classMeta, ContentEntryParentChildJoinDao, VOID, VOID, VOID, VOID, [1, 0, 3]); setMetadataFor(ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda, 'ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda, 'ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryParentChildJoinDao_Repo$insertAsync$slambda, 'ContentEntryParentChildJoinDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$126, '$insertAsyncCOROUTINE$126', classMeta, CoroutineImpl); setMetadataFor(ContentEntryParentChildJoinDao_Repo, 'ContentEntryParentChildJoinDao_Repo', classMeta, ContentEntryParentChildJoinDao, VOID, VOID, VOID, VOID, [1, 0, 3]); setMetadataFor(ContentEntryPicture2Dao, 'ContentEntryPicture2Dao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 4]); setMetadataFor(ContentEntryPicture2Dao_DoorWrapper, 'ContentEntryPicture2Dao_DoorWrapper', classMeta, ContentEntryPicture2Dao, VOID, VOID, VOID, VOID, [1, 4]); setMetadataFor(ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda, 'ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($updateUriCOROUTINE$127, '$updateUriCOROUTINE$127', classMeta, CoroutineImpl); setMetadataFor(ContentEntryPicture2Dao_JdbcImpl, 'ContentEntryPicture2Dao_JdbcImpl', classMeta, ContentEntryPicture2Dao, VOID, VOID, VOID, VOID, [1, 4]); setMetadataFor(ContentEntryPicture2Dao_Repo$upsertListAsync$slambda, 'ContentEntryPicture2Dao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryPicture2Dao_Repo$updateUri$slambda, 'ContentEntryPicture2Dao_Repo$updateUri$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryPicture2Dao_Repo, 'ContentEntryPicture2Dao_Repo', classMeta, ContentEntryPicture2Dao, VOID, VOID, VOID, VOID, [1, 4]); setMetadataFor(ContentEntryPictureDao, 'ContentEntryPictureDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$128, '$insertAsyncCOROUTINE$128', classMeta, CoroutineImpl); setMetadataFor(ContentEntryPictureDao_DoorWrapper, 'ContentEntryPictureDao_DoorWrapper', classMeta, ContentEntryPictureDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$129, '$insertAsyncCOROUTINE$129', classMeta, CoroutineImpl); setMetadataFor(ContentEntryPictureDao_JdbcImpl, 'ContentEntryPictureDao_JdbcImpl', classMeta, ContentEntryPictureDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryPictureDao_Repo$insertAsync$slambda, 'ContentEntryPictureDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$132, '$insertAsyncCOROUTINE$132', classMeta, CoroutineImpl); setMetadataFor(ContentEntryPictureDao_Repo, 'ContentEntryPictureDao_Repo', classMeta, ContentEntryPictureDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryRelatedEntryJoinDao, 'ContentEntryRelatedEntryJoinDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$133, '$insertAsyncCOROUTINE$133', classMeta, CoroutineImpl); setMetadataFor(ContentEntryRelatedEntryJoinDao_DoorWrapper, 'ContentEntryRelatedEntryJoinDao_DoorWrapper', classMeta, ContentEntryRelatedEntryJoinDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$134, '$insertAsyncCOROUTINE$134', classMeta, CoroutineImpl); setMetadataFor(ContentEntryRelatedEntryJoinDao_JdbcImpl, 'ContentEntryRelatedEntryJoinDao_JdbcImpl', classMeta, ContentEntryRelatedEntryJoinDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda, 'ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$136, '$insertAsyncCOROUTINE$136', classMeta, CoroutineImpl); setMetadataFor(ContentEntryRelatedEntryJoinDao_Repo, 'ContentEntryRelatedEntryJoinDao_Repo', classMeta, ContentEntryRelatedEntryJoinDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryVersionDao, 'ContentEntryVersionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 0]); setMetadataFor(ContentEntryVersionDao_DoorWrapper, 'ContentEntryVersionDao_DoorWrapper', classMeta, ContentEntryVersionDao, VOID, VOID, VOID, VOID, [1, 2, 0]); setMetadataFor(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda, 'ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda, 'ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda, 'ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda, 'ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda, 'ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($updateTransferJobItemEtagCOROUTINE$139, '$updateTransferJobItemEtagCOROUTINE$139', classMeta, CoroutineImpl); setMetadataFor(ContentEntryVersionDao_JdbcImpl, 'ContentEntryVersionDao_JdbcImpl', classMeta, ContentEntryVersionDao, VOID, VOID, VOID, VOID, [1, 2, 0]); setMetadataFor(ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda, 'ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda, 'ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($findByUidAsyncCOROUTINE$140, '$findByUidAsyncCOROUTINE$140', classMeta, CoroutineImpl); setMetadataFor($findLatestVersionUidByContentEntryUidEntityCOROUTINE$142, '$findLatestVersionUidByContentEntryUidEntityCOROUTINE$142', classMeta, CoroutineImpl); setMetadataFor(ContentEntryVersionDao_Repo, 'ContentEntryVersionDao_Repo', classMeta, ContentEntryVersionDao, VOID, VOID, VOID, VOID, [1, 2, 0]); setMetadataFor(CourseAssignmentMarkDao, 'CourseAssignmentMarkDao', classMeta, VOID, VOID, VOID, VOID, VOID, [2, 3, 1]); setMetadataFor($insertAsyncCOROUTINE$144, '$insertAsyncCOROUTINE$144', classMeta, CoroutineImpl); setMetadataFor(CourseAssignmentMarkDao_DoorWrapper, 'CourseAssignmentMarkDao_DoorWrapper', classMeta, CourseAssignmentMarkDao, VOID, VOID, VOID, VOID, [2, 3, 1]); setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda, 'CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda, 'CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda, 'CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda, 'CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$145, '$insertAsyncCOROUTINE$145', classMeta, CoroutineImpl); setMetadataFor(CourseAssignmentMarkDao_JdbcImpl, 'CourseAssignmentMarkDao_JdbcImpl', classMeta, CourseAssignmentMarkDao, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda, 'CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda, 'CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentMarkDao_Repo$insertAsync$slambda, 'CourseAssignmentMarkDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$148, '$insertAsyncCOROUTINE$148', classMeta, CoroutineImpl); setMetadataFor(CourseAssignmentMarkDao_Repo, 'CourseAssignmentMarkDao_Repo', classMeta, CourseAssignmentMarkDao, VOID, VOID, VOID, VOID, [2, 3, 1]); setMetadataFor(CourseAssignmentSubmissionDao, 'CourseAssignmentSubmissionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor($insertAsyncCOROUTINE$150, '$insertAsyncCOROUTINE$150', classMeta, CoroutineImpl); setMetadataFor(CourseAssignmentSubmissionDao_DoorWrapper, 'CourseAssignmentSubmissionDao_DoorWrapper', classMeta, CourseAssignmentSubmissionDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$151, '$insertAsyncCOROUTINE$151', classMeta, CoroutineImpl); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl, 'CourseAssignmentSubmissionDao_JdbcImpl', classMeta, CourseAssignmentSubmissionDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda, 'CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda, 'CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionDao_Repo$insertAsync$slambda, 'CourseAssignmentSubmissionDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($doesUserHaveSubmissionsCOROUTINE$153, '$doesUserHaveSubmissionsCOROUTINE$153', classMeta, CoroutineImpl); setMetadataFor($checkNoSubmissionsMadeAsyncCOROUTINE$157, '$checkNoSubmissionsMadeAsyncCOROUTINE$157', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$158, '$insertAsyncCOROUTINE$158', classMeta, CoroutineImpl); setMetadataFor(CourseAssignmentSubmissionDao_Repo, 'CourseAssignmentSubmissionDao_Repo', classMeta, CourseAssignmentSubmissionDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(CourseAssignmentSubmissionFileDao, 'CourseAssignmentSubmissionFileDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor($insertListAsyncCOROUTINE$159, '$insertListAsyncCOROUTINE$159', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$160, '$insertAsyncCOROUTINE$160', classMeta, CoroutineImpl); setMetadataFor(CourseAssignmentSubmissionFileDao_DoorWrapper, 'CourseAssignmentSubmissionFileDao_DoorWrapper', classMeta, CourseAssignmentSubmissionFileDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$161, '$insertAsyncCOROUTINE$161', classMeta, CoroutineImpl); setMetadataFor($updateUriCOROUTINE$162, '$updateUriCOROUTINE$162', classMeta, CoroutineImpl); setMetadataFor($setDeletedCOROUTINE$163, '$setDeletedCOROUTINE$163', classMeta, CoroutineImpl); setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl, 'CourseAssignmentSubmissionFileDao_JdbcImpl', classMeta, CourseAssignmentSubmissionFileDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda, 'CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda, 'CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda, 'CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda, 'CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda, 'CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda, 'CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$164, '$insertAsyncCOROUTINE$164', classMeta, CoroutineImpl); setMetadataFor(CourseAssignmentSubmissionFileDao_Repo, 'CourseAssignmentSubmissionFileDao_Repo', classMeta, CourseAssignmentSubmissionFileDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(CourseBlockDao, 'CourseBlockDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 3, 9]); setMetadataFor($upsertListAsyncCOROUTINE$166, '$upsertListAsyncCOROUTINE$166', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$167, '$insertAsyncCOROUTINE$167', classMeta, CoroutineImpl); setMetadataFor(CourseBlockDao_DoorWrapper, 'CourseBlockDao_DoorWrapper', classMeta, CourseBlockDao, VOID, VOID, VOID, VOID, [1, 2, 3, 9]); setMetadataFor(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda, 'CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda, 'CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda, 'CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda, 'CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda, 'CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda, 'CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda, 'CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_JdbcImpl$updateActiveByUid$slambda, 'CourseBlockDao_JdbcImpl$updateActiveByUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda, 'CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda, 'CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda, 'CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda, 'CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$169, '$insertAsyncCOROUTINE$169', classMeta, CoroutineImpl); setMetadataFor($updateActiveByUidCOROUTINE$171, '$updateActiveByUidCOROUTINE$171', classMeta, CoroutineImpl); setMetadataFor(CourseBlockDao_JdbcImpl, 'CourseBlockDao_JdbcImpl', classMeta, CourseBlockDao, VOID, VOID, VOID, VOID, [1, 2, 3, 9]); setMetadataFor(CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda, 'CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda, 'CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_Repo$updateActiveByUid$slambda, 'CourseBlockDao_Repo$updateActiveByUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_Repo$upsertListAsync$slambda, 'CourseBlockDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda, 'CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_Repo$findByClazzUidAsFlow$slambda, 'CourseBlockDao_Repo$findByClazzUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_Repo$insertAsync$slambda, 'CourseBlockDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($findAllCourseBlockByClazzUidAsyncCOROUTINE$176, '$findAllCourseBlockByClazzUidAsyncCOROUTINE$176', classMeta, CoroutineImpl); setMetadataFor($findCourseBlockAndClazzUidByDiscussionPostUidCOROUTINE$177, '$findCourseBlockAndClazzUidByDiscussionPostUidCOROUTINE$177', classMeta, CoroutineImpl); setMetadataFor($findClazzUidByCourseBlockUidCOROUTINE$179, '$findClazzUidByCourseBlockUidCOROUTINE$179', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$183, '$insertAsyncCOROUTINE$183', classMeta, CoroutineImpl); setMetadataFor(CourseBlockDao_Repo, 'CourseBlockDao_Repo', classMeta, CourseBlockDao, VOID, VOID, VOID, VOID, [1, 2, 3, 9]); setMetadataFor(CourseBlockPictureDao, 'CourseBlockPictureDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 4]); setMetadataFor(CourseBlockPictureDao_DoorWrapper, 'CourseBlockPictureDao_DoorWrapper', classMeta, CourseBlockPictureDao, VOID, VOID, VOID, VOID, [1, 4]); setMetadataFor(CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockPictureDao_JdbcImpl$updateUri$slambda, 'CourseBlockPictureDao_JdbcImpl$updateUri$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($updateUriCOROUTINE$184, '$updateUriCOROUTINE$184', classMeta, CoroutineImpl); setMetadataFor(CourseBlockPictureDao_JdbcImpl, 'CourseBlockPictureDao_JdbcImpl', classMeta, CourseBlockPictureDao, VOID, VOID, VOID, VOID, [1, 4]); setMetadataFor(CourseBlockPictureDao_Repo$upsertListAsync$slambda, 'CourseBlockPictureDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockPictureDao_Repo$updateUri$slambda, 'CourseBlockPictureDao_Repo$updateUri$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockPictureDao_Repo, 'CourseBlockPictureDao_Repo', classMeta, CourseBlockPictureDao, VOID, VOID, VOID, VOID, [1, 4]); setMetadataFor(CourseGroupMemberDao, 'CourseGroupMemberDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 5]); setMetadataFor($upsertListAsyncCOROUTINE$186, '$upsertListAsyncCOROUTINE$186', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$187, '$insertAsyncCOROUTINE$187', classMeta, CoroutineImpl); setMetadataFor(CourseGroupMemberDao_DoorWrapper, 'CourseGroupMemberDao_DoorWrapper', classMeta, CourseGroupMemberDao, VOID, VOID, VOID, VOID, [1, 2, 5]); setMetadataFor(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda, 'CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda, 'CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda, 'CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda, 'CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$188, '$insertAsyncCOROUTINE$188', classMeta, CoroutineImpl); setMetadataFor(CourseGroupMemberDao_JdbcImpl, 'CourseGroupMemberDao_JdbcImpl', classMeta, CourseGroupMemberDao, VOID, VOID, VOID, VOID, [1, 2, 5]); setMetadataFor(CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda, 'CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseGroupMemberDao_Repo$upsertListAsync$slambda, 'CourseGroupMemberDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseGroupMemberDao_Repo$insertAsync$slambda, 'CourseGroupMemberDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($findByCourseGroupSetAndClazzCOROUTINE$191, '$findByCourseGroupSetAndClazzCOROUTINE$191', classMeta, CoroutineImpl); setMetadataFor($findByCourseGroupSetAndGroupNumAsyncCOROUTINE$194, '$findByCourseGroupSetAndGroupNumAsyncCOROUTINE$194', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$195, '$insertAsyncCOROUTINE$195', classMeta, CoroutineImpl); setMetadataFor(CourseGroupMemberDao_Repo, 'CourseGroupMemberDao_Repo', classMeta, CourseGroupMemberDao, VOID, VOID, VOID, VOID, [1, 2, 5]); setMetadataFor(CourseGroupSetDao, 'CourseGroupSetDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($upsertAsyncCOROUTINE$196, '$upsertAsyncCOROUTINE$196', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$197, '$insertAsyncCOROUTINE$197', classMeta, CoroutineImpl); setMetadataFor(CourseGroupSetDao_DoorWrapper, 'CourseGroupSetDao_DoorWrapper', classMeta, CourseGroupSetDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda, 'CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda, 'CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda, 'CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda, 'CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda, 'CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$198, '$insertAsyncCOROUTINE$198', classMeta, CoroutineImpl); setMetadataFor(CourseGroupSetDao_JdbcImpl, 'CourseGroupSetDao_JdbcImpl', classMeta, CourseGroupSetDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda, 'CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDao_Repo$upsertAsync$slambda, 'CourseGroupSetDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseGroupSetDao_Repo$insertAsync$slambda, 'CourseGroupSetDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($findByUidAsyncCOROUTINE$202, '$findByUidAsyncCOROUTINE$202', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$203, '$insertAsyncCOROUTINE$203', classMeta, CoroutineImpl); setMetadataFor(CourseGroupSetDao_Repo, 'CourseGroupSetDao_Repo', classMeta, CourseGroupSetDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao, 'CoursePermissionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [2, 1, 3, 4]); setMetadataFor($upsertAsyncCOROUTINE$204, '$upsertAsyncCOROUTINE$204', classMeta, CoroutineImpl); setMetadataFor(CoursePermissionDao_DoorWrapper, 'CoursePermissionDao_DoorWrapper', classMeta, CoursePermissionDao, VOID, VOID, VOID, VOID, [2, 1, 3, 4]); setMetadataFor(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda, 'CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda, 'CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda, 'CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda, 'CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda, 'CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda, 'CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionDao_JdbcImpl$setDeleted$slambda, 'CoursePermissionDao_JdbcImpl$setDeleted$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda, 'CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda, 'CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($setDeletedCOROUTINE$205, '$setDeletedCOROUTINE$205', classMeta, CoroutineImpl); setMetadataFor(CoursePermissionDao_JdbcImpl, 'CoursePermissionDao_JdbcImpl', classMeta, CoursePermissionDao, VOID, VOID, VOID, VOID, [1, 2, 3, 4]); setMetadataFor(CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda, 'CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda, 'CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionDao_Repo$upsertAsync$slambda, 'CoursePermissionDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionDao_Repo$setDeleted$slambda, 'CoursePermissionDao_Repo$setDeleted$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda, 'CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda, 'CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda, 'CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda, 'CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($findByUidAndClazzUidCOROUTINE$206, '$findByUidAndClazzUidCOROUTINE$206', classMeta, CoroutineImpl); setMetadataFor($userHasEnrolmentEditPermissionCOROUTINE$208, '$userHasEnrolmentEditPermissionCOROUTINE$208', classMeta, CoroutineImpl); setMetadataFor($personHasPermissionWithClazzPairAsyncCOROUTINE$210, '$personHasPermissionWithClazzPairAsyncCOROUTINE$210', classMeta, CoroutineImpl); setMetadataFor($personHasPermissionWithClazzAsync2COROUTINE$211, '$personHasPermissionWithClazzAsync2COROUTINE$211', classMeta, CoroutineImpl); setMetadataFor(CoursePermissionDao_Repo, 'CoursePermissionDao_Repo', classMeta, CoursePermissionDao, VOID, VOID, VOID, VOID, [2, 1, 3, 4]); setMetadataFor(CoursePictureDao, 'CoursePictureDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 4]); setMetadataFor($upsertAsyncCOROUTINE$213, '$upsertAsyncCOROUTINE$213', classMeta, CoroutineImpl); setMetadataFor(CoursePictureDao_DoorWrapper, 'CoursePictureDao_DoorWrapper', classMeta, CoursePictureDao, VOID, VOID, VOID, VOID, [1, 4]); setMetadataFor(CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePictureDao_JdbcImpl$updateUri$slambda, 'CoursePictureDao_JdbcImpl$updateUri$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($updateUriCOROUTINE$214, '$updateUriCOROUTINE$214', classMeta, CoroutineImpl); setMetadataFor(CoursePictureDao_JdbcImpl, 'CoursePictureDao_JdbcImpl', classMeta, CoursePictureDao, VOID, VOID, VOID, VOID, [1, 4]); setMetadataFor(CoursePictureDao_Repo$upsertAsync$slambda, 'CoursePictureDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CoursePictureDao_Repo$updateUri$slambda, 'CoursePictureDao_Repo$updateUri$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CoursePictureDao_Repo, 'CoursePictureDao_Repo', classMeta, CoursePictureDao, VOID, VOID, VOID, VOID, [1, 4]); setMetadataFor(CourseTerminologyDao, 'CourseTerminologyDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($upsertAsyncCOROUTINE$215, '$upsertAsyncCOROUTINE$215', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$216, '$insertAsyncCOROUTINE$216', classMeta, CoroutineImpl); setMetadataFor(CourseTerminologyDao_DoorWrapper, 'CourseTerminologyDao_DoorWrapper', classMeta, CourseTerminologyDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda, 'CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda, 'CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda, 'CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda, 'CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda, 'CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($upsertAsyncCOROUTINE$217, '$upsertAsyncCOROUTINE$217', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$218, '$insertAsyncCOROUTINE$218', classMeta, CoroutineImpl); setMetadataFor(CourseTerminologyDao_JdbcImpl, 'CourseTerminologyDao_JdbcImpl', classMeta, CourseTerminologyDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda, 'CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyDao_Repo$upsertAsync$slambda, 'CourseTerminologyDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseTerminologyDao_Repo$insertAsync$slambda, 'CourseTerminologyDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($getTerminologyForClazzCOROUTINE$220, '$getTerminologyForClazzCOROUTINE$220', classMeta, CoroutineImpl); setMetadataFor($getTerminologyForAssignmentCOROUTINE$221, '$getTerminologyForAssignmentCOROUTINE$221', classMeta, CoroutineImpl); setMetadataFor($findByUidAsyncCOROUTINE$222, '$findByUidAsyncCOROUTINE$222', classMeta, CoroutineImpl); setMetadataFor($upsertAsyncCOROUTINE$224, '$upsertAsyncCOROUTINE$224', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$225, '$insertAsyncCOROUTINE$225', classMeta, CoroutineImpl); setMetadataFor(CourseTerminologyDao_Repo, 'CourseTerminologyDao_Repo', classMeta, CourseTerminologyDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DeletedItemDao, 'DeletedItemDao', classMeta, VOID, VOID, VOID, VOID, VOID, [3, 2]); setMetadataFor(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda, 'DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda, 'DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda, 'DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(DeletedItemDao_JdbcImpl$updateStatusByUids$slambda, 'DeletedItemDao_JdbcImpl$updateStatusByUids$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertDeletedItemForContentEntryParentChildJoinCOROUTINE$226, '$insertDeletedItemForContentEntryParentChildJoinCOROUTINE$226', classMeta, CoroutineImpl); setMetadataFor($updateStatusByUidsCOROUTINE$227, '$updateStatusByUidsCOROUTINE$227', classMeta, CoroutineImpl); setMetadataFor(DeletedItemDao_JdbcImpl, 'DeletedItemDao_JdbcImpl', classMeta, DeletedItemDao, VOID, VOID, VOID, VOID, [3, 2]); setMetadataFor(DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda, 'DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(DeletedItemDao_Repo$findDeletedItemsForUser$slambda, 'DeletedItemDao_Repo$findDeletedItemsForUser$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DeletedItemDao_Repo$updateStatusByUids$slambda, 'DeletedItemDao_Repo$updateStatusByUids$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(DeletedItemDao_Repo, 'DeletedItemDao_Repo', classMeta, DeletedItemDao, VOID, VOID, VOID, VOID, [3, 2]); setMetadataFor(DiscussionPostDao, 'DiscussionPostDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor($upsertAsyncCOROUTINE$229, '$upsertAsyncCOROUTINE$229', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$230, '$insertAsyncCOROUTINE$230', classMeta, CoroutineImpl); setMetadataFor(DiscussionPostDao_DoorWrapper, 'DiscussionPostDao_DoorWrapper', classMeta, DiscussionPostDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda, 'DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda, 'DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda, 'DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda, 'DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda, 'DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(DiscussionPostDao_JdbcImpl$findByUid$slambda, 'DiscussionPostDao_JdbcImpl$findByUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda, 'DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda, 'DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$231, '$insertAsyncCOROUTINE$231', classMeta, CoroutineImpl); setMetadataFor($setDeletedAsyncCOROUTINE$233, '$setDeletedAsyncCOROUTINE$233', classMeta, CoroutineImpl); setMetadataFor(DiscussionPostDao_JdbcImpl, 'DiscussionPostDao_JdbcImpl', classMeta, DiscussionPostDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda, 'DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda, 'DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_Repo$upsertAsync$slambda, 'DiscussionPostDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(DiscussionPostDao_Repo$setDeletedAsync$slambda, 'DiscussionPostDao_Repo$setDeletedAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(DiscussionPostDao_Repo$insertAsync$slambda, 'DiscussionPostDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($findByUidCOROUTINE$237, '$findByUidCOROUTINE$237', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$240, '$insertAsyncCOROUTINE$240', classMeta, CoroutineImpl); setMetadataFor(DiscussionPostDao_Repo, 'DiscussionPostDao_Repo', classMeta, DiscussionPostDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(EnrolmentRequestDao, 'EnrolmentRequestDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor($insertCOROUTINE$241, '$insertCOROUTINE$241', classMeta, CoroutineImpl); setMetadataFor(EnrolmentRequestDao_DoorWrapper, 'EnrolmentRequestDao_DoorWrapper', classMeta, EnrolmentRequestDao, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda, 'EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda, 'EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda, 'EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda, 'EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda, 'EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(EnrolmentRequestDao_JdbcImpl$updateStatus$slambda, 'EnrolmentRequestDao_JdbcImpl$updateStatus$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor($updateStatusCOROUTINE$242, '$updateStatusCOROUTINE$242', classMeta, CoroutineImpl); setMetadataFor(EnrolmentRequestDao_JdbcImpl, 'EnrolmentRequestDao_JdbcImpl', classMeta, EnrolmentRequestDao, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(EnrolmentRequestDao_Repo$insert$slambda, 'EnrolmentRequestDao_Repo$insert$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda, 'EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(EnrolmentRequestDao_Repo$updateStatus$slambda, 'EnrolmentRequestDao_Repo$updateStatus$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda, 'EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($hasPendingRequestsCOROUTINE$244, '$hasPendingRequestsCOROUTINE$244', classMeta, CoroutineImpl); setMetadataFor(EnrolmentRequestDao_Repo, 'EnrolmentRequestDao_Repo', classMeta, EnrolmentRequestDao, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(ErrorReportDao, 'ErrorReportDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ErrorReportDao_DoorWrapper, 'ErrorReportDao_DoorWrapper', classMeta, ErrorReportDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ErrorReportDao_JdbcImpl, 'ErrorReportDao_JdbcImpl', classMeta, ErrorReportDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ErrorReportDao_Repo, 'ErrorReportDao_Repo', classMeta, ErrorReportDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ExternalAppPermissionDao, 'ExternalAppPermissionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ExternalAppPermissionDao_JdbcImpl, 'ExternalAppPermissionDao_JdbcImpl', classMeta, ExternalAppPermissionDao, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(HolidayCalendarDao, 'HolidayCalendarDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$251, '$insertAsyncCOROUTINE$251', classMeta, CoroutineImpl); setMetadataFor(HolidayCalendarDao_DoorWrapper, 'HolidayCalendarDao_DoorWrapper', classMeta, HolidayCalendarDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$252, '$insertAsyncCOROUTINE$252', classMeta, CoroutineImpl); setMetadataFor(HolidayCalendarDao_JdbcImpl, 'HolidayCalendarDao_JdbcImpl', classMeta, HolidayCalendarDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(HolidayCalendarDao_Repo$insertAsync$slambda, 'HolidayCalendarDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$257, '$insertAsyncCOROUTINE$257', classMeta, CoroutineImpl); setMetadataFor(HolidayCalendarDao_Repo, 'HolidayCalendarDao_Repo', classMeta, HolidayCalendarDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(HolidayDao, 'HolidayDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$259, '$insertAsyncCOROUTINE$259', classMeta, CoroutineImpl); setMetadataFor(HolidayDao_DoorWrapper, 'HolidayDao_DoorWrapper', classMeta, HolidayDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$261, '$insertAsyncCOROUTINE$261', classMeta, CoroutineImpl); setMetadataFor(HolidayDao_JdbcImpl, 'HolidayDao_JdbcImpl', classMeta, HolidayDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(HolidayDao_Repo$insertAsync$slambda, 'HolidayDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$263, '$insertAsyncCOROUTINE$263', classMeta, CoroutineImpl); setMetadataFor(HolidayDao_Repo, 'HolidayDao_Repo', classMeta, HolidayDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LanguageDao, 'LanguageDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor($insertAsyncCOROUTINE$265, '$insertAsyncCOROUTINE$265', classMeta, CoroutineImpl); setMetadataFor(LanguageDao_DoorWrapper, 'LanguageDao_DoorWrapper', classMeta, LanguageDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$266, '$insertAsyncCOROUTINE$266', classMeta, CoroutineImpl); setMetadataFor(LanguageDao_JdbcImpl, 'LanguageDao_JdbcImpl', classMeta, LanguageDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(LanguageDao_Repo$insertAsync$slambda, 'LanguageDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$272, '$insertAsyncCOROUTINE$272', classMeta, CoroutineImpl); setMetadataFor(LanguageDao_Repo, 'LanguageDao_Repo', classMeta, LanguageDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(LanguageVariantDao, 'LanguageVariantDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$273, '$insertAsyncCOROUTINE$273', classMeta, CoroutineImpl); setMetadataFor(LanguageVariantDao_DoorWrapper, 'LanguageVariantDao_DoorWrapper', classMeta, LanguageVariantDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$274, '$insertAsyncCOROUTINE$274', classMeta, CoroutineImpl); setMetadataFor(LanguageVariantDao_JdbcImpl, 'LanguageVariantDao_JdbcImpl', classMeta, LanguageVariantDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LanguageVariantDao_Repo$insertAsync$slambda, 'LanguageVariantDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$275, '$insertAsyncCOROUTINE$275', classMeta, CoroutineImpl); setMetadataFor(LanguageVariantDao_Repo, 'LanguageVariantDao_Repo', classMeta, LanguageVariantDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LeavingReasonDao, 'LeavingReasonDao', classMeta, VOID, VOID, VOID, VOID, VOID, [0, 1]); setMetadataFor($insertAsyncCOROUTINE$277, '$insertAsyncCOROUTINE$277', classMeta, CoroutineImpl); setMetadataFor(LeavingReasonDao_DoorWrapper, 'LeavingReasonDao_DoorWrapper', classMeta, LeavingReasonDao, VOID, VOID, VOID, VOID, [0, 1]); setMetadataFor(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LeavingReasonDao_JdbcImpl$findByUidAsync$slambda, 'LeavingReasonDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$278, '$insertAsyncCOROUTINE$278', classMeta, CoroutineImpl); setMetadataFor(LeavingReasonDao_JdbcImpl, 'LeavingReasonDao_JdbcImpl', classMeta, LeavingReasonDao, VOID, VOID, VOID, VOID, [1, 0]); setMetadataFor(LeavingReasonDao_Repo$insertAsync$slambda, 'LeavingReasonDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($findByUidAsyncCOROUTINE$281, '$findByUidAsyncCOROUTINE$281', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$285, '$insertAsyncCOROUTINE$285', classMeta, CoroutineImpl); setMetadataFor(LeavingReasonDao_Repo, 'LeavingReasonDao_Repo', classMeta, LeavingReasonDao, VOID, VOID, VOID, VOID, [0, 1]); setMetadataFor(MessageDao, 'MessageDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertCOROUTINE$286, '$insertCOROUTINE$286', classMeta, CoroutineImpl); setMetadataFor(MessageDao_DoorWrapper, 'MessageDao_DoorWrapper', classMeta, MessageDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda, 'MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda, 'MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda, 'MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda, 'MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(MessageDao_JdbcImpl$_insertAdapterMessage_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(MessageDao_JdbcImpl, 'MessageDao_JdbcImpl', classMeta, MessageDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda, 'MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(MessageDao_Repo$conversationsForUserAsPagingSource$slambda, 'MessageDao_Repo$conversationsForUserAsPagingSource$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(MessageDao_Repo$insert$slambda, 'MessageDao_Repo$insert$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(MessageDao_Repo, 'MessageDao_Repo', classMeta, MessageDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(OfflineItemDao, 'OfflineItemDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(OfflineItemDao_DoorWrapper, 'OfflineItemDao_DoorWrapper', classMeta, OfflineItemDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda, 'OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda, 'OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(OfflineItemDao_JdbcImpl, 'OfflineItemDao_JdbcImpl', classMeta, OfflineItemDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(OfflineItemDao_Repo, 'OfflineItemDao_Repo', classMeta, OfflineItemDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(OutgoingReplicationDao, 'OutgoingReplicationDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 0]); setMetadataFor(OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(OutgoingReplicationDao_JdbcImpl, 'OutgoingReplicationDao_JdbcImpl', classMeta, OutgoingReplicationDao, VOID, VOID, VOID, VOID, [1, 0]); setMetadataFor(PeerReviewerAllocationDao, 'PeerReviewerAllocationDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor($upsertListCOROUTINE$292, '$upsertListCOROUTINE$292', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$293, '$insertAsyncCOROUTINE$293', classMeta, CoroutineImpl); setMetadataFor(PeerReviewerAllocationDao_DoorWrapper, 'PeerReviewerAllocationDao_DoorWrapper', classMeta, PeerReviewerAllocationDao, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda, 'PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda, 'PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$294, '$insertAsyncCOROUTINE$294', classMeta, CoroutineImpl); setMetadataFor($updateActiveByUidCOROUTINE$295, '$updateActiveByUidCOROUTINE$295', classMeta, CoroutineImpl); setMetadataFor(PeerReviewerAllocationDao_JdbcImpl, 'PeerReviewerAllocationDao_JdbcImpl', classMeta, PeerReviewerAllocationDao, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda, 'PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(PeerReviewerAllocationDao_Repo$upsertList$slambda, 'PeerReviewerAllocationDao_Repo$upsertList$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(PeerReviewerAllocationDao_Repo$insertAsync$slambda, 'PeerReviewerAllocationDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($getAllPeerReviewerAllocationsByClazzUidCOROUTINE$297, '$getAllPeerReviewerAllocationsByClazzUidCOROUTINE$297', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$298, '$insertAsyncCOROUTINE$298', classMeta, CoroutineImpl); setMetadataFor(PeerReviewerAllocationDao_Repo, 'PeerReviewerAllocationDao_Repo', classMeta, PeerReviewerAllocationDao, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(PersonAuth2Dao, 'PersonAuth2Dao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonAuth2Dao_DoorWrapper, 'PersonAuth2Dao_DoorWrapper', classMeta, PersonAuth2Dao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$299, '$insertAsyncCOROUTINE$299', classMeta, CoroutineImpl); setMetadataFor(PersonAuth2Dao_JdbcImpl, 'PersonAuth2Dao_JdbcImpl', classMeta, PersonAuth2Dao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonAuth2Dao_Repo$insertAsync$slambda, 'PersonAuth2Dao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$300, '$insertAsyncCOROUTINE$300', classMeta, CoroutineImpl); setMetadataFor(PersonAuth2Dao_Repo, 'PersonAuth2Dao_Repo', classMeta, PersonAuth2Dao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonAuthDao, 'PersonAuthDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$303, '$insertAsyncCOROUTINE$303', classMeta, CoroutineImpl); setMetadataFor(PersonAuthDao_JdbcImpl, 'PersonAuthDao_JdbcImpl', classMeta, PersonAuthDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(PersonDao, 'PersonDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor($insertAsyncCOROUTINE$309, '$insertAsyncCOROUTINE$309', classMeta, CoroutineImpl); setMetadataFor(PersonDao_DoorWrapper, 'PersonDao_DoorWrapper', classMeta, PersonDao, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda, 'PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda, 'PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda, 'PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda, 'PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$getNamesByUid$slambda$slambda, 'PersonDao_JdbcImpl$getNamesByUid$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$_insertAdapterPerson_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$updateAsync$slambda, 'PersonDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$countUsername$slambda, 'PersonDao_JdbcImpl$countUsername$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$findByUidWithPicture$slambda, 'PersonDao_JdbcImpl$findByUidWithPicture$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda, 'PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(PersonDao_JdbcImpl$findByUidAsync$slambda, 'PersonDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda, 'PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(PersonDao_JdbcImpl$getNamesByUid$slambda, 'PersonDao_JdbcImpl$getNamesByUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(PersonDao_JdbcImpl$getNamesByUidAsync$slambda, 'PersonDao_JdbcImpl$getNamesByUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$updateUsername$slambda, 'PersonDao_JdbcImpl$updateUsername$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$312, '$insertAsyncCOROUTINE$312', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$313, '$updateAsyncCOROUTINE$313', classMeta, CoroutineImpl); setMetadataFor(PersonDao_JdbcImpl, 'PersonDao_JdbcImpl', classMeta, PersonDao, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(PersonDao_Repo$updateAsync$slambda, 'PersonDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda, 'PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda, 'PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(PersonDao_Repo$getNamesByUid$slambda, 'PersonDao_Repo$getNamesByUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(PersonDao_Repo$updateUsername$slambda, 'PersonDao_Repo$updateUsername$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(PersonDao_Repo$insertAsync$slambda, 'PersonDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($countUsernameCOROUTINE$314, '$countUsernameCOROUTINE$314', classMeta, CoroutineImpl); setMetadataFor($findByUidWithPictureCOROUTINE$319, '$findByUidWithPictureCOROUTINE$319', classMeta, CoroutineImpl); setMetadataFor($findByUidAsyncCOROUTINE$320, '$findByUidAsyncCOROUTINE$320', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$321, '$updateAsyncCOROUTINE$321', classMeta, CoroutineImpl); setMetadataFor($getNamesByUidAsyncCOROUTINE$324, '$getNamesByUidAsyncCOROUTINE$324', classMeta, CoroutineImpl); setMetadataFor($updateUsernameCOROUTINE$325, '$updateUsernameCOROUTINE$325', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$327, '$insertAsyncCOROUTINE$327', classMeta, CoroutineImpl); setMetadataFor(PersonDao_Repo, 'PersonDao_Repo', classMeta, PersonDao, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(PersonGroupDao, 'PersonGroupDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$328, '$insertAsyncCOROUTINE$328', classMeta, CoroutineImpl); setMetadataFor(PersonGroupDao_DoorWrapper, 'PersonGroupDao_DoorWrapper', classMeta, PersonGroupDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$329, '$insertAsyncCOROUTINE$329', classMeta, CoroutineImpl); setMetadataFor(PersonGroupDao_JdbcImpl, 'PersonGroupDao_JdbcImpl', classMeta, PersonGroupDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonGroupDao_Repo$insertAsync$slambda, 'PersonGroupDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$334, '$insertAsyncCOROUTINE$334', classMeta, CoroutineImpl); setMetadataFor(PersonGroupDao_Repo, 'PersonGroupDao_Repo', classMeta, PersonGroupDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonGroupMemberDao, 'PersonGroupMemberDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 4]); setMetadataFor($insertAsyncCOROUTINE$335, '$insertAsyncCOROUTINE$335', classMeta, CoroutineImpl); setMetadataFor(PersonGroupMemberDao_DoorWrapper, 'PersonGroupMemberDao_DoorWrapper', classMeta, PersonGroupMemberDao, VOID, VOID, VOID, VOID, [1, 2, 4]); setMetadataFor(PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$336, '$insertAsyncCOROUTINE$336', classMeta, CoroutineImpl); setMetadataFor(PersonGroupMemberDao_JdbcImpl, 'PersonGroupMemberDao_JdbcImpl', classMeta, PersonGroupMemberDao, VOID, VOID, VOID, VOID, [1, 2, 4]); setMetadataFor(PersonGroupMemberDao_Repo$insertAsync$slambda, 'PersonGroupMemberDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$342, '$insertAsyncCOROUTINE$342', classMeta, CoroutineImpl); setMetadataFor(PersonGroupMemberDao_Repo, 'PersonGroupMemberDao_Repo', classMeta, PersonGroupMemberDao, VOID, VOID, VOID, VOID, [1, 2, 4]); setMetadataFor(PersonParentJoinDao, 'PersonParentJoinDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor($upsertAsyncCOROUTINE$343, '$upsertAsyncCOROUTINE$343', classMeta, CoroutineImpl); setMetadataFor(PersonParentJoinDao_DoorWrapper, 'PersonParentJoinDao_DoorWrapper', classMeta, PersonParentJoinDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonParentJoinDao_JdbcImpl$updateAsync$slambda, 'PersonParentJoinDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda, 'PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda, 'PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($upsertAsyncCOROUTINE$344, '$upsertAsyncCOROUTINE$344', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$345, '$updateAsyncCOROUTINE$345', classMeta, CoroutineImpl); setMetadataFor(PersonParentJoinDao_JdbcImpl, 'PersonParentJoinDao_JdbcImpl', classMeta, PersonParentJoinDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(PersonParentJoinDao_Repo$upsertAsync$slambda, 'PersonParentJoinDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(PersonParentJoinDao_Repo$updateAsync$slambda, 'PersonParentJoinDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($upsertAsyncCOROUTINE$346, '$upsertAsyncCOROUTINE$346', classMeta, CoroutineImpl); setMetadataFor($findByUidWithMinorAsyncCOROUTINE$347, '$findByUidWithMinorAsyncCOROUTINE$347', classMeta, CoroutineImpl); setMetadataFor($isMinorApprovedCOROUTINE$352, '$isMinorApprovedCOROUTINE$352', classMeta, CoroutineImpl); setMetadataFor(PersonParentJoinDao_Repo, 'PersonParentJoinDao_Repo', classMeta, PersonParentJoinDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(PersonPictureDao, 'PersonPictureDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 4]); setMetadataFor($upsertCOROUTINE$353, '$upsertCOROUTINE$353', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$354, '$insertAsyncCOROUTINE$354', classMeta, CoroutineImpl); setMetadataFor(PersonPictureDao_DoorWrapper, 'PersonPictureDao_DoorWrapper', classMeta, PersonPictureDao, VOID, VOID, VOID, VOID, [1, 2, 4]); setMetadataFor(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda, 'PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonPictureDao_JdbcImpl$updateUri$slambda, 'PersonPictureDao_JdbcImpl$updateUri$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda, 'PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$355, '$insertAsyncCOROUTINE$355', classMeta, CoroutineImpl); setMetadataFor($updateUriCOROUTINE$358, '$updateUriCOROUTINE$358', classMeta, CoroutineImpl); setMetadataFor($updateTransferJobItemEtagCOROUTINE$359, '$updateTransferJobItemEtagCOROUTINE$359', classMeta, CoroutineImpl); setMetadataFor(PersonPictureDao_JdbcImpl, 'PersonPictureDao_JdbcImpl', classMeta, PersonPictureDao, VOID, VOID, VOID, VOID, [1, 2, 4]); setMetadataFor(PersonPictureDao_Repo$upsert$slambda, 'PersonPictureDao_Repo$upsert$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(PersonPictureDao_Repo$updateUri$slambda, 'PersonPictureDao_Repo$updateUri$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(PersonPictureDao_Repo$updateTransferJobItemEtag$slambda, 'PersonPictureDao_Repo$updateTransferJobItemEtag$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(PersonPictureDao_Repo$insertAsync$slambda, 'PersonPictureDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($findByPersonUidAsyncCOROUTINE$360, '$findByPersonUidAsyncCOROUTINE$360', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$361, '$insertAsyncCOROUTINE$361', classMeta, CoroutineImpl); setMetadataFor(PersonPictureDao_Repo, 'PersonPictureDao_Repo', classMeta, PersonPictureDao, VOID, VOID, VOID, VOID, [1, 2, 4]); setMetadataFor(ReportDao, 'ReportDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor($insertAsyncCOROUTINE$362, '$insertAsyncCOROUTINE$362', classMeta, CoroutineImpl); setMetadataFor(ReportDao_DoorWrapper, 'ReportDao_DoorWrapper', classMeta, ReportDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda, 'ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ReportDao_JdbcImpl$findAllReports$o$countRows$slambda, 'ReportDao_JdbcImpl$findAllReports$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ReportDao_JdbcImpl$findByUidLive$slambda$slambda, 'ReportDao_JdbcImpl$findByUidLive$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ReportDao_JdbcImpl$_insertAdapterReport_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ReportDao_JdbcImpl$_insertAdapterReport_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ReportDao_JdbcImpl$updateAsync$slambda, 'ReportDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ReportDao_JdbcImpl$deleteReportByUid$slambda, 'ReportDao_JdbcImpl$deleteReportByUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ReportDao_JdbcImpl$findAllReports$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(ReportDao_JdbcImpl$findByUid$slambda, 'ReportDao_JdbcImpl$findByUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ReportDao_JdbcImpl$findByUidLive$slambda, 'ReportDao_JdbcImpl$findByUidLive$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$363, '$insertAsyncCOROUTINE$363', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$364, '$updateAsyncCOROUTINE$364', classMeta, CoroutineImpl); setMetadataFor($deleteReportByUidCOROUTINE$365, '$deleteReportByUidCOROUTINE$365', classMeta, CoroutineImpl); setMetadataFor(ReportDao_JdbcImpl, 'ReportDao_JdbcImpl', classMeta, ReportDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(ReportDao_Repo$findAllReports$slambda, 'ReportDao_Repo$findAllReports$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ReportDao_Repo$updateAsync$slambda, 'ReportDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ReportDao_Repo$insertAsync$slambda, 'ReportDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($deleteReportByUidCOROUTINE$367, '$deleteReportByUidCOROUTINE$367', classMeta, CoroutineImpl); setMetadataFor($findByUidCOROUTINE$368, '$findByUidCOROUTINE$368', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$369, '$insertAsyncCOROUTINE$369', classMeta, CoroutineImpl); setMetadataFor(ReportDao_Repo, 'ReportDao_Repo', classMeta, ReportDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(ReportQueryResultDao, 'ReportQueryResultDao', classMeta, VOID, VOID, VOID, VOID, VOID, [2, 1, 3]); setMetadataFor(ReportQueryResultDao_JdbcImpl$_insertAdapterReportQueryResult_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda, 'ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda, 'ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ReportQueryResultDao_JdbcImpl$isReportFresh$slambda, 'ReportQueryResultDao_JdbcImpl$isReportFresh$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($deleteByReportUidAndTimeZoneCOROUTINE$370, '$deleteByReportUidAndTimeZoneCOROUTINE$370', classMeta, CoroutineImpl); setMetadataFor(ReportQueryResultDao_JdbcImpl, 'ReportQueryResultDao_JdbcImpl', classMeta, ReportQueryResultDao, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(ScheduleDao, 'ScheduleDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor($upsertListAsyncCOROUTINE$371, '$upsertListAsyncCOROUTINE$371', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$372, '$insertAsyncCOROUTINE$372', classMeta, CoroutineImpl); setMetadataFor(ScheduleDao_DoorWrapper, 'ScheduleDao_DoorWrapper', classMeta, ScheduleDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ScheduleDao_JdbcImpl$updateScheduleActivated$slambda, 'ScheduleDao_JdbcImpl$updateScheduleActivated$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda, 'ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$373, '$insertAsyncCOROUTINE$373', classMeta, CoroutineImpl); setMetadataFor($updateScheduleActivatedCOROUTINE$375, '$updateScheduleActivatedCOROUTINE$375', classMeta, CoroutineImpl); setMetadataFor(ScheduleDao_JdbcImpl, 'ScheduleDao_JdbcImpl', classMeta, ScheduleDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(ScheduleDao_Repo$upsertListAsync$slambda, 'ScheduleDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ScheduleDao_Repo$updateScheduleActivated$slambda, 'ScheduleDao_Repo$updateScheduleActivated$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ScheduleDao_Repo$insertAsync$slambda, 'ScheduleDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($findAllSchedulesByClazzUidAsyncCOROUTINE$378, '$findAllSchedulesByClazzUidAsyncCOROUTINE$378', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$379, '$insertAsyncCOROUTINE$379', classMeta, CoroutineImpl); setMetadataFor(ScheduleDao_Repo, 'ScheduleDao_Repo', classMeta, ScheduleDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(ScopedGrantDao, 'ScopedGrantDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$380, '$insertAsyncCOROUTINE$380', classMeta, CoroutineImpl); setMetadataFor(ScopedGrantDao_DoorWrapper, 'ScopedGrantDao_DoorWrapper', classMeta, ScopedGrantDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$382, '$insertAsyncCOROUTINE$382', classMeta, CoroutineImpl); setMetadataFor(ScopedGrantDao_JdbcImpl, 'ScopedGrantDao_JdbcImpl', classMeta, ScopedGrantDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ScopedGrantDao_Repo$insertAsync$slambda, 'ScopedGrantDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$383, '$insertAsyncCOROUTINE$383', classMeta, CoroutineImpl); setMetadataFor(ScopedGrantDao_Repo, 'ScopedGrantDao_Repo', classMeta, ScopedGrantDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteDao, 'SiteDao', classMeta, VOID, VOID, VOID, VOID, VOID, [0, 1]); setMetadataFor(SiteDao_DoorWrapper, 'SiteDao_DoorWrapper', classMeta, SiteDao, VOID, VOID, VOID, VOID, [0, 1]); setMetadataFor(SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda, 'SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteDao_JdbcImpl$_insertAdapterSite_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteDao_JdbcImpl$_insertAdapterSite_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteDao_JdbcImpl$updateAsync$slambda, 'SiteDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteDao_JdbcImpl$getSiteAsync$slambda, 'SiteDao_JdbcImpl$getSiteAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteDao_JdbcImpl$getSiteAsFlow$slambda, 'SiteDao_JdbcImpl$getSiteAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($updateAsyncCOROUTINE$386, '$updateAsyncCOROUTINE$386', classMeta, CoroutineImpl); setMetadataFor(SiteDao_JdbcImpl, 'SiteDao_JdbcImpl', classMeta, SiteDao, VOID, VOID, VOID, VOID, [1, 0]); setMetadataFor(SiteDao_Repo$getSiteAsFlow$slambda, 'SiteDao_Repo$getSiteAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(SiteDao_Repo$updateAsync$slambda, 'SiteDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($getSiteAsyncCOROUTINE$387, '$getSiteAsyncCOROUTINE$387', classMeta, CoroutineImpl); setMetadataFor(SiteDao_Repo, 'SiteDao_Repo', classMeta, SiteDao, VOID, VOID, VOID, VOID, [0, 1]); setMetadataFor(SiteTermsDao, 'SiteTermsDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 0, 3]); setMetadataFor($upsertListCOROUTINE$391, '$upsertListCOROUTINE$391', classMeta, CoroutineImpl); setMetadataFor(SiteTermsDao_DoorWrapper, 'SiteTermsDao_DoorWrapper', classMeta, SiteTermsDao, VOID, VOID, VOID, VOID, [1, 0, 3]); setMetadataFor(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda, 'SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda, 'SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(SiteTermsDao_JdbcImpl$findAllTerms$slambda, 'SiteTermsDao_JdbcImpl$findAllTerms$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda, 'SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda, 'SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteTermsDao_JdbcImpl, 'SiteTermsDao_JdbcImpl', classMeta, SiteTermsDao, VOID, VOID, VOID, VOID, [1, 0, 3]); setMetadataFor(SiteTermsDao_Repo$findAllTermsAsListFlow$slambda, 'SiteTermsDao_Repo$findAllTermsAsListFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(SiteTermsDao_Repo$upsertList$slambda, 'SiteTermsDao_Repo$upsertList$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($findAllTermsCOROUTINE$398, '$findAllTermsCOROUTINE$398', classMeta, CoroutineImpl); setMetadataFor($findAvailableSiteTermLanguagesCOROUTINE$400, '$findAvailableSiteTermLanguagesCOROUTINE$400', classMeta, CoroutineImpl); setMetadataFor($findLatestByLanguageCOROUTINE$401, '$findLatestByLanguageCOROUTINE$401', classMeta, CoroutineImpl); setMetadataFor(SiteTermsDao_Repo, 'SiteTermsDao_Repo', classMeta, SiteTermsDao, VOID, VOID, VOID, VOID, [1, 0, 3]); setMetadataFor(StudentResultDao, 'StudentResultDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(StudentResultDao_DoorWrapper, 'StudentResultDao_DoorWrapper', classMeta, StudentResultDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StudentResultDao_JdbcImpl, 'StudentResultDao_JdbcImpl', classMeta, StudentResultDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(StudentResultDao_Repo, 'StudentResultDao_Repo', classMeta, StudentResultDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(SyncNodeDao, 'SyncNodeDao', classMeta, VOID, VOID, VOID, VOID, VOID, [0]); setMetadataFor(SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SyncNodeDao_JdbcImpl, 'SyncNodeDao_JdbcImpl', classMeta, SyncNodeDao, VOID, VOID, VOID, VOID, [0]); setMetadataFor(SystemPermissionDao, 'SystemPermissionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [2, 1, 3]); setMetadataFor($upsertAsyncCOROUTINE$405, '$upsertAsyncCOROUTINE$405', classMeta, CoroutineImpl); setMetadataFor(SystemPermissionDao_DoorWrapper, 'SystemPermissionDao_DoorWrapper', classMeta, SystemPermissionDao, VOID, VOID, VOID, VOID, [2, 1, 3]); setMetadataFor(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda, 'SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda, 'SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda, 'SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda, 'SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda, 'SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(SystemPermissionDao_JdbcImpl$findByPersonUid$slambda, 'SystemPermissionDao_JdbcImpl$findByPersonUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda, 'SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda, 'SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda, 'SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda, 'SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda, 'SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(SystemPermissionDao_JdbcImpl, 'SystemPermissionDao_JdbcImpl', classMeta, SystemPermissionDao, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda, 'SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda, 'SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda, 'SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda, 'SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(SystemPermissionDao_Repo$upsertAsync$slambda, 'SystemPermissionDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($findByPersonUidCOROUTINE$408, '$findByPersonUidCOROUTINE$408', classMeta, CoroutineImpl); setMetadataFor($personHasSystemPermissionCOROUTINE$409, '$personHasSystemPermissionCOROUTINE$409', classMeta, CoroutineImpl); setMetadataFor($personHasSystemPermissionPairCOROUTINE$410, '$personHasSystemPermissionPairCOROUTINE$410', classMeta, CoroutineImpl); setMetadataFor(SystemPermissionDao_Repo, 'SystemPermissionDao_Repo', classMeta, SystemPermissionDao, VOID, VOID, VOID, VOID, [2, 1, 3]); setMetadataFor(TransferJobDao, 'TransferJobDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda, 'TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda, 'TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda, 'TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertCOROUTINE$411, '$insertCOROUTINE$411', classMeta, CoroutineImpl); setMetadataFor(TransferJobDao_JdbcImpl, 'TransferJobDao_JdbcImpl', classMeta, TransferJobDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(TransferJobErrorDao, 'TransferJobErrorDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(TransferJobErrorDao_JdbcImpl, 'TransferJobErrorDao_JdbcImpl', classMeta, TransferJobErrorDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(TransferJobItemDao, 'TransferJobItemDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda, 'TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(TransferJobItemDao_JdbcImpl$updateStatus$slambda, 'TransferJobItemDao_JdbcImpl$updateStatus$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda, 'TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda, 'TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertCOROUTINE$414, '$insertCOROUTINE$414', classMeta, CoroutineImpl); setMetadataFor($updateTransferredProgressCOROUTINE$415, '$updateTransferredProgressCOROUTINE$415', classMeta, CoroutineImpl); setMetadataFor($updateStatusCOROUTINE$416, '$updateStatusCOROUTINE$416', classMeta, CoroutineImpl); setMetadataFor($insertOutgoingReplicationForTransferJobItemIfDoneCOROUTINE$417, '$insertOutgoingReplicationForTransferJobItemIfDoneCOROUTINE$417', classMeta, CoroutineImpl); setMetadataFor($updateStatusIfNotCompleteForAllInJobCOROUTINE$418, '$updateStatusIfNotCompleteForAllInJobCOROUTINE$418', classMeta, CoroutineImpl); setMetadataFor(TransferJobItemDao_JdbcImpl, 'TransferJobItemDao_JdbcImpl', classMeta, TransferJobItemDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(UserSessionDao, 'UserSessionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 0, 4, 5, 2]); setMetadataFor($insertSessionCOROUTINE$419, '$insertSessionCOROUTINE$419', classMeta, CoroutineImpl); setMetadataFor(UserSessionDao_DoorWrapper, 'UserSessionDao_DoorWrapper', classMeta, UserSessionDao, VOID, VOID, VOID, VOID, [1, 0, 4, 5, 2]); setMetadataFor(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda, 'UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda, 'UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda, 'UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda, 'UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UserSessionDao_JdbcImpl$endSession$slambda, 'UserSessionDao_JdbcImpl$endSession$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertSessionCOROUTINE$420, '$insertSessionCOROUTINE$420', classMeta, CoroutineImpl); setMetadataFor($endSessionCOROUTINE$421, '$endSessionCOROUTINE$421', classMeta, CoroutineImpl); setMetadataFor(UserSessionDao_JdbcImpl, 'UserSessionDao_JdbcImpl', classMeta, UserSessionDao, VOID, VOID, VOID, VOID, [1, 0, 4, 5, 2]); setMetadataFor(UserSessionDao_Repo$insertSession$slambda, 'UserSessionDao_Repo$insertSession$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(UserSessionDao_Repo$endSession$slambda, 'UserSessionDao_Repo$endSession$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($insertSessionCOROUTINE$423, '$insertSessionCOROUTINE$423', classMeta, CoroutineImpl); setMetadataFor($findAllLocalSessionsAsyncCOROUTINE$425, '$findAllLocalSessionsAsyncCOROUTINE$425', classMeta, CoroutineImpl); setMetadataFor($countAllLocalSessionsAsyncCOROUTINE$427, '$countAllLocalSessionsAsyncCOROUTINE$427', classMeta, CoroutineImpl); setMetadataFor(UserSessionDao_Repo, 'UserSessionDao_Repo', classMeta, UserSessionDao, VOID, VOID, VOID, VOID, [1, 0, 4, 5, 2]); setMetadataFor(ActivityEntityDao, 'ActivityEntityDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 6]); setMetadataFor(ActivityEntityDao_DoorWrapper, 'ActivityEntityDao_DoorWrapper', classMeta, ActivityEntityDao, VOID, VOID, VOID, VOID, [1, 3, 6]); setMetadataFor(ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda, 'ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda, 'ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($updateIfMoreInfoChangedCOROUTINE$431, '$updateIfMoreInfoChangedCOROUTINE$431', classMeta, CoroutineImpl); setMetadataFor($updateIfNotYetDefinedCOROUTINE$432, '$updateIfNotYetDefinedCOROUTINE$432', classMeta, CoroutineImpl); setMetadataFor(ActivityEntityDao_JdbcImpl, 'ActivityEntityDao_JdbcImpl', classMeta, ActivityEntityDao, VOID, VOID, VOID, VOID, [1, 3, 6]); setMetadataFor(ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda, 'ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda, 'ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ActivityEntityDao_Repo$updateIfNotYetDefined$slambda, 'ActivityEntityDao_Repo$updateIfNotYetDefined$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ActivityEntityDao_Repo, 'ActivityEntityDao_Repo', classMeta, ActivityEntityDao, VOID, VOID, VOID, VOID, [1, 3, 6]); setMetadataFor(ActivityExtensionDao, 'ActivityExtensionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityExtensionDao_DoorWrapper, 'ActivityExtensionDao_DoorWrapper', classMeta, ActivityExtensionDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityExtensionDao_JdbcImpl, 'ActivityExtensionDao_JdbcImpl', classMeta, ActivityExtensionDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityExtensionDao_Repo$upsertListAsync$slambda, 'ActivityExtensionDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ActivityExtensionDao_Repo, 'ActivityExtensionDao_Repo', classMeta, ActivityExtensionDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityInteractionDao, 'ActivityInteractionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityInteractionDao_DoorWrapper, 'ActivityInteractionDao_DoorWrapper', classMeta, ActivityInteractionDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda, 'ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityInteractionDao_JdbcImpl, 'ActivityInteractionDao_JdbcImpl', classMeta, ActivityInteractionDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda, 'ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($findActivityUidsWithInteractionEntitiesAsyncCOROUTINE$435, '$findActivityUidsWithInteractionEntitiesAsyncCOROUTINE$435', classMeta, CoroutineImpl); setMetadataFor(ActivityInteractionDao_Repo, 'ActivityInteractionDao_Repo', classMeta, ActivityInteractionDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityLangMapEntryDao, 'ActivityLangMapEntryDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 7, 4]); setMetadataFor(ActivityLangMapEntryDao_DoorWrapper, 'ActivityLangMapEntryDao_DoorWrapper', classMeta, ActivityLangMapEntryDao, VOID, VOID, VOID, VOID, [1, 7, 4]); setMetadataFor(ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda, 'ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda, 'ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda, 'ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($upsertIfInteractionEntityExistsCOROUTINE$437, '$upsertIfInteractionEntityExistsCOROUTINE$437', classMeta, CoroutineImpl); setMetadataFor($updateIfChangedCOROUTINE$438, '$updateIfChangedCOROUTINE$438', classMeta, CoroutineImpl); setMetadataFor(ActivityLangMapEntryDao_JdbcImpl, 'ActivityLangMapEntryDao_JdbcImpl', classMeta, ActivityLangMapEntryDao, VOID, VOID, VOID, VOID, [1, 7, 4]); setMetadataFor(ActivityLangMapEntryDao_Repo$upsertList$slambda, 'ActivityLangMapEntryDao_Repo$upsertList$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda, 'ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ActivityLangMapEntryDao_Repo$updateIfChanged$slambda, 'ActivityLangMapEntryDao_Repo$updateIfChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($findAllByActivityUidCOROUTINE$439, '$findAllByActivityUidCOROUTINE$439', classMeta, CoroutineImpl); setMetadataFor(ActivityLangMapEntryDao_Repo, 'ActivityLangMapEntryDao_Repo', classMeta, ActivityLangMapEntryDao, VOID, VOID, VOID, VOID, [1, 7, 4]); setMetadataFor(ActorDao, 'ActorDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor($insertOrIgnoreListAsyncCOROUTINE$440, '$insertOrIgnoreListAsyncCOROUTINE$440', classMeta, CoroutineImpl); setMetadataFor($upsertListAsyncCOROUTINE$441, '$upsertListAsyncCOROUTINE$441', classMeta, CoroutineImpl); setMetadataFor(ActorDao_DoorWrapper, 'ActorDao_DoorWrapper', classMeta, ActorDao, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActorDao_JdbcImpl$updateIfNameChanged$slambda, 'ActorDao_JdbcImpl$updateIfNameChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda, 'ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($updateIfNameChangedCOROUTINE$442, '$updateIfNameChangedCOROUTINE$442', classMeta, CoroutineImpl); setMetadataFor(ActorDao_JdbcImpl, 'ActorDao_JdbcImpl', classMeta, ActorDao, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(ActorDao_Repo$insertOrIgnoreListAsync$slambda, 'ActorDao_Repo$insertOrIgnoreListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ActorDao_Repo$upsertListAsync$slambda, 'ActorDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ActorDao_Repo$updateIfNameChanged$slambda, 'ActorDao_Repo$updateIfNameChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($findUidAndEtagByListAsyncCOROUTINE$445, '$findUidAndEtagByListAsyncCOROUTINE$445', classMeta, CoroutineImpl); setMetadataFor(ActorDao_Repo, 'ActorDao_Repo', classMeta, ActorDao, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(GroupMemberActorJoinDao, 'GroupMemberActorJoinDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(GroupMemberActorJoinDao_DoorWrapper, 'GroupMemberActorJoinDao_DoorWrapper', classMeta, GroupMemberActorJoinDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda, 'GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($updateLastModifiedTimeIfNeededAsyncCOROUTINE$447, '$updateLastModifiedTimeIfNeededAsyncCOROUTINE$447', classMeta, CoroutineImpl); setMetadataFor(GroupMemberActorJoinDao_JdbcImpl, 'GroupMemberActorJoinDao_JdbcImpl', classMeta, GroupMemberActorJoinDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda, 'GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(GroupMemberActorJoinDao_Repo$upsertListAsync$slambda, 'GroupMemberActorJoinDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda, 'GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(GroupMemberActorJoinDao_Repo, 'GroupMemberActorJoinDao_Repo', classMeta, GroupMemberActorJoinDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(StateDeleteCommandDao, 'StateDeleteCommandDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StateDeleteCommandDao_DoorWrapper, 'StateDeleteCommandDao_DoorWrapper', classMeta, StateDeleteCommandDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StateDeleteCommandDao_JdbcImpl, 'StateDeleteCommandDao_JdbcImpl', classMeta, StateDeleteCommandDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StateDeleteCommandDao_Repo, 'StateDeleteCommandDao_Repo', classMeta, StateDeleteCommandDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StateEntityDao, 'StateEntityDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 4, 6, 5]); setMetadataFor(StateEntityDao_DoorWrapper, 'StateEntityDao_DoorWrapper', classMeta, StateEntityDao, VOID, VOID, VOID, VOID, [1, 4, 6, 5]); setMetadataFor(StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StateEntityDao_JdbcImpl, 'StateEntityDao_JdbcImpl', classMeta, StateEntityDao, VOID, VOID, VOID, VOID, [1, 4, 6, 5]); setMetadataFor(StateEntityDao_Repo, 'StateEntityDao_Repo', classMeta, StateEntityDao, VOID, VOID, VOID, VOID, [1, 4, 6, 5]); setMetadataFor(StatementContextActivityJoinDao, 'StatementContextActivityJoinDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(StatementContextActivityJoinDao_DoorWrapper, 'StatementContextActivityJoinDao_DoorWrapper', classMeta, StatementContextActivityJoinDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StatementContextActivityJoinDao_JdbcImpl, 'StatementContextActivityJoinDao_JdbcImpl', classMeta, StatementContextActivityJoinDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda, 'StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(StatementContextActivityJoinDao_Repo, 'StatementContextActivityJoinDao_Repo', classMeta, StatementContextActivityJoinDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(StatementDao, 'StatementDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 3, 10]); setMetadataFor(StatementDao_DoorWrapper, 'StatementDao_DoorWrapper', classMeta, StatementDao, VOID, VOID, VOID, VOID, [1, 2, 3, 10]); setMetadataFor(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda, 'StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda, 'StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda, 'StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda, 'StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda, 'StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda, 'StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda, 'StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda, 'StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda, 'StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda, 'StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(StatementDao_JdbcImpl$findPersonsWithAttempts$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(StatementDao_JdbcImpl$findSessionsByPersonAndContent$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(StatementDao_JdbcImpl$findStatementsBySession$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda, 'StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda, 'StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl, 'StatementDao_JdbcImpl', classMeta, StatementDao, VOID, VOID, VOID, VOID, [1, 2, 3, 10]); setMetadataFor(StatementDao_Repo$insertOrIgnoreListAsync$slambda, 'StatementDao_Repo$insertOrIgnoreListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda, 'StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(StatementDao_Repo$findPersonsWithAttempts$slambda, 'StatementDao_Repo$findPersonsWithAttempts$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_Repo$findSessionsByPersonAndContent$slambda, 'StatementDao_Repo$findSessionsByPersonAndContent$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_Repo$findStatementsBySession$slambda, 'StatementDao_Repo$findStatementsBySession$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_Repo$getUniqueVerbsForSession$slambda, 'StatementDao_Repo$getUniqueVerbsForSession$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor($findStatusForStudentsInClazzCOROUTINE$463, '$findStatusForStudentsInClazzCOROUTINE$463', classMeta, CoroutineImpl); setMetadataFor($scoreOrProgressDataExistsForContentCOROUTINE$468, '$scoreOrProgressDataExistsForContentCOROUTINE$468', classMeta, CoroutineImpl); setMetadataFor(StatementDao_Repo, 'StatementDao_Repo', classMeta, StatementDao, VOID, VOID, VOID, VOID, [1, 2, 3, 10]); setMetadataFor(StatementEntityJsonDao, 'StatementEntityJsonDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(StatementEntityJsonDao_DoorWrapper, 'StatementEntityJsonDao_DoorWrapper', classMeta, StatementEntityJsonDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StatementEntityJsonDao_JdbcImpl, 'StatementEntityJsonDao_JdbcImpl', classMeta, StatementEntityJsonDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda, 'StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(StatementEntityJsonDao_Repo, 'StatementEntityJsonDao_Repo', classMeta, StatementEntityJsonDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(VerbDao, 'VerbDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(VerbDao_DoorWrapper, 'VerbDao_DoorWrapper', classMeta, VerbDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(VerbDao_JdbcImpl, 'VerbDao_JdbcImpl', classMeta, VerbDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(VerbDao_Repo$insertOrIgnoreAsync$slambda, 'VerbDao_Repo$insertOrIgnoreAsync$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(VerbDao_Repo, 'VerbDao_Repo', classMeta, VerbDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(VerbLangMapEntryDao, 'VerbLangMapEntryDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(VerbLangMapEntryDao_DoorWrapper, 'VerbLangMapEntryDao_DoorWrapper', classMeta, VerbLangMapEntryDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(VerbLangMapEntryDao_JdbcImpl, 'VerbLangMapEntryDao_JdbcImpl', classMeta, VerbLangMapEntryDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(VerbLangMapEntryDao_Repo$upsertList$slambda, 'VerbLangMapEntryDao_Repo$upsertList$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(VerbLangMapEntryDao_Repo, 'VerbLangMapEntryDao_Repo', classMeta, VerbLangMapEntryDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(XapiSessionEntityDao, 'XapiSessionEntityDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 5]); setMetadataFor(XapiSessionEntityDao_DoorWrapper, 'XapiSessionEntityDao_DoorWrapper', classMeta, XapiSessionEntityDao, VOID, VOID, VOID, VOID, [1, 3, 5]); setMetadataFor(XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda, 'XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($updateLatestAsCompleteCOROUTINE$475, '$updateLatestAsCompleteCOROUTINE$475', classMeta, CoroutineImpl); setMetadataFor(XapiSessionEntityDao_JdbcImpl, 'XapiSessionEntityDao_JdbcImpl', classMeta, XapiSessionEntityDao, VOID, VOID, VOID, VOID, [1, 3, 5]); setMetadataFor(XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda, 'XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(XapiSessionEntityDao_Repo, 'XapiSessionEntityDao_Repo', classMeta, XapiSessionEntityDao, VOID, VOID, VOID, VOID, [1, 3, 5]); setMetadataFor(PermissionFlags, 'PermissionFlags', objectMeta); setMetadataFor(ClazzAssignmentDaoCommon, 'ClazzAssignmentDaoCommon', objectMeta); setMetadataFor(ClazzDaoCommon, 'ClazzDaoCommon', objectMeta); setMetadataFor(ClazzEnrolmentDaoCommon, 'ClazzEnrolmentDaoCommon', objectMeta); setMetadataFor(ContentEntryDaoCommon, 'ContentEntryDaoCommon', objectMeta); setMetadataFor(CourseAssignmentMarkDaoCommon, 'CourseAssignmentMarkDaoCommon', objectMeta); setMetadataFor($deactivateByUidsCOROUTINE$478, '$deactivateByUidsCOROUTINE$478', classMeta, CoroutineImpl); setMetadataFor(CourseGroupSetDaoConstants, 'CourseGroupSetDaoConstants', objectMeta); setMetadataFor(LanguageDaoCommon, 'LanguageDaoCommon', objectMeta); setMetadataFor($deactivateByUidsCOROUTINE$479, '$deactivateByUidsCOROUTINE$479', classMeta, CoroutineImpl); setMetadataFor(PersonDaoCommon, 'PersonDaoCommon', objectMeta); setMetadataFor($deactivateByUidsCOROUTINE$480, '$deactivateByUidsCOROUTINE$480', classMeta, CoroutineImpl); setMetadataFor(ActorUidEtagAndLastMod, 'ActorUidEtagAndLastMod', classMeta, VOID, VOID, ActorUidEtagAndLastMod); setMetadataFor(Companion_0, 'Companion', objectMeta); setMetadataFor($serializer, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(AssignmentPermissionAndActiveUserSubmitterUid, 'AssignmentPermissionAndActiveUserSubmitterUid', classMeta, VOID, VOID, AssignmentPermissionAndActiveUserSubmitterUid, VOID, {0: $serializer_getInstance}); setMetadataFor(Companion_1, 'Companion', objectMeta); setMetadataFor($serializer_0, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(AssignmentSubmitterUidAndName, 'AssignmentSubmitterUidAndName', classMeta, VOID, VOID, AssignmentSubmitterUidAndName, VOID, {0: $serializer_getInstance_0}); setMetadataFor(Companion_2, 'Companion', objectMeta); setMetadataFor($serializer_1, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(BlockStatus, 'BlockStatus', classMeta, VOID, VOID, BlockStatus, VOID, {0: $serializer_getInstance_1}); setMetadataFor(Companion_3, 'Companion', objectMeta); setMetadataFor($serializer_2, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzAndDetailPermissions, 'ClazzAndDetailPermissions', classMeta, VOID, VOID, ClazzAndDetailPermissions, VOID, {0: $serializer_getInstance_2}); setMetadataFor(ClazzAndDisplayDetails, 'ClazzAndDisplayDetails', classMeta, VOID, VOID, ClazzAndDisplayDetails); setMetadataFor(Companion_4, 'Companion', objectMeta); setMetadataFor($serializer_3, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzAssignmentAndBlock, 'ClazzAssignmentAndBlock', classMeta, VOID, VOID, ClazzAssignmentAndBlock, VOID, {0: $serializer_getInstance_3}); setMetadataFor(Companion_5, 'Companion', objectMeta); setMetadataFor($serializer_4, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzEnrolmentAndPersonDetailDetails, 'ClazzEnrolmentAndPersonDetailDetails', classMeta, VOID, VOID, ClazzEnrolmentAndPersonDetailDetails, VOID, {0: $serializer_getInstance_4}); setMetadataFor(Companion_6, 'Companion', objectMeta); setMetadataFor($serializer_5, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzNameAndTerminology, 'ClazzNameAndTerminology', classMeta, VOID, VOID, ClazzNameAndTerminology, VOID, {0: $serializer_getInstance_5}); setMetadataFor(Companion_7, 'Companion', objectMeta); setMetadataFor($serializer_6, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CommentsAndName, 'CommentsAndName', classMeta, VOID, VOID, CommentsAndName, VOID, {0: $serializer_getInstance_6}); setMetadataFor(Companion_8, 'Companion', objectMeta); setMetadataFor($serializer_7, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryAndContentJob, 'ContentEntryAndContentJob', classMeta, VOID, VOID, ContentEntryAndContentJob, VOID, {0: $serializer_getInstance_7}); setMetadataFor(Companion_9, 'Companion', objectMeta); setMetadataFor($serializer_8, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryAndDetail, 'ContentEntryAndDetail', classMeta, VOID, VOID, ContentEntryAndDetail, VOID, {0: $serializer_getInstance_8}); setMetadataFor(ContentEntryAndListDetail, 'ContentEntryAndListDetail', classMeta, VOID, VOID, ContentEntryAndListDetail); setMetadataFor(Companion_10, 'Companion', objectMeta); setMetadataFor($serializer_9, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryAndPicture, 'ContentEntryAndPicture', classMeta, VOID, VOID, ContentEntryAndPicture, VOID, {0: $serializer_getInstance_9}); setMetadataFor(Companion_11, 'Companion', objectMeta); setMetadataFor($serializer_10, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryImportJobProgress, 'ContentEntryImportJobProgress', classMeta, VOID, VOID, ContentEntryImportJobProgress, VOID, {0: $serializer_getInstance_10}); setMetadataFor(Companion_12, 'Companion', objectMeta); setMetadataFor($serializer_11, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseAssignmentMarkAndMarkerName, 'CourseAssignmentMarkAndMarkerName', classMeta, VOID, VOID, CourseAssignmentMarkAndMarkerName, VOID, {0: $serializer_getInstance_11}); setMetadataFor(Companion_13, 'Companion', objectMeta); setMetadataFor($serializer_12, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseAssignmentSubmissionFileAndTransferJob, 'CourseAssignmentSubmissionFileAndTransferJob', classMeta, VOID, VOID, CourseAssignmentSubmissionFileAndTransferJob, VOID, {0: $serializer_getInstance_12}); setMetadataFor(Companion_14, 'Companion', objectMeta); setMetadataFor($serializer_13, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlockAndAssignment, 'CourseBlockAndAssignment', classMeta, VOID, VOID, CourseBlockAndAssignment, VOID, {0: $serializer_getInstance_13}); setMetadataFor(Companion_15, 'Companion', objectMeta); setMetadataFor($serializer_14, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlockAndDbEntities, 'CourseBlockAndDbEntities', classMeta, VOID, VOID, CourseBlockAndDbEntities, VOID, {0: $serializer_getInstance_14}); setMetadataFor(Companion_16, 'Companion', objectMeta); setMetadataFor($serializer_15, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlockAndDisplayDetails, 'CourseBlockAndDisplayDetails', classMeta, VOID, VOID, CourseBlockAndDisplayDetails, VOID, {0: $serializer_getInstance_15}); setMetadataFor(Companion_17, 'Companion', objectMeta); setMetadataFor($serializer_16, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlockAndEditEntities, 'CourseBlockAndEditEntities', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_16}); setMetadataFor(Companion_18, 'Companion', objectMeta); setMetadataFor($serializer_17, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlockAndGradebookDisplayDetails, 'CourseBlockAndGradebookDisplayDetails', classMeta, VOID, VOID, CourseBlockAndGradebookDisplayDetails, VOID, {0: $serializer_getInstance_17}); setMetadataFor(Companion_19, 'Companion', objectMeta); setMetadataFor($serializer_18, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlockAndPicture, 'CourseBlockAndPicture', classMeta, VOID, VOID, CourseBlockAndPicture, VOID, {0: $serializer_getInstance_18}); setMetadataFor(Companion_20, 'Companion', objectMeta); setMetadataFor($serializer_19, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlockUidAndClazzUid, 'CourseBlockUidAndClazzUid', classMeta, VOID, VOID, CourseBlockUidAndClazzUid, VOID, {0: $serializer_getInstance_19}); setMetadataFor(Companion_21, 'Companion', objectMeta); setMetadataFor($serializer_20, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseGroupMemberAndPerson, 'CourseGroupMemberAndPerson', classMeta, VOID, VOID, CourseGroupMemberAndPerson, VOID, {0: $serializer_getInstance_20}); setMetadataFor(Companion_22, 'Companion', objectMeta); setMetadataFor($serializer_21, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseNameAndPersonName, 'CourseNameAndPersonName', classMeta, VOID, VOID, CourseNameAndPersonName, VOID, {0: $serializer_getInstance_21}); setMetadataFor(CoursePermissionAndListDetail, 'CoursePermissionAndListDetail', classMeta, VOID, VOID, CoursePermissionAndListDetail); setMetadataFor(Companion_23, 'Companion', objectMeta); setMetadataFor($serializer_22, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DiscussionPostAndPosterNames, 'DiscussionPostAndPosterNames', classMeta, VOID, VOID, DiscussionPostAndPosterNames, VOID, {0: $serializer_getInstance_22}); setMetadataFor(Companion_24, 'Companion', objectMeta); setMetadataFor($serializer_23, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(EditAndViewPermission, 'EditAndViewPermission', classMeta, VOID, VOID, EditAndViewPermission, VOID, {0: $serializer_getInstance_23}); setMetadataFor(Companion_25, 'Companion', objectMeta); setMetadataFor($serializer_24, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(EnrolmentRequestAndCoursePic, 'EnrolmentRequestAndCoursePic', classMeta, VOID, VOID, EnrolmentRequestAndCoursePic, VOID, {0: $serializer_getInstance_24}); setMetadataFor(EnrolmentRequestAndPersonDetails, 'EnrolmentRequestAndPersonDetails', classMeta, VOID, VOID, EnrolmentRequestAndPersonDetails); setMetadataFor(Companion_26, 'Companion', objectMeta); setMetadataFor($serializer_25, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(MessageAndOtherPerson, 'MessageAndOtherPerson', classMeta, VOID, VOID, MessageAndOtherPerson, VOID, {0: $serializer_getInstance_25}); setMetadataFor(Companion_27, 'Companion', objectMeta); setMetadataFor($serializer_26, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(OfflineItemAndState, 'OfflineItemAndState', classMeta, VOID, VOID, OfflineItemAndState, VOID, {0: $serializer_getInstance_26}); setMetadataFor(Companion_28, 'Companion', objectMeta); setMetadataFor($serializer_27, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PermissionPair, 'PermissionPair', classMeta, VOID, VOID, PermissionPair, VOID, {0: $serializer_getInstance_27}); setMetadataFor(Companion_29, 'Companion', objectMeta); setMetadataFor($serializer_28, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PermissionTriple, 'PermissionTriple', classMeta, VOID, VOID, PermissionTriple, VOID, {0: $serializer_getInstance_28}); setMetadataFor(Companion_30, 'Companion', objectMeta); setMetadataFor($serializer_29, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonAndClazzLogAttendanceRecord, 'PersonAndClazzLogAttendanceRecord', classMeta, VOID, VOID, PersonAndClazzLogAttendanceRecord, VOID, {0: $serializer_getInstance_29}); setMetadataFor(Companion_31, 'Companion', objectMeta); setMetadataFor($serializer_30, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonAndClazzMemberListDetails, 'PersonAndClazzMemberListDetails', classMeta, VOID, VOID, PersonAndClazzMemberListDetails, VOID, {0: $serializer_getInstance_30}); setMetadataFor(PersonAndListDisplayDetails, 'PersonAndListDisplayDetails', classMeta, VOID, VOID, PersonAndListDisplayDetails); setMetadataFor(Companion_32, 'Companion', objectMeta); setMetadataFor($serializer_31, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonAndPicture, 'PersonAndPicture', classMeta, VOID, VOID, PersonAndPicture, VOID, {0: $serializer_getInstance_31}); setMetadataFor(Companion_33, 'Companion', objectMeta); setMetadataFor($serializer_32, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonAndPictureAndNumAttempts, 'PersonAndPictureAndNumAttempts', classMeta, VOID, VOID, PersonAndPictureAndNumAttempts, VOID, {0: $serializer_getInstance_32}); setMetadataFor(AttemptsPersonListConst, 'AttemptsPersonListConst', objectMeta); setMetadataFor(Companion_34, 'Companion', objectMeta); setMetadataFor($serializer_33, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonNames, 'PersonNames', classMeta, VOID, VOID, PersonNames, VOID, {0: $serializer_getInstance_33}); setMetadataFor(SiteTermsAndLangName, 'SiteTermsAndLangName', classMeta); setMetadataFor(Companion_35, 'Companion', objectMeta); setMetadataFor($serializer_34, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(StatementReportRow, 'StatementReportRow', classMeta, VOID, VOID, StatementReportRow, VOID, {0: $serializer_getInstance_34}); setMetadataFor(Companion_36, 'Companion', objectMeta); setMetadataFor($serializer_35, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(StudentAndBlockStatuses, 'StudentAndBlockStatuses', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_35}); setMetadataFor(Companion_37, 'Companion', objectMeta); setMetadataFor($serializer_36, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(SubmissionAndFiles, 'SubmissionAndFiles', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_36}); setMetadataFor(Companion_38, 'Companion', objectMeta); setMetadataFor($serializer_37, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(TransferJobAndTotals, 'TransferJobAndTotals', classMeta, VOID, VOID, TransferJobAndTotals, VOID, {0: $serializer_getInstance_37}); setMetadataFor(Companion_39, 'Companion', objectMeta); setMetadataFor(TransferJobItemStatus, 'TransferJobItemStatus', classMeta, Enum); setMetadataFor(Companion_40, 'Companion', objectMeta); setMetadataFor($serializer_38, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(SessionTimeAndProgressInfo, 'SessionTimeAndProgressInfo', classMeta, VOID, VOID, SessionTimeAndProgressInfo, VOID, {0: $serializer_getInstance_38}); setMetadataFor(SessionTimeAndProgressInfoConst, 'SessionTimeAndProgressInfoConst', objectMeta); setMetadataFor(Companion_41, 'Companion', objectMeta); setMetadataFor($serializer_39, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(StatementEntityAndVerb, 'StatementEntityAndVerb', classMeta, VOID, VOID, StatementEntityAndVerb, VOID, {0: $serializer_getInstance_39}); setMetadataFor(StatementConst, 'StatementConst', objectMeta); setMetadataFor(Companion_42, 'Companion', objectMeta); setMetadataFor($serializer_40, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(VerbEntityAndName, 'VerbEntityAndName', classMeta, VOID, VOID, VerbEntityAndName, VOID, {0: $serializer_getInstance_40}); setMetadataFor(Companion_43, 'Companion', objectMeta); setMetadataFor($serializer_41, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(AssignmentProgressSummary, 'AssignmentProgressSummary', classMeta, VOID, VOID, AssignmentProgressSummary, VOID, {0: $serializer_getInstance_41}); setMetadataFor(Companion_44, 'Companion', objectMeta); setMetadataFor($serializer_42, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(AssignmentSubmitterAndAllocations, 'AssignmentSubmitterAndAllocations', classMeta, VOID, VOID, AssignmentSubmitterAndAllocations, VOID, {0: $serializer_getInstance_42}); setMetadataFor(Companion_45, 'Companion', objectMeta); setMetadataFor($serializer_43, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(AssignmentSubmitterSummary, 'AssignmentSubmitterSummary', classMeta, VOID, VOID, AssignmentSubmitterSummary, VOID, {0: $serializer_getInstance_43}); setMetadataFor(Companion_46, 'Companion', objectMeta); setMetadataFor($serializer_44, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(AverageCourseAssignmentMark, 'AverageCourseAssignmentMark', classMeta, VOID, VOID, AverageCourseAssignmentMark, VOID, {0: $serializer_getInstance_44}); setMetadataFor(Companion_47, 'Companion', objectMeta); setMetadataFor(CacheLockJoin, 'CacheLockJoin', classMeta); setMetadataFor(Companion_48, 'Companion', objectMeta); setMetadataFor($serializer_45, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Clazz, 'Clazz', classMeta, VOID, VOID, Clazz, VOID, {0: $serializer_getInstance_45}); setMetadataFor(Companion_49, 'Companion', objectMeta); setMetadataFor($serializer_46, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzAssignment, 'ClazzAssignment', classMeta, VOID, VOID, ClazzAssignment, VOID, {0: $serializer_getInstance_46}); setMetadataFor(Companion_50, 'Companion', objectMeta); setMetadataFor($serializer_47, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzAssignmentCourseBlockAndSubmitterUid, 'ClazzAssignmentCourseBlockAndSubmitterUid', classMeta, VOID, VOID, ClazzAssignmentCourseBlockAndSubmitterUid, VOID, {0: $serializer_getInstance_47}); setMetadataFor(Companion_51, 'Companion', objectMeta); setMetadataFor($serializer_48, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzEnrolment, 'ClazzEnrolment', classMeta, VOID, VOID, ClazzEnrolment, VOID, {0: $serializer_getInstance_48}); setMetadataFor(Companion_52, 'Companion', objectMeta); setMetadataFor($serializer_49, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzEnrolmentWithLeavingReason, 'ClazzEnrolmentWithLeavingReason', classMeta, ClazzEnrolment, VOID, ClazzEnrolmentWithLeavingReason, VOID, {0: $serializer_getInstance_49}); setMetadataFor(Companion_53, 'Companion', objectMeta); setMetadataFor($serializer_50, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzLog, 'ClazzLog', classMeta, VOID, VOID, ClazzLog, VOID, {0: $serializer_getInstance_50}); setMetadataFor(Companion_54, 'Companion', objectMeta); setMetadataFor($serializer_51, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzLogAttendanceRecord, 'ClazzLogAttendanceRecord', classMeta, VOID, VOID, ClazzLogAttendanceRecord, VOID, {0: $serializer_getInstance_51}); setMetadataFor(Companion_55, 'Companion', objectMeta); setMetadataFor($serializer_52, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzWithHolidayCalendarAndAndTerminology, 'ClazzWithHolidayCalendarAndAndTerminology', classMeta, Clazz, VOID, ClazzWithHolidayCalendarAndAndTerminology, VOID, {0: $serializer_getInstance_52}); setMetadataFor(Companion_56, 'Companion', objectMeta); setMetadataFor($serializer_53, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzWithListDisplayDetails, 'ClazzWithListDisplayDetails', classMeta, Clazz, VOID, ClazzWithListDisplayDetails, VOID, {0: $serializer_getInstance_53}); setMetadataFor(Companion_57, 'Companion', objectMeta); setMetadataFor($serializer_54, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Comments, 'Comments', classMeta, VOID, VOID, Comments, VOID, {0: $serializer_getInstance_54}); setMetadataFor(Companion_58, 'Companion', objectMeta); setMetadataFor($serializer_55, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentCategory, 'ContentCategory', classMeta, VOID, VOID, ContentCategory, VOID, {0: $serializer_getInstance_55}); setMetadataFor(Companion_59, 'Companion', objectMeta); setMetadataFor($serializer_56, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentCategorySchema, 'ContentCategorySchema', classMeta, VOID, VOID, ContentCategorySchema, VOID, {0: $serializer_getInstance_56}); setMetadataFor(Companion_60, 'Companion', objectMeta); setMetadataFor($serializer_57, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntry, 'ContentEntry', classMeta, VOID, VOID, ContentEntry, VOID, {0: $serializer_getInstance_57}); setMetadataFor(ContentEntryButtonModel, 'ContentEntryButtonModel', classMeta, VOID, VOID, ContentEntryButtonModel); setMetadataFor(Companion_61, 'Companion', objectMeta); setMetadataFor($serializer_58, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryContentCategoryJoin, 'ContentEntryContentCategoryJoin', classMeta, VOID, VOID, ContentEntryContentCategoryJoin, VOID, {0: $serializer_getInstance_58}); setMetadataFor(Companion_62, 'Companion', objectMeta); setMetadataFor($serializer_59, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryImportJob, 'ContentEntryImportJob', classMeta, VOID, VOID, ContentEntryImportJob, VOID, {0: $serializer_getInstance_59}); setMetadataFor(Companion_63, 'Companion', objectMeta); setMetadataFor($serializer_60, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryParentChildJoin, 'ContentEntryParentChildJoin', classMeta, VOID, VOID, ContentEntryParentChildJoin, VOID, {0: $serializer_getInstance_60}); setMetadataFor(Companion_64, 'Companion', objectMeta); setMetadataFor($serializer_61, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryPicture, 'ContentEntryPicture', classMeta, VOID, VOID, ContentEntryPicture, VOID, {0: $serializer_getInstance_61}); setMetadataFor(Companion_65, 'Companion', objectMeta); setMetadataFor($serializer_62, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryPicture2, 'ContentEntryPicture2', classMeta, VOID, VOID, ContentEntryPicture2, VOID, {0: $serializer_getInstance_62}); setMetadataFor(Companion_66, 'Companion', objectMeta); setMetadataFor($serializer_63, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryRelatedEntryJoin, 'ContentEntryRelatedEntryJoin', classMeta, VOID, VOID, ContentEntryRelatedEntryJoin, VOID, {0: $serializer_getInstance_63}); setMetadataFor(Companion_67, 'Companion', objectMeta); setMetadataFor($serializer_64, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryRelatedEntryJoinWithLanguage, 'ContentEntryRelatedEntryJoinWithLanguage', classMeta, ContentEntryRelatedEntryJoin, VOID, ContentEntryRelatedEntryJoinWithLanguage, VOID, {0: $serializer_getInstance_64}); setMetadataFor(Companion_68, 'Companion', objectMeta); setMetadataFor($serializer_65, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryStatementScoreProgress, 'ContentEntryStatementScoreProgress', classMeta, VOID, VOID, ContentEntryStatementScoreProgress, VOID, {0: $serializer_getInstance_65}); setMetadataFor(Companion_69, 'Companion', objectMeta); setMetadataFor($serializer_66, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryVersion, 'ContentEntryVersion', classMeta, VOID, VOID, ContentEntryVersion, VOID, {0: $serializer_getInstance_66}); setMetadataFor(Companion_70, 'Companion', objectMeta); setMetadataFor($serializer_67, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryWithLanguage, 'ContentEntryWithLanguage', classMeta, ContentEntry, VOID, ContentEntryWithLanguage, VOID, {0: $serializer_getInstance_67}); setMetadataFor(Companion_71, 'Companion', objectMeta); setMetadataFor($serializer_68, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentJob, 'ContentJob', classMeta, VOID, VOID, ContentJob, VOID, {0: $serializer_getInstance_68}); setMetadataFor(Companion_72, 'Companion', objectMeta); setMetadataFor($serializer_69, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseAssignmentMark, 'CourseAssignmentMark', classMeta, VOID, VOID, CourseAssignmentMark, VOID, {0: $serializer_getInstance_69}); setMetadataFor(Companion_73, 'Companion', objectMeta); setMetadataFor($serializer_70, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseAssignmentSubmission, 'CourseAssignmentSubmission', classMeta, VOID, VOID, CourseAssignmentSubmission, VOID, {0: $serializer_getInstance_70}); setMetadataFor(Companion_74, 'Companion', objectMeta); setMetadataFor($serializer_71, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseAssignmentSubmissionFile, 'CourseAssignmentSubmissionFile', classMeta, VOID, VOID, CourseAssignmentSubmissionFile, VOID, {0: $serializer_getInstance_71}); setMetadataFor(Companion_75, 'Companion', objectMeta); setMetadataFor($serializer_72, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlock, 'CourseBlock', classMeta, VOID, VOID, CourseBlock, VOID, {0: $serializer_getInstance_72}); setMetadataFor(Companion_76, 'Companion', objectMeta); setMetadataFor($serializer_73, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlockPicture, 'CourseBlockPicture', classMeta, VOID, VOID, CourseBlockPicture, VOID, {0: $serializer_getInstance_73}); setMetadataFor(Companion_77, 'Companion', objectMeta); setMetadataFor($serializer_74, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseGroupMember, 'CourseGroupMember', classMeta, VOID, VOID, CourseGroupMember, VOID, {0: $serializer_getInstance_74}); setMetadataFor(Companion_78, 'Companion', objectMeta); setMetadataFor($serializer_75, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseGroupMemberAndName, 'CourseGroupMemberAndName', classMeta, VOID, VOID, CourseGroupMemberAndName, VOID, {0: $serializer_getInstance_75}); setMetadataFor(Companion_79, 'Companion', objectMeta); setMetadataFor($serializer_76, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseGroupSet, 'CourseGroupSet', classMeta, VOID, VOID, CourseGroupSet, VOID, {0: $serializer_getInstance_76}); setMetadataFor(Companion_80, 'Companion', objectMeta); setMetadataFor($serializer_77, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CoursePermission, 'CoursePermission', classMeta, VOID, VOID, CoursePermission, VOID, {0: $serializer_getInstance_77}); setMetadataFor(Companion_81, 'Companion', objectMeta); setMetadataFor($serializer_78, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CoursePicture, 'CoursePicture', classMeta, VOID, VOID, CoursePicture, VOID, {0: $serializer_getInstance_78}); setMetadataFor(Companion_82, 'Companion', objectMeta); setMetadataFor($serializer_79, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseTerminology, 'CourseTerminology', classMeta, VOID, VOID, CourseTerminology, VOID, {0: $serializer_getInstance_79}); setMetadataFor(Companion_83, 'Companion', objectMeta); setMetadataFor($serializer_80, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DeletedItem, 'DeletedItem', classMeta, VOID, VOID, DeletedItem, VOID, {0: $serializer_getInstance_80}); setMetadataFor(Companion_84, 'Companion', objectMeta); setMetadataFor($serializer_81, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DiscussionPost, 'DiscussionPost', classMeta, VOID, VOID, DiscussionPost, VOID, {0: $serializer_getInstance_81}); setMetadataFor(Companion_85, 'Companion', objectMeta); setMetadataFor($serializer_82, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DiscussionPostWithDetails, 'DiscussionPostWithDetails', classMeta, DiscussionPost, VOID, DiscussionPostWithDetails, VOID, {0: $serializer_getInstance_82}); setMetadataFor(Companion_86, 'Companion', objectMeta); setMetadataFor($serializer_83, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(EnrolmentRequest, 'EnrolmentRequest', classMeta, VOID, VOID, EnrolmentRequest, VOID, {0: $serializer_getInstance_83}); setMetadataFor(ErrorReport, 'ErrorReport', classMeta, VOID, VOID, ErrorReport); setMetadataFor(Companion_87, 'Companion', objectMeta); setMetadataFor($serializer_84, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ExternalAppPermission, 'ExternalAppPermission', classMeta, VOID, VOID, ExternalAppPermission, VOID, {0: $serializer_getInstance_84}); setMetadataFor(Companion_88, 'Companion', objectMeta); setMetadataFor($serializer_85, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Holiday, 'Holiday', classMeta, VOID, VOID, Holiday, VOID, {0: $serializer_getInstance_85}); setMetadataFor(Companion_89, 'Companion', objectMeta); setMetadataFor($serializer_86, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(HolidayCalendar, 'HolidayCalendar', classMeta, VOID, VOID, HolidayCalendar, VOID, {0: $serializer_getInstance_86}); setMetadataFor(Companion_90, 'Companion', objectMeta); setMetadataFor($serializer_87, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(HolidayCalendarWithNumEntries, 'HolidayCalendarWithNumEntries', classMeta, HolidayCalendar, VOID, HolidayCalendarWithNumEntries, VOID, {0: $serializer_getInstance_87}); setMetadataFor(Companion_91, 'Companion', objectMeta); setMetadataFor($serializer_88, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Language, 'Language', classMeta, VOID, VOID, Language, VOID, {0: $serializer_getInstance_88}); setMetadataFor(Companion_92, 'Companion', objectMeta); setMetadataFor($serializer_89, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(LanguageVariant, 'LanguageVariant', classMeta, VOID, VOID, LanguageVariant, VOID, {0: $serializer_getInstance_89}); setMetadataFor(Companion_93, 'Companion', objectMeta); setMetadataFor($serializer_90, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(LeavingReason, 'LeavingReason', classMeta, VOID, VOID, LeavingReason, VOID, {0: $serializer_getInstance_90}); setMetadataFor(Companion_94, 'Companion', objectMeta); setMetadataFor($serializer_91, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Message, 'Message', classMeta, VOID, VOID, Message, VOID, {0: $serializer_getInstance_91}); setMetadataFor(Companion_95, 'Companion', objectMeta); setMetadataFor($serializer_92, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(OfflineItem, 'OfflineItem', classMeta, VOID, VOID, OfflineItem, VOID, {0: $serializer_getInstance_92}); setMetadataFor(Companion_96, 'Companion', objectMeta); setMetadataFor($serializer_93, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PeerReviewerAllocation, 'PeerReviewerAllocation', classMeta, VOID, VOID, PeerReviewerAllocation, VOID, {0: $serializer_getInstance_93}); setMetadataFor(Companion_97, 'Companion', objectMeta); setMetadataFor($serializer_94, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Person, 'Person', classMeta, VOID, VOID, Person, VOID, {0: $serializer_getInstance_94}); setMetadataFor(Companion_98, 'Companion', objectMeta); setMetadataFor($serializer_95, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonAndDisplayDetail, 'PersonAndDisplayDetail', classMeta, VOID, VOID, PersonAndDisplayDetail, VOID, {0: $serializer_getInstance_95}); setMetadataFor(Companion_99, 'Companion', objectMeta); setMetadataFor($serializer_96, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonAuth, 'PersonAuth', classMeta, VOID, VOID, PersonAuth, VOID, {0: $serializer_getInstance_96}); setMetadataFor(Companion_100, 'Companion', objectMeta); setMetadataFor(PersonAuth2, 'PersonAuth2', classMeta, VOID, VOID, PersonAuth2); setMetadataFor(Companion_101, 'Companion', objectMeta); setMetadataFor($serializer_97, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonGroup, 'PersonGroup', classMeta, VOID, VOID, PersonGroup, VOID, {0: $serializer_getInstance_97}); setMetadataFor(Companion_102, 'Companion', objectMeta); setMetadataFor($serializer_98, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonGroupMember, 'PersonGroupMember', classMeta, VOID, VOID, PersonGroupMember, VOID, {0: $serializer_getInstance_98}); setMetadataFor(Companion_103, 'Companion', objectMeta); setMetadataFor($serializer_99, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonParentJoin, 'PersonParentJoin', classMeta, VOID, VOID, PersonParentJoin, VOID, {0: $serializer_getInstance_99}); setMetadataFor(Companion_104, 'Companion', objectMeta); setMetadataFor($serializer_100, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonParentJoinAndMinorPerson, 'PersonParentJoinAndMinorPerson', classMeta, VOID, VOID, PersonParentJoinAndMinorPerson, VOID, {0: $serializer_getInstance_100}); setMetadataFor(Companion_105, 'Companion', objectMeta); setMetadataFor($serializer_101, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonPicture, 'PersonPicture', classMeta, VOID, VOID, PersonPicture, VOID, {0: $serializer_getInstance_101}); setMetadataFor(Companion_106, 'Companion', objectMeta); setMetadataFor($serializer_102, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Report, 'Report', classMeta, VOID, VOID, Report, VOID, {0: $serializer_getInstance_102}); setMetadataFor(Companion_107, 'Companion', objectMeta); setMetadataFor($serializer_103, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ReportQueryResult, 'ReportQueryResult', classMeta, VOID, VOID, ReportQueryResult, VOID, {0: $serializer_getInstance_103}); setMetadataFor(Companion_108, 'Companion', objectMeta); setMetadataFor($serializer_104, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Schedule, 'Schedule', classMeta, VOID, VOID, Schedule, VOID, {0: $serializer_getInstance_104}); setMetadataFor(Companion_109, 'Companion', objectMeta); setMetadataFor($serializer_105, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ScopedGrant, 'ScopedGrant', classMeta, VOID, VOID, ScopedGrant, VOID, {0: $serializer_getInstance_105}); setMetadataFor(Companion_110, 'Companion', objectMeta); setMetadataFor($serializer_106, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Site, 'Site', classMeta, VOID, VOID, Site, VOID, {0: $serializer_getInstance_106}); setMetadataFor(Companion_111, 'Companion', objectMeta); setMetadataFor($serializer_107, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(SiteTerms, 'SiteTerms', classMeta, VOID, VOID, SiteTerms, VOID, {0: $serializer_getInstance_107}); setMetadataFor(Companion_112, 'Companion', objectMeta); setMetadataFor($serializer_108, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(SiteTermsWithLanguage, 'SiteTermsWithLanguage', classMeta, SiteTerms, VOID, SiteTermsWithLanguage, VOID, {0: $serializer_getInstance_108}); setMetadataFor(Companion_113, 'Companion', objectMeta); setMetadataFor($serializer_109, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(StudentResult, 'StudentResult', classMeta, VOID, VOID, StudentResult, VOID, {0: $serializer_getInstance_109}); setMetadataFor(Companion_114, 'Companion', objectMeta); setMetadataFor($serializer_110, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(SystemPermission, 'SystemPermission', classMeta, VOID, VOID, SystemPermission, VOID, {0: $serializer_getInstance_110}); setMetadataFor(Companion_115, 'Companion', objectMeta); setMetadataFor($serializer_111, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(TransferJob, 'TransferJob', classMeta, VOID, VOID, TransferJob, VOID, {0: $serializer_getInstance_111}); setMetadataFor(Companion_116, 'Companion', objectMeta); setMetadataFor($serializer_112, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(TransferJobError, 'TransferJobError', classMeta, VOID, VOID, TransferJobError, VOID, {0: $serializer_getInstance_112}); setMetadataFor(Companion_117, 'Companion', objectMeta); setMetadataFor($serializer_113, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(TransferJobItem, 'TransferJobItem', classMeta, VOID, VOID, TransferJobItem, VOID, {0: $serializer_getInstance_113}); setMetadataFor(Companion_118, 'Companion', objectMeta); setMetadataFor($serializer_114, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(UmAccount, 'UmAccount', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_114}); setMetadataFor(Companion_119, 'Companion', objectMeta); setMetadataFor($serializer_115, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(UserSession, 'UserSession', classMeta, VOID, VOID, UserSession, VOID, {0: $serializer_getInstance_115}); setMetadataFor(UserSessionAndPerson, 'UserSessionAndPerson', classMeta, VOID, VOID, UserSessionAndPerson); setMetadataFor(Companion_120, 'Companion', objectMeta); setMetadataFor($serializer_116, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ActivityEntity, 'ActivityEntity', classMeta, VOID, VOID, ActivityEntity, VOID, {0: $serializer_getInstance_116}); setMetadataFor(Companion_121, 'Companion', objectMeta); setMetadataFor(ActivityExtensionEntity, 'ActivityExtensionEntity', classMeta, VOID, VOID, ActivityExtensionEntity); setMetadataFor(Companion_122, 'Companion', objectMeta); setMetadataFor($serializer_117, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ActivityInteractionEntity, 'ActivityInteractionEntity', classMeta, VOID, VOID, ActivityInteractionEntity, VOID, {0: $serializer_getInstance_117}); setMetadataFor(Companion_123, 'Companion', objectMeta); setMetadataFor($serializer_118, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ActivityLangMapEntry, 'ActivityLangMapEntry', classMeta, VOID, VOID, ActivityLangMapEntry, VOID, {0: $serializer_getInstance_118}); setMetadataFor(Companion_124, 'Companion', objectMeta); setMetadataFor($serializer_119, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ActorEntity, 'ActorEntity', classMeta, VOID, VOID, ActorEntity, VOID, {0: $serializer_getInstance_119}); setMetadataFor(Companion_125, 'Companion', objectMeta); setMetadataFor($serializer_120, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(GroupMemberActorJoin, 'GroupMemberActorJoin', classMeta, VOID, VOID, GroupMemberActorJoin, VOID, {0: $serializer_getInstance_120}); setMetadataFor(Companion_126, 'Companion', objectMeta); setMetadataFor($serializer_121, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(StateDeleteCommand, 'StateDeleteCommand', classMeta, VOID, VOID, StateDeleteCommand, VOID, {0: $serializer_getInstance_121}); setMetadataFor(Companion_127, 'Companion', objectMeta); setMetadataFor($serializer_122, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(StateEntity, 'StateEntity', classMeta, VOID, VOID, StateEntity, VOID, {0: $serializer_getInstance_122}); setMetadataFor(Companion_128, 'Companion', objectMeta); setMetadataFor(StatementContextActivityJoin, 'StatementContextActivityJoin', classMeta, VOID, VOID, StatementContextActivityJoin); setMetadataFor(Companion_129, 'Companion', objectMeta); setMetadataFor($serializer_123, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(StatementEntity, 'StatementEntity', classMeta, VOID, VOID, StatementEntity, VOID, {0: $serializer_getInstance_123}); setMetadataFor(Companion_130, 'Companion', objectMeta); setMetadataFor($serializer_124, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(StatementEntityJson, 'StatementEntityJson', classMeta, VOID, VOID, StatementEntityJson, VOID, {0: $serializer_getInstance_124}); setMetadataFor(Companion_131, 'Companion', objectMeta); setMetadataFor($serializer_125, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(VerbEntity, 'VerbEntity', classMeta, VOID, VOID, VerbEntity, VOID, {0: $serializer_getInstance_125}); setMetadataFor(Companion_132, 'Companion', objectMeta); setMetadataFor($serializer_126, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(VerbLangMapEntry, 'VerbLangMapEntry', classMeta, VOID, VOID, VerbLangMapEntry, VOID, {0: $serializer_getInstance_126}); setMetadataFor(XapiEntityObjectTypeFlags, 'XapiEntityObjectTypeFlags', objectMeta); setMetadataFor(Companion_133, 'Companion', objectMeta); setMetadataFor($serializer_127, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiSessionEntity, 'XapiSessionEntity', classMeta, VOID, VOID, XapiSessionEntity, VOID, {0: $serializer_getInstance_127}); //endregion function UmAppDatabase() { RoomDatabase.call(this); } function UmAppDatabaseJsImplementations() { UmAppDatabaseJsImplementations_instance = this; DoorJsImplClasses.call(this); this.j7h_1 = getKClass(UmAppDatabase); this.k7h_1 = getKClass(UmAppDatabase_JdbcImpl); this.l7h_1 = getKClass(UmAppDatabase_DoorWrapper); this.m7h_1 = getKClass(UmAppDatabase_Repo); this.n7h_1 = new UmAppDatabase_DoorMetadata(); } protoOf(UmAppDatabaseJsImplementations).h6z = function () { return this.j7h_1; }; protoOf(UmAppDatabaseJsImplementations).i6z = function () { return this.k7h_1; }; protoOf(UmAppDatabaseJsImplementations).k6z = function () { return this.l7h_1; }; protoOf(UmAppDatabaseJsImplementations).j6z = function () { return this.m7h_1; }; protoOf(UmAppDatabaseJsImplementations).f72 = function () { return this.n7h_1; }; var UmAppDatabaseJsImplementations_instance; function UmAppDatabaseJsImplementations_getInstance() { if (UmAppDatabaseJsImplementations_instance == null) new UmAppDatabaseJsImplementations(); return UmAppDatabaseJsImplementations_instance; } function UmAppDatabase_DoorMetadata$replicateEntities$delegate$lambda() { var tmp = listOf('clazzLogUid'); var tmp_0 = listOf_0([new ReplicationFieldMetaData('clazzLogClazzUid', -5, false), new ReplicationFieldMetaData('logDate', -5, false), new ReplicationFieldMetaData('timeRecorded', -5, false), new ReplicationFieldMetaData('clazzLogDone', 16, false), new ReplicationFieldMetaData('cancellationNote', -1, true), new ReplicationFieldMetaData('clazzLogCancelled', 16, false), new ReplicationFieldMetaData('clazzLogNumPresent', 4, false), new ReplicationFieldMetaData('clazzLogNumAbsent', 4, false), new ReplicationFieldMetaData('clazzLogNumPartial', 4, false), new ReplicationFieldMetaData('clazzLogScheduleUid', -5, false), new ReplicationFieldMetaData('clazzLogStatusFlag', 4, false), new ReplicationFieldMetaData('clazzLogMSQN', -5, false), new ReplicationFieldMetaData('clazzLogLCSN', -5, false), new ReplicationFieldMetaData('clazzLogLCB', 4, false), new ReplicationFieldMetaData('clazzLogLastChangedTime', -5, false), new ReplicationFieldMetaData('clazzLogUid', -5, false)]); var tmp_1 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_2 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_3 = [Event_INSERT_getInstance()]; var tmp_4 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_5 = ['REPLACE INTO ClazzLog (clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime) VALUES( CAST(NEW.clazzLogUid AS BIGINT), CAST(NEW.clazzLogClazzUid AS BIGINT), CAST(NEW.logDate AS BIGINT), CAST(NEW.timeRecorded AS BIGINT), NEW.clazzLogDone, NEW.cancellationNote, NEW.clazzLogCancelled, NEW.clazzLogNumPresent, NEW.clazzLogNumAbsent, NEW.clazzLogNumPartial, CAST(NEW.clazzLogScheduleUid AS BIGINT), NEW.clazzLogStatusFlag, CAST(NEW.clazzLogMSQN AS BIGINT), CAST(NEW.clazzLogLCSN AS BIGINT), NEW.clazzLogLCB, CAST(NEW.clazzLogLastChangedTime AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$8 = ['INSERT INTO ClazzLog (clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime) VALUES( CAST(NEW.clazzLogUid AS BIGINT), CAST(NEW.clazzLogClazzUid AS BIGINT), CAST(NEW.logDate AS BIGINT), CAST(NEW.timeRecorded AS BIGINT), NEW.clazzLogDone, NEW.cancellationNote, NEW.clazzLogCancelled, NEW.clazzLogNumPresent, NEW.clazzLogNumAbsent, NEW.clazzLogNumPartial, CAST(NEW.clazzLogScheduleUid AS BIGINT), NEW.clazzLogStatusFlag, CAST(NEW.clazzLogMSQN AS BIGINT), CAST(NEW.clazzLogLCSN AS BIGINT), NEW.clazzLogLCB, CAST(NEW.clazzLogLastChangedTime AS BIGINT)) ON CONFLICT(clazzLogUid) DO UPDATE SET clazzLogClazzUid = NEW.clazzLogClazzUid, logDate = NEW.logDate, timeRecorded = NEW.timeRecorded, clazzLogDone = NEW.clazzLogDone, cancellationNote = NEW.cancellationNote, clazzLogCancelled = NEW.clazzLogCancelled, clazzLogNumPresent = NEW.clazzLogNumPresent, clazzLogNumAbsent = NEW.clazzLogNumAbsent, clazzLogNumPartial = NEW.clazzLogNumPartial, clazzLogScheduleUid = NEW.clazzLogScheduleUid, clazzLogStatusFlag = NEW.clazzLogStatusFlag, clazzLogMSQN = NEW.clazzLogMSQN, clazzLogLCSN = NEW.clazzLogLCSN, clazzLogLCB = NEW.clazzLogLCB, clazzLogLastChangedTime = NEW.clazzLogLastChangedTime ']; var tmp_6 = to(14, new ReplicationEntityMetaData(14, 'ClazzLog', 'ClazzLog_ReceiveView', tmp, 'clazzLogLastChangedTime', tmp_0, 1000, tmp_1, listOf(new Trigger('clazzlog_remote_insert', tmp_2, tmp_3, tmp_4, tmp_5, tmp$ret$8, 'SELECT \n CAST(NEW.clazzLogLastChangedTime AS BIGINT) >\n COALESCE((SELECT ClazzLog_Existing.clazzLogLastChangedTime\n FROM ClazzLog ClazzLog_Existing\n WHERE ClazzLog_Existing.clazzLogUid = NEW.clazzLogUid), 0)\n ', 'SELECT \n CAST(NEW.clazzLogLastChangedTime AS BIGINT) >\n COALESCE((SELECT ClazzLog_Existing.clazzLogLastChangedTime\n FROM ClazzLog ClazzLog_Existing\n WHERE ClazzLog_Existing.clazzLogUid = NEW.clazzLogUid), 0)\n ')))); var tmp_7 = listOf('clazzLogAttendanceRecordUid'); var tmp_8 = listOf_0([new ReplicationFieldMetaData('clazzLogAttendanceRecordClazzLogUid', -5, false), new ReplicationFieldMetaData('clazzLogAttendanceRecordPersonUid', -5, false), new ReplicationFieldMetaData('attendanceStatus', 4, false), new ReplicationFieldMetaData('clazzLogAttendanceRecordMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('clazzLogAttendanceRecordLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('clazzLogAttendanceRecordLastChangedBy', 4, false), new ReplicationFieldMetaData('clazzLogAttendanceRecordLastChangedTime', -5, false), new ReplicationFieldMetaData('clazzLogAttendanceRecordUid', -5, false)]); var tmp_9 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_10 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_11 = [Event_INSERT_getInstance()]; var tmp_12 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_13 = ['REPLACE INTO ClazzLogAttendanceRecord (clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime) VALUES( CAST(NEW.clazzLogAttendanceRecordUid AS BIGINT), CAST(NEW.clazzLogAttendanceRecordClazzLogUid AS BIGINT), CAST(NEW.clazzLogAttendanceRecordPersonUid AS BIGINT), NEW.attendanceStatus, CAST(NEW.clazzLogAttendanceRecordMasterChangeSeqNum AS BIGINT), CAST(NEW.clazzLogAttendanceRecordLocalChangeSeqNum AS BIGINT), NEW.clazzLogAttendanceRecordLastChangedBy, CAST(NEW.clazzLogAttendanceRecordLastChangedTime AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$17 = ['INSERT INTO ClazzLogAttendanceRecord (clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime) VALUES( CAST(NEW.clazzLogAttendanceRecordUid AS BIGINT), CAST(NEW.clazzLogAttendanceRecordClazzLogUid AS BIGINT), CAST(NEW.clazzLogAttendanceRecordPersonUid AS BIGINT), NEW.attendanceStatus, CAST(NEW.clazzLogAttendanceRecordMasterChangeSeqNum AS BIGINT), CAST(NEW.clazzLogAttendanceRecordLocalChangeSeqNum AS BIGINT), NEW.clazzLogAttendanceRecordLastChangedBy, CAST(NEW.clazzLogAttendanceRecordLastChangedTime AS BIGINT)) ON CONFLICT(clazzLogAttendanceRecordUid) DO UPDATE SET clazzLogAttendanceRecordClazzLogUid = NEW.clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid = NEW.clazzLogAttendanceRecordPersonUid, attendanceStatus = NEW.attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum = NEW.clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum = NEW.clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy = NEW.clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime = NEW.clazzLogAttendanceRecordLastChangedTime ']; var tmp_14 = to(15, new ReplicationEntityMetaData(15, 'ClazzLogAttendanceRecord', 'ClazzLogAttendanceRecord_ReceiveView', tmp_7, 'clazzLogAttendanceRecordLastChangedTime', tmp_8, 1000, tmp_9, listOf(new Trigger('clazzlogattendancerecord_remote_insert', tmp_10, tmp_11, tmp_12, tmp_13, tmp$ret$17, 'SELECT \n CAST(NEW.clazzLogAttendanceRecordLastChangedTime AS BIGINT) >\n COALESCE((SELECT ClazzLogAttendanceRecord_Existing.clazzLogAttendanceRecordLastChangedTime\n FROM ClazzLogAttendanceRecord ClazzLogAttendanceRecord_Existing\n WHERE ClazzLogAttendanceRecord_Existing.clazzLogAttendanceRecordUid = NEW.clazzLogAttendanceRecordUid), 0)\n ', 'SELECT \n CAST(NEW.clazzLogAttendanceRecordLastChangedTime AS BIGINT) >\n COALESCE((SELECT ClazzLogAttendanceRecord_Existing.clazzLogAttendanceRecordLastChangedTime\n FROM ClazzLogAttendanceRecord ClazzLogAttendanceRecord_Existing\n WHERE ClazzLogAttendanceRecord_Existing.clazzLogAttendanceRecordUid = NEW.clazzLogAttendanceRecordUid), 0)\n ')))); var tmp_15 = listOf('scheduleUid'); var tmp_16 = listOf_0([new ReplicationFieldMetaData('sceduleStartTime', -5, false), new ReplicationFieldMetaData('scheduleEndTime', -5, false), new ReplicationFieldMetaData('scheduleDay', 4, false), new ReplicationFieldMetaData('scheduleMonth', 4, false), new ReplicationFieldMetaData('scheduleFrequency', 4, false), new ReplicationFieldMetaData('umCalendarUid', -5, false), new ReplicationFieldMetaData('scheduleClazzUid', -5, false), new ReplicationFieldMetaData('scheduleMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('scheduleLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('scheduleLastChangedBy', 4, false), new ReplicationFieldMetaData('scheduleLastChangedTime', -5, false), new ReplicationFieldMetaData('scheduleActive', 16, false), new ReplicationFieldMetaData('scheduleUid', -5, false)]); var tmp_17 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_18 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_19 = [Event_INSERT_getInstance()]; var tmp_20 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_21 = ['REPLACE INTO Schedule (scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive) VALUES( CAST(NEW.scheduleUid AS BIGINT), CAST(NEW.sceduleStartTime AS BIGINT), CAST(NEW.scheduleEndTime AS BIGINT), NEW.scheduleDay, NEW.scheduleMonth, NEW.scheduleFrequency, CAST(NEW.umCalendarUid AS BIGINT), CAST(NEW.scheduleClazzUid AS BIGINT), CAST(NEW.scheduleMasterChangeSeqNum AS BIGINT), CAST(NEW.scheduleLocalChangeSeqNum AS BIGINT), NEW.scheduleLastChangedBy, CAST(NEW.scheduleLastChangedTime AS BIGINT), NEW.scheduleActive) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$26 = ['INSERT INTO Schedule (scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive) VALUES( CAST(NEW.scheduleUid AS BIGINT), CAST(NEW.sceduleStartTime AS BIGINT), CAST(NEW.scheduleEndTime AS BIGINT), NEW.scheduleDay, NEW.scheduleMonth, NEW.scheduleFrequency, CAST(NEW.umCalendarUid AS BIGINT), CAST(NEW.scheduleClazzUid AS BIGINT), CAST(NEW.scheduleMasterChangeSeqNum AS BIGINT), CAST(NEW.scheduleLocalChangeSeqNum AS BIGINT), NEW.scheduleLastChangedBy, CAST(NEW.scheduleLastChangedTime AS BIGINT), NEW.scheduleActive) ON CONFLICT(scheduleUid) DO UPDATE SET sceduleStartTime = NEW.sceduleStartTime, scheduleEndTime = NEW.scheduleEndTime, scheduleDay = NEW.scheduleDay, scheduleMonth = NEW.scheduleMonth, scheduleFrequency = NEW.scheduleFrequency, umCalendarUid = NEW.umCalendarUid, scheduleClazzUid = NEW.scheduleClazzUid, scheduleMasterChangeSeqNum = NEW.scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum = NEW.scheduleLocalChangeSeqNum, scheduleLastChangedBy = NEW.scheduleLastChangedBy, scheduleLastChangedTime = NEW.scheduleLastChangedTime, scheduleActive = NEW.scheduleActive ']; var tmp_22 = to(21, new ReplicationEntityMetaData(21, 'Schedule', 'Schedule_ReceiveView', tmp_15, 'scheduleLastChangedTime', tmp_16, 1000, tmp_17, listOf(new Trigger('schedule_remote_insert', tmp_18, tmp_19, tmp_20, tmp_21, tmp$ret$26, 'SELECT \n CAST(NEW.scheduleLastChangedTime AS BIGINT) >\n COALESCE((SELECT Schedule_Existing.scheduleLastChangedTime\n FROM Schedule Schedule_Existing\n WHERE Schedule_Existing.scheduleUid = NEW.scheduleUid), 0)\n ', 'SELECT \n CAST(NEW.scheduleLastChangedTime AS BIGINT) >\n COALESCE((SELECT Schedule_Existing.scheduleLastChangedTime\n FROM Schedule Schedule_Existing\n WHERE Schedule_Existing.scheduleUid = NEW.scheduleUid), 0)\n ')))); var tmp_23 = listOf('umCalendarUid'); var tmp_24 = listOf_0([new ReplicationFieldMetaData('umCalendarName', -1, true), new ReplicationFieldMetaData('umCalendarCategory', 4, false), new ReplicationFieldMetaData('umCalendarActive', 16, false), new ReplicationFieldMetaData('umCalendarMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('umCalendarLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('umCalendarLastChangedBy', 4, false), new ReplicationFieldMetaData('umCalendarLct', -5, false), new ReplicationFieldMetaData('umCalendarUid', -5, false)]); var tmp_25 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_26 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_27 = [Event_INSERT_getInstance()]; var tmp_28 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_29 = ['REPLACE INTO HolidayCalendar (umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct) VALUES( CAST(NEW.umCalendarUid AS BIGINT), NEW.umCalendarName, NEW.umCalendarCategory, NEW.umCalendarActive, CAST(NEW.umCalendarMasterChangeSeqNum AS BIGINT), CAST(NEW.umCalendarLocalChangeSeqNum AS BIGINT), NEW.umCalendarLastChangedBy, CAST(NEW.umCalendarLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$35 = ['INSERT INTO HolidayCalendar (umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct) VALUES( CAST(NEW.umCalendarUid AS BIGINT), NEW.umCalendarName, NEW.umCalendarCategory, NEW.umCalendarActive, CAST(NEW.umCalendarMasterChangeSeqNum AS BIGINT), CAST(NEW.umCalendarLocalChangeSeqNum AS BIGINT), NEW.umCalendarLastChangedBy, CAST(NEW.umCalendarLct AS BIGINT)) ON CONFLICT(umCalendarUid) DO UPDATE SET umCalendarName = NEW.umCalendarName, umCalendarCategory = NEW.umCalendarCategory, umCalendarActive = NEW.umCalendarActive, umCalendarMasterChangeSeqNum = NEW.umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum = NEW.umCalendarLocalChangeSeqNum, umCalendarLastChangedBy = NEW.umCalendarLastChangedBy, umCalendarLct = NEW.umCalendarLct ']; var tmp_30 = to(28, new ReplicationEntityMetaData(28, 'HolidayCalendar', 'HolidayCalendar_ReceiveView', tmp_23, 'umCalendarLct', tmp_24, 1000, tmp_25, listOf(new Trigger('holidaycalendar_remote_insert', tmp_26, tmp_27, tmp_28, tmp_29, tmp$ret$35, 'SELECT \n CAST(NEW.umCalendarLct AS BIGINT) >\n COALESCE((SELECT HolidayCalendar_Existing.umCalendarLct\n FROM HolidayCalendar HolidayCalendar_Existing\n WHERE HolidayCalendar_Existing.umCalendarUid = NEW.umCalendarUid), 0)\n ', 'SELECT \n CAST(NEW.umCalendarLct AS BIGINT) >\n COALESCE((SELECT HolidayCalendar_Existing.umCalendarLct\n FROM HolidayCalendar HolidayCalendar_Existing\n WHERE HolidayCalendar_Existing.umCalendarUid = NEW.umCalendarUid), 0)\n ')))); var tmp_31 = listOf('holUid'); var tmp_32 = listOf_0([new ReplicationFieldMetaData('holMasterCsn', -5, false), new ReplicationFieldMetaData('holLocalCsn', -5, false), new ReplicationFieldMetaData('holLastModBy', 4, false), new ReplicationFieldMetaData('holLct', -5, false), new ReplicationFieldMetaData('holActive', 16, false), new ReplicationFieldMetaData('holHolidayCalendarUid', -5, false), new ReplicationFieldMetaData('holStartTime', -5, false), new ReplicationFieldMetaData('holEndTime', -5, false), new ReplicationFieldMetaData('holName', -1, true), new ReplicationFieldMetaData('holUid', -5, false)]); var tmp_33 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_34 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_35 = [Event_INSERT_getInstance()]; var tmp_36 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_37 = ['REPLACE INTO Holiday (holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName) VALUES( CAST(NEW.holUid AS BIGINT), CAST(NEW.holMasterCsn AS BIGINT), CAST(NEW.holLocalCsn AS BIGINT), NEW.holLastModBy, CAST(NEW.holLct AS BIGINT), NEW.holActive, CAST(NEW.holHolidayCalendarUid AS BIGINT), CAST(NEW.holStartTime AS BIGINT), CAST(NEW.holEndTime AS BIGINT), NEW.holName) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$44 = ['INSERT INTO Holiday (holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName) VALUES( CAST(NEW.holUid AS BIGINT), CAST(NEW.holMasterCsn AS BIGINT), CAST(NEW.holLocalCsn AS BIGINT), NEW.holLastModBy, CAST(NEW.holLct AS BIGINT), NEW.holActive, CAST(NEW.holHolidayCalendarUid AS BIGINT), CAST(NEW.holStartTime AS BIGINT), CAST(NEW.holEndTime AS BIGINT), NEW.holName) ON CONFLICT(holUid) DO UPDATE SET holMasterCsn = NEW.holMasterCsn, holLocalCsn = NEW.holLocalCsn, holLastModBy = NEW.holLastModBy, holLct = NEW.holLct, holActive = NEW.holActive, holHolidayCalendarUid = NEW.holHolidayCalendarUid, holStartTime = NEW.holStartTime, holEndTime = NEW.holEndTime, holName = NEW.holName ']; var tmp_38 = to(99, new ReplicationEntityMetaData(99, 'Holiday', 'Holiday_ReceiveView', tmp_31, 'holLct', tmp_32, 1000, tmp_33, listOf(new Trigger('holiday_remote_insert', tmp_34, tmp_35, tmp_36, tmp_37, tmp$ret$44, 'SELECT \n CAST(NEW.holLct AS BIGINT) >\n COALESCE((SELECT Holiday_Existing.holLct\n FROM Holiday Holiday_Existing\n WHERE Holiday_Existing.holUid = NEW.holUid), 0)\n ', 'SELECT \n CAST(NEW.holLct AS BIGINT) >\n COALESCE((SELECT Holiday_Existing.holLct\n FROM Holiday Holiday_Existing\n WHERE Holiday_Existing.holUid = NEW.holUid), 0)\n ')))); var tmp_39 = listOf('personUid'); var tmp_40 = listOf_0([new ReplicationFieldMetaData('username', -1, true), new ReplicationFieldMetaData('firstNames', -1, true), new ReplicationFieldMetaData('lastName', -1, true), new ReplicationFieldMetaData('emailAddr', -1, true), new ReplicationFieldMetaData('phoneNum', -1, true), new ReplicationFieldMetaData('gender', 4, false), new ReplicationFieldMetaData('active', 16, false), new ReplicationFieldMetaData('dateOfBirth', -5, false), new ReplicationFieldMetaData('personAddress', -1, true), new ReplicationFieldMetaData('personOrgId', -1, true), new ReplicationFieldMetaData('personGroupUid', -5, false), new ReplicationFieldMetaData('personLct', -5, false), new ReplicationFieldMetaData('personCountry', -1, true), new ReplicationFieldMetaData('personType', 4, false), new ReplicationFieldMetaData('personMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('personLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('personLastChangedBy', 4, false), new ReplicationFieldMetaData('admin', 16, false), new ReplicationFieldMetaData('personNotes', -1, true), new ReplicationFieldMetaData('fatherName', -1, true), new ReplicationFieldMetaData('fatherNumber', -1, true), new ReplicationFieldMetaData('motherName', -1, true), new ReplicationFieldMetaData('motherNum', -1, true), new ReplicationFieldMetaData('personUid', -5, false)]); var tmp_41 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_42 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_43 = [Event_INSERT_getInstance()]; var tmp_44 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_45 = ['REPLACE INTO Person (personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum) VALUES( CAST(NEW.personUid AS BIGINT), NEW.username, NEW.firstNames, NEW.lastName, NEW.emailAddr, NEW.phoneNum, NEW.gender, NEW.active, CAST(NEW.dateOfBirth AS BIGINT), NEW.personAddress, NEW.personOrgId, CAST(NEW.personGroupUid AS BIGINT), CAST(NEW.personLct AS BIGINT), NEW.personCountry, NEW.personType, CAST(NEW.personMasterChangeSeqNum AS BIGINT), CAST(NEW.personLocalChangeSeqNum AS BIGINT), NEW.personLastChangedBy, NEW.admin, NEW.personNotes, NEW.fatherName, NEW.fatherNumber, NEW.motherName, NEW.motherNum) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$53 = ['INSERT INTO Person (personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum) VALUES( CAST(NEW.personUid AS BIGINT), NEW.username, NEW.firstNames, NEW.lastName, NEW.emailAddr, NEW.phoneNum, NEW.gender, NEW.active, CAST(NEW.dateOfBirth AS BIGINT), NEW.personAddress, NEW.personOrgId, CAST(NEW.personGroupUid AS BIGINT), CAST(NEW.personLct AS BIGINT), NEW.personCountry, NEW.personType, CAST(NEW.personMasterChangeSeqNum AS BIGINT), CAST(NEW.personLocalChangeSeqNum AS BIGINT), NEW.personLastChangedBy, NEW.admin, NEW.personNotes, NEW.fatherName, NEW.fatherNumber, NEW.motherName, NEW.motherNum) ON CONFLICT(personUid) DO UPDATE SET username = NEW.username, firstNames = NEW.firstNames, lastName = NEW.lastName, emailAddr = NEW.emailAddr, phoneNum = NEW.phoneNum, gender = NEW.gender, active = NEW.active, dateOfBirth = NEW.dateOfBirth, personAddress = NEW.personAddress, personOrgId = NEW.personOrgId, personGroupUid = NEW.personGroupUid, personLct = NEW.personLct, personCountry = NEW.personCountry, personType = NEW.personType, personMasterChangeSeqNum = NEW.personMasterChangeSeqNum, personLocalChangeSeqNum = NEW.personLocalChangeSeqNum, personLastChangedBy = NEW.personLastChangedBy, admin = NEW.admin, personNotes = NEW.personNotes, fatherName = NEW.fatherName, fatherNumber = NEW.fatherNumber, motherName = NEW.motherName, motherNum = NEW.motherNum ']; var tmp_46 = to(9, new ReplicationEntityMetaData(9, 'Person', 'Person_ReceiveView', tmp_39, 'personLct', tmp_40, 1000, tmp_41, listOf(new Trigger('person_remote_insert', tmp_42, tmp_43, tmp_44, tmp_45, tmp$ret$53, '\n SELECT \n ((NEW.username IS NULL\n OR (SELECT NOT EXISTS(\n SELECT Person.personUid\n FROM Person\n WHERE Person.username = NEW.username)) \n OR NEW.personUid = \n (SELECT Person.personUid\n FROM Person\n WHERE Person.username = NEW.username)))\n AND CAST(NEW.personLct AS BIGINT) > \n (SELECT COALESCE(\n (SELECT Person.personLct\n FROM Person\n WHERE Person.personUid = CAST(NEW.personUid AS BIGINT)), 0)) \n \n ', '\n SELECT \n ((NEW.username IS NULL\n OR (SELECT NOT EXISTS(\n SELECT Person.personUid\n FROM Person\n WHERE Person.username = NEW.username)) \n OR NEW.personUid = \n (SELECT Person.personUid\n FROM Person\n WHERE Person.username = NEW.username)))\n AND CAST(NEW.personLct AS BIGINT) > \n (SELECT COALESCE(\n (SELECT Person.personLct\n FROM Person\n WHERE Person.personUid = CAST(NEW.personUid AS BIGINT)), 0)) \n \n ')))); var tmp_47 = listOf('clazzUid'); var tmp_48 = listOf_0([new ReplicationFieldMetaData('clazzName', -1, true), new ReplicationFieldMetaData('clazzDesc', -1, true), new ReplicationFieldMetaData('attendanceAverage', 6, false), new ReplicationFieldMetaData('clazzHolidayUMCalendarUid', -5, false), new ReplicationFieldMetaData('clazzScheuleUMCalendarUid', -5, false), new ReplicationFieldMetaData('isClazzActive', 16, false), new ReplicationFieldMetaData('clazzLocationUid', -5, false), new ReplicationFieldMetaData('clazzStartTime', -5, false), new ReplicationFieldMetaData('clazzEndTime', -5, false), new ReplicationFieldMetaData('clazzFeatures', -5, false), new ReplicationFieldMetaData('clazzSchoolUid', -5, false), new ReplicationFieldMetaData('clazzEnrolmentPolicy', 4, false), new ReplicationFieldMetaData('clazzTerminologyUid', -5, false), new ReplicationFieldMetaData('clazzMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('clazzLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('clazzLastChangedBy', 4, false), new ReplicationFieldMetaData('clazzLct', -5, false), new ReplicationFieldMetaData('clazzTimeZone', -1, true), new ReplicationFieldMetaData('clazzStudentsPersonGroupUid', -5, false), new ReplicationFieldMetaData('clazzTeachersPersonGroupUid', -5, false), new ReplicationFieldMetaData('clazzPendingStudentsPersonGroupUid', -5, false), new ReplicationFieldMetaData('clazzParentsPersonGroupUid', -5, false), new ReplicationFieldMetaData('clazzCode', -1, true), new ReplicationFieldMetaData('clazzOwnerPersonUid', -5, false), new ReplicationFieldMetaData('clazzUid', -5, false)]); var tmp_49 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_50 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_51 = [Event_INSERT_getInstance()]; var tmp_52 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_53 = ['REPLACE INTO Clazz (clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid) VALUES( CAST(NEW.clazzUid AS BIGINT), NEW.clazzName, NEW.clazzDesc, NEW.attendanceAverage, CAST(NEW.clazzHolidayUMCalendarUid AS BIGINT), CAST(NEW.clazzScheuleUMCalendarUid AS BIGINT), NEW.isClazzActive, CAST(NEW.clazzLocationUid AS BIGINT), CAST(NEW.clazzStartTime AS BIGINT), CAST(NEW.clazzEndTime AS BIGINT), CAST(NEW.clazzFeatures AS BIGINT), CAST(NEW.clazzSchoolUid AS BIGINT), NEW.clazzEnrolmentPolicy, CAST(NEW.clazzTerminologyUid AS BIGINT), CAST(NEW.clazzMasterChangeSeqNum AS BIGINT), CAST(NEW.clazzLocalChangeSeqNum AS BIGINT), NEW.clazzLastChangedBy, CAST(NEW.clazzLct AS BIGINT), NEW.clazzTimeZone, CAST(NEW.clazzStudentsPersonGroupUid AS BIGINT), CAST(NEW.clazzTeachersPersonGroupUid AS BIGINT), CAST(NEW.clazzPendingStudentsPersonGroupUid AS BIGINT), CAST(NEW.clazzParentsPersonGroupUid AS BIGINT), NEW.clazzCode, CAST(NEW.clazzOwnerPersonUid AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$62 = ['INSERT INTO Clazz (clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid) VALUES( CAST(NEW.clazzUid AS BIGINT), NEW.clazzName, NEW.clazzDesc, NEW.attendanceAverage, CAST(NEW.clazzHolidayUMCalendarUid AS BIGINT), CAST(NEW.clazzScheuleUMCalendarUid AS BIGINT), NEW.isClazzActive, CAST(NEW.clazzLocationUid AS BIGINT), CAST(NEW.clazzStartTime AS BIGINT), CAST(NEW.clazzEndTime AS BIGINT), CAST(NEW.clazzFeatures AS BIGINT), CAST(NEW.clazzSchoolUid AS BIGINT), NEW.clazzEnrolmentPolicy, CAST(NEW.clazzTerminologyUid AS BIGINT), CAST(NEW.clazzMasterChangeSeqNum AS BIGINT), CAST(NEW.clazzLocalChangeSeqNum AS BIGINT), NEW.clazzLastChangedBy, CAST(NEW.clazzLct AS BIGINT), NEW.clazzTimeZone, CAST(NEW.clazzStudentsPersonGroupUid AS BIGINT), CAST(NEW.clazzTeachersPersonGroupUid AS BIGINT), CAST(NEW.clazzPendingStudentsPersonGroupUid AS BIGINT), CAST(NEW.clazzParentsPersonGroupUid AS BIGINT), NEW.clazzCode, CAST(NEW.clazzOwnerPersonUid AS BIGINT)) ON CONFLICT(clazzUid) DO UPDATE SET clazzName = NEW.clazzName, clazzDesc = NEW.clazzDesc, attendanceAverage = NEW.attendanceAverage, clazzHolidayUMCalendarUid = NEW.clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid = NEW.clazzScheuleUMCalendarUid, isClazzActive = NEW.isClazzActive, clazzLocationUid = NEW.clazzLocationUid, clazzStartTime = NEW.clazzStartTime, clazzEndTime = NEW.clazzEndTime, clazzFeatures = NEW.clazzFeatures, clazzSchoolUid = NEW.clazzSchoolUid, clazzEnrolmentPolicy = NEW.clazzEnrolmentPolicy, clazzTerminologyUid = NEW.clazzTerminologyUid, clazzMasterChangeSeqNum = NEW.clazzMasterChangeSeqNum, clazzLocalChangeSeqNum = NEW.clazzLocalChangeSeqNum, clazzLastChangedBy = NEW.clazzLastChangedBy, clazzLct = NEW.clazzLct, clazzTimeZone = NEW.clazzTimeZone, clazzStudentsPersonGroupUid = NEW.clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid = NEW.clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid = NEW.clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid = NEW.clazzParentsPersonGroupUid, clazzCode = NEW.clazzCode, clazzOwnerPersonUid = NEW.clazzOwnerPersonUid ']; var tmp_54 = to(6, new ReplicationEntityMetaData(6, 'Clazz', 'Clazz_ReceiveView', tmp_47, 'clazzLct', tmp_48, 1000, tmp_49, listOf(new Trigger('clazz_remote_insert', tmp_50, tmp_51, tmp_52, tmp_53, tmp$ret$62, 'SELECT \n CAST(NEW.clazzLct AS BIGINT) >\n COALESCE((SELECT Clazz_Existing.clazzLct\n FROM Clazz Clazz_Existing\n WHERE Clazz_Existing.clazzUid = NEW.clazzUid), 0)\n ', 'SELECT \n CAST(NEW.clazzLct AS BIGINT) >\n COALESCE((SELECT Clazz_Existing.clazzLct\n FROM Clazz Clazz_Existing\n WHERE Clazz_Existing.clazzUid = NEW.clazzUid), 0)\n ')))); var tmp_55 = listOf('clazzEnrolmentUid'); var tmp_56 = listOf_0([new ReplicationFieldMetaData('clazzEnrolmentPersonUid', -5, false), new ReplicationFieldMetaData('clazzEnrolmentClazzUid', -5, false), new ReplicationFieldMetaData('clazzEnrolmentDateJoined', -5, false), new ReplicationFieldMetaData('clazzEnrolmentDateLeft', -5, false), new ReplicationFieldMetaData('clazzEnrolmentRole', 4, false), new ReplicationFieldMetaData('clazzEnrolmentAttendancePercentage', 6, false), new ReplicationFieldMetaData('clazzEnrolmentActive', 16, false), new ReplicationFieldMetaData('clazzEnrolmentLeavingReasonUid', -5, false), new ReplicationFieldMetaData('clazzEnrolmentOutcome', 4, false), new ReplicationFieldMetaData('clazzEnrolmentLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('clazzEnrolmentMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('clazzEnrolmentLastChangedBy', 4, false), new ReplicationFieldMetaData('clazzEnrolmentLct', -5, false), new ReplicationFieldMetaData('clazzEnrolmentUid', -5, false)]); var tmp_57 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_58 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_59 = [Event_INSERT_getInstance()]; var tmp_60 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_61 = ['REPLACE INTO ClazzEnrolment (clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct) VALUES( CAST(NEW.clazzEnrolmentUid AS BIGINT), CAST(NEW.clazzEnrolmentPersonUid AS BIGINT), CAST(NEW.clazzEnrolmentClazzUid AS BIGINT), CAST(NEW.clazzEnrolmentDateJoined AS BIGINT), CAST(NEW.clazzEnrolmentDateLeft AS BIGINT), NEW.clazzEnrolmentRole, NEW.clazzEnrolmentAttendancePercentage, NEW.clazzEnrolmentActive, CAST(NEW.clazzEnrolmentLeavingReasonUid AS BIGINT), NEW.clazzEnrolmentOutcome, CAST(NEW.clazzEnrolmentLocalChangeSeqNum AS BIGINT), CAST(NEW.clazzEnrolmentMasterChangeSeqNum AS BIGINT), NEW.clazzEnrolmentLastChangedBy, CAST(NEW.clazzEnrolmentLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$71 = ['INSERT INTO ClazzEnrolment (clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct) VALUES( CAST(NEW.clazzEnrolmentUid AS BIGINT), CAST(NEW.clazzEnrolmentPersonUid AS BIGINT), CAST(NEW.clazzEnrolmentClazzUid AS BIGINT), CAST(NEW.clazzEnrolmentDateJoined AS BIGINT), CAST(NEW.clazzEnrolmentDateLeft AS BIGINT), NEW.clazzEnrolmentRole, NEW.clazzEnrolmentAttendancePercentage, NEW.clazzEnrolmentActive, CAST(NEW.clazzEnrolmentLeavingReasonUid AS BIGINT), NEW.clazzEnrolmentOutcome, CAST(NEW.clazzEnrolmentLocalChangeSeqNum AS BIGINT), CAST(NEW.clazzEnrolmentMasterChangeSeqNum AS BIGINT), NEW.clazzEnrolmentLastChangedBy, CAST(NEW.clazzEnrolmentLct AS BIGINT)) ON CONFLICT(clazzEnrolmentUid) DO UPDATE SET clazzEnrolmentPersonUid = NEW.clazzEnrolmentPersonUid, clazzEnrolmentClazzUid = NEW.clazzEnrolmentClazzUid, clazzEnrolmentDateJoined = NEW.clazzEnrolmentDateJoined, clazzEnrolmentDateLeft = NEW.clazzEnrolmentDateLeft, clazzEnrolmentRole = NEW.clazzEnrolmentRole, clazzEnrolmentAttendancePercentage = NEW.clazzEnrolmentAttendancePercentage, clazzEnrolmentActive = NEW.clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid = NEW.clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome = NEW.clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum = NEW.clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum = NEW.clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy = NEW.clazzEnrolmentLastChangedBy, clazzEnrolmentLct = NEW.clazzEnrolmentLct ']; var tmp_62 = to(65, new ReplicationEntityMetaData(65, 'ClazzEnrolment', 'ClazzEnrolment_ReceiveView', tmp_55, 'clazzEnrolmentLct', tmp_56, 1000, tmp_57, listOf(new Trigger('clazzenrolment_remote_insert', tmp_58, tmp_59, tmp_60, tmp_61, tmp$ret$71, 'SELECT \n CAST(NEW.clazzEnrolmentLct AS BIGINT) >\n COALESCE((SELECT ClazzEnrolment_Existing.clazzEnrolmentLct\n FROM ClazzEnrolment ClazzEnrolment_Existing\n WHERE ClazzEnrolment_Existing.clazzEnrolmentUid = NEW.clazzEnrolmentUid), 0)\n ', 'SELECT \n CAST(NEW.clazzEnrolmentLct AS BIGINT) >\n COALESCE((SELECT ClazzEnrolment_Existing.clazzEnrolmentLct\n FROM ClazzEnrolment ClazzEnrolment_Existing\n WHERE ClazzEnrolment_Existing.clazzEnrolmentUid = NEW.clazzEnrolmentUid), 0)\n ')))); var tmp_63 = listOf('leavingReasonUid'); var tmp_64 = listOf_0([new ReplicationFieldMetaData('leavingReasonTitle', -1, true), new ReplicationFieldMetaData('leavingReasonMCSN', -5, false), new ReplicationFieldMetaData('leavingReasonCSN', -5, false), new ReplicationFieldMetaData('leavingReasonLCB', 4, false), new ReplicationFieldMetaData('leavingReasonLct', -5, false), new ReplicationFieldMetaData('leavingReasonUid', -5, false)]); var tmp_65 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_66 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_67 = [Event_INSERT_getInstance()]; var tmp_68 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_69 = ['REPLACE INTO LeavingReason (leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct) VALUES( CAST(NEW.leavingReasonUid AS BIGINT), NEW.leavingReasonTitle, CAST(NEW.leavingReasonMCSN AS BIGINT), CAST(NEW.leavingReasonCSN AS BIGINT), NEW.leavingReasonLCB, CAST(NEW.leavingReasonLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$80 = ['INSERT INTO LeavingReason (leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct) VALUES( CAST(NEW.leavingReasonUid AS BIGINT), NEW.leavingReasonTitle, CAST(NEW.leavingReasonMCSN AS BIGINT), CAST(NEW.leavingReasonCSN AS BIGINT), NEW.leavingReasonLCB, CAST(NEW.leavingReasonLct AS BIGINT)) ON CONFLICT(leavingReasonUid) DO UPDATE SET leavingReasonTitle = NEW.leavingReasonTitle, leavingReasonMCSN = NEW.leavingReasonMCSN, leavingReasonCSN = NEW.leavingReasonCSN, leavingReasonLCB = NEW.leavingReasonLCB, leavingReasonLct = NEW.leavingReasonLct ']; var tmp_70 = to(410, new ReplicationEntityMetaData(410, 'LeavingReason', 'LeavingReason_ReceiveView', tmp_63, 'leavingReasonLct', tmp_64, 1000, tmp_65, listOf(new Trigger('leavingreason_remote_insert', tmp_66, tmp_67, tmp_68, tmp_69, tmp$ret$80, 'SELECT \n CAST(NEW.leavingReasonLct AS BIGINT) >\n COALESCE((SELECT LeavingReason_Existing.leavingReasonLct\n FROM LeavingReason LeavingReason_Existing\n WHERE LeavingReason_Existing.leavingReasonUid = NEW.leavingReasonUid), 0)\n ', 'SELECT \n CAST(NEW.leavingReasonLct AS BIGINT) >\n COALESCE((SELECT LeavingReason_Existing.leavingReasonLct\n FROM LeavingReason LeavingReason_Existing\n WHERE LeavingReason_Existing.leavingReasonUid = NEW.leavingReasonUid), 0)\n ')))); var tmp_71 = listOf('contentEntryUid'); var tmp_72 = listOf_0([new ReplicationFieldMetaData('title', -1, true), new ReplicationFieldMetaData('description', -1, true), new ReplicationFieldMetaData('entryId', -1, true), new ReplicationFieldMetaData('author', -1, true), new ReplicationFieldMetaData('publisher', -1, true), new ReplicationFieldMetaData('licenseType', 4, false), new ReplicationFieldMetaData('licenseName', -1, true), new ReplicationFieldMetaData('licenseUrl', -1, true), new ReplicationFieldMetaData('sourceUrl', -1, true), new ReplicationFieldMetaData('thumbnailUrl', -1, true), new ReplicationFieldMetaData('lastModified', -5, false), new ReplicationFieldMetaData('primaryLanguageUid', -5, false), new ReplicationFieldMetaData('languageVariantUid', -5, false), new ReplicationFieldMetaData('contentFlags', 4, false), new ReplicationFieldMetaData('leaf', 16, false), new ReplicationFieldMetaData('publik', 16, false), new ReplicationFieldMetaData('ceInactive', 16, false), new ReplicationFieldMetaData('completionCriteria', 4, false), new ReplicationFieldMetaData('minScore', 4, false), new ReplicationFieldMetaData('contentTypeFlag', 4, false), new ReplicationFieldMetaData('contentOwner', -5, false), new ReplicationFieldMetaData('contentOwnerType', 4, false), new ReplicationFieldMetaData('contentEntryLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('contentEntryMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('contentEntryLastChangedBy', 4, false), new ReplicationFieldMetaData('contentEntryLct', -5, false), new ReplicationFieldMetaData('contentEntryUid', -5, false)]); var tmp_73 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_74 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_75 = [Event_INSERT_getInstance()]; var tmp_76 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_77 = ['REPLACE INTO ContentEntry (contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct) VALUES( CAST(NEW.contentEntryUid AS BIGINT), NEW.title, NEW.description, NEW.entryId, NEW.author, NEW.publisher, NEW.licenseType, NEW.licenseName, NEW.licenseUrl, NEW.sourceUrl, NEW.thumbnailUrl, CAST(NEW.lastModified AS BIGINT), CAST(NEW.primaryLanguageUid AS BIGINT), CAST(NEW.languageVariantUid AS BIGINT), NEW.contentFlags, NEW.leaf, NEW.publik, NEW.ceInactive, NEW.completionCriteria, NEW.minScore, NEW.contentTypeFlag, CAST(NEW.contentOwner AS BIGINT), NEW.contentOwnerType, CAST(NEW.contentEntryLocalChangeSeqNum AS BIGINT), CAST(NEW.contentEntryMasterChangeSeqNum AS BIGINT), NEW.contentEntryLastChangedBy, CAST(NEW.contentEntryLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$89 = ['INSERT INTO ContentEntry (contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct) VALUES( CAST(NEW.contentEntryUid AS BIGINT), NEW.title, NEW.description, NEW.entryId, NEW.author, NEW.publisher, NEW.licenseType, NEW.licenseName, NEW.licenseUrl, NEW.sourceUrl, NEW.thumbnailUrl, CAST(NEW.lastModified AS BIGINT), CAST(NEW.primaryLanguageUid AS BIGINT), CAST(NEW.languageVariantUid AS BIGINT), NEW.contentFlags, NEW.leaf, NEW.publik, NEW.ceInactive, NEW.completionCriteria, NEW.minScore, NEW.contentTypeFlag, CAST(NEW.contentOwner AS BIGINT), NEW.contentOwnerType, CAST(NEW.contentEntryLocalChangeSeqNum AS BIGINT), CAST(NEW.contentEntryMasterChangeSeqNum AS BIGINT), NEW.contentEntryLastChangedBy, CAST(NEW.contentEntryLct AS BIGINT)) ON CONFLICT(contentEntryUid) DO UPDATE SET title = NEW.title, description = NEW.description, entryId = NEW.entryId, author = NEW.author, publisher = NEW.publisher, licenseType = NEW.licenseType, licenseName = NEW.licenseName, licenseUrl = NEW.licenseUrl, sourceUrl = NEW.sourceUrl, thumbnailUrl = NEW.thumbnailUrl, lastModified = NEW.lastModified, primaryLanguageUid = NEW.primaryLanguageUid, languageVariantUid = NEW.languageVariantUid, contentFlags = NEW.contentFlags, leaf = NEW.leaf, publik = NEW.publik, ceInactive = NEW.ceInactive, completionCriteria = NEW.completionCriteria, minScore = NEW.minScore, contentTypeFlag = NEW.contentTypeFlag, contentOwner = NEW.contentOwner, contentOwnerType = NEW.contentOwnerType, contentEntryLocalChangeSeqNum = NEW.contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum = NEW.contentEntryMasterChangeSeqNum, contentEntryLastChangedBy = NEW.contentEntryLastChangedBy, contentEntryLct = NEW.contentEntryLct ']; var tmp_78 = to(42, new ReplicationEntityMetaData(42, 'ContentEntry', 'ContentEntry_ReceiveView', tmp_71, 'contentEntryLct', tmp_72, 1000, tmp_73, listOf(new Trigger('contententry_remote_insert', tmp_74, tmp_75, tmp_76, tmp_77, tmp$ret$89, 'SELECT \n CAST(NEW.contentEntryLct AS BIGINT) >\n COALESCE((SELECT ContentEntry_Existing.contentEntryLct\n FROM ContentEntry ContentEntry_Existing\n WHERE ContentEntry_Existing.contentEntryUid = NEW.contentEntryUid), 0)\n ', 'SELECT \n CAST(NEW.contentEntryLct AS BIGINT) >\n COALESCE((SELECT ContentEntry_Existing.contentEntryLct\n FROM ContentEntry ContentEntry_Existing\n WHERE ContentEntry_Existing.contentEntryUid = NEW.contentEntryUid), 0)\n ')))); var tmp_79 = listOf('ceccjUid'); var tmp_80 = listOf_0([new ReplicationFieldMetaData('ceccjContentEntryUid', -5, false), new ReplicationFieldMetaData('ceccjContentCategoryUid', -5, false), new ReplicationFieldMetaData('ceccjLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('ceccjMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('ceccjLastChangedBy', 4, false), new ReplicationFieldMetaData('ceccjLct', -5, false), new ReplicationFieldMetaData('ceccjUid', -5, false)]); var tmp_81 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_82 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_83 = [Event_INSERT_getInstance()]; var tmp_84 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_85 = ['REPLACE INTO ContentEntryContentCategoryJoin (ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct) VALUES( CAST(NEW.ceccjUid AS BIGINT), CAST(NEW.ceccjContentEntryUid AS BIGINT), CAST(NEW.ceccjContentCategoryUid AS BIGINT), CAST(NEW.ceccjLocalChangeSeqNum AS BIGINT), CAST(NEW.ceccjMasterChangeSeqNum AS BIGINT), NEW.ceccjLastChangedBy, CAST(NEW.ceccjLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$98 = ['INSERT INTO ContentEntryContentCategoryJoin (ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct) VALUES( CAST(NEW.ceccjUid AS BIGINT), CAST(NEW.ceccjContentEntryUid AS BIGINT), CAST(NEW.ceccjContentCategoryUid AS BIGINT), CAST(NEW.ceccjLocalChangeSeqNum AS BIGINT), CAST(NEW.ceccjMasterChangeSeqNum AS BIGINT), NEW.ceccjLastChangedBy, CAST(NEW.ceccjLct AS BIGINT)) ON CONFLICT(ceccjUid) DO UPDATE SET ceccjContentEntryUid = NEW.ceccjContentEntryUid, ceccjContentCategoryUid = NEW.ceccjContentCategoryUid, ceccjLocalChangeSeqNum = NEW.ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum = NEW.ceccjMasterChangeSeqNum, ceccjLastChangedBy = NEW.ceccjLastChangedBy, ceccjLct = NEW.ceccjLct ']; var tmp_86 = to(3, new ReplicationEntityMetaData(3, 'ContentEntryContentCategoryJoin', 'ContentEntryContentCategoryJoin_ReceiveView', tmp_79, 'ceccjLct', tmp_80, 1000, tmp_81, listOf(new Trigger('contententrycontentcategoryjoin_remote_insert', tmp_82, tmp_83, tmp_84, tmp_85, tmp$ret$98, 'SELECT \n CAST(NEW.ceccjLct AS BIGINT) >\n COALESCE((SELECT ContentEntryContentCategoryJoin_Existing.ceccjLct\n FROM ContentEntryContentCategoryJoin ContentEntryContentCategoryJoin_Existing\n WHERE ContentEntryContentCategoryJoin_Existing.ceccjUid = NEW.ceccjUid), 0)\n ', 'SELECT \n CAST(NEW.ceccjLct AS BIGINT) >\n COALESCE((SELECT ContentEntryContentCategoryJoin_Existing.ceccjLct\n FROM ContentEntryContentCategoryJoin ContentEntryContentCategoryJoin_Existing\n WHERE ContentEntryContentCategoryJoin_Existing.ceccjUid = NEW.ceccjUid), 0)\n ')))); var tmp_87 = listOf('cepcjUid'); var tmp_88 = listOf_0([new ReplicationFieldMetaData('cepcjLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('cepcjMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('cepcjLastChangedBy', 4, false), new ReplicationFieldMetaData('cepcjLct', -5, false), new ReplicationFieldMetaData('cepcjDeleted', 16, false), new ReplicationFieldMetaData('cepcjParentContentEntryUid', -5, false), new ReplicationFieldMetaData('cepcjChildContentEntryUid', -5, false), new ReplicationFieldMetaData('childIndex', 4, false), new ReplicationFieldMetaData('cepcjUid', -5, false)]); var tmp_89 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_90 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_91 = [Event_INSERT_getInstance()]; var tmp_92 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_93 = ['REPLACE INTO ContentEntryParentChildJoin (cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex) VALUES( CAST(NEW.cepcjUid AS BIGINT), CAST(NEW.cepcjLocalChangeSeqNum AS BIGINT), CAST(NEW.cepcjMasterChangeSeqNum AS BIGINT), NEW.cepcjLastChangedBy, CAST(NEW.cepcjLct AS BIGINT), NEW.cepcjDeleted, CAST(NEW.cepcjParentContentEntryUid AS BIGINT), CAST(NEW.cepcjChildContentEntryUid AS BIGINT), NEW.childIndex) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$107 = ['INSERT INTO ContentEntryParentChildJoin (cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex) VALUES( CAST(NEW.cepcjUid AS BIGINT), CAST(NEW.cepcjLocalChangeSeqNum AS BIGINT), CAST(NEW.cepcjMasterChangeSeqNum AS BIGINT), NEW.cepcjLastChangedBy, CAST(NEW.cepcjLct AS BIGINT), NEW.cepcjDeleted, CAST(NEW.cepcjParentContentEntryUid AS BIGINT), CAST(NEW.cepcjChildContentEntryUid AS BIGINT), NEW.childIndex) ON CONFLICT(cepcjUid) DO UPDATE SET cepcjLocalChangeSeqNum = NEW.cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum = NEW.cepcjMasterChangeSeqNum, cepcjLastChangedBy = NEW.cepcjLastChangedBy, cepcjLct = NEW.cepcjLct, cepcjDeleted = NEW.cepcjDeleted, cepcjParentContentEntryUid = NEW.cepcjParentContentEntryUid, cepcjChildContentEntryUid = NEW.cepcjChildContentEntryUid, childIndex = NEW.childIndex ']; var tmp_94 = to(7, new ReplicationEntityMetaData(7, 'ContentEntryParentChildJoin', 'ContentEntryParentChildJoin_ReceiveView', tmp_87, 'cepcjLct', tmp_88, 1000, tmp_89, listOf(new Trigger('contententryparentchildjoin_remote_insert', tmp_90, tmp_91, tmp_92, tmp_93, tmp$ret$107, 'SELECT \n CAST(NEW.cepcjLct AS BIGINT) >\n COALESCE((SELECT ContentEntryParentChildJoin_Existing.cepcjLct\n FROM ContentEntryParentChildJoin ContentEntryParentChildJoin_Existing\n WHERE ContentEntryParentChildJoin_Existing.cepcjUid = NEW.cepcjUid), 0)\n ', 'SELECT \n CAST(NEW.cepcjLct AS BIGINT) >\n COALESCE((SELECT ContentEntryParentChildJoin_Existing.cepcjLct\n FROM ContentEntryParentChildJoin ContentEntryParentChildJoin_Existing\n WHERE ContentEntryParentChildJoin_Existing.cepcjUid = NEW.cepcjUid), 0)\n ')))); var tmp_95 = listOf('cerejUid'); var tmp_96 = listOf_0([new ReplicationFieldMetaData('cerejContentEntryUid', -5, false), new ReplicationFieldMetaData('cerejRelatedEntryUid', -5, false), new ReplicationFieldMetaData('cerejLastChangedBy', 4, false), new ReplicationFieldMetaData('relType', 4, false), new ReplicationFieldMetaData('comment', -1, true), new ReplicationFieldMetaData('cerejRelLanguageUid', -5, false), new ReplicationFieldMetaData('cerejLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('cerejMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('cerejLct', -5, false), new ReplicationFieldMetaData('cerejUid', -5, false)]); var tmp_97 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_98 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_99 = [Event_INSERT_getInstance()]; var tmp_100 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_101 = ['REPLACE INTO ContentEntryRelatedEntryJoin (cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct) VALUES( CAST(NEW.cerejUid AS BIGINT), CAST(NEW.cerejContentEntryUid AS BIGINT), CAST(NEW.cerejRelatedEntryUid AS BIGINT), NEW.cerejLastChangedBy, NEW.relType, NEW.comment, CAST(NEW.cerejRelLanguageUid AS BIGINT), CAST(NEW.cerejLocalChangeSeqNum AS BIGINT), CAST(NEW.cerejMasterChangeSeqNum AS BIGINT), CAST(NEW.cerejLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$116 = ['INSERT INTO ContentEntryRelatedEntryJoin (cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct) VALUES( CAST(NEW.cerejUid AS BIGINT), CAST(NEW.cerejContentEntryUid AS BIGINT), CAST(NEW.cerejRelatedEntryUid AS BIGINT), NEW.cerejLastChangedBy, NEW.relType, NEW.comment, CAST(NEW.cerejRelLanguageUid AS BIGINT), CAST(NEW.cerejLocalChangeSeqNum AS BIGINT), CAST(NEW.cerejMasterChangeSeqNum AS BIGINT), CAST(NEW.cerejLct AS BIGINT)) ON CONFLICT(cerejUid) DO UPDATE SET cerejContentEntryUid = NEW.cerejContentEntryUid, cerejRelatedEntryUid = NEW.cerejRelatedEntryUid, cerejLastChangedBy = NEW.cerejLastChangedBy, relType = NEW.relType, comment = NEW.comment, cerejRelLanguageUid = NEW.cerejRelLanguageUid, cerejLocalChangeSeqNum = NEW.cerejLocalChangeSeqNum, cerejMasterChangeSeqNum = NEW.cerejMasterChangeSeqNum, cerejLct = NEW.cerejLct ']; var tmp_102 = to(8, new ReplicationEntityMetaData(8, 'ContentEntryRelatedEntryJoin', 'ContentEntryRelatedEntryJoin_ReceiveView', tmp_95, 'cerejLct', tmp_96, 1000, tmp_97, listOf(new Trigger('contententryrelatedentryjoin_remote_insert', tmp_98, tmp_99, tmp_100, tmp_101, tmp$ret$116, 'SELECT \n CAST(NEW.cerejLct AS BIGINT) >\n COALESCE((SELECT ContentEntryRelatedEntryJoin_Existing.cerejLct\n FROM ContentEntryRelatedEntryJoin ContentEntryRelatedEntryJoin_Existing\n WHERE ContentEntryRelatedEntryJoin_Existing.cerejUid = NEW.cerejUid), 0)\n ', 'SELECT \n CAST(NEW.cerejLct AS BIGINT) >\n COALESCE((SELECT ContentEntryRelatedEntryJoin_Existing.cerejLct\n FROM ContentEntryRelatedEntryJoin ContentEntryRelatedEntryJoin_Existing\n WHERE ContentEntryRelatedEntryJoin_Existing.cerejUid = NEW.cerejUid), 0)\n ')))); var tmp_103 = listOf('contentCategorySchemaUid'); var tmp_104 = listOf_0([new ReplicationFieldMetaData('schemaName', -1, true), new ReplicationFieldMetaData('schemaUrl', -1, true), new ReplicationFieldMetaData('contentCategorySchemaLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('contentCategorySchemaMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('contentCategorySchemaLastChangedBy', 4, false), new ReplicationFieldMetaData('contentCategorySchemaLct', -5, false), new ReplicationFieldMetaData('contentCategorySchemaUid', -5, false)]); var tmp_105 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_106 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_107 = [Event_INSERT_getInstance()]; var tmp_108 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_109 = ['REPLACE INTO ContentCategorySchema (contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct) VALUES( CAST(NEW.contentCategorySchemaUid AS BIGINT), NEW.schemaName, NEW.schemaUrl, CAST(NEW.contentCategorySchemaLocalChangeSeqNum AS BIGINT), CAST(NEW.contentCategorySchemaMasterChangeSeqNum AS BIGINT), NEW.contentCategorySchemaLastChangedBy, CAST(NEW.contentCategorySchemaLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$125 = ['INSERT INTO ContentCategorySchema (contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct) VALUES( CAST(NEW.contentCategorySchemaUid AS BIGINT), NEW.schemaName, NEW.schemaUrl, CAST(NEW.contentCategorySchemaLocalChangeSeqNum AS BIGINT), CAST(NEW.contentCategorySchemaMasterChangeSeqNum AS BIGINT), NEW.contentCategorySchemaLastChangedBy, CAST(NEW.contentCategorySchemaLct AS BIGINT)) ON CONFLICT(contentCategorySchemaUid) DO UPDATE SET schemaName = NEW.schemaName, schemaUrl = NEW.schemaUrl, contentCategorySchemaLocalChangeSeqNum = NEW.contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum = NEW.contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy = NEW.contentCategorySchemaLastChangedBy, contentCategorySchemaLct = NEW.contentCategorySchemaLct ']; var tmp_110 = to(2, new ReplicationEntityMetaData(2, 'ContentCategorySchema', 'ContentCategorySchema_ReceiveView', tmp_103, 'contentCategorySchemaLct', tmp_104, 1000, tmp_105, listOf(new Trigger('contentcategoryschema_remote_insert', tmp_106, tmp_107, tmp_108, tmp_109, tmp$ret$125, 'SELECT \n CAST(NEW.contentCategorySchemaLct AS BIGINT) >\n COALESCE((SELECT ContentCategorySchema_Existing.contentCategorySchemaLct\n FROM ContentCategorySchema ContentCategorySchema_Existing\n WHERE ContentCategorySchema_Existing.contentCategorySchemaUid = NEW.contentCategorySchemaUid), 0)\n ', 'SELECT \n CAST(NEW.contentCategorySchemaLct AS BIGINT) >\n COALESCE((SELECT ContentCategorySchema_Existing.contentCategorySchemaLct\n FROM ContentCategorySchema ContentCategorySchema_Existing\n WHERE ContentCategorySchema_Existing.contentCategorySchemaUid = NEW.contentCategorySchemaUid), 0)\n ')))); var tmp_111 = listOf('contentCategoryUid'); var tmp_112 = listOf_0([new ReplicationFieldMetaData('ctnCatContentCategorySchemaUid', -5, false), new ReplicationFieldMetaData('name', -1, true), new ReplicationFieldMetaData('contentCategoryLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('contentCategoryMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('contentCategoryLastChangedBy', 4, false), new ReplicationFieldMetaData('contentCategoryLct', -5, false), new ReplicationFieldMetaData('contentCategoryUid', -5, false)]); var tmp_113 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_114 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_115 = [Event_INSERT_getInstance()]; var tmp_116 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_117 = ['REPLACE INTO ContentCategory (contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct) VALUES( CAST(NEW.contentCategoryUid AS BIGINT), CAST(NEW.ctnCatContentCategorySchemaUid AS BIGINT), NEW.name, CAST(NEW.contentCategoryLocalChangeSeqNum AS BIGINT), CAST(NEW.contentCategoryMasterChangeSeqNum AS BIGINT), NEW.contentCategoryLastChangedBy, CAST(NEW.contentCategoryLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$134 = ['INSERT INTO ContentCategory (contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct) VALUES( CAST(NEW.contentCategoryUid AS BIGINT), CAST(NEW.ctnCatContentCategorySchemaUid AS BIGINT), NEW.name, CAST(NEW.contentCategoryLocalChangeSeqNum AS BIGINT), CAST(NEW.contentCategoryMasterChangeSeqNum AS BIGINT), NEW.contentCategoryLastChangedBy, CAST(NEW.contentCategoryLct AS BIGINT)) ON CONFLICT(contentCategoryUid) DO UPDATE SET ctnCatContentCategorySchemaUid = NEW.ctnCatContentCategorySchemaUid, name = NEW.name, contentCategoryLocalChangeSeqNum = NEW.contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum = NEW.contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy = NEW.contentCategoryLastChangedBy, contentCategoryLct = NEW.contentCategoryLct ']; var tmp_118 = to(1, new ReplicationEntityMetaData(1, 'ContentCategory', 'ContentCategory_ReceiveView', tmp_111, 'contentCategoryLct', tmp_112, 1000, tmp_113, listOf(new Trigger('contentcategory_remote_insert', tmp_114, tmp_115, tmp_116, tmp_117, tmp$ret$134, 'SELECT \n CAST(NEW.contentCategoryLct AS BIGINT) >\n COALESCE((SELECT ContentCategory_Existing.contentCategoryLct\n FROM ContentCategory ContentCategory_Existing\n WHERE ContentCategory_Existing.contentCategoryUid = NEW.contentCategoryUid), 0)\n ', 'SELECT \n CAST(NEW.contentCategoryLct AS BIGINT) >\n COALESCE((SELECT ContentCategory_Existing.contentCategoryLct\n FROM ContentCategory ContentCategory_Existing\n WHERE ContentCategory_Existing.contentCategoryUid = NEW.contentCategoryUid), 0)\n ')))); var tmp_119 = listOf('langUid'); var tmp_120 = listOf_0([new ReplicationFieldMetaData('name', -1, true), new ReplicationFieldMetaData('iso_639_1_standard', -1, true), new ReplicationFieldMetaData('iso_639_2_standard', -1, true), new ReplicationFieldMetaData('iso_639_3_standard', -1, true), new ReplicationFieldMetaData('Language_Type', -1, true), new ReplicationFieldMetaData('languageActive', 16, false), new ReplicationFieldMetaData('langLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('langMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('langLastChangedBy', 4, false), new ReplicationFieldMetaData('langLct', -5, false), new ReplicationFieldMetaData('langUid', -5, false)]); var tmp_121 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_122 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_123 = [Event_INSERT_getInstance()]; var tmp_124 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_125 = ['REPLACE INTO Language (langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct) VALUES( CAST(NEW.langUid AS BIGINT), NEW.name, NEW.iso_639_1_standard, NEW.iso_639_2_standard, NEW.iso_639_3_standard, NEW.Language_Type, NEW.languageActive, CAST(NEW.langLocalChangeSeqNum AS BIGINT), CAST(NEW.langMasterChangeSeqNum AS BIGINT), NEW.langLastChangedBy, CAST(NEW.langLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$143 = ['INSERT INTO Language (langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct) VALUES( CAST(NEW.langUid AS BIGINT), NEW.name, NEW.iso_639_1_standard, NEW.iso_639_2_standard, NEW.iso_639_3_standard, NEW.Language_Type, NEW.languageActive, CAST(NEW.langLocalChangeSeqNum AS BIGINT), CAST(NEW.langMasterChangeSeqNum AS BIGINT), NEW.langLastChangedBy, CAST(NEW.langLct AS BIGINT)) ON CONFLICT(langUid) DO UPDATE SET name = NEW.name, iso_639_1_standard = NEW.iso_639_1_standard, iso_639_2_standard = NEW.iso_639_2_standard, iso_639_3_standard = NEW.iso_639_3_standard, Language_Type = NEW.Language_Type, languageActive = NEW.languageActive, langLocalChangeSeqNum = NEW.langLocalChangeSeqNum, langMasterChangeSeqNum = NEW.langMasterChangeSeqNum, langLastChangedBy = NEW.langLastChangedBy, langLct = NEW.langLct ']; var tmp_126 = to(13, new ReplicationEntityMetaData(13, 'Language', 'Language_ReceiveView', tmp_119, 'langLct', tmp_120, 1000, tmp_121, listOf(new Trigger('language_remote_insert', tmp_122, tmp_123, tmp_124, tmp_125, tmp$ret$143, 'SELECT \n CAST(NEW.langLct AS BIGINT) >\n COALESCE((SELECT Language_Existing.langLct\n FROM Language Language_Existing\n WHERE Language_Existing.langUid = NEW.langUid), 0)\n ', 'SELECT \n CAST(NEW.langLct AS BIGINT) >\n COALESCE((SELECT Language_Existing.langLct\n FROM Language Language_Existing\n WHERE Language_Existing.langUid = NEW.langUid), 0)\n ')))); var tmp_127 = listOf('langVariantUid'); var tmp_128 = listOf_0([new ReplicationFieldMetaData('langUid', -5, false), new ReplicationFieldMetaData('countryCode', -1, true), new ReplicationFieldMetaData('name', -1, true), new ReplicationFieldMetaData('langVariantLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('langVariantMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('langVariantLastChangedBy', 4, false), new ReplicationFieldMetaData('langVariantLct', -5, false), new ReplicationFieldMetaData('langVariantUid', -5, false)]); var tmp_129 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_130 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_131 = [Event_INSERT_getInstance()]; var tmp_132 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_133 = ['REPLACE INTO LanguageVariant (langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct) VALUES( CAST(NEW.langVariantUid AS BIGINT), CAST(NEW.langUid AS BIGINT), NEW.countryCode, NEW.name, CAST(NEW.langVariantLocalChangeSeqNum AS BIGINT), CAST(NEW.langVariantMasterChangeSeqNum AS BIGINT), NEW.langVariantLastChangedBy, CAST(NEW.langVariantLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$152 = ['INSERT INTO LanguageVariant (langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct) VALUES( CAST(NEW.langVariantUid AS BIGINT), CAST(NEW.langUid AS BIGINT), NEW.countryCode, NEW.name, CAST(NEW.langVariantLocalChangeSeqNum AS BIGINT), CAST(NEW.langVariantMasterChangeSeqNum AS BIGINT), NEW.langVariantLastChangedBy, CAST(NEW.langVariantLct AS BIGINT)) ON CONFLICT(langVariantUid) DO UPDATE SET langUid = NEW.langUid, countryCode = NEW.countryCode, name = NEW.name, langVariantLocalChangeSeqNum = NEW.langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum = NEW.langVariantMasterChangeSeqNum, langVariantLastChangedBy = NEW.langVariantLastChangedBy, langVariantLct = NEW.langVariantLct ']; var tmp_134 = to(10, new ReplicationEntityMetaData(10, 'LanguageVariant', 'LanguageVariant_ReceiveView', tmp_127, 'langVariantLct', tmp_128, 1000, tmp_129, listOf(new Trigger('languagevariant_remote_insert', tmp_130, tmp_131, tmp_132, tmp_133, tmp$ret$152, 'SELECT \n CAST(NEW.langVariantLct AS BIGINT) >\n COALESCE((SELECT LanguageVariant_Existing.langVariantLct\n FROM LanguageVariant LanguageVariant_Existing\n WHERE LanguageVariant_Existing.langVariantUid = NEW.langVariantUid), 0)\n ', 'SELECT \n CAST(NEW.langVariantLct AS BIGINT) >\n COALESCE((SELECT LanguageVariant_Existing.langVariantLct\n FROM LanguageVariant LanguageVariant_Existing\n WHERE LanguageVariant_Existing.langVariantUid = NEW.langVariantUid), 0)\n ')))); var tmp_135 = listOf('groupUid'); var tmp_136 = listOf_0([new ReplicationFieldMetaData('groupMasterCsn', -5, false), new ReplicationFieldMetaData('groupLocalCsn', -5, false), new ReplicationFieldMetaData('groupLastChangedBy', 4, false), new ReplicationFieldMetaData('groupLct', -5, false), new ReplicationFieldMetaData('groupName', -1, true), new ReplicationFieldMetaData('groupActive', 16, false), new ReplicationFieldMetaData('personGroupFlag', 4, false), new ReplicationFieldMetaData('groupUid', -5, false)]); var tmp_137 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_138 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_139 = [Event_INSERT_getInstance()]; var tmp_140 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_141 = ['REPLACE INTO PersonGroup (groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag) VALUES( CAST(NEW.groupUid AS BIGINT), CAST(NEW.groupMasterCsn AS BIGINT), CAST(NEW.groupLocalCsn AS BIGINT), NEW.groupLastChangedBy, CAST(NEW.groupLct AS BIGINT), NEW.groupName, NEW.groupActive, NEW.personGroupFlag) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$161 = ['INSERT INTO PersonGroup (groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag) VALUES( CAST(NEW.groupUid AS BIGINT), CAST(NEW.groupMasterCsn AS BIGINT), CAST(NEW.groupLocalCsn AS BIGINT), NEW.groupLastChangedBy, CAST(NEW.groupLct AS BIGINT), NEW.groupName, NEW.groupActive, NEW.personGroupFlag) ON CONFLICT(groupUid) DO UPDATE SET groupMasterCsn = NEW.groupMasterCsn, groupLocalCsn = NEW.groupLocalCsn, groupLastChangedBy = NEW.groupLastChangedBy, groupLct = NEW.groupLct, groupName = NEW.groupName, groupActive = NEW.groupActive, personGroupFlag = NEW.personGroupFlag ']; var tmp_142 = to(43, new ReplicationEntityMetaData(43, 'PersonGroup', 'PersonGroup_ReceiveView', tmp_135, 'groupLct', tmp_136, 1000, tmp_137, listOf(new Trigger('persongroup_remote_insert', tmp_138, tmp_139, tmp_140, tmp_141, tmp$ret$161, 'SELECT \n CAST(NEW.groupLct AS BIGINT) >\n COALESCE((SELECT PersonGroup_Existing.groupLct\n FROM PersonGroup PersonGroup_Existing\n WHERE PersonGroup_Existing.groupUid = NEW.groupUid), 0)\n ', 'SELECT \n CAST(NEW.groupLct AS BIGINT) >\n COALESCE((SELECT PersonGroup_Existing.groupLct\n FROM PersonGroup PersonGroup_Existing\n WHERE PersonGroup_Existing.groupUid = NEW.groupUid), 0)\n ')))); var tmp_143 = listOf('groupMemberUid'); var tmp_144 = listOf_0([new ReplicationFieldMetaData('groupMemberActive', 16, false), new ReplicationFieldMetaData('groupMemberPersonUid', -5, false), new ReplicationFieldMetaData('groupMemberGroupUid', -5, false), new ReplicationFieldMetaData('groupMemberMasterCsn', -5, false), new ReplicationFieldMetaData('groupMemberLocalCsn', -5, false), new ReplicationFieldMetaData('groupMemberLastChangedBy', 4, false), new ReplicationFieldMetaData('groupMemberLct', -5, false), new ReplicationFieldMetaData('groupMemberUid', -5, false)]); var tmp_145 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_146 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_147 = [Event_INSERT_getInstance()]; var tmp_148 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_149 = ['REPLACE INTO PersonGroupMember (groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct) VALUES( CAST(NEW.groupMemberUid AS BIGINT), NEW.groupMemberActive, CAST(NEW.groupMemberPersonUid AS BIGINT), CAST(NEW.groupMemberGroupUid AS BIGINT), CAST(NEW.groupMemberMasterCsn AS BIGINT), CAST(NEW.groupMemberLocalCsn AS BIGINT), NEW.groupMemberLastChangedBy, CAST(NEW.groupMemberLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$170 = ['INSERT INTO PersonGroupMember (groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct) VALUES( CAST(NEW.groupMemberUid AS BIGINT), NEW.groupMemberActive, CAST(NEW.groupMemberPersonUid AS BIGINT), CAST(NEW.groupMemberGroupUid AS BIGINT), CAST(NEW.groupMemberMasterCsn AS BIGINT), CAST(NEW.groupMemberLocalCsn AS BIGINT), NEW.groupMemberLastChangedBy, CAST(NEW.groupMemberLct AS BIGINT)) ON CONFLICT(groupMemberUid) DO UPDATE SET groupMemberActive = NEW.groupMemberActive, groupMemberPersonUid = NEW.groupMemberPersonUid, groupMemberGroupUid = NEW.groupMemberGroupUid, groupMemberMasterCsn = NEW.groupMemberMasterCsn, groupMemberLocalCsn = NEW.groupMemberLocalCsn, groupMemberLastChangedBy = NEW.groupMemberLastChangedBy, groupMemberLct = NEW.groupMemberLct ']; var tmp_150 = to(44, new ReplicationEntityMetaData(44, 'PersonGroupMember', 'PersonGroupMember_ReceiveView', tmp_143, 'groupMemberLct', tmp_144, 1000, tmp_145, listOf(new Trigger('persongroupmember_remote_insert', tmp_146, tmp_147, tmp_148, tmp_149, tmp$ret$170, 'SELECT \n CAST(NEW.groupMemberLct AS BIGINT) >\n COALESCE((SELECT PersonGroupMember_Existing.groupMemberLct\n FROM PersonGroupMember PersonGroupMember_Existing\n WHERE PersonGroupMember_Existing.groupMemberUid = NEW.groupMemberUid), 0)\n ', 'SELECT \n CAST(NEW.groupMemberLct AS BIGINT) >\n COALESCE((SELECT PersonGroupMember_Existing.groupMemberLct\n FROM PersonGroupMember PersonGroupMember_Existing\n WHERE PersonGroupMember_Existing.groupMemberUid = NEW.groupMemberUid), 0)\n ')))); var tmp_151 = listOf('personPictureUid'); var tmp_152 = listOf_0([new ReplicationFieldMetaData('personPictureLct', -5, false), new ReplicationFieldMetaData('personPictureUri', -1, true), new ReplicationFieldMetaData('personPictureThumbnailUri', -1, true), new ReplicationFieldMetaData('fileSize', 4, false), new ReplicationFieldMetaData('personPictureActive', 16, false), new ReplicationFieldMetaData('personPictureUid', -5, false)]); var tmp_153 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_154 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_155 = [Event_INSERT_getInstance()]; var tmp_156 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_157 = ['REPLACE INTO PersonPicture (personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive) VALUES( CAST(NEW.personPictureUid AS BIGINT), CAST(NEW.personPictureLct AS BIGINT), NEW.personPictureUri, NEW.personPictureThumbnailUri, NEW.fileSize, NEW.personPictureActive) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$179 = ['INSERT INTO PersonPicture (personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive) VALUES( CAST(NEW.personPictureUid AS BIGINT), CAST(NEW.personPictureLct AS BIGINT), NEW.personPictureUri, NEW.personPictureThumbnailUri, NEW.fileSize, NEW.personPictureActive) ON CONFLICT(personPictureUid) DO UPDATE SET personPictureLct = NEW.personPictureLct, personPictureUri = NEW.personPictureUri, personPictureThumbnailUri = NEW.personPictureThumbnailUri, fileSize = NEW.fileSize, personPictureActive = NEW.personPictureActive ']; var tmp_158 = to(50, new ReplicationEntityMetaData(50, 'PersonPicture', 'PersonPicture_ReceiveView', tmp_151, 'personPictureLct', tmp_152, 1000, tmp_153, listOf(new Trigger('personpicture_remote_insert', tmp_154, tmp_155, tmp_156, tmp_157, tmp$ret$179, 'SELECT \n CAST(NEW.personPictureLct AS BIGINT) >\n COALESCE((SELECT PersonPicture_Existing.personPictureLct\n FROM PersonPicture PersonPicture_Existing\n WHERE PersonPicture_Existing.personPictureUid = NEW.personPictureUid), 0)\n ', 'SELECT \n CAST(NEW.personPictureLct AS BIGINT) >\n COALESCE((SELECT PersonPicture_Existing.personPictureLct\n FROM PersonPicture PersonPicture_Existing\n WHERE PersonPicture_Existing.personPictureUid = NEW.personPictureUid), 0)\n ')))); var tmp_159 = listOf('verbUid'); var tmp_160 = listOf_0([new ReplicationFieldMetaData('verbUid', -5, false), new ReplicationFieldMetaData('verbUrlId', -1, true), new ReplicationFieldMetaData('verbDeleted', 16, false), new ReplicationFieldMetaData('verbLct', -5, false)]); var tmp_161 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_162 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_163 = [Event_INSERT_getInstance()]; var tmp_164 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_165 = ['REPLACE INTO VerbEntity (verbUid, verbUrlId, verbDeleted, verbLct) VALUES( CAST(NEW.verbUid AS BIGINT), NEW.verbUrlId, NEW.verbDeleted, CAST(NEW.verbLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$188 = ['INSERT INTO VerbEntity (verbUid, verbUrlId, verbDeleted, verbLct) VALUES( CAST(NEW.verbUid AS BIGINT), NEW.verbUrlId, NEW.verbDeleted, CAST(NEW.verbLct AS BIGINT)) ON CONFLICT(verbUid) DO UPDATE SET verbUrlId = NEW.verbUrlId, verbDeleted = NEW.verbDeleted, verbLct = NEW.verbLct ']; var tmp_166 = to(62, new ReplicationEntityMetaData(62, 'VerbEntity', 'VerbEntity_ReceiveView', tmp_159, 'verbLct', tmp_160, 1000, tmp_161, listOf(new Trigger('verbentity_remote_insert', tmp_162, tmp_163, tmp_164, tmp_165, tmp$ret$188, 'SELECT \n CAST(NEW.verbLct AS BIGINT) >\n COALESCE((SELECT VerbEntity_Existing.verbLct\n FROM VerbEntity VerbEntity_Existing\n WHERE VerbEntity_Existing.verbUid = NEW.verbUid), 0)\n ', 'SELECT \n CAST(NEW.verbLct AS BIGINT) >\n COALESCE((SELECT VerbEntity_Existing.verbLct\n FROM VerbEntity VerbEntity_Existing\n WHERE VerbEntity_Existing.verbUid = NEW.verbUid), 0)\n ')))); var tmp_167 = listOf('actUid'); var tmp_168 = listOf_0([new ReplicationFieldMetaData('actUid', -5, false), new ReplicationFieldMetaData('actIdIri', -1, true), new ReplicationFieldMetaData('actType', -1, true), new ReplicationFieldMetaData('actMoreInfo', -1, true), new ReplicationFieldMetaData('actInteractionType', 4, false), new ReplicationFieldMetaData('actCorrectResponsePatterns', -1, true), new ReplicationFieldMetaData('actLct', -5, false)]); var tmp_169 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_170 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_171 = [Event_INSERT_getInstance()]; var tmp_172 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_173 = ['REPLACE INTO ActivityEntity (actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct) VALUES( CAST(NEW.actUid AS BIGINT), NEW.actIdIri, NEW.actType, NEW.actMoreInfo, NEW.actInteractionType, NEW.actCorrectResponsePatterns, CAST(NEW.actLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$197 = ['INSERT INTO ActivityEntity (actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct) VALUES( CAST(NEW.actUid AS BIGINT), NEW.actIdIri, NEW.actType, NEW.actMoreInfo, NEW.actInteractionType, NEW.actCorrectResponsePatterns, CAST(NEW.actLct AS BIGINT)) ON CONFLICT(actUid) DO UPDATE SET actIdIri = NEW.actIdIri, actType = NEW.actType, actMoreInfo = NEW.actMoreInfo, actInteractionType = NEW.actInteractionType, actCorrectResponsePatterns = NEW.actCorrectResponsePatterns, actLct = NEW.actLct ']; var tmp_174 = to(64, new ReplicationEntityMetaData(64, 'ActivityEntity', 'ActivityEntity_ReceiveView', tmp_167, 'actLct', tmp_168, 1000, tmp_169, listOf(new Trigger('activityentity_remote_insert', tmp_170, tmp_171, tmp_172, tmp_173, tmp$ret$197, 'SELECT \n CAST(NEW.actLct AS BIGINT) >\n COALESCE((SELECT ActivityEntity_Existing.actLct\n FROM ActivityEntity ActivityEntity_Existing\n WHERE ActivityEntity_Existing.actUid = NEW.actUid), 0)\n ', 'SELECT \n CAST(NEW.actLct AS BIGINT) >\n COALESCE((SELECT ActivityEntity_Existing.actLct\n FROM ActivityEntity ActivityEntity_Existing\n WHERE ActivityEntity_Existing.actUid = NEW.actUid), 0)\n ')))); var tmp_175 = listOf_0(['statementIdHi', 'statementIdLo']); var tmp_176 = listOf_0([new ReplicationFieldMetaData('statementIdHi', -5, false), new ReplicationFieldMetaData('statementIdLo', -5, false), new ReplicationFieldMetaData('statementActorPersonUid', -5, false), new ReplicationFieldMetaData('statementVerbUid', -5, false), new ReplicationFieldMetaData('statementObjectType', 4, false), new ReplicationFieldMetaData('statementObjectUid1', -5, false), new ReplicationFieldMetaData('statementObjectUid2', -5, false), new ReplicationFieldMetaData('statementActorUid', -5, false), new ReplicationFieldMetaData('authorityActorUid', -5, false), new ReplicationFieldMetaData('teamUid', -5, false), new ReplicationFieldMetaData('resultCompletion', 16, true), new ReplicationFieldMetaData('resultSuccess', 16, true), new ReplicationFieldMetaData('resultScoreScaled', 6, true), new ReplicationFieldMetaData('resultScoreRaw', 6, true), new ReplicationFieldMetaData('resultScoreMin', 6, true), new ReplicationFieldMetaData('resultScoreMax', 6, true), new ReplicationFieldMetaData('resultDuration', -5, true), new ReplicationFieldMetaData('resultResponse', -1, true), new ReplicationFieldMetaData('timestamp', -5, false), new ReplicationFieldMetaData('stored', -5, false), new ReplicationFieldMetaData('contextRegistrationHi', -5, false), new ReplicationFieldMetaData('contextRegistrationLo', -5, false), new ReplicationFieldMetaData('contextRegistrationHash', -5, false), new ReplicationFieldMetaData('contextPlatform', -1, true), new ReplicationFieldMetaData('contextStatementRefIdHi', -5, false), new ReplicationFieldMetaData('contextStatementRefIdLo', -5, false), new ReplicationFieldMetaData('contextInstructorActorUid', -5, false), new ReplicationFieldMetaData('statementLct', -5, false), new ReplicationFieldMetaData('extensionProgress', 4, true), new ReplicationFieldMetaData('completionOrProgress', 16, false), new ReplicationFieldMetaData('statementContentEntryUid', -5, false), new ReplicationFieldMetaData('statementLearnerGroupUid', -5, false), new ReplicationFieldMetaData('statementClazzUid', -5, false), new ReplicationFieldMetaData('statementCbUid', -5, false), new ReplicationFieldMetaData('statementDoorNode', -5, false), new ReplicationFieldMetaData('isSubStatement', 16, false)]); var tmp_177 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_178 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_179 = [Event_INSERT_getInstance()]; var tmp_180 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_181 = ['REPLACE INTO StatementEntity (statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextRegistrationHash, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement) VALUES( CAST(NEW.statementIdHi AS BIGINT), CAST(NEW.statementIdLo AS BIGINT), CAST(NEW.statementActorPersonUid AS BIGINT), CAST(NEW.statementVerbUid AS BIGINT), NEW.statementObjectType, CAST(NEW.statementObjectUid1 AS BIGINT), CAST(NEW.statementObjectUid2 AS BIGINT), CAST(NEW.statementActorUid AS BIGINT), CAST(NEW.authorityActorUid AS BIGINT), CAST(NEW.teamUid AS BIGINT), NEW.resultCompletion, NEW.resultSuccess, NEW.resultScoreScaled, NEW.resultScoreRaw, NEW.resultScoreMin, NEW.resultScoreMax, NEW.resultDuration, NEW.resultResponse, CAST(NEW.timestamp AS BIGINT), CAST(NEW.stored AS BIGINT), CAST(NEW.contextRegistrationHi AS BIGINT), CAST(NEW.contextRegistrationLo AS BIGINT), CAST(NEW.contextRegistrationHash AS BIGINT), NEW.contextPlatform, CAST(NEW.contextStatementRefIdHi AS BIGINT), CAST(NEW.contextStatementRefIdLo AS BIGINT), CAST(NEW.contextInstructorActorUid AS BIGINT), CAST(NEW.statementLct AS BIGINT), NEW.extensionProgress, NEW.completionOrProgress, CAST(NEW.statementContentEntryUid AS BIGINT), CAST(NEW.statementLearnerGroupUid AS BIGINT), CAST(NEW.statementClazzUid AS BIGINT), CAST(NEW.statementCbUid AS BIGINT), CAST(NEW.statementDoorNode AS BIGINT), NEW.isSubStatement) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$206 = ['INSERT INTO StatementEntity (statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextRegistrationHash, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement) VALUES( CAST(NEW.statementIdHi AS BIGINT), CAST(NEW.statementIdLo AS BIGINT), CAST(NEW.statementActorPersonUid AS BIGINT), CAST(NEW.statementVerbUid AS BIGINT), NEW.statementObjectType, CAST(NEW.statementObjectUid1 AS BIGINT), CAST(NEW.statementObjectUid2 AS BIGINT), CAST(NEW.statementActorUid AS BIGINT), CAST(NEW.authorityActorUid AS BIGINT), CAST(NEW.teamUid AS BIGINT), NEW.resultCompletion, NEW.resultSuccess, NEW.resultScoreScaled, NEW.resultScoreRaw, NEW.resultScoreMin, NEW.resultScoreMax, NEW.resultDuration, NEW.resultResponse, CAST(NEW.timestamp AS BIGINT), CAST(NEW.stored AS BIGINT), CAST(NEW.contextRegistrationHi AS BIGINT), CAST(NEW.contextRegistrationLo AS BIGINT), CAST(NEW.contextRegistrationHash AS BIGINT), NEW.contextPlatform, CAST(NEW.contextStatementRefIdHi AS BIGINT), CAST(NEW.contextStatementRefIdLo AS BIGINT), CAST(NEW.contextInstructorActorUid AS BIGINT), CAST(NEW.statementLct AS BIGINT), NEW.extensionProgress, NEW.completionOrProgress, CAST(NEW.statementContentEntryUid AS BIGINT), CAST(NEW.statementLearnerGroupUid AS BIGINT), CAST(NEW.statementClazzUid AS BIGINT), CAST(NEW.statementCbUid AS BIGINT), CAST(NEW.statementDoorNode AS BIGINT), NEW.isSubStatement) ON CONFLICT(statementIdHi, statementIdLo) DO UPDATE SET statementActorPersonUid = NEW.statementActorPersonUid, statementVerbUid = NEW.statementVerbUid, statementObjectType = NEW.statementObjectType, statementObjectUid1 = NEW.statementObjectUid1, statementObjectUid2 = NEW.statementObjectUid2, statementActorUid = NEW.statementActorUid, authorityActorUid = NEW.authorityActorUid, teamUid = NEW.teamUid, resultCompletion = NEW.resultCompletion, resultSuccess = NEW.resultSuccess, resultScoreScaled = NEW.resultScoreScaled, resultScoreRaw = NEW.resultScoreRaw, resultScoreMin = NEW.resultScoreMin, resultScoreMax = NEW.resultScoreMax, resultDuration = NEW.resultDuration, resultResponse = NEW.resultResponse, timestamp = NEW.timestamp, stored = NEW.stored, contextRegistrationHi = NEW.contextRegistrationHi, contextRegistrationLo = NEW.contextRegistrationLo, contextRegistrationHash = NEW.contextRegistrationHash, contextPlatform = NEW.contextPlatform, contextStatementRefIdHi = NEW.contextStatementRefIdHi, contextStatementRefIdLo = NEW.contextStatementRefIdLo, contextInstructorActorUid = NEW.contextInstructorActorUid, statementLct = NEW.statementLct, extensionProgress = NEW.extensionProgress, completionOrProgress = NEW.completionOrProgress, statementContentEntryUid = NEW.statementContentEntryUid, statementLearnerGroupUid = NEW.statementLearnerGroupUid, statementClazzUid = NEW.statementClazzUid, statementCbUid = NEW.statementCbUid, statementDoorNode = NEW.statementDoorNode, isSubStatement = NEW.isSubStatement ']; var tmp_182 = to(60, new ReplicationEntityMetaData(60, 'StatementEntity', 'StatementEntity_ReceiveView', tmp_175, 'statementLct', tmp_176, 1000, tmp_177, listOf(new Trigger('statemententity_remote_insert', tmp_178, tmp_179, tmp_180, tmp_181, tmp$ret$206, 'SELECT \n CAST(NEW.statementLct AS BIGINT) >\n COALESCE((SELECT StatementEntity_Existing.statementLct\n FROM StatementEntity StatementEntity_Existing\n WHERE StatementEntity_Existing.statementIdHi = NEW.statementIdHi AND StatementEntity_Existing.statementIdLo = NEW.statementIdLo), 0)\n ', 'SELECT \n CAST(NEW.statementLct AS BIGINT) >\n COALESCE((SELECT StatementEntity_Existing.statementLct\n FROM StatementEntity StatementEntity_Existing\n WHERE StatementEntity_Existing.statementIdHi = NEW.statementIdHi AND StatementEntity_Existing.statementIdLo = NEW.statementIdLo), 0)\n ')))); var tmp_183 = listOf('actorUid'); var tmp_184 = listOf_0([new ReplicationFieldMetaData('actorPersonUid', -5, false), new ReplicationFieldMetaData('actorName', -1, true), new ReplicationFieldMetaData('actorMbox', -1, true), new ReplicationFieldMetaData('actorMbox_sha1sum', -1, true), new ReplicationFieldMetaData('actorOpenid', -1, true), new ReplicationFieldMetaData('actorAccountName', -1, true), new ReplicationFieldMetaData('actorAccountHomePage', -1, true), new ReplicationFieldMetaData('actorEtag', -5, false), new ReplicationFieldMetaData('actorLct', -5, false), new ReplicationFieldMetaData('actorObjectType', 4, false), new ReplicationFieldMetaData('actorUid', -5, false)]); var tmp_185 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_186 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_187 = [Event_INSERT_getInstance()]; var tmp_188 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_189 = ['REPLACE INTO ActorEntity (actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType) VALUES( CAST(NEW.actorUid AS BIGINT), CAST(NEW.actorPersonUid AS BIGINT), NEW.actorName, NEW.actorMbox, NEW.actorMbox_sha1sum, NEW.actorOpenid, NEW.actorAccountName, NEW.actorAccountHomePage, CAST(NEW.actorEtag AS BIGINT), CAST(NEW.actorLct AS BIGINT), NEW.actorObjectType) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$215 = ['INSERT INTO ActorEntity (actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType) VALUES( CAST(NEW.actorUid AS BIGINT), CAST(NEW.actorPersonUid AS BIGINT), NEW.actorName, NEW.actorMbox, NEW.actorMbox_sha1sum, NEW.actorOpenid, NEW.actorAccountName, NEW.actorAccountHomePage, CAST(NEW.actorEtag AS BIGINT), CAST(NEW.actorLct AS BIGINT), NEW.actorObjectType) ON CONFLICT(actorUid) DO UPDATE SET actorPersonUid = NEW.actorPersonUid, actorName = NEW.actorName, actorMbox = NEW.actorMbox, actorMbox_sha1sum = NEW.actorMbox_sha1sum, actorOpenid = NEW.actorOpenid, actorAccountName = NEW.actorAccountName, actorAccountHomePage = NEW.actorAccountHomePage, actorEtag = NEW.actorEtag, actorLct = NEW.actorLct, actorObjectType = NEW.actorObjectType ']; var tmp_190 = to(68, new ReplicationEntityMetaData(68, 'ActorEntity', 'ActorEntity_ReceiveView', tmp_183, 'actorEtag', tmp_184, 1000, tmp_185, listOf(new Trigger('agententity_remote_insert', tmp_186, tmp_187, tmp_188, tmp_189, tmp$ret$215, 'SELECT \n CAST(NEW.actorLct AS BIGINT) >\n COALESCE((SELECT ActorEntity_Existing.actorLct\n FROM ActorEntity ActorEntity_Existing\n WHERE ActorEntity_Existing.actorUid = NEW.actorUid), 0)\n ', 'SELECT \n CAST(NEW.actorLct AS BIGINT) >\n COALESCE((SELECT ActorEntity_Existing.actorLct\n FROM ActorEntity ActorEntity_Existing\n WHERE ActorEntity_Existing.actorUid = NEW.actorUid), 0)\n ')))); var tmp_191 = listOf('commentsUid'); var tmp_192 = listOf_0([new ReplicationFieldMetaData('commentsText', -1, true), new ReplicationFieldMetaData('commentsEntityUid', -5, false), new ReplicationFieldMetaData('commentsStatus', 4, false), new ReplicationFieldMetaData('commentsFromPersonUid', -5, false), new ReplicationFieldMetaData('commentsForSubmitterUid', -5, false), new ReplicationFieldMetaData('commentsFromSubmitterUid', -5, false), new ReplicationFieldMetaData('commentsFlagged', 16, false), new ReplicationFieldMetaData('commentsDeleted', 16, false), new ReplicationFieldMetaData('commentsDateTimeAdded', -5, false), new ReplicationFieldMetaData('commentsLct', -5, false), new ReplicationFieldMetaData('commentsUid', -5, false)]); var tmp_193 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_194 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_195 = [Event_INSERT_getInstance()]; var tmp_196 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_197 = ['REPLACE INTO Comments (commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct) VALUES( CAST(NEW.commentsUid AS BIGINT), NEW.commentsText, CAST(NEW.commentsEntityUid AS BIGINT), NEW.commentsStatus, CAST(NEW.commentsFromPersonUid AS BIGINT), CAST(NEW.commentsForSubmitterUid AS BIGINT), CAST(NEW.commentsFromSubmitterUid AS BIGINT), NEW.commentsFlagged, NEW.commentsDeleted, CAST(NEW.commentsDateTimeAdded AS BIGINT), CAST(NEW.commentsLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$224 = ['INSERT INTO Comments (commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct) VALUES( CAST(NEW.commentsUid AS BIGINT), NEW.commentsText, CAST(NEW.commentsEntityUid AS BIGINT), NEW.commentsStatus, CAST(NEW.commentsFromPersonUid AS BIGINT), CAST(NEW.commentsForSubmitterUid AS BIGINT), CAST(NEW.commentsFromSubmitterUid AS BIGINT), NEW.commentsFlagged, NEW.commentsDeleted, CAST(NEW.commentsDateTimeAdded AS BIGINT), CAST(NEW.commentsLct AS BIGINT)) ON CONFLICT(commentsUid) DO UPDATE SET commentsText = NEW.commentsText, commentsEntityUid = NEW.commentsEntityUid, commentsStatus = NEW.commentsStatus, commentsFromPersonUid = NEW.commentsFromPersonUid, commentsForSubmitterUid = NEW.commentsForSubmitterUid, commentsFromSubmitterUid = NEW.commentsFromSubmitterUid, commentsFlagged = NEW.commentsFlagged, commentsDeleted = NEW.commentsDeleted, commentsDateTimeAdded = NEW.commentsDateTimeAdded, commentsLct = NEW.commentsLct ']; var tmp_198 = to(208, new ReplicationEntityMetaData(208, 'Comments', 'Comments_ReceiveView', tmp_191, 'commentsLct', tmp_192, 1000, tmp_193, listOf(new Trigger('comments_remote_insert', tmp_194, tmp_195, tmp_196, tmp_197, tmp$ret$224, 'SELECT \n CAST(NEW.commentsLct AS BIGINT) >\n COALESCE((SELECT Comments_Existing.commentsLct\n FROM Comments Comments_Existing\n WHERE Comments_Existing.commentsUid = NEW.commentsUid), 0)\n ', 'SELECT \n CAST(NEW.commentsLct AS BIGINT) >\n COALESCE((SELECT Comments_Existing.commentsLct\n FROM Comments Comments_Existing\n WHERE Comments_Existing.commentsUid = NEW.commentsUid), 0)\n ')))); var tmp_199 = listOf('reportUid'); var tmp_200 = listOf_0([new ReplicationFieldMetaData('reportTitle', -1, true), new ReplicationFieldMetaData('reportOptions', -1, true), new ReplicationFieldMetaData('reportIsTemplate', 16, false), new ReplicationFieldMetaData('reportLastModTime', -5, false), new ReplicationFieldMetaData('reportOwnerPersonUid', -5, false), new ReplicationFieldMetaData('reportUid', -5, false)]); var tmp_201 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_202 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_203 = [Event_INSERT_getInstance()]; var tmp_204 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_205 = ['REPLACE INTO Report (reportUid, reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportOwnerPersonUid) VALUES( CAST(NEW.reportUid AS BIGINT), NEW.reportTitle, NEW.reportOptions, NEW.reportIsTemplate, CAST(NEW.reportLastModTime AS BIGINT), CAST(NEW.reportOwnerPersonUid AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$233 = ['INSERT INTO Report (reportUid, reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportOwnerPersonUid) VALUES( CAST(NEW.reportUid AS BIGINT), NEW.reportTitle, NEW.reportOptions, NEW.reportIsTemplate, CAST(NEW.reportLastModTime AS BIGINT), CAST(NEW.reportOwnerPersonUid AS BIGINT)) ON CONFLICT(reportUid) DO UPDATE SET reportTitle = NEW.reportTitle, reportOptions = NEW.reportOptions, reportIsTemplate = NEW.reportIsTemplate, reportLastModTime = NEW.reportLastModTime, reportOwnerPersonUid = NEW.reportOwnerPersonUid ']; var tmp_206 = to(101, new ReplicationEntityMetaData(101, 'Report', 'Report_ReceiveView', tmp_199, 'reportUid', tmp_200, 1000, tmp_201, listOf(new Trigger('report_remote_insert', tmp_202, tmp_203, tmp_204, tmp_205, tmp$ret$233, 'SELECT \n CAST(NEW.reportLastModTime AS BIGINT) >\n COALESCE((SELECT Report_Existing.reportLastModTime\n FROM Report Report_Existing\n WHERE Report_Existing.reportUid = NEW.reportUid), 0)\n ', 'SELECT \n CAST(NEW.reportLastModTime AS BIGINT) >\n COALESCE((SELECT Report_Existing.reportLastModTime\n FROM Report Report_Existing\n WHERE Report_Existing.reportUid = NEW.reportUid), 0)\n ')))); var tmp_207 = listOf('siteUid'); var tmp_208 = listOf_0([new ReplicationFieldMetaData('sitePcsn', -5, false), new ReplicationFieldMetaData('siteLcsn', -5, false), new ReplicationFieldMetaData('siteLcb', 4, false), new ReplicationFieldMetaData('siteLct', -5, false), new ReplicationFieldMetaData('siteName', -1, true), new ReplicationFieldMetaData('guestLogin', 16, false), new ReplicationFieldMetaData('registrationAllowed', 16, false), new ReplicationFieldMetaData('authSalt', -1, true), new ReplicationFieldMetaData('siteUid', -5, false)]); var tmp_209 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_210 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_211 = [Event_INSERT_getInstance()]; var tmp_212 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_213 = ['REPLACE INTO Site (siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt) VALUES( CAST(NEW.siteUid AS BIGINT), CAST(NEW.sitePcsn AS BIGINT), CAST(NEW.siteLcsn AS BIGINT), NEW.siteLcb, CAST(NEW.siteLct AS BIGINT), NEW.siteName, NEW.guestLogin, NEW.registrationAllowed, NEW.authSalt) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$242 = ['INSERT INTO Site (siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt) VALUES( CAST(NEW.siteUid AS BIGINT), CAST(NEW.sitePcsn AS BIGINT), CAST(NEW.siteLcsn AS BIGINT), NEW.siteLcb, CAST(NEW.siteLct AS BIGINT), NEW.siteName, NEW.guestLogin, NEW.registrationAllowed, NEW.authSalt) ON CONFLICT(siteUid) DO UPDATE SET sitePcsn = NEW.sitePcsn, siteLcsn = NEW.siteLcsn, siteLcb = NEW.siteLcb, siteLct = NEW.siteLct, siteName = NEW.siteName, guestLogin = NEW.guestLogin, registrationAllowed = NEW.registrationAllowed, authSalt = NEW.authSalt ']; var tmp_214 = to(189, new ReplicationEntityMetaData(189, 'Site', 'Site_ReceiveView', tmp_207, 'siteLct', tmp_208, 1000, tmp_209, listOf(new Trigger('site_remote_insert', tmp_210, tmp_211, tmp_212, tmp_213, tmp$ret$242, '\n SELECT ((SELECT COUNT(*) \n FROM Site) = 0\n OR NEW.authSalt = \n (SELECT Site.authSalt\n FROM Site\n LIMIT 1))\n AND (SELECT \n CAST(NEW.siteLct AS BIGINT) >\n COALESCE((SELECT Site_Existing.siteLct\n FROM Site Site_Existing\n WHERE Site_Existing.siteUid = NEW.siteUid), 0)\n ) \n ', '\n SELECT ((SELECT COUNT(*) \n FROM Site) = 0\n OR NEW.authSalt = \n (SELECT Site.authSalt\n FROM Site\n LIMIT 1))\n AND (SELECT \n CAST(NEW.siteLct AS BIGINT) >\n COALESCE((SELECT Site_Existing.siteLct\n FROM Site Site_Existing\n WHERE Site_Existing.siteUid = NEW.siteUid), 0)\n ) \n ')))); var tmp_215 = listOf('sTermsUid'); var tmp_216 = listOf_0([new ReplicationFieldMetaData('termsHtml', -1, true), new ReplicationFieldMetaData('sTermsLang', -1, true), new ReplicationFieldMetaData('sTermsLangUid', -5, false), new ReplicationFieldMetaData('sTermsActive', 16, false), new ReplicationFieldMetaData('sTermsLastChangedBy', 4, false), new ReplicationFieldMetaData('sTermsPrimaryCsn', -5, false), new ReplicationFieldMetaData('sTermsLocalCsn', -5, false), new ReplicationFieldMetaData('sTermsLct', -5, false), new ReplicationFieldMetaData('sTermsUid', -5, false)]); var tmp_217 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_218 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_219 = [Event_INSERT_getInstance()]; var tmp_220 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_221 = ['REPLACE INTO SiteTerms (sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct) VALUES( CAST(NEW.sTermsUid AS BIGINT), NEW.termsHtml, NEW.sTermsLang, CAST(NEW.sTermsLangUid AS BIGINT), NEW.sTermsActive, NEW.sTermsLastChangedBy, CAST(NEW.sTermsPrimaryCsn AS BIGINT), CAST(NEW.sTermsLocalCsn AS BIGINT), CAST(NEW.sTermsLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$251 = ['INSERT INTO SiteTerms (sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct) VALUES( CAST(NEW.sTermsUid AS BIGINT), NEW.termsHtml, NEW.sTermsLang, CAST(NEW.sTermsLangUid AS BIGINT), NEW.sTermsActive, NEW.sTermsLastChangedBy, CAST(NEW.sTermsPrimaryCsn AS BIGINT), CAST(NEW.sTermsLocalCsn AS BIGINT), CAST(NEW.sTermsLct AS BIGINT)) ON CONFLICT(sTermsUid) DO UPDATE SET termsHtml = NEW.termsHtml, sTermsLang = NEW.sTermsLang, sTermsLangUid = NEW.sTermsLangUid, sTermsActive = NEW.sTermsActive, sTermsLastChangedBy = NEW.sTermsLastChangedBy, sTermsPrimaryCsn = NEW.sTermsPrimaryCsn, sTermsLocalCsn = NEW.sTermsLocalCsn, sTermsLct = NEW.sTermsLct ']; var tmp_222 = to(272, new ReplicationEntityMetaData(272, 'SiteTerms', 'SiteTerms_ReceiveView', tmp_215, 'sTermsLct', tmp_216, 1000, tmp_217, listOf(new Trigger('siteterms_remote_insert', tmp_218, tmp_219, tmp_220, tmp_221, tmp$ret$251, 'SELECT \n CAST(NEW.sTermsLct AS BIGINT) >\n COALESCE((SELECT SiteTerms_Existing.sTermsLct\n FROM SiteTerms SiteTerms_Existing\n WHERE SiteTerms_Existing.sTermsUid = NEW.sTermsUid), 0)\n ', 'SELECT \n CAST(NEW.sTermsLct AS BIGINT) >\n COALESCE((SELECT SiteTerms_Existing.sTermsLct\n FROM SiteTerms SiteTerms_Existing\n WHERE SiteTerms_Existing.sTermsUid = NEW.sTermsUid), 0)\n ')))); var tmp_223 = listOf('ppjUid'); var tmp_224 = listOf_0([new ReplicationFieldMetaData('ppjPcsn', -5, false), new ReplicationFieldMetaData('ppjLcsn', -5, false), new ReplicationFieldMetaData('ppjLcb', 4, false), new ReplicationFieldMetaData('ppjLct', -5, false), new ReplicationFieldMetaData('ppjParentPersonUid', -5, false), new ReplicationFieldMetaData('ppjMinorPersonUid', -5, false), new ReplicationFieldMetaData('ppjRelationship', 4, false), new ReplicationFieldMetaData('ppjEmail', -1, true), new ReplicationFieldMetaData('ppjPhone', -1, true), new ReplicationFieldMetaData('ppjInactive', 16, false), new ReplicationFieldMetaData('ppjStatus', 4, false), new ReplicationFieldMetaData('ppjApprovalTiemstamp', -5, false), new ReplicationFieldMetaData('ppjApprovalIpAddr', -1, true), new ReplicationFieldMetaData('ppjUid', -5, false)]); var tmp_225 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_226 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_227 = [Event_INSERT_getInstance()]; var tmp_228 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_229 = ['REPLACE INTO PersonParentJoin (ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr) VALUES( CAST(NEW.ppjUid AS BIGINT), CAST(NEW.ppjPcsn AS BIGINT), CAST(NEW.ppjLcsn AS BIGINT), NEW.ppjLcb, CAST(NEW.ppjLct AS BIGINT), CAST(NEW.ppjParentPersonUid AS BIGINT), CAST(NEW.ppjMinorPersonUid AS BIGINT), NEW.ppjRelationship, NEW.ppjEmail, NEW.ppjPhone, NEW.ppjInactive, NEW.ppjStatus, CAST(NEW.ppjApprovalTiemstamp AS BIGINT), NEW.ppjApprovalIpAddr) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$260 = ['INSERT INTO PersonParentJoin (ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr) VALUES( CAST(NEW.ppjUid AS BIGINT), CAST(NEW.ppjPcsn AS BIGINT), CAST(NEW.ppjLcsn AS BIGINT), NEW.ppjLcb, CAST(NEW.ppjLct AS BIGINT), CAST(NEW.ppjParentPersonUid AS BIGINT), CAST(NEW.ppjMinorPersonUid AS BIGINT), NEW.ppjRelationship, NEW.ppjEmail, NEW.ppjPhone, NEW.ppjInactive, NEW.ppjStatus, CAST(NEW.ppjApprovalTiemstamp AS BIGINT), NEW.ppjApprovalIpAddr) ON CONFLICT(ppjUid) DO UPDATE SET ppjPcsn = NEW.ppjPcsn, ppjLcsn = NEW.ppjLcsn, ppjLcb = NEW.ppjLcb, ppjLct = NEW.ppjLct, ppjParentPersonUid = NEW.ppjParentPersonUid, ppjMinorPersonUid = NEW.ppjMinorPersonUid, ppjRelationship = NEW.ppjRelationship, ppjEmail = NEW.ppjEmail, ppjPhone = NEW.ppjPhone, ppjInactive = NEW.ppjInactive, ppjStatus = NEW.ppjStatus, ppjApprovalTiemstamp = NEW.ppjApprovalTiemstamp, ppjApprovalIpAddr = NEW.ppjApprovalIpAddr ']; var tmp_230 = to(512, new ReplicationEntityMetaData(512, 'PersonParentJoin', 'PersonParentJoin_ReceiveView', tmp_223, 'ppjLct', tmp_224, 1000, tmp_225, listOf(new Trigger('personparentjoin_remote_insert', tmp_226, tmp_227, tmp_228, tmp_229, tmp$ret$260, 'SELECT \n CAST(NEW.ppjLct AS BIGINT) >\n COALESCE((SELECT PersonParentJoin_Existing.ppjLct\n FROM PersonParentJoin PersonParentJoin_Existing\n WHERE PersonParentJoin_Existing.ppjUid = NEW.ppjUid), 0)\n ', 'SELECT \n CAST(NEW.ppjLct AS BIGINT) >\n COALESCE((SELECT PersonParentJoin_Existing.ppjLct\n FROM PersonParentJoin PersonParentJoin_Existing\n WHERE PersonParentJoin_Existing.ppjUid = NEW.ppjUid), 0)\n ')))); var tmp_231 = listOf('sgUid'); var tmp_232 = listOf_0([new ReplicationFieldMetaData('sgPcsn', -5, false), new ReplicationFieldMetaData('sgLcsn', -5, false), new ReplicationFieldMetaData('sgLcb', 4, false), new ReplicationFieldMetaData('sgLct', -5, false), new ReplicationFieldMetaData('sgTableId', 4, false), new ReplicationFieldMetaData('sgEntityUid', -5, false), new ReplicationFieldMetaData('sgPermissions', -5, false), new ReplicationFieldMetaData('sgGroupUid', -5, false), new ReplicationFieldMetaData('sgIndex', 4, false), new ReplicationFieldMetaData('sgFlags', 4, false), new ReplicationFieldMetaData('sgUid', -5, false)]); var tmp_233 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_234 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_235 = [Event_INSERT_getInstance()]; var tmp_236 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_237 = ['UPDATE ScopedGrant SET sgLct = 0 WHERE sgUid = 0']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$269 = ['UPDATE ScopedGrant SET sgLct = 0 WHERE sgUid = 0']; var tmp_238 = to(48, new ReplicationEntityMetaData(48, 'ScopedGrant', 'ScopedGrant_ReceiveView', tmp_231, 'sgLct', tmp_232, 1000, tmp_233, listOf(new Trigger('sg_remote_insert', tmp_234, tmp_235, tmp_236, tmp_237, tmp$ret$269, 'SELECT \n CAST(NEW.sgLct AS BIGINT) >\n COALESCE((SELECT ScopedGrant_Existing.sgLct\n FROM ScopedGrant ScopedGrant_Existing\n WHERE ScopedGrant_Existing.sgUid = NEW.sgUid), 0)\n ', 'SELECT \n CAST(NEW.sgLct AS BIGINT) >\n COALESCE((SELECT ScopedGrant_Existing.sgLct\n FROM ScopedGrant ScopedGrant_Existing\n WHERE ScopedGrant_Existing.sgUid = NEW.sgUid), 0)\n ')))); var tmp_239 = listOf('errUid'); var tmp_240 = listOf_0([new ReplicationFieldMetaData('errPcsn', -5, false), new ReplicationFieldMetaData('errLcsn', -5, false), new ReplicationFieldMetaData('errLcb', 4, false), new ReplicationFieldMetaData('errLct', -5, false), new ReplicationFieldMetaData('severity', 4, false), new ReplicationFieldMetaData('timestamp', -5, false), new ReplicationFieldMetaData('presenterUri', -1, true), new ReplicationFieldMetaData('appVersion', -1, true), new ReplicationFieldMetaData('versionCode', 4, false), new ReplicationFieldMetaData('errorCode', 4, false), new ReplicationFieldMetaData('operatingSys', -1, true), new ReplicationFieldMetaData('osVersion', -1, true), new ReplicationFieldMetaData('stackTrace', -1, true), new ReplicationFieldMetaData('message', -1, true), new ReplicationFieldMetaData('errUid', -5, false)]); var tmp_241 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_242 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_243 = [Event_INSERT_getInstance()]; var tmp_244 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_245 = ['REPLACE INTO ErrorReport (errUid, errPcsn, errLcsn, errLcb, errLct, severity, timestamp, presenterUri, appVersion, versionCode, errorCode, operatingSys, osVersion, stackTrace, message) VALUES( CAST(NEW.errUid AS BIGINT), CAST(NEW.errPcsn AS BIGINT), CAST(NEW.errLcsn AS BIGINT), NEW.errLcb, CAST(NEW.errLct AS BIGINT), NEW.severity, CAST(NEW.timestamp AS BIGINT), NEW.presenterUri, NEW.appVersion, NEW.versionCode, NEW.errorCode, NEW.operatingSys, NEW.osVersion, NEW.stackTrace, NEW.message) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$278 = ['INSERT INTO ErrorReport (errUid, errPcsn, errLcsn, errLcb, errLct, severity, timestamp, presenterUri, appVersion, versionCode, errorCode, operatingSys, osVersion, stackTrace, message) VALUES( CAST(NEW.errUid AS BIGINT), CAST(NEW.errPcsn AS BIGINT), CAST(NEW.errLcsn AS BIGINT), NEW.errLcb, CAST(NEW.errLct AS BIGINT), NEW.severity, CAST(NEW.timestamp AS BIGINT), NEW.presenterUri, NEW.appVersion, NEW.versionCode, NEW.errorCode, NEW.operatingSys, NEW.osVersion, NEW.stackTrace, NEW.message) ON CONFLICT(errUid) DO UPDATE SET errPcsn = NEW.errPcsn, errLcsn = NEW.errLcsn, errLcb = NEW.errLcb, errLct = NEW.errLct, severity = NEW.severity, timestamp = NEW.timestamp, presenterUri = NEW.presenterUri, appVersion = NEW.appVersion, versionCode = NEW.versionCode, errorCode = NEW.errorCode, operatingSys = NEW.operatingSys, osVersion = NEW.osVersion, stackTrace = NEW.stackTrace, message = NEW.message ']; var tmp_246 = to(419, new ReplicationEntityMetaData(419, 'ErrorReport', 'ErrorReport_ReceiveView', tmp_239, 'errLct', tmp_240, 1000, tmp_241, listOf(new Trigger('errorreport_remote_insert', tmp_242, tmp_243, tmp_244, tmp_245, tmp$ret$278, 'SELECT \n CAST(NEW.errLct AS BIGINT) >\n COALESCE((SELECT ErrorReport_Existing.errLct\n FROM ErrorReport ErrorReport_Existing\n WHERE ErrorReport_Existing.errUid = NEW.errUid), 0)\n ', 'SELECT \n CAST(NEW.errLct AS BIGINT) >\n COALESCE((SELECT ErrorReport_Existing.errLct\n FROM ErrorReport ErrorReport_Existing\n WHERE ErrorReport_Existing.errUid = NEW.errUid), 0)\n ')))); var tmp_247 = listOf('caUid'); var tmp_248 = listOf_0([new ReplicationFieldMetaData('caTitle', -1, true), new ReplicationFieldMetaData('caDescription', -1, true), new ReplicationFieldMetaData('caGroupUid', -5, false), new ReplicationFieldMetaData('caActive', 16, false), new ReplicationFieldMetaData('caClassCommentEnabled', 16, false), new ReplicationFieldMetaData('caPrivateCommentsEnabled', 16, false), new ReplicationFieldMetaData('caCompletionCriteria', 4, false), new ReplicationFieldMetaData('caRequireFileSubmission', 16, false), new ReplicationFieldMetaData('caFileType', 4, false), new ReplicationFieldMetaData('caSizeLimit', 4, false), new ReplicationFieldMetaData('caNumberOfFiles', 4, false), new ReplicationFieldMetaData('caSubmissionPolicy', 4, false), new ReplicationFieldMetaData('caMarkingType', 4, false), new ReplicationFieldMetaData('caRequireTextSubmission', 16, false), new ReplicationFieldMetaData('caTextLimitType', 4, false), new ReplicationFieldMetaData('caTextLimit', 4, false), new ReplicationFieldMetaData('caXObjectUid', -5, false), new ReplicationFieldMetaData('caClazzUid', -5, false), new ReplicationFieldMetaData('caPeerReviewerCount', 4, false), new ReplicationFieldMetaData('caLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('caMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('caLastChangedBy', 4, false), new ReplicationFieldMetaData('caLct', -5, false), new ReplicationFieldMetaData('caUid', -5, false)]); var tmp_249 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_250 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_251 = [Event_INSERT_getInstance()]; var tmp_252 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_253 = ['REPLACE INTO ClazzAssignment (caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) VALUES( CAST(NEW.caUid AS BIGINT), NEW.caTitle, NEW.caDescription, CAST(NEW.caGroupUid AS BIGINT), NEW.caActive, NEW.caClassCommentEnabled, NEW.caPrivateCommentsEnabled, NEW.caCompletionCriteria, NEW.caRequireFileSubmission, NEW.caFileType, NEW.caSizeLimit, NEW.caNumberOfFiles, NEW.caSubmissionPolicy, NEW.caMarkingType, NEW.caRequireTextSubmission, NEW.caTextLimitType, NEW.caTextLimit, CAST(NEW.caXObjectUid AS BIGINT), CAST(NEW.caClazzUid AS BIGINT), NEW.caPeerReviewerCount, CAST(NEW.caLocalChangeSeqNum AS BIGINT), CAST(NEW.caMasterChangeSeqNum AS BIGINT), NEW.caLastChangedBy, CAST(NEW.caLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$287 = ['INSERT INTO ClazzAssignment (caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) VALUES( CAST(NEW.caUid AS BIGINT), NEW.caTitle, NEW.caDescription, CAST(NEW.caGroupUid AS BIGINT), NEW.caActive, NEW.caClassCommentEnabled, NEW.caPrivateCommentsEnabled, NEW.caCompletionCriteria, NEW.caRequireFileSubmission, NEW.caFileType, NEW.caSizeLimit, NEW.caNumberOfFiles, NEW.caSubmissionPolicy, NEW.caMarkingType, NEW.caRequireTextSubmission, NEW.caTextLimitType, NEW.caTextLimit, CAST(NEW.caXObjectUid AS BIGINT), CAST(NEW.caClazzUid AS BIGINT), NEW.caPeerReviewerCount, CAST(NEW.caLocalChangeSeqNum AS BIGINT), CAST(NEW.caMasterChangeSeqNum AS BIGINT), NEW.caLastChangedBy, CAST(NEW.caLct AS BIGINT)) ON CONFLICT(caUid) DO UPDATE SET caTitle = NEW.caTitle, caDescription = NEW.caDescription, caGroupUid = NEW.caGroupUid, caActive = NEW.caActive, caClassCommentEnabled = NEW.caClassCommentEnabled, caPrivateCommentsEnabled = NEW.caPrivateCommentsEnabled, caCompletionCriteria = NEW.caCompletionCriteria, caRequireFileSubmission = NEW.caRequireFileSubmission, caFileType = NEW.caFileType, caSizeLimit = NEW.caSizeLimit, caNumberOfFiles = NEW.caNumberOfFiles, caSubmissionPolicy = NEW.caSubmissionPolicy, caMarkingType = NEW.caMarkingType, caRequireTextSubmission = NEW.caRequireTextSubmission, caTextLimitType = NEW.caTextLimitType, caTextLimit = NEW.caTextLimit, caXObjectUid = NEW.caXObjectUid, caClazzUid = NEW.caClazzUid, caPeerReviewerCount = NEW.caPeerReviewerCount, caLocalChangeSeqNum = NEW.caLocalChangeSeqNum, caMasterChangeSeqNum = NEW.caMasterChangeSeqNum, caLastChangedBy = NEW.caLastChangedBy, caLct = NEW.caLct ']; var tmp_254 = to(520, new ReplicationEntityMetaData(520, 'ClazzAssignment', 'ClazzAssignment_ReceiveView', tmp_247, 'caLct', tmp_248, 1000, tmp_249, listOf(new Trigger('clazzassignment_remote_insert', tmp_250, tmp_251, tmp_252, tmp_253, tmp$ret$287, 'SELECT \n CAST(NEW.caLct AS BIGINT) >\n COALESCE((SELECT ClazzAssignment_Existing.caLct\n FROM ClazzAssignment ClazzAssignment_Existing\n WHERE ClazzAssignment_Existing.caUid = NEW.caUid), 0)\n ', 'SELECT \n CAST(NEW.caLct AS BIGINT) >\n COALESCE((SELECT ClazzAssignment_Existing.caLct\n FROM ClazzAssignment ClazzAssignment_Existing\n WHERE ClazzAssignment_Existing.caUid = NEW.caUid), 0)\n ')))); var tmp_255 = listOf('casUid'); var tmp_256 = listOf_0([new ReplicationFieldMetaData('casAssignmentUid', -5, false), new ReplicationFieldMetaData('casSubmitterUid', -5, false), new ReplicationFieldMetaData('casSubmitterPersonUid', -5, false), new ReplicationFieldMetaData('casText', -1, true), new ReplicationFieldMetaData('casType', 4, false), new ReplicationFieldMetaData('casTimestamp', -5, false), new ReplicationFieldMetaData('casClazzUid', -5, false), new ReplicationFieldMetaData('casUid', -5, false)]); var tmp_257 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_258 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_259 = [Event_INSERT_getInstance()]; var tmp_260 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_261 = ['REPLACE INTO CourseAssignmentSubmission (casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid) VALUES( CAST(NEW.casUid AS BIGINT), CAST(NEW.casAssignmentUid AS BIGINT), CAST(NEW.casSubmitterUid AS BIGINT), CAST(NEW.casSubmitterPersonUid AS BIGINT), NEW.casText, NEW.casType, CAST(NEW.casTimestamp AS BIGINT), CAST(NEW.casClazzUid AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$296 = ['INSERT INTO CourseAssignmentSubmission (casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid) VALUES( CAST(NEW.casUid AS BIGINT), CAST(NEW.casAssignmentUid AS BIGINT), CAST(NEW.casSubmitterUid AS BIGINT), CAST(NEW.casSubmitterPersonUid AS BIGINT), NEW.casText, NEW.casType, CAST(NEW.casTimestamp AS BIGINT), CAST(NEW.casClazzUid AS BIGINT)) ON CONFLICT(casUid) DO UPDATE SET casAssignmentUid = NEW.casAssignmentUid, casSubmitterUid = NEW.casSubmitterUid, casSubmitterPersonUid = NEW.casSubmitterPersonUid, casText = NEW.casText, casType = NEW.casType, casTimestamp = NEW.casTimestamp, casClazzUid = NEW.casClazzUid ']; var tmp_262 = to(522, new ReplicationEntityMetaData(522, 'CourseAssignmentSubmission', 'CourseAssignmentSubmission_ReceiveView', tmp_255, 'casTimestamp', tmp_256, 1000, tmp_257, listOf(new Trigger('courseassignmentsubmission_remote_insert', tmp_258, tmp_259, tmp_260, tmp_261, tmp$ret$296, 'SELECT \n CAST(NEW.casTimestamp AS BIGINT) >\n COALESCE((SELECT CourseAssignmentSubmission_Existing.casTimestamp\n FROM CourseAssignmentSubmission CourseAssignmentSubmission_Existing\n WHERE CourseAssignmentSubmission_Existing.casUid = NEW.casUid), 0)\n ', 'SELECT \n CAST(NEW.casTimestamp AS BIGINT) >\n COALESCE((SELECT CourseAssignmentSubmission_Existing.casTimestamp\n FROM CourseAssignmentSubmission CourseAssignmentSubmission_Existing\n WHERE CourseAssignmentSubmission_Existing.casUid = NEW.casUid), 0)\n ')))); var tmp_263 = listOf('casaUid'); var tmp_264 = listOf_0([new ReplicationFieldMetaData('casaSubmissionUid', -5, false), new ReplicationFieldMetaData('casaSubmitterUid', -5, false), new ReplicationFieldMetaData('casaCaUid', -5, false), new ReplicationFieldMetaData('casaClazzUid', -5, false), new ReplicationFieldMetaData('casaMimeType', -1, true), new ReplicationFieldMetaData('casaFileName', -1, true), new ReplicationFieldMetaData('casaUri', -1, true), new ReplicationFieldMetaData('casaSize', 4, false), new ReplicationFieldMetaData('casaTimestamp', -5, false), new ReplicationFieldMetaData('casaDeleted', 16, false), new ReplicationFieldMetaData('casaUid', -5, false)]); var tmp_265 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_266 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_267 = [Event_INSERT_getInstance()]; var tmp_268 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_269 = ['REPLACE INTO CourseAssignmentSubmissionFile (casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted) VALUES( CAST(NEW.casaUid AS BIGINT), CAST(NEW.casaSubmissionUid AS BIGINT), CAST(NEW.casaSubmitterUid AS BIGINT), CAST(NEW.casaCaUid AS BIGINT), CAST(NEW.casaClazzUid AS BIGINT), NEW.casaMimeType, NEW.casaFileName, NEW.casaUri, NEW.casaSize, CAST(NEW.casaTimestamp AS BIGINT), NEW.casaDeleted) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$305 = ['INSERT INTO CourseAssignmentSubmissionFile (casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted) VALUES( CAST(NEW.casaUid AS BIGINT), CAST(NEW.casaSubmissionUid AS BIGINT), CAST(NEW.casaSubmitterUid AS BIGINT), CAST(NEW.casaCaUid AS BIGINT), CAST(NEW.casaClazzUid AS BIGINT), NEW.casaMimeType, NEW.casaFileName, NEW.casaUri, NEW.casaSize, CAST(NEW.casaTimestamp AS BIGINT), NEW.casaDeleted) ON CONFLICT(casaUid) DO UPDATE SET casaSubmissionUid = NEW.casaSubmissionUid, casaSubmitterUid = NEW.casaSubmitterUid, casaCaUid = NEW.casaCaUid, casaClazzUid = NEW.casaClazzUid, casaMimeType = NEW.casaMimeType, casaFileName = NEW.casaFileName, casaUri = NEW.casaUri, casaSize = NEW.casaSize, casaTimestamp = NEW.casaTimestamp, casaDeleted = NEW.casaDeleted ']; var tmp_270 = to(90, new ReplicationEntityMetaData(90, 'CourseAssignmentSubmissionFile', 'CourseAssignmentSubmissionFile_ReceiveView', tmp_263, 'casaTimestamp', tmp_264, 1000, tmp_265, listOf(new Trigger('courseassignmentsubmissionattachment_remote_insert', tmp_266, tmp_267, tmp_268, tmp_269, tmp$ret$305, 'SELECT \n CAST(NEW.casaTimestamp AS BIGINT) >\n COALESCE((SELECT CourseAssignmentSubmissionFile_Existing.casaTimestamp\n FROM CourseAssignmentSubmissionFile CourseAssignmentSubmissionFile_Existing\n WHERE CourseAssignmentSubmissionFile_Existing.casaUid = NEW.casaUid), 0)\n ', 'SELECT \n CAST(NEW.casaTimestamp AS BIGINT) >\n COALESCE((SELECT CourseAssignmentSubmissionFile_Existing.casaTimestamp\n FROM CourseAssignmentSubmissionFile CourseAssignmentSubmissionFile_Existing\n WHERE CourseAssignmentSubmissionFile_Existing.casaUid = NEW.casaUid), 0)\n ')))); var tmp_271 = listOf('camUid'); var tmp_272 = listOf_0([new ReplicationFieldMetaData('camAssignmentUid', -5, false), new ReplicationFieldMetaData('camSubmitterUid', -5, false), new ReplicationFieldMetaData('camMarkerSubmitterUid', -5, false), new ReplicationFieldMetaData('camMarkerPersonUid', -5, false), new ReplicationFieldMetaData('camMarkerComment', -1, true), new ReplicationFieldMetaData('camMark', 6, false), new ReplicationFieldMetaData('camMaxMark', 6, false), new ReplicationFieldMetaData('camPenalty', 6, false), new ReplicationFieldMetaData('camLct', -5, false), new ReplicationFieldMetaData('camClazzUid', -5, false), new ReplicationFieldMetaData('camUid', -5, false)]); var tmp_273 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_274 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_275 = [Event_INSERT_getInstance()]; var tmp_276 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_277 = ['REPLACE INTO CourseAssignmentMark (camUid, camAssignmentUid, camSubmitterUid, camMarkerSubmitterUid, camMarkerPersonUid, camMarkerComment, camMark, camMaxMark, camPenalty, camLct, camClazzUid) VALUES( CAST(NEW.camUid AS BIGINT), CAST(NEW.camAssignmentUid AS BIGINT), CAST(NEW.camSubmitterUid AS BIGINT), CAST(NEW.camMarkerSubmitterUid AS BIGINT), CAST(NEW.camMarkerPersonUid AS BIGINT), NEW.camMarkerComment, NEW.camMark, NEW.camMaxMark, NEW.camPenalty, CAST(NEW.camLct AS BIGINT), CAST(NEW.camClazzUid AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$314 = ['INSERT INTO CourseAssignmentMark (camUid, camAssignmentUid, camSubmitterUid, camMarkerSubmitterUid, camMarkerPersonUid, camMarkerComment, camMark, camMaxMark, camPenalty, camLct, camClazzUid) VALUES( CAST(NEW.camUid AS BIGINT), CAST(NEW.camAssignmentUid AS BIGINT), CAST(NEW.camSubmitterUid AS BIGINT), CAST(NEW.camMarkerSubmitterUid AS BIGINT), CAST(NEW.camMarkerPersonUid AS BIGINT), NEW.camMarkerComment, NEW.camMark, NEW.camMaxMark, NEW.camPenalty, CAST(NEW.camLct AS BIGINT), CAST(NEW.camClazzUid AS BIGINT)) ON CONFLICT(camUid) DO UPDATE SET camAssignmentUid = NEW.camAssignmentUid, camSubmitterUid = NEW.camSubmitterUid, camMarkerSubmitterUid = NEW.camMarkerSubmitterUid, camMarkerPersonUid = NEW.camMarkerPersonUid, camMarkerComment = NEW.camMarkerComment, camMark = NEW.camMark, camMaxMark = NEW.camMaxMark, camPenalty = NEW.camPenalty, camLct = NEW.camLct, camClazzUid = NEW.camClazzUid ']; var tmp_278 = to(523, new ReplicationEntityMetaData(523, 'CourseAssignmentMark', 'CourseAssignmentMark_ReceiveView', tmp_271, 'camLct', tmp_272, 1000, tmp_273, listOf(new Trigger('courseassignmentmark_remote_insert', tmp_274, tmp_275, tmp_276, tmp_277, tmp$ret$314, 'SELECT \n CAST(NEW.camLct AS BIGINT) >\n COALESCE((SELECT CourseAssignmentMark_Existing.camLct\n FROM CourseAssignmentMark CourseAssignmentMark_Existing\n WHERE CourseAssignmentMark_Existing.camUid = NEW.camUid), 0)\n ', 'SELECT \n CAST(NEW.camLct AS BIGINT) >\n COALESCE((SELECT CourseAssignmentMark_Existing.camLct\n FROM CourseAssignmentMark CourseAssignmentMark_Existing\n WHERE CourseAssignmentMark_Existing.camUid = NEW.camUid), 0)\n ')))); var tmp_279 = listOf('praUid'); var tmp_280 = listOf_0([new ReplicationFieldMetaData('praMarkerSubmitterUid', -5, false), new ReplicationFieldMetaData('praToMarkerSubmitterUid', -5, false), new ReplicationFieldMetaData('praAssignmentUid', -5, false), new ReplicationFieldMetaData('praActive', 16, false), new ReplicationFieldMetaData('praLct', -5, false), new ReplicationFieldMetaData('praUid', -5, false)]); var tmp_281 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_282 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_283 = [Event_INSERT_getInstance()]; var tmp_284 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_285 = ['REPLACE INTO PeerReviewerAllocation (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) VALUES( CAST(NEW.praUid AS BIGINT), CAST(NEW.praMarkerSubmitterUid AS BIGINT), CAST(NEW.praToMarkerSubmitterUid AS BIGINT), CAST(NEW.praAssignmentUid AS BIGINT), NEW.praActive, CAST(NEW.praLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$323 = ['INSERT INTO PeerReviewerAllocation (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) VALUES( CAST(NEW.praUid AS BIGINT), CAST(NEW.praMarkerSubmitterUid AS BIGINT), CAST(NEW.praToMarkerSubmitterUid AS BIGINT), CAST(NEW.praAssignmentUid AS BIGINT), NEW.praActive, CAST(NEW.praLct AS BIGINT)) ON CONFLICT(praUid) DO UPDATE SET praMarkerSubmitterUid = NEW.praMarkerSubmitterUid, praToMarkerSubmitterUid = NEW.praToMarkerSubmitterUid, praAssignmentUid = NEW.praAssignmentUid, praActive = NEW.praActive, praLct = NEW.praLct ']; var tmp_286 = to(140, new ReplicationEntityMetaData(140, 'PeerReviewerAllocation', 'PeerReviewerAllocation_ReceiveView', tmp_279, 'praLct', tmp_280, 1000, tmp_281, listOf(new Trigger('peerreviewerallocation_remote_insert', tmp_282, tmp_283, tmp_284, tmp_285, tmp$ret$323, 'SELECT \n CAST(NEW.praLct AS BIGINT) >\n COALESCE((SELECT PeerReviewerAllocation_Existing.praLct\n FROM PeerReviewerAllocation PeerReviewerAllocation_Existing\n WHERE PeerReviewerAllocation_Existing.praUid = NEW.praUid), 0)\n ', 'SELECT \n CAST(NEW.praLct AS BIGINT) >\n COALESCE((SELECT PeerReviewerAllocation_Existing.praLct\n FROM PeerReviewerAllocation PeerReviewerAllocation_Existing\n WHERE PeerReviewerAllocation_Existing.praUid = NEW.praUid), 0)\n ')))); var tmp_287 = listOf('pauthUid'); var tmp_288 = listOf_0([new ReplicationFieldMetaData('pauthUid', -5, false), new ReplicationFieldMetaData('pauthMechanism', -1, true), new ReplicationFieldMetaData('pauthAuth', -1, true), new ReplicationFieldMetaData('pauthLcsn', -5, false), new ReplicationFieldMetaData('pauthPcsn', -5, false), new ReplicationFieldMetaData('pauthLcb', -5, false), new ReplicationFieldMetaData('pauthLct', -5, false)]); var tmp_289 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_290 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_291 = [Event_INSERT_getInstance()]; var tmp_292 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_293 = ['REPLACE INTO PersonAuth2 (pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct) VALUES( CAST(NEW.pauthUid AS BIGINT), NEW.pauthMechanism, NEW.pauthAuth, CAST(NEW.pauthLcsn AS BIGINT), CAST(NEW.pauthPcsn AS BIGINT), CAST(NEW.pauthLcb AS BIGINT), CAST(NEW.pauthLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$332 = ['INSERT INTO PersonAuth2 (pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct) VALUES( CAST(NEW.pauthUid AS BIGINT), NEW.pauthMechanism, NEW.pauthAuth, CAST(NEW.pauthLcsn AS BIGINT), CAST(NEW.pauthPcsn AS BIGINT), CAST(NEW.pauthLcb AS BIGINT), CAST(NEW.pauthLct AS BIGINT)) ON CONFLICT(pauthUid) DO UPDATE SET pauthMechanism = NEW.pauthMechanism, pauthAuth = NEW.pauthAuth, pauthLcsn = NEW.pauthLcsn, pauthPcsn = NEW.pauthPcsn, pauthLcb = NEW.pauthLcb, pauthLct = NEW.pauthLct ']; var tmp_294 = to(678, new ReplicationEntityMetaData(678, 'PersonAuth2', 'PersonAuth2_ReceiveView', tmp_287, 'pauthLct', tmp_288, 1000, tmp_289, listOf(new Trigger('personauth2_remote_insert', tmp_290, tmp_291, tmp_292, tmp_293, tmp$ret$332, 'SELECT \n CAST(NEW.pauthLct AS BIGINT) >\n COALESCE((SELECT PersonAuth2_Existing.pauthLct\n FROM PersonAuth2 PersonAuth2_Existing\n WHERE PersonAuth2_Existing.pauthUid = NEW.pauthUid), 0)\n ', 'SELECT \n CAST(NEW.pauthLct AS BIGINT) >\n COALESCE((SELECT PersonAuth2_Existing.pauthLct\n FROM PersonAuth2 PersonAuth2_Existing\n WHERE PersonAuth2_Existing.pauthUid = NEW.pauthUid), 0)\n ')))); var tmp_295 = listOf('usUid'); var tmp_296 = listOf_0([new ReplicationFieldMetaData('usPcsn', -5, false), new ReplicationFieldMetaData('usLcsn', -5, false), new ReplicationFieldMetaData('usLcb', -5, false), new ReplicationFieldMetaData('usLct', -5, false), new ReplicationFieldMetaData('usPersonUid', -5, false), new ReplicationFieldMetaData('usClientNodeId', -5, false), new ReplicationFieldMetaData('usStartTime', -5, false), new ReplicationFieldMetaData('usEndTime', -5, false), new ReplicationFieldMetaData('usStatus', 4, false), new ReplicationFieldMetaData('usReason', 4, false), new ReplicationFieldMetaData('usAuth', -1, true), new ReplicationFieldMetaData('usSessionType', 4, false), new ReplicationFieldMetaData('usUid', -5, false)]); var tmp_297 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_298 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_299 = [Event_INSERT_getInstance()]; var tmp_300 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_301 = ['REPLACE INTO UserSession (usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType) VALUES( CAST(NEW.usUid AS BIGINT), CAST(NEW.usPcsn AS BIGINT), CAST(NEW.usLcsn AS BIGINT), CAST(NEW.usLcb AS BIGINT), CAST(NEW.usLct AS BIGINT), CAST(NEW.usPersonUid AS BIGINT), CAST(NEW.usClientNodeId AS BIGINT), CAST(NEW.usStartTime AS BIGINT), CAST(NEW.usEndTime AS BIGINT), NEW.usStatus, NEW.usReason, NEW.usAuth, NEW.usSessionType) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$341 = ['INSERT INTO UserSession (usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType) VALUES( CAST(NEW.usUid AS BIGINT), CAST(NEW.usPcsn AS BIGINT), CAST(NEW.usLcsn AS BIGINT), CAST(NEW.usLcb AS BIGINT), CAST(NEW.usLct AS BIGINT), CAST(NEW.usPersonUid AS BIGINT), CAST(NEW.usClientNodeId AS BIGINT), CAST(NEW.usStartTime AS BIGINT), CAST(NEW.usEndTime AS BIGINT), NEW.usStatus, NEW.usReason, NEW.usAuth, NEW.usSessionType) ON CONFLICT(usUid) DO UPDATE SET usPcsn = NEW.usPcsn, usLcsn = NEW.usLcsn, usLcb = NEW.usLcb, usLct = NEW.usLct, usPersonUid = NEW.usPersonUid, usClientNodeId = NEW.usClientNodeId, usStartTime = NEW.usStartTime, usEndTime = NEW.usEndTime, usStatus = NEW.usStatus, usReason = NEW.usReason, usAuth = NEW.usAuth, usSessionType = NEW.usSessionType ']; var tmp_302 = to(679, new ReplicationEntityMetaData(679, 'UserSession', 'UserSession_ReceiveView', tmp_295, 'usLct', tmp_296, 1000, tmp_297, listOf(new Trigger('usersession_remote_insert', tmp_298, tmp_299, tmp_300, tmp_301, tmp$ret$341, 'SELECT \n CAST(NEW.usLct AS BIGINT) >\n COALESCE((SELECT UserSession_Existing.usLct\n FROM UserSession UserSession_Existing\n WHERE UserSession_Existing.usUid = NEW.usUid), 0)\n ', 'SELECT \n CAST(NEW.usLct AS BIGINT) >\n COALESCE((SELECT UserSession_Existing.usLct\n FROM UserSession UserSession_Existing\n WHERE UserSession_Existing.usUid = NEW.usUid), 0)\n ')))); var tmp_303 = listOf('cjUid'); var tmp_304 = listOf_0([new ReplicationFieldMetaData('toUri', -1, true), new ReplicationFieldMetaData('cjProgress', -5, false), new ReplicationFieldMetaData('cjTotal', -5, false), new ReplicationFieldMetaData('cjNotificationTitle', -1, true), new ReplicationFieldMetaData('cjIsMeteredAllowed', 16, false), new ReplicationFieldMetaData('params', -1, true), new ReplicationFieldMetaData('cjLct', -5, false), new ReplicationFieldMetaData('cjUid', -5, false)]); var tmp_305 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_306 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_307 = [Event_INSERT_getInstance()]; var tmp_308 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_309 = ['REPLACE INTO ContentJob (cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct) VALUES( CAST(NEW.cjUid AS BIGINT), NEW.toUri, CAST(NEW.cjProgress AS BIGINT), CAST(NEW.cjTotal AS BIGINT), NEW.cjNotificationTitle, NEW.cjIsMeteredAllowed, NEW.params, CAST(NEW.cjLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$350 = ['INSERT INTO ContentJob (cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct) VALUES( CAST(NEW.cjUid AS BIGINT), NEW.toUri, CAST(NEW.cjProgress AS BIGINT), CAST(NEW.cjTotal AS BIGINT), NEW.cjNotificationTitle, NEW.cjIsMeteredAllowed, NEW.params, CAST(NEW.cjLct AS BIGINT)) ON CONFLICT(cjUid) DO UPDATE SET toUri = NEW.toUri, cjProgress = NEW.cjProgress, cjTotal = NEW.cjTotal, cjNotificationTitle = NEW.cjNotificationTitle, cjIsMeteredAllowed = NEW.cjIsMeteredAllowed, params = NEW.params, cjLct = NEW.cjLct ']; var tmp_310 = to(702, new ReplicationEntityMetaData(702, 'ContentJob', 'ContentJob_ReceiveView', tmp_303, 'cjLct', tmp_304, 1000, tmp_305, listOf(new Trigger('contentjob_remote_insert', tmp_306, tmp_307, tmp_308, tmp_309, tmp$ret$350, 'SELECT \n CAST(NEW.cjLct AS BIGINT) >\n COALESCE((SELECT ContentJob_Existing.cjLct\n FROM ContentJob ContentJob_Existing\n WHERE ContentJob_Existing.cjUid = NEW.cjUid), 0)\n ', 'SELECT \n CAST(NEW.cjLct AS BIGINT) >\n COALESCE((SELECT ContentJob_Existing.cjLct\n FROM ContentJob ContentJob_Existing\n WHERE ContentJob_Existing.cjUid = NEW.cjUid), 0)\n ')))); var tmp_311 = listOf('cbUid'); var tmp_312 = listOf_0([new ReplicationFieldMetaData('cbType', 4, false), new ReplicationFieldMetaData('cbIndentLevel', 4, false), new ReplicationFieldMetaData('cbModuleParentBlockUid', -5, false), new ReplicationFieldMetaData('cbTitle', -1, true), new ReplicationFieldMetaData('cbDescription', -1, true), new ReplicationFieldMetaData('cbCompletionCriteria', 4, false), new ReplicationFieldMetaData('cbHideUntilDate', -5, false), new ReplicationFieldMetaData('cbDeadlineDate', -5, false), new ReplicationFieldMetaData('cbLateSubmissionPenalty', 4, false), new ReplicationFieldMetaData('cbGracePeriodDate', -5, false), new ReplicationFieldMetaData('cbMaxPoints', 6, true), new ReplicationFieldMetaData('cbMinPoints', 6, true), new ReplicationFieldMetaData('cbIndex', 4, false), new ReplicationFieldMetaData('cbClazzUid', -5, false), new ReplicationFieldMetaData('cbClazzSourcedId', -1, true), new ReplicationFieldMetaData('cbActive', 16, false), new ReplicationFieldMetaData('cbHidden', 16, false), new ReplicationFieldMetaData('cbEntityUid', -5, false), new ReplicationFieldMetaData('cbLct', -5, false), new ReplicationFieldMetaData('cbSourcedId', -1, true), new ReplicationFieldMetaData('cbMetadata', -1, true), new ReplicationFieldMetaData('cbCreatedByAppId', -1, true), new ReplicationFieldMetaData('cbUid', -5, false)]); var tmp_313 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_314 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_315 = [Event_INSERT_getInstance()]; var tmp_316 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_317 = ['REPLACE INTO CourseBlock (cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) VALUES( CAST(NEW.cbUid AS BIGINT), NEW.cbType, NEW.cbIndentLevel, CAST(NEW.cbModuleParentBlockUid AS BIGINT), NEW.cbTitle, NEW.cbDescription, NEW.cbCompletionCriteria, CAST(NEW.cbHideUntilDate AS BIGINT), CAST(NEW.cbDeadlineDate AS BIGINT), NEW.cbLateSubmissionPenalty, CAST(NEW.cbGracePeriodDate AS BIGINT), NEW.cbMaxPoints, NEW.cbMinPoints, NEW.cbIndex, CAST(NEW.cbClazzUid AS BIGINT), NEW.cbClazzSourcedId, NEW.cbActive, NEW.cbHidden, CAST(NEW.cbEntityUid AS BIGINT), CAST(NEW.cbLct AS BIGINT), NEW.cbSourcedId, NEW.cbMetadata, NEW.cbCreatedByAppId) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$359 = ['INSERT INTO CourseBlock (cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) VALUES( CAST(NEW.cbUid AS BIGINT), NEW.cbType, NEW.cbIndentLevel, CAST(NEW.cbModuleParentBlockUid AS BIGINT), NEW.cbTitle, NEW.cbDescription, NEW.cbCompletionCriteria, CAST(NEW.cbHideUntilDate AS BIGINT), CAST(NEW.cbDeadlineDate AS BIGINT), NEW.cbLateSubmissionPenalty, CAST(NEW.cbGracePeriodDate AS BIGINT), NEW.cbMaxPoints, NEW.cbMinPoints, NEW.cbIndex, CAST(NEW.cbClazzUid AS BIGINT), NEW.cbClazzSourcedId, NEW.cbActive, NEW.cbHidden, CAST(NEW.cbEntityUid AS BIGINT), CAST(NEW.cbLct AS BIGINT), NEW.cbSourcedId, NEW.cbMetadata, NEW.cbCreatedByAppId) ON CONFLICT(cbUid) DO UPDATE SET cbType = NEW.cbType, cbIndentLevel = NEW.cbIndentLevel, cbModuleParentBlockUid = NEW.cbModuleParentBlockUid, cbTitle = NEW.cbTitle, cbDescription = NEW.cbDescription, cbCompletionCriteria = NEW.cbCompletionCriteria, cbHideUntilDate = NEW.cbHideUntilDate, cbDeadlineDate = NEW.cbDeadlineDate, cbLateSubmissionPenalty = NEW.cbLateSubmissionPenalty, cbGracePeriodDate = NEW.cbGracePeriodDate, cbMaxPoints = NEW.cbMaxPoints, cbMinPoints = NEW.cbMinPoints, cbIndex = NEW.cbIndex, cbClazzUid = NEW.cbClazzUid, cbClazzSourcedId = NEW.cbClazzSourcedId, cbActive = NEW.cbActive, cbHidden = NEW.cbHidden, cbEntityUid = NEW.cbEntityUid, cbLct = NEW.cbLct, cbSourcedId = NEW.cbSourcedId, cbMetadata = NEW.cbMetadata, cbCreatedByAppId = NEW.cbCreatedByAppId ']; var tmp_318 = to(124, new ReplicationEntityMetaData(124, 'CourseBlock', 'CourseBlock_ReceiveView', tmp_311, 'cbLct', tmp_312, 1000, tmp_313, listOf(new Trigger('courseblock_remote_insert', tmp_314, tmp_315, tmp_316, tmp_317, tmp$ret$359, 'SELECT \n CAST(NEW.cbLct AS BIGINT) >\n COALESCE((SELECT CourseBlock_Existing.cbLct\n FROM CourseBlock CourseBlock_Existing\n WHERE CourseBlock_Existing.cbUid = NEW.cbUid), 0)\n ', 'SELECT \n CAST(NEW.cbLct AS BIGINT) >\n COALESCE((SELECT CourseBlock_Existing.cbLct\n FROM CourseBlock CourseBlock_Existing\n WHERE CourseBlock_Existing.cbUid = NEW.cbUid), 0)\n ')))); var tmp_319 = listOf('ctUid'); var tmp_320 = listOf_0([new ReplicationFieldMetaData('ctTitle', -1, true), new ReplicationFieldMetaData('ctTerminology', -1, true), new ReplicationFieldMetaData('ctLct', -5, false), new ReplicationFieldMetaData('ctUid', -5, false)]); var tmp_321 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_322 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_323 = [Event_INSERT_getInstance()]; var tmp_324 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_325 = ['REPLACE INTO CourseTerminology (ctUid, ctTitle, ctTerminology, ctLct) VALUES( CAST(NEW.ctUid AS BIGINT), NEW.ctTitle, NEW.ctTerminology, CAST(NEW.ctLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$368 = ['INSERT INTO CourseTerminology (ctUid, ctTitle, ctTerminology, ctLct) VALUES( CAST(NEW.ctUid AS BIGINT), NEW.ctTitle, NEW.ctTerminology, CAST(NEW.ctLct AS BIGINT)) ON CONFLICT(ctUid) DO UPDATE SET ctTitle = NEW.ctTitle, ctTerminology = NEW.ctTerminology, ctLct = NEW.ctLct ']; var tmp_326 = to(450, new ReplicationEntityMetaData(450, 'CourseTerminology', 'CourseTerminology_ReceiveView', tmp_319, 'ctLct', tmp_320, 1000, tmp_321, listOf(new Trigger('courseterminology_remote_insert', tmp_322, tmp_323, tmp_324, tmp_325, tmp$ret$368, 'SELECT \n CAST(NEW.ctLct AS BIGINT) >\n COALESCE((SELECT CourseTerminology_Existing.ctLct\n FROM CourseTerminology CourseTerminology_Existing\n WHERE CourseTerminology_Existing.ctUid = NEW.ctUid), 0)\n ', 'SELECT \n CAST(NEW.ctLct AS BIGINT) >\n COALESCE((SELECT CourseTerminology_Existing.ctLct\n FROM CourseTerminology CourseTerminology_Existing\n WHERE CourseTerminology_Existing.ctUid = NEW.ctUid), 0)\n ')))); var tmp_327 = listOf('cgsUid'); var tmp_328 = listOf_0([new ReplicationFieldMetaData('cgsName', -1, true), new ReplicationFieldMetaData('cgsTotalGroups', 4, false), new ReplicationFieldMetaData('cgsActive', 16, false), new ReplicationFieldMetaData('cgsClazzUid', -5, false), new ReplicationFieldMetaData('cgsLct', -5, false), new ReplicationFieldMetaData('cgsUid', -5, false)]); var tmp_329 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_330 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_331 = [Event_INSERT_getInstance()]; var tmp_332 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_333 = ['REPLACE INTO CourseGroupSet (cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct) VALUES( CAST(NEW.cgsUid AS BIGINT), NEW.cgsName, NEW.cgsTotalGroups, NEW.cgsActive, CAST(NEW.cgsClazzUid AS BIGINT), CAST(NEW.cgsLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$377 = ['INSERT INTO CourseGroupSet (cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct) VALUES( CAST(NEW.cgsUid AS BIGINT), NEW.cgsName, NEW.cgsTotalGroups, NEW.cgsActive, CAST(NEW.cgsClazzUid AS BIGINT), CAST(NEW.cgsLct AS BIGINT)) ON CONFLICT(cgsUid) DO UPDATE SET cgsName = NEW.cgsName, cgsTotalGroups = NEW.cgsTotalGroups, cgsActive = NEW.cgsActive, cgsClazzUid = NEW.cgsClazzUid, cgsLct = NEW.cgsLct ']; var tmp_334 = to(242, new ReplicationEntityMetaData(242, 'CourseGroupSet', 'CourseGroupSet_ReceiveView', tmp_327, 'cgsLct', tmp_328, 1000, tmp_329, listOf(new Trigger('coursegroupset_remote_insert', tmp_330, tmp_331, tmp_332, tmp_333, tmp$ret$377, 'SELECT \n CAST(NEW.cgsLct AS BIGINT) >\n COALESCE((SELECT CourseGroupSet_Existing.cgsLct\n FROM CourseGroupSet CourseGroupSet_Existing\n WHERE CourseGroupSet_Existing.cgsUid = NEW.cgsUid), 0)\n ', 'SELECT \n CAST(NEW.cgsLct AS BIGINT) >\n COALESCE((SELECT CourseGroupSet_Existing.cgsLct\n FROM CourseGroupSet CourseGroupSet_Existing\n WHERE CourseGroupSet_Existing.cgsUid = NEW.cgsUid), 0)\n ')))); var tmp_335 = listOf('cgmUid'); var tmp_336 = listOf_0([new ReplicationFieldMetaData('cgmSetUid', -5, false), new ReplicationFieldMetaData('cgmGroupNumber', 4, false), new ReplicationFieldMetaData('cgmPersonUid', -5, false), new ReplicationFieldMetaData('cgmLct', -5, false), new ReplicationFieldMetaData('cgmUid', -5, false)]); var tmp_337 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_338 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_339 = [Event_INSERT_getInstance()]; var tmp_340 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_341 = ['REPLACE INTO CourseGroupMember (cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) VALUES( CAST(NEW.cgmUid AS BIGINT), CAST(NEW.cgmSetUid AS BIGINT), NEW.cgmGroupNumber, CAST(NEW.cgmPersonUid AS BIGINT), CAST(NEW.cgmLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$386 = ['INSERT INTO CourseGroupMember (cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) VALUES( CAST(NEW.cgmUid AS BIGINT), CAST(NEW.cgmSetUid AS BIGINT), NEW.cgmGroupNumber, CAST(NEW.cgmPersonUid AS BIGINT), CAST(NEW.cgmLct AS BIGINT)) ON CONFLICT(cgmUid) DO UPDATE SET cgmSetUid = NEW.cgmSetUid, cgmGroupNumber = NEW.cgmGroupNumber, cgmPersonUid = NEW.cgmPersonUid, cgmLct = NEW.cgmLct ']; var tmp_342 = to(243, new ReplicationEntityMetaData(243, 'CourseGroupMember', 'CourseGroupMember_ReceiveView', tmp_335, 'cgmLct', tmp_336, 1000, tmp_337, listOf(new Trigger('coursegroupmember_remote_insert', tmp_338, tmp_339, tmp_340, tmp_341, tmp$ret$386, 'SELECT \n CAST(NEW.cgmLct AS BIGINT) >\n COALESCE((SELECT CourseGroupMember_Existing.cgmLct\n FROM CourseGroupMember CourseGroupMember_Existing\n WHERE CourseGroupMember_Existing.cgmUid = NEW.cgmUid), 0)\n ', 'SELECT \n CAST(NEW.cgmLct AS BIGINT) >\n COALESCE((SELECT CourseGroupMember_Existing.cgmLct\n FROM CourseGroupMember CourseGroupMember_Existing\n WHERE CourseGroupMember_Existing.cgmUid = NEW.cgmUid), 0)\n ')))); var tmp_343 = listOf('cepUid'); var tmp_344 = listOf_0([new ReplicationFieldMetaData('cepContentEntryUid', -5, false), new ReplicationFieldMetaData('cepUri', -1, true), new ReplicationFieldMetaData('cepMd5', -1, true), new ReplicationFieldMetaData('cepFileSize', 4, false), new ReplicationFieldMetaData('cepTimestamp', -5, false), new ReplicationFieldMetaData('cepMimeType', -1, true), new ReplicationFieldMetaData('cepActive', 16, false), new ReplicationFieldMetaData('cepUid', -5, false)]); var tmp_345 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_346 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_347 = [Event_INSERT_getInstance()]; var tmp_348 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_349 = ['REPLACE INTO ContentEntryPicture (cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive) VALUES( CAST(NEW.cepUid AS BIGINT), CAST(NEW.cepContentEntryUid AS BIGINT), NEW.cepUri, NEW.cepMd5, NEW.cepFileSize, CAST(NEW.cepTimestamp AS BIGINT), NEW.cepMimeType, NEW.cepActive) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$395 = ['INSERT INTO ContentEntryPicture (cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive) VALUES( CAST(NEW.cepUid AS BIGINT), CAST(NEW.cepContentEntryUid AS BIGINT), NEW.cepUri, NEW.cepMd5, NEW.cepFileSize, CAST(NEW.cepTimestamp AS BIGINT), NEW.cepMimeType, NEW.cepActive) ON CONFLICT(cepUid) DO UPDATE SET cepContentEntryUid = NEW.cepContentEntryUid, cepUri = NEW.cepUri, cepMd5 = NEW.cepMd5, cepFileSize = NEW.cepFileSize, cepTimestamp = NEW.cepTimestamp, cepMimeType = NEW.cepMimeType, cepActive = NEW.cepActive ']; var tmp_350 = to(138, new ReplicationEntityMetaData(138, 'ContentEntryPicture', 'ContentEntryPicture_ReceiveView', tmp_343, 'cepTimestamp', tmp_344, 1000, tmp_345, listOf(new Trigger('ceppicture_remote_insert', tmp_346, tmp_347, tmp_348, tmp_349, tmp$ret$395, 'SELECT \n CAST(NEW.cepTimestamp AS BIGINT) >\n COALESCE((SELECT ContentEntryPicture_Existing.cepTimestamp\n FROM ContentEntryPicture ContentEntryPicture_Existing\n WHERE ContentEntryPicture_Existing.cepUid = NEW.cepUid), 0)\n ', 'SELECT \n CAST(NEW.cepTimestamp AS BIGINT) >\n COALESCE((SELECT ContentEntryPicture_Existing.cepTimestamp\n FROM ContentEntryPicture ContentEntryPicture_Existing\n WHERE ContentEntryPicture_Existing.cepUid = NEW.cepUid), 0)\n ')))); var tmp_351 = listOf_0(['aieActivityUid', 'aieHash']); var tmp_352 = listOf_0([new ReplicationFieldMetaData('aieActivityUid', -5, false), new ReplicationFieldMetaData('aieHash', -5, false), new ReplicationFieldMetaData('aieProp', 4, false), new ReplicationFieldMetaData('aieId', -1, true), new ReplicationFieldMetaData('aieLastMod', -5, false), new ReplicationFieldMetaData('aieIsDeleted', 16, false)]); var tmp_353 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_354 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_355 = [Event_INSERT_getInstance()]; var tmp_356 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_357 = ['REPLACE INTO ActivityInteractionEntity (aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted) VALUES( CAST(NEW.aieActivityUid AS BIGINT), CAST(NEW.aieHash AS BIGINT), NEW.aieProp, NEW.aieId, CAST(NEW.aieLastMod AS BIGINT), NEW.aieIsDeleted) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$404 = ['INSERT INTO ActivityInteractionEntity (aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted) VALUES( CAST(NEW.aieActivityUid AS BIGINT), CAST(NEW.aieHash AS BIGINT), NEW.aieProp, NEW.aieId, CAST(NEW.aieLastMod AS BIGINT), NEW.aieIsDeleted) ON CONFLICT(aieActivityUid, aieHash) DO UPDATE SET aieProp = NEW.aieProp, aieId = NEW.aieId, aieLastMod = NEW.aieLastMod, aieIsDeleted = NEW.aieIsDeleted ']; var tmp_358 = to(6401, new ReplicationEntityMetaData(6401, 'ActivityInteractionEntity', 'ActivityInteractionEntity_ReceiveView', tmp_351, 'aieLastMod', tmp_352, 1000, tmp_353, listOf(new Trigger('activityinteractionentity_remote_insert', tmp_354, tmp_355, tmp_356, tmp_357, tmp$ret$404, 'SELECT \n CAST(NEW.aieLastMod AS BIGINT) >\n COALESCE((SELECT ActivityInteractionEntity_Existing.aieLastMod\n FROM ActivityInteractionEntity ActivityInteractionEntity_Existing\n WHERE ActivityInteractionEntity_Existing.aieActivityUid = NEW.aieActivityUid AND ActivityInteractionEntity_Existing.aieHash = NEW.aieHash), 0)\n ', 'SELECT \n CAST(NEW.aieLastMod AS BIGINT) >\n COALESCE((SELECT ActivityInteractionEntity_Existing.aieLastMod\n FROM ActivityInteractionEntity ActivityInteractionEntity_Existing\n WHERE ActivityInteractionEntity_Existing.aieActivityUid = NEW.aieActivityUid AND ActivityInteractionEntity_Existing.aieHash = NEW.aieHash), 0)\n ')))); var tmp_359 = listOf('coursePictureUid'); var tmp_360 = listOf_0([new ReplicationFieldMetaData('coursePictureLct', -5, false), new ReplicationFieldMetaData('coursePictureUri', -1, true), new ReplicationFieldMetaData('coursePictureThumbnailUri', -1, true), new ReplicationFieldMetaData('coursePictureActive', 16, false), new ReplicationFieldMetaData('coursePictureUid', -5, false)]); var tmp_361 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_362 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_363 = [Event_INSERT_getInstance()]; var tmp_364 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_365 = ['REPLACE INTO CoursePicture (coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive) VALUES( CAST(NEW.coursePictureUid AS BIGINT), CAST(NEW.coursePictureLct AS BIGINT), NEW.coursePictureUri, NEW.coursePictureThumbnailUri, NEW.coursePictureActive) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$413 = ['INSERT INTO CoursePicture (coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive) VALUES( CAST(NEW.coursePictureUid AS BIGINT), CAST(NEW.coursePictureLct AS BIGINT), NEW.coursePictureUri, NEW.coursePictureThumbnailUri, NEW.coursePictureActive) ON CONFLICT(coursePictureUid) DO UPDATE SET coursePictureLct = NEW.coursePictureLct, coursePictureUri = NEW.coursePictureUri, coursePictureThumbnailUri = NEW.coursePictureThumbnailUri, coursePictureActive = NEW.coursePictureActive ']; var tmp_366 = to(125, new ReplicationEntityMetaData(125, 'CoursePicture', 'CoursePicture_ReceiveView', tmp_359, 'coursePictureLct', tmp_360, 1000, tmp_361, listOf(new Trigger('coursepicture_remote_insert', tmp_362, tmp_363, tmp_364, tmp_365, tmp$ret$413, 'SELECT \n CAST(NEW.coursePictureLct AS BIGINT) >\n COALESCE((SELECT CoursePicture_Existing.coursePictureLct\n FROM CoursePicture CoursePicture_Existing\n WHERE CoursePicture_Existing.coursePictureUid = NEW.coursePictureUid), 0)\n ', 'SELECT \n CAST(NEW.coursePictureLct AS BIGINT) >\n COALESCE((SELECT CoursePicture_Existing.coursePictureLct\n FROM CoursePicture CoursePicture_Existing\n WHERE CoursePicture_Existing.coursePictureUid = NEW.coursePictureUid), 0)\n ')))); var tmp_367 = listOf('discussionPostUid'); var tmp_368 = listOf_0([new ReplicationFieldMetaData('discussionPostReplyToPostUid', -5, false), new ReplicationFieldMetaData('discussionPostTitle', -1, true), new ReplicationFieldMetaData('discussionPostMessage', -1, true), new ReplicationFieldMetaData('discussionPostStartDate', -5, false), new ReplicationFieldMetaData('discussionPostCourseBlockUid', -5, false), new ReplicationFieldMetaData('dpDeleted', 16, false), new ReplicationFieldMetaData('discussionPostStartedPersonUid', -5, false), new ReplicationFieldMetaData('discussionPostClazzUid', -5, false), new ReplicationFieldMetaData('discussionPostLct', -5, false), new ReplicationFieldMetaData('discussionPostVisible', 16, false), new ReplicationFieldMetaData('discussionPostArchive', 16, false), new ReplicationFieldMetaData('discussionPostUid', -5, false)]); var tmp_369 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_370 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_371 = [Event_INSERT_getInstance()]; var tmp_372 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_373 = ['REPLACE INTO DiscussionPost (discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive) VALUES( CAST(NEW.discussionPostUid AS BIGINT), CAST(NEW.discussionPostReplyToPostUid AS BIGINT), NEW.discussionPostTitle, NEW.discussionPostMessage, CAST(NEW.discussionPostStartDate AS BIGINT), CAST(NEW.discussionPostCourseBlockUid AS BIGINT), NEW.dpDeleted, CAST(NEW.discussionPostStartedPersonUid AS BIGINT), CAST(NEW.discussionPostClazzUid AS BIGINT), CAST(NEW.discussionPostLct AS BIGINT), NEW.discussionPostVisible, NEW.discussionPostArchive) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$422 = ['INSERT INTO DiscussionPost (discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive) VALUES( CAST(NEW.discussionPostUid AS BIGINT), CAST(NEW.discussionPostReplyToPostUid AS BIGINT), NEW.discussionPostTitle, NEW.discussionPostMessage, CAST(NEW.discussionPostStartDate AS BIGINT), CAST(NEW.discussionPostCourseBlockUid AS BIGINT), NEW.dpDeleted, CAST(NEW.discussionPostStartedPersonUid AS BIGINT), CAST(NEW.discussionPostClazzUid AS BIGINT), CAST(NEW.discussionPostLct AS BIGINT), NEW.discussionPostVisible, NEW.discussionPostArchive) ON CONFLICT(discussionPostUid) DO UPDATE SET discussionPostReplyToPostUid = NEW.discussionPostReplyToPostUid, discussionPostTitle = NEW.discussionPostTitle, discussionPostMessage = NEW.discussionPostMessage, discussionPostStartDate = NEW.discussionPostStartDate, discussionPostCourseBlockUid = NEW.discussionPostCourseBlockUid, dpDeleted = NEW.dpDeleted, discussionPostStartedPersonUid = NEW.discussionPostStartedPersonUid, discussionPostClazzUid = NEW.discussionPostClazzUid, discussionPostLct = NEW.discussionPostLct, discussionPostVisible = NEW.discussionPostVisible, discussionPostArchive = NEW.discussionPostArchive ']; var tmp_374 = to(132, new ReplicationEntityMetaData(132, 'DiscussionPost', 'DiscussionPost_ReceiveView', tmp_367, 'discussionPostLct', tmp_368, 1000, tmp_369, listOf(new Trigger('discussionpost_remote_insert', tmp_370, tmp_371, tmp_372, tmp_373, tmp$ret$422, 'SELECT \n CAST(NEW.discussionPostLct AS BIGINT) >\n COALESCE((SELECT DiscussionPost_Existing.discussionPostLct\n FROM DiscussionPost DiscussionPost_Existing\n WHERE DiscussionPost_Existing.discussionPostUid = NEW.discussionPostUid), 0)\n ', 'SELECT \n CAST(NEW.discussionPostLct AS BIGINT) >\n COALESCE((SELECT DiscussionPost_Existing.discussionPostLct\n FROM DiscussionPost DiscussionPost_Existing\n WHERE DiscussionPost_Existing.discussionPostUid = NEW.discussionPostUid), 0)\n ')))); var tmp_375 = listOf('messageUid'); var tmp_376 = listOf_0([new ReplicationFieldMetaData('messageSenderPersonUid', -5, false), new ReplicationFieldMetaData('messageToPersonUid', -5, false), new ReplicationFieldMetaData('messageText', -1, true), new ReplicationFieldMetaData('messageTimestamp', -5, false), new ReplicationFieldMetaData('messageLct', -5, false), new ReplicationFieldMetaData('messageUid', -5, false)]); var tmp_377 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_378 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_379 = [Event_INSERT_getInstance()]; var tmp_380 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_381 = ['REPLACE INTO Message (messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct) VALUES( CAST(NEW.messageUid AS BIGINT), CAST(NEW.messageSenderPersonUid AS BIGINT), CAST(NEW.messageToPersonUid AS BIGINT), NEW.messageText, CAST(NEW.messageTimestamp AS BIGINT), CAST(NEW.messageLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$431 = ['INSERT INTO Message (messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct) VALUES( CAST(NEW.messageUid AS BIGINT), CAST(NEW.messageSenderPersonUid AS BIGINT), CAST(NEW.messageToPersonUid AS BIGINT), NEW.messageText, CAST(NEW.messageTimestamp AS BIGINT), CAST(NEW.messageLct AS BIGINT)) ON CONFLICT(messageUid) DO UPDATE SET messageSenderPersonUid = NEW.messageSenderPersonUid, messageToPersonUid = NEW.messageToPersonUid, messageText = NEW.messageText, messageTimestamp = NEW.messageTimestamp, messageLct = NEW.messageLct ']; var tmp_382 = to(126, new ReplicationEntityMetaData(126, 'Message', 'Message_ReceiveView', tmp_375, 'messageLct', tmp_376, 1000, tmp_377, listOf(new Trigger('message_remote_insert', tmp_378, tmp_379, tmp_380, tmp_381, tmp$ret$431, 'SELECT \n CAST(NEW.messageLct AS BIGINT) >\n COALESCE((SELECT Message_Existing.messageLct\n FROM Message Message_Existing\n WHERE Message_Existing.messageUid = NEW.messageUid), 0)\n ', 'SELECT \n CAST(NEW.messageLct AS BIGINT) >\n COALESCE((SELECT Message_Existing.messageLct\n FROM Message Message_Existing\n WHERE Message_Existing.messageUid = NEW.messageUid), 0)\n ')))); var tmp_383 = listOf('srUid'); var tmp_384 = listOf_0([new ReplicationFieldMetaData('srUid', -5, false), new ReplicationFieldMetaData('srSourcedId', -1, true), new ReplicationFieldMetaData('srCourseBlockUid', -5, false), new ReplicationFieldMetaData('srLineItemSourcedId', -1, true), new ReplicationFieldMetaData('srLineItemHref', -1, true), new ReplicationFieldMetaData('srClazzUid', -5, false), new ReplicationFieldMetaData('srAssignmentUid', -5, false), new ReplicationFieldMetaData('srStatus', 4, false), new ReplicationFieldMetaData('srMetaData', -1, true), new ReplicationFieldMetaData('srStudentPersonUid', -5, false), new ReplicationFieldMetaData('srStudentPersonSourcedId', -1, true), new ReplicationFieldMetaData('srStudentGroupId', 4, false), new ReplicationFieldMetaData('srMarkerPersonUid', -5, false), new ReplicationFieldMetaData('srMarkerGroupId', 4, false), new ReplicationFieldMetaData('srScoreStatus', 4, false), new ReplicationFieldMetaData('srScore', 6, false), new ReplicationFieldMetaData('srScoreDate', -5, false), new ReplicationFieldMetaData('srLastModified', -5, false), new ReplicationFieldMetaData('srComment', -1, true), new ReplicationFieldMetaData('srAppId', -1, true), new ReplicationFieldMetaData('srDeleted', 16, false)]); var tmp_385 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_386 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_387 = [Event_INSERT_getInstance()]; var tmp_388 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_389 = ['REPLACE INTO StudentResult (srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted) VALUES( CAST(NEW.srUid AS BIGINT), NEW.srSourcedId, CAST(NEW.srCourseBlockUid AS BIGINT), NEW.srLineItemSourcedId, NEW.srLineItemHref, CAST(NEW.srClazzUid AS BIGINT), CAST(NEW.srAssignmentUid AS BIGINT), NEW.srStatus, NEW.srMetaData, CAST(NEW.srStudentPersonUid AS BIGINT), NEW.srStudentPersonSourcedId, NEW.srStudentGroupId, CAST(NEW.srMarkerPersonUid AS BIGINT), NEW.srMarkerGroupId, NEW.srScoreStatus, NEW.srScore, CAST(NEW.srScoreDate AS BIGINT), CAST(NEW.srLastModified AS BIGINT), NEW.srComment, NEW.srAppId, NEW.srDeleted) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$440 = ['INSERT INTO StudentResult (srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted) VALUES( CAST(NEW.srUid AS BIGINT), NEW.srSourcedId, CAST(NEW.srCourseBlockUid AS BIGINT), NEW.srLineItemSourcedId, NEW.srLineItemHref, CAST(NEW.srClazzUid AS BIGINT), CAST(NEW.srAssignmentUid AS BIGINT), NEW.srStatus, NEW.srMetaData, CAST(NEW.srStudentPersonUid AS BIGINT), NEW.srStudentPersonSourcedId, NEW.srStudentGroupId, CAST(NEW.srMarkerPersonUid AS BIGINT), NEW.srMarkerGroupId, NEW.srScoreStatus, NEW.srScore, CAST(NEW.srScoreDate AS BIGINT), CAST(NEW.srLastModified AS BIGINT), NEW.srComment, NEW.srAppId, NEW.srDeleted) ON CONFLICT(srUid) DO UPDATE SET srSourcedId = NEW.srSourcedId, srCourseBlockUid = NEW.srCourseBlockUid, srLineItemSourcedId = NEW.srLineItemSourcedId, srLineItemHref = NEW.srLineItemHref, srClazzUid = NEW.srClazzUid, srAssignmentUid = NEW.srAssignmentUid, srStatus = NEW.srStatus, srMetaData = NEW.srMetaData, srStudentPersonUid = NEW.srStudentPersonUid, srStudentPersonSourcedId = NEW.srStudentPersonSourcedId, srStudentGroupId = NEW.srStudentGroupId, srMarkerPersonUid = NEW.srMarkerPersonUid, srMarkerGroupId = NEW.srMarkerGroupId, srScoreStatus = NEW.srScoreStatus, srScore = NEW.srScore, srScoreDate = NEW.srScoreDate, srLastModified = NEW.srLastModified, srComment = NEW.srComment, srAppId = NEW.srAppId, srDeleted = NEW.srDeleted ']; var tmp_390 = to(471, new ReplicationEntityMetaData(471, 'StudentResult', 'StudentResult_ReceiveView', tmp_383, 'srLastModified', tmp_384, 1000, tmp_385, listOf(new Trigger('studentresult_remote_insert', tmp_386, tmp_387, tmp_388, tmp_389, tmp$ret$440, 'SELECT \n CAST(NEW.srLastModified AS BIGINT) >\n COALESCE((SELECT StudentResult_Existing.srLastModified\n FROM StudentResult StudentResult_Existing\n WHERE StudentResult_Existing.srUid = NEW.srUid), 0)\n ', 'SELECT \n CAST(NEW.srLastModified AS BIGINT) >\n COALESCE((SELECT StudentResult_Existing.srLastModified\n FROM StudentResult StudentResult_Existing\n WHERE StudentResult_Existing.srUid = NEW.srUid), 0)\n ')))); var tmp_391 = listOf('cevUid'); var tmp_392 = listOf_0([new ReplicationFieldMetaData('cevContentEntryUid', -5, false), new ReplicationFieldMetaData('cevOpenUri', -1, true), new ReplicationFieldMetaData('cevContentType', -1, true), new ReplicationFieldMetaData('cevManifestUrl', -1, true), new ReplicationFieldMetaData('cevSize', -5, false), new ReplicationFieldMetaData('cevInActive', 16, false), new ReplicationFieldMetaData('cevLastModified', -5, false), new ReplicationFieldMetaData('cevLct', -5, false), new ReplicationFieldMetaData('cevStorageSize', -5, false), new ReplicationFieldMetaData('cevOriginalSize', -5, false), new ReplicationFieldMetaData('cevUid', -5, false)]); var tmp_393 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_394 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_395 = [Event_INSERT_getInstance()]; var tmp_396 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_397 = ['REPLACE INTO ContentEntryVersion (cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize) VALUES( CAST(NEW.cevUid AS BIGINT), CAST(NEW.cevContentEntryUid AS BIGINT), NEW.cevOpenUri, NEW.cevContentType, NEW.cevManifestUrl, CAST(NEW.cevSize AS BIGINT), NEW.cevInActive, CAST(NEW.cevLastModified AS BIGINT), CAST(NEW.cevLct AS BIGINT), CAST(NEW.cevStorageSize AS BIGINT), CAST(NEW.cevOriginalSize AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$449 = ['INSERT INTO ContentEntryVersion (cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize) VALUES( CAST(NEW.cevUid AS BIGINT), CAST(NEW.cevContentEntryUid AS BIGINT), NEW.cevOpenUri, NEW.cevContentType, NEW.cevManifestUrl, CAST(NEW.cevSize AS BIGINT), NEW.cevInActive, CAST(NEW.cevLastModified AS BIGINT), CAST(NEW.cevLct AS BIGINT), CAST(NEW.cevStorageSize AS BIGINT), CAST(NEW.cevOriginalSize AS BIGINT)) ON CONFLICT(cevUid) DO UPDATE SET cevContentEntryUid = NEW.cevContentEntryUid, cevOpenUri = NEW.cevOpenUri, cevContentType = NEW.cevContentType, cevManifestUrl = NEW.cevManifestUrl, cevSize = NEW.cevSize, cevInActive = NEW.cevInActive, cevLastModified = NEW.cevLastModified, cevLct = NEW.cevLct, cevStorageSize = NEW.cevStorageSize, cevOriginalSize = NEW.cevOriginalSize ']; var tmp_398 = new Trigger('content_entry_version_remote_ins', tmp_394, tmp_395, tmp_396, tmp_397, tmp$ret$449, 'SELECT \n CAST(NEW.cevLct AS BIGINT) >\n COALESCE((SELECT ContentEntryVersion_Existing.cevLct\n FROM ContentEntryVersion ContentEntryVersion_Existing\n WHERE ContentEntryVersion_Existing.cevUid = NEW.cevUid), 0)\n ', 'SELECT \n CAST(NEW.cevLct AS BIGINT) >\n COALESCE((SELECT ContentEntryVersion_Existing.cevLct\n FROM ContentEntryVersion ContentEntryVersion_Existing\n WHERE ContentEntryVersion_Existing.cevUid = NEW.cevUid), 0)\n '); var tmp_399 = Order_AFTER_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_400 = [Event_INSERT_getInstance()]; var tmp_401 = On_ENTITY_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_402 = ['\n INSERT INTO OfflineItemPendingTransferJob(oiptjOiUid, oiptjTableId, oiptjEntityUid, oiptjType)\n VALUES ((SELECT COALESCE((\n SELECT OfflineItem.oiUid\n FROM OfflineItem\n WHERE OfflineItem.oiContentEntryUid = NEW.cevContentEntryUid\n AND CAST(OfflineItem.oiActive AS INTEGER) = 1\n AND OfflineItem.oiNodeId = \n (SELECT COALESCE(\n (SELECT nodeClientId \n FROM SyncNode \n LIMIT 1), 0))\n \n ), 0)),\n 738, NEW.cevUid, 2)\n ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$458 = ['\n INSERT INTO OfflineItemPendingTransferJob(oiptjOiUid, oiptjTableId, oiptjEntityUid, oiptjType)\n VALUES ((SELECT COALESCE((\n SELECT OfflineItem.oiUid\n FROM OfflineItem\n WHERE OfflineItem.oiContentEntryUid = NEW.cevContentEntryUid\n AND CAST(OfflineItem.oiActive AS INTEGER) = 1\n AND OfflineItem.oiNodeId = \n (SELECT COALESCE(\n (SELECT nodeClientId \n FROM SyncNode \n LIMIT 1), 0))\n \n ), 0)),\n 738, NEW.cevUid, 2)\n ']; var tmp_403 = to(738, new ReplicationEntityMetaData(738, 'ContentEntryVersion', 'ContentEntryVersion_ReceiveView', tmp_391, 'cevLct', tmp_392, 1000, tmp_393, listOf_0([tmp_398, new Trigger('content_entry_version_offline_item', tmp_399, tmp_400, tmp_401, tmp_402, tmp$ret$458, '\n SELECT EXISTS(\n SELECT OfflineItem.oiUid\n FROM OfflineItem\n WHERE OfflineItem.oiContentEntryUid = NEW.cevContentEntryUid\n AND CAST(OfflineItem.oiActive AS INTEGER) = 1\n AND OfflineItem.oiNodeId = \n (SELECT COALESCE(\n (SELECT nodeClientId \n FROM SyncNode \n LIMIT 1), 0))\n \n )\n AND NOT EXISTS\n (SELECT TransferJob.tjUid\n FROM TransferJob\n WHERE TransferJob.tjTableId = 738\n AND TransferJob.tjEntityUid = NEW.cevUid)\n ', '\n SELECT EXISTS(\n SELECT OfflineItem.oiUid\n FROM OfflineItem\n WHERE OfflineItem.oiContentEntryUid = NEW.cevContentEntryUid\n AND CAST(OfflineItem.oiActive AS INTEGER) = 1\n AND OfflineItem.oiNodeId = \n (SELECT COALESCE(\n (SELECT nodeClientId \n FROM SyncNode \n LIMIT 1), 0))\n \n )\n AND NOT EXISTS\n (SELECT TransferJob.tjUid\n FROM TransferJob\n WHERE TransferJob.tjTableId = 738\n AND TransferJob.tjEntityUid = NEW.cevUid)\n ')]))); var tmp_404 = listOf('oiUid'); var tmp_405 = listOf_0([new ReplicationFieldMetaData('oiNodeId', -5, false), new ReplicationFieldMetaData('oiClazzUid', -5, false), new ReplicationFieldMetaData('oiCourseBlockUid', -5, false), new ReplicationFieldMetaData('oiContentEntryUid', -5, false), new ReplicationFieldMetaData('oiActive', 16, false), new ReplicationFieldMetaData('oiLct', -5, false), new ReplicationFieldMetaData('oiUid', -5, false)]); var tmp_406 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_407 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_408 = [Event_INSERT_getInstance()]; var tmp_409 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_410 = ['REPLACE INTO OfflineItem (oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct) VALUES( CAST(NEW.oiUid AS BIGINT), CAST(NEW.oiNodeId AS BIGINT), CAST(NEW.oiClazzUid AS BIGINT), CAST(NEW.oiCourseBlockUid AS BIGINT), CAST(NEW.oiContentEntryUid AS BIGINT), NEW.oiActive, CAST(NEW.oiLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$467 = ['INSERT INTO OfflineItem (oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct) VALUES( CAST(NEW.oiUid AS BIGINT), CAST(NEW.oiNodeId AS BIGINT), CAST(NEW.oiClazzUid AS BIGINT), CAST(NEW.oiCourseBlockUid AS BIGINT), CAST(NEW.oiContentEntryUid AS BIGINT), NEW.oiActive, CAST(NEW.oiLct AS BIGINT)) ON CONFLICT(oiUid) DO UPDATE SET oiNodeId = NEW.oiNodeId, oiClazzUid = NEW.oiClazzUid, oiCourseBlockUid = NEW.oiCourseBlockUid, oiContentEntryUid = NEW.oiContentEntryUid, oiActive = NEW.oiActive, oiLct = NEW.oiLct ']; var tmp_411 = to(971, new ReplicationEntityMetaData(971, 'OfflineItem', 'OfflineItem_ReceiveView', tmp_404, 'oiLct', tmp_405, 1000, tmp_406, listOf(new Trigger('offline_item_remote_ins', tmp_407, tmp_408, tmp_409, tmp_410, tmp$ret$467, 'SELECT \n CAST(NEW.oiLct AS BIGINT) >\n COALESCE((SELECT OfflineItem_Existing.oiLct\n FROM OfflineItem OfflineItem_Existing\n WHERE OfflineItem_Existing.oiUid = NEW.oiUid), 0)\n ', 'SELECT \n CAST(NEW.oiLct AS BIGINT) >\n COALESCE((SELECT OfflineItem_Existing.oiLct\n FROM OfflineItem OfflineItem_Existing\n WHERE OfflineItem_Existing.oiUid = NEW.oiUid), 0)\n ')))); var tmp_412 = listOf('delItemUid'); var tmp_413 = listOf_0([new ReplicationFieldMetaData('delItemName', -1, true), new ReplicationFieldMetaData('delItemIconUri', -1, true), new ReplicationFieldMetaData('delItemLastModTime', -5, false), new ReplicationFieldMetaData('delItemTimeDeleted', -5, false), new ReplicationFieldMetaData('delItemEntityTable', 4, false), new ReplicationFieldMetaData('delItemEntityUid', -5, false), new ReplicationFieldMetaData('delItemDeletedByPersonUid', -5, false), new ReplicationFieldMetaData('delItemStatus', 4, false), new ReplicationFieldMetaData('delItemIsFolder', 16, false), new ReplicationFieldMetaData('delItemUid', -5, false)]); var tmp_414 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_415 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_416 = [Event_INSERT_getInstance()]; var tmp_417 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_418 = ['REPLACE INTO DeletedItem (delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder) VALUES( CAST(NEW.delItemUid AS BIGINT), NEW.delItemName, NEW.delItemIconUri, CAST(NEW.delItemLastModTime AS BIGINT), CAST(NEW.delItemTimeDeleted AS BIGINT), NEW.delItemEntityTable, CAST(NEW.delItemEntityUid AS BIGINT), CAST(NEW.delItemDeletedByPersonUid AS BIGINT), NEW.delItemStatus, NEW.delItemIsFolder) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$476 = ['INSERT INTO DeletedItem (delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder) VALUES( CAST(NEW.delItemUid AS BIGINT), NEW.delItemName, NEW.delItemIconUri, CAST(NEW.delItemLastModTime AS BIGINT), CAST(NEW.delItemTimeDeleted AS BIGINT), NEW.delItemEntityTable, CAST(NEW.delItemEntityUid AS BIGINT), CAST(NEW.delItemDeletedByPersonUid AS BIGINT), NEW.delItemStatus, NEW.delItemIsFolder) ON CONFLICT(delItemUid) DO UPDATE SET delItemName = NEW.delItemName, delItemIconUri = NEW.delItemIconUri, delItemLastModTime = NEW.delItemLastModTime, delItemTimeDeleted = NEW.delItemTimeDeleted, delItemEntityTable = NEW.delItemEntityTable, delItemEntityUid = NEW.delItemEntityUid, delItemDeletedByPersonUid = NEW.delItemDeletedByPersonUid, delItemStatus = NEW.delItemStatus, delItemIsFolder = NEW.delItemIsFolder ']; var tmp_419 = to(999, new ReplicationEntityMetaData(999, 'DeletedItem', 'DeletedItem_ReceiveView', tmp_412, 'delItemLastModTime', tmp_413, 1000, tmp_414, listOf(new Trigger('deleteditem_remote_insert', tmp_415, tmp_416, tmp_417, tmp_418, tmp$ret$476, 'SELECT \n CAST(NEW.delItemLastModTime AS BIGINT) >\n COALESCE((SELECT DeletedItem_Existing.delItemLastModTime\n FROM DeletedItem DeletedItem_Existing\n WHERE DeletedItem_Existing.delItemUid = NEW.delItemUid), 0)\n ', 'SELECT \n CAST(NEW.delItemLastModTime AS BIGINT) >\n COALESCE((SELECT DeletedItem_Existing.delItemLastModTime\n FROM DeletedItem DeletedItem_Existing\n WHERE DeletedItem_Existing.delItemUid = NEW.delItemUid), 0)\n ')))); var tmp_420 = listOf('erUid'); var tmp_421 = listOf_0([new ReplicationFieldMetaData('erClazzUid', -5, false), new ReplicationFieldMetaData('erClazzName', -1, true), new ReplicationFieldMetaData('erPersonUid', -5, false), new ReplicationFieldMetaData('erPersonFullname', -1, true), new ReplicationFieldMetaData('erPersonPictureUri', -1, true), new ReplicationFieldMetaData('erPersonUsername', -1, true), new ReplicationFieldMetaData('erRole', 4, false), new ReplicationFieldMetaData('erRequestTime', -5, false), new ReplicationFieldMetaData('erStatus', 4, false), new ReplicationFieldMetaData('erStatusSetByPersonUid', -5, false), new ReplicationFieldMetaData('erDeleted', 16, false), new ReplicationFieldMetaData('erStatusSetAuth', -1, true), new ReplicationFieldMetaData('erLastModified', -5, false), new ReplicationFieldMetaData('erUid', -5, false)]); var tmp_422 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_423 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_424 = [Event_INSERT_getInstance()]; var tmp_425 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_426 = ['REPLACE INTO EnrolmentRequest (erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified) VALUES( CAST(NEW.erUid AS BIGINT), CAST(NEW.erClazzUid AS BIGINT), NEW.erClazzName, CAST(NEW.erPersonUid AS BIGINT), NEW.erPersonFullname, NEW.erPersonPictureUri, NEW.erPersonUsername, NEW.erRole, CAST(NEW.erRequestTime AS BIGINT), NEW.erStatus, CAST(NEW.erStatusSetByPersonUid AS BIGINT), NEW.erDeleted, NEW.erStatusSetAuth, CAST(NEW.erLastModified AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$485 = ['INSERT INTO EnrolmentRequest (erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified) VALUES( CAST(NEW.erUid AS BIGINT), CAST(NEW.erClazzUid AS BIGINT), NEW.erClazzName, CAST(NEW.erPersonUid AS BIGINT), NEW.erPersonFullname, NEW.erPersonPictureUri, NEW.erPersonUsername, NEW.erRole, CAST(NEW.erRequestTime AS BIGINT), NEW.erStatus, CAST(NEW.erStatusSetByPersonUid AS BIGINT), NEW.erDeleted, NEW.erStatusSetAuth, CAST(NEW.erLastModified AS BIGINT)) ON CONFLICT(erUid) DO UPDATE SET erClazzUid = NEW.erClazzUid, erClazzName = NEW.erClazzName, erPersonUid = NEW.erPersonUid, erPersonFullname = NEW.erPersonFullname, erPersonPictureUri = NEW.erPersonPictureUri, erPersonUsername = NEW.erPersonUsername, erRole = NEW.erRole, erRequestTime = NEW.erRequestTime, erStatus = NEW.erStatus, erStatusSetByPersonUid = NEW.erStatusSetByPersonUid, erDeleted = NEW.erDeleted, erStatusSetAuth = NEW.erStatusSetAuth, erLastModified = NEW.erLastModified ']; var tmp_427 = to(10070, new ReplicationEntityMetaData(10070, 'EnrolmentRequest', 'EnrolmentRequest_ReceiveView', tmp_420, 'erLastModified', tmp_421, 1000, tmp_422, listOf(new Trigger('enrolmentrequest_remote_insert', tmp_423, tmp_424, tmp_425, tmp_426, tmp$ret$485, 'SELECT \n CAST(NEW.erLastModified AS BIGINT) >\n COALESCE((SELECT EnrolmentRequest_Existing.erLastModified\n FROM EnrolmentRequest EnrolmentRequest_Existing\n WHERE EnrolmentRequest_Existing.erUid = NEW.erUid), 0)\n ', 'SELECT \n CAST(NEW.erLastModified AS BIGINT) >\n COALESCE((SELECT EnrolmentRequest_Existing.erLastModified\n FROM EnrolmentRequest EnrolmentRequest_Existing\n WHERE EnrolmentRequest_Existing.erUid = NEW.erUid), 0)\n ')))); var tmp_428 = listOf('cpUid'); var tmp_429 = listOf_0([new ReplicationFieldMetaData('cpLastModified', -5, false), new ReplicationFieldMetaData('cpClazzUid', -5, false), new ReplicationFieldMetaData('cpToEnrolmentRole', 4, false), new ReplicationFieldMetaData('cpToPersonUid', -5, false), new ReplicationFieldMetaData('cpToGroupUid', -5, false), new ReplicationFieldMetaData('cpPermissionsFlag', -5, false), new ReplicationFieldMetaData('cpIsDeleted', 16, false), new ReplicationFieldMetaData('cpUid', -5, false)]); var tmp_430 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_431 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_432 = [Event_INSERT_getInstance()]; var tmp_433 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_434 = ['REPLACE INTO CoursePermission (cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted) VALUES( CAST(NEW.cpUid AS BIGINT), CAST(NEW.cpLastModified AS BIGINT), CAST(NEW.cpClazzUid AS BIGINT), NEW.cpToEnrolmentRole, CAST(NEW.cpToPersonUid AS BIGINT), CAST(NEW.cpToGroupUid AS BIGINT), CAST(NEW.cpPermissionsFlag AS BIGINT), NEW.cpIsDeleted) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$494 = ['INSERT INTO CoursePermission (cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted) VALUES( CAST(NEW.cpUid AS BIGINT), CAST(NEW.cpLastModified AS BIGINT), CAST(NEW.cpClazzUid AS BIGINT), NEW.cpToEnrolmentRole, CAST(NEW.cpToPersonUid AS BIGINT), CAST(NEW.cpToGroupUid AS BIGINT), CAST(NEW.cpPermissionsFlag AS BIGINT), NEW.cpIsDeleted) ON CONFLICT(cpUid) DO UPDATE SET cpLastModified = NEW.cpLastModified, cpClazzUid = NEW.cpClazzUid, cpToEnrolmentRole = NEW.cpToEnrolmentRole, cpToPersonUid = NEW.cpToPersonUid, cpToGroupUid = NEW.cpToGroupUid, cpPermissionsFlag = NEW.cpPermissionsFlag, cpIsDeleted = NEW.cpIsDeleted ']; var tmp_435 = to(10012, new ReplicationEntityMetaData(10012, 'CoursePermission', 'CoursePermission_ReceiveView', tmp_428, 'cpLastModified', tmp_429, 1000, tmp_430, listOf(new Trigger('coursepermission_remote_insert', tmp_431, tmp_432, tmp_433, tmp_434, tmp$ret$494, 'SELECT \n CAST(NEW.cpLastModified AS BIGINT) >\n COALESCE((SELECT CoursePermission_Existing.cpLastModified\n FROM CoursePermission CoursePermission_Existing\n WHERE CoursePermission_Existing.cpUid = NEW.cpUid), 0)\n ', 'SELECT \n CAST(NEW.cpLastModified AS BIGINT) >\n COALESCE((SELECT CoursePermission_Existing.cpLastModified\n FROM CoursePermission CoursePermission_Existing\n WHERE CoursePermission_Existing.cpUid = NEW.cpUid), 0)\n ')))); var tmp_436 = listOf('spUid'); var tmp_437 = listOf_0([new ReplicationFieldMetaData('spToPersonUid', -5, false), new ReplicationFieldMetaData('spToGroupUid', -5, false), new ReplicationFieldMetaData('spPermissionsFlag', -5, false), new ReplicationFieldMetaData('spLastModified', -5, false), new ReplicationFieldMetaData('spIsDeleted', 16, false), new ReplicationFieldMetaData('spUid', -5, false)]); var tmp_438 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_439 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_440 = [Event_INSERT_getInstance()]; var tmp_441 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_442 = ['REPLACE INTO SystemPermission (spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted) VALUES( CAST(NEW.spUid AS BIGINT), CAST(NEW.spToPersonUid AS BIGINT), CAST(NEW.spToGroupUid AS BIGINT), CAST(NEW.spPermissionsFlag AS BIGINT), CAST(NEW.spLastModified AS BIGINT), NEW.spIsDeleted) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$503 = ['INSERT INTO SystemPermission (spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted) VALUES( CAST(NEW.spUid AS BIGINT), CAST(NEW.spToPersonUid AS BIGINT), CAST(NEW.spToGroupUid AS BIGINT), CAST(NEW.spPermissionsFlag AS BIGINT), CAST(NEW.spLastModified AS BIGINT), NEW.spIsDeleted) ON CONFLICT(spUid) DO UPDATE SET spToPersonUid = NEW.spToPersonUid, spToGroupUid = NEW.spToGroupUid, spPermissionsFlag = NEW.spPermissionsFlag, spLastModified = NEW.spLastModified, spIsDeleted = NEW.spIsDeleted ']; var tmp_443 = to(10011, new ReplicationEntityMetaData(10011, 'SystemPermission', 'SystemPermission_ReceiveView', tmp_436, 'spLastModified', tmp_437, 1000, tmp_438, listOf(new Trigger('systempermission_remote_insert', tmp_439, tmp_440, tmp_441, tmp_442, tmp$ret$503, 'SELECT \n CAST(NEW.spLastModified AS BIGINT) >\n COALESCE((SELECT SystemPermission_Existing.spLastModified\n FROM SystemPermission SystemPermission_Existing\n WHERE SystemPermission_Existing.spUid = NEW.spUid), 0)\n ', 'SELECT \n CAST(NEW.spLastModified AS BIGINT) >\n COALESCE((SELECT SystemPermission_Existing.spLastModified\n FROM SystemPermission SystemPermission_Existing\n WHERE SystemPermission_Existing.spUid = NEW.spUid), 0)\n ')))); var tmp_444 = listOf('cbpUid'); var tmp_445 = listOf_0([new ReplicationFieldMetaData('cbpUid', -5, false), new ReplicationFieldMetaData('cbpLct', -5, false), new ReplicationFieldMetaData('cbpPictureUri', -1, true), new ReplicationFieldMetaData('cbpThumbnailUri', -1, true)]); var tmp_446 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_447 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_448 = [Event_INSERT_getInstance()]; var tmp_449 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_450 = ['REPLACE INTO CourseBlockPicture (cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri) VALUES( CAST(NEW.cbpUid AS BIGINT), CAST(NEW.cbpLct AS BIGINT), NEW.cbpPictureUri, NEW.cbpThumbnailUri) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$512 = ['INSERT INTO CourseBlockPicture (cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri) VALUES( CAST(NEW.cbpUid AS BIGINT), CAST(NEW.cbpLct AS BIGINT), NEW.cbpPictureUri, NEW.cbpThumbnailUri) ON CONFLICT(cbpUid) DO UPDATE SET cbpLct = NEW.cbpLct, cbpPictureUri = NEW.cbpPictureUri, cbpThumbnailUri = NEW.cbpThumbnailUri ']; var tmp_451 = to(6677, new ReplicationEntityMetaData(6677, 'CourseBlockPicture', 'CourseBlockPicture_ReceiveView', tmp_444, 'cbpLct', tmp_445, 1000, tmp_446, listOf(new Trigger('courseblockpicture_remote_insert', tmp_447, tmp_448, tmp_449, tmp_450, tmp$ret$512, 'SELECT \n CAST(NEW.cbpLct AS BIGINT) >\n COALESCE((SELECT CourseBlockPicture_Existing.cbpLct\n FROM CourseBlockPicture CourseBlockPicture_Existing\n WHERE CourseBlockPicture_Existing.cbpUid = NEW.cbpUid), 0)\n ', 'SELECT \n CAST(NEW.cbpLct AS BIGINT) >\n COALESCE((SELECT CourseBlockPicture_Existing.cbpLct\n FROM CourseBlockPicture CourseBlockPicture_Existing\n WHERE CourseBlockPicture_Existing.cbpUid = NEW.cbpUid), 0)\n ')))); var tmp_452 = listOf('cepUid'); var tmp_453 = listOf_0([new ReplicationFieldMetaData('cepUid', -5, false), new ReplicationFieldMetaData('cepLct', -5, false), new ReplicationFieldMetaData('cepPictureUri', -1, true), new ReplicationFieldMetaData('cepThumbnailUri', -1, true)]); var tmp_454 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_455 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_456 = [Event_INSERT_getInstance()]; var tmp_457 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_458 = ['REPLACE INTO ContentEntryPicture2 (cepUid, cepLct, cepPictureUri, cepThumbnailUri) VALUES( CAST(NEW.cepUid AS BIGINT), CAST(NEW.cepLct AS BIGINT), NEW.cepPictureUri, NEW.cepThumbnailUri) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$521 = ['INSERT INTO ContentEntryPicture2 (cepUid, cepLct, cepPictureUri, cepThumbnailUri) VALUES( CAST(NEW.cepUid AS BIGINT), CAST(NEW.cepLct AS BIGINT), NEW.cepPictureUri, NEW.cepThumbnailUri) ON CONFLICT(cepUid) DO UPDATE SET cepLct = NEW.cepLct, cepPictureUri = NEW.cepPictureUri, cepThumbnailUri = NEW.cepThumbnailUri ']; var tmp_459 = to(6678, new ReplicationEntityMetaData(6678, 'ContentEntryPicture2', 'ContentEntryPicture2_ReceiveView', tmp_452, 'cepLct', tmp_453, 1000, tmp_454, listOf(new Trigger('contententrypicture2_remote_insert', tmp_455, tmp_456, tmp_457, tmp_458, tmp$ret$521, 'SELECT \n CAST(NEW.cepLct AS BIGINT) >\n COALESCE((SELECT ContentEntryPicture2_Existing.cepLct\n FROM ContentEntryPicture2 ContentEntryPicture2_Existing\n WHERE ContentEntryPicture2_Existing.cepUid = NEW.cepUid), 0)\n ', 'SELECT \n CAST(NEW.cepLct AS BIGINT) >\n COALESCE((SELECT ContentEntryPicture2_Existing.cepLct\n FROM ContentEntryPicture2 ContentEntryPicture2_Existing\n WHERE ContentEntryPicture2_Existing.cepUid = NEW.cepUid), 0)\n ')))); var tmp_460 = listOf_0(['vlmeVerbUid', 'vlmeLangHash']); var tmp_461 = listOf_0([new ReplicationFieldMetaData('vlmeVerbUid', -5, false), new ReplicationFieldMetaData('vlmeLangHash', -5, false), new ReplicationFieldMetaData('vlmeLangCode', -1, true), new ReplicationFieldMetaData('vlmeEntryString', -1, true), new ReplicationFieldMetaData('vlmeLastModified', -5, false)]); var tmp_462 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_463 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_464 = [Event_INSERT_getInstance()]; var tmp_465 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_466 = ['REPLACE INTO VerbLangMapEntry (vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified) VALUES( CAST(NEW.vlmeVerbUid AS BIGINT), CAST(NEW.vlmeLangHash AS BIGINT), NEW.vlmeLangCode, NEW.vlmeEntryString, CAST(NEW.vlmeLastModified AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$530 = ['INSERT INTO VerbLangMapEntry (vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified) VALUES( CAST(NEW.vlmeVerbUid AS BIGINT), CAST(NEW.vlmeLangHash AS BIGINT), NEW.vlmeLangCode, NEW.vlmeEntryString, CAST(NEW.vlmeLastModified AS BIGINT)) ON CONFLICT(vlmeVerbUid, vlmeLangHash) DO UPDATE SET vlmeLangCode = NEW.vlmeLangCode, vlmeEntryString = NEW.vlmeEntryString, vlmeLastModified = NEW.vlmeLastModified ']; var tmp_467 = to(620, new ReplicationEntityMetaData(620, 'VerbLangMapEntry', 'VerbLangMapEntry_ReceiveView', tmp_460, 'vlmeLastModified', tmp_461, 1000, tmp_462, listOf(new Trigger('verblangmapentry_remote_insert', tmp_463, tmp_464, tmp_465, tmp_466, tmp$ret$530, 'SELECT \n CAST(NEW.vlmeLastModified AS BIGINT) >\n COALESCE((SELECT VerbLangMapEntry_Existing.vlmeLastModified\n FROM VerbLangMapEntry VerbLangMapEntry_Existing\n WHERE VerbLangMapEntry_Existing.vlmeVerbUid = NEW.vlmeVerbUid AND VerbLangMapEntry_Existing.vlmeLangHash = NEW.vlmeLangHash), 0)\n ', 'SELECT \n CAST(NEW.vlmeLastModified AS BIGINT) >\n COALESCE((SELECT VerbLangMapEntry_Existing.vlmeLastModified\n FROM VerbLangMapEntry VerbLangMapEntry_Existing\n WHERE VerbLangMapEntry_Existing.vlmeVerbUid = NEW.vlmeVerbUid AND VerbLangMapEntry_Existing.vlmeLangHash = NEW.vlmeLangHash), 0)\n ')))); var tmp_468 = listOf_0(['gmajGroupActorUid', 'gmajMemberActorUid']); var tmp_469 = listOf_0([new ReplicationFieldMetaData('gmajGroupActorUid', -5, false), new ReplicationFieldMetaData('gmajMemberActorUid', -5, false), new ReplicationFieldMetaData('gmajLastMod', -5, false)]); var tmp_470 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_471 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_472 = [Event_INSERT_getInstance()]; var tmp_473 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_474 = ['REPLACE INTO GroupMemberActorJoin (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) VALUES( CAST(NEW.gmajGroupActorUid AS BIGINT), CAST(NEW.gmajMemberActorUid AS BIGINT), CAST(NEW.gmajLastMod AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$539 = ['INSERT INTO GroupMemberActorJoin (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) VALUES( CAST(NEW.gmajGroupActorUid AS BIGINT), CAST(NEW.gmajMemberActorUid AS BIGINT), CAST(NEW.gmajLastMod AS BIGINT)) ON CONFLICT(gmajGroupActorUid, gmajMemberActorUid) DO UPDATE SET gmajLastMod = NEW.gmajLastMod ']; var tmp_475 = to(4232, new ReplicationEntityMetaData(4232, 'GroupMemberActorJoin', 'GroupMemberActorJoin_ReceiveView', tmp_468, 'gmajLastMod', tmp_469, 1000, tmp_470, listOf(new Trigger('groupmemberactorjoin_remote_insert', tmp_471, tmp_472, tmp_473, tmp_474, tmp$ret$539, 'SELECT \n CAST(NEW.gmajLastMod AS BIGINT) >\n COALESCE((SELECT GroupMemberActorJoin_Existing.gmajLastMod\n FROM GroupMemberActorJoin GroupMemberActorJoin_Existing\n WHERE GroupMemberActorJoin_Existing.gmajGroupActorUid = NEW.gmajGroupActorUid AND GroupMemberActorJoin_Existing.gmajMemberActorUid = NEW.gmajMemberActorUid), 0)\n ', 'SELECT \n CAST(NEW.gmajLastMod AS BIGINT) >\n COALESCE((SELECT GroupMemberActorJoin_Existing.gmajLastMod\n FROM GroupMemberActorJoin GroupMemberActorJoin_Existing\n WHERE GroupMemberActorJoin_Existing.gmajGroupActorUid = NEW.gmajGroupActorUid AND GroupMemberActorJoin_Existing.gmajMemberActorUid = NEW.gmajMemberActorUid), 0)\n ')))); var tmp_476 = listOf_0(['almeActivityUid', 'almeHash']); var tmp_477 = listOf_0([new ReplicationFieldMetaData('almeActivityUid', -5, false), new ReplicationFieldMetaData('almeHash', -5, false), new ReplicationFieldMetaData('almeLangCode', -1, true), new ReplicationFieldMetaData('almePropName', -1, true), new ReplicationFieldMetaData('almeValue', -1, true), new ReplicationFieldMetaData('almeAieHash', -5, false), new ReplicationFieldMetaData('almeLastMod', -5, false)]); var tmp_478 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_479 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_480 = [Event_INSERT_getInstance()]; var tmp_481 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_482 = ['REPLACE INTO ActivityLangMapEntry (almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod) VALUES( CAST(NEW.almeActivityUid AS BIGINT), CAST(NEW.almeHash AS BIGINT), NEW.almeLangCode, NEW.almePropName, NEW.almeValue, CAST(NEW.almeAieHash AS BIGINT), CAST(NEW.almeLastMod AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$548 = ['INSERT INTO ActivityLangMapEntry (almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod) VALUES( CAST(NEW.almeActivityUid AS BIGINT), CAST(NEW.almeHash AS BIGINT), NEW.almeLangCode, NEW.almePropName, NEW.almeValue, CAST(NEW.almeAieHash AS BIGINT), CAST(NEW.almeLastMod AS BIGINT)) ON CONFLICT(almeActivityUid, almeHash) DO UPDATE SET almeLangCode = NEW.almeLangCode, almePropName = NEW.almePropName, almeValue = NEW.almeValue, almeAieHash = NEW.almeAieHash, almeLastMod = NEW.almeLastMod ']; var tmp_483 = to(6442, new ReplicationEntityMetaData(6442, 'ActivityLangMapEntry', 'ActivityLangMapEntry_ReceiveView', tmp_476, 'almeLastMod', tmp_477, 1000, tmp_478, listOf(new Trigger('activitylangmapentry_remote_insert', tmp_479, tmp_480, tmp_481, tmp_482, tmp$ret$548, 'SELECT \n CAST(NEW.almeLastMod AS BIGINT) >\n COALESCE((SELECT ActivityLangMapEntry_Existing.almeLastMod\n FROM ActivityLangMapEntry ActivityLangMapEntry_Existing\n WHERE ActivityLangMapEntry_Existing.almeActivityUid = NEW.almeActivityUid AND ActivityLangMapEntry_Existing.almeHash = NEW.almeHash), 0)\n ', 'SELECT \n CAST(NEW.almeLastMod AS BIGINT) >\n COALESCE((SELECT ActivityLangMapEntry_Existing.almeLastMod\n FROM ActivityLangMapEntry ActivityLangMapEntry_Existing\n WHERE ActivityLangMapEntry_Existing.almeActivityUid = NEW.almeActivityUid AND ActivityLangMapEntry_Existing.almeHash = NEW.almeHash), 0)\n ')))); var tmp_484 = listOf_0(['aeeActivityUid', 'aeeKeyHash']); var tmp_485 = listOf_0([new ReplicationFieldMetaData('aeeActivityUid', -5, false), new ReplicationFieldMetaData('aeeKeyHash', -5, false), new ReplicationFieldMetaData('aeeKey', -1, true), new ReplicationFieldMetaData('aeeJson', -1, true), new ReplicationFieldMetaData('aeeLastMod', -5, false), new ReplicationFieldMetaData('aeeIsDeleted', 16, false)]); var tmp_486 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_487 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_488 = [Event_INSERT_getInstance()]; var tmp_489 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_490 = ['REPLACE INTO ActivityExtensionEntity (aeeActivityUid, aeeKeyHash, aeeKey, aeeJson, aeeLastMod, aeeIsDeleted) VALUES( CAST(NEW.aeeActivityUid AS BIGINT), CAST(NEW.aeeKeyHash AS BIGINT), NEW.aeeKey, NEW.aeeJson, CAST(NEW.aeeLastMod AS BIGINT), NEW.aeeIsDeleted) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$557 = ['INSERT INTO ActivityExtensionEntity (aeeActivityUid, aeeKeyHash, aeeKey, aeeJson, aeeLastMod, aeeIsDeleted) VALUES( CAST(NEW.aeeActivityUid AS BIGINT), CAST(NEW.aeeKeyHash AS BIGINT), NEW.aeeKey, NEW.aeeJson, CAST(NEW.aeeLastMod AS BIGINT), NEW.aeeIsDeleted) ON CONFLICT(aeeActivityUid, aeeKeyHash) DO UPDATE SET aeeKey = NEW.aeeKey, aeeJson = NEW.aeeJson, aeeLastMod = NEW.aeeLastMod, aeeIsDeleted = NEW.aeeIsDeleted ']; var tmp_491 = to(6405, new ReplicationEntityMetaData(6405, 'ActivityExtensionEntity', 'ActivityExtensionEntity_ReceiveView', tmp_484, 'aeeLastMod', tmp_485, 1000, tmp_486, listOf(new Trigger('activityextensionentity_remote_insert', tmp_487, tmp_488, tmp_489, tmp_490, tmp$ret$557, 'SELECT \n CAST(NEW.aeeLastMod AS BIGINT) >\n COALESCE((SELECT ActivityExtensionEntity_Existing.aeeLastMod\n FROM ActivityExtensionEntity ActivityExtensionEntity_Existing\n WHERE ActivityExtensionEntity_Existing.aeeActivityUid = NEW.aeeActivityUid AND ActivityExtensionEntity_Existing.aeeKeyHash = NEW.aeeKeyHash), 0)\n ', 'SELECT \n CAST(NEW.aeeLastMod AS BIGINT) >\n COALESCE((SELECT ActivityExtensionEntity_Existing.aeeLastMod\n FROM ActivityExtensionEntity ActivityExtensionEntity_Existing\n WHERE ActivityExtensionEntity_Existing.aeeActivityUid = NEW.aeeActivityUid AND ActivityExtensionEntity_Existing.aeeKeyHash = NEW.aeeKeyHash), 0)\n ')))); var tmp_492 = listOf_0(['scajFromStatementIdHi', 'scajFromStatementIdLo', 'scajToHash']); var tmp_493 = listOf_0([new ReplicationFieldMetaData('scajFromStatementIdHi', -5, false), new ReplicationFieldMetaData('scajFromStatementIdLo', -5, false), new ReplicationFieldMetaData('scajToHash', -5, false), new ReplicationFieldMetaData('scajContextType', 4, false), new ReplicationFieldMetaData('scajToActivityUid', -5, false), new ReplicationFieldMetaData('scajToActivityId', -1, true), new ReplicationFieldMetaData('scajEtag', -5, false)]); var tmp_494 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_495 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_496 = [Event_INSERT_getInstance()]; var tmp_497 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_498 = ['REPLACE INTO StatementContextActivityJoin (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash, scajContextType, scajToActivityUid, scajToActivityId, scajEtag) VALUES( CAST(NEW.scajFromStatementIdHi AS BIGINT), CAST(NEW.scajFromStatementIdLo AS BIGINT), CAST(NEW.scajToHash AS BIGINT), NEW.scajContextType, CAST(NEW.scajToActivityUid AS BIGINT), NEW.scajToActivityId, CAST(NEW.scajEtag AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$566 = ['INSERT INTO StatementContextActivityJoin (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash, scajContextType, scajToActivityUid, scajToActivityId, scajEtag) VALUES( CAST(NEW.scajFromStatementIdHi AS BIGINT), CAST(NEW.scajFromStatementIdLo AS BIGINT), CAST(NEW.scajToHash AS BIGINT), NEW.scajContextType, CAST(NEW.scajToActivityUid AS BIGINT), NEW.scajToActivityId, CAST(NEW.scajEtag AS BIGINT)) ON CONFLICT(scajFromStatementIdHi, scajFromStatementIdLo, scajToHash) DO UPDATE SET scajContextType = NEW.scajContextType, scajToActivityUid = NEW.scajToActivityUid, scajToActivityId = NEW.scajToActivityId, scajEtag = NEW.scajEtag ']; var tmp_499 = to(44044, new ReplicationEntityMetaData(44044, 'StatementContextActivityJoin', 'StatementContextActivityJoin_ReceiveView', tmp_492, 'scajEtag', tmp_493, 1000, tmp_494, listOf(new Trigger('statementcontextactivityjoin_remoteinsert', tmp_495, tmp_496, tmp_497, tmp_498, tmp$ret$566, 'SELECT \n CAST(NEW.scajEtag AS BIGINT) != \n COALESCE((SELECT StatementContextActivityJoin_Existing.scajEtag\n FROM StatementContextActivityJoin StatementContextActivityJoin_Existing\n WHERE StatementContextActivityJoin_Existing.scajFromStatementIdHi = NEW.scajFromStatementIdHi AND StatementContextActivityJoin_Existing.scajFromStatementIdLo = NEW.scajFromStatementIdLo AND StatementContextActivityJoin_Existing.scajToHash = NEW.scajToHash), 0)\n ', 'SELECT \n CAST(NEW.scajEtag AS BIGINT) != \n COALESCE((SELECT StatementContextActivityJoin_Existing.scajEtag\n FROM StatementContextActivityJoin StatementContextActivityJoin_Existing\n WHERE StatementContextActivityJoin_Existing.scajFromStatementIdHi = NEW.scajFromStatementIdHi AND StatementContextActivityJoin_Existing.scajFromStatementIdLo = NEW.scajFromStatementIdLo AND StatementContextActivityJoin_Existing.scajToHash = NEW.scajToHash), 0)\n ')))); var tmp_500 = listOf('xseUid'); var tmp_501 = listOf_0([new ReplicationFieldMetaData('xseLastMod', -5, false), new ReplicationFieldMetaData('xseRegistrationHi', -5, false), new ReplicationFieldMetaData('xseRegistrationLo', -5, false), new ReplicationFieldMetaData('xseUsUid', -5, false), new ReplicationFieldMetaData('xseAccountPersonUid', -5, false), new ReplicationFieldMetaData('xseActorUid', -5, false), new ReplicationFieldMetaData('xseAccountUsername', -1, false), new ReplicationFieldMetaData('xseClazzUid', -5, false), new ReplicationFieldMetaData('xseCbUid', -5, false), new ReplicationFieldMetaData('xseContentEntryUid', -5, false), new ReplicationFieldMetaData('xseContentEntryVersionUid', -5, false), new ReplicationFieldMetaData('xseRootActivityId', -1, false), new ReplicationFieldMetaData('xseRootActivityUid', -5, false), new ReplicationFieldMetaData('xseStartTime', -5, false), new ReplicationFieldMetaData('xseExpireTime', -5, false), new ReplicationFieldMetaData('xseAuth', -1, true), new ReplicationFieldMetaData('xseCompleted', 16, false), new ReplicationFieldMetaData('knownActorUidToPersonUids', -1, false), new ReplicationFieldMetaData('xseUid', -5, false)]); var tmp_502 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_503 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_504 = [Event_INSERT_getInstance()]; var tmp_505 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_506 = ['REPLACE INTO XapiSessionEntity (xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids) VALUES( CAST(NEW.xseUid AS BIGINT), CAST(NEW.xseLastMod AS BIGINT), CAST(NEW.xseRegistrationHi AS BIGINT), CAST(NEW.xseRegistrationLo AS BIGINT), CAST(NEW.xseUsUid AS BIGINT), CAST(NEW.xseAccountPersonUid AS BIGINT), CAST(NEW.xseActorUid AS BIGINT), NEW.xseAccountUsername, CAST(NEW.xseClazzUid AS BIGINT), CAST(NEW.xseCbUid AS BIGINT), CAST(NEW.xseContentEntryUid AS BIGINT), CAST(NEW.xseContentEntryVersionUid AS BIGINT), NEW.xseRootActivityId, CAST(NEW.xseRootActivityUid AS BIGINT), CAST(NEW.xseStartTime AS BIGINT), CAST(NEW.xseExpireTime AS BIGINT), NEW.xseAuth, NEW.xseCompleted, NEW.knownActorUidToPersonUids) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$575 = ['INSERT INTO XapiSessionEntity (xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids) VALUES( CAST(NEW.xseUid AS BIGINT), CAST(NEW.xseLastMod AS BIGINT), CAST(NEW.xseRegistrationHi AS BIGINT), CAST(NEW.xseRegistrationLo AS BIGINT), CAST(NEW.xseUsUid AS BIGINT), CAST(NEW.xseAccountPersonUid AS BIGINT), CAST(NEW.xseActorUid AS BIGINT), NEW.xseAccountUsername, CAST(NEW.xseClazzUid AS BIGINT), CAST(NEW.xseCbUid AS BIGINT), CAST(NEW.xseContentEntryUid AS BIGINT), CAST(NEW.xseContentEntryVersionUid AS BIGINT), NEW.xseRootActivityId, CAST(NEW.xseRootActivityUid AS BIGINT), CAST(NEW.xseStartTime AS BIGINT), CAST(NEW.xseExpireTime AS BIGINT), NEW.xseAuth, NEW.xseCompleted, NEW.knownActorUidToPersonUids) ON CONFLICT(xseUid) DO UPDATE SET xseLastMod = NEW.xseLastMod, xseRegistrationHi = NEW.xseRegistrationHi, xseRegistrationLo = NEW.xseRegistrationLo, xseUsUid = NEW.xseUsUid, xseAccountPersonUid = NEW.xseAccountPersonUid, xseActorUid = NEW.xseActorUid, xseAccountUsername = NEW.xseAccountUsername, xseClazzUid = NEW.xseClazzUid, xseCbUid = NEW.xseCbUid, xseContentEntryUid = NEW.xseContentEntryUid, xseContentEntryVersionUid = NEW.xseContentEntryVersionUid, xseRootActivityId = NEW.xseRootActivityId, xseRootActivityUid = NEW.xseRootActivityUid, xseStartTime = NEW.xseStartTime, xseExpireTime = NEW.xseExpireTime, xseAuth = NEW.xseAuth, xseCompleted = NEW.xseCompleted, knownActorUidToPersonUids = NEW.knownActorUidToPersonUids ']; var tmp_507 = to(400122, new ReplicationEntityMetaData(400122, 'XapiSessionEntity', 'XapiSessionEntity_ReceiveView', tmp_500, 'xseLastMod', tmp_501, 1000, tmp_502, listOf(new Trigger('xapisessionentity_remote_insert', tmp_503, tmp_504, tmp_505, tmp_506, tmp$ret$575, 'SELECT \n CAST(NEW.xseLastMod AS BIGINT) >\n COALESCE((SELECT XapiSessionEntity_Existing.xseLastMod\n FROM XapiSessionEntity XapiSessionEntity_Existing\n WHERE XapiSessionEntity_Existing.xseUid = NEW.xseUid), 0)\n ', 'SELECT \n CAST(NEW.xseLastMod AS BIGINT) >\n COALESCE((SELECT XapiSessionEntity_Existing.xseLastMod\n FROM XapiSessionEntity XapiSessionEntity_Existing\n WHERE XapiSessionEntity_Existing.xseUid = NEW.xseUid), 0)\n ')))); var tmp_508 = listOf_0(['stmtJsonIdHi', 'stmtJsonIdLo']); var tmp_509 = listOf_0([new ReplicationFieldMetaData('stmtJsonIdHi', -5, false), new ReplicationFieldMetaData('stmtJsonIdLo', -5, false), new ReplicationFieldMetaData('stmtEtag', -5, false), new ReplicationFieldMetaData('fullStatement', -1, true)]); var tmp_510 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_511 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_512 = [Event_INSERT_getInstance()]; var tmp_513 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_514 = ['REPLACE INTO StatementEntityJson (stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement) VALUES( CAST(NEW.stmtJsonIdHi AS BIGINT), CAST(NEW.stmtJsonIdLo AS BIGINT), CAST(NEW.stmtEtag AS BIGINT), NEW.fullStatement) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$584 = ['INSERT INTO StatementEntityJson (stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement) VALUES( CAST(NEW.stmtJsonIdHi AS BIGINT), CAST(NEW.stmtJsonIdLo AS BIGINT), CAST(NEW.stmtEtag AS BIGINT), NEW.fullStatement) ON CONFLICT(stmtJsonIdHi, stmtJsonIdLo) DO UPDATE SET stmtEtag = NEW.stmtEtag, fullStatement = NEW.fullStatement ']; var tmp_515 = to(602, new ReplicationEntityMetaData(602, 'StatementEntityJson', 'StatementEntityJson_ReceiveView', tmp_508, 'stmtEtag', tmp_509, 1000, tmp_510, listOf(new Trigger('statemententityjson_remote_insert', tmp_511, tmp_512, tmp_513, tmp_514, tmp$ret$584, 'SELECT \n CAST(NEW.stmtEtag AS BIGINT) != \n COALESCE((SELECT StatementEntityJson_Existing.stmtEtag\n FROM StatementEntityJson StatementEntityJson_Existing\n WHERE StatementEntityJson_Existing.stmtJsonIdHi = NEW.stmtJsonIdHi AND StatementEntityJson_Existing.stmtJsonIdLo = NEW.stmtJsonIdLo), 0)\n ', 'SELECT \n CAST(NEW.stmtEtag AS BIGINT) != \n COALESCE((SELECT StatementEntityJson_Existing.stmtEtag\n FROM StatementEntityJson StatementEntityJson_Existing\n WHERE StatementEntityJson_Existing.stmtJsonIdHi = NEW.stmtJsonIdHi AND StatementEntityJson_Existing.stmtJsonIdLo = NEW.stmtJsonIdLo), 0)\n ')))); var tmp_516 = listOf_0(['seActorUid', 'seHash']); var tmp_517 = listOf_0([new ReplicationFieldMetaData('seActorUid', -5, false), new ReplicationFieldMetaData('seHash', -5, false), new ReplicationFieldMetaData('seActivityUid', -5, false), new ReplicationFieldMetaData('seStateId', -1, false), new ReplicationFieldMetaData('seLastMod', -5, false), new ReplicationFieldMetaData('seTimeStored', -5, false), new ReplicationFieldMetaData('seContentType', -1, false), new ReplicationFieldMetaData('seCompressed', 4, false), new ReplicationFieldMetaData('seContent', -1, false), new ReplicationFieldMetaData('seDeleted', 16, false), new ReplicationFieldMetaData('seRegistrationHi', -5, true), new ReplicationFieldMetaData('seRegistrationLo', -5, true), new ReplicationFieldMetaData('seH5PPreloaded', 16, false), new ReplicationFieldMetaData('seH5PSubContentId', -1, true)]); var tmp_518 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_519 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_520 = [Event_INSERT_getInstance()]; var tmp_521 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_522 = ['REPLACE INTO StateEntity (seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId) VALUES( CAST(NEW.seActorUid AS BIGINT), CAST(NEW.seHash AS BIGINT), CAST(NEW.seActivityUid AS BIGINT), NEW.seStateId, CAST(NEW.seLastMod AS BIGINT), CAST(NEW.seTimeStored AS BIGINT), NEW.seContentType, NEW.seCompressed, NEW.seContent, NEW.seDeleted, NEW.seRegistrationHi, NEW.seRegistrationLo, NEW.seH5PPreloaded, NEW.seH5PSubContentId) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$593 = ['INSERT INTO StateEntity (seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId) VALUES( CAST(NEW.seActorUid AS BIGINT), CAST(NEW.seHash AS BIGINT), CAST(NEW.seActivityUid AS BIGINT), NEW.seStateId, CAST(NEW.seLastMod AS BIGINT), CAST(NEW.seTimeStored AS BIGINT), NEW.seContentType, NEW.seCompressed, NEW.seContent, NEW.seDeleted, NEW.seRegistrationHi, NEW.seRegistrationLo, NEW.seH5PPreloaded, NEW.seH5PSubContentId) ON CONFLICT(seActorUid, seHash) DO UPDATE SET seActivityUid = NEW.seActivityUid, seStateId = NEW.seStateId, seLastMod = NEW.seLastMod, seTimeStored = NEW.seTimeStored, seContentType = NEW.seContentType, seCompressed = NEW.seCompressed, seContent = NEW.seContent, seDeleted = NEW.seDeleted, seRegistrationHi = NEW.seRegistrationHi, seRegistrationLo = NEW.seRegistrationLo, seH5PPreloaded = NEW.seH5PPreloaded, seH5PSubContentId = NEW.seH5PSubContentId ']; var tmp_523 = to(3289, new ReplicationEntityMetaData(3289, 'StateEntity', 'StateEntity_ReceiveView', tmp_516, 'seLastMod', tmp_517, 1000, tmp_518, listOf(new Trigger('stateentity_remote_insert', tmp_519, tmp_520, tmp_521, tmp_522, tmp$ret$593, 'SELECT \n CAST(NEW.seLastMod AS BIGINT) >\n COALESCE((SELECT StateEntity_Existing.seLastMod\n FROM StateEntity StateEntity_Existing\n WHERE StateEntity_Existing.seActorUid = NEW.seActorUid AND StateEntity_Existing.seHash = NEW.seHash), 0)\n ', 'SELECT \n CAST(NEW.seLastMod AS BIGINT) >\n COALESCE((SELECT StateEntity_Existing.seLastMod\n FROM StateEntity StateEntity_Existing\n WHERE StateEntity_Existing.seActorUid = NEW.seActorUid AND StateEntity_Existing.seHash = NEW.seHash), 0)\n ')))); var tmp_524 = listOf_0(['sdcActorUid', 'sdcHash']); var tmp_525 = listOf_0([new ReplicationFieldMetaData('sdcActorUid', -5, false), new ReplicationFieldMetaData('sdcHash', -5, false), new ReplicationFieldMetaData('sdcActivityUid', -5, false), new ReplicationFieldMetaData('sdcStateId', -1, true), new ReplicationFieldMetaData('sdcLastMod', -5, false), new ReplicationFieldMetaData('sdcRegistrationHi', -5, true), new ReplicationFieldMetaData('sdcRegistrationLo', -5, true)]); var tmp_526 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_527 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_528 = [Event_INSERT_getInstance()]; var tmp_529 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_530 = ['REPLACE INTO StateDeleteCommand (sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo) VALUES( CAST(NEW.sdcActorUid AS BIGINT), CAST(NEW.sdcHash AS BIGINT), CAST(NEW.sdcActivityUid AS BIGINT), NEW.sdcStateId, CAST(NEW.sdcLastMod AS BIGINT), NEW.sdcRegistrationHi, NEW.sdcRegistrationLo) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$602 = ['INSERT INTO StateDeleteCommand (sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo) VALUES( CAST(NEW.sdcActorUid AS BIGINT), CAST(NEW.sdcHash AS BIGINT), CAST(NEW.sdcActivityUid AS BIGINT), NEW.sdcStateId, CAST(NEW.sdcLastMod AS BIGINT), NEW.sdcRegistrationHi, NEW.sdcRegistrationLo) ON CONFLICT(sdcActorUid, sdcHash) DO UPDATE SET sdcActivityUid = NEW.sdcActivityUid, sdcStateId = NEW.sdcStateId, sdcLastMod = NEW.sdcLastMod, sdcRegistrationHi = NEW.sdcRegistrationHi, sdcRegistrationLo = NEW.sdcRegistrationLo ']; return mapOf([tmp_6, tmp_14, tmp_22, tmp_30, tmp_38, tmp_46, tmp_54, tmp_62, tmp_70, tmp_78, tmp_86, tmp_94, tmp_102, tmp_110, tmp_118, tmp_126, tmp_134, tmp_142, tmp_150, tmp_158, tmp_166, tmp_174, tmp_182, tmp_190, tmp_198, tmp_206, tmp_214, tmp_222, tmp_230, tmp_238, tmp_246, tmp_254, tmp_262, tmp_270, tmp_278, tmp_286, tmp_294, tmp_302, tmp_310, tmp_318, tmp_326, tmp_334, tmp_342, tmp_350, tmp_358, tmp_366, tmp_374, tmp_382, tmp_390, tmp_403, tmp_411, tmp_419, tmp_427, tmp_435, tmp_443, tmp_451, tmp_459, tmp_467, tmp_475, tmp_483, tmp_491, tmp_499, tmp_507, tmp_515, tmp_523, to(121422, new ReplicationEntityMetaData(121422, 'StateDeleteCommand', 'StateDeleteCommand_ReceiveView', tmp_524, 'sdcLastMod', tmp_525, 1000, tmp_526, listOf(new Trigger('statedeletecommand_remote_insert', tmp_527, tmp_528, tmp_529, tmp_530, tmp$ret$602, 'SELECT \n CAST(NEW.sdcLastMod AS BIGINT) >\n COALESCE((SELECT StateDeleteCommand_Existing.sdcLastMod\n FROM StateDeleteCommand StateDeleteCommand_Existing\n WHERE StateDeleteCommand_Existing.sdcActorUid = NEW.sdcActorUid AND StateDeleteCommand_Existing.sdcHash = NEW.sdcHash), 0)\n ', 'SELECT \n CAST(NEW.sdcLastMod AS BIGINT) >\n COALESCE((SELECT StateDeleteCommand_Existing.sdcLastMod\n FROM StateDeleteCommand StateDeleteCommand_Existing\n WHERE StateDeleteCommand_Existing.sdcActorUid = NEW.sdcActorUid AND StateDeleteCommand_Existing.sdcHash = NEW.sdcHash), 0)\n '))))]); } function UmAppDatabase_DoorMetadata() { DoorDatabaseMetadata.call(this); this.o7h_1 = listOf_0(['ClazzLog', 'ClazzLogAttendanceRecord', 'Schedule', 'HolidayCalendar', 'Holiday', 'Person', 'Clazz', 'ClazzEnrolment', 'LeavingReason', 'ContentEntry', 'ContentEntryContentCategoryJoin', 'ContentEntryParentChildJoin', 'ContentEntryRelatedEntryJoin', 'ContentCategorySchema', 'ContentCategory', 'Language', 'LanguageVariant', 'PersonAuth', 'PersonGroup', 'PersonGroupMember', 'PersonPicture', 'VerbEntity', 'ActivityEntity', 'StatementEntity', 'ActorEntity', 'SyncNode', 'Comments', 'Report', 'Site', 'SiteTerms', 'PersonParentJoin', 'ScopedGrant', 'ErrorReport', 'ClazzAssignment', 'CourseAssignmentSubmission', 'CourseAssignmentSubmissionFile', 'CourseAssignmentMark', 'PeerReviewerAllocation', 'PersonAuth2', 'UserSession', 'ContentJob', 'ContentEntryImportJob', 'CourseBlock', 'CourseTerminology', 'CourseGroupSet', 'CourseGroupMember', 'ContentEntryPicture', 'ActivityInteractionEntity', 'CoursePicture', 'DiscussionPost', 'ExternalAppPermission', 'Message', 'StudentResult', 'ContentEntryVersion', 'TransferJob', 'TransferJobItem', 'CacheLockJoin', 'OfflineItem', 'OfflineItemPendingTransferJob', 'DeletedItem', 'EnrolmentRequest', 'CoursePermission', 'SystemPermission', 'CourseBlockPicture', 'ContentEntryPicture2', 'TransferJobError', 'VerbLangMapEntry', 'GroupMemberActorJoin', 'ActivityLangMapEntry', 'ActivityExtensionEntity', 'StatementContextActivityJoin', 'XapiSessionEntity', 'StatementEntityJson', 'StateEntity', 'StateDeleteCommand', 'OutgoingReplication', 'ReplicationOperation', 'PendingRepositorySession', 'DoorNode', 'ReportQueryResult']); var tmp = this; var tmp_0 = LazyThreadSafetyMode_NONE_getInstance(); tmp.p7h_1 = lazy(tmp_0, UmAppDatabase_DoorMetadata$replicateEntities$delegate$lambda); } protoOf(UmAppDatabase_DoorMetadata).q66 = function () { return this.o7h_1; }; protoOf(UmAppDatabase_DoorMetadata).d66 = function () { // Inline function 'kotlin.getValue' call var this_0 = this.p7h_1; replicateEntities$factory(); return this_0.t2(); }; function replicateEntities$factory() { return getPropertyCallableRef('replicateEntities', 1, KProperty1, function (receiver) { return receiver.d66(); }, null); } function UmAppDatabase_DoorWrapper$_PersonDao$delegate$lambda(this$0) { return function () { return new PersonDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.s7e()); }; } function UmAppDatabase_DoorWrapper$_ClazzDao$delegate$lambda(this$0) { return function () { return new ClazzDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.t7e()); }; } function UmAppDatabase_DoorWrapper$_CourseBlockDao$delegate$lambda(this$0) { return function () { return new CourseBlockDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.u7e()); }; } function UmAppDatabase_DoorWrapper$_CourseTerminologyDao$delegate$lambda(this$0) { return function () { return new CourseTerminologyDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.v7e()); }; } function UmAppDatabase_DoorWrapper$_CourseGroupSetDao$delegate$lambda(this$0) { return function () { return new CourseGroupSetDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.w7e()); }; } function UmAppDatabase_DoorWrapper$_CourseGroupMemberDao$delegate$lambda(this$0) { return function () { return new CourseGroupMemberDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.x7e()); }; } function UmAppDatabase_DoorWrapper$_ClazzEnrolmentDao$delegate$lambda(this$0) { return function () { return new ClazzEnrolmentDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.y7e()); }; } function UmAppDatabase_DoorWrapper$_LeavingReasonDao$delegate$lambda(this$0) { return function () { return new LeavingReasonDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.z7e()); }; } function UmAppDatabase_DoorWrapper$_ContentEntryDao$delegate$lambda(this$0) { return function () { return new ContentEntryDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.a7f()); }; } function UmAppDatabase_DoorWrapper$_ContentEntryContentCategoryJoinDao$delegate$lambda(this$0) { return function () { return new ContentEntryContentCategoryJoinDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.b7f()); }; } function UmAppDatabase_DoorWrapper$_ContentEntryParentChildJoinDao$delegate$lambda(this$0) { return function () { return new ContentEntryParentChildJoinDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.c7f()); }; } function UmAppDatabase_DoorWrapper$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this$0) { return function () { return new ContentEntryRelatedEntryJoinDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.d7f()); }; } function UmAppDatabase_DoorWrapper$_ContentCategorySchemaDao$delegate$lambda(this$0) { return function () { return new ContentCategorySchemaDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.e7f()); }; } function UmAppDatabase_DoorWrapper$_ContentCategoryDao$delegate$lambda(this$0) { return function () { return new ContentCategoryDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.f7f()); }; } function UmAppDatabase_DoorWrapper$_LanguageDao$delegate$lambda(this$0) { return function () { return new LanguageDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.g7f()); }; } function UmAppDatabase_DoorWrapper$_LanguageVariantDao$delegate$lambda(this$0) { return function () { return new LanguageVariantDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.h7f()); }; } function UmAppDatabase_DoorWrapper$_PersonGroupDao$delegate$lambda(this$0) { return function () { return new PersonGroupDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.i7f()); }; } function UmAppDatabase_DoorWrapper$_PersonGroupMemberDao$delegate$lambda(this$0) { return function () { return new PersonGroupMemberDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.j7f()); }; } function UmAppDatabase_DoorWrapper$_PersonPictureDao$delegate$lambda(this$0) { return function () { return new PersonPictureDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.k7f()); }; } function UmAppDatabase_DoorWrapper$_VerbDao$delegate$lambda(this$0) { return function () { return new VerbDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.l7f()); }; } function UmAppDatabase_DoorWrapper$_ActivityEntityDao$delegate$lambda(this$0) { return function () { return new ActivityEntityDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.m7f()); }; } function UmAppDatabase_DoorWrapper$_ReportDao$delegate$lambda(this$0) { return function () { return new ReportDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.n7f()); }; } function UmAppDatabase_DoorWrapper$_StatementDao$delegate$lambda(this$0) { return function () { return new StatementDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.o7f()); }; } function UmAppDatabase_DoorWrapper$_ActorDao$delegate$lambda(this$0) { return function () { return new ActorDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.p7f()); }; } function UmAppDatabase_DoorWrapper$_ClazzLogAttendanceRecordDao$delegate$lambda(this$0) { return function () { return new ClazzLogAttendanceRecordDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.q7f()); }; } function UmAppDatabase_DoorWrapper$_ClazzLogDao$delegate$lambda(this$0) { return function () { return new ClazzLogDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.r7f()); }; } function UmAppDatabase_DoorWrapper$_ScheduleDao$delegate$lambda(this$0) { return function () { return new ScheduleDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.s7f()); }; } function UmAppDatabase_DoorWrapper$_HolidayCalendarDao$delegate$lambda(this$0) { return function () { return new HolidayCalendarDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.t7f()); }; } function UmAppDatabase_DoorWrapper$_HolidayDao$delegate$lambda(this$0) { return function () { return new HolidayDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.u7f()); }; } function UmAppDatabase_DoorWrapper$_ClazzAssignmentDao$delegate$lambda(this$0) { return function () { return new ClazzAssignmentDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.v7f()); }; } function UmAppDatabase_DoorWrapper$_CourseAssignmentSubmissionDao$delegate$lambda(this$0) { return function () { return new CourseAssignmentSubmissionDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.w7f()); }; } function UmAppDatabase_DoorWrapper$_CourseAssignmentSubmissionFileDao$delegate$lambda(this$0) { return function () { return new CourseAssignmentSubmissionFileDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.x7f()); }; } function UmAppDatabase_DoorWrapper$_CourseAssignmentMarkDao$delegate$lambda(this$0) { return function () { return new CourseAssignmentMarkDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.y7f()); }; } function UmAppDatabase_DoorWrapper$_CommentsDao$delegate$lambda(this$0) { return function () { return new CommentsDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.z7f()); }; } function UmAppDatabase_DoorWrapper$_SiteDao$delegate$lambda(this$0) { return function () { return new SiteDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.a7g()); }; } function UmAppDatabase_DoorWrapper$_SiteTermsDao$delegate$lambda(this$0) { return function () { return new SiteTermsDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.b7g()); }; } function UmAppDatabase_DoorWrapper$_PersonParentJoinDao$delegate$lambda(this$0) { return function () { return new PersonParentJoinDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.c7g()); }; } function UmAppDatabase_DoorWrapper$_ScopedGrantDao$delegate$lambda(this$0) { return function () { return new ScopedGrantDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.d7g()); }; } function UmAppDatabase_DoorWrapper$_ErrorReportDao$delegate$lambda(this$0) { return function () { return new ErrorReportDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.e7g()); }; } function UmAppDatabase_DoorWrapper$_PersonAuth2Dao$delegate$lambda(this$0) { return function () { return new PersonAuth2Dao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.f7g()); }; } function UmAppDatabase_DoorWrapper$_UserSessionDao$delegate$lambda(this$0) { return function () { return new UserSessionDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.g7g()); }; } function UmAppDatabase_DoorWrapper$_CoursePictureDao$delegate$lambda(this$0) { return function () { return new CoursePictureDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.i7g()); }; } function UmAppDatabase_DoorWrapper$_ContentEntryPictureDao$delegate$lambda(this$0) { return function () { return new ContentEntryPictureDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.j7g()); }; } function UmAppDatabase_DoorWrapper$_MessageDao$delegate$lambda(this$0) { return function () { return new MessageDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.k7g()); }; } function UmAppDatabase_DoorWrapper$_PeerReviewerAllocationDao$delegate$lambda(this$0) { return function () { return new PeerReviewerAllocationDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.l7g()); }; } function UmAppDatabase_DoorWrapper$_DiscussionPostDao$delegate$lambda(this$0) { return function () { return new DiscussionPostDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.m7g()); }; } function UmAppDatabase_DoorWrapper$_ContentEntryVersionDao$delegate$lambda(this$0) { return function () { return new ContentEntryVersionDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.n7g()); }; } function UmAppDatabase_DoorWrapper$_OfflineItemDao$delegate$lambda(this$0) { return function () { return new OfflineItemDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.q7g()); }; } function UmAppDatabase_DoorWrapper$_EnrolmentRequestDao$delegate$lambda(this$0) { return function () { return new EnrolmentRequestDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.s7g()); }; } function UmAppDatabase_DoorWrapper$_CoursePermissionDao$delegate$lambda(this$0) { return function () { return new CoursePermissionDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.t7g()); }; } function UmAppDatabase_DoorWrapper$_SystemPermissionDao$delegate$lambda(this$0) { return function () { return new SystemPermissionDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.u7g()); }; } function UmAppDatabase_DoorWrapper$_CourseBlockPictureDao$delegate$lambda(this$0) { return function () { return new CourseBlockPictureDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.v7g()); }; } function UmAppDatabase_DoorWrapper$_ContentEntryPicture2Dao$delegate$lambda(this$0) { return function () { return new ContentEntryPicture2Dao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.w7g()); }; } function UmAppDatabase_DoorWrapper$_StudentResultDao$delegate$lambda(this$0) { return function () { return new StudentResultDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.x7g()); }; } function UmAppDatabase_DoorWrapper$_VerbLangMapEntryDao$delegate$lambda(this$0) { return function () { return new VerbLangMapEntryDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.y7g()); }; } function UmAppDatabase_DoorWrapper$_GroupMemberActorJoinDao$delegate$lambda(this$0) { return function () { return new GroupMemberActorJoinDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.z7g()); }; } function UmAppDatabase_DoorWrapper$_ActivityLangMapEntryDao$delegate$lambda(this$0) { return function () { return new ActivityLangMapEntryDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.a7h()); }; } function UmAppDatabase_DoorWrapper$_ActivityInteractionDao$delegate$lambda(this$0) { return function () { return new ActivityInteractionDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.b7h()); }; } function UmAppDatabase_DoorWrapper$_ActivityExtensionDao$delegate$lambda(this$0) { return function () { return new ActivityExtensionDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.c7h()); }; } function UmAppDatabase_DoorWrapper$_StatementContextActivityJoinDao$delegate$lambda(this$0) { return function () { return new StatementContextActivityJoinDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.d7h()); }; } function UmAppDatabase_DoorWrapper$_XapiSessionEntityDao$delegate$lambda(this$0) { return function () { return new XapiSessionEntityDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.e7h()); }; } function UmAppDatabase_DoorWrapper$_StatementEntityJsonDao$delegate$lambda(this$0) { return function () { return new StatementEntityJsonDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.f7h()); }; } function UmAppDatabase_DoorWrapper$_StateEntityDao$delegate$lambda(this$0) { return function () { return new StateEntityDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.g7h()); }; } function UmAppDatabase_DoorWrapper$_StateDeleteCommandDao$delegate$lambda(this$0) { return function () { return new StateDeleteCommandDao_DoorWrapper(this$0.q7h_1, this$0.q7h_1.h7h()); }; } function UmAppDatabase_DoorWrapper(_db, nodeId, messageCallback, logger, dbName) { UmAppDatabase.call(this); this.q7h_1 = _db; this.r7h_1 = nodeId; this.s7h_1 = messageCallback; var tmp = this; tmp.t7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonDao$delegate$lambda(this)); var tmp_0 = this; tmp_0.u7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_ClazzDao$delegate$lambda(this)); var tmp_1 = this; tmp_1.v7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseBlockDao$delegate$lambda(this)); var tmp_2 = this; tmp_2.w7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseTerminologyDao$delegate$lambda(this)); var tmp_3 = this; tmp_3.x7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseGroupSetDao$delegate$lambda(this)); var tmp_4 = this; tmp_4.y7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseGroupMemberDao$delegate$lambda(this)); var tmp_5 = this; tmp_5.z7h_1 = lazy_0(UmAppDatabase_DoorWrapper$_ClazzEnrolmentDao$delegate$lambda(this)); var tmp_6 = this; tmp_6.a7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_LeavingReasonDao$delegate$lambda(this)); var tmp_7 = this; tmp_7.b7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryDao$delegate$lambda(this)); var tmp_8 = this; tmp_8.c7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryContentCategoryJoinDao$delegate$lambda(this)); var tmp_9 = this; tmp_9.d7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryParentChildJoinDao$delegate$lambda(this)); var tmp_10 = this; tmp_10.e7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this)); var tmp_11 = this; tmp_11.f7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentCategorySchemaDao$delegate$lambda(this)); var tmp_12 = this; tmp_12.g7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentCategoryDao$delegate$lambda(this)); var tmp_13 = this; tmp_13.h7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_LanguageDao$delegate$lambda(this)); var tmp_14 = this; tmp_14.i7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_LanguageVariantDao$delegate$lambda(this)); var tmp_15 = this; tmp_15.j7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonGroupDao$delegate$lambda(this)); var tmp_16 = this; tmp_16.k7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonGroupMemberDao$delegate$lambda(this)); var tmp_17 = this; tmp_17.l7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonPictureDao$delegate$lambda(this)); var tmp_18 = this; tmp_18.m7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_VerbDao$delegate$lambda(this)); var tmp_19 = this; tmp_19.n7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ActivityEntityDao$delegate$lambda(this)); var tmp_20 = this; tmp_20.o7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ReportDao$delegate$lambda(this)); var tmp_21 = this; tmp_21.p7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_StatementDao$delegate$lambda(this)); var tmp_22 = this; tmp_22.q7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ActorDao$delegate$lambda(this)); var tmp_23 = this; tmp_23.r7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ClazzLogAttendanceRecordDao$delegate$lambda(this)); var tmp_24 = this; tmp_24.s7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ClazzLogDao$delegate$lambda(this)); var tmp_25 = this; tmp_25.t7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ScheduleDao$delegate$lambda(this)); var tmp_26 = this; tmp_26.u7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_HolidayCalendarDao$delegate$lambda(this)); var tmp_27 = this; tmp_27.v7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_HolidayDao$delegate$lambda(this)); var tmp_28 = this; tmp_28.w7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_ClazzAssignmentDao$delegate$lambda(this)); var tmp_29 = this; tmp_29.x7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseAssignmentSubmissionDao$delegate$lambda(this)); var tmp_30 = this; tmp_30.y7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseAssignmentSubmissionFileDao$delegate$lambda(this)); var tmp_31 = this; tmp_31.z7i_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseAssignmentMarkDao$delegate$lambda(this)); var tmp_32 = this; tmp_32.a7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_CommentsDao$delegate$lambda(this)); var tmp_33 = this; tmp_33.b7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_SiteDao$delegate$lambda(this)); var tmp_34 = this; tmp_34.c7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_SiteTermsDao$delegate$lambda(this)); var tmp_35 = this; tmp_35.d7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonParentJoinDao$delegate$lambda(this)); var tmp_36 = this; tmp_36.e7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_ScopedGrantDao$delegate$lambda(this)); var tmp_37 = this; tmp_37.f7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_ErrorReportDao$delegate$lambda(this)); var tmp_38 = this; tmp_38.g7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonAuth2Dao$delegate$lambda(this)); var tmp_39 = this; tmp_39.h7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_UserSessionDao$delegate$lambda(this)); var tmp_40 = this; tmp_40.i7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_CoursePictureDao$delegate$lambda(this)); var tmp_41 = this; tmp_41.j7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryPictureDao$delegate$lambda(this)); var tmp_42 = this; tmp_42.k7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_MessageDao$delegate$lambda(this)); var tmp_43 = this; tmp_43.l7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_PeerReviewerAllocationDao$delegate$lambda(this)); var tmp_44 = this; tmp_44.m7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_DiscussionPostDao$delegate$lambda(this)); var tmp_45 = this; tmp_45.n7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryVersionDao$delegate$lambda(this)); var tmp_46 = this; tmp_46.o7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_OfflineItemDao$delegate$lambda(this)); var tmp_47 = this; tmp_47.p7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_EnrolmentRequestDao$delegate$lambda(this)); var tmp_48 = this; tmp_48.q7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_CoursePermissionDao$delegate$lambda(this)); var tmp_49 = this; tmp_49.r7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_SystemPermissionDao$delegate$lambda(this)); var tmp_50 = this; tmp_50.s7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseBlockPictureDao$delegate$lambda(this)); var tmp_51 = this; tmp_51.t7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryPicture2Dao$delegate$lambda(this)); var tmp_52 = this; tmp_52.u7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_StudentResultDao$delegate$lambda(this)); var tmp_53 = this; tmp_53.v7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_VerbLangMapEntryDao$delegate$lambda(this)); var tmp_54 = this; tmp_54.w7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_GroupMemberActorJoinDao$delegate$lambda(this)); var tmp_55 = this; tmp_55.x7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_ActivityLangMapEntryDao$delegate$lambda(this)); var tmp_56 = this; tmp_56.y7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_ActivityInteractionDao$delegate$lambda(this)); var tmp_57 = this; tmp_57.z7j_1 = lazy_0(UmAppDatabase_DoorWrapper$_ActivityExtensionDao$delegate$lambda(this)); var tmp_58 = this; tmp_58.a7k_1 = lazy_0(UmAppDatabase_DoorWrapper$_StatementContextActivityJoinDao$delegate$lambda(this)); var tmp_59 = this; tmp_59.b7k_1 = lazy_0(UmAppDatabase_DoorWrapper$_XapiSessionEntityDao$delegate$lambda(this)); var tmp_60 = this; tmp_60.c7k_1 = lazy_0(UmAppDatabase_DoorWrapper$_StatementEntityJsonDao$delegate$lambda(this)); var tmp_61 = this; tmp_61.d7k_1 = lazy_0(UmAppDatabase_DoorWrapper$_StateEntityDao$delegate$lambda(this)); var tmp_62 = this; tmp_62.e7k_1 = lazy_0(UmAppDatabase_DoorWrapper$_StateDeleteCommandDao$delegate$lambda(this)); this.f7k_1 = new NodeEventManagerJs(this.q7h_1, this.s7h_1, logger, dbName); } protoOf(UmAppDatabase_DoorWrapper).r62 = function () { return this.r7h_1; }; protoOf(UmAppDatabase_DoorWrapper).q73 = function () { return 207; }; protoOf(UmAppDatabase_DoorWrapper).g7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.t7h_1; _PersonDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).h7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.u7h_1; _ClazzDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).i7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.v7h_1; _CourseBlockDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).j7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.w7h_1; _CourseTerminologyDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).k7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.x7h_1; _CourseGroupSetDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).l7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.y7h_1; _CourseGroupMemberDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).m7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.z7h_1; _ClazzEnrolmentDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).n7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.a7i_1; _LeavingReasonDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).o7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.b7i_1; _ContentEntryDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).p7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.c7i_1; _ContentEntryContentCategoryJoinDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).q7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.d7i_1; _ContentEntryParentChildJoinDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).r7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.e7i_1; _ContentEntryRelatedEntryJoinDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).s7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.f7i_1; _ContentCategorySchemaDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).t7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.g7i_1; _ContentCategoryDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).u7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.h7i_1; _LanguageDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).v7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.i7i_1; _LanguageVariantDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).w7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.j7i_1; _PersonGroupDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).x7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.k7i_1; _PersonGroupMemberDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).y7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.l7i_1; _PersonPictureDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).z7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.m7i_1; _VerbDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).a7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.n7i_1; _ActivityEntityDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).b7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.o7i_1; _ReportDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).c7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.p7i_1; _StatementDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).d7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.q7i_1; _ActorDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).e7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.r7i_1; _ClazzLogAttendanceRecordDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).f7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.s7i_1; _ClazzLogDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).g7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.t7i_1; _ScheduleDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).h7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.u7i_1; _HolidayCalendarDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).i7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.v7i_1; _HolidayDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).j7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.w7i_1; _ClazzAssignmentDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).k7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.x7i_1; _CourseAssignmentSubmissionDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).l7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.y7i_1; _CourseAssignmentSubmissionFileDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).m7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.z7i_1; _CourseAssignmentMarkDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).n7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.a7j_1; _CommentsDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).o7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.b7j_1; _SiteDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).p7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.c7j_1; _SiteTermsDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).q7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.d7j_1; _PersonParentJoinDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).r7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.e7j_1; _ScopedGrantDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).s7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.f7j_1; _ErrorReportDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).t7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.g7j_1; _PersonAuth2Dao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).u7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.h7j_1; _UserSessionDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).v7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.i7j_1; _CoursePictureDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).w7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.j7j_1; _ContentEntryPictureDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).x7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.k7j_1; _MessageDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).y7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.l7j_1; _PeerReviewerAllocationDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).z7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.m7j_1; _DiscussionPostDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).a7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.n7j_1; _ContentEntryVersionDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).b7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.o7j_1; _OfflineItemDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).c7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.p7j_1; _EnrolmentRequestDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).d7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.q7j_1; _CoursePermissionDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).e7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.r7j_1; _SystemPermissionDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).f7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.s7j_1; _CourseBlockPictureDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).g7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.t7j_1; _ContentEntryPicture2Dao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).h7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.u7j_1; _StudentResultDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).i7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.v7j_1; _VerbLangMapEntryDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).j7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.w7j_1; _GroupMemberActorJoinDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).k7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.x7j_1; _ActivityLangMapEntryDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).l7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.y7j_1; _ActivityInteractionDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).m7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.z7j_1; _ActivityExtensionDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).n7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.a7k_1; _StatementContextActivityJoinDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).o7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.b7k_1; _XapiSessionEntityDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).p7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.c7k_1; _StatementEntityJsonDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).q7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.d7k_1; _StateEntityDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).r7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.e7k_1; _StateDeleteCommandDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_DoorWrapper).z5j = function () { return this.q7h_1; }; protoOf(UmAppDatabase_DoorWrapper).q62 = function () { return this.f7k_1; }; protoOf(UmAppDatabase_DoorWrapper).z5m = function () { return this.q7h_1.z5m(); }; protoOf(UmAppDatabase_DoorWrapper).w72 = function () { return this.q7h_1.w72(); }; protoOf(UmAppDatabase_DoorWrapper).s7e = function () { return this.g7k(); }; protoOf(UmAppDatabase_DoorWrapper).t7e = function () { return this.h7k(); }; protoOf(UmAppDatabase_DoorWrapper).u7e = function () { return this.i7k(); }; protoOf(UmAppDatabase_DoorWrapper).v7e = function () { return this.j7k(); }; protoOf(UmAppDatabase_DoorWrapper).w7e = function () { return this.k7k(); }; protoOf(UmAppDatabase_DoorWrapper).x7e = function () { return this.l7k(); }; protoOf(UmAppDatabase_DoorWrapper).y7e = function () { return this.m7k(); }; protoOf(UmAppDatabase_DoorWrapper).z7e = function () { return this.n7k(); }; protoOf(UmAppDatabase_DoorWrapper).a7f = function () { return this.o7k(); }; protoOf(UmAppDatabase_DoorWrapper).b7f = function () { return this.p7k(); }; protoOf(UmAppDatabase_DoorWrapper).c7f = function () { return this.q7k(); }; protoOf(UmAppDatabase_DoorWrapper).d7f = function () { return this.r7k(); }; protoOf(UmAppDatabase_DoorWrapper).e7f = function () { return this.s7k(); }; protoOf(UmAppDatabase_DoorWrapper).f7f = function () { return this.t7k(); }; protoOf(UmAppDatabase_DoorWrapper).g7f = function () { return this.u7k(); }; protoOf(UmAppDatabase_DoorWrapper).h7f = function () { return this.v7k(); }; protoOf(UmAppDatabase_DoorWrapper).i7f = function () { return this.w7k(); }; protoOf(UmAppDatabase_DoorWrapper).j7f = function () { return this.x7k(); }; protoOf(UmAppDatabase_DoorWrapper).k7f = function () { return this.y7k(); }; protoOf(UmAppDatabase_DoorWrapper).l7f = function () { return this.z7k(); }; protoOf(UmAppDatabase_DoorWrapper).m7f = function () { return this.a7l(); }; protoOf(UmAppDatabase_DoorWrapper).n7f = function () { return this.b7l(); }; protoOf(UmAppDatabase_DoorWrapper).o7f = function () { return this.c7l(); }; protoOf(UmAppDatabase_DoorWrapper).p7f = function () { return this.d7l(); }; protoOf(UmAppDatabase_DoorWrapper).q7f = function () { return this.e7l(); }; protoOf(UmAppDatabase_DoorWrapper).r7f = function () { return this.f7l(); }; protoOf(UmAppDatabase_DoorWrapper).s7f = function () { return this.g7l(); }; protoOf(UmAppDatabase_DoorWrapper).t7f = function () { return this.h7l(); }; protoOf(UmAppDatabase_DoorWrapper).u7f = function () { return this.i7l(); }; protoOf(UmAppDatabase_DoorWrapper).v7f = function () { return this.j7l(); }; protoOf(UmAppDatabase_DoorWrapper).w7f = function () { return this.k7l(); }; protoOf(UmAppDatabase_DoorWrapper).x7f = function () { return this.l7l(); }; protoOf(UmAppDatabase_DoorWrapper).y7f = function () { return this.m7l(); }; protoOf(UmAppDatabase_DoorWrapper).z7f = function () { return this.n7l(); }; protoOf(UmAppDatabase_DoorWrapper).a7g = function () { return this.o7l(); }; protoOf(UmAppDatabase_DoorWrapper).b7g = function () { return this.p7l(); }; protoOf(UmAppDatabase_DoorWrapper).c7g = function () { return this.q7l(); }; protoOf(UmAppDatabase_DoorWrapper).d7g = function () { return this.r7l(); }; protoOf(UmAppDatabase_DoorWrapper).e7g = function () { return this.s7l(); }; protoOf(UmAppDatabase_DoorWrapper).f7g = function () { return this.t7l(); }; protoOf(UmAppDatabase_DoorWrapper).g7g = function () { return this.u7l(); }; protoOf(UmAppDatabase_DoorWrapper).h7g = function () { return this.q7h_1.h7g(); }; protoOf(UmAppDatabase_DoorWrapper).i7g = function () { return this.v7l(); }; protoOf(UmAppDatabase_DoorWrapper).j7g = function () { return this.w7l(); }; protoOf(UmAppDatabase_DoorWrapper).k7g = function () { return this.x7l(); }; protoOf(UmAppDatabase_DoorWrapper).l7g = function () { return this.y7l(); }; protoOf(UmAppDatabase_DoorWrapper).m7g = function () { return this.z7l(); }; protoOf(UmAppDatabase_DoorWrapper).n7g = function () { return this.a7m(); }; protoOf(UmAppDatabase_DoorWrapper).o7g = function () { return this.q7h_1.o7g(); }; protoOf(UmAppDatabase_DoorWrapper).p7g = function () { return this.q7h_1.p7g(); }; protoOf(UmAppDatabase_DoorWrapper).q7g = function () { return this.b7m(); }; protoOf(UmAppDatabase_DoorWrapper).r7g = function () { return this.q7h_1.r7g(); }; protoOf(UmAppDatabase_DoorWrapper).s7g = function () { return this.c7m(); }; protoOf(UmAppDatabase_DoorWrapper).t7g = function () { return this.d7m(); }; protoOf(UmAppDatabase_DoorWrapper).u7g = function () { return this.e7m(); }; protoOf(UmAppDatabase_DoorWrapper).v7g = function () { return this.f7m(); }; protoOf(UmAppDatabase_DoorWrapper).w7g = function () { return this.g7m(); }; protoOf(UmAppDatabase_DoorWrapper).x7g = function () { return this.h7m(); }; protoOf(UmAppDatabase_DoorWrapper).y7g = function () { return this.i7m(); }; protoOf(UmAppDatabase_DoorWrapper).z7g = function () { return this.j7m(); }; protoOf(UmAppDatabase_DoorWrapper).a7h = function () { return this.k7m(); }; protoOf(UmAppDatabase_DoorWrapper).b7h = function () { return this.l7m(); }; protoOf(UmAppDatabase_DoorWrapper).c7h = function () { return this.m7m(); }; protoOf(UmAppDatabase_DoorWrapper).d7h = function () { return this.n7m(); }; protoOf(UmAppDatabase_DoorWrapper).e7h = function () { return this.o7m(); }; protoOf(UmAppDatabase_DoorWrapper).f7h = function () { return this.p7m(); }; protoOf(UmAppDatabase_DoorWrapper).g7h = function () { return this.q7m(); }; protoOf(UmAppDatabase_DoorWrapper).h7h = function () { return this.r7m(); }; protoOf(UmAppDatabase_DoorWrapper).i7h = function () { return this.q7h_1.i7h(); }; function _PersonDao$factory() { return getPropertyCallableRef('_PersonDao', 1, KProperty1, function (receiver) { return receiver.g7k(); }, null); } function _ClazzDao$factory() { return getPropertyCallableRef('_ClazzDao', 1, KProperty1, function (receiver) { return receiver.h7k(); }, null); } function _CourseBlockDao$factory() { return getPropertyCallableRef('_CourseBlockDao', 1, KProperty1, function (receiver) { return receiver.i7k(); }, null); } function _CourseTerminologyDao$factory() { return getPropertyCallableRef('_CourseTerminologyDao', 1, KProperty1, function (receiver) { return receiver.j7k(); }, null); } function _CourseGroupSetDao$factory() { return getPropertyCallableRef('_CourseGroupSetDao', 1, KProperty1, function (receiver) { return receiver.k7k(); }, null); } function _CourseGroupMemberDao$factory() { return getPropertyCallableRef('_CourseGroupMemberDao', 1, KProperty1, function (receiver) { return receiver.l7k(); }, null); } function _ClazzEnrolmentDao$factory() { return getPropertyCallableRef('_ClazzEnrolmentDao', 1, KProperty1, function (receiver) { return receiver.m7k(); }, null); } function _LeavingReasonDao$factory() { return getPropertyCallableRef('_LeavingReasonDao', 1, KProperty1, function (receiver) { return receiver.n7k(); }, null); } function _ContentEntryDao$factory() { return getPropertyCallableRef('_ContentEntryDao', 1, KProperty1, function (receiver) { return receiver.o7k(); }, null); } function _ContentEntryContentCategoryJoinDao$factory() { return getPropertyCallableRef('_ContentEntryContentCategoryJoinDao', 1, KProperty1, function (receiver) { return receiver.p7k(); }, null); } function _ContentEntryParentChildJoinDao$factory() { return getPropertyCallableRef('_ContentEntryParentChildJoinDao', 1, KProperty1, function (receiver) { return receiver.q7k(); }, null); } function _ContentEntryRelatedEntryJoinDao$factory() { return getPropertyCallableRef('_ContentEntryRelatedEntryJoinDao', 1, KProperty1, function (receiver) { return receiver.r7k(); }, null); } function _ContentCategorySchemaDao$factory() { return getPropertyCallableRef('_ContentCategorySchemaDao', 1, KProperty1, function (receiver) { return receiver.s7k(); }, null); } function _ContentCategoryDao$factory() { return getPropertyCallableRef('_ContentCategoryDao', 1, KProperty1, function (receiver) { return receiver.t7k(); }, null); } function _LanguageDao$factory() { return getPropertyCallableRef('_LanguageDao', 1, KProperty1, function (receiver) { return receiver.u7k(); }, null); } function _LanguageVariantDao$factory() { return getPropertyCallableRef('_LanguageVariantDao', 1, KProperty1, function (receiver) { return receiver.v7k(); }, null); } function _PersonGroupDao$factory() { return getPropertyCallableRef('_PersonGroupDao', 1, KProperty1, function (receiver) { return receiver.w7k(); }, null); } function _PersonGroupMemberDao$factory() { return getPropertyCallableRef('_PersonGroupMemberDao', 1, KProperty1, function (receiver) { return receiver.x7k(); }, null); } function _PersonPictureDao$factory() { return getPropertyCallableRef('_PersonPictureDao', 1, KProperty1, function (receiver) { return receiver.y7k(); }, null); } function _VerbDao$factory() { return getPropertyCallableRef('_VerbDao', 1, KProperty1, function (receiver) { return receiver.z7k(); }, null); } function _ActivityEntityDao$factory() { return getPropertyCallableRef('_ActivityEntityDao', 1, KProperty1, function (receiver) { return receiver.a7l(); }, null); } function _ReportDao$factory() { return getPropertyCallableRef('_ReportDao', 1, KProperty1, function (receiver) { return receiver.b7l(); }, null); } function _StatementDao$factory() { return getPropertyCallableRef('_StatementDao', 1, KProperty1, function (receiver) { return receiver.c7l(); }, null); } function _ActorDao$factory() { return getPropertyCallableRef('_ActorDao', 1, KProperty1, function (receiver) { return receiver.d7l(); }, null); } function _ClazzLogAttendanceRecordDao$factory() { return getPropertyCallableRef('_ClazzLogAttendanceRecordDao', 1, KProperty1, function (receiver) { return receiver.e7l(); }, null); } function _ClazzLogDao$factory() { return getPropertyCallableRef('_ClazzLogDao', 1, KProperty1, function (receiver) { return receiver.f7l(); }, null); } function _ScheduleDao$factory() { return getPropertyCallableRef('_ScheduleDao', 1, KProperty1, function (receiver) { return receiver.g7l(); }, null); } function _HolidayCalendarDao$factory() { return getPropertyCallableRef('_HolidayCalendarDao', 1, KProperty1, function (receiver) { return receiver.h7l(); }, null); } function _HolidayDao$factory() { return getPropertyCallableRef('_HolidayDao', 1, KProperty1, function (receiver) { return receiver.i7l(); }, null); } function _ClazzAssignmentDao$factory() { return getPropertyCallableRef('_ClazzAssignmentDao', 1, KProperty1, function (receiver) { return receiver.j7l(); }, null); } function _CourseAssignmentSubmissionDao$factory() { return getPropertyCallableRef('_CourseAssignmentSubmissionDao', 1, KProperty1, function (receiver) { return receiver.k7l(); }, null); } function _CourseAssignmentSubmissionFileDao$factory() { return getPropertyCallableRef('_CourseAssignmentSubmissionFileDao', 1, KProperty1, function (receiver) { return receiver.l7l(); }, null); } function _CourseAssignmentMarkDao$factory() { return getPropertyCallableRef('_CourseAssignmentMarkDao', 1, KProperty1, function (receiver) { return receiver.m7l(); }, null); } function _CommentsDao$factory() { return getPropertyCallableRef('_CommentsDao', 1, KProperty1, function (receiver) { return receiver.n7l(); }, null); } function _SiteDao$factory() { return getPropertyCallableRef('_SiteDao', 1, KProperty1, function (receiver) { return receiver.o7l(); }, null); } function _SiteTermsDao$factory() { return getPropertyCallableRef('_SiteTermsDao', 1, KProperty1, function (receiver) { return receiver.p7l(); }, null); } function _PersonParentJoinDao$factory() { return getPropertyCallableRef('_PersonParentJoinDao', 1, KProperty1, function (receiver) { return receiver.q7l(); }, null); } function _ScopedGrantDao$factory() { return getPropertyCallableRef('_ScopedGrantDao', 1, KProperty1, function (receiver) { return receiver.r7l(); }, null); } function _ErrorReportDao$factory() { return getPropertyCallableRef('_ErrorReportDao', 1, KProperty1, function (receiver) { return receiver.s7l(); }, null); } function _PersonAuth2Dao$factory() { return getPropertyCallableRef('_PersonAuth2Dao', 1, KProperty1, function (receiver) { return receiver.t7l(); }, null); } function _UserSessionDao$factory() { return getPropertyCallableRef('_UserSessionDao', 1, KProperty1, function (receiver) { return receiver.u7l(); }, null); } function _CoursePictureDao$factory() { return getPropertyCallableRef('_CoursePictureDao', 1, KProperty1, function (receiver) { return receiver.v7l(); }, null); } function _ContentEntryPictureDao$factory() { return getPropertyCallableRef('_ContentEntryPictureDao', 1, KProperty1, function (receiver) { return receiver.w7l(); }, null); } function _MessageDao$factory() { return getPropertyCallableRef('_MessageDao', 1, KProperty1, function (receiver) { return receiver.x7l(); }, null); } function _PeerReviewerAllocationDao$factory() { return getPropertyCallableRef('_PeerReviewerAllocationDao', 1, KProperty1, function (receiver) { return receiver.y7l(); }, null); } function _DiscussionPostDao$factory() { return getPropertyCallableRef('_DiscussionPostDao', 1, KProperty1, function (receiver) { return receiver.z7l(); }, null); } function _ContentEntryVersionDao$factory() { return getPropertyCallableRef('_ContentEntryVersionDao', 1, KProperty1, function (receiver) { return receiver.a7m(); }, null); } function _OfflineItemDao$factory() { return getPropertyCallableRef('_OfflineItemDao', 1, KProperty1, function (receiver) { return receiver.b7m(); }, null); } function _EnrolmentRequestDao$factory() { return getPropertyCallableRef('_EnrolmentRequestDao', 1, KProperty1, function (receiver) { return receiver.c7m(); }, null); } function _CoursePermissionDao$factory() { return getPropertyCallableRef('_CoursePermissionDao', 1, KProperty1, function (receiver) { return receiver.d7m(); }, null); } function _SystemPermissionDao$factory() { return getPropertyCallableRef('_SystemPermissionDao', 1, KProperty1, function (receiver) { return receiver.e7m(); }, null); } function _CourseBlockPictureDao$factory() { return getPropertyCallableRef('_CourseBlockPictureDao', 1, KProperty1, function (receiver) { return receiver.f7m(); }, null); } function _ContentEntryPicture2Dao$factory() { return getPropertyCallableRef('_ContentEntryPicture2Dao', 1, KProperty1, function (receiver) { return receiver.g7m(); }, null); } function _StudentResultDao$factory() { return getPropertyCallableRef('_StudentResultDao', 1, KProperty1, function (receiver) { return receiver.h7m(); }, null); } function _VerbLangMapEntryDao$factory() { return getPropertyCallableRef('_VerbLangMapEntryDao', 1, KProperty1, function (receiver) { return receiver.i7m(); }, null); } function _GroupMemberActorJoinDao$factory() { return getPropertyCallableRef('_GroupMemberActorJoinDao', 1, KProperty1, function (receiver) { return receiver.j7m(); }, null); } function _ActivityLangMapEntryDao$factory() { return getPropertyCallableRef('_ActivityLangMapEntryDao', 1, KProperty1, function (receiver) { return receiver.k7m(); }, null); } function _ActivityInteractionDao$factory() { return getPropertyCallableRef('_ActivityInteractionDao', 1, KProperty1, function (receiver) { return receiver.l7m(); }, null); } function _ActivityExtensionDao$factory() { return getPropertyCallableRef('_ActivityExtensionDao', 1, KProperty1, function (receiver) { return receiver.m7m(); }, null); } function _StatementContextActivityJoinDao$factory() { return getPropertyCallableRef('_StatementContextActivityJoinDao', 1, KProperty1, function (receiver) { return receiver.n7m(); }, null); } function _XapiSessionEntityDao$factory() { return getPropertyCallableRef('_XapiSessionEntityDao', 1, KProperty1, function (receiver) { return receiver.o7m(); }, null); } function _StatementEntityJsonDao$factory() { return getPropertyCallableRef('_StatementEntityJsonDao', 1, KProperty1, function (receiver) { return receiver.p7m(); }, null); } function _StateEntityDao$factory() { return getPropertyCallableRef('_StateEntityDao', 1, KProperty1, function (receiver) { return receiver.q7m(); }, null); } function _StateDeleteCommandDao$factory() { return getPropertyCallableRef('_StateDeleteCommandDao', 1, KProperty1, function (receiver) { return receiver.r7m(); }, null); } function UmAppDatabase_JdbcImpl$realNodeIdAuthCache$delegate$lambda(this$0) { return function () { var tmp; if (equals(this$0, get_rootDatabase(this$0))) { var nodeIdAuthCache = new NodeIdAuthCache(this$0); tmp = nodeIdAuthCache; } else { tmp = get_nodeIdAuthCache(get_rootDatabase(this$0)); } return tmp; }; } function UmAppDatabase_JdbcImpl$realPrimaryKeyManager$delegate$lambda() { return new DoorPrimaryKeyManager(doorDatabaseMetadata(getKClass(UmAppDatabase)).d66().o2()); } function UmAppDatabase_JdbcImpl$_PersonDao$delegate$lambda(this$0) { return function () { return new PersonDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ClazzDao$delegate$lambda(this$0) { return function () { return new ClazzDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CourseBlockDao$delegate$lambda(this$0) { return function () { return new CourseBlockDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CourseTerminologyDao$delegate$lambda(this$0) { return function () { return new CourseTerminologyDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CourseGroupSetDao$delegate$lambda(this$0) { return function () { return new CourseGroupSetDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CourseGroupMemberDao$delegate$lambda(this$0) { return function () { return new CourseGroupMemberDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ClazzEnrolmentDao$delegate$lambda(this$0) { return function () { return new ClazzEnrolmentDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_LeavingReasonDao$delegate$lambda(this$0) { return function () { return new LeavingReasonDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ContentEntryDao$delegate$lambda(this$0) { return function () { return new ContentEntryDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ContentEntryContentCategoryJoinDao$delegate$lambda(this$0) { return function () { return new ContentEntryContentCategoryJoinDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ContentEntryParentChildJoinDao$delegate$lambda(this$0) { return function () { return new ContentEntryParentChildJoinDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this$0) { return function () { return new ContentEntryRelatedEntryJoinDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ContentCategorySchemaDao$delegate$lambda(this$0) { return function () { return new ContentCategorySchemaDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ContentCategoryDao$delegate$lambda(this$0) { return function () { return new ContentCategoryDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_LanguageDao$delegate$lambda(this$0) { return function () { return new LanguageDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_LanguageVariantDao$delegate$lambda(this$0) { return function () { return new LanguageVariantDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_PersonAuthDao$delegate$lambda(this$0) { return function () { return new PersonAuthDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_PersonGroupDao$delegate$lambda(this$0) { return function () { return new PersonGroupDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_PersonGroupMemberDao$delegate$lambda(this$0) { return function () { return new PersonGroupMemberDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_PersonPictureDao$delegate$lambda(this$0) { return function () { return new PersonPictureDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_VerbDao$delegate$lambda(this$0) { return function () { return new VerbDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ActivityEntityDao$delegate$lambda(this$0) { return function () { return new ActivityEntityDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ReportDao$delegate$lambda(this$0) { return function () { return new ReportDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_StatementDao$delegate$lambda(this$0) { return function () { return new StatementDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ActorDao$delegate$lambda(this$0) { return function () { return new ActorDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ClazzLogAttendanceRecordDao$delegate$lambda(this$0) { return function () { return new ClazzLogAttendanceRecordDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ClazzLogDao$delegate$lambda(this$0) { return function () { return new ClazzLogDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ScheduleDao$delegate$lambda(this$0) { return function () { return new ScheduleDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_HolidayCalendarDao$delegate$lambda(this$0) { return function () { return new HolidayCalendarDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_HolidayDao$delegate$lambda(this$0) { return function () { return new HolidayDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ClazzAssignmentDao$delegate$lambda(this$0) { return function () { return new ClazzAssignmentDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CourseAssignmentSubmissionDao$delegate$lambda(this$0) { return function () { return new CourseAssignmentSubmissionDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CourseAssignmentSubmissionFileDao$delegate$lambda(this$0) { return function () { return new CourseAssignmentSubmissionFileDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CourseAssignmentMarkDao$delegate$lambda(this$0) { return function () { return new CourseAssignmentMarkDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CommentsDao$delegate$lambda(this$0) { return function () { return new CommentsDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_SyncNodeDao$delegate$lambda(this$0) { return function () { return new SyncNodeDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_SiteDao$delegate$lambda(this$0) { return function () { return new SiteDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_SiteTermsDao$delegate$lambda(this$0) { return function () { return new SiteTermsDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_PersonParentJoinDao$delegate$lambda(this$0) { return function () { return new PersonParentJoinDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ScopedGrantDao$delegate$lambda(this$0) { return function () { return new ScopedGrantDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ErrorReportDao$delegate$lambda(this$0) { return function () { return new ErrorReportDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_PersonAuth2Dao$delegate$lambda(this$0) { return function () { return new PersonAuth2Dao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_UserSessionDao$delegate$lambda(this$0) { return function () { return new UserSessionDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ContentEntryImportJobDao$delegate$lambda(this$0) { return function () { return new ContentEntryImportJobDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CoursePictureDao$delegate$lambda(this$0) { return function () { return new CoursePictureDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ContentEntryPictureDao$delegate$lambda(this$0) { return function () { return new ContentEntryPictureDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_MessageDao$delegate$lambda(this$0) { return function () { return new MessageDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_PeerReviewerAllocationDao$delegate$lambda(this$0) { return function () { return new PeerReviewerAllocationDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_DiscussionPostDao$delegate$lambda(this$0) { return function () { return new DiscussionPostDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ExternalAppPermissionDao$delegate$lambda(this$0) { return function () { return new ExternalAppPermissionDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ContentEntryVersionDao$delegate$lambda(this$0) { return function () { return new ContentEntryVersionDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_OutgoingReplicationDao$delegate$lambda(this$0) { return function () { return new OutgoingReplicationDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_TransferJobDao$delegate$lambda(this$0) { return function () { return new TransferJobDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_TransferJobItemDao$delegate$lambda(this$0) { return function () { return new TransferJobItemDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CacheLockJoinDao$delegate$lambda(this$0) { return function () { return new CacheLockJoinDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_OfflineItemDao$delegate$lambda(this$0) { return function () { return new OfflineItemDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_DeletedItemDao$delegate$lambda(this$0) { return function () { return new DeletedItemDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_EnrolmentRequestDao$delegate$lambda(this$0) { return function () { return new EnrolmentRequestDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CoursePermissionDao$delegate$lambda(this$0) { return function () { return new CoursePermissionDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_SystemPermissionDao$delegate$lambda(this$0) { return function () { return new SystemPermissionDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CourseBlockPictureDao$delegate$lambda(this$0) { return function () { return new CourseBlockPictureDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ContentEntryPicture2Dao$delegate$lambda(this$0) { return function () { return new ContentEntryPicture2Dao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_TransferJobErrorDao$delegate$lambda(this$0) { return function () { return new TransferJobErrorDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_StudentResultDao$delegate$lambda(this$0) { return function () { return new StudentResultDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_VerbLangMapEntryDao$delegate$lambda(this$0) { return function () { return new VerbLangMapEntryDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_GroupMemberActorJoinDao$delegate$lambda(this$0) { return function () { return new GroupMemberActorJoinDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ActivityLangMapEntryDao$delegate$lambda(this$0) { return function () { return new ActivityLangMapEntryDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ActivityInteractionDao$delegate$lambda(this$0) { return function () { return new ActivityInteractionDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ActivityExtensionDao$delegate$lambda(this$0) { return function () { return new ActivityExtensionDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_StatementContextActivityJoinDao$delegate$lambda(this$0) { return function () { return new StatementContextActivityJoinDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_XapiSessionEntityDao$delegate$lambda(this$0) { return function () { return new XapiSessionEntityDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_StatementEntityJsonDao$delegate$lambda(this$0) { return function () { return new StatementEntityJsonDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_StateEntityDao$delegate$lambda(this$0) { return function () { return new StateEntityDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_StateDeleteCommandDao$delegate$lambda(this$0) { return function () { return new StateDeleteCommandDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ReportQueryResultDao$delegate$lambda(this$0) { return function () { return new ReportQueryResultDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl(doorJdbcSourceDatabase, dataSource, dbUrl, dbName, jdbcQueryTimeout, jdbcDbType, logger) { UmAppDatabase.call(this); this.s7m_1 = doorJdbcSourceDatabase; this.t7m_1 = dataSource; this.u7m_1 = dbName; this.v7m_1 = jdbcQueryTimeout; var tmp = this; var tmp_0 = doorDatabaseMetadata(getKClassFromExpression(this)).q66(); // Inline function 'kotlin.collections.toTypedArray' call var this_0 = doorDatabaseMetadata(getKClassFromExpression(this)).q66(); var tmp$ret$0 = copyToArray(this_0); tmp.w7m_1 = new RoomDatabaseJdbcImplHelper(this.t7m_1, this, dbUrl, this.u7m_1, logger, tmp_0, new InvalidationTracker(tmp$ret$0.slice()), jdbcDbType); var tmp_1 = this; tmp_1.x7m_1 = lazy_0(UmAppDatabase_JdbcImpl$realNodeIdAuthCache$delegate$lambda(this)); var tmp_2 = this; tmp_2.y7m_1 = lazy_0(UmAppDatabase_JdbcImpl$realPrimaryKeyManager$delegate$lambda); var tmp_3 = this; tmp_3.z7m_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonDao$delegate$lambda(this)); var tmp_4 = this; tmp_4.a7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ClazzDao$delegate$lambda(this)); var tmp_5 = this; tmp_5.b7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseBlockDao$delegate$lambda(this)); var tmp_6 = this; tmp_6.c7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseTerminologyDao$delegate$lambda(this)); var tmp_7 = this; tmp_7.d7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseGroupSetDao$delegate$lambda(this)); var tmp_8 = this; tmp_8.e7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseGroupMemberDao$delegate$lambda(this)); var tmp_9 = this; tmp_9.f7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ClazzEnrolmentDao$delegate$lambda(this)); var tmp_10 = this; tmp_10.g7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_LeavingReasonDao$delegate$lambda(this)); var tmp_11 = this; tmp_11.h7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryDao$delegate$lambda(this)); var tmp_12 = this; tmp_12.i7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryContentCategoryJoinDao$delegate$lambda(this)); var tmp_13 = this; tmp_13.j7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryParentChildJoinDao$delegate$lambda(this)); var tmp_14 = this; tmp_14.k7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this)); var tmp_15 = this; tmp_15.l7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentCategorySchemaDao$delegate$lambda(this)); var tmp_16 = this; tmp_16.m7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentCategoryDao$delegate$lambda(this)); var tmp_17 = this; tmp_17.n7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_LanguageDao$delegate$lambda(this)); var tmp_18 = this; tmp_18.o7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_LanguageVariantDao$delegate$lambda(this)); var tmp_19 = this; tmp_19.p7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonAuthDao$delegate$lambda(this)); var tmp_20 = this; tmp_20.q7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonGroupDao$delegate$lambda(this)); var tmp_21 = this; tmp_21.r7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonGroupMemberDao$delegate$lambda(this)); var tmp_22 = this; tmp_22.s7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonPictureDao$delegate$lambda(this)); var tmp_23 = this; tmp_23.t7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_VerbDao$delegate$lambda(this)); var tmp_24 = this; tmp_24.u7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ActivityEntityDao$delegate$lambda(this)); var tmp_25 = this; tmp_25.v7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ReportDao$delegate$lambda(this)); var tmp_26 = this; tmp_26.w7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_StatementDao$delegate$lambda(this)); var tmp_27 = this; tmp_27.x7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ActorDao$delegate$lambda(this)); var tmp_28 = this; tmp_28.y7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ClazzLogAttendanceRecordDao$delegate$lambda(this)); var tmp_29 = this; tmp_29.z7n_1 = lazy_0(UmAppDatabase_JdbcImpl$_ClazzLogDao$delegate$lambda(this)); var tmp_30 = this; tmp_30.a7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_ScheduleDao$delegate$lambda(this)); var tmp_31 = this; tmp_31.b7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_HolidayCalendarDao$delegate$lambda(this)); var tmp_32 = this; tmp_32.c7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_HolidayDao$delegate$lambda(this)); var tmp_33 = this; tmp_33.d7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_ClazzAssignmentDao$delegate$lambda(this)); var tmp_34 = this; tmp_34.e7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseAssignmentSubmissionDao$delegate$lambda(this)); var tmp_35 = this; tmp_35.f7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseAssignmentSubmissionFileDao$delegate$lambda(this)); var tmp_36 = this; tmp_36.g7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseAssignmentMarkDao$delegate$lambda(this)); var tmp_37 = this; tmp_37.h7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_CommentsDao$delegate$lambda(this)); var tmp_38 = this; tmp_38.i7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_SyncNodeDao$delegate$lambda(this)); var tmp_39 = this; tmp_39.j7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_SiteDao$delegate$lambda(this)); var tmp_40 = this; tmp_40.k7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_SiteTermsDao$delegate$lambda(this)); var tmp_41 = this; tmp_41.l7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonParentJoinDao$delegate$lambda(this)); var tmp_42 = this; tmp_42.m7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_ScopedGrantDao$delegate$lambda(this)); var tmp_43 = this; tmp_43.n7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_ErrorReportDao$delegate$lambda(this)); var tmp_44 = this; tmp_44.o7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonAuth2Dao$delegate$lambda(this)); var tmp_45 = this; tmp_45.p7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_UserSessionDao$delegate$lambda(this)); var tmp_46 = this; tmp_46.q7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryImportJobDao$delegate$lambda(this)); var tmp_47 = this; tmp_47.r7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_CoursePictureDao$delegate$lambda(this)); var tmp_48 = this; tmp_48.s7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryPictureDao$delegate$lambda(this)); var tmp_49 = this; tmp_49.t7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_MessageDao$delegate$lambda(this)); var tmp_50 = this; tmp_50.u7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_PeerReviewerAllocationDao$delegate$lambda(this)); var tmp_51 = this; tmp_51.v7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_DiscussionPostDao$delegate$lambda(this)); var tmp_52 = this; tmp_52.w7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_ExternalAppPermissionDao$delegate$lambda(this)); var tmp_53 = this; tmp_53.x7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryVersionDao$delegate$lambda(this)); var tmp_54 = this; tmp_54.y7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_OutgoingReplicationDao$delegate$lambda(this)); var tmp_55 = this; tmp_55.z7o_1 = lazy_0(UmAppDatabase_JdbcImpl$_TransferJobDao$delegate$lambda(this)); var tmp_56 = this; tmp_56.a7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_TransferJobItemDao$delegate$lambda(this)); var tmp_57 = this; tmp_57.b7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_CacheLockJoinDao$delegate$lambda(this)); var tmp_58 = this; tmp_58.c7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_OfflineItemDao$delegate$lambda(this)); var tmp_59 = this; tmp_59.d7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_DeletedItemDao$delegate$lambda(this)); var tmp_60 = this; tmp_60.e7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_EnrolmentRequestDao$delegate$lambda(this)); var tmp_61 = this; tmp_61.f7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_CoursePermissionDao$delegate$lambda(this)); var tmp_62 = this; tmp_62.g7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_SystemPermissionDao$delegate$lambda(this)); var tmp_63 = this; tmp_63.h7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseBlockPictureDao$delegate$lambda(this)); var tmp_64 = this; tmp_64.i7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryPicture2Dao$delegate$lambda(this)); var tmp_65 = this; tmp_65.j7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_TransferJobErrorDao$delegate$lambda(this)); var tmp_66 = this; tmp_66.k7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_StudentResultDao$delegate$lambda(this)); var tmp_67 = this; tmp_67.l7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_VerbLangMapEntryDao$delegate$lambda(this)); var tmp_68 = this; tmp_68.m7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_GroupMemberActorJoinDao$delegate$lambda(this)); var tmp_69 = this; tmp_69.n7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_ActivityLangMapEntryDao$delegate$lambda(this)); var tmp_70 = this; tmp_70.o7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_ActivityInteractionDao$delegate$lambda(this)); var tmp_71 = this; tmp_71.p7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_ActivityExtensionDao$delegate$lambda(this)); var tmp_72 = this; tmp_72.q7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_StatementContextActivityJoinDao$delegate$lambda(this)); var tmp_73 = this; tmp_73.r7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_XapiSessionEntityDao$delegate$lambda(this)); var tmp_74 = this; tmp_74.s7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_StatementEntityJsonDao$delegate$lambda(this)); var tmp_75 = this; tmp_75.t7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_StateEntityDao$delegate$lambda(this)); var tmp_76 = this; tmp_76.u7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_StateDeleteCommandDao$delegate$lambda(this)); var tmp_77 = this; tmp_77.v7p_1 = lazy_0(UmAppDatabase_JdbcImpl$_ReportQueryResultDao$delegate$lambda(this)); } protoOf(UmAppDatabase_JdbcImpl).f5m = function () { return this.v7m_1; }; protoOf(UmAppDatabase_JdbcImpl).q73 = function () { return 207; }; protoOf(UmAppDatabase_JdbcImpl).d5l = function () { return this.w7m_1; }; protoOf(UmAppDatabase_JdbcImpl).o5k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.x7m_1; realNodeIdAuthCache$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).y5j = function () { // Inline function 'kotlin.getValue' call var this_0 = this.y7m_1; realPrimaryKeyManager$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).z5m = function () { return this.w7m_1.u5k_1; }; protoOf(UmAppDatabase_JdbcImpl).g7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.z7m_1; _PersonDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).h7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.a7n_1; _ClazzDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).i7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.b7n_1; _CourseBlockDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).j7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.c7n_1; _CourseTerminologyDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).k7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.d7n_1; _CourseGroupSetDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).l7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.e7n_1; _CourseGroupMemberDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).m7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.f7n_1; _ClazzEnrolmentDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).n7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.g7n_1; _LeavingReasonDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).o7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.h7n_1; _ContentEntryDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).p7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.i7n_1; _ContentEntryContentCategoryJoinDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).q7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.j7n_1; _ContentEntryParentChildJoinDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).r7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.k7n_1; _ContentEntryRelatedEntryJoinDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).s7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.l7n_1; _ContentCategorySchemaDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).t7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.m7n_1; _ContentCategoryDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).u7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.n7n_1; _LanguageDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).v7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.o7n_1; _LanguageVariantDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).w7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.q7n_1; _PersonGroupDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).x7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.r7n_1; _PersonGroupMemberDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).y7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.s7n_1; _PersonPictureDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).z7k = function () { // Inline function 'kotlin.getValue' call var this_0 = this.t7n_1; _VerbDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).a7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.u7n_1; _ActivityEntityDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).b7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.v7n_1; _ReportDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).c7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.w7n_1; _StatementDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).d7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.x7n_1; _ActorDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).e7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.y7n_1; _ClazzLogAttendanceRecordDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).f7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.z7n_1; _ClazzLogDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).g7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.a7o_1; _ScheduleDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).h7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.b7o_1; _HolidayCalendarDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).i7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.c7o_1; _HolidayDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).j7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.d7o_1; _ClazzAssignmentDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).k7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.e7o_1; _CourseAssignmentSubmissionDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).l7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.f7o_1; _CourseAssignmentSubmissionFileDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).m7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.g7o_1; _CourseAssignmentMarkDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).n7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.h7o_1; _CommentsDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).o7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.j7o_1; _SiteDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).p7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.k7o_1; _SiteTermsDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).q7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.l7o_1; _PersonParentJoinDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).r7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.m7o_1; _ScopedGrantDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).s7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.n7o_1; _ErrorReportDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).t7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.o7o_1; _PersonAuth2Dao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).u7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.p7o_1; _UserSessionDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).w7p = function () { // Inline function 'kotlin.getValue' call var this_0 = this.q7o_1; _ContentEntryImportJobDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).v7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.r7o_1; _CoursePictureDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).w7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.s7o_1; _ContentEntryPictureDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).x7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.t7o_1; _MessageDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).y7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.u7o_1; _PeerReviewerAllocationDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).z7l = function () { // Inline function 'kotlin.getValue' call var this_0 = this.v7o_1; _DiscussionPostDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).a7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.x7o_1; _ContentEntryVersionDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).x7p = function () { // Inline function 'kotlin.getValue' call var this_0 = this.z7o_1; _TransferJobDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).y7p = function () { // Inline function 'kotlin.getValue' call var this_0 = this.a7p_1; _TransferJobItemDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).b7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.c7p_1; _OfflineItemDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).z7p = function () { // Inline function 'kotlin.getValue' call var this_0 = this.d7p_1; _DeletedItemDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).c7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.e7p_1; _EnrolmentRequestDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).d7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.f7p_1; _CoursePermissionDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).e7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.g7p_1; _SystemPermissionDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).f7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.h7p_1; _CourseBlockPictureDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).g7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.i7p_1; _ContentEntryPicture2Dao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).h7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.k7p_1; _StudentResultDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).i7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.l7p_1; _VerbLangMapEntryDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).j7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.m7p_1; _GroupMemberActorJoinDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).k7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.n7p_1; _ActivityLangMapEntryDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).l7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.o7p_1; _ActivityInteractionDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).m7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.p7p_1; _ActivityExtensionDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).n7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.q7p_1; _StatementContextActivityJoinDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).o7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.r7p_1; _XapiSessionEntityDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).p7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.s7p_1; _StatementEntityJsonDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).q7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.t7p_1; _StateEntityDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).r7m = function () { // Inline function 'kotlin.getValue' call var this_0 = this.u7p_1; _StateDeleteCommandDao$factory_0(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).a7q = function () { // Inline function 'kotlin.getValue' call var this_0 = this.v7p_1; _ReportQueryResultDao$factory(); return this_0.t2(); }; protoOf(UmAppDatabase_JdbcImpl).w72 = function () { var _stmtList = mutableLinkedListOf([]); var tmp0_subject = this.w7m_1.v5k_1; if (tmp0_subject === 1) { // Inline function 'kotlin.collections.plusAssign' call var element = 'CREATE TABLE IF NOT EXISTS _doorwayinfo (dbVersion int primary key, dbHash varchar(255))'; _stmtList.j1(element); // Inline function 'kotlin.collections.plusAssign' call var element_0 = "INSERT INTO _doorwayinfo VALUES (207, '')"; _stmtList.j1(element_0); // Inline function 'kotlin.collections.plusAssign' call var element_1 = 'CREATE TABLE IF NOT EXISTS ClazzLog ( clazzLogClazzUid INTEGER NOT NULL , logDate INTEGER NOT NULL , timeRecorded INTEGER NOT NULL , clazzLogDone INTEGER NOT NULL , cancellationNote TEXT , clazzLogCancelled INTEGER NOT NULL , clazzLogNumPresent INTEGER NOT NULL , clazzLogNumAbsent INTEGER NOT NULL , clazzLogNumPartial INTEGER NOT NULL , clazzLogScheduleUid INTEGER NOT NULL , clazzLogStatusFlag INTEGER NOT NULL , clazzLogMSQN INTEGER NOT NULL , clazzLogLCSN INTEGER NOT NULL , clazzLogLCB INTEGER NOT NULL , clazzLogLastChangedTime INTEGER NOT NULL , clazzLogUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_1); // Inline function 'kotlin.collections.plusAssign' call var element_2 = 'CREATE TABLE IF NOT EXISTS ClazzLogAttendanceRecord ( clazzLogAttendanceRecordClazzLogUid INTEGER NOT NULL , clazzLogAttendanceRecordPersonUid INTEGER NOT NULL , attendanceStatus INTEGER NOT NULL , clazzLogAttendanceRecordMasterChangeSeqNum INTEGER NOT NULL , clazzLogAttendanceRecordLocalChangeSeqNum INTEGER NOT NULL , clazzLogAttendanceRecordLastChangedBy INTEGER NOT NULL , clazzLogAttendanceRecordLastChangedTime INTEGER NOT NULL , clazzLogAttendanceRecordUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_2); // Inline function 'kotlin.collections.plusAssign' call var element_3 = 'CREATE TABLE IF NOT EXISTS Schedule ( sceduleStartTime INTEGER NOT NULL , scheduleEndTime INTEGER NOT NULL , scheduleDay INTEGER NOT NULL , scheduleMonth INTEGER NOT NULL , scheduleFrequency INTEGER NOT NULL , umCalendarUid INTEGER NOT NULL , scheduleClazzUid INTEGER NOT NULL , scheduleMasterChangeSeqNum INTEGER NOT NULL , scheduleLocalChangeSeqNum INTEGER NOT NULL , scheduleLastChangedBy INTEGER NOT NULL , scheduleLastChangedTime INTEGER NOT NULL , scheduleActive INTEGER NOT NULL , scheduleUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_3); // Inline function 'kotlin.collections.plusAssign' call var element_4 = 'CREATE TABLE IF NOT EXISTS HolidayCalendar ( umCalendarName TEXT , umCalendarCategory INTEGER NOT NULL , umCalendarActive INTEGER NOT NULL , umCalendarMasterChangeSeqNum INTEGER NOT NULL , umCalendarLocalChangeSeqNum INTEGER NOT NULL , umCalendarLastChangedBy INTEGER NOT NULL , umCalendarLct INTEGER NOT NULL , umCalendarUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_4); // Inline function 'kotlin.collections.plusAssign' call var element_5 = 'CREATE TABLE IF NOT EXISTS Holiday ( holMasterCsn INTEGER NOT NULL , holLocalCsn INTEGER NOT NULL , holLastModBy INTEGER NOT NULL , holLct INTEGER NOT NULL , holActive INTEGER NOT NULL , holHolidayCalendarUid INTEGER NOT NULL , holStartTime INTEGER NOT NULL , holEndTime INTEGER NOT NULL , holName TEXT , holUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_5); // Inline function 'kotlin.collections.plusAssign' call var element_6 = 'CREATE TABLE IF NOT EXISTS Person ( username TEXT , firstNames TEXT , lastName TEXT , emailAddr TEXT , phoneNum TEXT , gender INTEGER NOT NULL , active INTEGER NOT NULL , dateOfBirth INTEGER NOT NULL , personAddress TEXT , personOrgId TEXT , personGroupUid INTEGER NOT NULL , personLct INTEGER NOT NULL , personCountry TEXT , personType INTEGER NOT NULL DEFAULT 0 , personMasterChangeSeqNum INTEGER NOT NULL , personLocalChangeSeqNum INTEGER NOT NULL , personLastChangedBy INTEGER NOT NULL , admin INTEGER NOT NULL , personNotes TEXT , fatherName TEXT , fatherNumber TEXT , motherName TEXT , motherNum TEXT , personUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_6); // Inline function 'kotlin.collections.plusAssign' call var element_7 = 'CREATE TABLE IF NOT EXISTS Clazz ( clazzName TEXT , clazzDesc TEXT , attendanceAverage REAl NOT NULL , clazzHolidayUMCalendarUid INTEGER NOT NULL , clazzScheuleUMCalendarUid INTEGER NOT NULL , isClazzActive INTEGER NOT NULL , clazzLocationUid INTEGER NOT NULL , clazzStartTime INTEGER NOT NULL , clazzEndTime INTEGER NOT NULL , clazzFeatures INTEGER NOT NULL , clazzSchoolUid INTEGER NOT NULL , clazzEnrolmentPolicy INTEGER NOT NULL DEFAULT 102 , clazzTerminologyUid INTEGER NOT NULL DEFAULT 25966 , clazzMasterChangeSeqNum INTEGER NOT NULL , clazzLocalChangeSeqNum INTEGER NOT NULL , clazzLastChangedBy INTEGER NOT NULL , clazzLct INTEGER NOT NULL , clazzTimeZone TEXT , clazzStudentsPersonGroupUid INTEGER NOT NULL , clazzTeachersPersonGroupUid INTEGER NOT NULL , clazzPendingStudentsPersonGroupUid INTEGER NOT NULL , clazzParentsPersonGroupUid INTEGER NOT NULL , clazzCode TEXT , clazzOwnerPersonUid INTEGER NOT NULL DEFAULT 0 , clazzUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_7); // Inline function 'kotlin.collections.plusAssign' call var element_8 = 'CREATE TABLE IF NOT EXISTS ClazzEnrolment ( clazzEnrolmentPersonUid INTEGER NOT NULL , clazzEnrolmentClazzUid INTEGER NOT NULL , clazzEnrolmentDateJoined INTEGER NOT NULL , clazzEnrolmentDateLeft INTEGER NOT NULL , clazzEnrolmentRole INTEGER NOT NULL , clazzEnrolmentAttendancePercentage REAl NOT NULL , clazzEnrolmentActive INTEGER NOT NULL , clazzEnrolmentLeavingReasonUid INTEGER NOT NULL , clazzEnrolmentOutcome INTEGER NOT NULL , clazzEnrolmentLocalChangeSeqNum INTEGER NOT NULL , clazzEnrolmentMasterChangeSeqNum INTEGER NOT NULL , clazzEnrolmentLastChangedBy INTEGER NOT NULL , clazzEnrolmentLct INTEGER NOT NULL , clazzEnrolmentUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_8); // Inline function 'kotlin.collections.plusAssign' call var element_9 = 'CREATE INDEX index_ClazzEnrolment_clazzEnrolmentPersonUid_clazzEnrolmentClazzUid ON ClazzEnrolment (clazzEnrolmentPersonUid, clazzEnrolmentClazzUid)'; _stmtList.j1(element_9); // Inline function 'kotlin.collections.plusAssign' call var element_10 = 'CREATE INDEX index_ClazzEnrolment_clazzEnrolmentClazzUid_clazzEnrolmentPersonUid ON ClazzEnrolment (clazzEnrolmentClazzUid, clazzEnrolmentPersonUid)'; _stmtList.j1(element_10); // Inline function 'kotlin.collections.plusAssign' call var element_11 = 'CREATE INDEX index_ClazzEnrolment_clazzEnrolmentClazzUid_clazzEnrolmentRole ON ClazzEnrolment (clazzEnrolmentClazzUid, clazzEnrolmentRole)'; _stmtList.j1(element_11); // Inline function 'kotlin.collections.plusAssign' call var element_12 = 'CREATE TABLE IF NOT EXISTS LeavingReason ( leavingReasonTitle TEXT , leavingReasonMCSN INTEGER NOT NULL , leavingReasonCSN INTEGER NOT NULL , leavingReasonLCB INTEGER NOT NULL , leavingReasonLct INTEGER NOT NULL , leavingReasonUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_12); // Inline function 'kotlin.collections.plusAssign' call var element_13 = 'CREATE TABLE IF NOT EXISTS ContentEntry ( title TEXT , description TEXT , entryId TEXT , author TEXT , publisher TEXT , licenseType INTEGER NOT NULL , licenseName TEXT , licenseUrl TEXT , sourceUrl TEXT , thumbnailUrl TEXT , lastModified INTEGER NOT NULL , primaryLanguageUid INTEGER NOT NULL , languageVariantUid INTEGER NOT NULL , contentFlags INTEGER NOT NULL , leaf INTEGER NOT NULL , publik INTEGER NOT NULL , ceInactive INTEGER NOT NULL , completionCriteria INTEGER NOT NULL , minScore INTEGER NOT NULL , contentTypeFlag INTEGER NOT NULL , contentOwner INTEGER NOT NULL , contentOwnerType INTEGER NOT NULL DEFAULT 1 , contentEntryLocalChangeSeqNum INTEGER NOT NULL , contentEntryMasterChangeSeqNum INTEGER NOT NULL , contentEntryLastChangedBy INTEGER NOT NULL , contentEntryLct INTEGER NOT NULL , contentEntryUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_13); // Inline function 'kotlin.collections.plusAssign' call var element_14 = 'CREATE TABLE IF NOT EXISTS ContentEntryContentCategoryJoin ( ceccjContentEntryUid INTEGER NOT NULL , ceccjContentCategoryUid INTEGER NOT NULL , ceccjLocalChangeSeqNum INTEGER NOT NULL , ceccjMasterChangeSeqNum INTEGER NOT NULL , ceccjLastChangedBy INTEGER NOT NULL , ceccjLct INTEGER NOT NULL , ceccjUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_14); // Inline function 'kotlin.collections.plusAssign' call var element_15 = 'CREATE TABLE IF NOT EXISTS ContentEntryParentChildJoin ( cepcjLocalChangeSeqNum INTEGER NOT NULL , cepcjMasterChangeSeqNum INTEGER NOT NULL , cepcjLastChangedBy INTEGER NOT NULL , cepcjLct INTEGER NOT NULL , cepcjDeleted INTEGER NOT NULL DEFAULT 0 , cepcjParentContentEntryUid INTEGER NOT NULL , cepcjChildContentEntryUid INTEGER NOT NULL , childIndex INTEGER NOT NULL , cepcjUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_15); // Inline function 'kotlin.collections.plusAssign' call var element_16 = 'CREATE INDEX parent_child ON ContentEntryParentChildJoin (cepcjChildContentEntryUid, cepcjParentContentEntryUid)'; _stmtList.j1(element_16); // Inline function 'kotlin.collections.plusAssign' call var element_17 = 'CREATE TABLE IF NOT EXISTS ContentEntryRelatedEntryJoin ( cerejContentEntryUid INTEGER NOT NULL , cerejRelatedEntryUid INTEGER NOT NULL , cerejLastChangedBy INTEGER NOT NULL , relType INTEGER NOT NULL , comment TEXT , cerejRelLanguageUid INTEGER NOT NULL , cerejLocalChangeSeqNum INTEGER NOT NULL , cerejMasterChangeSeqNum INTEGER NOT NULL , cerejLct INTEGER NOT NULL , cerejUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_17); // Inline function 'kotlin.collections.plusAssign' call var element_18 = 'CREATE TABLE IF NOT EXISTS ContentCategorySchema ( schemaName TEXT , schemaUrl TEXT , contentCategorySchemaLocalChangeSeqNum INTEGER NOT NULL , contentCategorySchemaMasterChangeSeqNum INTEGER NOT NULL , contentCategorySchemaLastChangedBy INTEGER NOT NULL , contentCategorySchemaLct INTEGER NOT NULL , contentCategorySchemaUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_18); // Inline function 'kotlin.collections.plusAssign' call var element_19 = 'CREATE TABLE IF NOT EXISTS ContentCategory ( ctnCatContentCategorySchemaUid INTEGER NOT NULL , name TEXT , contentCategoryLocalChangeSeqNum INTEGER NOT NULL , contentCategoryMasterChangeSeqNum INTEGER NOT NULL , contentCategoryLastChangedBy INTEGER NOT NULL , contentCategoryLct INTEGER NOT NULL , contentCategoryUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_19); // Inline function 'kotlin.collections.plusAssign' call var element_20 = 'CREATE TABLE IF NOT EXISTS Language ( name TEXT , iso_639_1_standard TEXT , iso_639_2_standard TEXT , iso_639_3_standard TEXT , Language_Type TEXT , languageActive INTEGER NOT NULL , langLocalChangeSeqNum INTEGER NOT NULL , langMasterChangeSeqNum INTEGER NOT NULL , langLastChangedBy INTEGER NOT NULL , langLct INTEGER NOT NULL , langUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_20); // Inline function 'kotlin.collections.plusAssign' call var element_21 = 'CREATE TABLE IF NOT EXISTS LanguageVariant ( langUid INTEGER NOT NULL , countryCode TEXT , name TEXT , langVariantLocalChangeSeqNum INTEGER NOT NULL , langVariantMasterChangeSeqNum INTEGER NOT NULL , langVariantLastChangedBy INTEGER NOT NULL , langVariantLct INTEGER NOT NULL , langVariantUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_21); // Inline function 'kotlin.collections.plusAssign' call var element_22 = 'CREATE TABLE IF NOT EXISTS PersonAuth ( passwordHash TEXT , personAuthStatus INTEGER NOT NULL , personAuthUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_22); // Inline function 'kotlin.collections.plusAssign' call var element_23 = 'CREATE TABLE IF NOT EXISTS PersonGroup ( groupMasterCsn INTEGER NOT NULL , groupLocalCsn INTEGER NOT NULL , groupLastChangedBy INTEGER NOT NULL , groupLct INTEGER NOT NULL , groupName TEXT , groupActive INTEGER NOT NULL , personGroupFlag INTEGER NOT NULL , groupUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_23); // Inline function 'kotlin.collections.plusAssign' call var element_24 = 'CREATE TABLE IF NOT EXISTS PersonGroupMember ( groupMemberActive INTEGER NOT NULL , groupMemberPersonUid INTEGER NOT NULL , groupMemberGroupUid INTEGER NOT NULL , groupMemberMasterCsn INTEGER NOT NULL , groupMemberLocalCsn INTEGER NOT NULL , groupMemberLastChangedBy INTEGER NOT NULL , groupMemberLct INTEGER NOT NULL , groupMemberUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_24); // Inline function 'kotlin.collections.plusAssign' call var element_25 = 'CREATE TABLE IF NOT EXISTS PersonPicture ( personPictureLct INTEGER NOT NULL , personPictureUri TEXT , personPictureThumbnailUri TEXT , fileSize INTEGER NOT NULL , personPictureActive INTEGER NOT NULL , personPictureUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_25); // Inline function 'kotlin.collections.plusAssign' call var element_26 = 'CREATE TABLE IF NOT EXISTS VerbEntity ( verbUid INTEGER PRIMARY KEY NOT NULL , verbUrlId TEXT , verbDeleted INTEGER NOT NULL , verbLct INTEGER NOT NULL )'; _stmtList.j1(element_26); // Inline function 'kotlin.collections.plusAssign' call var element_27 = 'CREATE TABLE IF NOT EXISTS ActivityEntity ( actUid INTEGER PRIMARY KEY NOT NULL , actIdIri TEXT , actType TEXT , actMoreInfo TEXT , actInteractionType INTEGER NOT NULL , actCorrectResponsePatterns TEXT , actLct INTEGER NOT NULL )'; _stmtList.j1(element_27); // Inline function 'kotlin.collections.plusAssign' call var element_28 = 'CREATE TABLE IF NOT EXISTS StatementEntity ( statementIdHi INTEGER NOT NULL , statementIdLo INTEGER NOT NULL , statementActorPersonUid INTEGER NOT NULL , statementVerbUid INTEGER NOT NULL , statementObjectType INTEGER NOT NULL , statementObjectUid1 INTEGER NOT NULL , statementObjectUid2 INTEGER NOT NULL , statementActorUid INTEGER NOT NULL , authorityActorUid INTEGER NOT NULL , teamUid INTEGER NOT NULL , resultCompletion INTEGER , resultSuccess INTEGER , resultScoreScaled REAl , resultScoreRaw REAl , resultScoreMin REAl , resultScoreMax REAl , resultDuration INTEGER , resultResponse TEXT , timestamp INTEGER NOT NULL , stored INTEGER NOT NULL , contextRegistrationHi INTEGER NOT NULL , contextRegistrationLo INTEGER NOT NULL , contextRegistrationHash INTEGER NOT NULL , contextPlatform TEXT , contextStatementRefIdHi INTEGER NOT NULL , contextStatementRefIdLo INTEGER NOT NULL , contextInstructorActorUid INTEGER NOT NULL , statementLct INTEGER NOT NULL , extensionProgress INTEGER , completionOrProgress INTEGER NOT NULL , statementContentEntryUid INTEGER NOT NULL , statementLearnerGroupUid INTEGER NOT NULL , statementClazzUid INTEGER NOT NULL , statementCbUid INTEGER NOT NULL , statementDoorNode INTEGER NOT NULL , isSubStatement INTEGER NOT NULL , PRIMARY KEY (statementIdHi, statementIdLo) )'; _stmtList.j1(element_28); // Inline function 'kotlin.collections.plusAssign' call var element_29 = 'CREATE INDEX idx_stmt_actor_person ON StatementEntity (statementActorPersonUid)'; _stmtList.j1(element_29); // Inline function 'kotlin.collections.plusAssign' call var element_30 = 'CREATE INDEX idx_statement_clazz_person ON StatementEntity (statementClazzUid, statementActorPersonUid)'; _stmtList.j1(element_30); // Inline function 'kotlin.collections.plusAssign' call var element_31 = 'CREATE INDEX idx_statement_cbuid_actor ON StatementEntity (statementCbUid, statementActorUid)'; _stmtList.j1(element_31); // Inline function 'kotlin.collections.plusAssign' call var element_32 = 'CREATE TABLE IF NOT EXISTS ActorEntity ( actorPersonUid INTEGER NOT NULL , actorName TEXT , actorMbox TEXT , actorMbox_sha1sum TEXT , actorOpenid TEXT , actorAccountName TEXT , actorAccountHomePage TEXT , actorEtag INTEGER NOT NULL , actorLct INTEGER NOT NULL , actorObjectType INTEGER NOT NULL , actorUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_32); // Inline function 'kotlin.collections.plusAssign' call var element_33 = 'CREATE INDEX idx_actorentity_uid_personuid ON ActorEntity (actorPersonUid)'; _stmtList.j1(element_33); // Inline function 'kotlin.collections.plusAssign' call var element_34 = 'CREATE INDEX idx_actorentity_actorobjecttype ON ActorEntity (actorObjectType)'; _stmtList.j1(element_34); // Inline function 'kotlin.collections.plusAssign' call var element_35 = 'CREATE TABLE IF NOT EXISTS SyncNode ( nodeClientId INTEGER NOT NULL , PRIMARY KEY (nodeClientId) )'; _stmtList.j1(element_35); // Inline function 'kotlin.collections.plusAssign' call var element_36 = 'CREATE TABLE IF NOT EXISTS Comments ( commentsText TEXT , commentsEntityUid INTEGER NOT NULL , commentsStatus INTEGER NOT NULL , commentsFromPersonUid INTEGER NOT NULL , commentsForSubmitterUid INTEGER NOT NULL , commentsFromSubmitterUid INTEGER NOT NULL , commentsFlagged INTEGER NOT NULL , commentsDeleted INTEGER NOT NULL , commentsDateTimeAdded INTEGER NOT NULL , commentsLct INTEGER NOT NULL , commentsUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_36); // Inline function 'kotlin.collections.plusAssign' call var element_37 = 'CREATE INDEX idx_comments_entity_submitter ON Comments (commentsEntityUid, commentsForSubmitterUid)'; _stmtList.j1(element_37); // Inline function 'kotlin.collections.plusAssign' call var element_38 = 'CREATE TABLE IF NOT EXISTS Report ( reportTitle TEXT , reportOptions TEXT , reportIsTemplate INTEGER NOT NULL , reportLastModTime INTEGER NOT NULL , reportOwnerPersonUid INTEGER NOT NULL DEFAULT 0 , reportUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_38); // Inline function 'kotlin.collections.plusAssign' call var element_39 = 'CREATE TABLE IF NOT EXISTS Site ( sitePcsn INTEGER NOT NULL , siteLcsn INTEGER NOT NULL , siteLcb INTEGER NOT NULL , siteLct INTEGER NOT NULL , siteName TEXT , guestLogin INTEGER NOT NULL , registrationAllowed INTEGER NOT NULL , authSalt TEXT , siteUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_39); // Inline function 'kotlin.collections.plusAssign' call var element_40 = 'CREATE TABLE IF NOT EXISTS SiteTerms ( termsHtml TEXT , sTermsLang TEXT , sTermsLangUid INTEGER NOT NULL , sTermsActive INTEGER NOT NULL , sTermsLastChangedBy INTEGER NOT NULL , sTermsPrimaryCsn INTEGER NOT NULL , sTermsLocalCsn INTEGER NOT NULL , sTermsLct INTEGER NOT NULL , sTermsUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_40); // Inline function 'kotlin.collections.plusAssign' call var element_41 = 'CREATE TABLE IF NOT EXISTS PersonParentJoin ( ppjPcsn INTEGER NOT NULL , ppjLcsn INTEGER NOT NULL , ppjLcb INTEGER NOT NULL , ppjLct INTEGER NOT NULL , ppjParentPersonUid INTEGER NOT NULL , ppjMinorPersonUid INTEGER NOT NULL , ppjRelationship INTEGER NOT NULL , ppjEmail TEXT , ppjPhone TEXT , ppjInactive INTEGER NOT NULL , ppjStatus INTEGER NOT NULL , ppjApprovalTiemstamp INTEGER NOT NULL , ppjApprovalIpAddr TEXT , ppjUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_41); // Inline function 'kotlin.collections.plusAssign' call var element_42 = 'CREATE TABLE IF NOT EXISTS ScopedGrant ( sgPcsn INTEGER NOT NULL , sgLcsn INTEGER NOT NULL , sgLcb INTEGER NOT NULL , sgLct INTEGER NOT NULL , sgTableId INTEGER NOT NULL , sgEntityUid INTEGER NOT NULL , sgPermissions INTEGER NOT NULL , sgGroupUid INTEGER NOT NULL , sgIndex INTEGER NOT NULL , sgFlags INTEGER NOT NULL , sgUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_42); // Inline function 'kotlin.collections.plusAssign' call var element_43 = 'CREATE INDEX idx_group_to_entity ON ScopedGrant (sgGroupUid, sgPermissions, sgTableId, sgEntityUid)'; _stmtList.j1(element_43); // Inline function 'kotlin.collections.plusAssign' call var element_44 = 'CREATE INDEX idx_entity_to_group ON ScopedGrant (sgTableId, sgEntityUid, sgPermissions, sgGroupUid)'; _stmtList.j1(element_44); // Inline function 'kotlin.collections.plusAssign' call var element_45 = 'CREATE TABLE IF NOT EXISTS ErrorReport ( errPcsn INTEGER NOT NULL , errLcsn INTEGER NOT NULL , errLcb INTEGER NOT NULL , errLct INTEGER NOT NULL , severity INTEGER NOT NULL , timestamp INTEGER NOT NULL , presenterUri TEXT , appVersion TEXT , versionCode INTEGER NOT NULL , errorCode INTEGER NOT NULL , operatingSys TEXT , osVersion TEXT , stackTrace TEXT , message TEXT , errUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_45); // Inline function 'kotlin.collections.plusAssign' call var element_46 = 'CREATE TABLE IF NOT EXISTS ClazzAssignment ( caTitle TEXT , caDescription TEXT , caGroupUid INTEGER NOT NULL DEFAULT 0 , caActive INTEGER NOT NULL , caClassCommentEnabled INTEGER NOT NULL , caPrivateCommentsEnabled INTEGER NOT NULL DEFAULT 1 , caCompletionCriteria INTEGER NOT NULL DEFAULT 100 , caRequireFileSubmission INTEGER NOT NULL DEFAULT 1 , caFileType INTEGER NOT NULL DEFAULT 0 , caSizeLimit INTEGER NOT NULL DEFAULT 50 , caNumberOfFiles INTEGER NOT NULL DEFAULT 1 , caSubmissionPolicy INTEGER NOT NULL DEFAULT 1 , caMarkingType INTEGER NOT NULL DEFAULT 1 , caRequireTextSubmission INTEGER NOT NULL DEFAULT 1 , caTextLimitType INTEGER NOT NULL DEFAULT 1 , caTextLimit INTEGER NOT NULL DEFAULT 500 , caXObjectUid INTEGER NOT NULL DEFAULT 0 , caClazzUid INTEGER NOT NULL , caPeerReviewerCount INTEGER NOT NULL DEFAULT 0 , caLocalChangeSeqNum INTEGER NOT NULL , caMasterChangeSeqNum INTEGER NOT NULL , caLastChangedBy INTEGER NOT NULL , caLct INTEGER NOT NULL , caUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_46); // Inline function 'kotlin.collections.plusAssign' call var element_47 = 'CREATE TABLE IF NOT EXISTS CourseAssignmentSubmission ( casAssignmentUid INTEGER NOT NULL , casSubmitterUid INTEGER NOT NULL , casSubmitterPersonUid INTEGER NOT NULL , casText TEXT , casType INTEGER NOT NULL , casTimestamp INTEGER NOT NULL , casClazzUid INTEGER NOT NULL DEFAULT 0 , casUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_47); // Inline function 'kotlin.collections.plusAssign' call var element_48 = 'CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionFile ( casaSubmissionUid INTEGER NOT NULL , casaSubmitterUid INTEGER NOT NULL DEFAULT 0 , casaCaUid INTEGER NOT NULL , casaClazzUid INTEGER NOT NULL , casaMimeType TEXT , casaFileName TEXT , casaUri TEXT , casaSize INTEGER NOT NULL , casaTimestamp INTEGER NOT NULL , casaDeleted INTEGER NOT NULL DEFAULT 0 , casaUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_48); // Inline function 'kotlin.collections.plusAssign' call var element_49 = 'CREATE TABLE IF NOT EXISTS CourseAssignmentMark ( camAssignmentUid INTEGER NOT NULL , camSubmitterUid INTEGER NOT NULL , camMarkerSubmitterUid INTEGER NOT NULL DEFAULT 0 , camMarkerPersonUid INTEGER NOT NULL DEFAULT 0 , camMarkerComment TEXT , camMark REAl NOT NULL , camMaxMark REAl NOT NULL DEFAULT 1 , camPenalty REAl NOT NULL , camLct INTEGER NOT NULL , camClazzUid INTEGER NOT NULL DEFAULT 0 , camUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_49); // Inline function 'kotlin.collections.plusAssign' call var element_50 = 'CREATE TABLE IF NOT EXISTS PeerReviewerAllocation ( praMarkerSubmitterUid INTEGER NOT NULL , praToMarkerSubmitterUid INTEGER NOT NULL , praAssignmentUid INTEGER NOT NULL , praActive INTEGER NOT NULL , praLct INTEGER NOT NULL , praUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_50); // Inline function 'kotlin.collections.plusAssign' call var element_51 = 'CREATE TABLE IF NOT EXISTS PersonAuth2 ( pauthUid INTEGER PRIMARY KEY NOT NULL , pauthMechanism TEXT , pauthAuth TEXT , pauthLcsn INTEGER NOT NULL , pauthPcsn INTEGER NOT NULL , pauthLcb INTEGER NOT NULL , pauthLct INTEGER NOT NULL )'; _stmtList.j1(element_51); // Inline function 'kotlin.collections.plusAssign' call var element_52 = 'CREATE TABLE IF NOT EXISTS UserSession ( usPcsn INTEGER NOT NULL , usLcsn INTEGER NOT NULL , usLcb INTEGER NOT NULL , usLct INTEGER NOT NULL , usPersonUid INTEGER NOT NULL , usClientNodeId INTEGER NOT NULL , usStartTime INTEGER NOT NULL , usEndTime INTEGER NOT NULL , usStatus INTEGER NOT NULL , usReason INTEGER NOT NULL , usAuth TEXT , usSessionType INTEGER NOT NULL , usUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_52); // Inline function 'kotlin.collections.plusAssign' call var element_53 = 'CREATE INDEX person_status_node_idx ON UserSession (usPersonUid, usStatus, usClientNodeId)'; _stmtList.j1(element_53); // Inline function 'kotlin.collections.plusAssign' call var element_54 = 'CREATE INDEX node_status_person_idx ON UserSession (usClientNodeId, usStatus, usPersonUid)'; _stmtList.j1(element_54); // Inline function 'kotlin.collections.plusAssign' call var element_55 = 'CREATE TABLE IF NOT EXISTS ContentJob ( toUri TEXT , cjProgress INTEGER NOT NULL , cjTotal INTEGER NOT NULL , cjNotificationTitle TEXT , cjIsMeteredAllowed INTEGER NOT NULL , params TEXT , cjLct INTEGER NOT NULL , cjUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_55); // Inline function 'kotlin.collections.plusAssign' call var element_56 = 'CREATE TABLE IF NOT EXISTS ContentEntryImportJob ( sourceUri TEXT , cjiOriginalFilename TEXT , cjiContentEntryUid INTEGER NOT NULL , cjiParentContentEntryUid INTEGER NOT NULL , cjiContentEntryVersion INTEGER NOT NULL , cjiItemProgress INTEGER NOT NULL , cjiItemTotal INTEGER NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiPluginId INTEGER NOT NULL , cjiParentCjiUid INTEGER NOT NULL , cjiStartTime INTEGER NOT NULL , cjiFinishTime INTEGER NOT NULL , cjiContentDeletedOnCancellation INTEGER NOT NULL , cjiCompressionLevel INTEGER NOT NULL DEFAULT 3 , cjiError TEXT , cjiErrorDismissed INTEGER NOT NULL , cjiOwnerPersonUid INTEGER NOT NULL , cjiParams TEXT , cjiUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_56); // Inline function 'kotlin.collections.plusAssign' call var element_57 = 'CREATE INDEX index_ContentEntryImportJob_cjiContentEntryUid_cjiFinishTime ON ContentEntryImportJob (cjiContentEntryUid, cjiFinishTime)'; _stmtList.j1(element_57); // Inline function 'kotlin.collections.plusAssign' call var element_58 = 'CREATE TABLE IF NOT EXISTS CourseBlock ( cbType INTEGER NOT NULL , cbIndentLevel INTEGER NOT NULL , cbModuleParentBlockUid INTEGER NOT NULL , cbTitle TEXT , cbDescription TEXT , cbCompletionCriteria INTEGER NOT NULL , cbHideUntilDate INTEGER NOT NULL , cbDeadlineDate INTEGER NOT NULL , cbLateSubmissionPenalty INTEGER NOT NULL , cbGracePeriodDate INTEGER NOT NULL , cbMaxPoints REAl , cbMinPoints REAl , cbIndex INTEGER NOT NULL , cbClazzUid INTEGER NOT NULL , cbClazzSourcedId TEXT , cbActive INTEGER NOT NULL , cbHidden INTEGER NOT NULL , cbEntityUid INTEGER NOT NULL , cbLct INTEGER NOT NULL , cbSourcedId TEXT , cbMetadata TEXT , cbCreatedByAppId TEXT , cbUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_58); // Inline function 'kotlin.collections.plusAssign' call var element_59 = 'CREATE INDEX idx_courseblock_cbclazzuid ON CourseBlock (cbClazzUid)'; _stmtList.j1(element_59); // Inline function 'kotlin.collections.plusAssign' call var element_60 = 'CREATE TABLE IF NOT EXISTS CourseTerminology ( ctTitle TEXT , ctTerminology TEXT , ctLct INTEGER NOT NULL , ctUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_60); // Inline function 'kotlin.collections.plusAssign' call var element_61 = 'CREATE TABLE IF NOT EXISTS CourseGroupSet ( cgsName TEXT , cgsTotalGroups INTEGER NOT NULL , cgsActive INTEGER NOT NULL , cgsClazzUid INTEGER NOT NULL , cgsLct INTEGER NOT NULL , cgsUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_61); // Inline function 'kotlin.collections.plusAssign' call var element_62 = 'CREATE TABLE IF NOT EXISTS CourseGroupMember ( cgmSetUid INTEGER NOT NULL , cgmGroupNumber INTEGER NOT NULL , cgmPersonUid INTEGER NOT NULL , cgmLct INTEGER NOT NULL , cgmUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_62); // Inline function 'kotlin.collections.plusAssign' call var element_63 = 'CREATE TABLE IF NOT EXISTS ContentEntryPicture ( cepContentEntryUid INTEGER NOT NULL , cepUri TEXT , cepMd5 TEXT , cepFileSize INTEGER NOT NULL , cepTimestamp INTEGER NOT NULL , cepMimeType TEXT , cepActive INTEGER NOT NULL , cepUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_63); // Inline function 'kotlin.collections.plusAssign' call var element_64 = 'CREATE TABLE IF NOT EXISTS ActivityInteractionEntity ( aieActivityUid INTEGER NOT NULL , aieHash INTEGER NOT NULL , aieProp INTEGER NOT NULL , aieId TEXT , aieLastMod INTEGER NOT NULL , aieIsDeleted INTEGER NOT NULL , PRIMARY KEY (aieActivityUid, aieHash) )'; _stmtList.j1(element_64); // Inline function 'kotlin.collections.plusAssign' call var element_65 = 'CREATE TABLE IF NOT EXISTS CoursePicture ( coursePictureLct INTEGER NOT NULL , coursePictureUri TEXT , coursePictureThumbnailUri TEXT , coursePictureActive INTEGER NOT NULL , coursePictureUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_65); // Inline function 'kotlin.collections.plusAssign' call var element_66 = 'CREATE TABLE IF NOT EXISTS DiscussionPost ( discussionPostReplyToPostUid INTEGER NOT NULL , discussionPostTitle TEXT , discussionPostMessage TEXT , discussionPostStartDate INTEGER NOT NULL , discussionPostCourseBlockUid INTEGER NOT NULL , dpDeleted INTEGER NOT NULL , discussionPostStartedPersonUid INTEGER NOT NULL , discussionPostClazzUid INTEGER NOT NULL , discussionPostLct INTEGER NOT NULL , discussionPostVisible INTEGER NOT NULL , discussionPostArchive INTEGER NOT NULL , discussionPostUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_66); // Inline function 'kotlin.collections.plusAssign' call var element_67 = 'CREATE TABLE IF NOT EXISTS ExternalAppPermission ( eapPersonUid INTEGER NOT NULL , eapPackageId TEXT , eapStartTime INTEGER NOT NULL , eapExpireTime INTEGER NOT NULL , eapAuthToken TEXT , eapAndroidAccountName TEXT , eapUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_67); // Inline function 'kotlin.collections.plusAssign' call var element_68 = 'CREATE TABLE IF NOT EXISTS Message ( messageSenderPersonUid INTEGER NOT NULL , messageToPersonUid INTEGER NOT NULL , messageText TEXT , messageTimestamp INTEGER NOT NULL , messageLct INTEGER NOT NULL , messageUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_68); // Inline function 'kotlin.collections.plusAssign' call var element_69 = 'CREATE INDEX message_idx_send_to_time ON Message (messageSenderPersonUid, messageToPersonUid, messageTimestamp)'; _stmtList.j1(element_69); // Inline function 'kotlin.collections.plusAssign' call var element_70 = 'CREATE TABLE IF NOT EXISTS StudentResult ( srUid INTEGER PRIMARY KEY NOT NULL , srSourcedId TEXT , srCourseBlockUid INTEGER NOT NULL , srLineItemSourcedId TEXT , srLineItemHref TEXT , srClazzUid INTEGER NOT NULL , srAssignmentUid INTEGER NOT NULL , srStatus INTEGER NOT NULL , srMetaData TEXT , srStudentPersonUid INTEGER NOT NULL , srStudentPersonSourcedId TEXT , srStudentGroupId INTEGER NOT NULL , srMarkerPersonUid INTEGER NOT NULL , srMarkerGroupId INTEGER NOT NULL , srScoreStatus INTEGER NOT NULL , srScore REAl NOT NULL , srScoreDate INTEGER NOT NULL , srLastModified INTEGER NOT NULL , srComment TEXT , srAppId TEXT , srDeleted INTEGER NOT NULL )'; _stmtList.j1(element_70); // Inline function 'kotlin.collections.plusAssign' call var element_71 = 'CREATE TABLE IF NOT EXISTS ContentEntryVersion ( cevContentEntryUid INTEGER NOT NULL , cevOpenUri TEXT , cevContentType TEXT , cevManifestUrl TEXT , cevSize INTEGER NOT NULL , cevInActive INTEGER NOT NULL , cevLastModified INTEGER NOT NULL , cevLct INTEGER NOT NULL , cevStorageSize INTEGER NOT NULL DEFAULT 0 , cevOriginalSize INTEGER NOT NULL DEFAULT 0 , cevUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_71); // Inline function 'kotlin.collections.plusAssign' call var element_72 = 'CREATE TABLE IF NOT EXISTS TransferJob ( tjType INTEGER NOT NULL , tjStatus INTEGER NOT NULL , tjName TEXT , tjUuid TEXT , tjTableId INTEGER NOT NULL DEFAULT 0 , tjEntityUid INTEGER NOT NULL DEFAULT 0 , tjTimeCreated INTEGER NOT NULL DEFAULT 0 , tjCreationType INTEGER NOT NULL DEFAULT 0 , tjOiUid INTEGER NOT NULL DEFAULT 0 , tjUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_72); // Inline function 'kotlin.collections.plusAssign' call var element_73 = 'CREATE INDEX TransferJob_idx_tjTableId_EntityUid ON TransferJob (tjTableId, tjEntityUid)'; _stmtList.j1(element_73); // Inline function 'kotlin.collections.plusAssign' call var element_74 = 'CREATE TABLE IF NOT EXISTS TransferJobItem ( tjiTjUid INTEGER NOT NULL , tjTotalSize INTEGER NOT NULL , tjTransferred INTEGER NOT NULL , tjAttemptCount INTEGER NOT NULL , tjiSrc TEXT , tjiDest TEXT , tjiType INTEGER NOT NULL , tjiStatus INTEGER NOT NULL , tjiTableId INTEGER NOT NULL , tjiEntityUid INTEGER NOT NULL , tjiEntityEtag INTEGER NOT NULL DEFAULT 0 , tjiLockIdToRelease INTEGER NOT NULL DEFAULT 0 , tjiPartialTmpFile TEXT , tjiUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_74); // Inline function 'kotlin.collections.plusAssign' call var element_75 = 'CREATE INDEX tji_table_entity_etag ON TransferJobItem (tjiTableId, tjiEntityUid, tjiEntityEtag)'; _stmtList.j1(element_75); // Inline function 'kotlin.collections.plusAssign' call var element_76 = 'CREATE INDEX transferjob_tjuid ON TransferJobItem (tjiTjUid)'; _stmtList.j1(element_76); // Inline function 'kotlin.collections.plusAssign' call var element_77 = 'CREATE TABLE IF NOT EXISTS CacheLockJoin ( cljTableId INTEGER NOT NULL , cljEntityUid INTEGER NOT NULL , cljUrl TEXT , cljLockId INTEGER NOT NULL , cljStatus INTEGER NOT NULL , cljType INTEGER NOT NULL , cljOiUid INTEGER NOT NULL DEFAULT 0 , cljId INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_77); // Inline function 'kotlin.collections.plusAssign' call var element_78 = 'CREATE INDEX idx_clj_table_entity_url ON CacheLockJoin (cljTableId, cljEntityUid, cljUrl)'; _stmtList.j1(element_78); // Inline function 'kotlin.collections.plusAssign' call var element_79 = 'CREATE INDEX idx_clj_offline_item_uid ON CacheLockJoin (cljOiUid)'; _stmtList.j1(element_79); // Inline function 'kotlin.collections.plusAssign' call var element_80 = 'CREATE TABLE IF NOT EXISTS OfflineItem ( oiNodeId INTEGER NOT NULL , oiClazzUid INTEGER NOT NULL , oiCourseBlockUid INTEGER NOT NULL , oiContentEntryUid INTEGER NOT NULL , oiActive INTEGER NOT NULL , oiLct INTEGER NOT NULL , oiUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_80); // Inline function 'kotlin.collections.plusAssign' call var element_81 = 'CREATE INDEX offline_item_node_content_entry ON OfflineItem (oiNodeId, oiContentEntryUid)'; _stmtList.j1(element_81); // Inline function 'kotlin.collections.plusAssign' call var element_82 = 'CREATE TABLE IF NOT EXISTS OfflineItemPendingTransferJob ( oiptjOiUid INTEGER NOT NULL , oiptjTableId INTEGER NOT NULL , oiptjEntityUid INTEGER NOT NULL , oiptjUrl TEXT , oiptjType INTEGER NOT NULL , oiptjId INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_82); // Inline function 'kotlin.collections.plusAssign' call var element_83 = 'CREATE TABLE IF NOT EXISTS DeletedItem ( delItemName TEXT , delItemIconUri TEXT , delItemLastModTime INTEGER NOT NULL , delItemTimeDeleted INTEGER NOT NULL , delItemEntityTable INTEGER NOT NULL , delItemEntityUid INTEGER NOT NULL , delItemDeletedByPersonUid INTEGER NOT NULL , delItemStatus INTEGER NOT NULL , delItemIsFolder INTEGER NOT NULL DEFAULT 0 , delItemUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_83); // Inline function 'kotlin.collections.plusAssign' call var element_84 = 'CREATE INDEX delitem_idx_status_time ON DeletedItem (delItemStatus, delItemTimeDeleted)'; _stmtList.j1(element_84); // Inline function 'kotlin.collections.plusAssign' call var element_85 = 'CREATE TABLE IF NOT EXISTS EnrolmentRequest ( erClazzUid INTEGER NOT NULL , erClazzName TEXT , erPersonUid INTEGER NOT NULL , erPersonFullname TEXT , erPersonPictureUri TEXT , erPersonUsername TEXT , erRole INTEGER NOT NULL , erRequestTime INTEGER NOT NULL , erStatus INTEGER NOT NULL , erStatusSetByPersonUid INTEGER NOT NULL , erDeleted INTEGER NOT NULL , erStatusSetAuth TEXT , erLastModified INTEGER NOT NULL , erUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_85); // Inline function 'kotlin.collections.plusAssign' call var element_86 = 'CREATE INDEX idx_enrolmentrequest_by_clazz ON EnrolmentRequest (erClazzUid, erStatus)'; _stmtList.j1(element_86); // Inline function 'kotlin.collections.plusAssign' call var element_87 = 'CREATE INDEX idx_enrolmentrequest_by_person ON EnrolmentRequest (erPersonUid, erStatus)'; _stmtList.j1(element_87); // Inline function 'kotlin.collections.plusAssign' call var element_88 = 'CREATE TABLE IF NOT EXISTS CoursePermission ( cpLastModified INTEGER NOT NULL , cpClazzUid INTEGER NOT NULL , cpToEnrolmentRole INTEGER NOT NULL , cpToPersonUid INTEGER NOT NULL , cpToGroupUid INTEGER NOT NULL , cpPermissionsFlag INTEGER NOT NULL , cpIsDeleted INTEGER NOT NULL , cpUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_88); // Inline function 'kotlin.collections.plusAssign' call var element_89 = 'CREATE INDEX idx_coursepermission_clazzuid ON CoursePermission (cpClazzUid)'; _stmtList.j1(element_89); // Inline function 'kotlin.collections.plusAssign' call var element_90 = 'CREATE TABLE IF NOT EXISTS SystemPermission ( spToPersonUid INTEGER NOT NULL , spToGroupUid INTEGER NOT NULL , spPermissionsFlag INTEGER NOT NULL , spLastModified INTEGER NOT NULL , spIsDeleted INTEGER NOT NULL , spUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_90); // Inline function 'kotlin.collections.plusAssign' call var element_91 = 'CREATE INDEX idx_systempermission_personuid ON SystemPermission (spToPersonUid)'; _stmtList.j1(element_91); // Inline function 'kotlin.collections.plusAssign' call var element_92 = 'CREATE TABLE IF NOT EXISTS CourseBlockPicture ( cbpUid INTEGER PRIMARY KEY NOT NULL , cbpLct INTEGER NOT NULL , cbpPictureUri TEXT , cbpThumbnailUri TEXT )'; _stmtList.j1(element_92); // Inline function 'kotlin.collections.plusAssign' call var element_93 = 'CREATE TABLE IF NOT EXISTS ContentEntryPicture2 ( cepUid INTEGER PRIMARY KEY NOT NULL , cepLct INTEGER NOT NULL , cepPictureUri TEXT , cepThumbnailUri TEXT )'; _stmtList.j1(element_93); // Inline function 'kotlin.collections.plusAssign' call var element_94 = 'CREATE TABLE IF NOT EXISTS TransferJobError ( tjeTjUid INTEGER NOT NULL , tjeTime INTEGER NOT NULL , tjeErrorStr TEXT , tjeDismissed INTEGER NOT NULL , tjeId INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_94); // Inline function 'kotlin.collections.plusAssign' call var element_95 = 'CREATE INDEX idx_transferjoberror_tjetjuid ON TransferJobError (tjeTjUid)'; _stmtList.j1(element_95); // Inline function 'kotlin.collections.plusAssign' call var element_96 = 'CREATE TABLE IF NOT EXISTS VerbLangMapEntry ( vlmeVerbUid INTEGER NOT NULL , vlmeLangHash INTEGER NOT NULL , vlmeLangCode TEXT , vlmeEntryString TEXT , vlmeLastModified INTEGER NOT NULL , PRIMARY KEY (vlmeVerbUid, vlmeLangHash) )'; _stmtList.j1(element_96); // Inline function 'kotlin.collections.plusAssign' call var element_97 = 'CREATE TABLE IF NOT EXISTS GroupMemberActorJoin ( gmajGroupActorUid INTEGER NOT NULL , gmajMemberActorUid INTEGER NOT NULL , gmajLastMod INTEGER NOT NULL , PRIMARY KEY (gmajGroupActorUid, gmajMemberActorUid) )'; _stmtList.j1(element_97); // Inline function 'kotlin.collections.plusAssign' call var element_98 = 'CREATE INDEX idx_groupmemberactorjoin_gmajgroupactoruid ON GroupMemberActorJoin (gmajGroupActorUid)'; _stmtList.j1(element_98); // Inline function 'kotlin.collections.plusAssign' call var element_99 = 'CREATE INDEX idx_groupmemberactorjoin_gmajmemberactoruid ON GroupMemberActorJoin (gmajMemberActorUid)'; _stmtList.j1(element_99); // Inline function 'kotlin.collections.plusAssign' call var element_100 = 'CREATE TABLE IF NOT EXISTS ActivityLangMapEntry ( almeActivityUid INTEGER NOT NULL , almeHash INTEGER NOT NULL , almeLangCode TEXT , almePropName TEXT , almeValue TEXT , almeAieHash INTEGER NOT NULL , almeLastMod INTEGER NOT NULL , PRIMARY KEY (almeActivityUid, almeHash) )'; _stmtList.j1(element_100); // Inline function 'kotlin.collections.plusAssign' call var element_101 = 'CREATE TABLE IF NOT EXISTS ActivityExtensionEntity ( aeeActivityUid INTEGER NOT NULL , aeeKeyHash INTEGER NOT NULL , aeeKey TEXT , aeeJson TEXT , aeeLastMod INTEGER NOT NULL , aeeIsDeleted INTEGER NOT NULL , PRIMARY KEY (aeeActivityUid, aeeKeyHash) )'; _stmtList.j1(element_101); // Inline function 'kotlin.collections.plusAssign' call var element_102 = 'CREATE TABLE IF NOT EXISTS StatementContextActivityJoin ( scajFromStatementIdHi INTEGER NOT NULL , scajFromStatementIdLo INTEGER NOT NULL , scajToHash INTEGER NOT NULL , scajContextType INTEGER NOT NULL , scajToActivityUid INTEGER NOT NULL , scajToActivityId TEXT , scajEtag INTEGER NOT NULL , PRIMARY KEY (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash) )'; _stmtList.j1(element_102); // Inline function 'kotlin.collections.plusAssign' call var element_103 = 'CREATE TABLE IF NOT EXISTS XapiSessionEntity ( xseLastMod INTEGER NOT NULL , xseRegistrationHi INTEGER NOT NULL , xseRegistrationLo INTEGER NOT NULL , xseUsUid INTEGER NOT NULL , xseAccountPersonUid INTEGER NOT NULL , xseActorUid INTEGER NOT NULL , xseAccountUsername TEXT NOT NULL , xseClazzUid INTEGER NOT NULL , xseCbUid INTEGER NOT NULL , xseContentEntryUid INTEGER NOT NULL , xseContentEntryVersionUid INTEGER NOT NULL DEFAULT 0 , xseRootActivityId TEXT NOT NULL , xseRootActivityUid INTEGER NOT NULL , xseStartTime INTEGER NOT NULL , xseExpireTime INTEGER NOT NULL , xseAuth TEXT , xseCompleted INTEGER NOT NULL DEFAULT 0 , knownActorUidToPersonUids TEXT NOT NULL , xseUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_103); // Inline function 'kotlin.collections.plusAssign' call var element_104 = 'CREATE TABLE IF NOT EXISTS StatementEntityJson ( stmtJsonIdHi INTEGER NOT NULL , stmtJsonIdLo INTEGER NOT NULL , stmtEtag INTEGER NOT NULL , fullStatement TEXT , PRIMARY KEY (stmtJsonIdHi, stmtJsonIdLo) )'; _stmtList.j1(element_104); // Inline function 'kotlin.collections.plusAssign' call var element_105 = 'CREATE TABLE IF NOT EXISTS StateEntity ( seActorUid INTEGER NOT NULL , seHash INTEGER NOT NULL , seActivityUid INTEGER NOT NULL , seStateId TEXT NOT NULL , seLastMod INTEGER NOT NULL , seTimeStored INTEGER NOT NULL , seContentType TEXT NOT NULL , seCompressed INTEGER NOT NULL , seContent TEXT NOT NULL , seDeleted INTEGER NOT NULL , seRegistrationHi INTEGER , seRegistrationLo INTEGER , seH5PPreloaded INTEGER NOT NULL , seH5PSubContentId TEXT , PRIMARY KEY (seActorUid, seHash) )'; _stmtList.j1(element_105); // Inline function 'kotlin.collections.plusAssign' call var element_106 = 'CREATE TABLE IF NOT EXISTS StateDeleteCommand ( sdcActorUid INTEGER NOT NULL , sdcHash INTEGER NOT NULL , sdcActivityUid INTEGER NOT NULL , sdcStateId TEXT , sdcLastMod INTEGER NOT NULL , sdcRegistrationHi INTEGER , sdcRegistrationLo INTEGER , PRIMARY KEY (sdcActorUid, sdcHash) )'; _stmtList.j1(element_106); // Inline function 'kotlin.collections.plusAssign' call var element_107 = 'CREATE TABLE IF NOT EXISTS OutgoingReplication ( destNodeId INTEGER NOT NULL , orPk1 INTEGER NOT NULL , orPk2 INTEGER NOT NULL DEFAULT 0 , orPk3 INTEGER NOT NULL DEFAULT 0 , orPk4 INTEGER NOT NULL DEFAULT 0 , orTableId INTEGER NOT NULL , orUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_107); // Inline function 'kotlin.collections.plusAssign' call var element_108 = 'CREATE TABLE IF NOT EXISTS ReplicationOperation ( repOpRemoteNodeId INTEGER NOT NULL , repOpStatus INTEGER NOT NULL , repOpTableId INTEGER NOT NULL , PRIMARY KEY (repOpRemoteNodeId, repOpTableId) )'; _stmtList.j1(element_108); // Inline function 'kotlin.collections.plusAssign' call var element_109 = 'CREATE TABLE IF NOT EXISTS PendingRepositorySession ( endpointUrl TEXT , remoteNodeId INTEGER NOT NULL , rsUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_109); // Inline function 'kotlin.collections.plusAssign' call var element_110 = 'CREATE TABLE IF NOT EXISTS DoorNode ( auth TEXT , nodeId INTEGER NOT NULL , rel INTEGER NOT NULL DEFAULT 2 , PRIMARY KEY (nodeId) )'; _stmtList.j1(element_110); // Inline function 'kotlin.collections.plusAssign' call var element_111 = 'CREATE TABLE IF NOT EXISTS ReportQueryResult ( rqrReportUid INTEGER NOT NULL , rqrLastModified INTEGER NOT NULL , rqrLastValidated INTEGER NOT NULL , rqrReportSeriesUid INTEGER NOT NULL , rqrXAxis TEXT NOT NULL , rqrYAxis REAl NOT NULL , rqrSubgroup TEXT NOT NULL , rqrTimeZone TEXT NOT NULL , rqrUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.j1(element_111); // Inline function 'kotlin.collections.plusAssign' call var element_112 = 'CREATE INDEX idx_reportqueryresult_rqrreportuid_rqrtimezone ON ReportQueryResult (rqrReportUid, rqrTimeZone)'; _stmtList.j1(element_112); } else if (tmp0_subject === 2) { // Inline function 'kotlin.collections.plusAssign' call var element_113 = 'CREATE TABLE IF NOT EXISTS _doorwayinfo (dbVersion int primary key, dbHash varchar(255))'; _stmtList.j1(element_113); // Inline function 'kotlin.collections.plusAssign' call var element_114 = "INSERT INTO _doorwayinfo VALUES (207, '')"; _stmtList.j1(element_114); // Inline function 'kotlin.collections.plusAssign' call var element_115 = 'CREATE TABLE IF NOT EXISTS ClazzLog ( clazzLogClazzUid BIGINT NOT NULL , logDate BIGINT NOT NULL , timeRecorded BIGINT NOT NULL , clazzLogDone BOOL NOT NULL , cancellationNote TEXT , clazzLogCancelled BOOL NOT NULL , clazzLogNumPresent INTEGER NOT NULL , clazzLogNumAbsent INTEGER NOT NULL , clazzLogNumPartial INTEGER NOT NULL , clazzLogScheduleUid BIGINT NOT NULL , clazzLogStatusFlag INTEGER NOT NULL , clazzLogMSQN BIGINT NOT NULL , clazzLogLCSN BIGINT NOT NULL , clazzLogLCB INTEGER NOT NULL , clazzLogLastChangedTime BIGINT NOT NULL , clazzLogUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_115); // Inline function 'kotlin.collections.plusAssign' call var element_116 = 'CREATE TABLE IF NOT EXISTS ClazzLogAttendanceRecord ( clazzLogAttendanceRecordClazzLogUid BIGINT NOT NULL , clazzLogAttendanceRecordPersonUid BIGINT NOT NULL , attendanceStatus INTEGER NOT NULL , clazzLogAttendanceRecordMasterChangeSeqNum BIGINT NOT NULL , clazzLogAttendanceRecordLocalChangeSeqNum BIGINT NOT NULL , clazzLogAttendanceRecordLastChangedBy INTEGER NOT NULL , clazzLogAttendanceRecordLastChangedTime BIGINT NOT NULL , clazzLogAttendanceRecordUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_116); // Inline function 'kotlin.collections.plusAssign' call var element_117 = 'CREATE TABLE IF NOT EXISTS Schedule ( sceduleStartTime BIGINT NOT NULL , scheduleEndTime BIGINT NOT NULL , scheduleDay INTEGER NOT NULL , scheduleMonth INTEGER NOT NULL , scheduleFrequency INTEGER NOT NULL , umCalendarUid BIGINT NOT NULL , scheduleClazzUid BIGINT NOT NULL , scheduleMasterChangeSeqNum BIGINT NOT NULL , scheduleLocalChangeSeqNum BIGINT NOT NULL , scheduleLastChangedBy INTEGER NOT NULL , scheduleLastChangedTime BIGINT NOT NULL , scheduleActive BOOL NOT NULL , scheduleUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_117); // Inline function 'kotlin.collections.plusAssign' call var element_118 = 'CREATE TABLE IF NOT EXISTS HolidayCalendar ( umCalendarName TEXT , umCalendarCategory INTEGER NOT NULL , umCalendarActive BOOL NOT NULL , umCalendarMasterChangeSeqNum BIGINT NOT NULL , umCalendarLocalChangeSeqNum BIGINT NOT NULL , umCalendarLastChangedBy INTEGER NOT NULL , umCalendarLct BIGINT NOT NULL , umCalendarUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_118); // Inline function 'kotlin.collections.plusAssign' call var element_119 = 'CREATE TABLE IF NOT EXISTS Holiday ( holMasterCsn BIGINT NOT NULL , holLocalCsn BIGINT NOT NULL , holLastModBy INTEGER NOT NULL , holLct BIGINT NOT NULL , holActive BOOL NOT NULL , holHolidayCalendarUid BIGINT NOT NULL , holStartTime BIGINT NOT NULL , holEndTime BIGINT NOT NULL , holName TEXT , holUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_119); // Inline function 'kotlin.collections.plusAssign' call var element_120 = 'CREATE TABLE IF NOT EXISTS Person ( username TEXT , firstNames TEXT , lastName TEXT , emailAddr TEXT , phoneNum TEXT , gender INTEGER NOT NULL , active BOOL NOT NULL , dateOfBirth BIGINT NOT NULL , personAddress TEXT , personOrgId TEXT , personGroupUid BIGINT NOT NULL , personLct BIGINT NOT NULL , personCountry TEXT , personType INTEGER NOT NULL DEFAULT 0 , personMasterChangeSeqNum BIGINT NOT NULL , personLocalChangeSeqNum BIGINT NOT NULL , personLastChangedBy INTEGER NOT NULL , admin BOOL NOT NULL , personNotes TEXT , fatherName TEXT , fatherNumber TEXT , motherName TEXT , motherNum TEXT , personUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_120); // Inline function 'kotlin.collections.plusAssign' call var element_121 = 'CREATE TABLE IF NOT EXISTS Clazz ( clazzName TEXT , clazzDesc TEXT , attendanceAverage FLOAT NOT NULL , clazzHolidayUMCalendarUid BIGINT NOT NULL , clazzScheuleUMCalendarUid BIGINT NOT NULL , isClazzActive BOOL NOT NULL , clazzLocationUid BIGINT NOT NULL , clazzStartTime BIGINT NOT NULL , clazzEndTime BIGINT NOT NULL , clazzFeatures BIGINT NOT NULL , clazzSchoolUid BIGINT NOT NULL , clazzEnrolmentPolicy INTEGER NOT NULL DEFAULT 102 , clazzTerminologyUid BIGINT NOT NULL DEFAULT 25966 , clazzMasterChangeSeqNum BIGINT NOT NULL , clazzLocalChangeSeqNum BIGINT NOT NULL , clazzLastChangedBy INTEGER NOT NULL , clazzLct BIGINT NOT NULL , clazzTimeZone TEXT , clazzStudentsPersonGroupUid BIGINT NOT NULL , clazzTeachersPersonGroupUid BIGINT NOT NULL , clazzPendingStudentsPersonGroupUid BIGINT NOT NULL , clazzParentsPersonGroupUid BIGINT NOT NULL , clazzCode TEXT , clazzOwnerPersonUid BIGINT NOT NULL DEFAULT 0 , clazzUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_121); // Inline function 'kotlin.collections.plusAssign' call var element_122 = 'CREATE TABLE IF NOT EXISTS ClazzEnrolment ( clazzEnrolmentPersonUid BIGINT NOT NULL , clazzEnrolmentClazzUid BIGINT NOT NULL , clazzEnrolmentDateJoined BIGINT NOT NULL , clazzEnrolmentDateLeft BIGINT NOT NULL , clazzEnrolmentRole INTEGER NOT NULL , clazzEnrolmentAttendancePercentage FLOAT NOT NULL , clazzEnrolmentActive BOOL NOT NULL , clazzEnrolmentLeavingReasonUid BIGINT NOT NULL , clazzEnrolmentOutcome INTEGER NOT NULL , clazzEnrolmentLocalChangeSeqNum BIGINT NOT NULL , clazzEnrolmentMasterChangeSeqNum BIGINT NOT NULL , clazzEnrolmentLastChangedBy INTEGER NOT NULL , clazzEnrolmentLct BIGINT NOT NULL , clazzEnrolmentUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_122); // Inline function 'kotlin.collections.plusAssign' call var element_123 = 'CREATE INDEX index_ClazzEnrolment_clazzEnrolmentPersonUid_clazzEnrolmentClazzUid ON ClazzEnrolment (clazzEnrolmentPersonUid, clazzEnrolmentClazzUid)'; _stmtList.j1(element_123); // Inline function 'kotlin.collections.plusAssign' call var element_124 = 'CREATE INDEX index_ClazzEnrolment_clazzEnrolmentClazzUid_clazzEnrolmentPersonUid ON ClazzEnrolment (clazzEnrolmentClazzUid, clazzEnrolmentPersonUid)'; _stmtList.j1(element_124); // Inline function 'kotlin.collections.plusAssign' call var element_125 = 'CREATE INDEX index_ClazzEnrolment_clazzEnrolmentClazzUid_clazzEnrolmentRole ON ClazzEnrolment (clazzEnrolmentClazzUid, clazzEnrolmentRole)'; _stmtList.j1(element_125); // Inline function 'kotlin.collections.plusAssign' call var element_126 = 'CREATE TABLE IF NOT EXISTS LeavingReason ( leavingReasonTitle TEXT , leavingReasonMCSN BIGINT NOT NULL , leavingReasonCSN BIGINT NOT NULL , leavingReasonLCB INTEGER NOT NULL , leavingReasonLct BIGINT NOT NULL , leavingReasonUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_126); // Inline function 'kotlin.collections.plusAssign' call var element_127 = 'CREATE TABLE IF NOT EXISTS ContentEntry ( title TEXT , description TEXT , entryId TEXT , author TEXT , publisher TEXT , licenseType INTEGER NOT NULL , licenseName TEXT , licenseUrl TEXT , sourceUrl TEXT , thumbnailUrl TEXT , lastModified BIGINT NOT NULL , primaryLanguageUid BIGINT NOT NULL , languageVariantUid BIGINT NOT NULL , contentFlags INTEGER NOT NULL , leaf BOOL NOT NULL , publik BOOL NOT NULL , ceInactive BOOL NOT NULL , completionCriteria INTEGER NOT NULL , minScore INTEGER NOT NULL , contentTypeFlag INTEGER NOT NULL , contentOwner BIGINT NOT NULL , contentOwnerType INTEGER NOT NULL DEFAULT 1 , contentEntryLocalChangeSeqNum BIGINT NOT NULL , contentEntryMasterChangeSeqNum BIGINT NOT NULL , contentEntryLastChangedBy INTEGER NOT NULL , contentEntryLct BIGINT NOT NULL , contentEntryUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_127); // Inline function 'kotlin.collections.plusAssign' call var element_128 = 'CREATE TABLE IF NOT EXISTS ContentEntryContentCategoryJoin ( ceccjContentEntryUid BIGINT NOT NULL , ceccjContentCategoryUid BIGINT NOT NULL , ceccjLocalChangeSeqNum BIGINT NOT NULL , ceccjMasterChangeSeqNum BIGINT NOT NULL , ceccjLastChangedBy INTEGER NOT NULL , ceccjLct BIGINT NOT NULL , ceccjUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_128); // Inline function 'kotlin.collections.plusAssign' call var element_129 = 'CREATE TABLE IF NOT EXISTS ContentEntryParentChildJoin ( cepcjLocalChangeSeqNum BIGINT NOT NULL , cepcjMasterChangeSeqNum BIGINT NOT NULL , cepcjLastChangedBy INTEGER NOT NULL , cepcjLct BIGINT NOT NULL , cepcjDeleted BOOL NOT NULL DEFAULT false, cepcjParentContentEntryUid BIGINT NOT NULL , cepcjChildContentEntryUid BIGINT NOT NULL , childIndex INTEGER NOT NULL , cepcjUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_129); // Inline function 'kotlin.collections.plusAssign' call var element_130 = 'CREATE INDEX parent_child ON ContentEntryParentChildJoin (cepcjChildContentEntryUid, cepcjParentContentEntryUid)'; _stmtList.j1(element_130); // Inline function 'kotlin.collections.plusAssign' call var element_131 = 'CREATE TABLE IF NOT EXISTS ContentEntryRelatedEntryJoin ( cerejContentEntryUid BIGINT NOT NULL , cerejRelatedEntryUid BIGINT NOT NULL , cerejLastChangedBy INTEGER NOT NULL , relType INTEGER NOT NULL , comment TEXT , cerejRelLanguageUid BIGINT NOT NULL , cerejLocalChangeSeqNum BIGINT NOT NULL , cerejMasterChangeSeqNum BIGINT NOT NULL , cerejLct BIGINT NOT NULL , cerejUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_131); // Inline function 'kotlin.collections.plusAssign' call var element_132 = 'CREATE TABLE IF NOT EXISTS ContentCategorySchema ( schemaName TEXT , schemaUrl TEXT , contentCategorySchemaLocalChangeSeqNum BIGINT NOT NULL , contentCategorySchemaMasterChangeSeqNum BIGINT NOT NULL , contentCategorySchemaLastChangedBy INTEGER NOT NULL , contentCategorySchemaLct BIGINT NOT NULL , contentCategorySchemaUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_132); // Inline function 'kotlin.collections.plusAssign' call var element_133 = 'CREATE TABLE IF NOT EXISTS ContentCategory ( ctnCatContentCategorySchemaUid BIGINT NOT NULL , name TEXT , contentCategoryLocalChangeSeqNum BIGINT NOT NULL , contentCategoryMasterChangeSeqNum BIGINT NOT NULL , contentCategoryLastChangedBy INTEGER NOT NULL , contentCategoryLct BIGINT NOT NULL , contentCategoryUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_133); // Inline function 'kotlin.collections.plusAssign' call var element_134 = 'CREATE TABLE IF NOT EXISTS Language ( name TEXT , iso_639_1_standard TEXT , iso_639_2_standard TEXT , iso_639_3_standard TEXT , Language_Type TEXT , languageActive BOOL NOT NULL , langLocalChangeSeqNum BIGINT NOT NULL , langMasterChangeSeqNum BIGINT NOT NULL , langLastChangedBy INTEGER NOT NULL , langLct BIGINT NOT NULL , langUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_134); // Inline function 'kotlin.collections.plusAssign' call var element_135 = 'CREATE TABLE IF NOT EXISTS LanguageVariant ( langUid BIGINT NOT NULL , countryCode TEXT , name TEXT , langVariantLocalChangeSeqNum BIGINT NOT NULL , langVariantMasterChangeSeqNum BIGINT NOT NULL , langVariantLastChangedBy INTEGER NOT NULL , langVariantLct BIGINT NOT NULL , langVariantUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_135); // Inline function 'kotlin.collections.plusAssign' call var element_136 = 'CREATE TABLE IF NOT EXISTS PersonAuth ( passwordHash TEXT , personAuthStatus INTEGER NOT NULL , personAuthUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_136); // Inline function 'kotlin.collections.plusAssign' call var element_137 = 'CREATE TABLE IF NOT EXISTS PersonGroup ( groupMasterCsn BIGINT NOT NULL , groupLocalCsn BIGINT NOT NULL , groupLastChangedBy INTEGER NOT NULL , groupLct BIGINT NOT NULL , groupName TEXT , groupActive BOOL NOT NULL , personGroupFlag INTEGER NOT NULL , groupUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_137); // Inline function 'kotlin.collections.plusAssign' call var element_138 = 'CREATE TABLE IF NOT EXISTS PersonGroupMember ( groupMemberActive BOOL NOT NULL , groupMemberPersonUid BIGINT NOT NULL , groupMemberGroupUid BIGINT NOT NULL , groupMemberMasterCsn BIGINT NOT NULL , groupMemberLocalCsn BIGINT NOT NULL , groupMemberLastChangedBy INTEGER NOT NULL , groupMemberLct BIGINT NOT NULL , groupMemberUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_138); // Inline function 'kotlin.collections.plusAssign' call var element_139 = 'CREATE TABLE IF NOT EXISTS PersonPicture ( personPictureLct BIGINT NOT NULL , personPictureUri TEXT , personPictureThumbnailUri TEXT , fileSize INTEGER NOT NULL , personPictureActive BOOL NOT NULL , personPictureUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_139); // Inline function 'kotlin.collections.plusAssign' call var element_140 = 'CREATE TABLE IF NOT EXISTS VerbEntity ( verbUid BIGINT PRIMARY KEY NOT NULL , verbUrlId TEXT , verbDeleted BOOL NOT NULL , verbLct BIGINT NOT NULL )'; _stmtList.j1(element_140); // Inline function 'kotlin.collections.plusAssign' call var element_141 = 'CREATE TABLE IF NOT EXISTS ActivityEntity ( actUid BIGINT PRIMARY KEY NOT NULL , actIdIri TEXT , actType TEXT , actMoreInfo TEXT , actInteractionType INTEGER NOT NULL , actCorrectResponsePatterns TEXT , actLct BIGINT NOT NULL )'; _stmtList.j1(element_141); // Inline function 'kotlin.collections.plusAssign' call var element_142 = 'CREATE TABLE IF NOT EXISTS StatementEntity ( statementIdHi BIGINT NOT NULL , statementIdLo BIGINT NOT NULL , statementActorPersonUid BIGINT NOT NULL , statementVerbUid BIGINT NOT NULL , statementObjectType INTEGER NOT NULL , statementObjectUid1 BIGINT NOT NULL , statementObjectUid2 BIGINT NOT NULL , statementActorUid BIGINT NOT NULL , authorityActorUid BIGINT NOT NULL , teamUid BIGINT NOT NULL , resultCompletion BOOL , resultSuccess BOOL , resultScoreScaled FLOAT , resultScoreRaw FLOAT , resultScoreMin FLOAT , resultScoreMax FLOAT , resultDuration BIGINT , resultResponse TEXT , timestamp BIGINT NOT NULL , stored BIGINT NOT NULL , contextRegistrationHi BIGINT NOT NULL , contextRegistrationLo BIGINT NOT NULL , contextRegistrationHash BIGINT NOT NULL , contextPlatform TEXT , contextStatementRefIdHi BIGINT NOT NULL , contextStatementRefIdLo BIGINT NOT NULL , contextInstructorActorUid BIGINT NOT NULL , statementLct BIGINT NOT NULL , extensionProgress INTEGER , completionOrProgress BOOL NOT NULL , statementContentEntryUid BIGINT NOT NULL , statementLearnerGroupUid BIGINT NOT NULL , statementClazzUid BIGINT NOT NULL , statementCbUid BIGINT NOT NULL , statementDoorNode BIGINT NOT NULL , isSubStatement BOOL NOT NULL , PRIMARY KEY (statementIdHi, statementIdLo) )'; _stmtList.j1(element_142); // Inline function 'kotlin.collections.plusAssign' call var element_143 = 'CREATE INDEX idx_stmt_actor_person ON StatementEntity (statementActorPersonUid)'; _stmtList.j1(element_143); // Inline function 'kotlin.collections.plusAssign' call var element_144 = 'CREATE INDEX idx_statement_clazz_person ON StatementEntity (statementClazzUid, statementActorPersonUid)'; _stmtList.j1(element_144); // Inline function 'kotlin.collections.plusAssign' call var element_145 = 'CREATE INDEX idx_statement_cbuid_actor ON StatementEntity (statementCbUid, statementActorUid)'; _stmtList.j1(element_145); // Inline function 'kotlin.collections.plusAssign' call var element_146 = 'CREATE TABLE IF NOT EXISTS ActorEntity ( actorPersonUid BIGINT NOT NULL , actorName TEXT , actorMbox TEXT , actorMbox_sha1sum TEXT , actorOpenid TEXT , actorAccountName TEXT , actorAccountHomePage TEXT , actorEtag BIGINT NOT NULL , actorLct BIGINT NOT NULL , actorObjectType INTEGER NOT NULL , actorUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_146); // Inline function 'kotlin.collections.plusAssign' call var element_147 = 'CREATE INDEX idx_actorentity_uid_personuid ON ActorEntity (actorPersonUid)'; _stmtList.j1(element_147); // Inline function 'kotlin.collections.plusAssign' call var element_148 = 'CREATE INDEX idx_actorentity_actorobjecttype ON ActorEntity (actorObjectType)'; _stmtList.j1(element_148); // Inline function 'kotlin.collections.plusAssign' call var element_149 = 'CREATE TABLE IF NOT EXISTS SyncNode ( nodeClientId BIGINT NOT NULL , PRIMARY KEY (nodeClientId) )'; _stmtList.j1(element_149); // Inline function 'kotlin.collections.plusAssign' call var element_150 = 'CREATE TABLE IF NOT EXISTS Comments ( commentsText TEXT , commentsEntityUid BIGINT NOT NULL , commentsStatus INTEGER NOT NULL , commentsFromPersonUid BIGINT NOT NULL , commentsForSubmitterUid BIGINT NOT NULL , commentsFromSubmitterUid BIGINT NOT NULL , commentsFlagged BOOL NOT NULL , commentsDeleted BOOL NOT NULL , commentsDateTimeAdded BIGINT NOT NULL , commentsLct BIGINT NOT NULL , commentsUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_150); // Inline function 'kotlin.collections.plusAssign' call var element_151 = 'CREATE INDEX idx_comments_entity_submitter ON Comments (commentsEntityUid, commentsForSubmitterUid)'; _stmtList.j1(element_151); // Inline function 'kotlin.collections.plusAssign' call var element_152 = 'CREATE TABLE IF NOT EXISTS Report ( reportTitle TEXT , reportOptions TEXT , reportIsTemplate BOOL NOT NULL , reportLastModTime BIGINT NOT NULL , reportOwnerPersonUid BIGINT NOT NULL DEFAULT 0 , reportUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_152); // Inline function 'kotlin.collections.plusAssign' call var element_153 = 'CREATE TABLE IF NOT EXISTS Site ( sitePcsn BIGINT NOT NULL , siteLcsn BIGINT NOT NULL , siteLcb INTEGER NOT NULL , siteLct BIGINT NOT NULL , siteName TEXT , guestLogin BOOL NOT NULL , registrationAllowed BOOL NOT NULL , authSalt TEXT , siteUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_153); // Inline function 'kotlin.collections.plusAssign' call var element_154 = 'CREATE TABLE IF NOT EXISTS SiteTerms ( termsHtml TEXT , sTermsLang TEXT , sTermsLangUid BIGINT NOT NULL , sTermsActive BOOL NOT NULL , sTermsLastChangedBy INTEGER NOT NULL , sTermsPrimaryCsn BIGINT NOT NULL , sTermsLocalCsn BIGINT NOT NULL , sTermsLct BIGINT NOT NULL , sTermsUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_154); // Inline function 'kotlin.collections.plusAssign' call var element_155 = 'CREATE TABLE IF NOT EXISTS PersonParentJoin ( ppjPcsn BIGINT NOT NULL , ppjLcsn BIGINT NOT NULL , ppjLcb INTEGER NOT NULL , ppjLct BIGINT NOT NULL , ppjParentPersonUid BIGINT NOT NULL , ppjMinorPersonUid BIGINT NOT NULL , ppjRelationship INTEGER NOT NULL , ppjEmail TEXT , ppjPhone TEXT , ppjInactive BOOL NOT NULL , ppjStatus INTEGER NOT NULL , ppjApprovalTiemstamp BIGINT NOT NULL , ppjApprovalIpAddr TEXT , ppjUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_155); // Inline function 'kotlin.collections.plusAssign' call var element_156 = 'CREATE TABLE IF NOT EXISTS ScopedGrant ( sgPcsn BIGINT NOT NULL , sgLcsn BIGINT NOT NULL , sgLcb INTEGER NOT NULL , sgLct BIGINT NOT NULL , sgTableId INTEGER NOT NULL , sgEntityUid BIGINT NOT NULL , sgPermissions BIGINT NOT NULL , sgGroupUid BIGINT NOT NULL , sgIndex INTEGER NOT NULL , sgFlags INTEGER NOT NULL , sgUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_156); // Inline function 'kotlin.collections.plusAssign' call var element_157 = 'CREATE INDEX idx_group_to_entity ON ScopedGrant (sgGroupUid, sgPermissions, sgTableId, sgEntityUid)'; _stmtList.j1(element_157); // Inline function 'kotlin.collections.plusAssign' call var element_158 = 'CREATE INDEX idx_entity_to_group ON ScopedGrant (sgTableId, sgEntityUid, sgPermissions, sgGroupUid)'; _stmtList.j1(element_158); // Inline function 'kotlin.collections.plusAssign' call var element_159 = 'CREATE TABLE IF NOT EXISTS ErrorReport ( errPcsn BIGINT NOT NULL , errLcsn BIGINT NOT NULL , errLcb INTEGER NOT NULL , errLct BIGINT NOT NULL , severity INTEGER NOT NULL , timestamp BIGINT NOT NULL , presenterUri TEXT , appVersion TEXT , versionCode INTEGER NOT NULL , errorCode INTEGER NOT NULL , operatingSys TEXT , osVersion TEXT , stackTrace TEXT , message TEXT , errUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_159); // Inline function 'kotlin.collections.plusAssign' call var element_160 = 'CREATE TABLE IF NOT EXISTS ClazzAssignment ( caTitle TEXT , caDescription TEXT , caGroupUid BIGINT NOT NULL DEFAULT 0 , caActive BOOL NOT NULL , caClassCommentEnabled BOOL NOT NULL , caPrivateCommentsEnabled BOOL NOT NULL DEFAULT true, caCompletionCriteria INTEGER NOT NULL DEFAULT 100 , caRequireFileSubmission BOOL NOT NULL DEFAULT true, caFileType INTEGER NOT NULL DEFAULT 0 , caSizeLimit INTEGER NOT NULL DEFAULT 50 , caNumberOfFiles INTEGER NOT NULL DEFAULT 1 , caSubmissionPolicy INTEGER NOT NULL DEFAULT 1 , caMarkingType INTEGER NOT NULL DEFAULT 1 , caRequireTextSubmission BOOL NOT NULL DEFAULT true, caTextLimitType INTEGER NOT NULL DEFAULT 1 , caTextLimit INTEGER NOT NULL DEFAULT 500 , caXObjectUid BIGINT NOT NULL DEFAULT 0 , caClazzUid BIGINT NOT NULL , caPeerReviewerCount INTEGER NOT NULL DEFAULT 0 , caLocalChangeSeqNum BIGINT NOT NULL , caMasterChangeSeqNum BIGINT NOT NULL , caLastChangedBy INTEGER NOT NULL , caLct BIGINT NOT NULL , caUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_160); // Inline function 'kotlin.collections.plusAssign' call var element_161 = 'CREATE TABLE IF NOT EXISTS CourseAssignmentSubmission ( casAssignmentUid BIGINT NOT NULL , casSubmitterUid BIGINT NOT NULL , casSubmitterPersonUid BIGINT NOT NULL , casText TEXT , casType INTEGER NOT NULL , casTimestamp BIGINT NOT NULL , casClazzUid BIGINT NOT NULL DEFAULT 0 , casUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_161); // Inline function 'kotlin.collections.plusAssign' call var element_162 = 'CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionFile ( casaSubmissionUid BIGINT NOT NULL , casaSubmitterUid BIGINT NOT NULL DEFAULT 0 , casaCaUid BIGINT NOT NULL , casaClazzUid BIGINT NOT NULL , casaMimeType TEXT , casaFileName TEXT , casaUri TEXT , casaSize INTEGER NOT NULL , casaTimestamp BIGINT NOT NULL , casaDeleted BOOL NOT NULL DEFAULT false, casaUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_162); // Inline function 'kotlin.collections.plusAssign' call var element_163 = 'CREATE TABLE IF NOT EXISTS CourseAssignmentMark ( camAssignmentUid BIGINT NOT NULL , camSubmitterUid BIGINT NOT NULL , camMarkerSubmitterUid BIGINT NOT NULL DEFAULT 0 , camMarkerPersonUid BIGINT NOT NULL DEFAULT 0 , camMarkerComment TEXT , camMark FLOAT NOT NULL , camMaxMark FLOAT NOT NULL DEFAULT 1 , camPenalty FLOAT NOT NULL , camLct BIGINT NOT NULL , camClazzUid BIGINT NOT NULL DEFAULT 0 , camUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_163); // Inline function 'kotlin.collections.plusAssign' call var element_164 = 'CREATE TABLE IF NOT EXISTS PeerReviewerAllocation ( praMarkerSubmitterUid BIGINT NOT NULL , praToMarkerSubmitterUid BIGINT NOT NULL , praAssignmentUid BIGINT NOT NULL , praActive BOOL NOT NULL , praLct BIGINT NOT NULL , praUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_164); // Inline function 'kotlin.collections.plusAssign' call var element_165 = 'CREATE TABLE IF NOT EXISTS PersonAuth2 ( pauthUid BIGINT PRIMARY KEY NOT NULL , pauthMechanism TEXT , pauthAuth TEXT , pauthLcsn BIGINT NOT NULL , pauthPcsn BIGINT NOT NULL , pauthLcb BIGINT NOT NULL , pauthLct BIGINT NOT NULL )'; _stmtList.j1(element_165); // Inline function 'kotlin.collections.plusAssign' call var element_166 = 'CREATE TABLE IF NOT EXISTS UserSession ( usPcsn BIGINT NOT NULL , usLcsn BIGINT NOT NULL , usLcb BIGINT NOT NULL , usLct BIGINT NOT NULL , usPersonUid BIGINT NOT NULL , usClientNodeId BIGINT NOT NULL , usStartTime BIGINT NOT NULL , usEndTime BIGINT NOT NULL , usStatus INTEGER NOT NULL , usReason INTEGER NOT NULL , usAuth TEXT , usSessionType INTEGER NOT NULL , usUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_166); // Inline function 'kotlin.collections.plusAssign' call var element_167 = 'CREATE INDEX person_status_node_idx ON UserSession (usPersonUid, usStatus, usClientNodeId)'; _stmtList.j1(element_167); // Inline function 'kotlin.collections.plusAssign' call var element_168 = 'CREATE INDEX node_status_person_idx ON UserSession (usClientNodeId, usStatus, usPersonUid)'; _stmtList.j1(element_168); // Inline function 'kotlin.collections.plusAssign' call var element_169 = 'CREATE TABLE IF NOT EXISTS ContentJob ( toUri TEXT , cjProgress BIGINT NOT NULL , cjTotal BIGINT NOT NULL , cjNotificationTitle TEXT , cjIsMeteredAllowed BOOL NOT NULL , params TEXT , cjLct BIGINT NOT NULL , cjUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_169); // Inline function 'kotlin.collections.plusAssign' call var element_170 = 'CREATE TABLE IF NOT EXISTS ContentEntryImportJob ( sourceUri TEXT , cjiOriginalFilename TEXT , cjiContentEntryUid BIGINT NOT NULL , cjiParentContentEntryUid BIGINT NOT NULL , cjiContentEntryVersion BIGINT NOT NULL , cjiItemProgress BIGINT NOT NULL , cjiItemTotal BIGINT NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiPluginId INTEGER NOT NULL , cjiParentCjiUid BIGINT NOT NULL , cjiStartTime BIGINT NOT NULL , cjiFinishTime BIGINT NOT NULL , cjiContentDeletedOnCancellation BOOL NOT NULL , cjiCompressionLevel INTEGER NOT NULL DEFAULT 3 , cjiError TEXT , cjiErrorDismissed BOOL NOT NULL , cjiOwnerPersonUid BIGINT NOT NULL , cjiParams TEXT , cjiUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_170); // Inline function 'kotlin.collections.plusAssign' call var element_171 = 'CREATE INDEX index_ContentEntryImportJob_cjiContentEntryUid_cjiFinishTime ON ContentEntryImportJob (cjiContentEntryUid, cjiFinishTime)'; _stmtList.j1(element_171); // Inline function 'kotlin.collections.plusAssign' call var element_172 = 'CREATE TABLE IF NOT EXISTS CourseBlock ( cbType INTEGER NOT NULL , cbIndentLevel INTEGER NOT NULL , cbModuleParentBlockUid BIGINT NOT NULL , cbTitle TEXT , cbDescription TEXT , cbCompletionCriteria INTEGER NOT NULL , cbHideUntilDate BIGINT NOT NULL , cbDeadlineDate BIGINT NOT NULL , cbLateSubmissionPenalty INTEGER NOT NULL , cbGracePeriodDate BIGINT NOT NULL , cbMaxPoints FLOAT , cbMinPoints FLOAT , cbIndex INTEGER NOT NULL , cbClazzUid BIGINT NOT NULL , cbClazzSourcedId TEXT , cbActive BOOL NOT NULL , cbHidden BOOL NOT NULL , cbEntityUid BIGINT NOT NULL , cbLct BIGINT NOT NULL , cbSourcedId TEXT , cbMetadata TEXT , cbCreatedByAppId TEXT , cbUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_172); // Inline function 'kotlin.collections.plusAssign' call var element_173 = 'CREATE INDEX idx_courseblock_cbclazzuid ON CourseBlock (cbClazzUid)'; _stmtList.j1(element_173); // Inline function 'kotlin.collections.plusAssign' call var element_174 = 'CREATE TABLE IF NOT EXISTS CourseTerminology ( ctTitle TEXT , ctTerminology TEXT , ctLct BIGINT NOT NULL , ctUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_174); // Inline function 'kotlin.collections.plusAssign' call var element_175 = 'CREATE TABLE IF NOT EXISTS CourseGroupSet ( cgsName TEXT , cgsTotalGroups INTEGER NOT NULL , cgsActive BOOL NOT NULL , cgsClazzUid BIGINT NOT NULL , cgsLct BIGINT NOT NULL , cgsUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_175); // Inline function 'kotlin.collections.plusAssign' call var element_176 = 'CREATE TABLE IF NOT EXISTS CourseGroupMember ( cgmSetUid BIGINT NOT NULL , cgmGroupNumber INTEGER NOT NULL , cgmPersonUid BIGINT NOT NULL , cgmLct BIGINT NOT NULL , cgmUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_176); // Inline function 'kotlin.collections.plusAssign' call var element_177 = 'CREATE TABLE IF NOT EXISTS ContentEntryPicture ( cepContentEntryUid BIGINT NOT NULL , cepUri TEXT , cepMd5 TEXT , cepFileSize INTEGER NOT NULL , cepTimestamp BIGINT NOT NULL , cepMimeType TEXT , cepActive BOOL NOT NULL , cepUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_177); // Inline function 'kotlin.collections.plusAssign' call var element_178 = 'CREATE TABLE IF NOT EXISTS ActivityInteractionEntity ( aieActivityUid BIGINT NOT NULL , aieHash BIGINT NOT NULL , aieProp INTEGER NOT NULL , aieId TEXT , aieLastMod BIGINT NOT NULL , aieIsDeleted BOOL NOT NULL , PRIMARY KEY (aieActivityUid, aieHash) )'; _stmtList.j1(element_178); // Inline function 'kotlin.collections.plusAssign' call var element_179 = 'CREATE TABLE IF NOT EXISTS CoursePicture ( coursePictureLct BIGINT NOT NULL , coursePictureUri TEXT , coursePictureThumbnailUri TEXT , coursePictureActive BOOL NOT NULL , coursePictureUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_179); // Inline function 'kotlin.collections.plusAssign' call var element_180 = 'CREATE TABLE IF NOT EXISTS DiscussionPost ( discussionPostReplyToPostUid BIGINT NOT NULL , discussionPostTitle TEXT , discussionPostMessage TEXT , discussionPostStartDate BIGINT NOT NULL , discussionPostCourseBlockUid BIGINT NOT NULL , dpDeleted BOOL NOT NULL , discussionPostStartedPersonUid BIGINT NOT NULL , discussionPostClazzUid BIGINT NOT NULL , discussionPostLct BIGINT NOT NULL , discussionPostVisible BOOL NOT NULL , discussionPostArchive BOOL NOT NULL , discussionPostUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_180); // Inline function 'kotlin.collections.plusAssign' call var element_181 = 'CREATE TABLE IF NOT EXISTS ExternalAppPermission ( eapPersonUid BIGINT NOT NULL , eapPackageId TEXT , eapStartTime BIGINT NOT NULL , eapExpireTime BIGINT NOT NULL , eapAuthToken TEXT , eapAndroidAccountName TEXT , eapUid SERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_181); // Inline function 'kotlin.collections.plusAssign' call var element_182 = 'CREATE TABLE IF NOT EXISTS Message ( messageSenderPersonUid BIGINT NOT NULL , messageToPersonUid BIGINT NOT NULL , messageText TEXT , messageTimestamp BIGINT NOT NULL , messageLct BIGINT NOT NULL , messageUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_182); // Inline function 'kotlin.collections.plusAssign' call var element_183 = 'CREATE INDEX message_idx_send_to_time ON Message (messageSenderPersonUid, messageToPersonUid, messageTimestamp)'; _stmtList.j1(element_183); // Inline function 'kotlin.collections.plusAssign' call var element_184 = 'CREATE TABLE IF NOT EXISTS StudentResult ( srUid BIGINT PRIMARY KEY NOT NULL , srSourcedId TEXT , srCourseBlockUid BIGINT NOT NULL , srLineItemSourcedId TEXT , srLineItemHref TEXT , srClazzUid BIGINT NOT NULL , srAssignmentUid BIGINT NOT NULL , srStatus INTEGER NOT NULL , srMetaData TEXT , srStudentPersonUid BIGINT NOT NULL , srStudentPersonSourcedId TEXT , srStudentGroupId INTEGER NOT NULL , srMarkerPersonUid BIGINT NOT NULL , srMarkerGroupId INTEGER NOT NULL , srScoreStatus INTEGER NOT NULL , srScore FLOAT NOT NULL , srScoreDate BIGINT NOT NULL , srLastModified BIGINT NOT NULL , srComment TEXT , srAppId TEXT , srDeleted BOOL NOT NULL )'; _stmtList.j1(element_184); // Inline function 'kotlin.collections.plusAssign' call var element_185 = 'CREATE TABLE IF NOT EXISTS ContentEntryVersion ( cevContentEntryUid BIGINT NOT NULL , cevOpenUri TEXT , cevContentType TEXT , cevManifestUrl TEXT , cevSize BIGINT NOT NULL , cevInActive BOOL NOT NULL , cevLastModified BIGINT NOT NULL , cevLct BIGINT NOT NULL , cevStorageSize BIGINT NOT NULL DEFAULT 0 , cevOriginalSize BIGINT NOT NULL DEFAULT 0 , cevUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_185); // Inline function 'kotlin.collections.plusAssign' call var element_186 = 'CREATE TABLE IF NOT EXISTS TransferJob ( tjType INTEGER NOT NULL , tjStatus INTEGER NOT NULL , tjName TEXT , tjUuid TEXT , tjTableId INTEGER NOT NULL DEFAULT 0 , tjEntityUid BIGINT NOT NULL DEFAULT 0 , tjTimeCreated BIGINT NOT NULL DEFAULT 0 , tjCreationType INTEGER NOT NULL DEFAULT 0 , tjOiUid BIGINT NOT NULL DEFAULT 0 , tjUid SERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_186); // Inline function 'kotlin.collections.plusAssign' call var element_187 = 'CREATE INDEX TransferJob_idx_tjTableId_EntityUid ON TransferJob (tjTableId, tjEntityUid)'; _stmtList.j1(element_187); // Inline function 'kotlin.collections.plusAssign' call var element_188 = 'CREATE TABLE IF NOT EXISTS TransferJobItem ( tjiTjUid INTEGER NOT NULL , tjTotalSize BIGINT NOT NULL , tjTransferred BIGINT NOT NULL , tjAttemptCount INTEGER NOT NULL , tjiSrc TEXT , tjiDest TEXT , tjiType INTEGER NOT NULL , tjiStatus INTEGER NOT NULL , tjiTableId INTEGER NOT NULL , tjiEntityUid BIGINT NOT NULL , tjiEntityEtag BIGINT NOT NULL DEFAULT 0 , tjiLockIdToRelease BIGINT NOT NULL DEFAULT 0 , tjiPartialTmpFile TEXT , tjiUid SERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_188); // Inline function 'kotlin.collections.plusAssign' call var element_189 = 'CREATE INDEX tji_table_entity_etag ON TransferJobItem (tjiTableId, tjiEntityUid, tjiEntityEtag)'; _stmtList.j1(element_189); // Inline function 'kotlin.collections.plusAssign' call var element_190 = 'CREATE INDEX transferjob_tjuid ON TransferJobItem (tjiTjUid)'; _stmtList.j1(element_190); // Inline function 'kotlin.collections.plusAssign' call var element_191 = 'CREATE TABLE IF NOT EXISTS CacheLockJoin ( cljTableId INTEGER NOT NULL , cljEntityUid BIGINT NOT NULL , cljUrl TEXT , cljLockId BIGINT NOT NULL , cljStatus INTEGER NOT NULL , cljType INTEGER NOT NULL , cljOiUid BIGINT NOT NULL DEFAULT 0 , cljId SERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_191); // Inline function 'kotlin.collections.plusAssign' call var element_192 = 'CREATE INDEX idx_clj_table_entity_url ON CacheLockJoin (cljTableId, cljEntityUid, cljUrl)'; _stmtList.j1(element_192); // Inline function 'kotlin.collections.plusAssign' call var element_193 = 'CREATE INDEX idx_clj_offline_item_uid ON CacheLockJoin (cljOiUid)'; _stmtList.j1(element_193); // Inline function 'kotlin.collections.plusAssign' call var element_194 = 'CREATE TABLE IF NOT EXISTS OfflineItem ( oiNodeId BIGINT NOT NULL , oiClazzUid BIGINT NOT NULL , oiCourseBlockUid BIGINT NOT NULL , oiContentEntryUid BIGINT NOT NULL , oiActive BOOL NOT NULL , oiLct BIGINT NOT NULL , oiUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_194); // Inline function 'kotlin.collections.plusAssign' call var element_195 = 'CREATE INDEX offline_item_node_content_entry ON OfflineItem (oiNodeId, oiContentEntryUid)'; _stmtList.j1(element_195); // Inline function 'kotlin.collections.plusAssign' call var element_196 = 'CREATE TABLE IF NOT EXISTS OfflineItemPendingTransferJob ( oiptjOiUid BIGINT NOT NULL , oiptjTableId INTEGER NOT NULL , oiptjEntityUid BIGINT NOT NULL , oiptjUrl TEXT , oiptjType INTEGER NOT NULL , oiptjId SERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_196); // Inline function 'kotlin.collections.plusAssign' call var element_197 = 'CREATE TABLE IF NOT EXISTS DeletedItem ( delItemName TEXT , delItemIconUri TEXT , delItemLastModTime BIGINT NOT NULL , delItemTimeDeleted BIGINT NOT NULL , delItemEntityTable INTEGER NOT NULL , delItemEntityUid BIGINT NOT NULL , delItemDeletedByPersonUid BIGINT NOT NULL , delItemStatus INTEGER NOT NULL , delItemIsFolder BOOL NOT NULL DEFAULT false, delItemUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_197); // Inline function 'kotlin.collections.plusAssign' call var element_198 = 'CREATE INDEX delitem_idx_status_time ON DeletedItem (delItemStatus, delItemTimeDeleted)'; _stmtList.j1(element_198); // Inline function 'kotlin.collections.plusAssign' call var element_199 = 'CREATE TABLE IF NOT EXISTS EnrolmentRequest ( erClazzUid BIGINT NOT NULL , erClazzName TEXT , erPersonUid BIGINT NOT NULL , erPersonFullname TEXT , erPersonPictureUri TEXT , erPersonUsername TEXT , erRole INTEGER NOT NULL , erRequestTime BIGINT NOT NULL , erStatus INTEGER NOT NULL , erStatusSetByPersonUid BIGINT NOT NULL , erDeleted BOOL NOT NULL , erStatusSetAuth TEXT , erLastModified BIGINT NOT NULL , erUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_199); // Inline function 'kotlin.collections.plusAssign' call var element_200 = 'CREATE INDEX idx_enrolmentrequest_by_clazz ON EnrolmentRequest (erClazzUid, erStatus)'; _stmtList.j1(element_200); // Inline function 'kotlin.collections.plusAssign' call var element_201 = 'CREATE INDEX idx_enrolmentrequest_by_person ON EnrolmentRequest (erPersonUid, erStatus)'; _stmtList.j1(element_201); // Inline function 'kotlin.collections.plusAssign' call var element_202 = 'CREATE TABLE IF NOT EXISTS CoursePermission ( cpLastModified BIGINT NOT NULL , cpClazzUid BIGINT NOT NULL , cpToEnrolmentRole INTEGER NOT NULL , cpToPersonUid BIGINT NOT NULL , cpToGroupUid BIGINT NOT NULL , cpPermissionsFlag BIGINT NOT NULL , cpIsDeleted BOOL NOT NULL , cpUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_202); // Inline function 'kotlin.collections.plusAssign' call var element_203 = 'CREATE INDEX idx_coursepermission_clazzuid ON CoursePermission (cpClazzUid)'; _stmtList.j1(element_203); // Inline function 'kotlin.collections.plusAssign' call var element_204 = 'CREATE TABLE IF NOT EXISTS SystemPermission ( spToPersonUid BIGINT NOT NULL , spToGroupUid BIGINT NOT NULL , spPermissionsFlag BIGINT NOT NULL , spLastModified BIGINT NOT NULL , spIsDeleted BOOL NOT NULL , spUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_204); // Inline function 'kotlin.collections.plusAssign' call var element_205 = 'CREATE INDEX idx_systempermission_personuid ON SystemPermission (spToPersonUid)'; _stmtList.j1(element_205); // Inline function 'kotlin.collections.plusAssign' call var element_206 = 'CREATE TABLE IF NOT EXISTS CourseBlockPicture ( cbpUid BIGINT PRIMARY KEY NOT NULL , cbpLct BIGINT NOT NULL , cbpPictureUri TEXT , cbpThumbnailUri TEXT )'; _stmtList.j1(element_206); // Inline function 'kotlin.collections.plusAssign' call var element_207 = 'CREATE TABLE IF NOT EXISTS ContentEntryPicture2 ( cepUid BIGINT PRIMARY KEY NOT NULL , cepLct BIGINT NOT NULL , cepPictureUri TEXT , cepThumbnailUri TEXT )'; _stmtList.j1(element_207); // Inline function 'kotlin.collections.plusAssign' call var element_208 = 'CREATE TABLE IF NOT EXISTS TransferJobError ( tjeTjUid INTEGER NOT NULL , tjeTime BIGINT NOT NULL , tjeErrorStr TEXT , tjeDismissed BOOL NOT NULL , tjeId SERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_208); // Inline function 'kotlin.collections.plusAssign' call var element_209 = 'CREATE INDEX idx_transferjoberror_tjetjuid ON TransferJobError (tjeTjUid)'; _stmtList.j1(element_209); // Inline function 'kotlin.collections.plusAssign' call var element_210 = 'CREATE TABLE IF NOT EXISTS VerbLangMapEntry ( vlmeVerbUid BIGINT NOT NULL , vlmeLangHash BIGINT NOT NULL , vlmeLangCode TEXT , vlmeEntryString TEXT , vlmeLastModified BIGINT NOT NULL , PRIMARY KEY (vlmeVerbUid, vlmeLangHash) )'; _stmtList.j1(element_210); // Inline function 'kotlin.collections.plusAssign' call var element_211 = 'CREATE TABLE IF NOT EXISTS GroupMemberActorJoin ( gmajGroupActorUid BIGINT NOT NULL , gmajMemberActorUid BIGINT NOT NULL , gmajLastMod BIGINT NOT NULL , PRIMARY KEY (gmajGroupActorUid, gmajMemberActorUid) )'; _stmtList.j1(element_211); // Inline function 'kotlin.collections.plusAssign' call var element_212 = 'CREATE INDEX idx_groupmemberactorjoin_gmajgroupactoruid ON GroupMemberActorJoin (gmajGroupActorUid)'; _stmtList.j1(element_212); // Inline function 'kotlin.collections.plusAssign' call var element_213 = 'CREATE INDEX idx_groupmemberactorjoin_gmajmemberactoruid ON GroupMemberActorJoin (gmajMemberActorUid)'; _stmtList.j1(element_213); // Inline function 'kotlin.collections.plusAssign' call var element_214 = 'CREATE TABLE IF NOT EXISTS ActivityLangMapEntry ( almeActivityUid BIGINT NOT NULL , almeHash BIGINT NOT NULL , almeLangCode TEXT , almePropName TEXT , almeValue TEXT , almeAieHash BIGINT NOT NULL , almeLastMod BIGINT NOT NULL , PRIMARY KEY (almeActivityUid, almeHash) )'; _stmtList.j1(element_214); // Inline function 'kotlin.collections.plusAssign' call var element_215 = 'CREATE TABLE IF NOT EXISTS ActivityExtensionEntity ( aeeActivityUid BIGINT NOT NULL , aeeKeyHash BIGINT NOT NULL , aeeKey TEXT , aeeJson TEXT , aeeLastMod BIGINT NOT NULL , aeeIsDeleted BOOL NOT NULL , PRIMARY KEY (aeeActivityUid, aeeKeyHash) )'; _stmtList.j1(element_215); // Inline function 'kotlin.collections.plusAssign' call var element_216 = 'CREATE TABLE IF NOT EXISTS StatementContextActivityJoin ( scajFromStatementIdHi BIGINT NOT NULL , scajFromStatementIdLo BIGINT NOT NULL , scajToHash BIGINT NOT NULL , scajContextType INTEGER NOT NULL , scajToActivityUid BIGINT NOT NULL , scajToActivityId TEXT , scajEtag BIGINT NOT NULL , PRIMARY KEY (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash) )'; _stmtList.j1(element_216); // Inline function 'kotlin.collections.plusAssign' call var element_217 = 'CREATE TABLE IF NOT EXISTS XapiSessionEntity ( xseLastMod BIGINT NOT NULL , xseRegistrationHi BIGINT NOT NULL , xseRegistrationLo BIGINT NOT NULL , xseUsUid BIGINT NOT NULL , xseAccountPersonUid BIGINT NOT NULL , xseActorUid BIGINT NOT NULL , xseAccountUsername TEXT NOT NULL , xseClazzUid BIGINT NOT NULL , xseCbUid BIGINT NOT NULL , xseContentEntryUid BIGINT NOT NULL , xseContentEntryVersionUid BIGINT NOT NULL DEFAULT 0 , xseRootActivityId TEXT NOT NULL , xseRootActivityUid BIGINT NOT NULL , xseStartTime BIGINT NOT NULL , xseExpireTime BIGINT NOT NULL , xseAuth TEXT , xseCompleted BOOL NOT NULL DEFAULT false, knownActorUidToPersonUids TEXT NOT NULL , xseUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_217); // Inline function 'kotlin.collections.plusAssign' call var element_218 = 'CREATE TABLE IF NOT EXISTS StatementEntityJson ( stmtJsonIdHi BIGINT NOT NULL , stmtJsonIdLo BIGINT NOT NULL , stmtEtag BIGINT NOT NULL , fullStatement TEXT , PRIMARY KEY (stmtJsonIdHi, stmtJsonIdLo) )'; _stmtList.j1(element_218); // Inline function 'kotlin.collections.plusAssign' call var element_219 = 'CREATE TABLE IF NOT EXISTS StateEntity ( seActorUid BIGINT NOT NULL , seHash BIGINT NOT NULL , seActivityUid BIGINT NOT NULL , seStateId TEXT NOT NULL , seLastMod BIGINT NOT NULL , seTimeStored BIGINT NOT NULL , seContentType TEXT NOT NULL , seCompressed INTEGER NOT NULL , seContent TEXT NOT NULL , seDeleted BOOL NOT NULL , seRegistrationHi BIGINT , seRegistrationLo BIGINT , seH5PPreloaded BOOL NOT NULL , seH5PSubContentId TEXT , PRIMARY KEY (seActorUid, seHash) )'; _stmtList.j1(element_219); // Inline function 'kotlin.collections.plusAssign' call var element_220 = 'CREATE TABLE IF NOT EXISTS StateDeleteCommand ( sdcActorUid BIGINT NOT NULL , sdcHash BIGINT NOT NULL , sdcActivityUid BIGINT NOT NULL , sdcStateId TEXT , sdcLastMod BIGINT NOT NULL , sdcRegistrationHi BIGINT , sdcRegistrationLo BIGINT , PRIMARY KEY (sdcActorUid, sdcHash) )'; _stmtList.j1(element_220); // Inline function 'kotlin.collections.plusAssign' call var element_221 = 'CREATE TABLE IF NOT EXISTS OutgoingReplication ( destNodeId BIGINT NOT NULL , orPk1 BIGINT NOT NULL , orPk2 BIGINT NOT NULL DEFAULT 0 , orPk3 BIGINT NOT NULL DEFAULT 0 , orPk4 BIGINT NOT NULL DEFAULT 0 , orTableId INTEGER NOT NULL , orUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_221); // Inline function 'kotlin.collections.plusAssign' call var element_222 = 'CREATE TABLE IF NOT EXISTS ReplicationOperation ( repOpRemoteNodeId BIGINT NOT NULL , repOpStatus INTEGER NOT NULL , repOpTableId INTEGER NOT NULL , PRIMARY KEY (repOpRemoteNodeId, repOpTableId) )'; _stmtList.j1(element_222); // Inline function 'kotlin.collections.plusAssign' call var element_223 = 'CREATE TABLE IF NOT EXISTS PendingRepositorySession ( endpointUrl TEXT , remoteNodeId BIGINT NOT NULL , rsUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_223); // Inline function 'kotlin.collections.plusAssign' call var element_224 = 'CREATE TABLE IF NOT EXISTS DoorNode ( auth TEXT , nodeId BIGINT NOT NULL , rel INTEGER NOT NULL DEFAULT 2 , PRIMARY KEY (nodeId) )'; _stmtList.j1(element_224); // Inline function 'kotlin.collections.plusAssign' call var element_225 = 'CREATE TABLE IF NOT EXISTS ReportQueryResult ( rqrReportUid BIGINT NOT NULL , rqrLastModified BIGINT NOT NULL , rqrLastValidated BIGINT NOT NULL , rqrReportSeriesUid INTEGER NOT NULL , rqrXAxis TEXT NOT NULL , rqrYAxis DOUBLE PRECISION NOT NULL , rqrSubgroup TEXT NOT NULL , rqrTimeZone TEXT NOT NULL , rqrUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.j1(element_225); // Inline function 'kotlin.collections.plusAssign' call var element_226 = 'CREATE INDEX idx_reportqueryresult_rqrreportuid_rqrtimezone ON ReportQueryResult (rqrReportUid, rqrTimeZone)'; _stmtList.j1(element_226); } return _stmtList; }; protoOf(UmAppDatabase_JdbcImpl).s7e = function () { return this.g7k(); }; protoOf(UmAppDatabase_JdbcImpl).t7e = function () { return this.h7k(); }; protoOf(UmAppDatabase_JdbcImpl).u7e = function () { return this.i7k(); }; protoOf(UmAppDatabase_JdbcImpl).v7e = function () { return this.j7k(); }; protoOf(UmAppDatabase_JdbcImpl).w7e = function () { return this.k7k(); }; protoOf(UmAppDatabase_JdbcImpl).x7e = function () { return this.l7k(); }; protoOf(UmAppDatabase_JdbcImpl).y7e = function () { return this.m7k(); }; protoOf(UmAppDatabase_JdbcImpl).z7e = function () { return this.n7k(); }; protoOf(UmAppDatabase_JdbcImpl).a7f = function () { return this.o7k(); }; protoOf(UmAppDatabase_JdbcImpl).b7f = function () { return this.p7k(); }; protoOf(UmAppDatabase_JdbcImpl).c7f = function () { return this.q7k(); }; protoOf(UmAppDatabase_JdbcImpl).d7f = function () { return this.r7k(); }; protoOf(UmAppDatabase_JdbcImpl).e7f = function () { return this.s7k(); }; protoOf(UmAppDatabase_JdbcImpl).f7f = function () { return this.t7k(); }; protoOf(UmAppDatabase_JdbcImpl).g7f = function () { return this.u7k(); }; protoOf(UmAppDatabase_JdbcImpl).h7f = function () { return this.v7k(); }; protoOf(UmAppDatabase_JdbcImpl).i7f = function () { return this.w7k(); }; protoOf(UmAppDatabase_JdbcImpl).j7f = function () { return this.x7k(); }; protoOf(UmAppDatabase_JdbcImpl).k7f = function () { return this.y7k(); }; protoOf(UmAppDatabase_JdbcImpl).l7f = function () { return this.z7k(); }; protoOf(UmAppDatabase_JdbcImpl).m7f = function () { return this.a7l(); }; protoOf(UmAppDatabase_JdbcImpl).n7f = function () { return this.b7l(); }; protoOf(UmAppDatabase_JdbcImpl).o7f = function () { return this.c7l(); }; protoOf(UmAppDatabase_JdbcImpl).p7f = function () { return this.d7l(); }; protoOf(UmAppDatabase_JdbcImpl).q7f = function () { return this.e7l(); }; protoOf(UmAppDatabase_JdbcImpl).r7f = function () { return this.f7l(); }; protoOf(UmAppDatabase_JdbcImpl).s7f = function () { return this.g7l(); }; protoOf(UmAppDatabase_JdbcImpl).t7f = function () { return this.h7l(); }; protoOf(UmAppDatabase_JdbcImpl).u7f = function () { return this.i7l(); }; protoOf(UmAppDatabase_JdbcImpl).v7f = function () { return this.j7l(); }; protoOf(UmAppDatabase_JdbcImpl).w7f = function () { return this.k7l(); }; protoOf(UmAppDatabase_JdbcImpl).x7f = function () { return this.l7l(); }; protoOf(UmAppDatabase_JdbcImpl).y7f = function () { return this.m7l(); }; protoOf(UmAppDatabase_JdbcImpl).z7f = function () { return this.n7l(); }; protoOf(UmAppDatabase_JdbcImpl).a7g = function () { return this.o7l(); }; protoOf(UmAppDatabase_JdbcImpl).b7g = function () { return this.p7l(); }; protoOf(UmAppDatabase_JdbcImpl).c7g = function () { return this.q7l(); }; protoOf(UmAppDatabase_JdbcImpl).d7g = function () { return this.r7l(); }; protoOf(UmAppDatabase_JdbcImpl).e7g = function () { return this.s7l(); }; protoOf(UmAppDatabase_JdbcImpl).f7g = function () { return this.t7l(); }; protoOf(UmAppDatabase_JdbcImpl).g7g = function () { return this.u7l(); }; protoOf(UmAppDatabase_JdbcImpl).h7g = function () { return this.w7p(); }; protoOf(UmAppDatabase_JdbcImpl).i7g = function () { return this.v7l(); }; protoOf(UmAppDatabase_JdbcImpl).j7g = function () { return this.w7l(); }; protoOf(UmAppDatabase_JdbcImpl).k7g = function () { return this.x7l(); }; protoOf(UmAppDatabase_JdbcImpl).l7g = function () { return this.y7l(); }; protoOf(UmAppDatabase_JdbcImpl).m7g = function () { return this.z7l(); }; protoOf(UmAppDatabase_JdbcImpl).n7g = function () { return this.a7m(); }; protoOf(UmAppDatabase_JdbcImpl).o7g = function () { return this.x7p(); }; protoOf(UmAppDatabase_JdbcImpl).p7g = function () { return this.y7p(); }; protoOf(UmAppDatabase_JdbcImpl).q7g = function () { return this.b7m(); }; protoOf(UmAppDatabase_JdbcImpl).r7g = function () { return this.z7p(); }; protoOf(UmAppDatabase_JdbcImpl).s7g = function () { return this.c7m(); }; protoOf(UmAppDatabase_JdbcImpl).t7g = function () { return this.d7m(); }; protoOf(UmAppDatabase_JdbcImpl).u7g = function () { return this.e7m(); }; protoOf(UmAppDatabase_JdbcImpl).v7g = function () { return this.f7m(); }; protoOf(UmAppDatabase_JdbcImpl).w7g = function () { return this.g7m(); }; protoOf(UmAppDatabase_JdbcImpl).x7g = function () { return this.h7m(); }; protoOf(UmAppDatabase_JdbcImpl).y7g = function () { return this.i7m(); }; protoOf(UmAppDatabase_JdbcImpl).z7g = function () { return this.j7m(); }; protoOf(UmAppDatabase_JdbcImpl).a7h = function () { return this.k7m(); }; protoOf(UmAppDatabase_JdbcImpl).b7h = function () { return this.l7m(); }; protoOf(UmAppDatabase_JdbcImpl).c7h = function () { return this.m7m(); }; protoOf(UmAppDatabase_JdbcImpl).d7h = function () { return this.n7m(); }; protoOf(UmAppDatabase_JdbcImpl).e7h = function () { return this.o7m(); }; protoOf(UmAppDatabase_JdbcImpl).f7h = function () { return this.p7m(); }; protoOf(UmAppDatabase_JdbcImpl).g7h = function () { return this.q7m(); }; protoOf(UmAppDatabase_JdbcImpl).h7h = function () { return this.r7m(); }; protoOf(UmAppDatabase_JdbcImpl).i7h = function () { return this.a7q(); }; function realNodeIdAuthCache$factory() { return getPropertyCallableRef('realNodeIdAuthCache', 1, KProperty1, function (receiver) { return receiver.o5k(); }, null); } function realPrimaryKeyManager$factory() { return getPropertyCallableRef('realPrimaryKeyManager', 1, KProperty1, function (receiver) { return receiver.y5j(); }, null); } function _PersonDao$factory_0() { return getPropertyCallableRef('_PersonDao', 1, KProperty1, function (receiver) { return receiver.g7k(); }, null); } function _ClazzDao$factory_0() { return getPropertyCallableRef('_ClazzDao', 1, KProperty1, function (receiver) { return receiver.h7k(); }, null); } function _CourseBlockDao$factory_0() { return getPropertyCallableRef('_CourseBlockDao', 1, KProperty1, function (receiver) { return receiver.i7k(); }, null); } function _CourseTerminologyDao$factory_0() { return getPropertyCallableRef('_CourseTerminologyDao', 1, KProperty1, function (receiver) { return receiver.j7k(); }, null); } function _CourseGroupSetDao$factory_0() { return getPropertyCallableRef('_CourseGroupSetDao', 1, KProperty1, function (receiver) { return receiver.k7k(); }, null); } function _CourseGroupMemberDao$factory_0() { return getPropertyCallableRef('_CourseGroupMemberDao', 1, KProperty1, function (receiver) { return receiver.l7k(); }, null); } function _ClazzEnrolmentDao$factory_0() { return getPropertyCallableRef('_ClazzEnrolmentDao', 1, KProperty1, function (receiver) { return receiver.m7k(); }, null); } function _LeavingReasonDao$factory_0() { return getPropertyCallableRef('_LeavingReasonDao', 1, KProperty1, function (receiver) { return receiver.n7k(); }, null); } function _ContentEntryDao$factory_0() { return getPropertyCallableRef('_ContentEntryDao', 1, KProperty1, function (receiver) { return receiver.o7k(); }, null); } function _ContentEntryContentCategoryJoinDao$factory_0() { return getPropertyCallableRef('_ContentEntryContentCategoryJoinDao', 1, KProperty1, function (receiver) { return receiver.p7k(); }, null); } function _ContentEntryParentChildJoinDao$factory_0() { return getPropertyCallableRef('_ContentEntryParentChildJoinDao', 1, KProperty1, function (receiver) { return receiver.q7k(); }, null); } function _ContentEntryRelatedEntryJoinDao$factory_0() { return getPropertyCallableRef('_ContentEntryRelatedEntryJoinDao', 1, KProperty1, function (receiver) { return receiver.r7k(); }, null); } function _ContentCategorySchemaDao$factory_0() { return getPropertyCallableRef('_ContentCategorySchemaDao', 1, KProperty1, function (receiver) { return receiver.s7k(); }, null); } function _ContentCategoryDao$factory_0() { return getPropertyCallableRef('_ContentCategoryDao', 1, KProperty1, function (receiver) { return receiver.t7k(); }, null); } function _LanguageDao$factory_0() { return getPropertyCallableRef('_LanguageDao', 1, KProperty1, function (receiver) { return receiver.u7k(); }, null); } function _LanguageVariantDao$factory_0() { return getPropertyCallableRef('_LanguageVariantDao', 1, KProperty1, function (receiver) { return receiver.v7k(); }, null); } function _PersonGroupDao$factory_0() { return getPropertyCallableRef('_PersonGroupDao', 1, KProperty1, function (receiver) { return receiver.w7k(); }, null); } function _PersonGroupMemberDao$factory_0() { return getPropertyCallableRef('_PersonGroupMemberDao', 1, KProperty1, function (receiver) { return receiver.x7k(); }, null); } function _PersonPictureDao$factory_0() { return getPropertyCallableRef('_PersonPictureDao', 1, KProperty1, function (receiver) { return receiver.y7k(); }, null); } function _VerbDao$factory_0() { return getPropertyCallableRef('_VerbDao', 1, KProperty1, function (receiver) { return receiver.z7k(); }, null); } function _ActivityEntityDao$factory_0() { return getPropertyCallableRef('_ActivityEntityDao', 1, KProperty1, function (receiver) { return receiver.a7l(); }, null); } function _ReportDao$factory_0() { return getPropertyCallableRef('_ReportDao', 1, KProperty1, function (receiver) { return receiver.b7l(); }, null); } function _StatementDao$factory_0() { return getPropertyCallableRef('_StatementDao', 1, KProperty1, function (receiver) { return receiver.c7l(); }, null); } function _ActorDao$factory_0() { return getPropertyCallableRef('_ActorDao', 1, KProperty1, function (receiver) { return receiver.d7l(); }, null); } function _ClazzLogAttendanceRecordDao$factory_0() { return getPropertyCallableRef('_ClazzLogAttendanceRecordDao', 1, KProperty1, function (receiver) { return receiver.e7l(); }, null); } function _ClazzLogDao$factory_0() { return getPropertyCallableRef('_ClazzLogDao', 1, KProperty1, function (receiver) { return receiver.f7l(); }, null); } function _ScheduleDao$factory_0() { return getPropertyCallableRef('_ScheduleDao', 1, KProperty1, function (receiver) { return receiver.g7l(); }, null); } function _HolidayCalendarDao$factory_0() { return getPropertyCallableRef('_HolidayCalendarDao', 1, KProperty1, function (receiver) { return receiver.h7l(); }, null); } function _HolidayDao$factory_0() { return getPropertyCallableRef('_HolidayDao', 1, KProperty1, function (receiver) { return receiver.i7l(); }, null); } function _ClazzAssignmentDao$factory_0() { return getPropertyCallableRef('_ClazzAssignmentDao', 1, KProperty1, function (receiver) { return receiver.j7l(); }, null); } function _CourseAssignmentSubmissionDao$factory_0() { return getPropertyCallableRef('_CourseAssignmentSubmissionDao', 1, KProperty1, function (receiver) { return receiver.k7l(); }, null); } function _CourseAssignmentSubmissionFileDao$factory_0() { return getPropertyCallableRef('_CourseAssignmentSubmissionFileDao', 1, KProperty1, function (receiver) { return receiver.l7l(); }, null); } function _CourseAssignmentMarkDao$factory_0() { return getPropertyCallableRef('_CourseAssignmentMarkDao', 1, KProperty1, function (receiver) { return receiver.m7l(); }, null); } function _CommentsDao$factory_0() { return getPropertyCallableRef('_CommentsDao', 1, KProperty1, function (receiver) { return receiver.n7l(); }, null); } function _SiteDao$factory_0() { return getPropertyCallableRef('_SiteDao', 1, KProperty1, function (receiver) { return receiver.o7l(); }, null); } function _SiteTermsDao$factory_0() { return getPropertyCallableRef('_SiteTermsDao', 1, KProperty1, function (receiver) { return receiver.p7l(); }, null); } function _PersonParentJoinDao$factory_0() { return getPropertyCallableRef('_PersonParentJoinDao', 1, KProperty1, function (receiver) { return receiver.q7l(); }, null); } function _ScopedGrantDao$factory_0() { return getPropertyCallableRef('_ScopedGrantDao', 1, KProperty1, function (receiver) { return receiver.r7l(); }, null); } function _ErrorReportDao$factory_0() { return getPropertyCallableRef('_ErrorReportDao', 1, KProperty1, function (receiver) { return receiver.s7l(); }, null); } function _PersonAuth2Dao$factory_0() { return getPropertyCallableRef('_PersonAuth2Dao', 1, KProperty1, function (receiver) { return receiver.t7l(); }, null); } function _UserSessionDao$factory_0() { return getPropertyCallableRef('_UserSessionDao', 1, KProperty1, function (receiver) { return receiver.u7l(); }, null); } function _ContentEntryImportJobDao$factory() { return getPropertyCallableRef('_ContentEntryImportJobDao', 1, KProperty1, function (receiver) { return receiver.w7p(); }, null); } function _CoursePictureDao$factory_0() { return getPropertyCallableRef('_CoursePictureDao', 1, KProperty1, function (receiver) { return receiver.v7l(); }, null); } function _ContentEntryPictureDao$factory_0() { return getPropertyCallableRef('_ContentEntryPictureDao', 1, KProperty1, function (receiver) { return receiver.w7l(); }, null); } function _MessageDao$factory_0() { return getPropertyCallableRef('_MessageDao', 1, KProperty1, function (receiver) { return receiver.x7l(); }, null); } function _PeerReviewerAllocationDao$factory_0() { return getPropertyCallableRef('_PeerReviewerAllocationDao', 1, KProperty1, function (receiver) { return receiver.y7l(); }, null); } function _DiscussionPostDao$factory_0() { return getPropertyCallableRef('_DiscussionPostDao', 1, KProperty1, function (receiver) { return receiver.z7l(); }, null); } function _ContentEntryVersionDao$factory_0() { return getPropertyCallableRef('_ContentEntryVersionDao', 1, KProperty1, function (receiver) { return receiver.a7m(); }, null); } function _TransferJobDao$factory() { return getPropertyCallableRef('_TransferJobDao', 1, KProperty1, function (receiver) { return receiver.x7p(); }, null); } function _TransferJobItemDao$factory() { return getPropertyCallableRef('_TransferJobItemDao', 1, KProperty1, function (receiver) { return receiver.y7p(); }, null); } function _OfflineItemDao$factory_0() { return getPropertyCallableRef('_OfflineItemDao', 1, KProperty1, function (receiver) { return receiver.b7m(); }, null); } function _DeletedItemDao$factory() { return getPropertyCallableRef('_DeletedItemDao', 1, KProperty1, function (receiver) { return receiver.z7p(); }, null); } function _EnrolmentRequestDao$factory_0() { return getPropertyCallableRef('_EnrolmentRequestDao', 1, KProperty1, function (receiver) { return receiver.c7m(); }, null); } function _CoursePermissionDao$factory_0() { return getPropertyCallableRef('_CoursePermissionDao', 1, KProperty1, function (receiver) { return receiver.d7m(); }, null); } function _SystemPermissionDao$factory_0() { return getPropertyCallableRef('_SystemPermissionDao', 1, KProperty1, function (receiver) { return receiver.e7m(); }, null); } function _CourseBlockPictureDao$factory_0() { return getPropertyCallableRef('_CourseBlockPictureDao', 1, KProperty1, function (receiver) { return receiver.f7m(); }, null); } function _ContentEntryPicture2Dao$factory_0() { return getPropertyCallableRef('_ContentEntryPicture2Dao', 1, KProperty1, function (receiver) { return receiver.g7m(); }, null); } function _StudentResultDao$factory_0() { return getPropertyCallableRef('_StudentResultDao', 1, KProperty1, function (receiver) { return receiver.h7m(); }, null); } function _VerbLangMapEntryDao$factory_0() { return getPropertyCallableRef('_VerbLangMapEntryDao', 1, KProperty1, function (receiver) { return receiver.i7m(); }, null); } function _GroupMemberActorJoinDao$factory_0() { return getPropertyCallableRef('_GroupMemberActorJoinDao', 1, KProperty1, function (receiver) { return receiver.j7m(); }, null); } function _ActivityLangMapEntryDao$factory_0() { return getPropertyCallableRef('_ActivityLangMapEntryDao', 1, KProperty1, function (receiver) { return receiver.k7m(); }, null); } function _ActivityInteractionDao$factory_0() { return getPropertyCallableRef('_ActivityInteractionDao', 1, KProperty1, function (receiver) { return receiver.l7m(); }, null); } function _ActivityExtensionDao$factory_0() { return getPropertyCallableRef('_ActivityExtensionDao', 1, KProperty1, function (receiver) { return receiver.m7m(); }, null); } function _StatementContextActivityJoinDao$factory_0() { return getPropertyCallableRef('_StatementContextActivityJoinDao', 1, KProperty1, function (receiver) { return receiver.n7m(); }, null); } function _XapiSessionEntityDao$factory_0() { return getPropertyCallableRef('_XapiSessionEntityDao', 1, KProperty1, function (receiver) { return receiver.o7m(); }, null); } function _StatementEntityJsonDao$factory_0() { return getPropertyCallableRef('_StatementEntityJsonDao', 1, KProperty1, function (receiver) { return receiver.p7m(); }, null); } function _StateEntityDao$factory_0() { return getPropertyCallableRef('_StateEntityDao', 1, KProperty1, function (receiver) { return receiver.q7m(); }, null); } function _StateDeleteCommandDao$factory_0() { return getPropertyCallableRef('_StateDeleteCommandDao', 1, KProperty1, function (receiver) { return receiver.r7m(); }, null); } function _ReportQueryResultDao$factory() { return getPropertyCallableRef('_ReportQueryResultDao', 1, KProperty1, function (receiver) { return receiver.a7q(); }, null); } function _get__endpoint__5zlgkj($this) { return $this.c7q_1.w66_1; } function _get__PersonDao__uzj2el($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.f7q_1; _PersonDao$factory_1(); return this_0.t2(); } function _get__ClazzDao__9uv608($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.g7q_1; _ClazzDao$factory_1(); return this_0.t2(); } function _get__CourseBlockDao__4pp4mq($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.h7q_1; _CourseBlockDao$factory_1(); return this_0.t2(); } function _get__CourseTerminologyDao__a6bld4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.i7q_1; _CourseTerminologyDao$factory_1(); return this_0.t2(); } function _get__CourseGroupSetDao__hfsuk6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.j7q_1; _CourseGroupSetDao$factory_1(); return this_0.t2(); } function _get__CourseGroupMemberDao__l3hcwy($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.k7q_1; _CourseGroupMemberDao$factory_1(); return this_0.t2(); } function _get__ClazzEnrolmentDao__q8nlvo($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.l7q_1; _ClazzEnrolmentDao$factory_1(); return this_0.t2(); } function _get__LeavingReasonDao__m21j14($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.m7q_1; _LeavingReasonDao$factory_1(); return this_0.t2(); } function _get__ContentEntryDao__asrab3($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.n7q_1; _ContentEntryDao$factory_1(); return this_0.t2(); } function _get__ContentEntryContentCategoryJoinDao__c8c5lk($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.o7q_1; _ContentEntryContentCategoryJoinDao$factory_1(); return this_0.t2(); } function _get__ContentEntryParentChildJoinDao__moxer($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.p7q_1; _ContentEntryParentChildJoinDao$factory_1(); return this_0.t2(); } function _get__ContentEntryRelatedEntryJoinDao__wdqzcu($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.q7q_1; _ContentEntryRelatedEntryJoinDao$factory_1(); return this_0.t2(); } function _get__ContentCategorySchemaDao__95pyeg($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.r7q_1; _ContentCategorySchemaDao$factory_1(); return this_0.t2(); } function _get__ContentCategoryDao__tsqjyv($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.s7q_1; _ContentCategoryDao$factory_1(); return this_0.t2(); } function _get__LanguageDao__1z90w($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.t7q_1; _LanguageDao$factory_1(); return this_0.t2(); } function _get__LanguageVariantDao__rxf1fx($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.u7q_1; _LanguageVariantDao$factory_1(); return this_0.t2(); } function _get__PersonGroupDao__hew8d2($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.v7q_1; _PersonGroupDao$factory_1(); return this_0.t2(); } function _get__PersonGroupMemberDao__mvnpb8($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.w7q_1; _PersonGroupMemberDao$factory_1(); return this_0.t2(); } function _get__PersonPictureDao__2gbg89($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.x7q_1; _PersonPictureDao$factory_1(); return this_0.t2(); } function _get__VerbDao__618h8p($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.y7q_1; _VerbDao$factory_1(); return this_0.t2(); } function _get__ActivityEntityDao__cj0phy($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.z7q_1; _ActivityEntityDao$factory_1(); return this_0.t2(); } function _get__ReportDao__jbr9h0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.a7r_1; _ReportDao$factory_1(); return this_0.t2(); } function _get__StatementDao__fnw41b($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.b7r_1; _StatementDao$factory_1(); return this_0.t2(); } function _get__ActorDao__6yq8sr($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.c7r_1; _ActorDao$factory_1(); return this_0.t2(); } function _get__ClazzLogAttendanceRecordDao__r3qxzy($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.d7r_1; _ClazzLogAttendanceRecordDao$factory_1(); return this_0.t2(); } function _get__ClazzLogDao__xeo15w($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.e7r_1; _ClazzLogDao$factory_1(); return this_0.t2(); } function _get__ScheduleDao__h5s1ch($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.f7r_1; _ScheduleDao$factory_1(); return this_0.t2(); } function _get__HolidayCalendarDao__gbx0p6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.g7r_1; _HolidayCalendarDao$factory_1(); return this_0.t2(); } function _get__HolidayDao__x92kh4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.h7r_1; _HolidayDao$factory_1(); return this_0.t2(); } function _get__ClazzAssignmentDao__kc42th($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.i7r_1; _ClazzAssignmentDao$factory_1(); return this_0.t2(); } function _get__CourseAssignmentSubmissionDao__ir2b4c($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.j7r_1; _CourseAssignmentSubmissionDao$factory_1(); return this_0.t2(); } function _get__CourseAssignmentSubmissionFileDao__63r33c($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.k7r_1; _CourseAssignmentSubmissionFileDao$factory_1(); return this_0.t2(); } function _get__CourseAssignmentMarkDao__yi6swd($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.l7r_1; _CourseAssignmentMarkDao$factory_1(); return this_0.t2(); } function _get__CommentsDao__mxkt84($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.m7r_1; _CommentsDao$factory_1(); return this_0.t2(); } function _get__SiteDao__wss4yp($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.n7r_1; _SiteDao$factory_1(); return this_0.t2(); } function _get__SiteTermsDao__f7rqww($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.o7r_1; _SiteTermsDao$factory_1(); return this_0.t2(); } function _get__PersonParentJoinDao__o0iclb($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.p7r_1; _PersonParentJoinDao$factory_1(); return this_0.t2(); } function _get__ScopedGrantDao__9w613o($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.q7r_1; _ScopedGrantDao$factory_1(); return this_0.t2(); } function _get__ErrorReportDao__d8e0x0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.r7r_1; _ErrorReportDao$factory_1(); return this_0.t2(); } function _get__PersonAuth2Dao__uki6ut($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.s7r_1; _PersonAuth2Dao$factory_1(); return this_0.t2(); } function _get__UserSessionDao__wcreq3($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.t7r_1; _UserSessionDao$factory_1(); return this_0.t2(); } function _get__CoursePictureDao__qr47kz($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.u7r_1; _CoursePictureDao$factory_1(); return this_0.t2(); } function _get__ContentEntryPictureDao__hzeabf($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.v7r_1; _ContentEntryPictureDao$factory_1(); return this_0.t2(); } function _get__MessageDao__u7e9l3($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.w7r_1; _MessageDao$factory_1(); return this_0.t2(); } function _get__PeerReviewerAllocationDao__m08hnj($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.x7r_1; _PeerReviewerAllocationDao$factory_1(); return this_0.t2(); } function _get__DiscussionPostDao__bymsxs($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.y7r_1; _DiscussionPostDao$factory_1(); return this_0.t2(); } function _get__ContentEntryVersionDao__egjvvj($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.z7r_1; _ContentEntryVersionDao$factory_1(); return this_0.t2(); } function _get__OfflineItemDao__4yjkly($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.a7s_1; _OfflineItemDao$factory_1(); return this_0.t2(); } function _get__DeletedItemDao__4i3s1g($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.b7s_1; _DeletedItemDao$factory_0(); return this_0.t2(); } function _get__EnrolmentRequestDao__wkcqzn($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.c7s_1; _EnrolmentRequestDao$factory_1(); return this_0.t2(); } function _get__CoursePermissionDao__hib1jy($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.d7s_1; _CoursePermissionDao$factory_1(); return this_0.t2(); } function _get__SystemPermissionDao__c05myy($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.e7s_1; _SystemPermissionDao$factory_1(); return this_0.t2(); } function _get__CourseBlockPictureDao__hx4ubg($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.f7s_1; _CourseBlockPictureDao$factory_1(); return this_0.t2(); } function _get__ContentEntryPicture2Dao__ah6hid($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.g7s_1; _ContentEntryPicture2Dao$factory_1(); return this_0.t2(); } function _get__StudentResultDao__sr8vqw($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.h7s_1; _StudentResultDao$factory_1(); return this_0.t2(); } function _get__VerbLangMapEntryDao__oda6e3($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.i7s_1; _VerbLangMapEntryDao$factory_1(); return this_0.t2(); } function _get__GroupMemberActorJoinDao__jlmme6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.j7s_1; _GroupMemberActorJoinDao$factory_1(); return this_0.t2(); } function _get__ActivityLangMapEntryDao__htpiob($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.k7s_1; _ActivityLangMapEntryDao$factory_1(); return this_0.t2(); } function _get__ActivityInteractionDao__x272ir($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.l7s_1; _ActivityInteractionDao$factory_1(); return this_0.t2(); } function _get__ActivityExtensionDao__cpvg5s($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.m7s_1; _ActivityExtensionDao$factory_1(); return this_0.t2(); } function _get__StatementContextActivityJoinDao__t5jinj($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.n7s_1; _StatementContextActivityJoinDao$factory_1(); return this_0.t2(); } function _get__XapiSessionEntityDao__tpjn2v($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.o7s_1; _XapiSessionEntityDao$factory_1(); return this_0.t2(); } function _get__StatementEntityJsonDao__4ym94q($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.p7s_1; _StatementEntityJsonDao$factory_1(); return this_0.t2(); } function _get__StateEntityDao__vtinv8($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.q7s_1; _StateEntityDao$factory_1(); return this_0.t2(); } function _get__StateDeleteCommandDao__s2ay7b($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.r7s_1; _StateDeleteCommandDao$factory_1(); return this_0.t2(); } function Companion() { this.s7s_1 = 'UmAppDatabase'; } var Companion_instance_0; function Companion_getInstance_2() { return Companion_instance_0; } function UmAppDatabase_Repo$_PersonDao$delegate$lambda(this$0) { return function () { return new PersonDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.s7e(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ClazzDao$delegate$lambda(this$0) { return function () { return new ClazzDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.t7e(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CourseBlockDao$delegate$lambda(this$0) { return function () { return new CourseBlockDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.u7e(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CourseTerminologyDao$delegate$lambda(this$0) { return function () { return new CourseTerminologyDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.v7e(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CourseGroupSetDao$delegate$lambda(this$0) { return function () { return new CourseGroupSetDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.w7e(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CourseGroupMemberDao$delegate$lambda(this$0) { return function () { return new CourseGroupMemberDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.x7e(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ClazzEnrolmentDao$delegate$lambda(this$0) { return function () { return new ClazzEnrolmentDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.y7e(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_LeavingReasonDao$delegate$lambda(this$0) { return function () { return new LeavingReasonDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.z7e(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ContentEntryDao$delegate$lambda(this$0) { return function () { return new ContentEntryDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.a7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ContentEntryContentCategoryJoinDao$delegate$lambda(this$0) { return function () { return new ContentEntryContentCategoryJoinDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.b7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ContentEntryParentChildJoinDao$delegate$lambda(this$0) { return function () { return new ContentEntryParentChildJoinDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.c7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this$0) { return function () { return new ContentEntryRelatedEntryJoinDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.d7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ContentCategorySchemaDao$delegate$lambda(this$0) { return function () { return new ContentCategorySchemaDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.e7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ContentCategoryDao$delegate$lambda(this$0) { return function () { return new ContentCategoryDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.f7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_LanguageDao$delegate$lambda(this$0) { return function () { return new LanguageDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.g7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_LanguageVariantDao$delegate$lambda(this$0) { return function () { return new LanguageVariantDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.h7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_PersonGroupDao$delegate$lambda(this$0) { return function () { return new PersonGroupDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.i7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_PersonGroupMemberDao$delegate$lambda(this$0) { return function () { return new PersonGroupMemberDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.j7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_PersonPictureDao$delegate$lambda(this$0) { return function () { return new PersonPictureDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.k7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_VerbDao$delegate$lambda(this$0) { return function () { return new VerbDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.l7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ActivityEntityDao$delegate$lambda(this$0) { return function () { return new ActivityEntityDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.m7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ReportDao$delegate$lambda(this$0) { return function () { return new ReportDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.n7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_StatementDao$delegate$lambda(this$0) { return function () { return new StatementDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.o7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ActorDao$delegate$lambda(this$0) { return function () { return new ActorDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.p7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ClazzLogAttendanceRecordDao$delegate$lambda(this$0) { return function () { return new ClazzLogAttendanceRecordDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.q7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ClazzLogDao$delegate$lambda(this$0) { return function () { return new ClazzLogDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.r7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ScheduleDao$delegate$lambda(this$0) { return function () { return new ScheduleDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.s7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_HolidayCalendarDao$delegate$lambda(this$0) { return function () { return new HolidayCalendarDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.t7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_HolidayDao$delegate$lambda(this$0) { return function () { return new HolidayDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.u7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ClazzAssignmentDao$delegate$lambda(this$0) { return function () { return new ClazzAssignmentDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.v7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CourseAssignmentSubmissionDao$delegate$lambda(this$0) { return function () { return new CourseAssignmentSubmissionDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.w7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CourseAssignmentSubmissionFileDao$delegate$lambda(this$0) { return function () { return new CourseAssignmentSubmissionFileDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.x7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CourseAssignmentMarkDao$delegate$lambda(this$0) { return function () { return new CourseAssignmentMarkDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.y7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CommentsDao$delegate$lambda(this$0) { return function () { return new CommentsDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.z7f(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_SiteDao$delegate$lambda(this$0) { return function () { return new SiteDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.a7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_SiteTermsDao$delegate$lambda(this$0) { return function () { return new SiteTermsDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.b7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_PersonParentJoinDao$delegate$lambda(this$0) { return function () { return new PersonParentJoinDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.c7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ScopedGrantDao$delegate$lambda(this$0) { return function () { return new ScopedGrantDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.d7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ErrorReportDao$delegate$lambda(this$0) { return function () { return new ErrorReportDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.e7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_PersonAuth2Dao$delegate$lambda(this$0) { return function () { return new PersonAuth2Dao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.f7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_UserSessionDao$delegate$lambda(this$0) { return function () { return new UserSessionDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.g7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CoursePictureDao$delegate$lambda(this$0) { return function () { return new CoursePictureDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.i7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ContentEntryPictureDao$delegate$lambda(this$0) { return function () { return new ContentEntryPictureDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.j7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_MessageDao$delegate$lambda(this$0) { return function () { return new MessageDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.k7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_PeerReviewerAllocationDao$delegate$lambda(this$0) { return function () { return new PeerReviewerAllocationDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.l7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_DiscussionPostDao$delegate$lambda(this$0) { return function () { return new DiscussionPostDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.m7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ContentEntryVersionDao$delegate$lambda(this$0) { return function () { return new ContentEntryVersionDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.n7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_OfflineItemDao$delegate$lambda(this$0) { return function () { return new OfflineItemDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.q7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_DeletedItemDao$delegate$lambda(this$0) { return function () { return new DeletedItemDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.r7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_EnrolmentRequestDao$delegate$lambda(this$0) { return function () { return new EnrolmentRequestDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.s7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CoursePermissionDao$delegate$lambda(this$0) { return function () { return new CoursePermissionDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.t7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_SystemPermissionDao$delegate$lambda(this$0) { return function () { return new SystemPermissionDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.u7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CourseBlockPictureDao$delegate$lambda(this$0) { return function () { return new CourseBlockPictureDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.v7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ContentEntryPicture2Dao$delegate$lambda(this$0) { return function () { return new ContentEntryPicture2Dao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.w7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_StudentResultDao$delegate$lambda(this$0) { return function () { return new StudentResultDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.x7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_VerbLangMapEntryDao$delegate$lambda(this$0) { return function () { return new VerbLangMapEntryDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.y7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_GroupMemberActorJoinDao$delegate$lambda(this$0) { return function () { return new GroupMemberActorJoinDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.z7g(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ActivityLangMapEntryDao$delegate$lambda(this$0) { return function () { return new ActivityLangMapEntryDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.a7h(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ActivityInteractionDao$delegate$lambda(this$0) { return function () { return new ActivityInteractionDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.b7h(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ActivityExtensionDao$delegate$lambda(this$0) { return function () { return new ActivityExtensionDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.c7h(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_StatementContextActivityJoinDao$delegate$lambda(this$0) { return function () { return new StatementContextActivityJoinDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.d7h(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_XapiSessionEntityDao$delegate$lambda(this$0) { return function () { return new XapiSessionEntityDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.e7h(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_StatementEntityJsonDao$delegate$lambda(this$0) { return function () { return new StatementEntityJsonDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.f7h(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_StateEntityDao$delegate$lambda(this$0) { return function () { return new StateEntityDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.g7h(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_StateDeleteCommandDao$delegate$lambda(this$0) { return function () { return new StateDeleteCommandDao_Repo(this$0.b7q_1, this$0, this$0.b7q_1.h7h(), this$0.t7s(), this$0.u7s(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo(db, dbUnwrapped, config) { UmAppDatabase.call(this); this.b7q_1 = db; this.c7q_1 = config; this.d7q_1 = dbUnwrapped; this.e7q_1 = new RepositoryHelper(this.b7q_1, this.c7q_1); var tmp = this; tmp.f7q_1 = lazy_0(UmAppDatabase_Repo$_PersonDao$delegate$lambda(this)); var tmp_0 = this; tmp_0.g7q_1 = lazy_0(UmAppDatabase_Repo$_ClazzDao$delegate$lambda(this)); var tmp_1 = this; tmp_1.h7q_1 = lazy_0(UmAppDatabase_Repo$_CourseBlockDao$delegate$lambda(this)); var tmp_2 = this; tmp_2.i7q_1 = lazy_0(UmAppDatabase_Repo$_CourseTerminologyDao$delegate$lambda(this)); var tmp_3 = this; tmp_3.j7q_1 = lazy_0(UmAppDatabase_Repo$_CourseGroupSetDao$delegate$lambda(this)); var tmp_4 = this; tmp_4.k7q_1 = lazy_0(UmAppDatabase_Repo$_CourseGroupMemberDao$delegate$lambda(this)); var tmp_5 = this; tmp_5.l7q_1 = lazy_0(UmAppDatabase_Repo$_ClazzEnrolmentDao$delegate$lambda(this)); var tmp_6 = this; tmp_6.m7q_1 = lazy_0(UmAppDatabase_Repo$_LeavingReasonDao$delegate$lambda(this)); var tmp_7 = this; tmp_7.n7q_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryDao$delegate$lambda(this)); var tmp_8 = this; tmp_8.o7q_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryContentCategoryJoinDao$delegate$lambda(this)); var tmp_9 = this; tmp_9.p7q_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryParentChildJoinDao$delegate$lambda(this)); var tmp_10 = this; tmp_10.q7q_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this)); var tmp_11 = this; tmp_11.r7q_1 = lazy_0(UmAppDatabase_Repo$_ContentCategorySchemaDao$delegate$lambda(this)); var tmp_12 = this; tmp_12.s7q_1 = lazy_0(UmAppDatabase_Repo$_ContentCategoryDao$delegate$lambda(this)); var tmp_13 = this; tmp_13.t7q_1 = lazy_0(UmAppDatabase_Repo$_LanguageDao$delegate$lambda(this)); var tmp_14 = this; tmp_14.u7q_1 = lazy_0(UmAppDatabase_Repo$_LanguageVariantDao$delegate$lambda(this)); var tmp_15 = this; tmp_15.v7q_1 = lazy_0(UmAppDatabase_Repo$_PersonGroupDao$delegate$lambda(this)); var tmp_16 = this; tmp_16.w7q_1 = lazy_0(UmAppDatabase_Repo$_PersonGroupMemberDao$delegate$lambda(this)); var tmp_17 = this; tmp_17.x7q_1 = lazy_0(UmAppDatabase_Repo$_PersonPictureDao$delegate$lambda(this)); var tmp_18 = this; tmp_18.y7q_1 = lazy_0(UmAppDatabase_Repo$_VerbDao$delegate$lambda(this)); var tmp_19 = this; tmp_19.z7q_1 = lazy_0(UmAppDatabase_Repo$_ActivityEntityDao$delegate$lambda(this)); var tmp_20 = this; tmp_20.a7r_1 = lazy_0(UmAppDatabase_Repo$_ReportDao$delegate$lambda(this)); var tmp_21 = this; tmp_21.b7r_1 = lazy_0(UmAppDatabase_Repo$_StatementDao$delegate$lambda(this)); var tmp_22 = this; tmp_22.c7r_1 = lazy_0(UmAppDatabase_Repo$_ActorDao$delegate$lambda(this)); var tmp_23 = this; tmp_23.d7r_1 = lazy_0(UmAppDatabase_Repo$_ClazzLogAttendanceRecordDao$delegate$lambda(this)); var tmp_24 = this; tmp_24.e7r_1 = lazy_0(UmAppDatabase_Repo$_ClazzLogDao$delegate$lambda(this)); var tmp_25 = this; tmp_25.f7r_1 = lazy_0(UmAppDatabase_Repo$_ScheduleDao$delegate$lambda(this)); var tmp_26 = this; tmp_26.g7r_1 = lazy_0(UmAppDatabase_Repo$_HolidayCalendarDao$delegate$lambda(this)); var tmp_27 = this; tmp_27.h7r_1 = lazy_0(UmAppDatabase_Repo$_HolidayDao$delegate$lambda(this)); var tmp_28 = this; tmp_28.i7r_1 = lazy_0(UmAppDatabase_Repo$_ClazzAssignmentDao$delegate$lambda(this)); var tmp_29 = this; tmp_29.j7r_1 = lazy_0(UmAppDatabase_Repo$_CourseAssignmentSubmissionDao$delegate$lambda(this)); var tmp_30 = this; tmp_30.k7r_1 = lazy_0(UmAppDatabase_Repo$_CourseAssignmentSubmissionFileDao$delegate$lambda(this)); var tmp_31 = this; tmp_31.l7r_1 = lazy_0(UmAppDatabase_Repo$_CourseAssignmentMarkDao$delegate$lambda(this)); var tmp_32 = this; tmp_32.m7r_1 = lazy_0(UmAppDatabase_Repo$_CommentsDao$delegate$lambda(this)); var tmp_33 = this; tmp_33.n7r_1 = lazy_0(UmAppDatabase_Repo$_SiteDao$delegate$lambda(this)); var tmp_34 = this; tmp_34.o7r_1 = lazy_0(UmAppDatabase_Repo$_SiteTermsDao$delegate$lambda(this)); var tmp_35 = this; tmp_35.p7r_1 = lazy_0(UmAppDatabase_Repo$_PersonParentJoinDao$delegate$lambda(this)); var tmp_36 = this; tmp_36.q7r_1 = lazy_0(UmAppDatabase_Repo$_ScopedGrantDao$delegate$lambda(this)); var tmp_37 = this; tmp_37.r7r_1 = lazy_0(UmAppDatabase_Repo$_ErrorReportDao$delegate$lambda(this)); var tmp_38 = this; tmp_38.s7r_1 = lazy_0(UmAppDatabase_Repo$_PersonAuth2Dao$delegate$lambda(this)); var tmp_39 = this; tmp_39.t7r_1 = lazy_0(UmAppDatabase_Repo$_UserSessionDao$delegate$lambda(this)); var tmp_40 = this; tmp_40.u7r_1 = lazy_0(UmAppDatabase_Repo$_CoursePictureDao$delegate$lambda(this)); var tmp_41 = this; tmp_41.v7r_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryPictureDao$delegate$lambda(this)); var tmp_42 = this; tmp_42.w7r_1 = lazy_0(UmAppDatabase_Repo$_MessageDao$delegate$lambda(this)); var tmp_43 = this; tmp_43.x7r_1 = lazy_0(UmAppDatabase_Repo$_PeerReviewerAllocationDao$delegate$lambda(this)); var tmp_44 = this; tmp_44.y7r_1 = lazy_0(UmAppDatabase_Repo$_DiscussionPostDao$delegate$lambda(this)); var tmp_45 = this; tmp_45.z7r_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryVersionDao$delegate$lambda(this)); var tmp_46 = this; tmp_46.a7s_1 = lazy_0(UmAppDatabase_Repo$_OfflineItemDao$delegate$lambda(this)); var tmp_47 = this; tmp_47.b7s_1 = lazy_0(UmAppDatabase_Repo$_DeletedItemDao$delegate$lambda(this)); var tmp_48 = this; tmp_48.c7s_1 = lazy_0(UmAppDatabase_Repo$_EnrolmentRequestDao$delegate$lambda(this)); var tmp_49 = this; tmp_49.d7s_1 = lazy_0(UmAppDatabase_Repo$_CoursePermissionDao$delegate$lambda(this)); var tmp_50 = this; tmp_50.e7s_1 = lazy_0(UmAppDatabase_Repo$_SystemPermissionDao$delegate$lambda(this)); var tmp_51 = this; tmp_51.f7s_1 = lazy_0(UmAppDatabase_Repo$_CourseBlockPictureDao$delegate$lambda(this)); var tmp_52 = this; tmp_52.g7s_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryPicture2Dao$delegate$lambda(this)); var tmp_53 = this; tmp_53.h7s_1 = lazy_0(UmAppDatabase_Repo$_StudentResultDao$delegate$lambda(this)); var tmp_54 = this; tmp_54.i7s_1 = lazy_0(UmAppDatabase_Repo$_VerbLangMapEntryDao$delegate$lambda(this)); var tmp_55 = this; tmp_55.j7s_1 = lazy_0(UmAppDatabase_Repo$_GroupMemberActorJoinDao$delegate$lambda(this)); var tmp_56 = this; tmp_56.k7s_1 = lazy_0(UmAppDatabase_Repo$_ActivityLangMapEntryDao$delegate$lambda(this)); var tmp_57 = this; tmp_57.l7s_1 = lazy_0(UmAppDatabase_Repo$_ActivityInteractionDao$delegate$lambda(this)); var tmp_58 = this; tmp_58.m7s_1 = lazy_0(UmAppDatabase_Repo$_ActivityExtensionDao$delegate$lambda(this)); var tmp_59 = this; tmp_59.n7s_1 = lazy_0(UmAppDatabase_Repo$_StatementContextActivityJoinDao$delegate$lambda(this)); var tmp_60 = this; tmp_60.o7s_1 = lazy_0(UmAppDatabase_Repo$_XapiSessionEntityDao$delegate$lambda(this)); var tmp_61 = this; tmp_61.p7s_1 = lazy_0(UmAppDatabase_Repo$_StatementEntityJsonDao$delegate$lambda(this)); var tmp_62 = this; tmp_62.q7s_1 = lazy_0(UmAppDatabase_Repo$_StateEntityDao$delegate$lambda(this)); var tmp_63 = this; tmp_63.r7s_1 = lazy_0(UmAppDatabase_Repo$_StateDeleteCommandDao$delegate$lambda(this)); } protoOf(UmAppDatabase_Repo).a5k = function () { return this.b7q_1; }; protoOf(UmAppDatabase_Repo).t39 = function () { return this.c7q_1; }; protoOf(UmAppDatabase_Repo).t7s = function () { return this.c7q_1.z66_1; }; protoOf(UmAppDatabase_Repo).u7s = function () { return this.c7q_1.y66_1; }; protoOf(UmAppDatabase_Repo).z5m = function () { return this.d7q_1.z5m(); }; protoOf(UmAppDatabase_Repo).q73 = function () { return 207; }; protoOf(UmAppDatabase_Repo).p62 = function () { return this.e7q_1.p62(); }; protoOf(UmAppDatabase_Repo).w72 = function () { throw IllegalStateException_init_$Create$('Cannot use a repository to createAllTables!'); }; protoOf(UmAppDatabase_Repo).s7e = function () { return _get__PersonDao__uzj2el(this); }; protoOf(UmAppDatabase_Repo).t7e = function () { return _get__ClazzDao__9uv608(this); }; protoOf(UmAppDatabase_Repo).u7e = function () { return _get__CourseBlockDao__4pp4mq(this); }; protoOf(UmAppDatabase_Repo).v7e = function () { return _get__CourseTerminologyDao__a6bld4(this); }; protoOf(UmAppDatabase_Repo).w7e = function () { return _get__CourseGroupSetDao__hfsuk6(this); }; protoOf(UmAppDatabase_Repo).x7e = function () { return _get__CourseGroupMemberDao__l3hcwy(this); }; protoOf(UmAppDatabase_Repo).y7e = function () { return _get__ClazzEnrolmentDao__q8nlvo(this); }; protoOf(UmAppDatabase_Repo).z7e = function () { return _get__LeavingReasonDao__m21j14(this); }; protoOf(UmAppDatabase_Repo).a7f = function () { return _get__ContentEntryDao__asrab3(this); }; protoOf(UmAppDatabase_Repo).b7f = function () { return _get__ContentEntryContentCategoryJoinDao__c8c5lk(this); }; protoOf(UmAppDatabase_Repo).c7f = function () { return _get__ContentEntryParentChildJoinDao__moxer(this); }; protoOf(UmAppDatabase_Repo).d7f = function () { return _get__ContentEntryRelatedEntryJoinDao__wdqzcu(this); }; protoOf(UmAppDatabase_Repo).e7f = function () { return _get__ContentCategorySchemaDao__95pyeg(this); }; protoOf(UmAppDatabase_Repo).f7f = function () { return _get__ContentCategoryDao__tsqjyv(this); }; protoOf(UmAppDatabase_Repo).g7f = function () { return _get__LanguageDao__1z90w(this); }; protoOf(UmAppDatabase_Repo).h7f = function () { return _get__LanguageVariantDao__rxf1fx(this); }; protoOf(UmAppDatabase_Repo).i7f = function () { return _get__PersonGroupDao__hew8d2(this); }; protoOf(UmAppDatabase_Repo).j7f = function () { return _get__PersonGroupMemberDao__mvnpb8(this); }; protoOf(UmAppDatabase_Repo).k7f = function () { return _get__PersonPictureDao__2gbg89(this); }; protoOf(UmAppDatabase_Repo).l7f = function () { return _get__VerbDao__618h8p(this); }; protoOf(UmAppDatabase_Repo).m7f = function () { return _get__ActivityEntityDao__cj0phy(this); }; protoOf(UmAppDatabase_Repo).n7f = function () { return _get__ReportDao__jbr9h0(this); }; protoOf(UmAppDatabase_Repo).o7f = function () { return _get__StatementDao__fnw41b(this); }; protoOf(UmAppDatabase_Repo).p7f = function () { return _get__ActorDao__6yq8sr(this); }; protoOf(UmAppDatabase_Repo).q7f = function () { return _get__ClazzLogAttendanceRecordDao__r3qxzy(this); }; protoOf(UmAppDatabase_Repo).r7f = function () { return _get__ClazzLogDao__xeo15w(this); }; protoOf(UmAppDatabase_Repo).s7f = function () { return _get__ScheduleDao__h5s1ch(this); }; protoOf(UmAppDatabase_Repo).t7f = function () { return _get__HolidayCalendarDao__gbx0p6(this); }; protoOf(UmAppDatabase_Repo).u7f = function () { return _get__HolidayDao__x92kh4(this); }; protoOf(UmAppDatabase_Repo).v7f = function () { return _get__ClazzAssignmentDao__kc42th(this); }; protoOf(UmAppDatabase_Repo).w7f = function () { return _get__CourseAssignmentSubmissionDao__ir2b4c(this); }; protoOf(UmAppDatabase_Repo).x7f = function () { return _get__CourseAssignmentSubmissionFileDao__63r33c(this); }; protoOf(UmAppDatabase_Repo).y7f = function () { return _get__CourseAssignmentMarkDao__yi6swd(this); }; protoOf(UmAppDatabase_Repo).z7f = function () { return _get__CommentsDao__mxkt84(this); }; protoOf(UmAppDatabase_Repo).a7g = function () { return _get__SiteDao__wss4yp(this); }; protoOf(UmAppDatabase_Repo).b7g = function () { return _get__SiteTermsDao__f7rqww(this); }; protoOf(UmAppDatabase_Repo).c7g = function () { return _get__PersonParentJoinDao__o0iclb(this); }; protoOf(UmAppDatabase_Repo).d7g = function () { return _get__ScopedGrantDao__9w613o(this); }; protoOf(UmAppDatabase_Repo).e7g = function () { return _get__ErrorReportDao__d8e0x0(this); }; protoOf(UmAppDatabase_Repo).f7g = function () { return _get__PersonAuth2Dao__uki6ut(this); }; protoOf(UmAppDatabase_Repo).g7g = function () { return _get__UserSessionDao__wcreq3(this); }; protoOf(UmAppDatabase_Repo).h7g = function () { throw IllegalStateException_init_$Create$('ContentEntryImportJobDao is not annotated with @Repository'); }; protoOf(UmAppDatabase_Repo).i7g = function () { return _get__CoursePictureDao__qr47kz(this); }; protoOf(UmAppDatabase_Repo).j7g = function () { return _get__ContentEntryPictureDao__hzeabf(this); }; protoOf(UmAppDatabase_Repo).k7g = function () { return _get__MessageDao__u7e9l3(this); }; protoOf(UmAppDatabase_Repo).l7g = function () { return _get__PeerReviewerAllocationDao__m08hnj(this); }; protoOf(UmAppDatabase_Repo).m7g = function () { return _get__DiscussionPostDao__bymsxs(this); }; protoOf(UmAppDatabase_Repo).n7g = function () { return _get__ContentEntryVersionDao__egjvvj(this); }; protoOf(UmAppDatabase_Repo).o7g = function () { throw IllegalStateException_init_$Create$('TransferJobDao is not annotated with @Repository'); }; protoOf(UmAppDatabase_Repo).p7g = function () { throw IllegalStateException_init_$Create$('TransferJobItemDao is not annotated with @Repository'); }; protoOf(UmAppDatabase_Repo).q7g = function () { return _get__OfflineItemDao__4yjkly(this); }; protoOf(UmAppDatabase_Repo).r7g = function () { return _get__DeletedItemDao__4i3s1g(this); }; protoOf(UmAppDatabase_Repo).s7g = function () { return _get__EnrolmentRequestDao__wkcqzn(this); }; protoOf(UmAppDatabase_Repo).t7g = function () { return _get__CoursePermissionDao__hib1jy(this); }; protoOf(UmAppDatabase_Repo).u7g = function () { return _get__SystemPermissionDao__c05myy(this); }; protoOf(UmAppDatabase_Repo).v7g = function () { return _get__CourseBlockPictureDao__hx4ubg(this); }; protoOf(UmAppDatabase_Repo).w7g = function () { return _get__ContentEntryPicture2Dao__ah6hid(this); }; protoOf(UmAppDatabase_Repo).x7g = function () { return _get__StudentResultDao__sr8vqw(this); }; protoOf(UmAppDatabase_Repo).y7g = function () { return _get__VerbLangMapEntryDao__oda6e3(this); }; protoOf(UmAppDatabase_Repo).z7g = function () { return _get__GroupMemberActorJoinDao__jlmme6(this); }; protoOf(UmAppDatabase_Repo).a7h = function () { return _get__ActivityLangMapEntryDao__htpiob(this); }; protoOf(UmAppDatabase_Repo).b7h = function () { return _get__ActivityInteractionDao__x272ir(this); }; protoOf(UmAppDatabase_Repo).c7h = function () { return _get__ActivityExtensionDao__cpvg5s(this); }; protoOf(UmAppDatabase_Repo).d7h = function () { return _get__StatementContextActivityJoinDao__t5jinj(this); }; protoOf(UmAppDatabase_Repo).e7h = function () { return _get__XapiSessionEntityDao__tpjn2v(this); }; protoOf(UmAppDatabase_Repo).f7h = function () { return _get__StatementEntityJsonDao__4ym94q(this); }; protoOf(UmAppDatabase_Repo).g7h = function () { return _get__StateEntityDao__vtinv8(this); }; protoOf(UmAppDatabase_Repo).h7h = function () { return _get__StateDeleteCommandDao__s2ay7b(this); }; protoOf(UmAppDatabase_Repo).i7h = function () { throw IllegalStateException_init_$Create$('ReportQueryResultDao is not annotated with @Repository'); }; function _PersonDao$factory_1() { return getPropertyCallableRef('_PersonDao', 1, KProperty1, function (receiver) { return _get__PersonDao__uzj2el(receiver); }, null); } function _ClazzDao$factory_1() { return getPropertyCallableRef('_ClazzDao', 1, KProperty1, function (receiver) { return _get__ClazzDao__9uv608(receiver); }, null); } function _CourseBlockDao$factory_1() { return getPropertyCallableRef('_CourseBlockDao', 1, KProperty1, function (receiver) { return _get__CourseBlockDao__4pp4mq(receiver); }, null); } function _CourseTerminologyDao$factory_1() { return getPropertyCallableRef('_CourseTerminologyDao', 1, KProperty1, function (receiver) { return _get__CourseTerminologyDao__a6bld4(receiver); }, null); } function _CourseGroupSetDao$factory_1() { return getPropertyCallableRef('_CourseGroupSetDao', 1, KProperty1, function (receiver) { return _get__CourseGroupSetDao__hfsuk6(receiver); }, null); } function _CourseGroupMemberDao$factory_1() { return getPropertyCallableRef('_CourseGroupMemberDao', 1, KProperty1, function (receiver) { return _get__CourseGroupMemberDao__l3hcwy(receiver); }, null); } function _ClazzEnrolmentDao$factory_1() { return getPropertyCallableRef('_ClazzEnrolmentDao', 1, KProperty1, function (receiver) { return _get__ClazzEnrolmentDao__q8nlvo(receiver); }, null); } function _LeavingReasonDao$factory_1() { return getPropertyCallableRef('_LeavingReasonDao', 1, KProperty1, function (receiver) { return _get__LeavingReasonDao__m21j14(receiver); }, null); } function _ContentEntryDao$factory_1() { return getPropertyCallableRef('_ContentEntryDao', 1, KProperty1, function (receiver) { return _get__ContentEntryDao__asrab3(receiver); }, null); } function _ContentEntryContentCategoryJoinDao$factory_1() { return getPropertyCallableRef('_ContentEntryContentCategoryJoinDao', 1, KProperty1, function (receiver) { return _get__ContentEntryContentCategoryJoinDao__c8c5lk(receiver); }, null); } function _ContentEntryParentChildJoinDao$factory_1() { return getPropertyCallableRef('_ContentEntryParentChildJoinDao', 1, KProperty1, function (receiver) { return _get__ContentEntryParentChildJoinDao__moxer(receiver); }, null); } function _ContentEntryRelatedEntryJoinDao$factory_1() { return getPropertyCallableRef('_ContentEntryRelatedEntryJoinDao', 1, KProperty1, function (receiver) { return _get__ContentEntryRelatedEntryJoinDao__wdqzcu(receiver); }, null); } function _ContentCategorySchemaDao$factory_1() { return getPropertyCallableRef('_ContentCategorySchemaDao', 1, KProperty1, function (receiver) { return _get__ContentCategorySchemaDao__95pyeg(receiver); }, null); } function _ContentCategoryDao$factory_1() { return getPropertyCallableRef('_ContentCategoryDao', 1, KProperty1, function (receiver) { return _get__ContentCategoryDao__tsqjyv(receiver); }, null); } function _LanguageDao$factory_1() { return getPropertyCallableRef('_LanguageDao', 1, KProperty1, function (receiver) { return _get__LanguageDao__1z90w(receiver); }, null); } function _LanguageVariantDao$factory_1() { return getPropertyCallableRef('_LanguageVariantDao', 1, KProperty1, function (receiver) { return _get__LanguageVariantDao__rxf1fx(receiver); }, null); } function _PersonGroupDao$factory_1() { return getPropertyCallableRef('_PersonGroupDao', 1, KProperty1, function (receiver) { return _get__PersonGroupDao__hew8d2(receiver); }, null); } function _PersonGroupMemberDao$factory_1() { return getPropertyCallableRef('_PersonGroupMemberDao', 1, KProperty1, function (receiver) { return _get__PersonGroupMemberDao__mvnpb8(receiver); }, null); } function _PersonPictureDao$factory_1() { return getPropertyCallableRef('_PersonPictureDao', 1, KProperty1, function (receiver) { return _get__PersonPictureDao__2gbg89(receiver); }, null); } function _VerbDao$factory_1() { return getPropertyCallableRef('_VerbDao', 1, KProperty1, function (receiver) { return _get__VerbDao__618h8p(receiver); }, null); } function _ActivityEntityDao$factory_1() { return getPropertyCallableRef('_ActivityEntityDao', 1, KProperty1, function (receiver) { return _get__ActivityEntityDao__cj0phy(receiver); }, null); } function _ReportDao$factory_1() { return getPropertyCallableRef('_ReportDao', 1, KProperty1, function (receiver) { return _get__ReportDao__jbr9h0(receiver); }, null); } function _StatementDao$factory_1() { return getPropertyCallableRef('_StatementDao', 1, KProperty1, function (receiver) { return _get__StatementDao__fnw41b(receiver); }, null); } function _ActorDao$factory_1() { return getPropertyCallableRef('_ActorDao', 1, KProperty1, function (receiver) { return _get__ActorDao__6yq8sr(receiver); }, null); } function _ClazzLogAttendanceRecordDao$factory_1() { return getPropertyCallableRef('_ClazzLogAttendanceRecordDao', 1, KProperty1, function (receiver) { return _get__ClazzLogAttendanceRecordDao__r3qxzy(receiver); }, null); } function _ClazzLogDao$factory_1() { return getPropertyCallableRef('_ClazzLogDao', 1, KProperty1, function (receiver) { return _get__ClazzLogDao__xeo15w(receiver); }, null); } function _ScheduleDao$factory_1() { return getPropertyCallableRef('_ScheduleDao', 1, KProperty1, function (receiver) { return _get__ScheduleDao__h5s1ch(receiver); }, null); } function _HolidayCalendarDao$factory_1() { return getPropertyCallableRef('_HolidayCalendarDao', 1, KProperty1, function (receiver) { return _get__HolidayCalendarDao__gbx0p6(receiver); }, null); } function _HolidayDao$factory_1() { return getPropertyCallableRef('_HolidayDao', 1, KProperty1, function (receiver) { return _get__HolidayDao__x92kh4(receiver); }, null); } function _ClazzAssignmentDao$factory_1() { return getPropertyCallableRef('_ClazzAssignmentDao', 1, KProperty1, function (receiver) { return _get__ClazzAssignmentDao__kc42th(receiver); }, null); } function _CourseAssignmentSubmissionDao$factory_1() { return getPropertyCallableRef('_CourseAssignmentSubmissionDao', 1, KProperty1, function (receiver) { return _get__CourseAssignmentSubmissionDao__ir2b4c(receiver); }, null); } function _CourseAssignmentSubmissionFileDao$factory_1() { return getPropertyCallableRef('_CourseAssignmentSubmissionFileDao', 1, KProperty1, function (receiver) { return _get__CourseAssignmentSubmissionFileDao__63r33c(receiver); }, null); } function _CourseAssignmentMarkDao$factory_1() { return getPropertyCallableRef('_CourseAssignmentMarkDao', 1, KProperty1, function (receiver) { return _get__CourseAssignmentMarkDao__yi6swd(receiver); }, null); } function _CommentsDao$factory_1() { return getPropertyCallableRef('_CommentsDao', 1, KProperty1, function (receiver) { return _get__CommentsDao__mxkt84(receiver); }, null); } function _SiteDao$factory_1() { return getPropertyCallableRef('_SiteDao', 1, KProperty1, function (receiver) { return _get__SiteDao__wss4yp(receiver); }, null); } function _SiteTermsDao$factory_1() { return getPropertyCallableRef('_SiteTermsDao', 1, KProperty1, function (receiver) { return _get__SiteTermsDao__f7rqww(receiver); }, null); } function _PersonParentJoinDao$factory_1() { return getPropertyCallableRef('_PersonParentJoinDao', 1, KProperty1, function (receiver) { return _get__PersonParentJoinDao__o0iclb(receiver); }, null); } function _ScopedGrantDao$factory_1() { return getPropertyCallableRef('_ScopedGrantDao', 1, KProperty1, function (receiver) { return _get__ScopedGrantDao__9w613o(receiver); }, null); } function _ErrorReportDao$factory_1() { return getPropertyCallableRef('_ErrorReportDao', 1, KProperty1, function (receiver) { return _get__ErrorReportDao__d8e0x0(receiver); }, null); } function _PersonAuth2Dao$factory_1() { return getPropertyCallableRef('_PersonAuth2Dao', 1, KProperty1, function (receiver) { return _get__PersonAuth2Dao__uki6ut(receiver); }, null); } function _UserSessionDao$factory_1() { return getPropertyCallableRef('_UserSessionDao', 1, KProperty1, function (receiver) { return _get__UserSessionDao__wcreq3(receiver); }, null); } function _CoursePictureDao$factory_1() { return getPropertyCallableRef('_CoursePictureDao', 1, KProperty1, function (receiver) { return _get__CoursePictureDao__qr47kz(receiver); }, null); } function _ContentEntryPictureDao$factory_1() { return getPropertyCallableRef('_ContentEntryPictureDao', 1, KProperty1, function (receiver) { return _get__ContentEntryPictureDao__hzeabf(receiver); }, null); } function _MessageDao$factory_1() { return getPropertyCallableRef('_MessageDao', 1, KProperty1, function (receiver) { return _get__MessageDao__u7e9l3(receiver); }, null); } function _PeerReviewerAllocationDao$factory_1() { return getPropertyCallableRef('_PeerReviewerAllocationDao', 1, KProperty1, function (receiver) { return _get__PeerReviewerAllocationDao__m08hnj(receiver); }, null); } function _DiscussionPostDao$factory_1() { return getPropertyCallableRef('_DiscussionPostDao', 1, KProperty1, function (receiver) { return _get__DiscussionPostDao__bymsxs(receiver); }, null); } function _ContentEntryVersionDao$factory_1() { return getPropertyCallableRef('_ContentEntryVersionDao', 1, KProperty1, function (receiver) { return _get__ContentEntryVersionDao__egjvvj(receiver); }, null); } function _OfflineItemDao$factory_1() { return getPropertyCallableRef('_OfflineItemDao', 1, KProperty1, function (receiver) { return _get__OfflineItemDao__4yjkly(receiver); }, null); } function _DeletedItemDao$factory_0() { return getPropertyCallableRef('_DeletedItemDao', 1, KProperty1, function (receiver) { return _get__DeletedItemDao__4i3s1g(receiver); }, null); } function _EnrolmentRequestDao$factory_1() { return getPropertyCallableRef('_EnrolmentRequestDao', 1, KProperty1, function (receiver) { return _get__EnrolmentRequestDao__wkcqzn(receiver); }, null); } function _CoursePermissionDao$factory_1() { return getPropertyCallableRef('_CoursePermissionDao', 1, KProperty1, function (receiver) { return _get__CoursePermissionDao__hib1jy(receiver); }, null); } function _SystemPermissionDao$factory_1() { return getPropertyCallableRef('_SystemPermissionDao', 1, KProperty1, function (receiver) { return _get__SystemPermissionDao__c05myy(receiver); }, null); } function _CourseBlockPictureDao$factory_1() { return getPropertyCallableRef('_CourseBlockPictureDao', 1, KProperty1, function (receiver) { return _get__CourseBlockPictureDao__hx4ubg(receiver); }, null); } function _ContentEntryPicture2Dao$factory_1() { return getPropertyCallableRef('_ContentEntryPicture2Dao', 1, KProperty1, function (receiver) { return _get__ContentEntryPicture2Dao__ah6hid(receiver); }, null); } function _StudentResultDao$factory_1() { return getPropertyCallableRef('_StudentResultDao', 1, KProperty1, function (receiver) { return _get__StudentResultDao__sr8vqw(receiver); }, null); } function _VerbLangMapEntryDao$factory_1() { return getPropertyCallableRef('_VerbLangMapEntryDao', 1, KProperty1, function (receiver) { return _get__VerbLangMapEntryDao__oda6e3(receiver); }, null); } function _GroupMemberActorJoinDao$factory_1() { return getPropertyCallableRef('_GroupMemberActorJoinDao', 1, KProperty1, function (receiver) { return _get__GroupMemberActorJoinDao__jlmme6(receiver); }, null); } function _ActivityLangMapEntryDao$factory_1() { return getPropertyCallableRef('_ActivityLangMapEntryDao', 1, KProperty1, function (receiver) { return _get__ActivityLangMapEntryDao__htpiob(receiver); }, null); } function _ActivityInteractionDao$factory_1() { return getPropertyCallableRef('_ActivityInteractionDao', 1, KProperty1, function (receiver) { return _get__ActivityInteractionDao__x272ir(receiver); }, null); } function _ActivityExtensionDao$factory_1() { return getPropertyCallableRef('_ActivityExtensionDao', 1, KProperty1, function (receiver) { return _get__ActivityExtensionDao__cpvg5s(receiver); }, null); } function _StatementContextActivityJoinDao$factory_1() { return getPropertyCallableRef('_StatementContextActivityJoinDao', 1, KProperty1, function (receiver) { return _get__StatementContextActivityJoinDao__t5jinj(receiver); }, null); } function _XapiSessionEntityDao$factory_1() { return getPropertyCallableRef('_XapiSessionEntityDao', 1, KProperty1, function (receiver) { return _get__XapiSessionEntityDao__tpjn2v(receiver); }, null); } function _StatementEntityJsonDao$factory_1() { return getPropertyCallableRef('_StatementEntityJsonDao', 1, KProperty1, function (receiver) { return _get__StatementEntityJsonDao__4ym94q(receiver); }, null); } function _StateEntityDao$factory_1() { return getPropertyCallableRef('_StateEntityDao', 1, KProperty1, function (receiver) { return _get__StateEntityDao__vtinv8(receiver); }, null); } function _StateDeleteCommandDao$factory_1() { return getPropertyCallableRef('_StateDeleteCommandDao', 1, KProperty1, function (receiver) { return _get__StateDeleteCommandDao__s2ay7b(receiver); }, null); } function CacheLockJoinDao() { } function CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.v7s_1); } protoOf(CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1).w5h = function (returnsId) { return 'INSERT INTO CacheLockJoin (cljId, cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType, cljOiUid) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1).z7s = function (stmt, entity) { if (entity.a7t_1 === 0) { stmt.c5j(1, null); } else { stmt.w5i(1, entity.a7t_1); } stmt.w5i(2, entity.b7t_1); stmt.x5i(3, entity.c7t_1); stmt.a5j(4, entity.d7t_1); stmt.x5i(5, entity.e7t_1); stmt.w5i(6, entity.f7t_1); stmt.w5i(7, entity.g7t_1); stmt.x5i(8, entity.h7t_1); }; protoOf(CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1).r5g = function (stmt, entity) { return this.z7s(stmt, entity instanceof CacheLockJoin ? entity : THROW_CCE()); }; function CacheLockJoinDao_JdbcImpl(_db) { CacheLockJoinDao.call(this); this.v7s_1 = _db; var tmp = this; tmp.w7s_1 = new CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1(this); } function ClazzAssignmentDao() { } function $upsertListAsyncCOROUTINE$1(_this__u8e3s4, entities, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.a7u_1 = _this__u8e3s4; this.b7u_1 = entities; } protoOf($upsertListAsyncCOROUTINE$1).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; this.c7u_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.a7u_1.j7u_1)); var tmp_0 = this; tmp_0.d7u_1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.e7u_1 = this.b7u_1.w(); var tmp_2 = this; tmp_2.f7u_1 = this.e7u_1; this.ld_1 = 1; continue $sm; case 1: if (!this.f7u_1.f()) { this.ld_1 = 4; continue $sm; } this.g7u_1 = this.f7u_1.e(); var tmp_3 = this; tmp_3.h7u_1 = this.g7u_1; if (this.h7u_1.l7u_1.equals(new Long(0, 0))) { this.ld_1 = 2; suspendResult = this.c7u_1.r63(520, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 3; continue $sm; } case 2: this.i7u_1 = suspendResult; this.h7u_1.l7u_1 = this.i7u_1; var this_0 = this.d7u_1; var element = this.i7u_1; this_0.j1(element); this.ld_1 = 3; continue $sm; case 3: this.h7u_1.i7v_1 = systemTimeInMillis(); this.ld_1 = 1; continue $sm; case 4: this.ld_1 = 5; suspendResult = this.a7u_1.k7u_1.p7t(this.b7u_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_instance; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$2(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.r7v_1 = _this__u8e3s4; this.s7v_1 = entity; } protoOf($insertAsyncCOROUTINE$2).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.t7v_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.r7v_1.j7u_1)); if (this.s7v_1.l7u_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.t7v_1.r63(520, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.u7v_1 = suspendResult; this.s7v_1.l7u_1 = this.u7v_1; this.ld_1 = 2; continue $sm; case 2: this.s7v_1.i7v_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.r7v_1.k7u_1.insertAsync(this.s7v_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.s7v_1.l7u_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ClazzAssignmentDao_DoorWrapper(_db, _dao) { ClazzAssignmentDao.call(this); this.j7u_1 = _db; this.k7u_1 = _dao; } protoOf(ClazzAssignmentDao_DoorWrapper).i7t = function (assignmentUid, clazzUid, accountPersonUid, group) { return this.k7u_1.i7t(assignmentUid, clazzUid, accountPersonUid, group); }; protoOf(ClazzAssignmentDao_DoorWrapper).j7t = function (assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption) { return this.k7u_1.j7t(assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption); }; protoOf(ClazzAssignmentDao_DoorWrapper).k7t = function (clazzUid, groupSetUid, time, $completion) { return this.k7u_1.k7t(clazzUid, groupSetUid, time, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).l7t = function (clazzUid, groupSetUid, date, groupStr, $completion) { return this.k7u_1.l7t(clazzUid, groupSetUid, date, groupStr, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).m7t = function (assignmentUid, clazzUid, accountPersonUid, $completion) { return this.k7u_1.m7t(assignmentUid, clazzUid, accountPersonUid, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).n7t = function (uid, clazzUid) { return this.k7u_1.n7t(uid, clazzUid); }; protoOf(ClazzAssignmentDao_DoorWrapper).o7t = function (uid, $completion) { return this.k7u_1.o7t(uid, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).p7t = function (entities, $completion) { var tmp = new $upsertListAsyncCOROUTINE$1(this, entities, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_DoorWrapper).q7t = function (uidList, active, changeTime, $completion) { return this.k7u_1.q7t(uidList, active, changeTime, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).r7t = function (assignmentUid, clazzUid, accountPersonUid) { return this.k7u_1.r7t(assignmentUid, clazzUid, accountPersonUid); }; protoOf(ClazzAssignmentDao_DoorWrapper).v7v = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$2(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.v7v(entity instanceof ClazzAssignment ? entity : THROW_CCE(), $completion); }; function ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_submittedStudents = $_result.a5o('submittedStudents'); var _tmp_totalStudents = $_result.a5o('totalStudents'); var _tmp_markedStudents = $_result.a5o('markedStudents'); var _tmp_activeUserHasViewLearnerRecordsPermission = $_result.m67('activeUserHasViewLearnerRecordsPermission'); var _tmp_isGroupAssignment = $_result.m67('isGroupAssignment'); // Inline function 'kotlin.apply' call var this_0 = new AssignmentProgressSummary(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.getProgressSummaryForAssignment.....' call this_0.w7v_1 = _tmp_submittedStudents; this_0.x7v_1 = _tmp_totalStudents; this_0.y7v_1 = _tmp_markedStudents; this_0.z7v_1 = _tmp_activeUserHasViewLearnerRecordsPermission; this_0.a7w_1 = _tmp_isGroupAssignment; return this_0; }; } function ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation) { this.j7w_1 = $clazzUid; this.k7w_1 = $accountPersonUid; this.l7w_1 = $assignmentUid; this.m7w_1 = $group; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda).o7w = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda).le = function (p1, $completion) { return this.o7w((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.n7w_1.x5i(1, this.j7w_1); this.n7w_1.x5i(2, this.k7w_1); this.n7w_1.x5i(3, this.k7w_1); this.n7w_1.x5i(4, this.j7w_1); this.n7w_1.x5i(5, this.k7w_1); this.n7w_1.x5i(6, this.k7w_1); this.n7w_1.x5i(7, this.l7w_1); this.n7w_1.x5i(8, this.l7w_1); this.n7w_1.x5i(9, this.j7w_1); this.n7w_1.x5i(10, this.l7w_1); this.n7w_1.x5i(11, this.l7w_1); this.n7w_1.x5i(12, this.k7w_1); this.n7w_1.a5j(13, this.m7w_1); this.n7w_1.x5i(14, this.l7w_1); this.n7w_1.x5i(15, this.l7w_1); this.n7w_1.x5i(16, this.l7w_1); this.n7w_1.x5i(17, this.l7w_1); this.n7w_1.x5i(18, this.l7w_1); this.n7w_1.x5i(19, this.k7w_1); this.n7w_1.x5i(20, this.l7w_1); this.n7w_1.x5i(21, this.l7w_1); this.n7w_1.x5i(22, this.l7w_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.n7w_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda).o5g = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda(this.j7w_1, this.k7w_1, this.l7w_1, this.m7w_1, completion); i.n7w_1 = _stmt; return i; }; function ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda_0($clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation); var l = function (_stmt, $completion) { return i.o7w(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_submitterUid = $_result.b5o('submitterUid'); var _tmp_name = $_result.b10('name'); var _tmp_pictureUri = $_result.b10('pictureUri'); var _tmp_latestPrivateComment = $_result.b10('latestPrivateComment'); var _tmp_fileSubmissionStatus = $_result.a5o('fileSubmissionStatus'); // Inline function 'kotlin.apply' call var this_0 = new AssignmentSubmitterSummary(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.p7w_1 = _tmp_submitterUid; this_0.q7w_1 = _tmp_name; this_0.r7w_1 = _tmp_pictureUri; this_0.s7w_1 = _tmp_latestPrivateComment; this_0.t7w_1 = _tmp_fileSubmissionStatus; return this_0; }; } function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption, $_limit, $_offset, resultContinuation) { this.c7x_1 = $clazzUid; this.d7x_1 = $accountPersonUid; this.e7x_1 = $assignmentUid; this.f7x_1 = $group; this.g7x_1 = $searchText; this.h7x_1 = $sortOption; this.i7x_1 = $_limit; this.j7x_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda).l7x = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda).le = function (p1, $completion) { return this.l7x((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.k7x_1.x5i(1, this.c7x_1); this.k7x_1.x5i(2, this.d7x_1); this.k7x_1.x5i(3, this.d7x_1); this.k7x_1.x5i(4, this.c7x_1); this.k7x_1.x5i(5, this.d7x_1); this.k7x_1.x5i(6, this.d7x_1); this.k7x_1.x5i(7, this.e7x_1); this.k7x_1.x5i(8, this.e7x_1); this.k7x_1.x5i(9, this.c7x_1); this.k7x_1.x5i(10, this.e7x_1); this.k7x_1.x5i(11, this.e7x_1); this.k7x_1.x5i(12, this.d7x_1); this.k7x_1.a5j(13, this.f7x_1); this.k7x_1.x5i(14, this.e7x_1); this.k7x_1.x5i(15, this.e7x_1); this.k7x_1.x5i(16, this.e7x_1); this.k7x_1.x5i(17, this.e7x_1); this.k7x_1.x5i(18, this.e7x_1); this.k7x_1.x5i(19, this.d7x_1); this.k7x_1.x5i(20, this.e7x_1); this.k7x_1.x5i(21, this.e7x_1); this.k7x_1.x5i(22, this.e7x_1); this.k7x_1.a5j(23, this.g7x_1); this.k7x_1.a5j(24, this.g7x_1); this.k7x_1.w5i(25, this.h7x_1); this.k7x_1.w5i(26, this.h7x_1); this.k7x_1.w5i(27, this.i7x_1); this.k7x_1.w5i(28, this.j7x_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.k7x_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda(this.c7x_1, this.d7x_1, this.e7x_1, this.f7x_1, this.g7x_1, this.h7x_1, this.i7x_1, this.j7x_1, completion); i.k7x_1 = _stmt; return i; }; function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda_0($clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption, $_limit, $_offset, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.l7x(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption, resultContinuation) { this.u7x_1 = $clazzUid; this.v7x_1 = $accountPersonUid; this.w7x_1 = $assignmentUid; this.x7x_1 = $group; this.y7x_1 = $searchText; this.z7x_1 = $sortOption; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.a7y_1.x5i(1, this.u7x_1); this.a7y_1.x5i(2, this.v7x_1); this.a7y_1.x5i(3, this.v7x_1); this.a7y_1.x5i(4, this.u7x_1); this.a7y_1.x5i(5, this.v7x_1); this.a7y_1.x5i(6, this.v7x_1); this.a7y_1.x5i(7, this.w7x_1); this.a7y_1.x5i(8, this.w7x_1); this.a7y_1.x5i(9, this.u7x_1); this.a7y_1.x5i(10, this.w7x_1); this.a7y_1.x5i(11, this.w7x_1); this.a7y_1.x5i(12, this.v7x_1); this.a7y_1.a5j(13, this.x7x_1); this.a7y_1.x5i(14, this.w7x_1); this.a7y_1.x5i(15, this.w7x_1); this.a7y_1.x5i(16, this.w7x_1); this.a7y_1.x5i(17, this.w7x_1); this.a7y_1.x5i(18, this.w7x_1); this.a7y_1.x5i(19, this.v7x_1); this.a7y_1.x5i(20, this.w7x_1); this.a7y_1.x5i(21, this.w7x_1); this.a7y_1.x5i(22, this.w7x_1); this.a7y_1.a5j(23, this.y7x_1); this.a7y_1.a5j(24, this.y7x_1); this.a7y_1.w5i(25, this.z7x_1); this.a7y_1.w5i(26, this.z7x_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.a7y_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda(this.u7x_1, this.v7x_1, this.w7x_1, this.x7x_1, this.y7x_1, this.z7x_1, completion); i.a7y_1 = _stmt; return i; }; function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda_0($clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda$lambda(_result) { return mapRows(_result, ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda$lambda$lambda($_result) { return function (it) { return $_result.b5g(1); }; } function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda$lambda(_result) { return mapRows(_result, ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_name = $_result.b10('name'); var _tmp_submitterUid = $_result.b5o('submitterUid'); // Inline function 'kotlin.apply' call var this_0 = new AssignmentSubmitterUidAndName(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.getSubmitterUidsAndNameByClazzOrGroupSetUid....' call this_0.b7y_1 = _tmp_name; this_0.c7y_1 = _tmp_submitterUid; return this_0; }; } function ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda$lambda(_result) { var tmp = new Long(0, 0); return mapNextRow(_result, tmp, ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda$lambda$lambda($_result) { return function (it) { return $_result.b5g(1); }; } function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_caUid = $_result.b5o('caUid'); var _tmp_caTitle = $_result.b10('caTitle'); var _tmp_caDescription = $_result.b10('caDescription'); var _tmp_caGroupUid = $_result.b5o('caGroupUid'); var _tmp_caActive = $_result.m67('caActive'); var _tmp_caClassCommentEnabled = $_result.m67('caClassCommentEnabled'); var _tmp_caPrivateCommentsEnabled = $_result.m67('caPrivateCommentsEnabled'); var _tmp_caCompletionCriteria = $_result.a5o('caCompletionCriteria'); var _tmp_caRequireFileSubmission = $_result.m67('caRequireFileSubmission'); var _tmp_caFileType = $_result.a5o('caFileType'); var _tmp_caSizeLimit = $_result.a5o('caSizeLimit'); var _tmp_caNumberOfFiles = $_result.a5o('caNumberOfFiles'); var _tmp_caSubmissionPolicy = $_result.a5o('caSubmissionPolicy'); var _tmp_caMarkingType = $_result.a5o('caMarkingType'); var _tmp_caRequireTextSubmission = $_result.m67('caRequireTextSubmission'); var _tmp_caTextLimitType = $_result.a5o('caTextLimitType'); var _tmp_caTextLimit = $_result.a5o('caTextLimit'); var _tmp_caXObjectUid = $_result.b5o('caXObjectUid'); var _tmp_caClazzUid = $_result.b5o('caClazzUid'); var _tmp_caPeerReviewerCount = $_result.a5o('caPeerReviewerCount'); var _tmp_caLocalChangeSeqNum = $_result.b5o('caLocalChangeSeqNum'); var _tmp_caMasterChangeSeqNum = $_result.b5o('caMasterChangeSeqNum'); var _tmp_caLastChangedBy = $_result.a5o('caLastChangedBy'); var _tmp_caLct = $_result.b5o('caLct'); // Inline function 'kotlin.apply' call var this_0 = new ClazzAssignment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findByUidAndClazzUidAsFlow.....' call this_0.l7u_1 = _tmp_caUid; this_0.m7u_1 = _tmp_caTitle; this_0.n7u_1 = _tmp_caDescription; this_0.o7u_1 = _tmp_caGroupUid; this_0.p7u_1 = _tmp_caActive; this_0.q7u_1 = _tmp_caClassCommentEnabled; this_0.r7u_1 = _tmp_caPrivateCommentsEnabled; this_0.s7u_1 = _tmp_caCompletionCriteria; this_0.t7u_1 = _tmp_caRequireFileSubmission; this_0.u7u_1 = _tmp_caFileType; this_0.v7u_1 = _tmp_caSizeLimit; this_0.w7u_1 = _tmp_caNumberOfFiles; this_0.x7u_1 = _tmp_caSubmissionPolicy; this_0.y7u_1 = _tmp_caMarkingType; this_0.z7u_1 = _tmp_caRequireTextSubmission; this_0.a7v_1 = _tmp_caTextLimitType; this_0.b7v_1 = _tmp_caTextLimit; this_0.c7v_1 = _tmp_caXObjectUid; this_0.d7v_1 = _tmp_caClazzUid; this_0.e7v_1 = _tmp_caPeerReviewerCount; this_0.f7v_1 = _tmp_caLocalChangeSeqNum; this_0.g7v_1 = _tmp_caMasterChangeSeqNum; this_0.h7v_1 = _tmp_caLastChangedBy; this_0.i7v_1 = _tmp_caLct; return this_0; }; } function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda($uid, $clazzUid, resultContinuation) { this.l7y_1 = $uid; this.m7y_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).o7y = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).le = function (p1, $completion) { return this.o7y((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.n7y_1.x5i(1, this.l7y_1); this.n7y_1.x5i(2, this.m7y_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.n7y_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda(this.l7y_1, this.m7y_1, completion); i.n7y_1 = _stmt; return i; }; function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda_0($uid, $clazzUid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda($uid, $clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.o7y(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ClazzAssignment_nullCount = 0; var _tmp_caUid = $_result.b5o('caUid'); var tmp; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_caTitle = $_result.b10('caTitle'); var tmp_0; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_caDescription = $_result.b10('caDescription'); var tmp_1; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_caGroupUid = $_result.b5o('caGroupUid'); var tmp_2; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_caActive = $_result.m67('caActive'); var tmp_3; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_caClassCommentEnabled = $_result.m67('caClassCommentEnabled'); var tmp_4; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_caPrivateCommentsEnabled = $_result.m67('caPrivateCommentsEnabled'); var tmp_5; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_caCompletionCriteria = $_result.a5o('caCompletionCriteria'); var tmp_6; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_caRequireFileSubmission = $_result.m67('caRequireFileSubmission'); var tmp_7; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_caFileType = $_result.a5o('caFileType'); var tmp_8; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_caSizeLimit = $_result.a5o('caSizeLimit'); var tmp_9; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_caNumberOfFiles = $_result.a5o('caNumberOfFiles'); var tmp_10; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_caSubmissionPolicy = $_result.a5o('caSubmissionPolicy'); var tmp_11; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_caMarkingType = $_result.a5o('caMarkingType'); var tmp_12; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_caRequireTextSubmission = $_result.m67('caRequireTextSubmission'); var tmp_13; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_caTextLimitType = $_result.a5o('caTextLimitType'); var tmp_14; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_caTextLimit = $_result.a5o('caTextLimit'); var tmp_15; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_caXObjectUid = $_result.b5o('caXObjectUid'); var tmp_16; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_caClazzUid = $_result.b5o('caClazzUid'); var tmp_17; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_caPeerReviewerCount = $_result.a5o('caPeerReviewerCount'); var tmp_18; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_caLocalChangeSeqNum = $_result.b5o('caLocalChangeSeqNum'); var tmp_19; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_caMasterChangeSeqNum = $_result.b5o('caMasterChangeSeqNum'); var tmp_20; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_caLastChangedBy = $_result.a5o('caLastChangedBy'); var tmp_21; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_caLct = $_result.b5o('caLct'); var tmp_22; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_ClazzAssignment_isAllNull = _tmp_ClazzAssignment_nullCount === 24; var _tmp_CourseBlock_nullCount = 0; var _tmp_cbUid = $_result.b5o('cbUid'); var tmp_23; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_cbType = $_result.a5o('cbType'); var tmp_24; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_cbIndentLevel = $_result.a5o('cbIndentLevel'); var tmp_25; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_cbModuleParentBlockUid = $_result.b5o('cbModuleParentBlockUid'); var tmp_26; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_cbTitle = $_result.b10('cbTitle'); var tmp_27; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_cbDescription = $_result.b10('cbDescription'); var tmp_28; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_cbCompletionCriteria = $_result.a5o('cbCompletionCriteria'); var tmp_29; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_cbHideUntilDate = $_result.b5o('cbHideUntilDate'); var tmp_30; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_30 = Unit_instance; } var _tmp_cbDeadlineDate = $_result.b5o('cbDeadlineDate'); var tmp_31; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_31 = Unit_instance; } var _tmp_cbLateSubmissionPenalty = $_result.a5o('cbLateSubmissionPenalty'); var tmp_32; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_32 = Unit_instance; } var _tmp_cbGracePeriodDate = $_result.b5o('cbGracePeriodDate'); var tmp_33; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_33 = Unit_instance; } var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints'); var tmp_34; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_34 = Unit_instance; } var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints'); var tmp_35; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_35 = Unit_instance; } var _tmp_cbIndex = $_result.a5o('cbIndex'); var tmp_36; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_36 = Unit_instance; } var _tmp_cbClazzUid = $_result.b5o('cbClazzUid'); var tmp_37; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_37 = Unit_instance; } var _tmp_cbClazzSourcedId = $_result.b10('cbClazzSourcedId'); var tmp_38; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_38 = Unit_instance; } var _tmp_cbActive = $_result.m67('cbActive'); var tmp_39; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_39 = Unit_instance; } var _tmp_cbHidden = $_result.m67('cbHidden'); var tmp_40; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_40 = Unit_instance; } var _tmp_cbEntityUid = $_result.b5o('cbEntityUid'); var tmp_41; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_41 = Unit_instance; } var _tmp_cbLct = $_result.b5o('cbLct'); var tmp_42; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_42 = Unit_instance; } var _tmp_cbSourcedId = $_result.b10('cbSourcedId'); var tmp_43; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_43 = Unit_instance; } var _tmp_cbMetadata = $_result.b10('cbMetadata'); var tmp_44; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_44 = Unit_instance; } var _tmp_cbCreatedByAppId = $_result.b10('cbCreatedByAppId'); var tmp_45; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_45 = Unit_instance; } var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23; // Inline function 'kotlin.apply' call var this_0 = new ClazzAssignmentAndBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findByUidWithBlockAsync....' call if (!_tmp_ClazzAssignment_isAllNull) { var tmp_46 = this_0; // Inline function 'kotlin.apply' call var this_1 = new ClazzAssignment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findByUidWithBlockAsync.....' call this_1.l7u_1 = _tmp_caUid; this_1.m7u_1 = _tmp_caTitle; this_1.n7u_1 = _tmp_caDescription; this_1.o7u_1 = _tmp_caGroupUid; this_1.p7u_1 = _tmp_caActive; this_1.q7u_1 = _tmp_caClassCommentEnabled; this_1.r7u_1 = _tmp_caPrivateCommentsEnabled; this_1.s7u_1 = _tmp_caCompletionCriteria; this_1.t7u_1 = _tmp_caRequireFileSubmission; this_1.u7u_1 = _tmp_caFileType; this_1.v7u_1 = _tmp_caSizeLimit; this_1.w7u_1 = _tmp_caNumberOfFiles; this_1.x7u_1 = _tmp_caSubmissionPolicy; this_1.y7u_1 = _tmp_caMarkingType; this_1.z7u_1 = _tmp_caRequireTextSubmission; this_1.a7v_1 = _tmp_caTextLimitType; this_1.b7v_1 = _tmp_caTextLimit; this_1.c7v_1 = _tmp_caXObjectUid; this_1.d7v_1 = _tmp_caClazzUid; this_1.e7v_1 = _tmp_caPeerReviewerCount; this_1.f7v_1 = _tmp_caLocalChangeSeqNum; this_1.g7v_1 = _tmp_caMasterChangeSeqNum; this_1.h7v_1 = _tmp_caLastChangedBy; this_1.i7v_1 = _tmp_caLct; tmp_46.p7y_1 = this_1; } if (!_tmp_CourseBlock_isAllNull) { var tmp_47 = this_0; // Inline function 'kotlin.apply' call var this_2 = new CourseBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findByUidWithBlockAsync.....' call this_2.r7y_1 = _tmp_cbUid; this_2.s7y_1 = _tmp_cbType; this_2.t7y_1 = _tmp_cbIndentLevel; this_2.u7y_1 = _tmp_cbModuleParentBlockUid; this_2.v7y_1 = _tmp_cbTitle; this_2.w7y_1 = _tmp_cbDescription; this_2.x7y_1 = _tmp_cbCompletionCriteria; this_2.y7y_1 = _tmp_cbHideUntilDate; this_2.z7y_1 = _tmp_cbDeadlineDate; this_2.a7z_1 = _tmp_cbLateSubmissionPenalty; this_2.b7z_1 = _tmp_cbGracePeriodDate; this_2.c7z_1 = _tmp_cbMaxPoints; this_2.d7z_1 = _tmp_cbMinPoints; this_2.e7z_1 = _tmp_cbIndex; this_2.f7z_1 = _tmp_cbClazzUid; this_2.g7z_1 = _tmp_cbClazzSourcedId; this_2.h7z_1 = _tmp_cbActive; this_2.i7z_1 = _tmp_cbHidden; this_2.j7z_1 = _tmp_cbEntityUid; this_2.k7z_1 = _tmp_cbLct; this_2.l7z_1 = _tmp_cbSourcedId; this_2.m7z_1 = _tmp_cbMetadata; this_2.n7z_1 = _tmp_cbCreatedByAppId; tmp_47.q7y_1 = this_2; } return this_0; }; } function ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_submitterUid = $_result.b5o('submitterUid'); var _tmp_hasModeratePermission = $_result.m67('hasModeratePermission'); var _tmp_ClazzAssignment_nullCount = 0; var _tmp_caUid = $_result.b5o('caUid'); var tmp; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_caTitle = $_result.b10('caTitle'); var tmp_0; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_caDescription = $_result.b10('caDescription'); var tmp_1; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_caGroupUid = $_result.b5o('caGroupUid'); var tmp_2; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_caActive = $_result.m67('caActive'); var tmp_3; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_caClassCommentEnabled = $_result.m67('caClassCommentEnabled'); var tmp_4; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_caPrivateCommentsEnabled = $_result.m67('caPrivateCommentsEnabled'); var tmp_5; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_caCompletionCriteria = $_result.a5o('caCompletionCriteria'); var tmp_6; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_caRequireFileSubmission = $_result.m67('caRequireFileSubmission'); var tmp_7; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_caFileType = $_result.a5o('caFileType'); var tmp_8; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_caSizeLimit = $_result.a5o('caSizeLimit'); var tmp_9; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_caNumberOfFiles = $_result.a5o('caNumberOfFiles'); var tmp_10; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_caSubmissionPolicy = $_result.a5o('caSubmissionPolicy'); var tmp_11; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_caMarkingType = $_result.a5o('caMarkingType'); var tmp_12; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_caRequireTextSubmission = $_result.m67('caRequireTextSubmission'); var tmp_13; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_caTextLimitType = $_result.a5o('caTextLimitType'); var tmp_14; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_caTextLimit = $_result.a5o('caTextLimit'); var tmp_15; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_caXObjectUid = $_result.b5o('caXObjectUid'); var tmp_16; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_caClazzUid = $_result.b5o('caClazzUid'); var tmp_17; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_caPeerReviewerCount = $_result.a5o('caPeerReviewerCount'); var tmp_18; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_caLocalChangeSeqNum = $_result.b5o('caLocalChangeSeqNum'); var tmp_19; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_caMasterChangeSeqNum = $_result.b5o('caMasterChangeSeqNum'); var tmp_20; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_caLastChangedBy = $_result.a5o('caLastChangedBy'); var tmp_21; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_caLct = $_result.b5o('caLct'); var tmp_22; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_ClazzAssignment_isAllNull = _tmp_ClazzAssignment_nullCount === 24; var _tmp_CourseBlock_nullCount = 0; var _tmp_cbUid = $_result.b5o('cbUid'); var tmp_23; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_cbType = $_result.a5o('cbType'); var tmp_24; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_cbIndentLevel = $_result.a5o('cbIndentLevel'); var tmp_25; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_cbModuleParentBlockUid = $_result.b5o('cbModuleParentBlockUid'); var tmp_26; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_cbTitle = $_result.b10('cbTitle'); var tmp_27; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_cbDescription = $_result.b10('cbDescription'); var tmp_28; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_cbCompletionCriteria = $_result.a5o('cbCompletionCriteria'); var tmp_29; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_cbHideUntilDate = $_result.b5o('cbHideUntilDate'); var tmp_30; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_30 = Unit_instance; } var _tmp_cbDeadlineDate = $_result.b5o('cbDeadlineDate'); var tmp_31; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_31 = Unit_instance; } var _tmp_cbLateSubmissionPenalty = $_result.a5o('cbLateSubmissionPenalty'); var tmp_32; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_32 = Unit_instance; } var _tmp_cbGracePeriodDate = $_result.b5o('cbGracePeriodDate'); var tmp_33; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_33 = Unit_instance; } var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints'); var tmp_34; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_34 = Unit_instance; } var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints'); var tmp_35; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_35 = Unit_instance; } var _tmp_cbIndex = $_result.a5o('cbIndex'); var tmp_36; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_36 = Unit_instance; } var _tmp_cbClazzUid = $_result.b5o('cbClazzUid'); var tmp_37; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_37 = Unit_instance; } var _tmp_cbClazzSourcedId = $_result.b10('cbClazzSourcedId'); var tmp_38; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_38 = Unit_instance; } var _tmp_cbActive = $_result.m67('cbActive'); var tmp_39; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_39 = Unit_instance; } var _tmp_cbHidden = $_result.m67('cbHidden'); var tmp_40; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_40 = Unit_instance; } var _tmp_cbEntityUid = $_result.b5o('cbEntityUid'); var tmp_41; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_41 = Unit_instance; } var _tmp_cbLct = $_result.b5o('cbLct'); var tmp_42; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_42 = Unit_instance; } var _tmp_cbSourcedId = $_result.b10('cbSourcedId'); var tmp_43; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_43 = Unit_instance; } var _tmp_cbMetadata = $_result.b10('cbMetadata'); var tmp_44; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_44 = Unit_instance; } var _tmp_cbCreatedByAppId = $_result.b10('cbCreatedByAppId'); var tmp_45; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_45 = Unit_instance; } var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23; var _tmp_CourseBlockPicture_nullCount = 0; var _tmp_cbpUid = $_result.b5o('cbpUid'); var tmp_46; if ($_result.t68()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_46 = Unit_instance; } var _tmp_cbpLct = $_result.b5o('cbpLct'); var tmp_47; if ($_result.t68()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_47 = Unit_instance; } var _tmp_cbpPictureUri = $_result.b10('cbpPictureUri'); var tmp_48; if ($_result.t68()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_48 = Unit_instance; } var _tmp_cbpThumbnailUri = $_result.b10('cbpThumbnailUri'); var tmp_49; if ($_result.t68()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_49 = Unit_instance; } var _tmp_CourseBlockPicture_isAllNull = _tmp_CourseBlockPicture_nullCount === 4; var _tmp_CourseGroupSet_nullCount = 0; var _tmp_cgsUid = $_result.b5o('cgsUid'); var tmp_50; if ($_result.t68()) { _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0; tmp_50 = Unit_instance; } var _tmp_cgsName = $_result.b10('cgsName'); var tmp_51; if ($_result.t68()) { _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0; tmp_51 = Unit_instance; } var _tmp_cgsTotalGroups = $_result.a5o('cgsTotalGroups'); var tmp_52; if ($_result.t68()) { _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0; tmp_52 = Unit_instance; } var _tmp_cgsActive = $_result.m67('cgsActive'); var tmp_53; if ($_result.t68()) { _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0; tmp_53 = Unit_instance; } var _tmp_cgsClazzUid = $_result.b5o('cgsClazzUid'); var tmp_54; if ($_result.t68()) { _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0; tmp_54 = Unit_instance; } var _tmp_cgsLct = $_result.b5o('cgsLct'); var tmp_55; if ($_result.t68()) { _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0; tmp_55 = Unit_instance; } var _tmp_CourseGroupSet_isAllNull = _tmp_CourseGroupSet_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new ClazzAssignmentCourseBlockAndSubmitterUid(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findAssignmentCourseBlockAndSubmitterUidAsFlow.....' call this_0.s7z_1 = _tmp_submitterUid; this_0.t7z_1 = _tmp_hasModeratePermission; if (!_tmp_ClazzAssignment_isAllNull) { var tmp_56 = this_0; // Inline function 'kotlin.apply' call var this_1 = new ClazzAssignment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findAssignmentCourseBlockAndSubmitterUidAsFlow......' call this_1.l7u_1 = _tmp_caUid; this_1.m7u_1 = _tmp_caTitle; this_1.n7u_1 = _tmp_caDescription; this_1.o7u_1 = _tmp_caGroupUid; this_1.p7u_1 = _tmp_caActive; this_1.q7u_1 = _tmp_caClassCommentEnabled; this_1.r7u_1 = _tmp_caPrivateCommentsEnabled; this_1.s7u_1 = _tmp_caCompletionCriteria; this_1.t7u_1 = _tmp_caRequireFileSubmission; this_1.u7u_1 = _tmp_caFileType; this_1.v7u_1 = _tmp_caSizeLimit; this_1.w7u_1 = _tmp_caNumberOfFiles; this_1.x7u_1 = _tmp_caSubmissionPolicy; this_1.y7u_1 = _tmp_caMarkingType; this_1.z7u_1 = _tmp_caRequireTextSubmission; this_1.a7v_1 = _tmp_caTextLimitType; this_1.b7v_1 = _tmp_caTextLimit; this_1.c7v_1 = _tmp_caXObjectUid; this_1.d7v_1 = _tmp_caClazzUid; this_1.e7v_1 = _tmp_caPeerReviewerCount; this_1.f7v_1 = _tmp_caLocalChangeSeqNum; this_1.g7v_1 = _tmp_caMasterChangeSeqNum; this_1.h7v_1 = _tmp_caLastChangedBy; this_1.i7v_1 = _tmp_caLct; tmp_56.o7z_1 = this_1; } if (!_tmp_CourseBlock_isAllNull) { var tmp_57 = this_0; // Inline function 'kotlin.apply' call var this_2 = new CourseBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findAssignmentCourseBlockAndSubmitterUidAsFlow......' call this_2.r7y_1 = _tmp_cbUid; this_2.s7y_1 = _tmp_cbType; this_2.t7y_1 = _tmp_cbIndentLevel; this_2.u7y_1 = _tmp_cbModuleParentBlockUid; this_2.v7y_1 = _tmp_cbTitle; this_2.w7y_1 = _tmp_cbDescription; this_2.x7y_1 = _tmp_cbCompletionCriteria; this_2.y7y_1 = _tmp_cbHideUntilDate; this_2.z7y_1 = _tmp_cbDeadlineDate; this_2.a7z_1 = _tmp_cbLateSubmissionPenalty; this_2.b7z_1 = _tmp_cbGracePeriodDate; this_2.c7z_1 = _tmp_cbMaxPoints; this_2.d7z_1 = _tmp_cbMinPoints; this_2.e7z_1 = _tmp_cbIndex; this_2.f7z_1 = _tmp_cbClazzUid; this_2.g7z_1 = _tmp_cbClazzSourcedId; this_2.h7z_1 = _tmp_cbActive; this_2.i7z_1 = _tmp_cbHidden; this_2.j7z_1 = _tmp_cbEntityUid; this_2.k7z_1 = _tmp_cbLct; this_2.l7z_1 = _tmp_cbSourcedId; this_2.m7z_1 = _tmp_cbMetadata; this_2.n7z_1 = _tmp_cbCreatedByAppId; tmp_57.p7z_1 = this_2; } if (!_tmp_CourseBlockPicture_isAllNull) { var tmp_58 = this_0; // Inline function 'kotlin.apply' call var this_3 = new CourseBlockPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findAssignmentCourseBlockAndSubmitterUidAsFlow......' call this_3.u7z_1 = _tmp_cbpUid; this_3.v7z_1 = _tmp_cbpLct; this_3.w7z_1 = _tmp_cbpPictureUri; this_3.x7z_1 = _tmp_cbpThumbnailUri; tmp_58.q7z_1 = this_3; } if (!_tmp_CourseGroupSet_isAllNull) { var tmp_59 = this_0; // Inline function 'kotlin.apply' call var this_4 = new CourseGroupSet(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findAssignmentCourseBlockAndSubmitterUidAsFlow......' call this_4.y7z_1 = _tmp_cgsUid; this_4.z7z_1 = _tmp_cgsName; this_4.a80_1 = _tmp_cgsTotalGroups; this_4.b80_1 = _tmp_cgsActive; this_4.c80_1 = _tmp_cgsClazzUid; this_4.d80_1 = _tmp_cgsLct; tmp_59.r7z_1 = this_4; } return this_0; }; } function ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda($accountPersonUid, $clazzUid, $assignmentUid, resultContinuation) { this.m80_1 = $accountPersonUid; this.n80_1 = $clazzUid; this.o80_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda).q80 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda).le = function (p1, $completion) { return this.q80((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.p80_1.x5i(1, this.m80_1); this.p80_1.x5i(2, this.n80_1); this.p80_1.x5i(3, this.o80_1); this.p80_1.x5i(4, this.m80_1); this.p80_1.x5i(5, this.o80_1); this.p80_1.x5i(6, this.o80_1); this.p80_1.x5i(7, this.m80_1); this.p80_1.x5i(8, this.o80_1); this.p80_1.x5i(9, this.m80_1); this.p80_1.x5i(10, this.o80_1); this.p80_1.x5i(11, this.o80_1); this.p80_1.x5i(12, this.m80_1); this.p80_1.x5i(13, this.n80_1); this.p80_1.x5i(14, this.m80_1); this.p80_1.x5i(15, this.m80_1); this.p80_1.x5i(16, this.n80_1); this.p80_1.x5i(17, this.m80_1); this.p80_1.x5i(18, this.m80_1); this.p80_1.x5i(19, this.o80_1); this.p80_1.x5i(20, this.n80_1); this.p80_1.x5i(21, this.n80_1); this.p80_1.x5i(22, this.m80_1); this.p80_1.x5i(23, this.m80_1); this.p80_1.x5i(24, this.n80_1); this.p80_1.x5i(25, this.m80_1); this.p80_1.x5i(26, this.m80_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.p80_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda(this.m80_1, this.n80_1, this.o80_1, completion); i.p80_1 = _stmt; return i; }; function ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda_0($accountPersonUid, $clazzUid, $assignmentUid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda($accountPersonUid, $clazzUid, $assignmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.q80(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.r80_1); } protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO ClazzAssignment (caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1).w80 = function (stmt, entity) { if (entity.l7u_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.l7u_1); } stmt.a5j(2, entity.m7u_1); stmt.a5j(3, entity.n7u_1); stmt.x5i(4, entity.o7u_1); stmt.k5i(5, entity.p7u_1); stmt.k5i(6, entity.q7u_1); stmt.k5i(7, entity.r7u_1); stmt.w5i(8, entity.s7u_1); stmt.k5i(9, entity.t7u_1); stmt.w5i(10, entity.u7u_1); stmt.w5i(11, entity.v7u_1); stmt.w5i(12, entity.w7u_1); stmt.w5i(13, entity.x7u_1); stmt.w5i(14, entity.y7u_1); stmt.k5i(15, entity.z7u_1); stmt.w5i(16, entity.a7v_1); stmt.w5i(17, entity.b7v_1); stmt.x5i(18, entity.c7v_1); stmt.x5i(19, entity.d7v_1); stmt.w5i(20, entity.e7v_1); stmt.x5i(21, entity.f7v_1); stmt.x5i(22, entity.g7v_1); stmt.w5i(23, entity.h7v_1); stmt.x5i(24, entity.i7v_1); }; protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1).r5g = function (stmt, entity) { return this.w80(stmt, entity instanceof ClazzAssignment ? entity : THROW_CCE()); }; function ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.r80_1); } protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1).w5h = function (returnsId) { return 'INSERT INTO ClazzAssignment (caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1).w80 = function (stmt, entity) { if (entity.l7u_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.l7u_1); } stmt.a5j(2, entity.m7u_1); stmt.a5j(3, entity.n7u_1); stmt.x5i(4, entity.o7u_1); stmt.k5i(5, entity.p7u_1); stmt.k5i(6, entity.q7u_1); stmt.k5i(7, entity.r7u_1); stmt.w5i(8, entity.s7u_1); stmt.k5i(9, entity.t7u_1); stmt.w5i(10, entity.u7u_1); stmt.w5i(11, entity.v7u_1); stmt.w5i(12, entity.w7u_1); stmt.w5i(13, entity.x7u_1); stmt.w5i(14, entity.y7u_1); stmt.k5i(15, entity.z7u_1); stmt.w5i(16, entity.a7v_1); stmt.w5i(17, entity.b7v_1); stmt.x5i(18, entity.c7v_1); stmt.x5i(19, entity.d7v_1); stmt.w5i(20, entity.e7v_1); stmt.x5i(21, entity.f7v_1); stmt.x5i(22, entity.g7v_1); stmt.w5i(23, entity.h7v_1); stmt.x5i(24, entity.i7v_1); }; protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1).r5g = function (stmt, entity) { return this.w80(stmt, entity instanceof ClazzAssignment ? entity : THROW_CCE()); }; function ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda(this$0, $clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation) { this.h81_1 = this$0; this.i81_1 = $clazzUid; this.j81_1 = $accountPersonUid; this.k81_1 = $assignmentUid; this.l81_1 = $group; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda).m81 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda).r79 = function ($completion) { return this.m81($completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig("\n WITH \n HasLearningRecordSelectPermission (hasPermission) AS\n (SELECT (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n ))\n ,\n \n AssignmentClazzUid(clazzUid) AS\n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) \n ,\n \n SubmitterList(submitterId, name) AS \n -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n ) = 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n -- check if the active person eg accountpersonuid is assigned to mark this peer\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n AND PeerReviewerAllocation.praMarkerSubmitterUid = CAST(? AS BIGINT)))\n )\n UNION\n -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n FROM CourseGroupMember\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n ) != 0\n AND CourseGroupMember.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n )\n -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n AND PeerReviewerAllocation.praMarkerSubmitterUid = \n (SELECT CourseGroupMemberInner.cgmGroupNumber\n FROM CourseGroupMember CourseGroupMemberInner\n WHERE CourseGroupMemberInner.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n )\n AND CourseGroupMemberInner.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1)\n ))\n )\n )\n \n \n \n SELECT \n -- whether or not the active user has permission to view learner records \n (SELECT hasPermission\n FROM HasLearningRecordSelectPermission) AS activeUserHasViewLearnerRecordsPermission,\n \n (SELECT COUNT(*)\n FROM SubmitterList) AS totalStudents,\n \n -- Total marked students\n (SELECT COUNT(*)\n FROM SubmitterList\n WHERE EXISTS(\n SELECT CourseAssignmentMark.camUid\n FROM CourseAssignmentMark\n WHERE CourseAssignmentMark.camAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentMark.camSubmitterUid = SubmitterList.submitterId) \n ) AS markedStudents,\n \n -- Total who have submitted \n (SELECT COUNT(*)\n FROM SubmitterList\n WHERE EXISTS(\n SELECT CourseAssignmentSubmission.casUid\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentSubmission.casSubmitterUid = SubmitterList.submitterId)\n ) AS submittedStudents,\n \n (SELECT (ClazzAssignment.caGroupUid != 0)\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) AS isGroupAssignment\n ", VOID, VOID, VOID, "\n WITH \n HasLearningRecordSelectPermission (hasPermission) AS\n (SELECT (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n ))\n ,\n \n AssignmentClazzUid(clazzUid) AS\n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) \n ,\n \n SubmitterList(submitterId, name) AS \n -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n ) = 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n -- check if the active person eg accountpersonuid is assigned to mark this peer\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = ?\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n AND PeerReviewerAllocation.praMarkerSubmitterUid = ?))\n )\n UNION\n -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n FROM CourseGroupMember\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n ) != 0\n AND CourseGroupMember.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n )\n -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = ?\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n AND PeerReviewerAllocation.praMarkerSubmitterUid = \n (SELECT CourseGroupMemberInner.cgmGroupNumber\n FROM CourseGroupMember CourseGroupMemberInner\n WHERE CourseGroupMemberInner.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n )\n AND CourseGroupMemberInner.cgmPersonUid = ?\n LIMIT 1)\n ))\n )\n )\n \n \n \n SELECT \n -- whether or not the active user has permission to view learner records \n (SELECT hasPermission\n FROM HasLearningRecordSelectPermission) AS activeUserHasViewLearnerRecordsPermission,\n \n (SELECT COUNT(*)\n FROM SubmitterList) AS totalStudents,\n \n -- Total marked students\n (SELECT COUNT(*)\n FROM SubmitterList\n WHERE EXISTS(\n SELECT CourseAssignmentMark.camUid\n FROM CourseAssignmentMark\n WHERE CourseAssignmentMark.camAssignmentUid = ?\n AND CourseAssignmentMark.camSubmitterUid = SubmitterList.submitterId) \n ) AS markedStudents,\n \n -- Total who have submitted \n (SELECT COUNT(*)\n FROM SubmitterList\n WHERE EXISTS(\n SELECT CourseAssignmentSubmission.casUid\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n AND CourseAssignmentSubmission.casSubmitterUid = SubmitterList.submitterId)\n ) AS submittedStudents,\n \n (SELECT (ClazzAssignment.caGroupUid != 0)\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) AS isGroupAssignment\n \n", true); suspendResult = prepareAndUseStatementAsync(this.h81_1.r80_1, tmp_0, ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda_0(this.i81_1, this.j81_1, this.k81_1, this.l81_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda).q79 = function (completion) { return new ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda(this.h81_1, this.i81_1, this.j81_1, this.k81_1, this.l81_1, completion); }; function ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda_0(this$0, $clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda(this$0, $clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation); var l = function ($completion) { return i.m81($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1(this$0, $clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption) { this.t81_1 = this$0; this.u81_1 = $clazzUid; this.v81_1 = $accountPersonUid; this.w81_1 = $assignmentUid; this.x81_1 = $group; this.y81_1 = $searchText; this.z81_1 = $sortOption; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['SystemPermission', 'CoursePermission', 'ClazzAssignment', 'ClazzEnrolment', 'PeerReviewerAllocation', 'Person', 'CourseGroupMember', 'CourseAssignmentSubmission', 'CourseAssignmentMark', 'Comments', 'PersonPicture']; DoorLimitOffsetPagingSource.call(this, this$0.r80_1, tmp$ret$2); } protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1).a82 = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n WITH \n HasLearningRecordSelectPermission (hasPermission) AS\n (SELECT (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n ))\n ,\n \n AssignmentClazzUid(clazzUid) AS\n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) \n ,\n \n SubmitterList(submitterId, name) AS \n -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n ) = 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n -- check if the active person eg accountpersonuid is assigned to mark this peer\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n AND PeerReviewerAllocation.praMarkerSubmitterUid = CAST(? AS BIGINT)))\n )\n UNION\n -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n FROM CourseGroupMember\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n ) != 0\n AND CourseGroupMember.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n )\n -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n AND PeerReviewerAllocation.praMarkerSubmitterUid = \n (SELECT CourseGroupMemberInner.cgmGroupNumber\n FROM CourseGroupMember CourseGroupMemberInner\n WHERE CourseGroupMemberInner.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n )\n AND CourseGroupMemberInner.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1)\n ))\n )\n )\n \n \n \n SELECT SubmitterList.name AS name,\n SubmitterList.submitterId AS submitterUid,\n Comments.commentsText AS latestPrivateComment,\n CASE \n WHEN SubmitterList.submitterId >= 10000 THEN\n (SELECT PersonPicture.personPictureThumbnailUri\n FROM PersonPicture\n WHERE PersonPicture.personPictureUid = SubmitterList.submitterId)\n ELSE NULL\n END AS pictureUri, \n -- Determine submission status - marked, submitted, or not yet submitted\n CASE \n WHEN CourseAssignmentMark.camUid IS NOT NULL THEN 2\n WHEN CourseAssignmentSubmission.casUid IS NOT NULL THEN 1\n ELSE 0 \n END AS fileSubmissionStatus\n \n FROM SubmitterList\n LEFT JOIN Comments \n ON Comments.commentsUid = \n (SELECT Comments.commentsUid \n FROM Comments\n WHERE Comments.commentsEntityUid = CAST(? AS BIGINT)\n AND Comments.commentsForSubmitterUid = SubmitterList.submitterId\n AND NOT Comments.commentsDeleted\n ORDER BY Comments.commentsDateTimeAdded DESC \n LIMIT 1) \n LEFT JOIN CourseAssignmentMark\n ON CourseAssignmentMark.camUid = \n (SELECT camUid\n FROM CourseAssignmentMark\n WHERE CourseAssignmentMark.camAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentMark.camSubmitterUid = SubmitterList.submitterId\n LIMIT 1)\n LEFT JOIN CourseAssignmentSubmission\n ON CourseAssignmentSubmission.casUid = \n (SELECT casUid\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentSubmission.casSubmitterUid = SubmitterList.submitterId \n LIMIT 1)\n WHERE (? = '%' OR SubmitterList.name LIKE ?)\n ORDER BY CASE(?)\n WHEN 5 THEN SubmitterList.name\n ELSE '' END ASC,\n CASE(?)\n WHEN 6 THEN SubmitterList.name\n ELSE '' END DESC\n ) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n WITH \n HasLearningRecordSelectPermission (hasPermission) AS\n (SELECT (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n ))\n ,\n \n AssignmentClazzUid(clazzUid) AS\n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) \n ,\n \n SubmitterList(submitterId, name) AS \n -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n ) = 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n -- check if the active person eg accountpersonuid is assigned to mark this peer\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = ?\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n AND PeerReviewerAllocation.praMarkerSubmitterUid = ?))\n )\n UNION\n -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n FROM CourseGroupMember\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n ) != 0\n AND CourseGroupMember.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n )\n -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = ?\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n AND PeerReviewerAllocation.praMarkerSubmitterUid = \n (SELECT CourseGroupMemberInner.cgmGroupNumber\n FROM CourseGroupMember CourseGroupMemberInner\n WHERE CourseGroupMemberInner.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n )\n AND CourseGroupMemberInner.cgmPersonUid = ?\n LIMIT 1)\n ))\n )\n )\n \n \n \n SELECT SubmitterList.name AS name,\n SubmitterList.submitterId AS submitterUid,\n Comments.commentsText AS latestPrivateComment,\n CASE \n WHEN SubmitterList.submitterId >= 10000 THEN\n (SELECT PersonPicture.personPictureThumbnailUri\n FROM PersonPicture\n WHERE PersonPicture.personPictureUid = SubmitterList.submitterId)\n ELSE NULL\n END AS pictureUri, \n -- Determine submission status - marked, submitted, or not yet submitted\n CASE \n WHEN CourseAssignmentMark.camUid IS NOT NULL THEN 2\n WHEN CourseAssignmentSubmission.casUid IS NOT NULL THEN 1\n ELSE 0 \n END AS fileSubmissionStatus\n \n FROM SubmitterList\n LEFT JOIN Comments \n ON Comments.commentsUid = \n (SELECT Comments.commentsUid \n FROM Comments\n WHERE Comments.commentsEntityUid = ?\n AND Comments.commentsForSubmitterUid = SubmitterList.submitterId\n AND NOT Comments.commentsDeleted\n ORDER BY Comments.commentsDateTimeAdded DESC \n LIMIT 1) \n LEFT JOIN CourseAssignmentMark\n ON CourseAssignmentMark.camUid = \n (SELECT camUid\n FROM CourseAssignmentMark\n WHERE CourseAssignmentMark.camAssignmentUid = ?\n AND CourseAssignmentMark.camSubmitterUid = SubmitterList.submitterId\n LIMIT 1)\n LEFT JOIN CourseAssignmentSubmission\n ON CourseAssignmentSubmission.casUid = \n (SELECT casUid\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n AND CourseAssignmentSubmission.casSubmitterUid = SubmitterList.submitterId \n LIMIT 1)\n WHERE (? = '%' OR SubmitterList.name LIKE ?)\n ORDER BY CASE(?)\n WHEN 5 THEN SubmitterList.name\n ELSE '' END ASC,\n CASE(?)\n WHEN 6 THEN SubmitterList.name\n ELSE '' END DESC\n ) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.t81_1.r80_1, tmp, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda_0(this.u81_1, this.v81_1, this.w81_1, this.x81_1, this.y81_1, this.z81_1, _limit, _offset, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1).z5q = function (_limit, _offset, $completion) { return this.a82(_limit, _offset, $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n WITH \n HasLearningRecordSelectPermission (hasPermission) AS\n (SELECT (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n ))\n ,\n \n AssignmentClazzUid(clazzUid) AS\n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) \n ,\n \n SubmitterList(submitterId, name) AS \n -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n ) = 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n -- check if the active person eg accountpersonuid is assigned to mark this peer\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n AND PeerReviewerAllocation.praMarkerSubmitterUid = CAST(? AS BIGINT)))\n )\n UNION\n -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n FROM CourseGroupMember\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n ) != 0\n AND CourseGroupMember.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n )\n -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n AND PeerReviewerAllocation.praMarkerSubmitterUid = \n (SELECT CourseGroupMemberInner.cgmGroupNumber\n FROM CourseGroupMember CourseGroupMemberInner\n WHERE CourseGroupMemberInner.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n )\n AND CourseGroupMemberInner.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1)\n ))\n )\n )\n \n \n \n SELECT SubmitterList.name AS name,\n SubmitterList.submitterId AS submitterUid,\n Comments.commentsText AS latestPrivateComment,\n CASE \n WHEN SubmitterList.submitterId >= 10000 THEN\n (SELECT PersonPicture.personPictureThumbnailUri\n FROM PersonPicture\n WHERE PersonPicture.personPictureUid = SubmitterList.submitterId)\n ELSE NULL\n END AS pictureUri, \n -- Determine submission status - marked, submitted, or not yet submitted\n CASE \n WHEN CourseAssignmentMark.camUid IS NOT NULL THEN 2\n WHEN CourseAssignmentSubmission.casUid IS NOT NULL THEN 1\n ELSE 0 \n END AS fileSubmissionStatus\n \n FROM SubmitterList\n LEFT JOIN Comments \n ON Comments.commentsUid = \n (SELECT Comments.commentsUid \n FROM Comments\n WHERE Comments.commentsEntityUid = CAST(? AS BIGINT)\n AND Comments.commentsForSubmitterUid = SubmitterList.submitterId\n AND NOT Comments.commentsDeleted\n ORDER BY Comments.commentsDateTimeAdded DESC \n LIMIT 1) \n LEFT JOIN CourseAssignmentMark\n ON CourseAssignmentMark.camUid = \n (SELECT camUid\n FROM CourseAssignmentMark\n WHERE CourseAssignmentMark.camAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentMark.camSubmitterUid = SubmitterList.submitterId\n LIMIT 1)\n LEFT JOIN CourseAssignmentSubmission\n ON CourseAssignmentSubmission.casUid = \n (SELECT casUid\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentSubmission.casSubmitterUid = SubmitterList.submitterId \n LIMIT 1)\n WHERE (? = '%' OR SubmitterList.name LIKE ?)\n ORDER BY CASE(?)\n WHEN 5 THEN SubmitterList.name\n ELSE '' END ASC,\n CASE(?)\n WHEN 6 THEN SubmitterList.name\n ELSE '' END DESC\n ) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n WITH \n HasLearningRecordSelectPermission (hasPermission) AS\n (SELECT (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n ))\n ,\n \n AssignmentClazzUid(clazzUid) AS\n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) \n ,\n \n SubmitterList(submitterId, name) AS \n -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n ) = 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n -- check if the active person eg accountpersonuid is assigned to mark this peer\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = ?\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n AND PeerReviewerAllocation.praMarkerSubmitterUid = ?))\n )\n UNION\n -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n FROM CourseGroupMember\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n ) != 0\n AND CourseGroupMember.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n )\n -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = ?\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n AND PeerReviewerAllocation.praMarkerSubmitterUid = \n (SELECT CourseGroupMemberInner.cgmGroupNumber\n FROM CourseGroupMember CourseGroupMemberInner\n WHERE CourseGroupMemberInner.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n )\n AND CourseGroupMemberInner.cgmPersonUid = ?\n LIMIT 1)\n ))\n )\n )\n \n \n \n SELECT SubmitterList.name AS name,\n SubmitterList.submitterId AS submitterUid,\n Comments.commentsText AS latestPrivateComment,\n CASE \n WHEN SubmitterList.submitterId >= 10000 THEN\n (SELECT PersonPicture.personPictureThumbnailUri\n FROM PersonPicture\n WHERE PersonPicture.personPictureUid = SubmitterList.submitterId)\n ELSE NULL\n END AS pictureUri, \n -- Determine submission status - marked, submitted, or not yet submitted\n CASE \n WHEN CourseAssignmentMark.camUid IS NOT NULL THEN 2\n WHEN CourseAssignmentSubmission.casUid IS NOT NULL THEN 1\n ELSE 0 \n END AS fileSubmissionStatus\n \n FROM SubmitterList\n LEFT JOIN Comments \n ON Comments.commentsUid = \n (SELECT Comments.commentsUid \n FROM Comments\n WHERE Comments.commentsEntityUid = ?\n AND Comments.commentsForSubmitterUid = SubmitterList.submitterId\n AND NOT Comments.commentsDeleted\n ORDER BY Comments.commentsDateTimeAdded DESC \n LIMIT 1) \n LEFT JOIN CourseAssignmentMark\n ON CourseAssignmentMark.camUid = \n (SELECT camUid\n FROM CourseAssignmentMark\n WHERE CourseAssignmentMark.camAssignmentUid = ?\n AND CourseAssignmentMark.camSubmitterUid = SubmitterList.submitterId\n LIMIT 1)\n LEFT JOIN CourseAssignmentSubmission\n ON CourseAssignmentSubmission.casUid = \n (SELECT casUid\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n AND CourseAssignmentSubmission.casSubmitterUid = SubmitterList.submitterId \n LIMIT 1)\n WHERE (? = '%' OR SubmitterList.name LIKE ?)\n ORDER BY CASE(?)\n WHEN 5 THEN SubmitterList.name\n ELSE '' END ASC,\n CASE(?)\n WHEN 6 THEN SubmitterList.name\n ELSE '' END DESC\n ) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.t81_1.r80_1, tmp, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda_0(this.u81_1, this.v81_1, this.w81_1, this.x81_1, this.y81_1, this.z81_1, null), $completion); }; function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda($groupSetUid, $clazzUid, $time, resultContinuation) { this.j82_1 = $groupSetUid; this.k82_1 = $clazzUid; this.l82_1 = $time; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda).n82 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda).le = function (p1, $completion) { return this.n82((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.m82_1.x5i(1, this.j82_1); this.m82_1.x5i(2, this.k82_1); this.m82_1.x5i(3, this.l82_1); this.m82_1.x5i(4, this.j82_1); this.m82_1.x5i(5, this.j82_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.m82_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda).o5g = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda(this.j82_1, this.k82_1, this.l82_1, completion); i.m82_1 = _stmt; return i; }; function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda_0($groupSetUid, $clazzUid, $time, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda($groupSetUid, $clazzUid, $time, resultContinuation); var l = function (_stmt, $completion) { return i.n82(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda($groupSetUid, $clazzUid, $date, $groupStr, resultContinuation) { this.w82_1 = $groupSetUid; this.x82_1 = $clazzUid; this.y82_1 = $date; this.z82_1 = $groupStr; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda).b83 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda).le = function (p1, $completion) { return this.b83((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.a83_1.x5i(1, this.w82_1); this.a83_1.x5i(2, this.x82_1); this.a83_1.x5i(3, this.y82_1); this.a83_1.x5i(4, this.w82_1); this.a83_1.x5i(5, this.w82_1); this.a83_1.x5i(6, this.w82_1); this.a83_1.a5j(7, this.z82_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.a83_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda).o5g = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda(this.w82_1, this.x82_1, this.y82_1, this.z82_1, completion); i.a83_1 = _stmt; return i; }; function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda_0($groupSetUid, $clazzUid, $date, $groupStr, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda($groupSetUid, $clazzUid, $date, $groupStr, resultContinuation); var l = function (_stmt, $completion) { return i.b83(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda($clazzUid, $assignmentUid, $accountPersonUid, resultContinuation) { this.k83_1 = $clazzUid; this.l83_1 = $assignmentUid; this.m83_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda).d5h = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda).le = function (p1, $completion) { return this.d5h((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.n83_1.x5i(1, this.k83_1); this.n83_1.x5i(2, this.l83_1); this.n83_1.x5i(3, this.m83_1); this.n83_1.x5i(4, this.l83_1); this.n83_1.x5i(5, this.l83_1); this.n83_1.x5i(6, this.m83_1); this.n83_1.x5i(7, this.l83_1); this.n83_1.x5i(8, this.m83_1); this.n83_1.x5i(9, this.l83_1); this.n83_1.x5i(10, this.l83_1); this.n83_1.x5i(11, this.m83_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.n83_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda).o5g = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda(this.k83_1, this.l83_1, this.m83_1, completion); i.n83_1 = _stmt; return i; }; function ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda_0($clazzUid, $assignmentUid, $accountPersonUid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda($clazzUid, $assignmentUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.d5h(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation) { this.w83_1 = this$0; this.x83_1 = $uid; this.y83_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).z83 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).r79 = function ($completion) { return this.z83($completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT * \n FROM ClazzAssignment \n WHERE caUid = CAST(? AS BIGINT)\n AND caClazzUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT * \n FROM ClazzAssignment \n WHERE caUid = ?\n AND caClazzUid = ?\n \n', true); suspendResult = prepareAndUseStatementAsync(this.w83_1.r80_1, tmp_0, ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda_0(this.x83_1, this.y83_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).q79 = function (completion) { return new ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this.w83_1, this.x83_1, this.y83_1, completion); }; function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda_0(this$0, $uid, $clazzUid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation); var l = function ($completion) { return i.z83($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda($uid, resultContinuation) { this.i84_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda).k84 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda).le = function (p1, $completion) { return this.k84((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.j84_1.x5i(1, this.i84_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.j84_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda).o5g = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda(this.i84_1, completion); i.j84_1 = _stmt; return i; }; function ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda_0($uid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.k84(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda($active, $changeTime, $uidList, resultContinuation) { this.t84_1 = $active; this.u84_1 = $changeTime; this.v84_1 = $uidList; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.w84_1.k5i(1, this.t84_1); this.w84_1.x5i(2, this.u84_1); var tmp_0 = this.w84_1.t5h(); var this_0 = this.v84_1; this.w84_1.b5j(3, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.w84_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda).o5g = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda(this.t84_1, this.u84_1, this.v84_1, completion); i.w84_1 = _stmt; return i; }; function ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda_0($active, $changeTime, $uidList, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda($active, $changeTime, $uidList, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, $assignmentUid, resultContinuation) { this.f85_1 = this$0; this.g85_1 = $accountPersonUid; this.h85_1 = $clazzUid; this.i85_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).j85 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).r79 = function ($completion) { return this.j85($completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n WITH PersonIsStudent(isStudent)\n AS (SELECT EXISTS(\n SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000))\n \n SELECT ClazzAssignment.*,\n CourseBlock.*,\n CourseBlockPicture.*,\n CourseGroupSet.*,\n (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n ) AS submitterUid,\n \n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 4\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 4\n \n ) > 0)\n )\n ) AS hasModeratePermission\n \n FROM ClazzAssignment\n JOIN CourseBlock\n ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n LEFT JOIN CourseBlockPicture\n ON CourseBlockPicture.cbpUid = CourseBlock.cbUid\n LEFT JOIN CourseGroupSet\n ON CourseGroupSet.cgsUid = ClazzAssignment.caGroupUid\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n AND ClazzAssignment.caClazzUid = CAST(? AS BIGINT)\n AND (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 1\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 1\n \n ) > 0)\n )\n )\n ', VOID, VOID, VOID, '\n WITH PersonIsStudent(isStudent)\n AS (SELECT EXISTS(\n SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000))\n \n SELECT ClazzAssignment.*,\n CourseBlock.*,\n CourseBlockPicture.*,\n CourseGroupSet.*,\n (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n ) AS submitterUid,\n \n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 4\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 4\n \n ) > 0)\n )\n ) AS hasModeratePermission\n \n FROM ClazzAssignment\n JOIN CourseBlock\n ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n LEFT JOIN CourseBlockPicture\n ON CourseBlockPicture.cbpUid = CourseBlock.cbUid\n LEFT JOIN CourseGroupSet\n ON CourseGroupSet.cgsUid = ClazzAssignment.caGroupUid\n WHERE ClazzAssignment.caUid = ?\n AND ClazzAssignment.caClazzUid = ?\n AND (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 1\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 1\n \n ) > 0)\n )\n )\n \n', true); suspendResult = prepareAndUseStatementAsync(this.f85_1.r80_1, tmp_0, ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda_0(this.g85_1, this.h85_1, this.i85_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).q79 = function (completion) { return new ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this.f85_1, this.g85_1, this.h85_1, this.i85_1, completion); }; function ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda_0(this$0, $accountPersonUid, $clazzUid, $assignmentUid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, $assignmentUid, resultContinuation); var l = function ($completion) { return i.j85($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$4(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.s85_1 = _this__u8e3s4; this.t85_1 = entity; } protoOf($insertAsyncCOROUTINE$4).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.s85_1.t80_1.y5h(this.t85_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateActiveByListCOROUTINE$7(_this__u8e3s4, uidList, active, changeTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.c86_1 = _this__u8e3s4; this.d86_1 = uidList; this.e86_1 = active; this.f86_1 = changeTime; } protoOf($updateActiveByListCOROUTINE$7).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE ClazzAssignment\n SET caActive = ?,\n caLct = CAST(? AS BIGINT)\n WHERE caUid IN (?) \n ', true, VOID, VOID, '\n UPDATE ClazzAssignment\n SET caActive = ?,\n caLct = ?\n WHERE caUid IN (?) \n \n', false); suspendResult = prepareAndUseStatementAsync(this.c86_1.r80_1, tmp_0, ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda_0(this.e86_1, this.f86_1, this.d86_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ClazzAssignmentDao_JdbcImpl(_db) { ClazzAssignmentDao.call(this); this.r80_1 = _db; var tmp = this; tmp.s80_1 = new ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1(this); var tmp_0 = this; tmp_0.t80_1 = new ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1(this); } protoOf(ClazzAssignmentDao_JdbcImpl).p7t = function (entities, $completion) { return this.s80_1.b5i(entities, $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).v7v = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$4(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.v7v(entity instanceof ClazzAssignment ? entity : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).i7t = function (assignmentUid, clazzUid, accountPersonUid, group) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['SystemPermission', 'CoursePermission', 'ClazzAssignment', 'ClazzEnrolment', 'PeerReviewerAllocation', 'Person', 'CourseGroupMember', 'CourseAssignmentSubmission', 'CourseAssignmentMark', 'Comments', 'PersonPicture']; return doorFlow(this.r80_1, tmp, ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda_0(this, clazzUid, accountPersonUid, assignmentUid, group, null)); }; protoOf(ClazzAssignmentDao_JdbcImpl).j7t = function (assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption) { return new ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1(this, clazzUid, accountPersonUid, assignmentUid, group, searchText, sortOption); }; protoOf(ClazzAssignmentDao_JdbcImpl).k7t = function (clazzUid, groupSetUid, time, $completion) { var tmp = new PreparedStatementConfig('\n -- Submitter UIDs for individual assignment the list of personuids enrolled in the course\n SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterUid\n FROM ClazzEnrolment\n WHERE (CAST(? AS BIGINT) = 0)\n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft\n \n UNION\n \n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterUid\n FROM CourseGroupMember\n WHERE CAST(? AS BIGINT) != 0\n AND CourseGroupMember.cgmSetUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n -- Submitter UIDs for individual assignment the list of personuids enrolled in the course\n SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterUid\n FROM ClazzEnrolment\n WHERE (? = 0)\n AND ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft\n \n UNION\n \n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterUid\n FROM CourseGroupMember\n WHERE ? != 0\n AND CourseGroupMember.cgmSetUid = ? \n \n', true); return prepareAndUseStatementAsync(this.r80_1, tmp, ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda_0(groupSetUid, clazzUid, time, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).l7t = function (clazzUid, groupSetUid, date, groupStr, $completion) { var tmp = new PreparedStatementConfig("\n WITH SubmitterUids(submitterUid) AS (\n SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterUid\n FROM ClazzEnrolment\n WHERE (CAST(? AS BIGINT) = 0)\n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft\n \n UNION\n \n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterUid\n FROM CourseGroupMember\n WHERE CAST(? AS BIGINT) != 0\n AND CourseGroupMember.cgmSetUid = CAST(? AS BIGINT) \n )\n \n SELECT SubmitterUids.submitterUid AS submitterUid,\n CASE CAST(? AS BIGINT)\n WHEN 0 THEN\n (SELECT Person.firstNames || ' ' || Person.lastName\n FROM Person\n WHERE Person.personUid = SubmitterUids.submitterUid)\n ELSE (? || ' ' || SubmitterUids.submitterUid) \n END AS name\n FROM SubmitterUids \n ", VOID, VOID, VOID, "\n WITH SubmitterUids(submitterUid) AS (\n SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterUid\n FROM ClazzEnrolment\n WHERE (? = 0)\n AND ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft\n \n UNION\n \n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterUid\n FROM CourseGroupMember\n WHERE ? != 0\n AND CourseGroupMember.cgmSetUid = ? \n )\n \n SELECT SubmitterUids.submitterUid AS submitterUid,\n CASE ?\n WHEN 0 THEN\n (SELECT Person.firstNames || ' ' || Person.lastName\n FROM Person\n WHERE Person.personUid = SubmitterUids.submitterUid)\n ELSE (? || ' ' || SubmitterUids.submitterUid) \n END AS name\n FROM SubmitterUids \n \n", true); return prepareAndUseStatementAsync(this.r80_1, tmp, ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda_0(groupSetUid, clazzUid, date, groupStr, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).m7t = function (assignmentUid, clazzUid, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n WITH ClazzUidDummy(clazzUid) AS\n (SELECT CAST(? AS BIGINT))\n \n \n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n \n ', VOID, VOID, VOID, '\n WITH ClazzUidDummy(clazzUid) AS\n (SELECT ?)\n \n \n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n \n \n', true); return prepareAndUseStatementAsync(this.r80_1, tmp, ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda_0(clazzUid, assignmentUid, accountPersonUid, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).n7t = function (uid, clazzUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ClazzAssignment']; return doorFlow(this.r80_1, tmp, ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda_0(this, uid, clazzUid, null)); }; protoOf(ClazzAssignmentDao_JdbcImpl).o7t = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT * \n FROM ClazzAssignment\n LEFT JOIN CourseBlock\n ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n AND CourseBlock.cbType = 103\n WHERE caUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT * \n FROM ClazzAssignment\n LEFT JOIN CourseBlock\n ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n AND CourseBlock.cbType = 103\n WHERE caUid = ?\n \n', true); return prepareAndUseStatementAsync(this.r80_1, tmp, ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda_0(uid, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).q7t = function (uidList, active, changeTime, $completion) { var tmp = new $updateActiveByListCOROUTINE$7(this, uidList, active, changeTime, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_JdbcImpl).r7t = function (assignmentUid, clazzUid, accountPersonUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Person', 'ClazzAssignment', 'CourseBlock', 'CourseGroupMember', 'ClazzEnrolment', 'CoursePermission', 'SystemPermission', 'CourseBlockPicture']; return doorFlow(this.r80_1, tmp, ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda_0(this, accountPersonUid, clazzUid, assignmentUid, null)); }; function ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda(this$0, $assignmentUid, $clazzUid, $accountPersonUid, $group, $searchText, $sortOption, resultContinuation) { this.o86_1 = this$0; this.p86_1 = $assignmentUid; this.q86_1 = $clazzUid; this.r86_1 = $accountPersonUid; this.s86_1 = $group; this.t86_1 = $searchText; this.u86_1 = $sortOption; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.x86_1 = this.o86_1.i87_1; var tmp_1 = this; tmp_1.y86_1 = 'ClazzAssignmentDao/getAssignmentSubmitterSummaryListForAssignment'; this.md_1 = 4; var tmp_2 = this; tmp_2.z86_1 = this.o86_1.k87_1; var tmp_3 = this; tmp_3.a87_1 = this.z86_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.o86_1.i87_1.t39(), 'ClazzAssignmentDao/getAssignmentSubmitterSummaryListForAssignment'); doorNodeIdHeader(this_0, this.o86_1.i87_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'assignmentUid', this.o86_1.i87_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.p86_1)); parameter(this_0, 'clazzUid', this.o86_1.i87_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.q86_1)); parameter(this_0, 'accountPersonUid', this.o86_1.i87_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.r86_1)); parameter(this_0, 'group', this.o86_1.i87_1.t39().a67_1.b46(serializer_0(StringCompanionObject_instance), this.s86_1)); parameter(this_0, 'searchText', this.o86_1.i87_1.t39().a67_1.b46(serializer_0(StringCompanionObject_instance), this.t86_1)); parameter(this_0, 'sortOption', this.o86_1.i87_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.u86_1)); pagingSourceLoadParameters(this_0, this.o86_1.i87_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.v86_1); tmp_4.b87_1 = this_0; this.b87_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.c87_1 = this.a87_1; var tmp_6 = this; tmp_6.d87_1 = this.b87_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.d87_1, this.c87_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.e87_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.o86_1.h87_1, this.e87_1, this.o86_1.i87_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.w86_1 = endOfPaginationReached(this.e87_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda$lambda(this.x86_1, this.y86_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.w86_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda).g87 = function (_pagingParams, completion) { var i = new ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda(this.o86_1, this.p86_1, this.q86_1, this.r86_1, this.s86_1, this.t86_1, this.u86_1, completion); i.v86_1 = _pagingParams; return i; }; function ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda_0(this$0, $assignmentUid, $clazzUid, $accountPersonUid, $group, $searchText, $sortOption, resultContinuation) { var i = new ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda(this$0, $assignmentUid, $clazzUid, $accountPersonUid, $group, $searchText, $sortOption, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_Repo$getSubmitterUidsAndNameByClazzOrGroupSetUid$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzAssignmentDao_Repo$getSubmitterUid$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation) { this.w87_1 = this$0; this.x87_1 = $uid; this.y87_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.z87_1 = this.w87_1.i87_1; var tmp_1 = this; tmp_1.a88_1 = 'ClazzAssignmentDao/findByUidAndClazzUidAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.b88_1 = this.w87_1.k87_1; var tmp_3 = this; tmp_3.c88_1 = this.b88_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.w87_1.i87_1.t39(), 'ClazzAssignmentDao/findByUidAndClazzUidAsFlow'); doorNodeIdHeader(this_0, this.w87_1.i87_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this.w87_1.i87_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.x87_1)); parameter(this_0, 'clazzUid', this.w87_1.i87_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.y87_1)); tmp_4.d88_1 = this_0; this.d88_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.e88_1 = this.c88_1; var tmp_6 = this; tmp_6.f88_1 = this.d88_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.f88_1, this.e88_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.g88_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.w87_1.h87_1, this.g88_1, this.w87_1.i87_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda$lambda(this.z87_1, this.a88_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda).q79 = function (completion) { return new ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda(this.w87_1, this.x87_1, this.y87_1, completion); }; function ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda_0(this$0, $uid, $clazzUid, resultContinuation) { var i = new ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDao_Repo$findByUidWithBlockAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzAssignmentDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) { this.q88_1 = this$0; this.r88_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_Repo$upsertListAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_Repo$upsertListAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ClazzAssignmentDao_Repo$upsertListAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.q88_1.j87_1.p7t(this.r88_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzAssignmentDao_Repo$upsertListAsync$slambda).q79 = function (completion) { return new ClazzAssignmentDao_Repo$upsertListAsync$slambda(this.q88_1, this.r88_1, completion); }; function ClazzAssignmentDao_Repo$upsertListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new ClazzAssignmentDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDao_Repo$updateActiveByList$slambda(this$0, $uidList, $active, $changeTime, resultContinuation) { this.a89_1 = this$0; this.b89_1 = $uidList; this.c89_1 = $active; this.d89_1 = $changeTime; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_Repo$updateActiveByList$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_Repo$updateActiveByList$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ClazzAssignmentDao_Repo$updateActiveByList$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.a89_1.j87_1.q7t(this.b89_1, this.c89_1, this.d89_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzAssignmentDao_Repo$updateActiveByList$slambda).q79 = function (completion) { return new ClazzAssignmentDao_Repo$updateActiveByList$slambda(this.a89_1, this.b89_1, this.c89_1, this.d89_1, completion); }; function ClazzAssignmentDao_Repo$updateActiveByList$slambda_0(this$0, $uidList, $active, $changeTime, resultContinuation) { var i = new ClazzAssignmentDao_Repo$updateActiveByList$slambda(this$0, $uidList, $active, $changeTime, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this$0, $assignmentUid, $clazzUid, $accountPersonUid, resultContinuation) { this.m89_1 = this$0; this.n89_1 = $assignmentUid; this.o89_1 = $clazzUid; this.p89_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.q89_1 = this.m89_1.i87_1; var tmp_1 = this; tmp_1.r89_1 = 'ClazzAssignmentDao/findAssignmentCourseBlockAndSubmitterUidAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.s89_1 = this.m89_1.k87_1; var tmp_3 = this; tmp_3.t89_1 = this.s89_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.m89_1.i87_1.t39(), 'ClazzAssignmentDao/findAssignmentCourseBlockAndSubmitterUidAsFlow'); doorNodeIdHeader(this_0, this.m89_1.i87_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'assignmentUid', this.m89_1.i87_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.n89_1)); parameter(this_0, 'clazzUid', this.m89_1.i87_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.o89_1)); parameter(this_0, 'accountPersonUid', this.m89_1.i87_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.p89_1)); tmp_4.u89_1 = this_0; this.u89_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.v89_1 = this.t89_1; var tmp_6 = this; tmp_6.w89_1 = this.u89_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.w89_1, this.v89_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.x89_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.m89_1.h87_1, this.x89_1, this.m89_1.i87_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$lambda(this.q89_1, this.r89_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).q79 = function (completion) { return new ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this.m89_1, this.n89_1, this.o89_1, this.p89_1, completion); }; function ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda_0(this$0, $assignmentUid, $clazzUid, $accountPersonUid, resultContinuation) { var i = new ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this$0, $assignmentUid, $clazzUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.g8a_1 = this$0; this.h8a_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(ClazzAssignmentDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.g8a_1.j87_1.insertAsync(this.h8a_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzAssignmentDao_Repo$insertAsync$slambda).q79 = function (completion) { return new ClazzAssignmentDao_Repo$insertAsync$slambda(this.g8a_1, this.h8a_1, completion); }; function ClazzAssignmentDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ClazzAssignmentDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $getSubmitterUidsByClazzOrGroupSetUidCOROUTINE$14(_this__u8e3s4, clazzUid, groupSetUid, time, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.r8a_1 = _this__u8e3s4; this.s8a_1 = clazzUid; this.t8a_1 = groupSetUid; this.u8a_1 = time; } protoOf($getSubmitterUidsByClazzOrGroupSetUidCOROUTINE$14).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.r8a_1.j87_1.k7t(this.s8a_1, this.t8a_1, this.u8a_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $getSubmitterUidsAndNameByClazzOrGroupSetUidCOROUTINE$15(_this__u8e3s4, clazzUid, groupSetUid, date, groupStr, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.d8b_1 = _this__u8e3s4; this.e8b_1 = clazzUid; this.f8b_1 = groupSetUid; this.g8b_1 = date; this.h8b_1 = groupStr; } protoOf($getSubmitterUidsAndNameByClazzOrGroupSetUidCOROUTINE$15).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.i8b_1 = this.d8b_1.i87_1; var tmp_1 = this; tmp_1.j8b_1 = 'ClazzAssignmentDao/getSubmitterUidsAndNameByClazzOrGroupSetUid'; this.md_1 = 3; var tmp_2 = this; tmp_2.k8b_1 = this.d8b_1.k87_1; var tmp_3 = this; tmp_3.l8b_1 = this.k8b_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.d8b_1.i87_1.t39(), 'ClazzAssignmentDao/getSubmitterUidsAndNameByClazzOrGroupSetUid'); doorNodeIdHeader(this_0, this.d8b_1.i87_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.d8b_1.i87_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.e8b_1)); parameter(this_0, 'groupSetUid', this.d8b_1.i87_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.f8b_1)); parameter(this_0, 'date', this.d8b_1.i87_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.g8b_1)); parameter(this_0, 'groupStr', this.d8b_1.i87_1.t39().a67_1.b46(serializer_0(StringCompanionObject_instance), this.h8b_1)); tmp_4.m8b_1 = this_0; this.m8b_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.n8b_1 = this.l8b_1; var tmp_6 = this; tmp_6.o8b_1 = this.m8b_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.o8b_1, this.n8b_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.p8b_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.d8b_1.h87_1, this.p8b_1, this.d8b_1.i87_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.q8b_1 = this.od_1; Napier_getInstance().e5f(this.q8b_1, 'DoorLog', ClazzAssignmentDao_Repo$getSubmitterUidsAndNameByClazzOrGroupSetUid$lambda(this.i8b_1, this.j8b_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.d8b_1.j87_1.l7t(this.e8b_1, this.f8b_1, this.g8b_1, this.h8b_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $getSubmitterUidCOROUTINE$17(_this__u8e3s4, assignmentUid, clazzUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.z8b_1 = _this__u8e3s4; this.a8c_1 = assignmentUid; this.b8c_1 = clazzUid; this.c8c_1 = accountPersonUid; } protoOf($getSubmitterUidCOROUTINE$17).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.d8c_1 = this.z8b_1.i87_1; var tmp_1 = this; tmp_1.e8c_1 = 'ClazzAssignmentDao/getSubmitterUid'; this.md_1 = 3; var tmp_2 = this; tmp_2.f8c_1 = this.z8b_1.k87_1; var tmp_3 = this; tmp_3.g8c_1 = this.f8c_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.z8b_1.i87_1.t39(), 'ClazzAssignmentDao/getSubmitterUid'); doorNodeIdHeader(this_0, this.z8b_1.i87_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'assignmentUid', this.z8b_1.i87_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.a8c_1)); parameter(this_0, 'clazzUid', this.z8b_1.i87_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.b8c_1)); parameter(this_0, 'accountPersonUid', this.z8b_1.i87_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.c8c_1)); tmp_4.h8c_1 = this_0; this.h8c_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.i8c_1 = this.g8c_1; var tmp_6 = this; tmp_6.j8c_1 = this.h8c_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.j8c_1, this.i8c_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.k8c_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.z8b_1.h87_1, this.k8c_1, this.z8b_1.i87_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.l8c_1 = this.od_1; Napier_getInstance().e5f(this.l8c_1, 'DoorLog', ClazzAssignmentDao_Repo$getSubmitterUid$lambda(this.d8c_1, this.e8c_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.z8b_1.j87_1.m7t(this.a8c_1, this.b8c_1, this.c8c_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $findByUidWithBlockAsyncCOROUTINE$22(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.u8c_1 = _this__u8e3s4; this.v8c_1 = uid; } protoOf($findByUidWithBlockAsyncCOROUTINE$22).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.w8c_1 = this.u8c_1.i87_1; var tmp_1 = this; tmp_1.x8c_1 = 'ClazzAssignmentDao/findByUidWithBlockAsync'; this.md_1 = 3; var tmp_2 = this; tmp_2.y8c_1 = this.u8c_1.k87_1; var tmp_3 = this; tmp_3.z8c_1 = this.y8c_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.u8c_1.i87_1.t39(), 'ClazzAssignmentDao/findByUidWithBlockAsync'); doorNodeIdHeader(this_0, this.u8c_1.i87_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this.u8c_1.i87_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.v8c_1)); tmp_4.a8d_1 = this_0; this.a8d_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.b8d_1 = this.z8c_1; var tmp_6 = this; tmp_6.c8d_1 = this.a8d_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.c8d_1, this.b8d_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.d8d_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.u8c_1.h87_1, this.d8d_1, this.u8c_1.i87_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.e8d_1 = this.od_1; Napier_getInstance().e5f(this.e8d_1, 'DoorLog', ClazzAssignmentDao_Repo$findByUidWithBlockAsync$lambda(this.w8c_1, this.x8c_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.u8c_1.j87_1.o7t(this.v8c_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$27(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.n8d_1 = _this__u8e3s4; this.o8d_1 = entity; } protoOf($insertAsyncCOROUTINE$27).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.n8d_1.i87_1, 'ClazzAssignment', ClazzAssignmentDao_Repo$insertAsync$slambda_0(this.n8d_1, this.o8d_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ClazzAssignmentDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ClazzAssignmentDao.call(this); this.h87_1 = _db; this.i87_1 = _repo; this.j87_1 = _dao; this.k87_1 = _httpClient; this.l87_1 = _clientId; this.m87_1 = _endpoint; this.n87_1 = new RepoDaoFlowHelper(this.i87_1); } protoOf(ClazzAssignmentDao_Repo).i7t = function (assignmentUid, clazzUid, accountPersonUid, group) { var _result = this.j87_1.i7t(assignmentUid, clazzUid, accountPersonUid, group); return _result; }; protoOf(ClazzAssignmentDao_Repo).j7t = function (assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption) { var tmp = this.j87_1.j7t(assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption); return new DoorRepositoryReplicatePullPagingSource(this.i87_1, 'ClazzAssignmentDao/getAssignmentSubmitterSummaryListForAssignment', tmp, ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda_0(this, assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption, null)); }; protoOf(ClazzAssignmentDao_Repo).k7t = function (clazzUid, groupSetUid, time, $completion) { var tmp = new $getSubmitterUidsByClazzOrGroupSetUidCOROUTINE$14(this, clazzUid, groupSetUid, time, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_Repo).l7t = function (clazzUid, groupSetUid, date, groupStr, $completion) { var tmp = new $getSubmitterUidsAndNameByClazzOrGroupSetUidCOROUTINE$15(this, clazzUid, groupSetUid, date, groupStr, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_Repo).m7t = function (assignmentUid, clazzUid, accountPersonUid, $completion) { var tmp = new $getSubmitterUidCOROUTINE$17(this, assignmentUid, clazzUid, accountPersonUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_Repo).n7t = function (uid, clazzUid) { var tmp = this.j87_1.n7t(uid, clazzUid); return this.n87_1.r68(tmp, ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda_0(this, uid, clazzUid, null)); }; protoOf(ClazzAssignmentDao_Repo).o7t = function (uid, $completion) { var tmp = new $findByUidWithBlockAsyncCOROUTINE$22(this, uid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_Repo).p7t = function (entities, $completion) { return withRepoChangeMonitorAsync(this.i87_1, 'ClazzAssignment', ClazzAssignmentDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion); }; protoOf(ClazzAssignmentDao_Repo).q7t = function (uidList, active, changeTime, $completion) { return withRepoChangeMonitorAsync(this.i87_1, 'ClazzAssignment', ClazzAssignmentDao_Repo$updateActiveByList$slambda_0(this, uidList, active, changeTime, null), $completion); }; protoOf(ClazzAssignmentDao_Repo).r7t = function (assignmentUid, clazzUid, accountPersonUid) { var tmp = this.j87_1.r7t(assignmentUid, clazzUid, accountPersonUid); return this.n87_1.r68(tmp, ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda_0(this, assignmentUid, clazzUid, accountPersonUid, null)); }; protoOf(ClazzAssignmentDao_Repo).v7v = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$27(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzAssignmentDao_Repo).insertAsync = function (entity, $completion) { return this.v7v(entity instanceof ClazzAssignment ? entity : THROW_CCE(), $completion); }; function ClazzDao() { } function $insertAsyncCOROUTINE$28(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.j8e_1 = _this__u8e3s4; this.k8e_1 = entity; } protoOf($insertAsyncCOROUTINE$28).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.l8e_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.j8e_1.n8e_1)); if (this.k8e_1.p8e_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.l8e_1.r63(6, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.m8e_1 = suspendResult; this.k8e_1.p8e_1 = this.m8e_1; this.ld_1 = 2; continue $sm; case 2: this.k8e_1.g8f_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.j8e_1.o8e_1.insertAsync(this.k8e_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.k8e_1.p8e_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ClazzDao_DoorWrapper(_db, _dao) { ClazzDao.call(this); this.n8e_1 = _db; this.o8e_1 = _dao; } protoOf(ClazzDao_DoorWrapper).p8d = function (code, $completion) { return this.o8e_1.p8d(code, $completion); }; protoOf(ClazzDao_DoorWrapper).q8d = function (clazzUid, $completion) { return this.o8e_1.q8d(clazzUid, $completion); }; protoOf(ClazzDao_DoorWrapper).r8d = function (uid) { return this.o8e_1.r8d(uid); }; protoOf(ClazzDao_DoorWrapper).s8d = function (uid, $completion) { return this.o8e_1.s8d(uid, $completion); }; protoOf(ClazzDao_DoorWrapper).t8d = function (entity, $completion) { entity.g8f_1 = systemTimeInMillis(); return this.o8e_1.t8d(entity, $completion); }; protoOf(ClazzDao_DoorWrapper).u8d = function (searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission) { return this.o8e_1.u8d(searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission); }; protoOf(ClazzDao_DoorWrapper).v8d = function (accountPersonUid, clazzUid) { return this.o8e_1.v8d(accountPersonUid, clazzUid); }; protoOf(ClazzDao_DoorWrapper).w8d = function (clazzUid, currentTime, accountPersonUid) { return this.o8e_1.w8d(clazzUid, currentTime, accountPersonUid); }; protoOf(ClazzDao_DoorWrapper).x8d = function (clazzUid) { return this.o8e_1.x8d(clazzUid); }; protoOf(ClazzDao_DoorWrapper).y8d = function (clazzUid) { return this.o8e_1.y8d(clazzUid); }; protoOf(ClazzDao_DoorWrapper).z8d = function (clazzUid) { return this.o8e_1.z8d(clazzUid); }; protoOf(ClazzDao_DoorWrapper).a8e = function (clazzUid, $completion) { return this.o8e_1.a8e(clazzUid, $completion); }; protoOf(ClazzDao_DoorWrapper).o8f = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$28(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.o8f(entity instanceof Clazz ? entity : THROW_CCE(), $completion); }; function ClazzDao_JdbcImpl$findByClazzCode$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$findByClazzCode$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$findByClazzCode$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzUid = $_result.b5o('clazzUid'); var _tmp_clazzName = $_result.b10('clazzName'); var _tmp_clazzDesc = $_result.b10('clazzDesc'); var _tmp_attendanceAverage = $_result.o67('attendanceAverage'); var _tmp_clazzHolidayUMCalendarUid = $_result.b5o('clazzHolidayUMCalendarUid'); var _tmp_clazzScheuleUMCalendarUid = $_result.b5o('clazzScheuleUMCalendarUid'); var _tmp_isClazzActive = $_result.m67('isClazzActive'); var _tmp_clazzLocationUid = $_result.b5o('clazzLocationUid'); var _tmp_clazzStartTime = $_result.b5o('clazzStartTime'); var _tmp_clazzEndTime = $_result.b5o('clazzEndTime'); var _tmp_clazzFeatures = $_result.b5o('clazzFeatures'); var _tmp_clazzSchoolUid = $_result.b5o('clazzSchoolUid'); var _tmp_clazzEnrolmentPolicy = $_result.a5o('clazzEnrolmentPolicy'); var _tmp_clazzTerminologyUid = $_result.b5o('clazzTerminologyUid'); var _tmp_clazzMasterChangeSeqNum = $_result.b5o('clazzMasterChangeSeqNum'); var _tmp_clazzLocalChangeSeqNum = $_result.b5o('clazzLocalChangeSeqNum'); var _tmp_clazzLastChangedBy = $_result.a5o('clazzLastChangedBy'); var _tmp_clazzLct = $_result.b5o('clazzLct'); var _tmp_clazzTimeZone = $_result.b10('clazzTimeZone'); var _tmp_clazzStudentsPersonGroupUid = $_result.b5o('clazzStudentsPersonGroupUid'); var _tmp_clazzTeachersPersonGroupUid = $_result.b5o('clazzTeachersPersonGroupUid'); var _tmp_clazzPendingStudentsPersonGroupUid = $_result.b5o('clazzPendingStudentsPersonGroupUid'); var _tmp_clazzParentsPersonGroupUid = $_result.b5o('clazzParentsPersonGroupUid'); var _tmp_clazzCode = $_result.b10('clazzCode'); var _tmp_clazzOwnerPersonUid = $_result.b5o('clazzOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Clazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByClazzCode....' call this_0.p8e_1 = _tmp_clazzUid; this_0.q8e_1 = _tmp_clazzName; this_0.r8e_1 = _tmp_clazzDesc; this_0.s8e_1 = _tmp_attendanceAverage; this_0.t8e_1 = _tmp_clazzHolidayUMCalendarUid; this_0.u8e_1 = _tmp_clazzScheuleUMCalendarUid; this_0.v8e_1 = _tmp_isClazzActive; this_0.w8e_1 = _tmp_clazzLocationUid; this_0.x8e_1 = _tmp_clazzStartTime; this_0.y8e_1 = _tmp_clazzEndTime; this_0.z8e_1 = _tmp_clazzFeatures; this_0.a8f_1 = _tmp_clazzSchoolUid; this_0.b8f_1 = _tmp_clazzEnrolmentPolicy; this_0.c8f_1 = _tmp_clazzTerminologyUid; this_0.d8f_1 = _tmp_clazzMasterChangeSeqNum; this_0.e8f_1 = _tmp_clazzLocalChangeSeqNum; this_0.f8f_1 = _tmp_clazzLastChangedBy; this_0.g8f_1 = _tmp_clazzLct; this_0.h8f_1 = _tmp_clazzTimeZone; this_0.i8f_1 = _tmp_clazzStudentsPersonGroupUid; this_0.j8f_1 = _tmp_clazzTeachersPersonGroupUid; this_0.k8f_1 = _tmp_clazzPendingStudentsPersonGroupUid; this_0.l8f_1 = _tmp_clazzParentsPersonGroupUid; this_0.m8f_1 = _tmp_clazzCode; this_0.n8f_1 = _tmp_clazzOwnerPersonUid; return this_0; }; } function ClazzDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzUid = $_result.b5o('clazzUid'); var _tmp_clazzName = $_result.b10('clazzName'); var _tmp_clazzDesc = $_result.b10('clazzDesc'); var _tmp_attendanceAverage = $_result.o67('attendanceAverage'); var _tmp_clazzHolidayUMCalendarUid = $_result.b5o('clazzHolidayUMCalendarUid'); var _tmp_clazzScheuleUMCalendarUid = $_result.b5o('clazzScheuleUMCalendarUid'); var _tmp_isClazzActive = $_result.m67('isClazzActive'); var _tmp_clazzLocationUid = $_result.b5o('clazzLocationUid'); var _tmp_clazzStartTime = $_result.b5o('clazzStartTime'); var _tmp_clazzEndTime = $_result.b5o('clazzEndTime'); var _tmp_clazzFeatures = $_result.b5o('clazzFeatures'); var _tmp_clazzSchoolUid = $_result.b5o('clazzSchoolUid'); var _tmp_clazzEnrolmentPolicy = $_result.a5o('clazzEnrolmentPolicy'); var _tmp_clazzTerminologyUid = $_result.b5o('clazzTerminologyUid'); var _tmp_clazzMasterChangeSeqNum = $_result.b5o('clazzMasterChangeSeqNum'); var _tmp_clazzLocalChangeSeqNum = $_result.b5o('clazzLocalChangeSeqNum'); var _tmp_clazzLastChangedBy = $_result.a5o('clazzLastChangedBy'); var _tmp_clazzLct = $_result.b5o('clazzLct'); var _tmp_clazzTimeZone = $_result.b10('clazzTimeZone'); var _tmp_clazzStudentsPersonGroupUid = $_result.b5o('clazzStudentsPersonGroupUid'); var _tmp_clazzTeachersPersonGroupUid = $_result.b5o('clazzTeachersPersonGroupUid'); var _tmp_clazzPendingStudentsPersonGroupUid = $_result.b5o('clazzPendingStudentsPersonGroupUid'); var _tmp_clazzParentsPersonGroupUid = $_result.b5o('clazzParentsPersonGroupUid'); var _tmp_clazzCode = $_result.b10('clazzCode'); var _tmp_clazzOwnerPersonUid = $_result.b5o('clazzOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Clazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByUidAsync....' call this_0.p8e_1 = _tmp_clazzUid; this_0.q8e_1 = _tmp_clazzName; this_0.r8e_1 = _tmp_clazzDesc; this_0.s8e_1 = _tmp_attendanceAverage; this_0.t8e_1 = _tmp_clazzHolidayUMCalendarUid; this_0.u8e_1 = _tmp_clazzScheuleUMCalendarUid; this_0.v8e_1 = _tmp_isClazzActive; this_0.w8e_1 = _tmp_clazzLocationUid; this_0.x8e_1 = _tmp_clazzStartTime; this_0.y8e_1 = _tmp_clazzEndTime; this_0.z8e_1 = _tmp_clazzFeatures; this_0.a8f_1 = _tmp_clazzSchoolUid; this_0.b8f_1 = _tmp_clazzEnrolmentPolicy; this_0.c8f_1 = _tmp_clazzTerminologyUid; this_0.d8f_1 = _tmp_clazzMasterChangeSeqNum; this_0.e8f_1 = _tmp_clazzLocalChangeSeqNum; this_0.f8f_1 = _tmp_clazzLastChangedBy; this_0.g8f_1 = _tmp_clazzLct; this_0.h8f_1 = _tmp_clazzTimeZone; this_0.i8f_1 = _tmp_clazzStudentsPersonGroupUid; this_0.j8f_1 = _tmp_clazzTeachersPersonGroupUid; this_0.k8f_1 = _tmp_clazzPendingStudentsPersonGroupUid; this_0.l8f_1 = _tmp_clazzParentsPersonGroupUid; this_0.m8f_1 = _tmp_clazzCode; this_0.n8f_1 = _tmp_clazzOwnerPersonUid; return this_0; }; } function ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzUid = $_result.b5o('clazzUid'); var _tmp_clazzName = $_result.b10('clazzName'); var _tmp_clazzDesc = $_result.b10('clazzDesc'); var _tmp_attendanceAverage = $_result.o67('attendanceAverage'); var _tmp_clazzHolidayUMCalendarUid = $_result.b5o('clazzHolidayUMCalendarUid'); var _tmp_clazzScheuleUMCalendarUid = $_result.b5o('clazzScheuleUMCalendarUid'); var _tmp_isClazzActive = $_result.m67('isClazzActive'); var _tmp_clazzLocationUid = $_result.b5o('clazzLocationUid'); var _tmp_clazzStartTime = $_result.b5o('clazzStartTime'); var _tmp_clazzEndTime = $_result.b5o('clazzEndTime'); var _tmp_clazzFeatures = $_result.b5o('clazzFeatures'); var _tmp_clazzSchoolUid = $_result.b5o('clazzSchoolUid'); var _tmp_clazzEnrolmentPolicy = $_result.a5o('clazzEnrolmentPolicy'); var _tmp_clazzTerminologyUid = $_result.b5o('clazzTerminologyUid'); var _tmp_clazzMasterChangeSeqNum = $_result.b5o('clazzMasterChangeSeqNum'); var _tmp_clazzLocalChangeSeqNum = $_result.b5o('clazzLocalChangeSeqNum'); var _tmp_clazzLastChangedBy = $_result.a5o('clazzLastChangedBy'); var _tmp_clazzLct = $_result.b5o('clazzLct'); var _tmp_clazzTimeZone = $_result.b10('clazzTimeZone'); var _tmp_clazzStudentsPersonGroupUid = $_result.b5o('clazzStudentsPersonGroupUid'); var _tmp_clazzTeachersPersonGroupUid = $_result.b5o('clazzTeachersPersonGroupUid'); var _tmp_clazzPendingStudentsPersonGroupUid = $_result.b5o('clazzPendingStudentsPersonGroupUid'); var _tmp_clazzParentsPersonGroupUid = $_result.b5o('clazzParentsPersonGroupUid'); var _tmp_clazzCode = $_result.b10('clazzCode'); var _tmp_clazzOwnerPersonUid = $_result.b5o('clazzOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Clazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByUidAsFlow.....' call this_0.p8e_1 = _tmp_clazzUid; this_0.q8e_1 = _tmp_clazzName; this_0.r8e_1 = _tmp_clazzDesc; this_0.s8e_1 = _tmp_attendanceAverage; this_0.t8e_1 = _tmp_clazzHolidayUMCalendarUid; this_0.u8e_1 = _tmp_clazzScheuleUMCalendarUid; this_0.v8e_1 = _tmp_isClazzActive; this_0.w8e_1 = _tmp_clazzLocationUid; this_0.x8e_1 = _tmp_clazzStartTime; this_0.y8e_1 = _tmp_clazzEndTime; this_0.z8e_1 = _tmp_clazzFeatures; this_0.a8f_1 = _tmp_clazzSchoolUid; this_0.b8f_1 = _tmp_clazzEnrolmentPolicy; this_0.c8f_1 = _tmp_clazzTerminologyUid; this_0.d8f_1 = _tmp_clazzMasterChangeSeqNum; this_0.e8f_1 = _tmp_clazzLocalChangeSeqNum; this_0.f8f_1 = _tmp_clazzLastChangedBy; this_0.g8f_1 = _tmp_clazzLct; this_0.h8f_1 = _tmp_clazzTimeZone; this_0.i8f_1 = _tmp_clazzStudentsPersonGroupUid; this_0.j8f_1 = _tmp_clazzTeachersPersonGroupUid; this_0.k8f_1 = _tmp_clazzPendingStudentsPersonGroupUid; this_0.l8f_1 = _tmp_clazzParentsPersonGroupUid; this_0.m8f_1 = _tmp_clazzCode; this_0.n8f_1 = _tmp_clazzOwnerPersonUid; return this_0; }; } function ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda($uid, resultContinuation) { this.x8f_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda).z8f = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda).le = function (p1, $completion) { return this.z8f((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.y8f_1.x5i(1, this.x8f_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.y8f_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda(this.x8f_1, completion); i.y8f_1 = _stmt; return i; }; function ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0($uid, resultContinuation) { var i = new ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.z8f(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzUid = $_result.b5o('clazzUid'); var _tmp_clazzName = $_result.b10('clazzName'); var _tmp_clazzDesc = $_result.b10('clazzDesc'); var _tmp_attendanceAverage = $_result.o67('attendanceAverage'); var _tmp_clazzHolidayUMCalendarUid = $_result.b5o('clazzHolidayUMCalendarUid'); var _tmp_clazzScheuleUMCalendarUid = $_result.b5o('clazzScheuleUMCalendarUid'); var _tmp_isClazzActive = $_result.m67('isClazzActive'); var _tmp_clazzLocationUid = $_result.b5o('clazzLocationUid'); var _tmp_clazzStartTime = $_result.b5o('clazzStartTime'); var _tmp_clazzEndTime = $_result.b5o('clazzEndTime'); var _tmp_clazzFeatures = $_result.b5o('clazzFeatures'); var _tmp_clazzSchoolUid = $_result.b5o('clazzSchoolUid'); var _tmp_clazzEnrolmentPolicy = $_result.a5o('clazzEnrolmentPolicy'); var _tmp_clazzTerminologyUid = $_result.b5o('clazzTerminologyUid'); var _tmp_clazzMasterChangeSeqNum = $_result.b5o('clazzMasterChangeSeqNum'); var _tmp_clazzLocalChangeSeqNum = $_result.b5o('clazzLocalChangeSeqNum'); var _tmp_clazzLastChangedBy = $_result.a5o('clazzLastChangedBy'); var _tmp_clazzLct = $_result.b5o('clazzLct'); var _tmp_clazzTimeZone = $_result.b10('clazzTimeZone'); var _tmp_clazzStudentsPersonGroupUid = $_result.b5o('clazzStudentsPersonGroupUid'); var _tmp_clazzTeachersPersonGroupUid = $_result.b5o('clazzTeachersPersonGroupUid'); var _tmp_clazzPendingStudentsPersonGroupUid = $_result.b5o('clazzPendingStudentsPersonGroupUid'); var _tmp_clazzParentsPersonGroupUid = $_result.b5o('clazzParentsPersonGroupUid'); var _tmp_clazzCode = $_result.b10('clazzCode'); var _tmp_clazzOwnerPersonUid = $_result.b5o('clazzOwnerPersonUid'); var _tmp_HolidayCalendar_nullCount = 0; var _tmp_umCalendarUid = $_result.b5o('umCalendarUid'); var tmp; if ($_result.t68()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_umCalendarName = $_result.b10('umCalendarName'); var tmp_0; if ($_result.t68()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_umCalendarCategory = $_result.a5o('umCalendarCategory'); var tmp_1; if ($_result.t68()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_umCalendarActive = $_result.m67('umCalendarActive'); var tmp_2; if ($_result.t68()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_umCalendarMasterChangeSeqNum = $_result.b5o('umCalendarMasterChangeSeqNum'); var tmp_3; if ($_result.t68()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_umCalendarLocalChangeSeqNum = $_result.b5o('umCalendarLocalChangeSeqNum'); var tmp_4; if ($_result.t68()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_umCalendarLastChangedBy = $_result.a5o('umCalendarLastChangedBy'); var tmp_5; if ($_result.t68()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_umCalendarLct = $_result.b5o('umCalendarLct'); var tmp_6; if ($_result.t68()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_HolidayCalendar_isAllNull = _tmp_HolidayCalendar_nullCount === 8; var _tmp_CourseTerminology_nullCount = 0; var _tmp_ctUid = $_result.b5o('ctUid'); var tmp_7; if ($_result.t68()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_ctTitle = $_result.b10('ctTitle'); var tmp_8; if ($_result.t68()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_ctTerminology = $_result.b10('ctTerminology'); var tmp_9; if ($_result.t68()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_ctLct = $_result.b5o('ctLct'); var tmp_10; if ($_result.t68()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_CourseTerminology_isAllNull = _tmp_CourseTerminology_nullCount === 4; var _tmp_CoursePicture_nullCount = 0; var _tmp_coursePictureUid = $_result.b5o('coursePictureUid'); var tmp_11; if ($_result.t68()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_coursePictureLct = $_result.b5o('coursePictureLct'); var tmp_12; if ($_result.t68()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_coursePictureUri = $_result.b10('coursePictureUri'); var tmp_13; if ($_result.t68()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_coursePictureThumbnailUri = $_result.b10('coursePictureThumbnailUri'); var tmp_14; if ($_result.t68()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_coursePictureActive = $_result.m67('coursePictureActive'); var tmp_15; if ($_result.t68()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_CoursePicture_isAllNull = _tmp_CoursePicture_nullCount === 5; // Inline function 'kotlin.apply' call var this_0 = new ClazzWithHolidayCalendarAndAndTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByUidWithHolidayCalendarAsync....' call this_0.p8e_1 = _tmp_clazzUid; this_0.q8e_1 = _tmp_clazzName; this_0.r8e_1 = _tmp_clazzDesc; this_0.s8e_1 = _tmp_attendanceAverage; this_0.t8e_1 = _tmp_clazzHolidayUMCalendarUid; this_0.u8e_1 = _tmp_clazzScheuleUMCalendarUid; this_0.v8e_1 = _tmp_isClazzActive; this_0.w8e_1 = _tmp_clazzLocationUid; this_0.x8e_1 = _tmp_clazzStartTime; this_0.y8e_1 = _tmp_clazzEndTime; this_0.z8e_1 = _tmp_clazzFeatures; this_0.a8f_1 = _tmp_clazzSchoolUid; this_0.b8f_1 = _tmp_clazzEnrolmentPolicy; this_0.c8f_1 = _tmp_clazzTerminologyUid; this_0.d8f_1 = _tmp_clazzMasterChangeSeqNum; this_0.e8f_1 = _tmp_clazzLocalChangeSeqNum; this_0.f8f_1 = _tmp_clazzLastChangedBy; this_0.g8f_1 = _tmp_clazzLct; this_0.h8f_1 = _tmp_clazzTimeZone; this_0.i8f_1 = _tmp_clazzStudentsPersonGroupUid; this_0.j8f_1 = _tmp_clazzTeachersPersonGroupUid; this_0.k8f_1 = _tmp_clazzPendingStudentsPersonGroupUid; this_0.l8f_1 = _tmp_clazzParentsPersonGroupUid; this_0.m8f_1 = _tmp_clazzCode; this_0.n8f_1 = _tmp_clazzOwnerPersonUid; if (!_tmp_HolidayCalendar_isAllNull) { var tmp_16 = this_0; // Inline function 'kotlin.apply' call var this_1 = new HolidayCalendar(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByUidWithHolidayCalendarAsync.....' call this_1.a8g_1 = _tmp_umCalendarUid; this_1.b8g_1 = _tmp_umCalendarName; this_1.c8g_1 = _tmp_umCalendarCategory; this_1.d8g_1 = _tmp_umCalendarActive; this_1.e8g_1 = _tmp_umCalendarMasterChangeSeqNum; this_1.f8g_1 = _tmp_umCalendarLocalChangeSeqNum; this_1.g8g_1 = _tmp_umCalendarLastChangedBy; this_1.h8g_1 = _tmp_umCalendarLct; tmp_16.h8h_1 = this_1; } if (!_tmp_CourseTerminology_isAllNull) { var tmp_17 = this_0; // Inline function 'kotlin.apply' call var this_2 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByUidWithHolidayCalendarAsync.....' call this_2.k8h_1 = _tmp_ctUid; this_2.l8h_1 = _tmp_ctTitle; this_2.m8h_1 = _tmp_ctTerminology; this_2.n8h_1 = _tmp_ctLct; tmp_17.i8h_1 = this_2; } if (!_tmp_CoursePicture_isAllNull) { var tmp_18 = this_0; // Inline function 'kotlin.apply' call var this_3 = new CoursePicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByUidWithHolidayCalendarAsync.....' call this_3.o8h_1 = _tmp_coursePictureUid; this_3.p8h_1 = _tmp_coursePictureLct; this_3.q8h_1 = _tmp_coursePictureUri; this_3.r8h_1 = _tmp_coursePictureThumbnailUri; this_3.s8h_1 = _tmp_coursePictureActive; tmp_18.j8h_1 = this_3; } return this_0; }; } function ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_numStudents = $_result.a5o('numStudents'); var _tmp_numTeachers = $_result.a5o('numTeachers'); var _tmp_teacherNames = $_result.b10('teacherNames'); var _tmp_lastRecorded = $_result.b5o('lastRecorded'); var _tmp_clazzUid = $_result.b5o('clazzUid'); var _tmp_clazzName = $_result.b10('clazzName'); var _tmp_clazzDesc = $_result.b10('clazzDesc'); var _tmp_attendanceAverage = $_result.o67('attendanceAverage'); var _tmp_clazzHolidayUMCalendarUid = $_result.b5o('clazzHolidayUMCalendarUid'); var _tmp_clazzScheuleUMCalendarUid = $_result.b5o('clazzScheuleUMCalendarUid'); var _tmp_isClazzActive = $_result.m67('isClazzActive'); var _tmp_clazzLocationUid = $_result.b5o('clazzLocationUid'); var _tmp_clazzStartTime = $_result.b5o('clazzStartTime'); var _tmp_clazzEndTime = $_result.b5o('clazzEndTime'); var _tmp_clazzFeatures = $_result.b5o('clazzFeatures'); var _tmp_clazzSchoolUid = $_result.b5o('clazzSchoolUid'); var _tmp_clazzEnrolmentPolicy = $_result.a5o('clazzEnrolmentPolicy'); var _tmp_clazzTerminologyUid = $_result.b5o('clazzTerminologyUid'); var _tmp_clazzMasterChangeSeqNum = $_result.b5o('clazzMasterChangeSeqNum'); var _tmp_clazzLocalChangeSeqNum = $_result.b5o('clazzLocalChangeSeqNum'); var _tmp_clazzLastChangedBy = $_result.a5o('clazzLastChangedBy'); var _tmp_clazzLct = $_result.b5o('clazzLct'); var _tmp_clazzTimeZone = $_result.b10('clazzTimeZone'); var _tmp_clazzStudentsPersonGroupUid = $_result.b5o('clazzStudentsPersonGroupUid'); var _tmp_clazzTeachersPersonGroupUid = $_result.b5o('clazzTeachersPersonGroupUid'); var _tmp_clazzPendingStudentsPersonGroupUid = $_result.b5o('clazzPendingStudentsPersonGroupUid'); var _tmp_clazzParentsPersonGroupUid = $_result.b5o('clazzParentsPersonGroupUid'); var _tmp_clazzCode = $_result.b10('clazzCode'); var _tmp_clazzOwnerPersonUid = $_result.b5o('clazzOwnerPersonUid'); var _tmp_ClazzEnrolment_nullCount = 0; var _tmp_clazzEnrolmentUid = $_result.b5o('clazzEnrolmentUid'); var tmp; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_clazzEnrolmentPersonUid = $_result.b5o('clazzEnrolmentPersonUid'); var tmp_0; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_clazzEnrolmentClazzUid = $_result.b5o('clazzEnrolmentClazzUid'); var tmp_1; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_clazzEnrolmentDateJoined = $_result.b5o('clazzEnrolmentDateJoined'); var tmp_2; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_clazzEnrolmentDateLeft = $_result.b5o('clazzEnrolmentDateLeft'); var tmp_3; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_clazzEnrolmentRole = $_result.a5o('clazzEnrolmentRole'); var tmp_4; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_clazzEnrolmentAttendancePercentage = $_result.o67('clazzEnrolmentAttendancePercentage'); var tmp_5; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_clazzEnrolmentActive = $_result.m67('clazzEnrolmentActive'); var tmp_6; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_clazzEnrolmentLeavingReasonUid = $_result.b5o('clazzEnrolmentLeavingReasonUid'); var tmp_7; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_clazzEnrolmentOutcome = $_result.a5o('clazzEnrolmentOutcome'); var tmp_8; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.b5o('clazzEnrolmentLocalChangeSeqNum'); var tmp_9; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.b5o('clazzEnrolmentMasterChangeSeqNum'); var tmp_10; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_clazzEnrolmentLastChangedBy = $_result.a5o('clazzEnrolmentLastChangedBy'); var tmp_11; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_clazzEnrolmentLct = $_result.b5o('clazzEnrolmentLct'); var tmp_12; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_ClazzEnrolment_isAllNull = _tmp_ClazzEnrolment_nullCount === 14; var _tmp_CourseTerminology_nullCount = 0; var _tmp_ctUid = $_result.b5o('ctUid'); var tmp_13; if ($_result.t68()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_ctTitle = $_result.b10('ctTitle'); var tmp_14; if ($_result.t68()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_ctTerminology = $_result.b10('ctTerminology'); var tmp_15; if ($_result.t68()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_ctLct = $_result.b5o('ctLct'); var tmp_16; if ($_result.t68()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_CourseTerminology_isAllNull = _tmp_CourseTerminology_nullCount === 4; var _tmp_CoursePicture_nullCount = 0; var _tmp_coursePictureUid = $_result.b5o('coursePictureUid'); var tmp_17; if ($_result.t68()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_coursePictureLct = $_result.b5o('coursePictureLct'); var tmp_18; if ($_result.t68()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_coursePictureUri = $_result.b10('coursePictureUri'); var tmp_19; if ($_result.t68()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_coursePictureThumbnailUri = $_result.b10('coursePictureThumbnailUri'); var tmp_20; if ($_result.t68()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_coursePictureActive = $_result.m67('coursePictureActive'); var tmp_21; if ($_result.t68()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_CoursePicture_isAllNull = _tmp_CoursePicture_nullCount === 5; // Inline function 'kotlin.apply' call var this_0 = new ClazzWithListDisplayDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.s8i_1 = _tmp_numStudents; this_0.t8i_1 = _tmp_numTeachers; this_0.u8i_1 = _tmp_teacherNames; this_0.v8i_1 = _tmp_lastRecorded; this_0.p8e_1 = _tmp_clazzUid; this_0.q8e_1 = _tmp_clazzName; this_0.r8e_1 = _tmp_clazzDesc; this_0.s8e_1 = _tmp_attendanceAverage; this_0.t8e_1 = _tmp_clazzHolidayUMCalendarUid; this_0.u8e_1 = _tmp_clazzScheuleUMCalendarUid; this_0.v8e_1 = _tmp_isClazzActive; this_0.w8e_1 = _tmp_clazzLocationUid; this_0.x8e_1 = _tmp_clazzStartTime; this_0.y8e_1 = _tmp_clazzEndTime; this_0.z8e_1 = _tmp_clazzFeatures; this_0.a8f_1 = _tmp_clazzSchoolUid; this_0.b8f_1 = _tmp_clazzEnrolmentPolicy; this_0.c8f_1 = _tmp_clazzTerminologyUid; this_0.d8f_1 = _tmp_clazzMasterChangeSeqNum; this_0.e8f_1 = _tmp_clazzLocalChangeSeqNum; this_0.f8f_1 = _tmp_clazzLastChangedBy; this_0.g8f_1 = _tmp_clazzLct; this_0.h8f_1 = _tmp_clazzTimeZone; this_0.i8f_1 = _tmp_clazzStudentsPersonGroupUid; this_0.j8f_1 = _tmp_clazzTeachersPersonGroupUid; this_0.k8f_1 = _tmp_clazzPendingStudentsPersonGroupUid; this_0.l8f_1 = _tmp_clazzParentsPersonGroupUid; this_0.m8f_1 = _tmp_clazzCode; this_0.n8f_1 = _tmp_clazzOwnerPersonUid; if (!_tmp_ClazzEnrolment_isAllNull) { var tmp_22 = this_0; // Inline function 'kotlin.apply' call var this_1 = new ClazzEnrolment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.z8i_1 = _tmp_clazzEnrolmentUid; this_1.a8j_1 = _tmp_clazzEnrolmentPersonUid; this_1.b8j_1 = _tmp_clazzEnrolmentClazzUid; this_1.c8j_1 = _tmp_clazzEnrolmentDateJoined; this_1.d8j_1 = _tmp_clazzEnrolmentDateLeft; this_1.e8j_1 = _tmp_clazzEnrolmentRole; this_1.f8j_1 = _tmp_clazzEnrolmentAttendancePercentage; this_1.g8j_1 = _tmp_clazzEnrolmentActive; this_1.h8j_1 = _tmp_clazzEnrolmentLeavingReasonUid; this_1.i8j_1 = _tmp_clazzEnrolmentOutcome; this_1.j8j_1 = _tmp_clazzEnrolmentLocalChangeSeqNum; this_1.k8j_1 = _tmp_clazzEnrolmentMasterChangeSeqNum; this_1.l8j_1 = _tmp_clazzEnrolmentLastChangedBy; this_1.m8j_1 = _tmp_clazzEnrolmentLct; tmp_22.w8i_1 = this_1; } if (!_tmp_CourseTerminology_isAllNull) { var tmp_23 = this_0; // Inline function 'kotlin.apply' call var this_2 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_2.k8h_1 = _tmp_ctUid; this_2.l8h_1 = _tmp_ctTitle; this_2.m8h_1 = _tmp_ctTerminology; this_2.n8h_1 = _tmp_ctLct; tmp_23.x8i_1 = this_2; } if (!_tmp_CoursePicture_isAllNull) { var tmp_24 = this_0; // Inline function 'kotlin.apply' call var this_3 = new CoursePicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_3.o8h_1 = _tmp_coursePictureUid; this_3.p8h_1 = _tmp_coursePictureLct; this_3.q8h_1 = _tmp_coursePictureUri; this_3.r8h_1 = _tmp_coursePictureThumbnailUri; this_3.s8h_1 = _tmp_coursePictureActive; tmp_24.y8i_1 = this_3; } return this_0; }; } function ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda($currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder, $_limit, $_offset, resultContinuation) { this.v8j_1 = $currentTime; this.w8j_1 = $accountPersonUid; this.x8j_1 = $permission; this.y8j_1 = $searchQuery; this.z8j_1 = $excludeSelectedClazzList; this.a8k_1 = $filter; this.b8k_1 = $sortOrder; this.c8k_1 = $_limit; this.d8k_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda).f8k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda).le = function (p1, $completion) { return this.f8k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.e8k_1.x5i(1, this.v8j_1); this.e8k_1.x5i(2, this.v8j_1); this.e8k_1.x5i(3, this.w8j_1); this.e8k_1.x5i(4, this.w8j_1); this.e8k_1.x5i(5, this.w8j_1); this.e8k_1.x5i(6, this.w8j_1); this.e8k_1.x5i(7, this.x8j_1); this.e8k_1.x5i(8, this.w8j_1); this.e8k_1.x5i(9, this.w8j_1); this.e8k_1.x5i(10, this.x8j_1); this.e8k_1.a5j(11, this.y8j_1); var tmp_0 = this.e8k_1.t5h(); var this_0 = this.z8j_1; this.e8k_1.b5j(12, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.e8k_1.w5i(13, this.a8k_1); this.e8k_1.w5i(14, this.a8k_1); this.e8k_1.x5i(15, this.v8j_1); this.e8k_1.x5i(16, this.v8j_1); this.e8k_1.w5i(17, this.b8k_1); this.e8k_1.w5i(18, this.b8k_1); this.e8k_1.w5i(19, this.b8k_1); this.e8k_1.w5i(20, this.b8k_1); this.e8k_1.w5i(21, this.c8k_1); this.e8k_1.w5i(22, this.d8k_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.e8k_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda(this.v8j_1, this.w8j_1, this.x8j_1, this.y8j_1, this.z8j_1, this.a8k_1, this.b8k_1, this.c8k_1, this.d8k_1, completion); i.e8k_1 = _stmt; return i; }; function ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda_0($currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder, $_limit, $_offset, resultContinuation) { var i = new ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda($currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.f8k(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda($currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder, resultContinuation) { this.o8k_1 = $currentTime; this.p8k_1 = $accountPersonUid; this.q8k_1 = $permission; this.r8k_1 = $searchQuery; this.s8k_1 = $excludeSelectedClazzList; this.t8k_1 = $filter; this.u8k_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.v8k_1.x5i(1, this.o8k_1); this.v8k_1.x5i(2, this.o8k_1); this.v8k_1.x5i(3, this.p8k_1); this.v8k_1.x5i(4, this.p8k_1); this.v8k_1.x5i(5, this.p8k_1); this.v8k_1.x5i(6, this.p8k_1); this.v8k_1.x5i(7, this.q8k_1); this.v8k_1.x5i(8, this.p8k_1); this.v8k_1.x5i(9, this.p8k_1); this.v8k_1.x5i(10, this.q8k_1); this.v8k_1.a5j(11, this.r8k_1); var tmp_0 = this.v8k_1.t5h(); var this_0 = this.s8k_1; this.v8k_1.b5j(12, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.v8k_1.w5i(13, this.t8k_1); this.v8k_1.w5i(14, this.t8k_1); this.v8k_1.x5i(15, this.o8k_1); this.v8k_1.x5i(16, this.o8k_1); this.v8k_1.w5i(17, this.u8k_1); this.v8k_1.w5i(18, this.u8k_1); this.v8k_1.w5i(19, this.u8k_1); this.v8k_1.w5i(20, this.u8k_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.v8k_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda(this.o8k_1, this.p8k_1, this.q8k_1, this.r8k_1, this.s8k_1, this.t8k_1, this.u8k_1, completion); i.v8k_1 = _stmt; return i; }; function ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda_0($currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder, resultContinuation) { var i = new ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda($currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_hasAttendancePermission = $_result.m67('hasAttendancePermission'); var _tmp_hasViewMembersPermission = $_result.m67('hasViewMembersPermission'); var _tmp_hasLearningRecordPermission = $_result.m67('hasLearningRecordPermission'); var _tmp_Clazz_nullCount = 0; var _tmp_clazzUid = $_result.b5o('clazzUid'); var tmp; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_clazzName = $_result.b10('clazzName'); var tmp_0; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_clazzDesc = $_result.b10('clazzDesc'); var tmp_1; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_attendanceAverage = $_result.o67('attendanceAverage'); var tmp_2; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_clazzHolidayUMCalendarUid = $_result.b5o('clazzHolidayUMCalendarUid'); var tmp_3; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_clazzScheuleUMCalendarUid = $_result.b5o('clazzScheuleUMCalendarUid'); var tmp_4; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_isClazzActive = $_result.m67('isClazzActive'); var tmp_5; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_clazzLocationUid = $_result.b5o('clazzLocationUid'); var tmp_6; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_clazzStartTime = $_result.b5o('clazzStartTime'); var tmp_7; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_clazzEndTime = $_result.b5o('clazzEndTime'); var tmp_8; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_clazzFeatures = $_result.b5o('clazzFeatures'); var tmp_9; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_clazzSchoolUid = $_result.b5o('clazzSchoolUid'); var tmp_10; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_clazzEnrolmentPolicy = $_result.a5o('clazzEnrolmentPolicy'); var tmp_11; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_clazzTerminologyUid = $_result.b5o('clazzTerminologyUid'); var tmp_12; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_clazzMasterChangeSeqNum = $_result.b5o('clazzMasterChangeSeqNum'); var tmp_13; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_clazzLocalChangeSeqNum = $_result.b5o('clazzLocalChangeSeqNum'); var tmp_14; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_clazzLastChangedBy = $_result.a5o('clazzLastChangedBy'); var tmp_15; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_clazzLct = $_result.b5o('clazzLct'); var tmp_16; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_clazzTimeZone = $_result.b10('clazzTimeZone'); var tmp_17; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_clazzStudentsPersonGroupUid = $_result.b5o('clazzStudentsPersonGroupUid'); var tmp_18; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_clazzTeachersPersonGroupUid = $_result.b5o('clazzTeachersPersonGroupUid'); var tmp_19; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_clazzPendingStudentsPersonGroupUid = $_result.b5o('clazzPendingStudentsPersonGroupUid'); var tmp_20; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_clazzParentsPersonGroupUid = $_result.b5o('clazzParentsPersonGroupUid'); var tmp_21; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_clazzCode = $_result.b10('clazzCode'); var tmp_22; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_clazzOwnerPersonUid = $_result.b5o('clazzOwnerPersonUid'); var tmp_23; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_Clazz_isAllNull = _tmp_Clazz_nullCount === 25; // Inline function 'kotlin.apply' call var this_0 = new ClazzAndDetailPermissions(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.clazzAndDetailPermissionsAsFlow.....' call this_0.x8k_1 = _tmp_hasAttendancePermission; this_0.y8k_1 = _tmp_hasViewMembersPermission; this_0.z8k_1 = _tmp_hasLearningRecordPermission; if (!_tmp_Clazz_isAllNull) { var tmp_24 = this_0; // Inline function 'kotlin.apply' call var this_1 = new Clazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.clazzAndDetailPermissionsAsFlow......' call this_1.p8e_1 = _tmp_clazzUid; this_1.q8e_1 = _tmp_clazzName; this_1.r8e_1 = _tmp_clazzDesc; this_1.s8e_1 = _tmp_attendanceAverage; this_1.t8e_1 = _tmp_clazzHolidayUMCalendarUid; this_1.u8e_1 = _tmp_clazzScheuleUMCalendarUid; this_1.v8e_1 = _tmp_isClazzActive; this_1.w8e_1 = _tmp_clazzLocationUid; this_1.x8e_1 = _tmp_clazzStartTime; this_1.y8e_1 = _tmp_clazzEndTime; this_1.z8e_1 = _tmp_clazzFeatures; this_1.a8f_1 = _tmp_clazzSchoolUid; this_1.b8f_1 = _tmp_clazzEnrolmentPolicy; this_1.c8f_1 = _tmp_clazzTerminologyUid; this_1.d8f_1 = _tmp_clazzMasterChangeSeqNum; this_1.e8f_1 = _tmp_clazzLocalChangeSeqNum; this_1.f8f_1 = _tmp_clazzLastChangedBy; this_1.g8f_1 = _tmp_clazzLct; this_1.h8f_1 = _tmp_clazzTimeZone; this_1.i8f_1 = _tmp_clazzStudentsPersonGroupUid; this_1.j8f_1 = _tmp_clazzTeachersPersonGroupUid; this_1.k8f_1 = _tmp_clazzPendingStudentsPersonGroupUid; this_1.l8f_1 = _tmp_clazzParentsPersonGroupUid; this_1.m8f_1 = _tmp_clazzCode; this_1.n8f_1 = _tmp_clazzOwnerPersonUid; tmp_24.w8k_1 = this_1; } return this_0; }; } function ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda($clazzUid, $accountPersonUid, resultContinuation) { this.i8l_1 = $clazzUid; this.j8l_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda).l8l = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda).le = function (p1, $completion) { return this.l8l((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.k8l_1.x5i(1, this.i8l_1); this.k8l_1.x5i(2, this.j8l_1); this.k8l_1.x5i(3, this.j8l_1); this.k8l_1.x5i(4, this.i8l_1); this.k8l_1.x5i(5, this.j8l_1); this.k8l_1.x5i(6, this.j8l_1); this.k8l_1.x5i(7, this.i8l_1); this.k8l_1.x5i(8, this.j8l_1); this.k8l_1.x5i(9, this.j8l_1); this.k8l_1.x5i(10, this.i8l_1); this.k8l_1.x5i(11, this.j8l_1); this.k8l_1.x5i(12, this.j8l_1); this.k8l_1.x5i(13, this.i8l_1); this.k8l_1.x5i(14, this.j8l_1); this.k8l_1.x5i(15, this.j8l_1); this.k8l_1.x5i(16, this.i8l_1); this.k8l_1.x5i(17, this.j8l_1); this.k8l_1.x5i(18, this.j8l_1); this.k8l_1.x5i(19, this.i8l_1); this.k8l_1.x5i(20, this.i8l_1); this.k8l_1.x5i(21, this.j8l_1); this.k8l_1.x5i(22, this.j8l_1); this.k8l_1.x5i(23, this.i8l_1); this.k8l_1.x5i(24, this.j8l_1); this.k8l_1.x5i(25, this.j8l_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.k8l_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda(this.i8l_1, this.j8l_1, completion); i.k8l_1 = _stmt; return i; }; function ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda_0($clazzUid, $accountPersonUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda($clazzUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.l8l(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_numStudents = $_result.a5o('numStudents'); var _tmp_numTeachers = $_result.a5o('numTeachers'); var _tmp_activeUserIsStudent = $_result.m67('activeUserIsStudent'); var _tmp_Clazz_nullCount = 0; var _tmp_clazzUid = $_result.b5o('clazzUid'); var tmp; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_clazzName = $_result.b10('clazzName'); var tmp_0; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_clazzDesc = $_result.b10('clazzDesc'); var tmp_1; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_attendanceAverage = $_result.o67('attendanceAverage'); var tmp_2; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_clazzHolidayUMCalendarUid = $_result.b5o('clazzHolidayUMCalendarUid'); var tmp_3; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_clazzScheuleUMCalendarUid = $_result.b5o('clazzScheuleUMCalendarUid'); var tmp_4; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_isClazzActive = $_result.m67('isClazzActive'); var tmp_5; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_clazzLocationUid = $_result.b5o('clazzLocationUid'); var tmp_6; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_clazzStartTime = $_result.b5o('clazzStartTime'); var tmp_7; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_clazzEndTime = $_result.b5o('clazzEndTime'); var tmp_8; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_clazzFeatures = $_result.b5o('clazzFeatures'); var tmp_9; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_clazzSchoolUid = $_result.b5o('clazzSchoolUid'); var tmp_10; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_clazzEnrolmentPolicy = $_result.a5o('clazzEnrolmentPolicy'); var tmp_11; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_clazzTerminologyUid = $_result.b5o('clazzTerminologyUid'); var tmp_12; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_clazzMasterChangeSeqNum = $_result.b5o('clazzMasterChangeSeqNum'); var tmp_13; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_clazzLocalChangeSeqNum = $_result.b5o('clazzLocalChangeSeqNum'); var tmp_14; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_clazzLastChangedBy = $_result.a5o('clazzLastChangedBy'); var tmp_15; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_clazzLct = $_result.b5o('clazzLct'); var tmp_16; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_clazzTimeZone = $_result.b10('clazzTimeZone'); var tmp_17; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_clazzStudentsPersonGroupUid = $_result.b5o('clazzStudentsPersonGroupUid'); var tmp_18; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_clazzTeachersPersonGroupUid = $_result.b5o('clazzTeachersPersonGroupUid'); var tmp_19; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_clazzPendingStudentsPersonGroupUid = $_result.b5o('clazzPendingStudentsPersonGroupUid'); var tmp_20; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_clazzParentsPersonGroupUid = $_result.b5o('clazzParentsPersonGroupUid'); var tmp_21; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_clazzCode = $_result.b10('clazzCode'); var tmp_22; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_clazzOwnerPersonUid = $_result.b5o('clazzOwnerPersonUid'); var tmp_23; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_Clazz_isAllNull = _tmp_Clazz_nullCount === 25; var _tmp_CourseTerminology_nullCount = 0; var _tmp_ctUid = $_result.b5o('ctUid'); var tmp_24; if ($_result.t68()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_ctTitle = $_result.b10('ctTitle'); var tmp_25; if ($_result.t68()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_ctTerminology = $_result.b10('ctTerminology'); var tmp_26; if ($_result.t68()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_ctLct = $_result.b5o('ctLct'); var tmp_27; if ($_result.t68()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_CourseTerminology_isAllNull = _tmp_CourseTerminology_nullCount === 4; var _tmp_CoursePicture_nullCount = 0; var _tmp_coursePictureUid = $_result.b5o('coursePictureUid'); var tmp_28; if ($_result.t68()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_coursePictureLct = $_result.b5o('coursePictureLct'); var tmp_29; if ($_result.t68()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_coursePictureUri = $_result.b10('coursePictureUri'); var tmp_30; if ($_result.t68()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_30 = Unit_instance; } var _tmp_coursePictureThumbnailUri = $_result.b10('coursePictureThumbnailUri'); var tmp_31; if ($_result.t68()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_31 = Unit_instance; } var _tmp_coursePictureActive = $_result.m67('coursePictureActive'); var tmp_32; if ($_result.t68()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_32 = Unit_instance; } var _tmp_CoursePicture_isAllNull = _tmp_CoursePicture_nullCount === 5; // Inline function 'kotlin.apply' call var this_0 = new ClazzAndDisplayDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.getClazzWithDisplayDetails.....' call this_0.p8l_1 = _tmp_numStudents; this_0.q8l_1 = _tmp_numTeachers; this_0.r8l_1 = _tmp_activeUserIsStudent; if (!_tmp_Clazz_isAllNull) { var tmp_33 = this_0; // Inline function 'kotlin.apply' call var this_1 = new Clazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.getClazzWithDisplayDetails......' call this_1.p8e_1 = _tmp_clazzUid; this_1.q8e_1 = _tmp_clazzName; this_1.r8e_1 = _tmp_clazzDesc; this_1.s8e_1 = _tmp_attendanceAverage; this_1.t8e_1 = _tmp_clazzHolidayUMCalendarUid; this_1.u8e_1 = _tmp_clazzScheuleUMCalendarUid; this_1.v8e_1 = _tmp_isClazzActive; this_1.w8e_1 = _tmp_clazzLocationUid; this_1.x8e_1 = _tmp_clazzStartTime; this_1.y8e_1 = _tmp_clazzEndTime; this_1.z8e_1 = _tmp_clazzFeatures; this_1.a8f_1 = _tmp_clazzSchoolUid; this_1.b8f_1 = _tmp_clazzEnrolmentPolicy; this_1.c8f_1 = _tmp_clazzTerminologyUid; this_1.d8f_1 = _tmp_clazzMasterChangeSeqNum; this_1.e8f_1 = _tmp_clazzLocalChangeSeqNum; this_1.f8f_1 = _tmp_clazzLastChangedBy; this_1.g8f_1 = _tmp_clazzLct; this_1.h8f_1 = _tmp_clazzTimeZone; this_1.i8f_1 = _tmp_clazzStudentsPersonGroupUid; this_1.j8f_1 = _tmp_clazzTeachersPersonGroupUid; this_1.k8f_1 = _tmp_clazzPendingStudentsPersonGroupUid; this_1.l8f_1 = _tmp_clazzParentsPersonGroupUid; this_1.m8f_1 = _tmp_clazzCode; this_1.n8f_1 = _tmp_clazzOwnerPersonUid; tmp_33.m8l_1 = this_1; } if (!_tmp_CourseTerminology_isAllNull) { var tmp_34 = this_0; // Inline function 'kotlin.apply' call var this_2 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.getClazzWithDisplayDetails......' call this_2.k8h_1 = _tmp_ctUid; this_2.l8h_1 = _tmp_ctTitle; this_2.m8h_1 = _tmp_ctTerminology; this_2.n8h_1 = _tmp_ctLct; tmp_34.n8l_1 = this_2; } if (!_tmp_CoursePicture_isAllNull) { var tmp_35 = this_0; // Inline function 'kotlin.apply' call var this_3 = new CoursePicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.getClazzWithDisplayDetails......' call this_3.o8h_1 = _tmp_coursePictureUid; this_3.p8h_1 = _tmp_coursePictureLct; this_3.q8h_1 = _tmp_coursePictureUri; this_3.r8h_1 = _tmp_coursePictureThumbnailUri; this_3.s8h_1 = _tmp_coursePictureActive; tmp_35.o8l_1 = this_3; } return this_0; }; } function ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda($currentTime, $clazzUid, $accountPersonUid, resultContinuation) { this.a8m_1 = $currentTime; this.b8m_1 = $clazzUid; this.c8m_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda).e8m = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda).le = function (p1, $completion) { return this.e8m((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.d8m_1.x5i(1, this.a8m_1); this.d8m_1.x5i(2, this.a8m_1); this.d8m_1.x5i(3, this.b8m_1); this.d8m_1.x5i(4, this.c8m_1); this.d8m_1.x5i(5, this.b8m_1); this.d8m_1.x5i(6, this.b8m_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.d8m_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda).o5g = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda(this.a8m_1, this.b8m_1, this.c8m_1, completion); i.d8m_1 = _stmt; return i; }; function ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda_0($currentTime, $clazzUid, $accountPersonUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda($currentTime, $clazzUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.e8m(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { return $_result.a62(1); }; } function ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda($clazzUid, resultContinuation) { this.n8m_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).p8m = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).le = function (p1, $completion) { return this.p8m((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.o8m_1.x5i(1, this.n8m_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.o8m_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda(this.n8m_1, completion); i.o8m_1 = _stmt; return i; }; function ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda_0($clazzUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.p8m(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzName = $_result.b10('clazzName'); var _tmp_CourseTerminology_nullCount = 0; var _tmp_ctUid = $_result.b5o('ctUid'); var tmp; if ($_result.t68()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_ctTitle = $_result.b10('ctTitle'); var tmp_0; if ($_result.t68()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_ctTerminology = $_result.b10('ctTerminology'); var tmp_1; if ($_result.t68()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_ctLct = $_result.b5o('ctLct'); var tmp_2; if ($_result.t68()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_CourseTerminology_isAllNull = _tmp_CourseTerminology_nullCount === 4; // Inline function 'kotlin.apply' call var this_0 = new ClazzNameAndTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.getClazzNameAndTerminologyAsFlow.....' call this_0.q8m_1 = _tmp_clazzName; if (!_tmp_CourseTerminology_isAllNull) { var tmp_3 = this_0; // Inline function 'kotlin.apply' call var this_1 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.getClazzNameAndTerminologyAsFlow......' call this_1.k8h_1 = _tmp_ctUid; this_1.l8h_1 = _tmp_ctTitle; this_1.m8h_1 = _tmp_ctTerminology; this_1.n8h_1 = _tmp_ctLct; tmp_3.r8m_1 = this_1; } return this_0; }; } function ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda($clazzUid, resultContinuation) { this.a8n_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda).c8n = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda).le = function (p1, $completion) { return this.c8n((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.b8n_1.x5i(1, this.a8n_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.b8n_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda(this.a8n_1, completion); i.b8n_1 = _stmt; return i; }; function ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda_0($clazzUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.c8n(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { return $_result.a62(1); }; } function ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda($clazzUid, resultContinuation) { this.l8n_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda).p8m = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda).le = function (p1, $completion) { return this.p8m((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.m8n_1.x5i(1, this.l8n_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.m8n_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda(this.l8n_1, completion); i.m8n_1 = _stmt; return i; }; function ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda_0($clazzUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.p8m(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda$lambda$lambda($_result) { return function (it) { return $_result.a62(1); }; } function ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.n8n_1); } protoOf(ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1).w5h = function (returnsId) { return 'INSERT INTO Clazz (clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1).r8n = function (stmt, entity) { if (entity.p8e_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.p8e_1); } stmt.a5j(2, entity.q8e_1); stmt.a5j(3, entity.r8e_1); stmt.y5i(4, entity.s8e_1); stmt.x5i(5, entity.t8e_1); stmt.x5i(6, entity.u8e_1); stmt.k5i(7, entity.v8e_1); stmt.x5i(8, entity.w8e_1); stmt.x5i(9, entity.x8e_1); stmt.x5i(10, entity.y8e_1); stmt.x5i(11, entity.z8e_1); stmt.x5i(12, entity.a8f_1); stmt.w5i(13, entity.b8f_1); stmt.x5i(14, entity.c8f_1); stmt.x5i(15, entity.d8f_1); stmt.x5i(16, entity.e8f_1); stmt.w5i(17, entity.f8f_1); stmt.x5i(18, entity.g8f_1); stmt.a5j(19, entity.h8f_1); stmt.x5i(20, entity.i8f_1); stmt.x5i(21, entity.j8f_1); stmt.x5i(22, entity.k8f_1); stmt.x5i(23, entity.l8f_1); stmt.a5j(24, entity.m8f_1); stmt.x5i(25, entity.n8f_1); }; protoOf(ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1).r5g = function (stmt, entity) { return this.r8n(stmt, entity instanceof Clazz ? entity : THROW_CCE()); }; function ClazzDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) { this.a8o_1 = $entity; this.b8o_1 = $_result; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$updateAsync$slambda).n5g = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_JdbcImpl$updateAsync$slambda).le = function (p1, $completion) { return this.n5g((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$updateAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.c8o_1.a5j(1, this.a8o_1.q8e_1); this.c8o_1.a5j(2, this.a8o_1.r8e_1); this.c8o_1.y5i(3, this.a8o_1.s8e_1); this.c8o_1.x5i(4, this.a8o_1.t8e_1); this.c8o_1.x5i(5, this.a8o_1.u8e_1); this.c8o_1.k5i(6, this.a8o_1.v8e_1); this.c8o_1.x5i(7, this.a8o_1.w8e_1); this.c8o_1.x5i(8, this.a8o_1.x8e_1); this.c8o_1.x5i(9, this.a8o_1.y8e_1); this.c8o_1.x5i(10, this.a8o_1.z8e_1); this.c8o_1.x5i(11, this.a8o_1.a8f_1); this.c8o_1.w5i(12, this.a8o_1.b8f_1); this.c8o_1.x5i(13, this.a8o_1.c8f_1); this.c8o_1.x5i(14, this.a8o_1.d8f_1); this.c8o_1.x5i(15, this.a8o_1.e8f_1); this.c8o_1.w5i(16, this.a8o_1.f8f_1); this.c8o_1.x5i(17, this.a8o_1.g8f_1); this.c8o_1.a5j(18, this.a8o_1.h8f_1); this.c8o_1.x5i(19, this.a8o_1.i8f_1); this.c8o_1.x5i(20, this.a8o_1.j8f_1); this.c8o_1.x5i(21, this.a8o_1.k8f_1); this.c8o_1.x5i(22, this.a8o_1.l8f_1); this.c8o_1.a5j(23, this.a8o_1.m8f_1); this.c8o_1.x5i(24, this.a8o_1.n8f_1); this.c8o_1.x5i(25, this.a8o_1.p8e_1); this.d8o_1 = this.b8o_1._v; this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.c8o_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; var ARGUMENT_0 = this.d8o_1 + ARGUMENT | 0; this.b8o_1._v = ARGUMENT_0; return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzDao_JdbcImpl$updateAsync$slambda).o5g = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$updateAsync$slambda(this.a8o_1, this.b8o_1, completion); i.c8o_1 = _stmt; return i; }; function ClazzDao_JdbcImpl$updateAsync$slambda_0($entity, $_result, resultContinuation) { var i = new ClazzDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation); var l = function (_stmt, $completion) { return i.n5g(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$findByClazzCode$slambda($code, resultContinuation) { this.m8o_1 = $code; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$findByClazzCode$slambda).z8f = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_JdbcImpl$findByClazzCode$slambda).le = function (p1, $completion) { return this.z8f((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$findByClazzCode$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.n8o_1.a5j(1, this.m8o_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.n8o_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$findByClazzCode$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzDao_JdbcImpl$findByClazzCode$slambda).o5g = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$findByClazzCode$slambda(this.m8o_1, completion); i.n8o_1 = _stmt; return i; }; function ClazzDao_JdbcImpl$findByClazzCode$slambda_0($code, resultContinuation) { var i = new ClazzDao_JdbcImpl$findByClazzCode$slambda($code, resultContinuation); var l = function (_stmt, $completion) { return i.z8f(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$findByUidAsync$slambda($clazzUid, resultContinuation) { this.w8o_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$findByUidAsync$slambda).z8f = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_JdbcImpl$findByUidAsync$slambda).le = function (p1, $completion) { return this.z8f((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$findByUidAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.x8o_1.x5i(1, this.w8o_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.x8o_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzDao_JdbcImpl$findByUidAsync$slambda).o5g = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$findByUidAsync$slambda(this.w8o_1, completion); i.x8o_1 = _stmt; return i; }; function ClazzDao_JdbcImpl$findByUidAsync$slambda_0($clazzUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$findByUidAsync$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.z8f(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $uid, resultContinuation) { this.g8p_1 = this$0; this.h8p_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda).i8p = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda).r79 = function ($completion) { return this.i8p($completion); }; protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('SELECT * FROM Clazz WHERE clazzUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM Clazz WHERE clazzUid = ?\n', true); suspendResult = prepareAndUseStatementAsync(this.g8p_1.n8n_1, tmp_0, ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0(this.h8p_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda).q79 = function (completion) { return new ClazzDao_JdbcImpl$findByUidAsFlow$slambda(this.g8p_1, this.h8p_1, completion); }; function ClazzDao_JdbcImpl$findByUidAsFlow$slambda_0(this$0, $uid, resultContinuation) { var i = new ClazzDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.i8p($completion); }; l.$arity = 0; return l; } function ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda($uid, resultContinuation) { this.r8p_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda).t8p = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda).le = function (p1, $completion) { return this.t8p((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.s8p_1.x5i(1, this.r8p_1); this.s8p_1.x5i(2, this.r8p_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.s8p_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda).o5g = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda(this.r8p_1, completion); i.s8p_1 = _stmt; return i; }; function ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda_0($uid, resultContinuation) { var i = new ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.t8p(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$findClazzesWithPermission$1(this$0, $currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder) { this.a8q_1 = this$0; this.b8q_1 = $currentTime; this.c8q_1 = $accountPersonUid; this.d8q_1 = $permission; this.e8q_1 = $searchQuery; this.f8q_1 = $excludeSelectedClazzList; this.g8q_1 = $filter; this.h8q_1 = $sortOrder; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Clazz', 'ClazzEnrolment', 'CoursePermission', 'SystemPermission', 'CourseTerminology', 'CoursePicture']; DoorLimitOffsetPagingSource.call(this, this$0.n8n_1, tmp$ret$2); } protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$1).i8q = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n SELECT Clazz.*, ClazzEnrolment.*, CoursePicture.*,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1000 \n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numStudents,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1001\n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numTeachers,\n '' AS teacherNames,\n 0 AS lastRecorded,\n CourseTerminology.*\n FROM Clazz\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n LEFT JOIN CourseTerminology \n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = Clazz.clazzUid \n\n WHERE /* Begin permission check clause */\n CAST(? AS BIGINT) != 0\n AND (\n Clazz.clazzOwnerPersonUid = CAST(? AS BIGINT)\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = Clazz.clazzUid\n AND ( CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & CAST(? AS BIGINT)) > 0 \n AND NOT CoursePermission.cpIsDeleted) \n OR (\n SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n CAST(? AS BIGINT)\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n ) \n )\n /* End permission check clause */ \n AND CAST(Clazz.isClazzActive AS INTEGER) = 1\n AND Clazz.clazzName like ?\n AND (Clazz.clazzUid NOT IN (?))\n AND ( ? = 0 OR (CASE WHEN ? = 5 \n THEN CAST(? AS BIGINT) BETWEEN Clazz.clazzStartTime AND Clazz.clazzEndTime\n ELSE CAST(? AS BIGINT) > Clazz.clazzEndTime \n END))\n GROUP BY Clazz.clazzUid, ClazzEnrolment.clazzEnrolmentUid, CourseTerminology.ctUid, CoursePicture.coursePictureUid\n ORDER BY CASE ?\n WHEN 3 THEN Clazz.attendanceAverage\n ELSE 0\n END ASC,\n CASE ?\n WHEN 1 THEN Clazz.clazzName\n ELSE ''\n END ASC,\n CASE ?\n WHEN 4 THEN Clazz.attendanceAverage\n ELSE 0\n END DESC,\n CASE ?\n WHEN 2 THEN clazz.Clazzname\n ELSE ''\n END DESC\n ) AS _PagingData LIMIT ? OFFSET ?", true, VOID, VOID, "SELECT * FROM (\n SELECT Clazz.*, ClazzEnrolment.*, CoursePicture.*,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1000 \n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numStudents,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1001\n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numTeachers,\n '' AS teacherNames,\n 0 AS lastRecorded,\n CourseTerminology.*\n FROM Clazz\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n LEFT JOIN CourseTerminology \n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = Clazz.clazzUid \n\n WHERE /* Begin permission check clause */\n ? != 0\n AND (\n Clazz.clazzOwnerPersonUid = ?\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = Clazz.clazzUid\n AND ( CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & ?) > 0 \n AND NOT CoursePermission.cpIsDeleted) \n OR (\n SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n ?\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n ) \n )\n /* End permission check clause */ \n AND CAST(Clazz.isClazzActive AS INTEGER) = 1\n AND Clazz.clazzName like ?\n AND (Clazz.clazzUid NOT IN (?))\n AND ( ? = 0 OR (CASE WHEN ? = 5 \n THEN ? BETWEEN Clazz.clazzStartTime AND Clazz.clazzEndTime\n ELSE ? > Clazz.clazzEndTime \n END))\n GROUP BY Clazz.clazzUid, ClazzEnrolment.clazzEnrolmentUid, CourseTerminology.ctUid, CoursePicture.coursePictureUid\n ORDER BY CASE ?\n WHEN 3 THEN Clazz.attendanceAverage\n ELSE 0\n END ASC,\n CASE ?\n WHEN 1 THEN Clazz.clazzName\n ELSE ''\n END ASC,\n CASE ?\n WHEN 4 THEN Clazz.attendanceAverage\n ELSE 0\n END DESC,\n CASE ?\n WHEN 2 THEN clazz.Clazzname\n ELSE ''\n END DESC\n ) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.a8q_1.n8n_1, tmp, ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda_0(this.b8q_1, this.c8q_1, this.d8q_1, this.e8q_1, this.f8q_1, this.g8q_1, this.h8q_1, _limit, _offset, null), $completion); }; protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$1).z5q = function (_limit, _offset, $completion) { return this.i8q(_limit, _offset, $completion); }; protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n SELECT Clazz.*, ClazzEnrolment.*, CoursePicture.*,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1000 \n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numStudents,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1001\n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numTeachers,\n '' AS teacherNames,\n 0 AS lastRecorded,\n CourseTerminology.*\n FROM Clazz\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n LEFT JOIN CourseTerminology \n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = Clazz.clazzUid \n\n WHERE /* Begin permission check clause */\n CAST(? AS BIGINT) != 0\n AND (\n Clazz.clazzOwnerPersonUid = CAST(? AS BIGINT)\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = Clazz.clazzUid\n AND ( CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & CAST(? AS BIGINT)) > 0 \n AND NOT CoursePermission.cpIsDeleted) \n OR (\n SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n CAST(? AS BIGINT)\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n ) \n )\n /* End permission check clause */ \n AND CAST(Clazz.isClazzActive AS INTEGER) = 1\n AND Clazz.clazzName like ?\n AND (Clazz.clazzUid NOT IN (?))\n AND ( ? = 0 OR (CASE WHEN ? = 5 \n THEN CAST(? AS BIGINT) BETWEEN Clazz.clazzStartTime AND Clazz.clazzEndTime\n ELSE CAST(? AS BIGINT) > Clazz.clazzEndTime \n END))\n GROUP BY Clazz.clazzUid, ClazzEnrolment.clazzEnrolmentUid, CourseTerminology.ctUid, CoursePicture.coursePictureUid\n ORDER BY CASE ?\n WHEN 3 THEN Clazz.attendanceAverage\n ELSE 0\n END ASC,\n CASE ?\n WHEN 1 THEN Clazz.clazzName\n ELSE ''\n END ASC,\n CASE ?\n WHEN 4 THEN Clazz.attendanceAverage\n ELSE 0\n END DESC,\n CASE ?\n WHEN 2 THEN clazz.Clazzname\n ELSE ''\n END DESC\n ) AS _PagingCount", true, VOID, VOID, "SELECT COUNT(*) FROM (\n SELECT Clazz.*, ClazzEnrolment.*, CoursePicture.*,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1000 \n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numStudents,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1001\n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numTeachers,\n '' AS teacherNames,\n 0 AS lastRecorded,\n CourseTerminology.*\n FROM Clazz\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n LEFT JOIN CourseTerminology \n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = Clazz.clazzUid \n\n WHERE /* Begin permission check clause */\n ? != 0\n AND (\n Clazz.clazzOwnerPersonUid = ?\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = Clazz.clazzUid\n AND ( CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & ?) > 0 \n AND NOT CoursePermission.cpIsDeleted) \n OR (\n SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n ?\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n ) \n )\n /* End permission check clause */ \n AND CAST(Clazz.isClazzActive AS INTEGER) = 1\n AND Clazz.clazzName like ?\n AND (Clazz.clazzUid NOT IN (?))\n AND ( ? = 0 OR (CASE WHEN ? = 5 \n THEN ? BETWEEN Clazz.clazzStartTime AND Clazz.clazzEndTime\n ELSE ? > Clazz.clazzEndTime \n END))\n GROUP BY Clazz.clazzUid, ClazzEnrolment.clazzEnrolmentUid, CourseTerminology.ctUid, CoursePicture.coursePictureUid\n ORDER BY CASE ?\n WHEN 3 THEN Clazz.attendanceAverage\n ELSE 0\n END ASC,\n CASE ?\n WHEN 1 THEN Clazz.clazzName\n ELSE ''\n END ASC,\n CASE ?\n WHEN 4 THEN Clazz.attendanceAverage\n ELSE 0\n END DESC,\n CASE ?\n WHEN 2 THEN clazz.Clazzname\n ELSE ''\n END DESC\n ) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.a8q_1.n8n_1, tmp, ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda_0(this.b8q_1, this.c8q_1, this.d8q_1, this.e8q_1, this.f8q_1, this.g8q_1, this.h8q_1, null), $completion); }; function ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, resultContinuation) { this.r8q_1 = this$0; this.s8q_1 = $clazzUid; this.t8q_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda).u8q = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda).r79 = function ($completion) { return this.u8q($completion); }; protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT Clazz.*,\n ( (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n 32\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n \n 32\n \n ) > 0)\n )\n \n ) AS hasAttendancePermission,\n ( (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n 8192\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n \n 8192\n \n ) > 0)\n )\n \n ) AS hasViewMembersPermission,\n ( (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n \n 128\n \n ) > 0)\n )\n \n ) AS hasLearningRecordPermission\n FROM Clazz\n WHERE Clazz.clazzUid = CAST(? AS BIGINT)\n AND ( (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n 1\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n \n 1\n \n ) > 0)\n )\n \n )\n ', VOID, VOID, VOID, '\n SELECT Clazz.*,\n ( (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n 32\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n \n 32\n \n ) > 0)\n )\n \n ) AS hasAttendancePermission,\n ( (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n 8192\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n \n 8192\n \n ) > 0)\n )\n \n ) AS hasViewMembersPermission,\n ( (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n \n 128\n \n ) > 0)\n )\n \n ) AS hasLearningRecordPermission\n FROM Clazz\n WHERE Clazz.clazzUid = ?\n AND ( (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n 1\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n \n 1\n \n ) > 0)\n )\n \n )\n \n', true); suspendResult = prepareAndUseStatementAsync(this.r8q_1.n8n_1, tmp_0, ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda_0(this.s8q_1, this.t8q_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda).q79 = function (completion) { return new ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda(this.r8q_1, this.s8q_1, this.t8q_1, completion); }; function ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda_0(this$0, $clazzUid, $accountPersonUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.u8q($completion); }; l.$arity = 0; return l; } function ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda(this$0, $currentTime, $clazzUid, $accountPersonUid, resultContinuation) { this.d8r_1 = this$0; this.e8r_1 = $currentTime; this.f8r_1 = $clazzUid; this.g8r_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda).h8r = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda).r79 = function ($completion) { return this.h8r($completion); }; protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT Clazz.*, \n CoursePicture.*,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1000 \n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numStudents,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1001 \n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numTeachers,\n CourseTerminology.*,\n (SELECT EXISTS(\n SELECT 1\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n)\n ) AS activeUserIsStudent\n FROM Clazz \n LEFT JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = CAST(? AS BIGINT)\n WHERE Clazz.clazzUid = CAST(? AS BIGINT)', VOID, VOID, VOID, '\n SELECT Clazz.*, \n CoursePicture.*,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1000 \n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numStudents,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1001 \n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numTeachers,\n CourseTerminology.*,\n (SELECT EXISTS(\n SELECT 1\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n)\n ) AS activeUserIsStudent\n FROM Clazz \n LEFT JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = ?\n WHERE Clazz.clazzUid = ?\n', true); suspendResult = prepareAndUseStatementAsync(this.d8r_1.n8n_1, tmp_0, ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda_0(this.e8r_1, this.f8r_1, this.g8r_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda).q79 = function (completion) { return new ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda(this.d8r_1, this.e8r_1, this.f8r_1, this.g8r_1, completion); }; function ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda_0(this$0, $currentTime, $clazzUid, $accountPersonUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda(this$0, $currentTime, $clazzUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.h8r($completion); }; l.$arity = 0; return l; } function ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda(this$0, $clazzUid, resultContinuation) { this.q8r_1 = this$0; this.r8r_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda).s8r = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda).r79 = function ($completion) { return this.s8r($completion); }; protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT Clazz.clazzName\n FROM Clazz\n WHERE Clazz.clazzUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT Clazz.clazzName\n FROM Clazz\n WHERE Clazz.clazzUid = ?\n \n', true); suspendResult = prepareAndUseStatementAsync(this.q8r_1.n8n_1, tmp_0, ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda_0(this.r8r_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda).q79 = function (completion) { return new ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda(this.q8r_1, this.r8r_1, completion); }; function ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda(this$0, $clazzUid, resultContinuation); var l = function ($completion) { return i.s8r($completion); }; l.$arity = 0; return l; } function ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda(this$0, $clazzUid, resultContinuation) { this.b8s_1 = this$0; this.c8s_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda).d8s = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda).r79 = function ($completion) { return this.d8s($completion); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT Clazz.clazzName AS clazzName,\n CourseTerminology.*\n FROM Clazz\n LEFT JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n WHERE Clazz.clazzUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT Clazz.clazzName AS clazzName,\n CourseTerminology.*\n FROM Clazz\n LEFT JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n WHERE Clazz.clazzUid = ? \n \n', true); suspendResult = prepareAndUseStatementAsync(this.b8s_1.n8n_1, tmp_0, ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda_0(this.c8s_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda).q79 = function (completion) { return new ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda(this.b8s_1, this.c8s_1, completion); }; function ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda(this$0, $clazzUid, resultContinuation); var l = function ($completion) { return i.d8s($completion); }; l.$arity = 0; return l; } function ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda(this$0, $clazzUid, resultContinuation) { this.m8s_1 = this$0; this.n8s_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda).s8r = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda).r79 = function ($completion) { return this.s8r($completion); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT Clazz.clazzName AS clazzName\n FROM Clazz\n WHERE Clazz.clazzUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT Clazz.clazzName AS clazzName\n FROM Clazz\n WHERE Clazz.clazzUid = ? \n \n', true); suspendResult = prepareAndUseStatementAsync(this.m8s_1.n8n_1, tmp_0, ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda_0(this.n8s_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda).q79 = function (completion) { return new ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda(this.m8s_1, this.n8s_1, completion); }; function ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda(this$0, $clazzUid, resultContinuation); var l = function ($completion) { return i.s8r($completion); }; l.$arity = 0; return l; } function ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda($clazzUid, resultContinuation) { this.w8s_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda).p8m = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda).le = function (p1, $completion) { return this.p8m((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.x8s_1.x5i(1, this.w8s_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.x8s_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda).o5g = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda(this.w8s_1, completion); i.x8s_1 = _stmt; return i; }; function ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda_0($clazzUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.p8m(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$29(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.g8t_1 = _this__u8e3s4; this.h8t_1 = entity; } protoOf($insertAsyncCOROUTINE$29).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.g8t_1.o8n_1.y5h(this.h8t_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateAsyncCOROUTINE$30(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.q8t_1 = _this__u8e3s4; this.r8t_1 = entity; } protoOf($updateAsyncCOROUTINE$30).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.s8t_1 = {_v: 0}; this.t8t_1 = 'UPDATE Clazz SET clazzName = ?, clazzDesc = ?, attendanceAverage = ?, clazzHolidayUMCalendarUid = ?, clazzScheuleUMCalendarUid = ?, isClazzActive = ?, clazzLocationUid = ?, clazzStartTime = ?, clazzEndTime = ?, clazzFeatures = ?, clazzSchoolUid = ?, clazzEnrolmentPolicy = ?, clazzTerminologyUid = ?, clazzMasterChangeSeqNum = ?, clazzLocalChangeSeqNum = ?, clazzLastChangedBy = ?, clazzLct = ?, clazzTimeZone = ?, clazzStudentsPersonGroupUid = ?, clazzTeachersPersonGroupUid = ?, clazzPendingStudentsPersonGroupUid = ?, clazzParentsPersonGroupUid = ?, clazzCode = ?, clazzOwnerPersonUid = ? WHERE clazzUid = ?'; this.ld_1 = 1; suspendResult = prepareAndUseStatementAsync_0(this.q8t_1.n8n_1, this.t8t_1, VOID, ClazzDao_JdbcImpl$updateAsync$slambda_0(this.r8t_1, this.s8t_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return this.s8t_1._v; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ClazzDao_JdbcImpl(_db) { ClazzDao.call(this); this.n8n_1 = _db; var tmp = this; tmp.o8n_1 = new ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1(this); } protoOf(ClazzDao_JdbcImpl).o8f = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$29(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.o8f(entity instanceof Clazz ? entity : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl).t8d = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$30(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_JdbcImpl).p8d = function (code, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM Clazz WHERE clazzCode = ?', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.n8n_1, tmp, ClazzDao_JdbcImpl$findByClazzCode$slambda_0(code, null), $completion); }; protoOf(ClazzDao_JdbcImpl).q8d = function (clazzUid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM Clazz WHERE clazzUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM Clazz WHERE clazzUid = ?\n', true); return prepareAndUseStatementAsync(this.n8n_1, tmp, ClazzDao_JdbcImpl$findByUidAsync$slambda_0(clazzUid, null), $completion); }; protoOf(ClazzDao_JdbcImpl).r8d = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Clazz']; return doorFlow(this.n8n_1, tmp, ClazzDao_JdbcImpl$findByUidAsFlow$slambda_0(this, uid, null)); }; protoOf(ClazzDao_JdbcImpl).s8d = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Clazz.*, \n CoursePicture.*,\n HolidayCalendar.*, \n CourseTerminology.*\n FROM Clazz \n LEFT JOIN HolidayCalendar \n ON Clazz.clazzHolidayUMCalendarUid = HolidayCalendar.umCalendarUid\n\n LEFT JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n \n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = CAST(? AS BIGINT)\n WHERE Clazz.clazzUid = CAST(? AS BIGINT)', VOID, VOID, VOID, '\n SELECT Clazz.*, \n CoursePicture.*,\n HolidayCalendar.*, \n CourseTerminology.*\n FROM Clazz \n LEFT JOIN HolidayCalendar \n ON Clazz.clazzHolidayUMCalendarUid = HolidayCalendar.umCalendarUid\n\n LEFT JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n \n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = ?\n WHERE Clazz.clazzUid = ?\n', true); return prepareAndUseStatementAsync(this.n8n_1, tmp, ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda_0(uid, null), $completion); }; protoOf(ClazzDao_JdbcImpl).u8d = function (searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission) { return new ClazzDao_JdbcImpl$findClazzesWithPermission$1(this, currentTime, accountPersonUid, permission, searchQuery, excludeSelectedClazzList, filter, sortOrder); }; protoOf(ClazzDao_JdbcImpl).v8d = function (accountPersonUid, clazzUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Clazz', 'CoursePermission', 'ClazzEnrolment', 'SystemPermission']; return doorFlow(this.n8n_1, tmp, ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda_0(this, clazzUid, accountPersonUid, null)); }; protoOf(ClazzDao_JdbcImpl).w8d = function (clazzUid, currentTime, accountPersonUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseTerminology', 'Clazz', 'CoursePicture', 'ClazzEnrolment']; return doorFlow(this.n8n_1, tmp, ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda_0(this, currentTime, clazzUid, accountPersonUid, null)); }; protoOf(ClazzDao_JdbcImpl).x8d = function (clazzUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Clazz']; return doorFlow(this.n8n_1, tmp, ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda_0(this, clazzUid, null)); }; protoOf(ClazzDao_JdbcImpl).y8d = function (clazzUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseTerminology', 'Clazz']; return doorFlow(this.n8n_1, tmp, ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda_0(this, clazzUid, null)); }; protoOf(ClazzDao_JdbcImpl).z8d = function (clazzUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Clazz']; return doorFlow(this.n8n_1, tmp, ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda_0(this, clazzUid, null)); }; protoOf(ClazzDao_JdbcImpl).a8e = function (clazzUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Clazz.clazzTimeZone\n FROM Clazz\n WHERE Clazz.clazzUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT Clazz.clazzTimeZone\n FROM Clazz\n WHERE Clazz.clazzUid = ? \n \n', true); return prepareAndUseStatementAsync(this.n8n_1, tmp, ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda_0(clazzUid, null), $completion); }; function ClazzDao_Repo$findByUidAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$findClazzesWithPermission$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$getClazzWithDisplayDetails$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$getTitleByUidAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$getClazzNameAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$findByClazzCode$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$findByUidAsFlow$slambda(this$0, $uid, resultContinuation) { this.c8u_1 = this$0; this.d8u_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_Repo$findByUidAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_Repo$findByUidAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ClazzDao_Repo$findByUidAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.e8u_1 = this.c8u_1.n8u_1; var tmp_1 = this; tmp_1.f8u_1 = 'ClazzDao/findByUidAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.g8u_1 = this.c8u_1.p8u_1; var tmp_3 = this; tmp_3.h8u_1 = this.g8u_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.c8u_1.n8u_1.t39(), 'ClazzDao/findByUidAsFlow'); doorNodeIdHeader(this_0, this.c8u_1.n8u_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this.c8u_1.n8u_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.d8u_1)); tmp_4.i8u_1 = this_0; this.i8u_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.j8u_1 = this.h8u_1; var tmp_6 = this; tmp_6.k8u_1 = this.i8u_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.k8u_1, this.j8u_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.l8u_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.c8u_1.m8u_1, this.l8u_1, this.c8u_1.n8u_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', ClazzDao_Repo$findByUidAsFlow$slambda$lambda(this.e8u_1, this.f8u_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(ClazzDao_Repo$findByUidAsFlow$slambda).q79 = function (completion) { return new ClazzDao_Repo$findByUidAsFlow$slambda(this.c8u_1, this.d8u_1, completion); }; function ClazzDao_Repo$findByUidAsFlow$slambda_0(this$0, $uid, resultContinuation) { var i = new ClazzDao_Repo$findByUidAsFlow$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ClazzDao_Repo$findByUidWithHolidayCalendarAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) { this.b8v_1 = this$0; this.c8v_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_Repo$updateAsync$slambda).d8v = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_Repo$updateAsync$slambda).r79 = function ($completion) { return this.d8v($completion); }; protoOf(ClazzDao_Repo$updateAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.b8v_1.o8u_1.t8d(this.c8v_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzDao_Repo$updateAsync$slambda).q79 = function (completion) { return new ClazzDao_Repo$updateAsync$slambda(this.b8v_1, this.c8v_1, completion); }; function ClazzDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ClazzDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.d8v($completion); }; l.$arity = 0; return l; } function ClazzDao_Repo$findClazzesWithPermission$slambda(this$0, $searchQuery, $accountPersonUid, $excludeSelectedClazzList, $sortOrder, $filter, $currentTime, $permission, resultContinuation) { this.m8v_1 = this$0; this.n8v_1 = $searchQuery; this.o8v_1 = $accountPersonUid; this.p8v_1 = $excludeSelectedClazzList; this.q8v_1 = $sortOrder; this.r8v_1 = $filter; this.s8v_1 = $currentTime; this.t8v_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_Repo$findClazzesWithPermission$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_Repo$findClazzesWithPermission$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_Repo$findClazzesWithPermission$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.w8v_1 = this.m8v_1.n8u_1; var tmp_1 = this; tmp_1.x8v_1 = 'ClazzDao/findClazzesWithPermission'; this.md_1 = 4; var tmp_2 = this; tmp_2.y8v_1 = this.m8v_1.p8u_1; var tmp_3 = this; tmp_3.z8v_1 = this.y8v_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.m8v_1.n8u_1.t39(), 'ClazzDao/findClazzesWithPermission'); doorNodeIdHeader(this_0, this.m8v_1.n8u_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'searchQuery', this.m8v_1.n8u_1.t39().a67_1.b46(serializer_0(StringCompanionObject_instance), this.n8v_1)); parameter(this_0, 'accountPersonUid', this.m8v_1.n8u_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.o8v_1)); parameter(this_0, 'excludeSelectedClazzList', this.m8v_1.n8u_1.t39().a67_1.b46(ListSerializer(serializer(Companion_getInstance())), this.p8v_1)); parameter(this_0, 'sortOrder', this.m8v_1.n8u_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.q8v_1)); parameter(this_0, 'filter', this.m8v_1.n8u_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.r8v_1)); parameter(this_0, 'currentTime', this.m8v_1.n8u_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.s8v_1)); parameter(this_0, 'permission', this.m8v_1.n8u_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.t8v_1)); pagingSourceLoadParameters(this_0, this.m8v_1.n8u_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.u8v_1); tmp_4.a8w_1 = this_0; this.a8w_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.b8w_1 = this.z8v_1; var tmp_6 = this; tmp_6.c8w_1 = this.a8w_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.c8w_1, this.b8w_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.d8w_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.m8v_1.m8u_1, this.d8w_1, this.m8v_1.n8u_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.v8v_1 = endOfPaginationReached(this.d8w_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', ClazzDao_Repo$findClazzesWithPermission$slambda$lambda(this.w8v_1, this.x8v_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.v8v_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(ClazzDao_Repo$findClazzesWithPermission$slambda).g87 = function (_pagingParams, completion) { var i = new ClazzDao_Repo$findClazzesWithPermission$slambda(this.m8v_1, this.n8v_1, this.o8v_1, this.p8v_1, this.q8v_1, this.r8v_1, this.s8v_1, this.t8v_1, completion); i.u8v_1 = _pagingParams; return i; }; function ClazzDao_Repo$findClazzesWithPermission$slambda_0(this$0, $searchQuery, $accountPersonUid, $excludeSelectedClazzList, $sortOrder, $filter, $currentTime, $permission, resultContinuation) { var i = new ClazzDao_Repo$findClazzesWithPermission$slambda(this$0, $searchQuery, $accountPersonUid, $excludeSelectedClazzList, $sortOrder, $filter, $currentTime, $permission, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, resultContinuation) { this.m8w_1 = this$0; this.n8w_1 = $accountPersonUid; this.o8w_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.p8w_1 = this.m8w_1.n8u_1; var tmp_1 = this; tmp_1.q8w_1 = 'ClazzDao/clazzAndDetailPermissionsAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.r8w_1 = this.m8w_1.p8u_1; var tmp_3 = this; tmp_3.s8w_1 = this.r8w_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.m8w_1.n8u_1.t39(), 'ClazzDao/clazzAndDetailPermissionsAsFlow'); doorNodeIdHeader(this_0, this.m8w_1.n8u_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.m8w_1.n8u_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.n8w_1)); parameter(this_0, 'clazzUid', this.m8w_1.n8u_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.o8w_1)); tmp_4.t8w_1 = this_0; this.t8w_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.u8w_1 = this.s8w_1; var tmp_6 = this; tmp_6.v8w_1 = this.t8w_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.v8w_1, this.u8w_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.w8w_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.m8w_1.m8u_1, this.w8w_1, this.m8w_1.n8u_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda$lambda(this.p8w_1, this.q8w_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda).q79 = function (completion) { return new ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda(this.m8w_1, this.n8w_1, this.o8w_1, completion); }; function ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda_0(this$0, $accountPersonUid, $clazzUid, resultContinuation) { var i = new ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ClazzDao_Repo$getClazzWithDisplayDetails$slambda(this$0, $clazzUid, $currentTime, $accountPersonUid, resultContinuation) { this.f8x_1 = this$0; this.g8x_1 = $clazzUid; this.h8x_1 = $currentTime; this.i8x_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_Repo$getClazzWithDisplayDetails$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_Repo$getClazzWithDisplayDetails$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ClazzDao_Repo$getClazzWithDisplayDetails$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.j8x_1 = this.f8x_1.n8u_1; var tmp_1 = this; tmp_1.k8x_1 = 'ClazzDao/getClazzWithDisplayDetails'; this.md_1 = 3; var tmp_2 = this; tmp_2.l8x_1 = this.f8x_1.p8u_1; var tmp_3 = this; tmp_3.m8x_1 = this.l8x_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.f8x_1.n8u_1.t39(), 'ClazzDao/getClazzWithDisplayDetails'); doorNodeIdHeader(this_0, this.f8x_1.n8u_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.f8x_1.n8u_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.g8x_1)); parameter(this_0, 'currentTime', this.f8x_1.n8u_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.h8x_1)); parameter(this_0, 'accountPersonUid', this.f8x_1.n8u_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.i8x_1)); tmp_4.n8x_1 = this_0; this.n8x_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.o8x_1 = this.m8x_1; var tmp_6 = this; tmp_6.p8x_1 = this.n8x_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.p8x_1, this.o8x_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.q8x_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.f8x_1.m8u_1, this.q8x_1, this.f8x_1.n8u_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', ClazzDao_Repo$getClazzWithDisplayDetails$slambda$lambda(this.j8x_1, this.k8x_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(ClazzDao_Repo$getClazzWithDisplayDetails$slambda).q79 = function (completion) { return new ClazzDao_Repo$getClazzWithDisplayDetails$slambda(this.f8x_1, this.g8x_1, this.h8x_1, this.i8x_1, completion); }; function ClazzDao_Repo$getClazzWithDisplayDetails$slambda_0(this$0, $clazzUid, $currentTime, $accountPersonUid, resultContinuation) { var i = new ClazzDao_Repo$getClazzWithDisplayDetails$slambda(this$0, $clazzUid, $currentTime, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ClazzDao_Repo$getTitleByUidAsFlow$slambda(this$0, $clazzUid, resultContinuation) { this.z8x_1 = this$0; this.a8y_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_Repo$getTitleByUidAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_Repo$getTitleByUidAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ClazzDao_Repo$getTitleByUidAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.b8y_1 = this.z8x_1.n8u_1; var tmp_1 = this; tmp_1.c8y_1 = 'ClazzDao/getTitleByUidAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.d8y_1 = this.z8x_1.p8u_1; var tmp_3 = this; tmp_3.e8y_1 = this.d8y_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.z8x_1.n8u_1.t39(), 'ClazzDao/getTitleByUidAsFlow'); doorNodeIdHeader(this_0, this.z8x_1.n8u_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.z8x_1.n8u_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.a8y_1)); tmp_4.f8y_1 = this_0; this.f8y_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.g8y_1 = this.e8y_1; var tmp_6 = this; tmp_6.h8y_1 = this.f8y_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.h8y_1, this.g8y_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.i8y_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.z8x_1.m8u_1, this.i8y_1, this.z8x_1.n8u_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', ClazzDao_Repo$getTitleByUidAsFlow$slambda$lambda(this.b8y_1, this.c8y_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(ClazzDao_Repo$getTitleByUidAsFlow$slambda).q79 = function (completion) { return new ClazzDao_Repo$getTitleByUidAsFlow$slambda(this.z8x_1, this.a8y_1, completion); }; function ClazzDao_Repo$getTitleByUidAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) { var i = new ClazzDao_Repo$getTitleByUidAsFlow$slambda(this$0, $clazzUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda(this$0, $clazzUid, resultContinuation) { this.r8y_1 = this$0; this.s8y_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.t8y_1 = this.r8y_1.n8u_1; var tmp_1 = this; tmp_1.u8y_1 = 'ClazzDao/getClazzNameAndTerminologyAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.v8y_1 = this.r8y_1.p8u_1; var tmp_3 = this; tmp_3.w8y_1 = this.v8y_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.r8y_1.n8u_1.t39(), 'ClazzDao/getClazzNameAndTerminologyAsFlow'); doorNodeIdHeader(this_0, this.r8y_1.n8u_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.r8y_1.n8u_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.s8y_1)); tmp_4.x8y_1 = this_0; this.x8y_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.y8y_1 = this.w8y_1; var tmp_6 = this; tmp_6.z8y_1 = this.x8y_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.z8y_1, this.y8y_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.a8z_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.r8y_1.m8u_1, this.a8z_1, this.r8y_1.n8u_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda$lambda(this.t8y_1, this.u8y_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda).q79 = function (completion) { return new ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda(this.r8y_1, this.s8y_1, completion); }; function ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) { var i = new ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda(this$0, $clazzUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ClazzDao_Repo$getClazzNameAsFlow$slambda(this$0, $clazzUid, resultContinuation) { this.j8z_1 = this$0; this.k8z_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_Repo$getClazzNameAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_Repo$getClazzNameAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ClazzDao_Repo$getClazzNameAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.l8z_1 = this.j8z_1.n8u_1; var tmp_1 = this; tmp_1.m8z_1 = 'ClazzDao/getClazzNameAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.n8z_1 = this.j8z_1.p8u_1; var tmp_3 = this; tmp_3.o8z_1 = this.n8z_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.j8z_1.n8u_1.t39(), 'ClazzDao/getClazzNameAsFlow'); doorNodeIdHeader(this_0, this.j8z_1.n8u_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.j8z_1.n8u_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.k8z_1)); tmp_4.p8z_1 = this_0; this.p8z_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.q8z_1 = this.o8z_1; var tmp_6 = this; tmp_6.r8z_1 = this.p8z_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.r8z_1, this.q8z_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.s8z_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.j8z_1.m8u_1, this.s8z_1, this.j8z_1.n8u_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', ClazzDao_Repo$getClazzNameAsFlow$slambda$lambda(this.l8z_1, this.m8z_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(ClazzDao_Repo$getClazzNameAsFlow$slambda).q79 = function (completion) { return new ClazzDao_Repo$getClazzNameAsFlow$slambda(this.j8z_1, this.k8z_1, completion); }; function ClazzDao_Repo$getClazzNameAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) { var i = new ClazzDao_Repo$getClazzNameAsFlow$slambda(this$0, $clazzUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ClazzDao_Repo$getClazzTimeZoneByClazzUidAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.b90_1 = this$0; this.c90_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(ClazzDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.b90_1.o8u_1.insertAsync(this.c90_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzDao_Repo$insertAsync$slambda).q79 = function (completion) { return new ClazzDao_Repo$insertAsync$slambda(this.b90_1, this.c90_1, completion); }; function ClazzDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ClazzDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $findByClazzCodeCOROUTINE$32(_this__u8e3s4, code, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.l90_1 = _this__u8e3s4; this.m90_1 = code; } protoOf($findByClazzCodeCOROUTINE$32).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.n90_1 = this.l90_1.n8u_1; var tmp_1 = this; tmp_1.o90_1 = 'ClazzDao/findByClazzCode'; this.md_1 = 3; this.q90_1 = this.l90_1.n8u_1.t39().a67_1; this.r90_1 = get_nullable(Companion_getInstance_51().x4r()); var tmp_2 = this; tmp_2.s90_1 = this.l90_1.n8u_1.t39().z66_1; var tmp_3 = this; tmp_3.t90_1 = this.s90_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.l90_1.n8u_1.t39(), 'ClazzDao/findByClazzCode'); doorNodeIdHeader(this_0, this.l90_1.n8u_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'code', this.l90_1.n8u_1.t39().a67_1.b46(serializer_0(StringCompanionObject_instance), this.m90_1)); tmp_4.u90_1 = this_0; this.u90_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.v90_1 = this.t90_1; var tmp_6 = this; tmp_6.w90_1 = this.u90_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.w90_1, this.v90_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.x90_1 = suspendResult; this.ld_1 = 2; suspendResult = bodyAsText(this.x90_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.y90_1 = suspendResult; this.p90_1 = this.q90_1.c46(this.r90_1, this.y90_1); this.md_1 = 6; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.z90_1 = this.od_1; Napier_getInstance().e5f(this.z90_1, 'DoorLog', ClazzDao_Repo$findByClazzCode$lambda(this.n90_1, this.o90_1)); this.ld_1 = 4; suspendResult = this.l90_1.o8u_1.p8d(this.m90_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { throw this.od_1; } case 4: this.p90_1 = suspendResult; this.ld_1 = 5; continue $sm; case 5: this.md_1 = 6; return this.p90_1; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $findByUidAsyncCOROUTINE$34(_this__u8e3s4, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.p91_1 = _this__u8e3s4; this.q91_1 = clazzUid; } protoOf($findByUidAsyncCOROUTINE$34).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.p91_1.o8u_1.q8d(this.q91_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $findByUidWithHolidayCalendarAsyncCOROUTINE$36(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.z91_1 = _this__u8e3s4; this.a92_1 = uid; } protoOf($findByUidWithHolidayCalendarAsyncCOROUTINE$36).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.b92_1 = this.z91_1.n8u_1; var tmp_1 = this; tmp_1.c92_1 = 'ClazzDao/findByUidWithHolidayCalendarAsync'; this.md_1 = 3; var tmp_2 = this; tmp_2.d92_1 = this.z91_1.p8u_1; var tmp_3 = this; tmp_3.e92_1 = this.d92_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.z91_1.n8u_1.t39(), 'ClazzDao/findByUidWithHolidayCalendarAsync'); doorNodeIdHeader(this_0, this.z91_1.n8u_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this.z91_1.n8u_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.a92_1)); tmp_4.f92_1 = this_0; this.f92_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.g92_1 = this.e92_1; var tmp_6 = this; tmp_6.h92_1 = this.f92_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.h92_1, this.g92_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.i92_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.z91_1.m8u_1, this.i92_1, this.z91_1.n8u_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.j92_1 = this.od_1; Napier_getInstance().e5f(this.j92_1, 'DoorLog', ClazzDao_Repo$findByUidWithHolidayCalendarAsync$lambda(this.b92_1, this.c92_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.z91_1.o8u_1.s8d(this.a92_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateAsyncCOROUTINE$37(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.s92_1 = _this__u8e3s4; this.t92_1 = entity; } protoOf($updateAsyncCOROUTINE$37).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.s92_1.n8u_1, 'Clazz', ClazzDao_Repo$updateAsync$slambda_0(this.s92_1, this.t92_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $getClazzTimeZoneByClazzUidAsyncCOROUTINE$39(_this__u8e3s4, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.c93_1 = _this__u8e3s4; this.d93_1 = clazzUid; } protoOf($getClazzTimeZoneByClazzUidAsyncCOROUTINE$39).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.e93_1 = this.c93_1.n8u_1; var tmp_1 = this; tmp_1.f93_1 = 'ClazzDao/getClazzTimeZoneByClazzUidAsync'; this.md_1 = 3; this.h93_1 = this.c93_1.n8u_1.t39().a67_1; this.i93_1 = get_nullable(serializer_0(StringCompanionObject_instance)); var tmp_2 = this; tmp_2.j93_1 = this.c93_1.n8u_1.t39().z66_1; var tmp_3 = this; tmp_3.k93_1 = this.j93_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.c93_1.n8u_1.t39(), 'ClazzDao/getClazzTimeZoneByClazzUidAsync'); doorNodeIdHeader(this_0, this.c93_1.n8u_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.c93_1.n8u_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.d93_1)); tmp_4.l93_1 = this_0; this.l93_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.m93_1 = this.k93_1; var tmp_6 = this; tmp_6.n93_1 = this.l93_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.n93_1, this.m93_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.o93_1 = suspendResult; this.ld_1 = 2; suspendResult = bodyAsText(this.o93_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.p93_1 = suspendResult; this.g93_1 = this.h93_1.c46(this.i93_1, this.p93_1); this.md_1 = 6; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.q93_1 = this.od_1; Napier_getInstance().e5f(this.q93_1, 'DoorLog', ClazzDao_Repo$getClazzTimeZoneByClazzUidAsync$lambda(this.e93_1, this.f93_1)); this.ld_1 = 4; suspendResult = this.c93_1.o8u_1.a8e(this.d93_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { throw this.od_1; } case 4: this.g93_1 = suspendResult; this.ld_1 = 5; continue $sm; case 5: this.md_1 = 6; return this.g93_1; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$42(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.z93_1 = _this__u8e3s4; this.a94_1 = entity; } protoOf($insertAsyncCOROUTINE$42).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.z93_1.n8u_1, 'Clazz', ClazzDao_Repo$insertAsync$slambda_0(this.z93_1, this.a94_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ClazzDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ClazzDao.call(this); this.m8u_1 = _db; this.n8u_1 = _repo; this.o8u_1 = _dao; this.p8u_1 = _httpClient; this.q8u_1 = _clientId; this.r8u_1 = _endpoint; this.s8u_1 = new RepoDaoFlowHelper(this.n8u_1); } protoOf(ClazzDao_Repo).p8d = function (code, $completion) { var tmp = new $findByClazzCodeCOROUTINE$32(this, code, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_Repo).q8d = function (clazzUid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$34(this, clazzUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_Repo).r8d = function (uid) { var tmp = this.o8u_1.r8d(uid); return this.s8u_1.r68(tmp, ClazzDao_Repo$findByUidAsFlow$slambda_0(this, uid, null)); }; protoOf(ClazzDao_Repo).s8d = function (uid, $completion) { var tmp = new $findByUidWithHolidayCalendarAsyncCOROUTINE$36(this, uid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_Repo).t8d = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$37(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_Repo).u8d = function (searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission) { var tmp = this.o8u_1.u8d(searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission); return new DoorRepositoryReplicatePullPagingSource(this.n8u_1, 'ClazzDao/findClazzesWithPermission', tmp, ClazzDao_Repo$findClazzesWithPermission$slambda_0(this, searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission, null)); }; protoOf(ClazzDao_Repo).v8d = function (accountPersonUid, clazzUid) { var tmp = this.o8u_1.v8d(accountPersonUid, clazzUid); return this.s8u_1.r68(tmp, ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda_0(this, accountPersonUid, clazzUid, null)); }; protoOf(ClazzDao_Repo).w8d = function (clazzUid, currentTime, accountPersonUid) { var tmp = this.o8u_1.w8d(clazzUid, currentTime, accountPersonUid); return this.s8u_1.r68(tmp, ClazzDao_Repo$getClazzWithDisplayDetails$slambda_0(this, clazzUid, currentTime, accountPersonUid, null)); }; protoOf(ClazzDao_Repo).x8d = function (clazzUid) { var tmp = this.o8u_1.x8d(clazzUid); return this.s8u_1.r68(tmp, ClazzDao_Repo$getTitleByUidAsFlow$slambda_0(this, clazzUid, null)); }; protoOf(ClazzDao_Repo).y8d = function (clazzUid) { var tmp = this.o8u_1.y8d(clazzUid); return this.s8u_1.r68(tmp, ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda_0(this, clazzUid, null)); }; protoOf(ClazzDao_Repo).z8d = function (clazzUid) { var tmp = this.o8u_1.z8d(clazzUid); return this.s8u_1.r68(tmp, ClazzDao_Repo$getClazzNameAsFlow$slambda_0(this, clazzUid, null)); }; protoOf(ClazzDao_Repo).a8e = function (clazzUid, $completion) { var tmp = new $getClazzTimeZoneByClazzUidAsyncCOROUTINE$39(this, clazzUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_Repo).o8f = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$42(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzDao_Repo).insertAsync = function (entity, $completion) { return this.o8f(entity instanceof Clazz ? entity : THROW_CCE(), $completion); }; function ClazzEnrolmentDao() { } function $insertAsyncCOROUTINE$43(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.r94_1 = _this__u8e3s4; this.s94_1 = entity; } protoOf($insertAsyncCOROUTINE$43).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.t94_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.r94_1.v94_1)); if (this.s94_1.z8i_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.t94_1.r63(65, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.u94_1 = suspendResult; this.s94_1.z8i_1 = this.u94_1; this.ld_1 = 2; continue $sm; case 2: this.s94_1.m8j_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.r94_1.w94_1.insertAsync(this.s94_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.s94_1.z8i_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ClazzEnrolmentDao_DoorWrapper(_db, _dao) { ClazzEnrolmentDao.call(this); this.v94_1 = _db; this.w94_1 = _dao; } protoOf(ClazzEnrolmentDao_DoorWrapper).b94 = function (personUid, clazzUid) { return this.w94_1.b94(personUid, clazzUid); }; protoOf(ClazzEnrolmentDao_DoorWrapper).c94 = function (enrolmentUid, $completion) { return this.w94_1.c94(enrolmentUid, $completion); }; protoOf(ClazzEnrolmentDao_DoorWrapper).d94 = function (entity, $completion) { entity.m8j_1 = systemTimeInMillis(); return this.w94_1.d94(entity, $completion); }; protoOf(ClazzEnrolmentDao_DoorWrapper).e94 = function (accountPersonUid, otherPersonUid) { return this.w94_1.e94(accountPersonUid, otherPersonUid); }; protoOf(ClazzEnrolmentDao_DoorWrapper).f94 = function (clazzUid, accountPersonUid, time, $completion) { return this.w94_1.f94(clazzUid, accountPersonUid, time, $completion); }; protoOf(ClazzEnrolmentDao_DoorWrapper).g94 = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission) { return this.w94_1.g94(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission); }; protoOf(ClazzEnrolmentDao_DoorWrapper).h94 = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime) { return this.w94_1.h94(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime); }; protoOf(ClazzEnrolmentDao_DoorWrapper).i94 = function (personUid, clazzUid, $completion) { return this.w94_1.i94(personUid, clazzUid, $completion); }; protoOf(ClazzEnrolmentDao_DoorWrapper).x94 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$43(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.x94(entity instanceof ClazzEnrolment ? entity : THROW_CCE(), $completion); }; function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda$lambda(_result) { return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_timeZone = $_result.b10('timeZone'); var _tmp_clazzEnrolmentUid = $_result.b5o('clazzEnrolmentUid'); var _tmp_clazzEnrolmentPersonUid = $_result.b5o('clazzEnrolmentPersonUid'); var _tmp_clazzEnrolmentClazzUid = $_result.b5o('clazzEnrolmentClazzUid'); var _tmp_clazzEnrolmentDateJoined = $_result.b5o('clazzEnrolmentDateJoined'); var _tmp_clazzEnrolmentDateLeft = $_result.b5o('clazzEnrolmentDateLeft'); var _tmp_clazzEnrolmentRole = $_result.a5o('clazzEnrolmentRole'); var _tmp_clazzEnrolmentAttendancePercentage = $_result.o67('clazzEnrolmentAttendancePercentage'); var _tmp_clazzEnrolmentActive = $_result.m67('clazzEnrolmentActive'); var _tmp_clazzEnrolmentLeavingReasonUid = $_result.b5o('clazzEnrolmentLeavingReasonUid'); var _tmp_clazzEnrolmentOutcome = $_result.a5o('clazzEnrolmentOutcome'); var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.b5o('clazzEnrolmentLocalChangeSeqNum'); var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.b5o('clazzEnrolmentMasterChangeSeqNum'); var _tmp_clazzEnrolmentLastChangedBy = $_result.a5o('clazzEnrolmentLastChangedBy'); var _tmp_clazzEnrolmentLct = $_result.b5o('clazzEnrolmentLct'); var _tmp_LeavingReason_nullCount = 0; var _tmp_leavingReasonUid = $_result.b5o('leavingReasonUid'); var tmp; if ($_result.t68()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_leavingReasonTitle = $_result.b10('leavingReasonTitle'); var tmp_0; if ($_result.t68()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_leavingReasonMCSN = $_result.b5o('leavingReasonMCSN'); var tmp_1; if ($_result.t68()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_leavingReasonCSN = $_result.b5o('leavingReasonCSN'); var tmp_2; if ($_result.t68()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_leavingReasonLCB = $_result.a5o('leavingReasonLCB'); var tmp_3; if ($_result.t68()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_leavingReasonLct = $_result.b5o('leavingReasonLct'); var tmp_4; if ($_result.t68()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_LeavingReason_isAllNull = _tmp_LeavingReason_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new ClazzEnrolmentWithLeavingReason(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllEnrolmentsByPersonAndClazzUid.....' call this_0.n95_1 = _tmp_timeZone; this_0.z8i_1 = _tmp_clazzEnrolmentUid; this_0.a8j_1 = _tmp_clazzEnrolmentPersonUid; this_0.b8j_1 = _tmp_clazzEnrolmentClazzUid; this_0.c8j_1 = _tmp_clazzEnrolmentDateJoined; this_0.d8j_1 = _tmp_clazzEnrolmentDateLeft; this_0.e8j_1 = _tmp_clazzEnrolmentRole; this_0.f8j_1 = _tmp_clazzEnrolmentAttendancePercentage; this_0.g8j_1 = _tmp_clazzEnrolmentActive; this_0.h8j_1 = _tmp_clazzEnrolmentLeavingReasonUid; this_0.i8j_1 = _tmp_clazzEnrolmentOutcome; this_0.j8j_1 = _tmp_clazzEnrolmentLocalChangeSeqNum; this_0.k8j_1 = _tmp_clazzEnrolmentMasterChangeSeqNum; this_0.l8j_1 = _tmp_clazzEnrolmentLastChangedBy; this_0.m8j_1 = _tmp_clazzEnrolmentLct; if (!_tmp_LeavingReason_isAllNull) { var tmp_5 = this_0; // Inline function 'kotlin.apply' call var this_1 = new LeavingReason(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllEnrolmentsByPersonAndClazzUid......' call this_1.o95_1 = _tmp_leavingReasonUid; this_1.p95_1 = _tmp_leavingReasonTitle; this_1.q95_1 = _tmp_leavingReasonMCSN; this_1.r95_1 = _tmp_leavingReasonCSN; this_1.s95_1 = _tmp_leavingReasonLCB; this_1.t95_1 = _tmp_leavingReasonLct; tmp_5.m95_1 = this_1; } return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda($personUid, $clazzUid, resultContinuation) { this.c96_1 = $personUid; this.d96_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda).f96 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda).le = function (p1, $completion) { return this.f96((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.e96_1.x5i(1, this.c96_1); this.e96_1.x5i(2, this.d96_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.e96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda).o5g = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda(this.c96_1, this.d96_1, completion); i.e96_1 = _stmt; return i; }; function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda_0($personUid, $clazzUid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda($personUid, $clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.f96(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda$lambda$lambda($_result) { return function (it) { var _tmp_timeZone = $_result.b10('timeZone'); var _tmp_clazzEnrolmentUid = $_result.b5o('clazzEnrolmentUid'); var _tmp_clazzEnrolmentPersonUid = $_result.b5o('clazzEnrolmentPersonUid'); var _tmp_clazzEnrolmentClazzUid = $_result.b5o('clazzEnrolmentClazzUid'); var _tmp_clazzEnrolmentDateJoined = $_result.b5o('clazzEnrolmentDateJoined'); var _tmp_clazzEnrolmentDateLeft = $_result.b5o('clazzEnrolmentDateLeft'); var _tmp_clazzEnrolmentRole = $_result.a5o('clazzEnrolmentRole'); var _tmp_clazzEnrolmentAttendancePercentage = $_result.o67('clazzEnrolmentAttendancePercentage'); var _tmp_clazzEnrolmentActive = $_result.m67('clazzEnrolmentActive'); var _tmp_clazzEnrolmentLeavingReasonUid = $_result.b5o('clazzEnrolmentLeavingReasonUid'); var _tmp_clazzEnrolmentOutcome = $_result.a5o('clazzEnrolmentOutcome'); var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.b5o('clazzEnrolmentLocalChangeSeqNum'); var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.b5o('clazzEnrolmentMasterChangeSeqNum'); var _tmp_clazzEnrolmentLastChangedBy = $_result.a5o('clazzEnrolmentLastChangedBy'); var _tmp_clazzEnrolmentLct = $_result.b5o('clazzEnrolmentLct'); var _tmp_LeavingReason_nullCount = 0; var _tmp_leavingReasonUid = $_result.b5o('leavingReasonUid'); var tmp; if ($_result.t68()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_leavingReasonTitle = $_result.b10('leavingReasonTitle'); var tmp_0; if ($_result.t68()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_leavingReasonMCSN = $_result.b5o('leavingReasonMCSN'); var tmp_1; if ($_result.t68()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_leavingReasonCSN = $_result.b5o('leavingReasonCSN'); var tmp_2; if ($_result.t68()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_leavingReasonLCB = $_result.a5o('leavingReasonLCB'); var tmp_3; if ($_result.t68()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_leavingReasonLct = $_result.b5o('leavingReasonLct'); var tmp_4; if ($_result.t68()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_LeavingReason_isAllNull = _tmp_LeavingReason_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new ClazzEnrolmentWithLeavingReason(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findEnrolmentWithLeavingReason....' call this_0.n95_1 = _tmp_timeZone; this_0.z8i_1 = _tmp_clazzEnrolmentUid; this_0.a8j_1 = _tmp_clazzEnrolmentPersonUid; this_0.b8j_1 = _tmp_clazzEnrolmentClazzUid; this_0.c8j_1 = _tmp_clazzEnrolmentDateJoined; this_0.d8j_1 = _tmp_clazzEnrolmentDateLeft; this_0.e8j_1 = _tmp_clazzEnrolmentRole; this_0.f8j_1 = _tmp_clazzEnrolmentAttendancePercentage; this_0.g8j_1 = _tmp_clazzEnrolmentActive; this_0.h8j_1 = _tmp_clazzEnrolmentLeavingReasonUid; this_0.i8j_1 = _tmp_clazzEnrolmentOutcome; this_0.j8j_1 = _tmp_clazzEnrolmentLocalChangeSeqNum; this_0.k8j_1 = _tmp_clazzEnrolmentMasterChangeSeqNum; this_0.l8j_1 = _tmp_clazzEnrolmentLastChangedBy; this_0.m8j_1 = _tmp_clazzEnrolmentLct; if (!_tmp_LeavingReason_isAllNull) { var tmp_5 = this_0; // Inline function 'kotlin.apply' call var this_1 = new LeavingReason(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findEnrolmentWithLeavingReason.....' call this_1.o95_1 = _tmp_leavingReasonUid; this_1.p95_1 = _tmp_leavingReasonTitle; this_1.q95_1 = _tmp_leavingReasonMCSN; this_1.r95_1 = _tmp_leavingReasonCSN; this_1.s95_1 = _tmp_leavingReasonLCB; this_1.t95_1 = _tmp_leavingReasonLct; tmp_5.m95_1 = this_1; } return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda$lambda(_result) { return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ClazzEnrolment_nullCount = 0; var _tmp_clazzEnrolmentUid = $_result.b5o('clazzEnrolmentUid'); var tmp; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_clazzEnrolmentPersonUid = $_result.b5o('clazzEnrolmentPersonUid'); var tmp_0; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_clazzEnrolmentClazzUid = $_result.b5o('clazzEnrolmentClazzUid'); var tmp_1; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_clazzEnrolmentDateJoined = $_result.b5o('clazzEnrolmentDateJoined'); var tmp_2; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_clazzEnrolmentDateLeft = $_result.b5o('clazzEnrolmentDateLeft'); var tmp_3; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_clazzEnrolmentRole = $_result.a5o('clazzEnrolmentRole'); var tmp_4; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_clazzEnrolmentAttendancePercentage = $_result.o67('clazzEnrolmentAttendancePercentage'); var tmp_5; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_clazzEnrolmentActive = $_result.m67('clazzEnrolmentActive'); var tmp_6; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_clazzEnrolmentLeavingReasonUid = $_result.b5o('clazzEnrolmentLeavingReasonUid'); var tmp_7; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_clazzEnrolmentOutcome = $_result.a5o('clazzEnrolmentOutcome'); var tmp_8; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.b5o('clazzEnrolmentLocalChangeSeqNum'); var tmp_9; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.b5o('clazzEnrolmentMasterChangeSeqNum'); var tmp_10; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_clazzEnrolmentLastChangedBy = $_result.a5o('clazzEnrolmentLastChangedBy'); var tmp_11; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_clazzEnrolmentLct = $_result.b5o('clazzEnrolmentLct'); var tmp_12; if ($_result.t68()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_ClazzEnrolment_isAllNull = _tmp_ClazzEnrolment_nullCount === 14; var _tmp_Clazz_nullCount = 0; var _tmp_clazzUid = $_result.b5o('clazzUid'); var tmp_13; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_clazzName = $_result.b10('clazzName'); var tmp_14; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_clazzDesc = $_result.b10('clazzDesc'); var tmp_15; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_attendanceAverage = $_result.o67('attendanceAverage'); var tmp_16; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_clazzHolidayUMCalendarUid = $_result.b5o('clazzHolidayUMCalendarUid'); var tmp_17; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_clazzScheuleUMCalendarUid = $_result.b5o('clazzScheuleUMCalendarUid'); var tmp_18; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_isClazzActive = $_result.m67('isClazzActive'); var tmp_19; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_clazzLocationUid = $_result.b5o('clazzLocationUid'); var tmp_20; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_clazzStartTime = $_result.b5o('clazzStartTime'); var tmp_21; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_clazzEndTime = $_result.b5o('clazzEndTime'); var tmp_22; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_clazzFeatures = $_result.b5o('clazzFeatures'); var tmp_23; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_clazzSchoolUid = $_result.b5o('clazzSchoolUid'); var tmp_24; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_clazzEnrolmentPolicy = $_result.a5o('clazzEnrolmentPolicy'); var tmp_25; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_clazzTerminologyUid = $_result.b5o('clazzTerminologyUid'); var tmp_26; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_clazzMasterChangeSeqNum = $_result.b5o('clazzMasterChangeSeqNum'); var tmp_27; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_clazzLocalChangeSeqNum = $_result.b5o('clazzLocalChangeSeqNum'); var tmp_28; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_clazzLastChangedBy = $_result.a5o('clazzLastChangedBy'); var tmp_29; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_clazzLct = $_result.b5o('clazzLct'); var tmp_30; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_30 = Unit_instance; } var _tmp_clazzTimeZone = $_result.b10('clazzTimeZone'); var tmp_31; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_31 = Unit_instance; } var _tmp_clazzStudentsPersonGroupUid = $_result.b5o('clazzStudentsPersonGroupUid'); var tmp_32; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_32 = Unit_instance; } var _tmp_clazzTeachersPersonGroupUid = $_result.b5o('clazzTeachersPersonGroupUid'); var tmp_33; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_33 = Unit_instance; } var _tmp_clazzPendingStudentsPersonGroupUid = $_result.b5o('clazzPendingStudentsPersonGroupUid'); var tmp_34; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_34 = Unit_instance; } var _tmp_clazzParentsPersonGroupUid = $_result.b5o('clazzParentsPersonGroupUid'); var tmp_35; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_35 = Unit_instance; } var _tmp_clazzCode = $_result.b10('clazzCode'); var tmp_36; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_36 = Unit_instance; } var _tmp_clazzOwnerPersonUid = $_result.b5o('clazzOwnerPersonUid'); var tmp_37; if ($_result.t68()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_37 = Unit_instance; } var _tmp_Clazz_isAllNull = _tmp_Clazz_nullCount === 25; var _tmp_CourseTerminology_nullCount = 0; var _tmp_ctUid = $_result.b5o('ctUid'); var tmp_38; if ($_result.t68()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_38 = Unit_instance; } var _tmp_ctTitle = $_result.b10('ctTitle'); var tmp_39; if ($_result.t68()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_39 = Unit_instance; } var _tmp_ctTerminology = $_result.b10('ctTerminology'); var tmp_40; if ($_result.t68()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_40 = Unit_instance; } var _tmp_ctLct = $_result.b5o('ctLct'); var tmp_41; if ($_result.t68()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_41 = Unit_instance; } var _tmp_CourseTerminology_isAllNull = _tmp_CourseTerminology_nullCount === 4; // Inline function 'kotlin.apply' call var this_0 = new ClazzEnrolmentAndPersonDetailDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllClazzesByPersonWithClazz.....' call if (!_tmp_ClazzEnrolment_isAllNull) { var tmp_42 = this_0; // Inline function 'kotlin.apply' call var this_1 = new ClazzEnrolment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllClazzesByPersonWithClazz......' call this_1.z8i_1 = _tmp_clazzEnrolmentUid; this_1.a8j_1 = _tmp_clazzEnrolmentPersonUid; this_1.b8j_1 = _tmp_clazzEnrolmentClazzUid; this_1.c8j_1 = _tmp_clazzEnrolmentDateJoined; this_1.d8j_1 = _tmp_clazzEnrolmentDateLeft; this_1.e8j_1 = _tmp_clazzEnrolmentRole; this_1.f8j_1 = _tmp_clazzEnrolmentAttendancePercentage; this_1.g8j_1 = _tmp_clazzEnrolmentActive; this_1.h8j_1 = _tmp_clazzEnrolmentLeavingReasonUid; this_1.i8j_1 = _tmp_clazzEnrolmentOutcome; this_1.j8j_1 = _tmp_clazzEnrolmentLocalChangeSeqNum; this_1.k8j_1 = _tmp_clazzEnrolmentMasterChangeSeqNum; this_1.l8j_1 = _tmp_clazzEnrolmentLastChangedBy; this_1.m8j_1 = _tmp_clazzEnrolmentLct; tmp_42.g96_1 = this_1; } if (!_tmp_Clazz_isAllNull) { var tmp_43 = this_0; // Inline function 'kotlin.apply' call var this_2 = new Clazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllClazzesByPersonWithClazz......' call this_2.p8e_1 = _tmp_clazzUid; this_2.q8e_1 = _tmp_clazzName; this_2.r8e_1 = _tmp_clazzDesc; this_2.s8e_1 = _tmp_attendanceAverage; this_2.t8e_1 = _tmp_clazzHolidayUMCalendarUid; this_2.u8e_1 = _tmp_clazzScheuleUMCalendarUid; this_2.v8e_1 = _tmp_isClazzActive; this_2.w8e_1 = _tmp_clazzLocationUid; this_2.x8e_1 = _tmp_clazzStartTime; this_2.y8e_1 = _tmp_clazzEndTime; this_2.z8e_1 = _tmp_clazzFeatures; this_2.a8f_1 = _tmp_clazzSchoolUid; this_2.b8f_1 = _tmp_clazzEnrolmentPolicy; this_2.c8f_1 = _tmp_clazzTerminologyUid; this_2.d8f_1 = _tmp_clazzMasterChangeSeqNum; this_2.e8f_1 = _tmp_clazzLocalChangeSeqNum; this_2.f8f_1 = _tmp_clazzLastChangedBy; this_2.g8f_1 = _tmp_clazzLct; this_2.h8f_1 = _tmp_clazzTimeZone; this_2.i8f_1 = _tmp_clazzStudentsPersonGroupUid; this_2.j8f_1 = _tmp_clazzTeachersPersonGroupUid; this_2.k8f_1 = _tmp_clazzPendingStudentsPersonGroupUid; this_2.l8f_1 = _tmp_clazzParentsPersonGroupUid; this_2.m8f_1 = _tmp_clazzCode; this_2.n8f_1 = _tmp_clazzOwnerPersonUid; tmp_43.h96_1 = this_2; } if (!_tmp_CourseTerminology_isAllNull) { var tmp_44 = this_0; // Inline function 'kotlin.apply' call var this_3 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllClazzesByPersonWithClazz......' call this_3.k8h_1 = _tmp_ctUid; this_3.l8h_1 = _tmp_ctTitle; this_3.m8h_1 = _tmp_ctTerminology; this_3.n8h_1 = _tmp_ctLct; tmp_44.i96_1 = this_3; } return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda($accountPersonUid, $otherPersonUid, resultContinuation) { this.r96_1 = $accountPersonUid; this.s96_1 = $otherPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda).u96 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda).le = function (p1, $completion) { return this.u96((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.t96_1.x5i(1, this.r96_1); this.t96_1.x5i(2, this.r96_1); this.t96_1.x5i(3, this.s96_1); this.t96_1.x5i(4, this.r96_1); this.t96_1.x5i(5, this.s96_1); this.t96_1.x5i(6, this.s96_1); this.t96_1.x5i(7, this.r96_1); this.t96_1.x5i(8, this.s96_1); this.t96_1.x5i(9, this.r96_1); this.t96_1.x5i(10, this.r96_1); this.t96_1.x5i(11, this.s96_1); this.t96_1.x5i(12, this.r96_1); this.t96_1.x5i(13, this.s96_1); this.t96_1.x5i(14, this.r96_1); this.t96_1.x5i(15, this.r96_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.t96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda).o5g = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda(this.r96_1, this.s96_1, completion); i.t96_1 = _stmt; return i; }; function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda_0($accountPersonUid, $otherPersonUid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda($accountPersonUid, $otherPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.u96(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda$lambda(_result) { return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzEnrolmentUid = $_result.b5o('clazzEnrolmentUid'); var _tmp_clazzEnrolmentPersonUid = $_result.b5o('clazzEnrolmentPersonUid'); var _tmp_clazzEnrolmentClazzUid = $_result.b5o('clazzEnrolmentClazzUid'); var _tmp_clazzEnrolmentDateJoined = $_result.b5o('clazzEnrolmentDateJoined'); var _tmp_clazzEnrolmentDateLeft = $_result.b5o('clazzEnrolmentDateLeft'); var _tmp_clazzEnrolmentRole = $_result.a5o('clazzEnrolmentRole'); var _tmp_clazzEnrolmentAttendancePercentage = $_result.o67('clazzEnrolmentAttendancePercentage'); var _tmp_clazzEnrolmentActive = $_result.m67('clazzEnrolmentActive'); var _tmp_clazzEnrolmentLeavingReasonUid = $_result.b5o('clazzEnrolmentLeavingReasonUid'); var _tmp_clazzEnrolmentOutcome = $_result.a5o('clazzEnrolmentOutcome'); var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.b5o('clazzEnrolmentLocalChangeSeqNum'); var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.b5o('clazzEnrolmentMasterChangeSeqNum'); var _tmp_clazzEnrolmentLastChangedBy = $_result.a5o('clazzEnrolmentLastChangedBy'); var _tmp_clazzEnrolmentLct = $_result.b5o('clazzEnrolmentLct'); // Inline function 'kotlin.apply' call var this_0 = new ClazzEnrolment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.getAllEnrolmentsAtTimeByClazzAndPerson....' call this_0.z8i_1 = _tmp_clazzEnrolmentUid; this_0.a8j_1 = _tmp_clazzEnrolmentPersonUid; this_0.b8j_1 = _tmp_clazzEnrolmentClazzUid; this_0.c8j_1 = _tmp_clazzEnrolmentDateJoined; this_0.d8j_1 = _tmp_clazzEnrolmentDateLeft; this_0.e8j_1 = _tmp_clazzEnrolmentRole; this_0.f8j_1 = _tmp_clazzEnrolmentAttendancePercentage; this_0.g8j_1 = _tmp_clazzEnrolmentActive; this_0.h8j_1 = _tmp_clazzEnrolmentLeavingReasonUid; this_0.i8j_1 = _tmp_clazzEnrolmentOutcome; this_0.j8j_1 = _tmp_clazzEnrolmentLocalChangeSeqNum; this_0.k8j_1 = _tmp_clazzEnrolmentMasterChangeSeqNum; this_0.l8j_1 = _tmp_clazzEnrolmentLastChangedBy; this_0.m8j_1 = _tmp_clazzEnrolmentLct; return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_earliestJoinDate = $_result.b5o('earliestJoinDate'); var _tmp_latestDateLeft = $_result.b5o('latestDateLeft'); var _tmp_enrolmentRole = $_result.a5o('enrolmentRole'); var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.b5o('personUid'); var tmp; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_username = $_result.b10('username'); var tmp_0; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_firstNames = $_result.b10('firstNames'); var tmp_1; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_lastName = $_result.b10('lastName'); var tmp_2; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_emailAddr = $_result.b10('emailAddr'); var tmp_3; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_phoneNum = $_result.b10('phoneNum'); var tmp_4; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_gender = $_result.a5o('gender'); var tmp_5; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_active = $_result.m67('active'); var tmp_6; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_dateOfBirth = $_result.b5o('dateOfBirth'); var tmp_7; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_personAddress = $_result.b10('personAddress'); var tmp_8; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_personOrgId = $_result.b10('personOrgId'); var tmp_9; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_personGroupUid = $_result.b5o('personGroupUid'); var tmp_10; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_personLct = $_result.b5o('personLct'); var tmp_11; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_personCountry = $_result.b10('personCountry'); var tmp_12; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_personType = $_result.a5o('personType'); var tmp_13; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_personMasterChangeSeqNum = $_result.b5o('personMasterChangeSeqNum'); var tmp_14; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_personLocalChangeSeqNum = $_result.b5o('personLocalChangeSeqNum'); var tmp_15; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_personLastChangedBy = $_result.a5o('personLastChangedBy'); var tmp_16; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_admin = $_result.m67('admin'); var tmp_17; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_personNotes = $_result.b10('personNotes'); var tmp_18; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_fatherName = $_result.b10('fatherName'); var tmp_19; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_fatherNumber = $_result.b10('fatherNumber'); var tmp_20; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_motherName = $_result.b10('motherName'); var tmp_21; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_motherNum = $_result.b10('motherNum'); var tmp_22; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.b5o('personPictureUid'); var tmp_23; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_personPictureLct = $_result.b5o('personPictureLct'); var tmp_24; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_personPictureUri = $_result.b10('personPictureUri'); var tmp_25; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_personPictureThumbnailUri = $_result.b10('personPictureThumbnailUri'); var tmp_26; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_fileSize = $_result.a5o('fileSize'); var tmp_27; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_personPictureActive = $_result.m67('personPictureActive'); var tmp_28; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new PersonAndClazzMemberListDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.x96_1 = _tmp_earliestJoinDate; this_0.y96_1 = _tmp_latestDateLeft; this_0.z96_1 = _tmp_enrolmentRole; if (!_tmp_Person_isAllNull) { var tmp_29 = this_0; // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.a97_1 = _tmp_personUid; this_1.b97_1 = _tmp_username; this_1.c97_1 = _tmp_firstNames; this_1.d97_1 = _tmp_lastName; this_1.e97_1 = _tmp_emailAddr; this_1.f97_1 = _tmp_phoneNum; this_1.g97_1 = _tmp_gender; this_1.h97_1 = _tmp_active; this_1.i97_1 = _tmp_dateOfBirth; this_1.j97_1 = _tmp_personAddress; this_1.k97_1 = _tmp_personOrgId; this_1.l97_1 = _tmp_personGroupUid; this_1.m97_1 = _tmp_personLct; this_1.n97_1 = _tmp_personCountry; this_1.o97_1 = _tmp_personType; this_1.p97_1 = _tmp_personMasterChangeSeqNum; this_1.q97_1 = _tmp_personLocalChangeSeqNum; this_1.r97_1 = _tmp_personLastChangedBy; this_1.s97_1 = _tmp_admin; this_1.t97_1 = _tmp_personNotes; this_1.u97_1 = _tmp_fatherName; this_1.v97_1 = _tmp_fatherNumber; this_1.w97_1 = _tmp_motherName; this_1.x97_1 = _tmp_motherNum; tmp_29.v96_1 = this_1; } if (!_tmp_PersonPicture_isAllNull) { var tmp_30 = this_0; // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_2.y97_1 = _tmp_personPictureUid; this_2.z97_1 = _tmp_personPictureLct; this_2.a98_1 = _tmp_personPictureUri; this_2.b98_1 = _tmp_personPictureThumbnailUri; this_2.c98_1 = _tmp_fileSize; this_2.d98_1 = _tmp_personPictureActive; tmp_30.w96_1 = this_2; } return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { this.m98_1 = $clazzUid; this.n98_1 = $roleId; this.o98_1 = $filter; this.p98_1 = $currentTime; this.q98_1 = $accountPersonUid; this.r98_1 = $permission; this.s98_1 = $searchText; this.t98_1 = $sortOrder; this.u98_1 = $_limit; this.v98_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda).x98 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda).le = function (p1, $completion) { return this.x98((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.w98_1.x5i(1, this.m98_1); this.w98_1.x5i(2, this.m98_1); this.w98_1.w5i(3, this.n98_1); this.w98_1.w5i(4, this.o98_1); this.w98_1.x5i(5, this.p98_1); this.w98_1.x5i(6, this.m98_1); this.w98_1.x5i(7, this.q98_1); this.w98_1.x5i(8, this.q98_1); this.w98_1.x5i(9, this.m98_1); this.w98_1.x5i(10, this.q98_1); this.w98_1.x5i(11, this.r98_1); this.w98_1.x5i(12, this.q98_1); this.w98_1.x5i(13, this.r98_1); this.w98_1.x5i(14, this.q98_1); this.w98_1.a5j(15, this.s98_1); this.w98_1.w5i(16, this.t98_1); this.w98_1.w5i(17, this.t98_1); this.w98_1.w5i(18, this.t98_1); this.w98_1.w5i(19, this.t98_1); this.w98_1.w5i(20, this.u98_1); this.w98_1.w5i(21, this.v98_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.w98_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda(this.m98_1, this.n98_1, this.o98_1, this.p98_1, this.q98_1, this.r98_1, this.s98_1, this.t98_1, this.u98_1, this.v98_1, completion); i.w98_1 = _stmt; return i; }; function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda_0($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.x98(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder, resultContinuation) { this.g99_1 = $clazzUid; this.h99_1 = $roleId; this.i99_1 = $filter; this.j99_1 = $currentTime; this.k99_1 = $accountPersonUid; this.l99_1 = $permission; this.m99_1 = $searchText; this.n99_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.o99_1.x5i(1, this.g99_1); this.o99_1.x5i(2, this.g99_1); this.o99_1.w5i(3, this.h99_1); this.o99_1.w5i(4, this.i99_1); this.o99_1.x5i(5, this.j99_1); this.o99_1.x5i(6, this.g99_1); this.o99_1.x5i(7, this.k99_1); this.o99_1.x5i(8, this.k99_1); this.o99_1.x5i(9, this.g99_1); this.o99_1.x5i(10, this.k99_1); this.o99_1.x5i(11, this.l99_1); this.o99_1.x5i(12, this.k99_1); this.o99_1.x5i(13, this.l99_1); this.o99_1.x5i(14, this.k99_1); this.o99_1.a5j(15, this.m99_1); this.o99_1.w5i(16, this.n99_1); this.o99_1.w5i(17, this.n99_1); this.o99_1.w5i(18, this.n99_1); this.o99_1.w5i(19, this.n99_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.o99_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda(this.g99_1, this.h99_1, this.i99_1, this.j99_1, this.k99_1, this.l99_1, this.m99_1, this.n99_1, completion); i.o99_1 = _stmt; return i; }; function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda_0($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_earliestJoinDate = $_result.b5o('earliestJoinDate'); var _tmp_latestDateLeft = $_result.b5o('latestDateLeft'); var _tmp_enrolmentRole = $_result.a5o('enrolmentRole'); var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.b5o('personUid'); var tmp; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_username = $_result.b10('username'); var tmp_0; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_firstNames = $_result.b10('firstNames'); var tmp_1; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_lastName = $_result.b10('lastName'); var tmp_2; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_emailAddr = $_result.b10('emailAddr'); var tmp_3; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_phoneNum = $_result.b10('phoneNum'); var tmp_4; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_gender = $_result.a5o('gender'); var tmp_5; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_active = $_result.m67('active'); var tmp_6; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_dateOfBirth = $_result.b5o('dateOfBirth'); var tmp_7; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_personAddress = $_result.b10('personAddress'); var tmp_8; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_personOrgId = $_result.b10('personOrgId'); var tmp_9; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_personGroupUid = $_result.b5o('personGroupUid'); var tmp_10; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_personLct = $_result.b5o('personLct'); var tmp_11; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_personCountry = $_result.b10('personCountry'); var tmp_12; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_personType = $_result.a5o('personType'); var tmp_13; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_personMasterChangeSeqNum = $_result.b5o('personMasterChangeSeqNum'); var tmp_14; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_personLocalChangeSeqNum = $_result.b5o('personLocalChangeSeqNum'); var tmp_15; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_personLastChangedBy = $_result.a5o('personLastChangedBy'); var tmp_16; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_admin = $_result.m67('admin'); var tmp_17; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_personNotes = $_result.b10('personNotes'); var tmp_18; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_fatherName = $_result.b10('fatherName'); var tmp_19; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_fatherNumber = $_result.b10('fatherNumber'); var tmp_20; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_motherName = $_result.b10('motherName'); var tmp_21; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_motherNum = $_result.b10('motherNum'); var tmp_22; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.b5o('personPictureUid'); var tmp_23; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_personPictureLct = $_result.b5o('personPictureLct'); var tmp_24; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_personPictureUri = $_result.b10('personPictureUri'); var tmp_25; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_personPictureThumbnailUri = $_result.b10('personPictureThumbnailUri'); var tmp_26; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_fileSize = $_result.a5o('fileSize'); var tmp_27; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_personPictureActive = $_result.m67('personPictureActive'); var tmp_28; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new PersonAndClazzMemberListDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.x96_1 = _tmp_earliestJoinDate; this_0.y96_1 = _tmp_latestDateLeft; this_0.z96_1 = _tmp_enrolmentRole; if (!_tmp_Person_isAllNull) { var tmp_29 = this_0; // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.a97_1 = _tmp_personUid; this_1.b97_1 = _tmp_username; this_1.c97_1 = _tmp_firstNames; this_1.d97_1 = _tmp_lastName; this_1.e97_1 = _tmp_emailAddr; this_1.f97_1 = _tmp_phoneNum; this_1.g97_1 = _tmp_gender; this_1.h97_1 = _tmp_active; this_1.i97_1 = _tmp_dateOfBirth; this_1.j97_1 = _tmp_personAddress; this_1.k97_1 = _tmp_personOrgId; this_1.l97_1 = _tmp_personGroupUid; this_1.m97_1 = _tmp_personLct; this_1.n97_1 = _tmp_personCountry; this_1.o97_1 = _tmp_personType; this_1.p97_1 = _tmp_personMasterChangeSeqNum; this_1.q97_1 = _tmp_personLocalChangeSeqNum; this_1.r97_1 = _tmp_personLastChangedBy; this_1.s97_1 = _tmp_admin; this_1.t97_1 = _tmp_personNotes; this_1.u97_1 = _tmp_fatherName; this_1.v97_1 = _tmp_fatherNumber; this_1.w97_1 = _tmp_motherName; this_1.x97_1 = _tmp_motherNum; tmp_29.v96_1 = this_1; } if (!_tmp_PersonPicture_isAllNull) { var tmp_30 = this_0; // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_2.y97_1 = _tmp_personPictureUid; this_2.z97_1 = _tmp_personPictureLct; this_2.a98_1 = _tmp_personPictureUri; this_2.b98_1 = _tmp_personPictureThumbnailUri; this_2.c98_1 = _tmp_fileSize; this_2.d98_1 = _tmp_personPictureActive; tmp_30.w96_1 = this_2; } return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { this.x99_1 = $clazzUid; this.y99_1 = $roleId; this.z99_1 = $filter; this.a9a_1 = $currentTime; this.b9a_1 = $accountPersonUid; this.c9a_1 = $searchText; this.d9a_1 = $sortOrder; this.e9a_1 = $_limit; this.f9a_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda).x98 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda).le = function (p1, $completion) { return this.x98((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.g9a_1.x5i(1, this.x99_1); this.g9a_1.x5i(2, this.x99_1); this.g9a_1.w5i(3, this.y99_1); this.g9a_1.w5i(4, this.z99_1); this.g9a_1.x5i(5, this.a9a_1); this.g9a_1.x5i(6, this.x99_1); this.g9a_1.x5i(7, this.b9a_1); this.g9a_1.x5i(8, this.b9a_1); this.g9a_1.x5i(9, this.x99_1); this.g9a_1.x5i(10, this.b9a_1); this.g9a_1.x5i(11, this.b9a_1); this.g9a_1.x5i(12, this.b9a_1); this.g9a_1.a5j(13, this.c9a_1); this.g9a_1.w5i(14, this.d9a_1); this.g9a_1.w5i(15, this.d9a_1); this.g9a_1.w5i(16, this.d9a_1); this.g9a_1.w5i(17, this.d9a_1); this.g9a_1.w5i(18, this.e9a_1); this.g9a_1.w5i(19, this.f9a_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.g9a_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda(this.x99_1, this.y99_1, this.z99_1, this.a9a_1, this.b9a_1, this.c9a_1, this.d9a_1, this.e9a_1, this.f9a_1, completion); i.g9a_1 = _stmt; return i; }; function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda_0($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.x98(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, resultContinuation) { this.p9a_1 = $clazzUid; this.q9a_1 = $roleId; this.r9a_1 = $filter; this.s9a_1 = $currentTime; this.t9a_1 = $accountPersonUid; this.u9a_1 = $searchText; this.v9a_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.w9a_1.x5i(1, this.p9a_1); this.w9a_1.x5i(2, this.p9a_1); this.w9a_1.w5i(3, this.q9a_1); this.w9a_1.w5i(4, this.r9a_1); this.w9a_1.x5i(5, this.s9a_1); this.w9a_1.x5i(6, this.p9a_1); this.w9a_1.x5i(7, this.t9a_1); this.w9a_1.x5i(8, this.t9a_1); this.w9a_1.x5i(9, this.p9a_1); this.w9a_1.x5i(10, this.t9a_1); this.w9a_1.x5i(11, this.t9a_1); this.w9a_1.x5i(12, this.t9a_1); this.w9a_1.a5j(13, this.u9a_1); this.w9a_1.w5i(14, this.v9a_1); this.w9a_1.w5i(15, this.v9a_1); this.w9a_1.w5i(16, this.v9a_1); this.w9a_1.w5i(17, this.v9a_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.w9a_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda(this.p9a_1, this.q9a_1, this.r9a_1, this.s9a_1, this.t9a_1, this.u9a_1, this.v9a_1, completion); i.w9a_1 = _stmt; return i; }; function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda_0($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzName = $_result.b10('clazzName'); var _tmp_firstNames = $_result.b10('firstNames'); var _tmp_lastName = $_result.b10('lastName'); // Inline function 'kotlin.apply' call var this_0 = new CourseNameAndPersonName(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.getClazzNameAndPersonName....' call this_0.x9a_1 = _tmp_clazzName; this_0.y9a_1 = _tmp_firstNames; this_0.z9a_1 = _tmp_lastName; return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.a9b_1); } protoOf(ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1).w5h = function (returnsId) { return 'INSERT INTO ClazzEnrolment (clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1).e9b = function (stmt, entity) { if (entity.z8i_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.z8i_1); } stmt.x5i(2, entity.a8j_1); stmt.x5i(3, entity.b8j_1); stmt.x5i(4, entity.c8j_1); stmt.x5i(5, entity.d8j_1); stmt.w5i(6, entity.e8j_1); stmt.y5i(7, entity.f8j_1); stmt.k5i(8, entity.g8j_1); stmt.x5i(9, entity.h8j_1); stmt.w5i(10, entity.i8j_1); stmt.x5i(11, entity.j8j_1); stmt.x5i(12, entity.k8j_1); stmt.w5i(13, entity.l8j_1); stmt.x5i(14, entity.m8j_1); }; protoOf(ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1).r5g = function (stmt, entity) { return this.e9b(stmt, entity instanceof ClazzEnrolment ? entity : THROW_CCE()); }; function ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) { this.n9b_1 = $entity; this.o9b_1 = $_result; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda).n5g = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda).le = function (p1, $completion) { return this.n5g((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.p9b_1.x5i(1, this.n9b_1.a8j_1); this.p9b_1.x5i(2, this.n9b_1.b8j_1); this.p9b_1.x5i(3, this.n9b_1.c8j_1); this.p9b_1.x5i(4, this.n9b_1.d8j_1); this.p9b_1.w5i(5, this.n9b_1.e8j_1); this.p9b_1.y5i(6, this.n9b_1.f8j_1); this.p9b_1.k5i(7, this.n9b_1.g8j_1); this.p9b_1.x5i(8, this.n9b_1.h8j_1); this.p9b_1.w5i(9, this.n9b_1.i8j_1); this.p9b_1.x5i(10, this.n9b_1.j8j_1); this.p9b_1.x5i(11, this.n9b_1.k8j_1); this.p9b_1.w5i(12, this.n9b_1.l8j_1); this.p9b_1.x5i(13, this.n9b_1.m8j_1); this.p9b_1.x5i(14, this.n9b_1.z8i_1); this.q9b_1 = this.o9b_1._v; this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.p9b_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; var ARGUMENT_0 = this.q9b_1 + ARGUMENT | 0; this.o9b_1._v = ARGUMENT_0; return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda).o5g = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda(this.n9b_1, this.o9b_1, completion); i.p9b_1 = _stmt; return i; }; function ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda_0($entity, $_result, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation); var l = function (_stmt, $completion) { return i.n5g(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda(this$0, $personUid, $clazzUid, resultContinuation) { this.z9b_1 = this$0; this.a9c_1 = $personUid; this.b9c_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda).c9c = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda).r79 = function ($completion) { return this.c9c($completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig("\n SELECT ClazzEnrolment.*, LeavingReason.*, \n COALESCE(Clazz.clazzTimeZone, 'UTC') as timeZone\n FROM ClazzEnrolment \n LEFT JOIN LeavingReason \n ON LeavingReason.leavingReasonUid = ClazzEnrolment.clazzEnrolmentLeavingReasonUid\n LEFT JOIN Clazz \n ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n WHERE clazzEnrolmentPersonUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive \n AND clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n ORDER BY clazzEnrolmentDateLeft DESC\n ", VOID, VOID, VOID, "\n SELECT ClazzEnrolment.*, LeavingReason.*, \n COALESCE(Clazz.clazzTimeZone, 'UTC') as timeZone\n FROM ClazzEnrolment \n LEFT JOIN LeavingReason \n ON LeavingReason.leavingReasonUid = ClazzEnrolment.clazzEnrolmentLeavingReasonUid\n LEFT JOIN Clazz \n ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n WHERE clazzEnrolmentPersonUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive \n AND clazzEnrolmentClazzUid = ? \n ORDER BY clazzEnrolmentDateLeft DESC\n \n", true); suspendResult = prepareAndUseStatementAsync(this.z9b_1.a9b_1, tmp_0, ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda_0(this.a9c_1, this.b9c_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda).q79 = function (completion) { return new ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda(this.z9b_1, this.a9c_1, this.b9c_1, completion); }; function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda_0(this$0, $personUid, $clazzUid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda(this$0, $personUid, $clazzUid, resultContinuation); var l = function ($completion) { return i.c9c($completion); }; l.$arity = 0; return l; } function ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda($enrolmentUid, resultContinuation) { this.l9c_1 = $enrolmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda).n9c = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda).le = function (p1, $completion) { return this.n9c((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.m9c_1.x5i(1, this.l9c_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.m9c_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda).o5g = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda(this.l9c_1, completion); i.m9c_1 = _stmt; return i; }; function ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda_0($enrolmentUid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda($enrolmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.n9c(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda(this$0, $accountPersonUid, $otherPersonUid, resultContinuation) { this.w9c_1 = this$0; this.x9c_1 = $accountPersonUid; this.y9c_1 = $otherPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda).z9c = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda).r79 = function ($completion) { return this.z9c($completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n /* List of all CoursePermissions that are granted to the person as per accountPersonUid */\n WITH CoursePermissionsForAccountPerson AS (\n \n /* Get CoursePermissions given to the active user based on their enrolment role*/\n SELECT CoursePermission.*\n FROM ClazzEnrolment ClazzEnrolment_ActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ActiveUser.clazzEnrolmentRole\n WHERE ClazzEnrolment_ActiveUser.clazzEnrolmentPersonUid = CAST(? AS BIGINT) \n UNION\n /* Get ClazzUids where the active user can view members based a grant directly to them */\n SELECT CoursePermission.*\n FROM CoursePermission\n WHERE CoursePermission.cpToPersonUid = CAST(? AS BIGINT)\n ),\n /* Check if CoursePermission for accountPersonUid grants view permission */\n CanViewPersonUidViaCoursePermission(personUid) AS (\n SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM CoursePermissionsForAccountPerson\n JOIN ClazzEnrolment \n ON (CoursePermissionsForAccountPerson.cpPermissionsFlag & 8192) > 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = CoursePermissionsForAccountPerson.cpClazzUid \n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT) \n ) \n SELECT ClazzEnrolment.*,\n Clazz.*,\n CourseTerminology.*\n FROM ClazzEnrolment\n JOIN Clazz \n ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n LEFT JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n WHERE (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n /* Check that accountPersonUid has permission to see otherPerson */\n AND ( (SELECT CAST(? AS BIGINT) = CAST(? AS BIGINT))\n OR (SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 8192\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (SELECT CAST(? AS BIGINT) IN \n (SELECT CanViewPersonUidViaCoursePermission.personUid\n FROM CanViewPersonUidViaCoursePermission)) \n ) \n /* Check that accountPersonUid has permission to see related Clazz */\n AND ( (SELECT CAST(? AS BIGINT) = CAST(? AS BIGINT))\n OR (SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 1\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (EXISTS(SELECT 1\n FROM CoursePermissionsForAccountPerson\n WHERE CoursePermissionsForAccountPerson.cpClazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n AND (CoursePermissionsForAccountPerson.cpPermissionsFlag & 1) > 0)) \n )\n ', VOID, VOID, VOID, '\n /* List of all CoursePermissions that are granted to the person as per accountPersonUid */\n WITH CoursePermissionsForAccountPerson AS (\n \n /* Get CoursePermissions given to the active user based on their enrolment role*/\n SELECT CoursePermission.*\n FROM ClazzEnrolment ClazzEnrolment_ActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ActiveUser.clazzEnrolmentRole\n WHERE ClazzEnrolment_ActiveUser.clazzEnrolmentPersonUid = ? \n UNION\n /* Get ClazzUids where the active user can view members based a grant directly to them */\n SELECT CoursePermission.*\n FROM CoursePermission\n WHERE CoursePermission.cpToPersonUid = ?\n ),\n /* Check if CoursePermission for accountPersonUid grants view permission */\n CanViewPersonUidViaCoursePermission(personUid) AS (\n SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM CoursePermissionsForAccountPerson\n JOIN ClazzEnrolment \n ON (CoursePermissionsForAccountPerson.cpPermissionsFlag & 8192) > 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = CoursePermissionsForAccountPerson.cpClazzUid \n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ? \n ) \n SELECT ClazzEnrolment.*,\n Clazz.*,\n CourseTerminology.*\n FROM ClazzEnrolment\n JOIN Clazz \n ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n LEFT JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n WHERE (? != 0 AND ? != 0)\n AND ClazzEnrolment.clazzEnrolmentPersonUid = ?\n /* Check that accountPersonUid has permission to see otherPerson */\n AND ( (SELECT ? = ?)\n OR (SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 8192\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (SELECT ? IN \n (SELECT CanViewPersonUidViaCoursePermission.personUid\n FROM CanViewPersonUidViaCoursePermission)) \n ) \n /* Check that accountPersonUid has permission to see related Clazz */\n AND ( (SELECT ? = ?)\n OR (SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 1\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (EXISTS(SELECT 1\n FROM CoursePermissionsForAccountPerson\n WHERE CoursePermissionsForAccountPerson.cpClazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n AND (CoursePermissionsForAccountPerson.cpPermissionsFlag & 1) > 0)) \n )\n \n', true); suspendResult = prepareAndUseStatementAsync(this.w9c_1.a9b_1, tmp_0, ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda_0(this.x9c_1, this.y9c_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda).q79 = function (completion) { return new ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda(this.w9c_1, this.x9c_1, this.y9c_1, completion); }; function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda_0(this$0, $accountPersonUid, $otherPersonUid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda(this$0, $accountPersonUid, $otherPersonUid, resultContinuation); var l = function ($completion) { return i.z9c($completion); }; l.$arity = 0; return l; } function ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda($clazzUid, $accountPersonUid, $time, resultContinuation) { this.i9d_1 = $clazzUid; this.j9d_1 = $accountPersonUid; this.k9d_1 = $time; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda).m9d = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda).le = function (p1, $completion) { return this.m9d((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.l9d_1.x5i(1, this.i9d_1); this.l9d_1.x5i(2, this.j9d_1); this.l9d_1.x5i(3, this.k9d_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.l9d_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda).o5g = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda(this.i9d_1, this.j9d_1, this.k9d_1, completion); i.l9d_1 = _stmt; return i; }; function ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda_0($clazzUid, $accountPersonUid, $time, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda($clazzUid, $accountPersonUid, $time, resultContinuation); var l = function (_stmt, $completion) { return i.m9d(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1(this$0, $clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder) { this.t9d_1 = this$0; this.u9d_1 = $clazzUid; this.v9d_1 = $roleId; this.w9d_1 = $filter; this.x9d_1 = $currentTime; this.y9d_1 = $accountPersonUid; this.z9d_1 = $permission; this.a9e_1 = $searchText; this.b9e_1 = $sortOrder; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Clazz', 'Person', 'ClazzEnrolment', 'PersonPicture', 'CoursePermission']; DoorLimitOffsetPagingSource.call(this, this$0.a9b_1, tmp$ret$2); } protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1).c9e = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n SELECT * \n FROM (SELECT Person.*, PersonPicture.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (CAST(? AS BIGINT) \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n \n )\n OR Person.personUid = CAST(? AS BIGINT)\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n ) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n SELECT * \n FROM (SELECT Person.*, PersonPicture.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (? \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n \n )\n OR Person.personUid = ?\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n ) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.t9d_1.a9b_1, tmp, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda_0(this.u9d_1, this.v9d_1, this.w9d_1, this.x9d_1, this.y9d_1, this.z9d_1, this.a9e_1, this.b9e_1, _limit, _offset, null), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1).z5q = function (_limit, _offset, $completion) { return this.c9e(_limit, _offset, $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n SELECT * \n FROM (SELECT Person.*, PersonPicture.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (CAST(? AS BIGINT) \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n \n )\n OR Person.personUid = CAST(? AS BIGINT)\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n ) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n SELECT * \n FROM (SELECT Person.*, PersonPicture.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (? \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n \n )\n OR Person.personUid = ?\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n ) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.t9d_1.a9b_1, tmp, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda_0(this.u9d_1, this.v9d_1, this.w9d_1, this.x9d_1, this.y9d_1, this.z9d_1, this.a9e_1, this.b9e_1, null), $completion); }; function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1(this$0, $clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder) { this.j9e_1 = this$0; this.k9e_1 = $clazzUid; this.l9e_1 = $roleId; this.m9e_1 = $filter; this.n9e_1 = $currentTime; this.o9e_1 = $accountPersonUid; this.p9e_1 = $searchText; this.q9e_1 = $sortOrder; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Clazz', 'Person', 'ClazzEnrolment', 'PersonPicture', 'CoursePermission', 'StatementEntity', 'ActorEntity']; DoorLimitOffsetPagingSource.call(this, this$0.a9b_1, tmp$ret$2); } protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1).c9e = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n SELECT * \n FROM (SELECT Person.*, PersonPicture.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n --Dummy join so that invalidations of the StatementEntity table will trigger\n -- PagingSource invalidation of ClazzGradebookPagingSource\n LEFT JOIN StatementEntity\n ON StatementEntity.statementIdHi = 0 \n AND StatementEntity.statementIdLo = 0\n LEFT JOIN ActorEntity\n ON ActorEntity.actorUid = 0\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (CAST(? AS BIGINT) \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n )\n OR Person.personUid = CAST(? AS BIGINT)\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n ) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n SELECT * \n FROM (SELECT Person.*, PersonPicture.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n --Dummy join so that invalidations of the StatementEntity table will trigger\n -- PagingSource invalidation of ClazzGradebookPagingSource\n LEFT JOIN StatementEntity\n ON StatementEntity.statementIdHi = 0 \n AND StatementEntity.statementIdLo = 0\n LEFT JOIN ActorEntity\n ON ActorEntity.actorUid = 0\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (? \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n )\n OR Person.personUid = ?\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n ) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.j9e_1.a9b_1, tmp, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda_0(this.k9e_1, this.l9e_1, this.m9e_1, this.n9e_1, this.o9e_1, this.p9e_1, this.q9e_1, _limit, _offset, null), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1).z5q = function (_limit, _offset, $completion) { return this.c9e(_limit, _offset, $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n SELECT * \n FROM (SELECT Person.*, PersonPicture.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n --Dummy join so that invalidations of the StatementEntity table will trigger\n -- PagingSource invalidation of ClazzGradebookPagingSource\n LEFT JOIN StatementEntity\n ON StatementEntity.statementIdHi = 0 \n AND StatementEntity.statementIdLo = 0\n LEFT JOIN ActorEntity\n ON ActorEntity.actorUid = 0\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (CAST(? AS BIGINT) \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n )\n OR Person.personUid = CAST(? AS BIGINT)\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n ) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n SELECT * \n FROM (SELECT Person.*, PersonPicture.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n --Dummy join so that invalidations of the StatementEntity table will trigger\n -- PagingSource invalidation of ClazzGradebookPagingSource\n LEFT JOIN StatementEntity\n ON StatementEntity.statementIdHi = 0 \n AND StatementEntity.statementIdLo = 0\n LEFT JOIN ActorEntity\n ON ActorEntity.actorUid = 0\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (? \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n )\n OR Person.personUid = ?\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n ) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.j9e_1.a9b_1, tmp, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda_0(this.k9e_1, this.l9e_1, this.m9e_1, this.n9e_1, this.o9e_1, this.p9e_1, this.q9e_1, null), $completion); }; function ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda($clazzUid, $personUid, resultContinuation) { this.z9e_1 = $clazzUid; this.a9f_1 = $personUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda).c9f = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda).le = function (p1, $completion) { return this.c9f((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.b9f_1.x5i(1, this.z9e_1); this.b9f_1.x5i(2, this.a9f_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.b9f_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda).o5g = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda(this.z9e_1, this.a9f_1, completion); i.b9f_1 = _stmt; return i; }; function ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda_0($clazzUid, $personUid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda($clazzUid, $personUid, resultContinuation); var l = function (_stmt, $completion) { return i.c9f(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$44(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.l9f_1 = _this__u8e3s4; this.m9f_1 = entity; } protoOf($insertAsyncCOROUTINE$44).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.l9f_1.b9b_1.y5h(this.m9f_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateAsyncCOROUTINE$45(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.v9f_1 = _this__u8e3s4; this.w9f_1 = entity; } protoOf($updateAsyncCOROUTINE$45).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.x9f_1 = {_v: 0}; this.y9f_1 = 'UPDATE ClazzEnrolment SET clazzEnrolmentPersonUid = ?, clazzEnrolmentClazzUid = ?, clazzEnrolmentDateJoined = ?, clazzEnrolmentDateLeft = ?, clazzEnrolmentRole = ?, clazzEnrolmentAttendancePercentage = ?, clazzEnrolmentActive = ?, clazzEnrolmentLeavingReasonUid = ?, clazzEnrolmentOutcome = ?, clazzEnrolmentLocalChangeSeqNum = ?, clazzEnrolmentMasterChangeSeqNum = ?, clazzEnrolmentLastChangedBy = ?, clazzEnrolmentLct = ? WHERE clazzEnrolmentUid = ?'; this.ld_1 = 1; suspendResult = prepareAndUseStatementAsync_0(this.v9f_1.a9b_1, this.y9f_1, VOID, ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda_0(this.w9f_1, this.x9f_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return this.x9f_1._v; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ClazzEnrolmentDao_JdbcImpl(_db) { ClazzEnrolmentDao.call(this); this.a9b_1 = _db; var tmp = this; tmp.b9b_1 = new ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1(this); } protoOf(ClazzEnrolmentDao_JdbcImpl).x94 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$44(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.x94(entity instanceof ClazzEnrolment ? entity : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl).d94 = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$45(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_JdbcImpl).b94 = function (personUid, clazzUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['LeavingReason', 'Clazz', 'ClazzEnrolment']; return doorFlow(this.a9b_1, tmp, ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda_0(this, personUid, clazzUid, null)); }; protoOf(ClazzEnrolmentDao_JdbcImpl).c94 = function (enrolmentUid, $completion) { var tmp = new PreparedStatementConfig("\n SELECT ClazzEnrolment.*, \n LeavingReason.*,\n COALESCE(Clazz.clazzTimeZone, 'UTC') AS timeZone\n FROM ClazzEnrolment \n LEFT JOIN LeavingReason \n ON LeavingReason.leavingReasonUid = ClazzEnrolment.clazzEnrolmentLeavingReasonUid\n LEFT JOIN Clazz \n ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n WHERE ClazzEnrolment.clazzEnrolmentUid = CAST(? AS BIGINT)\n ", VOID, VOID, VOID, "\n SELECT ClazzEnrolment.*, \n LeavingReason.*,\n COALESCE(Clazz.clazzTimeZone, 'UTC') AS timeZone\n FROM ClazzEnrolment \n LEFT JOIN LeavingReason \n ON LeavingReason.leavingReasonUid = ClazzEnrolment.clazzEnrolmentLeavingReasonUid\n LEFT JOIN Clazz \n ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n WHERE ClazzEnrolment.clazzEnrolmentUid = ?\n \n", true); return prepareAndUseStatementAsync(this.a9b_1, tmp, ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda_0(enrolmentUid, null), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl).e94 = function (accountPersonUid, otherPersonUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['SystemPermission', 'CourseTerminology', 'Clazz', 'ClazzEnrolment', 'CoursePermission']; return doorFlow(this.a9b_1, tmp, ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda_0(this, accountPersonUid, otherPersonUid, null)); }; protoOf(ClazzEnrolmentDao_JdbcImpl).f94 = function (clazzUid, accountPersonUid, time, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ClazzEnrolment.*\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft\n AND ClazzEnrolment.clazzEnrolmentActive \n ', VOID, VOID, VOID, '\n SELECT ClazzEnrolment.*\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft\n AND ClazzEnrolment.clazzEnrolmentActive \n \n', true); return prepareAndUseStatementAsync(this.a9b_1, tmp, ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda_0(clazzUid, accountPersonUid, time, null), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl).g94 = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission) { return new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1(this, clazzUid, roleId, filter, currentTime, accountPersonUid, permission, searchText, sortOrder); }; protoOf(ClazzEnrolmentDao_JdbcImpl).h94 = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime) { return new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1(this, clazzUid, roleId, filter, currentTime, accountPersonUid, searchText, sortOrder); }; protoOf(ClazzEnrolmentDao_JdbcImpl).i94 = function (personUid, clazzUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Person.firstNames, Person.lastName, Clazz.clazzName\n FROM Person\n LEFT JOIN Clazz\n ON Clazz.clazzUid = CAST(? AS BIGINT)\n WHERE Person.personUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT Person.firstNames, Person.lastName, Clazz.clazzName\n FROM Person\n LEFT JOIN Clazz\n ON Clazz.clazzUid = ?\n WHERE Person.personUid = ? \n \n', true); return prepareAndUseStatementAsync(this.a9b_1, tmp, ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda_0(clazzUid, personUid, null), $completion); }; function ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzEnrolmentDao_Repo$findEnrolmentWithLeavingReason$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzEnrolmentDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) { this.h9g_1 = this$0; this.i9g_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_Repo$updateAsync$slambda).d8v = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_Repo$updateAsync$slambda).r79 = function ($completion) { return this.d8v($completion); }; protoOf(ClazzEnrolmentDao_Repo$updateAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.h9g_1.l9g_1.d94(this.i9g_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzEnrolmentDao_Repo$updateAsync$slambda).q79 = function (completion) { return new ClazzEnrolmentDao_Repo$updateAsync$slambda(this.h9g_1, this.i9g_1, completion); }; function ClazzEnrolmentDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ClazzEnrolmentDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.d8v($completion); }; l.$arity = 0; return l; } function ClazzEnrolmentDao_Repo$getAllEnrolmentsAtTimeByClazzAndPerson$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda(this$0, $clazzUid, $roleId, $sortOrder, $searchText, $filter, $accountPersonUid, $currentTime, $permission, resultContinuation) { this.x9g_1 = this$0; this.y9g_1 = $clazzUid; this.z9g_1 = $roleId; this.a9h_1 = $sortOrder; this.b9h_1 = $searchText; this.c9h_1 = $filter; this.d9h_1 = $accountPersonUid; this.e9h_1 = $currentTime; this.f9h_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.i9h_1 = this.x9g_1.k9g_1; var tmp_1 = this; tmp_1.j9h_1 = 'ClazzEnrolmentDao/findByClazzUidAndRole'; this.md_1 = 4; var tmp_2 = this; tmp_2.k9h_1 = this.x9g_1.m9g_1; var tmp_3 = this; tmp_3.l9h_1 = this.k9h_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.x9g_1.k9g_1.t39(), 'ClazzEnrolmentDao/findByClazzUidAndRole'); doorNodeIdHeader(this_0, this.x9g_1.k9g_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.x9g_1.k9g_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.y9g_1)); parameter(this_0, 'roleId', this.x9g_1.k9g_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.z9g_1)); parameter(this_0, 'sortOrder', this.x9g_1.k9g_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.a9h_1)); parameter(this_0, 'searchText', this.x9g_1.k9g_1.t39().a67_1.b46(get_nullable(serializer_0(StringCompanionObject_instance)), this.b9h_1)); parameter(this_0, 'filter', this.x9g_1.k9g_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.c9h_1)); parameter(this_0, 'accountPersonUid', this.x9g_1.k9g_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.d9h_1)); parameter(this_0, 'currentTime', this.x9g_1.k9g_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.e9h_1)); parameter(this_0, 'permission', this.x9g_1.k9g_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.f9h_1)); pagingSourceLoadParameters(this_0, this.x9g_1.k9g_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.g9h_1); tmp_4.m9h_1 = this_0; this.m9h_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.n9h_1 = this.l9h_1; var tmp_6 = this; tmp_6.o9h_1 = this.m9h_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.o9h_1, this.n9h_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.p9h_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.x9g_1.j9g_1, this.p9h_1, this.x9g_1.k9g_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.h9h_1 = endOfPaginationReached(this.p9h_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda$lambda(this.i9h_1, this.j9h_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.h9h_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda).g87 = function (_pagingParams, completion) { var i = new ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda(this.x9g_1, this.y9g_1, this.z9g_1, this.a9h_1, this.b9h_1, this.c9h_1, this.d9h_1, this.e9h_1, this.f9h_1, completion); i.g9h_1 = _pagingParams; return i; }; function ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda_0(this$0, $clazzUid, $roleId, $sortOrder, $searchText, $filter, $accountPersonUid, $currentTime, $permission, resultContinuation) { var i = new ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda(this$0, $clazzUid, $roleId, $sortOrder, $searchText, $filter, $accountPersonUid, $currentTime, $permission, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda(this$0, $clazzUid, $roleId, $sortOrder, $searchText, $filter, $accountPersonUid, $currentTime, resultContinuation) { this.y9h_1 = this$0; this.z9h_1 = $clazzUid; this.a9i_1 = $roleId; this.b9i_1 = $sortOrder; this.c9i_1 = $searchText; this.d9i_1 = $filter; this.e9i_1 = $accountPersonUid; this.f9i_1 = $currentTime; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.i9i_1 = this.y9h_1.k9g_1; var tmp_1 = this; tmp_1.j9i_1 = 'ClazzEnrolmentDao/findByClazzUidAndRoleForGradebook'; this.md_1 = 4; var tmp_2 = this; tmp_2.k9i_1 = this.y9h_1.m9g_1; var tmp_3 = this; tmp_3.l9i_1 = this.k9i_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.y9h_1.k9g_1.t39(), 'ClazzEnrolmentDao/findByClazzUidAndRoleForGradebook'); doorNodeIdHeader(this_0, this.y9h_1.k9g_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.y9h_1.k9g_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.z9h_1)); parameter(this_0, 'roleId', this.y9h_1.k9g_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.a9i_1)); parameter(this_0, 'sortOrder', this.y9h_1.k9g_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.b9i_1)); parameter(this_0, 'searchText', this.y9h_1.k9g_1.t39().a67_1.b46(get_nullable(serializer_0(StringCompanionObject_instance)), this.c9i_1)); parameter(this_0, 'filter', this.y9h_1.k9g_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.d9i_1)); parameter(this_0, 'accountPersonUid', this.y9h_1.k9g_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.e9i_1)); parameter(this_0, 'currentTime', this.y9h_1.k9g_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.f9i_1)); pagingSourceLoadParameters(this_0, this.y9h_1.k9g_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.g9i_1); tmp_4.m9i_1 = this_0; this.m9i_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.n9i_1 = this.l9i_1; var tmp_6 = this; tmp_6.o9i_1 = this.m9i_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.o9i_1, this.n9i_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.p9i_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.y9h_1.j9g_1, this.p9i_1, this.y9h_1.k9g_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.h9i_1 = endOfPaginationReached(this.p9i_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda$lambda(this.i9i_1, this.j9i_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.h9i_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda).g87 = function (_pagingParams, completion) { var i = new ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda(this.y9h_1, this.z9h_1, this.a9i_1, this.b9i_1, this.c9i_1, this.d9i_1, this.e9i_1, this.f9i_1, completion); i.g9i_1 = _pagingParams; return i; }; function ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda_0(this$0, $clazzUid, $roleId, $sortOrder, $searchText, $filter, $accountPersonUid, $currentTime, resultContinuation) { var i = new ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda(this$0, $clazzUid, $roleId, $sortOrder, $searchText, $filter, $accountPersonUid, $currentTime, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.y9i_1 = this$0; this.z9i_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(ClazzEnrolmentDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.y9i_1.l9g_1.insertAsync(this.z9i_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzEnrolmentDao_Repo$insertAsync$slambda).q79 = function (completion) { return new ClazzEnrolmentDao_Repo$insertAsync$slambda(this.y9i_1, this.z9i_1, completion); }; function ClazzEnrolmentDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ClazzEnrolmentDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $findEnrolmentWithLeavingReasonCOROUTINE$47(_this__u8e3s4, enrolmentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.i9j_1 = _this__u8e3s4; this.j9j_1 = enrolmentUid; } protoOf($findEnrolmentWithLeavingReasonCOROUTINE$47).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.k9j_1 = this.i9j_1.k9g_1; var tmp_1 = this; tmp_1.l9j_1 = 'ClazzEnrolmentDao/findEnrolmentWithLeavingReason'; this.md_1 = 3; var tmp_2 = this; tmp_2.m9j_1 = this.i9j_1.m9g_1; var tmp_3 = this; tmp_3.n9j_1 = this.m9j_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.i9j_1.k9g_1.t39(), 'ClazzEnrolmentDao/findEnrolmentWithLeavingReason'); doorNodeIdHeader(this_0, this.i9j_1.k9g_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'enrolmentUid', this.i9j_1.k9g_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.j9j_1)); tmp_4.o9j_1 = this_0; this.o9j_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.p9j_1 = this.n9j_1; var tmp_6 = this; tmp_6.q9j_1 = this.o9j_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.q9j_1, this.p9j_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.r9j_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.i9j_1.j9g_1, this.r9j_1, this.i9j_1.k9g_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.s9j_1 = this.od_1; Napier_getInstance().e5f(this.s9j_1, 'DoorLog', ClazzEnrolmentDao_Repo$findEnrolmentWithLeavingReason$lambda(this.k9j_1, this.l9j_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.i9j_1.l9g_1.c94(this.j9j_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateAsyncCOROUTINE$48(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.b9k_1 = _this__u8e3s4; this.c9k_1 = entity; } protoOf($updateAsyncCOROUTINE$48).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.b9k_1.k9g_1, 'ClazzEnrolment', ClazzEnrolmentDao_Repo$updateAsync$slambda_0(this.b9k_1, this.c9k_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $getAllEnrolmentsAtTimeByClazzAndPersonCOROUTINE$51(_this__u8e3s4, clazzUid, accountPersonUid, time, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.l9k_1 = _this__u8e3s4; this.m9k_1 = clazzUid; this.n9k_1 = accountPersonUid; this.o9k_1 = time; } protoOf($getAllEnrolmentsAtTimeByClazzAndPersonCOROUTINE$51).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.p9k_1 = this.l9k_1.k9g_1; var tmp_1 = this; tmp_1.q9k_1 = 'ClazzEnrolmentDao/getAllEnrolmentsAtTimeByClazzAndPerson'; this.md_1 = 3; var tmp_2 = this; tmp_2.r9k_1 = this.l9k_1.m9g_1; var tmp_3 = this; tmp_3.s9k_1 = this.r9k_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.l9k_1.k9g_1.t39(), 'ClazzEnrolmentDao/getAllEnrolmentsAtTimeByClazzAndPerson'); doorNodeIdHeader(this_0, this.l9k_1.k9g_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.l9k_1.k9g_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.m9k_1)); parameter(this_0, 'accountPersonUid', this.l9k_1.k9g_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.n9k_1)); parameter(this_0, 'time', this.l9k_1.k9g_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.o9k_1)); tmp_4.t9k_1 = this_0; this.t9k_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.u9k_1 = this.s9k_1; var tmp_6 = this; tmp_6.v9k_1 = this.t9k_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.v9k_1, this.u9k_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.w9k_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.l9k_1.j9g_1, this.w9k_1, this.l9k_1.k9g_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.x9k_1 = this.od_1; Napier_getInstance().e5f(this.x9k_1, 'DoorLog', ClazzEnrolmentDao_Repo$getAllEnrolmentsAtTimeByClazzAndPerson$lambda(this.p9k_1, this.q9k_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.l9k_1.l9g_1.f94(this.m9k_1, this.n9k_1, this.o9k_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $getClazzNameAndPersonNameCOROUTINE$60(_this__u8e3s4, personUid, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.g9l_1 = _this__u8e3s4; this.h9l_1 = personUid; this.i9l_1 = clazzUid; } protoOf($getClazzNameAndPersonNameCOROUTINE$60).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.g9l_1.l9g_1.i94(this.h9l_1, this.i9l_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$62(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.r9l_1 = _this__u8e3s4; this.s9l_1 = entity; } protoOf($insertAsyncCOROUTINE$62).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.r9l_1.k9g_1, 'ClazzEnrolment', ClazzEnrolmentDao_Repo$insertAsync$slambda_0(this.r9l_1, this.s9l_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ClazzEnrolmentDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ClazzEnrolmentDao.call(this); this.j9g_1 = _db; this.k9g_1 = _repo; this.l9g_1 = _dao; this.m9g_1 = _httpClient; this.n9g_1 = _clientId; this.o9g_1 = _endpoint; } protoOf(ClazzEnrolmentDao_Repo).b94 = function (personUid, clazzUid) { var _result = this.l9g_1.b94(personUid, clazzUid); return _result; }; protoOf(ClazzEnrolmentDao_Repo).c94 = function (enrolmentUid, $completion) { var tmp = new $findEnrolmentWithLeavingReasonCOROUTINE$47(this, enrolmentUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_Repo).d94 = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$48(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_Repo).e94 = function (accountPersonUid, otherPersonUid) { var _result = this.l9g_1.e94(accountPersonUid, otherPersonUid); return _result; }; protoOf(ClazzEnrolmentDao_Repo).f94 = function (clazzUid, accountPersonUid, time, $completion) { var tmp = new $getAllEnrolmentsAtTimeByClazzAndPersonCOROUTINE$51(this, clazzUid, accountPersonUid, time, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_Repo).g94 = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission) { var tmp = this.l9g_1.g94(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission); return new DoorRepositoryReplicatePullPagingSource(this.k9g_1, 'ClazzEnrolmentDao/findByClazzUidAndRole', tmp, ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda_0(this, clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission, null)); }; protoOf(ClazzEnrolmentDao_Repo).h94 = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime) { var tmp = this.l9g_1.h94(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime); return new DoorRepositoryReplicatePullPagingSource(this.k9g_1, 'ClazzEnrolmentDao/findByClazzUidAndRoleForGradebook', tmp, ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda_0(this, clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, null)); }; protoOf(ClazzEnrolmentDao_Repo).i94 = function (personUid, clazzUid, $completion) { var tmp = new $getClazzNameAndPersonNameCOROUTINE$60(this, personUid, clazzUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_Repo).x94 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$62(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzEnrolmentDao_Repo).insertAsync = function (entity, $completion) { return this.x94(entity instanceof ClazzEnrolment ? entity : THROW_CCE(), $completion); }; function ClazzLogAttendanceRecordDao() { } function $upsertListAsyncCOROUTINE$64(_this__u8e3s4, entityList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.d9m_1 = _this__u8e3s4; this.e9m_1 = entityList; } protoOf($upsertListAsyncCOROUTINE$64).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; this.f9m_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.d9m_1.m9m_1)); var tmp_0 = this; tmp_0.g9m_1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.h9m_1 = this.e9m_1.w(); var tmp_2 = this; tmp_2.i9m_1 = this.h9m_1; this.ld_1 = 1; continue $sm; case 1: if (!this.i9m_1.f()) { this.ld_1 = 4; continue $sm; } this.j9m_1 = this.i9m_1.e(); var tmp_3 = this; tmp_3.k9m_1 = this.j9m_1; if (this.k9m_1.o9m_1.equals(new Long(0, 0))) { this.ld_1 = 2; suspendResult = this.f9m_1.r63(15, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 3; continue $sm; } case 2: this.l9m_1 = suspendResult; this.k9m_1.o9m_1 = this.l9m_1; var this_0 = this.g9m_1; var element = this.l9m_1; this_0.j1(element); this.ld_1 = 3; continue $sm; case 3: this.k9m_1.v9m_1 = systemTimeInMillis(); this.ld_1 = 1; continue $sm; case 4: this.ld_1 = 5; suspendResult = this.d9m_1.n9m_1.u9l(this.e9m_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_instance; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$65(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.e9n_1 = _this__u8e3s4; this.f9n_1 = entity; } protoOf($insertAsyncCOROUTINE$65).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.g9n_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.e9n_1.m9m_1)); if (this.f9n_1.o9m_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.g9n_1.r63(15, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.h9n_1 = suspendResult; this.f9n_1.o9m_1 = this.h9n_1; this.ld_1 = 2; continue $sm; case 2: this.f9n_1.v9m_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.e9n_1.n9m_1.insertAsync(this.f9n_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.f9n_1.o9m_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ClazzLogAttendanceRecordDao_DoorWrapper(_db, _dao) { ClazzLogAttendanceRecordDao.call(this); this.m9m_1 = _db; this.n9m_1 = _dao; } protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).t9l = function (clazzUid, clazzLogUid, time, $completion) { return this.n9m_1.t9l(clazzUid, clazzLogUid, time, $completion); }; protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).u9l = function (entityList, $completion) { var tmp = new $upsertListAsyncCOROUTINE$64(this, entityList, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).i9n = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$65(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.i9n(entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE(), $completion); }; function ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda$lambda(_result) { return mapRows(_result, ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda$lambda$lambda(_result)); } function ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.b5o('personUid'); var tmp; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_username = $_result.b10('username'); var tmp_0; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_firstNames = $_result.b10('firstNames'); var tmp_1; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_lastName = $_result.b10('lastName'); var tmp_2; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_emailAddr = $_result.b10('emailAddr'); var tmp_3; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_phoneNum = $_result.b10('phoneNum'); var tmp_4; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_gender = $_result.a5o('gender'); var tmp_5; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_active = $_result.m67('active'); var tmp_6; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_dateOfBirth = $_result.b5o('dateOfBirth'); var tmp_7; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_personAddress = $_result.b10('personAddress'); var tmp_8; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_personOrgId = $_result.b10('personOrgId'); var tmp_9; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_personGroupUid = $_result.b5o('personGroupUid'); var tmp_10; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_personLct = $_result.b5o('personLct'); var tmp_11; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_personCountry = $_result.b10('personCountry'); var tmp_12; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_personType = $_result.a5o('personType'); var tmp_13; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_personMasterChangeSeqNum = $_result.b5o('personMasterChangeSeqNum'); var tmp_14; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_personLocalChangeSeqNum = $_result.b5o('personLocalChangeSeqNum'); var tmp_15; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_personLastChangedBy = $_result.a5o('personLastChangedBy'); var tmp_16; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_admin = $_result.m67('admin'); var tmp_17; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_personNotes = $_result.b10('personNotes'); var tmp_18; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_fatherName = $_result.b10('fatherName'); var tmp_19; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_fatherNumber = $_result.b10('fatherNumber'); var tmp_20; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_motherName = $_result.b10('motherName'); var tmp_21; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_motherNum = $_result.b10('motherNum'); var tmp_22; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.b5o('personPictureUid'); var tmp_23; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_personPictureLct = $_result.b5o('personPictureLct'); var tmp_24; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_personPictureUri = $_result.b10('personPictureUri'); var tmp_25; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_personPictureThumbnailUri = $_result.b10('personPictureThumbnailUri'); var tmp_26; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_fileSize = $_result.a5o('fileSize'); var tmp_27; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_personPictureActive = $_result.m67('personPictureActive'); var tmp_28; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; var _tmp_ClazzLogAttendanceRecord_nullCount = 0; var _tmp_clazzLogAttendanceRecordUid = $_result.b5o('clazzLogAttendanceRecordUid'); var tmp_29; if ($_result.t68()) { _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_clazzLogAttendanceRecordClazzLogUid = $_result.b5o('clazzLogAttendanceRecordClazzLogUid'); var tmp_30; if ($_result.t68()) { _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0; tmp_30 = Unit_instance; } var _tmp_clazzLogAttendanceRecordPersonUid = $_result.b5o('clazzLogAttendanceRecordPersonUid'); var tmp_31; if ($_result.t68()) { _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0; tmp_31 = Unit_instance; } var _tmp_attendanceStatus = $_result.a5o('attendanceStatus'); var tmp_32; if ($_result.t68()) { _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0; tmp_32 = Unit_instance; } var _tmp_clazzLogAttendanceRecordMasterChangeSeqNum = $_result.b5o('clazzLogAttendanceRecordMasterChangeSeqNum'); var tmp_33; if ($_result.t68()) { _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0; tmp_33 = Unit_instance; } var _tmp_clazzLogAttendanceRecordLocalChangeSeqNum = $_result.b5o('clazzLogAttendanceRecordLocalChangeSeqNum'); var tmp_34; if ($_result.t68()) { _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0; tmp_34 = Unit_instance; } var _tmp_clazzLogAttendanceRecordLastChangedBy = $_result.a5o('clazzLogAttendanceRecordLastChangedBy'); var tmp_35; if ($_result.t68()) { _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0; tmp_35 = Unit_instance; } var _tmp_clazzLogAttendanceRecordLastChangedTime = $_result.b5o('clazzLogAttendanceRecordLastChangedTime'); var tmp_36; if ($_result.t68()) { _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0; tmp_36 = Unit_instance; } var _tmp_ClazzLogAttendanceRecord_isAllNull = _tmp_ClazzLogAttendanceRecord_nullCount === 8; // Inline function 'kotlin.apply' call var this_0 = new PersonAndClazzLogAttendanceRecord(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzLogAttendanceRecordDao_JdbcImpl.findByClazzAndTime....' call if (!_tmp_Person_isAllNull) { var tmp_37 = this_0; // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzLogAttendanceRecordDao_JdbcImpl.findByClazzAndTime.....' call this_1.a97_1 = _tmp_personUid; this_1.b97_1 = _tmp_username; this_1.c97_1 = _tmp_firstNames; this_1.d97_1 = _tmp_lastName; this_1.e97_1 = _tmp_emailAddr; this_1.f97_1 = _tmp_phoneNum; this_1.g97_1 = _tmp_gender; this_1.h97_1 = _tmp_active; this_1.i97_1 = _tmp_dateOfBirth; this_1.j97_1 = _tmp_personAddress; this_1.k97_1 = _tmp_personOrgId; this_1.l97_1 = _tmp_personGroupUid; this_1.m97_1 = _tmp_personLct; this_1.n97_1 = _tmp_personCountry; this_1.o97_1 = _tmp_personType; this_1.p97_1 = _tmp_personMasterChangeSeqNum; this_1.q97_1 = _tmp_personLocalChangeSeqNum; this_1.r97_1 = _tmp_personLastChangedBy; this_1.s97_1 = _tmp_admin; this_1.t97_1 = _tmp_personNotes; this_1.u97_1 = _tmp_fatherName; this_1.v97_1 = _tmp_fatherNumber; this_1.w97_1 = _tmp_motherName; this_1.x97_1 = _tmp_motherNum; tmp_37.j9n_1 = this_1; } if (!_tmp_PersonPicture_isAllNull) { var tmp_38 = this_0; // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzLogAttendanceRecordDao_JdbcImpl.findByClazzAndTime.....' call this_2.y97_1 = _tmp_personPictureUid; this_2.z97_1 = _tmp_personPictureLct; this_2.a98_1 = _tmp_personPictureUri; this_2.b98_1 = _tmp_personPictureThumbnailUri; this_2.c98_1 = _tmp_fileSize; this_2.d98_1 = _tmp_personPictureActive; tmp_38.k9n_1 = this_2; } if (!_tmp_ClazzLogAttendanceRecord_isAllNull) { var tmp_39 = this_0; // Inline function 'kotlin.apply' call var this_3 = new ClazzLogAttendanceRecord(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzLogAttendanceRecordDao_JdbcImpl.findByClazzAndTime.....' call this_3.o9m_1 = _tmp_clazzLogAttendanceRecordUid; this_3.p9m_1 = _tmp_clazzLogAttendanceRecordClazzLogUid; this_3.q9m_1 = _tmp_clazzLogAttendanceRecordPersonUid; this_3.r9m_1 = _tmp_attendanceStatus; this_3.s9m_1 = _tmp_clazzLogAttendanceRecordMasterChangeSeqNum; this_3.t9m_1 = _tmp_clazzLogAttendanceRecordLocalChangeSeqNum; this_3.u9m_1 = _tmp_clazzLogAttendanceRecordLastChangedBy; this_3.v9m_1 = _tmp_clazzLogAttendanceRecordLastChangedTime; tmp_39.l9n_1 = this_3; } return this_0; }; } function ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.m9n_1); } protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1).w5h = function (returnsId) { return 'INSERT INTO ClazzLogAttendanceRecord (clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1).r9n = function (stmt, entity) { if (entity.o9m_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.o9m_1); } stmt.x5i(2, entity.p9m_1); stmt.x5i(3, entity.q9m_1); stmt.w5i(4, entity.r9m_1); stmt.x5i(5, entity.s9m_1); stmt.x5i(6, entity.t9m_1); stmt.w5i(7, entity.u9m_1); stmt.x5i(8, entity.v9m_1); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1).r5g = function (stmt, entity) { return this.r9n(stmt, entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE()); }; function ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.m9n_1); } protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO ClazzLogAttendanceRecord (clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1).r9n = function (stmt, entity) { if (entity.o9m_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.o9m_1); } stmt.x5i(2, entity.p9m_1); stmt.x5i(3, entity.q9m_1); stmt.w5i(4, entity.r9m_1); stmt.x5i(5, entity.s9m_1); stmt.x5i(6, entity.t9m_1); stmt.w5i(7, entity.u9m_1); stmt.x5i(8, entity.v9m_1); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1).r5g = function (stmt, entity) { return this.r9n(stmt, entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE()); }; function ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda($clazzUid, $time, $clazzLogUid, resultContinuation) { this.c9o_1 = $clazzUid; this.d9o_1 = $time; this.e9o_1 = $clazzLogUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda).g9o = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda).le = function (p1, $completion) { return this.g9o((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.f9o_1.x5i(1, this.c9o_1); this.f9o_1.x5i(2, this.d9o_1); this.f9o_1.x5i(3, this.e9o_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.f9o_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda).o5g = function (_stmt, completion) { var i = new ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda(this.c9o_1, this.d9o_1, this.e9o_1, completion); i.f9o_1 = _stmt; return i; }; function ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda_0($clazzUid, $time, $clazzLogUid, resultContinuation) { var i = new ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda($clazzUid, $time, $clazzLogUid, resultContinuation); var l = function (_stmt, $completion) { return i.g9o(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$66(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.p9o_1 = _this__u8e3s4; this.q9o_1 = entity; } protoOf($insertAsyncCOROUTINE$66).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.p9o_1.n9n_1.y5h(this.q9o_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ClazzLogAttendanceRecordDao_JdbcImpl(_db) { ClazzLogAttendanceRecordDao.call(this); this.m9n_1 = _db; var tmp = this; tmp.n9n_1 = new ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1(this); var tmp_0 = this; tmp_0.o9n_1 = new ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1(this); } protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).u9l = function (entityList, $completion) { return this.o9n_1.b5i(entityList, $completion); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).i9n = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$66(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.i9n(entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE(), $completion); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).t9l = function (clazzUid, clazzLogUid, time, $completion) { var tmp = new PreparedStatementConfig('\n \n WITH CurrentlyEnrolledPersonUids(enroledPersonUid) AS\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS enroledPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft)\n \n \n SELECT Person.*, ClazzLogAttendanceRecord.*, PersonPicture.*\n FROM Person\n LEFT JOIN ClazzLogAttendanceRecord \n ON ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid = \n (SELECT ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordUid \n FROM ClazzLogAttendanceRecord ClazzLogAttendanceRecordInner\n WHERE ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordClazzLogUid = CAST(? AS BIGINT)\n AND ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordPersonUid = Person.personUid\n ORDER BY ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordLastChangedTime DESC \n LIMIT 1 \n )\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN \n (SELECT CurrentlyEnrolledPersonUids.enroledPersonUid\n FROM CurrentlyEnrolledPersonUids) \n ', VOID, VOID, VOID, '\n \n WITH CurrentlyEnrolledPersonUids(enroledPersonUid) AS\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS enroledPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft)\n \n \n SELECT Person.*, ClazzLogAttendanceRecord.*, PersonPicture.*\n FROM Person\n LEFT JOIN ClazzLogAttendanceRecord \n ON ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid = \n (SELECT ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordUid \n FROM ClazzLogAttendanceRecord ClazzLogAttendanceRecordInner\n WHERE ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordClazzLogUid = ?\n AND ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordPersonUid = Person.personUid\n ORDER BY ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordLastChangedTime DESC \n LIMIT 1 \n )\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN \n (SELECT CurrentlyEnrolledPersonUids.enroledPersonUid\n FROM CurrentlyEnrolledPersonUids) \n \n', true); return prepareAndUseStatementAsync(this.m9n_1, tmp, ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda_0(clazzUid, time, clazzLogUid, null), $completion); }; function ClazzLogAttendanceRecordDao_Repo$findByClazzAndTime$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda(this$0, $entityList, resultContinuation) { this.z9o_1 = this$0; this.a9p_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.z9o_1.d9p_1.u9l(this.a9p_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda).q79 = function (completion) { return new ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda(this.z9o_1, this.a9p_1, completion); }; function ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.p9p_1 = this$0; this.q9p_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.p9p_1.d9p_1.insertAsync(this.q9p_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda).q79 = function (completion) { return new ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda(this.p9p_1, this.q9p_1, completion); }; function ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $findByClazzAndTimeCOROUTINE$68(_this__u8e3s4, clazzUid, clazzLogUid, time, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.z9p_1 = _this__u8e3s4; this.a9q_1 = clazzUid; this.b9q_1 = clazzLogUid; this.c9q_1 = time; } protoOf($findByClazzAndTimeCOROUTINE$68).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.d9q_1 = this.z9p_1.c9p_1; var tmp_1 = this; tmp_1.e9q_1 = 'ClazzLogAttendanceRecordDao/findByClazzAndTime'; this.md_1 = 3; var tmp_2 = this; tmp_2.f9q_1 = this.z9p_1.e9p_1; var tmp_3 = this; tmp_3.g9q_1 = this.f9q_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.z9p_1.c9p_1.t39(), 'ClazzLogAttendanceRecordDao/findByClazzAndTime'); doorNodeIdHeader(this_0, this.z9p_1.c9p_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.z9p_1.c9p_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.a9q_1)); parameter(this_0, 'clazzLogUid', this.z9p_1.c9p_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.b9q_1)); parameter(this_0, 'time', this.z9p_1.c9p_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.c9q_1)); tmp_4.h9q_1 = this_0; this.h9q_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.i9q_1 = this.g9q_1; var tmp_6 = this; tmp_6.j9q_1 = this.h9q_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.j9q_1, this.i9q_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.k9q_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.z9p_1.b9p_1, this.k9q_1, this.z9p_1.c9p_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.l9q_1 = this.od_1; Napier_getInstance().e5f(this.l9q_1, 'DoorLog', ClazzLogAttendanceRecordDao_Repo$findByClazzAndTime$lambda(this.d9q_1, this.e9q_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.z9p_1.d9p_1.t9l(this.a9q_1, this.b9q_1, this.c9q_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$69(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.u9q_1 = _this__u8e3s4; this.v9q_1 = entity; } protoOf($insertAsyncCOROUTINE$69).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.u9q_1.c9p_1, 'ClazzLogAttendanceRecord', ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda_0(this.u9q_1, this.v9q_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ClazzLogAttendanceRecordDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ClazzLogAttendanceRecordDao.call(this); this.b9p_1 = _db; this.c9p_1 = _repo; this.d9p_1 = _dao; this.e9p_1 = _httpClient; this.f9p_1 = _clientId; this.g9p_1 = _endpoint; } protoOf(ClazzLogAttendanceRecordDao_Repo).t9l = function (clazzUid, clazzLogUid, time, $completion) { var tmp = new $findByClazzAndTimeCOROUTINE$68(this, clazzUid, clazzLogUid, time, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogAttendanceRecordDao_Repo).u9l = function (entityList, $completion) { return withRepoChangeMonitorAsync(this.c9p_1, 'ClazzLogAttendanceRecord', ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(ClazzLogAttendanceRecordDao_Repo).i9n = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$69(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogAttendanceRecordDao_Repo).insertAsync = function (entity, $completion) { return this.i9n(entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE(), $completion); }; function ClazzLogDao() { } function $upsertListAsyncCOROUTINE$70(_this__u8e3s4, entityList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.j9r_1 = _this__u8e3s4; this.k9r_1 = entityList; } protoOf($upsertListAsyncCOROUTINE$70).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; this.l9r_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.j9r_1.s9r_1)); var tmp_0 = this; tmp_0.m9r_1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.n9r_1 = this.k9r_1.w(); var tmp_2 = this; tmp_2.o9r_1 = this.n9r_1; this.ld_1 = 1; continue $sm; case 1: if (!this.o9r_1.f()) { this.ld_1 = 4; continue $sm; } this.p9r_1 = this.o9r_1.e(); var tmp_3 = this; tmp_3.q9r_1 = this.p9r_1; if (this.q9r_1.u9r_1.equals(new Long(0, 0))) { this.ld_1 = 2; suspendResult = this.l9r_1.r63(14, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 3; continue $sm; } case 2: this.r9r_1 = suspendResult; this.q9r_1.u9r_1 = this.r9r_1; var this_0 = this.m9r_1; var element = this.r9r_1; this_0.j1(element); this.ld_1 = 3; continue $sm; case 3: this.q9r_1.j9s_1 = systemTimeInMillis(); this.ld_1 = 1; continue $sm; case 4: this.ld_1 = 5; suspendResult = this.j9r_1.t9r_1.a9r(this.k9r_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_instance; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$71(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.s9s_1 = _this__u8e3s4; this.t9s_1 = entity; } protoOf($insertAsyncCOROUTINE$71).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.u9s_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.s9s_1.s9r_1)); if (this.t9s_1.u9r_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.u9s_1.r63(14, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.v9s_1 = suspendResult; this.t9s_1.u9r_1 = this.v9s_1; this.ld_1 = 2; continue $sm; case 2: this.t9s_1.j9s_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.s9s_1.t9r_1.insertAsync(this.t9s_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.t9s_1.u9r_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ClazzLogDao_DoorWrapper(_db, _dao) { ClazzLogDao.call(this); this.s9r_1 = _db; this.t9r_1 = _dao; } protoOf(ClazzLogDao_DoorWrapper).w9q = function (clazzUid, excludeStatus) { return this.t9r_1.w9q(clazzUid, excludeStatus); }; protoOf(ClazzLogDao_DoorWrapper).x9q = function (clazzUid, excludeStatus, $completion) { return this.t9r_1.x9q(clazzUid, excludeStatus, $completion); }; protoOf(ClazzLogDao_DoorWrapper).y9q = function (clazzUid, excludeStatusFilter) { return this.t9r_1.y9q(clazzUid, excludeStatusFilter); }; protoOf(ClazzLogDao_DoorWrapper).z9q = function (clazzUid, $completion) { return this.t9r_1.z9q(clazzUid, $completion); }; protoOf(ClazzLogDao_DoorWrapper).a9r = function (entityList, $completion) { var tmp = new $upsertListAsyncCOROUTINE$70(this, entityList, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogDao_DoorWrapper).w9s = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$71(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.w9s(entity instanceof ClazzLog ? entity : THROW_CCE(), $completion); }; function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda$lambda$lambda(_result)); } function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzLogUid = $_result.b5o('clazzLogUid'); var _tmp_clazzLogClazzUid = $_result.b5o('clazzLogClazzUid'); var _tmp_logDate = $_result.b5o('logDate'); var _tmp_timeRecorded = $_result.b5o('timeRecorded'); var _tmp_clazzLogDone = $_result.m67('clazzLogDone'); var _tmp_cancellationNote = $_result.b10('cancellationNote'); var _tmp_clazzLogCancelled = $_result.m67('clazzLogCancelled'); var _tmp_clazzLogNumPresent = $_result.a5o('clazzLogNumPresent'); var _tmp_clazzLogNumAbsent = $_result.a5o('clazzLogNumAbsent'); var _tmp_clazzLogNumPartial = $_result.a5o('clazzLogNumPartial'); var _tmp_clazzLogScheduleUid = $_result.b5o('clazzLogScheduleUid'); var _tmp_clazzLogStatusFlag = $_result.a5o('clazzLogStatusFlag'); var _tmp_clazzLogMSQN = $_result.b5o('clazzLogMSQN'); var _tmp_clazzLogLCSN = $_result.b5o('clazzLogLCSN'); var _tmp_clazzLogLCB = $_result.a5o('clazzLogLCB'); var _tmp_clazzLogLastChangedTime = $_result.b5o('clazzLogLastChangedTime'); // Inline function 'kotlin.apply' call var this_0 = new ClazzLog(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.u9r_1 = _tmp_clazzLogUid; this_0.v9r_1 = _tmp_clazzLogClazzUid; this_0.w9r_1 = _tmp_logDate; this_0.x9r_1 = _tmp_timeRecorded; this_0.y9r_1 = _tmp_clazzLogDone; this_0.z9r_1 = _tmp_cancellationNote; this_0.a9s_1 = _tmp_clazzLogCancelled; this_0.b9s_1 = _tmp_clazzLogNumPresent; this_0.c9s_1 = _tmp_clazzLogNumAbsent; this_0.d9s_1 = _tmp_clazzLogNumPartial; this_0.e9s_1 = _tmp_clazzLogScheduleUid; this_0.f9s_1 = _tmp_clazzLogStatusFlag; this_0.g9s_1 = _tmp_clazzLogMSQN; this_0.h9s_1 = _tmp_clazzLogLCSN; this_0.i9s_1 = _tmp_clazzLogLCB; this_0.j9s_1 = _tmp_clazzLogLastChangedTime; return this_0; }; } function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda$lambda$lambda(_result)); } function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda($clazzUid, $excludeStatus, $_limit, $_offset, resultContinuation) { this.f9t_1 = $clazzUid; this.g9t_1 = $excludeStatus; this.h9t_1 = $_limit; this.i9t_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda).k9t = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda).le = function (p1, $completion) { return this.k9t((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.j9t_1.x5i(1, this.f9t_1); this.j9t_1.w5i(2, this.g9t_1); this.j9t_1.w5i(3, this.h9t_1); this.j9t_1.w5i(4, this.i9t_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.j9t_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda(this.f9t_1, this.g9t_1, this.h9t_1, this.i9t_1, completion); i.j9t_1 = _stmt; return i; }; function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda_0($clazzUid, $excludeStatus, $_limit, $_offset, resultContinuation) { var i = new ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda($clazzUid, $excludeStatus, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.k9t(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda($clazzUid, $excludeStatus, resultContinuation) { this.t9t_1 = $clazzUid; this.u9t_1 = $excludeStatus; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.v9t_1.x5i(1, this.t9t_1); this.v9t_1.w5i(2, this.u9t_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.v9t_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda(this.t9t_1, this.u9t_1, completion); i.v9t_1 = _stmt; return i; }; function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda_0($clazzUid, $excludeStatus, resultContinuation) { var i = new ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda($clazzUid, $excludeStatus, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda$lambda(_result) { return mapRows(_result, ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda$lambda$lambda(_result)); } function ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzLogUid = $_result.b5o('clazzLogUid'); var _tmp_clazzLogClazzUid = $_result.b5o('clazzLogClazzUid'); var _tmp_logDate = $_result.b5o('logDate'); var _tmp_timeRecorded = $_result.b5o('timeRecorded'); var _tmp_clazzLogDone = $_result.m67('clazzLogDone'); var _tmp_cancellationNote = $_result.b10('cancellationNote'); var _tmp_clazzLogCancelled = $_result.m67('clazzLogCancelled'); var _tmp_clazzLogNumPresent = $_result.a5o('clazzLogNumPresent'); var _tmp_clazzLogNumAbsent = $_result.a5o('clazzLogNumAbsent'); var _tmp_clazzLogNumPartial = $_result.a5o('clazzLogNumPartial'); var _tmp_clazzLogScheduleUid = $_result.b5o('clazzLogScheduleUid'); var _tmp_clazzLogStatusFlag = $_result.a5o('clazzLogStatusFlag'); var _tmp_clazzLogMSQN = $_result.b5o('clazzLogMSQN'); var _tmp_clazzLogLCSN = $_result.b5o('clazzLogLCSN'); var _tmp_clazzLogLCB = $_result.a5o('clazzLogLCB'); var _tmp_clazzLogLastChangedTime = $_result.b5o('clazzLogLastChangedTime'); // Inline function 'kotlin.apply' call var this_0 = new ClazzLog(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzLogDao_JdbcImpl.findByClazzUidAsync....' call this_0.u9r_1 = _tmp_clazzLogUid; this_0.v9r_1 = _tmp_clazzLogClazzUid; this_0.w9r_1 = _tmp_logDate; this_0.x9r_1 = _tmp_timeRecorded; this_0.y9r_1 = _tmp_clazzLogDone; this_0.z9r_1 = _tmp_cancellationNote; this_0.a9s_1 = _tmp_clazzLogCancelled; this_0.b9s_1 = _tmp_clazzLogNumPresent; this_0.c9s_1 = _tmp_clazzLogNumAbsent; this_0.d9s_1 = _tmp_clazzLogNumPartial; this_0.e9s_1 = _tmp_clazzLogScheduleUid; this_0.f9s_1 = _tmp_clazzLogStatusFlag; this_0.g9s_1 = _tmp_clazzLogMSQN; this_0.h9s_1 = _tmp_clazzLogLCSN; this_0.i9s_1 = _tmp_clazzLogLCB; this_0.j9s_1 = _tmp_clazzLogLastChangedTime; return this_0; }; } function ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda$lambda(_result) { return mapNextRow(_result, false, ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda$lambda$lambda(_result)); } function ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda$lambda$lambda($_result) { return function (it) { return $_result.s75(1); }; } function ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda($clazzUid, $excludeStatusFilter, resultContinuation) { this.e9u_1 = $clazzUid; this.f9u_1 = $excludeStatusFilter; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda).h9u = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda).le = function (p1, $completion) { return this.h9u((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.g9u_1.x5i(1, this.e9u_1); this.g9u_1.w5i(2, this.f9u_1); this.g9u_1.w5i(3, this.f9u_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.g9u_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda).o5g = function (_stmt, completion) { var i = new ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda(this.e9u_1, this.f9u_1, completion); i.g9u_1 = _stmt; return i; }; function ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda_0($clazzUid, $excludeStatusFilter, resultContinuation) { var i = new ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda($clazzUid, $excludeStatusFilter, resultContinuation); var l = function (_stmt, $completion) { return i.h9u(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda$lambda(_result) { var tmp = new Long(0, 0); return mapNextRow(_result, tmp, ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda$lambda$lambda(_result)); } function ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda$lambda$lambda($_result) { return function (it) { return $_result.b5g(1); }; } function ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.i9u_1); } protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO ClazzLog (clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1).n9u = function (stmt, entity) { if (entity.u9r_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.u9r_1); } stmt.x5i(2, entity.v9r_1); stmt.x5i(3, entity.w9r_1); stmt.x5i(4, entity.x9r_1); stmt.k5i(5, entity.y9r_1); stmt.a5j(6, entity.z9r_1); stmt.k5i(7, entity.a9s_1); stmt.w5i(8, entity.b9s_1); stmt.w5i(9, entity.c9s_1); stmt.w5i(10, entity.d9s_1); stmt.x5i(11, entity.e9s_1); stmt.w5i(12, entity.f9s_1); stmt.x5i(13, entity.g9s_1); stmt.x5i(14, entity.h9s_1); stmt.w5i(15, entity.i9s_1); stmt.x5i(16, entity.j9s_1); }; protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1).r5g = function (stmt, entity) { return this.n9u(stmt, entity instanceof ClazzLog ? entity : THROW_CCE()); }; function ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.i9u_1); } protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1).w5h = function (returnsId) { return 'INSERT INTO ClazzLog (clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1).n9u = function (stmt, entity) { if (entity.u9r_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.u9r_1); } stmt.x5i(2, entity.v9r_1); stmt.x5i(3, entity.w9r_1); stmt.x5i(4, entity.x9r_1); stmt.k5i(5, entity.y9r_1); stmt.a5j(6, entity.z9r_1); stmt.k5i(7, entity.a9s_1); stmt.w5i(8, entity.b9s_1); stmt.w5i(9, entity.c9s_1); stmt.w5i(10, entity.d9s_1); stmt.x5i(11, entity.e9s_1); stmt.w5i(12, entity.f9s_1); stmt.x5i(13, entity.g9s_1); stmt.x5i(14, entity.h9s_1); stmt.w5i(15, entity.i9s_1); stmt.x5i(16, entity.j9s_1); }; protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1).r5g = function (stmt, entity) { return this.n9u(stmt, entity instanceof ClazzLog ? entity : THROW_CCE()); }; function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1(this$0, $clazzUid, $excludeStatus) { this.w9u_1 = this$0; this.x9u_1 = $clazzUid; this.y9u_1 = $excludeStatus; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['ClazzLog']; DoorLimitOffsetPagingSource.call(this, this$0.i9u_1, tmp$ret$2); } protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1).z9u = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT ClazzLog.* \n FROM ClazzLog \n WHERE clazzLogClazzUid = CAST(? AS BIGINT)\n AND clazzLog.clazzLogStatusFlag != ?\n ORDER BY ClazzLog.logDate DESC\n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n SELECT ClazzLog.* \n FROM ClazzLog \n WHERE clazzLogClazzUid = ?\n AND clazzLog.clazzLogStatusFlag != ?\n ORDER BY ClazzLog.logDate DESC\n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.w9u_1.i9u_1, tmp, ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda_0(this.x9u_1, this.y9u_1, _limit, _offset, null), $completion); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1).z5q = function (_limit, _offset, $completion) { return this.z9u(_limit, _offset, $completion); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT ClazzLog.* \n FROM ClazzLog \n WHERE clazzLogClazzUid = CAST(? AS BIGINT)\n AND clazzLog.clazzLogStatusFlag != ?\n ORDER BY ClazzLog.logDate DESC\n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n SELECT ClazzLog.* \n FROM ClazzLog \n WHERE clazzLogClazzUid = ?\n AND clazzLog.clazzLogStatusFlag != ?\n ORDER BY ClazzLog.logDate DESC\n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.w9u_1.i9u_1, tmp, ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda_0(this.x9u_1, this.y9u_1, null), $completion); }; function ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda($clazzUid, $excludeStatus, resultContinuation) { this.i9v_1 = $clazzUid; this.j9v_1 = $excludeStatus; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda).k9t = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda).le = function (p1, $completion) { return this.k9t((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.k9v_1.x5i(1, this.i9v_1); this.k9v_1.w5i(2, this.j9v_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.k9v_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda).o5g = function (_stmt, completion) { var i = new ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda(this.i9v_1, this.j9v_1, completion); i.k9v_1 = _stmt; return i; }; function ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda_0($clazzUid, $excludeStatus, resultContinuation) { var i = new ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda($clazzUid, $excludeStatus, resultContinuation); var l = function (_stmt, $completion) { return i.k9t(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda(this$0, $clazzUid, $excludeStatusFilter, resultContinuation) { this.t9v_1 = this$0; this.u9v_1 = $clazzUid; this.v9v_1 = $excludeStatusFilter; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda).w9v = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda).r79 = function ($completion) { return this.w9v($completion); }; protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT EXISTS\n (SELECT ClazzLog.clazzLogUid \n FROM ClazzLog \n WHERE clazzLogClazzUid = CAST(? AS BIGINT) \n AND (? = 0 \n OR ((ClazzLog.clazzLogStatusFlag & ?) = 0))\n )\n ', VOID, VOID, VOID, '\n SELECT EXISTS\n (SELECT ClazzLog.clazzLogUid \n FROM ClazzLog \n WHERE clazzLogClazzUid = ? \n AND (? = 0 \n OR ((ClazzLog.clazzLogStatusFlag & ?) = 0))\n )\n \n', true); suspendResult = prepareAndUseStatementAsync(this.t9v_1.i9u_1, tmp_0, ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda_0(this.u9v_1, this.v9v_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda).q79 = function (completion) { return new ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda(this.t9v_1, this.u9v_1, this.v9v_1, completion); }; function ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda_0(this$0, $clazzUid, $excludeStatusFilter, resultContinuation) { var i = new ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda(this$0, $clazzUid, $excludeStatusFilter, resultContinuation); var l = function ($completion) { return i.w9v($completion); }; l.$arity = 0; return l; } function ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda($clazzUid, resultContinuation) { this.f9w_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda).d5h = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda).le = function (p1, $completion) { return this.d5h((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.g9w_1.x5i(1, this.f9w_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.g9w_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda).o5g = function (_stmt, completion) { var i = new ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda(this.f9w_1, completion); i.g9w_1 = _stmt; return i; }; function ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda_0($clazzUid, resultContinuation) { var i = new ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.d5h(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$72(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.p9w_1 = _this__u8e3s4; this.q9w_1 = entity; } protoOf($insertAsyncCOROUTINE$72).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.p9w_1.k9u_1.y5h(this.q9w_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ClazzLogDao_JdbcImpl(_db) { ClazzLogDao.call(this); this.i9u_1 = _db; var tmp = this; tmp.j9u_1 = new ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1(this); var tmp_0 = this; tmp_0.k9u_1 = new ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1(this); } protoOf(ClazzLogDao_JdbcImpl).a9r = function (entityList, $completion) { return this.j9u_1.b5i(entityList, $completion); }; protoOf(ClazzLogDao_JdbcImpl).w9s = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$72(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.w9s(entity instanceof ClazzLog ? entity : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_JdbcImpl).w9q = function (clazzUid, excludeStatus) { return new ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1(this, clazzUid, excludeStatus); }; protoOf(ClazzLogDao_JdbcImpl).x9q = function (clazzUid, excludeStatus, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ClazzLog.* \n FROM ClazzLog \n WHERE ClazzLog.clazzLogClazzUid = CAST(? AS BIGINT)\n AND clazzLog.clazzLogStatusFlag != ?\n ORDER BY ClazzLog.logDate ASC\n ', VOID, VOID, VOID, '\n SELECT ClazzLog.* \n FROM ClazzLog \n WHERE ClazzLog.clazzLogClazzUid = ?\n AND clazzLog.clazzLogStatusFlag != ?\n ORDER BY ClazzLog.logDate ASC\n \n', true); return prepareAndUseStatementAsync(this.i9u_1, tmp, ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda_0(clazzUid, excludeStatus, null), $completion); }; protoOf(ClazzLogDao_JdbcImpl).y9q = function (clazzUid, excludeStatusFilter) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ClazzLog']; return doorFlow(this.i9u_1, tmp, ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda_0(this, clazzUid, excludeStatusFilter, null)); }; protoOf(ClazzLogDao_JdbcImpl).z9q = function (clazzUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT COALESCE(\n (SELECT ClazzLog.clazzLogUid\n FROM ClazzLog\n WHERE ClazzLog.clazzLogClazzUid = CAST(? AS BIGINT)\n AND (ClazzLog.clazzLogStatusFlag & 8) != 8\n ORDER BY ClazzLog.logDate DESC\n LIMIT 1), 0)\n\n \n ', VOID, VOID, VOID, '\n SELECT COALESCE(\n (SELECT ClazzLog.clazzLogUid\n FROM ClazzLog\n WHERE ClazzLog.clazzLogClazzUid = ?\n AND (ClazzLog.clazzLogStatusFlag & 8) != 8\n ORDER BY ClazzLog.logDate DESC\n LIMIT 1), 0)\n\n \n \n', true); return prepareAndUseStatementAsync(this.i9u_1, tmp, ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda_0(clazzUid, null), $completion); }; function ClazzLogDao_Repo$findByClazzUidAsFactory$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzLogDao_Repo$findByClazzUidAsFactory$slambda(this$0, $clazzUid, $excludeStatus, resultContinuation) { this.z9w_1 = this$0; this.a9x_1 = $clazzUid; this.b9x_1 = $excludeStatus; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_Repo$findByClazzUidAsFactory$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogDao_Repo$findByClazzUidAsFactory$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_Repo$findByClazzUidAsFactory$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.e9x_1 = this.z9w_1.n9x_1; var tmp_1 = this; tmp_1.f9x_1 = 'ClazzLogDao/findByClazzUidAsFactory'; this.md_1 = 4; var tmp_2 = this; tmp_2.g9x_1 = this.z9w_1.p9x_1; var tmp_3 = this; tmp_3.h9x_1 = this.g9x_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.z9w_1.n9x_1.t39(), 'ClazzLogDao/findByClazzUidAsFactory'); doorNodeIdHeader(this_0, this.z9w_1.n9x_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.z9w_1.n9x_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.a9x_1)); parameter(this_0, 'excludeStatus', this.z9w_1.n9x_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.b9x_1)); pagingSourceLoadParameters(this_0, this.z9w_1.n9x_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.c9x_1); tmp_4.i9x_1 = this_0; this.i9x_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.j9x_1 = this.h9x_1; var tmp_6 = this; tmp_6.k9x_1 = this.i9x_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.k9x_1, this.j9x_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.l9x_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.z9w_1.m9x_1, this.l9x_1, this.z9w_1.n9x_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.d9x_1 = endOfPaginationReached(this.l9x_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', ClazzLogDao_Repo$findByClazzUidAsFactory$slambda$lambda(this.e9x_1, this.f9x_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.d9x_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(ClazzLogDao_Repo$findByClazzUidAsFactory$slambda).g87 = function (_pagingParams, completion) { var i = new ClazzLogDao_Repo$findByClazzUidAsFactory$slambda(this.z9w_1, this.a9x_1, this.b9x_1, completion); i.c9x_1 = _pagingParams; return i; }; function ClazzLogDao_Repo$findByClazzUidAsFactory$slambda_0(this$0, $clazzUid, $excludeStatus, resultContinuation) { var i = new ClazzLogDao_Repo$findByClazzUidAsFactory$slambda(this$0, $clazzUid, $excludeStatus, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function ClazzLogDao_Repo$findByClazzUidAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzLogDao_Repo$upsertListAsync$slambda(this$0, $entityList, resultContinuation) { this.a9y_1 = this$0; this.b9y_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_Repo$upsertListAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogDao_Repo$upsertListAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ClazzLogDao_Repo$upsertListAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.a9y_1.o9x_1.a9r(this.b9y_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzLogDao_Repo$upsertListAsync$slambda).q79 = function (completion) { return new ClazzLogDao_Repo$upsertListAsync$slambda(this.a9y_1, this.b9y_1, completion); }; function ClazzLogDao_Repo$upsertListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new ClazzLogDao_Repo$upsertListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ClazzLogDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.k9y_1 = this$0; this.l9y_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(ClazzLogDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.k9y_1.o9x_1.insertAsync(this.l9y_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ClazzLogDao_Repo$insertAsync$slambda).q79 = function (completion) { return new ClazzLogDao_Repo$insertAsync$slambda(this.k9y_1, this.l9y_1, completion); }; function ClazzLogDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ClazzLogDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $findByClazzUidAsyncCOROUTINE$75(_this__u8e3s4, clazzUid, excludeStatus, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.u9y_1 = _this__u8e3s4; this.v9y_1 = clazzUid; this.w9y_1 = excludeStatus; } protoOf($findByClazzUidAsyncCOROUTINE$75).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.x9y_1 = this.u9y_1.n9x_1; var tmp_1 = this; tmp_1.y9y_1 = 'ClazzLogDao/findByClazzUidAsync'; this.md_1 = 3; var tmp_2 = this; tmp_2.z9y_1 = this.u9y_1.p9x_1; var tmp_3 = this; tmp_3.a9z_1 = this.z9y_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.u9y_1.n9x_1.t39(), 'ClazzLogDao/findByClazzUidAsync'); doorNodeIdHeader(this_0, this.u9y_1.n9x_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.u9y_1.n9x_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.v9y_1)); parameter(this_0, 'excludeStatus', this.u9y_1.n9x_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.w9y_1)); tmp_4.b9z_1 = this_0; this.b9z_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.c9z_1 = this.a9z_1; var tmp_6 = this; tmp_6.d9z_1 = this.b9z_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.d9z_1, this.c9z_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.e9z_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.u9y_1.m9x_1, this.e9z_1, this.u9y_1.n9x_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.f9z_1 = this.od_1; Napier_getInstance().e5f(this.f9z_1, 'DoorLog', ClazzLogDao_Repo$findByClazzUidAsync$lambda(this.x9y_1, this.y9y_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.u9y_1.o9x_1.x9q(this.v9y_1, this.w9y_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $findMostRecentClazzLogToEditUidCOROUTINE$78(_this__u8e3s4, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.o9z_1 = _this__u8e3s4; this.p9z_1 = clazzUid; } protoOf($findMostRecentClazzLogToEditUidCOROUTINE$78).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.o9z_1.o9x_1.z9q(this.p9z_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$79(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.y9z_1 = _this__u8e3s4; this.z9z_1 = entity; } protoOf($insertAsyncCOROUTINE$79).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.y9z_1.n9x_1, 'ClazzLog', ClazzLogDao_Repo$insertAsync$slambda_0(this.y9z_1, this.z9z_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ClazzLogDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ClazzLogDao.call(this); this.m9x_1 = _db; this.n9x_1 = _repo; this.o9x_1 = _dao; this.p9x_1 = _httpClient; this.q9x_1 = _clientId; this.r9x_1 = _endpoint; } protoOf(ClazzLogDao_Repo).w9q = function (clazzUid, excludeStatus) { var tmp = this.o9x_1.w9q(clazzUid, excludeStatus); return new DoorRepositoryReplicatePullPagingSource(this.n9x_1, 'ClazzLogDao/findByClazzUidAsFactory', tmp, ClazzLogDao_Repo$findByClazzUidAsFactory$slambda_0(this, clazzUid, excludeStatus, null)); }; protoOf(ClazzLogDao_Repo).x9q = function (clazzUid, excludeStatus, $completion) { var tmp = new $findByClazzUidAsyncCOROUTINE$75(this, clazzUid, excludeStatus, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogDao_Repo).y9q = function (clazzUid, excludeStatusFilter) { var _result = this.o9x_1.y9q(clazzUid, excludeStatusFilter); return _result; }; protoOf(ClazzLogDao_Repo).z9q = function (clazzUid, $completion) { var tmp = new $findMostRecentClazzLogToEditUidCOROUTINE$78(this, clazzUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogDao_Repo).a9r = function (entityList, $completion) { return withRepoChangeMonitorAsync(this.n9x_1, 'ClazzLog', ClazzLogDao_Repo$upsertListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(ClazzLogDao_Repo).w9s = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$79(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ClazzLogDao_Repo).insertAsync = function (entity, $completion) { return this.w9s(entity instanceof ClazzLog ? entity : THROW_CCE(), $completion); }; function CommentsDao() { } function $insertAsyncCOROUTINE$80(_this__u8e3s4, comments, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.na0_1 = _this__u8e3s4; this.oa0_1 = comments; } protoOf($insertAsyncCOROUTINE$80).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.pa0_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.na0_1.ra0_1)); if (this.oa0_1.ta0_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.pa0_1.r63(208, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.qa0_1 = suspendResult; this.oa0_1.ta0_1 = this.qa0_1; this.ld_1 = 2; continue $sm; case 2: this.oa0_1.da1_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.na0_1.sa0_1.aa0(this.oa0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.oa0_1.ta0_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CommentsDao_DoorWrapper(_db, _dao) { CommentsDao.call(this); this.ra0_1 = _db; this.sa0_1 = _dao; } protoOf(CommentsDao_DoorWrapper).aa0 = function (comments, $completion) { var tmp = new $insertAsyncCOROUTINE$80(this, comments, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CommentsDao_DoorWrapper).ba0 = function (uid, deleted, changeTime, $completion) { return this.sa0_1.ba0(uid, deleted, changeTime, $completion); }; protoOf(CommentsDao_DoorWrapper).ca0 = function (accountPersonUid, assignmentUid, includeDeleted) { return this.sa0_1.ca0(accountPersonUid, assignmentUid, includeDeleted); }; protoOf(CommentsDao_DoorWrapper).da0 = function (submitterUid, assignmentUid, includeDeleted) { return this.sa0_1.da0(submitterUid, assignmentUid, includeDeleted); }; protoOf(CommentsDao_DoorWrapper).ea0 = function (assignmentUid, includeDeleted) { return this.sa0_1.ea0(assignmentUid, includeDeleted); }; function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda$lambda(_result) { return mapRows(_result, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda$lambda$lambda(_result)); } function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstNames = $_result.b10('firstNames'); var _tmp_lastName = $_result.b10('lastName'); var _tmp_pictureUri = $_result.b10('pictureUri'); var _tmp_Comments_nullCount = 0; var _tmp_commentsUid = $_result.b5o('commentsUid'); var tmp; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_commentsText = $_result.b10('commentsText'); var tmp_0; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_commentsEntityUid = $_result.b5o('commentsEntityUid'); var tmp_1; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_commentsStatus = $_result.a5o('commentsStatus'); var tmp_2; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_commentsFromPersonUid = $_result.b5o('commentsFromPersonUid'); var tmp_3; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_commentsForSubmitterUid = $_result.b5o('commentsForSubmitterUid'); var tmp_4; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_commentsFromSubmitterUid = $_result.b5o('commentsFromSubmitterUid'); var tmp_5; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_commentsFlagged = $_result.m67('commentsFlagged'); var tmp_6; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_commentsDeleted = $_result.m67('commentsDeleted'); var tmp_7; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_commentsDateTimeAdded = $_result.b5o('commentsDateTimeAdded'); var tmp_8; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_commentsLct = $_result.b5o('commentsLct'); var tmp_9; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_Comments_isAllNull = _tmp_Comments_nullCount === 11; // Inline function 'kotlin.apply' call var this_0 = new CommentsAndName(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.fa1_1 = _tmp_firstNames; this_0.ga1_1 = _tmp_lastName; this_0.ha1_1 = _tmp_pictureUri; if (!_tmp_Comments_isAllNull) { var tmp_10 = this_0; // Inline function 'kotlin.apply' call var this_1 = new Comments(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.ta0_1 = _tmp_commentsUid; this_1.ua0_1 = _tmp_commentsText; this_1.va0_1 = _tmp_commentsEntityUid; this_1.wa0_1 = _tmp_commentsStatus; this_1.xa0_1 = _tmp_commentsFromPersonUid; this_1.ya0_1 = _tmp_commentsForSubmitterUid; this_1.za0_1 = _tmp_commentsFromSubmitterUid; this_1.aa1_1 = _tmp_commentsFlagged; this_1.ba1_1 = _tmp_commentsDeleted; this_1.ca1_1 = _tmp_commentsDateTimeAdded; this_1.da1_1 = _tmp_commentsLct; tmp_10.ea1_1 = this_1; } return this_0; }; } function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda$lambda$lambda(_result)); } function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda($assignmentUid, $accountPersonUid, $includeDeleted, $_limit, $_offset, resultContinuation) { this.qa1_1 = $assignmentUid; this.ra1_1 = $accountPersonUid; this.sa1_1 = $includeDeleted; this.ta1_1 = $_limit; this.ua1_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda).wa1 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda).le = function (p1, $completion) { return this.wa1((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.va1_1.x5i(1, this.qa1_1); this.va1_1.x5i(2, this.ra1_1); this.va1_1.x5i(3, this.qa1_1); this.va1_1.x5i(4, this.qa1_1); this.va1_1.x5i(5, this.ra1_1); this.va1_1.x5i(6, this.qa1_1); this.va1_1.x5i(7, this.ra1_1); this.va1_1.x5i(8, this.qa1_1); this.va1_1.x5i(9, this.qa1_1); this.va1_1.x5i(10, this.ra1_1); this.va1_1.x5i(11, this.qa1_1); this.va1_1.k5i(12, this.sa1_1); this.va1_1.w5i(13, this.ta1_1); this.va1_1.w5i(14, this.ua1_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.va1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda(this.qa1_1, this.ra1_1, this.sa1_1, this.ta1_1, this.ua1_1, completion); i.va1_1 = _stmt; return i; }; function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda_0($assignmentUid, $accountPersonUid, $includeDeleted, $_limit, $_offset, resultContinuation) { var i = new CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda($assignmentUid, $accountPersonUid, $includeDeleted, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.wa1(_stmt, $completion); }; l.$arity = 1; return l; } function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda($assignmentUid, $accountPersonUid, $includeDeleted, resultContinuation) { this.fa2_1 = $assignmentUid; this.ga2_1 = $accountPersonUid; this.ha2_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ia2_1.x5i(1, this.fa2_1); this.ia2_1.x5i(2, this.ga2_1); this.ia2_1.x5i(3, this.fa2_1); this.ia2_1.x5i(4, this.fa2_1); this.ia2_1.x5i(5, this.ga2_1); this.ia2_1.x5i(6, this.fa2_1); this.ia2_1.x5i(7, this.ga2_1); this.ia2_1.x5i(8, this.fa2_1); this.ia2_1.x5i(9, this.fa2_1); this.ia2_1.x5i(10, this.ga2_1); this.ia2_1.x5i(11, this.fa2_1); this.ia2_1.k5i(12, this.ha2_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.ia2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda(this.fa2_1, this.ga2_1, this.ha2_1, completion); i.ia2_1 = _stmt; return i; }; function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda_0($assignmentUid, $accountPersonUid, $includeDeleted, resultContinuation) { var i = new CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda($assignmentUid, $accountPersonUid, $includeDeleted, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda$lambda(_result) { return mapRows(_result, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda$lambda$lambda(_result)); } function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstNames = $_result.b10('firstNames'); var _tmp_lastName = $_result.b10('lastName'); var _tmp_pictureUri = $_result.b10('pictureUri'); var _tmp_Comments_nullCount = 0; var _tmp_commentsUid = $_result.b5o('commentsUid'); var tmp; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_commentsText = $_result.b10('commentsText'); var tmp_0; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_commentsEntityUid = $_result.b5o('commentsEntityUid'); var tmp_1; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_commentsStatus = $_result.a5o('commentsStatus'); var tmp_2; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_commentsFromPersonUid = $_result.b5o('commentsFromPersonUid'); var tmp_3; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_commentsForSubmitterUid = $_result.b5o('commentsForSubmitterUid'); var tmp_4; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_commentsFromSubmitterUid = $_result.b5o('commentsFromSubmitterUid'); var tmp_5; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_commentsFlagged = $_result.m67('commentsFlagged'); var tmp_6; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_commentsDeleted = $_result.m67('commentsDeleted'); var tmp_7; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_commentsDateTimeAdded = $_result.b5o('commentsDateTimeAdded'); var tmp_8; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_commentsLct = $_result.b5o('commentsLct'); var tmp_9; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_Comments_isAllNull = _tmp_Comments_nullCount === 11; // Inline function 'kotlin.apply' call var this_0 = new CommentsAndName(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.fa1_1 = _tmp_firstNames; this_0.ga1_1 = _tmp_lastName; this_0.ha1_1 = _tmp_pictureUri; if (!_tmp_Comments_isAllNull) { var tmp_10 = this_0; // Inline function 'kotlin.apply' call var this_1 = new Comments(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.ta0_1 = _tmp_commentsUid; this_1.ua0_1 = _tmp_commentsText; this_1.va0_1 = _tmp_commentsEntityUid; this_1.wa0_1 = _tmp_commentsStatus; this_1.xa0_1 = _tmp_commentsFromPersonUid; this_1.ya0_1 = _tmp_commentsForSubmitterUid; this_1.za0_1 = _tmp_commentsFromSubmitterUid; this_1.aa1_1 = _tmp_commentsFlagged; this_1.ba1_1 = _tmp_commentsDeleted; this_1.ca1_1 = _tmp_commentsDateTimeAdded; this_1.da1_1 = _tmp_commentsLct; tmp_10.ea1_1 = this_1; } return this_0; }; } function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda$lambda$lambda(_result)); } function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda($submitterUid, $assignmentUid, $includeDeleted, $_limit, $_offset, resultContinuation) { this.ra2_1 = $submitterUid; this.sa2_1 = $assignmentUid; this.ta2_1 = $includeDeleted; this.ua2_1 = $_limit; this.va2_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda).wa1 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda).le = function (p1, $completion) { return this.wa1((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.wa2_1.x5i(1, this.ra2_1); this.wa2_1.x5i(2, this.sa2_1); this.wa2_1.k5i(3, this.ta2_1); this.wa2_1.w5i(4, this.ua2_1); this.wa2_1.w5i(5, this.va2_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.wa2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda(this.ra2_1, this.sa2_1, this.ta2_1, this.ua2_1, this.va2_1, completion); i.wa2_1 = _stmt; return i; }; function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda_0($submitterUid, $assignmentUid, $includeDeleted, $_limit, $_offset, resultContinuation) { var i = new CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda($submitterUid, $assignmentUid, $includeDeleted, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.wa1(_stmt, $completion); }; l.$arity = 1; return l; } function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda($submitterUid, $assignmentUid, $includeDeleted, resultContinuation) { this.fa3_1 = $submitterUid; this.ga3_1 = $assignmentUid; this.ha3_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ia3_1.x5i(1, this.fa3_1); this.ia3_1.x5i(2, this.ga3_1); this.ia3_1.k5i(3, this.ha3_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.ia3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda(this.fa3_1, this.ga3_1, this.ha3_1, completion); i.ia3_1 = _stmt; return i; }; function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda_0($submitterUid, $assignmentUid, $includeDeleted, resultContinuation) { var i = new CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda($submitterUid, $assignmentUid, $includeDeleted, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda$lambda(_result) { return mapRows(_result, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda$lambda$lambda(_result)); } function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstNames = $_result.b10('firstNames'); var _tmp_lastName = $_result.b10('lastName'); var _tmp_pictureUri = $_result.b10('pictureUri'); var _tmp_Comments_nullCount = 0; var _tmp_commentsUid = $_result.b5o('commentsUid'); var tmp; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_commentsText = $_result.b10('commentsText'); var tmp_0; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_commentsEntityUid = $_result.b5o('commentsEntityUid'); var tmp_1; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_commentsStatus = $_result.a5o('commentsStatus'); var tmp_2; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_commentsFromPersonUid = $_result.b5o('commentsFromPersonUid'); var tmp_3; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_commentsForSubmitterUid = $_result.b5o('commentsForSubmitterUid'); var tmp_4; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_commentsFromSubmitterUid = $_result.b5o('commentsFromSubmitterUid'); var tmp_5; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_commentsFlagged = $_result.m67('commentsFlagged'); var tmp_6; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_commentsDeleted = $_result.m67('commentsDeleted'); var tmp_7; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_commentsDateTimeAdded = $_result.b5o('commentsDateTimeAdded'); var tmp_8; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_commentsLct = $_result.b5o('commentsLct'); var tmp_9; if ($_result.t68()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_Comments_isAllNull = _tmp_Comments_nullCount === 11; // Inline function 'kotlin.apply' call var this_0 = new CommentsAndName(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.fa1_1 = _tmp_firstNames; this_0.ga1_1 = _tmp_lastName; this_0.ha1_1 = _tmp_pictureUri; if (!_tmp_Comments_isAllNull) { var tmp_10 = this_0; // Inline function 'kotlin.apply' call var this_1 = new Comments(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.ta0_1 = _tmp_commentsUid; this_1.ua0_1 = _tmp_commentsText; this_1.va0_1 = _tmp_commentsEntityUid; this_1.wa0_1 = _tmp_commentsStatus; this_1.xa0_1 = _tmp_commentsFromPersonUid; this_1.ya0_1 = _tmp_commentsForSubmitterUid; this_1.za0_1 = _tmp_commentsFromSubmitterUid; this_1.aa1_1 = _tmp_commentsFlagged; this_1.ba1_1 = _tmp_commentsDeleted; this_1.ca1_1 = _tmp_commentsDateTimeAdded; this_1.da1_1 = _tmp_commentsLct; tmp_10.ea1_1 = this_1; } return this_0; }; } function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda$lambda$lambda(_result)); } function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda($assignmentUid, $includeDeleted, $_limit, $_offset, resultContinuation) { this.ra3_1 = $assignmentUid; this.sa3_1 = $includeDeleted; this.ta3_1 = $_limit; this.ua3_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda).wa1 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda).le = function (p1, $completion) { return this.wa1((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.va3_1.x5i(1, this.ra3_1); this.va3_1.k5i(2, this.sa3_1); this.va3_1.w5i(3, this.ta3_1); this.va3_1.w5i(4, this.ua3_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.va3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda(this.ra3_1, this.sa3_1, this.ta3_1, this.ua3_1, completion); i.va3_1 = _stmt; return i; }; function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda_0($assignmentUid, $includeDeleted, $_limit, $_offset, resultContinuation) { var i = new CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda($assignmentUid, $includeDeleted, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.wa1(_stmt, $completion); }; l.$arity = 1; return l; } function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda($assignmentUid, $includeDeleted, resultContinuation) { this.ea4_1 = $assignmentUid; this.fa4_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ga4_1.x5i(1, this.ea4_1); this.ga4_1.k5i(2, this.fa4_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.ga4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda(this.ea4_1, this.fa4_1, completion); i.ga4_1 = _stmt; return i; }; function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda_0($assignmentUid, $includeDeleted, resultContinuation) { var i = new CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda($assignmentUid, $includeDeleted, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function CommentsDao_JdbcImpl$_insertAdapterComments_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.ha4_1); } protoOf(CommentsDao_JdbcImpl$_insertAdapterComments_abort$1).w5h = function (returnsId) { return 'INSERT INTO Comments (commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(CommentsDao_JdbcImpl$_insertAdapterComments_abort$1).la4 = function (stmt, entity) { if (entity.ta0_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.ta0_1); } stmt.a5j(2, entity.ua0_1); stmt.x5i(3, entity.va0_1); stmt.w5i(4, entity.wa0_1); stmt.x5i(5, entity.xa0_1); stmt.x5i(6, entity.ya0_1); stmt.x5i(7, entity.za0_1); stmt.k5i(8, entity.aa1_1); stmt.k5i(9, entity.ba1_1); stmt.x5i(10, entity.ca1_1); stmt.x5i(11, entity.da1_1); }; protoOf(CommentsDao_JdbcImpl$_insertAdapterComments_abort$1).r5g = function (stmt, entity) { return this.la4(stmt, entity instanceof Comments ? entity : THROW_CCE()); }; function CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda($deleted, $changeTime, $uid, resultContinuation) { this.ua4_1 = $deleted; this.va4_1 = $changeTime; this.wa4_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.xa4_1.k5i(1, this.ua4_1); this.xa4_1.x5i(2, this.va4_1); this.xa4_1.x5i(3, this.wa4_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.xa4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda).o5g = function (_stmt, completion) { var i = new CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda(this.ua4_1, this.va4_1, this.wa4_1, completion); i.xa4_1 = _stmt; return i; }; function CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda_0($deleted, $changeTime, $uid, resultContinuation) { var i = new CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda($deleted, $changeTime, $uid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1(this$0, $assignmentUid, $accountPersonUid, $includeDeleted) { this.ea5_1 = this$0; this.fa5_1 = $assignmentUid; this.ga5_1 = $accountPersonUid; this.ha5_1 = $includeDeleted; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['ClazzAssignment', 'CourseGroupMember', 'Comments', 'ClazzEnrolment', 'Person', 'PersonPicture']; DoorLimitOffsetPagingSource.call(this, this$0.ha4_1, tmp$ret$2); } protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1).ia5 = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsForSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n )\n AND Comments.commentsForSubmitterUid != 0\n AND Comments.commentsEntityUid = CAST(? AS BIGINT)\n AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1) \n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsForSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n )\n AND Comments.commentsForSubmitterUid != 0\n AND Comments.commentsEntityUid = ?\n AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1) \n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.ea5_1.ha4_1, tmp, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda_0(this.fa5_1, this.ga5_1, this.ha5_1, _limit, _offset, null), $completion); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1).z5q = function (_limit, _offset, $completion) { return this.ia5(_limit, _offset, $completion); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsForSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n )\n AND Comments.commentsForSubmitterUid != 0\n AND Comments.commentsEntityUid = CAST(? AS BIGINT)\n AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1) \n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsForSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n )\n AND Comments.commentsForSubmitterUid != 0\n AND Comments.commentsEntityUid = ?\n AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1) \n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.ea5_1.ha4_1, tmp, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda_0(this.fa5_1, this.ga5_1, this.ha5_1, null), $completion); }; function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1(this$0, $submitterUid, $assignmentUid, $includeDeleted) { this.pa5_1 = this$0; this.qa5_1 = $submitterUid; this.ra5_1 = $assignmentUid; this.sa5_1 = $includeDeleted; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Comments', 'Person', 'PersonPicture']; DoorLimitOffsetPagingSource.call(this, this$0.ha4_1, tmp$ret$2); } protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1).ia5 = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsForSubmitterUid = CAST(? AS BIGINT)\n AND Comments.commentsEntityUid = CAST(? AS BIGINT)\n AND (NOT Comments.commentsDeleted OR CAST(? AS INTEGER) = 1)\n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsForSubmitterUid = ?\n AND Comments.commentsEntityUid = ?\n AND (NOT Comments.commentsDeleted OR CAST(? AS INTEGER) = 1)\n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.pa5_1.ha4_1, tmp, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda_0(this.qa5_1, this.ra5_1, this.sa5_1, _limit, _offset, null), $completion); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1).z5q = function (_limit, _offset, $completion) { return this.ia5(_limit, _offset, $completion); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsForSubmitterUid = CAST(? AS BIGINT)\n AND Comments.commentsEntityUid = CAST(? AS BIGINT)\n AND (NOT Comments.commentsDeleted OR CAST(? AS INTEGER) = 1)\n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsForSubmitterUid = ?\n AND Comments.commentsEntityUid = ?\n AND (NOT Comments.commentsDeleted OR CAST(? AS INTEGER) = 1)\n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.pa5_1.ha4_1, tmp, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda_0(this.qa5_1, this.ra5_1, this.sa5_1, null), $completion); }; function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1(this$0, $assignmentUid, $includeDeleted) { this.za5_1 = this$0; this.aa6_1 = $assignmentUid; this.ba6_1 = $includeDeleted; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Comments', 'Person', 'PersonPicture']; DoorLimitOffsetPagingSource.call(this, this$0.ha4_1, tmp$ret$2); } protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1).ia5 = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsEntityUid = CAST(? AS BIGINT)\n AND Comments.commentsForSubmitterUid = 0\n AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1)\n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsEntityUid = ?\n AND Comments.commentsForSubmitterUid = 0\n AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1)\n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.za5_1.ha4_1, tmp, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda_0(this.aa6_1, this.ba6_1, _limit, _offset, null), $completion); }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1).z5q = function (_limit, _offset, $completion) { return this.ia5(_limit, _offset, $completion); }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsEntityUid = CAST(? AS BIGINT)\n AND Comments.commentsForSubmitterUid = 0\n AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1)\n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsEntityUid = ?\n AND Comments.commentsForSubmitterUid = 0\n AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1)\n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.za5_1.ha4_1, tmp, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda_0(this.aa6_1, this.ba6_1, null), $completion); }; function $insertAsyncCOROUTINE$81(_this__u8e3s4, comments, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ka6_1 = _this__u8e3s4; this.la6_1 = comments; } protoOf($insertAsyncCOROUTINE$81).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.ka6_1.ia4_1.y5h(this.la6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateDeletedByCommentUidCOROUTINE$82(_this__u8e3s4, uid, deleted, changeTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ua6_1 = _this__u8e3s4; this.va6_1 = uid; this.wa6_1 = deleted; this.xa6_1 = changeTime; } protoOf($updateDeletedByCommentUidCOROUTINE$82).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE Comments \n SET commentsDeleted = ?,\n commentsLct = CAST(? AS BIGINT)\n WHERE Comments.commentsUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n UPDATE Comments \n SET commentsDeleted = ?,\n commentsLct = ?\n WHERE Comments.commentsUid = ?\n \n', false); suspendResult = prepareAndUseStatementAsync(this.ua6_1.ha4_1, tmp_0, CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda_0(this.wa6_1, this.xa6_1, this.va6_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CommentsDao_JdbcImpl(_db) { CommentsDao.call(this); this.ha4_1 = _db; var tmp = this; tmp.ia4_1 = new CommentsDao_JdbcImpl$_insertAdapterComments_abort$1(this); } protoOf(CommentsDao_JdbcImpl).aa0 = function (comments, $completion) { var tmp = new $insertAsyncCOROUTINE$81(this, comments, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CommentsDao_JdbcImpl).ba0 = function (uid, deleted, changeTime, $completion) { var tmp = new $updateDeletedByCommentUidCOROUTINE$82(this, uid, deleted, changeTime, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CommentsDao_JdbcImpl).ca0 = function (accountPersonUid, assignmentUid, includeDeleted) { return new CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1(this, assignmentUid, accountPersonUid, includeDeleted); }; protoOf(CommentsDao_JdbcImpl).da0 = function (submitterUid, assignmentUid, includeDeleted) { return new CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1(this, submitterUid, assignmentUid, includeDeleted); }; protoOf(CommentsDao_JdbcImpl).ea0 = function (assignmentUid, includeDeleted) { return new CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1(this, assignmentUid, includeDeleted); }; function CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CommentsDao_Repo$insertAsync$slambda(this$0, $comments, resultContinuation) { this.ga7_1 = this$0; this.ha7_1 = $comments; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CommentsDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(CommentsDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.ga7_1.ka7_1.aa0(this.ha7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CommentsDao_Repo$insertAsync$slambda).q79 = function (completion) { return new CommentsDao_Repo$insertAsync$slambda(this.ga7_1, this.ha7_1, completion); }; function CommentsDao_Repo$insertAsync$slambda_0(this$0, $comments, resultContinuation) { var i = new CommentsDao_Repo$insertAsync$slambda(this$0, $comments, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function CommentsDao_Repo$updateDeletedByCommentUid$slambda(this$0, $uid, $deleted, $changeTime, resultContinuation) { this.wa7_1 = this$0; this.xa7_1 = $uid; this.ya7_1 = $deleted; this.za7_1 = $changeTime; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_Repo$updateDeletedByCommentUid$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CommentsDao_Repo$updateDeletedByCommentUid$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CommentsDao_Repo$updateDeletedByCommentUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.wa7_1.ka7_1.ba0(this.xa7_1, this.ya7_1, this.za7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CommentsDao_Repo$updateDeletedByCommentUid$slambda).q79 = function (completion) { return new CommentsDao_Repo$updateDeletedByCommentUid$slambda(this.wa7_1, this.xa7_1, this.ya7_1, this.za7_1, completion); }; function CommentsDao_Repo$updateDeletedByCommentUid$slambda_0(this$0, $uid, $deleted, $changeTime, resultContinuation) { var i = new CommentsDao_Repo$updateDeletedByCommentUid$slambda(this$0, $uid, $deleted, $changeTime, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda(this$0, $accountPersonUid, $assignmentUid, $includeDeleted, resultContinuation) { this.ia8_1 = this$0; this.ja8_1 = $accountPersonUid; this.ka8_1 = $assignmentUid; this.la8_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.oa8_1 = this.ia8_1.ja7_1; var tmp_1 = this; tmp_1.pa8_1 = 'CommentsDao/findPrivateCommentsForUserByAssignmentUid'; this.md_1 = 4; var tmp_2 = this; tmp_2.qa8_1 = this.ia8_1.la7_1; var tmp_3 = this; tmp_3.ra8_1 = this.qa8_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.ia8_1.ja7_1.t39(), 'CommentsDao/findPrivateCommentsForUserByAssignmentUid'); doorNodeIdHeader(this_0, this.ia8_1.ja7_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.ia8_1.ja7_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ja8_1)); parameter(this_0, 'assignmentUid', this.ia8_1.ja7_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ka8_1)); parameter(this_0, 'includeDeleted', this.ia8_1.ja7_1.t39().a67_1.b46(serializer_2(BooleanCompanionObject_instance), this.la8_1)); pagingSourceLoadParameters(this_0, this.ia8_1.ja7_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.ma8_1); tmp_4.sa8_1 = this_0; this.sa8_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.ta8_1 = this.ra8_1; var tmp_6 = this; tmp_6.ua8_1 = this.sa8_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.ua8_1, this.ta8_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.va8_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.ia8_1.ia7_1, this.va8_1, this.ia8_1.ja7_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.na8_1 = endOfPaginationReached(this.va8_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda$lambda(this.oa8_1, this.pa8_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.na8_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda).g87 = function (_pagingParams, completion) { var i = new CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda(this.ia8_1, this.ja8_1, this.ka8_1, this.la8_1, completion); i.ma8_1 = _pagingParams; return i; }; function CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda_0(this$0, $accountPersonUid, $assignmentUid, $includeDeleted, resultContinuation) { var i = new CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda(this$0, $accountPersonUid, $assignmentUid, $includeDeleted, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda(this$0, $submitterUid, $assignmentUid, $includeDeleted, resultContinuation) { this.ea9_1 = this$0; this.fa9_1 = $submitterUid; this.ga9_1 = $assignmentUid; this.ha9_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.ka9_1 = this.ea9_1.ja7_1; var tmp_1 = this; tmp_1.la9_1 = 'CommentsDao/findPrivateCommentsForSubmitterByAssignmentUid'; this.md_1 = 4; var tmp_2 = this; tmp_2.ma9_1 = this.ea9_1.la7_1; var tmp_3 = this; tmp_3.na9_1 = this.ma9_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.ea9_1.ja7_1.t39(), 'CommentsDao/findPrivateCommentsForSubmitterByAssignmentUid'); doorNodeIdHeader(this_0, this.ea9_1.ja7_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'submitterUid', this.ea9_1.ja7_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.fa9_1)); parameter(this_0, 'assignmentUid', this.ea9_1.ja7_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ga9_1)); parameter(this_0, 'includeDeleted', this.ea9_1.ja7_1.t39().a67_1.b46(serializer_2(BooleanCompanionObject_instance), this.ha9_1)); pagingSourceLoadParameters(this_0, this.ea9_1.ja7_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.ia9_1); tmp_4.oa9_1 = this_0; this.oa9_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.pa9_1 = this.na9_1; var tmp_6 = this; tmp_6.qa9_1 = this.oa9_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.qa9_1, this.pa9_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.ra9_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.ea9_1.ia7_1, this.ra9_1, this.ea9_1.ja7_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.ja9_1 = endOfPaginationReached(this.ra9_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda$lambda(this.ka9_1, this.la9_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.ja9_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda).g87 = function (_pagingParams, completion) { var i = new CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda(this.ea9_1, this.fa9_1, this.ga9_1, this.ha9_1, completion); i.ia9_1 = _pagingParams; return i; }; function CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda_0(this$0, $submitterUid, $assignmentUid, $includeDeleted, resultContinuation) { var i = new CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda(this$0, $submitterUid, $assignmentUid, $includeDeleted, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda(this$0, $assignmentUid, $includeDeleted, resultContinuation) { this.aaa_1 = this$0; this.baa_1 = $assignmentUid; this.caa_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.faa_1 = this.aaa_1.ja7_1; var tmp_1 = this; tmp_1.gaa_1 = 'CommentsDao/findCourseCommentsByAssignmentUid'; this.md_1 = 4; var tmp_2 = this; tmp_2.haa_1 = this.aaa_1.la7_1; var tmp_3 = this; tmp_3.iaa_1 = this.haa_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.aaa_1.ja7_1.t39(), 'CommentsDao/findCourseCommentsByAssignmentUid'); doorNodeIdHeader(this_0, this.aaa_1.ja7_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'assignmentUid', this.aaa_1.ja7_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.baa_1)); parameter(this_0, 'includeDeleted', this.aaa_1.ja7_1.t39().a67_1.b46(serializer_2(BooleanCompanionObject_instance), this.caa_1)); pagingSourceLoadParameters(this_0, this.aaa_1.ja7_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.daa_1); tmp_4.jaa_1 = this_0; this.jaa_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.kaa_1 = this.iaa_1; var tmp_6 = this; tmp_6.laa_1 = this.jaa_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.laa_1, this.kaa_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.maa_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.aaa_1.ia7_1, this.maa_1, this.aaa_1.ja7_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.eaa_1 = endOfPaginationReached(this.maa_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda$lambda(this.faa_1, this.gaa_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.eaa_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda).g87 = function (_pagingParams, completion) { var i = new CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda(this.aaa_1, this.baa_1, this.caa_1, completion); i.daa_1 = _pagingParams; return i; }; function CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda_0(this$0, $assignmentUid, $includeDeleted, resultContinuation) { var i = new CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda(this$0, $assignmentUid, $includeDeleted, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$83(_this__u8e3s4, comments, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.vaa_1 = _this__u8e3s4; this.waa_1 = comments; } protoOf($insertAsyncCOROUTINE$83).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.vaa_1.ja7_1, 'Comments', CommentsDao_Repo$insertAsync$slambda_0(this.vaa_1, this.waa_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CommentsDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CommentsDao.call(this); this.ia7_1 = _db; this.ja7_1 = _repo; this.ka7_1 = _dao; this.la7_1 = _httpClient; this.ma7_1 = _clientId; this.na7_1 = _endpoint; } protoOf(CommentsDao_Repo).aa0 = function (comments, $completion) { var tmp = new $insertAsyncCOROUTINE$83(this, comments, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CommentsDao_Repo).ba0 = function (uid, deleted, changeTime, $completion) { return withRepoChangeMonitorAsync(this.ja7_1, 'Comments', CommentsDao_Repo$updateDeletedByCommentUid$slambda_0(this, uid, deleted, changeTime, null), $completion); }; protoOf(CommentsDao_Repo).ca0 = function (accountPersonUid, assignmentUid, includeDeleted) { var tmp = this.ka7_1.ca0(accountPersonUid, assignmentUid, includeDeleted); return new DoorRepositoryReplicatePullPagingSource(this.ja7_1, 'CommentsDao/findPrivateCommentsForUserByAssignmentUid', tmp, CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda_0(this, accountPersonUid, assignmentUid, includeDeleted, null)); }; protoOf(CommentsDao_Repo).da0 = function (submitterUid, assignmentUid, includeDeleted) { var tmp = this.ka7_1.da0(submitterUid, assignmentUid, includeDeleted); return new DoorRepositoryReplicatePullPagingSource(this.ja7_1, 'CommentsDao/findPrivateCommentsForSubmitterByAssignmentUid', tmp, CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda_0(this, submitterUid, assignmentUid, includeDeleted, null)); }; protoOf(CommentsDao_Repo).ea0 = function (assignmentUid, includeDeleted) { var tmp = this.ka7_1.ea0(assignmentUid, includeDeleted); return new DoorRepositoryReplicatePullPagingSource(this.ja7_1, 'CommentsDao/findCourseCommentsByAssignmentUid', tmp, CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda_0(this, assignmentUid, includeDeleted, null)); }; function ContentCategoryDao() { } function $insertAsyncCOROUTINE$86(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.fab_1 = _this__u8e3s4; this.gab_1 = entity; } protoOf($insertAsyncCOROUTINE$86).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.hab_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.fab_1.jab_1)); if (this.gab_1.lab_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.hab_1.r63(1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.iab_1 = suspendResult; this.gab_1.lab_1 = this.iab_1; this.ld_1 = 2; continue $sm; case 2: this.gab_1.rab_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.fab_1.kab_1.insertAsync(this.gab_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.gab_1.lab_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentCategoryDao_DoorWrapper(_db, _dao) { ContentCategoryDao.call(this); this.jab_1 = _db; this.kab_1 = _dao; } protoOf(ContentCategoryDao_DoorWrapper).sab = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$86(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentCategoryDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.sab(entity instanceof ContentCategory ? entity : THROW_CCE(), $completion); }; function ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.tab_1); } protoOf(ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1).w5h = function (returnsId) { return 'INSERT INTO ContentCategory (contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1).xab = function (stmt, entity) { if (entity.lab_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.lab_1); } stmt.x5i(2, entity.mab_1); stmt.a5j(3, entity.nab_1); stmt.x5i(4, entity.oab_1); stmt.x5i(5, entity.pab_1); stmt.w5i(6, entity.qab_1); stmt.x5i(7, entity.rab_1); }; protoOf(ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1).r5g = function (stmt, entity) { return this.xab(stmt, entity instanceof ContentCategory ? entity : THROW_CCE()); }; function $insertAsyncCOROUTINE$87(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.gac_1 = _this__u8e3s4; this.hac_1 = entity; } protoOf($insertAsyncCOROUTINE$87).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.gac_1.uab_1.y5h(this.hac_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentCategoryDao_JdbcImpl(_db) { ContentCategoryDao.call(this); this.tab_1 = _db; var tmp = this; tmp.uab_1 = new ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1(this); } protoOf(ContentCategoryDao_JdbcImpl).sab = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$87(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentCategoryDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.sab(entity instanceof ContentCategory ? entity : THROW_CCE(), $completion); }; function ContentCategoryDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.qac_1 = this$0; this.rac_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentCategoryDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentCategoryDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(ContentCategoryDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.qac_1.uac_1.insertAsync(this.rac_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentCategoryDao_Repo$insertAsync$slambda).q79 = function (completion) { return new ContentCategoryDao_Repo$insertAsync$slambda(this.qac_1, this.rac_1, completion); }; function ContentCategoryDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ContentCategoryDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$88(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.gad_1 = _this__u8e3s4; this.had_1 = entity; } protoOf($insertAsyncCOROUTINE$88).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.gad_1.tac_1, 'ContentCategory', ContentCategoryDao_Repo$insertAsync$slambda_0(this.gad_1, this.had_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentCategoryDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ContentCategoryDao.call(this); this.sac_1 = _db; this.tac_1 = _repo; this.uac_1 = _dao; this.vac_1 = _httpClient; this.wac_1 = _clientId; this.xac_1 = _endpoint; } protoOf(ContentCategoryDao_Repo).sab = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$88(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentCategoryDao_Repo).insertAsync = function (entity, $completion) { return this.sab(entity instanceof ContentCategory ? entity : THROW_CCE(), $completion); }; function ContentCategorySchemaDao() { } function $insertAsyncCOROUTINE$89(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qad_1 = _this__u8e3s4; this.rad_1 = entity; } protoOf($insertAsyncCOROUTINE$89).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.sad_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.qad_1.uad_1)); if (this.rad_1.wad_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.sad_1.r63(2, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.tad_1 = suspendResult; this.rad_1.wad_1 = this.tad_1; this.ld_1 = 2; continue $sm; case 2: this.rad_1.cae_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.qad_1.vad_1.insertAsync(this.rad_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.rad_1.wad_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentCategorySchemaDao_DoorWrapper(_db, _dao) { ContentCategorySchemaDao.call(this); this.uad_1 = _db; this.vad_1 = _dao; } protoOf(ContentCategorySchemaDao_DoorWrapper).dae = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$89(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentCategorySchemaDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.dae(entity instanceof ContentCategorySchema ? entity : THROW_CCE(), $completion); }; function ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.eae_1); } protoOf(ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1).w5h = function (returnsId) { return 'INSERT INTO ContentCategorySchema (contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1).iae = function (stmt, entity) { if (entity.wad_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.wad_1); } stmt.a5j(2, entity.xad_1); stmt.a5j(3, entity.yad_1); stmt.x5i(4, entity.zad_1); stmt.x5i(5, entity.aae_1); stmt.w5i(6, entity.bae_1); stmt.x5i(7, entity.cae_1); }; protoOf(ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1).r5g = function (stmt, entity) { return this.iae(stmt, entity instanceof ContentCategorySchema ? entity : THROW_CCE()); }; function $insertAsyncCOROUTINE$90(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.rae_1 = _this__u8e3s4; this.sae_1 = entity; } protoOf($insertAsyncCOROUTINE$90).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.rae_1.fae_1.y5h(this.sae_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentCategorySchemaDao_JdbcImpl(_db) { ContentCategorySchemaDao.call(this); this.eae_1 = _db; var tmp = this; tmp.fae_1 = new ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1(this); } protoOf(ContentCategorySchemaDao_JdbcImpl).dae = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$90(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentCategorySchemaDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.dae(entity instanceof ContentCategorySchema ? entity : THROW_CCE(), $completion); }; function ContentCategorySchemaDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.baf_1 = this$0; this.caf_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentCategorySchemaDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentCategorySchemaDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(ContentCategorySchemaDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.baf_1.faf_1.insertAsync(this.caf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentCategorySchemaDao_Repo$insertAsync$slambda).q79 = function (completion) { return new ContentCategorySchemaDao_Repo$insertAsync$slambda(this.baf_1, this.caf_1, completion); }; function ContentCategorySchemaDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ContentCategorySchemaDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$91(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.raf_1 = _this__u8e3s4; this.saf_1 = entity; } protoOf($insertAsyncCOROUTINE$91).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.raf_1.eaf_1, 'ContentCategorySchema', ContentCategorySchemaDao_Repo$insertAsync$slambda_0(this.raf_1, this.saf_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentCategorySchemaDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ContentCategorySchemaDao.call(this); this.daf_1 = _db; this.eaf_1 = _repo; this.faf_1 = _dao; this.gaf_1 = _httpClient; this.haf_1 = _clientId; this.iaf_1 = _endpoint; } protoOf(ContentCategorySchemaDao_Repo).dae = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$91(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentCategorySchemaDao_Repo).insertAsync = function (entity, $completion) { return this.dae(entity instanceof ContentCategorySchema ? entity : THROW_CCE(), $completion); }; function ContentEntryContentCategoryJoinDao() { } function $insertAsyncCOROUTINE$92(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bag_1 = _this__u8e3s4; this.cag_1 = entity; } protoOf($insertAsyncCOROUTINE$92).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.dag_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.bag_1.fag_1)); if (this.cag_1.hag_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.dag_1.r63(3, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.eag_1 = suspendResult; this.cag_1.hag_1 = this.eag_1; this.ld_1 = 2; continue $sm; case 2: this.cag_1.nag_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.bag_1.gag_1.insertAsync(this.cag_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.cag_1.hag_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentEntryContentCategoryJoinDao_DoorWrapper(_db, _dao) { ContentEntryContentCategoryJoinDao.call(this); this.fag_1 = _db; this.gag_1 = _dao; } protoOf(ContentEntryContentCategoryJoinDao_DoorWrapper).oag = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$92(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryContentCategoryJoinDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.oag(entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE(), $completion); }; function ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.pag_1); } protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1).w5h = function (returnsId) { return 'INSERT INTO ContentEntryContentCategoryJoin (ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1).tag = function (stmt, entity) { if (entity.hag_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.hag_1); } stmt.x5i(2, entity.iag_1); stmt.x5i(3, entity.jag_1); stmt.x5i(4, entity.kag_1); stmt.x5i(5, entity.lag_1); stmt.w5i(6, entity.mag_1); stmt.x5i(7, entity.nag_1); }; protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1).r5g = function (stmt, entity) { return this.tag(stmt, entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE()); }; function $insertAsyncCOROUTINE$93(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cah_1 = _this__u8e3s4; this.dah_1 = entity; } protoOf($insertAsyncCOROUTINE$93).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.cah_1.qag_1.y5h(this.dah_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentEntryContentCategoryJoinDao_JdbcImpl(_db) { ContentEntryContentCategoryJoinDao.call(this); this.pag_1 = _db; var tmp = this; tmp.qag_1 = new ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1(this); } protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl).oag = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$93(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.oag(entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE(), $completion); }; function ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.mah_1 = this$0; this.nah_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.mah_1.qah_1.insertAsync(this.nah_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda).q79 = function (completion) { return new ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda(this.mah_1, this.nah_1, completion); }; function ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$94(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cai_1 = _this__u8e3s4; this.dai_1 = entity; } protoOf($insertAsyncCOROUTINE$94).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.cai_1.pah_1, 'ContentEntryContentCategoryJoin', ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda_0(this.cai_1, this.dai_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentEntryContentCategoryJoinDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ContentEntryContentCategoryJoinDao.call(this); this.oah_1 = _db; this.pah_1 = _repo; this.qah_1 = _dao; this.rah_1 = _httpClient; this.sah_1 = _clientId; this.tah_1 = _endpoint; } protoOf(ContentEntryContentCategoryJoinDao_Repo).oag = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$94(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryContentCategoryJoinDao_Repo).insertAsync = function (entity, $completion) { return this.oag(entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE(), $completion); }; function ContentEntryDao() { } function $upsertAsyncCOROUTINE$96(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.vai_1 = _this__u8e3s4; this.wai_1 = entity; } protoOf($upsertAsyncCOROUTINE$96).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.xai_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.vai_1.zai_1)); if (this.wai_1.baj_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.xai_1.r63(42, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.yai_1 = suspendResult; this.wai_1.baj_1 = this.yai_1; this.ld_1 = 2; continue $sm; case 2: this.wai_1.bak_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.vai_1.aaj_1.eai(this.wai_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_instance; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$97(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.kak_1 = _this__u8e3s4; this.lak_1 = entity; } protoOf($insertAsyncCOROUTINE$97).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.mak_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.kak_1.zai_1)); if (this.lak_1.baj_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.mak_1.r63(42, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.nak_1 = suspendResult; this.lak_1.baj_1 = this.nak_1; this.ld_1 = 2; continue $sm; case 2: this.lak_1.bak_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.kak_1.aaj_1.insertAsync(this.lak_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.lak_1.baj_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentEntryDao_DoorWrapper(_db, _dao) { ContentEntryDao.call(this); this.zai_1 = _db; this.aaj_1 = _dao; } protoOf(ContentEntryDao_DoorWrapper).eai = function (entity, $completion) { var tmp = new $upsertAsyncCOROUTINE$96(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_DoorWrapper).fai = function (entryUid, $completion) { return this.aaj_1.fai(entryUid, $completion); }; protoOf(ContentEntryDao_DoorWrapper).gai = function (uid, $completion) { return this.aaj_1.gai(uid, $completion); }; protoOf(ContentEntryDao_DoorWrapper).hai = function (contentEntryUid, clazzUid, courseBlockUid, accountPersonUid) { return this.aaj_1.hai(contentEntryUid, clazzUid, courseBlockUid, accountPersonUid); }; protoOf(ContentEntryDao_DoorWrapper).iai = function (entryUid, $completion) { return this.aaj_1.iai(entryUid, $completion); }; protoOf(ContentEntryDao_DoorWrapper).jai = function (accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted) { return this.aaj_1.jai(accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted); }; protoOf(ContentEntryDao_DoorWrapper).kai = function (accountPersonUid) { return this.aaj_1.kai(accountPersonUid); }; protoOf(ContentEntryDao_DoorWrapper).lai = function (accountPersonUid) { return this.aaj_1.lai(accountPersonUid); }; protoOf(ContentEntryDao_DoorWrapper).mai = function (parentUid) { return this.aaj_1.mai(parentUid); }; protoOf(ContentEntryDao_DoorWrapper).oak = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$97(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.oak(entity instanceof ContentEntry ? entity : THROW_CCE(), $completion); }; function ContentEntryDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_contentEntryUid = $_result.b5o('contentEntryUid'); var _tmp_title = $_result.b10('title'); var _tmp_description = $_result.b10('description'); var _tmp_entryId = $_result.b10('entryId'); var _tmp_author = $_result.b10('author'); var _tmp_publisher = $_result.b10('publisher'); var _tmp_licenseType = $_result.a5o('licenseType'); var _tmp_licenseName = $_result.b10('licenseName'); var _tmp_licenseUrl = $_result.b10('licenseUrl'); var _tmp_sourceUrl = $_result.b10('sourceUrl'); var _tmp_thumbnailUrl = $_result.b10('thumbnailUrl'); var _tmp_lastModified = $_result.b5o('lastModified'); var _tmp_primaryLanguageUid = $_result.b5o('primaryLanguageUid'); var _tmp_languageVariantUid = $_result.b5o('languageVariantUid'); var _tmp_contentFlags = $_result.a5o('contentFlags'); var _tmp_leaf = $_result.m67('leaf'); var _tmp_publik = $_result.m67('publik'); var _tmp_ceInactive = $_result.m67('ceInactive'); var _tmp_completionCriteria = $_result.a5o('completionCriteria'); var _tmp_minScore = $_result.a5o('minScore'); var _tmp_contentTypeFlag = $_result.a5o('contentTypeFlag'); var _tmp_contentOwner = $_result.b5o('contentOwner'); var _tmp_contentOwnerType = $_result.a5o('contentOwnerType'); var _tmp_contentEntryLocalChangeSeqNum = $_result.b5o('contentEntryLocalChangeSeqNum'); var _tmp_contentEntryMasterChangeSeqNum = $_result.b5o('contentEntryMasterChangeSeqNum'); var _tmp_contentEntryLastChangedBy = $_result.a5o('contentEntryLastChangedBy'); var _tmp_contentEntryLct = $_result.b5o('contentEntryLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByUidAsync....' call this_0.baj_1 = _tmp_contentEntryUid; this_0.caj_1 = _tmp_title; this_0.daj_1 = _tmp_description; this_0.eaj_1 = _tmp_entryId; this_0.faj_1 = _tmp_author; this_0.gaj_1 = _tmp_publisher; this_0.haj_1 = _tmp_licenseType; this_0.iaj_1 = _tmp_licenseName; this_0.jaj_1 = _tmp_licenseUrl; this_0.kaj_1 = _tmp_sourceUrl; this_0.laj_1 = _tmp_thumbnailUrl; this_0.maj_1 = _tmp_lastModified; this_0.naj_1 = _tmp_primaryLanguageUid; this_0.oaj_1 = _tmp_languageVariantUid; this_0.paj_1 = _tmp_contentFlags; this_0.qaj_1 = _tmp_leaf; this_0.raj_1 = _tmp_publik; this_0.saj_1 = _tmp_ceInactive; this_0.taj_1 = _tmp_completionCriteria; this_0.uaj_1 = _tmp_minScore; this_0.vaj_1 = _tmp_contentTypeFlag; this_0.waj_1 = _tmp_contentOwner; this_0.xaj_1 = _tmp_contentOwnerType; this_0.yaj_1 = _tmp_contentEntryLocalChangeSeqNum; this_0.zaj_1 = _tmp_contentEntryMasterChangeSeqNum; this_0.aak_1 = _tmp_contentEntryLastChangedBy; this_0.bak_1 = _tmp_contentEntryLct; return this_0; }; } function ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ContentEntry_nullCount = 0; var _tmp_contentEntryUid = $_result.b5o('contentEntryUid'); var tmp; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_title = $_result.b10('title'); var tmp_0; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_description = $_result.b10('description'); var tmp_1; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_entryId = $_result.b10('entryId'); var tmp_2; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_author = $_result.b10('author'); var tmp_3; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_publisher = $_result.b10('publisher'); var tmp_4; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_licenseType = $_result.a5o('licenseType'); var tmp_5; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_licenseName = $_result.b10('licenseName'); var tmp_6; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_licenseUrl = $_result.b10('licenseUrl'); var tmp_7; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_sourceUrl = $_result.b10('sourceUrl'); var tmp_8; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_thumbnailUrl = $_result.b10('thumbnailUrl'); var tmp_9; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_lastModified = $_result.b5o('lastModified'); var tmp_10; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_primaryLanguageUid = $_result.b5o('primaryLanguageUid'); var tmp_11; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_languageVariantUid = $_result.b5o('languageVariantUid'); var tmp_12; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_contentFlags = $_result.a5o('contentFlags'); var tmp_13; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_leaf = $_result.m67('leaf'); var tmp_14; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_publik = $_result.m67('publik'); var tmp_15; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_ceInactive = $_result.m67('ceInactive'); var tmp_16; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_completionCriteria = $_result.a5o('completionCriteria'); var tmp_17; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_minScore = $_result.a5o('minScore'); var tmp_18; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_contentTypeFlag = $_result.a5o('contentTypeFlag'); var tmp_19; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_contentOwner = $_result.b5o('contentOwner'); var tmp_20; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_contentOwnerType = $_result.a5o('contentOwnerType'); var tmp_21; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_contentEntryLocalChangeSeqNum = $_result.b5o('contentEntryLocalChangeSeqNum'); var tmp_22; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_contentEntryMasterChangeSeqNum = $_result.b5o('contentEntryMasterChangeSeqNum'); var tmp_23; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_contentEntryLastChangedBy = $_result.a5o('contentEntryLastChangedBy'); var tmp_24; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_contentEntryLct = $_result.b5o('contentEntryLct'); var tmp_25; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27; var _tmp_ContentEntryPicture2_nullCount = 0; var _tmp_cepUid = $_result.b5o('cepUid'); var tmp_26; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_cepLct = $_result.b5o('cepLct'); var tmp_27; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_cepPictureUri = $_result.b10('cepPictureUri'); var tmp_28; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_cepThumbnailUri = $_result.b10('cepThumbnailUri'); var tmp_29; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4; // Inline function 'kotlin.apply' call var this_0 = new ContentEntryAndPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByUidWithEditDetails....' call if (!_tmp_ContentEntry_isAllNull) { var tmp_30 = this_0; // Inline function 'kotlin.apply' call var this_1 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByUidWithEditDetails.....' call this_1.baj_1 = _tmp_contentEntryUid; this_1.caj_1 = _tmp_title; this_1.daj_1 = _tmp_description; this_1.eaj_1 = _tmp_entryId; this_1.faj_1 = _tmp_author; this_1.gaj_1 = _tmp_publisher; this_1.haj_1 = _tmp_licenseType; this_1.iaj_1 = _tmp_licenseName; this_1.jaj_1 = _tmp_licenseUrl; this_1.kaj_1 = _tmp_sourceUrl; this_1.laj_1 = _tmp_thumbnailUrl; this_1.maj_1 = _tmp_lastModified; this_1.naj_1 = _tmp_primaryLanguageUid; this_1.oaj_1 = _tmp_languageVariantUid; this_1.paj_1 = _tmp_contentFlags; this_1.qaj_1 = _tmp_leaf; this_1.raj_1 = _tmp_publik; this_1.saj_1 = _tmp_ceInactive; this_1.taj_1 = _tmp_completionCriteria; this_1.uaj_1 = _tmp_minScore; this_1.vaj_1 = _tmp_contentTypeFlag; this_1.waj_1 = _tmp_contentOwner; this_1.xaj_1 = _tmp_contentOwnerType; this_1.yaj_1 = _tmp_contentEntryLocalChangeSeqNum; this_1.zaj_1 = _tmp_contentEntryMasterChangeSeqNum; this_1.aak_1 = _tmp_contentEntryLastChangedBy; this_1.bak_1 = _tmp_contentEntryLct; tmp_30.pak_1 = this_1; } if (!_tmp_ContentEntryPicture2_isAllNull) { var tmp_31 = this_0; // Inline function 'kotlin.apply' call var this_2 = new ContentEntryPicture2(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByUidWithEditDetails.....' call this_2.rak_1 = _tmp_cepUid; this_2.sak_1 = _tmp_cepLct; this_2.tak_1 = _tmp_cepPictureUri; this_2.uak_1 = _tmp_cepThumbnailUri; tmp_31.qak_1 = this_2; } return this_0; }; } function ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ContentEntry_nullCount = 0; var _tmp_contentEntryUid = $_result.b5o('contentEntryUid'); var tmp; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_title = $_result.b10('title'); var tmp_0; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_description = $_result.b10('description'); var tmp_1; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_entryId = $_result.b10('entryId'); var tmp_2; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_author = $_result.b10('author'); var tmp_3; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_publisher = $_result.b10('publisher'); var tmp_4; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_licenseType = $_result.a5o('licenseType'); var tmp_5; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_licenseName = $_result.b10('licenseName'); var tmp_6; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_licenseUrl = $_result.b10('licenseUrl'); var tmp_7; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_sourceUrl = $_result.b10('sourceUrl'); var tmp_8; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_thumbnailUrl = $_result.b10('thumbnailUrl'); var tmp_9; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_lastModified = $_result.b5o('lastModified'); var tmp_10; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_primaryLanguageUid = $_result.b5o('primaryLanguageUid'); var tmp_11; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_languageVariantUid = $_result.b5o('languageVariantUid'); var tmp_12; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_contentFlags = $_result.a5o('contentFlags'); var tmp_13; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_leaf = $_result.m67('leaf'); var tmp_14; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_publik = $_result.m67('publik'); var tmp_15; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_ceInactive = $_result.m67('ceInactive'); var tmp_16; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_completionCriteria = $_result.a5o('completionCriteria'); var tmp_17; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_minScore = $_result.a5o('minScore'); var tmp_18; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_contentTypeFlag = $_result.a5o('contentTypeFlag'); var tmp_19; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_contentOwner = $_result.b5o('contentOwner'); var tmp_20; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_contentOwnerType = $_result.a5o('contentOwnerType'); var tmp_21; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_contentEntryLocalChangeSeqNum = $_result.b5o('contentEntryLocalChangeSeqNum'); var tmp_22; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_contentEntryMasterChangeSeqNum = $_result.b5o('contentEntryMasterChangeSeqNum'); var tmp_23; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_contentEntryLastChangedBy = $_result.a5o('contentEntryLastChangedBy'); var tmp_24; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_contentEntryLct = $_result.b5o('contentEntryLct'); var tmp_25; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27; var _tmp_ContentEntryVersion_nullCount = 0; var _tmp_cevUid = $_result.b5o('cevUid'); var tmp_26; if ($_result.t68()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_cevContentEntryUid = $_result.b5o('cevContentEntryUid'); var tmp_27; if ($_result.t68()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_cevOpenUri = $_result.b10('cevOpenUri'); var tmp_28; if ($_result.t68()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_cevContentType = $_result.b10('cevContentType'); var tmp_29; if ($_result.t68()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_cevManifestUrl = $_result.b10('cevManifestUrl'); var tmp_30; if ($_result.t68()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_30 = Unit_instance; } var _tmp_cevSize = $_result.b5o('cevSize'); var tmp_31; if ($_result.t68()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_31 = Unit_instance; } var _tmp_cevInActive = $_result.m67('cevInActive'); var tmp_32; if ($_result.t68()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_32 = Unit_instance; } var _tmp_cevLastModified = $_result.b5o('cevLastModified'); var tmp_33; if ($_result.t68()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_33 = Unit_instance; } var _tmp_cevLct = $_result.b5o('cevLct'); var tmp_34; if ($_result.t68()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_34 = Unit_instance; } var _tmp_cevStorageSize = $_result.b5o('cevStorageSize'); var tmp_35; if ($_result.t68()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_35 = Unit_instance; } var _tmp_cevOriginalSize = $_result.b5o('cevOriginalSize'); var tmp_36; if ($_result.t68()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_36 = Unit_instance; } var _tmp_ContentEntryVersion_isAllNull = _tmp_ContentEntryVersion_nullCount === 11; var _tmp_ContentEntryPicture2_nullCount = 0; var _tmp_cepUid = $_result.b5o('cepUid'); var tmp_37; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_37 = Unit_instance; } var _tmp_cepLct = $_result.b5o('cepLct'); var tmp_38; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_38 = Unit_instance; } var _tmp_cepPictureUri = $_result.b10('cepPictureUri'); var tmp_39; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_39 = Unit_instance; } var _tmp_cepThumbnailUri = $_result.b10('cepThumbnailUri'); var tmp_40; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_40 = Unit_instance; } var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4; var _tmp_BlockStatus_nullCount = 0; var _tmp_sPersonUid = $_result.b5o('sPersonUid'); var tmp_41; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_41 = Unit_instance; } var _tmp_sCbUid = $_result.b5o('sCbUid'); var tmp_42; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_42 = Unit_instance; } var _tmp_sProgress = getIntNullable($_result, 'sProgress'); var tmp_43; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_43 = Unit_instance; } var _tmp_sIsCompleted = $_result.m67('sIsCompleted'); var tmp_44; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_44 = Unit_instance; } var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess'); var tmp_45; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_45 = Unit_instance; } var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled'); var tmp_46; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_46 = Unit_instance; } var _tmp_BlockStatus_isAllNull = _tmp_BlockStatus_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new ContentEntryAndDetail(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByContentEntryUidWithDetailsAsFlow.....' call if (!_tmp_ContentEntry_isAllNull) { var tmp_47 = this_0; // Inline function 'kotlin.apply' call var this_1 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByContentEntryUidWithDetailsAsFlow......' call this_1.baj_1 = _tmp_contentEntryUid; this_1.caj_1 = _tmp_title; this_1.daj_1 = _tmp_description; this_1.eaj_1 = _tmp_entryId; this_1.faj_1 = _tmp_author; this_1.gaj_1 = _tmp_publisher; this_1.haj_1 = _tmp_licenseType; this_1.iaj_1 = _tmp_licenseName; this_1.jaj_1 = _tmp_licenseUrl; this_1.kaj_1 = _tmp_sourceUrl; this_1.laj_1 = _tmp_thumbnailUrl; this_1.maj_1 = _tmp_lastModified; this_1.naj_1 = _tmp_primaryLanguageUid; this_1.oaj_1 = _tmp_languageVariantUid; this_1.paj_1 = _tmp_contentFlags; this_1.qaj_1 = _tmp_leaf; this_1.raj_1 = _tmp_publik; this_1.saj_1 = _tmp_ceInactive; this_1.taj_1 = _tmp_completionCriteria; this_1.uaj_1 = _tmp_minScore; this_1.vaj_1 = _tmp_contentTypeFlag; this_1.waj_1 = _tmp_contentOwner; this_1.xaj_1 = _tmp_contentOwnerType; this_1.yaj_1 = _tmp_contentEntryLocalChangeSeqNum; this_1.zaj_1 = _tmp_contentEntryMasterChangeSeqNum; this_1.aak_1 = _tmp_contentEntryLastChangedBy; this_1.bak_1 = _tmp_contentEntryLct; tmp_47.vak_1 = this_1; } if (!_tmp_ContentEntryVersion_isAllNull) { var tmp_48 = this_0; // Inline function 'kotlin.apply' call var this_2 = new ContentEntryVersion(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByContentEntryUidWithDetailsAsFlow......' call this_2.zak_1 = _tmp_cevUid; this_2.aal_1 = _tmp_cevContentEntryUid; this_2.bal_1 = _tmp_cevOpenUri; this_2.cal_1 = _tmp_cevContentType; this_2.dal_1 = _tmp_cevManifestUrl; this_2.eal_1 = _tmp_cevSize; this_2.fal_1 = _tmp_cevInActive; this_2.gal_1 = _tmp_cevLastModified; this_2.hal_1 = _tmp_cevLct; this_2.ial_1 = _tmp_cevStorageSize; this_2.jal_1 = _tmp_cevOriginalSize; tmp_48.wak_1 = this_2; } if (!_tmp_ContentEntryPicture2_isAllNull) { var tmp_49 = this_0; // Inline function 'kotlin.apply' call var this_3 = new ContentEntryPicture2(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByContentEntryUidWithDetailsAsFlow......' call this_3.rak_1 = _tmp_cepUid; this_3.sak_1 = _tmp_cepLct; this_3.tak_1 = _tmp_cepPictureUri; this_3.uak_1 = _tmp_cepThumbnailUri; tmp_49.xak_1 = this_3; } if (!_tmp_BlockStatus_isAllNull) { var tmp_50 = this_0; // Inline function 'kotlin.apply' call var this_4 = new BlockStatus(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByContentEntryUidWithDetailsAsFlow......' call this_4.kal_1 = _tmp_sPersonUid; this_4.lal_1 = _tmp_sCbUid; this_4.mal_1 = _tmp_sProgress; this_4.nal_1 = _tmp_sIsCompleted; this_4.oal_1 = _tmp_sIsSuccess; this_4.pal_1 = _tmp_sScoreScaled; tmp_50.yak_1 = this_4; } return this_0; }; } function ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda($clazzUid, $accountPersonUid, $courseBlockUid, $contentEntryUid, resultContinuation) { this.yal_1 = $clazzUid; this.zal_1 = $accountPersonUid; this.aam_1 = $courseBlockUid; this.bam_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda).dam = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda).le = function (p1, $completion) { return this.dam((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.cam_1.x5i(1, this.yal_1); this.cam_1.x5i(2, this.yal_1); this.cam_1.x5i(3, this.zal_1); this.cam_1.x5i(4, this.zal_1); this.cam_1.x5i(5, this.aam_1); this.cam_1.x5i(6, this.zal_1); this.cam_1.x5i(7, this.zal_1); this.cam_1.x5i(8, this.zal_1); this.cam_1.x5i(9, this.zal_1); this.cam_1.x5i(10, this.zal_1); this.cam_1.x5i(11, this.bam_1); this.cam_1.x5i(12, this.bam_1); this.cam_1.x5i(13, this.bam_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.cam_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda(this.yal_1, this.zal_1, this.aam_1, this.bam_1, completion); i.cam_1 = _stmt; return i; }; function ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda_0($clazzUid, $accountPersonUid, $courseBlockUid, $contentEntryUid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda($clazzUid, $accountPersonUid, $courseBlockUid, $contentEntryUid, resultContinuation); var l = function (_stmt, $completion) { return i.dam(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda$lambda$lambda($_result) { return function (it) { return $_result.a62(1); }; } function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ContentEntry_nullCount = 0; var _tmp_contentEntryUid = $_result.b5o('contentEntryUid'); var tmp; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_title = $_result.b10('title'); var tmp_0; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_description = $_result.b10('description'); var tmp_1; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_entryId = $_result.b10('entryId'); var tmp_2; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_author = $_result.b10('author'); var tmp_3; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_publisher = $_result.b10('publisher'); var tmp_4; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_licenseType = $_result.a5o('licenseType'); var tmp_5; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_licenseName = $_result.b10('licenseName'); var tmp_6; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_licenseUrl = $_result.b10('licenseUrl'); var tmp_7; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_sourceUrl = $_result.b10('sourceUrl'); var tmp_8; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_thumbnailUrl = $_result.b10('thumbnailUrl'); var tmp_9; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_lastModified = $_result.b5o('lastModified'); var tmp_10; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_primaryLanguageUid = $_result.b5o('primaryLanguageUid'); var tmp_11; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_languageVariantUid = $_result.b5o('languageVariantUid'); var tmp_12; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_contentFlags = $_result.a5o('contentFlags'); var tmp_13; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_leaf = $_result.m67('leaf'); var tmp_14; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_publik = $_result.m67('publik'); var tmp_15; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_ceInactive = $_result.m67('ceInactive'); var tmp_16; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_completionCriteria = $_result.a5o('completionCriteria'); var tmp_17; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_minScore = $_result.a5o('minScore'); var tmp_18; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_contentTypeFlag = $_result.a5o('contentTypeFlag'); var tmp_19; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_contentOwner = $_result.b5o('contentOwner'); var tmp_20; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_contentOwnerType = $_result.a5o('contentOwnerType'); var tmp_21; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_contentEntryLocalChangeSeqNum = $_result.b5o('contentEntryLocalChangeSeqNum'); var tmp_22; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_contentEntryMasterChangeSeqNum = $_result.b5o('contentEntryMasterChangeSeqNum'); var tmp_23; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_contentEntryLastChangedBy = $_result.a5o('contentEntryLastChangedBy'); var tmp_24; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_contentEntryLct = $_result.b5o('contentEntryLct'); var tmp_25; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27; var _tmp_ContentEntryPicture2_nullCount = 0; var _tmp_cepUid = $_result.b5o('cepUid'); var tmp_26; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_cepLct = $_result.b5o('cepLct'); var tmp_27; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_cepPictureUri = $_result.b10('cepPictureUri'); var tmp_28; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_cepThumbnailUri = $_result.b10('cepThumbnailUri'); var tmp_29; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4; var _tmp_ContentEntryParentChildJoin_nullCount = 0; var _tmp_cepcjUid = $_result.b5o('cepcjUid'); var tmp_30; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_30 = Unit_instance; } var _tmp_cepcjLocalChangeSeqNum = $_result.b5o('cepcjLocalChangeSeqNum'); var tmp_31; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_31 = Unit_instance; } var _tmp_cepcjMasterChangeSeqNum = $_result.b5o('cepcjMasterChangeSeqNum'); var tmp_32; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_32 = Unit_instance; } var _tmp_cepcjLastChangedBy = $_result.a5o('cepcjLastChangedBy'); var tmp_33; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_33 = Unit_instance; } var _tmp_cepcjLct = $_result.b5o('cepcjLct'); var tmp_34; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_34 = Unit_instance; } var _tmp_cepcjDeleted = $_result.m67('cepcjDeleted'); var tmp_35; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_35 = Unit_instance; } var _tmp_cepcjParentContentEntryUid = $_result.b5o('cepcjParentContentEntryUid'); var tmp_36; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_36 = Unit_instance; } var _tmp_cepcjChildContentEntryUid = $_result.b5o('cepcjChildContentEntryUid'); var tmp_37; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_37 = Unit_instance; } var _tmp_childIndex = $_result.a5o('childIndex'); var tmp_38; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_38 = Unit_instance; } var _tmp_ContentEntryParentChildJoin_isAllNull = _tmp_ContentEntryParentChildJoin_nullCount === 9; var _tmp_BlockStatus_nullCount = 0; var _tmp_sPersonUid = $_result.b5o('sPersonUid'); var tmp_39; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_39 = Unit_instance; } var _tmp_sCbUid = $_result.b5o('sCbUid'); var tmp_40; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_40 = Unit_instance; } var _tmp_sProgress = getIntNullable($_result, 'sProgress'); var tmp_41; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_41 = Unit_instance; } var _tmp_sIsCompleted = $_result.m67('sIsCompleted'); var tmp_42; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_42 = Unit_instance; } var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess'); var tmp_43; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_43 = Unit_instance; } var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled'); var tmp_44; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_44 = Unit_instance; } var _tmp_BlockStatus_isAllNull = _tmp_BlockStatus_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new ContentEntryAndListDetail(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call if (!_tmp_ContentEntry_isAllNull) { var tmp_45 = this_0; // Inline function 'kotlin.apply' call var this_1 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.baj_1 = _tmp_contentEntryUid; this_1.caj_1 = _tmp_title; this_1.daj_1 = _tmp_description; this_1.eaj_1 = _tmp_entryId; this_1.faj_1 = _tmp_author; this_1.gaj_1 = _tmp_publisher; this_1.haj_1 = _tmp_licenseType; this_1.iaj_1 = _tmp_licenseName; this_1.jaj_1 = _tmp_licenseUrl; this_1.kaj_1 = _tmp_sourceUrl; this_1.laj_1 = _tmp_thumbnailUrl; this_1.maj_1 = _tmp_lastModified; this_1.naj_1 = _tmp_primaryLanguageUid; this_1.oaj_1 = _tmp_languageVariantUid; this_1.paj_1 = _tmp_contentFlags; this_1.qaj_1 = _tmp_leaf; this_1.raj_1 = _tmp_publik; this_1.saj_1 = _tmp_ceInactive; this_1.taj_1 = _tmp_completionCriteria; this_1.uaj_1 = _tmp_minScore; this_1.vaj_1 = _tmp_contentTypeFlag; this_1.waj_1 = _tmp_contentOwner; this_1.xaj_1 = _tmp_contentOwnerType; this_1.yaj_1 = _tmp_contentEntryLocalChangeSeqNum; this_1.zaj_1 = _tmp_contentEntryMasterChangeSeqNum; this_1.aak_1 = _tmp_contentEntryLastChangedBy; this_1.bak_1 = _tmp_contentEntryLct; tmp_45.eam_1 = this_1; } if (!_tmp_ContentEntryPicture2_isAllNull) { var tmp_46 = this_0; // Inline function 'kotlin.apply' call var this_2 = new ContentEntryPicture2(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_2.rak_1 = _tmp_cepUid; this_2.sak_1 = _tmp_cepLct; this_2.tak_1 = _tmp_cepPictureUri; this_2.uak_1 = _tmp_cepThumbnailUri; tmp_46.fam_1 = this_2; } if (!_tmp_ContentEntryParentChildJoin_isAllNull) { var tmp_47 = this_0; // Inline function 'kotlin.apply' call var this_3 = new ContentEntryParentChildJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_3.lam_1 = _tmp_cepcjUid; this_3.mam_1 = _tmp_cepcjLocalChangeSeqNum; this_3.nam_1 = _tmp_cepcjMasterChangeSeqNum; this_3.oam_1 = _tmp_cepcjLastChangedBy; this_3.pam_1 = _tmp_cepcjLct; this_3.qam_1 = _tmp_cepcjDeleted; this_3.iam_1 = _tmp_cepcjParentContentEntryUid; this_3.jam_1 = _tmp_cepcjChildContentEntryUid; this_3.kam_1 = _tmp_childIndex; tmp_47.gam_1 = this_3; } if (!_tmp_BlockStatus_isAllNull) { var tmp_48 = this_0; // Inline function 'kotlin.apply' call var this_4 = new BlockStatus(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_4.kal_1 = _tmp_sPersonUid; this_4.lal_1 = _tmp_sCbUid; this_4.mal_1 = _tmp_sProgress; this_4.nal_1 = _tmp_sIsCompleted; this_4.oal_1 = _tmp_sIsSuccess; this_4.pal_1 = _tmp_sScoreScaled; tmp_48.ham_1 = this_4; } return this_0; }; } function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda($accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder, $_limit, $_offset, resultContinuation) { this.zam_1 = $accountPersonUid; this.aan_1 = $parentUid; this.ban_1 = $langParam; this.can_1 = $categoryParam0; this.dan_1 = $includeDeleted; this.ean_1 = $sortOrder; this.fan_1 = $_limit; this.gan_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda).ian = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda).le = function (p1, $completion) { return this.ian((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.han_1.x5i(1, this.zam_1); this.han_1.x5i(2, this.zam_1); this.han_1.x5i(3, this.zam_1); this.han_1.x5i(4, this.zam_1); this.han_1.x5i(5, this.zam_1); this.han_1.x5i(6, this.zam_1); this.han_1.x5i(7, this.aan_1); this.han_1.x5i(8, this.ban_1); this.han_1.x5i(9, this.ban_1); this.han_1.x5i(10, this.can_1); this.han_1.x5i(11, this.can_1); this.han_1.k5i(12, this.dan_1); this.han_1.w5i(13, this.ean_1); this.han_1.w5i(14, this.ean_1); this.han_1.w5i(15, this.fan_1); this.han_1.w5i(16, this.gan_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.han_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda(this.zam_1, this.aan_1, this.ban_1, this.can_1, this.dan_1, this.ean_1, this.fan_1, this.gan_1, completion); i.han_1 = _stmt; return i; }; function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda_0($accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder, $_limit, $_offset, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda($accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.ian(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda($accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder, resultContinuation) { this.ran_1 = $accountPersonUid; this.san_1 = $parentUid; this.tan_1 = $langParam; this.uan_1 = $categoryParam0; this.van_1 = $includeDeleted; this.wan_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.xan_1.x5i(1, this.ran_1); this.xan_1.x5i(2, this.ran_1); this.xan_1.x5i(3, this.ran_1); this.xan_1.x5i(4, this.ran_1); this.xan_1.x5i(5, this.ran_1); this.xan_1.x5i(6, this.ran_1); this.xan_1.x5i(7, this.san_1); this.xan_1.x5i(8, this.tan_1); this.xan_1.x5i(9, this.tan_1); this.xan_1.x5i(10, this.uan_1); this.xan_1.x5i(11, this.uan_1); this.xan_1.k5i(12, this.van_1); this.xan_1.w5i(13, this.wan_1); this.xan_1.w5i(14, this.wan_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.xan_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda(this.ran_1, this.san_1, this.tan_1, this.uan_1, this.van_1, this.wan_1, completion); i.xan_1 = _stmt; return i; }; function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda_0($accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda($accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ContentEntry_nullCount = 0; var _tmp_contentEntryUid = $_result.b5o('contentEntryUid'); var tmp; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_title = $_result.b10('title'); var tmp_0; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_description = $_result.b10('description'); var tmp_1; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_entryId = $_result.b10('entryId'); var tmp_2; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_author = $_result.b10('author'); var tmp_3; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_publisher = $_result.b10('publisher'); var tmp_4; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_licenseType = $_result.a5o('licenseType'); var tmp_5; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_licenseName = $_result.b10('licenseName'); var tmp_6; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_licenseUrl = $_result.b10('licenseUrl'); var tmp_7; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_sourceUrl = $_result.b10('sourceUrl'); var tmp_8; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_thumbnailUrl = $_result.b10('thumbnailUrl'); var tmp_9; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_lastModified = $_result.b5o('lastModified'); var tmp_10; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_primaryLanguageUid = $_result.b5o('primaryLanguageUid'); var tmp_11; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_languageVariantUid = $_result.b5o('languageVariantUid'); var tmp_12; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_contentFlags = $_result.a5o('contentFlags'); var tmp_13; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_leaf = $_result.m67('leaf'); var tmp_14; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_publik = $_result.m67('publik'); var tmp_15; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_ceInactive = $_result.m67('ceInactive'); var tmp_16; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_completionCriteria = $_result.a5o('completionCriteria'); var tmp_17; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_minScore = $_result.a5o('minScore'); var tmp_18; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_contentTypeFlag = $_result.a5o('contentTypeFlag'); var tmp_19; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_contentOwner = $_result.b5o('contentOwner'); var tmp_20; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_contentOwnerType = $_result.a5o('contentOwnerType'); var tmp_21; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_contentEntryLocalChangeSeqNum = $_result.b5o('contentEntryLocalChangeSeqNum'); var tmp_22; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_contentEntryMasterChangeSeqNum = $_result.b5o('contentEntryMasterChangeSeqNum'); var tmp_23; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_contentEntryLastChangedBy = $_result.a5o('contentEntryLastChangedBy'); var tmp_24; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_contentEntryLct = $_result.b5o('contentEntryLct'); var tmp_25; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27; var _tmp_ContentEntryPicture2_nullCount = 0; var _tmp_cepUid = $_result.b5o('cepUid'); var tmp_26; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_cepLct = $_result.b5o('cepLct'); var tmp_27; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_cepPictureUri = $_result.b10('cepPictureUri'); var tmp_28; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_cepThumbnailUri = $_result.b10('cepThumbnailUri'); var tmp_29; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4; var _tmp_ContentEntryParentChildJoin_nullCount = 0; var _tmp_cepcjUid = $_result.b5o('cepcjUid'); var tmp_30; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_30 = Unit_instance; } var _tmp_cepcjLocalChangeSeqNum = $_result.b5o('cepcjLocalChangeSeqNum'); var tmp_31; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_31 = Unit_instance; } var _tmp_cepcjMasterChangeSeqNum = $_result.b5o('cepcjMasterChangeSeqNum'); var tmp_32; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_32 = Unit_instance; } var _tmp_cepcjLastChangedBy = $_result.a5o('cepcjLastChangedBy'); var tmp_33; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_33 = Unit_instance; } var _tmp_cepcjLct = $_result.b5o('cepcjLct'); var tmp_34; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_34 = Unit_instance; } var _tmp_cepcjDeleted = $_result.m67('cepcjDeleted'); var tmp_35; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_35 = Unit_instance; } var _tmp_cepcjParentContentEntryUid = $_result.b5o('cepcjParentContentEntryUid'); var tmp_36; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_36 = Unit_instance; } var _tmp_cepcjChildContentEntryUid = $_result.b5o('cepcjChildContentEntryUid'); var tmp_37; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_37 = Unit_instance; } var _tmp_childIndex = $_result.a5o('childIndex'); var tmp_38; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_38 = Unit_instance; } var _tmp_ContentEntryParentChildJoin_isAllNull = _tmp_ContentEntryParentChildJoin_nullCount === 9; var _tmp_BlockStatus_nullCount = 0; var _tmp_sPersonUid = $_result.b5o('sPersonUid'); var tmp_39; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_39 = Unit_instance; } var _tmp_sCbUid = $_result.b5o('sCbUid'); var tmp_40; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_40 = Unit_instance; } var _tmp_sProgress = getIntNullable($_result, 'sProgress'); var tmp_41; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_41 = Unit_instance; } var _tmp_sIsCompleted = $_result.m67('sIsCompleted'); var tmp_42; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_42 = Unit_instance; } var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess'); var tmp_43; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_43 = Unit_instance; } var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled'); var tmp_44; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_44 = Unit_instance; } var _tmp_BlockStatus_isAllNull = _tmp_BlockStatus_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new ContentEntryAndListDetail(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call if (!_tmp_ContentEntry_isAllNull) { var tmp_45 = this_0; // Inline function 'kotlin.apply' call var this_1 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.baj_1 = _tmp_contentEntryUid; this_1.caj_1 = _tmp_title; this_1.daj_1 = _tmp_description; this_1.eaj_1 = _tmp_entryId; this_1.faj_1 = _tmp_author; this_1.gaj_1 = _tmp_publisher; this_1.haj_1 = _tmp_licenseType; this_1.iaj_1 = _tmp_licenseName; this_1.jaj_1 = _tmp_licenseUrl; this_1.kaj_1 = _tmp_sourceUrl; this_1.laj_1 = _tmp_thumbnailUrl; this_1.maj_1 = _tmp_lastModified; this_1.naj_1 = _tmp_primaryLanguageUid; this_1.oaj_1 = _tmp_languageVariantUid; this_1.paj_1 = _tmp_contentFlags; this_1.qaj_1 = _tmp_leaf; this_1.raj_1 = _tmp_publik; this_1.saj_1 = _tmp_ceInactive; this_1.taj_1 = _tmp_completionCriteria; this_1.uaj_1 = _tmp_minScore; this_1.vaj_1 = _tmp_contentTypeFlag; this_1.waj_1 = _tmp_contentOwner; this_1.xaj_1 = _tmp_contentOwnerType; this_1.yaj_1 = _tmp_contentEntryLocalChangeSeqNum; this_1.zaj_1 = _tmp_contentEntryMasterChangeSeqNum; this_1.aak_1 = _tmp_contentEntryLastChangedBy; this_1.bak_1 = _tmp_contentEntryLct; tmp_45.eam_1 = this_1; } if (!_tmp_ContentEntryPicture2_isAllNull) { var tmp_46 = this_0; // Inline function 'kotlin.apply' call var this_2 = new ContentEntryPicture2(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_2.rak_1 = _tmp_cepUid; this_2.sak_1 = _tmp_cepLct; this_2.tak_1 = _tmp_cepPictureUri; this_2.uak_1 = _tmp_cepThumbnailUri; tmp_46.fam_1 = this_2; } if (!_tmp_ContentEntryParentChildJoin_isAllNull) { var tmp_47 = this_0; // Inline function 'kotlin.apply' call var this_3 = new ContentEntryParentChildJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_3.lam_1 = _tmp_cepcjUid; this_3.mam_1 = _tmp_cepcjLocalChangeSeqNum; this_3.nam_1 = _tmp_cepcjMasterChangeSeqNum; this_3.oam_1 = _tmp_cepcjLastChangedBy; this_3.pam_1 = _tmp_cepcjLct; this_3.qam_1 = _tmp_cepcjDeleted; this_3.iam_1 = _tmp_cepcjParentContentEntryUid; this_3.jam_1 = _tmp_cepcjChildContentEntryUid; this_3.kam_1 = _tmp_childIndex; tmp_47.gam_1 = this_3; } if (!_tmp_BlockStatus_isAllNull) { var tmp_48 = this_0; // Inline function 'kotlin.apply' call var this_4 = new BlockStatus(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_4.kal_1 = _tmp_sPersonUid; this_4.lal_1 = _tmp_sCbUid; this_4.mal_1 = _tmp_sProgress; this_4.nal_1 = _tmp_sIsCompleted; this_4.oal_1 = _tmp_sIsSuccess; this_4.pal_1 = _tmp_sScoreScaled; tmp_48.ham_1 = this_4; } return this_0; }; } function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda($accountPersonUid, $_limit, $_offset, resultContinuation) { this.gao_1 = $accountPersonUid; this.hao_1 = $_limit; this.iao_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda).ian = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda).le = function (p1, $completion) { return this.ian((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.jao_1.x5i(1, this.gao_1); this.jao_1.x5i(2, this.gao_1); this.jao_1.x5i(3, this.gao_1); this.jao_1.x5i(4, this.gao_1); this.jao_1.x5i(5, this.gao_1); this.jao_1.x5i(6, this.gao_1); this.jao_1.x5i(7, this.gao_1); this.jao_1.w5i(8, this.hao_1); this.jao_1.w5i(9, this.iao_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.jao_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda(this.gao_1, this.hao_1, this.iao_1, completion); i.jao_1 = _stmt; return i; }; function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda_0($accountPersonUid, $_limit, $_offset, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda($accountPersonUid, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.ian(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda($accountPersonUid, resultContinuation) { this.sao_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.tao_1.x5i(1, this.sao_1); this.tao_1.x5i(2, this.sao_1); this.tao_1.x5i(3, this.sao_1); this.tao_1.x5i(4, this.sao_1); this.tao_1.x5i(5, this.sao_1); this.tao_1.x5i(6, this.sao_1); this.tao_1.x5i(7, this.sao_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.tao_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda(this.sao_1, completion); i.tao_1 = _stmt; return i; }; function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda_0($accountPersonUid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda($accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ContentEntry_nullCount = 0; var _tmp_contentEntryUid = $_result.b5o('contentEntryUid'); var tmp; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_title = $_result.b10('title'); var tmp_0; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_description = $_result.b10('description'); var tmp_1; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_entryId = $_result.b10('entryId'); var tmp_2; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_author = $_result.b10('author'); var tmp_3; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_publisher = $_result.b10('publisher'); var tmp_4; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_licenseType = $_result.a5o('licenseType'); var tmp_5; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_licenseName = $_result.b10('licenseName'); var tmp_6; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_licenseUrl = $_result.b10('licenseUrl'); var tmp_7; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_sourceUrl = $_result.b10('sourceUrl'); var tmp_8; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_thumbnailUrl = $_result.b10('thumbnailUrl'); var tmp_9; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_lastModified = $_result.b5o('lastModified'); var tmp_10; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_primaryLanguageUid = $_result.b5o('primaryLanguageUid'); var tmp_11; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_languageVariantUid = $_result.b5o('languageVariantUid'); var tmp_12; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_contentFlags = $_result.a5o('contentFlags'); var tmp_13; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_leaf = $_result.m67('leaf'); var tmp_14; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_publik = $_result.m67('publik'); var tmp_15; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_ceInactive = $_result.m67('ceInactive'); var tmp_16; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_completionCriteria = $_result.a5o('completionCriteria'); var tmp_17; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_minScore = $_result.a5o('minScore'); var tmp_18; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_contentTypeFlag = $_result.a5o('contentTypeFlag'); var tmp_19; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_contentOwner = $_result.b5o('contentOwner'); var tmp_20; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_contentOwnerType = $_result.a5o('contentOwnerType'); var tmp_21; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_contentEntryLocalChangeSeqNum = $_result.b5o('contentEntryLocalChangeSeqNum'); var tmp_22; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_contentEntryMasterChangeSeqNum = $_result.b5o('contentEntryMasterChangeSeqNum'); var tmp_23; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_contentEntryLastChangedBy = $_result.a5o('contentEntryLastChangedBy'); var tmp_24; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_contentEntryLct = $_result.b5o('contentEntryLct'); var tmp_25; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27; var _tmp_ContentEntryPicture2_nullCount = 0; var _tmp_cepUid = $_result.b5o('cepUid'); var tmp_26; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_cepLct = $_result.b5o('cepLct'); var tmp_27; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_cepPictureUri = $_result.b10('cepPictureUri'); var tmp_28; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_cepThumbnailUri = $_result.b10('cepThumbnailUri'); var tmp_29; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4; var _tmp_ContentEntryParentChildJoin_nullCount = 0; var _tmp_cepcjUid = $_result.b5o('cepcjUid'); var tmp_30; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_30 = Unit_instance; } var _tmp_cepcjLocalChangeSeqNum = $_result.b5o('cepcjLocalChangeSeqNum'); var tmp_31; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_31 = Unit_instance; } var _tmp_cepcjMasterChangeSeqNum = $_result.b5o('cepcjMasterChangeSeqNum'); var tmp_32; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_32 = Unit_instance; } var _tmp_cepcjLastChangedBy = $_result.a5o('cepcjLastChangedBy'); var tmp_33; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_33 = Unit_instance; } var _tmp_cepcjLct = $_result.b5o('cepcjLct'); var tmp_34; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_34 = Unit_instance; } var _tmp_cepcjDeleted = $_result.m67('cepcjDeleted'); var tmp_35; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_35 = Unit_instance; } var _tmp_cepcjParentContentEntryUid = $_result.b5o('cepcjParentContentEntryUid'); var tmp_36; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_36 = Unit_instance; } var _tmp_cepcjChildContentEntryUid = $_result.b5o('cepcjChildContentEntryUid'); var tmp_37; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_37 = Unit_instance; } var _tmp_childIndex = $_result.a5o('childIndex'); var tmp_38; if ($_result.t68()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_38 = Unit_instance; } var _tmp_ContentEntryParentChildJoin_isAllNull = _tmp_ContentEntryParentChildJoin_nullCount === 9; var _tmp_BlockStatus_nullCount = 0; var _tmp_sPersonUid = $_result.b5o('sPersonUid'); var tmp_39; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_39 = Unit_instance; } var _tmp_sCbUid = $_result.b5o('sCbUid'); var tmp_40; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_40 = Unit_instance; } var _tmp_sProgress = getIntNullable($_result, 'sProgress'); var tmp_41; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_41 = Unit_instance; } var _tmp_sIsCompleted = $_result.m67('sIsCompleted'); var tmp_42; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_42 = Unit_instance; } var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess'); var tmp_43; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_43 = Unit_instance; } var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled'); var tmp_44; if ($_result.t68()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_44 = Unit_instance; } var _tmp_BlockStatus_isAllNull = _tmp_BlockStatus_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new ContentEntryAndListDetail(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call if (!_tmp_ContentEntry_isAllNull) { var tmp_45 = this_0; // Inline function 'kotlin.apply' call var this_1 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.baj_1 = _tmp_contentEntryUid; this_1.caj_1 = _tmp_title; this_1.daj_1 = _tmp_description; this_1.eaj_1 = _tmp_entryId; this_1.faj_1 = _tmp_author; this_1.gaj_1 = _tmp_publisher; this_1.haj_1 = _tmp_licenseType; this_1.iaj_1 = _tmp_licenseName; this_1.jaj_1 = _tmp_licenseUrl; this_1.kaj_1 = _tmp_sourceUrl; this_1.laj_1 = _tmp_thumbnailUrl; this_1.maj_1 = _tmp_lastModified; this_1.naj_1 = _tmp_primaryLanguageUid; this_1.oaj_1 = _tmp_languageVariantUid; this_1.paj_1 = _tmp_contentFlags; this_1.qaj_1 = _tmp_leaf; this_1.raj_1 = _tmp_publik; this_1.saj_1 = _tmp_ceInactive; this_1.taj_1 = _tmp_completionCriteria; this_1.uaj_1 = _tmp_minScore; this_1.vaj_1 = _tmp_contentTypeFlag; this_1.waj_1 = _tmp_contentOwner; this_1.xaj_1 = _tmp_contentOwnerType; this_1.yaj_1 = _tmp_contentEntryLocalChangeSeqNum; this_1.zaj_1 = _tmp_contentEntryMasterChangeSeqNum; this_1.aak_1 = _tmp_contentEntryLastChangedBy; this_1.bak_1 = _tmp_contentEntryLct; tmp_45.eam_1 = this_1; } if (!_tmp_ContentEntryPicture2_isAllNull) { var tmp_46 = this_0; // Inline function 'kotlin.apply' call var this_2 = new ContentEntryPicture2(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_2.rak_1 = _tmp_cepUid; this_2.sak_1 = _tmp_cepLct; this_2.tak_1 = _tmp_cepPictureUri; this_2.uak_1 = _tmp_cepThumbnailUri; tmp_46.fam_1 = this_2; } if (!_tmp_ContentEntryParentChildJoin_isAllNull) { var tmp_47 = this_0; // Inline function 'kotlin.apply' call var this_3 = new ContentEntryParentChildJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_3.lam_1 = _tmp_cepcjUid; this_3.mam_1 = _tmp_cepcjLocalChangeSeqNum; this_3.nam_1 = _tmp_cepcjMasterChangeSeqNum; this_3.oam_1 = _tmp_cepcjLastChangedBy; this_3.pam_1 = _tmp_cepcjLct; this_3.qam_1 = _tmp_cepcjDeleted; this_3.iam_1 = _tmp_cepcjParentContentEntryUid; this_3.jam_1 = _tmp_cepcjChildContentEntryUid; this_3.kam_1 = _tmp_childIndex; tmp_47.gam_1 = this_3; } if (!_tmp_BlockStatus_isAllNull) { var tmp_48 = this_0; // Inline function 'kotlin.apply' call var this_4 = new BlockStatus(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_4.kal_1 = _tmp_sPersonUid; this_4.lal_1 = _tmp_sCbUid; this_4.mal_1 = _tmp_sProgress; this_4.nal_1 = _tmp_sIsCompleted; this_4.oal_1 = _tmp_sIsSuccess; this_4.pal_1 = _tmp_sScoreScaled; tmp_48.ham_1 = this_4; } return this_0; }; } function ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda($accountPersonUid, $_limit, $_offset, resultContinuation) { this.cap_1 = $accountPersonUid; this.dap_1 = $_limit; this.eap_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda).ian = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda).le = function (p1, $completion) { return this.ian((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.fap_1.x5i(1, this.cap_1); this.fap_1.x5i(2, this.cap_1); this.fap_1.x5i(3, this.cap_1); this.fap_1.x5i(4, this.cap_1); this.fap_1.x5i(5, this.cap_1); this.fap_1.x5i(6, this.cap_1); this.fap_1.x5i(7, this.cap_1); this.fap_1.w5i(8, this.dap_1); this.fap_1.w5i(9, this.eap_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.fap_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda(this.cap_1, this.dap_1, this.eap_1, completion); i.fap_1 = _stmt; return i; }; function ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda_0($accountPersonUid, $_limit, $_offset, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda($accountPersonUid, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.ian(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda($accountPersonUid, resultContinuation) { this.oap_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.pap_1.x5i(1, this.oap_1); this.pap_1.x5i(2, this.oap_1); this.pap_1.x5i(3, this.oap_1); this.pap_1.x5i(4, this.oap_1); this.pap_1.x5i(5, this.oap_1); this.pap_1.x5i(6, this.oap_1); this.pap_1.x5i(7, this.oap_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.pap_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda(this.oap_1, completion); i.pap_1 = _stmt; return i; }; function ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda_0($accountPersonUid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda($accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_contentEntryUid = $_result.b5o('contentEntryUid'); var _tmp_title = $_result.b10('title'); var _tmp_description = $_result.b10('description'); var _tmp_entryId = $_result.b10('entryId'); var _tmp_author = $_result.b10('author'); var _tmp_publisher = $_result.b10('publisher'); var _tmp_licenseType = $_result.a5o('licenseType'); var _tmp_licenseName = $_result.b10('licenseName'); var _tmp_licenseUrl = $_result.b10('licenseUrl'); var _tmp_sourceUrl = $_result.b10('sourceUrl'); var _tmp_thumbnailUrl = $_result.b10('thumbnailUrl'); var _tmp_lastModified = $_result.b5o('lastModified'); var _tmp_primaryLanguageUid = $_result.b5o('primaryLanguageUid'); var _tmp_languageVariantUid = $_result.b5o('languageVariantUid'); var _tmp_contentFlags = $_result.a5o('contentFlags'); var _tmp_leaf = $_result.m67('leaf'); var _tmp_publik = $_result.m67('publik'); var _tmp_ceInactive = $_result.m67('ceInactive'); var _tmp_completionCriteria = $_result.a5o('completionCriteria'); var _tmp_minScore = $_result.a5o('minScore'); var _tmp_contentTypeFlag = $_result.a5o('contentTypeFlag'); var _tmp_contentOwner = $_result.b5o('contentOwner'); var _tmp_contentOwnerType = $_result.a5o('contentOwnerType'); var _tmp_contentEntryLocalChangeSeqNum = $_result.b5o('contentEntryLocalChangeSeqNum'); var _tmp_contentEntryMasterChangeSeqNum = $_result.b5o('contentEntryMasterChangeSeqNum'); var _tmp_contentEntryLastChangedBy = $_result.a5o('contentEntryLastChangedBy'); var _tmp_contentEntryLct = $_result.b5o('contentEntryLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findLiveContentEntry.....' call this_0.baj_1 = _tmp_contentEntryUid; this_0.caj_1 = _tmp_title; this_0.daj_1 = _tmp_description; this_0.eaj_1 = _tmp_entryId; this_0.faj_1 = _tmp_author; this_0.gaj_1 = _tmp_publisher; this_0.haj_1 = _tmp_licenseType; this_0.iaj_1 = _tmp_licenseName; this_0.jaj_1 = _tmp_licenseUrl; this_0.kaj_1 = _tmp_sourceUrl; this_0.laj_1 = _tmp_thumbnailUrl; this_0.maj_1 = _tmp_lastModified; this_0.naj_1 = _tmp_primaryLanguageUid; this_0.oaj_1 = _tmp_languageVariantUid; this_0.paj_1 = _tmp_contentFlags; this_0.qaj_1 = _tmp_leaf; this_0.raj_1 = _tmp_publik; this_0.saj_1 = _tmp_ceInactive; this_0.taj_1 = _tmp_completionCriteria; this_0.uaj_1 = _tmp_minScore; this_0.vaj_1 = _tmp_contentTypeFlag; this_0.waj_1 = _tmp_contentOwner; this_0.xaj_1 = _tmp_contentOwnerType; this_0.yaj_1 = _tmp_contentEntryLocalChangeSeqNum; this_0.zaj_1 = _tmp_contentEntryMasterChangeSeqNum; this_0.aak_1 = _tmp_contentEntryLastChangedBy; this_0.bak_1 = _tmp_contentEntryLct; return this_0; }; } function ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda($parentUid, resultContinuation) { this.yap_1 = $parentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda).aaq = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda).le = function (p1, $completion) { return this.aaq((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.zap_1.x5i(1, this.yap_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.zap_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda).o5g = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda(this.yap_1, completion); i.zap_1 = _stmt; return i; }; function ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda_0($parentUid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda($parentUid, resultContinuation); var l = function (_stmt, $completion) { return i.aaq(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.baq_1); } protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1).w5h = function (returnsId) { return 'INSERT INTO ContentEntry (contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1).gaq = function (stmt, entity) { if (entity.baj_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.baj_1); } stmt.a5j(2, entity.caj_1); stmt.a5j(3, entity.daj_1); stmt.a5j(4, entity.eaj_1); stmt.a5j(5, entity.faj_1); stmt.a5j(6, entity.gaj_1); stmt.w5i(7, entity.haj_1); stmt.a5j(8, entity.iaj_1); stmt.a5j(9, entity.jaj_1); stmt.a5j(10, entity.kaj_1); stmt.a5j(11, entity.laj_1); stmt.x5i(12, entity.maj_1); stmt.x5i(13, entity.naj_1); stmt.x5i(14, entity.oaj_1); stmt.w5i(15, entity.paj_1); stmt.k5i(16, entity.qaj_1); stmt.k5i(17, entity.raj_1); stmt.k5i(18, entity.saj_1); stmt.w5i(19, entity.taj_1); stmt.w5i(20, entity.uaj_1); stmt.w5i(21, entity.vaj_1); stmt.x5i(22, entity.waj_1); stmt.w5i(23, entity.xaj_1); stmt.x5i(24, entity.yaj_1); stmt.x5i(25, entity.zaj_1); stmt.w5i(26, entity.aak_1); stmt.x5i(27, entity.bak_1); }; protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1).r5g = function (stmt, entity) { return this.gaq(stmt, entity instanceof ContentEntry ? entity : THROW_CCE()); }; function ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.baq_1); } protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO ContentEntry (contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1).gaq = function (stmt, entity) { if (entity.baj_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.baj_1); } stmt.a5j(2, entity.caj_1); stmt.a5j(3, entity.daj_1); stmt.a5j(4, entity.eaj_1); stmt.a5j(5, entity.faj_1); stmt.a5j(6, entity.gaj_1); stmt.w5i(7, entity.haj_1); stmt.a5j(8, entity.iaj_1); stmt.a5j(9, entity.jaj_1); stmt.a5j(10, entity.kaj_1); stmt.a5j(11, entity.laj_1); stmt.x5i(12, entity.maj_1); stmt.x5i(13, entity.naj_1); stmt.x5i(14, entity.oaj_1); stmt.w5i(15, entity.paj_1); stmt.k5i(16, entity.qaj_1); stmt.k5i(17, entity.raj_1); stmt.k5i(18, entity.saj_1); stmt.w5i(19, entity.taj_1); stmt.w5i(20, entity.uaj_1); stmt.w5i(21, entity.vaj_1); stmt.x5i(22, entity.waj_1); stmt.w5i(23, entity.xaj_1); stmt.x5i(24, entity.yaj_1); stmt.x5i(25, entity.zaj_1); stmt.w5i(26, entity.aak_1); stmt.x5i(27, entity.bak_1); }; protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1).r5g = function (stmt, entity) { return this.gaq(stmt, entity instanceof ContentEntry ? entity : THROW_CCE()); }; function ContentEntryDao_JdbcImpl$findByUidAsync$slambda($entryUid, resultContinuation) { this.raq_1 = $entryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$findByUidAsync$slambda).aaq = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_JdbcImpl$findByUidAsync$slambda).le = function (p1, $completion) { return this.aaq((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$findByUidAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.saq_1.x5i(1, this.raq_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.saq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$findByUidAsync$slambda).o5g = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$findByUidAsync$slambda(this.raq_1, completion); i.saq_1 = _stmt; return i; }; function ContentEntryDao_JdbcImpl$findByUidAsync$slambda_0($entryUid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$findByUidAsync$slambda($entryUid, resultContinuation); var l = function (_stmt, $completion) { return i.aaq(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda($uid, resultContinuation) { this.bar_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda).dar = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda).le = function (p1, $completion) { return this.dar((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.car_1.x5i(1, this.bar_1); this.car_1.x5i(2, this.bar_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.car_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda).o5g = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda(this.bar_1, completion); i.car_1 = _stmt; return i; }; function ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda_0($uid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.dar(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, $courseBlockUid, $contentEntryUid, resultContinuation) { this.mar_1 = this$0; this.nar_1 = $clazzUid; this.oar_1 = $accountPersonUid; this.par_1 = $courseBlockUid; this.qar_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda).rar = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda).r79 = function ($completion) { return this.rar($completion); }; protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n -- When the user is viewing ContentEntryDetail where the class is specified eg \n -- for a ContentEntry that is part of a Clazz then results information will only be\n -- included if the user is a student in the class\n -- If the user is viewing the ContentEntryDetail via the library then the results\n -- information will always be included\n WITH IncludeResults(includeResults) AS (\n SELECT CAST(\n (SELECT (CAST(? AS BIGINT) = 0)\n OR (\n (SELECT EXISTS(\n SELECT 1\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000))\n )\n ) AS INTEGER)\n )\n\n SELECT ContentEntry.*, ContentEntryVersion.*, ContentEntryPicture2.*,\n CAST(? AS BIGINT) AS sPersonUid,\n CAST(? AS BIGINT) AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n FROM ContentEntry\n LEFT JOIN ContentEntryVersion\n ON ContentEntryVersion.cevUid = \n (SELECT ContentEntryVersion.cevUid\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = CAST(? AS BIGINT)\n AND CAST(cevInActive AS INTEGER) = 0\n ORDER BY ContentEntryVersion.cevLct DESC\n LIMIT 1)\n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = CAST(? AS BIGINT) \n WHERE ContentEntry.contentEntryUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n -- When the user is viewing ContentEntryDetail where the class is specified eg \n -- for a ContentEntry that is part of a Clazz then results information will only be\n -- included if the user is a student in the class\n -- If the user is viewing the ContentEntryDetail via the library then the results\n -- information will always be included\n WITH IncludeResults(includeResults) AS (\n SELECT CAST(\n (SELECT (? = 0)\n OR (\n (SELECT EXISTS(\n SELECT 1\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000))\n )\n ) AS INTEGER)\n )\n\n SELECT ContentEntry.*, ContentEntryVersion.*, ContentEntryPicture2.*,\n ? AS sPersonUid,\n ? AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n FROM ContentEntry\n LEFT JOIN ContentEntryVersion\n ON ContentEntryVersion.cevUid = \n (SELECT ContentEntryVersion.cevUid\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = ?\n AND CAST(cevInActive AS INTEGER) = 0\n ORDER BY ContentEntryVersion.cevLct DESC\n LIMIT 1)\n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ? \n WHERE ContentEntry.contentEntryUid = ?\n \n', true); suspendResult = prepareAndUseStatementAsync(this.mar_1.baq_1, tmp_0, ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda_0(this.nar_1, this.oar_1, this.par_1, this.qar_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda).q79 = function (completion) { return new ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda(this.mar_1, this.nar_1, this.oar_1, this.par_1, this.qar_1, completion); }; function ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda_0(this$0, $clazzUid, $accountPersonUid, $courseBlockUid, $contentEntryUid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, $courseBlockUid, $contentEntryUid, resultContinuation); var l = function ($completion) { return i.rar($completion); }; l.$arity = 0; return l; } function ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda($entryUid, resultContinuation) { this.aas_1 = $entryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda).p8m = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda).le = function (p1, $completion) { return this.p8m((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.bas_1.x5i(1, this.aas_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.bas_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda).o5g = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda(this.aas_1, completion); i.bas_1 = _stmt; return i; }; function ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda_0($entryUid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda($entryUid, resultContinuation); var l = function (_stmt, $completion) { return i.p8m(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1(this$0, $accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder) { this.ias_1 = this$0; this.jas_1 = $accountPersonUid; this.kas_1 = $parentUid; this.las_1 = $langParam; this.mas_1 = $categoryParam0; this.nas_1 = $includeDeleted; this.oas_1 = $sortOrder; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['ContentEntry', 'ContentEntryContentCategoryJoin', 'ContentEntryPicture2', 'StatementEntity', 'ContentEntryParentChildJoin']; DoorLimitOffsetPagingSource.call(this, this$0.baq_1, tmp$ret$2); } protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1).pas = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n \n CAST(? AS BIGINT) AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM ContentEntry \n LEFT JOIN ContentEntryParentChildJoin \n ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid \n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = CAST(? AS BIGINT) \n AND (CAST(? AS BIGINT) = 0 OR ContentEntry.primaryLanguageUid = CAST(? AS BIGINT))\n AND (CAST(? AS BIGINT) = 0 OR CAST(? AS BIGINT) \n IN (SELECT ceccjContentCategoryUid \n FROM ContentEntryContentCategoryJoin \n WHERE ceccjContentEntryUid = ContentEntry.contentEntryUid)) \n AND (CAST(? AS INTEGER) = 1 OR CAST(ContentEntryParentChildJoin.cepcjDeleted AS INTEGER) = 0) \n ORDER BY ContentEntryParentChildJoin.childIndex,\n CASE(?)\n WHEN 1 THEN ContentEntry.title\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN ContentEntry.title\n ELSE ''\n END DESC, \n ContentEntry.contentEntryUid) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n \n ? AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM ContentEntry \n LEFT JOIN ContentEntryParentChildJoin \n ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid \n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ? \n AND (? = 0 OR ContentEntry.primaryLanguageUid = ?)\n AND (? = 0 OR ? \n IN (SELECT ceccjContentCategoryUid \n FROM ContentEntryContentCategoryJoin \n WHERE ceccjContentEntryUid = ContentEntry.contentEntryUid)) \n AND (CAST(? AS INTEGER) = 1 OR CAST(ContentEntryParentChildJoin.cepcjDeleted AS INTEGER) = 0) \n ORDER BY ContentEntryParentChildJoin.childIndex,\n CASE(?)\n WHEN 1 THEN ContentEntry.title\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN ContentEntry.title\n ELSE ''\n END DESC, \n ContentEntry.contentEntryUid) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.ias_1.baq_1, tmp, ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda_0(this.jas_1, this.kas_1, this.las_1, this.mas_1, this.nas_1, this.oas_1, _limit, _offset, null), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1).z5q = function (_limit, _offset, $completion) { return this.pas(_limit, _offset, $completion); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n \n CAST(? AS BIGINT) AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM ContentEntry \n LEFT JOIN ContentEntryParentChildJoin \n ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid \n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = CAST(? AS BIGINT) \n AND (CAST(? AS BIGINT) = 0 OR ContentEntry.primaryLanguageUid = CAST(? AS BIGINT))\n AND (CAST(? AS BIGINT) = 0 OR CAST(? AS BIGINT) \n IN (SELECT ceccjContentCategoryUid \n FROM ContentEntryContentCategoryJoin \n WHERE ceccjContentEntryUid = ContentEntry.contentEntryUid)) \n AND (CAST(? AS INTEGER) = 1 OR CAST(ContentEntryParentChildJoin.cepcjDeleted AS INTEGER) = 0) \n ORDER BY ContentEntryParentChildJoin.childIndex,\n CASE(?)\n WHEN 1 THEN ContentEntry.title\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN ContentEntry.title\n ELSE ''\n END DESC, \n ContentEntry.contentEntryUid) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n \n ? AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM ContentEntry \n LEFT JOIN ContentEntryParentChildJoin \n ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid \n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ? \n AND (? = 0 OR ContentEntry.primaryLanguageUid = ?)\n AND (? = 0 OR ? \n IN (SELECT ceccjContentCategoryUid \n FROM ContentEntryContentCategoryJoin \n WHERE ceccjContentEntryUid = ContentEntry.contentEntryUid)) \n AND (CAST(? AS INTEGER) = 1 OR CAST(ContentEntryParentChildJoin.cepcjDeleted AS INTEGER) = 0) \n ORDER BY ContentEntryParentChildJoin.childIndex,\n CASE(?)\n WHEN 1 THEN ContentEntry.title\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN ContentEntry.title\n ELSE ''\n END DESC, \n ContentEntry.contentEntryUid) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.ias_1.baq_1, tmp, ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda_0(this.jas_1, this.kas_1, this.las_1, this.mas_1, this.nas_1, this.oas_1, null), $completion); }; function ContentEntryDao_JdbcImpl$getContentFromMyCourses$1(this$0, $accountPersonUid) { this.was_1 = this$0; this.xas_1 = $accountPersonUid; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['ContentEntry', 'CourseBlock', 'ClazzEnrolment', 'ContentEntryPicture2', 'StatementEntity', 'ContentEntryParentChildJoin']; DoorLimitOffsetPagingSource.call(this, this$0.baq_1, tmp$ret$2); } protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$1).pas = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n \n CAST(? AS BIGINT) AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM CourseBlock\n JOIN ContentEntry \n ON CourseBlock.cbType = 104\n AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n AND CAST(CourseBlock.cbActive AS INTEGER) = 1\n LEFT JOIN ContentEntryParentChildJoin\n ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid \n WHERE CourseBlock.cbClazzUid IN\n (SELECT ClazzEnrolment.clazzEnrolmentClazzUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT))\n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n \n ? AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM CourseBlock\n JOIN ContentEntry \n ON CourseBlock.cbType = 104\n AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n AND CAST(CourseBlock.cbActive AS INTEGER) = 1\n LEFT JOIN ContentEntryParentChildJoin\n ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid \n WHERE CourseBlock.cbClazzUid IN\n (SELECT ClazzEnrolment.clazzEnrolmentClazzUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?)\n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.was_1.baq_1, tmp, ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda_0(this.xas_1, _limit, _offset, null), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$1).z5q = function (_limit, _offset, $completion) { return this.pas(_limit, _offset, $completion); }; protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n \n CAST(? AS BIGINT) AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM CourseBlock\n JOIN ContentEntry \n ON CourseBlock.cbType = 104\n AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n AND CAST(CourseBlock.cbActive AS INTEGER) = 1\n LEFT JOIN ContentEntryParentChildJoin\n ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid \n WHERE CourseBlock.cbClazzUid IN\n (SELECT ClazzEnrolment.clazzEnrolmentClazzUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT))\n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n \n ? AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM CourseBlock\n JOIN ContentEntry \n ON CourseBlock.cbType = 104\n AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n AND CAST(CourseBlock.cbActive AS INTEGER) = 1\n LEFT JOIN ContentEntryParentChildJoin\n ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid \n WHERE CourseBlock.cbClazzUid IN\n (SELECT ClazzEnrolment.clazzEnrolmentClazzUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?)\n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.was_1.baq_1, tmp, ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda_0(this.xas_1, null), $completion); }; function ContentEntryDao_JdbcImpl$getContentByOwner$1(this$0, $accountPersonUid) { this.eat_1 = this$0; this.fat_1 = $accountPersonUid; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['ContentEntry', 'ContentEntryPicture2', 'StatementEntity', 'ContentEntryParentChildJoin']; DoorLimitOffsetPagingSource.call(this, this$0.baq_1, tmp$ret$2); } protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$1).pas = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*, \n \n CAST(? AS BIGINT) AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM ContentEntry\n LEFT JOIN ContentEntryParentChildJoin\n ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n WHERE ContentEntry.contentOwner = CAST(? AS BIGINT)\n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*, \n \n ? AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM ContentEntry\n LEFT JOIN ContentEntryParentChildJoin\n ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n WHERE ContentEntry.contentOwner = ?\n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.eat_1.baq_1, tmp, ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda_0(this.fat_1, _limit, _offset, null), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$1).z5q = function (_limit, _offset, $completion) { return this.pas(_limit, _offset, $completion); }; protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*, \n \n CAST(? AS BIGINT) AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM ContentEntry\n LEFT JOIN ContentEntryParentChildJoin\n ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n WHERE ContentEntry.contentOwner = CAST(? AS BIGINT)\n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*, \n \n ? AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM ContentEntry\n LEFT JOIN ContentEntryParentChildJoin\n ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n WHERE ContentEntry.contentOwner = ?\n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.eat_1.baq_1, tmp, ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda_0(this.fat_1, null), $completion); }; function ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda(this$0, $parentUid, resultContinuation) { this.oat_1 = this$0; this.pat_1 = $parentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda).qat = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda).r79 = function ($completion) { return this.qat($completion); }; protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('SELECT * FROM ContentEntry where contentEntryUid = CAST(? AS BIGINT) LIMIT 1', VOID, VOID, VOID, 'SELECT * FROM ContentEntry where contentEntryUid = ? LIMIT 1\n', true); suspendResult = prepareAndUseStatementAsync(this.oat_1.baq_1, tmp_0, ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda_0(this.pat_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda).q79 = function (completion) { return new ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda(this.oat_1, this.pat_1, completion); }; function ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda_0(this$0, $parentUid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda(this$0, $parentUid, resultContinuation); var l = function ($completion) { return i.qat($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$98(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.zat_1 = _this__u8e3s4; this.aau_1 = entity; } protoOf($insertAsyncCOROUTINE$98).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.zat_1.caq_1.y5h(this.aau_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentEntryDao_JdbcImpl(_db) { ContentEntryDao.call(this); this.baq_1 = _db; var tmp = this; tmp.caq_1 = new ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1(this); var tmp_0 = this; tmp_0.daq_1 = new ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1(this); } protoOf(ContentEntryDao_JdbcImpl).eai = function (entity, $completion) { return this.daq_1.x5h(entity, $completion); }; protoOf(ContentEntryDao_JdbcImpl).oak = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$98(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.oak(entity instanceof ContentEntry ? entity : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl).fai = function (entryUid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM ContentEntry WHERE contentEntryUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM ContentEntry WHERE contentEntryUid = ?\n', true); return prepareAndUseStatementAsync(this.baq_1, tmp, ContentEntryDao_JdbcImpl$findByUidAsync$slambda_0(entryUid, null), $completion); }; protoOf(ContentEntryDao_JdbcImpl).gai = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ContentEntry.*, ContentEntryPicture2.*\n FROM ContentEntry\n LEFT JOIN ContentEntryPicture2 \n ON ContentEntryPicture2.cepUid = CAST(? AS BIGINT)\n WHERE ContentEntry.contentEntryUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT ContentEntry.*, ContentEntryPicture2.*\n FROM ContentEntry\n LEFT JOIN ContentEntryPicture2 \n ON ContentEntryPicture2.cepUid = ?\n WHERE ContentEntry.contentEntryUid = ? \n \n', true); return prepareAndUseStatementAsync(this.baq_1, tmp, ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda_0(uid, null), $completion); }; protoOf(ContentEntryDao_JdbcImpl).hai = function (contentEntryUid, clazzUid, courseBlockUid, accountPersonUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ContentEntry', 'ContentEntryVersion', 'ContentEntryPicture2', 'CourseBlock', 'ClazzEnrolment', 'StatementEntity']; return doorFlow(this.baq_1, tmp, ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda_0(this, clazzUid, accountPersonUid, courseBlockUid, contentEntryUid, null)); }; protoOf(ContentEntryDao_JdbcImpl).iai = function (entryUid, $completion) { var tmp = new PreparedStatementConfig('SELECT title FROM ContentEntry WHERE contentEntryUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT title FROM ContentEntry WHERE contentEntryUid = ?\n', true); return prepareAndUseStatementAsync(this.baq_1, tmp, ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda_0(entryUid, null), $completion); }; protoOf(ContentEntryDao_JdbcImpl).jai = function (accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted) { return new ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1(this, accountPersonUid, parentUid, langParam, categoryParam0, includeDeleted, sortOrder); }; protoOf(ContentEntryDao_JdbcImpl).kai = function (accountPersonUid) { return new ContentEntryDao_JdbcImpl$getContentFromMyCourses$1(this, accountPersonUid); }; protoOf(ContentEntryDao_JdbcImpl).lai = function (accountPersonUid) { return new ContentEntryDao_JdbcImpl$getContentByOwner$1(this, accountPersonUid); }; protoOf(ContentEntryDao_JdbcImpl).mai = function (parentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ContentEntry']; return doorFlow(this.baq_1, tmp, ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda_0(this, parentUid, null)); }; function ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ContentEntryDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation) { this.jau_1 = this$0; this.kau_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_Repo$upsertAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_Repo$upsertAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ContentEntryDao_Repo$upsertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.jau_1.nau_1.eai(this.kau_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryDao_Repo$upsertAsync$slambda).q79 = function (completion) { return new ContentEntryDao_Repo$upsertAsync$slambda(this.jau_1, this.kau_1, completion); }; function ContentEntryDao_Repo$upsertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ContentEntryDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ContentEntryDao_Repo$findByUidWithEditDetails$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda(this$0, $contentEntryUid, $clazzUid, $courseBlockUid, $accountPersonUid, resultContinuation) { this.aav_1 = this$0; this.bav_1 = $contentEntryUid; this.cav_1 = $clazzUid; this.dav_1 = $courseBlockUid; this.eav_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.fav_1 = this.aav_1.mau_1; var tmp_1 = this; tmp_1.gav_1 = 'ContentEntryDao/findByContentEntryUidWithDetailsAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.hav_1 = this.aav_1.oau_1; var tmp_3 = this; tmp_3.iav_1 = this.hav_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.aav_1.mau_1.t39(), 'ContentEntryDao/findByContentEntryUidWithDetailsAsFlow'); doorNodeIdHeader(this_0, this.aav_1.mau_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'contentEntryUid', this.aav_1.mau_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.bav_1)); parameter(this_0, 'clazzUid', this.aav_1.mau_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.cav_1)); parameter(this_0, 'courseBlockUid', this.aav_1.mau_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.dav_1)); parameter(this_0, 'accountPersonUid', this.aav_1.mau_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.eav_1)); tmp_4.jav_1 = this_0; this.jav_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.kav_1 = this.iav_1; var tmp_6 = this; tmp_6.lav_1 = this.jav_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.lav_1, this.kav_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.mav_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.aav_1.lau_1, this.mav_1, this.aav_1.mau_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda$lambda(this.fav_1, this.gav_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda).q79 = function (completion) { return new ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda(this.aav_1, this.bav_1, this.cav_1, this.dav_1, this.eav_1, completion); }; function ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda_0(this$0, $contentEntryUid, $clazzUid, $courseBlockUid, $accountPersonUid, resultContinuation) { var i = new ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda(this$0, $contentEntryUid, $clazzUid, $courseBlockUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ContentEntryDao_Repo$findTitleByUidAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda(this$0, $accountPersonUid, $parentUid, $langParam, $categoryParam0, $sortOrder, $includeDeleted, resultContinuation) { this.vav_1 = this$0; this.wav_1 = $accountPersonUid; this.xav_1 = $parentUid; this.yav_1 = $langParam; this.zav_1 = $categoryParam0; this.aaw_1 = $sortOrder; this.baw_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.eaw_1 = this.vav_1.mau_1; var tmp_1 = this; tmp_1.faw_1 = 'ContentEntryDao/getChildrenByParentUidWithCategoryFilterOrderByName'; this.md_1 = 4; var tmp_2 = this; tmp_2.gaw_1 = this.vav_1.oau_1; var tmp_3 = this; tmp_3.haw_1 = this.gaw_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.vav_1.mau_1.t39(), 'ContentEntryDao/getChildrenByParentUidWithCategoryFilterOrderByName'); doorNodeIdHeader(this_0, this.vav_1.mau_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.vav_1.mau_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.wav_1)); parameter(this_0, 'parentUid', this.vav_1.mau_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.xav_1)); parameter(this_0, 'langParam', this.vav_1.mau_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.yav_1)); parameter(this_0, 'categoryParam0', this.vav_1.mau_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.zav_1)); parameter(this_0, 'sortOrder', this.vav_1.mau_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.aaw_1)); parameter(this_0, 'includeDeleted', this.vav_1.mau_1.t39().a67_1.b46(serializer_2(BooleanCompanionObject_instance), this.baw_1)); pagingSourceLoadParameters(this_0, this.vav_1.mau_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.caw_1); tmp_4.iaw_1 = this_0; this.iaw_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.jaw_1 = this.haw_1; var tmp_6 = this; tmp_6.kaw_1 = this.iaw_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.kaw_1, this.jaw_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.law_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.vav_1.lau_1, this.law_1, this.vav_1.mau_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.daw_1 = endOfPaginationReached(this.law_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda$lambda(this.eaw_1, this.faw_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.daw_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda).g87 = function (_pagingParams, completion) { var i = new ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda(this.vav_1, this.wav_1, this.xav_1, this.yav_1, this.zav_1, this.aaw_1, this.baw_1, completion); i.caw_1 = _pagingParams; return i; }; function ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda_0(this$0, $accountPersonUid, $parentUid, $langParam, $categoryParam0, $sortOrder, $includeDeleted, resultContinuation) { var i = new ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda(this$0, $accountPersonUid, $parentUid, $langParam, $categoryParam0, $sortOrder, $includeDeleted, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.uaw_1 = this$0; this.vaw_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(ContentEntryDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.uaw_1.nau_1.insertAsync(this.vaw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryDao_Repo$insertAsync$slambda).q79 = function (completion) { return new ContentEntryDao_Repo$insertAsync$slambda(this.uaw_1, this.vaw_1, completion); }; function ContentEntryDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ContentEntryDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $findByUidAsyncCOROUTINE$100(_this__u8e3s4, entryUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.eax_1 = _this__u8e3s4; this.fax_1 = entryUid; } protoOf($findByUidAsyncCOROUTINE$100).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.eax_1.nau_1.fai(this.fax_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $findByUidWithEditDetailsCOROUTINE$102(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.oax_1 = _this__u8e3s4; this.pax_1 = uid; } protoOf($findByUidWithEditDetailsCOROUTINE$102).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.qax_1 = this.oax_1.mau_1; var tmp_1 = this; tmp_1.rax_1 = 'ContentEntryDao/findByUidWithEditDetails'; this.md_1 = 3; var tmp_2 = this; tmp_2.sax_1 = this.oax_1.oau_1; var tmp_3 = this; tmp_3.tax_1 = this.sax_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.oax_1.mau_1.t39(), 'ContentEntryDao/findByUidWithEditDetails'); doorNodeIdHeader(this_0, this.oax_1.mau_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this.oax_1.mau_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.pax_1)); tmp_4.uax_1 = this_0; this.uax_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.vax_1 = this.tax_1; var tmp_6 = this; tmp_6.wax_1 = this.uax_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.wax_1, this.vax_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.xax_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.oax_1.lau_1, this.xax_1, this.oax_1.mau_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.yax_1 = this.od_1; Napier_getInstance().e5f(this.yax_1, 'DoorLog', ContentEntryDao_Repo$findByUidWithEditDetails$lambda(this.qax_1, this.rax_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.oax_1.nau_1.gai(this.pax_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $findTitleByUidAsyncCOROUTINE$103(_this__u8e3s4, entryUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.hay_1 = _this__u8e3s4; this.iay_1 = entryUid; } protoOf($findTitleByUidAsyncCOROUTINE$103).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.jay_1 = this.hay_1.mau_1; var tmp_1 = this; tmp_1.kay_1 = 'ContentEntryDao/findTitleByUidAsync'; this.md_1 = 3; var tmp_2 = this; tmp_2.lay_1 = this.hay_1.oau_1; var tmp_3 = this; tmp_3.may_1 = this.lay_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.hay_1.mau_1.t39(), 'ContentEntryDao/findTitleByUidAsync'); doorNodeIdHeader(this_0, this.hay_1.mau_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'entryUid', this.hay_1.mau_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.iay_1)); tmp_4.nay_1 = this_0; this.nay_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.oay_1 = this.may_1; var tmp_6 = this; tmp_6.pay_1 = this.nay_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.pay_1, this.oay_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.qay_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.hay_1.lau_1, this.qay_1, this.hay_1.mau_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.ray_1 = this.od_1; Napier_getInstance().e5f(this.ray_1, 'DoorLog', ContentEntryDao_Repo$findTitleByUidAsync$lambda(this.jay_1, this.kay_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.hay_1.nau_1.iai(this.iay_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$112(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.aaz_1 = _this__u8e3s4; this.baz_1 = entity; } protoOf($insertAsyncCOROUTINE$112).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.aaz_1.mau_1, 'ContentEntry', ContentEntryDao_Repo$insertAsync$slambda_0(this.aaz_1, this.baz_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentEntryDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ContentEntryDao.call(this); this.lau_1 = _db; this.mau_1 = _repo; this.nau_1 = _dao; this.oau_1 = _httpClient; this.pau_1 = _clientId; this.qau_1 = _endpoint; this.rau_1 = new RepoDaoFlowHelper(this.mau_1); } protoOf(ContentEntryDao_Repo).eai = function (entity, $completion) { return withRepoChangeMonitorAsync(this.mau_1, 'ContentEntry', ContentEntryDao_Repo$upsertAsync$slambda_0(this, entity, null), $completion); }; protoOf(ContentEntryDao_Repo).fai = function (entryUid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$100(this, entryUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_Repo).gai = function (uid, $completion) { var tmp = new $findByUidWithEditDetailsCOROUTINE$102(this, uid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_Repo).hai = function (contentEntryUid, clazzUid, courseBlockUid, accountPersonUid) { var tmp = this.nau_1.hai(contentEntryUid, clazzUid, courseBlockUid, accountPersonUid); return this.rau_1.r68(tmp, ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda_0(this, contentEntryUid, clazzUid, courseBlockUid, accountPersonUid, null)); }; protoOf(ContentEntryDao_Repo).iai = function (entryUid, $completion) { var tmp = new $findTitleByUidAsyncCOROUTINE$103(this, entryUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_Repo).jai = function (accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted) { var tmp = this.nau_1.jai(accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted); return new DoorRepositoryReplicatePullPagingSource(this.mau_1, 'ContentEntryDao/getChildrenByParentUidWithCategoryFilterOrderByName', tmp, ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda_0(this, accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted, null)); }; protoOf(ContentEntryDao_Repo).kai = function (accountPersonUid) { var _result = this.nau_1.kai(accountPersonUid); return _result; }; protoOf(ContentEntryDao_Repo).lai = function (accountPersonUid) { var _result = this.nau_1.lai(accountPersonUid); return _result; }; protoOf(ContentEntryDao_Repo).mai = function (parentUid) { var _result = this.nau_1.mai(parentUid); return _result; }; protoOf(ContentEntryDao_Repo).oak = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$112(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryDao_Repo).insertAsync = function (entity, $completion) { return this.oak(entity instanceof ContentEntry ? entity : THROW_CCE(), $completion); }; function ContentEntryImportJobDao() { } function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda$lambda(_result) { return mapRows(_result, ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda$lambda$lambda(_result)); } function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cjiUid = $_result.b5o('cjiUid'); var _tmp_cjiItemProgress = $_result.b5o('cjiItemProgress'); var _tmp_cjiItemTotal = $_result.b5o('cjiItemTotal'); var _tmp_cjiStatus = $_result.a5o('cjiStatus'); var _tmp_cjiError = $_result.b10('cjiError'); var _tmp_cjiOwnerPersonUid = $_result.b5o('cjiOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryImportJobProgress(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryImportJobDao_JdbcImpl.findInProgressJobsByContentEntryUid.....' call this_0.daz_1 = _tmp_cjiUid; this_0.eaz_1 = _tmp_cjiItemProgress; this_0.faz_1 = _tmp_cjiItemTotal; this_0.gaz_1 = _tmp_cjiStatus; this_0.haz_1 = _tmp_cjiError; this_0.iaz_1 = _tmp_cjiOwnerPersonUid; return this_0; }; } function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda($contentEntryUid, resultContinuation) { this.raz_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda).taz = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda).le = function (p1, $completion) { return this.taz((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.saz_1.x5i(1, this.raz_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.saz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda).o5g = function (_stmt, completion) { var i = new ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda(this.raz_1, completion); i.saz_1 = _stmt; return i; }; function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda_0($contentEntryUid, resultContinuation) { var i = new ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda($contentEntryUid, resultContinuation); var l = function (_stmt, $completion) { return i.taz(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.uaz_1); } protoOf(ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1).w5h = function (returnsId) { return 'INSERT INTO ContentEntryImportJob (cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1).yaz = function (stmt, entity) { if (entity.zaz_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.zaz_1); } stmt.a5j(2, entity.ab0_1); stmt.a5j(3, entity.bb0_1); stmt.x5i(4, entity.cb0_1); stmt.x5i(5, entity.db0_1); stmt.x5i(6, entity.eb0_1); stmt.x5i(7, entity.fb0_1); stmt.x5i(8, entity.gb0_1); stmt.w5i(9, entity.hb0_1); stmt.w5i(10, entity.ib0_1); stmt.w5i(11, entity.jb0_1); stmt.x5i(12, entity.kb0_1); stmt.x5i(13, entity.lb0_1); stmt.x5i(14, entity.mb0_1); stmt.k5i(15, entity.nb0_1); stmt.w5i(16, entity.ob0_1); stmt.a5j(17, entity.pb0_1); stmt.k5i(18, entity.qb0_1); stmt.x5i(19, entity.rb0_1); stmt.a5j(20, entity.sb0_1); }; protoOf(ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1).r5g = function (stmt, entity) { return this.yaz(stmt, entity instanceof ContentEntryImportJob ? entity : THROW_CCE()); }; function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda(this$0, $contentEntryUid, resultContinuation) { this.bb1_1 = this$0; this.cb1_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda).db1 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda).r79 = function ($completion) { return this.db1($completion); }; protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT ContentEntryImportJob.cjiUid,\n ContentEntryImportJob.cjiItemProgress,\n ContentEntryImportJob.cjiItemTotal,\n ContentEntryImportJob.cjiStatus,\n ContentEntryImportJob.cjiError,\n ContentEntryImportJob.cjiOwnerPersonUid\n FROM ContentEntryImportJob\n WHERE ContentEntryImportJob.cjiContentEntryUid = CAST(? AS BIGINT)\n AND ( ContentEntryImportJob.cjiStatus BETWEEN 4 AND 20\n OR (ContentEntryImportJob.cjiStatus = 25 AND NOT ContentEntryImportJob.cjiErrorDismissed))\n ', VOID, VOID, VOID, '\n SELECT ContentEntryImportJob.cjiUid,\n ContentEntryImportJob.cjiItemProgress,\n ContentEntryImportJob.cjiItemTotal,\n ContentEntryImportJob.cjiStatus,\n ContentEntryImportJob.cjiError,\n ContentEntryImportJob.cjiOwnerPersonUid\n FROM ContentEntryImportJob\n WHERE ContentEntryImportJob.cjiContentEntryUid = ?\n AND ( ContentEntryImportJob.cjiStatus BETWEEN 4 AND 20\n OR (ContentEntryImportJob.cjiStatus = 25 AND NOT ContentEntryImportJob.cjiErrorDismissed))\n \n', true); suspendResult = prepareAndUseStatementAsync(this.bb1_1.uaz_1, tmp_0, ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda_0(this.cb1_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda).q79 = function (completion) { return new ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda(this.bb1_1, this.cb1_1, completion); }; function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda_0(this$0, $contentEntryUid, resultContinuation) { var i = new ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda(this$0, $contentEntryUid, resultContinuation); var l = function ($completion) { return i.db1($completion); }; l.$arity = 0; return l; } function ContentEntryImportJobDao_JdbcImpl(_db) { ContentEntryImportJobDao.call(this); this.uaz_1 = _db; var tmp = this; tmp.vaz_1 = new ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1(this); } protoOf(ContentEntryImportJobDao_JdbcImpl).caz = function (contentEntryUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ContentEntryImportJob']; return doorFlow(this.uaz_1, tmp, ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda_0(this, contentEntryUid, null)); }; function ContentEntryParentChildJoinDao() { } function $insertAsyncCOROUTINE$119(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ob1_1 = _this__u8e3s4; this.pb1_1 = entity; } protoOf($insertAsyncCOROUTINE$119).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.qb1_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.ob1_1.sb1_1)); if (this.pb1_1.lam_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.qb1_1.r63(7, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.rb1_1 = suspendResult; this.pb1_1.lam_1 = this.rb1_1; this.ld_1 = 2; continue $sm; case 2: this.pb1_1.pam_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.ob1_1.tb1_1.insertAsync(this.pb1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.pb1_1.lam_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentEntryParentChildJoinDao_DoorWrapper(_db, _dao) { ContentEntryParentChildJoinDao.call(this); this.sb1_1 = _db; this.tb1_1 = _dao; } protoOf(ContentEntryParentChildJoinDao_DoorWrapper).eb1 = function (contentEntryUid, selectedItems, updateTime, $completion) { return this.tb1_1.eb1(contentEntryUid, selectedItems, updateTime, $completion); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).fb1 = function (selectedUids, isDeleted, updateTime, $completion) { return this.tb1_1.fb1(selectedUids, isDeleted, updateTime, $completion); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).ub1 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$119(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.ub1(entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE(), $completion); }; function ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.vb1_1); } protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1).w5h = function (returnsId) { return 'INSERT INTO ContentEntryParentChildJoin (cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1).ab2 = function (stmt, entity) { if (entity.lam_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.lam_1); } stmt.x5i(2, entity.mam_1); stmt.x5i(3, entity.nam_1); stmt.w5i(4, entity.oam_1); stmt.x5i(5, entity.pam_1); stmt.k5i(6, entity.qam_1); stmt.x5i(7, entity.iam_1); stmt.x5i(8, entity.jam_1); stmt.w5i(9, entity.kam_1); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1).r5g = function (stmt, entity) { return this.ab2(stmt, entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE()); }; function ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.vb1_1); } protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO ContentEntryParentChildJoin (cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1).ab2 = function (stmt, entity) { if (entity.lam_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.lam_1); } stmt.x5i(2, entity.mam_1); stmt.x5i(3, entity.nam_1); stmt.w5i(4, entity.oam_1); stmt.x5i(5, entity.pam_1); stmt.k5i(6, entity.qam_1); stmt.x5i(7, entity.iam_1); stmt.x5i(8, entity.jam_1); stmt.w5i(9, entity.kam_1); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1).r5g = function (stmt, entity) { return this.ab2(stmt, entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE()); }; function ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda($contentEntryUid, $updateTime, $selectedItems, resultContinuation) { this.lb2_1 = $contentEntryUid; this.mb2_1 = $updateTime; this.nb2_1 = $selectedItems; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ob2_1.x5i(1, this.lb2_1); this.ob2_1.x5i(2, this.mb2_1); var tmp_0 = this.ob2_1.t5h(); var this_0 = this.nb2_1; this.ob2_1.b5j(3, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.ob2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda).o5g = function (_stmt, completion) { var i = new ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda(this.lb2_1, this.mb2_1, this.nb2_1, completion); i.ob2_1 = _stmt; return i; }; function ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda_0($contentEntryUid, $updateTime, $selectedItems, resultContinuation) { var i = new ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda($contentEntryUid, $updateTime, $selectedItems, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda($isDeleted, $updateTime, $selectedUids, resultContinuation) { this.xb2_1 = $isDeleted; this.yb2_1 = $updateTime; this.zb2_1 = $selectedUids; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ab3_1.k5i(1, this.xb2_1); this.ab3_1.x5i(2, this.yb2_1); var tmp_0 = this.ab3_1.t5h(); var this_0 = this.zb2_1; this.ab3_1.b5j(3, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.ab3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda).o5g = function (_stmt, completion) { var i = new ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda(this.xb2_1, this.yb2_1, this.zb2_1, completion); i.ab3_1 = _stmt; return i; }; function ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda_0($isDeleted, $updateTime, $selectedUids, resultContinuation) { var i = new ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda($isDeleted, $updateTime, $selectedUids, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$120(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.jb3_1 = _this__u8e3s4; this.kb3_1 = entity; } protoOf($insertAsyncCOROUTINE$120).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.jb3_1.wb1_1.y5h(this.kb3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $moveListOfEntriesToNewParentCOROUTINE$121(_this__u8e3s4, contentEntryUid, selectedItems, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.tb3_1 = _this__u8e3s4; this.ub3_1 = contentEntryUid; this.vb3_1 = selectedItems; this.wb3_1 = updateTime; } protoOf($moveListOfEntriesToNewParentCOROUTINE$121).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE ContentEntryParentChildJoin \n SET cepcjParentContentEntryUid = CAST(? AS BIGINT), \n cepcjLct = CAST(? AS BIGINT) \n WHERE cepcjUid IN (?)\n ', true, VOID, VOID, '\n UPDATE ContentEntryParentChildJoin \n SET cepcjParentContentEntryUid = ?, \n cepcjLct = ? \n WHERE cepcjUid IN (?)\n \n', false); suspendResult = prepareAndUseStatementAsync(this.tb3_1.vb1_1, tmp_0, ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda_0(this.ub3_1, this.wb3_1, this.vb3_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $setEntriesDeletedCOROUTINE$122(_this__u8e3s4, selectedUids, isDeleted, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.fb4_1 = _this__u8e3s4; this.gb4_1 = selectedUids; this.hb4_1 = isDeleted; this.ib4_1 = updateTime; } protoOf($setEntriesDeletedCOROUTINE$122).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE ContentEntryParentChildJoin\n SET cepcjDeleted = ?,\n cepcjLct = CAST(? AS BIGINT)\n WHERE cepcjUid IN (?) \n ', true, VOID, VOID, '\n UPDATE ContentEntryParentChildJoin\n SET cepcjDeleted = ?,\n cepcjLct = ?\n WHERE cepcjUid IN (?) \n \n', false); suspendResult = prepareAndUseStatementAsync(this.fb4_1.vb1_1, tmp_0, ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda_0(this.hb4_1, this.ib4_1, this.gb4_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentEntryParentChildJoinDao_JdbcImpl(_db) { ContentEntryParentChildJoinDao.call(this); this.vb1_1 = _db; var tmp = this; tmp.wb1_1 = new ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1(this); var tmp_0 = this; tmp_0.xb1_1 = new ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1(this); } protoOf(ContentEntryParentChildJoinDao_JdbcImpl).ub1 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$120(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.ub1(entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE(), $completion); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).eb1 = function (contentEntryUid, selectedItems, updateTime, $completion) { var tmp = new $moveListOfEntriesToNewParentCOROUTINE$121(this, contentEntryUid, selectedItems, updateTime, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).fb1 = function (selectedUids, isDeleted, updateTime, $completion) { var tmp = new $setEntriesDeletedCOROUTINE$122(this, selectedUids, isDeleted, updateTime, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda(this$0, $contentEntryUid, $selectedItems, $updateTime, resultContinuation) { this.rb4_1 = this$0; this.sb4_1 = $contentEntryUid; this.tb4_1 = $selectedItems; this.ub4_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.rb4_1.xb4_1.eb1(this.sb4_1, this.tb4_1, this.ub4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda).q79 = function (completion) { return new ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda(this.rb4_1, this.sb4_1, this.tb4_1, this.ub4_1, completion); }; function ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda_0(this$0, $contentEntryUid, $selectedItems, $updateTime, resultContinuation) { var i = new ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda(this$0, $contentEntryUid, $selectedItems, $updateTime, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda(this$0, $selectedUids, $isDeleted, $updateTime, resultContinuation) { this.jb5_1 = this$0; this.kb5_1 = $selectedUids; this.lb5_1 = $isDeleted; this.mb5_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.jb5_1.xb4_1.fb1(this.kb5_1, this.lb5_1, this.mb5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda).q79 = function (completion) { return new ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda(this.jb5_1, this.kb5_1, this.lb5_1, this.mb5_1, completion); }; function ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda_0(this$0, $selectedUids, $isDeleted, $updateTime, resultContinuation) { var i = new ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda(this$0, $selectedUids, $isDeleted, $updateTime, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ContentEntryParentChildJoinDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.vb5_1 = this$0; this.wb5_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryParentChildJoinDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryParentChildJoinDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(ContentEntryParentChildJoinDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.vb5_1.xb4_1.insertAsync(this.wb5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryParentChildJoinDao_Repo$insertAsync$slambda).q79 = function (completion) { return new ContentEntryParentChildJoinDao_Repo$insertAsync$slambda(this.vb5_1, this.wb5_1, completion); }; function ContentEntryParentChildJoinDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ContentEntryParentChildJoinDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$126(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.fb6_1 = _this__u8e3s4; this.gb6_1 = entity; } protoOf($insertAsyncCOROUTINE$126).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.fb6_1.wb4_1, 'ContentEntryParentChildJoin', ContentEntryParentChildJoinDao_Repo$insertAsync$slambda_0(this.fb6_1, this.gb6_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentEntryParentChildJoinDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ContentEntryParentChildJoinDao.call(this); this.vb4_1 = _db; this.wb4_1 = _repo; this.xb4_1 = _dao; this.yb4_1 = _httpClient; this.zb4_1 = _clientId; this.ab5_1 = _endpoint; } protoOf(ContentEntryParentChildJoinDao_Repo).eb1 = function (contentEntryUid, selectedItems, updateTime, $completion) { return withRepoChangeMonitorAsync(this.wb4_1, 'ContentEntryParentChildJoin', ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda_0(this, contentEntryUid, selectedItems, updateTime, null), $completion); }; protoOf(ContentEntryParentChildJoinDao_Repo).fb1 = function (selectedUids, isDeleted, updateTime, $completion) { return withRepoChangeMonitorAsync(this.wb4_1, 'ContentEntryParentChildJoin', ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda_0(this, selectedUids, isDeleted, updateTime, null), $completion); }; protoOf(ContentEntryParentChildJoinDao_Repo).ub1 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$126(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryParentChildJoinDao_Repo).insertAsync = function (entity, $completion) { return this.ub1(entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE(), $completion); }; function ContentEntryPicture2Dao() { } function ContentEntryPicture2Dao_DoorWrapper(_db, _dao) { ContentEntryPicture2Dao.call(this); this.jb6_1 = _db; this.kb6_1 = _dao; } protoOf(ContentEntryPicture2Dao_DoorWrapper).hb6 = function (entities, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entities.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.db.dao.ContentEntryPicture2Dao_DoorWrapper.upsertListAsync.' call element.sak_1 = systemTimeInMillis(); } return this.kb6_1.hb6(entities, $completion); }; protoOf(ContentEntryPicture2Dao_DoorWrapper).ib6 = function (uid, uri, thumbnailUri, time, $completion) { return this.kb6_1.ib6(uid, uri, thumbnailUri, time, $completion); }; function ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.lb6_1); } protoOf(ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO ContentEntryPicture2 (cepUid, cepLct, cepPictureUri, cepThumbnailUri) VALUES(?, ?, ?, ?)'; }; protoOf(ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1).pb6 = function (stmt, entity) { stmt.x5i(1, entity.rak_1); stmt.x5i(2, entity.sak_1); stmt.a5j(3, entity.tak_1); stmt.a5j(4, entity.uak_1); }; protoOf(ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1).r5g = function (stmt, entity) { return this.pb6(stmt, entity instanceof ContentEntryPicture2 ? entity : THROW_CCE()); }; function ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation) { this.yb6_1 = $uri; this.zb6_1 = $thumbnailUri; this.ab7_1 = $time; this.bb7_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.cb7_1.a5j(1, this.yb6_1); this.cb7_1.a5j(2, this.zb6_1); this.cb7_1.x5i(3, this.ab7_1); this.cb7_1.x5i(4, this.bb7_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.cb7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda).o5g = function (_stmt, completion) { var i = new ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda(this.yb6_1, this.zb6_1, this.ab7_1, this.bb7_1, completion); i.cb7_1 = _stmt; return i; }; function ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda_0($uri, $thumbnailUri, $time, $uid, resultContinuation) { var i = new ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function $updateUriCOROUTINE$127(_this__u8e3s4, uid, uri, thumbnailUri, time, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.lb7_1 = _this__u8e3s4; this.mb7_1 = uid; this.nb7_1 = uri; this.ob7_1 = thumbnailUri; this.pb7_1 = time; } protoOf($updateUriCOROUTINE$127).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE ContentEntryPicture2\n SET cepPictureUri = ?,\n cepThumbnailUri = ?,\n cepLct = CAST(? AS BIGINT)\n WHERE cepUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE ContentEntryPicture2\n SET cepPictureUri = ?,\n cepThumbnailUri = ?,\n cepLct = ?\n WHERE cepUid = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this.lb7_1.lb6_1, tmp_0, ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda_0(this.nb7_1, this.ob7_1, this.pb7_1, this.mb7_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentEntryPicture2Dao_JdbcImpl(_db) { ContentEntryPicture2Dao.call(this); this.lb6_1 = _db; var tmp = this; tmp.mb6_1 = new ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1(this); } protoOf(ContentEntryPicture2Dao_JdbcImpl).hb6 = function (entities, $completion) { return this.mb6_1.b5i(entities, $completion); }; protoOf(ContentEntryPicture2Dao_JdbcImpl).ib6 = function (uid, uri, thumbnailUri, time, $completion) { var tmp = new $updateUriCOROUTINE$127(this, uid, uri, thumbnailUri, time, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function ContentEntryPicture2Dao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) { this.yb7_1 = this$0; this.zb7_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryPicture2Dao_Repo$upsertListAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryPicture2Dao_Repo$upsertListAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ContentEntryPicture2Dao_Repo$upsertListAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.yb7_1.cb8_1.hb6(this.zb7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryPicture2Dao_Repo$upsertListAsync$slambda).q79 = function (completion) { return new ContentEntryPicture2Dao_Repo$upsertListAsync$slambda(this.yb7_1, this.zb7_1, completion); }; function ContentEntryPicture2Dao_Repo$upsertListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new ContentEntryPicture2Dao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ContentEntryPicture2Dao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) { this.ob8_1 = this$0; this.pb8_1 = $uid; this.qb8_1 = $uri; this.rb8_1 = $thumbnailUri; this.sb8_1 = $time; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryPicture2Dao_Repo$updateUri$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryPicture2Dao_Repo$updateUri$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ContentEntryPicture2Dao_Repo$updateUri$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.ob8_1.cb8_1.ib6(this.pb8_1, this.qb8_1, this.rb8_1, this.sb8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryPicture2Dao_Repo$updateUri$slambda).q79 = function (completion) { return new ContentEntryPicture2Dao_Repo$updateUri$slambda(this.ob8_1, this.pb8_1, this.qb8_1, this.rb8_1, this.sb8_1, completion); }; function ContentEntryPicture2Dao_Repo$updateUri$slambda_0(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) { var i = new ContentEntryPicture2Dao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ContentEntryPicture2Dao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ContentEntryPicture2Dao.call(this); this.ab8_1 = _db; this.bb8_1 = _repo; this.cb8_1 = _dao; this.db8_1 = _httpClient; this.eb8_1 = _clientId; this.fb8_1 = _endpoint; } protoOf(ContentEntryPicture2Dao_Repo).hb6 = function (entities, $completion) { return withRepoChangeMonitorAsync(this.bb8_1, 'ContentEntryPicture2', ContentEntryPicture2Dao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion); }; protoOf(ContentEntryPicture2Dao_Repo).ib6 = function (uid, uri, thumbnailUri, time, $completion) { return withRepoChangeMonitorAsync(this.bb8_1, 'ContentEntryPicture2', ContentEntryPicture2Dao_Repo$updateUri$slambda_0(this, uid, uri, thumbnailUri, time, null), $completion); }; function ContentEntryPictureDao() { } function $insertAsyncCOROUTINE$128(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bb9_1 = _this__u8e3s4; this.cb9_1 = entity; } protoOf($insertAsyncCOROUTINE$128).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.db9_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.bb9_1.fb9_1)); if (this.cb9_1.hb9_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.db9_1.r63(138, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.eb9_1 = suspendResult; this.cb9_1.hb9_1 = this.eb9_1; this.ld_1 = 2; continue $sm; case 2: this.cb9_1.mb9_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.bb9_1.gb9_1.insertAsync(this.cb9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.cb9_1.hb9_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentEntryPictureDao_DoorWrapper(_db, _dao) { ContentEntryPictureDao.call(this); this.fb9_1 = _db; this.gb9_1 = _dao; } protoOf(ContentEntryPictureDao_DoorWrapper).pb9 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$128(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryPictureDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.pb9(entity instanceof ContentEntryPicture ? entity : THROW_CCE(), $completion); }; function ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.qb9_1); } protoOf(ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1).w5h = function (returnsId) { return 'INSERT INTO ContentEntryPicture (cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1).ub9 = function (stmt, entity) { if (entity.hb9_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.hb9_1); } stmt.x5i(2, entity.ib9_1); stmt.a5j(3, entity.jb9_1); stmt.a5j(4, entity.kb9_1); stmt.w5i(5, entity.lb9_1); stmt.x5i(6, entity.mb9_1); stmt.a5j(7, entity.nb9_1); stmt.k5i(8, entity.ob9_1); }; protoOf(ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1).r5g = function (stmt, entity) { return this.ub9(stmt, entity instanceof ContentEntryPicture ? entity : THROW_CCE()); }; function $insertAsyncCOROUTINE$129(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dba_1 = _this__u8e3s4; this.eba_1 = entity; } protoOf($insertAsyncCOROUTINE$129).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.dba_1.rb9_1.y5h(this.eba_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentEntryPictureDao_JdbcImpl(_db) { ContentEntryPictureDao.call(this); this.qb9_1 = _db; var tmp = this; tmp.rb9_1 = new ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1(this); } protoOf(ContentEntryPictureDao_JdbcImpl).pb9 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$129(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryPictureDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.pb9(entity instanceof ContentEntryPicture ? entity : THROW_CCE(), $completion); }; function ContentEntryPictureDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.nba_1 = this$0; this.oba_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryPictureDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryPictureDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(ContentEntryPictureDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.nba_1.rba_1.insertAsync(this.oba_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryPictureDao_Repo$insertAsync$slambda).q79 = function (completion) { return new ContentEntryPictureDao_Repo$insertAsync$slambda(this.nba_1, this.oba_1, completion); }; function ContentEntryPictureDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ContentEntryPictureDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$132(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dbb_1 = _this__u8e3s4; this.ebb_1 = entity; } protoOf($insertAsyncCOROUTINE$132).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.dbb_1.qba_1, 'ContentEntryPicture', ContentEntryPictureDao_Repo$insertAsync$slambda_0(this.dbb_1, this.ebb_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentEntryPictureDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ContentEntryPictureDao.call(this); this.pba_1 = _db; this.qba_1 = _repo; this.rba_1 = _dao; this.sba_1 = _httpClient; this.tba_1 = _clientId; this.uba_1 = _endpoint; } protoOf(ContentEntryPictureDao_Repo).pb9 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$132(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryPictureDao_Repo).insertAsync = function (entity, $completion) { return this.pb9(entity instanceof ContentEntryPicture ? entity : THROW_CCE(), $completion); }; function ContentEntryRelatedEntryJoinDao() { } function $insertAsyncCOROUTINE$133(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.nbb_1 = _this__u8e3s4; this.obb_1 = entity; } protoOf($insertAsyncCOROUTINE$133).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.pbb_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.nbb_1.rbb_1)); if (this.obb_1.tbb_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.pbb_1.r63(8, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.qbb_1 = suspendResult; this.obb_1.tbb_1 = this.qbb_1; this.ld_1 = 2; continue $sm; case 2: this.obb_1.cbc_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.nbb_1.sbb_1.insertAsync(this.obb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.obb_1.tbb_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentEntryRelatedEntryJoinDao_DoorWrapper(_db, _dao) { ContentEntryRelatedEntryJoinDao.call(this); this.rbb_1 = _db; this.sbb_1 = _dao; } protoOf(ContentEntryRelatedEntryJoinDao_DoorWrapper).dbc = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$133(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryRelatedEntryJoinDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.dbc(entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE(), $completion); }; function ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.ebc_1); } protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1).w5h = function (returnsId) { return 'INSERT INTO ContentEntryRelatedEntryJoin (cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1).ibc = function (stmt, entity) { if (entity.tbb_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.tbb_1); } stmt.x5i(2, entity.ubb_1); stmt.x5i(3, entity.vbb_1); stmt.w5i(4, entity.wbb_1); stmt.w5i(5, entity.xbb_1); stmt.a5j(6, entity.ybb_1); stmt.x5i(7, entity.zbb_1); stmt.x5i(8, entity.abc_1); stmt.x5i(9, entity.bbc_1); stmt.x5i(10, entity.cbc_1); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1).r5g = function (stmt, entity) { return this.ibc(stmt, entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE()); }; function $insertAsyncCOROUTINE$134(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.rbc_1 = _this__u8e3s4; this.sbc_1 = entity; } protoOf($insertAsyncCOROUTINE$134).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.rbc_1.fbc_1.y5h(this.sbc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentEntryRelatedEntryJoinDao_JdbcImpl(_db) { ContentEntryRelatedEntryJoinDao.call(this); this.ebc_1 = _db; var tmp = this; tmp.fbc_1 = new ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1(this); } protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl).dbc = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$134(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.dbc(entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE(), $completion); }; function ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.bbd_1 = this$0; this.cbd_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.bbd_1.fbd_1.insertAsync(this.cbd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda).q79 = function (completion) { return new ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda(this.bbd_1, this.cbd_1, completion); }; function ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$136(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.rbd_1 = _this__u8e3s4; this.sbd_1 = entity; } protoOf($insertAsyncCOROUTINE$136).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.rbd_1.ebd_1, 'ContentEntryRelatedEntryJoin', ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda_0(this.rbd_1, this.sbd_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentEntryRelatedEntryJoinDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ContentEntryRelatedEntryJoinDao.call(this); this.dbd_1 = _db; this.ebd_1 = _repo; this.fbd_1 = _dao; this.gbd_1 = _httpClient; this.hbd_1 = _clientId; this.ibd_1 = _endpoint; } protoOf(ContentEntryRelatedEntryJoinDao_Repo).dbc = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$136(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryRelatedEntryJoinDao_Repo).insertAsync = function (entity, $completion) { return this.dbc(entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE(), $completion); }; function ContentEntryVersionDao() { } function ContentEntryVersionDao_DoorWrapper(_db, _dao) { ContentEntryVersionDao.call(this); this.xbd_1 = _db; this.ybd_1 = _dao; } protoOf(ContentEntryVersionDao_DoorWrapper).tbd = function (cevUid, $completion) { return this.ybd_1.tbd(cevUid, $completion); }; protoOf(ContentEntryVersionDao_DoorWrapper).ubd = function (contentEntryUid, $completion) { return this.ybd_1.ubd(contentEntryUid, $completion); }; protoOf(ContentEntryVersionDao_DoorWrapper).vbd = function (contentEntryUid) { return this.ybd_1.vbd(contentEntryUid); }; protoOf(ContentEntryVersionDao_DoorWrapper).wbd = function (entityUid, transferJobItemUid, $completion) { return this.ybd_1.wbd(entityUid, transferJobItemUid, $completion); }; function ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cevUid = $_result.b5o('cevUid'); var _tmp_cevContentEntryUid = $_result.b5o('cevContentEntryUid'); var _tmp_cevOpenUri = $_result.b10('cevOpenUri'); var _tmp_cevContentType = $_result.b10('cevContentType'); var _tmp_cevManifestUrl = $_result.b10('cevManifestUrl'); var _tmp_cevSize = $_result.b5o('cevSize'); var _tmp_cevInActive = $_result.m67('cevInActive'); var _tmp_cevLastModified = $_result.b5o('cevLastModified'); var _tmp_cevLct = $_result.b5o('cevLct'); var _tmp_cevStorageSize = $_result.b5o('cevStorageSize'); var _tmp_cevOriginalSize = $_result.b5o('cevOriginalSize'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryVersion(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryVersionDao_JdbcImpl.findByUidAsync....' call this_0.zak_1 = _tmp_cevUid; this_0.aal_1 = _tmp_cevContentEntryUid; this_0.bal_1 = _tmp_cevOpenUri; this_0.cal_1 = _tmp_cevContentType; this_0.dal_1 = _tmp_cevManifestUrl; this_0.eal_1 = _tmp_cevSize; this_0.fal_1 = _tmp_cevInActive; this_0.gal_1 = _tmp_cevLastModified; this_0.hal_1 = _tmp_cevLct; this_0.ial_1 = _tmp_cevStorageSize; this_0.jal_1 = _tmp_cevOriginalSize; return this_0; }; } function ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda$lambda$lambda(_result)); } function ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cevUid = $_result.b5o('cevUid'); var _tmp_cevContentEntryUid = $_result.b5o('cevContentEntryUid'); var _tmp_cevOpenUri = $_result.b10('cevOpenUri'); var _tmp_cevContentType = $_result.b10('cevContentType'); var _tmp_cevManifestUrl = $_result.b10('cevManifestUrl'); var _tmp_cevSize = $_result.b5o('cevSize'); var _tmp_cevInActive = $_result.m67('cevInActive'); var _tmp_cevLastModified = $_result.b5o('cevLastModified'); var _tmp_cevLct = $_result.b5o('cevLct'); var _tmp_cevStorageSize = $_result.b5o('cevStorageSize'); var _tmp_cevOriginalSize = $_result.b5o('cevOriginalSize'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryVersion(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryVersionDao_JdbcImpl.findLatestVersionUidByContentEntryUidEntity....' call this_0.zak_1 = _tmp_cevUid; this_0.aal_1 = _tmp_cevContentEntryUid; this_0.bal_1 = _tmp_cevOpenUri; this_0.cal_1 = _tmp_cevContentType; this_0.dal_1 = _tmp_cevManifestUrl; this_0.eal_1 = _tmp_cevSize; this_0.fal_1 = _tmp_cevInActive; this_0.gal_1 = _tmp_cevLastModified; this_0.hal_1 = _tmp_cevLct; this_0.ial_1 = _tmp_cevStorageSize; this_0.jal_1 = _tmp_cevOriginalSize; return this_0; }; } function ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cevUid = $_result.b5o('cevUid'); var _tmp_cevContentEntryUid = $_result.b5o('cevContentEntryUid'); var _tmp_cevOpenUri = $_result.b10('cevOpenUri'); var _tmp_cevContentType = $_result.b10('cevContentType'); var _tmp_cevManifestUrl = $_result.b10('cevManifestUrl'); var _tmp_cevSize = $_result.b5o('cevSize'); var _tmp_cevInActive = $_result.m67('cevInActive'); var _tmp_cevLastModified = $_result.b5o('cevLastModified'); var _tmp_cevLct = $_result.b5o('cevLct'); var _tmp_cevStorageSize = $_result.b5o('cevStorageSize'); var _tmp_cevOriginalSize = $_result.b5o('cevOriginalSize'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryVersion(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryVersionDao_JdbcImpl.findLatestByContentEntryUidAsFlow.....' call this_0.zak_1 = _tmp_cevUid; this_0.aal_1 = _tmp_cevContentEntryUid; this_0.bal_1 = _tmp_cevOpenUri; this_0.cal_1 = _tmp_cevContentType; this_0.dal_1 = _tmp_cevManifestUrl; this_0.eal_1 = _tmp_cevSize; this_0.fal_1 = _tmp_cevInActive; this_0.gal_1 = _tmp_cevLastModified; this_0.hal_1 = _tmp_cevLct; this_0.ial_1 = _tmp_cevStorageSize; this_0.jal_1 = _tmp_cevOriginalSize; return this_0; }; } function ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda($contentEntryUid, resultContinuation) { this.hbe_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda).jbe = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda).le = function (p1, $completion) { return this.jbe((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ibe_1.x5i(1, this.hbe_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.ibe_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda(this.hbe_1, completion); i.ibe_1 = _stmt; return i; }; function ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda_0($contentEntryUid, resultContinuation) { var i = new ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda($contentEntryUid, resultContinuation); var l = function (_stmt, $completion) { return i.jbe(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.kbe_1); } protoOf(ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1).w5h = function (returnsId) { return 'INSERT INTO ContentEntryVersion (cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1).obe = function (stmt, entity) { if (entity.zak_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.zak_1); } stmt.x5i(2, entity.aal_1); stmt.a5j(3, entity.bal_1); stmt.a5j(4, entity.cal_1); stmt.a5j(5, entity.dal_1); stmt.x5i(6, entity.eal_1); stmt.k5i(7, entity.fal_1); stmt.x5i(8, entity.gal_1); stmt.x5i(9, entity.hal_1); stmt.x5i(10, entity.ial_1); stmt.x5i(11, entity.jal_1); }; protoOf(ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1).r5g = function (stmt, entity) { return this.obe(stmt, entity instanceof ContentEntryVersion ? entity : THROW_CCE()); }; function ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda($cevUid, resultContinuation) { this.xbe_1 = $cevUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda).jbe = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda).le = function (p1, $completion) { return this.jbe((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ybe_1.x5i(1, this.xbe_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.ybe_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda).o5g = function (_stmt, completion) { var i = new ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda(this.xbe_1, completion); i.ybe_1 = _stmt; return i; }; function ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda_0($cevUid, resultContinuation) { var i = new ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda($cevUid, resultContinuation); var l = function (_stmt, $completion) { return i.jbe(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda($contentEntryUid, resultContinuation) { this.hbf_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda).jbe = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda).le = function (p1, $completion) { return this.jbe((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ibf_1.x5i(1, this.hbf_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.ibf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda).o5g = function (_stmt, completion) { var i = new ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda(this.hbf_1, completion); i.ibf_1 = _stmt; return i; }; function ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda_0($contentEntryUid, resultContinuation) { var i = new ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda($contentEntryUid, resultContinuation); var l = function (_stmt, $completion) { return i.jbe(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda(this$0, $contentEntryUid, resultContinuation) { this.rbf_1 = this$0; this.sbf_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda).tbf = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda).r79 = function ($completion) { return this.tbf($completion); }; protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT ContentEntryVersion.*\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = CAST(? AS BIGINT)\n ORDER BY ContentEntryVersion.cevLastModified DESC\n LIMIT 1\n ', VOID, VOID, VOID, '\n SELECT ContentEntryVersion.*\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = ?\n ORDER BY ContentEntryVersion.cevLastModified DESC\n LIMIT 1\n \n', true); suspendResult = prepareAndUseStatementAsync(this.rbf_1.kbe_1, tmp_0, ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda_0(this.sbf_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda).q79 = function (completion) { return new ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda(this.rbf_1, this.sbf_1, completion); }; function ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda_0(this$0, $contentEntryUid, resultContinuation) { var i = new ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda(this$0, $contentEntryUid, resultContinuation); var l = function ($completion) { return i.tbf($completion); }; l.$arity = 0; return l; } function ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda($entityUid, $transferJobItemUid, resultContinuation) { this.cbg_1 = $entityUid; this.dbg_1 = $transferJobItemUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ebg_1.x5i(1, this.cbg_1); this.ebg_1.w5i(2, this.dbg_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.ebg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda).o5g = function (_stmt, completion) { var i = new ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda(this.cbg_1, this.dbg_1, completion); i.ebg_1 = _stmt; return i; }; function ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda_0($entityUid, $transferJobItemUid, resultContinuation) { var i = new ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda($entityUid, $transferJobItemUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function $updateTransferJobItemEtagCOROUTINE$139(_this__u8e3s4, entityUid, transferJobItemUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.nbg_1 = _this__u8e3s4; this.obg_1 = entityUid; this.pbg_1 = transferJobItemUid; } protoOf($updateTransferJobItemEtagCOROUTINE$139).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE TransferJobItem\n SET tjiEntityEtag = \n (SELECT cevLct\n FROM ContentEntryVersion\n WHERE cevUid = CAST(? AS BIGINT))\n WHERE tjiUid = ?\n ', VOID, VOID, VOID, '\n UPDATE TransferJobItem\n SET tjiEntityEtag = \n (SELECT cevLct\n FROM ContentEntryVersion\n WHERE cevUid = ?)\n WHERE tjiUid = ?\n \n', false); suspendResult = prepareAndUseStatementAsync(this.nbg_1.kbe_1, tmp_0, ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda_0(this.obg_1, this.pbg_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentEntryVersionDao_JdbcImpl(_db) { ContentEntryVersionDao.call(this); this.kbe_1 = _db; var tmp = this; tmp.lbe_1 = new ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1(this); } protoOf(ContentEntryVersionDao_JdbcImpl).tbd = function (cevUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ContentEntryVersion.*\n FROM ContentEntryVersion\n WHERE cevUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT ContentEntryVersion.*\n FROM ContentEntryVersion\n WHERE cevUid = ? \n \n', true); return prepareAndUseStatementAsync(this.kbe_1, tmp, ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda_0(cevUid, null), $completion); }; protoOf(ContentEntryVersionDao_JdbcImpl).ubd = function (contentEntryUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ContentEntryVersion.*\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = CAST(? AS BIGINT)\n ORDER BY ContentEntryVersion.cevLastModified DESC\n LIMIT 1\n ', VOID, VOID, VOID, '\n SELECT ContentEntryVersion.*\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = ?\n ORDER BY ContentEntryVersion.cevLastModified DESC\n LIMIT 1\n \n', true); return prepareAndUseStatementAsync(this.kbe_1, tmp, ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda_0(contentEntryUid, null), $completion); }; protoOf(ContentEntryVersionDao_JdbcImpl).vbd = function (contentEntryUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ContentEntryVersion']; return doorFlow(this.kbe_1, tmp, ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda_0(this, contentEntryUid, null)); }; protoOf(ContentEntryVersionDao_JdbcImpl).wbd = function (entityUid, transferJobItemUid, $completion) { var tmp = new $updateTransferJobItemEtagCOROUTINE$139(this, entityUid, transferJobItemUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ContentEntryVersionDao_Repo$findLatestVersionUidByContentEntryUidEntity$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda(this$0, $contentEntryUid, resultContinuation) { this.ybg_1 = this$0; this.zbg_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.abh_1 = this.ybg_1.jbh_1; var tmp_1 = this; tmp_1.bbh_1 = 'ContentEntryVersionDao/findLatestByContentEntryUidAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.cbh_1 = this.ybg_1.lbh_1; var tmp_3 = this; tmp_3.dbh_1 = this.cbh_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.ybg_1.jbh_1.t39(), 'ContentEntryVersionDao/findLatestByContentEntryUidAsFlow'); doorNodeIdHeader(this_0, this.ybg_1.jbh_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'contentEntryUid', this.ybg_1.jbh_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.zbg_1)); tmp_4.ebh_1 = this_0; this.ebh_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.fbh_1 = this.dbh_1; var tmp_6 = this; tmp_6.gbh_1 = this.ebh_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.gbh_1, this.fbh_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hbh_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.ybg_1.ibh_1, this.hbh_1, this.ybg_1.jbh_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda$lambda(this.abh_1, this.bbh_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda).q79 = function (completion) { return new ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda(this.ybg_1, this.zbg_1, completion); }; function ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda_0(this$0, $contentEntryUid, resultContinuation) { var i = new ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda(this$0, $contentEntryUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda(this$0, $entityUid, $transferJobItemUid, resultContinuation) { this.xbh_1 = this$0; this.ybh_1 = $entityUid; this.zbh_1 = $transferJobItemUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.xbh_1.kbh_1.wbd(this.ybh_1, this.zbh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda).q79 = function (completion) { return new ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda(this.xbh_1, this.ybh_1, this.zbh_1, completion); }; function ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda_0(this$0, $entityUid, $transferJobItemUid, resultContinuation) { var i = new ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda(this$0, $entityUid, $transferJobItemUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function $findByUidAsyncCOROUTINE$140(_this__u8e3s4, cevUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ibi_1 = _this__u8e3s4; this.jbi_1 = cevUid; } protoOf($findByUidAsyncCOROUTINE$140).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.ibi_1.kbh_1.tbd(this.jbi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $findLatestVersionUidByContentEntryUidEntityCOROUTINE$142(_this__u8e3s4, contentEntryUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.sbi_1 = _this__u8e3s4; this.tbi_1 = contentEntryUid; } protoOf($findLatestVersionUidByContentEntryUidEntityCOROUTINE$142).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.ubi_1 = this.sbi_1.jbh_1; var tmp_1 = this; tmp_1.vbi_1 = 'ContentEntryVersionDao/findLatestVersionUidByContentEntryUidEntity'; this.md_1 = 3; var tmp_2 = this; tmp_2.wbi_1 = this.sbi_1.lbh_1; var tmp_3 = this; tmp_3.xbi_1 = this.wbi_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.sbi_1.jbh_1.t39(), 'ContentEntryVersionDao/findLatestVersionUidByContentEntryUidEntity'); doorNodeIdHeader(this_0, this.sbi_1.jbh_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'contentEntryUid', this.sbi_1.jbh_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.tbi_1)); tmp_4.ybi_1 = this_0; this.ybi_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.zbi_1 = this.xbi_1; var tmp_6 = this; tmp_6.abj_1 = this.ybi_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.abj_1, this.zbi_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.bbj_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.sbi_1.ibh_1, this.bbj_1, this.sbi_1.jbh_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.cbj_1 = this.od_1; Napier_getInstance().e5f(this.cbj_1, 'DoorLog', ContentEntryVersionDao_Repo$findLatestVersionUidByContentEntryUidEntity$lambda(this.ubi_1, this.vbi_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.sbi_1.kbh_1.ubd(this.tbi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ContentEntryVersionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ContentEntryVersionDao.call(this); this.ibh_1 = _db; this.jbh_1 = _repo; this.kbh_1 = _dao; this.lbh_1 = _httpClient; this.mbh_1 = _clientId; this.nbh_1 = _endpoint; this.obh_1 = new RepoDaoFlowHelper(this.jbh_1); } protoOf(ContentEntryVersionDao_Repo).tbd = function (cevUid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$140(this, cevUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryVersionDao_Repo).ubd = function (contentEntryUid, $completion) { var tmp = new $findLatestVersionUidByContentEntryUidEntityCOROUTINE$142(this, contentEntryUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ContentEntryVersionDao_Repo).vbd = function (contentEntryUid) { var tmp = this.kbh_1.vbd(contentEntryUid); return this.obh_1.r68(tmp, ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda_0(this, contentEntryUid, null)); }; protoOf(ContentEntryVersionDao_Repo).wbd = function (entityUid, transferJobItemUid, $completion) { return withRepoChangeMonitorAsync(this.jbh_1, 'TransferJobItem', ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda_0(this, entityUid, transferJobItemUid, null), $completion); }; function CourseAssignmentMarkDao() { } function $insertAsyncCOROUTINE$144(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.nbj_1 = _this__u8e3s4; this.obj_1 = entity; } protoOf($insertAsyncCOROUTINE$144).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.pbj_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.nbj_1.rbj_1)); if (this.obj_1.tbj_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.pbj_1.r63(523, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.qbj_1 = suspendResult; this.obj_1.tbj_1 = this.qbj_1; this.ld_1 = 2; continue $sm; case 2: this.obj_1.cbk_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.nbj_1.sbj_1.insertAsync(this.obj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.obj_1.tbj_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseAssignmentMarkDao_DoorWrapper(_db, _dao) { CourseAssignmentMarkDao.call(this); this.rbj_1 = _db; this.sbj_1 = _dao; } protoOf(CourseAssignmentMarkDao_DoorWrapper).dbj = function (accountPersonUid, assignmentUid) { return this.sbj_1.dbj(accountPersonUid, assignmentUid); }; protoOf(CourseAssignmentMarkDao_DoorWrapper).ebj = function (submitterUid, assignmentUid) { return this.sbj_1.ebj(submitterUid, assignmentUid); }; protoOf(CourseAssignmentMarkDao_DoorWrapper).ebk = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$144(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentMarkDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.ebk(entity instanceof CourseAssignmentMark ? entity : THROW_CCE(), $completion); }; function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda$lambda(_result) { return mapRows(_result, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_markerFirstNames = $_result.b10('markerFirstNames'); var _tmp_markerLastName = $_result.b10('markerLastName'); var _tmp_markerPictureUri = $_result.b10('markerPictureUri'); var _tmp_CourseAssignmentMark_nullCount = 0; var _tmp_camUid = $_result.b5o('camUid'); var tmp; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_camAssignmentUid = $_result.b5o('camAssignmentUid'); var tmp_0; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_camSubmitterUid = $_result.b5o('camSubmitterUid'); var tmp_1; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_camMarkerSubmitterUid = $_result.b5o('camMarkerSubmitterUid'); var tmp_2; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_camMarkerPersonUid = $_result.b5o('camMarkerPersonUid'); var tmp_3; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_camMarkerComment = $_result.b10('camMarkerComment'); var tmp_4; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_camMark = $_result.o67('camMark'); var tmp_5; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_camMaxMark = $_result.o67('camMaxMark'); var tmp_6; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_camPenalty = $_result.o67('camPenalty'); var tmp_7; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_camLct = $_result.b5o('camLct'); var tmp_8; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_camClazzUid = $_result.b5o('camClazzUid'); var tmp_9; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_CourseAssignmentMark_isAllNull = _tmp_CourseAssignmentMark_nullCount === 11; // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentMarkAndMarkerName(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentMarkDao_JdbcImpl.getAllMarksForUserAsFlow.....' call this_0.gbk_1 = _tmp_markerFirstNames; this_0.hbk_1 = _tmp_markerLastName; this_0.ibk_1 = _tmp_markerPictureUri; if (!_tmp_CourseAssignmentMark_isAllNull) { var tmp_10 = this_0; // Inline function 'kotlin.apply' call var this_1 = new CourseAssignmentMark(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentMarkDao_JdbcImpl.getAllMarksForUserAsFlow......' call this_1.tbj_1 = _tmp_camUid; this_1.ubj_1 = _tmp_camAssignmentUid; this_1.vbj_1 = _tmp_camSubmitterUid; this_1.wbj_1 = _tmp_camMarkerSubmitterUid; this_1.xbj_1 = _tmp_camMarkerPersonUid; this_1.ybj_1 = _tmp_camMarkerComment; this_1.zbj_1 = _tmp_camMark; this_1.abk_1 = _tmp_camMaxMark; this_1.bbk_1 = _tmp_camPenalty; this_1.cbk_1 = _tmp_camLct; this_1.dbk_1 = _tmp_camClazzUid; tmp_10.fbk_1 = this_1; } return this_0; }; } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation) { this.rbk_1 = $assignmentUid; this.sbk_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda).ubk = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda).le = function (p1, $completion) { return this.ubk((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.tbk_1.x5i(1, this.rbk_1); this.tbk_1.x5i(2, this.sbk_1); this.tbk_1.x5i(3, this.rbk_1); this.tbk_1.x5i(4, this.rbk_1); this.tbk_1.x5i(5, this.sbk_1); this.tbk_1.x5i(6, this.rbk_1); this.tbk_1.x5i(7, this.sbk_1); this.tbk_1.x5i(8, this.rbk_1); this.tbk_1.x5i(9, this.rbk_1); this.tbk_1.x5i(10, this.sbk_1); this.tbk_1.x5i(11, this.rbk_1); this.tbk_1.x5i(12, this.rbk_1); this.tbk_1.x5i(13, this.sbk_1); this.tbk_1.x5i(14, this.rbk_1); this.tbk_1.x5i(15, this.rbk_1); this.tbk_1.x5i(16, this.sbk_1); this.tbk_1.x5i(17, this.rbk_1); this.tbk_1.x5i(18, this.sbk_1); this.tbk_1.x5i(19, this.rbk_1); this.tbk_1.x5i(20, this.rbk_1); this.tbk_1.x5i(21, this.sbk_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.tbk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda(this.rbk_1, this.sbk_1, completion); i.tbk_1 = _stmt; return i; }; function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda_0($assignmentUid, $accountPersonUid, resultContinuation) { var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.ubk(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda$lambda(_result) { return mapRows(_result, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_markerFirstNames = $_result.b10('markerFirstNames'); var _tmp_markerLastName = $_result.b10('markerLastName'); var _tmp_markerPictureUri = $_result.b10('markerPictureUri'); var _tmp_CourseAssignmentMark_nullCount = 0; var _tmp_camUid = $_result.b5o('camUid'); var tmp; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_camAssignmentUid = $_result.b5o('camAssignmentUid'); var tmp_0; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_camSubmitterUid = $_result.b5o('camSubmitterUid'); var tmp_1; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_camMarkerSubmitterUid = $_result.b5o('camMarkerSubmitterUid'); var tmp_2; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_camMarkerPersonUid = $_result.b5o('camMarkerPersonUid'); var tmp_3; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_camMarkerComment = $_result.b10('camMarkerComment'); var tmp_4; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_camMark = $_result.o67('camMark'); var tmp_5; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_camMaxMark = $_result.o67('camMaxMark'); var tmp_6; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_camPenalty = $_result.o67('camPenalty'); var tmp_7; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_camLct = $_result.b5o('camLct'); var tmp_8; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_camClazzUid = $_result.b5o('camClazzUid'); var tmp_9; if ($_result.t68()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_CourseAssignmentMark_isAllNull = _tmp_CourseAssignmentMark_nullCount === 11; // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentMarkAndMarkerName(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentMarkDao_JdbcImpl.getAllMarksForSubmitterAsFlow.....' call this_0.gbk_1 = _tmp_markerFirstNames; this_0.hbk_1 = _tmp_markerLastName; this_0.ibk_1 = _tmp_markerPictureUri; if (!_tmp_CourseAssignmentMark_isAllNull) { var tmp_10 = this_0; // Inline function 'kotlin.apply' call var this_1 = new CourseAssignmentMark(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentMarkDao_JdbcImpl.getAllMarksForSubmitterAsFlow......' call this_1.tbj_1 = _tmp_camUid; this_1.ubj_1 = _tmp_camAssignmentUid; this_1.vbj_1 = _tmp_camSubmitterUid; this_1.wbj_1 = _tmp_camMarkerSubmitterUid; this_1.xbj_1 = _tmp_camMarkerPersonUid; this_1.ybj_1 = _tmp_camMarkerComment; this_1.zbj_1 = _tmp_camMark; this_1.abk_1 = _tmp_camMaxMark; this_1.bbk_1 = _tmp_camPenalty; this_1.cbk_1 = _tmp_camLct; this_1.dbk_1 = _tmp_camClazzUid; tmp_10.fbk_1 = this_1; } return this_0; }; } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda($assignmentUid, $submitterUid, resultContinuation) { this.dbl_1 = $assignmentUid; this.ebl_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda).ubk = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda).le = function (p1, $completion) { return this.ubk((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.fbl_1.x5i(1, this.dbl_1); this.fbl_1.x5i(2, this.ebl_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.fbl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda(this.dbl_1, this.ebl_1, completion); i.fbl_1 = _stmt; return i; }; function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda_0($assignmentUid, $submitterUid, resultContinuation) { var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda($assignmentUid, $submitterUid, resultContinuation); var l = function (_stmt, $completion) { return i.ubk(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.gbl_1); } protoOf(CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1).w5h = function (returnsId) { return 'INSERT INTO CourseAssignmentMark (camUid, camAssignmentUid, camSubmitterUid, camMarkerSubmitterUid, camMarkerPersonUid, camMarkerComment, camMark, camMaxMark, camPenalty, camLct, camClazzUid) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1).kbl = function (stmt, entity) { if (entity.tbj_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.tbj_1); } stmt.x5i(2, entity.ubj_1); stmt.x5i(3, entity.vbj_1); stmt.x5i(4, entity.wbj_1); stmt.x5i(5, entity.xbj_1); stmt.a5j(6, entity.ybj_1); stmt.y5i(7, entity.zbj_1); stmt.y5i(8, entity.abk_1); stmt.y5i(9, entity.bbk_1); stmt.x5i(10, entity.cbk_1); stmt.x5i(11, entity.dbk_1); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1).r5g = function (stmt, entity) { return this.kbl(stmt, entity instanceof CourseAssignmentMark ? entity : THROW_CCE()); }; function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation) { this.tbl_1 = this$0; this.ubl_1 = $assignmentUid; this.vbl_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda).wbl = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda).r79 = function ($completion) { return this.wbl($completion); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT CourseAssignmentMark.*,\n Person.firstNames AS markerFirstNames,\n Person.lastName AS markerLastName,\n PersonPicture.personPictureThumbnailUri AS markerPictureUri\n FROM CourseAssignmentMark\n LEFT JOIN Person\n ON Person.personUid = CourseAssignmentMark.camMarkerPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = CourseAssignmentMark.camMarkerPersonUid\n WHERE (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n ) > 0\n AND CourseAssignmentMark.camAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentMark.camSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n )\n ORDER BY CourseAssignmentMark.camLct DESC \n ', VOID, VOID, VOID, '\n SELECT CourseAssignmentMark.*,\n Person.firstNames AS markerFirstNames,\n Person.lastName AS markerLastName,\n PersonPicture.personPictureThumbnailUri AS markerPictureUri\n FROM CourseAssignmentMark\n LEFT JOIN Person\n ON Person.personUid = CourseAssignmentMark.camMarkerPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = CourseAssignmentMark.camMarkerPersonUid\n WHERE (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n ) > 0\n AND CourseAssignmentMark.camAssignmentUid = ?\n AND CourseAssignmentMark.camSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n )\n ORDER BY CourseAssignmentMark.camLct DESC \n \n', true); suspendResult = prepareAndUseStatementAsync(this.tbl_1.gbl_1, tmp_0, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda_0(this.ubl_1, this.vbl_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda).q79 = function (completion) { return new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda(this.tbl_1, this.ubl_1, this.vbl_1, completion); }; function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda_0(this$0, $assignmentUid, $accountPersonUid, resultContinuation) { var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.wbl($completion); }; l.$arity = 0; return l; } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda(this$0, $assignmentUid, $submitterUid, resultContinuation) { this.fbm_1 = this$0; this.gbm_1 = $assignmentUid; this.hbm_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda).wbl = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda).r79 = function ($completion) { return this.wbl($completion); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT CourseAssignmentMark.*,\n Person.firstNames AS markerFirstNames,\n Person.lastName AS markerLastName,\n PersonPicture.personPictureThumbnailUri AS markerPictureUri\n FROM CourseAssignmentMark\n LEFT JOIN Person\n ON Person.personUid = CourseAssignmentMark.camMarkerPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = CourseAssignmentMark.camMarkerPersonUid\n WHERE CourseAssignmentMark.camAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentMark.camSubmitterUid = CAST(? AS BIGINT)\n ORDER BY CourseAssignmentMark.camLct DESC \n ', VOID, VOID, VOID, '\n SELECT CourseAssignmentMark.*,\n Person.firstNames AS markerFirstNames,\n Person.lastName AS markerLastName,\n PersonPicture.personPictureThumbnailUri AS markerPictureUri\n FROM CourseAssignmentMark\n LEFT JOIN Person\n ON Person.personUid = CourseAssignmentMark.camMarkerPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = CourseAssignmentMark.camMarkerPersonUid\n WHERE CourseAssignmentMark.camAssignmentUid = ?\n AND CourseAssignmentMark.camSubmitterUid = ?\n ORDER BY CourseAssignmentMark.camLct DESC \n \n', true); suspendResult = prepareAndUseStatementAsync(this.fbm_1.gbl_1, tmp_0, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda_0(this.gbm_1, this.hbm_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda).q79 = function (completion) { return new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda(this.fbm_1, this.gbm_1, this.hbm_1, completion); }; function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda_0(this$0, $assignmentUid, $submitterUid, resultContinuation) { var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda(this$0, $assignmentUid, $submitterUid, resultContinuation); var l = function ($completion) { return i.wbl($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$145(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qbm_1 = _this__u8e3s4; this.rbm_1 = entity; } protoOf($insertAsyncCOROUTINE$145).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.qbm_1.hbl_1.y5h(this.rbm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseAssignmentMarkDao_JdbcImpl(_db) { CourseAssignmentMarkDao.call(this); this.gbl_1 = _db; var tmp = this; tmp.hbl_1 = new CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1(this); } protoOf(CourseAssignmentMarkDao_JdbcImpl).ebk = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$145(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentMarkDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.ebk(entity instanceof CourseAssignmentMark ? entity : THROW_CCE(), $completion); }; protoOf(CourseAssignmentMarkDao_JdbcImpl).dbj = function (accountPersonUid, assignmentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseAssignmentMark', 'Person', 'ClazzAssignment', 'CourseGroupMember', 'ClazzEnrolment', 'PersonPicture']; return doorFlow(this.gbl_1, tmp, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda_0(this, assignmentUid, accountPersonUid, null)); }; protoOf(CourseAssignmentMarkDao_JdbcImpl).ebj = function (submitterUid, assignmentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseAssignmentMark', 'Person', 'PersonPicture']; return doorFlow(this.gbl_1, tmp, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda_0(this, assignmentUid, submitterUid, null)); }; function CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda(this$0, $accountPersonUid, $assignmentUid, resultContinuation) { this.abn_1 = this$0; this.bbn_1 = $accountPersonUid; this.cbn_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.dbn_1 = this.abn_1.mbn_1; var tmp_1 = this; tmp_1.ebn_1 = 'CourseAssignmentMarkDao/getAllMarksForUserAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.fbn_1 = this.abn_1.obn_1; var tmp_3 = this; tmp_3.gbn_1 = this.fbn_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.abn_1.mbn_1.t39(), 'CourseAssignmentMarkDao/getAllMarksForUserAsFlow'); doorNodeIdHeader(this_0, this.abn_1.mbn_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.abn_1.mbn_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.bbn_1)); parameter(this_0, 'assignmentUid', this.abn_1.mbn_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.cbn_1)); tmp_4.hbn_1 = this_0; this.hbn_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.ibn_1 = this.gbn_1; var tmp_6 = this; tmp_6.jbn_1 = this.hbn_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.jbn_1, this.ibn_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.kbn_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.abn_1.lbn_1, this.kbn_1, this.abn_1.mbn_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda$lambda(this.dbn_1, this.ebn_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda).q79 = function (completion) { return new CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda(this.abn_1, this.bbn_1, this.cbn_1, completion); }; function CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda_0(this$0, $accountPersonUid, $assignmentUid, resultContinuation) { var i = new CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda(this$0, $accountPersonUid, $assignmentUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation) { this.abo_1 = this$0; this.bbo_1 = $submitterUid; this.cbo_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.dbo_1 = this.abo_1.mbn_1; var tmp_1 = this; tmp_1.ebo_1 = 'CourseAssignmentMarkDao/getAllMarksForSubmitterAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.fbo_1 = this.abo_1.obn_1; var tmp_3 = this; tmp_3.gbo_1 = this.fbo_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.abo_1.mbn_1.t39(), 'CourseAssignmentMarkDao/getAllMarksForSubmitterAsFlow'); doorNodeIdHeader(this_0, this.abo_1.mbn_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'submitterUid', this.abo_1.mbn_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.bbo_1)); parameter(this_0, 'assignmentUid', this.abo_1.mbn_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.cbo_1)); tmp_4.hbo_1 = this_0; this.hbo_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.ibo_1 = this.gbo_1; var tmp_6 = this; tmp_6.jbo_1 = this.hbo_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.jbo_1, this.ibo_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.kbo_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.abo_1.lbn_1, this.kbo_1, this.abo_1.mbn_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda$lambda(this.dbo_1, this.ebo_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda).q79 = function (completion) { return new CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda(this.abo_1, this.bbo_1, this.cbo_1, completion); }; function CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda_0(this$0, $submitterUid, $assignmentUid, resultContinuation) { var i = new CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CourseAssignmentMarkDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.tbo_1 = this$0; this.ubo_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentMarkDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(CourseAssignmentMarkDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.tbo_1.nbn_1.insertAsync(this.ubo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentMarkDao_Repo$insertAsync$slambda).q79 = function (completion) { return new CourseAssignmentMarkDao_Repo$insertAsync$slambda(this.tbo_1, this.ubo_1, completion); }; function CourseAssignmentMarkDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new CourseAssignmentMarkDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$148(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dbp_1 = _this__u8e3s4; this.ebp_1 = entity; } protoOf($insertAsyncCOROUTINE$148).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.dbp_1.mbn_1, 'CourseAssignmentMark', CourseAssignmentMarkDao_Repo$insertAsync$slambda_0(this.dbp_1, this.ebp_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseAssignmentMarkDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CourseAssignmentMarkDao.call(this); this.lbn_1 = _db; this.mbn_1 = _repo; this.nbn_1 = _dao; this.obn_1 = _httpClient; this.pbn_1 = _clientId; this.qbn_1 = _endpoint; this.rbn_1 = new RepoDaoFlowHelper(this.mbn_1); } protoOf(CourseAssignmentMarkDao_Repo).dbj = function (accountPersonUid, assignmentUid) { var tmp = this.nbn_1.dbj(accountPersonUid, assignmentUid); return this.rbn_1.r68(tmp, CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda_0(this, accountPersonUid, assignmentUid, null)); }; protoOf(CourseAssignmentMarkDao_Repo).ebj = function (submitterUid, assignmentUid) { var tmp = this.nbn_1.ebj(submitterUid, assignmentUid); return this.rbn_1.r68(tmp, CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda_0(this, submitterUid, assignmentUid, null)); }; protoOf(CourseAssignmentMarkDao_Repo).ebk = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$148(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentMarkDao_Repo).insertAsync = function (entity, $completion) { return this.ebk(entity instanceof CourseAssignmentMark ? entity : THROW_CCE(), $completion); }; function CourseAssignmentSubmissionDao() { } function $insertAsyncCOROUTINE$150(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.sbp_1 = _this__u8e3s4; this.tbp_1 = entity; } protoOf($insertAsyncCOROUTINE$150).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.ubp_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.sbp_1.wbp_1)); if (this.tbp_1.ybp_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.ubp_1.r63(522, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.vbp_1 = suspendResult; this.tbp_1.ybp_1 = this.vbp_1; this.ld_1 = 2; continue $sm; case 2: this.tbp_1.ebq_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.sbp_1.xbp_1.insertAsync(this.tbp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.tbp_1.ybp_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseAssignmentSubmissionDao_DoorWrapper(_db, _dao) { CourseAssignmentSubmissionDao.call(this); this.wbp_1 = _db; this.xbp_1 = _dao; } protoOf(CourseAssignmentSubmissionDao_DoorWrapper).fbp = function (submitterUid, assignmentUid) { return this.xbp_1.fbp(submitterUid, assignmentUid); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).gbp = function (accountPersonUid, assignmentUid, $completion) { return this.xbp_1.gbp(accountPersonUid, assignmentUid, $completion); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).hbp = function (assignmentUid, $completion) { return this.xbp_1.hbp(assignmentUid, $completion); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).ibp = function (assignmentUid) { return this.xbp_1.ibp(assignmentUid); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).jbp = function (accountPersonUid, assignmentUid) { return this.xbp_1.jbp(accountPersonUid, assignmentUid); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).gbq = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$150(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.gbq(entity instanceof CourseAssignmentSubmission ? entity : THROW_CCE(), $completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda$lambda(_result) { return mapRows(_result, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_casUid = $_result.b5o('casUid'); var _tmp_casAssignmentUid = $_result.b5o('casAssignmentUid'); var _tmp_casSubmitterUid = $_result.b5o('casSubmitterUid'); var _tmp_casSubmitterPersonUid = $_result.b5o('casSubmitterPersonUid'); var _tmp_casText = $_result.b10('casText'); var _tmp_casType = $_result.a5o('casType'); var _tmp_casTimestamp = $_result.b5o('casTimestamp'); var _tmp_casClazzUid = $_result.b5o('casClazzUid'); // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentSubmission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionDao_JdbcImpl.getAllSubmissionsFromSubmitterAsFlow.....' call this_0.ybp_1 = _tmp_casUid; this_0.zbp_1 = _tmp_casAssignmentUid; this_0.abq_1 = _tmp_casSubmitterUid; this_0.bbq_1 = _tmp_casSubmitterPersonUid; this_0.cbq_1 = _tmp_casText; this_0.dbq_1 = _tmp_casType; this_0.ebq_1 = _tmp_casTimestamp; this_0.fbq_1 = _tmp_casClazzUid; return this_0; }; } function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda($assignmentUid, $submitterUid, resultContinuation) { this.pbq_1 = $assignmentUid; this.qbq_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda).sbq = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda).le = function (p1, $completion) { return this.sbq((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.rbq_1.x5i(1, this.pbq_1); this.rbq_1.x5i(2, this.qbq_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.rbq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda(this.pbq_1, this.qbq_1, completion); i.rbq_1 = _stmt; return i; }; function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda_0($assignmentUid, $submitterUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda($assignmentUid, $submitterUid, resultContinuation); var l = function (_stmt, $completion) { return i.sbq(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda$lambda(_result) { return mapNextRow(_result, false, CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda$lambda$lambda($_result) { return function (it) { return $_result.s75(1); }; } function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda$lambda(_result) { return mapNextRow(_result, false, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda$lambda$lambda($_result) { return function (it) { return $_result.s75(1); }; } function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, false, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { return $_result.s75(1); }; } function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda($assignmentUid, resultContinuation) { this.bbr_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda).h9u = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda).le = function (p1, $completion) { return this.h9u((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.cbr_1.x5i(1, this.bbr_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.cbr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda(this.bbr_1, completion); i.cbr_1 = _stmt; return i; }; function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda_0($assignmentUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda($assignmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.h9u(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda$lambda(_result) { return mapRows(_result, CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_casUid = $_result.b5o('casUid'); var _tmp_casAssignmentUid = $_result.b5o('casAssignmentUid'); var _tmp_casSubmitterUid = $_result.b5o('casSubmitterUid'); var _tmp_casSubmitterPersonUid = $_result.b5o('casSubmitterPersonUid'); var _tmp_casText = $_result.b10('casText'); var _tmp_casType = $_result.a5o('casType'); var _tmp_casTimestamp = $_result.b5o('casTimestamp'); var _tmp_casClazzUid = $_result.b5o('casClazzUid'); // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentSubmission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionDao_JdbcImpl.findByAssignmentUidAndAccountPersonUid.....' call this_0.ybp_1 = _tmp_casUid; this_0.zbp_1 = _tmp_casAssignmentUid; this_0.abq_1 = _tmp_casSubmitterUid; this_0.bbq_1 = _tmp_casSubmitterPersonUid; this_0.cbq_1 = _tmp_casText; this_0.dbq_1 = _tmp_casType; this_0.ebq_1 = _tmp_casTimestamp; this_0.fbq_1 = _tmp_casClazzUid; return this_0; }; } function CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation) { this.lbr_1 = $assignmentUid; this.mbr_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda).sbq = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda).le = function (p1, $completion) { return this.sbq((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.nbr_1.x5i(1, this.lbr_1); this.nbr_1.x5i(2, this.lbr_1); this.nbr_1.x5i(3, this.mbr_1); this.nbr_1.x5i(4, this.lbr_1); this.nbr_1.x5i(5, this.lbr_1); this.nbr_1.x5i(6, this.mbr_1); this.nbr_1.x5i(7, this.lbr_1); this.nbr_1.x5i(8, this.mbr_1); this.nbr_1.x5i(9, this.lbr_1); this.nbr_1.x5i(10, this.lbr_1); this.nbr_1.x5i(11, this.mbr_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.nbr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda).o5g = function (_stmt, completion) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda(this.lbr_1, this.mbr_1, completion); i.nbr_1 = _stmt; return i; }; function CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda_0($assignmentUid, $accountPersonUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.sbq(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.obr_1); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1).w5h = function (returnsId) { return 'INSERT INTO CourseAssignmentSubmission (casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1).sbr = function (stmt, entity) { if (entity.ybp_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.ybp_1); } stmt.x5i(2, entity.zbp_1); stmt.x5i(3, entity.abq_1); stmt.x5i(4, entity.bbq_1); stmt.a5j(5, entity.cbq_1); stmt.w5i(6, entity.dbq_1); stmt.x5i(7, entity.ebq_1); stmt.x5i(8, entity.fbq_1); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1).r5g = function (stmt, entity) { return this.sbr(stmt, entity instanceof CourseAssignmentSubmission ? entity : THROW_CCE()); }; function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda(this$0, $assignmentUid, $submitterUid, resultContinuation) { this.bbs_1 = this$0; this.cbs_1 = $assignmentUid; this.dbs_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda).ebs = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda).r79 = function ($completion) { return this.ebs($completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT CourseAssignmentSubmission.*\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentSubmission.casSubmitterUid = CAST(? AS BIGINT)\n ORDER BY CourseAssignmentSubmission.casTimestamp DESC \n ', VOID, VOID, VOID, '\n SELECT CourseAssignmentSubmission.*\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n AND CourseAssignmentSubmission.casSubmitterUid = ?\n ORDER BY CourseAssignmentSubmission.casTimestamp DESC \n \n', true); suspendResult = prepareAndUseStatementAsync(this.bbs_1.obr_1, tmp_0, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda_0(this.cbs_1, this.dbs_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda).q79 = function (completion) { return new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda(this.bbs_1, this.cbs_1, this.dbs_1, completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda_0(this$0, $assignmentUid, $submitterUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda(this$0, $assignmentUid, $submitterUid, resultContinuation); var l = function ($completion) { return i.ebs($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda($assignmentUid, $accountPersonUid, resultContinuation) { this.nbs_1 = $assignmentUid; this.obs_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda).h9u = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda).le = function (p1, $completion) { return this.h9u((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.pbs_1.x5i(1, this.nbs_1); this.pbs_1.x5i(2, this.obs_1); this.pbs_1.x5i(3, this.nbs_1); this.pbs_1.x5i(4, this.nbs_1); this.pbs_1.x5i(5, this.obs_1); this.pbs_1.x5i(6, this.nbs_1); this.pbs_1.x5i(7, this.obs_1); this.pbs_1.x5i(8, this.nbs_1); this.pbs_1.x5i(9, this.nbs_1); this.pbs_1.x5i(10, this.obs_1); this.pbs_1.x5i(11, this.nbs_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.pbs_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda).o5g = function (_stmt, completion) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda(this.nbs_1, this.obs_1, completion); i.pbs_1 = _stmt; return i; }; function CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda_0($assignmentUid, $accountPersonUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda($assignmentUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.h9u(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda($assignmentUid, resultContinuation) { this.ybs_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda).h9u = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda).le = function (p1, $completion) { return this.h9u((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.zbs_1.x5i(1, this.ybs_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.zbs_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda).o5g = function (_stmt, completion) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda(this.ybs_1, completion); i.zbs_1 = _stmt; return i; }; function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda_0($assignmentUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda($assignmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.h9u(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda(this$0, $assignmentUid, resultContinuation) { this.ibt_1 = this$0; this.jbt_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda).w9v = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda).r79 = function ($completion) { return this.w9v($completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT NOT EXISTS(SELECT 1\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n LIMIT 1)\n ', VOID, VOID, VOID, '\n SELECT NOT EXISTS(SELECT 1\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n LIMIT 1)\n \n', true); suspendResult = prepareAndUseStatementAsync(this.ibt_1.obr_1, tmp_0, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda_0(this.jbt_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda).q79 = function (completion) { return new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda(this.ibt_1, this.jbt_1, completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda_0(this$0, $assignmentUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda(this$0, $assignmentUid, resultContinuation); var l = function ($completion) { return i.w9v($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation) { this.sbt_1 = this$0; this.tbt_1 = $assignmentUid; this.ubt_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda).ebs = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda).r79 = function ($completion) { return this.ebs($completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT CourseAssignmentSubmission.*\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentSubmission.casSubmitterUid = \n (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n )\n ORDER BY CourseAssignmentSubmission.casTimestamp DESC\n ', VOID, VOID, VOID, '\n SELECT CourseAssignmentSubmission.*\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n AND CourseAssignmentSubmission.casSubmitterUid = \n (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n )\n ORDER BY CourseAssignmentSubmission.casTimestamp DESC\n \n', true); suspendResult = prepareAndUseStatementAsync(this.sbt_1.obr_1, tmp_0, CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda_0(this.tbt_1, this.ubt_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda).q79 = function (completion) { return new CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda(this.sbt_1, this.tbt_1, this.ubt_1, completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda_0(this$0, $assignmentUid, $accountPersonUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.ebs($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$151(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dbu_1 = _this__u8e3s4; this.ebu_1 = entity; } protoOf($insertAsyncCOROUTINE$151).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.dbu_1.pbr_1.y5h(this.ebu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseAssignmentSubmissionDao_JdbcImpl(_db) { CourseAssignmentSubmissionDao.call(this); this.obr_1 = _db; var tmp = this; tmp.pbr_1 = new CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1(this); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl).gbq = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$151(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.gbq(entity instanceof CourseAssignmentSubmission ? entity : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).fbp = function (submitterUid, assignmentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseAssignmentSubmission']; return doorFlow(this.obr_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda_0(this, assignmentUid, submitterUid, null)); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).gbp = function (accountPersonUid, assignmentUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT EXISTS\n (SELECT CourseAssignmentSubmission.casUid\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n )\n AND CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT))\n ', VOID, VOID, VOID, '\n SELECT EXISTS\n (SELECT CourseAssignmentSubmission.casUid\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n )\n AND CourseAssignmentSubmission.casAssignmentUid = ?)\n \n', true); return prepareAndUseStatementAsync(this.obr_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda_0(assignmentUid, accountPersonUid, null), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).hbp = function (assignmentUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT NOT EXISTS(SELECT 1\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n LIMIT 1)\n ', VOID, VOID, VOID, '\n SELECT NOT EXISTS(SELECT 1\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n LIMIT 1)\n \n', true); return prepareAndUseStatementAsync(this.obr_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda_0(assignmentUid, null), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).ibp = function (assignmentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseAssignmentSubmission']; return doorFlow(this.obr_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda_0(this, assignmentUid, null)); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).jbp = function (accountPersonUid, assignmentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseAssignmentSubmission', 'ClazzAssignment', 'CourseGroupMember', 'ClazzEnrolment']; return doorFlow(this.obr_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda_0(this, assignmentUid, accountPersonUid, null)); }; function CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation) { this.nbu_1 = this$0; this.obu_1 = $submitterUid; this.pbu_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.qbu_1 = this.nbu_1.zbu_1; var tmp_1 = this; tmp_1.rbu_1 = 'CourseAssignmentSubmissionDao/getAllSubmissionsFromSubmitterAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.sbu_1 = this.nbu_1.bbv_1; var tmp_3 = this; tmp_3.tbu_1 = this.sbu_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.nbu_1.zbu_1.t39(), 'CourseAssignmentSubmissionDao/getAllSubmissionsFromSubmitterAsFlow'); doorNodeIdHeader(this_0, this.nbu_1.zbu_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'submitterUid', this.nbu_1.zbu_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.obu_1)); parameter(this_0, 'assignmentUid', this.nbu_1.zbu_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.pbu_1)); tmp_4.ubu_1 = this_0; this.ubu_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.vbu_1 = this.tbu_1; var tmp_6 = this; tmp_6.wbu_1 = this.ubu_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.wbu_1, this.vbu_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.xbu_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.nbu_1.ybu_1, this.xbu_1, this.nbu_1.zbu_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda$lambda(this.qbu_1, this.rbu_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda).q79 = function (completion) { return new CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda(this.nbu_1, this.obu_1, this.pbu_1, completion); }; function CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda_0(this$0, $submitterUid, $assignmentUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda(this$0, $accountPersonUid, $assignmentUid, resultContinuation) { this.nbv_1 = this$0; this.obv_1 = $accountPersonUid; this.pbv_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.qbv_1 = this.nbv_1.zbu_1; var tmp_1 = this; tmp_1.rbv_1 = 'CourseAssignmentSubmissionDao/findByAssignmentUidAndAccountPersonUid'; this.md_1 = 3; var tmp_2 = this; tmp_2.sbv_1 = this.nbv_1.bbv_1; var tmp_3 = this; tmp_3.tbv_1 = this.sbv_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.nbv_1.zbu_1.t39(), 'CourseAssignmentSubmissionDao/findByAssignmentUidAndAccountPersonUid'); doorNodeIdHeader(this_0, this.nbv_1.zbu_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.nbv_1.zbu_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.obv_1)); parameter(this_0, 'assignmentUid', this.nbv_1.zbu_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.pbv_1)); tmp_4.ubv_1 = this_0; this.ubv_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.vbv_1 = this.tbv_1; var tmp_6 = this; tmp_6.wbv_1 = this.ubv_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.wbv_1, this.vbv_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.xbv_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.nbv_1.ybu_1, this.xbv_1, this.nbv_1.zbu_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda$lambda(this.qbv_1, this.rbv_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda).q79 = function (completion) { return new CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda(this.nbv_1, this.obv_1, this.pbv_1, completion); }; function CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda_0(this$0, $accountPersonUid, $assignmentUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda(this$0, $accountPersonUid, $assignmentUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.gbw_1 = this$0; this.hbw_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(CourseAssignmentSubmissionDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.gbw_1.abv_1.insertAsync(this.hbw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentSubmissionDao_Repo$insertAsync$slambda).q79 = function (completion) { return new CourseAssignmentSubmissionDao_Repo$insertAsync$slambda(this.gbw_1, this.hbw_1, completion); }; function CourseAssignmentSubmissionDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new CourseAssignmentSubmissionDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $doesUserHaveSubmissionsCOROUTINE$153(_this__u8e3s4, accountPersonUid, assignmentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qbw_1 = _this__u8e3s4; this.rbw_1 = accountPersonUid; this.sbw_1 = assignmentUid; } protoOf($doesUserHaveSubmissionsCOROUTINE$153).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.qbw_1.abv_1.gbp(this.rbw_1, this.sbw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $checkNoSubmissionsMadeAsyncCOROUTINE$157(_this__u8e3s4, assignmentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bbx_1 = _this__u8e3s4; this.cbx_1 = assignmentUid; } protoOf($checkNoSubmissionsMadeAsyncCOROUTINE$157).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.bbx_1.abv_1.hbp(this.cbx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$158(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.lbx_1 = _this__u8e3s4; this.mbx_1 = entity; } protoOf($insertAsyncCOROUTINE$158).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.lbx_1.zbu_1, 'CourseAssignmentSubmission', CourseAssignmentSubmissionDao_Repo$insertAsync$slambda_0(this.lbx_1, this.mbx_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseAssignmentSubmissionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CourseAssignmentSubmissionDao.call(this); this.ybu_1 = _db; this.zbu_1 = _repo; this.abv_1 = _dao; this.bbv_1 = _httpClient; this.cbv_1 = _clientId; this.dbv_1 = _endpoint; this.ebv_1 = new RepoDaoFlowHelper(this.zbu_1); } protoOf(CourseAssignmentSubmissionDao_Repo).fbp = function (submitterUid, assignmentUid) { var tmp = this.abv_1.fbp(submitterUid, assignmentUid); return this.ebv_1.r68(tmp, CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda_0(this, submitterUid, assignmentUid, null)); }; protoOf(CourseAssignmentSubmissionDao_Repo).gbp = function (accountPersonUid, assignmentUid, $completion) { var tmp = new $doesUserHaveSubmissionsCOROUTINE$153(this, accountPersonUid, assignmentUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionDao_Repo).hbp = function (assignmentUid, $completion) { var tmp = new $checkNoSubmissionsMadeAsyncCOROUTINE$157(this, assignmentUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionDao_Repo).ibp = function (assignmentUid) { var _result = this.abv_1.ibp(assignmentUid); return _result; }; protoOf(CourseAssignmentSubmissionDao_Repo).jbp = function (accountPersonUid, assignmentUid) { var tmp = this.abv_1.jbp(accountPersonUid, assignmentUid); return this.ebv_1.r68(tmp, CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda_0(this, accountPersonUid, assignmentUid, null)); }; protoOf(CourseAssignmentSubmissionDao_Repo).gbq = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$158(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionDao_Repo).insertAsync = function (entity, $completion) { return this.gbq(entity instanceof CourseAssignmentSubmission ? entity : THROW_CCE(), $completion); }; function CourseAssignmentSubmissionFileDao() { } function $insertListAsyncCOROUTINE$159(_this__u8e3s4, entityList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bby_1 = _this__u8e3s4; this.cby_1 = entityList; } protoOf($insertListAsyncCOROUTINE$159).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; this.dby_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.bby_1.kby_1)); var tmp_0 = this; tmp_0.eby_1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.fby_1 = this.cby_1.w(); var tmp_2 = this; tmp_2.gby_1 = this.fby_1; this.ld_1 = 1; continue $sm; case 1: if (!this.gby_1.f()) { this.ld_1 = 4; continue $sm; } this.hby_1 = this.gby_1.e(); var tmp_3 = this; tmp_3.iby_1 = this.hby_1; if (this.iby_1.mby_1.equals(new Long(0, 0))) { this.ld_1 = 2; suspendResult = this.dby_1.r63(90, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 3; continue $sm; } case 2: this.jby_1 = suspendResult; this.iby_1.mby_1 = this.jby_1; var this_0 = this.eby_1; var element = this.jby_1; this_0.j1(element); this.ld_1 = 3; continue $sm; case 3: this.iby_1.vby_1 = systemTimeInMillis(); this.ld_1 = 1; continue $sm; case 4: this.ld_1 = 5; suspendResult = this.bby_1.lby_1.nbx(this.cby_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_instance; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$160(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.fbz_1 = _this__u8e3s4; this.gbz_1 = entity; } protoOf($insertAsyncCOROUTINE$160).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.hbz_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.fbz_1.kby_1)); if (this.gbz_1.mby_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.hbz_1.r63(90, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.ibz_1 = suspendResult; this.gbz_1.mby_1 = this.ibz_1; this.ld_1 = 2; continue $sm; case 2: this.gbz_1.vby_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.fbz_1.lby_1.insertAsync(this.gbz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.gbz_1.mby_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseAssignmentSubmissionFileDao_DoorWrapper(_db, _dao) { CourseAssignmentSubmissionFileDao.call(this); this.kby_1 = _db; this.lby_1 = _dao; } protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).nbx = function (entityList, $completion) { var tmp = new $insertListAsyncCOROUTINE$159(this, entityList, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).obx = function (submissionUid) { return this.lby_1.obx(submissionUid); }; protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).pbx = function (accountPersonUid, assignmentUid) { return this.lby_1.pbx(accountPersonUid, assignmentUid); }; protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).qbx = function (submitterUid, assignmentUid) { return this.lby_1.qbx(submitterUid, assignmentUid); }; protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).rbx = function (casaUid, uri, updateTime, $completion) { return this.lby_1.rbx(casaUid, uri, updateTime, $completion); }; protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).sbx = function (casaUid, deleted, updateTime, $completion) { return this.lby_1.sbx(casaUid, deleted, updateTime, $completion); }; protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).jbz = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$160(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.jbz(entity instanceof CourseAssignmentSubmissionFile ? entity : THROW_CCE(), $completion); }; function CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda$lambda(_result) { return mapRows(_result, CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_CourseAssignmentSubmissionFile_nullCount = 0; var _tmp_casaUid = $_result.b5o('casaUid'); var tmp; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_casaSubmissionUid = $_result.b5o('casaSubmissionUid'); var tmp_0; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_casaSubmitterUid = $_result.b5o('casaSubmitterUid'); var tmp_1; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_casaCaUid = $_result.b5o('casaCaUid'); var tmp_2; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_casaClazzUid = $_result.b5o('casaClazzUid'); var tmp_3; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_casaMimeType = $_result.b10('casaMimeType'); var tmp_4; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_casaFileName = $_result.b10('casaFileName'); var tmp_5; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_casaUri = $_result.b10('casaUri'); var tmp_6; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_casaSize = $_result.a5o('casaSize'); var tmp_7; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_casaTimestamp = $_result.b5o('casaTimestamp'); var tmp_8; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_casaDeleted = $_result.m67('casaDeleted'); var tmp_9; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_CourseAssignmentSubmissionFile_isAllNull = _tmp_CourseAssignmentSubmissionFile_nullCount === 11; var _tmp_TransferJobItem_nullCount = 0; var _tmp_tjiUid = $_result.a5o('tjiUid'); var tmp_10; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_tjiTjUid = $_result.a5o('tjiTjUid'); var tmp_11; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_tjTotalSize = $_result.b5o('tjTotalSize'); var tmp_12; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_tjTransferred = $_result.b5o('tjTransferred'); var tmp_13; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_tjAttemptCount = $_result.a5o('tjAttemptCount'); var tmp_14; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_tjiSrc = $_result.b10('tjiSrc'); var tmp_15; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_tjiDest = $_result.b10('tjiDest'); var tmp_16; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_tjiType = $_result.a5o('tjiType'); var tmp_17; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_tjiStatus = $_result.a5o('tjiStatus'); var tmp_18; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_tjiTableId = $_result.a5o('tjiTableId'); var tmp_19; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_tjiEntityUid = $_result.b5o('tjiEntityUid'); var tmp_20; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_tjiEntityEtag = $_result.b5o('tjiEntityEtag'); var tmp_21; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_tjiLockIdToRelease = $_result.b5o('tjiLockIdToRelease'); var tmp_22; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_tjiPartialTmpFile = $_result.b10('tjiPartialTmpFile'); var tmp_23; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_TransferJobItem_isAllNull = _tmp_TransferJobItem_nullCount === 14; // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentSubmissionFileAndTransferJob(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getBySubmissionUid.....' call if (!_tmp_CourseAssignmentSubmissionFile_isAllNull) { var tmp_24 = this_0; // Inline function 'kotlin.apply' call var this_1 = new CourseAssignmentSubmissionFile(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getBySubmissionUid......' call this_1.mby_1 = _tmp_casaUid; this_1.nby_1 = _tmp_casaSubmissionUid; this_1.oby_1 = _tmp_casaSubmitterUid; this_1.pby_1 = _tmp_casaCaUid; this_1.qby_1 = _tmp_casaClazzUid; this_1.rby_1 = _tmp_casaMimeType; this_1.sby_1 = _tmp_casaFileName; this_1.tby_1 = _tmp_casaUri; this_1.uby_1 = _tmp_casaSize; this_1.vby_1 = _tmp_casaTimestamp; this_1.wby_1 = _tmp_casaDeleted; tmp_24.kbz_1 = this_1; } if (!_tmp_TransferJobItem_isAllNull) { var tmp_25 = this_0; // Inline function 'kotlin.apply' call var this_2 = new TransferJobItem(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getBySubmissionUid......' call this_2.mbz_1 = _tmp_tjiUid; this_2.nbz_1 = _tmp_tjiTjUid; this_2.obz_1 = _tmp_tjTotalSize; this_2.pbz_1 = _tmp_tjTransferred; this_2.qbz_1 = _tmp_tjAttemptCount; this_2.rbz_1 = _tmp_tjiSrc; this_2.sbz_1 = _tmp_tjiDest; this_2.tbz_1 = _tmp_tjiType; this_2.ubz_1 = _tmp_tjiStatus; this_2.vbz_1 = _tmp_tjiTableId; this_2.wbz_1 = _tmp_tjiEntityUid; this_2.xbz_1 = _tmp_tjiEntityEtag; this_2.ybz_1 = _tmp_tjiLockIdToRelease; this_2.zbz_1 = _tmp_tjiPartialTmpFile; tmp_25.lbz_1 = this_2; } return this_0; }; } function CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda($submissionUid, resultContinuation) { this.ic0_1 = $submissionUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda).kc0 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda).le = function (p1, $completion) { return this.kc0((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.jc0_1.x5i(1, this.ic0_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.jc0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda).o5g = function (_stmt, completion) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda(this.ic0_1, completion); i.jc0_1 = _stmt; return i; }; function CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda_0($submissionUid, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda($submissionUid, resultContinuation); var l = function (_stmt, $completion) { return i.kc0(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda$lambda(_result) { return mapRows(_result, CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_CourseAssignmentSubmissionFile_nullCount = 0; var _tmp_casaUid = $_result.b5o('casaUid'); var tmp; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_casaSubmissionUid = $_result.b5o('casaSubmissionUid'); var tmp_0; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_casaSubmitterUid = $_result.b5o('casaSubmitterUid'); var tmp_1; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_casaCaUid = $_result.b5o('casaCaUid'); var tmp_2; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_casaClazzUid = $_result.b5o('casaClazzUid'); var tmp_3; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_casaMimeType = $_result.b10('casaMimeType'); var tmp_4; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_casaFileName = $_result.b10('casaFileName'); var tmp_5; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_casaUri = $_result.b10('casaUri'); var tmp_6; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_casaSize = $_result.a5o('casaSize'); var tmp_7; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_casaTimestamp = $_result.b5o('casaTimestamp'); var tmp_8; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_casaDeleted = $_result.m67('casaDeleted'); var tmp_9; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_CourseAssignmentSubmissionFile_isAllNull = _tmp_CourseAssignmentSubmissionFile_nullCount === 11; var _tmp_TransferJobItem_nullCount = 0; var _tmp_tjiUid = $_result.a5o('tjiUid'); var tmp_10; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_tjiTjUid = $_result.a5o('tjiTjUid'); var tmp_11; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_tjTotalSize = $_result.b5o('tjTotalSize'); var tmp_12; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_tjTransferred = $_result.b5o('tjTransferred'); var tmp_13; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_tjAttemptCount = $_result.a5o('tjAttemptCount'); var tmp_14; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_tjiSrc = $_result.b10('tjiSrc'); var tmp_15; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_tjiDest = $_result.b10('tjiDest'); var tmp_16; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_tjiType = $_result.a5o('tjiType'); var tmp_17; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_tjiStatus = $_result.a5o('tjiStatus'); var tmp_18; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_tjiTableId = $_result.a5o('tjiTableId'); var tmp_19; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_tjiEntityUid = $_result.b5o('tjiEntityUid'); var tmp_20; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_tjiEntityEtag = $_result.b5o('tjiEntityEtag'); var tmp_21; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_tjiLockIdToRelease = $_result.b5o('tjiLockIdToRelease'); var tmp_22; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_tjiPartialTmpFile = $_result.b10('tjiPartialTmpFile'); var tmp_23; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_TransferJobItem_isAllNull = _tmp_TransferJobItem_nullCount === 14; // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentSubmissionFileAndTransferJob(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getByAssignmentUidAndPersonUid.....' call if (!_tmp_CourseAssignmentSubmissionFile_isAllNull) { var tmp_24 = this_0; // Inline function 'kotlin.apply' call var this_1 = new CourseAssignmentSubmissionFile(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getByAssignmentUidAndPersonUid......' call this_1.mby_1 = _tmp_casaUid; this_1.nby_1 = _tmp_casaSubmissionUid; this_1.oby_1 = _tmp_casaSubmitterUid; this_1.pby_1 = _tmp_casaCaUid; this_1.qby_1 = _tmp_casaClazzUid; this_1.rby_1 = _tmp_casaMimeType; this_1.sby_1 = _tmp_casaFileName; this_1.tby_1 = _tmp_casaUri; this_1.uby_1 = _tmp_casaSize; this_1.vby_1 = _tmp_casaTimestamp; this_1.wby_1 = _tmp_casaDeleted; tmp_24.kbz_1 = this_1; } if (!_tmp_TransferJobItem_isAllNull) { var tmp_25 = this_0; // Inline function 'kotlin.apply' call var this_2 = new TransferJobItem(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getByAssignmentUidAndPersonUid......' call this_2.mbz_1 = _tmp_tjiUid; this_2.nbz_1 = _tmp_tjiTjUid; this_2.obz_1 = _tmp_tjTotalSize; this_2.pbz_1 = _tmp_tjTransferred; this_2.qbz_1 = _tmp_tjAttemptCount; this_2.rbz_1 = _tmp_tjiSrc; this_2.sbz_1 = _tmp_tjiDest; this_2.tbz_1 = _tmp_tjiType; this_2.ubz_1 = _tmp_tjiStatus; this_2.vbz_1 = _tmp_tjiTableId; this_2.wbz_1 = _tmp_tjiEntityUid; this_2.xbz_1 = _tmp_tjiEntityEtag; this_2.ybz_1 = _tmp_tjiLockIdToRelease; this_2.zbz_1 = _tmp_tjiPartialTmpFile; tmp_25.lbz_1 = this_2; } return this_0; }; } function CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation) { this.tc0_1 = $assignmentUid; this.uc0_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda).kc0 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda).le = function (p1, $completion) { return this.kc0((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.vc0_1.x5i(1, this.tc0_1); this.vc0_1.x5i(2, this.tc0_1); this.vc0_1.x5i(3, this.uc0_1); this.vc0_1.x5i(4, this.tc0_1); this.vc0_1.x5i(5, this.tc0_1); this.vc0_1.x5i(6, this.uc0_1); this.vc0_1.x5i(7, this.tc0_1); this.vc0_1.x5i(8, this.uc0_1); this.vc0_1.x5i(9, this.tc0_1); this.vc0_1.x5i(10, this.tc0_1); this.vc0_1.x5i(11, this.uc0_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.vc0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda).o5g = function (_stmt, completion) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda(this.tc0_1, this.uc0_1, completion); i.vc0_1 = _stmt; return i; }; function CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda_0($assignmentUid, $accountPersonUid, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.kc0(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda$lambda(_result) { return mapRows(_result, CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_CourseAssignmentSubmissionFile_nullCount = 0; var _tmp_casaUid = $_result.b5o('casaUid'); var tmp; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_casaSubmissionUid = $_result.b5o('casaSubmissionUid'); var tmp_0; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_casaSubmitterUid = $_result.b5o('casaSubmitterUid'); var tmp_1; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_casaCaUid = $_result.b5o('casaCaUid'); var tmp_2; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_casaClazzUid = $_result.b5o('casaClazzUid'); var tmp_3; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_casaMimeType = $_result.b10('casaMimeType'); var tmp_4; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_casaFileName = $_result.b10('casaFileName'); var tmp_5; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_casaUri = $_result.b10('casaUri'); var tmp_6; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_casaSize = $_result.a5o('casaSize'); var tmp_7; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_casaTimestamp = $_result.b5o('casaTimestamp'); var tmp_8; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_casaDeleted = $_result.m67('casaDeleted'); var tmp_9; if ($_result.t68()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_CourseAssignmentSubmissionFile_isAllNull = _tmp_CourseAssignmentSubmissionFile_nullCount === 11; var _tmp_TransferJobItem_nullCount = 0; var _tmp_tjiUid = $_result.a5o('tjiUid'); var tmp_10; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_tjiTjUid = $_result.a5o('tjiTjUid'); var tmp_11; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_tjTotalSize = $_result.b5o('tjTotalSize'); var tmp_12; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_tjTransferred = $_result.b5o('tjTransferred'); var tmp_13; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_tjAttemptCount = $_result.a5o('tjAttemptCount'); var tmp_14; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_tjiSrc = $_result.b10('tjiSrc'); var tmp_15; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_tjiDest = $_result.b10('tjiDest'); var tmp_16; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_tjiType = $_result.a5o('tjiType'); var tmp_17; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_tjiStatus = $_result.a5o('tjiStatus'); var tmp_18; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_tjiTableId = $_result.a5o('tjiTableId'); var tmp_19; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_tjiEntityUid = $_result.b5o('tjiEntityUid'); var tmp_20; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_tjiEntityEtag = $_result.b5o('tjiEntityEtag'); var tmp_21; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_tjiLockIdToRelease = $_result.b5o('tjiLockIdToRelease'); var tmp_22; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_tjiPartialTmpFile = $_result.b10('tjiPartialTmpFile'); var tmp_23; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_TransferJobItem_isAllNull = _tmp_TransferJobItem_nullCount === 14; // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentSubmissionFileAndTransferJob(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getAllSubmissionFilesFromSubmitterAsFlow.....' call if (!_tmp_CourseAssignmentSubmissionFile_isAllNull) { var tmp_24 = this_0; // Inline function 'kotlin.apply' call var this_1 = new CourseAssignmentSubmissionFile(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getAllSubmissionFilesFromSubmitterAsFlow......' call this_1.mby_1 = _tmp_casaUid; this_1.nby_1 = _tmp_casaSubmissionUid; this_1.oby_1 = _tmp_casaSubmitterUid; this_1.pby_1 = _tmp_casaCaUid; this_1.qby_1 = _tmp_casaClazzUid; this_1.rby_1 = _tmp_casaMimeType; this_1.sby_1 = _tmp_casaFileName; this_1.tby_1 = _tmp_casaUri; this_1.uby_1 = _tmp_casaSize; this_1.vby_1 = _tmp_casaTimestamp; this_1.wby_1 = _tmp_casaDeleted; tmp_24.kbz_1 = this_1; } if (!_tmp_TransferJobItem_isAllNull) { var tmp_25 = this_0; // Inline function 'kotlin.apply' call var this_2 = new TransferJobItem(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getAllSubmissionFilesFromSubmitterAsFlow......' call this_2.mbz_1 = _tmp_tjiUid; this_2.nbz_1 = _tmp_tjiTjUid; this_2.obz_1 = _tmp_tjTotalSize; this_2.pbz_1 = _tmp_tjTransferred; this_2.qbz_1 = _tmp_tjAttemptCount; this_2.rbz_1 = _tmp_tjiSrc; this_2.sbz_1 = _tmp_tjiDest; this_2.tbz_1 = _tmp_tjiType; this_2.ubz_1 = _tmp_tjiStatus; this_2.vbz_1 = _tmp_tjiTableId; this_2.wbz_1 = _tmp_tjiEntityUid; this_2.xbz_1 = _tmp_tjiEntityEtag; this_2.ybz_1 = _tmp_tjiLockIdToRelease; this_2.zbz_1 = _tmp_tjiPartialTmpFile; tmp_25.lbz_1 = this_2; } return this_0; }; } function CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda($submitterUid, $assignmentUid, resultContinuation) { this.ec1_1 = $submitterUid; this.fc1_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda).kc0 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda).le = function (p1, $completion) { return this.kc0((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.gc1_1.x5i(1, this.ec1_1); this.gc1_1.x5i(2, this.fc1_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.gc1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda(this.ec1_1, this.fc1_1, completion); i.gc1_1 = _stmt; return i; }; function CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda_0($submitterUid, $assignmentUid, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda($submitterUid, $assignmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.kc0(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.hc1_1); } protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1).w5h = function (returnsId) { return 'INSERT INTO CourseAssignmentSubmissionFile (casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1).lc1 = function (stmt, entity) { if (entity.mby_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.mby_1); } stmt.x5i(2, entity.nby_1); stmt.x5i(3, entity.oby_1); stmt.x5i(4, entity.pby_1); stmt.x5i(5, entity.qby_1); stmt.a5j(6, entity.rby_1); stmt.a5j(7, entity.sby_1); stmt.a5j(8, entity.tby_1); stmt.w5i(9, entity.uby_1); stmt.x5i(10, entity.vby_1); stmt.k5i(11, entity.wby_1); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1).r5g = function (stmt, entity) { return this.lc1(stmt, entity instanceof CourseAssignmentSubmissionFile ? entity : THROW_CCE()); }; function CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda(this$0, $submissionUid, resultContinuation) { this.uc1_1 = this$0; this.vc1_1 = $submissionUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda).wc1 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda).r79 = function ($completion) { return this.wc1($completion); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT CourseAssignmentSubmissionFile.*, TransferJobItem.*\n FROM CourseAssignmentSubmissionFile\n LEFT JOIN TransferJobItem\n ON TransferJobItem.tjiEntityUid = CourseAssignmentSubmissionFile.casaUid\n AND TransferJobItem.tjiTableId = 90\n WHERE CourseAssignmentSubmissionFile.casaSubmissionUid = CAST(? AS BIGINT)\n AND NOT CourseAssignmentSubmissionFile.casaDeleted\n ', VOID, VOID, VOID, '\n SELECT CourseAssignmentSubmissionFile.*, TransferJobItem.*\n FROM CourseAssignmentSubmissionFile\n LEFT JOIN TransferJobItem\n ON TransferJobItem.tjiEntityUid = CourseAssignmentSubmissionFile.casaUid\n AND TransferJobItem.tjiTableId = 90\n WHERE CourseAssignmentSubmissionFile.casaSubmissionUid = ?\n AND NOT CourseAssignmentSubmissionFile.casaDeleted\n \n', true); suspendResult = prepareAndUseStatementAsync(this.uc1_1.hc1_1, tmp_0, CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda_0(this.vc1_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda).q79 = function (completion) { return new CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda(this.uc1_1, this.vc1_1, completion); }; function CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda_0(this$0, $submissionUid, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda(this$0, $submissionUid, resultContinuation); var l = function ($completion) { return i.wc1($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation) { this.fc2_1 = this$0; this.gc2_1 = $assignmentUid; this.hc2_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda).wc1 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda).r79 = function ($completion) { return this.wc1($completion); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT CourseAssignmentSubmissionFile.*, TransferJobItem.*\n FROM CourseAssignmentSubmissionFile\n LEFT JOIN TransferJobItem\n ON TransferJobItem.tjiEntityUid = CourseAssignmentSubmissionFile.casaUid\n AND TransferJobItem.tjiTableId = 90\n WHERE CourseAssignmentSubmissionFile.casaSubmissionUid IN\n (SELECT CourseAssignmentSubmission.casUid\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentSubmission.casSubmitterUid = \n (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n ))\n AND NOT CourseAssignmentSubmissionFile.casaDeleted \n ', VOID, VOID, VOID, '\n SELECT CourseAssignmentSubmissionFile.*, TransferJobItem.*\n FROM CourseAssignmentSubmissionFile\n LEFT JOIN TransferJobItem\n ON TransferJobItem.tjiEntityUid = CourseAssignmentSubmissionFile.casaUid\n AND TransferJobItem.tjiTableId = 90\n WHERE CourseAssignmentSubmissionFile.casaSubmissionUid IN\n (SELECT CourseAssignmentSubmission.casUid\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n AND CourseAssignmentSubmission.casSubmitterUid = \n (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n ))\n AND NOT CourseAssignmentSubmissionFile.casaDeleted \n \n', true); suspendResult = prepareAndUseStatementAsync(this.fc2_1.hc1_1, tmp_0, CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda_0(this.gc2_1, this.hc2_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda).q79 = function (completion) { return new CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda(this.fc2_1, this.gc2_1, this.hc2_1, completion); }; function CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda_0(this$0, $assignmentUid, $accountPersonUid, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.wc1($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation) { this.qc2_1 = this$0; this.rc2_1 = $submitterUid; this.sc2_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda).wc1 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda).r79 = function ($completion) { return this.wc1($completion); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT CourseAssignmentSubmissionFile.*, TransferJobItem.*\n FROM CourseAssignmentSubmissionFile\n LEFT JOIN TransferJobItem\n ON TransferJobItem.tjiEntityUid = CourseAssignmentSubmissionFile.casaUid\n AND TransferJobItem.tjiTableId = 90\n WHERE CourseAssignmentSubmissionFile.casaSubmitterUid = CAST(? AS BIGINT)\n AND CourseAssignmentSubmissionFile.casaCaUid = CAST(? AS BIGINT)\n AND NOT CourseAssignmentSubmissionFile.casaDeleted\n ', VOID, VOID, VOID, '\n SELECT CourseAssignmentSubmissionFile.*, TransferJobItem.*\n FROM CourseAssignmentSubmissionFile\n LEFT JOIN TransferJobItem\n ON TransferJobItem.tjiEntityUid = CourseAssignmentSubmissionFile.casaUid\n AND TransferJobItem.tjiTableId = 90\n WHERE CourseAssignmentSubmissionFile.casaSubmitterUid = ?\n AND CourseAssignmentSubmissionFile.casaCaUid = ?\n AND NOT CourseAssignmentSubmissionFile.casaDeleted\n \n', true); suspendResult = prepareAndUseStatementAsync(this.qc2_1.hc1_1, tmp_0, CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda_0(this.rc2_1, this.sc2_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda).q79 = function (completion) { return new CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this.qc2_1, this.rc2_1, this.sc2_1, completion); }; function CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda_0(this$0, $submitterUid, $assignmentUid, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation); var l = function ($completion) { return i.wc1($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda($uri, $updateTime, $casaUid, resultContinuation) { this.bc3_1 = $uri; this.cc3_1 = $updateTime; this.dc3_1 = $casaUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ec3_1.a5j(1, this.bc3_1); this.ec3_1.x5i(2, this.cc3_1); this.ec3_1.x5i(3, this.dc3_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.ec3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda).o5g = function (_stmt, completion) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda(this.bc3_1, this.cc3_1, this.dc3_1, completion); i.ec3_1 = _stmt; return i; }; function CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda_0($uri, $updateTime, $casaUid, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda($uri, $updateTime, $casaUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda($deleted, $updateTime, $casaUid, resultContinuation) { this.nc3_1 = $deleted; this.oc3_1 = $updateTime; this.pc3_1 = $casaUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.qc3_1.k5i(1, this.nc3_1); this.qc3_1.x5i(2, this.oc3_1); this.qc3_1.x5i(3, this.pc3_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.qc3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda).o5g = function (_stmt, completion) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda(this.nc3_1, this.oc3_1, this.pc3_1, completion); i.qc3_1 = _stmt; return i; }; function CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda_0($deleted, $updateTime, $casaUid, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda($deleted, $updateTime, $casaUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$161(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.zc3_1 = _this__u8e3s4; this.ac4_1 = entity; } protoOf($insertAsyncCOROUTINE$161).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.zc3_1.ic1_1.y5h(this.ac4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateUriCOROUTINE$162(_this__u8e3s4, casaUid, uri, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.jc4_1 = _this__u8e3s4; this.kc4_1 = casaUid; this.lc4_1 = uri; this.mc4_1 = updateTime; } protoOf($updateUriCOROUTINE$162).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE CourseAssignmentSubmissionFile\n SET casaUri = ?,\n casaTimestamp = CAST(? AS BIGINT)\n WHERE casaUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n UPDATE CourseAssignmentSubmissionFile\n SET casaUri = ?,\n casaTimestamp = ?\n WHERE casaUid = ?\n \n', false); suspendResult = prepareAndUseStatementAsync(this.jc4_1.hc1_1, tmp_0, CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda_0(this.lc4_1, this.mc4_1, this.kc4_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $setDeletedCOROUTINE$163(_this__u8e3s4, casaUid, deleted, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.vc4_1 = _this__u8e3s4; this.wc4_1 = casaUid; this.xc4_1 = deleted; this.yc4_1 = updateTime; } protoOf($setDeletedCOROUTINE$163).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE CourseAssignmentSubmissionFile\n SET casaDeleted = ?,\n casaTimestamp = CAST(? AS BIGINT)\n WHERE casaUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n UPDATE CourseAssignmentSubmissionFile\n SET casaDeleted = ?,\n casaTimestamp = ?\n WHERE casaUid = ?\n \n', false); suspendResult = prepareAndUseStatementAsync(this.vc4_1.hc1_1, tmp_0, CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda_0(this.xc4_1, this.yc4_1, this.wc4_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseAssignmentSubmissionFileDao_JdbcImpl(_db) { CourseAssignmentSubmissionFileDao.call(this); this.hc1_1 = _db; var tmp = this; tmp.ic1_1 = new CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1(this); } protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).nbx = function (entityList, $completion) { return this.ic1_1.b5i(entityList, $completion); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).jbz = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$161(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.jbz(entity instanceof CourseAssignmentSubmissionFile ? entity : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).obx = function (submissionUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['TransferJobItem', 'CourseAssignmentSubmissionFile']; return doorFlow(this.hc1_1, tmp, CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda_0(this, submissionUid, null)); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).pbx = function (accountPersonUid, assignmentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseAssignmentSubmission', 'ClazzAssignment', 'TransferJobItem', 'CourseGroupMember', 'CourseAssignmentSubmissionFile', 'ClazzEnrolment']; return doorFlow(this.hc1_1, tmp, CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda_0(this, assignmentUid, accountPersonUid, null)); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).qbx = function (submitterUid, assignmentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['TransferJobItem', 'CourseAssignmentSubmissionFile']; return doorFlow(this.hc1_1, tmp, CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda_0(this, submitterUid, assignmentUid, null)); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).rbx = function (casaUid, uri, updateTime, $completion) { var tmp = new $updateUriCOROUTINE$162(this, casaUid, uri, updateTime, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).sbx = function (casaUid, deleted, updateTime, $completion) { var tmp = new $setDeletedCOROUTINE$163(this, casaUid, deleted, updateTime, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation) { this.hc5_1 = this$0; this.ic5_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.hc5_1.lc5_1.nbx(this.ic5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda).q79 = function (completion) { return new CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda(this.hc5_1, this.ic5_1, completion); }; function CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda(this$0, $accountPersonUid, $assignmentUid, resultContinuation) { this.yc5_1 = this$0; this.zc5_1 = $accountPersonUid; this.ac6_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.bc6_1 = this.yc5_1.kc5_1; var tmp_1 = this; tmp_1.cc6_1 = 'CourseAssignmentSubmissionFileDao/getByAssignmentUidAndPersonUid'; this.md_1 = 3; var tmp_2 = this; tmp_2.dc6_1 = this.yc5_1.mc5_1; var tmp_3 = this; tmp_3.ec6_1 = this.dc6_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.yc5_1.kc5_1.t39(), 'CourseAssignmentSubmissionFileDao/getByAssignmentUidAndPersonUid'); doorNodeIdHeader(this_0, this.yc5_1.kc5_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.yc5_1.kc5_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.zc5_1)); parameter(this_0, 'assignmentUid', this.yc5_1.kc5_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ac6_1)); tmp_4.fc6_1 = this_0; this.fc6_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.gc6_1 = this.ec6_1; var tmp_6 = this; tmp_6.hc6_1 = this.fc6_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.hc6_1, this.gc6_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ic6_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.yc5_1.jc5_1, this.ic6_1, this.yc5_1.kc5_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda$lambda(this.bc6_1, this.cc6_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda).q79 = function (completion) { return new CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda(this.yc5_1, this.zc5_1, this.ac6_1, completion); }; function CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda_0(this$0, $accountPersonUid, $assignmentUid, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda(this$0, $accountPersonUid, $assignmentUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation) { this.rc6_1 = this$0; this.sc6_1 = $submitterUid; this.tc6_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.uc6_1 = this.rc6_1.kc5_1; var tmp_1 = this; tmp_1.vc6_1 = 'CourseAssignmentSubmissionFileDao/getAllSubmissionFilesFromSubmitterAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.wc6_1 = this.rc6_1.mc5_1; var tmp_3 = this; tmp_3.xc6_1 = this.wc6_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.rc6_1.kc5_1.t39(), 'CourseAssignmentSubmissionFileDao/getAllSubmissionFilesFromSubmitterAsFlow'); doorNodeIdHeader(this_0, this.rc6_1.kc5_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'submitterUid', this.rc6_1.kc5_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.sc6_1)); parameter(this_0, 'assignmentUid', this.rc6_1.kc5_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.tc6_1)); tmp_4.yc6_1 = this_0; this.yc6_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.zc6_1 = this.xc6_1; var tmp_6 = this; tmp_6.ac7_1 = this.yc6_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.ac7_1, this.zc6_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.bc7_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.rc6_1.jc5_1, this.bc7_1, this.rc6_1.kc5_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda$lambda(this.uc6_1, this.vc6_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda).q79 = function (completion) { return new CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this.rc6_1, this.sc6_1, this.tc6_1, completion); }; function CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda_0(this$0, $submitterUid, $assignmentUid, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda(this$0, $casaUid, $uri, $updateTime, resultContinuation) { this.kc7_1 = this$0; this.lc7_1 = $casaUid; this.mc7_1 = $uri; this.nc7_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.kc7_1.lc5_1.rbx(this.lc7_1, this.mc7_1, this.nc7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda).q79 = function (completion) { return new CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda(this.kc7_1, this.lc7_1, this.mc7_1, this.nc7_1, completion); }; function CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda_0(this$0, $casaUid, $uri, $updateTime, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda(this$0, $casaUid, $uri, $updateTime, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda(this$0, $casaUid, $deleted, $updateTime, resultContinuation) { this.wc7_1 = this$0; this.xc7_1 = $casaUid; this.yc7_1 = $deleted; this.zc7_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.wc7_1.lc5_1.sbx(this.xc7_1, this.yc7_1, this.zc7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda).q79 = function (completion) { return new CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda(this.wc7_1, this.xc7_1, this.yc7_1, this.zc7_1, completion); }; function CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda_0(this$0, $casaUid, $deleted, $updateTime, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda(this$0, $casaUid, $deleted, $updateTime, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.ic8_1 = this$0; this.jc8_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.ic8_1.lc5_1.insertAsync(this.jc8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda).q79 = function (completion) { return new CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda(this.ic8_1, this.jc8_1, completion); }; function CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$164(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.sc8_1 = _this__u8e3s4; this.tc8_1 = entity; } protoOf($insertAsyncCOROUTINE$164).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.sc8_1.kc5_1, 'CourseAssignmentSubmissionFile', CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda_0(this.sc8_1, this.tc8_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseAssignmentSubmissionFileDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CourseAssignmentSubmissionFileDao.call(this); this.jc5_1 = _db; this.kc5_1 = _repo; this.lc5_1 = _dao; this.mc5_1 = _httpClient; this.nc5_1 = _clientId; this.oc5_1 = _endpoint; this.pc5_1 = new RepoDaoFlowHelper(this.kc5_1); } protoOf(CourseAssignmentSubmissionFileDao_Repo).nbx = function (entityList, $completion) { return withRepoChangeMonitorAsync(this.kc5_1, 'CourseAssignmentSubmissionFile', CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(CourseAssignmentSubmissionFileDao_Repo).obx = function (submissionUid) { var _result = this.lc5_1.obx(submissionUid); return _result; }; protoOf(CourseAssignmentSubmissionFileDao_Repo).pbx = function (accountPersonUid, assignmentUid) { var tmp = this.lc5_1.pbx(accountPersonUid, assignmentUid); return this.pc5_1.r68(tmp, CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda_0(this, accountPersonUid, assignmentUid, null)); }; protoOf(CourseAssignmentSubmissionFileDao_Repo).qbx = function (submitterUid, assignmentUid) { var tmp = this.lc5_1.qbx(submitterUid, assignmentUid); return this.pc5_1.r68(tmp, CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda_0(this, submitterUid, assignmentUid, null)); }; protoOf(CourseAssignmentSubmissionFileDao_Repo).rbx = function (casaUid, uri, updateTime, $completion) { return withRepoChangeMonitorAsync(this.kc5_1, 'CourseAssignmentSubmissionFile', CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda_0(this, casaUid, uri, updateTime, null), $completion); }; protoOf(CourseAssignmentSubmissionFileDao_Repo).sbx = function (casaUid, deleted, updateTime, $completion) { return withRepoChangeMonitorAsync(this.kc5_1, 'CourseAssignmentSubmissionFile', CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda_0(this, casaUid, deleted, updateTime, null), $completion); }; protoOf(CourseAssignmentSubmissionFileDao_Repo).jbz = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$164(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseAssignmentSubmissionFileDao_Repo).insertAsync = function (entity, $completion) { return this.jbz(entity instanceof CourseAssignmentSubmissionFile ? entity : THROW_CCE(), $completion); }; function CourseBlockDao() { } function $upsertListAsyncCOROUTINE$166(_this__u8e3s4, entities, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.lc9_1 = _this__u8e3s4; this.mc9_1 = entities; } protoOf($upsertListAsyncCOROUTINE$166).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; this.nc9_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.lc9_1.uc9_1)); var tmp_0 = this; tmp_0.oc9_1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.pc9_1 = this.mc9_1.w(); var tmp_2 = this; tmp_2.qc9_1 = this.pc9_1; this.ld_1 = 1; continue $sm; case 1: if (!this.qc9_1.f()) { this.ld_1 = 4; continue $sm; } this.rc9_1 = this.qc9_1.e(); var tmp_3 = this; tmp_3.sc9_1 = this.rc9_1; if (this.sc9_1.r7y_1.equals(new Long(0, 0))) { this.ld_1 = 2; suspendResult = this.nc9_1.r63(124, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 3; continue $sm; } case 2: this.tc9_1 = suspendResult; this.sc9_1.r7y_1 = this.tc9_1; var this_0 = this.oc9_1; var element = this.tc9_1; this_0.j1(element); this.ld_1 = 3; continue $sm; case 3: this.sc9_1.k7z_1 = systemTimeInMillis(); this.ld_1 = 1; continue $sm; case 4: this.ld_1 = 5; suspendResult = this.lc9_1.vc9_1.yc8(this.mc9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_instance; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$167(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.eca_1 = _this__u8e3s4; this.fca_1 = entity; } protoOf($insertAsyncCOROUTINE$167).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.gca_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.eca_1.uc9_1)); if (this.fca_1.r7y_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.gca_1.r63(124, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.hca_1 = suspendResult; this.fca_1.r7y_1 = this.hca_1; this.ld_1 = 2; continue $sm; case 2: this.fca_1.k7z_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.eca_1.vc9_1.insertAsync(this.fca_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.fca_1.r7y_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseBlockDao_DoorWrapper(_db, _dao) { CourseBlockDao.call(this); this.uc9_1 = _db; this.vc9_1 = _dao; } protoOf(CourseBlockDao_DoorWrapper).uc8 = function (uid) { return this.vc9_1.uc8(uid); }; protoOf(CourseBlockDao_DoorWrapper).vc8 = function (clazzUid, includeInactive, $completion) { return this.vc9_1.vc8(clazzUid, includeInactive, $completion); }; protoOf(CourseBlockDao_DoorWrapper).wc8 = function (clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid) { return this.vc9_1.wc8(clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid); }; protoOf(CourseBlockDao_DoorWrapper).xc8 = function (cbUid, active, changeTime, $completion) { return this.vc9_1.xc8(cbUid, active, changeTime, $completion); }; protoOf(CourseBlockDao_DoorWrapper).yc8 = function (entities, $completion) { var tmp = new $upsertListAsyncCOROUTINE$166(this, entities, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_DoorWrapper).zc8 = function (postUid, $completion) { return this.vc9_1.zc8(postUid, $completion); }; protoOf(CourseBlockDao_DoorWrapper).ac9 = function (courseBlockUid, $completion) { return this.vc9_1.ac9(courseBlockUid, $completion); }; protoOf(CourseBlockDao_DoorWrapper).bc9 = function (assignmentUid) { return this.vc9_1.bc9(assignmentUid); }; protoOf(CourseBlockDao_DoorWrapper).cc9 = function (clazzUid) { return this.vc9_1.cc9(clazzUid); }; protoOf(CourseBlockDao_DoorWrapper).ica = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$167(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.ica(entity instanceof CourseBlock ? entity : THROW_CCE(), $completion); }; function CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_CourseBlock_nullCount = 0; var _tmp_cbUid = $_result.b5o('cbUid'); var tmp; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_cbType = $_result.a5o('cbType'); var tmp_0; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_cbIndentLevel = $_result.a5o('cbIndentLevel'); var tmp_1; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_cbModuleParentBlockUid = $_result.b5o('cbModuleParentBlockUid'); var tmp_2; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_cbTitle = $_result.b10('cbTitle'); var tmp_3; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_cbDescription = $_result.b10('cbDescription'); var tmp_4; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_cbCompletionCriteria = $_result.a5o('cbCompletionCriteria'); var tmp_5; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_cbHideUntilDate = $_result.b5o('cbHideUntilDate'); var tmp_6; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_cbDeadlineDate = $_result.b5o('cbDeadlineDate'); var tmp_7; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_cbLateSubmissionPenalty = $_result.a5o('cbLateSubmissionPenalty'); var tmp_8; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_cbGracePeriodDate = $_result.b5o('cbGracePeriodDate'); var tmp_9; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints'); var tmp_10; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints'); var tmp_11; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_cbIndex = $_result.a5o('cbIndex'); var tmp_12; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_cbClazzUid = $_result.b5o('cbClazzUid'); var tmp_13; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_cbClazzSourcedId = $_result.b10('cbClazzSourcedId'); var tmp_14; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_cbActive = $_result.m67('cbActive'); var tmp_15; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_cbHidden = $_result.m67('cbHidden'); var tmp_16; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_cbEntityUid = $_result.b5o('cbEntityUid'); var tmp_17; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_cbLct = $_result.b5o('cbLct'); var tmp_18; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_cbSourcedId = $_result.b10('cbSourcedId'); var tmp_19; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_cbMetadata = $_result.b10('cbMetadata'); var tmp_20; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_cbCreatedByAppId = $_result.b10('cbCreatedByAppId'); var tmp_21; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23; var _tmp_CourseBlockPicture_nullCount = 0; var _tmp_cbpUid = $_result.b5o('cbpUid'); var tmp_22; if ($_result.t68()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_cbpLct = $_result.b5o('cbpLct'); var tmp_23; if ($_result.t68()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_cbpPictureUri = $_result.b10('cbpPictureUri'); var tmp_24; if ($_result.t68()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_cbpThumbnailUri = $_result.b10('cbpThumbnailUri'); var tmp_25; if ($_result.t68()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_CourseBlockPicture_isAllNull = _tmp_CourseBlockPicture_nullCount === 4; // Inline function 'kotlin.apply' call var this_0 = new CourseBlockAndPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByUidWithPictureAsFlow.....' call if (!_tmp_CourseBlock_isAllNull) { var tmp_26 = this_0; // Inline function 'kotlin.apply' call var this_1 = new CourseBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByUidWithPictureAsFlow......' call this_1.r7y_1 = _tmp_cbUid; this_1.s7y_1 = _tmp_cbType; this_1.t7y_1 = _tmp_cbIndentLevel; this_1.u7y_1 = _tmp_cbModuleParentBlockUid; this_1.v7y_1 = _tmp_cbTitle; this_1.w7y_1 = _tmp_cbDescription; this_1.x7y_1 = _tmp_cbCompletionCriteria; this_1.y7y_1 = _tmp_cbHideUntilDate; this_1.z7y_1 = _tmp_cbDeadlineDate; this_1.a7z_1 = _tmp_cbLateSubmissionPenalty; this_1.b7z_1 = _tmp_cbGracePeriodDate; this_1.c7z_1 = _tmp_cbMaxPoints; this_1.d7z_1 = _tmp_cbMinPoints; this_1.e7z_1 = _tmp_cbIndex; this_1.f7z_1 = _tmp_cbClazzUid; this_1.g7z_1 = _tmp_cbClazzSourcedId; this_1.h7z_1 = _tmp_cbActive; this_1.i7z_1 = _tmp_cbHidden; this_1.j7z_1 = _tmp_cbEntityUid; this_1.k7z_1 = _tmp_cbLct; this_1.l7z_1 = _tmp_cbSourcedId; this_1.m7z_1 = _tmp_cbMetadata; this_1.n7z_1 = _tmp_cbCreatedByAppId; tmp_26.jca_1 = this_1; } if (!_tmp_CourseBlockPicture_isAllNull) { var tmp_27 = this_0; // Inline function 'kotlin.apply' call var this_2 = new CourseBlockPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByUidWithPictureAsFlow......' call this_2.u7z_1 = _tmp_cbpUid; this_2.v7z_1 = _tmp_cbpLct; this_2.w7z_1 = _tmp_cbpPictureUri; this_2.x7z_1 = _tmp_cbpThumbnailUri; tmp_27.kca_1 = this_2; } return this_0; }; } function CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda($uid, resultContinuation) { this.tca_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).vca = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).le = function (p1, $completion) { return this.vca((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.uca_1.x5i(1, this.tca_1); this.uca_1.x5i(2, this.tca_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.uca_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda(this.tca_1, completion); i.uca_1 = _stmt; return i; }; function CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda_0($uid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.vca(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda$lambda(_result) { return mapRows(_result, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_assignmentCourseGroupSetName = $_result.b10('assignmentCourseGroupSetName'); var _tmp_CourseBlock_nullCount = 0; var _tmp_cbUid = $_result.b5o('cbUid'); var tmp; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_cbType = $_result.a5o('cbType'); var tmp_0; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_cbIndentLevel = $_result.a5o('cbIndentLevel'); var tmp_1; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_cbModuleParentBlockUid = $_result.b5o('cbModuleParentBlockUid'); var tmp_2; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_cbTitle = $_result.b10('cbTitle'); var tmp_3; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_cbDescription = $_result.b10('cbDescription'); var tmp_4; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_cbCompletionCriteria = $_result.a5o('cbCompletionCriteria'); var tmp_5; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_cbHideUntilDate = $_result.b5o('cbHideUntilDate'); var tmp_6; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_cbDeadlineDate = $_result.b5o('cbDeadlineDate'); var tmp_7; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_cbLateSubmissionPenalty = $_result.a5o('cbLateSubmissionPenalty'); var tmp_8; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_cbGracePeriodDate = $_result.b5o('cbGracePeriodDate'); var tmp_9; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints'); var tmp_10; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints'); var tmp_11; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_cbIndex = $_result.a5o('cbIndex'); var tmp_12; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_cbClazzUid = $_result.b5o('cbClazzUid'); var tmp_13; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_cbClazzSourcedId = $_result.b10('cbClazzSourcedId'); var tmp_14; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_cbActive = $_result.m67('cbActive'); var tmp_15; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_cbHidden = $_result.m67('cbHidden'); var tmp_16; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_cbEntityUid = $_result.b5o('cbEntityUid'); var tmp_17; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_cbLct = $_result.b5o('cbLct'); var tmp_18; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_cbSourcedId = $_result.b10('cbSourcedId'); var tmp_19; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_cbMetadata = $_result.b10('cbMetadata'); var tmp_20; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_cbCreatedByAppId = $_result.b10('cbCreatedByAppId'); var tmp_21; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23; var _tmp_CourseBlockPicture_nullCount = 0; var _tmp_cbpUid = $_result.b5o('cbpUid'); var tmp_22; if ($_result.t68()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_cbpLct = $_result.b5o('cbpLct'); var tmp_23; if ($_result.t68()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_cbpPictureUri = $_result.b10('cbpPictureUri'); var tmp_24; if ($_result.t68()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_cbpThumbnailUri = $_result.b10('cbpThumbnailUri'); var tmp_25; if ($_result.t68()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_CourseBlockPicture_isAllNull = _tmp_CourseBlockPicture_nullCount === 4; var _tmp_ContentEntry_nullCount = 0; var _tmp_contentEntryUid = $_result.b5o('contentEntryUid'); var tmp_26; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_title = $_result.b10('title'); var tmp_27; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_description = $_result.b10('description'); var tmp_28; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_entryId = $_result.b10('entryId'); var tmp_29; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_author = $_result.b10('author'); var tmp_30; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_30 = Unit_instance; } var _tmp_publisher = $_result.b10('publisher'); var tmp_31; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_31 = Unit_instance; } var _tmp_licenseType = $_result.a5o('licenseType'); var tmp_32; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_32 = Unit_instance; } var _tmp_licenseName = $_result.b10('licenseName'); var tmp_33; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_33 = Unit_instance; } var _tmp_licenseUrl = $_result.b10('licenseUrl'); var tmp_34; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_34 = Unit_instance; } var _tmp_sourceUrl = $_result.b10('sourceUrl'); var tmp_35; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_35 = Unit_instance; } var _tmp_thumbnailUrl = $_result.b10('thumbnailUrl'); var tmp_36; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_36 = Unit_instance; } var _tmp_lastModified = $_result.b5o('lastModified'); var tmp_37; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_37 = Unit_instance; } var _tmp_primaryLanguageUid = $_result.b5o('primaryLanguageUid'); var tmp_38; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_38 = Unit_instance; } var _tmp_languageVariantUid = $_result.b5o('languageVariantUid'); var tmp_39; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_39 = Unit_instance; } var _tmp_contentFlags = $_result.a5o('contentFlags'); var tmp_40; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_40 = Unit_instance; } var _tmp_leaf = $_result.m67('leaf'); var tmp_41; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_41 = Unit_instance; } var _tmp_publik = $_result.m67('publik'); var tmp_42; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_42 = Unit_instance; } var _tmp_ceInactive = $_result.m67('ceInactive'); var tmp_43; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_43 = Unit_instance; } var _tmp_completionCriteria = $_result.a5o('completionCriteria'); var tmp_44; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_44 = Unit_instance; } var _tmp_minScore = $_result.a5o('minScore'); var tmp_45; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_45 = Unit_instance; } var _tmp_contentTypeFlag = $_result.a5o('contentTypeFlag'); var tmp_46; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_46 = Unit_instance; } var _tmp_contentOwner = $_result.b5o('contentOwner'); var tmp_47; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_47 = Unit_instance; } var _tmp_contentOwnerType = $_result.a5o('contentOwnerType'); var tmp_48; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_48 = Unit_instance; } var _tmp_contentEntryLocalChangeSeqNum = $_result.b5o('contentEntryLocalChangeSeqNum'); var tmp_49; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_49 = Unit_instance; } var _tmp_contentEntryMasterChangeSeqNum = $_result.b5o('contentEntryMasterChangeSeqNum'); var tmp_50; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_50 = Unit_instance; } var _tmp_contentEntryLastChangedBy = $_result.a5o('contentEntryLastChangedBy'); var tmp_51; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_51 = Unit_instance; } var _tmp_contentEntryLct = $_result.b5o('contentEntryLct'); var tmp_52; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_52 = Unit_instance; } var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27; var _tmp_Language_nullCount = 0; var _tmp_langUid = $_result.b5o('langUid'); var tmp_53; if ($_result.t68()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_53 = Unit_instance; } var _tmp_name = $_result.b10('name'); var tmp_54; if ($_result.t68()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_54 = Unit_instance; } var _tmp_iso_639_1_standard = $_result.b10('iso_639_1_standard'); var tmp_55; if ($_result.t68()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_55 = Unit_instance; } var _tmp_iso_639_2_standard = $_result.b10('iso_639_2_standard'); var tmp_56; if ($_result.t68()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_56 = Unit_instance; } var _tmp_iso_639_3_standard = $_result.b10('iso_639_3_standard'); var tmp_57; if ($_result.t68()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_57 = Unit_instance; } var _tmp_Language_Type = $_result.b10('Language_Type'); var tmp_58; if ($_result.t68()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_58 = Unit_instance; } var _tmp_languageActive = $_result.m67('languageActive'); var tmp_59; if ($_result.t68()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_59 = Unit_instance; } var _tmp_langLocalChangeSeqNum = $_result.b5o('langLocalChangeSeqNum'); var tmp_60; if ($_result.t68()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_60 = Unit_instance; } var _tmp_langMasterChangeSeqNum = $_result.b5o('langMasterChangeSeqNum'); var tmp_61; if ($_result.t68()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_61 = Unit_instance; } var _tmp_langLastChangedBy = $_result.a5o('langLastChangedBy'); var tmp_62; if ($_result.t68()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_62 = Unit_instance; } var _tmp_langLct = $_result.b5o('langLct'); var tmp_63; if ($_result.t68()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_63 = Unit_instance; } var _tmp_Language_isAllNull = _tmp_Language_nullCount === 11; var _tmp_ClazzAssignment_nullCount = 0; var _tmp_caUid = $_result.b5o('caUid'); var tmp_64; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_64 = Unit_instance; } var _tmp_caTitle = $_result.b10('caTitle'); var tmp_65; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_65 = Unit_instance; } var _tmp_caDescription = $_result.b10('caDescription'); var tmp_66; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_66 = Unit_instance; } var _tmp_caGroupUid = $_result.b5o('caGroupUid'); var tmp_67; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_67 = Unit_instance; } var _tmp_caActive = $_result.m67('caActive'); var tmp_68; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_68 = Unit_instance; } var _tmp_caClassCommentEnabled = $_result.m67('caClassCommentEnabled'); var tmp_69; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_69 = Unit_instance; } var _tmp_caPrivateCommentsEnabled = $_result.m67('caPrivateCommentsEnabled'); var tmp_70; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_70 = Unit_instance; } var _tmp_caCompletionCriteria = $_result.a5o('caCompletionCriteria'); var tmp_71; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_71 = Unit_instance; } var _tmp_caRequireFileSubmission = $_result.m67('caRequireFileSubmission'); var tmp_72; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_72 = Unit_instance; } var _tmp_caFileType = $_result.a5o('caFileType'); var tmp_73; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_73 = Unit_instance; } var _tmp_caSizeLimit = $_result.a5o('caSizeLimit'); var tmp_74; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_74 = Unit_instance; } var _tmp_caNumberOfFiles = $_result.a5o('caNumberOfFiles'); var tmp_75; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_75 = Unit_instance; } var _tmp_caSubmissionPolicy = $_result.a5o('caSubmissionPolicy'); var tmp_76; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_76 = Unit_instance; } var _tmp_caMarkingType = $_result.a5o('caMarkingType'); var tmp_77; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_77 = Unit_instance; } var _tmp_caRequireTextSubmission = $_result.m67('caRequireTextSubmission'); var tmp_78; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_78 = Unit_instance; } var _tmp_caTextLimitType = $_result.a5o('caTextLimitType'); var tmp_79; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_79 = Unit_instance; } var _tmp_caTextLimit = $_result.a5o('caTextLimit'); var tmp_80; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_80 = Unit_instance; } var _tmp_caXObjectUid = $_result.b5o('caXObjectUid'); var tmp_81; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_81 = Unit_instance; } var _tmp_caClazzUid = $_result.b5o('caClazzUid'); var tmp_82; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_82 = Unit_instance; } var _tmp_caPeerReviewerCount = $_result.a5o('caPeerReviewerCount'); var tmp_83; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_83 = Unit_instance; } var _tmp_caLocalChangeSeqNum = $_result.b5o('caLocalChangeSeqNum'); var tmp_84; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_84 = Unit_instance; } var _tmp_caMasterChangeSeqNum = $_result.b5o('caMasterChangeSeqNum'); var tmp_85; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_85 = Unit_instance; } var _tmp_caLastChangedBy = $_result.a5o('caLastChangedBy'); var tmp_86; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_86 = Unit_instance; } var _tmp_caLct = $_result.b5o('caLct'); var tmp_87; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_87 = Unit_instance; } var _tmp_ClazzAssignment_isAllNull = _tmp_ClazzAssignment_nullCount === 24; // Inline function 'kotlin.apply' call var this_0 = new CourseBlockAndDbEntities(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsync....' call this_0.bcb_1 = _tmp_assignmentCourseGroupSetName; if (!_tmp_CourseBlock_isAllNull) { var tmp_88 = this_0; // Inline function 'kotlin.apply' call var this_1 = new CourseBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsync.....' call this_1.r7y_1 = _tmp_cbUid; this_1.s7y_1 = _tmp_cbType; this_1.t7y_1 = _tmp_cbIndentLevel; this_1.u7y_1 = _tmp_cbModuleParentBlockUid; this_1.v7y_1 = _tmp_cbTitle; this_1.w7y_1 = _tmp_cbDescription; this_1.x7y_1 = _tmp_cbCompletionCriteria; this_1.y7y_1 = _tmp_cbHideUntilDate; this_1.z7y_1 = _tmp_cbDeadlineDate; this_1.a7z_1 = _tmp_cbLateSubmissionPenalty; this_1.b7z_1 = _tmp_cbGracePeriodDate; this_1.c7z_1 = _tmp_cbMaxPoints; this_1.d7z_1 = _tmp_cbMinPoints; this_1.e7z_1 = _tmp_cbIndex; this_1.f7z_1 = _tmp_cbClazzUid; this_1.g7z_1 = _tmp_cbClazzSourcedId; this_1.h7z_1 = _tmp_cbActive; this_1.i7z_1 = _tmp_cbHidden; this_1.j7z_1 = _tmp_cbEntityUid; this_1.k7z_1 = _tmp_cbLct; this_1.l7z_1 = _tmp_cbSourcedId; this_1.m7z_1 = _tmp_cbMetadata; this_1.n7z_1 = _tmp_cbCreatedByAppId; tmp_88.wca_1 = this_1; } if (!_tmp_CourseBlockPicture_isAllNull) { var tmp_89 = this_0; // Inline function 'kotlin.apply' call var this_2 = new CourseBlockPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsync.....' call this_2.u7z_1 = _tmp_cbpUid; this_2.v7z_1 = _tmp_cbpLct; this_2.w7z_1 = _tmp_cbpPictureUri; this_2.x7z_1 = _tmp_cbpThumbnailUri; tmp_89.xca_1 = this_2; } if (!_tmp_ContentEntry_isAllNull) { var tmp_90 = this_0; // Inline function 'kotlin.apply' call var this_3 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsync.....' call this_3.baj_1 = _tmp_contentEntryUid; this_3.caj_1 = _tmp_title; this_3.daj_1 = _tmp_description; this_3.eaj_1 = _tmp_entryId; this_3.faj_1 = _tmp_author; this_3.gaj_1 = _tmp_publisher; this_3.haj_1 = _tmp_licenseType; this_3.iaj_1 = _tmp_licenseName; this_3.jaj_1 = _tmp_licenseUrl; this_3.kaj_1 = _tmp_sourceUrl; this_3.laj_1 = _tmp_thumbnailUrl; this_3.maj_1 = _tmp_lastModified; this_3.naj_1 = _tmp_primaryLanguageUid; this_3.oaj_1 = _tmp_languageVariantUid; this_3.paj_1 = _tmp_contentFlags; this_3.qaj_1 = _tmp_leaf; this_3.raj_1 = _tmp_publik; this_3.saj_1 = _tmp_ceInactive; this_3.taj_1 = _tmp_completionCriteria; this_3.uaj_1 = _tmp_minScore; this_3.vaj_1 = _tmp_contentTypeFlag; this_3.waj_1 = _tmp_contentOwner; this_3.xaj_1 = _tmp_contentOwnerType; this_3.yaj_1 = _tmp_contentEntryLocalChangeSeqNum; this_3.zaj_1 = _tmp_contentEntryMasterChangeSeqNum; this_3.aak_1 = _tmp_contentEntryLastChangedBy; this_3.bak_1 = _tmp_contentEntryLct; tmp_90.yca_1 = this_3; } if (!_tmp_Language_isAllNull) { var tmp_91 = this_0; // Inline function 'kotlin.apply' call var this_4 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsync.....' call this_4.ccb_1 = _tmp_langUid; this_4.dcb_1 = _tmp_name; this_4.ecb_1 = _tmp_iso_639_1_standard; this_4.fcb_1 = _tmp_iso_639_2_standard; this_4.gcb_1 = _tmp_iso_639_3_standard; this_4.hcb_1 = _tmp_Language_Type; this_4.icb_1 = _tmp_languageActive; this_4.jcb_1 = _tmp_langLocalChangeSeqNum; this_4.kcb_1 = _tmp_langMasterChangeSeqNum; this_4.lcb_1 = _tmp_langLastChangedBy; this_4.mcb_1 = _tmp_langLct; tmp_91.zca_1 = this_4; } if (!_tmp_ClazzAssignment_isAllNull) { var tmp_92 = this_0; // Inline function 'kotlin.apply' call var this_5 = new ClazzAssignment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsync.....' call this_5.l7u_1 = _tmp_caUid; this_5.m7u_1 = _tmp_caTitle; this_5.n7u_1 = _tmp_caDescription; this_5.o7u_1 = _tmp_caGroupUid; this_5.p7u_1 = _tmp_caActive; this_5.q7u_1 = _tmp_caClassCommentEnabled; this_5.r7u_1 = _tmp_caPrivateCommentsEnabled; this_5.s7u_1 = _tmp_caCompletionCriteria; this_5.t7u_1 = _tmp_caRequireFileSubmission; this_5.u7u_1 = _tmp_caFileType; this_5.v7u_1 = _tmp_caSizeLimit; this_5.w7u_1 = _tmp_caNumberOfFiles; this_5.x7u_1 = _tmp_caSubmissionPolicy; this_5.y7u_1 = _tmp_caMarkingType; this_5.z7u_1 = _tmp_caRequireTextSubmission; this_5.a7v_1 = _tmp_caTextLimitType; this_5.b7v_1 = _tmp_caTextLimit; this_5.c7v_1 = _tmp_caXObjectUid; this_5.d7v_1 = _tmp_caClazzUid; this_5.e7v_1 = _tmp_caPeerReviewerCount; this_5.f7v_1 = _tmp_caLocalChangeSeqNum; this_5.g7v_1 = _tmp_caMasterChangeSeqNum; this_5.h7v_1 = _tmp_caLastChangedBy; this_5.i7v_1 = _tmp_caLct; tmp_92.acb_1 = this_5; } return this_0; }; } function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda$lambda(_result) { return mapRows(_result, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_CourseBlock_nullCount = 0; var _tmp_cbUid = $_result.b5o('cbUid'); var tmp; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_cbType = $_result.a5o('cbType'); var tmp_0; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_cbIndentLevel = $_result.a5o('cbIndentLevel'); var tmp_1; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_cbModuleParentBlockUid = $_result.b5o('cbModuleParentBlockUid'); var tmp_2; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_cbTitle = $_result.b10('cbTitle'); var tmp_3; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_cbDescription = $_result.b10('cbDescription'); var tmp_4; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_cbCompletionCriteria = $_result.a5o('cbCompletionCriteria'); var tmp_5; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_cbHideUntilDate = $_result.b5o('cbHideUntilDate'); var tmp_6; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_cbDeadlineDate = $_result.b5o('cbDeadlineDate'); var tmp_7; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_cbLateSubmissionPenalty = $_result.a5o('cbLateSubmissionPenalty'); var tmp_8; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_cbGracePeriodDate = $_result.b5o('cbGracePeriodDate'); var tmp_9; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints'); var tmp_10; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints'); var tmp_11; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_cbIndex = $_result.a5o('cbIndex'); var tmp_12; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_cbClazzUid = $_result.b5o('cbClazzUid'); var tmp_13; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_cbClazzSourcedId = $_result.b10('cbClazzSourcedId'); var tmp_14; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_cbActive = $_result.m67('cbActive'); var tmp_15; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_cbHidden = $_result.m67('cbHidden'); var tmp_16; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_cbEntityUid = $_result.b5o('cbEntityUid'); var tmp_17; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_cbLct = $_result.b5o('cbLct'); var tmp_18; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_cbSourcedId = $_result.b10('cbSourcedId'); var tmp_19; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_cbMetadata = $_result.b10('cbMetadata'); var tmp_20; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_cbCreatedByAppId = $_result.b10('cbCreatedByAppId'); var tmp_21; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23; var _tmp_CourseBlockPicture_nullCount = 0; var _tmp_cbpUid = $_result.b5o('cbpUid'); var tmp_22; if ($_result.t68()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_cbpLct = $_result.b5o('cbpLct'); var tmp_23; if ($_result.t68()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_cbpPictureUri = $_result.b10('cbpPictureUri'); var tmp_24; if ($_result.t68()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_cbpThumbnailUri = $_result.b10('cbpThumbnailUri'); var tmp_25; if ($_result.t68()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_CourseBlockPicture_isAllNull = _tmp_CourseBlockPicture_nullCount === 4; var _tmp_ContentEntry_nullCount = 0; var _tmp_contentEntryUid = $_result.b5o('contentEntryUid'); var tmp_26; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_title = $_result.b10('title'); var tmp_27; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_description = $_result.b10('description'); var tmp_28; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_entryId = $_result.b10('entryId'); var tmp_29; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_author = $_result.b10('author'); var tmp_30; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_30 = Unit_instance; } var _tmp_publisher = $_result.b10('publisher'); var tmp_31; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_31 = Unit_instance; } var _tmp_licenseType = $_result.a5o('licenseType'); var tmp_32; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_32 = Unit_instance; } var _tmp_licenseName = $_result.b10('licenseName'); var tmp_33; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_33 = Unit_instance; } var _tmp_licenseUrl = $_result.b10('licenseUrl'); var tmp_34; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_34 = Unit_instance; } var _tmp_sourceUrl = $_result.b10('sourceUrl'); var tmp_35; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_35 = Unit_instance; } var _tmp_thumbnailUrl = $_result.b10('thumbnailUrl'); var tmp_36; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_36 = Unit_instance; } var _tmp_lastModified = $_result.b5o('lastModified'); var tmp_37; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_37 = Unit_instance; } var _tmp_primaryLanguageUid = $_result.b5o('primaryLanguageUid'); var tmp_38; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_38 = Unit_instance; } var _tmp_languageVariantUid = $_result.b5o('languageVariantUid'); var tmp_39; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_39 = Unit_instance; } var _tmp_contentFlags = $_result.a5o('contentFlags'); var tmp_40; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_40 = Unit_instance; } var _tmp_leaf = $_result.m67('leaf'); var tmp_41; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_41 = Unit_instance; } var _tmp_publik = $_result.m67('publik'); var tmp_42; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_42 = Unit_instance; } var _tmp_ceInactive = $_result.m67('ceInactive'); var tmp_43; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_43 = Unit_instance; } var _tmp_completionCriteria = $_result.a5o('completionCriteria'); var tmp_44; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_44 = Unit_instance; } var _tmp_minScore = $_result.a5o('minScore'); var tmp_45; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_45 = Unit_instance; } var _tmp_contentTypeFlag = $_result.a5o('contentTypeFlag'); var tmp_46; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_46 = Unit_instance; } var _tmp_contentOwner = $_result.b5o('contentOwner'); var tmp_47; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_47 = Unit_instance; } var _tmp_contentOwnerType = $_result.a5o('contentOwnerType'); var tmp_48; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_48 = Unit_instance; } var _tmp_contentEntryLocalChangeSeqNum = $_result.b5o('contentEntryLocalChangeSeqNum'); var tmp_49; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_49 = Unit_instance; } var _tmp_contentEntryMasterChangeSeqNum = $_result.b5o('contentEntryMasterChangeSeqNum'); var tmp_50; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_50 = Unit_instance; } var _tmp_contentEntryLastChangedBy = $_result.a5o('contentEntryLastChangedBy'); var tmp_51; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_51 = Unit_instance; } var _tmp_contentEntryLct = $_result.b5o('contentEntryLct'); var tmp_52; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_52 = Unit_instance; } var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27; var _tmp_ContentEntryPicture2_nullCount = 0; var _tmp_cepUid = $_result.b5o('cepUid'); var tmp_53; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_53 = Unit_instance; } var _tmp_cepLct = $_result.b5o('cepLct'); var tmp_54; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_54 = Unit_instance; } var _tmp_cepPictureUri = $_result.b10('cepPictureUri'); var tmp_55; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_55 = Unit_instance; } var _tmp_cepThumbnailUri = $_result.b10('cepThumbnailUri'); var tmp_56; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_56 = Unit_instance; } var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4; // Inline function 'kotlin.apply' call var this_0 = new CourseBlockAndDisplayDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsFlow.....' call if (!_tmp_CourseBlock_isAllNull) { var tmp_57 = this_0; // Inline function 'kotlin.apply' call var this_1 = new CourseBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsFlow......' call this_1.r7y_1 = _tmp_cbUid; this_1.s7y_1 = _tmp_cbType; this_1.t7y_1 = _tmp_cbIndentLevel; this_1.u7y_1 = _tmp_cbModuleParentBlockUid; this_1.v7y_1 = _tmp_cbTitle; this_1.w7y_1 = _tmp_cbDescription; this_1.x7y_1 = _tmp_cbCompletionCriteria; this_1.y7y_1 = _tmp_cbHideUntilDate; this_1.z7y_1 = _tmp_cbDeadlineDate; this_1.a7z_1 = _tmp_cbLateSubmissionPenalty; this_1.b7z_1 = _tmp_cbGracePeriodDate; this_1.c7z_1 = _tmp_cbMaxPoints; this_1.d7z_1 = _tmp_cbMinPoints; this_1.e7z_1 = _tmp_cbIndex; this_1.f7z_1 = _tmp_cbClazzUid; this_1.g7z_1 = _tmp_cbClazzSourcedId; this_1.h7z_1 = _tmp_cbActive; this_1.i7z_1 = _tmp_cbHidden; this_1.j7z_1 = _tmp_cbEntityUid; this_1.k7z_1 = _tmp_cbLct; this_1.l7z_1 = _tmp_cbSourcedId; this_1.m7z_1 = _tmp_cbMetadata; this_1.n7z_1 = _tmp_cbCreatedByAppId; tmp_57.ncb_1 = this_1; } if (!_tmp_CourseBlockPicture_isAllNull) { var tmp_58 = this_0; // Inline function 'kotlin.apply' call var this_2 = new CourseBlockPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsFlow......' call this_2.u7z_1 = _tmp_cbpUid; this_2.v7z_1 = _tmp_cbpLct; this_2.w7z_1 = _tmp_cbpPictureUri; this_2.x7z_1 = _tmp_cbpThumbnailUri; tmp_58.ocb_1 = this_2; } if (!_tmp_ContentEntry_isAllNull) { var tmp_59 = this_0; // Inline function 'kotlin.apply' call var this_3 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsFlow......' call this_3.baj_1 = _tmp_contentEntryUid; this_3.caj_1 = _tmp_title; this_3.daj_1 = _tmp_description; this_3.eaj_1 = _tmp_entryId; this_3.faj_1 = _tmp_author; this_3.gaj_1 = _tmp_publisher; this_3.haj_1 = _tmp_licenseType; this_3.iaj_1 = _tmp_licenseName; this_3.jaj_1 = _tmp_licenseUrl; this_3.kaj_1 = _tmp_sourceUrl; this_3.laj_1 = _tmp_thumbnailUrl; this_3.maj_1 = _tmp_lastModified; this_3.naj_1 = _tmp_primaryLanguageUid; this_3.oaj_1 = _tmp_languageVariantUid; this_3.paj_1 = _tmp_contentFlags; this_3.qaj_1 = _tmp_leaf; this_3.raj_1 = _tmp_publik; this_3.saj_1 = _tmp_ceInactive; this_3.taj_1 = _tmp_completionCriteria; this_3.uaj_1 = _tmp_minScore; this_3.vaj_1 = _tmp_contentTypeFlag; this_3.waj_1 = _tmp_contentOwner; this_3.xaj_1 = _tmp_contentOwnerType; this_3.yaj_1 = _tmp_contentEntryLocalChangeSeqNum; this_3.zaj_1 = _tmp_contentEntryMasterChangeSeqNum; this_3.aak_1 = _tmp_contentEntryLastChangedBy; this_3.bak_1 = _tmp_contentEntryLct; tmp_59.pcb_1 = this_3; } if (!_tmp_ContentEntryPicture2_isAllNull) { var tmp_60 = this_0; // Inline function 'kotlin.apply' call var this_4 = new ContentEntryPicture2(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsFlow......' call this_4.rak_1 = _tmp_cepUid; this_4.sak_1 = _tmp_cepLct; this_4.tak_1 = _tmp_cepPictureUri; this_4.uak_1 = _tmp_cepThumbnailUri; tmp_60.qcb_1 = this_4; } return this_0; }; } function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda($clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) { this.zcb_1 = $clazzUid; this.acc_1 = $includeInactive; this.bcc_1 = $includeHidden; this.ccc_1 = $hideUntilFilterTime; this.dcc_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda).fcc = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda).le = function (p1, $completion) { return this.fcc((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ecc_1.x5i(1, this.zcb_1); this.ecc_1.k5i(2, this.acc_1); this.ecc_1.k5i(3, this.bcc_1); this.ecc_1.x5i(4, this.ccc_1); this.ecc_1.x5i(5, this.ccc_1); this.ecc_1.x5i(6, this.dcc_1); this.ecc_1.x5i(7, this.dcc_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.ecc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda(this.zcb_1, this.acc_1, this.bcc_1, this.ccc_1, this.dcc_1, completion); i.ecc_1 = _stmt; return i; }; function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda_0($clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda($clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.fcc(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda$lambda(_result) { return mapNextRow(_result, null, CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzUid = $_result.b5o('clazzUid'); var _tmp_courseBlockUid = $_result.b5o('courseBlockUid'); // Inline function 'kotlin.apply' call var this_0 = new CourseBlockUidAndClazzUid(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findCourseBlockAndClazzUidByDiscussionPostUid....' call this_0.gcc_1 = _tmp_clazzUid; this_0.hcc_1 = _tmp_courseBlockUid; return this_0; }; } function CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda$lambda(_result) { var tmp = new Long(0, 0); return mapNextRow(_result, tmp, CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda$lambda$lambda($_result) { return function (it) { return $_result.b5g(1); }; } function CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_CourseBlock_nullCount = 0; var _tmp_cbUid = $_result.b5o('cbUid'); var tmp; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_cbType = $_result.a5o('cbType'); var tmp_0; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_cbIndentLevel = $_result.a5o('cbIndentLevel'); var tmp_1; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_cbModuleParentBlockUid = $_result.b5o('cbModuleParentBlockUid'); var tmp_2; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_cbTitle = $_result.b10('cbTitle'); var tmp_3; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_cbDescription = $_result.b10('cbDescription'); var tmp_4; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_cbCompletionCriteria = $_result.a5o('cbCompletionCriteria'); var tmp_5; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_cbHideUntilDate = $_result.b5o('cbHideUntilDate'); var tmp_6; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_cbDeadlineDate = $_result.b5o('cbDeadlineDate'); var tmp_7; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_cbLateSubmissionPenalty = $_result.a5o('cbLateSubmissionPenalty'); var tmp_8; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_cbGracePeriodDate = $_result.b5o('cbGracePeriodDate'); var tmp_9; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints'); var tmp_10; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints'); var tmp_11; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_cbIndex = $_result.a5o('cbIndex'); var tmp_12; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_cbClazzUid = $_result.b5o('cbClazzUid'); var tmp_13; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_cbClazzSourcedId = $_result.b10('cbClazzSourcedId'); var tmp_14; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_cbActive = $_result.m67('cbActive'); var tmp_15; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_cbHidden = $_result.m67('cbHidden'); var tmp_16; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_cbEntityUid = $_result.b5o('cbEntityUid'); var tmp_17; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_cbLct = $_result.b5o('cbLct'); var tmp_18; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_cbSourcedId = $_result.b10('cbSourcedId'); var tmp_19; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_cbMetadata = $_result.b10('cbMetadata'); var tmp_20; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_cbCreatedByAppId = $_result.b10('cbCreatedByAppId'); var tmp_21; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23; var _tmp_ClazzAssignment_nullCount = 0; var _tmp_caUid = $_result.b5o('caUid'); var tmp_22; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_caTitle = $_result.b10('caTitle'); var tmp_23; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_caDescription = $_result.b10('caDescription'); var tmp_24; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_caGroupUid = $_result.b5o('caGroupUid'); var tmp_25; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_caActive = $_result.m67('caActive'); var tmp_26; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_caClassCommentEnabled = $_result.m67('caClassCommentEnabled'); var tmp_27; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_caPrivateCommentsEnabled = $_result.m67('caPrivateCommentsEnabled'); var tmp_28; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_caCompletionCriteria = $_result.a5o('caCompletionCriteria'); var tmp_29; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_caRequireFileSubmission = $_result.m67('caRequireFileSubmission'); var tmp_30; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_30 = Unit_instance; } var _tmp_caFileType = $_result.a5o('caFileType'); var tmp_31; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_31 = Unit_instance; } var _tmp_caSizeLimit = $_result.a5o('caSizeLimit'); var tmp_32; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_32 = Unit_instance; } var _tmp_caNumberOfFiles = $_result.a5o('caNumberOfFiles'); var tmp_33; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_33 = Unit_instance; } var _tmp_caSubmissionPolicy = $_result.a5o('caSubmissionPolicy'); var tmp_34; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_34 = Unit_instance; } var _tmp_caMarkingType = $_result.a5o('caMarkingType'); var tmp_35; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_35 = Unit_instance; } var _tmp_caRequireTextSubmission = $_result.m67('caRequireTextSubmission'); var tmp_36; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_36 = Unit_instance; } var _tmp_caTextLimitType = $_result.a5o('caTextLimitType'); var tmp_37; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_37 = Unit_instance; } var _tmp_caTextLimit = $_result.a5o('caTextLimit'); var tmp_38; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_38 = Unit_instance; } var _tmp_caXObjectUid = $_result.b5o('caXObjectUid'); var tmp_39; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_39 = Unit_instance; } var _tmp_caClazzUid = $_result.b5o('caClazzUid'); var tmp_40; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_40 = Unit_instance; } var _tmp_caPeerReviewerCount = $_result.a5o('caPeerReviewerCount'); var tmp_41; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_41 = Unit_instance; } var _tmp_caLocalChangeSeqNum = $_result.b5o('caLocalChangeSeqNum'); var tmp_42; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_42 = Unit_instance; } var _tmp_caMasterChangeSeqNum = $_result.b5o('caMasterChangeSeqNum'); var tmp_43; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_43 = Unit_instance; } var _tmp_caLastChangedBy = $_result.a5o('caLastChangedBy'); var tmp_44; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_44 = Unit_instance; } var _tmp_caLct = $_result.b5o('caLct'); var tmp_45; if ($_result.t68()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_45 = Unit_instance; } var _tmp_ClazzAssignment_isAllNull = _tmp_ClazzAssignment_nullCount === 24; // Inline function 'kotlin.apply' call var this_0 = new CourseBlockAndAssignment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findCourseBlockByAssignmentUid.....' call if (!_tmp_CourseBlock_isAllNull) { var tmp_46 = this_0; // Inline function 'kotlin.apply' call var this_1 = new CourseBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findCourseBlockByAssignmentUid......' call this_1.r7y_1 = _tmp_cbUid; this_1.s7y_1 = _tmp_cbType; this_1.t7y_1 = _tmp_cbIndentLevel; this_1.u7y_1 = _tmp_cbModuleParentBlockUid; this_1.v7y_1 = _tmp_cbTitle; this_1.w7y_1 = _tmp_cbDescription; this_1.x7y_1 = _tmp_cbCompletionCriteria; this_1.y7y_1 = _tmp_cbHideUntilDate; this_1.z7y_1 = _tmp_cbDeadlineDate; this_1.a7z_1 = _tmp_cbLateSubmissionPenalty; this_1.b7z_1 = _tmp_cbGracePeriodDate; this_1.c7z_1 = _tmp_cbMaxPoints; this_1.d7z_1 = _tmp_cbMinPoints; this_1.e7z_1 = _tmp_cbIndex; this_1.f7z_1 = _tmp_cbClazzUid; this_1.g7z_1 = _tmp_cbClazzSourcedId; this_1.h7z_1 = _tmp_cbActive; this_1.i7z_1 = _tmp_cbHidden; this_1.j7z_1 = _tmp_cbEntityUid; this_1.k7z_1 = _tmp_cbLct; this_1.l7z_1 = _tmp_cbSourcedId; this_1.m7z_1 = _tmp_cbMetadata; this_1.n7z_1 = _tmp_cbCreatedByAppId; tmp_46.icc_1 = this_1; } if (!_tmp_ClazzAssignment_isAllNull) { var tmp_47 = this_0; // Inline function 'kotlin.apply' call var this_2 = new ClazzAssignment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findCourseBlockByAssignmentUid......' call this_2.l7u_1 = _tmp_caUid; this_2.m7u_1 = _tmp_caTitle; this_2.n7u_1 = _tmp_caDescription; this_2.o7u_1 = _tmp_caGroupUid; this_2.p7u_1 = _tmp_caActive; this_2.q7u_1 = _tmp_caClassCommentEnabled; this_2.r7u_1 = _tmp_caPrivateCommentsEnabled; this_2.s7u_1 = _tmp_caCompletionCriteria; this_2.t7u_1 = _tmp_caRequireFileSubmission; this_2.u7u_1 = _tmp_caFileType; this_2.v7u_1 = _tmp_caSizeLimit; this_2.w7u_1 = _tmp_caNumberOfFiles; this_2.x7u_1 = _tmp_caSubmissionPolicy; this_2.y7u_1 = _tmp_caMarkingType; this_2.z7u_1 = _tmp_caRequireTextSubmission; this_2.a7v_1 = _tmp_caTextLimitType; this_2.b7v_1 = _tmp_caTextLimit; this_2.c7v_1 = _tmp_caXObjectUid; this_2.d7v_1 = _tmp_caClazzUid; this_2.e7v_1 = _tmp_caPeerReviewerCount; this_2.f7v_1 = _tmp_caLocalChangeSeqNum; this_2.g7v_1 = _tmp_caMasterChangeSeqNum; this_2.h7v_1 = _tmp_caLastChangedBy; this_2.i7v_1 = _tmp_caLct; tmp_47.jcc_1 = this_2; } return this_0; }; } function CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda($assignmentUid, resultContinuation) { this.scc_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda).ucc = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda).le = function (p1, $completion) { return this.ucc((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.tcc_1.x5i(1, this.scc_1); this.tcc_1.x5i(2, this.scc_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.tcc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda).o5g = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda(this.scc_1, completion); i.tcc_1 = _stmt; return i; }; function CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda_0($assignmentUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda($assignmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.ucc(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda$lambda(_result) { return mapRows(_result, CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_CourseBlock_nullCount = 0; var _tmp_cbUid = $_result.b5o('cbUid'); var tmp; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_cbType = $_result.a5o('cbType'); var tmp_0; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_cbIndentLevel = $_result.a5o('cbIndentLevel'); var tmp_1; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_cbModuleParentBlockUid = $_result.b5o('cbModuleParentBlockUid'); var tmp_2; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_cbTitle = $_result.b10('cbTitle'); var tmp_3; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_cbDescription = $_result.b10('cbDescription'); var tmp_4; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_cbCompletionCriteria = $_result.a5o('cbCompletionCriteria'); var tmp_5; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_cbHideUntilDate = $_result.b5o('cbHideUntilDate'); var tmp_6; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_cbDeadlineDate = $_result.b5o('cbDeadlineDate'); var tmp_7; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_cbLateSubmissionPenalty = $_result.a5o('cbLateSubmissionPenalty'); var tmp_8; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_cbGracePeriodDate = $_result.b5o('cbGracePeriodDate'); var tmp_9; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints'); var tmp_10; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints'); var tmp_11; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_cbIndex = $_result.a5o('cbIndex'); var tmp_12; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_cbClazzUid = $_result.b5o('cbClazzUid'); var tmp_13; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_cbClazzSourcedId = $_result.b10('cbClazzSourcedId'); var tmp_14; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_cbActive = $_result.m67('cbActive'); var tmp_15; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_cbHidden = $_result.m67('cbHidden'); var tmp_16; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_cbEntityUid = $_result.b5o('cbEntityUid'); var tmp_17; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_cbLct = $_result.b5o('cbLct'); var tmp_18; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_cbSourcedId = $_result.b10('cbSourcedId'); var tmp_19; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_cbMetadata = $_result.b10('cbMetadata'); var tmp_20; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_cbCreatedByAppId = $_result.b10('cbCreatedByAppId'); var tmp_21; if ($_result.t68()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23; var _tmp_CourseBlockPicture_nullCount = 0; var _tmp_cbpUid = $_result.b5o('cbpUid'); var tmp_22; if ($_result.t68()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_cbpLct = $_result.b5o('cbpLct'); var tmp_23; if ($_result.t68()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_cbpPictureUri = $_result.b10('cbpPictureUri'); var tmp_24; if ($_result.t68()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_cbpThumbnailUri = $_result.b10('cbpThumbnailUri'); var tmp_25; if ($_result.t68()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_CourseBlockPicture_isAllNull = _tmp_CourseBlockPicture_nullCount === 4; var _tmp_ContentEntry_nullCount = 0; var _tmp_contentEntryUid = $_result.b5o('contentEntryUid'); var tmp_26; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_title = $_result.b10('title'); var tmp_27; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_description = $_result.b10('description'); var tmp_28; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_entryId = $_result.b10('entryId'); var tmp_29; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_author = $_result.b10('author'); var tmp_30; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_30 = Unit_instance; } var _tmp_publisher = $_result.b10('publisher'); var tmp_31; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_31 = Unit_instance; } var _tmp_licenseType = $_result.a5o('licenseType'); var tmp_32; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_32 = Unit_instance; } var _tmp_licenseName = $_result.b10('licenseName'); var tmp_33; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_33 = Unit_instance; } var _tmp_licenseUrl = $_result.b10('licenseUrl'); var tmp_34; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_34 = Unit_instance; } var _tmp_sourceUrl = $_result.b10('sourceUrl'); var tmp_35; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_35 = Unit_instance; } var _tmp_thumbnailUrl = $_result.b10('thumbnailUrl'); var tmp_36; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_36 = Unit_instance; } var _tmp_lastModified = $_result.b5o('lastModified'); var tmp_37; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_37 = Unit_instance; } var _tmp_primaryLanguageUid = $_result.b5o('primaryLanguageUid'); var tmp_38; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_38 = Unit_instance; } var _tmp_languageVariantUid = $_result.b5o('languageVariantUid'); var tmp_39; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_39 = Unit_instance; } var _tmp_contentFlags = $_result.a5o('contentFlags'); var tmp_40; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_40 = Unit_instance; } var _tmp_leaf = $_result.m67('leaf'); var tmp_41; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_41 = Unit_instance; } var _tmp_publik = $_result.m67('publik'); var tmp_42; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_42 = Unit_instance; } var _tmp_ceInactive = $_result.m67('ceInactive'); var tmp_43; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_43 = Unit_instance; } var _tmp_completionCriteria = $_result.a5o('completionCriteria'); var tmp_44; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_44 = Unit_instance; } var _tmp_minScore = $_result.a5o('minScore'); var tmp_45; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_45 = Unit_instance; } var _tmp_contentTypeFlag = $_result.a5o('contentTypeFlag'); var tmp_46; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_46 = Unit_instance; } var _tmp_contentOwner = $_result.b5o('contentOwner'); var tmp_47; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_47 = Unit_instance; } var _tmp_contentOwnerType = $_result.a5o('contentOwnerType'); var tmp_48; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_48 = Unit_instance; } var _tmp_contentEntryLocalChangeSeqNum = $_result.b5o('contentEntryLocalChangeSeqNum'); var tmp_49; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_49 = Unit_instance; } var _tmp_contentEntryMasterChangeSeqNum = $_result.b5o('contentEntryMasterChangeSeqNum'); var tmp_50; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_50 = Unit_instance; } var _tmp_contentEntryLastChangedBy = $_result.a5o('contentEntryLastChangedBy'); var tmp_51; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_51 = Unit_instance; } var _tmp_contentEntryLct = $_result.b5o('contentEntryLct'); var tmp_52; if ($_result.t68()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_52 = Unit_instance; } var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27; var _tmp_ContentEntryPicture2_nullCount = 0; var _tmp_cepUid = $_result.b5o('cepUid'); var tmp_53; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_53 = Unit_instance; } var _tmp_cepLct = $_result.b5o('cepLct'); var tmp_54; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_54 = Unit_instance; } var _tmp_cepPictureUri = $_result.b10('cepPictureUri'); var tmp_55; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_55 = Unit_instance; } var _tmp_cepThumbnailUri = $_result.b10('cepThumbnailUri'); var tmp_56; if ($_result.t68()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_56 = Unit_instance; } var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4; // Inline function 'kotlin.apply' call var this_0 = new CourseBlockAndGradebookDisplayDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByClazzUidAsFlow.....' call if (!_tmp_CourseBlock_isAllNull) { var tmp_57 = this_0; // Inline function 'kotlin.apply' call var this_1 = new CourseBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByClazzUidAsFlow......' call this_1.r7y_1 = _tmp_cbUid; this_1.s7y_1 = _tmp_cbType; this_1.t7y_1 = _tmp_cbIndentLevel; this_1.u7y_1 = _tmp_cbModuleParentBlockUid; this_1.v7y_1 = _tmp_cbTitle; this_1.w7y_1 = _tmp_cbDescription; this_1.x7y_1 = _tmp_cbCompletionCriteria; this_1.y7y_1 = _tmp_cbHideUntilDate; this_1.z7y_1 = _tmp_cbDeadlineDate; this_1.a7z_1 = _tmp_cbLateSubmissionPenalty; this_1.b7z_1 = _tmp_cbGracePeriodDate; this_1.c7z_1 = _tmp_cbMaxPoints; this_1.d7z_1 = _tmp_cbMinPoints; this_1.e7z_1 = _tmp_cbIndex; this_1.f7z_1 = _tmp_cbClazzUid; this_1.g7z_1 = _tmp_cbClazzSourcedId; this_1.h7z_1 = _tmp_cbActive; this_1.i7z_1 = _tmp_cbHidden; this_1.j7z_1 = _tmp_cbEntityUid; this_1.k7z_1 = _tmp_cbLct; this_1.l7z_1 = _tmp_cbSourcedId; this_1.m7z_1 = _tmp_cbMetadata; this_1.n7z_1 = _tmp_cbCreatedByAppId; tmp_57.vcc_1 = this_1; } if (!_tmp_CourseBlockPicture_isAllNull) { var tmp_58 = this_0; // Inline function 'kotlin.apply' call var this_2 = new CourseBlockPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByClazzUidAsFlow......' call this_2.u7z_1 = _tmp_cbpUid; this_2.v7z_1 = _tmp_cbpLct; this_2.w7z_1 = _tmp_cbpPictureUri; this_2.x7z_1 = _tmp_cbpThumbnailUri; tmp_58.wcc_1 = this_2; } if (!_tmp_ContentEntry_isAllNull) { var tmp_59 = this_0; // Inline function 'kotlin.apply' call var this_3 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByClazzUidAsFlow......' call this_3.baj_1 = _tmp_contentEntryUid; this_3.caj_1 = _tmp_title; this_3.daj_1 = _tmp_description; this_3.eaj_1 = _tmp_entryId; this_3.faj_1 = _tmp_author; this_3.gaj_1 = _tmp_publisher; this_3.haj_1 = _tmp_licenseType; this_3.iaj_1 = _tmp_licenseName; this_3.jaj_1 = _tmp_licenseUrl; this_3.kaj_1 = _tmp_sourceUrl; this_3.laj_1 = _tmp_thumbnailUrl; this_3.maj_1 = _tmp_lastModified; this_3.naj_1 = _tmp_primaryLanguageUid; this_3.oaj_1 = _tmp_languageVariantUid; this_3.paj_1 = _tmp_contentFlags; this_3.qaj_1 = _tmp_leaf; this_3.raj_1 = _tmp_publik; this_3.saj_1 = _tmp_ceInactive; this_3.taj_1 = _tmp_completionCriteria; this_3.uaj_1 = _tmp_minScore; this_3.vaj_1 = _tmp_contentTypeFlag; this_3.waj_1 = _tmp_contentOwner; this_3.xaj_1 = _tmp_contentOwnerType; this_3.yaj_1 = _tmp_contentEntryLocalChangeSeqNum; this_3.zaj_1 = _tmp_contentEntryMasterChangeSeqNum; this_3.aak_1 = _tmp_contentEntryLastChangedBy; this_3.bak_1 = _tmp_contentEntryLct; tmp_59.xcc_1 = this_3; } if (!_tmp_ContentEntryPicture2_isAllNull) { var tmp_60 = this_0; // Inline function 'kotlin.apply' call var this_4 = new ContentEntryPicture2(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByClazzUidAsFlow......' call this_4.rak_1 = _tmp_cepUid; this_4.sak_1 = _tmp_cepLct; this_4.tak_1 = _tmp_cepPictureUri; this_4.uak_1 = _tmp_cepThumbnailUri; tmp_60.ycc_1 = this_4; } return this_0; }; } function CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda($clazzUid, resultContinuation) { this.hcd_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda).jcd = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda).le = function (p1, $completion) { return this.jcd((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.icd_1.x5i(1, this.hcd_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.icd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda(this.hcd_1, completion); i.icd_1 = _stmt; return i; }; function CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda_0($clazzUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.jcd(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.kcd_1); } protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO CourseBlock (cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1).pcd = function (stmt, entity) { if (entity.r7y_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.r7y_1); } stmt.w5i(2, entity.s7y_1); stmt.w5i(3, entity.t7y_1); stmt.x5i(4, entity.u7y_1); stmt.a5j(5, entity.v7y_1); stmt.a5j(6, entity.w7y_1); stmt.w5i(7, entity.x7y_1); stmt.x5i(8, entity.y7y_1); stmt.x5i(9, entity.z7y_1); stmt.w5i(10, entity.a7z_1); stmt.x5i(11, entity.b7z_1); setFloatNullable(stmt, 12, entity.c7z_1); setFloatNullable(stmt, 13, entity.d7z_1); stmt.w5i(14, entity.e7z_1); stmt.x5i(15, entity.f7z_1); stmt.a5j(16, entity.g7z_1); stmt.k5i(17, entity.h7z_1); stmt.k5i(18, entity.i7z_1); stmt.x5i(19, entity.j7z_1); stmt.x5i(20, entity.k7z_1); stmt.a5j(21, entity.l7z_1); stmt.a5j(22, entity.m7z_1); stmt.a5j(23, entity.n7z_1); }; protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1).r5g = function (stmt, entity) { return this.pcd(stmt, entity instanceof CourseBlock ? entity : THROW_CCE()); }; function CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.kcd_1); } protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1).w5h = function (returnsId) { return 'INSERT INTO CourseBlock (cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1).pcd = function (stmt, entity) { if (entity.r7y_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.r7y_1); } stmt.w5i(2, entity.s7y_1); stmt.w5i(3, entity.t7y_1); stmt.x5i(4, entity.u7y_1); stmt.a5j(5, entity.v7y_1); stmt.a5j(6, entity.w7y_1); stmt.w5i(7, entity.x7y_1); stmt.x5i(8, entity.y7y_1); stmt.x5i(9, entity.z7y_1); stmt.w5i(10, entity.a7z_1); stmt.x5i(11, entity.b7z_1); setFloatNullable(stmt, 12, entity.c7z_1); setFloatNullable(stmt, 13, entity.d7z_1); stmt.w5i(14, entity.e7z_1); stmt.x5i(15, entity.f7z_1); stmt.a5j(16, entity.g7z_1); stmt.k5i(17, entity.h7z_1); stmt.k5i(18, entity.i7z_1); stmt.x5i(19, entity.j7z_1); stmt.x5i(20, entity.k7z_1); stmt.a5j(21, entity.l7z_1); stmt.a5j(22, entity.m7z_1); stmt.a5j(23, entity.n7z_1); }; protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1).r5g = function (stmt, entity) { return this.pcd(stmt, entity instanceof CourseBlock ? entity : THROW_CCE()); }; function CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this$0, $uid, resultContinuation) { this.ace_1 = this$0; this.bce_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).cce = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).r79 = function ($completion) { return this.cce($completion); }; protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT CourseBlock.*, CourseBlockPicture.*\n FROM CourseBlock\n LEFT JOIN CourseBlockPicture \n ON CourseBlockPicture.cbpUid = CAST(? AS BIGINT)\n WHERE CourseBlock.cbUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT CourseBlock.*, CourseBlockPicture.*\n FROM CourseBlock\n LEFT JOIN CourseBlockPicture \n ON CourseBlockPicture.cbpUid = ?\n WHERE CourseBlock.cbUid = ? \n \n', true); suspendResult = prepareAndUseStatementAsync(this.ace_1.kcd_1, tmp_0, CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda_0(this.bce_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).q79 = function (completion) { return new CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this.ace_1, this.bce_1, completion); }; function CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda_0(this$0, $uid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.cce($completion); }; l.$arity = 0; return l; } function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda($clazzUid, $includeInactive, resultContinuation) { this.lce_1 = $clazzUid; this.mce_1 = $includeInactive; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda).oce = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda).le = function (p1, $completion) { return this.oce((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.nce_1.x5i(1, this.lce_1); this.nce_1.k5i(2, this.mce_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.nce_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda).o5g = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda(this.lce_1, this.mce_1, completion); i.nce_1 = _stmt; return i; }; function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda_0($clazzUid, $includeInactive, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda($clazzUid, $includeInactive, resultContinuation); var l = function (_stmt, $completion) { return i.oce(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda(this$0, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) { this.xce_1 = this$0; this.yce_1 = $clazzUid; this.zce_1 = $includeInactive; this.acf_1 = $includeHidden; this.bcf_1 = $hideUntilFilterTime; this.ccf_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda).dcf = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda).r79 = function ($completion) { return this.dcf($completion); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT CourseBlock.*, ContentEntry.*, CourseBlockPicture.*, ContentEntryPicture2.*\n FROM CourseBlock\n LEFT JOIN ContentEntry\n ON CourseBlock.cbType = 104\n AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n LEFT JOIN CourseBlockPicture\n ON CourseBlockPicture.cbpUid = CourseBlock.cbUid \n LEFT JOIN ContentEntryPicture2\n ON CourseBlock.cbType = 104\n AND ContentEntryPicture2.cepUid = CourseBlock.cbEntityUid\n WHERE CourseBlock.cbClazzUid = CAST(? AS BIGINT)\n AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive)\n AND (CAST(? AS INTEGER) = 1 OR NOT CourseBlock.cbHidden)\n AND (CAST(? AS BIGINT) >= CourseBlock.cbHideUntilDate)\n AND (CAST(? AS BIGINT) >= COALESCE(\n (SELECT CourseBlockParent.cbHideUntilDate\n FROM CourseBlock CourseBlockParent\n WHERE CourseBlockParent.cbUid = CourseBlock.cbModuleParentBlockUid), 0))\n AND (CourseBlock.cbType != 300)\n AND CAST(? AS BIGINT) = CAST(? AS BIGINT) \n ORDER BY CourseBlock.cbIndex \n ', VOID, VOID, VOID, '\n SELECT CourseBlock.*, ContentEntry.*, CourseBlockPicture.*, ContentEntryPicture2.*\n FROM CourseBlock\n LEFT JOIN ContentEntry\n ON CourseBlock.cbType = 104\n AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n LEFT JOIN CourseBlockPicture\n ON CourseBlockPicture.cbpUid = CourseBlock.cbUid \n LEFT JOIN ContentEntryPicture2\n ON CourseBlock.cbType = 104\n AND ContentEntryPicture2.cepUid = CourseBlock.cbEntityUid\n WHERE CourseBlock.cbClazzUid = ?\n AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive)\n AND (CAST(? AS INTEGER) = 1 OR NOT CourseBlock.cbHidden)\n AND (? >= CourseBlock.cbHideUntilDate)\n AND (? >= COALESCE(\n (SELECT CourseBlockParent.cbHideUntilDate\n FROM CourseBlock CourseBlockParent\n WHERE CourseBlockParent.cbUid = CourseBlock.cbModuleParentBlockUid), 0))\n AND (CourseBlock.cbType != 300)\n AND ? = ? \n ORDER BY CourseBlock.cbIndex \n \n', true); suspendResult = prepareAndUseStatementAsync(this.xce_1.kcd_1, tmp_0, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda_0(this.yce_1, this.zce_1, this.acf_1, this.bcf_1, this.ccf_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda).q79 = function (completion) { return new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda(this.xce_1, this.yce_1, this.zce_1, this.acf_1, this.bcf_1, this.ccf_1, completion); }; function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda_0(this$0, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda(this$0, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.dcf($completion); }; l.$arity = 0; return l; } function CourseBlockDao_JdbcImpl$updateActiveByUid$slambda($active, $changeTime, $cbUid, resultContinuation) { this.mcf_1 = $active; this.ncf_1 = $changeTime; this.ocf_1 = $cbUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$updateActiveByUid$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_JdbcImpl$updateActiveByUid$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$updateActiveByUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.pcf_1.k5i(1, this.mcf_1); this.pcf_1.x5i(2, this.ncf_1); this.pcf_1.x5i(3, this.ocf_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.pcf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$updateActiveByUid$slambda).o5g = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$updateActiveByUid$slambda(this.mcf_1, this.ncf_1, this.ocf_1, completion); i.pcf_1 = _stmt; return i; }; function CourseBlockDao_JdbcImpl$updateActiveByUid$slambda_0($active, $changeTime, $cbUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$updateActiveByUid$slambda($active, $changeTime, $cbUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda($postUid, resultContinuation) { this.ycf_1 = $postUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda).acg = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda).le = function (p1, $completion) { return this.acg((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.zcf_1.x5i(1, this.ycf_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.zcf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda).o5g = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda(this.ycf_1, completion); i.zcf_1 = _stmt; return i; }; function CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda_0($postUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda($postUid, resultContinuation); var l = function (_stmt, $completion) { return i.acg(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda($courseBlockUid, resultContinuation) { this.jcg_1 = $courseBlockUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda).d5h = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda).le = function (p1, $completion) { return this.d5h((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.kcg_1.x5i(1, this.jcg_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.kcg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda).o5g = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda(this.jcg_1, completion); i.kcg_1 = _stmt; return i; }; function CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda_0($courseBlockUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda($courseBlockUid, resultContinuation); var l = function (_stmt, $completion) { return i.d5h(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda(this$0, $assignmentUid, resultContinuation) { this.tcg_1 = this$0; this.ucg_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda).vcg = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda).r79 = function ($completion) { return this.vcg($completion); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT ClazzAssignment.*, CourseBlock.* \n FROM ClazzAssignment\n JOIN CourseBlock \n ON CourseBlock.cbEntityUid = CAST(? AS BIGINT)\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n LIMIT 1 \n ', VOID, VOID, VOID, '\n SELECT ClazzAssignment.*, CourseBlock.* \n FROM ClazzAssignment\n JOIN CourseBlock \n ON CourseBlock.cbEntityUid = ?\n WHERE ClazzAssignment.caUid = ?\n LIMIT 1 \n \n', true); suspendResult = prepareAndUseStatementAsync(this.tcg_1.kcd_1, tmp_0, CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda_0(this.ucg_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda).q79 = function (completion) { return new CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda(this.tcg_1, this.ucg_1, completion); }; function CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda_0(this$0, $assignmentUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda(this$0, $assignmentUid, resultContinuation); var l = function ($completion) { return i.vcg($completion); }; l.$arity = 0; return l; } function CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda(this$0, $clazzUid, resultContinuation) { this.ech_1 = this$0; this.fch_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda).gch = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda).r79 = function ($completion) { return this.gch($completion); }; protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT CourseBlock.*, ContentEntry.*, CourseBlockPicture.*, ContentEntryPicture2.*\n FROM CourseBlock\n LEFT JOIN ContentEntry\n ON CourseBlock.cbType = 104\n AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n LEFT JOIN CourseBlockPicture\n ON CourseBlockPicture.cbpUid = CourseBlock.cbUid \n LEFT JOIN ContentEntryPicture2\n ON CourseBlock.cbType = 104\n AND ContentEntryPicture2.cepUid = CourseBlock.cbEntityUid\n WHERE CourseBlock.cbClazzUid = CAST(? AS BIGINT)\n AND CAST(CourseBlock.cbActive AS INTEGER) = 1\n ORDER BY CourseBlock.cbIndex\n ', VOID, VOID, VOID, '\n SELECT CourseBlock.*, ContentEntry.*, CourseBlockPicture.*, ContentEntryPicture2.*\n FROM CourseBlock\n LEFT JOIN ContentEntry\n ON CourseBlock.cbType = 104\n AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n LEFT JOIN CourseBlockPicture\n ON CourseBlockPicture.cbpUid = CourseBlock.cbUid \n LEFT JOIN ContentEntryPicture2\n ON CourseBlock.cbType = 104\n AND ContentEntryPicture2.cepUid = CourseBlock.cbEntityUid\n WHERE CourseBlock.cbClazzUid = ?\n AND CAST(CourseBlock.cbActive AS INTEGER) = 1\n ORDER BY CourseBlock.cbIndex\n \n', true); suspendResult = prepareAndUseStatementAsync(this.ech_1.kcd_1, tmp_0, CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda_0(this.fch_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda).q79 = function (completion) { return new CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda(this.ech_1, this.fch_1, completion); }; function CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda(this$0, $clazzUid, resultContinuation); var l = function ($completion) { return i.gch($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$169(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.pch_1 = _this__u8e3s4; this.qch_1 = entity; } protoOf($insertAsyncCOROUTINE$169).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.pch_1.mcd_1.y5h(this.qch_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateActiveByUidCOROUTINE$171(_this__u8e3s4, cbUid, active, changeTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.zch_1 = _this__u8e3s4; this.aci_1 = cbUid; this.bci_1 = active; this.cci_1 = changeTime; } protoOf($updateActiveByUidCOROUTINE$171).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE CourseBlock \n SET cbActive = ?, \n cbLct = CAST(? AS BIGINT)\n WHERE cbUid = CAST(? AS BIGINT)', VOID, VOID, VOID, '\n UPDATE CourseBlock \n SET cbActive = ?, \n cbLct = ?\n WHERE cbUid = ?\n', false); suspendResult = prepareAndUseStatementAsync(this.zch_1.kcd_1, tmp_0, CourseBlockDao_JdbcImpl$updateActiveByUid$slambda_0(this.bci_1, this.cci_1, this.aci_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseBlockDao_JdbcImpl(_db) { CourseBlockDao.call(this); this.kcd_1 = _db; var tmp = this; tmp.lcd_1 = new CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1(this); var tmp_0 = this; tmp_0.mcd_1 = new CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1(this); } protoOf(CourseBlockDao_JdbcImpl).yc8 = function (entities, $completion) { return this.lcd_1.b5i(entities, $completion); }; protoOf(CourseBlockDao_JdbcImpl).ica = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$169(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.ica(entity instanceof CourseBlock ? entity : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl).uc8 = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseBlock', 'CourseBlockPicture']; return doorFlow(this.kcd_1, tmp, CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda_0(this, uid, null)); }; protoOf(CourseBlockDao_JdbcImpl).vc8 = function (clazzUid, includeInactive, $completion) { var tmp = new PreparedStatementConfig('\n SELECT CourseBlock.*, Assignment.*, Entry.*, Language.*, CourseBlockPicture.*,\n (SELECT CourseGroupSet.cgsName\n FROM CourseGroupSet\n WHERE CourseBlock.cbType = 103\n AND assignment.caGroupUid != 0\n AND CourseGroupSet.cgsUid = assignment.caGroupUid) AS assignmentCourseGroupSetName\n FROM CourseBlock \n LEFT JOIN ClazzAssignment AS Assignment\n ON assignment.caUid = CourseBlock.cbEntityUid\n AND CourseBlock.cbType = 103\n LEFT JOIN ContentEntry AS Entry\n ON entry.contentEntryUid = CourseBlock.cbEntityUid\n AND CourseBlock.cbType = 104\n LEFT JOIN Language\n ON Language.langUid = Entry.primaryLanguageUid\n AND CourseBlock.cbType = 104\n LEFT JOIN CourseBlockPicture\n ON CourseBlockPicture.cbpUid = CourseBlock.cbUid \n WHERE CourseBlock.cbClazzUid = CAST(? AS BIGINT)\n AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive)\n AND (CourseBlock.cbType != 300)\n ORDER BY CourseBlock.cbIndex\n ', VOID, VOID, VOID, '\n SELECT CourseBlock.*, Assignment.*, Entry.*, Language.*, CourseBlockPicture.*,\n (SELECT CourseGroupSet.cgsName\n FROM CourseGroupSet\n WHERE CourseBlock.cbType = 103\n AND assignment.caGroupUid != 0\n AND CourseGroupSet.cgsUid = assignment.caGroupUid) AS assignmentCourseGroupSetName\n FROM CourseBlock \n LEFT JOIN ClazzAssignment AS Assignment\n ON assignment.caUid = CourseBlock.cbEntityUid\n AND CourseBlock.cbType = 103\n LEFT JOIN ContentEntry AS Entry\n ON entry.contentEntryUid = CourseBlock.cbEntityUid\n AND CourseBlock.cbType = 104\n LEFT JOIN Language\n ON Language.langUid = Entry.primaryLanguageUid\n AND CourseBlock.cbType = 104\n LEFT JOIN CourseBlockPicture\n ON CourseBlockPicture.cbpUid = CourseBlock.cbUid \n WHERE CourseBlock.cbClazzUid = ?\n AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive)\n AND (CourseBlock.cbType != 300)\n ORDER BY CourseBlock.cbIndex\n \n', true); return prepareAndUseStatementAsync(this.kcd_1, tmp, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda_0(clazzUid, includeInactive, null), $completion); }; protoOf(CourseBlockDao_JdbcImpl).wc8 = function (clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ContentEntry', 'CourseBlock', 'CourseBlockPicture', 'ContentEntryPicture2']; return doorFlow(this.kcd_1, tmp, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda_0(this, clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid, null)); }; protoOf(CourseBlockDao_JdbcImpl).xc8 = function (cbUid, active, changeTime, $completion) { var tmp = new $updateActiveByUidCOROUTINE$171(this, cbUid, active, changeTime, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_JdbcImpl).zc8 = function (postUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT COALESCE(CourseBlock.cbUid, 0) AS courseBlockUid,\n COALESCE(CourseBlock.cbClazzUid, 0) AS clazzUid\n FROM CourseBlock\n WHERE CourseBlock.cbUid = \n (SELECT DiscussionPost.discussionPostCourseBlockUid \n FROM DiscussionPost\n WHERE DiscussionPost.discussionPostUid = CAST(? AS BIGINT))\n LIMIT 1\n ', VOID, VOID, VOID, '\n SELECT COALESCE(CourseBlock.cbUid, 0) AS courseBlockUid,\n COALESCE(CourseBlock.cbClazzUid, 0) AS clazzUid\n FROM CourseBlock\n WHERE CourseBlock.cbUid = \n (SELECT DiscussionPost.discussionPostCourseBlockUid \n FROM DiscussionPost\n WHERE DiscussionPost.discussionPostUid = ?)\n LIMIT 1\n \n', true); return prepareAndUseStatementAsync(this.kcd_1, tmp, CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda_0(postUid, null), $completion); }; protoOf(CourseBlockDao_JdbcImpl).ac9 = function (courseBlockUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT COALESCE(CourseBlock.cbClazzUid, 0) AS clazzUid\n FROM CourseBlock\n WHERE CourseBlock.cbUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT COALESCE(CourseBlock.cbClazzUid, 0) AS clazzUid\n FROM CourseBlock\n WHERE CourseBlock.cbUid = ?\n \n', true); return prepareAndUseStatementAsync(this.kcd_1, tmp, CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda_0(courseBlockUid, null), $completion); }; protoOf(CourseBlockDao_JdbcImpl).bc9 = function (assignmentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ClazzAssignment', 'CourseBlock']; return doorFlow(this.kcd_1, tmp, CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda_0(this, assignmentUid, null)); }; protoOf(CourseBlockDao_JdbcImpl).cc9 = function (clazzUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ContentEntry', 'CourseBlock', 'CourseBlockPicture', 'ContentEntryPicture2']; return doorFlow(this.kcd_1, tmp, CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda_0(this, clazzUid, null)); }; function CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseBlockDao_Repo$findByClazzUidAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda(this$0, $uid, resultContinuation) { this.lci_1 = this$0; this.mci_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.nci_1 = this.lci_1.wci_1; var tmp_1 = this; tmp_1.oci_1 = 'CourseBlockDao/findByUidWithPictureAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.pci_1 = this.lci_1.yci_1; var tmp_3 = this; tmp_3.qci_1 = this.pci_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.lci_1.wci_1.t39(), 'CourseBlockDao/findByUidWithPictureAsFlow'); doorNodeIdHeader(this_0, this.lci_1.wci_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this.lci_1.wci_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.mci_1)); tmp_4.rci_1 = this_0; this.rci_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.sci_1 = this.qci_1; var tmp_6 = this; tmp_6.tci_1 = this.rci_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.tci_1, this.sci_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.uci_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.lci_1.vci_1, this.uci_1, this.lci_1.wci_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda$lambda(this.nci_1, this.oci_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda).q79 = function (completion) { return new CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda(this.lci_1, this.mci_1, completion); }; function CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda_0(this$0, $uid, resultContinuation) { var i = new CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda(this$0, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) { this.kcj_1 = this$0; this.lcj_1 = $clazzUid; this.mcj_1 = $includeInactive; this.ncj_1 = $includeHidden; this.ocj_1 = $hideUntilFilterTime; this.pcj_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.qcj_1 = this.kcj_1.wci_1; var tmp_1 = this; tmp_1.rcj_1 = 'CourseBlockDao/findAllCourseBlockByClazzUidAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.scj_1 = this.kcj_1.yci_1; var tmp_3 = this; tmp_3.tcj_1 = this.scj_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.kcj_1.wci_1.t39(), 'CourseBlockDao/findAllCourseBlockByClazzUidAsFlow'); doorNodeIdHeader(this_0, this.kcj_1.wci_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.kcj_1.wci_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.lcj_1)); parameter(this_0, 'includeInactive', this.kcj_1.wci_1.t39().a67_1.b46(serializer_2(BooleanCompanionObject_instance), this.mcj_1)); parameter(this_0, 'includeHidden', this.kcj_1.wci_1.t39().a67_1.b46(serializer_2(BooleanCompanionObject_instance), this.ncj_1)); parameter(this_0, 'hideUntilFilterTime', this.kcj_1.wci_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ocj_1)); parameter(this_0, 'accountPersonUid', this.kcj_1.wci_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.pcj_1)); tmp_4.ucj_1 = this_0; this.ucj_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.vcj_1 = this.tcj_1; var tmp_6 = this; tmp_6.wcj_1 = this.ucj_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.wcj_1, this.vcj_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.xcj_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.kcj_1.vci_1, this.xcj_1, this.kcj_1.wci_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda$lambda(this.qcj_1, this.rcj_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda).q79 = function (completion) { return new CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda(this.kcj_1, this.lcj_1, this.mcj_1, this.ncj_1, this.ocj_1, this.pcj_1, completion); }; function CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda_0(this$0, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) { var i = new CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda(this$0, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CourseBlockDao_Repo$updateActiveByUid$slambda(this$0, $cbUid, $active, $changeTime, resultContinuation) { this.gck_1 = this$0; this.hck_1 = $cbUid; this.ick_1 = $active; this.jck_1 = $changeTime; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$updateActiveByUid$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_Repo$updateActiveByUid$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CourseBlockDao_Repo$updateActiveByUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.gck_1.xci_1.xc8(this.hck_1, this.ick_1, this.jck_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseBlockDao_Repo$updateActiveByUid$slambda).q79 = function (completion) { return new CourseBlockDao_Repo$updateActiveByUid$slambda(this.gck_1, this.hck_1, this.ick_1, this.jck_1, completion); }; function CourseBlockDao_Repo$updateActiveByUid$slambda_0(this$0, $cbUid, $active, $changeTime, resultContinuation) { var i = new CourseBlockDao_Repo$updateActiveByUid$slambda(this$0, $cbUid, $active, $changeTime, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CourseBlockDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) { this.sck_1 = this$0; this.tck_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$upsertListAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_Repo$upsertListAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CourseBlockDao_Repo$upsertListAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.sck_1.xci_1.yc8(this.tck_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseBlockDao_Repo$upsertListAsync$slambda).q79 = function (completion) { return new CourseBlockDao_Repo$upsertListAsync$slambda(this.sck_1, this.tck_1, completion); }; function CourseBlockDao_Repo$upsertListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new CourseBlockDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CourseBlockDao_Repo$findCourseBlockAndClazzUidByDiscussionPostUid$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda(this$0, $assignmentUid, resultContinuation) { this.ccl_1 = this$0; this.dcl_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.ecl_1 = this.ccl_1.wci_1; var tmp_1 = this; tmp_1.fcl_1 = 'CourseBlockDao/findCourseBlockByAssignmentUid'; this.md_1 = 3; var tmp_2 = this; tmp_2.gcl_1 = this.ccl_1.yci_1; var tmp_3 = this; tmp_3.hcl_1 = this.gcl_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.ccl_1.wci_1.t39(), 'CourseBlockDao/findCourseBlockByAssignmentUid'); doorNodeIdHeader(this_0, this.ccl_1.wci_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'assignmentUid', this.ccl_1.wci_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.dcl_1)); tmp_4.icl_1 = this_0; this.icl_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.jcl_1 = this.hcl_1; var tmp_6 = this; tmp_6.kcl_1 = this.icl_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.kcl_1, this.jcl_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.lcl_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.ccl_1.vci_1, this.lcl_1, this.ccl_1.wci_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda$lambda(this.ecl_1, this.fcl_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda).q79 = function (completion) { return new CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda(this.ccl_1, this.dcl_1, completion); }; function CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda_0(this$0, $assignmentUid, resultContinuation) { var i = new CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda(this$0, $assignmentUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CourseBlockDao_Repo$findByClazzUidAsFlow$slambda(this$0, $clazzUid, resultContinuation) { this.ucl_1 = this$0; this.vcl_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$findByClazzUidAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_Repo$findByClazzUidAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CourseBlockDao_Repo$findByClazzUidAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.wcl_1 = this.ucl_1.wci_1; var tmp_1 = this; tmp_1.xcl_1 = 'CourseBlockDao/findByClazzUidAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.ycl_1 = this.ucl_1.yci_1; var tmp_3 = this; tmp_3.zcl_1 = this.ycl_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.ucl_1.wci_1.t39(), 'CourseBlockDao/findByClazzUidAsFlow'); doorNodeIdHeader(this_0, this.ucl_1.wci_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.ucl_1.wci_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.vcl_1)); tmp_4.acm_1 = this_0; this.acm_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.bcm_1 = this.zcl_1; var tmp_6 = this; tmp_6.ccm_1 = this.acm_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.ccm_1, this.bcm_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.dcm_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.ucl_1.vci_1, this.dcm_1, this.ucl_1.wci_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CourseBlockDao_Repo$findByClazzUidAsFlow$slambda$lambda(this.wcl_1, this.xcl_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CourseBlockDao_Repo$findByClazzUidAsFlow$slambda).q79 = function (completion) { return new CourseBlockDao_Repo$findByClazzUidAsFlow$slambda(this.ucl_1, this.vcl_1, completion); }; function CourseBlockDao_Repo$findByClazzUidAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) { var i = new CourseBlockDao_Repo$findByClazzUidAsFlow$slambda(this$0, $clazzUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CourseBlockDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.mcm_1 = this$0; this.ncm_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(CourseBlockDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.mcm_1.xci_1.insertAsync(this.ncm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseBlockDao_Repo$insertAsync$slambda).q79 = function (completion) { return new CourseBlockDao_Repo$insertAsync$slambda(this.mcm_1, this.ncm_1, completion); }; function CourseBlockDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new CourseBlockDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $findAllCourseBlockByClazzUidAsyncCOROUTINE$176(_this__u8e3s4, clazzUid, includeInactive, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.wcm_1 = _this__u8e3s4; this.xcm_1 = clazzUid; this.ycm_1 = includeInactive; } protoOf($findAllCourseBlockByClazzUidAsyncCOROUTINE$176).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.zcm_1 = this.wcm_1.wci_1; var tmp_1 = this; tmp_1.acn_1 = 'CourseBlockDao/findAllCourseBlockByClazzUidAsync'; this.md_1 = 3; var tmp_2 = this; tmp_2.bcn_1 = this.wcm_1.yci_1; var tmp_3 = this; tmp_3.ccn_1 = this.bcn_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.wcm_1.wci_1.t39(), 'CourseBlockDao/findAllCourseBlockByClazzUidAsync'); doorNodeIdHeader(this_0, this.wcm_1.wci_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.wcm_1.wci_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.xcm_1)); parameter(this_0, 'includeInactive', this.wcm_1.wci_1.t39().a67_1.b46(serializer_2(BooleanCompanionObject_instance), this.ycm_1)); tmp_4.dcn_1 = this_0; this.dcn_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.ecn_1 = this.ccn_1; var tmp_6 = this; tmp_6.fcn_1 = this.dcn_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.fcn_1, this.ecn_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.gcn_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.wcm_1.vci_1, this.gcn_1, this.wcm_1.wci_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.hcn_1 = this.od_1; Napier_getInstance().e5f(this.hcn_1, 'DoorLog', CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsync$lambda(this.zcm_1, this.acn_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.wcm_1.xci_1.vc8(this.xcm_1, this.ycm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $findCourseBlockAndClazzUidByDiscussionPostUidCOROUTINE$177(_this__u8e3s4, postUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qcn_1 = _this__u8e3s4; this.rcn_1 = postUid; } protoOf($findCourseBlockAndClazzUidByDiscussionPostUidCOROUTINE$177).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.scn_1 = this.qcn_1.wci_1; var tmp_1 = this; tmp_1.tcn_1 = 'CourseBlockDao/findCourseBlockAndClazzUidByDiscussionPostUid'; this.md_1 = 3; var tmp_2 = this; tmp_2.ucn_1 = this.qcn_1.yci_1; var tmp_3 = this; tmp_3.vcn_1 = this.ucn_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.qcn_1.wci_1.t39(), 'CourseBlockDao/findCourseBlockAndClazzUidByDiscussionPostUid'); doorNodeIdHeader(this_0, this.qcn_1.wci_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'postUid', this.qcn_1.wci_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.rcn_1)); tmp_4.wcn_1 = this_0; this.wcn_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.xcn_1 = this.vcn_1; var tmp_6 = this; tmp_6.ycn_1 = this.wcn_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.ycn_1, this.xcn_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.zcn_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.qcn_1.vci_1, this.zcn_1, this.qcn_1.wci_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.aco_1 = this.od_1; Napier_getInstance().e5f(this.aco_1, 'DoorLog', CourseBlockDao_Repo$findCourseBlockAndClazzUidByDiscussionPostUid$lambda(this.scn_1, this.tcn_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.qcn_1.xci_1.zc8(this.rcn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $findClazzUidByCourseBlockUidCOROUTINE$179(_this__u8e3s4, courseBlockUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.jco_1 = _this__u8e3s4; this.kco_1 = courseBlockUid; } protoOf($findClazzUidByCourseBlockUidCOROUTINE$179).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.jco_1.xci_1.ac9(this.kco_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$183(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.tco_1 = _this__u8e3s4; this.uco_1 = entity; } protoOf($insertAsyncCOROUTINE$183).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.tco_1.wci_1, 'CourseBlock', CourseBlockDao_Repo$insertAsync$slambda_0(this.tco_1, this.uco_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseBlockDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CourseBlockDao.call(this); this.vci_1 = _db; this.wci_1 = _repo; this.xci_1 = _dao; this.yci_1 = _httpClient; this.zci_1 = _clientId; this.acj_1 = _endpoint; this.bcj_1 = new RepoDaoFlowHelper(this.wci_1); } protoOf(CourseBlockDao_Repo).uc8 = function (uid) { var tmp = this.xci_1.uc8(uid); return this.bcj_1.r68(tmp, CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda_0(this, uid, null)); }; protoOf(CourseBlockDao_Repo).vc8 = function (clazzUid, includeInactive, $completion) { var tmp = new $findAllCourseBlockByClazzUidAsyncCOROUTINE$176(this, clazzUid, includeInactive, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_Repo).wc8 = function (clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid) { var tmp = this.xci_1.wc8(clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid); return this.bcj_1.r68(tmp, CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda_0(this, clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid, null)); }; protoOf(CourseBlockDao_Repo).xc8 = function (cbUid, active, changeTime, $completion) { return withRepoChangeMonitorAsync(this.wci_1, 'CourseBlock', CourseBlockDao_Repo$updateActiveByUid$slambda_0(this, cbUid, active, changeTime, null), $completion); }; protoOf(CourseBlockDao_Repo).yc8 = function (entities, $completion) { return withRepoChangeMonitorAsync(this.wci_1, 'CourseBlock', CourseBlockDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion); }; protoOf(CourseBlockDao_Repo).zc8 = function (postUid, $completion) { var tmp = new $findCourseBlockAndClazzUidByDiscussionPostUidCOROUTINE$177(this, postUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_Repo).ac9 = function (courseBlockUid, $completion) { var tmp = new $findClazzUidByCourseBlockUidCOROUTINE$179(this, courseBlockUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_Repo).bc9 = function (assignmentUid) { var tmp = this.xci_1.bc9(assignmentUid); return this.bcj_1.r68(tmp, CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda_0(this, assignmentUid, null)); }; protoOf(CourseBlockDao_Repo).cc9 = function (clazzUid) { var tmp = this.xci_1.cc9(clazzUid); return this.bcj_1.r68(tmp, CourseBlockDao_Repo$findByClazzUidAsFlow$slambda_0(this, clazzUid, null)); }; protoOf(CourseBlockDao_Repo).ica = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$183(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockDao_Repo).insertAsync = function (entity, $completion) { return this.ica(entity instanceof CourseBlock ? entity : THROW_CCE(), $completion); }; function CourseBlockPictureDao() { } protoOf(CourseBlockPictureDao).ib6 = function (uid, uri, thumbnailUri, time, $completion) { return Unit_instance; }; function CourseBlockPictureDao_DoorWrapper(_db, _dao) { CourseBlockPictureDao.call(this); this.wco_1 = _db; this.xco_1 = _dao; } protoOf(CourseBlockPictureDao_DoorWrapper).vco = function (entities, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entities.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.db.dao.CourseBlockPictureDao_DoorWrapper.upsertListAsync.' call element.v7z_1 = systemTimeInMillis(); } return this.xco_1.vco(entities, $completion); }; protoOf(CourseBlockPictureDao_DoorWrapper).ib6 = function (uid, uri, thumbnailUri, time, $completion) { return this.xco_1.ib6(uid, uri, thumbnailUri, time, $completion); }; function CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.yco_1); } protoOf(CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO CourseBlockPicture (cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri) VALUES(?, ?, ?, ?)'; }; protoOf(CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1).ccp = function (stmt, entity) { stmt.x5i(1, entity.u7z_1); stmt.x5i(2, entity.v7z_1); stmt.a5j(3, entity.w7z_1); stmt.a5j(4, entity.x7z_1); }; protoOf(CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1).r5g = function (stmt, entity) { return this.ccp(stmt, entity instanceof CourseBlockPicture ? entity : THROW_CCE()); }; function CourseBlockPictureDao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation) { this.lcp_1 = $uri; this.mcp_1 = $thumbnailUri; this.ncp_1 = $time; this.ocp_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockPictureDao_JdbcImpl$updateUri$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockPictureDao_JdbcImpl$updateUri$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockPictureDao_JdbcImpl$updateUri$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.pcp_1.a5j(1, this.lcp_1); this.pcp_1.a5j(2, this.mcp_1); this.pcp_1.x5i(3, this.ncp_1); this.pcp_1.x5i(4, this.ocp_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.pcp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseBlockPictureDao_JdbcImpl$updateUri$slambda).o5g = function (_stmt, completion) { var i = new CourseBlockPictureDao_JdbcImpl$updateUri$slambda(this.lcp_1, this.mcp_1, this.ncp_1, this.ocp_1, completion); i.pcp_1 = _stmt; return i; }; function CourseBlockPictureDao_JdbcImpl$updateUri$slambda_0($uri, $thumbnailUri, $time, $uid, resultContinuation) { var i = new CourseBlockPictureDao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function $updateUriCOROUTINE$184(_this__u8e3s4, uid, uri, thumbnailUri, time, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ycp_1 = _this__u8e3s4; this.zcp_1 = uid; this.acq_1 = uri; this.bcq_1 = thumbnailUri; this.ccq_1 = time; } protoOf($updateUriCOROUTINE$184).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE CourseBlockPicture\n SET cbpPictureUri = ?,\n cbpThumbnailUri = ?,\n cbpLct = CAST(? AS BIGINT)\n WHERE cbpUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE CourseBlockPicture\n SET cbpPictureUri = ?,\n cbpThumbnailUri = ?,\n cbpLct = ?\n WHERE cbpUid = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this.ycp_1.yco_1, tmp_0, CourseBlockPictureDao_JdbcImpl$updateUri$slambda_0(this.acq_1, this.bcq_1, this.ccq_1, this.zcp_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseBlockPictureDao_JdbcImpl(_db) { CourseBlockPictureDao.call(this); this.yco_1 = _db; var tmp = this; tmp.zco_1 = new CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1(this); } protoOf(CourseBlockPictureDao_JdbcImpl).vco = function (entities, $completion) { return this.zco_1.b5i(entities, $completion); }; protoOf(CourseBlockPictureDao_JdbcImpl).ib6 = function (uid, uri, thumbnailUri, time, $completion) { var tmp = new $updateUriCOROUTINE$184(this, uid, uri, thumbnailUri, time, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function CourseBlockPictureDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) { this.lcq_1 = this$0; this.mcq_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockPictureDao_Repo$upsertListAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockPictureDao_Repo$upsertListAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CourseBlockPictureDao_Repo$upsertListAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.lcq_1.pcq_1.vco(this.mcq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseBlockPictureDao_Repo$upsertListAsync$slambda).q79 = function (completion) { return new CourseBlockPictureDao_Repo$upsertListAsync$slambda(this.lcq_1, this.mcq_1, completion); }; function CourseBlockPictureDao_Repo$upsertListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new CourseBlockPictureDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CourseBlockPictureDao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) { this.bcr_1 = this$0; this.ccr_1 = $uid; this.dcr_1 = $uri; this.ecr_1 = $thumbnailUri; this.fcr_1 = $time; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockPictureDao_Repo$updateUri$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseBlockPictureDao_Repo$updateUri$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CourseBlockPictureDao_Repo$updateUri$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.bcr_1.pcq_1.ib6(this.ccr_1, this.dcr_1, this.ecr_1, this.fcr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseBlockPictureDao_Repo$updateUri$slambda).q79 = function (completion) { return new CourseBlockPictureDao_Repo$updateUri$slambda(this.bcr_1, this.ccr_1, this.dcr_1, this.ecr_1, this.fcr_1, completion); }; function CourseBlockPictureDao_Repo$updateUri$slambda_0(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) { var i = new CourseBlockPictureDao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CourseBlockPictureDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CourseBlockPictureDao.call(this); this.ncq_1 = _db; this.ocq_1 = _repo; this.pcq_1 = _dao; this.qcq_1 = _httpClient; this.rcq_1 = _clientId; this.scq_1 = _endpoint; } protoOf(CourseBlockPictureDao_Repo).vco = function (entities, $completion) { return withRepoChangeMonitorAsync(this.ocq_1, 'CourseBlockPicture', CourseBlockPictureDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion); }; protoOf(CourseBlockPictureDao_Repo).ib6 = function (uid, uri, thumbnailUri, time, $completion) { return withRepoChangeMonitorAsync(this.ocq_1, 'CourseBlockPicture', CourseBlockPictureDao_Repo$updateUri$slambda_0(this, uid, uri, thumbnailUri, time, null), $completion); }; function CourseGroupMemberDao() { } function $upsertListAsyncCOROUTINE$186(_this__u8e3s4, list, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.scr_1 = _this__u8e3s4; this.tcr_1 = list; } protoOf($upsertListAsyncCOROUTINE$186).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; this.ucr_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.scr_1.bcs_1)); var tmp_0 = this; tmp_0.vcr_1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.wcr_1 = this.tcr_1.w(); var tmp_2 = this; tmp_2.xcr_1 = this.wcr_1; this.ld_1 = 1; continue $sm; case 1: if (!this.xcr_1.f()) { this.ld_1 = 4; continue $sm; } this.ycr_1 = this.xcr_1.e(); var tmp_3 = this; tmp_3.zcr_1 = this.ycr_1; if (this.zcr_1.dcs_1.equals(new Long(0, 0))) { this.ld_1 = 2; suspendResult = this.ucr_1.r63(243, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 3; continue $sm; } case 2: this.acs_1 = suspendResult; this.zcr_1.dcs_1 = this.acs_1; var this_0 = this.vcr_1; var element = this.acs_1; this_0.j1(element); this.ld_1 = 3; continue $sm; case 3: this.zcr_1.hcs_1 = systemTimeInMillis(); this.ld_1 = 1; continue $sm; case 4: this.ld_1 = 5; suspendResult = this.scr_1.ccs_1.icr(this.tcr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_instance; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$187(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qcs_1 = _this__u8e3s4; this.rcs_1 = entity; } protoOf($insertAsyncCOROUTINE$187).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.scs_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.qcs_1.bcs_1)); if (this.rcs_1.dcs_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.scs_1.r63(243, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.tcs_1 = suspendResult; this.rcs_1.dcs_1 = this.tcs_1; this.ld_1 = 2; continue $sm; case 2: this.rcs_1.hcs_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.qcs_1.ccs_1.insertAsync(this.rcs_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.rcs_1.dcs_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseGroupMemberDao_DoorWrapper(_db, _dao) { CourseGroupMemberDao.call(this); this.bcs_1 = _db; this.ccs_1 = _dao; } protoOf(CourseGroupMemberDao_DoorWrapper).gcr = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid, $completion) { return this.ccs_1.gcr(cgsUid, clazzUid, time, activeFilter, accountPersonUid, $completion); }; protoOf(CourseGroupMemberDao_DoorWrapper).hcr = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid) { return this.ccs_1.hcr(cgsUid, clazzUid, time, activeFilter, accountPersonUid); }; protoOf(CourseGroupMemberDao_DoorWrapper).icr = function (list, $completion) { var tmp = new $upsertListAsyncCOROUTINE$186(this, list, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupMemberDao_DoorWrapper).jcr = function (courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion) { return this.ccs_1.jcr(courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion); }; protoOf(CourseGroupMemberDao_DoorWrapper).ucs = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$187(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupMemberDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.ucs(entity instanceof CourseGroupMember ? entity : THROW_CCE(), $completion); }; function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda$lambda(_result) { return mapRows(_result, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda$lambda$lambda(_result)); } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda$lambda$lambda($_result) { return function (it) { var _tmp_name = $_result.b10('name'); var _tmp_personUid = $_result.b5o('personUid'); var _tmp_enrolmentIsActive = $_result.m67('enrolmentIsActive'); var _tmp_pictureUri = $_result.b10('pictureUri'); var _tmp_CourseGroupMember_nullCount = 0; var _tmp_cgmUid = $_result.b5o('cgmUid'); var tmp; if ($_result.t68()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_cgmSetUid = $_result.b5o('cgmSetUid'); var tmp_0; if ($_result.t68()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_cgmGroupNumber = $_result.a5o('cgmGroupNumber'); var tmp_1; if ($_result.t68()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_cgmPersonUid = $_result.b5o('cgmPersonUid'); var tmp_2; if ($_result.t68()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_cgmLct = $_result.b5o('cgmLct'); var tmp_3; if ($_result.t68()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_CourseGroupMember_isAllNull = _tmp_CourseGroupMember_nullCount === 5; // Inline function 'kotlin.apply' call var this_0 = new CourseGroupMemberAndName(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndClazz....' call this_0.wcs_1 = _tmp_name; this_0.xcs_1 = _tmp_personUid; this_0.ycs_1 = _tmp_enrolmentIsActive; this_0.zcs_1 = _tmp_pictureUri; if (!_tmp_CourseGroupMember_isAllNull) { var tmp_4 = this_0; // Inline function 'kotlin.apply' call var this_1 = new CourseGroupMember(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndClazz.....' call this_1.dcs_1 = _tmp_cgmUid; this_1.ecs_1 = _tmp_cgmSetUid; this_1.fcs_1 = _tmp_cgmGroupNumber; this_1.gcs_1 = _tmp_cgmPersonUid; this_1.hcs_1 = _tmp_cgmLct; tmp_4.vcs_1 = this_1; } return this_0; }; } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda$lambda(_result) { return mapRows(_result, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda$lambda$lambda(_result)); } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_name = $_result.b10('name'); var _tmp_personUid = $_result.b5o('personUid'); var _tmp_enrolmentIsActive = $_result.m67('enrolmentIsActive'); var _tmp_pictureUri = $_result.b10('pictureUri'); var _tmp_CourseGroupMember_nullCount = 0; var _tmp_cgmUid = $_result.b5o('cgmUid'); var tmp; if ($_result.t68()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_cgmSetUid = $_result.b5o('cgmSetUid'); var tmp_0; if ($_result.t68()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_cgmGroupNumber = $_result.a5o('cgmGroupNumber'); var tmp_1; if ($_result.t68()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_cgmPersonUid = $_result.b5o('cgmPersonUid'); var tmp_2; if ($_result.t68()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_cgmLct = $_result.b5o('cgmLct'); var tmp_3; if ($_result.t68()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_CourseGroupMember_isAllNull = _tmp_CourseGroupMember_nullCount === 5; // Inline function 'kotlin.apply' call var this_0 = new CourseGroupMemberAndName(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndClazzAsFlow.....' call this_0.wcs_1 = _tmp_name; this_0.xcs_1 = _tmp_personUid; this_0.ycs_1 = _tmp_enrolmentIsActive; this_0.zcs_1 = _tmp_pictureUri; if (!_tmp_CourseGroupMember_isAllNull) { var tmp_4 = this_0; // Inline function 'kotlin.apply' call var this_1 = new CourseGroupMember(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndClazzAsFlow......' call this_1.dcs_1 = _tmp_cgmUid; this_1.ecs_1 = _tmp_cgmSetUid; this_1.fcs_1 = _tmp_cgmGroupNumber; this_1.gcs_1 = _tmp_cgmPersonUid; this_1.hcs_1 = _tmp_cgmLct; tmp_4.vcs_1 = this_1; } return this_0; }; } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda($time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation) { this.ict_1 = $time; this.jct_1 = $clazzUid; this.kct_1 = $cgsUid; this.lct_1 = $activeFilter; this.mct_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda).oct = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda).le = function (p1, $completion) { return this.oct((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.nct_1.x5i(1, this.ict_1); this.nct_1.x5i(2, this.jct_1); this.nct_1.x5i(3, this.kct_1); this.nct_1.x5i(4, this.jct_1); this.nct_1.x5i(5, this.kct_1); this.nct_1.w5i(6, this.lct_1); this.nct_1.w5i(7, this.lct_1); this.nct_1.x5i(8, this.jct_1); this.nct_1.x5i(9, this.mct_1); this.nct_1.x5i(10, this.mct_1); this.nct_1.x5i(11, this.jct_1); this.nct_1.x5i(12, this.mct_1); this.nct_1.x5i(13, this.mct_1); this.nct_1.x5i(14, this.mct_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.nct_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda(this.ict_1, this.jct_1, this.kct_1, this.lct_1, this.mct_1, completion); i.nct_1 = _stmt; return i; }; function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda_0($time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation) { var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda($time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.oct(_stmt, $completion); }; l.$arity = 1; return l; } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda$lambda(_result) { return mapRows(_result, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda$lambda$lambda(_result)); } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_CourseGroupMember_nullCount = 0; var _tmp_cgmUid = $_result.b5o('cgmUid'); var tmp; if ($_result.t68()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_cgmSetUid = $_result.b5o('cgmSetUid'); var tmp_0; if ($_result.t68()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_cgmGroupNumber = $_result.a5o('cgmGroupNumber'); var tmp_1; if ($_result.t68()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_cgmPersonUid = $_result.b5o('cgmPersonUid'); var tmp_2; if ($_result.t68()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_cgmLct = $_result.b5o('cgmLct'); var tmp_3; if ($_result.t68()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_CourseGroupMember_isAllNull = _tmp_CourseGroupMember_nullCount === 5; var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.b5o('personUid'); var tmp_4; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_username = $_result.b10('username'); var tmp_5; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_firstNames = $_result.b10('firstNames'); var tmp_6; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_lastName = $_result.b10('lastName'); var tmp_7; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_emailAddr = $_result.b10('emailAddr'); var tmp_8; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_phoneNum = $_result.b10('phoneNum'); var tmp_9; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_gender = $_result.a5o('gender'); var tmp_10; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_active = $_result.m67('active'); var tmp_11; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_dateOfBirth = $_result.b5o('dateOfBirth'); var tmp_12; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_personAddress = $_result.b10('personAddress'); var tmp_13; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_personOrgId = $_result.b10('personOrgId'); var tmp_14; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_personGroupUid = $_result.b5o('personGroupUid'); var tmp_15; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_personLct = $_result.b5o('personLct'); var tmp_16; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_personCountry = $_result.b10('personCountry'); var tmp_17; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_personType = $_result.a5o('personType'); var tmp_18; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_personMasterChangeSeqNum = $_result.b5o('personMasterChangeSeqNum'); var tmp_19; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_personLocalChangeSeqNum = $_result.b5o('personLocalChangeSeqNum'); var tmp_20; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_personLastChangedBy = $_result.a5o('personLastChangedBy'); var tmp_21; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_admin = $_result.m67('admin'); var tmp_22; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_personNotes = $_result.b10('personNotes'); var tmp_23; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_fatherName = $_result.b10('fatherName'); var tmp_24; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_fatherNumber = $_result.b10('fatherNumber'); var tmp_25; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_motherName = $_result.b10('motherName'); var tmp_26; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_motherNum = $_result.b10('motherNum'); var tmp_27; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; // Inline function 'kotlin.apply' call var this_0 = new CourseGroupMemberAndPerson(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndGroupNumAsync....' call if (!_tmp_CourseGroupMember_isAllNull) { var tmp_28 = this_0; // Inline function 'kotlin.apply' call var this_1 = new CourseGroupMember(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndGroupNumAsync.....' call this_1.dcs_1 = _tmp_cgmUid; this_1.ecs_1 = _tmp_cgmSetUid; this_1.fcs_1 = _tmp_cgmGroupNumber; this_1.gcs_1 = _tmp_cgmPersonUid; this_1.hcs_1 = _tmp_cgmLct; tmp_28.pct_1 = this_1; } if (!_tmp_Person_isAllNull) { var tmp_29 = this_0; // Inline function 'kotlin.apply' call var this_2 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndGroupNumAsync.....' call this_2.a97_1 = _tmp_personUid; this_2.b97_1 = _tmp_username; this_2.c97_1 = _tmp_firstNames; this_2.d97_1 = _tmp_lastName; this_2.e97_1 = _tmp_emailAddr; this_2.f97_1 = _tmp_phoneNum; this_2.g97_1 = _tmp_gender; this_2.h97_1 = _tmp_active; this_2.i97_1 = _tmp_dateOfBirth; this_2.j97_1 = _tmp_personAddress; this_2.k97_1 = _tmp_personOrgId; this_2.l97_1 = _tmp_personGroupUid; this_2.m97_1 = _tmp_personLct; this_2.n97_1 = _tmp_personCountry; this_2.o97_1 = _tmp_personType; this_2.p97_1 = _tmp_personMasterChangeSeqNum; this_2.q97_1 = _tmp_personLocalChangeSeqNum; this_2.r97_1 = _tmp_personLastChangedBy; this_2.s97_1 = _tmp_admin; this_2.t97_1 = _tmp_personNotes; this_2.u97_1 = _tmp_fatherName; this_2.v97_1 = _tmp_fatherNumber; this_2.w97_1 = _tmp_motherName; this_2.x97_1 = _tmp_motherNum; tmp_29.qct_1 = this_2; } return this_0; }; } function CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.rct_1); } protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1).w5h = function (returnsId) { return 'INSERT INTO CourseGroupMember (cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) VALUES(?, ?, ?, ?, ?)'; }; protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1).wct = function (stmt, entity) { if (entity.dcs_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.dcs_1); } stmt.x5i(2, entity.ecs_1); stmt.w5i(3, entity.fcs_1); stmt.x5i(4, entity.gcs_1); stmt.x5i(5, entity.hcs_1); }; protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1).r5g = function (stmt, entity) { return this.wct(stmt, entity instanceof CourseGroupMember ? entity : THROW_CCE()); }; function CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.rct_1); } protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO CourseGroupMember (cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) VALUES(?, ?, ?, ?, ?)'; }; protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1).wct = function (stmt, entity) { if (entity.dcs_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.dcs_1); } stmt.x5i(2, entity.ecs_1); stmt.w5i(3, entity.fcs_1); stmt.x5i(4, entity.gcs_1); stmt.x5i(5, entity.hcs_1); }; protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1).r5g = function (stmt, entity) { return this.wct(stmt, entity instanceof CourseGroupMember ? entity : THROW_CCE()); }; function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda($time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation) { this.hcu_1 = $time; this.icu_1 = $clazzUid; this.jcu_1 = $cgsUid; this.kcu_1 = $activeFilter; this.lcu_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda).oct = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda).le = function (p1, $completion) { return this.oct((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.mcu_1.x5i(1, this.hcu_1); this.mcu_1.x5i(2, this.icu_1); this.mcu_1.x5i(3, this.jcu_1); this.mcu_1.x5i(4, this.icu_1); this.mcu_1.x5i(5, this.jcu_1); this.mcu_1.w5i(6, this.kcu_1); this.mcu_1.w5i(7, this.kcu_1); this.mcu_1.x5i(8, this.icu_1); this.mcu_1.x5i(9, this.lcu_1); this.mcu_1.x5i(10, this.lcu_1); this.mcu_1.x5i(11, this.icu_1); this.mcu_1.x5i(12, this.lcu_1); this.mcu_1.x5i(13, this.lcu_1); this.mcu_1.x5i(14, this.lcu_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.mcu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda).o5g = function (_stmt, completion) { var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda(this.hcu_1, this.icu_1, this.jcu_1, this.kcu_1, this.lcu_1, completion); i.mcu_1 = _stmt; return i; }; function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda_0($time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation) { var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda($time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.oct(_stmt, $completion); }; l.$arity = 1; return l; } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda(this$0, $time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation) { this.vcu_1 = this$0; this.wcu_1 = $time; this.xcu_1 = $clazzUid; this.ycu_1 = $cgsUid; this.zcu_1 = $activeFilter; this.acv_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda).bcv = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda).r79 = function ($completion) { return this.bcv($completion); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig("\n --First get a list of all enrolments - this may contains duplicates for students who leave and re-enrol\n WITH AllEnrollmentsAndActiveStatus(enrolledPersonUid, isActive) AS \n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid AS enrolledPersonUid,\n (CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft) AS isActive\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = \n CASE(CAST(? AS BIGINT))\n WHEN 0 THEN \n (SELECT CourseGroupSet.cgsClazzUid\n FROM CourseGroupSet\n WHERE CourseGroupSet.cgsUid = CAST(? AS BIGINT))\n ELSE CAST(? AS BIGINT)\n END\n \n AND ClazzEnrolment.clazzEnrolmentRole = 1000),\n --Consolidate and removes any duplicates\n EnrolledStudentPersonUids(enrolledPersonUid, isActive) AS\n (SELECT DISTINCT AllEnrollmentsAndActiveStatus.enrolledPersonUid,\n (SELECT CAST(AllEnrollmentsInner.isActive AS INTEGER)\n FROM AllEnrollmentsAndActiveStatus AllEnrollmentsInner\n WHERE AllEnrollmentsInner.enrolledPersonUid = AllEnrollmentsAndActiveStatus.enrolledPersonUid\n ORDER BY AllEnrollmentsInner.isActive DESC\n LIMIT 1) AS isActive\n FROM AllEnrollmentsAndActiveStatus)\n \n -- Now create a list with each students name, the coursegroupmember object if any and active status \n SELECT (Person.firstNames || ' ' || Person.lastName) AS name,\n Person.personUid,\n CourseGroupMember.*,\n PersonPicture.*,\n EnrolledStudentPersonUids.isActive AS enrolmentIsActive,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM EnrolledStudentPersonUids\n JOIN Person\n ON Person.personUid = EnrolledStudentPersonUids.enrolledPersonUid \n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid \n -- LEFT JOIN will use the most recent member in case of duplicate assignments eg if \n LEFT JOIN CourseGroupMember\n ON CourseGroupMember.cgmUid = \n (SELECT CourseGroupMember.cgmUid\n FROM CourseGroupMember\n WHERE CourseGroupMember.cgmPersonUid = EnrolledStudentPersonUids.enrolledPersonUid\n AND CourseGroupMember.cgmSetUid = CAST(? AS BIGINT) \n ORDER BY CourseGroupMember.cgmLct DESC \n LIMIT 1)\n WHERE (? = 0 OR ? = EnrolledStudentPersonUids.isActive) \n /* \n * Begin permission check - must have course view members permission, or active \n * user must be in the same group \n */ \n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 8192\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 8192\n \n ) > 0)\n )\n )\n OR EXISTS(\n SELECT 1\n FROM CourseGroupMember _CourseGroupMemberForActivePerson\n WHERE _CourseGroupMemberForActivePerson.cgmPersonUid = CAST(? AS BIGINT)\n AND _CourseGroupMemberForActivePerson.cgmGroupNumber = CourseGroupMember.cgmGroupNumber) \n )\n ORDER BY Person.firstNames, Person.lastName ASC\n ", VOID, VOID, VOID, "\n --First get a list of all enrolments - this may contains duplicates for students who leave and re-enrol\n WITH AllEnrollmentsAndActiveStatus(enrolledPersonUid, isActive) AS \n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid AS enrolledPersonUid,\n (? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft) AS isActive\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = \n CASE(?)\n WHEN 0 THEN \n (SELECT CourseGroupSet.cgsClazzUid\n FROM CourseGroupSet\n WHERE CourseGroupSet.cgsUid = ?)\n ELSE ?\n END\n \n AND ClazzEnrolment.clazzEnrolmentRole = 1000),\n --Consolidate and removes any duplicates\n EnrolledStudentPersonUids(enrolledPersonUid, isActive) AS\n (SELECT DISTINCT AllEnrollmentsAndActiveStatus.enrolledPersonUid,\n (SELECT CAST(AllEnrollmentsInner.isActive AS INTEGER)\n FROM AllEnrollmentsAndActiveStatus AllEnrollmentsInner\n WHERE AllEnrollmentsInner.enrolledPersonUid = AllEnrollmentsAndActiveStatus.enrolledPersonUid\n ORDER BY AllEnrollmentsInner.isActive DESC\n LIMIT 1) AS isActive\n FROM AllEnrollmentsAndActiveStatus)\n \n -- Now create a list with each students name, the coursegroupmember object if any and active status \n SELECT (Person.firstNames || ' ' || Person.lastName) AS name,\n Person.personUid,\n CourseGroupMember.*,\n PersonPicture.*,\n EnrolledStudentPersonUids.isActive AS enrolmentIsActive,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM EnrolledStudentPersonUids\n JOIN Person\n ON Person.personUid = EnrolledStudentPersonUids.enrolledPersonUid \n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid \n -- LEFT JOIN will use the most recent member in case of duplicate assignments eg if \n LEFT JOIN CourseGroupMember\n ON CourseGroupMember.cgmUid = \n (SELECT CourseGroupMember.cgmUid\n FROM CourseGroupMember\n WHERE CourseGroupMember.cgmPersonUid = EnrolledStudentPersonUids.enrolledPersonUid\n AND CourseGroupMember.cgmSetUid = ? \n ORDER BY CourseGroupMember.cgmLct DESC \n LIMIT 1)\n WHERE (? = 0 OR ? = EnrolledStudentPersonUids.isActive) \n /* \n * Begin permission check - must have course view members permission, or active \n * user must be in the same group \n */ \n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 8192\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 8192\n \n ) > 0)\n )\n )\n OR EXISTS(\n SELECT 1\n FROM CourseGroupMember _CourseGroupMemberForActivePerson\n WHERE _CourseGroupMemberForActivePerson.cgmPersonUid = ?\n AND _CourseGroupMemberForActivePerson.cgmGroupNumber = CourseGroupMember.cgmGroupNumber) \n )\n ORDER BY Person.firstNames, Person.lastName ASC\n \n", true); suspendResult = prepareAndUseStatementAsync(this.vcu_1.rct_1, tmp_0, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda_0(this.wcu_1, this.xcu_1, this.ycu_1, this.zcu_1, this.acv_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda).q79 = function (completion) { return new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda(this.vcu_1, this.wcu_1, this.xcu_1, this.ycu_1, this.zcu_1, this.acv_1, completion); }; function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda_0(this$0, $time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation) { var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda(this$0, $time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.bcv($completion); }; l.$arity = 0; return l; } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda($courseGroupSetUid, $groupNum, $accountPersonUid, $assignmentUid, $clazzUid, resultContinuation) { this.kcv_1 = $courseGroupSetUid; this.lcv_1 = $groupNum; this.mcv_1 = $accountPersonUid; this.ncv_1 = $assignmentUid; this.ocv_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda).qcv = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda).le = function (p1, $completion) { return this.qcv((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.pcv_1.x5i(1, this.kcv_1); this.pcv_1.w5i(2, this.lcv_1); this.pcv_1.x5i(3, this.kcv_1); this.pcv_1.x5i(4, this.mcv_1); this.pcv_1.x5i(5, this.ncv_1); this.pcv_1.w5i(6, this.lcv_1); this.pcv_1.x5i(7, this.mcv_1); this.pcv_1.x5i(8, this.ocv_1); this.pcv_1.x5i(9, this.mcv_1); this.pcv_1.x5i(10, this.mcv_1); this.pcv_1.x5i(11, this.ocv_1); this.pcv_1.x5i(12, this.mcv_1); this.pcv_1.x5i(13, this.mcv_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.pcv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda).o5g = function (_stmt, completion) { var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda(this.kcv_1, this.lcv_1, this.mcv_1, this.ncv_1, this.ocv_1, completion); i.pcv_1 = _stmt; return i; }; function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda_0($courseGroupSetUid, $groupNum, $accountPersonUid, $assignmentUid, $clazzUid, resultContinuation) { var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda($courseGroupSetUid, $groupNum, $accountPersonUid, $assignmentUid, $clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.qcv(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$188(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.zcv_1 = _this__u8e3s4; this.acw_1 = entity; } protoOf($insertAsyncCOROUTINE$188).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.zcv_1.sct_1.y5h(this.acw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseGroupMemberDao_JdbcImpl(_db) { CourseGroupMemberDao.call(this); this.rct_1 = _db; var tmp = this; tmp.sct_1 = new CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1(this); var tmp_0 = this; tmp_0.tct_1 = new CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1(this); } protoOf(CourseGroupMemberDao_JdbcImpl).icr = function (list, $completion) { return this.tct_1.b5i(list, $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl).ucs = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$188(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupMemberDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.ucs(entity instanceof CourseGroupMember ? entity : THROW_CCE(), $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl).gcr = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig("\n --First get a list of all enrolments - this may contains duplicates for students who leave and re-enrol\n WITH AllEnrollmentsAndActiveStatus(enrolledPersonUid, isActive) AS \n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid AS enrolledPersonUid,\n (CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft) AS isActive\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = \n CASE(CAST(? AS BIGINT))\n WHEN 0 THEN \n (SELECT CourseGroupSet.cgsClazzUid\n FROM CourseGroupSet\n WHERE CourseGroupSet.cgsUid = CAST(? AS BIGINT))\n ELSE CAST(? AS BIGINT)\n END\n \n AND ClazzEnrolment.clazzEnrolmentRole = 1000),\n --Consolidate and removes any duplicates\n EnrolledStudentPersonUids(enrolledPersonUid, isActive) AS\n (SELECT DISTINCT AllEnrollmentsAndActiveStatus.enrolledPersonUid,\n (SELECT CAST(AllEnrollmentsInner.isActive AS INTEGER)\n FROM AllEnrollmentsAndActiveStatus AllEnrollmentsInner\n WHERE AllEnrollmentsInner.enrolledPersonUid = AllEnrollmentsAndActiveStatus.enrolledPersonUid\n ORDER BY AllEnrollmentsInner.isActive DESC\n LIMIT 1) AS isActive\n FROM AllEnrollmentsAndActiveStatus)\n \n -- Now create a list with each students name, the coursegroupmember object if any and active status \n SELECT (Person.firstNames || ' ' || Person.lastName) AS name,\n Person.personUid,\n CourseGroupMember.*,\n PersonPicture.*,\n EnrolledStudentPersonUids.isActive AS enrolmentIsActive,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM EnrolledStudentPersonUids\n JOIN Person\n ON Person.personUid = EnrolledStudentPersonUids.enrolledPersonUid \n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid \n -- LEFT JOIN will use the most recent member in case of duplicate assignments eg if \n LEFT JOIN CourseGroupMember\n ON CourseGroupMember.cgmUid = \n (SELECT CourseGroupMember.cgmUid\n FROM CourseGroupMember\n WHERE CourseGroupMember.cgmPersonUid = EnrolledStudentPersonUids.enrolledPersonUid\n AND CourseGroupMember.cgmSetUid = CAST(? AS BIGINT) \n ORDER BY CourseGroupMember.cgmLct DESC \n LIMIT 1)\n WHERE (? = 0 OR ? = EnrolledStudentPersonUids.isActive) \n /* \n * Begin permission check - must have course view members permission, or active \n * user must be in the same group \n */ \n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 8192\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 8192\n \n ) > 0)\n )\n )\n OR EXISTS(\n SELECT 1\n FROM CourseGroupMember _CourseGroupMemberForActivePerson\n WHERE _CourseGroupMemberForActivePerson.cgmPersonUid = CAST(? AS BIGINT)\n AND _CourseGroupMemberForActivePerson.cgmGroupNumber = CourseGroupMember.cgmGroupNumber) \n )\n ORDER BY Person.firstNames, Person.lastName ASC\n ", VOID, VOID, VOID, "\n --First get a list of all enrolments - this may contains duplicates for students who leave and re-enrol\n WITH AllEnrollmentsAndActiveStatus(enrolledPersonUid, isActive) AS \n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid AS enrolledPersonUid,\n (? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft) AS isActive\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = \n CASE(?)\n WHEN 0 THEN \n (SELECT CourseGroupSet.cgsClazzUid\n FROM CourseGroupSet\n WHERE CourseGroupSet.cgsUid = ?)\n ELSE ?\n END\n \n AND ClazzEnrolment.clazzEnrolmentRole = 1000),\n --Consolidate and removes any duplicates\n EnrolledStudentPersonUids(enrolledPersonUid, isActive) AS\n (SELECT DISTINCT AllEnrollmentsAndActiveStatus.enrolledPersonUid,\n (SELECT CAST(AllEnrollmentsInner.isActive AS INTEGER)\n FROM AllEnrollmentsAndActiveStatus AllEnrollmentsInner\n WHERE AllEnrollmentsInner.enrolledPersonUid = AllEnrollmentsAndActiveStatus.enrolledPersonUid\n ORDER BY AllEnrollmentsInner.isActive DESC\n LIMIT 1) AS isActive\n FROM AllEnrollmentsAndActiveStatus)\n \n -- Now create a list with each students name, the coursegroupmember object if any and active status \n SELECT (Person.firstNames || ' ' || Person.lastName) AS name,\n Person.personUid,\n CourseGroupMember.*,\n PersonPicture.*,\n EnrolledStudentPersonUids.isActive AS enrolmentIsActive,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM EnrolledStudentPersonUids\n JOIN Person\n ON Person.personUid = EnrolledStudentPersonUids.enrolledPersonUid \n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid \n -- LEFT JOIN will use the most recent member in case of duplicate assignments eg if \n LEFT JOIN CourseGroupMember\n ON CourseGroupMember.cgmUid = \n (SELECT CourseGroupMember.cgmUid\n FROM CourseGroupMember\n WHERE CourseGroupMember.cgmPersonUid = EnrolledStudentPersonUids.enrolledPersonUid\n AND CourseGroupMember.cgmSetUid = ? \n ORDER BY CourseGroupMember.cgmLct DESC \n LIMIT 1)\n WHERE (? = 0 OR ? = EnrolledStudentPersonUids.isActive) \n /* \n * Begin permission check - must have course view members permission, or active \n * user must be in the same group \n */ \n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 8192\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 8192\n \n ) > 0)\n )\n )\n OR EXISTS(\n SELECT 1\n FROM CourseGroupMember _CourseGroupMemberForActivePerson\n WHERE _CourseGroupMemberForActivePerson.cgmPersonUid = ?\n AND _CourseGroupMemberForActivePerson.cgmGroupNumber = CourseGroupMember.cgmGroupNumber) \n )\n ORDER BY Person.firstNames, Person.lastName ASC\n \n", true); return prepareAndUseStatementAsync(this.rct_1, tmp, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda_0(time, clazzUid, cgsUid, activeFilter, accountPersonUid, null), $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl).hcr = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ClazzEnrolment', 'Person', 'PersonPicture', 'CourseGroupMember', 'CourseGroupSet']; return doorFlow(this.rct_1, tmp, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda_0(this, time, clazzUid, cgsUid, activeFilter, accountPersonUid, null)); }; protoOf(CourseGroupMemberDao_JdbcImpl).jcr = function (courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT CourseGroupMember.*, Person.*\n FROM CourseGroupMember\n JOIN Person \n ON Person.personUid = CourseGroupMember.cgmPersonUid\n WHERE ( CourseGroupMember.cgmSetUid = CAST(? AS BIGINT)\n AND CourseGroupMember.cgmGroupNumber = ?)\n AND ( /* Grant permission where the active person is in the group */ \n EXISTS(SELECT 1\n FROM CourseGroupMember CourseGroupMemberInternal\n WHERE CourseGroupMemberInternal.cgmSetUid = CAST(? AS BIGINT)\n AND CourseGroupMemberInternal.cgmPersonUid = CAST(? AS BIGINT))\n /* Grant permission where the activepersonuid is in a group assigned to mark this group */\n OR EXISTS(SELECT 1\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n AND PeerReviewerAllocation.praMarkerSubmitterUid = ?\n AND EXISTS(SELECT 1\n FROM CourseGroupMember CourseGroupMemberInternal\n WHERE CourseGroupMemberInternal.cgmSetUid = PeerReviewerAllocation.praMarkerSubmitterUid\n AND CourseGroupMemberInternal.cgmPersonUid = CAST(? AS BIGINT))) \n /* Grant permission where the active person has the select person permission for the class */ \n OR ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 8192\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 8192\n \n ) > 0)\n )\n ) \n )\n \n ', VOID, VOID, VOID, '\n SELECT CourseGroupMember.*, Person.*\n FROM CourseGroupMember\n JOIN Person \n ON Person.personUid = CourseGroupMember.cgmPersonUid\n WHERE ( CourseGroupMember.cgmSetUid = ?\n AND CourseGroupMember.cgmGroupNumber = ?)\n AND ( /* Grant permission where the active person is in the group */ \n EXISTS(SELECT 1\n FROM CourseGroupMember CourseGroupMemberInternal\n WHERE CourseGroupMemberInternal.cgmSetUid = ?\n AND CourseGroupMemberInternal.cgmPersonUid = ?)\n /* Grant permission where the activepersonuid is in a group assigned to mark this group */\n OR EXISTS(SELECT 1\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = ?\n AND PeerReviewerAllocation.praMarkerSubmitterUid = ?\n AND EXISTS(SELECT 1\n FROM CourseGroupMember CourseGroupMemberInternal\n WHERE CourseGroupMemberInternal.cgmSetUid = PeerReviewerAllocation.praMarkerSubmitterUid\n AND CourseGroupMemberInternal.cgmPersonUid = ?)) \n /* Grant permission where the active person has the select person permission for the class */ \n OR ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 8192\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 8192\n \n ) > 0)\n )\n ) \n )\n \n \n', true); return prepareAndUseStatementAsync(this.rct_1, tmp, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda_0(courseGroupSetUid, groupNum, accountPersonUid, assignmentUid, clazzUid, null), $completion); }; function CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazz$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda(this$0, $cgsUid, $clazzUid, $time, $activeFilter, $accountPersonUid, resultContinuation) { this.jcw_1 = this$0; this.kcw_1 = $cgsUid; this.lcw_1 = $clazzUid; this.mcw_1 = $time; this.ncw_1 = $activeFilter; this.ocw_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.pcw_1 = this.jcw_1.ycw_1; var tmp_1 = this; tmp_1.qcw_1 = 'CourseGroupMemberDao/findByCourseGroupSetAndClazzAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.rcw_1 = this.jcw_1.acx_1; var tmp_3 = this; tmp_3.scw_1 = this.rcw_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.jcw_1.ycw_1.t39(), 'CourseGroupMemberDao/findByCourseGroupSetAndClazzAsFlow'); doorNodeIdHeader(this_0, this.jcw_1.ycw_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'cgsUid', this.jcw_1.ycw_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.kcw_1)); parameter(this_0, 'clazzUid', this.jcw_1.ycw_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.lcw_1)); parameter(this_0, 'time', this.jcw_1.ycw_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.mcw_1)); parameter(this_0, 'activeFilter', this.jcw_1.ycw_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.ncw_1)); parameter(this_0, 'accountPersonUid', this.jcw_1.ycw_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ocw_1)); tmp_4.tcw_1 = this_0; this.tcw_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.ucw_1 = this.scw_1; var tmp_6 = this; tmp_6.vcw_1 = this.tcw_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.vcw_1, this.ucw_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.wcw_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.jcw_1.xcw_1, this.wcw_1, this.jcw_1.ycw_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda$lambda(this.pcw_1, this.qcw_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda).q79 = function (completion) { return new CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda(this.jcw_1, this.kcw_1, this.lcw_1, this.mcw_1, this.ncw_1, this.ocw_1, completion); }; function CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda_0(this$0, $cgsUid, $clazzUid, $time, $activeFilter, $accountPersonUid, resultContinuation) { var i = new CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda(this$0, $cgsUid, $clazzUid, $time, $activeFilter, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CourseGroupMemberDao_Repo$upsertListAsync$slambda(this$0, $list, resultContinuation) { this.mcx_1 = this$0; this.ncx_1 = $list; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupMemberDao_Repo$upsertListAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupMemberDao_Repo$upsertListAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CourseGroupMemberDao_Repo$upsertListAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.mcx_1.zcw_1.icr(this.ncx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseGroupMemberDao_Repo$upsertListAsync$slambda).q79 = function (completion) { return new CourseGroupMemberDao_Repo$upsertListAsync$slambda(this.mcx_1, this.ncx_1, completion); }; function CourseGroupMemberDao_Repo$upsertListAsync$slambda_0(this$0, $list, resultContinuation) { var i = new CourseGroupMemberDao_Repo$upsertListAsync$slambda(this$0, $list, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CourseGroupMemberDao_Repo$findByCourseGroupSetAndGroupNumAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseGroupMemberDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.wcx_1 = this$0; this.xcx_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupMemberDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupMemberDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(CourseGroupMemberDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.wcx_1.zcw_1.insertAsync(this.xcx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseGroupMemberDao_Repo$insertAsync$slambda).q79 = function (completion) { return new CourseGroupMemberDao_Repo$insertAsync$slambda(this.wcx_1, this.xcx_1, completion); }; function CourseGroupMemberDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new CourseGroupMemberDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $findByCourseGroupSetAndClazzCOROUTINE$191(_this__u8e3s4, cgsUid, clazzUid, time, activeFilter, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.gcy_1 = _this__u8e3s4; this.hcy_1 = cgsUid; this.icy_1 = clazzUid; this.jcy_1 = time; this.kcy_1 = activeFilter; this.lcy_1 = accountPersonUid; } protoOf($findByCourseGroupSetAndClazzCOROUTINE$191).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.mcy_1 = this.gcy_1.ycw_1; var tmp_1 = this; tmp_1.ncy_1 = 'CourseGroupMemberDao/findByCourseGroupSetAndClazz'; this.md_1 = 3; var tmp_2 = this; tmp_2.ocy_1 = this.gcy_1.acx_1; var tmp_3 = this; tmp_3.pcy_1 = this.ocy_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.gcy_1.ycw_1.t39(), 'CourseGroupMemberDao/findByCourseGroupSetAndClazz'); doorNodeIdHeader(this_0, this.gcy_1.ycw_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'cgsUid', this.gcy_1.ycw_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.hcy_1)); parameter(this_0, 'clazzUid', this.gcy_1.ycw_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.icy_1)); parameter(this_0, 'time', this.gcy_1.ycw_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.jcy_1)); parameter(this_0, 'activeFilter', this.gcy_1.ycw_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.kcy_1)); parameter(this_0, 'accountPersonUid', this.gcy_1.ycw_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.lcy_1)); tmp_4.qcy_1 = this_0; this.qcy_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.rcy_1 = this.pcy_1; var tmp_6 = this; tmp_6.scy_1 = this.qcy_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.scy_1, this.rcy_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.tcy_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.gcy_1.xcw_1, this.tcy_1, this.gcy_1.ycw_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.ucy_1 = this.od_1; Napier_getInstance().e5f(this.ucy_1, 'DoorLog', CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazz$lambda(this.mcy_1, this.ncy_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.gcy_1.zcw_1.gcr(this.hcy_1, this.icy_1, this.jcy_1, this.kcy_1, this.lcy_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $findByCourseGroupSetAndGroupNumAsyncCOROUTINE$194(_this__u8e3s4, courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dcz_1 = _this__u8e3s4; this.ecz_1 = courseGroupSetUid; this.fcz_1 = groupNum; this.gcz_1 = clazzUid; this.hcz_1 = assignmentUid; this.icz_1 = accountPersonUid; } protoOf($findByCourseGroupSetAndGroupNumAsyncCOROUTINE$194).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.jcz_1 = this.dcz_1.ycw_1; var tmp_1 = this; tmp_1.kcz_1 = 'CourseGroupMemberDao/findByCourseGroupSetAndGroupNumAsync'; this.md_1 = 3; var tmp_2 = this; tmp_2.lcz_1 = this.dcz_1.acx_1; var tmp_3 = this; tmp_3.mcz_1 = this.lcz_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.dcz_1.ycw_1.t39(), 'CourseGroupMemberDao/findByCourseGroupSetAndGroupNumAsync'); doorNodeIdHeader(this_0, this.dcz_1.ycw_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'courseGroupSetUid', this.dcz_1.ycw_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ecz_1)); parameter(this_0, 'groupNum', this.dcz_1.ycw_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.fcz_1)); parameter(this_0, 'clazzUid', this.dcz_1.ycw_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.gcz_1)); parameter(this_0, 'assignmentUid', this.dcz_1.ycw_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.hcz_1)); parameter(this_0, 'accountPersonUid', this.dcz_1.ycw_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.icz_1)); tmp_4.ncz_1 = this_0; this.ncz_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.ocz_1 = this.mcz_1; var tmp_6 = this; tmp_6.pcz_1 = this.ncz_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.pcz_1, this.ocz_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.qcz_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.dcz_1.xcw_1, this.qcz_1, this.dcz_1.ycw_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.rcz_1 = this.od_1; Napier_getInstance().e5f(this.rcz_1, 'DoorLog', CourseGroupMemberDao_Repo$findByCourseGroupSetAndGroupNumAsync$lambda(this.jcz_1, this.kcz_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.dcz_1.zcw_1.jcr(this.ecz_1, this.fcz_1, this.gcz_1, this.hcz_1, this.icz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$195(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ad0_1 = _this__u8e3s4; this.bd0_1 = entity; } protoOf($insertAsyncCOROUTINE$195).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.ad0_1.ycw_1, 'CourseGroupMember', CourseGroupMemberDao_Repo$insertAsync$slambda_0(this.ad0_1, this.bd0_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseGroupMemberDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CourseGroupMemberDao.call(this); this.xcw_1 = _db; this.ycw_1 = _repo; this.zcw_1 = _dao; this.acx_1 = _httpClient; this.bcx_1 = _clientId; this.ccx_1 = _endpoint; this.dcx_1 = new RepoDaoFlowHelper(this.ycw_1); } protoOf(CourseGroupMemberDao_Repo).gcr = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid, $completion) { var tmp = new $findByCourseGroupSetAndClazzCOROUTINE$191(this, cgsUid, clazzUid, time, activeFilter, accountPersonUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupMemberDao_Repo).hcr = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid) { var tmp = this.zcw_1.hcr(cgsUid, clazzUid, time, activeFilter, accountPersonUid); return this.dcx_1.r68(tmp, CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda_0(this, cgsUid, clazzUid, time, activeFilter, accountPersonUid, null)); }; protoOf(CourseGroupMemberDao_Repo).icr = function (list, $completion) { return withRepoChangeMonitorAsync(this.ycw_1, 'CourseGroupMember', CourseGroupMemberDao_Repo$upsertListAsync$slambda_0(this, list, null), $completion); }; protoOf(CourseGroupMemberDao_Repo).jcr = function (courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion) { var tmp = new $findByCourseGroupSetAndGroupNumAsyncCOROUTINE$194(this, courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupMemberDao_Repo).ucs = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$195(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupMemberDao_Repo).insertAsync = function (entity, $completion) { return this.ucs(entity instanceof CourseGroupMember ? entity : THROW_CCE(), $completion); }; function CourseGroupSetDao() { } function $upsertAsyncCOROUTINE$196(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.nd0_1 = _this__u8e3s4; this.od0_1 = entity; } protoOf($upsertAsyncCOROUTINE$196).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.pd0_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.nd0_1.rd0_1)); if (this.od0_1.y7z_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.pd0_1.r63(242, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.qd0_1 = suspendResult; this.od0_1.y7z_1 = this.qd0_1; this.ld_1 = 2; continue $sm; case 2: this.od0_1.d80_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.nd0_1.sd0_1.ed0(this.od0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_instance; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$197(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bd1_1 = _this__u8e3s4; this.cd1_1 = entity; } protoOf($insertAsyncCOROUTINE$197).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.dd1_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.bd1_1.rd0_1)); if (this.cd1_1.y7z_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.dd1_1.r63(242, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.ed1_1 = suspendResult; this.cd1_1.y7z_1 = this.ed1_1; this.ld_1 = 2; continue $sm; case 2: this.cd1_1.d80_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.bd1_1.sd0_1.insertAsync(this.cd1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.cd1_1.y7z_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseGroupSetDao_DoorWrapper(_db, _dao) { CourseGroupSetDao.call(this); this.rd0_1 = _db; this.sd0_1 = _dao; } protoOf(CourseGroupSetDao_DoorWrapper).cd0 = function (clazzUid, searchText, sortOrder) { return this.sd0_1.cd0(clazzUid, searchText, sortOrder); }; protoOf(CourseGroupSetDao_DoorWrapper).dd0 = function (uid, $completion) { return this.sd0_1.dd0(uid, $completion); }; protoOf(CourseGroupSetDao_DoorWrapper).r8d = function (uid) { return this.sd0_1.r8d(uid); }; protoOf(CourseGroupSetDao_DoorWrapper).ed0 = function (entity, $completion) { var tmp = new $upsertAsyncCOROUTINE$196(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupSetDao_DoorWrapper).fd1 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$197(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupSetDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.fd1(entity instanceof CourseGroupSet ? entity : THROW_CCE(), $completion); }; function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda$lambda(_result) { return mapRows(_result, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda$lambda$lambda(_result)); } function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cgsUid = $_result.b5o('cgsUid'); var _tmp_cgsName = $_result.b10('cgsName'); var _tmp_cgsTotalGroups = $_result.a5o('cgsTotalGroups'); var _tmp_cgsActive = $_result.m67('cgsActive'); var _tmp_cgsClazzUid = $_result.b5o('cgsClazzUid'); var _tmp_cgsLct = $_result.b5o('cgsLct'); // Inline function 'kotlin.apply' call var this_0 = new CourseGroupSet(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.y7z_1 = _tmp_cgsUid; this_0.z7z_1 = _tmp_cgsName; this_0.a80_1 = _tmp_cgsTotalGroups; this_0.b80_1 = _tmp_cgsActive; this_0.c80_1 = _tmp_cgsClazzUid; this_0.d80_1 = _tmp_cgsLct; return this_0; }; } function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda$lambda$lambda(_result)); } function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda($clazzUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { this.od1_1 = $clazzUid; this.pd1_1 = $searchText; this.qd1_1 = $sortOrder; this.rd1_1 = $_limit; this.sd1_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda).ud1 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda).le = function (p1, $completion) { return this.ud1((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.td1_1.x5i(1, this.od1_1); this.td1_1.a5j(2, this.pd1_1); this.td1_1.a5j(3, this.pd1_1); this.td1_1.w5i(4, this.qd1_1); this.td1_1.w5i(5, this.qd1_1); this.td1_1.w5i(6, this.rd1_1); this.td1_1.w5i(7, this.sd1_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.td1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda(this.od1_1, this.pd1_1, this.qd1_1, this.rd1_1, this.sd1_1, completion); i.td1_1 = _stmt; return i; }; function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda_0($clazzUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { var i = new CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda($clazzUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.ud1(_stmt, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda($clazzUid, $searchText, $sortOrder, resultContinuation) { this.dd2_1 = $clazzUid; this.ed2_1 = $searchText; this.fd2_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.gd2_1.x5i(1, this.dd2_1); this.gd2_1.a5j(2, this.ed2_1); this.gd2_1.a5j(3, this.ed2_1); this.gd2_1.w5i(4, this.fd2_1); this.gd2_1.w5i(5, this.fd2_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.gd2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda(this.dd2_1, this.ed2_1, this.fd2_1, completion); i.gd2_1 = _stmt; return i; }; function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda_0($clazzUid, $searchText, $sortOrder, resultContinuation) { var i = new CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda($clazzUid, $searchText, $sortOrder, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cgsUid = $_result.b5o('cgsUid'); var _tmp_cgsName = $_result.b10('cgsName'); var _tmp_cgsTotalGroups = $_result.a5o('cgsTotalGroups'); var _tmp_cgsActive = $_result.m67('cgsActive'); var _tmp_cgsClazzUid = $_result.b5o('cgsClazzUid'); var _tmp_cgsLct = $_result.b5o('cgsLct'); // Inline function 'kotlin.apply' call var this_0 = new CourseGroupSet(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupSetDao_JdbcImpl.findByUidAsync....' call this_0.y7z_1 = _tmp_cgsUid; this_0.z7z_1 = _tmp_cgsName; this_0.a80_1 = _tmp_cgsTotalGroups; this_0.b80_1 = _tmp_cgsActive; this_0.c80_1 = _tmp_cgsClazzUid; this_0.d80_1 = _tmp_cgsLct; return this_0; }; } function CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cgsUid = $_result.b5o('cgsUid'); var _tmp_cgsName = $_result.b10('cgsName'); var _tmp_cgsTotalGroups = $_result.a5o('cgsTotalGroups'); var _tmp_cgsActive = $_result.m67('cgsActive'); var _tmp_cgsClazzUid = $_result.b5o('cgsClazzUid'); var _tmp_cgsLct = $_result.b5o('cgsLct'); // Inline function 'kotlin.apply' call var this_0 = new CourseGroupSet(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupSetDao_JdbcImpl.findByUidAsFlow.....' call this_0.y7z_1 = _tmp_cgsUid; this_0.z7z_1 = _tmp_cgsName; this_0.a80_1 = _tmp_cgsTotalGroups; this_0.b80_1 = _tmp_cgsActive; this_0.c80_1 = _tmp_cgsClazzUid; this_0.d80_1 = _tmp_cgsLct; return this_0; }; } function CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda($uid, resultContinuation) { this.pd2_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda).rd2 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda).le = function (p1, $completion) { return this.rd2((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.qd2_1.x5i(1, this.pd2_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.qd2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda(this.pd2_1, completion); i.qd2_1 = _stmt; return i; }; function CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0($uid, resultContinuation) { var i = new CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.rd2(_stmt, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.sd2_1); } protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO CourseGroupSet (cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1).xd2 = function (stmt, entity) { if (entity.y7z_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.y7z_1); } stmt.a5j(2, entity.z7z_1); stmt.w5i(3, entity.a80_1); stmt.k5i(4, entity.b80_1); stmt.x5i(5, entity.c80_1); stmt.x5i(6, entity.d80_1); }; protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1).r5g = function (stmt, entity) { return this.xd2(stmt, entity instanceof CourseGroupSet ? entity : THROW_CCE()); }; function CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.sd2_1); } protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1).w5h = function (returnsId) { return 'INSERT INTO CourseGroupSet (cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1).xd2 = function (stmt, entity) { if (entity.y7z_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.y7z_1); } stmt.a5j(2, entity.z7z_1); stmt.w5i(3, entity.a80_1); stmt.k5i(4, entity.b80_1); stmt.x5i(5, entity.c80_1); stmt.x5i(6, entity.d80_1); }; protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1).r5g = function (stmt, entity) { return this.xd2(stmt, entity instanceof CourseGroupSet ? entity : THROW_CCE()); }; function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1(this$0, $clazzUid, $searchText, $sortOrder) { this.gd3_1 = this$0; this.hd3_1 = $clazzUid; this.id3_1 = $searchText; this.jd3_1 = $sortOrder; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['CourseGroupSet']; DoorLimitOffsetPagingSource.call(this, this$0.sd2_1, tmp$ret$2); } protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1).kd3 = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n SELECT *\n FROM CourseGroupSet\n WHERE cgsActive\n AND cgsClazzUid = CAST(? AS BIGINT)\n AND ((? = '%') OR (cgsName LIKE ?))\n ORDER BY CASE(?)\n WHEN 1 THEN cgsName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN cgsName\n ELSE ''\n END DESC\n ) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n SELECT *\n FROM CourseGroupSet\n WHERE cgsActive\n AND cgsClazzUid = ?\n AND ((? = '%') OR (cgsName LIKE ?))\n ORDER BY CASE(?)\n WHEN 1 THEN cgsName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN cgsName\n ELSE ''\n END DESC\n ) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.gd3_1.sd2_1, tmp, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda_0(this.hd3_1, this.id3_1, this.jd3_1, _limit, _offset, null), $completion); }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1).z5q = function (_limit, _offset, $completion) { return this.kd3(_limit, _offset, $completion); }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n SELECT *\n FROM CourseGroupSet\n WHERE cgsActive\n AND cgsClazzUid = CAST(? AS BIGINT)\n AND ((? = '%') OR (cgsName LIKE ?))\n ORDER BY CASE(?)\n WHEN 1 THEN cgsName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN cgsName\n ELSE ''\n END DESC\n ) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n SELECT *\n FROM CourseGroupSet\n WHERE cgsActive\n AND cgsClazzUid = ?\n AND ((? = '%') OR (cgsName LIKE ?))\n ORDER BY CASE(?)\n WHEN 1 THEN cgsName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN cgsName\n ELSE ''\n END DESC\n ) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.gd3_1.sd2_1, tmp, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda_0(this.hd3_1, this.id3_1, this.jd3_1, null), $completion); }; function CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) { this.td3_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda).rd2 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda).le = function (p1, $completion) { return this.rd2((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ud3_1.x5i(1, this.td3_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.ud3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda).o5g = function (_stmt, completion) { var i = new CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda(this.td3_1, completion); i.ud3_1 = _stmt; return i; }; function CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) { var i = new CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.rd2(_stmt, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $uid, resultContinuation) { this.dd4_1 = this$0; this.ed4_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda).fd4 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda).r79 = function ($completion) { return this.fd4($completion); }; protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT * \n FROM CourseGroupSet \n WHERE cgsUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT * \n FROM CourseGroupSet \n WHERE cgsUid = ?\n \n', true); suspendResult = prepareAndUseStatementAsync(this.dd4_1.sd2_1, tmp_0, CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0(this.ed4_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda).q79 = function (completion) { return new CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda(this.dd4_1, this.ed4_1, completion); }; function CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda_0(this$0, $uid, resultContinuation) { var i = new CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.fd4($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$198(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.od4_1 = _this__u8e3s4; this.pd4_1 = entity; } protoOf($insertAsyncCOROUTINE$198).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.od4_1.ud2_1.y5h(this.pd4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseGroupSetDao_JdbcImpl(_db) { CourseGroupSetDao.call(this); this.sd2_1 = _db; var tmp = this; tmp.td2_1 = new CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1(this); var tmp_0 = this; tmp_0.ud2_1 = new CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1(this); } protoOf(CourseGroupSetDao_JdbcImpl).ed0 = function (entity, $completion) { return this.td2_1.x5h(entity, $completion); }; protoOf(CourseGroupSetDao_JdbcImpl).fd1 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$198(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupSetDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.fd1(entity instanceof CourseGroupSet ? entity : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDao_JdbcImpl).cd0 = function (clazzUid, searchText, sortOrder) { return new CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1(this, clazzUid, searchText, sortOrder); }; protoOf(CourseGroupSetDao_JdbcImpl).dd0 = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT * \n FROM CourseGroupSet \n WHERE cgsUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT * \n FROM CourseGroupSet \n WHERE cgsUid = ?\n \n', true); return prepareAndUseStatementAsync(this.sd2_1, tmp, CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion); }; protoOf(CourseGroupSetDao_JdbcImpl).r8d = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseGroupSet']; return doorFlow(this.sd2_1, tmp, CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda_0(this, uid, null)); }; function CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda(this$0, $clazzUid, $searchText, $sortOrder, resultContinuation) { this.yd4_1 = this$0; this.zd4_1 = $clazzUid; this.ad5_1 = $searchText; this.bd5_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.ed5_1 = this.yd4_1.nd5_1; var tmp_1 = this; tmp_1.fd5_1 = 'CourseGroupSetDao/findAllCourseGroupSetForClazz'; this.md_1 = 4; var tmp_2 = this; tmp_2.gd5_1 = this.yd4_1.pd5_1; var tmp_3 = this; tmp_3.hd5_1 = this.gd5_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.yd4_1.nd5_1.t39(), 'CourseGroupSetDao/findAllCourseGroupSetForClazz'); doorNodeIdHeader(this_0, this.yd4_1.nd5_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.yd4_1.nd5_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.zd4_1)); parameter(this_0, 'searchText', this.yd4_1.nd5_1.t39().a67_1.b46(serializer_0(StringCompanionObject_instance), this.ad5_1)); parameter(this_0, 'sortOrder', this.yd4_1.nd5_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.bd5_1)); pagingSourceLoadParameters(this_0, this.yd4_1.nd5_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.cd5_1); tmp_4.id5_1 = this_0; this.id5_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.jd5_1 = this.hd5_1; var tmp_6 = this; tmp_6.kd5_1 = this.id5_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.kd5_1, this.jd5_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.ld5_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.yd4_1.md5_1, this.ld5_1, this.yd4_1.nd5_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.dd5_1 = endOfPaginationReached(this.ld5_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda$lambda(this.ed5_1, this.fd5_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.dd5_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda).g87 = function (_pagingParams, completion) { var i = new CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda(this.yd4_1, this.zd4_1, this.ad5_1, this.bd5_1, completion); i.cd5_1 = _pagingParams; return i; }; function CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda_0(this$0, $clazzUid, $searchText, $sortOrder, resultContinuation) { var i = new CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda(this$0, $clazzUid, $searchText, $sortOrder, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDao_Repo$findByUidAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseGroupSetDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation) { this.ad6_1 = this$0; this.bd6_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDao_Repo$upsertAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupSetDao_Repo$upsertAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CourseGroupSetDao_Repo$upsertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.ad6_1.od5_1.ed0(this.bd6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseGroupSetDao_Repo$upsertAsync$slambda).q79 = function (completion) { return new CourseGroupSetDao_Repo$upsertAsync$slambda(this.ad6_1, this.bd6_1, completion); }; function CourseGroupSetDao_Repo$upsertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new CourseGroupSetDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CourseGroupSetDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.kd6_1 = this$0; this.ld6_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupSetDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(CourseGroupSetDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.kd6_1.od5_1.insertAsync(this.ld6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseGroupSetDao_Repo$insertAsync$slambda).q79 = function (completion) { return new CourseGroupSetDao_Repo$insertAsync$slambda(this.kd6_1, this.ld6_1, completion); }; function CourseGroupSetDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new CourseGroupSetDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $findByUidAsyncCOROUTINE$202(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ud6_1 = _this__u8e3s4; this.vd6_1 = uid; } protoOf($findByUidAsyncCOROUTINE$202).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.wd6_1 = this.ud6_1.nd5_1; var tmp_1 = this; tmp_1.xd6_1 = 'CourseGroupSetDao/findByUidAsync'; this.md_1 = 3; var tmp_2 = this; tmp_2.yd6_1 = this.ud6_1.pd5_1; var tmp_3 = this; tmp_3.zd6_1 = this.yd6_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.ud6_1.nd5_1.t39(), 'CourseGroupSetDao/findByUidAsync'); doorNodeIdHeader(this_0, this.ud6_1.nd5_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this.ud6_1.nd5_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.vd6_1)); tmp_4.ad7_1 = this_0; this.ad7_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.bd7_1 = this.zd6_1; var tmp_6 = this; tmp_6.cd7_1 = this.ad7_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.cd7_1, this.bd7_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.dd7_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.ud6_1.md5_1, this.dd7_1, this.ud6_1.nd5_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.ed7_1 = this.od_1; Napier_getInstance().e5f(this.ed7_1, 'DoorLog', CourseGroupSetDao_Repo$findByUidAsync$lambda(this.wd6_1, this.xd6_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.ud6_1.od5_1.dd0(this.vd6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$203(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.nd7_1 = _this__u8e3s4; this.od7_1 = entity; } protoOf($insertAsyncCOROUTINE$203).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.nd7_1.nd5_1, 'CourseGroupSet', CourseGroupSetDao_Repo$insertAsync$slambda_0(this.nd7_1, this.od7_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseGroupSetDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CourseGroupSetDao.call(this); this.md5_1 = _db; this.nd5_1 = _repo; this.od5_1 = _dao; this.pd5_1 = _httpClient; this.qd5_1 = _clientId; this.rd5_1 = _endpoint; } protoOf(CourseGroupSetDao_Repo).cd0 = function (clazzUid, searchText, sortOrder) { var tmp = this.od5_1.cd0(clazzUid, searchText, sortOrder); return new DoorRepositoryReplicatePullPagingSource(this.nd5_1, 'CourseGroupSetDao/findAllCourseGroupSetForClazz', tmp, CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda_0(this, clazzUid, searchText, sortOrder, null)); }; protoOf(CourseGroupSetDao_Repo).dd0 = function (uid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$202(this, uid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupSetDao_Repo).r8d = function (uid) { var _result = this.od5_1.r8d(uid); return _result; }; protoOf(CourseGroupSetDao_Repo).ed0 = function (entity, $completion) { return withRepoChangeMonitorAsync(this.nd5_1, 'CourseGroupSet', CourseGroupSetDao_Repo$upsertAsync$slambda_0(this, entity, null), $completion); }; protoOf(CourseGroupSetDao_Repo).fd1 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$203(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseGroupSetDao_Repo).insertAsync = function (entity, $completion) { return this.fd1(entity instanceof CourseGroupSet ? entity : THROW_CCE(), $completion); }; function CoursePermissionDao() { } function $upsertAsyncCOROUTINE$204(_this__u8e3s4, coursePermission, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.hd8_1 = _this__u8e3s4; this.id8_1 = coursePermission; } protoOf($upsertAsyncCOROUTINE$204).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.jd8_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.hd8_1.ld8_1)); if (this.id8_1.nd8_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.jd8_1.r63(10012, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.kd8_1 = suspendResult; this.id8_1.nd8_1 = this.kd8_1; this.ld_1 = 2; continue $sm; case 2: this.id8_1.od8_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.hd8_1.md8_1.rd7(this.id8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_instance; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CoursePermissionDao_DoorWrapper(_db, _dao) { CoursePermissionDao.call(this); this.ld8_1 = _db; this.md8_1 = _dao; } protoOf(CoursePermissionDao_DoorWrapper).pd7 = function (clazzUid, includeDeleted) { return this.md8_1.pd7(clazzUid, includeDeleted); }; protoOf(CoursePermissionDao_DoorWrapper).qd7 = function (uid, clazzUid, $completion) { return this.md8_1.qd7(uid, clazzUid, $completion); }; protoOf(CoursePermissionDao_DoorWrapper).n7t = function (uid, clazzUid) { return this.md8_1.n7t(uid, clazzUid); }; protoOf(CoursePermissionDao_DoorWrapper).rd7 = function (coursePermission, $completion) { var tmp = new $upsertAsyncCOROUTINE$204(this, coursePermission, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_DoorWrapper).sbx = function (cpUid, isDeleted, updateTime, $completion) { return this.md8_1.sbx(cpUid, isDeleted, updateTime, $completion); }; protoOf(CoursePermissionDao_DoorWrapper).sd7 = function (accountPersonUid, clazzEnrolmentUid, $completion) { return this.md8_1.sd7(accountPersonUid, clazzEnrolmentUid, $completion); }; protoOf(CoursePermissionDao_DoorWrapper).td7 = function (accountPersonUid, clazzUid, permission) { return this.md8_1.td7(accountPersonUid, clazzUid, permission); }; protoOf(CoursePermissionDao_DoorWrapper).ud7 = function (accountPersonUid, clazzUid, firstPermission, secondPermission) { return this.md8_1.ud7(accountPersonUid, clazzUid, firstPermission, secondPermission); }; protoOf(CoursePermissionDao_DoorWrapper).vd7 = function (accountPersonUid, clazzUid, firstPermission, secondPermission, $completion) { return this.md8_1.vd7(accountPersonUid, clazzUid, firstPermission, secondPermission, $completion); }; protoOf(CoursePermissionDao_DoorWrapper).wd7 = function (accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission) { return this.md8_1.wd7(accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission); }; protoOf(CoursePermissionDao_DoorWrapper).xd7 = function (accountPersonUid, clazzUid, permission, $completion) { return this.md8_1.xd7(accountPersonUid, clazzUid, permission, $completion); }; protoOf(CoursePermissionDao_DoorWrapper).yd7 = function (accountPersonUid, assignmentUid, clazzUid, submitterUid) { return this.md8_1.yd7(accountPersonUid, assignmentUid, clazzUid, submitterUid); }; function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda$lambda(_result) { return mapRows(_result, CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_CoursePermission_nullCount = 0; var _tmp_cpUid = $_result.b5o('cpUid'); var tmp; if ($_result.t68()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_cpLastModified = $_result.b5o('cpLastModified'); var tmp_0; if ($_result.t68()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_cpClazzUid = $_result.b5o('cpClazzUid'); var tmp_1; if ($_result.t68()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_cpToEnrolmentRole = $_result.a5o('cpToEnrolmentRole'); var tmp_2; if ($_result.t68()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_cpToPersonUid = $_result.b5o('cpToPersonUid'); var tmp_3; if ($_result.t68()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_cpToGroupUid = $_result.b5o('cpToGroupUid'); var tmp_4; if ($_result.t68()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_cpPermissionsFlag = $_result.b5o('cpPermissionsFlag'); var tmp_5; if ($_result.t68()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_cpIsDeleted = $_result.m67('cpIsDeleted'); var tmp_6; if ($_result.t68()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_CoursePermission_isAllNull = _tmp_CoursePermission_nullCount === 8; var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.b5o('personUid'); var tmp_7; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_username = $_result.b10('username'); var tmp_8; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_firstNames = $_result.b10('firstNames'); var tmp_9; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_lastName = $_result.b10('lastName'); var tmp_10; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_emailAddr = $_result.b10('emailAddr'); var tmp_11; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_phoneNum = $_result.b10('phoneNum'); var tmp_12; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_gender = $_result.a5o('gender'); var tmp_13; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_active = $_result.m67('active'); var tmp_14; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_dateOfBirth = $_result.b5o('dateOfBirth'); var tmp_15; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_personAddress = $_result.b10('personAddress'); var tmp_16; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_personOrgId = $_result.b10('personOrgId'); var tmp_17; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_personGroupUid = $_result.b5o('personGroupUid'); var tmp_18; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_personLct = $_result.b5o('personLct'); var tmp_19; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_personCountry = $_result.b10('personCountry'); var tmp_20; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_personType = $_result.a5o('personType'); var tmp_21; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_personMasterChangeSeqNum = $_result.b5o('personMasterChangeSeqNum'); var tmp_22; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_personLocalChangeSeqNum = $_result.b5o('personLocalChangeSeqNum'); var tmp_23; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_personLastChangedBy = $_result.a5o('personLastChangedBy'); var tmp_24; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_admin = $_result.m67('admin'); var tmp_25; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_personNotes = $_result.b10('personNotes'); var tmp_26; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_fatherName = $_result.b10('fatherName'); var tmp_27; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_fatherNumber = $_result.b10('fatherNumber'); var tmp_28; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_motherName = $_result.b10('motherName'); var tmp_29; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_motherNum = $_result.b10('motherNum'); var tmp_30; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_30 = Unit_instance; } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.b5o('personPictureUid'); var tmp_31; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_31 = Unit_instance; } var _tmp_personPictureLct = $_result.b5o('personPictureLct'); var tmp_32; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_32 = Unit_instance; } var _tmp_personPictureUri = $_result.b10('personPictureUri'); var tmp_33; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_33 = Unit_instance; } var _tmp_personPictureThumbnailUri = $_result.b10('personPictureThumbnailUri'); var tmp_34; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_34 = Unit_instance; } var _tmp_fileSize = $_result.a5o('fileSize'); var tmp_35; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_35 = Unit_instance; } var _tmp_personPictureActive = $_result.m67('personPictureActive'); var tmp_36; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_36 = Unit_instance; } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new CoursePermissionAndListDetail(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call if (!_tmp_CoursePermission_isAllNull) { var tmp_37 = this_0; // Inline function 'kotlin.apply' call var this_1 = new CoursePermission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.nd8_1 = _tmp_cpUid; this_1.od8_1 = _tmp_cpLastModified; this_1.pd8_1 = _tmp_cpClazzUid; this_1.qd8_1 = _tmp_cpToEnrolmentRole; this_1.rd8_1 = _tmp_cpToPersonUid; this_1.sd8_1 = _tmp_cpToGroupUid; this_1.td8_1 = _tmp_cpPermissionsFlag; this_1.ud8_1 = _tmp_cpIsDeleted; tmp_37.vd8_1 = this_1; } if (!_tmp_Person_isAllNull) { var tmp_38 = this_0; // Inline function 'kotlin.apply' call var this_2 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_2.a97_1 = _tmp_personUid; this_2.b97_1 = _tmp_username; this_2.c97_1 = _tmp_firstNames; this_2.d97_1 = _tmp_lastName; this_2.e97_1 = _tmp_emailAddr; this_2.f97_1 = _tmp_phoneNum; this_2.g97_1 = _tmp_gender; this_2.h97_1 = _tmp_active; this_2.i97_1 = _tmp_dateOfBirth; this_2.j97_1 = _tmp_personAddress; this_2.k97_1 = _tmp_personOrgId; this_2.l97_1 = _tmp_personGroupUid; this_2.m97_1 = _tmp_personLct; this_2.n97_1 = _tmp_personCountry; this_2.o97_1 = _tmp_personType; this_2.p97_1 = _tmp_personMasterChangeSeqNum; this_2.q97_1 = _tmp_personLocalChangeSeqNum; this_2.r97_1 = _tmp_personLastChangedBy; this_2.s97_1 = _tmp_admin; this_2.t97_1 = _tmp_personNotes; this_2.u97_1 = _tmp_fatherName; this_2.v97_1 = _tmp_fatherNumber; this_2.w97_1 = _tmp_motherName; this_2.x97_1 = _tmp_motherNum; tmp_38.wd8_1 = this_2; } if (!_tmp_PersonPicture_isAllNull) { var tmp_39 = this_0; // Inline function 'kotlin.apply' call var this_3 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_3.y97_1 = _tmp_personPictureUid; this_3.z97_1 = _tmp_personPictureLct; this_3.a98_1 = _tmp_personPictureUri; this_3.b98_1 = _tmp_personPictureThumbnailUri; this_3.c98_1 = _tmp_fileSize; this_3.d98_1 = _tmp_personPictureActive; tmp_39.xd8_1 = this_3; } return this_0; }; } function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda($clazzUid, $includeDeleted, $_limit, $_offset, resultContinuation) { this.gd9_1 = $clazzUid; this.hd9_1 = $includeDeleted; this.id9_1 = $_limit; this.jd9_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda).ld9 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda).le = function (p1, $completion) { return this.ld9((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.kd9_1.x5i(1, this.gd9_1); this.kd9_1.k5i(2, this.hd9_1); this.kd9_1.w5i(3, this.id9_1); this.kd9_1.w5i(4, this.jd9_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.kd9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda(this.gd9_1, this.hd9_1, this.id9_1, this.jd9_1, completion); i.kd9_1 = _stmt; return i; }; function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda_0($clazzUid, $includeDeleted, $_limit, $_offset, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda($clazzUid, $includeDeleted, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.ld9(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda($clazzUid, $includeDeleted, resultContinuation) { this.ud9_1 = $clazzUid; this.vd9_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.wd9_1.x5i(1, this.ud9_1); this.wd9_1.k5i(2, this.vd9_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.wd9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda(this.ud9_1, this.vd9_1, completion); i.wd9_1 = _stmt; return i; }; function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda_0($clazzUid, $includeDeleted, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda($clazzUid, $includeDeleted, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda$lambda(_result) { return mapNextRow(_result, null, CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cpUid = $_result.b5o('cpUid'); var _tmp_cpLastModified = $_result.b5o('cpLastModified'); var _tmp_cpClazzUid = $_result.b5o('cpClazzUid'); var _tmp_cpToEnrolmentRole = $_result.a5o('cpToEnrolmentRole'); var _tmp_cpToPersonUid = $_result.b5o('cpToPersonUid'); var _tmp_cpToGroupUid = $_result.b5o('cpToGroupUid'); var _tmp_cpPermissionsFlag = $_result.b5o('cpPermissionsFlag'); var _tmp_cpIsDeleted = $_result.m67('cpIsDeleted'); // Inline function 'kotlin.apply' call var this_0 = new CoursePermission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.findByUidAndClazzUid....' call this_0.nd8_1 = _tmp_cpUid; this_0.od8_1 = _tmp_cpLastModified; this_0.pd8_1 = _tmp_cpClazzUid; this_0.qd8_1 = _tmp_cpToEnrolmentRole; this_0.rd8_1 = _tmp_cpToPersonUid; this_0.sd8_1 = _tmp_cpToGroupUid; this_0.td8_1 = _tmp_cpPermissionsFlag; this_0.ud8_1 = _tmp_cpIsDeleted; return this_0; }; } function CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cpUid = $_result.b5o('cpUid'); var _tmp_cpLastModified = $_result.b5o('cpLastModified'); var _tmp_cpClazzUid = $_result.b5o('cpClazzUid'); var _tmp_cpToEnrolmentRole = $_result.a5o('cpToEnrolmentRole'); var _tmp_cpToPersonUid = $_result.b5o('cpToPersonUid'); var _tmp_cpToGroupUid = $_result.b5o('cpToGroupUid'); var _tmp_cpPermissionsFlag = $_result.b5o('cpPermissionsFlag'); var _tmp_cpIsDeleted = $_result.m67('cpIsDeleted'); // Inline function 'kotlin.apply' call var this_0 = new CoursePermission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.findByUidAndClazzUidAsFlow.....' call this_0.nd8_1 = _tmp_cpUid; this_0.od8_1 = _tmp_cpLastModified; this_0.pd8_1 = _tmp_cpClazzUid; this_0.qd8_1 = _tmp_cpToEnrolmentRole; this_0.rd8_1 = _tmp_cpToPersonUid; this_0.sd8_1 = _tmp_cpToGroupUid; this_0.td8_1 = _tmp_cpPermissionsFlag; this_0.ud8_1 = _tmp_cpIsDeleted; return this_0; }; } function CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda($uid, $clazzUid, resultContinuation) { this.fda_1 = $uid; this.gda_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).ida = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).le = function (p1, $completion) { return this.ida((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.hda_1.x5i(1, this.fda_1); this.hda_1.x5i(2, this.gda_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.hda_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda(this.fda_1, this.gda_1, completion); i.hda_1 = _stmt; return i; }; function CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda_0($uid, $clazzUid, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda($uid, $clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.ida(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda$lambda(_result) { return mapNextRow(_result, false, CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda$lambda$lambda($_result) { return function (it) { return $_result.s75(1); }; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda$lambda(_result) { return mapNextRow(_result, false, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda$lambda$lambda($_result) { return function (it) { return $_result.s75(1); }; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda($clazzUid, $accountPersonUid, $permission, resultContinuation) { this.rda_1 = $clazzUid; this.sda_1 = $accountPersonUid; this.tda_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda).h9u = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda).le = function (p1, $completion) { return this.h9u((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.uda_1.x5i(1, this.rda_1); this.uda_1.x5i(2, this.sda_1); this.uda_1.x5i(3, this.rda_1); this.uda_1.x5i(4, this.sda_1); this.uda_1.x5i(5, this.sda_1); this.uda_1.x5i(6, this.rda_1); this.uda_1.x5i(7, this.sda_1); this.uda_1.x5i(8, this.tda_1); this.uda_1.x5i(9, this.sda_1); this.uda_1.x5i(10, this.tda_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.uda_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda).o5g = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda(this.rda_1, this.sda_1, this.tda_1, completion); i.uda_1 = _stmt; return i; }; function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda_0($clazzUid, $accountPersonUid, $permission, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda($clazzUid, $accountPersonUid, $permission, resultContinuation); var l = function (_stmt, $completion) { return i.h9u(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda$lambda(_result) { return mapNextRow_0(_result, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstPermission = $_result.m67('firstPermission'); var _tmp_secondPermission = $_result.m67('secondPermission'); // Inline function 'kotlin.apply' call var this_0 = new PermissionPair(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.personHasPermissionWithClazzPairAsFlow.....' call this_0.vda_1 = _tmp_firstPermission; this_0.wda_1 = _tmp_secondPermission; return this_0; }; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { this.fdb_1 = $clazzUid; this.gdb_1 = $accountPersonUid; this.hdb_1 = $firstPermission; this.idb_1 = $secondPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda).kdb = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda).le = function (p1, $completion) { return this.kdb((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.jdb_1.x5i(1, this.fdb_1); this.jdb_1.x5i(2, this.gdb_1); this.jdb_1.x5i(3, this.fdb_1); this.jdb_1.x5i(4, this.gdb_1); this.jdb_1.x5i(5, this.gdb_1); this.jdb_1.x5i(6, this.fdb_1); this.jdb_1.x5i(7, this.gdb_1); this.jdb_1.x5i(8, this.hdb_1); this.jdb_1.x5i(9, this.gdb_1); this.jdb_1.x5i(10, this.hdb_1); this.jdb_1.x5i(11, this.fdb_1); this.jdb_1.x5i(12, this.gdb_1); this.jdb_1.x5i(13, this.fdb_1); this.jdb_1.x5i(14, this.gdb_1); this.jdb_1.x5i(15, this.gdb_1); this.jdb_1.x5i(16, this.fdb_1); this.jdb_1.x5i(17, this.gdb_1); this.jdb_1.x5i(18, this.idb_1); this.jdb_1.x5i(19, this.gdb_1); this.jdb_1.x5i(20, this.idb_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.jdb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda(this.fdb_1, this.gdb_1, this.hdb_1, this.idb_1, completion); i.jdb_1 = _stmt; return i; }; function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda_0($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation); var l = function (_stmt, $completion) { return i.kdb(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda$lambda(_result) { return mapNextRow_0(_result, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstPermission = $_result.m67('firstPermission'); var _tmp_secondPermission = $_result.m67('secondPermission'); // Inline function 'kotlin.apply' call var this_0 = new PermissionPair(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.personHasPermissionWithClazzPairAsync....' call this_0.vda_1 = _tmp_firstPermission; this_0.wda_1 = _tmp_secondPermission; return this_0; }; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda$lambda(_result) { return mapNextRow_0(_result, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstPermission = $_result.m67('firstPermission'); var _tmp_secondPermission = $_result.m67('secondPermission'); var _tmp_thirdPermission = $_result.m67('thirdPermission'); // Inline function 'kotlin.apply' call var this_0 = new PermissionTriple(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.personHasPermissionWithClazzTripleAsFlow.....' call this_0.ldb_1 = _tmp_firstPermission; this_0.mdb_1 = _tmp_secondPermission; this_0.ndb_1 = _tmp_thirdPermission; return this_0; }; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation) { this.wdb_1 = $clazzUid; this.xdb_1 = $accountPersonUid; this.ydb_1 = $firstPermission; this.zdb_1 = $secondPermission; this.adc_1 = $thirdPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda).cdc = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda).le = function (p1, $completion) { return this.cdc((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.bdc_1.x5i(1, this.wdb_1); this.bdc_1.x5i(2, this.xdb_1); this.bdc_1.x5i(3, this.wdb_1); this.bdc_1.x5i(4, this.xdb_1); this.bdc_1.x5i(5, this.xdb_1); this.bdc_1.x5i(6, this.wdb_1); this.bdc_1.x5i(7, this.xdb_1); this.bdc_1.x5i(8, this.ydb_1); this.bdc_1.x5i(9, this.xdb_1); this.bdc_1.x5i(10, this.ydb_1); this.bdc_1.x5i(11, this.wdb_1); this.bdc_1.x5i(12, this.xdb_1); this.bdc_1.x5i(13, this.wdb_1); this.bdc_1.x5i(14, this.xdb_1); this.bdc_1.x5i(15, this.xdb_1); this.bdc_1.x5i(16, this.wdb_1); this.bdc_1.x5i(17, this.xdb_1); this.bdc_1.x5i(18, this.zdb_1); this.bdc_1.x5i(19, this.xdb_1); this.bdc_1.x5i(20, this.zdb_1); this.bdc_1.x5i(21, this.wdb_1); this.bdc_1.x5i(22, this.xdb_1); this.bdc_1.x5i(23, this.wdb_1); this.bdc_1.x5i(24, this.xdb_1); this.bdc_1.x5i(25, this.xdb_1); this.bdc_1.x5i(26, this.wdb_1); this.bdc_1.x5i(27, this.xdb_1); this.bdc_1.x5i(28, this.adc_1); this.bdc_1.x5i(29, this.xdb_1); this.bdc_1.x5i(30, this.adc_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.bdc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda(this.wdb_1, this.xdb_1, this.ydb_1, this.zdb_1, this.adc_1, completion); i.bdc_1 = _stmt; return i; }; function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda_0($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation); var l = function (_stmt, $completion) { return i.cdc(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda$lambda(_result) { return mapNextRow(_result, false, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda$lambda$lambda($_result) { return function (it) { return $_result.s75(1); }; } function CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda$lambda(_result) { return mapNextRow_0(_result, CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_canMark = $_result.m67('canMark'); var _tmp_canView = $_result.m67('canView'); var _tmp_canModerate = $_result.m67('canModerate'); var _tmp_activeUserSubmitterUid = $_result.b5o('activeUserSubmitterUid'); // Inline function 'kotlin.apply' call var this_0 = new AssignmentPermissionAndActiveUserSubmitterUid(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.userPermissionsForAssignmentSubmitterUid.....' call this_0.ddc_1 = _tmp_canMark; this_0.edc_1 = _tmp_canView; this_0.fdc_1 = _tmp_canModerate; this_0.gdc_1 = _tmp_activeUserSubmitterUid; return this_0; }; } function CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda($assignmentUid, $accountPersonUid, $submitterUid, $clazzUid, resultContinuation) { this.pdc_1 = $assignmentUid; this.qdc_1 = $accountPersonUid; this.rdc_1 = $submitterUid; this.sdc_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda).udc = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda).le = function (p1, $completion) { return this.udc((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.tdc_1.x5i(1, this.pdc_1); this.tdc_1.x5i(2, this.qdc_1); this.tdc_1.x5i(3, this.pdc_1); this.tdc_1.x5i(4, this.pdc_1); this.tdc_1.x5i(5, this.qdc_1); this.tdc_1.x5i(6, this.pdc_1); this.tdc_1.x5i(7, this.qdc_1); this.tdc_1.x5i(8, this.pdc_1); this.tdc_1.x5i(9, this.pdc_1); this.tdc_1.x5i(10, this.qdc_1); this.tdc_1.x5i(11, this.pdc_1); this.tdc_1.x5i(12, this.rdc_1); this.tdc_1.x5i(13, this.sdc_1); this.tdc_1.x5i(14, this.qdc_1); this.tdc_1.x5i(15, this.qdc_1); this.tdc_1.x5i(16, this.sdc_1); this.tdc_1.x5i(17, this.qdc_1); this.tdc_1.x5i(18, this.qdc_1); this.tdc_1.x5i(19, this.qdc_1); this.tdc_1.x5i(20, this.pdc_1); this.tdc_1.x5i(21, this.sdc_1); this.tdc_1.x5i(22, this.rdc_1); this.tdc_1.x5i(23, this.qdc_1); this.tdc_1.x5i(24, this.pdc_1); this.tdc_1.x5i(25, this.sdc_1); this.tdc_1.x5i(26, this.rdc_1); this.tdc_1.x5i(27, this.rdc_1); this.tdc_1.x5i(28, this.sdc_1); this.tdc_1.x5i(29, this.qdc_1); this.tdc_1.x5i(30, this.qdc_1); this.tdc_1.x5i(31, this.sdc_1); this.tdc_1.x5i(32, this.qdc_1); this.tdc_1.x5i(33, this.qdc_1); this.tdc_1.x5i(34, this.sdc_1); this.tdc_1.x5i(35, this.qdc_1); this.tdc_1.x5i(36, this.qdc_1); this.tdc_1.x5i(37, this.sdc_1); this.tdc_1.x5i(38, this.qdc_1); this.tdc_1.x5i(39, this.qdc_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.tdc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda).o5g = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda(this.pdc_1, this.qdc_1, this.rdc_1, this.sdc_1, completion); i.tdc_1 = _stmt; return i; }; function CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda_0($assignmentUid, $accountPersonUid, $submitterUid, $clazzUid, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda($assignmentUid, $accountPersonUid, $submitterUid, $clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.udc(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.vdc_1); } protoOf(CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO CoursePermission (cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1).zdc = function (stmt, entity) { if (entity.nd8_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.nd8_1); } stmt.x5i(2, entity.od8_1); stmt.x5i(3, entity.pd8_1); stmt.w5i(4, entity.qd8_1); stmt.x5i(5, entity.rd8_1); stmt.x5i(6, entity.sd8_1); stmt.x5i(7, entity.td8_1); stmt.k5i(8, entity.ud8_1); }; protoOf(CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1).r5g = function (stmt, entity) { return this.zdc(stmt, entity instanceof CoursePermission ? entity : THROW_CCE()); }; function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1(this$0, $clazzUid, $includeDeleted) { this.gdd_1 = this$0; this.hdd_1 = $clazzUid; this.idd_1 = $includeDeleted; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Person', 'PersonPicture', 'CoursePermission']; DoorLimitOffsetPagingSource.call(this, this$0.vdc_1, tmp$ret$2); } protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1).jdd = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT CoursePermission.*, Person.*, PersonPicture.*\n FROM CoursePermission\n LEFT JOIN Person\n ON Person.personUid = CoursePermission.cpToPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT) \n AND (CAST(? AS INTEGER) = 1 OR NOT CoursePermission.cpIsDeleted) \n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n SELECT CoursePermission.*, Person.*, PersonPicture.*\n FROM CoursePermission\n LEFT JOIN Person\n ON Person.personUid = CoursePermission.cpToPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE CoursePermission.cpClazzUid = ? \n AND (CAST(? AS INTEGER) = 1 OR NOT CoursePermission.cpIsDeleted) \n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.gdd_1.vdc_1, tmp, CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda_0(this.hdd_1, this.idd_1, _limit, _offset, null), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1).z5q = function (_limit, _offset, $completion) { return this.jdd(_limit, _offset, $completion); }; protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT CoursePermission.*, Person.*, PersonPicture.*\n FROM CoursePermission\n LEFT JOIN Person\n ON Person.personUid = CoursePermission.cpToPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT) \n AND (CAST(? AS INTEGER) = 1 OR NOT CoursePermission.cpIsDeleted) \n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n SELECT CoursePermission.*, Person.*, PersonPicture.*\n FROM CoursePermission\n LEFT JOIN Person\n ON Person.personUid = CoursePermission.cpToPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE CoursePermission.cpClazzUid = ? \n AND (CAST(? AS INTEGER) = 1 OR NOT CoursePermission.cpIsDeleted) \n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.gdd_1.vdc_1, tmp, CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda_0(this.hdd_1, this.idd_1, null), $completion); }; function CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda($uid, $clazzUid, resultContinuation) { this.sdd_1 = $uid; this.tdd_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda).ida = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda).le = function (p1, $completion) { return this.ida((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.udd_1.x5i(1, this.sdd_1); this.udd_1.x5i(2, this.tdd_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.udd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda).o5g = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda(this.sdd_1, this.tdd_1, completion); i.udd_1 = _stmt; return i; }; function CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda_0($uid, $clazzUid, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda($uid, $clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.ida(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation) { this.dde_1 = this$0; this.ede_1 = $uid; this.fde_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).gde = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).r79 = function ($completion) { return this.gde($completion); }; protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT CoursePermission.*\n FROM CoursePermission\n WHERE CoursePermission.cpUid = CAST(? AS BIGINT)\n AND CoursePermission.cpClazzUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT CoursePermission.*\n FROM CoursePermission\n WHERE CoursePermission.cpUid = ?\n AND CoursePermission.cpClazzUid = ? \n \n', true); suspendResult = prepareAndUseStatementAsync(this.dde_1.vdc_1, tmp_0, CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda_0(this.ede_1, this.fde_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).q79 = function (completion) { return new CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this.dde_1, this.ede_1, this.fde_1, completion); }; function CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda_0(this$0, $uid, $clazzUid, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation); var l = function ($completion) { return i.gde($completion); }; l.$arity = 0; return l; } function CoursePermissionDao_JdbcImpl$setDeleted$slambda($isDeleted, $updateTime, $cpUid, resultContinuation) { this.pde_1 = $isDeleted; this.qde_1 = $updateTime; this.rde_1 = $cpUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$setDeleted$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_JdbcImpl$setDeleted$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$setDeleted$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.sde_1.k5i(1, this.pde_1); this.sde_1.x5i(2, this.qde_1); this.sde_1.x5i(3, this.rde_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.sde_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$setDeleted$slambda).o5g = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$setDeleted$slambda(this.pde_1, this.qde_1, this.rde_1, completion); i.sde_1 = _stmt; return i; }; function CoursePermissionDao_JdbcImpl$setDeleted$slambda_0($isDeleted, $updateTime, $cpUid, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$setDeleted$slambda($isDeleted, $updateTime, $cpUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda($clazzEnrolmentUid, $accountPersonUid, resultContinuation) { this.bdf_1 = $clazzEnrolmentUid; this.cdf_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda).h9u = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda).le = function (p1, $completion) { return this.h9u((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ddf_1.x5i(1, this.bdf_1); this.ddf_1.x5i(2, this.cdf_1); this.ddf_1.x5i(3, this.cdf_1); this.ddf_1.x5i(4, this.bdf_1); this.ddf_1.x5i(5, this.cdf_1); this.ddf_1.x5i(6, this.cdf_1); this.ddf_1.x5i(7, this.bdf_1); this.ddf_1.x5i(8, this.cdf_1); this.ddf_1.x5i(9, this.bdf_1); this.ddf_1.x5i(10, this.cdf_1); this.ddf_1.x5i(11, this.bdf_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.ddf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda).o5g = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda(this.bdf_1, this.cdf_1, completion); i.ddf_1 = _stmt; return i; }; function CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda_0($clazzEnrolmentUid, $accountPersonUid, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda($clazzEnrolmentUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.h9u(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda(this$0, $clazzUid, $accountPersonUid, $permission, resultContinuation) { this.mdf_1 = this$0; this.ndf_1 = $clazzUid; this.odf_1 = $accountPersonUid; this.pdf_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda).w9v = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda).r79 = function ($completion) { return this.w9v($completion); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n \n ) \n ', VOID, VOID, VOID, '\n SELECT (? != 0 AND ? != 0)\n AND (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n \n ) \n \n', true); suspendResult = prepareAndUseStatementAsync(this.mdf_1.vdc_1, tmp_0, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda_0(this.ndf_1, this.odf_1, this.pdf_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda).q79 = function (completion) { return new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda(this.mdf_1, this.ndf_1, this.odf_1, this.pdf_1, completion); }; function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda_0(this$0, $clazzUid, $accountPersonUid, $permission, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda(this$0, $clazzUid, $accountPersonUid, $permission, resultContinuation); var l = function ($completion) { return i.w9v($completion); }; l.$arity = 0; return l; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { this.ydf_1 = this$0; this.zdf_1 = $clazzUid; this.adg_1 = $accountPersonUid; this.bdg_1 = $firstPermission; this.cdg_1 = $secondPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda).ddg = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda).r79 = function ($completion) { return this.ddg($completion); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT ( (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n )\n ) AS firstPermission,\n ( (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n )\n ) AS secondPermission\n ', VOID, VOID, VOID, '\n SELECT ( (? != 0 AND ? != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n )\n ) AS firstPermission,\n ( (? != 0 AND ? != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n )\n ) AS secondPermission\n \n', true); suspendResult = prepareAndUseStatementAsync(this.ydf_1.vdc_1, tmp_0, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda_0(this.zdf_1, this.adg_1, this.bdg_1, this.cdg_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda).q79 = function (completion) { return new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda(this.ydf_1, this.zdf_1, this.adg_1, this.bdg_1, this.cdg_1, completion); }; function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda_0(this$0, $clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation); var l = function ($completion) { return i.ddg($completion); }; l.$arity = 0; return l; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { this.mdg_1 = $clazzUid; this.ndg_1 = $accountPersonUid; this.odg_1 = $firstPermission; this.pdg_1 = $secondPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda).kdb = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda).le = function (p1, $completion) { return this.kdb((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.qdg_1.x5i(1, this.mdg_1); this.qdg_1.x5i(2, this.ndg_1); this.qdg_1.x5i(3, this.mdg_1); this.qdg_1.x5i(4, this.ndg_1); this.qdg_1.x5i(5, this.ndg_1); this.qdg_1.x5i(6, this.mdg_1); this.qdg_1.x5i(7, this.ndg_1); this.qdg_1.x5i(8, this.odg_1); this.qdg_1.x5i(9, this.ndg_1); this.qdg_1.x5i(10, this.odg_1); this.qdg_1.x5i(11, this.mdg_1); this.qdg_1.x5i(12, this.ndg_1); this.qdg_1.x5i(13, this.mdg_1); this.qdg_1.x5i(14, this.ndg_1); this.qdg_1.x5i(15, this.ndg_1); this.qdg_1.x5i(16, this.mdg_1); this.qdg_1.x5i(17, this.ndg_1); this.qdg_1.x5i(18, this.pdg_1); this.qdg_1.x5i(19, this.ndg_1); this.qdg_1.x5i(20, this.pdg_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.qdg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda).o5g = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda(this.mdg_1, this.ndg_1, this.odg_1, this.pdg_1, completion); i.qdg_1 = _stmt; return i; }; function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda_0($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation); var l = function (_stmt, $completion) { return i.kdb(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation) { this.zdg_1 = this$0; this.adh_1 = $clazzUid; this.bdh_1 = $accountPersonUid; this.cdh_1 = $firstPermission; this.ddh_1 = $secondPermission; this.edh_1 = $thirdPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda).fdh = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda).r79 = function ($completion) { return this.fdh($completion); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT ( (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n )\n ) AS firstPermission,\n ( (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n )\n ) AS secondPermission,\n ( (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n )\n ) AS thirdPermission\n ', VOID, VOID, VOID, '\n SELECT ( (? != 0 AND ? != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n )\n ) AS firstPermission,\n ( (? != 0 AND ? != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n )\n ) AS secondPermission,\n ( (? != 0 AND ? != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n )\n ) AS thirdPermission\n \n', true); suspendResult = prepareAndUseStatementAsync(this.zdg_1.vdc_1, tmp_0, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda_0(this.adh_1, this.bdh_1, this.cdh_1, this.ddh_1, this.edh_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda).q79 = function (completion) { return new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda(this.zdg_1, this.adh_1, this.bdh_1, this.cdh_1, this.ddh_1, this.edh_1, completion); }; function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda_0(this$0, $clazzUid, $accountPersonUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation); var l = function ($completion) { return i.fdh($completion); }; l.$arity = 0; return l; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda($clazzUid, $accountPersonUid, $permission, resultContinuation) { this.odh_1 = $clazzUid; this.pdh_1 = $accountPersonUid; this.qdh_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda).h9u = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda).le = function (p1, $completion) { return this.h9u((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.rdh_1.x5i(1, this.odh_1); this.rdh_1.x5i(2, this.pdh_1); this.rdh_1.x5i(3, this.odh_1); this.rdh_1.x5i(4, this.pdh_1); this.rdh_1.x5i(5, this.pdh_1); this.rdh_1.x5i(6, this.odh_1); this.rdh_1.x5i(7, this.pdh_1); this.rdh_1.x5i(8, this.qdh_1); this.rdh_1.x5i(9, this.pdh_1); this.rdh_1.x5i(10, this.qdh_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.rdh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda).o5g = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda(this.odh_1, this.pdh_1, this.qdh_1, completion); i.rdh_1 = _stmt; return i; }; function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda_0($clazzUid, $accountPersonUid, $permission, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda($clazzUid, $accountPersonUid, $permission, resultContinuation); var l = function (_stmt, $completion) { return i.h9u(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda(this$0, $assignmentUid, $accountPersonUid, $submitterUid, $clazzUid, resultContinuation) { this.adi_1 = this$0; this.bdi_1 = $assignmentUid; this.cdi_1 = $accountPersonUid; this.ddi_1 = $submitterUid; this.edi_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda).fdi = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda).r79 = function ($completion) { return this.fdi($completion); }; protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n WITH \n AccountSubmitterUid(accountSubmitterUid) AS \n (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n )\n ,\n CanMarkSubmitter(canMark) AS\n (SELECT CASE (SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n WHEN 2 THEN \n EXISTS(SELECT 1\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praToMarkerSubmitterUid = CAST(? AS BIGINT)\n AND PeerReviewerAllocation.praMarkerSubmitterUid =\n (SELECT AccountSubmitterUid.accountSubmitterUid\n FROM AccountSubmitterUid))\n ELSE ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 256\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 256\n \n ) > 0)\n )\n )\n END)\n\n \n /* Can edit */\n SELECT ( (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND (SELECT CanMarkSubmitter.canMark \n FROM CanMarkSubmitter)) AS canMark,\n /* can view */ \n ( (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND ( (SELECT CanMarkSubmitter.canMark\n FROM CanMarkSubmitter)\n OR (SELECT CAST(? AS BIGINT) = \n (SELECT AccountSubmitterUid.accountSubmitterUid\n FROM AccountSubmitterUid))\n OR ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n )) \n ) AS canView,\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 4\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 4\n \n ) > 0)\n )\n \n ) AS canModerate,\n (SELECT accountSubmitterUid\n FROM AccountSubmitterUid) AS activeUserSubmitterUid\n \n ', VOID, VOID, VOID, '\n WITH \n AccountSubmitterUid(accountSubmitterUid) AS \n (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n )\n ,\n CanMarkSubmitter(canMark) AS\n (SELECT CASE (SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n WHEN 2 THEN \n EXISTS(SELECT 1\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praToMarkerSubmitterUid = ?\n AND PeerReviewerAllocation.praMarkerSubmitterUid =\n (SELECT AccountSubmitterUid.accountSubmitterUid\n FROM AccountSubmitterUid))\n ELSE ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 256\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 256\n \n ) > 0)\n )\n )\n END)\n\n \n /* Can edit */\n SELECT ( (? != 0 AND ? != 0 AND ? != 0 AND ? != 0)\n AND (SELECT CanMarkSubmitter.canMark \n FROM CanMarkSubmitter)) AS canMark,\n /* can view */ \n ( (? != 0 AND ? != 0 AND ? != 0 AND ? != 0)\n AND ( (SELECT CanMarkSubmitter.canMark\n FROM CanMarkSubmitter)\n OR (SELECT ? = \n (SELECT AccountSubmitterUid.accountSubmitterUid\n FROM AccountSubmitterUid))\n OR ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n )) \n ) AS canView,\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 4\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 4\n \n ) > 0)\n )\n \n ) AS canModerate,\n (SELECT accountSubmitterUid\n FROM AccountSubmitterUid) AS activeUserSubmitterUid\n \n \n', true); suspendResult = prepareAndUseStatementAsync(this.adi_1.vdc_1, tmp_0, CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda_0(this.bdi_1, this.cdi_1, this.ddi_1, this.edi_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda).q79 = function (completion) { return new CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda(this.adi_1, this.bdi_1, this.cdi_1, this.ddi_1, this.edi_1, completion); }; function CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda_0(this$0, $assignmentUid, $accountPersonUid, $submitterUid, $clazzUid, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda(this$0, $assignmentUid, $accountPersonUid, $submitterUid, $clazzUid, resultContinuation); var l = function ($completion) { return i.fdi($completion); }; l.$arity = 0; return l; } function $setDeletedCOROUTINE$205(_this__u8e3s4, cpUid, isDeleted, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.odi_1 = _this__u8e3s4; this.pdi_1 = cpUid; this.qdi_1 = isDeleted; this.rdi_1 = updateTime; } protoOf($setDeletedCOROUTINE$205).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE CoursePermission\n SET cpIsDeleted = ?,\n cpLastModified = CAST(? AS BIGINT)\n WHERE cpUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE CoursePermission\n SET cpIsDeleted = ?,\n cpLastModified = ?\n WHERE cpUid = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this.odi_1.vdc_1, tmp_0, CoursePermissionDao_JdbcImpl$setDeleted$slambda_0(this.qdi_1, this.rdi_1, this.pdi_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CoursePermissionDao_JdbcImpl(_db) { CoursePermissionDao.call(this); this.vdc_1 = _db; var tmp = this; tmp.wdc_1 = new CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1(this); } protoOf(CoursePermissionDao_JdbcImpl).rd7 = function (coursePermission, $completion) { return this.wdc_1.x5h(coursePermission, $completion); }; protoOf(CoursePermissionDao_JdbcImpl).pd7 = function (clazzUid, includeDeleted) { return new CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1(this, clazzUid, includeDeleted); }; protoOf(CoursePermissionDao_JdbcImpl).qd7 = function (uid, clazzUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT CoursePermission.*\n FROM CoursePermission\n WHERE CoursePermission.cpUid = CAST(? AS BIGINT)\n AND CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT CoursePermission.*\n FROM CoursePermission\n WHERE CoursePermission.cpUid = ?\n AND CoursePermission.cpClazzUid = ?\n \n', true); return prepareAndUseStatementAsync(this.vdc_1, tmp, CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda_0(uid, clazzUid, null), $completion); }; protoOf(CoursePermissionDao_JdbcImpl).n7t = function (uid, clazzUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CoursePermission']; return doorFlow(this.vdc_1, tmp, CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda_0(this, uid, clazzUid, null)); }; protoOf(CoursePermissionDao_JdbcImpl).sbx = function (cpUid, isDeleted, updateTime, $completion) { var tmp = new $setDeletedCOROUTINE$205(this, cpUid, isDeleted, updateTime, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_JdbcImpl).sd7 = function (accountPersonUid, clazzEnrolmentUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT CASE CAST(? AS BIGINT) \n WHEN 0 THEN (SELECT EXISTS(\n SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & 2048) > 0\n AND NOT SystemPermission.spIsDeleted))\n ELSE (\n SELECT (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = (\n SELECT COALESCE(\n (SELECT _ClazzEnrolment_ForClazzUid.clazzEnrolmentClazzUid\n FROM ClazzEnrolment _ClazzEnrolment_ForClazzUid\n WHERE _ClazzEnrolment_ForClazzUid.clazzEnrolmentUid = CAST(? AS BIGINT)), 0)\n )), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = (\n SELECT COALESCE(\n (SELECT _ClazzEnrolment_ForClazzUid.clazzEnrolmentClazzUid\n FROM ClazzEnrolment _ClazzEnrolment_ForClazzUid\n WHERE _ClazzEnrolment_ForClazzUid.clazzEnrolmentUid = CAST(? AS BIGINT)), 0)\n )\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n (\n CASE (\n SELECT ClazzEnrolment.clazzEnrolmentRole\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentUid = CAST(? AS BIGINT) \n )\n WHEN 1000 THEN 8\n ELSE 8\n END \n )\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n \n (\n CASE (\n SELECT ClazzEnrolment.clazzEnrolmentRole\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentUid = CAST(? AS BIGINT) \n )\n WHEN 1000 THEN 8\n ELSE 8\n END \n )\n \n ) > 0)\n )\n \n )\n END \n ', VOID, VOID, VOID, '\n SELECT CASE ? \n WHEN 0 THEN (SELECT EXISTS(\n SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & 2048) > 0\n AND NOT SystemPermission.spIsDeleted))\n ELSE (\n SELECT (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = (\n SELECT COALESCE(\n (SELECT _ClazzEnrolment_ForClazzUid.clazzEnrolmentClazzUid\n FROM ClazzEnrolment _ClazzEnrolment_ForClazzUid\n WHERE _ClazzEnrolment_ForClazzUid.clazzEnrolmentUid = ?), 0)\n )), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = (\n SELECT COALESCE(\n (SELECT _ClazzEnrolment_ForClazzUid.clazzEnrolmentClazzUid\n FROM ClazzEnrolment _ClazzEnrolment_ForClazzUid\n WHERE _ClazzEnrolment_ForClazzUid.clazzEnrolmentUid = ?), 0)\n )\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n (\n CASE (\n SELECT ClazzEnrolment.clazzEnrolmentRole\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentUid = ? \n )\n WHEN 1000 THEN 8\n ELSE 8\n END \n )\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n \n (\n CASE (\n SELECT ClazzEnrolment.clazzEnrolmentRole\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentUid = ? \n )\n WHEN 1000 THEN 8\n ELSE 8\n END \n )\n \n ) > 0)\n )\n \n )\n END \n \n', true); return prepareAndUseStatementAsync(this.vdc_1, tmp, CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda_0(clazzEnrolmentUid, accountPersonUid, null), $completion); }; protoOf(CoursePermissionDao_JdbcImpl).td7 = function (accountPersonUid, clazzUid, permission) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Clazz', 'CoursePermission', 'ClazzEnrolment']; return doorFlow(this.vdc_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda_0(this, clazzUid, accountPersonUid, permission, null)); }; protoOf(CoursePermissionDao_JdbcImpl).ud7 = function (accountPersonUid, clazzUid, firstPermission, secondPermission) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Clazz', 'CoursePermission', 'ClazzEnrolment', 'SystemPermission']; return doorFlow(this.vdc_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda_0(this, clazzUid, accountPersonUid, firstPermission, secondPermission, null)); }; protoOf(CoursePermissionDao_JdbcImpl).vd7 = function (accountPersonUid, clazzUid, firstPermission, secondPermission, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ( (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n )\n ) AS firstPermission,\n ( (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n )\n ) AS secondPermission\n ', VOID, VOID, VOID, '\n SELECT ( (? != 0 AND ? != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n )\n ) AS firstPermission,\n ( (? != 0 AND ? != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n )\n ) AS secondPermission\n \n', true); return prepareAndUseStatementAsync(this.vdc_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda_0(clazzUid, accountPersonUid, firstPermission, secondPermission, null), $completion); }; protoOf(CoursePermissionDao_JdbcImpl).wd7 = function (accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Clazz', 'CoursePermission', 'ClazzEnrolment', 'SystemPermission']; return doorFlow(this.vdc_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda_0(this, clazzUid, accountPersonUid, firstPermission, secondPermission, thirdPermission, null)); }; protoOf(CoursePermissionDao_JdbcImpl).xd7 = function (accountPersonUid, clazzUid, permission, $completion) { var tmp = new PreparedStatementConfig('\n SELECT (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n \n ) \n ', VOID, VOID, VOID, '\n SELECT (? != 0 AND ? != 0)\n AND (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n \n ) \n \n', true); return prepareAndUseStatementAsync(this.vdc_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda_0(clazzUid, accountPersonUid, permission, null), $completion); }; protoOf(CoursePermissionDao_JdbcImpl).yd7 = function (accountPersonUid, assignmentUid, clazzUid, submitterUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ClazzAssignment', 'ClazzEnrolment', 'CourseGroupMember', 'PeerReviewerAllocation', 'CoursePermission', 'SystemPermission']; return doorFlow(this.vdc_1, tmp, CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda_0(this, assignmentUid, accountPersonUid, submitterUid, clazzUid, null)); }; function CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda(this$0, $clazzUid, $includeDeleted, resultContinuation) { this.adj_1 = this$0; this.bdj_1 = $clazzUid; this.cdj_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.fdj_1 = this.adj_1.odj_1; var tmp_1 = this; tmp_1.gdj_1 = 'CoursePermissionDao/findByClazzUidAsPagingSource'; this.md_1 = 4; var tmp_2 = this; tmp_2.hdj_1 = this.adj_1.qdj_1; var tmp_3 = this; tmp_3.idj_1 = this.hdj_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.adj_1.odj_1.t39(), 'CoursePermissionDao/findByClazzUidAsPagingSource'); doorNodeIdHeader(this_0, this.adj_1.odj_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.adj_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.bdj_1)); parameter(this_0, 'includeDeleted', this.adj_1.odj_1.t39().a67_1.b46(serializer_2(BooleanCompanionObject_instance), this.cdj_1)); pagingSourceLoadParameters(this_0, this.adj_1.odj_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.ddj_1); tmp_4.jdj_1 = this_0; this.jdj_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.kdj_1 = this.idj_1; var tmp_6 = this; tmp_6.ldj_1 = this.jdj_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.ldj_1, this.kdj_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.mdj_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.adj_1.ndj_1, this.mdj_1, this.adj_1.odj_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.edj_1 = endOfPaginationReached(this.mdj_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda$lambda(this.fdj_1, this.gdj_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.edj_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda).g87 = function (_pagingParams, completion) { var i = new CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda(this.adj_1, this.bdj_1, this.cdj_1, completion); i.ddj_1 = _pagingParams; return i; }; function CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda_0(this$0, $clazzUid, $includeDeleted, resultContinuation) { var i = new CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda(this$0, $clazzUid, $includeDeleted, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_Repo$findByUidAndClazzUid$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation) { this.cdk_1 = this$0; this.ddk_1 = $uid; this.edk_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.fdk_1 = this.cdk_1.odj_1; var tmp_1 = this; tmp_1.gdk_1 = 'CoursePermissionDao/findByUidAndClazzUidAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.hdk_1 = this.cdk_1.qdj_1; var tmp_3 = this; tmp_3.idk_1 = this.hdk_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.cdk_1.odj_1.t39(), 'CoursePermissionDao/findByUidAndClazzUidAsFlow'); doorNodeIdHeader(this_0, this.cdk_1.odj_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this.cdk_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ddk_1)); parameter(this_0, 'clazzUid', this.cdk_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.edk_1)); tmp_4.jdk_1 = this_0; this.jdk_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.kdk_1 = this.idk_1; var tmp_6 = this; tmp_6.ldk_1 = this.jdk_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.ldk_1, this.kdk_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.mdk_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.cdk_1.ndj_1, this.mdk_1, this.cdk_1.odj_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda$lambda(this.fdk_1, this.gdk_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda).q79 = function (completion) { return new CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda(this.cdk_1, this.ddk_1, this.edk_1, completion); }; function CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda_0(this$0, $uid, $clazzUid, resultContinuation) { var i = new CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CoursePermissionDao_Repo$upsertAsync$slambda(this$0, $coursePermission, resultContinuation) { this.vdk_1 = this$0; this.wdk_1 = $coursePermission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_Repo$upsertAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_Repo$upsertAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CoursePermissionDao_Repo$upsertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.vdk_1.pdj_1.rd7(this.wdk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePermissionDao_Repo$upsertAsync$slambda).q79 = function (completion) { return new CoursePermissionDao_Repo$upsertAsync$slambda(this.vdk_1, this.wdk_1, completion); }; function CoursePermissionDao_Repo$upsertAsync$slambda_0(this$0, $coursePermission, resultContinuation) { var i = new CoursePermissionDao_Repo$upsertAsync$slambda(this$0, $coursePermission, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CoursePermissionDao_Repo$setDeleted$slambda(this$0, $cpUid, $isDeleted, $updateTime, resultContinuation) { this.fdl_1 = this$0; this.gdl_1 = $cpUid; this.hdl_1 = $isDeleted; this.idl_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_Repo$setDeleted$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_Repo$setDeleted$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CoursePermissionDao_Repo$setDeleted$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.fdl_1.pdj_1.sbx(this.gdl_1, this.hdl_1, this.idl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePermissionDao_Repo$setDeleted$slambda).q79 = function (completion) { return new CoursePermissionDao_Repo$setDeleted$slambda(this.fdl_1, this.gdl_1, this.hdl_1, this.idl_1, completion); }; function CoursePermissionDao_Repo$setDeleted$slambda_0(this$0, $cpUid, $isDeleted, $updateTime, resultContinuation) { var i = new CoursePermissionDao_Repo$setDeleted$slambda(this$0, $cpUid, $isDeleted, $updateTime, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CoursePermissionDao_Repo$userHasEnrolmentEditPermission$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda(this$0, $accountPersonUid, $clazzUid, $permission, resultContinuation) { this.rdl_1 = this$0; this.sdl_1 = $accountPersonUid; this.tdl_1 = $clazzUid; this.udl_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.vdl_1 = this.rdl_1.odj_1; var tmp_1 = this; tmp_1.wdl_1 = 'CoursePermissionDao/personHasPermissionWithClazzAsFlow2'; this.md_1 = 3; var tmp_2 = this; tmp_2.xdl_1 = this.rdl_1.qdj_1; var tmp_3 = this; tmp_3.ydl_1 = this.xdl_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.rdl_1.odj_1.t39(), 'CoursePermissionDao/personHasPermissionWithClazzAsFlow2'); doorNodeIdHeader(this_0, this.rdl_1.odj_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.rdl_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.sdl_1)); parameter(this_0, 'clazzUid', this.rdl_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.tdl_1)); parameter(this_0, 'permission', this.rdl_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.udl_1)); tmp_4.zdl_1 = this_0; this.zdl_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.adm_1 = this.ydl_1; var tmp_6 = this; tmp_6.bdm_1 = this.zdl_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.bdm_1, this.adm_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.cdm_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.rdl_1.ndj_1, this.cdm_1, this.rdl_1.odj_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda$lambda(this.vdl_1, this.wdl_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda).q79 = function (completion) { return new CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda(this.rdl_1, this.sdl_1, this.tdl_1, this.udl_1, completion); }; function CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda_0(this$0, $accountPersonUid, $clazzUid, $permission, resultContinuation) { var i = new CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda(this$0, $accountPersonUid, $clazzUid, $permission, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, $firstPermission, $secondPermission, resultContinuation) { this.ldm_1 = this$0; this.mdm_1 = $accountPersonUid; this.ndm_1 = $clazzUid; this.odm_1 = $firstPermission; this.pdm_1 = $secondPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.qdm_1 = this.ldm_1.odj_1; var tmp_1 = this; tmp_1.rdm_1 = 'CoursePermissionDao/personHasPermissionWithClazzPairAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.sdm_1 = this.ldm_1.qdj_1; var tmp_3 = this; tmp_3.tdm_1 = this.sdm_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.ldm_1.odj_1.t39(), 'CoursePermissionDao/personHasPermissionWithClazzPairAsFlow'); doorNodeIdHeader(this_0, this.ldm_1.odj_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.ldm_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.mdm_1)); parameter(this_0, 'clazzUid', this.ldm_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ndm_1)); parameter(this_0, 'firstPermission', this.ldm_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.odm_1)); parameter(this_0, 'secondPermission', this.ldm_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.pdm_1)); tmp_4.udm_1 = this_0; this.udm_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.vdm_1 = this.tdm_1; var tmp_6 = this; tmp_6.wdm_1 = this.udm_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.wdm_1, this.vdm_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.xdm_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.ldm_1.ndj_1, this.xdm_1, this.ldm_1.odj_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda$lambda(this.qdm_1, this.rdm_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda).q79 = function (completion) { return new CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda(this.ldm_1, this.mdm_1, this.ndm_1, this.odm_1, this.pdm_1, completion); }; function CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda_0(this$0, $accountPersonUid, $clazzUid, $firstPermission, $secondPermission, resultContinuation) { var i = new CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, $firstPermission, $secondPermission, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation) { this.gdn_1 = this$0; this.hdn_1 = $accountPersonUid; this.idn_1 = $clazzUid; this.jdn_1 = $firstPermission; this.kdn_1 = $secondPermission; this.ldn_1 = $thirdPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.mdn_1 = this.gdn_1.odj_1; var tmp_1 = this; tmp_1.ndn_1 = 'CoursePermissionDao/personHasPermissionWithClazzTripleAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.odn_1 = this.gdn_1.qdj_1; var tmp_3 = this; tmp_3.pdn_1 = this.odn_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.gdn_1.odj_1.t39(), 'CoursePermissionDao/personHasPermissionWithClazzTripleAsFlow'); doorNodeIdHeader(this_0, this.gdn_1.odj_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.gdn_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.hdn_1)); parameter(this_0, 'clazzUid', this.gdn_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.idn_1)); parameter(this_0, 'firstPermission', this.gdn_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.jdn_1)); parameter(this_0, 'secondPermission', this.gdn_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.kdn_1)); parameter(this_0, 'thirdPermission', this.gdn_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ldn_1)); tmp_4.qdn_1 = this_0; this.qdn_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.rdn_1 = this.pdn_1; var tmp_6 = this; tmp_6.sdn_1 = this.qdn_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.sdn_1, this.rdn_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.tdn_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.gdn_1.ndj_1, this.tdn_1, this.gdn_1.odj_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda$lambda(this.mdn_1, this.ndn_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda).q79 = function (completion) { return new CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda(this.gdn_1, this.hdn_1, this.idn_1, this.jdn_1, this.kdn_1, this.ldn_1, completion); }; function CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda_0(this$0, $accountPersonUid, $clazzUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation) { var i = new CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CoursePermissionDao_Repo$personHasPermissionWithClazzAsync2$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda(this$0, $accountPersonUid, $assignmentUid, $clazzUid, $submitterUid, resultContinuation) { this.cdo_1 = this$0; this.ddo_1 = $accountPersonUid; this.edo_1 = $assignmentUid; this.fdo_1 = $clazzUid; this.gdo_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.hdo_1 = this.cdo_1.odj_1; var tmp_1 = this; tmp_1.ido_1 = 'CoursePermissionDao/userPermissionsForAssignmentSubmitterUid'; this.md_1 = 3; var tmp_2 = this; tmp_2.jdo_1 = this.cdo_1.qdj_1; var tmp_3 = this; tmp_3.kdo_1 = this.jdo_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.cdo_1.odj_1.t39(), 'CoursePermissionDao/userPermissionsForAssignmentSubmitterUid'); doorNodeIdHeader(this_0, this.cdo_1.odj_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.cdo_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ddo_1)); parameter(this_0, 'assignmentUid', this.cdo_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.edo_1)); parameter(this_0, 'clazzUid', this.cdo_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.fdo_1)); parameter(this_0, 'submitterUid', this.cdo_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.gdo_1)); tmp_4.ldo_1 = this_0; this.ldo_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.mdo_1 = this.kdo_1; var tmp_6 = this; tmp_6.ndo_1 = this.ldo_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.ndo_1, this.mdo_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.odo_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.cdo_1.ndj_1, this.odo_1, this.cdo_1.odj_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda$lambda(this.hdo_1, this.ido_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda).q79 = function (completion) { return new CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda(this.cdo_1, this.ddo_1, this.edo_1, this.fdo_1, this.gdo_1, completion); }; function CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda_0(this$0, $accountPersonUid, $assignmentUid, $clazzUid, $submitterUid, resultContinuation) { var i = new CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda(this$0, $accountPersonUid, $assignmentUid, $clazzUid, $submitterUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function $findByUidAndClazzUidCOROUTINE$206(_this__u8e3s4, uid, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.xdo_1 = _this__u8e3s4; this.ydo_1 = uid; this.zdo_1 = clazzUid; } protoOf($findByUidAndClazzUidCOROUTINE$206).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.adp_1 = this.xdo_1.odj_1; var tmp_1 = this; tmp_1.bdp_1 = 'CoursePermissionDao/findByUidAndClazzUid'; this.md_1 = 3; var tmp_2 = this; tmp_2.cdp_1 = this.xdo_1.qdj_1; var tmp_3 = this; tmp_3.ddp_1 = this.cdp_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.xdo_1.odj_1.t39(), 'CoursePermissionDao/findByUidAndClazzUid'); doorNodeIdHeader(this_0, this.xdo_1.odj_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this.xdo_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ydo_1)); parameter(this_0, 'clazzUid', this.xdo_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.zdo_1)); tmp_4.edp_1 = this_0; this.edp_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.fdp_1 = this.ddp_1; var tmp_6 = this; tmp_6.gdp_1 = this.edp_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.gdp_1, this.fdp_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hdp_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.xdo_1.ndj_1, this.hdp_1, this.xdo_1.odj_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.idp_1 = this.od_1; Napier_getInstance().e5f(this.idp_1, 'DoorLog', CoursePermissionDao_Repo$findByUidAndClazzUid$lambda(this.adp_1, this.bdp_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.xdo_1.pdj_1.qd7(this.ydo_1, this.zdo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $userHasEnrolmentEditPermissionCOROUTINE$208(_this__u8e3s4, accountPersonUid, clazzEnrolmentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.rdp_1 = _this__u8e3s4; this.sdp_1 = accountPersonUid; this.tdp_1 = clazzEnrolmentUid; } protoOf($userHasEnrolmentEditPermissionCOROUTINE$208).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.udp_1 = this.rdp_1.odj_1; var tmp_1 = this; tmp_1.vdp_1 = 'CoursePermissionDao/userHasEnrolmentEditPermission'; this.md_1 = 3; var tmp_2 = this; tmp_2.wdp_1 = this.rdp_1.qdj_1; var tmp_3 = this; tmp_3.xdp_1 = this.wdp_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.rdp_1.odj_1.t39(), 'CoursePermissionDao/userHasEnrolmentEditPermission'); doorNodeIdHeader(this_0, this.rdp_1.odj_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.rdp_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.sdp_1)); parameter(this_0, 'clazzEnrolmentUid', this.rdp_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.tdp_1)); tmp_4.ydp_1 = this_0; this.ydp_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.zdp_1 = this.xdp_1; var tmp_6 = this; tmp_6.adq_1 = this.ydp_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.adq_1, this.zdp_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.bdq_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.rdp_1.ndj_1, this.bdq_1, this.rdp_1.odj_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.cdq_1 = this.od_1; Napier_getInstance().e5f(this.cdq_1, 'DoorLog', CoursePermissionDao_Repo$userHasEnrolmentEditPermission$lambda(this.udp_1, this.vdp_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.rdp_1.pdj_1.sd7(this.sdp_1, this.tdp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $personHasPermissionWithClazzPairAsyncCOROUTINE$210(_this__u8e3s4, accountPersonUid, clazzUid, firstPermission, secondPermission, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ldq_1 = _this__u8e3s4; this.mdq_1 = accountPersonUid; this.ndq_1 = clazzUid; this.odq_1 = firstPermission; this.pdq_1 = secondPermission; } protoOf($personHasPermissionWithClazzPairAsyncCOROUTINE$210).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.qdq_1 = this.ldq_1.odj_1; var tmp_1 = this; tmp_1.rdq_1 = 'CoursePermissionDao/personHasPermissionWithClazzPairAsync'; this.md_1 = 3; var tmp_2 = this; tmp_2.sdq_1 = this.ldq_1.qdj_1; var tmp_3 = this; tmp_3.tdq_1 = this.sdq_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.ldq_1.odj_1.t39(), 'CoursePermissionDao/personHasPermissionWithClazzPairAsync'); doorNodeIdHeader(this_0, this.ldq_1.odj_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.ldq_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.mdq_1)); parameter(this_0, 'clazzUid', this.ldq_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ndq_1)); parameter(this_0, 'firstPermission', this.ldq_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.odq_1)); parameter(this_0, 'secondPermission', this.ldq_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.pdq_1)); tmp_4.udq_1 = this_0; this.udq_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.vdq_1 = this.tdq_1; var tmp_6 = this; tmp_6.wdq_1 = this.udq_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.wdq_1, this.vdq_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.xdq_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.ldq_1.ndj_1, this.xdq_1, this.ldq_1.odj_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.ydq_1 = this.od_1; Napier_getInstance().e5f(this.ydq_1, 'DoorLog', CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsync$lambda(this.qdq_1, this.rdq_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.ldq_1.pdj_1.vd7(this.mdq_1, this.ndq_1, this.odq_1, this.pdq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $personHasPermissionWithClazzAsync2COROUTINE$211(_this__u8e3s4, accountPersonUid, clazzUid, permission, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.hdr_1 = _this__u8e3s4; this.idr_1 = accountPersonUid; this.jdr_1 = clazzUid; this.kdr_1 = permission; } protoOf($personHasPermissionWithClazzAsync2COROUTINE$211).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.ldr_1 = this.hdr_1.odj_1; var tmp_1 = this; tmp_1.mdr_1 = 'CoursePermissionDao/personHasPermissionWithClazzAsync2'; this.md_1 = 3; var tmp_2 = this; tmp_2.ndr_1 = this.hdr_1.qdj_1; var tmp_3 = this; tmp_3.odr_1 = this.ndr_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.hdr_1.odj_1.t39(), 'CoursePermissionDao/personHasPermissionWithClazzAsync2'); doorNodeIdHeader(this_0, this.hdr_1.odj_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.hdr_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.idr_1)); parameter(this_0, 'clazzUid', this.hdr_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.jdr_1)); parameter(this_0, 'permission', this.hdr_1.odj_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.kdr_1)); tmp_4.pdr_1 = this_0; this.pdr_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.qdr_1 = this.odr_1; var tmp_6 = this; tmp_6.rdr_1 = this.pdr_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.rdr_1, this.qdr_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.sdr_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.hdr_1.ndj_1, this.sdr_1, this.hdr_1.odj_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.tdr_1 = this.od_1; Napier_getInstance().e5f(this.tdr_1, 'DoorLog', CoursePermissionDao_Repo$personHasPermissionWithClazzAsync2$lambda(this.ldr_1, this.mdr_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.hdr_1.pdj_1.xd7(this.idr_1, this.jdr_1, this.kdr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CoursePermissionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CoursePermissionDao.call(this); this.ndj_1 = _db; this.odj_1 = _repo; this.pdj_1 = _dao; this.qdj_1 = _httpClient; this.rdj_1 = _clientId; this.sdj_1 = _endpoint; this.tdj_1 = new RepoDaoFlowHelper(this.odj_1); } protoOf(CoursePermissionDao_Repo).pd7 = function (clazzUid, includeDeleted) { var tmp = this.pdj_1.pd7(clazzUid, includeDeleted); return new DoorRepositoryReplicatePullPagingSource(this.odj_1, 'CoursePermissionDao/findByClazzUidAsPagingSource', tmp, CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda_0(this, clazzUid, includeDeleted, null)); }; protoOf(CoursePermissionDao_Repo).qd7 = function (uid, clazzUid, $completion) { var tmp = new $findByUidAndClazzUidCOROUTINE$206(this, uid, clazzUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_Repo).n7t = function (uid, clazzUid) { var tmp = this.pdj_1.n7t(uid, clazzUid); return this.tdj_1.r68(tmp, CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda_0(this, uid, clazzUid, null)); }; protoOf(CoursePermissionDao_Repo).rd7 = function (coursePermission, $completion) { return withRepoChangeMonitorAsync(this.odj_1, 'CoursePermission', CoursePermissionDao_Repo$upsertAsync$slambda_0(this, coursePermission, null), $completion); }; protoOf(CoursePermissionDao_Repo).sbx = function (cpUid, isDeleted, updateTime, $completion) { return withRepoChangeMonitorAsync(this.odj_1, 'CoursePermission', CoursePermissionDao_Repo$setDeleted$slambda_0(this, cpUid, isDeleted, updateTime, null), $completion); }; protoOf(CoursePermissionDao_Repo).sd7 = function (accountPersonUid, clazzEnrolmentUid, $completion) { var tmp = new $userHasEnrolmentEditPermissionCOROUTINE$208(this, accountPersonUid, clazzEnrolmentUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_Repo).td7 = function (accountPersonUid, clazzUid, permission) { var tmp = this.pdj_1.td7(accountPersonUid, clazzUid, permission); return this.tdj_1.r68(tmp, CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda_0(this, accountPersonUid, clazzUid, permission, null)); }; protoOf(CoursePermissionDao_Repo).ud7 = function (accountPersonUid, clazzUid, firstPermission, secondPermission) { var tmp = this.pdj_1.ud7(accountPersonUid, clazzUid, firstPermission, secondPermission); return this.tdj_1.r68(tmp, CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda_0(this, accountPersonUid, clazzUid, firstPermission, secondPermission, null)); }; protoOf(CoursePermissionDao_Repo).vd7 = function (accountPersonUid, clazzUid, firstPermission, secondPermission, $completion) { var tmp = new $personHasPermissionWithClazzPairAsyncCOROUTINE$210(this, accountPersonUid, clazzUid, firstPermission, secondPermission, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_Repo).wd7 = function (accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission) { var tmp = this.pdj_1.wd7(accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission); return this.tdj_1.r68(tmp, CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda_0(this, accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission, null)); }; protoOf(CoursePermissionDao_Repo).xd7 = function (accountPersonUid, clazzUid, permission, $completion) { var tmp = new $personHasPermissionWithClazzAsync2COROUTINE$211(this, accountPersonUid, clazzUid, permission, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePermissionDao_Repo).yd7 = function (accountPersonUid, assignmentUid, clazzUid, submitterUid) { var tmp = this.pdj_1.yd7(accountPersonUid, assignmentUid, clazzUid, submitterUid); return this.tdj_1.r68(tmp, CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda_0(this, accountPersonUid, assignmentUid, clazzUid, submitterUid, null)); }; function CoursePictureDao() { } function $upsertAsyncCOROUTINE$213(_this__u8e3s4, coursePicture, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dds_1 = _this__u8e3s4; this.eds_1 = coursePicture; } protoOf($upsertAsyncCOROUTINE$213).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.fds_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.dds_1.hds_1)); if (this.eds_1.o8h_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.fds_1.r63(125, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.gds_1 = suspendResult; this.eds_1.o8h_1 = this.gds_1; this.ld_1 = 2; continue $sm; case 2: this.eds_1.p8h_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.dds_1.ids_1.udr(this.eds_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_instance; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CoursePictureDao_DoorWrapper(_db, _dao) { CoursePictureDao.call(this); this.hds_1 = _db; this.ids_1 = _dao; } protoOf(CoursePictureDao_DoorWrapper).udr = function (coursePicture, $completion) { var tmp = new $upsertAsyncCOROUTINE$213(this, coursePicture, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePictureDao_DoorWrapper).ib6 = function (uid, uri, thumbnailUri, time, $completion) { return this.ids_1.ib6(uid, uri, thumbnailUri, time, $completion); }; function CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.jds_1); } protoOf(CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO CoursePicture (coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive) VALUES(?, ?, ?, ?, ?)'; }; protoOf(CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1).nds = function (stmt, entity) { if (entity.o8h_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.o8h_1); } stmt.x5i(2, entity.p8h_1); stmt.a5j(3, entity.q8h_1); stmt.a5j(4, entity.r8h_1); stmt.k5i(5, entity.s8h_1); }; protoOf(CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1).r5g = function (stmt, entity) { return this.nds(stmt, entity instanceof CoursePicture ? entity : THROW_CCE()); }; function CoursePictureDao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation) { this.wds_1 = $uri; this.xds_1 = $thumbnailUri; this.yds_1 = $time; this.zds_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePictureDao_JdbcImpl$updateUri$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePictureDao_JdbcImpl$updateUri$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePictureDao_JdbcImpl$updateUri$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.adt_1.a5j(1, this.wds_1); this.adt_1.a5j(2, this.xds_1); this.adt_1.x5i(3, this.yds_1); this.adt_1.x5i(4, this.zds_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.adt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePictureDao_JdbcImpl$updateUri$slambda).o5g = function (_stmt, completion) { var i = new CoursePictureDao_JdbcImpl$updateUri$slambda(this.wds_1, this.xds_1, this.yds_1, this.zds_1, completion); i.adt_1 = _stmt; return i; }; function CoursePictureDao_JdbcImpl$updateUri$slambda_0($uri, $thumbnailUri, $time, $uid, resultContinuation) { var i = new CoursePictureDao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function $updateUriCOROUTINE$214(_this__u8e3s4, uid, uri, thumbnailUri, time, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.jdt_1 = _this__u8e3s4; this.kdt_1 = uid; this.ldt_1 = uri; this.mdt_1 = thumbnailUri; this.ndt_1 = time; } protoOf($updateUriCOROUTINE$214).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE CoursePicture\n SET coursePictureUri = ?,\n coursePictureThumbnailUri = ?,\n coursePictureLct = CAST(? AS BIGINT)\n WHERE coursePictureUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE CoursePicture\n SET coursePictureUri = ?,\n coursePictureThumbnailUri = ?,\n coursePictureLct = ?\n WHERE coursePictureUid = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this.jdt_1.jds_1, tmp_0, CoursePictureDao_JdbcImpl$updateUri$slambda_0(this.ldt_1, this.mdt_1, this.ndt_1, this.kdt_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CoursePictureDao_JdbcImpl(_db) { CoursePictureDao.call(this); this.jds_1 = _db; var tmp = this; tmp.kds_1 = new CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1(this); } protoOf(CoursePictureDao_JdbcImpl).udr = function (coursePicture, $completion) { return this.kds_1.x5h(coursePicture, $completion); }; protoOf(CoursePictureDao_JdbcImpl).ib6 = function (uid, uri, thumbnailUri, time, $completion) { var tmp = new $updateUriCOROUTINE$214(this, uid, uri, thumbnailUri, time, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function CoursePictureDao_Repo$upsertAsync$slambda(this$0, $coursePicture, resultContinuation) { this.wdt_1 = this$0; this.xdt_1 = $coursePicture; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePictureDao_Repo$upsertAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePictureDao_Repo$upsertAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CoursePictureDao_Repo$upsertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.wdt_1.adu_1.udr(this.xdt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePictureDao_Repo$upsertAsync$slambda).q79 = function (completion) { return new CoursePictureDao_Repo$upsertAsync$slambda(this.wdt_1, this.xdt_1, completion); }; function CoursePictureDao_Repo$upsertAsync$slambda_0(this$0, $coursePicture, resultContinuation) { var i = new CoursePictureDao_Repo$upsertAsync$slambda(this$0, $coursePicture, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CoursePictureDao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) { this.mdu_1 = this$0; this.ndu_1 = $uid; this.odu_1 = $uri; this.pdu_1 = $thumbnailUri; this.qdu_1 = $time; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePictureDao_Repo$updateUri$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CoursePictureDao_Repo$updateUri$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(CoursePictureDao_Repo$updateUri$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.mdu_1.adu_1.ib6(this.ndu_1, this.odu_1, this.pdu_1, this.qdu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CoursePictureDao_Repo$updateUri$slambda).q79 = function (completion) { return new CoursePictureDao_Repo$updateUri$slambda(this.mdu_1, this.ndu_1, this.odu_1, this.pdu_1, this.qdu_1, completion); }; function CoursePictureDao_Repo$updateUri$slambda_0(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) { var i = new CoursePictureDao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function CoursePictureDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CoursePictureDao.call(this); this.ydt_1 = _db; this.zdt_1 = _repo; this.adu_1 = _dao; this.bdu_1 = _httpClient; this.cdu_1 = _clientId; this.ddu_1 = _endpoint; } protoOf(CoursePictureDao_Repo).udr = function (coursePicture, $completion) { return withRepoChangeMonitorAsync(this.zdt_1, 'CoursePicture', CoursePictureDao_Repo$upsertAsync$slambda_0(this, coursePicture, null), $completion); }; protoOf(CoursePictureDao_Repo).ib6 = function (uid, uri, thumbnailUri, time, $completion) { return withRepoChangeMonitorAsync(this.zdt_1, 'CoursePicture', CoursePictureDao_Repo$updateUri$slambda_0(this, uid, uri, thumbnailUri, time, null), $completion); }; function CourseTerminologyDao() { } function $upsertAsyncCOROUTINE$215(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.edv_1 = _this__u8e3s4; this.fdv_1 = entity; } protoOf($upsertAsyncCOROUTINE$215).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.gdv_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.edv_1.idv_1)); if (this.fdv_1.k8h_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.gdv_1.r63(450, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.hdv_1 = suspendResult; this.fdv_1.k8h_1 = this.hdv_1; this.ld_1 = 2; continue $sm; case 2: this.fdv_1.n8h_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.edv_1.jdv_1.vdu(this.fdv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.fdv_1.k8h_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$216(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.sdv_1 = _this__u8e3s4; this.tdv_1 = entity; } protoOf($insertAsyncCOROUTINE$216).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.udv_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.sdv_1.idv_1)); if (this.tdv_1.k8h_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.udv_1.r63(450, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.vdv_1 = suspendResult; this.tdv_1.k8h_1 = this.vdv_1; this.ld_1 = 2; continue $sm; case 2: this.tdv_1.n8h_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.sdv_1.jdv_1.insertAsync(this.tdv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.tdv_1.k8h_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseTerminologyDao_DoorWrapper(_db, _dao) { CourseTerminologyDao.call(this); this.idv_1 = _db; this.jdv_1 = _dao; } protoOf(CourseTerminologyDao_DoorWrapper).rdu = function () { return this.jdv_1.rdu(); }; protoOf(CourseTerminologyDao_DoorWrapper).sdu = function (clazzUid, $completion) { return this.jdv_1.sdu(clazzUid, $completion); }; protoOf(CourseTerminologyDao_DoorWrapper).tdu = function (assignmentUid, $completion) { return this.jdv_1.tdu(assignmentUid, $completion); }; protoOf(CourseTerminologyDao_DoorWrapper).udu = function (uid, $completion) { return this.jdv_1.udu(uid, $completion); }; protoOf(CourseTerminologyDao_DoorWrapper).vdu = function (entity, $completion) { var tmp = new $upsertAsyncCOROUTINE$215(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseTerminologyDao_DoorWrapper).wdv = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$216(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseTerminologyDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.wdv(entity instanceof CourseTerminology ? entity : THROW_CCE(), $completion); }; function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda$lambda(_result) { return mapRows(_result, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda$lambda$lambda(_result)); } function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ctUid = $_result.b5o('ctUid'); var _tmp_ctTitle = $_result.b10('ctTitle'); var _tmp_ctTerminology = $_result.b10('ctTerminology'); var _tmp_ctLct = $_result.b5o('ctLct'); // Inline function 'kotlin.apply' call var this_0 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.k8h_1 = _tmp_ctUid; this_0.l8h_1 = _tmp_ctTitle; this_0.m8h_1 = _tmp_ctTerminology; this_0.n8h_1 = _tmp_ctLct; return this_0; }; } function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda$lambda$lambda(_result)); } function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda($_limit, $_offset, resultContinuation) { this.fdw_1 = $_limit; this.gdw_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda).idw = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda).le = function (p1, $completion) { return this.idw((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.hdw_1.w5i(1, this.fdw_1); this.hdw_1.w5i(2, this.gdw_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.hdw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda(this.fdw_1, this.gdw_1, completion); i.hdw_1 = _stmt; return i; }; function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda_0($_limit, $_offset, resultContinuation) { var i = new CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda($_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.idw(_stmt, $completion); }; l.$arity = 1; return l; } function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.rdw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda(completion); i.rdw_1 = _stmt; return i; }; function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda_0(resultContinuation) { var i = new CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda$lambda(_result) { return mapNextRow(_result, null, CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda$lambda$lambda(_result)); } function CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ctUid = $_result.b5o('ctUid'); var _tmp_ctTitle = $_result.b10('ctTitle'); var _tmp_ctTerminology = $_result.b10('ctTerminology'); var _tmp_ctLct = $_result.b5o('ctLct'); // Inline function 'kotlin.apply' call var this_0 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseTerminologyDao_JdbcImpl.getTerminologyForClazz....' call this_0.k8h_1 = _tmp_ctUid; this_0.l8h_1 = _tmp_ctTitle; this_0.m8h_1 = _tmp_ctTerminology; this_0.n8h_1 = _tmp_ctLct; return this_0; }; } function CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda$lambda(_result) { return mapNextRow(_result, null, CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda$lambda$lambda(_result)); } function CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ctUid = $_result.b5o('ctUid'); var _tmp_ctTitle = $_result.b10('ctTitle'); var _tmp_ctTerminology = $_result.b10('ctTerminology'); var _tmp_ctLct = $_result.b5o('ctLct'); // Inline function 'kotlin.apply' call var this_0 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseTerminologyDao_JdbcImpl.getTerminologyForAssignment....' call this_0.k8h_1 = _tmp_ctUid; this_0.l8h_1 = _tmp_ctTitle; this_0.m8h_1 = _tmp_ctTerminology; this_0.n8h_1 = _tmp_ctLct; return this_0; }; } function CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ctUid = $_result.b5o('ctUid'); var _tmp_ctTitle = $_result.b10('ctTitle'); var _tmp_ctTerminology = $_result.b10('ctTerminology'); var _tmp_ctLct = $_result.b5o('ctLct'); // Inline function 'kotlin.apply' call var this_0 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseTerminologyDao_JdbcImpl.findByUidAsync....' call this_0.k8h_1 = _tmp_ctUid; this_0.l8h_1 = _tmp_ctTitle; this_0.m8h_1 = _tmp_ctTerminology; this_0.n8h_1 = _tmp_ctLct; return this_0; }; } function CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.sdw_1); } protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO CourseTerminology (ctUid, ctTitle, ctTerminology, ctLct) VALUES(?, ?, ?, ?)'; }; protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1).xdw = function (stmt, entity) { if (entity.k8h_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.k8h_1); } stmt.a5j(2, entity.l8h_1); stmt.a5j(3, entity.m8h_1); stmt.x5i(4, entity.n8h_1); }; protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1).r5g = function (stmt, entity) { return this.xdw(stmt, entity instanceof CourseTerminology ? entity : THROW_CCE()); }; function CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.sdw_1); } protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1).w5h = function (returnsId) { return 'INSERT INTO CourseTerminology (ctUid, ctTitle, ctTerminology, ctLct) VALUES(?, ?, ?, ?)'; }; protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1).xdw = function (stmt, entity) { if (entity.k8h_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.k8h_1); } stmt.a5j(2, entity.l8h_1); stmt.a5j(3, entity.m8h_1); stmt.x5i(4, entity.n8h_1); }; protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1).r5g = function (stmt, entity) { return this.xdw(stmt, entity instanceof CourseTerminology ? entity : THROW_CCE()); }; function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1(this$0) { this.gdx_1 = this$0; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['CourseTerminology']; DoorLimitOffsetPagingSource.call(this, this$0.sdw_1, tmp$ret$2); } protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1).hdx = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT *\n FROM CourseTerminology\n ORDER BY ctTitle \n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.gdx_1.sdw_1, tmp, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda_0(_limit, _offset, null), $completion); }; protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1).z5q = function (_limit, _offset, $completion) { return this.hdx(_limit, _offset, $completion); }; protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT *\n FROM CourseTerminology\n ORDER BY ctTitle \n ) AS _PagingCount', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.gdx_1.sdw_1, tmp, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda_0(null), $completion); }; function CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda($clazzUid, resultContinuation) { this.qdx_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda).sdx = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda).le = function (p1, $completion) { return this.sdx((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.rdx_1.x5i(1, this.qdx_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.rdx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda).o5g = function (_stmt, completion) { var i = new CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda(this.qdx_1, completion); i.rdx_1 = _stmt; return i; }; function CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda_0($clazzUid, resultContinuation) { var i = new CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.sdx(_stmt, $completion); }; l.$arity = 1; return l; } function CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda($assignmentUid, resultContinuation) { this.bdy_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda).sdx = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda).le = function (p1, $completion) { return this.sdx((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.cdy_1.x5i(1, this.bdy_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.cdy_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda).o5g = function (_stmt, completion) { var i = new CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda(this.bdy_1, completion); i.cdy_1 = _stmt; return i; }; function CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda_0($assignmentUid, resultContinuation) { var i = new CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda($assignmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.sdx(_stmt, $completion); }; l.$arity = 1; return l; } function CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) { this.ldy_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda).sdx = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda).le = function (p1, $completion) { return this.sdx((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.mdy_1.x5i(1, this.ldy_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.mdy_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda).o5g = function (_stmt, completion) { var i = new CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda(this.ldy_1, completion); i.mdy_1 = _stmt; return i; }; function CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) { var i = new CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.sdx(_stmt, $completion); }; l.$arity = 1; return l; } function $upsertAsyncCOROUTINE$217(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.vdy_1 = _this__u8e3s4; this.wdy_1 = entity; } protoOf($upsertAsyncCOROUTINE$217).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.vdy_1.tdw_1.y5h(this.wdy_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$218(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.fdz_1 = _this__u8e3s4; this.gdz_1 = entity; } protoOf($insertAsyncCOROUTINE$218).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.fdz_1.udw_1.y5h(this.gdz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseTerminologyDao_JdbcImpl(_db) { CourseTerminologyDao.call(this); this.sdw_1 = _db; var tmp = this; tmp.tdw_1 = new CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1(this); var tmp_0 = this; tmp_0.udw_1 = new CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1(this); } protoOf(CourseTerminologyDao_JdbcImpl).vdu = function (entity, $completion) { var tmp = new $upsertAsyncCOROUTINE$217(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseTerminologyDao_JdbcImpl).wdv = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$218(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseTerminologyDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.wdv(entity instanceof CourseTerminology ? entity : THROW_CCE(), $completion); }; protoOf(CourseTerminologyDao_JdbcImpl).rdu = function () { return new CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1(this); }; protoOf(CourseTerminologyDao_JdbcImpl).sdu = function (clazzUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT *\n FROM CourseTerminology\n JOIN Clazz \n ON Clazz.clazzTerminologyUid = CourseTerminology.ctUid\n WHERE Clazz.clazzUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT *\n FROM CourseTerminology\n JOIN Clazz \n ON Clazz.clazzTerminologyUid = CourseTerminology.ctUid\n WHERE Clazz.clazzUid = ?\n \n', true); return prepareAndUseStatementAsync(this.sdw_1, tmp, CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda_0(clazzUid, null), $completion); }; protoOf(CourseTerminologyDao_JdbcImpl).tdu = function (assignmentUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT CourseTerminology.*\n FROM ClazzAssignment\n JOIN Clazz \n ON Clazz.clazzUid = ClazzAssignment.caClazzUid\n JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT) \n LIMIT 1\n ', VOID, VOID, VOID, '\n SELECT CourseTerminology.*\n FROM ClazzAssignment\n JOIN Clazz \n ON Clazz.clazzUid = ClazzAssignment.caClazzUid\n JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n WHERE ClazzAssignment.caUid = ? \n LIMIT 1\n \n', true); return prepareAndUseStatementAsync(this.sdw_1, tmp, CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda_0(assignmentUid, null), $completion); }; protoOf(CourseTerminologyDao_JdbcImpl).udu = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT * \n FROM CourseTerminology \n WHERE ctUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT * \n FROM CourseTerminology \n WHERE ctUid = ?\n \n', true); return prepareAndUseStatementAsync(this.sdw_1, tmp, CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion); }; function CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda(this$0, resultContinuation) { this.pdz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.sdz_1 = this.pdz_1.be0_1; var tmp_1 = this; tmp_1.tdz_1 = 'CourseTerminologyDao/findAllCourseTerminologyPagingSource'; this.md_1 = 4; var tmp_2 = this; tmp_2.udz_1 = this.pdz_1.de0_1; var tmp_3 = this; tmp_3.vdz_1 = this.udz_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.pdz_1.be0_1.t39(), 'CourseTerminologyDao/findAllCourseTerminologyPagingSource'); doorNodeIdHeader(this_0, this.pdz_1.be0_1); header(this_0, 'cache-control', 'no-store'); pagingSourceLoadParameters(this_0, this.pdz_1.be0_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.qdz_1); tmp_4.wdz_1 = this_0; this.wdz_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.xdz_1 = this.vdz_1; var tmp_6 = this; tmp_6.ydz_1 = this.wdz_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.ydz_1, this.xdz_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.zdz_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.pdz_1.ae0_1, this.zdz_1, this.pdz_1.be0_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.rdz_1 = endOfPaginationReached(this.zdz_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda$lambda(this.sdz_1, this.tdz_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.rdz_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda).g87 = function (_pagingParams, completion) { var i = new CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda(this.pdz_1, completion); i.qdz_1 = _pagingParams; return i; }; function CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda_0(this$0, resultContinuation) { var i = new CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda(this$0, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function CourseTerminologyDao_Repo$getTerminologyForClazz$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseTerminologyDao_Repo$findByUidAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseTerminologyDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation) { this.oe0_1 = this$0; this.pe0_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyDao_Repo$upsertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseTerminologyDao_Repo$upsertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(CourseTerminologyDao_Repo$upsertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.oe0_1.ce0_1.vdu(this.pe0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseTerminologyDao_Repo$upsertAsync$slambda).q79 = function (completion) { return new CourseTerminologyDao_Repo$upsertAsync$slambda(this.oe0_1, this.pe0_1, completion); }; function CourseTerminologyDao_Repo$upsertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new CourseTerminologyDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function CourseTerminologyDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.ye0_1 = this$0; this.ze0_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseTerminologyDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(CourseTerminologyDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.ye0_1.ce0_1.insertAsync(this.ze0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(CourseTerminologyDao_Repo$insertAsync$slambda).q79 = function (completion) { return new CourseTerminologyDao_Repo$insertAsync$slambda(this.ye0_1, this.ze0_1, completion); }; function CourseTerminologyDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new CourseTerminologyDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $getTerminologyForClazzCOROUTINE$220(_this__u8e3s4, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ie1_1 = _this__u8e3s4; this.je1_1 = clazzUid; } protoOf($getTerminologyForClazzCOROUTINE$220).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.ke1_1 = this.ie1_1.be0_1; var tmp_1 = this; tmp_1.le1_1 = 'CourseTerminologyDao/getTerminologyForClazz'; this.md_1 = 3; var tmp_2 = this; tmp_2.me1_1 = this.ie1_1.de0_1; var tmp_3 = this; tmp_3.ne1_1 = this.me1_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.ie1_1.be0_1.t39(), 'CourseTerminologyDao/getTerminologyForClazz'); doorNodeIdHeader(this_0, this.ie1_1.be0_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.ie1_1.be0_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.je1_1)); tmp_4.oe1_1 = this_0; this.oe1_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.pe1_1 = this.ne1_1; var tmp_6 = this; tmp_6.qe1_1 = this.oe1_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.qe1_1, this.pe1_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.re1_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.ie1_1.ae0_1, this.re1_1, this.ie1_1.be0_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.se1_1 = this.od_1; Napier_getInstance().e5f(this.se1_1, 'DoorLog', CourseTerminologyDao_Repo$getTerminologyForClazz$lambda(this.ke1_1, this.le1_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.ie1_1.ce0_1.sdu(this.je1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $getTerminologyForAssignmentCOROUTINE$221(_this__u8e3s4, assignmentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.be2_1 = _this__u8e3s4; this.ce2_1 = assignmentUid; } protoOf($getTerminologyForAssignmentCOROUTINE$221).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.be2_1.ce0_1.tdu(this.ce2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $findByUidAsyncCOROUTINE$222(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.le2_1 = _this__u8e3s4; this.me2_1 = uid; } protoOf($findByUidAsyncCOROUTINE$222).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.ne2_1 = this.le2_1.be0_1; var tmp_1 = this; tmp_1.oe2_1 = 'CourseTerminologyDao/findByUidAsync'; this.md_1 = 3; var tmp_2 = this; tmp_2.pe2_1 = this.le2_1.de0_1; var tmp_3 = this; tmp_3.qe2_1 = this.pe2_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.le2_1.be0_1.t39(), 'CourseTerminologyDao/findByUidAsync'); doorNodeIdHeader(this_0, this.le2_1.be0_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this.le2_1.be0_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.me2_1)); tmp_4.re2_1 = this_0; this.re2_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.se2_1 = this.qe2_1; var tmp_6 = this; tmp_6.te2_1 = this.re2_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.te2_1, this.se2_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ue2_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.le2_1.ae0_1, this.ue2_1, this.le2_1.be0_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.ve2_1 = this.od_1; Napier_getInstance().e5f(this.ve2_1, 'DoorLog', CourseTerminologyDao_Repo$findByUidAsync$lambda(this.ne2_1, this.oe2_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.le2_1.ce0_1.udu(this.me2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $upsertAsyncCOROUTINE$224(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ee3_1 = _this__u8e3s4; this.fe3_1 = entity; } protoOf($upsertAsyncCOROUTINE$224).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.ee3_1.be0_1, 'CourseTerminology', CourseTerminologyDao_Repo$upsertAsync$slambda_0(this.ee3_1, this.fe3_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$225(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.oe3_1 = _this__u8e3s4; this.pe3_1 = entity; } protoOf($insertAsyncCOROUTINE$225).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.oe3_1.be0_1, 'CourseTerminology', CourseTerminologyDao_Repo$insertAsync$slambda_0(this.oe3_1, this.pe3_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseTerminologyDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CourseTerminologyDao.call(this); this.ae0_1 = _db; this.be0_1 = _repo; this.ce0_1 = _dao; this.de0_1 = _httpClient; this.ee0_1 = _clientId; this.fe0_1 = _endpoint; } protoOf(CourseTerminologyDao_Repo).rdu = function () { var tmp = this.ce0_1.rdu(); return new DoorRepositoryReplicatePullPagingSource(this.be0_1, 'CourseTerminologyDao/findAllCourseTerminologyPagingSource', tmp, CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda_0(this, null)); }; protoOf(CourseTerminologyDao_Repo).sdu = function (clazzUid, $completion) { var tmp = new $getTerminologyForClazzCOROUTINE$220(this, clazzUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseTerminologyDao_Repo).tdu = function (assignmentUid, $completion) { var tmp = new $getTerminologyForAssignmentCOROUTINE$221(this, assignmentUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseTerminologyDao_Repo).udu = function (uid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$222(this, uid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseTerminologyDao_Repo).vdu = function (entity, $completion) { var tmp = new $upsertAsyncCOROUTINE$224(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseTerminologyDao_Repo).wdv = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$225(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(CourseTerminologyDao_Repo).insertAsync = function (entity, $completion) { return this.wdv(entity instanceof CourseTerminology ? entity : THROW_CCE(), $completion); }; function DeletedItemDao() { } function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda$lambda(_result) { return mapRows(_result, DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda$lambda$lambda(_result)); } function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_delItemUid = $_result.b5o('delItemUid'); var _tmp_delItemName = $_result.b10('delItemName'); var _tmp_delItemIconUri = $_result.b10('delItemIconUri'); var _tmp_delItemLastModTime = $_result.b5o('delItemLastModTime'); var _tmp_delItemTimeDeleted = $_result.b5o('delItemTimeDeleted'); var _tmp_delItemEntityTable = $_result.a5o('delItemEntityTable'); var _tmp_delItemEntityUid = $_result.b5o('delItemEntityUid'); var _tmp_delItemDeletedByPersonUid = $_result.b5o('delItemDeletedByPersonUid'); var _tmp_delItemStatus = $_result.a5o('delItemStatus'); var _tmp_delItemIsFolder = $_result.m67('delItemIsFolder'); // Inline function 'kotlin.apply' call var this_0 = new DeletedItem(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.te3_1 = _tmp_delItemUid; this_0.ue3_1 = _tmp_delItemName; this_0.ve3_1 = _tmp_delItemIconUri; this_0.we3_1 = _tmp_delItemLastModTime; this_0.xe3_1 = _tmp_delItemTimeDeleted; this_0.ye3_1 = _tmp_delItemEntityTable; this_0.ze3_1 = _tmp_delItemEntityUid; this_0.ae4_1 = _tmp_delItemDeletedByPersonUid; this_0.be4_1 = _tmp_delItemStatus; this_0.ce4_1 = _tmp_delItemIsFolder; return this_0; }; } function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda$lambda$lambda(_result)); } function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda($includeActionedItems, $personUid, $_limit, $_offset, resultContinuation) { this.le4_1 = $includeActionedItems; this.me4_1 = $personUid; this.ne4_1 = $_limit; this.oe4_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda).qe4 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda).le = function (p1, $completion) { return this.qe4((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.pe4_1.k5i(1, this.le4_1); this.pe4_1.x5i(2, this.me4_1); this.pe4_1.w5i(3, this.ne4_1); this.pe4_1.w5i(4, this.oe4_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.pe4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda(this.le4_1, this.me4_1, this.ne4_1, this.oe4_1, completion); i.pe4_1 = _stmt; return i; }; function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda_0($includeActionedItems, $personUid, $_limit, $_offset, resultContinuation) { var i = new DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda($includeActionedItems, $personUid, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.qe4(_stmt, $completion); }; l.$arity = 1; return l; } function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda($includeActionedItems, $personUid, resultContinuation) { this.ze4_1 = $includeActionedItems; this.ae5_1 = $personUid; CoroutineImpl.call(this, resultContinuation); } protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.be5_1.k5i(1, this.ze4_1); this.be5_1.x5i(2, this.ae5_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.be5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda(this.ze4_1, this.ae5_1, completion); i.be5_1 = _stmt; return i; }; function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda_0($includeActionedItems, $personUid, resultContinuation) { var i = new DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda($includeActionedItems, $personUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda($cepcjUid, $time, $deletedByPersonUid, resultContinuation) { this.ke5_1 = $cepcjUid; this.le5_1 = $time; this.me5_1 = $deletedByPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ne5_1.x5i(1, this.ke5_1); this.ne5_1.x5i(2, this.le5_1); this.ne5_1.x5i(3, this.le5_1); this.ne5_1.x5i(4, this.ke5_1); this.ne5_1.x5i(5, this.me5_1); this.ne5_1.x5i(6, this.ke5_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.ne5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda).o5g = function (_stmt, completion) { var i = new DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda(this.ke5_1, this.le5_1, this.me5_1, completion); i.ne5_1 = _stmt; return i; }; function DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda_0($cepcjUid, $time, $deletedByPersonUid, resultContinuation) { var i = new DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda($cepcjUid, $time, $deletedByPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1(this$0, $includeActionedItems, $personUid) { this.ue5_1 = this$0; this.ve5_1 = $includeActionedItems; this.we5_1 = $personUid; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['DeletedItem']; DoorLimitOffsetPagingSource.call(this, this$0.xe5_1, tmp$ret$2); } protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1).ye5 = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT DeletedItem.*\n FROM DeletedItem\n WHERE ( (CAST(? AS INTEGER) = 1)\n OR DeletedItem.delItemStatus = 1)\n AND DeletedItem.delItemDeletedByPersonUid = CAST(? AS BIGINT) \n ORDER BY DeletedItem.delItemTimeDeleted DESC \n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n SELECT DeletedItem.*\n FROM DeletedItem\n WHERE ( (CAST(? AS INTEGER) = 1)\n OR DeletedItem.delItemStatus = 1)\n AND DeletedItem.delItemDeletedByPersonUid = ? \n ORDER BY DeletedItem.delItemTimeDeleted DESC \n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.ue5_1.xe5_1, tmp, DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda_0(this.ve5_1, this.we5_1, _limit, _offset, null), $completion); }; protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1).z5q = function (_limit, _offset, $completion) { return this.ye5(_limit, _offset, $completion); }; protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT DeletedItem.*\n FROM DeletedItem\n WHERE ( (CAST(? AS INTEGER) = 1)\n OR DeletedItem.delItemStatus = 1)\n AND DeletedItem.delItemDeletedByPersonUid = CAST(? AS BIGINT) \n ORDER BY DeletedItem.delItemTimeDeleted DESC \n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n SELECT DeletedItem.*\n FROM DeletedItem\n WHERE ( (CAST(? AS INTEGER) = 1)\n OR DeletedItem.delItemStatus = 1)\n AND DeletedItem.delItemDeletedByPersonUid = ? \n ORDER BY DeletedItem.delItemTimeDeleted DESC \n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.ue5_1.xe5_1, tmp, DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda_0(this.ve5_1, this.we5_1, null), $completion); }; function DeletedItemDao_JdbcImpl$updateStatusByUids$slambda($newStatus, $updateTime, $uidList, resultContinuation) { this.he6_1 = $newStatus; this.ie6_1 = $updateTime; this.je6_1 = $uidList; CoroutineImpl.call(this, resultContinuation); } protoOf(DeletedItemDao_JdbcImpl$updateStatusByUids$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DeletedItemDao_JdbcImpl$updateStatusByUids$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DeletedItemDao_JdbcImpl$updateStatusByUids$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ke6_1.w5i(1, this.he6_1); this.ke6_1.x5i(2, this.ie6_1); var tmp_0 = this.ke6_1.t5h(); var this_0 = this.je6_1; this.ke6_1.b5j(3, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.ke6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(DeletedItemDao_JdbcImpl$updateStatusByUids$slambda).o5g = function (_stmt, completion) { var i = new DeletedItemDao_JdbcImpl$updateStatusByUids$slambda(this.he6_1, this.ie6_1, this.je6_1, completion); i.ke6_1 = _stmt; return i; }; function DeletedItemDao_JdbcImpl$updateStatusByUids$slambda_0($newStatus, $updateTime, $uidList, resultContinuation) { var i = new DeletedItemDao_JdbcImpl$updateStatusByUids$slambda($newStatus, $updateTime, $uidList, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function $insertDeletedItemForContentEntryParentChildJoinCOROUTINE$226(_this__u8e3s4, cepcjUid, time, deletedByPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.te6_1 = _this__u8e3s4; this.ue6_1 = cepcjUid; this.ve6_1 = time; this.we6_1 = deletedByPersonUid; } protoOf($insertDeletedItemForContentEntryParentChildJoinCOROUTINE$226).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n INSERT INTO DeletedItem(delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder)\n SELECT (SELECT ContentEntry.title\n FROM ContentEntry\n WHERE ContentEntry.contentEntryUid = \n (SELECT ContentEntryParentChildJoin.cepcjChildContentEntryUid\n FROM ContentEntryParentChildJoin\n WHERE ContentEntryParentChildJoin.cepcjUid = CAST(? AS BIGINT))) AS delItemName,\n NULL as delItemIconUri,\n CAST(? AS BIGINT) AS delItemLastModTime,\n CAST(? AS BIGINT) AS delItemTimeDeleted,\n 7 AS delItemEntityTable,\n CAST(? AS BIGINT) AS delItemEntityUid,\n CAST(? AS BIGINT) AS delItemDeletedByPersonUid,\n 1 AS delItemStatus,\n (SELECT NOT ContentEntry.leaf\n FROM ContentEntry\n WHERE ContentEntry.contentEntryUid = \n (SELECT ContentEntryParentChildJoin.cepcjChildContentEntryUid\n FROM ContentEntryParentChildJoin\n WHERE ContentEntryParentChildJoin.cepcjUid = CAST(? AS BIGINT))) AS delItemIsFolder\n ', VOID, VOID, VOID, '\n INSERT INTO DeletedItem(delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder)\n SELECT (SELECT ContentEntry.title\n FROM ContentEntry\n WHERE ContentEntry.contentEntryUid = \n (SELECT ContentEntryParentChildJoin.cepcjChildContentEntryUid\n FROM ContentEntryParentChildJoin\n WHERE ContentEntryParentChildJoin.cepcjUid = ?)) AS delItemName,\n NULL as delItemIconUri,\n ? AS delItemLastModTime,\n ? AS delItemTimeDeleted,\n 7 AS delItemEntityTable,\n ? AS delItemEntityUid,\n ? AS delItemDeletedByPersonUid,\n 1 AS delItemStatus,\n (SELECT NOT ContentEntry.leaf\n FROM ContentEntry\n WHERE ContentEntry.contentEntryUid = \n (SELECT ContentEntryParentChildJoin.cepcjChildContentEntryUid\n FROM ContentEntryParentChildJoin\n WHERE ContentEntryParentChildJoin.cepcjUid = ?)) AS delItemIsFolder\n \n', false); suspendResult = prepareAndUseStatementAsync(this.te6_1.xe5_1, tmp_0, DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda_0(this.ue6_1, this.ve6_1, this.we6_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateStatusByUidsCOROUTINE$227(_this__u8e3s4, uidList, newStatus, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.fe7_1 = _this__u8e3s4; this.ge7_1 = uidList; this.he7_1 = newStatus; this.ie7_1 = updateTime; } protoOf($updateStatusByUidsCOROUTINE$227).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE DeletedItem\n SET delItemStatus = ?,\n delItemLastModTime = CAST(? AS BIGINT)\n WHERE delItemUid IN (?)\n ', true, VOID, VOID, '\n UPDATE DeletedItem\n SET delItemStatus = ?,\n delItemLastModTime = ?\n WHERE delItemUid IN (?)\n \n', false); suspendResult = prepareAndUseStatementAsync(this.fe7_1.xe5_1, tmp_0, DeletedItemDao_JdbcImpl$updateStatusByUids$slambda_0(this.he7_1, this.ie7_1, this.ge7_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function DeletedItemDao_JdbcImpl(_db) { DeletedItemDao.call(this); this.xe5_1 = _db; } protoOf(DeletedItemDao_JdbcImpl).qe3 = function (cepcjUid, time, deletedByPersonUid, $completion) { var tmp = new $insertDeletedItemForContentEntryParentChildJoinCOROUTINE$226(this, cepcjUid, time, deletedByPersonUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DeletedItemDao_JdbcImpl).re3 = function (personUid, includeActionedItems) { return new DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1(this, includeActionedItems, personUid); }; protoOf(DeletedItemDao_JdbcImpl).se3 = function (uidList, newStatus, updateTime, $completion) { var tmp = new $updateStatusByUidsCOROUTINE$227(this, uidList, newStatus, updateTime, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function DeletedItemDao_Repo$findDeletedItemsForUser$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda(this$0, $cepcjUid, $time, $deletedByPersonUid, resultContinuation) { this.re7_1 = this$0; this.se7_1 = $cepcjUid; this.te7_1 = $time; this.ue7_1 = $deletedByPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.re7_1.xe7_1.qe3(this.se7_1, this.te7_1, this.ue7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda).q79 = function (completion) { return new DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda(this.re7_1, this.se7_1, this.te7_1, this.ue7_1, completion); }; function DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda_0(this$0, $cepcjUid, $time, $deletedByPersonUid, resultContinuation) { var i = new DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda(this$0, $cepcjUid, $time, $deletedByPersonUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function DeletedItemDao_Repo$findDeletedItemsForUser$slambda(this$0, $personUid, $includeActionedItems, resultContinuation) { this.je8_1 = this$0; this.ke8_1 = $personUid; this.le8_1 = $includeActionedItems; CoroutineImpl.call(this, resultContinuation); } protoOf(DeletedItemDao_Repo$findDeletedItemsForUser$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DeletedItemDao_Repo$findDeletedItemsForUser$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(DeletedItemDao_Repo$findDeletedItemsForUser$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.oe8_1 = this.je8_1.we7_1; var tmp_1 = this; tmp_1.pe8_1 = 'DeletedItemDao/findDeletedItemsForUser'; this.md_1 = 4; var tmp_2 = this; tmp_2.qe8_1 = this.je8_1.ye7_1; var tmp_3 = this; tmp_3.re8_1 = this.qe8_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.je8_1.we7_1.t39(), 'DeletedItemDao/findDeletedItemsForUser'); doorNodeIdHeader(this_0, this.je8_1.we7_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'personUid', this.je8_1.we7_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ke8_1)); parameter(this_0, 'includeActionedItems', this.je8_1.we7_1.t39().a67_1.b46(serializer_2(BooleanCompanionObject_instance), this.le8_1)); pagingSourceLoadParameters(this_0, this.je8_1.we7_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.me8_1); tmp_4.se8_1 = this_0; this.se8_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.te8_1 = this.re8_1; var tmp_6 = this; tmp_6.ue8_1 = this.se8_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.ue8_1, this.te8_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.ve8_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.je8_1.ve7_1, this.ve8_1, this.je8_1.we7_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.ne8_1 = endOfPaginationReached(this.ve8_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', DeletedItemDao_Repo$findDeletedItemsForUser$slambda$lambda(this.oe8_1, this.pe8_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.ne8_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(DeletedItemDao_Repo$findDeletedItemsForUser$slambda).g87 = function (_pagingParams, completion) { var i = new DeletedItemDao_Repo$findDeletedItemsForUser$slambda(this.je8_1, this.ke8_1, this.le8_1, completion); i.me8_1 = _pagingParams; return i; }; function DeletedItemDao_Repo$findDeletedItemsForUser$slambda_0(this$0, $personUid, $includeActionedItems, resultContinuation) { var i = new DeletedItemDao_Repo$findDeletedItemsForUser$slambda(this$0, $personUid, $includeActionedItems, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function DeletedItemDao_Repo$updateStatusByUids$slambda(this$0, $uidList, $newStatus, $updateTime, resultContinuation) { this.ee9_1 = this$0; this.fe9_1 = $uidList; this.ge9_1 = $newStatus; this.he9_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(DeletedItemDao_Repo$updateStatusByUids$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DeletedItemDao_Repo$updateStatusByUids$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(DeletedItemDao_Repo$updateStatusByUids$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.ee9_1.xe7_1.se3(this.fe9_1, this.ge9_1, this.he9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(DeletedItemDao_Repo$updateStatusByUids$slambda).q79 = function (completion) { return new DeletedItemDao_Repo$updateStatusByUids$slambda(this.ee9_1, this.fe9_1, this.ge9_1, this.he9_1, completion); }; function DeletedItemDao_Repo$updateStatusByUids$slambda_0(this$0, $uidList, $newStatus, $updateTime, resultContinuation) { var i = new DeletedItemDao_Repo$updateStatusByUids$slambda(this$0, $uidList, $newStatus, $updateTime, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function DeletedItemDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { DeletedItemDao.call(this); this.ve7_1 = _db; this.we7_1 = _repo; this.xe7_1 = _dao; this.ye7_1 = _httpClient; this.ze7_1 = _clientId; this.ae8_1 = _endpoint; } protoOf(DeletedItemDao_Repo).qe3 = function (cepcjUid, time, deletedByPersonUid, $completion) { return withRepoChangeMonitorAsync(this.we7_1, 'DeletedItem', DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda_0(this, cepcjUid, time, deletedByPersonUid, null), $completion); }; protoOf(DeletedItemDao_Repo).re3 = function (personUid, includeActionedItems) { var tmp = this.xe7_1.re3(personUid, includeActionedItems); return new DoorRepositoryReplicatePullPagingSource(this.we7_1, 'DeletedItemDao/findDeletedItemsForUser', tmp, DeletedItemDao_Repo$findDeletedItemsForUser$slambda_0(this, personUid, includeActionedItems, null)); }; protoOf(DeletedItemDao_Repo).se3 = function (uidList, newStatus, updateTime, $completion) { return withRepoChangeMonitorAsync(this.we7_1, 'DeletedItem', DeletedItemDao_Repo$updateStatusByUids$slambda_0(this, uidList, newStatus, updateTime, null), $completion); }; function DiscussionPostDao() { } function $upsertAsyncCOROUTINE$229(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ve9_1 = _this__u8e3s4; this.we9_1 = entity; } protoOf($upsertAsyncCOROUTINE$229).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.xe9_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.ve9_1.ze9_1)); if (this.we9_1.bea_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.xe9_1.r63(132, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.ye9_1 = suspendResult; this.we9_1.bea_1 = this.ye9_1; this.ld_1 = 2; continue $sm; case 2: this.we9_1.kea_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.ve9_1.aea_1.le9(this.we9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_instance; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$230(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.vea_1 = _this__u8e3s4; this.wea_1 = entity; } protoOf($insertAsyncCOROUTINE$230).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.xea_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.vea_1.ze9_1)); if (this.wea_1.bea_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.xea_1.r63(132, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.yea_1 = suspendResult; this.wea_1.bea_1 = this.yea_1; this.ld_1 = 2; continue $sm; case 2: this.wea_1.kea_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.vea_1.aea_1.insertAsync(this.wea_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.wea_1.bea_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function DiscussionPostDao_DoorWrapper(_db, _dao) { DiscussionPostDao.call(this); this.ze9_1 = _db; this.aea_1 = _dao; } protoOf(DiscussionPostDao_DoorWrapper).ie9 = function (courseBlockUid, includeDeleted) { return this.aea_1.ie9(courseBlockUid, includeDeleted); }; protoOf(DiscussionPostDao_DoorWrapper).je9 = function (uid, $completion) { return this.aea_1.je9(uid, $completion); }; protoOf(DiscussionPostDao_DoorWrapper).x8d = function (uid) { return this.aea_1.x8d(uid); }; protoOf(DiscussionPostDao_DoorWrapper).ke9 = function (postUid, includeDeleted) { return this.aea_1.ke9(postUid, includeDeleted); }; protoOf(DiscussionPostDao_DoorWrapper).le9 = function (entity, $completion) { var tmp = new $upsertAsyncCOROUTINE$229(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DiscussionPostDao_DoorWrapper).me9 = function (uid, deleted, updateTime, $completion) { return this.aea_1.me9(uid, deleted, updateTime, $completion); }; protoOf(DiscussionPostDao_DoorWrapper).zea = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$230(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DiscussionPostDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.zea(entity instanceof DiscussionPost ? entity : THROW_CCE(), $completion); }; function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda$lambda(_result) { return mapRows(_result, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda$lambda$lambda(_result)); } function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_authorPersonFirstNames = $_result.b10('authorPersonFirstNames'); var _tmp_authorPersonLastName = $_result.b10('authorPersonLastName'); var _tmp_authorPictureUri = $_result.b10('authorPictureUri'); var _tmp_postLatestMessage = $_result.b10('postLatestMessage'); var _tmp_postRepliesCount = $_result.a5o('postRepliesCount'); var _tmp_postLatestMessageTimestamp = $_result.b5o('postLatestMessageTimestamp'); var _tmp_discussionPostUid = $_result.b5o('discussionPostUid'); var _tmp_discussionPostReplyToPostUid = $_result.b5o('discussionPostReplyToPostUid'); var _tmp_discussionPostTitle = $_result.b10('discussionPostTitle'); var _tmp_discussionPostMessage = $_result.b10('discussionPostMessage'); var _tmp_discussionPostStartDate = $_result.b5o('discussionPostStartDate'); var _tmp_discussionPostCourseBlockUid = $_result.b5o('discussionPostCourseBlockUid'); var _tmp_dpDeleted = $_result.m67('dpDeleted'); var _tmp_discussionPostStartedPersonUid = $_result.b5o('discussionPostStartedPersonUid'); var _tmp_discussionPostClazzUid = $_result.b5o('discussionPostClazzUid'); var _tmp_discussionPostLct = $_result.b5o('discussionPostLct'); var _tmp_discussionPostVisible = $_result.m67('discussionPostVisible'); var _tmp_discussionPostArchive = $_result.m67('discussionPostArchive'); // Inline function 'kotlin.apply' call var this_0 = new DiscussionPostWithDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.meb_1 = _tmp_authorPersonFirstNames; this_0.neb_1 = _tmp_authorPersonLastName; this_0.oeb_1 = _tmp_authorPictureUri; this_0.peb_1 = _tmp_postLatestMessage; this_0.qeb_1 = _tmp_postRepliesCount; this_0.reb_1 = _tmp_postLatestMessageTimestamp; this_0.bea_1 = _tmp_discussionPostUid; this_0.cea_1 = _tmp_discussionPostReplyToPostUid; this_0.dea_1 = _tmp_discussionPostTitle; this_0.eea_1 = _tmp_discussionPostMessage; this_0.fea_1 = _tmp_discussionPostStartDate; this_0.gea_1 = _tmp_discussionPostCourseBlockUid; this_0.hea_1 = _tmp_dpDeleted; this_0.iea_1 = _tmp_discussionPostStartedPersonUid; this_0.jea_1 = _tmp_discussionPostClazzUid; this_0.kea_1 = _tmp_discussionPostLct; this_0.lea_1 = _tmp_discussionPostVisible; this_0.mea_1 = _tmp_discussionPostArchive; return this_0; }; } function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda$lambda$lambda(_result)); } function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda($courseBlockUid, $includeDeleted, $_limit, $_offset, resultContinuation) { this.aec_1 = $courseBlockUid; this.bec_1 = $includeDeleted; this.cec_1 = $_limit; this.dec_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda).fec = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda).le = function (p1, $completion) { return this.fec((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.eec_1.x5i(1, this.aec_1); this.eec_1.k5i(2, this.bec_1); this.eec_1.w5i(3, this.cec_1); this.eec_1.w5i(4, this.dec_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.eec_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda(this.aec_1, this.bec_1, this.cec_1, this.dec_1, completion); i.eec_1 = _stmt; return i; }; function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda_0($courseBlockUid, $includeDeleted, $_limit, $_offset, resultContinuation) { var i = new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda($courseBlockUid, $includeDeleted, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.fec(_stmt, $completion); }; l.$arity = 1; return l; } function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda($courseBlockUid, $includeDeleted, resultContinuation) { this.oec_1 = $courseBlockUid; this.pec_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.qec_1.x5i(1, this.oec_1); this.qec_1.k5i(2, this.pec_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.qec_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda(this.oec_1, this.pec_1, completion); i.qec_1 = _stmt; return i; }; function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda_0($courseBlockUid, $includeDeleted, resultContinuation) { var i = new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda($courseBlockUid, $includeDeleted, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function DiscussionPostDao_JdbcImpl$findByUid$slambda$lambda(_result) { return mapNextRow(_result, null, DiscussionPostDao_JdbcImpl$findByUid$slambda$lambda$lambda(_result)); } function DiscussionPostDao_JdbcImpl$findByUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_discussionPostUid = $_result.b5o('discussionPostUid'); var _tmp_discussionPostReplyToPostUid = $_result.b5o('discussionPostReplyToPostUid'); var _tmp_discussionPostTitle = $_result.b10('discussionPostTitle'); var _tmp_discussionPostMessage = $_result.b10('discussionPostMessage'); var _tmp_discussionPostStartDate = $_result.b5o('discussionPostStartDate'); var _tmp_discussionPostCourseBlockUid = $_result.b5o('discussionPostCourseBlockUid'); var _tmp_dpDeleted = $_result.m67('dpDeleted'); var _tmp_discussionPostStartedPersonUid = $_result.b5o('discussionPostStartedPersonUid'); var _tmp_discussionPostClazzUid = $_result.b5o('discussionPostClazzUid'); var _tmp_discussionPostLct = $_result.b5o('discussionPostLct'); var _tmp_discussionPostVisible = $_result.m67('discussionPostVisible'); var _tmp_discussionPostArchive = $_result.m67('discussionPostArchive'); // Inline function 'kotlin.apply' call var this_0 = new DiscussionPost(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.DiscussionPostDao_JdbcImpl.findByUid....' call this_0.bea_1 = _tmp_discussionPostUid; this_0.cea_1 = _tmp_discussionPostReplyToPostUid; this_0.dea_1 = _tmp_discussionPostTitle; this_0.eea_1 = _tmp_discussionPostMessage; this_0.fea_1 = _tmp_discussionPostStartDate; this_0.gea_1 = _tmp_discussionPostCourseBlockUid; this_0.hea_1 = _tmp_dpDeleted; this_0.iea_1 = _tmp_discussionPostStartedPersonUid; this_0.jea_1 = _tmp_discussionPostClazzUid; this_0.kea_1 = _tmp_discussionPostLct; this_0.lea_1 = _tmp_discussionPostVisible; this_0.mea_1 = _tmp_discussionPostArchive; return this_0; }; } function DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { return $_result.a62(1); }; } function DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda($uid, resultContinuation) { this.zec_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).p8m = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).le = function (p1, $completion) { return this.p8m((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.aed_1.x5i(1, this.zec_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.aed_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda(this.zec_1, completion); i.aed_1 = _stmt; return i; }; function DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda_0($uid, resultContinuation) { var i = new DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.p8m(_stmt, $completion); }; l.$arity = 1; return l; } function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda$lambda(_result) { return mapRows(_result, DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda$lambda$lambda(_result)); } function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstNames = $_result.b10('firstNames'); var _tmp_lastName = $_result.b10('lastName'); var _tmp_personPictureUri = $_result.b10('personPictureUri'); var _tmp_DiscussionPost_nullCount = 0; var _tmp_discussionPostUid = $_result.b5o('discussionPostUid'); var tmp; if ($_result.t68()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_discussionPostReplyToPostUid = $_result.b5o('discussionPostReplyToPostUid'); var tmp_0; if ($_result.t68()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_discussionPostTitle = $_result.b10('discussionPostTitle'); var tmp_1; if ($_result.t68()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_discussionPostMessage = $_result.b10('discussionPostMessage'); var tmp_2; if ($_result.t68()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_discussionPostStartDate = $_result.b5o('discussionPostStartDate'); var tmp_3; if ($_result.t68()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_discussionPostCourseBlockUid = $_result.b5o('discussionPostCourseBlockUid'); var tmp_4; if ($_result.t68()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_dpDeleted = $_result.m67('dpDeleted'); var tmp_5; if ($_result.t68()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_discussionPostStartedPersonUid = $_result.b5o('discussionPostStartedPersonUid'); var tmp_6; if ($_result.t68()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_discussionPostClazzUid = $_result.b5o('discussionPostClazzUid'); var tmp_7; if ($_result.t68()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_discussionPostLct = $_result.b5o('discussionPostLct'); var tmp_8; if ($_result.t68()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_discussionPostVisible = $_result.m67('discussionPostVisible'); var tmp_9; if ($_result.t68()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_discussionPostArchive = $_result.m67('discussionPostArchive'); var tmp_10; if ($_result.t68()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_DiscussionPost_isAllNull = _tmp_DiscussionPost_nullCount === 12; // Inline function 'kotlin.apply' call var this_0 = new DiscussionPostAndPosterNames(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.ced_1 = _tmp_firstNames; this_0.ded_1 = _tmp_lastName; this_0.eed_1 = _tmp_personPictureUri; if (!_tmp_DiscussionPost_isAllNull) { var tmp_11 = this_0; // Inline function 'kotlin.apply' call var this_1 = new DiscussionPost(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.bea_1 = _tmp_discussionPostUid; this_1.cea_1 = _tmp_discussionPostReplyToPostUid; this_1.dea_1 = _tmp_discussionPostTitle; this_1.eea_1 = _tmp_discussionPostMessage; this_1.fea_1 = _tmp_discussionPostStartDate; this_1.gea_1 = _tmp_discussionPostCourseBlockUid; this_1.hea_1 = _tmp_dpDeleted; this_1.iea_1 = _tmp_discussionPostStartedPersonUid; this_1.jea_1 = _tmp_discussionPostClazzUid; this_1.kea_1 = _tmp_discussionPostLct; this_1.lea_1 = _tmp_discussionPostVisible; this_1.mea_1 = _tmp_discussionPostArchive; tmp_11.bed_1 = this_1; } return this_0; }; } function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda$lambda$lambda(_result)); } function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda($postUid, $includeDeleted, $_limit, $_offset, resultContinuation) { this.ned_1 = $postUid; this.oed_1 = $includeDeleted; this.ped_1 = $_limit; this.qed_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda).sed = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda).le = function (p1, $completion) { return this.sed((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.red_1.x5i(1, this.ned_1); this.red_1.x5i(2, this.ned_1); this.red_1.k5i(3, this.oed_1); this.red_1.w5i(4, this.ped_1); this.red_1.w5i(5, this.qed_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.red_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda(this.ned_1, this.oed_1, this.ped_1, this.qed_1, completion); i.red_1 = _stmt; return i; }; function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda_0($postUid, $includeDeleted, $_limit, $_offset, resultContinuation) { var i = new DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda($postUid, $includeDeleted, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.sed(_stmt, $completion); }; l.$arity = 1; return l; } function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda($postUid, $includeDeleted, resultContinuation) { this.bee_1 = $postUid; this.cee_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.dee_1.x5i(1, this.bee_1); this.dee_1.x5i(2, this.bee_1); this.dee_1.k5i(3, this.cee_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.dee_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda(this.bee_1, this.cee_1, completion); i.dee_1 = _stmt; return i; }; function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda_0($postUid, $includeDeleted, resultContinuation) { var i = new DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda($postUid, $includeDeleted, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.eee_1); } protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO DiscussionPost (discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1).jee = function (stmt, entity) { if (entity.bea_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.bea_1); } stmt.x5i(2, entity.cea_1); stmt.a5j(3, entity.dea_1); stmt.a5j(4, entity.eea_1); stmt.x5i(5, entity.fea_1); stmt.x5i(6, entity.gea_1); stmt.k5i(7, entity.hea_1); stmt.x5i(8, entity.iea_1); stmt.x5i(9, entity.jea_1); stmt.x5i(10, entity.kea_1); stmt.k5i(11, entity.lea_1); stmt.k5i(12, entity.mea_1); }; protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1).r5g = function (stmt, entity) { return this.jee(stmt, entity instanceof DiscussionPost ? entity : THROW_CCE()); }; function DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.eee_1); } protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1).w5h = function (returnsId) { return 'INSERT INTO DiscussionPost (discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1).jee = function (stmt, entity) { if (entity.bea_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.bea_1); } stmt.x5i(2, entity.cea_1); stmt.a5j(3, entity.dea_1); stmt.a5j(4, entity.eea_1); stmt.x5i(5, entity.fea_1); stmt.x5i(6, entity.gea_1); stmt.k5i(7, entity.hea_1); stmt.x5i(8, entity.iea_1); stmt.x5i(9, entity.jea_1); stmt.x5i(10, entity.kea_1); stmt.k5i(11, entity.lea_1); stmt.k5i(12, entity.mea_1); }; protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1).r5g = function (stmt, entity) { return this.jee(stmt, entity instanceof DiscussionPost ? entity : THROW_CCE()); }; function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1(this$0, $courseBlockUid, $includeDeleted) { this.see_1 = this$0; this.tee_1 = $courseBlockUid; this.uee_1 = $includeDeleted; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Person', 'PersonPicture', 'DiscussionPost']; DoorLimitOffsetPagingSource.call(this, this$0.eee_1, tmp$ret$2); } protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1).vee = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT DiscussionPost.*,\n Person.firstNames as authorPersonFirstNames,\n Person.lastName as authorPersonLastName,\n PersonPicture.personPictureThumbnailUri AS authorPictureUri,\n MostRecentReply.discussionPostMessage AS postLatestMessage,\n COALESCE(MostRecentReply.discussionPostStartDate, 0) AS postLatestMessageTimestamp,\n (SELECT COUNT(*)\n FROM DiscussionPost DiscussionPostReplies\n WHERE DiscussionPostReplies.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n AND NOT DiscussionPostReplies.dpDeleted\n ) AS postRepliesCount\n FROM DiscussionPost\n LEFT JOIN DiscussionPost AS MostRecentReply\n ON MostRecentReply.discussionPostUid = \n (SELECT MostRecentReplyInner.discussionPostUid\n FROM DiscussionPost AS MostRecentReplyInner\n WHERE MostRecentReplyInner.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n ORDER BY MostRecentReplyInner.discussionPostStartDate DESC\n LIMIT 1 \n )\n LEFT JOIN Person \n ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n WHERE DiscussionPost.discussionPostCourseBlockUid = CAST(? AS BIGINT)\n AND DiscussionPost.discussionPostReplyToPostUid = 0\n AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1)\n ORDER BY DiscussionPost.discussionPostStartDate DESC \n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n SELECT DiscussionPost.*,\n Person.firstNames as authorPersonFirstNames,\n Person.lastName as authorPersonLastName,\n PersonPicture.personPictureThumbnailUri AS authorPictureUri,\n MostRecentReply.discussionPostMessage AS postLatestMessage,\n COALESCE(MostRecentReply.discussionPostStartDate, 0) AS postLatestMessageTimestamp,\n (SELECT COUNT(*)\n FROM DiscussionPost DiscussionPostReplies\n WHERE DiscussionPostReplies.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n AND NOT DiscussionPostReplies.dpDeleted\n ) AS postRepliesCount\n FROM DiscussionPost\n LEFT JOIN DiscussionPost AS MostRecentReply\n ON MostRecentReply.discussionPostUid = \n (SELECT MostRecentReplyInner.discussionPostUid\n FROM DiscussionPost AS MostRecentReplyInner\n WHERE MostRecentReplyInner.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n ORDER BY MostRecentReplyInner.discussionPostStartDate DESC\n LIMIT 1 \n )\n LEFT JOIN Person \n ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n WHERE DiscussionPost.discussionPostCourseBlockUid = ?\n AND DiscussionPost.discussionPostReplyToPostUid = 0\n AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1)\n ORDER BY DiscussionPost.discussionPostStartDate DESC \n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.see_1.eee_1, tmp, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda_0(this.tee_1, this.uee_1, _limit, _offset, null), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1).z5q = function (_limit, _offset, $completion) { return this.vee(_limit, _offset, $completion); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT DiscussionPost.*,\n Person.firstNames as authorPersonFirstNames,\n Person.lastName as authorPersonLastName,\n PersonPicture.personPictureThumbnailUri AS authorPictureUri,\n MostRecentReply.discussionPostMessage AS postLatestMessage,\n COALESCE(MostRecentReply.discussionPostStartDate, 0) AS postLatestMessageTimestamp,\n (SELECT COUNT(*)\n FROM DiscussionPost DiscussionPostReplies\n WHERE DiscussionPostReplies.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n AND NOT DiscussionPostReplies.dpDeleted\n ) AS postRepliesCount\n FROM DiscussionPost\n LEFT JOIN DiscussionPost AS MostRecentReply\n ON MostRecentReply.discussionPostUid = \n (SELECT MostRecentReplyInner.discussionPostUid\n FROM DiscussionPost AS MostRecentReplyInner\n WHERE MostRecentReplyInner.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n ORDER BY MostRecentReplyInner.discussionPostStartDate DESC\n LIMIT 1 \n )\n LEFT JOIN Person \n ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n WHERE DiscussionPost.discussionPostCourseBlockUid = CAST(? AS BIGINT)\n AND DiscussionPost.discussionPostReplyToPostUid = 0\n AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1)\n ORDER BY DiscussionPost.discussionPostStartDate DESC \n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n SELECT DiscussionPost.*,\n Person.firstNames as authorPersonFirstNames,\n Person.lastName as authorPersonLastName,\n PersonPicture.personPictureThumbnailUri AS authorPictureUri,\n MostRecentReply.discussionPostMessage AS postLatestMessage,\n COALESCE(MostRecentReply.discussionPostStartDate, 0) AS postLatestMessageTimestamp,\n (SELECT COUNT(*)\n FROM DiscussionPost DiscussionPostReplies\n WHERE DiscussionPostReplies.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n AND NOT DiscussionPostReplies.dpDeleted\n ) AS postRepliesCount\n FROM DiscussionPost\n LEFT JOIN DiscussionPost AS MostRecentReply\n ON MostRecentReply.discussionPostUid = \n (SELECT MostRecentReplyInner.discussionPostUid\n FROM DiscussionPost AS MostRecentReplyInner\n WHERE MostRecentReplyInner.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n ORDER BY MostRecentReplyInner.discussionPostStartDate DESC\n LIMIT 1 \n )\n LEFT JOIN Person \n ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n WHERE DiscussionPost.discussionPostCourseBlockUid = ?\n AND DiscussionPost.discussionPostReplyToPostUid = 0\n AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1)\n ORDER BY DiscussionPost.discussionPostStartDate DESC \n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.see_1.eee_1, tmp, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda_0(this.tee_1, this.uee_1, null), $completion); }; function DiscussionPostDao_JdbcImpl$findByUid$slambda($uid, resultContinuation) { this.eef_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_JdbcImpl$findByUid$slambda).gef = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DiscussionPostDao_JdbcImpl$findByUid$slambda).le = function (p1, $completion) { return this.gef((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$findByUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.fef_1.x5i(1, this.eef_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.fef_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$findByUid$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(DiscussionPostDao_JdbcImpl$findByUid$slambda).o5g = function (_stmt, completion) { var i = new DiscussionPostDao_JdbcImpl$findByUid$slambda(this.eef_1, completion); i.fef_1 = _stmt; return i; }; function DiscussionPostDao_JdbcImpl$findByUid$slambda_0($uid, resultContinuation) { var i = new DiscussionPostDao_JdbcImpl$findByUid$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.gef(_stmt, $completion); }; l.$arity = 1; return l; } function DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda(this$0, $uid, resultContinuation) { this.pef_1 = this$0; this.qef_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda).s8r = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda).r79 = function ($completion) { return this.s8r($completion); }; protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT DiscussionPost.discussionPostTitle\n FROM DiscussionPost\n WHERE DiscussionPost.discussionPostUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT DiscussionPost.discussionPostTitle\n FROM DiscussionPost\n WHERE DiscussionPost.discussionPostUid = ?\n \n', true); suspendResult = prepareAndUseStatementAsync(this.pef_1.eee_1, tmp_0, DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda_0(this.qef_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda).q79 = function (completion) { return new DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda(this.pef_1, this.qef_1, completion); }; function DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda_0(this$0, $uid, resultContinuation) { var i = new DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.s8r($completion); }; l.$arity = 0; return l; } function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1(this$0, $postUid, $includeDeleted) { this.xef_1 = this$0; this.yef_1 = $postUid; this.zef_1 = $includeDeleted; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Person', 'PersonPicture', 'DiscussionPost']; DoorLimitOffsetPagingSource.call(this, this$0.eee_1, tmp$ret$2); } protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1).aeg = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT DiscussionPost.*,\n Person.firstNames,\n Person.lastName,\n PersonPicture.personPictureThumbnailUri AS personPictureUri\n FROM DiscussionPost\n LEFT JOIN Person\n ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n WHERE (DiscussionPost.discussionPostUid = CAST(? AS BIGINT)\n OR DiscussionPost.discussionPostReplyToPostUid= CAST(? AS BIGINT))\n AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1) \n -- Always get the starting post first, followed by replies\n ORDER BY CASE(DiscussionPost.discussionPostReplyToPostUid)\n WHEN 0 THEN 0\n ELSE 1 END ASC,\n DiscussionPost.discussionPostStartDate DESC \n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n SELECT DiscussionPost.*,\n Person.firstNames,\n Person.lastName,\n PersonPicture.personPictureThumbnailUri AS personPictureUri\n FROM DiscussionPost\n LEFT JOIN Person\n ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n WHERE (DiscussionPost.discussionPostUid = ?\n OR DiscussionPost.discussionPostReplyToPostUid= ?)\n AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1) \n -- Always get the starting post first, followed by replies\n ORDER BY CASE(DiscussionPost.discussionPostReplyToPostUid)\n WHEN 0 THEN 0\n ELSE 1 END ASC,\n DiscussionPost.discussionPostStartDate DESC \n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.xef_1.eee_1, tmp, DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda_0(this.yef_1, this.zef_1, _limit, _offset, null), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1).z5q = function (_limit, _offset, $completion) { return this.aeg(_limit, _offset, $completion); }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT DiscussionPost.*,\n Person.firstNames,\n Person.lastName,\n PersonPicture.personPictureThumbnailUri AS personPictureUri\n FROM DiscussionPost\n LEFT JOIN Person\n ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n WHERE (DiscussionPost.discussionPostUid = CAST(? AS BIGINT)\n OR DiscussionPost.discussionPostReplyToPostUid= CAST(? AS BIGINT))\n AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1) \n -- Always get the starting post first, followed by replies\n ORDER BY CASE(DiscussionPost.discussionPostReplyToPostUid)\n WHEN 0 THEN 0\n ELSE 1 END ASC,\n DiscussionPost.discussionPostStartDate DESC \n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n SELECT DiscussionPost.*,\n Person.firstNames,\n Person.lastName,\n PersonPicture.personPictureThumbnailUri AS personPictureUri\n FROM DiscussionPost\n LEFT JOIN Person\n ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n WHERE (DiscussionPost.discussionPostUid = ?\n OR DiscussionPost.discussionPostReplyToPostUid= ?)\n AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1) \n -- Always get the starting post first, followed by replies\n ORDER BY CASE(DiscussionPost.discussionPostReplyToPostUid)\n WHEN 0 THEN 0\n ELSE 1 END ASC,\n DiscussionPost.discussionPostStartDate DESC \n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.xef_1.eee_1, tmp, DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda_0(this.yef_1, this.zef_1, null), $completion); }; function DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda($deleted, $updateTime, $uid, resultContinuation) { this.jeg_1 = $deleted; this.keg_1 = $updateTime; this.leg_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.meg_1.k5i(1, this.jeg_1); this.meg_1.x5i(2, this.keg_1); this.meg_1.x5i(3, this.leg_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.meg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda).o5g = function (_stmt, completion) { var i = new DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda(this.jeg_1, this.keg_1, this.leg_1, completion); i.meg_1 = _stmt; return i; }; function DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda_0($deleted, $updateTime, $uid, resultContinuation) { var i = new DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda($deleted, $updateTime, $uid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$231(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.veg_1 = _this__u8e3s4; this.weg_1 = entity; } protoOf($insertAsyncCOROUTINE$231).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.veg_1.gee_1.y5h(this.weg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $setDeletedAsyncCOROUTINE$233(_this__u8e3s4, uid, deleted, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.feh_1 = _this__u8e3s4; this.geh_1 = uid; this.heh_1 = deleted; this.ieh_1 = updateTime; } protoOf($setDeletedAsyncCOROUTINE$233).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE DiscussionPost\n SET dpDeleted = ?,\n discussionPostLct = CAST(? AS BIGINT)\n WHERE discussionPostUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE DiscussionPost\n SET dpDeleted = ?,\n discussionPostLct = ?\n WHERE discussionPostUid = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this.feh_1.eee_1, tmp_0, DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda_0(this.heh_1, this.ieh_1, this.geh_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function DiscussionPostDao_JdbcImpl(_db) { DiscussionPostDao.call(this); this.eee_1 = _db; var tmp = this; tmp.fee_1 = new DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1(this); var tmp_0 = this; tmp_0.gee_1 = new DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1(this); } protoOf(DiscussionPostDao_JdbcImpl).le9 = function (entity, $completion) { return this.fee_1.x5h(entity, $completion); }; protoOf(DiscussionPostDao_JdbcImpl).zea = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$231(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DiscussionPostDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.zea(entity instanceof DiscussionPost ? entity : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_JdbcImpl).ie9 = function (courseBlockUid, includeDeleted) { return new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1(this, courseBlockUid, includeDeleted); }; protoOf(DiscussionPostDao_JdbcImpl).je9 = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT * \n FROM DiscussionPost\n WHERE DiscussionPost.discussionPostUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT * \n FROM DiscussionPost\n WHERE DiscussionPost.discussionPostUid = ?\n \n', true); return prepareAndUseStatementAsync(this.eee_1, tmp, DiscussionPostDao_JdbcImpl$findByUid$slambda_0(uid, null), $completion); }; protoOf(DiscussionPostDao_JdbcImpl).x8d = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['DiscussionPost']; return doorFlow(this.eee_1, tmp, DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda_0(this, uid, null)); }; protoOf(DiscussionPostDao_JdbcImpl).ke9 = function (postUid, includeDeleted) { return new DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1(this, postUid, includeDeleted); }; protoOf(DiscussionPostDao_JdbcImpl).me9 = function (uid, deleted, updateTime, $completion) { var tmp = new $setDeletedAsyncCOROUTINE$233(this, uid, deleted, updateTime, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda(this$0, $courseBlockUid, $includeDeleted, resultContinuation) { this.reh_1 = this$0; this.seh_1 = $courseBlockUid; this.teh_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.weh_1 = this.reh_1.fei_1; var tmp_1 = this; tmp_1.xeh_1 = 'DiscussionPostDao/getTopLevelPostsByCourseBlockUid'; this.md_1 = 4; var tmp_2 = this; tmp_2.yeh_1 = this.reh_1.hei_1; var tmp_3 = this; tmp_3.zeh_1 = this.yeh_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.reh_1.fei_1.t39(), 'DiscussionPostDao/getTopLevelPostsByCourseBlockUid'); doorNodeIdHeader(this_0, this.reh_1.fei_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'courseBlockUid', this.reh_1.fei_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.seh_1)); parameter(this_0, 'includeDeleted', this.reh_1.fei_1.t39().a67_1.b46(serializer_2(BooleanCompanionObject_instance), this.teh_1)); pagingSourceLoadParameters(this_0, this.reh_1.fei_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.ueh_1); tmp_4.aei_1 = this_0; this.aei_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.bei_1 = this.zeh_1; var tmp_6 = this; tmp_6.cei_1 = this.aei_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.cei_1, this.bei_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.dei_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.reh_1.eei_1, this.dei_1, this.reh_1.fei_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.veh_1 = endOfPaginationReached(this.dei_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda$lambda(this.weh_1, this.xeh_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.veh_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda).g87 = function (_pagingParams, completion) { var i = new DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda(this.reh_1, this.seh_1, this.teh_1, completion); i.ueh_1 = _pagingParams; return i; }; function DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda_0(this$0, $courseBlockUid, $includeDeleted, resultContinuation) { var i = new DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda(this$0, $courseBlockUid, $includeDeleted, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda(this$0, $postUid, $includeDeleted, resultContinuation) { this.sei_1 = this$0; this.tei_1 = $postUid; this.uei_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.xei_1 = this.sei_1.fei_1; var tmp_1 = this; tmp_1.yei_1 = 'DiscussionPostDao/findByPostIdWithAllReplies'; this.md_1 = 4; var tmp_2 = this; tmp_2.zei_1 = this.sei_1.hei_1; var tmp_3 = this; tmp_3.aej_1 = this.zei_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.sei_1.fei_1.t39(), 'DiscussionPostDao/findByPostIdWithAllReplies'); doorNodeIdHeader(this_0, this.sei_1.fei_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'postUid', this.sei_1.fei_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.tei_1)); parameter(this_0, 'includeDeleted', this.sei_1.fei_1.t39().a67_1.b46(serializer_2(BooleanCompanionObject_instance), this.uei_1)); pagingSourceLoadParameters(this_0, this.sei_1.fei_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.vei_1); tmp_4.bej_1 = this_0; this.bej_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.cej_1 = this.aej_1; var tmp_6 = this; tmp_6.dej_1 = this.bej_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.dej_1, this.cej_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.eej_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.sei_1.eei_1, this.eej_1, this.sei_1.fei_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.wei_1 = endOfPaginationReached(this.eej_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda$lambda(this.xei_1, this.yei_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.wei_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda).g87 = function (_pagingParams, completion) { var i = new DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda(this.sei_1, this.tei_1, this.uei_1, completion); i.vei_1 = _pagingParams; return i; }; function DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda_0(this$0, $postUid, $includeDeleted, resultContinuation) { var i = new DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda(this$0, $postUid, $includeDeleted, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function DiscussionPostDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation) { this.nej_1 = this$0; this.oej_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_Repo$upsertAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DiscussionPostDao_Repo$upsertAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(DiscussionPostDao_Repo$upsertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.nej_1.gei_1.le9(this.oej_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(DiscussionPostDao_Repo$upsertAsync$slambda).q79 = function (completion) { return new DiscussionPostDao_Repo$upsertAsync$slambda(this.nej_1, this.oej_1, completion); }; function DiscussionPostDao_Repo$upsertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new DiscussionPostDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function DiscussionPostDao_Repo$setDeletedAsync$slambda(this$0, $uid, $deleted, $updateTime, resultContinuation) { this.xej_1 = this$0; this.yej_1 = $uid; this.zej_1 = $deleted; this.aek_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_Repo$setDeletedAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DiscussionPostDao_Repo$setDeletedAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(DiscussionPostDao_Repo$setDeletedAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.xej_1.gei_1.me9(this.yej_1, this.zej_1, this.aek_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(DiscussionPostDao_Repo$setDeletedAsync$slambda).q79 = function (completion) { return new DiscussionPostDao_Repo$setDeletedAsync$slambda(this.xej_1, this.yej_1, this.zej_1, this.aek_1, completion); }; function DiscussionPostDao_Repo$setDeletedAsync$slambda_0(this$0, $uid, $deleted, $updateTime, resultContinuation) { var i = new DiscussionPostDao_Repo$setDeletedAsync$slambda(this$0, $uid, $deleted, $updateTime, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function DiscussionPostDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.jek_1 = this$0; this.kek_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DiscussionPostDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(DiscussionPostDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.jek_1.gei_1.insertAsync(this.kek_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(DiscussionPostDao_Repo$insertAsync$slambda).q79 = function (completion) { return new DiscussionPostDao_Repo$insertAsync$slambda(this.jek_1, this.kek_1, completion); }; function DiscussionPostDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new DiscussionPostDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $findByUidCOROUTINE$237(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.tek_1 = _this__u8e3s4; this.uek_1 = uid; } protoOf($findByUidCOROUTINE$237).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.tek_1.gei_1.je9(this.uek_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$240(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.del_1 = _this__u8e3s4; this.eel_1 = entity; } protoOf($insertAsyncCOROUTINE$240).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.del_1.fei_1, 'DiscussionPost', DiscussionPostDao_Repo$insertAsync$slambda_0(this.del_1, this.eel_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function DiscussionPostDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { DiscussionPostDao.call(this); this.eei_1 = _db; this.fei_1 = _repo; this.gei_1 = _dao; this.hei_1 = _httpClient; this.iei_1 = _clientId; this.jei_1 = _endpoint; } protoOf(DiscussionPostDao_Repo).ie9 = function (courseBlockUid, includeDeleted) { var tmp = this.gei_1.ie9(courseBlockUid, includeDeleted); return new DoorRepositoryReplicatePullPagingSource(this.fei_1, 'DiscussionPostDao/getTopLevelPostsByCourseBlockUid', tmp, DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda_0(this, courseBlockUid, includeDeleted, null)); }; protoOf(DiscussionPostDao_Repo).je9 = function (uid, $completion) { var tmp = new $findByUidCOROUTINE$237(this, uid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DiscussionPostDao_Repo).x8d = function (uid) { var _result = this.gei_1.x8d(uid); return _result; }; protoOf(DiscussionPostDao_Repo).ke9 = function (postUid, includeDeleted) { var tmp = this.gei_1.ke9(postUid, includeDeleted); return new DoorRepositoryReplicatePullPagingSource(this.fei_1, 'DiscussionPostDao/findByPostIdWithAllReplies', tmp, DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda_0(this, postUid, includeDeleted, null)); }; protoOf(DiscussionPostDao_Repo).le9 = function (entity, $completion) { return withRepoChangeMonitorAsync(this.fei_1, 'DiscussionPost', DiscussionPostDao_Repo$upsertAsync$slambda_0(this, entity, null), $completion); }; protoOf(DiscussionPostDao_Repo).me9 = function (uid, deleted, updateTime, $completion) { return withRepoChangeMonitorAsync(this.fei_1, 'DiscussionPost', DiscussionPostDao_Repo$setDeletedAsync$slambda_0(this, uid, deleted, updateTime, null), $completion); }; protoOf(DiscussionPostDao_Repo).zea = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$240(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(DiscussionPostDao_Repo).insertAsync = function (entity, $completion) { return this.zea(entity instanceof DiscussionPost ? entity : THROW_CCE(), $completion); }; function EnrolmentRequestDao() { } function $insertCOROUTINE$241(_this__u8e3s4, enrolmentRequest, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.sel_1 = _this__u8e3s4; this.tel_1 = enrolmentRequest; } protoOf($insertCOROUTINE$241).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.uel_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.sel_1.wel_1)); if (this.tel_1.yel_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.uel_1.r63(10070, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.vel_1 = suspendResult; this.tel_1.yel_1 = this.vel_1; this.ld_1 = 2; continue $sm; case 2: this.tel_1.lem_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.sel_1.xel_1.fel(this.tel_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_instance; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function EnrolmentRequestDao_DoorWrapper(_db, _dao) { EnrolmentRequestDao.call(this); this.wel_1 = _db; this.xel_1 = _dao; } protoOf(EnrolmentRequestDao_DoorWrapper).fel = function (enrolmentRequest, $completion) { var tmp = new $insertCOROUTINE$241(this, enrolmentRequest, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(EnrolmentRequestDao_DoorWrapper).gel = function (personUid, clazzUid, $completion) { return this.xel_1.gel(personUid, clazzUid, $completion); }; protoOf(EnrolmentRequestDao_DoorWrapper).hel = function (accountPersonUid, statusFilter) { return this.xel_1.hel(accountPersonUid, statusFilter); }; protoOf(EnrolmentRequestDao_DoorWrapper).iel = function (uid, status, updateTime, $completion) { return this.xel_1.iel(uid, status, updateTime, $completion); }; protoOf(EnrolmentRequestDao_DoorWrapper).jel = function (clazzUid, includeDeleted, statusFilter, searchText, sortOrder) { return this.xel_1.jel(clazzUid, includeDeleted, statusFilter, searchText, sortOrder); }; function EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda$lambda(_result) { return mapNextRow(_result, false, EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda$lambda$lambda(_result)); } function EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda$lambda$lambda($_result) { return function (it) { return $_result.s75(1); }; } function EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda$lambda(_result) { return mapRows(_result, EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda$lambda$lambda(_result)); } function EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_EnrolmentRequest_nullCount = 0; var _tmp_erUid = $_result.b5o('erUid'); var tmp; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_erClazzUid = $_result.b5o('erClazzUid'); var tmp_0; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_erClazzName = $_result.b10('erClazzName'); var tmp_1; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_erPersonUid = $_result.b5o('erPersonUid'); var tmp_2; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_erPersonFullname = $_result.b10('erPersonFullname'); var tmp_3; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_erPersonPictureUri = $_result.b10('erPersonPictureUri'); var tmp_4; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_erPersonUsername = $_result.b10('erPersonUsername'); var tmp_5; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_erRole = $_result.a5o('erRole'); var tmp_6; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_erRequestTime = $_result.b5o('erRequestTime'); var tmp_7; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_erStatus = $_result.a5o('erStatus'); var tmp_8; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_erStatusSetByPersonUid = $_result.b5o('erStatusSetByPersonUid'); var tmp_9; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_erDeleted = $_result.m67('erDeleted'); var tmp_10; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_erStatusSetAuth = $_result.b10('erStatusSetAuth'); var tmp_11; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_erLastModified = $_result.b5o('erLastModified'); var tmp_12; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_EnrolmentRequest_isAllNull = _tmp_EnrolmentRequest_nullCount === 14; var _tmp_CoursePicture_nullCount = 0; var _tmp_coursePictureUid = $_result.b5o('coursePictureUid'); var tmp_13; if ($_result.t68()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_coursePictureLct = $_result.b5o('coursePictureLct'); var tmp_14; if ($_result.t68()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_coursePictureUri = $_result.b10('coursePictureUri'); var tmp_15; if ($_result.t68()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_coursePictureThumbnailUri = $_result.b10('coursePictureThumbnailUri'); var tmp_16; if ($_result.t68()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_coursePictureActive = $_result.m67('coursePictureActive'); var tmp_17; if ($_result.t68()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_CoursePicture_isAllNull = _tmp_CoursePicture_nullCount === 5; // Inline function 'kotlin.apply' call var this_0 = new EnrolmentRequestAndCoursePic(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.EnrolmentRequestDao_JdbcImpl.findRequestsForUserAsFlow.....' call if (!_tmp_EnrolmentRequest_isAllNull) { var tmp_18 = this_0; // Inline function 'kotlin.apply' call var this_1 = new EnrolmentRequest(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.EnrolmentRequestDao_JdbcImpl.findRequestsForUserAsFlow......' call this_1.yel_1 = _tmp_erUid; this_1.zel_1 = _tmp_erClazzUid; this_1.aem_1 = _tmp_erClazzName; this_1.bem_1 = _tmp_erPersonUid; this_1.cem_1 = _tmp_erPersonFullname; this_1.dem_1 = _tmp_erPersonPictureUri; this_1.eem_1 = _tmp_erPersonUsername; this_1.fem_1 = _tmp_erRole; this_1.gem_1 = _tmp_erRequestTime; this_1.hem_1 = _tmp_erStatus; this_1.iem_1 = _tmp_erStatusSetByPersonUid; this_1.jem_1 = _tmp_erDeleted; this_1.kem_1 = _tmp_erStatusSetAuth; this_1.lem_1 = _tmp_erLastModified; tmp_18.mem_1 = this_1; } if (!_tmp_CoursePicture_isAllNull) { var tmp_19 = this_0; // Inline function 'kotlin.apply' call var this_2 = new CoursePicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.EnrolmentRequestDao_JdbcImpl.findRequestsForUserAsFlow......' call this_2.o8h_1 = _tmp_coursePictureUid; this_2.p8h_1 = _tmp_coursePictureLct; this_2.q8h_1 = _tmp_coursePictureUri; this_2.r8h_1 = _tmp_coursePictureThumbnailUri; this_2.s8h_1 = _tmp_coursePictureActive; tmp_19.nem_1 = this_2; } return this_0; }; } function EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda($accountPersonUid, $statusFilter, resultContinuation) { this.wem_1 = $accountPersonUid; this.xem_1 = $statusFilter; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda).zem = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda).le = function (p1, $completion) { return this.zem((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.yem_1.x5i(1, this.wem_1); this.yem_1.w5i(2, this.xem_1); this.yem_1.w5i(3, this.xem_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.yem_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda(this.wem_1, this.xem_1, completion); i.yem_1 = _stmt; return i; }; function EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda_0($accountPersonUid, $statusFilter, resultContinuation) { var i = new EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda($accountPersonUid, $statusFilter, resultContinuation); var l = function (_stmt, $completion) { return i.zem(_stmt, $completion); }; l.$arity = 1; return l; } function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda$lambda(_result) { return mapRows(_result, EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda$lambda$lambda(_result)); } function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_EnrolmentRequest_nullCount = 0; var _tmp_erUid = $_result.b5o('erUid'); var tmp; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_erClazzUid = $_result.b5o('erClazzUid'); var tmp_0; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_erClazzName = $_result.b10('erClazzName'); var tmp_1; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_erPersonUid = $_result.b5o('erPersonUid'); var tmp_2; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_erPersonFullname = $_result.b10('erPersonFullname'); var tmp_3; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_erPersonPictureUri = $_result.b10('erPersonPictureUri'); var tmp_4; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_erPersonUsername = $_result.b10('erPersonUsername'); var tmp_5; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_erRole = $_result.a5o('erRole'); var tmp_6; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_erRequestTime = $_result.b5o('erRequestTime'); var tmp_7; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_erStatus = $_result.a5o('erStatus'); var tmp_8; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_erStatusSetByPersonUid = $_result.b5o('erStatusSetByPersonUid'); var tmp_9; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_erDeleted = $_result.m67('erDeleted'); var tmp_10; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_erStatusSetAuth = $_result.b10('erStatusSetAuth'); var tmp_11; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_erLastModified = $_result.b5o('erLastModified'); var tmp_12; if ($_result.t68()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_EnrolmentRequest_isAllNull = _tmp_EnrolmentRequest_nullCount === 14; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.b5o('personPictureUid'); var tmp_13; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_personPictureLct = $_result.b5o('personPictureLct'); var tmp_14; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_personPictureUri = $_result.b10('personPictureUri'); var tmp_15; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_personPictureThumbnailUri = $_result.b10('personPictureThumbnailUri'); var tmp_16; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_fileSize = $_result.a5o('fileSize'); var tmp_17; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_personPictureActive = $_result.m67('personPictureActive'); var tmp_18; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.b5o('personUid'); var tmp_19; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_username = $_result.b10('username'); var tmp_20; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_firstNames = $_result.b10('firstNames'); var tmp_21; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_lastName = $_result.b10('lastName'); var tmp_22; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_emailAddr = $_result.b10('emailAddr'); var tmp_23; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_phoneNum = $_result.b10('phoneNum'); var tmp_24; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_gender = $_result.a5o('gender'); var tmp_25; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_active = $_result.m67('active'); var tmp_26; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_dateOfBirth = $_result.b5o('dateOfBirth'); var tmp_27; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_personAddress = $_result.b10('personAddress'); var tmp_28; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_personOrgId = $_result.b10('personOrgId'); var tmp_29; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_personGroupUid = $_result.b5o('personGroupUid'); var tmp_30; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_30 = Unit_instance; } var _tmp_personLct = $_result.b5o('personLct'); var tmp_31; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_31 = Unit_instance; } var _tmp_personCountry = $_result.b10('personCountry'); var tmp_32; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_32 = Unit_instance; } var _tmp_personType = $_result.a5o('personType'); var tmp_33; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_33 = Unit_instance; } var _tmp_personMasterChangeSeqNum = $_result.b5o('personMasterChangeSeqNum'); var tmp_34; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_34 = Unit_instance; } var _tmp_personLocalChangeSeqNum = $_result.b5o('personLocalChangeSeqNum'); var tmp_35; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_35 = Unit_instance; } var _tmp_personLastChangedBy = $_result.a5o('personLastChangedBy'); var tmp_36; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_36 = Unit_instance; } var _tmp_admin = $_result.m67('admin'); var tmp_37; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_37 = Unit_instance; } var _tmp_personNotes = $_result.b10('personNotes'); var tmp_38; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_38 = Unit_instance; } var _tmp_fatherName = $_result.b10('fatherName'); var tmp_39; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_39 = Unit_instance; } var _tmp_fatherNumber = $_result.b10('fatherNumber'); var tmp_40; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_40 = Unit_instance; } var _tmp_motherName = $_result.b10('motherName'); var tmp_41; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_41 = Unit_instance; } var _tmp_motherNum = $_result.b10('motherNum'); var tmp_42; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_42 = Unit_instance; } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; // Inline function 'kotlin.apply' call var this_0 = new EnrolmentRequestAndPersonDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call if (!_tmp_EnrolmentRequest_isAllNull) { var tmp_43 = this_0; // Inline function 'kotlin.apply' call var this_1 = new EnrolmentRequest(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.yel_1 = _tmp_erUid; this_1.zel_1 = _tmp_erClazzUid; this_1.aem_1 = _tmp_erClazzName; this_1.bem_1 = _tmp_erPersonUid; this_1.cem_1 = _tmp_erPersonFullname; this_1.dem_1 = _tmp_erPersonPictureUri; this_1.eem_1 = _tmp_erPersonUsername; this_1.fem_1 = _tmp_erRole; this_1.gem_1 = _tmp_erRequestTime; this_1.hem_1 = _tmp_erStatus; this_1.iem_1 = _tmp_erStatusSetByPersonUid; this_1.jem_1 = _tmp_erDeleted; this_1.kem_1 = _tmp_erStatusSetAuth; this_1.lem_1 = _tmp_erLastModified; tmp_43.aen_1 = this_1; } if (!_tmp_PersonPicture_isAllNull) { var tmp_44 = this_0; // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_2.y97_1 = _tmp_personPictureUid; this_2.z97_1 = _tmp_personPictureLct; this_2.a98_1 = _tmp_personPictureUri; this_2.b98_1 = _tmp_personPictureThumbnailUri; this_2.c98_1 = _tmp_fileSize; this_2.d98_1 = _tmp_personPictureActive; tmp_44.ben_1 = this_2; } if (!_tmp_Person_isAllNull) { var tmp_45 = this_0; // Inline function 'kotlin.apply' call var this_3 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_3.a97_1 = _tmp_personUid; this_3.b97_1 = _tmp_username; this_3.c97_1 = _tmp_firstNames; this_3.d97_1 = _tmp_lastName; this_3.e97_1 = _tmp_emailAddr; this_3.f97_1 = _tmp_phoneNum; this_3.g97_1 = _tmp_gender; this_3.h97_1 = _tmp_active; this_3.i97_1 = _tmp_dateOfBirth; this_3.j97_1 = _tmp_personAddress; this_3.k97_1 = _tmp_personOrgId; this_3.l97_1 = _tmp_personGroupUid; this_3.m97_1 = _tmp_personLct; this_3.n97_1 = _tmp_personCountry; this_3.o97_1 = _tmp_personType; this_3.p97_1 = _tmp_personMasterChangeSeqNum; this_3.q97_1 = _tmp_personLocalChangeSeqNum; this_3.r97_1 = _tmp_personLastChangedBy; this_3.s97_1 = _tmp_admin; this_3.t97_1 = _tmp_personNotes; this_3.u97_1 = _tmp_fatherName; this_3.v97_1 = _tmp_fatherNumber; this_3.w97_1 = _tmp_motherName; this_3.x97_1 = _tmp_motherNum; tmp_45.cen_1 = this_3; } return this_0; }; } function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda$lambda$lambda(_result)); } function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda($clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { this.len_1 = $clazzUid; this.men_1 = $statusFilter; this.nen_1 = $includeDeleted; this.oen_1 = $searchText; this.pen_1 = $sortOrder; this.qen_1 = $_limit; this.ren_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda).ten = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda).le = function (p1, $completion) { return this.ten((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.sen_1.x5i(1, this.len_1); this.sen_1.w5i(2, this.men_1); this.sen_1.w5i(3, this.men_1); this.sen_1.k5i(4, this.nen_1); this.sen_1.a5j(5, this.oen_1); this.sen_1.a5j(6, this.oen_1); this.sen_1.w5i(7, this.pen_1); this.sen_1.w5i(8, this.pen_1); this.sen_1.w5i(9, this.pen_1); this.sen_1.w5i(10, this.pen_1); this.sen_1.w5i(11, this.qen_1); this.sen_1.w5i(12, this.ren_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.sen_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda(this.len_1, this.men_1, this.nen_1, this.oen_1, this.pen_1, this.qen_1, this.ren_1, completion); i.sen_1 = _stmt; return i; }; function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda_0($clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { var i = new EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda($clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.ten(_stmt, $completion); }; l.$arity = 1; return l; } function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda($clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder, resultContinuation) { this.ceo_1 = $clazzUid; this.deo_1 = $statusFilter; this.eeo_1 = $includeDeleted; this.feo_1 = $searchText; this.geo_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.heo_1.x5i(1, this.ceo_1); this.heo_1.w5i(2, this.deo_1); this.heo_1.w5i(3, this.deo_1); this.heo_1.k5i(4, this.eeo_1); this.heo_1.a5j(5, this.feo_1); this.heo_1.a5j(6, this.feo_1); this.heo_1.w5i(7, this.geo_1); this.heo_1.w5i(8, this.geo_1); this.heo_1.w5i(9, this.geo_1); this.heo_1.w5i(10, this.geo_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.heo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda(this.ceo_1, this.deo_1, this.eeo_1, this.feo_1, this.geo_1, completion); i.heo_1 = _stmt; return i; }; function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda_0($clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder, resultContinuation) { var i = new EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda($clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.ieo_1); } protoOf(EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1).w5h = function (returnsId) { return 'INSERT INTO EnrolmentRequest (erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1).meo = function (stmt, entity) { if (entity.yel_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.yel_1); } stmt.x5i(2, entity.zel_1); stmt.a5j(3, entity.aem_1); stmt.x5i(4, entity.bem_1); stmt.a5j(5, entity.cem_1); stmt.a5j(6, entity.dem_1); stmt.a5j(7, entity.eem_1); stmt.w5i(8, entity.fem_1); stmt.x5i(9, entity.gem_1); stmt.w5i(10, entity.hem_1); stmt.x5i(11, entity.iem_1); stmt.k5i(12, entity.jem_1); stmt.a5j(13, entity.kem_1); stmt.x5i(14, entity.lem_1); }; protoOf(EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1).r5g = function (stmt, entity) { return this.meo(stmt, entity instanceof EnrolmentRequest ? entity : THROW_CCE()); }; function EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda($personUid, $clazzUid, resultContinuation) { this.veo_1 = $personUid; this.weo_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda).h9u = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda).le = function (p1, $completion) { return this.h9u((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.xeo_1.x5i(1, this.veo_1); this.xeo_1.x5i(2, this.weo_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.xeo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda).o5g = function (_stmt, completion) { var i = new EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda(this.veo_1, this.weo_1, completion); i.xeo_1 = _stmt; return i; }; function EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda_0($personUid, $clazzUid, resultContinuation) { var i = new EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda($personUid, $clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.h9u(_stmt, $completion); }; l.$arity = 1; return l; } function EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda(this$0, $accountPersonUid, $statusFilter, resultContinuation) { this.gep_1 = this$0; this.hep_1 = $accountPersonUid; this.iep_1 = $statusFilter; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda).jep = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda).r79 = function ($completion) { return this.jep($completion); }; protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT EnrolmentRequest.*, CoursePicture.*\n FROM EnrolmentRequest\n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = EnrolmentRequest.erClazzUid\n WHERE EnrolmentRequest.erPersonUid = CAST(? AS BIGINT) \n AND (? = 0 OR EnrolmentRequest.erStatus = ?)\n ', VOID, VOID, VOID, '\n SELECT EnrolmentRequest.*, CoursePicture.*\n FROM EnrolmentRequest\n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = EnrolmentRequest.erClazzUid\n WHERE EnrolmentRequest.erPersonUid = ? \n AND (? = 0 OR EnrolmentRequest.erStatus = ?)\n \n', true); suspendResult = prepareAndUseStatementAsync(this.gep_1.ieo_1, tmp_0, EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda_0(this.hep_1, this.iep_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda).q79 = function (completion) { return new EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda(this.gep_1, this.hep_1, this.iep_1, completion); }; function EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda_0(this$0, $accountPersonUid, $statusFilter, resultContinuation) { var i = new EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda(this$0, $accountPersonUid, $statusFilter, resultContinuation); var l = function ($completion) { return i.jep($completion); }; l.$arity = 0; return l; } function EnrolmentRequestDao_JdbcImpl$updateStatus$slambda($status, $updateTime, $uid, resultContinuation) { this.sep_1 = $status; this.tep_1 = $updateTime; this.uep_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolmentRequestDao_JdbcImpl$updateStatus$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(EnrolmentRequestDao_JdbcImpl$updateStatus$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EnrolmentRequestDao_JdbcImpl$updateStatus$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.vep_1.w5i(1, this.sep_1); this.vep_1.x5i(2, this.tep_1); this.vep_1.x5i(3, this.uep_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.vep_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(EnrolmentRequestDao_JdbcImpl$updateStatus$slambda).o5g = function (_stmt, completion) { var i = new EnrolmentRequestDao_JdbcImpl$updateStatus$slambda(this.sep_1, this.tep_1, this.uep_1, completion); i.vep_1 = _stmt; return i; }; function EnrolmentRequestDao_JdbcImpl$updateStatus$slambda_0($status, $updateTime, $uid, resultContinuation) { var i = new EnrolmentRequestDao_JdbcImpl$updateStatus$slambda($status, $updateTime, $uid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1(this$0, $clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder) { this.ceq_1 = this$0; this.deq_1 = $clazzUid; this.eeq_1 = $statusFilter; this.feq_1 = $includeDeleted; this.geq_1 = $searchText; this.heq_1 = $sortOrder; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['EnrolmentRequest', 'Person', 'PersonPicture']; DoorLimitOffsetPagingSource.call(this, this$0.ieo_1, tmp$ret$2); } protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1).ieq = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n SELECT EnrolmentRequest.*, PersonPicture.*, Person.*\n FROM EnrolmentRequest\n JOIN Person\n ON Person.personUid = EnrolmentRequest.erPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = EnrolmentRequest.erPersonUid\n WHERE EnrolmentRequest.erClazzUid = CAST(? AS BIGINT)\n AND (? = 0 OR EnrolmentRequest.erStatus = ?)\n AND (CAST(? AS INTEGER) = 1 OR NOT EnrolmentRequest.erDeleted)\n AND (? = '%' OR EnrolmentRequest.erPersonFullname LIKE ?)\n ORDER BY CASE(?)\n WHEN 1 THEN EnrolmentRequest.erPersonFullname\n WHEN 3 THEN EnrolmentRequest.erPersonFullname\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN EnrolmentRequest.erPersonFullname\n WHEN 4 THEN EnrolmentRequest.erPersonFullname\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN EnrolmentRequest.erRequestTime\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN EnrolmentRequest.erRequestTime\n ELSE 0\n END DESC \n ) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n SELECT EnrolmentRequest.*, PersonPicture.*, Person.*\n FROM EnrolmentRequest\n JOIN Person\n ON Person.personUid = EnrolmentRequest.erPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = EnrolmentRequest.erPersonUid\n WHERE EnrolmentRequest.erClazzUid = ?\n AND (? = 0 OR EnrolmentRequest.erStatus = ?)\n AND (CAST(? AS INTEGER) = 1 OR NOT EnrolmentRequest.erDeleted)\n AND (? = '%' OR EnrolmentRequest.erPersonFullname LIKE ?)\n ORDER BY CASE(?)\n WHEN 1 THEN EnrolmentRequest.erPersonFullname\n WHEN 3 THEN EnrolmentRequest.erPersonFullname\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN EnrolmentRequest.erPersonFullname\n WHEN 4 THEN EnrolmentRequest.erPersonFullname\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN EnrolmentRequest.erRequestTime\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN EnrolmentRequest.erRequestTime\n ELSE 0\n END DESC \n ) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.ceq_1.ieo_1, tmp, EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda_0(this.deq_1, this.eeq_1, this.feq_1, this.geq_1, this.heq_1, _limit, _offset, null), $completion); }; protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1).z5q = function (_limit, _offset, $completion) { return this.ieq(_limit, _offset, $completion); }; protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n SELECT EnrolmentRequest.*, PersonPicture.*, Person.*\n FROM EnrolmentRequest\n JOIN Person\n ON Person.personUid = EnrolmentRequest.erPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = EnrolmentRequest.erPersonUid\n WHERE EnrolmentRequest.erClazzUid = CAST(? AS BIGINT)\n AND (? = 0 OR EnrolmentRequest.erStatus = ?)\n AND (CAST(? AS INTEGER) = 1 OR NOT EnrolmentRequest.erDeleted)\n AND (? = '%' OR EnrolmentRequest.erPersonFullname LIKE ?)\n ORDER BY CASE(?)\n WHEN 1 THEN EnrolmentRequest.erPersonFullname\n WHEN 3 THEN EnrolmentRequest.erPersonFullname\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN EnrolmentRequest.erPersonFullname\n WHEN 4 THEN EnrolmentRequest.erPersonFullname\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN EnrolmentRequest.erRequestTime\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN EnrolmentRequest.erRequestTime\n ELSE 0\n END DESC \n ) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n SELECT EnrolmentRequest.*, PersonPicture.*, Person.*\n FROM EnrolmentRequest\n JOIN Person\n ON Person.personUid = EnrolmentRequest.erPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = EnrolmentRequest.erPersonUid\n WHERE EnrolmentRequest.erClazzUid = ?\n AND (? = 0 OR EnrolmentRequest.erStatus = ?)\n AND (CAST(? AS INTEGER) = 1 OR NOT EnrolmentRequest.erDeleted)\n AND (? = '%' OR EnrolmentRequest.erPersonFullname LIKE ?)\n ORDER BY CASE(?)\n WHEN 1 THEN EnrolmentRequest.erPersonFullname\n WHEN 3 THEN EnrolmentRequest.erPersonFullname\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN EnrolmentRequest.erPersonFullname\n WHEN 4 THEN EnrolmentRequest.erPersonFullname\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN EnrolmentRequest.erRequestTime\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN EnrolmentRequest.erRequestTime\n ELSE 0\n END DESC \n ) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.ceq_1.ieo_1, tmp, EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda_0(this.deq_1, this.eeq_1, this.feq_1, this.geq_1, this.heq_1, null), $completion); }; function $updateStatusCOROUTINE$242(_this__u8e3s4, uid, status, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.req_1 = _this__u8e3s4; this.seq_1 = uid; this.teq_1 = status; this.ueq_1 = updateTime; } protoOf($updateStatusCOROUTINE$242).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE EnrolmentRequest\n SET erStatus = ?,\n erLastModified = CAST(? AS BIGINT)\n WHERE erUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE EnrolmentRequest\n SET erStatus = ?,\n erLastModified = ?\n WHERE erUid = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this.req_1.ieo_1, tmp_0, EnrolmentRequestDao_JdbcImpl$updateStatus$slambda_0(this.teq_1, this.ueq_1, this.seq_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function EnrolmentRequestDao_JdbcImpl(_db) { EnrolmentRequestDao.call(this); this.ieo_1 = _db; var tmp = this; tmp.jeo_1 = new EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1(this); } protoOf(EnrolmentRequestDao_JdbcImpl).fel = function (enrolmentRequest, $completion) { return this.jeo_1.x5h(enrolmentRequest, $completion); }; protoOf(EnrolmentRequestDao_JdbcImpl).gel = function (personUid, clazzUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT EXISTS(\n SELECT EnrolmentRequest.erUid\n FROM EnrolmentRequest\n WHERE EnrolmentRequest.erPersonUid = CAST(? AS BIGINT)\n AND EnrolmentRequest.erClazzUid = CAST(? AS BIGINT)\n AND EnrolmentRequest.erStatus = 1)\n ', VOID, VOID, VOID, '\n SELECT EXISTS(\n SELECT EnrolmentRequest.erUid\n FROM EnrolmentRequest\n WHERE EnrolmentRequest.erPersonUid = ?\n AND EnrolmentRequest.erClazzUid = ?\n AND EnrolmentRequest.erStatus = 1)\n \n', true); return prepareAndUseStatementAsync(this.ieo_1, tmp, EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda_0(personUid, clazzUid, null), $completion); }; protoOf(EnrolmentRequestDao_JdbcImpl).hel = function (accountPersonUid, statusFilter) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['EnrolmentRequest', 'CoursePicture']; return doorFlow(this.ieo_1, tmp, EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda_0(this, accountPersonUid, statusFilter, null)); }; protoOf(EnrolmentRequestDao_JdbcImpl).iel = function (uid, status, updateTime, $completion) { var tmp = new $updateStatusCOROUTINE$242(this, uid, status, updateTime, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(EnrolmentRequestDao_JdbcImpl).jel = function (clazzUid, includeDeleted, statusFilter, searchText, sortOrder) { return new EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1(this, clazzUid, statusFilter, includeDeleted, searchText, sortOrder); }; function EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function EnrolmentRequestDao_Repo$insert$slambda(this$0, $enrolmentRequest, resultContinuation) { this.der_1 = this$0; this.eer_1 = $enrolmentRequest; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolmentRequestDao_Repo$insert$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(EnrolmentRequestDao_Repo$insert$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(EnrolmentRequestDao_Repo$insert$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.der_1.her_1.fel(this.eer_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(EnrolmentRequestDao_Repo$insert$slambda).q79 = function (completion) { return new EnrolmentRequestDao_Repo$insert$slambda(this.der_1, this.eer_1, completion); }; function EnrolmentRequestDao_Repo$insert$slambda_0(this$0, $enrolmentRequest, resultContinuation) { var i = new EnrolmentRequestDao_Repo$insert$slambda(this$0, $enrolmentRequest, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function EnrolmentRequestDao_Repo$hasPendingRequests$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda(this$0, $accountPersonUid, $statusFilter, resultContinuation) { this.uer_1 = this$0; this.ver_1 = $accountPersonUid; this.wer_1 = $statusFilter; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.xer_1 = this.uer_1.ger_1; var tmp_1 = this; tmp_1.yer_1 = 'EnrolmentRequestDao/findRequestsForUserAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.zer_1 = this.uer_1.ier_1; var tmp_3 = this; tmp_3.aes_1 = this.zer_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.uer_1.ger_1.t39(), 'EnrolmentRequestDao/findRequestsForUserAsFlow'); doorNodeIdHeader(this_0, this.uer_1.ger_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.uer_1.ger_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ver_1)); parameter(this_0, 'statusFilter', this.uer_1.ger_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.wer_1)); tmp_4.bes_1 = this_0; this.bes_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.ces_1 = this.aes_1; var tmp_6 = this; tmp_6.des_1 = this.bes_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.des_1, this.ces_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ees_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.uer_1.fer_1, this.ees_1, this.uer_1.ger_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda$lambda(this.xer_1, this.yer_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda).q79 = function (completion) { return new EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda(this.uer_1, this.ver_1, this.wer_1, completion); }; function EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda_0(this$0, $accountPersonUid, $statusFilter, resultContinuation) { var i = new EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda(this$0, $accountPersonUid, $statusFilter, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function EnrolmentRequestDao_Repo$updateStatus$slambda(this$0, $uid, $status, $updateTime, resultContinuation) { this.nes_1 = this$0; this.oes_1 = $uid; this.pes_1 = $status; this.qes_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolmentRequestDao_Repo$updateStatus$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(EnrolmentRequestDao_Repo$updateStatus$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(EnrolmentRequestDao_Repo$updateStatus$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.nes_1.her_1.iel(this.oes_1, this.pes_1, this.qes_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(EnrolmentRequestDao_Repo$updateStatus$slambda).q79 = function (completion) { return new EnrolmentRequestDao_Repo$updateStatus$slambda(this.nes_1, this.oes_1, this.pes_1, this.qes_1, completion); }; function EnrolmentRequestDao_Repo$updateStatus$slambda_0(this$0, $uid, $status, $updateTime, resultContinuation) { var i = new EnrolmentRequestDao_Repo$updateStatus$slambda(this$0, $uid, $status, $updateTime, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda(this$0, $clazzUid, $includeDeleted, $statusFilter, $searchText, $sortOrder, resultContinuation) { this.zes_1 = this$0; this.aet_1 = $clazzUid; this.bet_1 = $includeDeleted; this.cet_1 = $statusFilter; this.det_1 = $searchText; this.eet_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.het_1 = this.zes_1.ger_1; var tmp_1 = this; tmp_1.iet_1 = 'EnrolmentRequestDao/findPendingEnrolmentsForCourse'; this.md_1 = 4; var tmp_2 = this; tmp_2.jet_1 = this.zes_1.ier_1; var tmp_3 = this; tmp_3.ket_1 = this.jet_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.zes_1.ger_1.t39(), 'EnrolmentRequestDao/findPendingEnrolmentsForCourse'); doorNodeIdHeader(this_0, this.zes_1.ger_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.zes_1.ger_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.aet_1)); parameter(this_0, 'includeDeleted', this.zes_1.ger_1.t39().a67_1.b46(serializer_2(BooleanCompanionObject_instance), this.bet_1)); parameter(this_0, 'statusFilter', this.zes_1.ger_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.cet_1)); parameter(this_0, 'searchText', this.zes_1.ger_1.t39().a67_1.b46(serializer_0(StringCompanionObject_instance), this.det_1)); parameter(this_0, 'sortOrder', this.zes_1.ger_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.eet_1)); pagingSourceLoadParameters(this_0, this.zes_1.ger_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.fet_1); tmp_4.let_1 = this_0; this.let_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.met_1 = this.ket_1; var tmp_6 = this; tmp_6.net_1 = this.let_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.net_1, this.met_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.oet_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.zes_1.fer_1, this.oet_1, this.zes_1.ger_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.get_1 = endOfPaginationReached(this.oet_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda$lambda(this.het_1, this.iet_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.get_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda).g87 = function (_pagingParams, completion) { var i = new EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda(this.zes_1, this.aet_1, this.bet_1, this.cet_1, this.det_1, this.eet_1, completion); i.fet_1 = _pagingParams; return i; }; function EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda_0(this$0, $clazzUid, $includeDeleted, $statusFilter, $searchText, $sortOrder, resultContinuation) { var i = new EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda(this$0, $clazzUid, $includeDeleted, $statusFilter, $searchText, $sortOrder, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function $hasPendingRequestsCOROUTINE$244(_this__u8e3s4, personUid, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.xet_1 = _this__u8e3s4; this.yet_1 = personUid; this.zet_1 = clazzUid; } protoOf($hasPendingRequestsCOROUTINE$244).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.aeu_1 = this.xet_1.ger_1; var tmp_1 = this; tmp_1.beu_1 = 'EnrolmentRequestDao/hasPendingRequests'; this.md_1 = 3; var tmp_2 = this; tmp_2.ceu_1 = this.xet_1.ier_1; var tmp_3 = this; tmp_3.deu_1 = this.ceu_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.xet_1.ger_1.t39(), 'EnrolmentRequestDao/hasPendingRequests'); doorNodeIdHeader(this_0, this.xet_1.ger_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'personUid', this.xet_1.ger_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.yet_1)); parameter(this_0, 'clazzUid', this.xet_1.ger_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.zet_1)); tmp_4.eeu_1 = this_0; this.eeu_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.feu_1 = this.deu_1; var tmp_6 = this; tmp_6.geu_1 = this.eeu_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.geu_1, this.feu_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.heu_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.xet_1.fer_1, this.heu_1, this.xet_1.ger_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.ieu_1 = this.od_1; Napier_getInstance().e5f(this.ieu_1, 'DoorLog', EnrolmentRequestDao_Repo$hasPendingRequests$lambda(this.aeu_1, this.beu_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.xet_1.her_1.gel(this.yet_1, this.zet_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function EnrolmentRequestDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { EnrolmentRequestDao.call(this); this.fer_1 = _db; this.ger_1 = _repo; this.her_1 = _dao; this.ier_1 = _httpClient; this.jer_1 = _clientId; this.ker_1 = _endpoint; this.ler_1 = new RepoDaoFlowHelper(this.ger_1); } protoOf(EnrolmentRequestDao_Repo).fel = function (enrolmentRequest, $completion) { return withRepoChangeMonitorAsync(this.ger_1, 'EnrolmentRequest', EnrolmentRequestDao_Repo$insert$slambda_0(this, enrolmentRequest, null), $completion); }; protoOf(EnrolmentRequestDao_Repo).gel = function (personUid, clazzUid, $completion) { var tmp = new $hasPendingRequestsCOROUTINE$244(this, personUid, clazzUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(EnrolmentRequestDao_Repo).hel = function (accountPersonUid, statusFilter) { var tmp = this.her_1.hel(accountPersonUid, statusFilter); return this.ler_1.r68(tmp, EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda_0(this, accountPersonUid, statusFilter, null)); }; protoOf(EnrolmentRequestDao_Repo).iel = function (uid, status, updateTime, $completion) { return withRepoChangeMonitorAsync(this.ger_1, 'EnrolmentRequest', EnrolmentRequestDao_Repo$updateStatus$slambda_0(this, uid, status, updateTime, null), $completion); }; protoOf(EnrolmentRequestDao_Repo).jel = function (clazzUid, includeDeleted, statusFilter, searchText, sortOrder) { var tmp = this.her_1.jel(clazzUid, includeDeleted, statusFilter, searchText, sortOrder); return new DoorRepositoryReplicatePullPagingSource(this.ger_1, 'EnrolmentRequestDao/findPendingEnrolmentsForCourse', tmp, EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda_0(this, clazzUid, includeDeleted, statusFilter, searchText, sortOrder, null)); }; function ErrorReportDao() { } function ErrorReportDao_DoorWrapper(_db, _dao) { ErrorReportDao.call(this); this.jeu_1 = _db; this.keu_1 = _dao; } function ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.leu_1); } protoOf(ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1).w5h = function (returnsId) { return 'INSERT INTO ErrorReport (errUid, errPcsn, errLcsn, errLcb, errLct, severity, timestamp, presenterUri, appVersion, versionCode, errorCode, operatingSys, osVersion, stackTrace, message) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1).peu = function (stmt, entity) { if (entity.qeu_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.qeu_1); } stmt.x5i(2, entity.reu_1); stmt.x5i(3, entity.seu_1); stmt.w5i(4, entity.teu_1); stmt.x5i(5, entity.ueu_1); stmt.w5i(6, entity.veu_1); stmt.x5i(7, entity.weu_1); stmt.a5j(8, entity.xeu_1); stmt.a5j(9, entity.yeu_1); stmt.w5i(10, entity.zeu_1); stmt.w5i(11, entity.aev_1); stmt.a5j(12, entity.bev_1); stmt.a5j(13, entity.cev_1); stmt.a5j(14, entity.dev_1); stmt.a5j(15, entity.eev_1); }; protoOf(ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1).r5g = function (stmt, entity) { return this.peu(stmt, entity instanceof ErrorReport ? entity : THROW_CCE()); }; function ErrorReportDao_JdbcImpl(_db) { ErrorReportDao.call(this); this.leu_1 = _db; var tmp = this; tmp.meu_1 = new ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1(this); } function ErrorReportDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ErrorReportDao.call(this); this.fev_1 = _db; this.gev_1 = _repo; this.hev_1 = _dao; this.iev_1 = _httpClient; this.jev_1 = _clientId; this.kev_1 = _endpoint; } function ExternalAppPermissionDao() { } function ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.lev_1); } protoOf(ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1).w5h = function (returnsId) { return 'INSERT INTO ExternalAppPermission (eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1).pev = function (stmt, entity) { if (entity.qev_1 === 0) { stmt.c5j(1, null); } else { stmt.w5i(1, entity.qev_1); } stmt.x5i(2, entity.rev_1); stmt.a5j(3, entity.sev_1); stmt.x5i(4, entity.tev_1); stmt.x5i(5, entity.uev_1); stmt.a5j(6, entity.vev_1); stmt.a5j(7, entity.wev_1); }; protoOf(ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1).r5g = function (stmt, entity) { return this.pev(stmt, entity instanceof ExternalAppPermission ? entity : THROW_CCE()); }; function ExternalAppPermissionDao_JdbcImpl(_db) { ExternalAppPermissionDao.call(this); this.lev_1 = _db; var tmp = this; tmp.mev_1 = new ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1(this); } function HolidayCalendarDao() { } function $insertAsyncCOROUTINE$251(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.few_1 = _this__u8e3s4; this.gew_1 = entity; } protoOf($insertAsyncCOROUTINE$251).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.hew_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.few_1.jew_1)); if (this.gew_1.a8g_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.hew_1.r63(28, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.iew_1 = suspendResult; this.gew_1.a8g_1 = this.iew_1; this.ld_1 = 2; continue $sm; case 2: this.gew_1.h8g_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.few_1.kew_1.insertAsync(this.gew_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.gew_1.a8g_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function HolidayCalendarDao_DoorWrapper(_db, _dao) { HolidayCalendarDao.call(this); this.jew_1 = _db; this.kew_1 = _dao; } protoOf(HolidayCalendarDao_DoorWrapper).lew = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$251(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(HolidayCalendarDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.lew(entity instanceof HolidayCalendar ? entity : THROW_CCE(), $completion); }; function HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.mew_1); } protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO HolidayCalendar (umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1).rew = function (stmt, entity) { if (entity.a8g_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.a8g_1); } stmt.a5j(2, entity.b8g_1); stmt.w5i(3, entity.c8g_1); stmt.k5i(4, entity.d8g_1); stmt.x5i(5, entity.e8g_1); stmt.x5i(6, entity.f8g_1); stmt.w5i(7, entity.g8g_1); stmt.x5i(8, entity.h8g_1); }; protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1).r5g = function (stmt, entity) { return this.rew(stmt, entity instanceof HolidayCalendar ? entity : THROW_CCE()); }; function HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.mew_1); } protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1).w5h = function (returnsId) { return 'INSERT INTO HolidayCalendar (umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1).rew = function (stmt, entity) { if (entity.a8g_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.a8g_1); } stmt.a5j(2, entity.b8g_1); stmt.w5i(3, entity.c8g_1); stmt.k5i(4, entity.d8g_1); stmt.x5i(5, entity.e8g_1); stmt.x5i(6, entity.f8g_1); stmt.w5i(7, entity.g8g_1); stmt.x5i(8, entity.h8g_1); }; protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1).r5g = function (stmt, entity) { return this.rew(stmt, entity instanceof HolidayCalendar ? entity : THROW_CCE()); }; function $insertAsyncCOROUTINE$252(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cex_1 = _this__u8e3s4; this.dex_1 = entity; } protoOf($insertAsyncCOROUTINE$252).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.cex_1.oew_1.y5h(this.dex_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function HolidayCalendarDao_JdbcImpl(_db) { HolidayCalendarDao.call(this); this.mew_1 = _db; var tmp = this; tmp.new_1 = new HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1(this); var tmp_0 = this; tmp_0.oew_1 = new HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1(this); } protoOf(HolidayCalendarDao_JdbcImpl).lew = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$252(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(HolidayCalendarDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.lew(entity instanceof HolidayCalendar ? entity : THROW_CCE(), $completion); }; function HolidayCalendarDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.mex_1 = this$0; this.nex_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(HolidayCalendarDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(HolidayCalendarDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(HolidayCalendarDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.mex_1.qex_1.insertAsync(this.nex_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(HolidayCalendarDao_Repo$insertAsync$slambda).q79 = function (completion) { return new HolidayCalendarDao_Repo$insertAsync$slambda(this.mex_1, this.nex_1, completion); }; function HolidayCalendarDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new HolidayCalendarDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$257(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cey_1 = _this__u8e3s4; this.dey_1 = entity; } protoOf($insertAsyncCOROUTINE$257).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.cey_1.pex_1, 'HolidayCalendar', HolidayCalendarDao_Repo$insertAsync$slambda_0(this.cey_1, this.dey_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function HolidayCalendarDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { HolidayCalendarDao.call(this); this.oex_1 = _db; this.pex_1 = _repo; this.qex_1 = _dao; this.rex_1 = _httpClient; this.sex_1 = _clientId; this.tex_1 = _endpoint; } protoOf(HolidayCalendarDao_Repo).lew = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$257(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(HolidayCalendarDao_Repo).insertAsync = function (entity, $completion) { return this.lew(entity instanceof HolidayCalendar ? entity : THROW_CCE(), $completion); }; function HolidayDao() { } function $insertAsyncCOROUTINE$259(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.mey_1 = _this__u8e3s4; this.ney_1 = entity; } protoOf($insertAsyncCOROUTINE$259).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.oey_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.mey_1.qey_1)); if (this.ney_1.sey_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.oey_1.r63(99, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.pey_1 = suspendResult; this.ney_1.sey_1 = this.pey_1; this.ld_1 = 2; continue $sm; case 2: this.ney_1.wey_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.mey_1.rey_1.insertAsync(this.ney_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.ney_1.sey_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function HolidayDao_DoorWrapper(_db, _dao) { HolidayDao.call(this); this.qey_1 = _db; this.rey_1 = _dao; } protoOf(HolidayDao_DoorWrapper).cez = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$259(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(HolidayDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.cez(entity instanceof Holiday ? entity : THROW_CCE(), $completion); }; function HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.dez_1); } protoOf(HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1).w5h = function (returnsId) { return 'INSERT INTO Holiday (holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1).hez = function (stmt, entity) { if (entity.sey_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.sey_1); } stmt.x5i(2, entity.tey_1); stmt.x5i(3, entity.uey_1); stmt.w5i(4, entity.vey_1); stmt.x5i(5, entity.wey_1); stmt.k5i(6, entity.xey_1); stmt.x5i(7, entity.yey_1); stmt.x5i(8, entity.zey_1); stmt.x5i(9, entity.aez_1); stmt.a5j(10, entity.bez_1); }; protoOf(HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1).r5g = function (stmt, entity) { return this.hez(stmt, entity instanceof Holiday ? entity : THROW_CCE()); }; function $insertAsyncCOROUTINE$261(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qez_1 = _this__u8e3s4; this.rez_1 = entity; } protoOf($insertAsyncCOROUTINE$261).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.qez_1.eez_1.y5h(this.rez_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function HolidayDao_JdbcImpl(_db) { HolidayDao.call(this); this.dez_1 = _db; var tmp = this; tmp.eez_1 = new HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1(this); } protoOf(HolidayDao_JdbcImpl).cez = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$261(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(HolidayDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.cez(entity instanceof Holiday ? entity : THROW_CCE(), $completion); }; function HolidayDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.af0_1 = this$0; this.bf0_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(HolidayDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(HolidayDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(HolidayDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.af0_1.ef0_1.insertAsync(this.bf0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(HolidayDao_Repo$insertAsync$slambda).q79 = function (completion) { return new HolidayDao_Repo$insertAsync$slambda(this.af0_1, this.bf0_1, completion); }; function HolidayDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new HolidayDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$263(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qf0_1 = _this__u8e3s4; this.rf0_1 = entity; } protoOf($insertAsyncCOROUTINE$263).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.qf0_1.df0_1, 'Holiday', HolidayDao_Repo$insertAsync$slambda_0(this.qf0_1, this.rf0_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function HolidayDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { HolidayDao.call(this); this.cf0_1 = _db; this.df0_1 = _repo; this.ef0_1 = _dao; this.ff0_1 = _httpClient; this.gf0_1 = _clientId; this.hf0_1 = _endpoint; } protoOf(HolidayDao_Repo).cez = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$263(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(HolidayDao_Repo).insertAsync = function (entity, $completion) { return this.cez(entity instanceof Holiday ? entity : THROW_CCE(), $completion); }; function LanguageDao() { } function $insertAsyncCOROUTINE$265(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.af1_1 = _this__u8e3s4; this.bf1_1 = entity; } protoOf($insertAsyncCOROUTINE$265).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.cf1_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.af1_1.ef1_1)); if (this.bf1_1.ccb_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.cf1_1.r63(13, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.df1_1 = suspendResult; this.bf1_1.ccb_1 = this.df1_1; this.ld_1 = 2; continue $sm; case 2: this.bf1_1.mcb_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.af1_1.ff1_1.insertAsync(this.bf1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.bf1_1.ccb_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function LanguageDao_DoorWrapper(_db, _dao) { LanguageDao.call(this); this.ef1_1 = _db; this.ff1_1 = _dao; } protoOf(LanguageDao_DoorWrapper).gf1 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$265(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(LanguageDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.gf1(entity instanceof Language ? entity : THROW_CCE(), $completion); }; function LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.hf1_1); } protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1).w5h = function (returnsId) { return 'INSERT INTO Language (langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1).mf1 = function (stmt, entity) { if (entity.ccb_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.ccb_1); } stmt.a5j(2, entity.dcb_1); stmt.a5j(3, entity.ecb_1); stmt.a5j(4, entity.fcb_1); stmt.a5j(5, entity.gcb_1); stmt.a5j(6, entity.hcb_1); stmt.k5i(7, entity.icb_1); stmt.x5i(8, entity.jcb_1); stmt.x5i(9, entity.kcb_1); stmt.w5i(10, entity.lcb_1); stmt.x5i(11, entity.mcb_1); }; protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1).r5g = function (stmt, entity) { return this.mf1(stmt, entity instanceof Language ? entity : THROW_CCE()); }; function LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.hf1_1); } protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO Language (langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1).mf1 = function (stmt, entity) { if (entity.ccb_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.ccb_1); } stmt.a5j(2, entity.dcb_1); stmt.a5j(3, entity.ecb_1); stmt.a5j(4, entity.fcb_1); stmt.a5j(5, entity.gcb_1); stmt.a5j(6, entity.hcb_1); stmt.k5i(7, entity.icb_1); stmt.x5i(8, entity.jcb_1); stmt.x5i(9, entity.kcb_1); stmt.w5i(10, entity.lcb_1); stmt.x5i(11, entity.mcb_1); }; protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1).r5g = function (stmt, entity) { return this.mf1(stmt, entity instanceof Language ? entity : THROW_CCE()); }; function $insertAsyncCOROUTINE$266(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.xf1_1 = _this__u8e3s4; this.yf1_1 = entity; } protoOf($insertAsyncCOROUTINE$266).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.xf1_1.if1_1.y5h(this.yf1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function LanguageDao_JdbcImpl(_db) { LanguageDao.call(this); this.hf1_1 = _db; var tmp = this; tmp.if1_1 = new LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1(this); var tmp_0 = this; tmp_0.jf1_1 = new LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1(this); } protoOf(LanguageDao_JdbcImpl).gf1 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$266(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(LanguageDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.gf1(entity instanceof Language ? entity : THROW_CCE(), $completion); }; function LanguageDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.hf2_1 = this$0; this.if2_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(LanguageDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(LanguageDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(LanguageDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.hf2_1.lf2_1.insertAsync(this.if2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(LanguageDao_Repo$insertAsync$slambda).q79 = function (completion) { return new LanguageDao_Repo$insertAsync$slambda(this.hf2_1, this.if2_1, completion); }; function LanguageDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new LanguageDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$272(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.xf2_1 = _this__u8e3s4; this.yf2_1 = entity; } protoOf($insertAsyncCOROUTINE$272).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.xf2_1.kf2_1, 'Language', LanguageDao_Repo$insertAsync$slambda_0(this.xf2_1, this.yf2_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function LanguageDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { LanguageDao.call(this); this.jf2_1 = _db; this.kf2_1 = _repo; this.lf2_1 = _dao; this.mf2_1 = _httpClient; this.nf2_1 = _clientId; this.of2_1 = _endpoint; } protoOf(LanguageDao_Repo).gf1 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$272(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(LanguageDao_Repo).insertAsync = function (entity, $completion) { return this.gf1(entity instanceof Language ? entity : THROW_CCE(), $completion); }; function LanguageVariantDao() { } function $insertAsyncCOROUTINE$273(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.hf3_1 = _this__u8e3s4; this.if3_1 = entity; } protoOf($insertAsyncCOROUTINE$273).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.jf3_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.hf3_1.lf3_1)); if (this.if3_1.nf3_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.jf3_1.r63(10, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.kf3_1 = suspendResult; this.if3_1.nf3_1 = this.kf3_1; this.ld_1 = 2; continue $sm; case 2: this.if3_1.uf3_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.hf3_1.mf3_1.insertAsync(this.if3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.if3_1.nf3_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function LanguageVariantDao_DoorWrapper(_db, _dao) { LanguageVariantDao.call(this); this.lf3_1 = _db; this.mf3_1 = _dao; } protoOf(LanguageVariantDao_DoorWrapper).vf3 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$273(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(LanguageVariantDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.vf3(entity instanceof LanguageVariant ? entity : THROW_CCE(), $completion); }; function LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.wf3_1); } protoOf(LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1).w5h = function (returnsId) { return 'INSERT INTO LanguageVariant (langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1).af4 = function (stmt, entity) { if (entity.nf3_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.nf3_1); } stmt.x5i(2, entity.of3_1); stmt.a5j(3, entity.pf3_1); stmt.a5j(4, entity.qf3_1); stmt.x5i(5, entity.rf3_1); stmt.x5i(6, entity.sf3_1); stmt.w5i(7, entity.tf3_1); stmt.x5i(8, entity.uf3_1); }; protoOf(LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1).r5g = function (stmt, entity) { return this.af4(stmt, entity instanceof LanguageVariant ? entity : THROW_CCE()); }; function $insertAsyncCOROUTINE$274(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.jf4_1 = _this__u8e3s4; this.kf4_1 = entity; } protoOf($insertAsyncCOROUTINE$274).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.jf4_1.xf3_1.y5h(this.kf4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function LanguageVariantDao_JdbcImpl(_db) { LanguageVariantDao.call(this); this.wf3_1 = _db; var tmp = this; tmp.xf3_1 = new LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1(this); } protoOf(LanguageVariantDao_JdbcImpl).vf3 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$274(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(LanguageVariantDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.vf3(entity instanceof LanguageVariant ? entity : THROW_CCE(), $completion); }; function LanguageVariantDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.tf4_1 = this$0; this.uf4_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(LanguageVariantDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(LanguageVariantDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(LanguageVariantDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.tf4_1.xf4_1.insertAsync(this.uf4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(LanguageVariantDao_Repo$insertAsync$slambda).q79 = function (completion) { return new LanguageVariantDao_Repo$insertAsync$slambda(this.tf4_1, this.uf4_1, completion); }; function LanguageVariantDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new LanguageVariantDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$275(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.jf5_1 = _this__u8e3s4; this.kf5_1 = entity; } protoOf($insertAsyncCOROUTINE$275).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.jf5_1.wf4_1, 'LanguageVariant', LanguageVariantDao_Repo$insertAsync$slambda_0(this.jf5_1, this.kf5_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function LanguageVariantDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { LanguageVariantDao.call(this); this.vf4_1 = _db; this.wf4_1 = _repo; this.xf4_1 = _dao; this.yf4_1 = _httpClient; this.zf4_1 = _clientId; this.af5_1 = _endpoint; } protoOf(LanguageVariantDao_Repo).vf3 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$275(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(LanguageVariantDao_Repo).insertAsync = function (entity, $completion) { return this.vf3(entity instanceof LanguageVariant ? entity : THROW_CCE(), $completion); }; function LeavingReasonDao() { } function $insertAsyncCOROUTINE$277(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.uf5_1 = _this__u8e3s4; this.vf5_1 = entity; } protoOf($insertAsyncCOROUTINE$277).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.wf5_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.uf5_1.yf5_1)); if (this.vf5_1.o95_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.wf5_1.r63(410, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.xf5_1 = suspendResult; this.vf5_1.o95_1 = this.xf5_1; this.ld_1 = 2; continue $sm; case 2: this.vf5_1.t95_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.uf5_1.zf5_1.insertAsync(this.vf5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.vf5_1.o95_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function LeavingReasonDao_DoorWrapper(_db, _dao) { LeavingReasonDao.call(this); this.yf5_1 = _db; this.zf5_1 = _dao; } protoOf(LeavingReasonDao_DoorWrapper).lf5 = function (uid, $completion) { return this.zf5_1.lf5(uid, $completion); }; protoOf(LeavingReasonDao_DoorWrapper).af6 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$277(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(LeavingReasonDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.af6(entity instanceof LeavingReason ? entity : THROW_CCE(), $completion); }; function LeavingReasonDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, LeavingReasonDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function LeavingReasonDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_leavingReasonUid = $_result.b5o('leavingReasonUid'); var _tmp_leavingReasonTitle = $_result.b10('leavingReasonTitle'); var _tmp_leavingReasonMCSN = $_result.b5o('leavingReasonMCSN'); var _tmp_leavingReasonCSN = $_result.b5o('leavingReasonCSN'); var _tmp_leavingReasonLCB = $_result.a5o('leavingReasonLCB'); var _tmp_leavingReasonLct = $_result.b5o('leavingReasonLct'); // Inline function 'kotlin.apply' call var this_0 = new LeavingReason(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.LeavingReasonDao_JdbcImpl.findByUidAsync....' call this_0.o95_1 = _tmp_leavingReasonUid; this_0.p95_1 = _tmp_leavingReasonTitle; this_0.q95_1 = _tmp_leavingReasonMCSN; this_0.r95_1 = _tmp_leavingReasonCSN; this_0.s95_1 = _tmp_leavingReasonLCB; this_0.t95_1 = _tmp_leavingReasonLct; return this_0; }; } function LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.bf6_1); } protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO LeavingReason (leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1).gf6 = function (stmt, entity) { if (entity.o95_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.o95_1); } stmt.a5j(2, entity.p95_1); stmt.x5i(3, entity.q95_1); stmt.x5i(4, entity.r95_1); stmt.w5i(5, entity.s95_1); stmt.x5i(6, entity.t95_1); }; protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1).r5g = function (stmt, entity) { return this.gf6(stmt, entity instanceof LeavingReason ? entity : THROW_CCE()); }; function LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.bf6_1); } protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1).w5h = function (returnsId) { return 'INSERT INTO LeavingReason (leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1).gf6 = function (stmt, entity) { if (entity.o95_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.o95_1); } stmt.a5j(2, entity.p95_1); stmt.x5i(3, entity.q95_1); stmt.x5i(4, entity.r95_1); stmt.w5i(5, entity.s95_1); stmt.x5i(6, entity.t95_1); }; protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1).r5g = function (stmt, entity) { return this.gf6(stmt, entity instanceof LeavingReason ? entity : THROW_CCE()); }; function LeavingReasonDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) { this.rf6_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonDao_JdbcImpl$findByUidAsync$slambda).tf6 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(LeavingReasonDao_JdbcImpl$findByUidAsync$slambda).le = function (p1, $completion) { return this.tf6((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LeavingReasonDao_JdbcImpl$findByUidAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.sf6_1.x5i(1, this.rf6_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.sf6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, LeavingReasonDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(LeavingReasonDao_JdbcImpl$findByUidAsync$slambda).o5g = function (_stmt, completion) { var i = new LeavingReasonDao_JdbcImpl$findByUidAsync$slambda(this.rf6_1, completion); i.sf6_1 = _stmt; return i; }; function LeavingReasonDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) { var i = new LeavingReasonDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.tf6(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$278(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cf7_1 = _this__u8e3s4; this.df7_1 = entity; } protoOf($insertAsyncCOROUTINE$278).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.cf7_1.df6_1.y5h(this.df7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function LeavingReasonDao_JdbcImpl(_db) { LeavingReasonDao.call(this); this.bf6_1 = _db; var tmp = this; tmp.cf6_1 = new LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1(this); var tmp_0 = this; tmp_0.df6_1 = new LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1(this); } protoOf(LeavingReasonDao_JdbcImpl).af6 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$278(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(LeavingReasonDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.af6(entity instanceof LeavingReason ? entity : THROW_CCE(), $completion); }; protoOf(LeavingReasonDao_JdbcImpl).lf5 = function (uid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM LeavingReason WHERE leavingReasonUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM LeavingReason WHERE leavingReasonUid = ?\n', true); return prepareAndUseStatementAsync(this.bf6_1, tmp, LeavingReasonDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion); }; function LeavingReasonDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.mf7_1 = this$0; this.nf7_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(LeavingReasonDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(LeavingReasonDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.mf7_1.qf7_1.insertAsync(this.nf7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(LeavingReasonDao_Repo$insertAsync$slambda).q79 = function (completion) { return new LeavingReasonDao_Repo$insertAsync$slambda(this.mf7_1, this.nf7_1, completion); }; function LeavingReasonDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new LeavingReasonDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $findByUidAsyncCOROUTINE$281(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cf8_1 = _this__u8e3s4; this.df8_1 = uid; } protoOf($findByUidAsyncCOROUTINE$281).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.cf8_1.qf7_1.lf5(this.df8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$285(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.mf8_1 = _this__u8e3s4; this.nf8_1 = entity; } protoOf($insertAsyncCOROUTINE$285).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.mf8_1.pf7_1, 'LeavingReason', LeavingReasonDao_Repo$insertAsync$slambda_0(this.mf8_1, this.nf8_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function LeavingReasonDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { LeavingReasonDao.call(this); this.of7_1 = _db; this.pf7_1 = _repo; this.qf7_1 = _dao; this.rf7_1 = _httpClient; this.sf7_1 = _clientId; this.tf7_1 = _endpoint; } protoOf(LeavingReasonDao_Repo).lf5 = function (uid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$281(this, uid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(LeavingReasonDao_Repo).af6 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$285(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(LeavingReasonDao_Repo).insertAsync = function (entity, $completion) { return this.af6(entity instanceof LeavingReason ? entity : THROW_CCE(), $completion); }; function MessageDao() { } function $insertCOROUTINE$286(_this__u8e3s4, message, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.zf8_1 = _this__u8e3s4; this.af9_1 = message; } protoOf($insertCOROUTINE$286).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.bf9_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.zf8_1.df9_1)); if (this.af9_1.ff9_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.bf9_1.r63(126, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.cf9_1 = suspendResult; this.af9_1.ff9_1 = this.cf9_1; this.ld_1 = 2; continue $sm; case 2: this.af9_1.kf9_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.zf8_1.ef9_1.qf8(this.af9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_instance; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function MessageDao_DoorWrapper(_db, _dao) { MessageDao.call(this); this.df9_1 = _db; this.ef9_1 = _dao; } protoOf(MessageDao_DoorWrapper).of8 = function (accountPersonUid, otherPersonUid) { return this.ef9_1.of8(accountPersonUid, otherPersonUid); }; protoOf(MessageDao_DoorWrapper).pf8 = function (searchQuery, accountPersonUid) { return this.ef9_1.pf8(searchQuery, accountPersonUid); }; protoOf(MessageDao_DoorWrapper).qf8 = function (message, $completion) { var tmp = new $insertCOROUTINE$286(this, message, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda$lambda(_result) { return mapRows(_result, MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda$lambda$lambda(_result)); } function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_messageUid = $_result.b5o('messageUid'); var _tmp_messageSenderPersonUid = $_result.b5o('messageSenderPersonUid'); var _tmp_messageToPersonUid = $_result.b5o('messageToPersonUid'); var _tmp_messageText = $_result.b10('messageText'); var _tmp_messageTimestamp = $_result.b5o('messageTimestamp'); var _tmp_messageLct = $_result.b5o('messageLct'); // Inline function 'kotlin.apply' call var this_0 = new Message(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.ff9_1 = _tmp_messageUid; this_0.gf9_1 = _tmp_messageSenderPersonUid; this_0.hf9_1 = _tmp_messageToPersonUid; this_0.if9_1 = _tmp_messageText; this_0.jf9_1 = _tmp_messageTimestamp; this_0.kf9_1 = _tmp_messageLct; return this_0; }; } function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda$lambda$lambda(_result)); } function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda($accountPersonUid, $otherPersonUid, $_limit, $_offset, resultContinuation) { this.tf9_1 = $accountPersonUid; this.uf9_1 = $otherPersonUid; this.vf9_1 = $_limit; this.wf9_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda).yf9 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda).le = function (p1, $completion) { return this.yf9((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.xf9_1.x5i(1, this.tf9_1); this.xf9_1.x5i(2, this.uf9_1); this.xf9_1.x5i(3, this.uf9_1); this.xf9_1.x5i(4, this.tf9_1); this.xf9_1.w5i(5, this.vf9_1); this.xf9_1.w5i(6, this.wf9_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.xf9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda(this.tf9_1, this.uf9_1, this.vf9_1, this.wf9_1, completion); i.xf9_1 = _stmt; return i; }; function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda_0($accountPersonUid, $otherPersonUid, $_limit, $_offset, resultContinuation) { var i = new MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda($accountPersonUid, $otherPersonUid, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.yf9(_stmt, $completion); }; l.$arity = 1; return l; } function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda($accountPersonUid, $otherPersonUid, resultContinuation) { this.hfa_1 = $accountPersonUid; this.ifa_1 = $otherPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.jfa_1.x5i(1, this.hfa_1); this.jfa_1.x5i(2, this.ifa_1); this.jfa_1.x5i(3, this.ifa_1); this.jfa_1.x5i(4, this.hfa_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.jfa_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda(this.hfa_1, this.ifa_1, completion); i.jfa_1 = _stmt; return i; }; function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda_0($accountPersonUid, $otherPersonUid, resultContinuation) { var i = new MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda($accountPersonUid, $otherPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda$lambda(_result) { return mapRows(_result, MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda$lambda$lambda(_result)); } function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Message_nullCount = 0; var _tmp_messageUid = $_result.b5o('messageUid'); var tmp; if ($_result.t68()) { _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_messageSenderPersonUid = $_result.b5o('messageSenderPersonUid'); var tmp_0; if ($_result.t68()) { _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_messageToPersonUid = $_result.b5o('messageToPersonUid'); var tmp_1; if ($_result.t68()) { _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_messageText = $_result.b10('messageText'); var tmp_2; if ($_result.t68()) { _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_messageTimestamp = $_result.b5o('messageTimestamp'); var tmp_3; if ($_result.t68()) { _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_messageLct = $_result.b5o('messageLct'); var tmp_4; if ($_result.t68()) { _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_Message_isAllNull = _tmp_Message_nullCount === 6; var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.b5o('personUid'); var tmp_5; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_username = $_result.b10('username'); var tmp_6; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_firstNames = $_result.b10('firstNames'); var tmp_7; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_lastName = $_result.b10('lastName'); var tmp_8; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_emailAddr = $_result.b10('emailAddr'); var tmp_9; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_phoneNum = $_result.b10('phoneNum'); var tmp_10; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_gender = $_result.a5o('gender'); var tmp_11; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_active = $_result.m67('active'); var tmp_12; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_dateOfBirth = $_result.b5o('dateOfBirth'); var tmp_13; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_personAddress = $_result.b10('personAddress'); var tmp_14; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_personOrgId = $_result.b10('personOrgId'); var tmp_15; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_personGroupUid = $_result.b5o('personGroupUid'); var tmp_16; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_personLct = $_result.b5o('personLct'); var tmp_17; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_personCountry = $_result.b10('personCountry'); var tmp_18; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_personType = $_result.a5o('personType'); var tmp_19; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_personMasterChangeSeqNum = $_result.b5o('personMasterChangeSeqNum'); var tmp_20; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_personLocalChangeSeqNum = $_result.b5o('personLocalChangeSeqNum'); var tmp_21; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_personLastChangedBy = $_result.a5o('personLastChangedBy'); var tmp_22; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_admin = $_result.m67('admin'); var tmp_23; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_personNotes = $_result.b10('personNotes'); var tmp_24; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_fatherName = $_result.b10('fatherName'); var tmp_25; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_fatherNumber = $_result.b10('fatherNumber'); var tmp_26; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_motherName = $_result.b10('motherName'); var tmp_27; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_motherNum = $_result.b10('motherNum'); var tmp_28; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.b5o('personPictureUid'); var tmp_29; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_personPictureLct = $_result.b5o('personPictureLct'); var tmp_30; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_30 = Unit_instance; } var _tmp_personPictureUri = $_result.b10('personPictureUri'); var tmp_31; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_31 = Unit_instance; } var _tmp_personPictureThumbnailUri = $_result.b10('personPictureThumbnailUri'); var tmp_32; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_32 = Unit_instance; } var _tmp_fileSize = $_result.a5o('fileSize'); var tmp_33; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_33 = Unit_instance; } var _tmp_personPictureActive = $_result.m67('personPictureActive'); var tmp_34; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_34 = Unit_instance; } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new MessageAndOtherPerson(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call if (!_tmp_Message_isAllNull) { var tmp_35 = this_0; // Inline function 'kotlin.apply' call var this_1 = new Message(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.ff9_1 = _tmp_messageUid; this_1.gf9_1 = _tmp_messageSenderPersonUid; this_1.hf9_1 = _tmp_messageToPersonUid; this_1.if9_1 = _tmp_messageText; this_1.jf9_1 = _tmp_messageTimestamp; this_1.kf9_1 = _tmp_messageLct; tmp_35.kfa_1 = this_1; } if (!_tmp_Person_isAllNull) { var tmp_36 = this_0; // Inline function 'kotlin.apply' call var this_2 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_2.a97_1 = _tmp_personUid; this_2.b97_1 = _tmp_username; this_2.c97_1 = _tmp_firstNames; this_2.d97_1 = _tmp_lastName; this_2.e97_1 = _tmp_emailAddr; this_2.f97_1 = _tmp_phoneNum; this_2.g97_1 = _tmp_gender; this_2.h97_1 = _tmp_active; this_2.i97_1 = _tmp_dateOfBirth; this_2.j97_1 = _tmp_personAddress; this_2.k97_1 = _tmp_personOrgId; this_2.l97_1 = _tmp_personGroupUid; this_2.m97_1 = _tmp_personLct; this_2.n97_1 = _tmp_personCountry; this_2.o97_1 = _tmp_personType; this_2.p97_1 = _tmp_personMasterChangeSeqNum; this_2.q97_1 = _tmp_personLocalChangeSeqNum; this_2.r97_1 = _tmp_personLastChangedBy; this_2.s97_1 = _tmp_admin; this_2.t97_1 = _tmp_personNotes; this_2.u97_1 = _tmp_fatherName; this_2.v97_1 = _tmp_fatherNumber; this_2.w97_1 = _tmp_motherName; this_2.x97_1 = _tmp_motherNum; tmp_36.lfa_1 = this_2; } if (!_tmp_PersonPicture_isAllNull) { var tmp_37 = this_0; // Inline function 'kotlin.apply' call var this_3 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_3.y97_1 = _tmp_personPictureUid; this_3.z97_1 = _tmp_personPictureLct; this_3.a98_1 = _tmp_personPictureUri; this_3.b98_1 = _tmp_personPictureThumbnailUri; this_3.c98_1 = _tmp_fileSize; this_3.d98_1 = _tmp_personPictureActive; tmp_37.mfa_1 = this_3; } return this_0; }; } function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda$lambda$lambda(_result)); } function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda($accountPersonUid, $searchQuery, $_limit, $_offset, resultContinuation) { this.vfa_1 = $accountPersonUid; this.wfa_1 = $searchQuery; this.xfa_1 = $_limit; this.yfa_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda).afb = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda).le = function (p1, $completion) { return this.afb((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.zfa_1.x5i(1, this.vfa_1); this.zfa_1.x5i(2, this.vfa_1); this.zfa_1.a5j(3, this.wfa_1); this.zfa_1.a5j(4, this.wfa_1); this.zfa_1.w5i(5, this.xfa_1); this.zfa_1.w5i(6, this.yfa_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.zfa_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda(this.vfa_1, this.wfa_1, this.xfa_1, this.yfa_1, completion); i.zfa_1 = _stmt; return i; }; function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda_0($accountPersonUid, $searchQuery, $_limit, $_offset, resultContinuation) { var i = new MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda($accountPersonUid, $searchQuery, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.afb(_stmt, $completion); }; l.$arity = 1; return l; } function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda($accountPersonUid, $searchQuery, resultContinuation) { this.jfb_1 = $accountPersonUid; this.kfb_1 = $searchQuery; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.lfb_1.x5i(1, this.jfb_1); this.lfb_1.x5i(2, this.jfb_1); this.lfb_1.a5j(3, this.kfb_1); this.lfb_1.a5j(4, this.kfb_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.lfb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda(this.jfb_1, this.kfb_1, completion); i.lfb_1 = _stmt; return i; }; function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda_0($accountPersonUid, $searchQuery, resultContinuation) { var i = new MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda($accountPersonUid, $searchQuery, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function MessageDao_JdbcImpl$_insertAdapterMessage_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.mfb_1); } protoOf(MessageDao_JdbcImpl$_insertAdapterMessage_abort$1).w5h = function (returnsId) { return 'INSERT INTO Message (messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(MessageDao_JdbcImpl$_insertAdapterMessage_abort$1).qfb = function (stmt, entity) { if (entity.ff9_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.ff9_1); } stmt.x5i(2, entity.gf9_1); stmt.x5i(3, entity.hf9_1); stmt.a5j(4, entity.if9_1); stmt.x5i(5, entity.jf9_1); stmt.x5i(6, entity.kf9_1); }; protoOf(MessageDao_JdbcImpl$_insertAdapterMessage_abort$1).r5g = function (stmt, entity) { return this.qfb(stmt, entity instanceof Message ? entity : THROW_CCE()); }; function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1(this$0, $accountPersonUid, $otherPersonUid) { this.xfb_1 = this$0; this.yfb_1 = $accountPersonUid; this.zfb_1 = $otherPersonUid; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Message']; DoorLimitOffsetPagingSource.call(this, this$0.mfb_1, tmp$ret$2); } protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1).afc = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT Message.*\n FROM Message\n WHERE (Message.messageSenderPersonUid = CAST(? AS BIGINT)\n AND Message.messageToPersonUid = CAST(? AS BIGINT))\n OR (Message.messageSenderPersonUid = CAST(? AS BIGINT)\n AND Message.messageToPersonUid = CAST(? AS BIGINT)) \n ORDER BY Message.messageTimestamp DESC \n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n SELECT Message.*\n FROM Message\n WHERE (Message.messageSenderPersonUid = ?\n AND Message.messageToPersonUid = ?)\n OR (Message.messageSenderPersonUid = ?\n AND Message.messageToPersonUid = ?) \n ORDER BY Message.messageTimestamp DESC \n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.xfb_1.mfb_1, tmp, MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda_0(this.yfb_1, this.zfb_1, _limit, _offset, null), $completion); }; protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1).z5q = function (_limit, _offset, $completion) { return this.afc(_limit, _offset, $completion); }; protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT Message.*\n FROM Message\n WHERE (Message.messageSenderPersonUid = CAST(? AS BIGINT)\n AND Message.messageToPersonUid = CAST(? AS BIGINT))\n OR (Message.messageSenderPersonUid = CAST(? AS BIGINT)\n AND Message.messageToPersonUid = CAST(? AS BIGINT)) \n ORDER BY Message.messageTimestamp DESC \n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n SELECT Message.*\n FROM Message\n WHERE (Message.messageSenderPersonUid = ?\n AND Message.messageToPersonUid = ?)\n OR (Message.messageSenderPersonUid = ?\n AND Message.messageToPersonUid = ?) \n ORDER BY Message.messageTimestamp DESC \n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.xfb_1.mfb_1, tmp, MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda_0(this.yfb_1, this.zfb_1, null), $completion); }; function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1(this$0, $accountPersonUid, $searchQuery) { this.hfc_1 = this$0; this.ifc_1 = $accountPersonUid; this.jfc_1 = $searchQuery; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Message', 'Person', 'PersonPicture']; DoorLimitOffsetPagingSource.call(this, this$0.mfb_1, tmp$ret$2); } protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1).kfc = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n SELECT Person.*, LatestMessage.*, PersonPicture.*\n FROM Person\n JOIN Message LatestMessage\n ON LatestMessage.messageUid = \n (SELECT Message.messageUid\n FROM Message\n WHERE (Message.messageSenderPersonUid = CAST(? AS BIGINT)\n AND Message.messageToPersonUid = Person.personUid)\n OR (Message.messageSenderPersonUid = Person.personUid\n AND Message.messageToPersonUid = CAST(? AS BIGINT))\n ORDER BY Message.messageTimestamp DESC\n LIMIT 1)\n \n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE ? = '%' \n OR (Person.firstNames || ' ' || Person.lastName) LIKE ?\n ORDER BY LatestMessage.messageTimestamp DESC\n ) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n SELECT Person.*, LatestMessage.*, PersonPicture.*\n FROM Person\n JOIN Message LatestMessage\n ON LatestMessage.messageUid = \n (SELECT Message.messageUid\n FROM Message\n WHERE (Message.messageSenderPersonUid = ?\n AND Message.messageToPersonUid = Person.personUid)\n OR (Message.messageSenderPersonUid = Person.personUid\n AND Message.messageToPersonUid = ?)\n ORDER BY Message.messageTimestamp DESC\n LIMIT 1)\n \n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE ? = '%' \n OR (Person.firstNames || ' ' || Person.lastName) LIKE ?\n ORDER BY LatestMessage.messageTimestamp DESC\n ) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.hfc_1.mfb_1, tmp, MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda_0(this.ifc_1, this.jfc_1, _limit, _offset, null), $completion); }; protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1).z5q = function (_limit, _offset, $completion) { return this.kfc(_limit, _offset, $completion); }; protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n SELECT Person.*, LatestMessage.*, PersonPicture.*\n FROM Person\n JOIN Message LatestMessage\n ON LatestMessage.messageUid = \n (SELECT Message.messageUid\n FROM Message\n WHERE (Message.messageSenderPersonUid = CAST(? AS BIGINT)\n AND Message.messageToPersonUid = Person.personUid)\n OR (Message.messageSenderPersonUid = Person.personUid\n AND Message.messageToPersonUid = CAST(? AS BIGINT))\n ORDER BY Message.messageTimestamp DESC\n LIMIT 1)\n \n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE ? = '%' \n OR (Person.firstNames || ' ' || Person.lastName) LIKE ?\n ORDER BY LatestMessage.messageTimestamp DESC\n ) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n SELECT Person.*, LatestMessage.*, PersonPicture.*\n FROM Person\n JOIN Message LatestMessage\n ON LatestMessage.messageUid = \n (SELECT Message.messageUid\n FROM Message\n WHERE (Message.messageSenderPersonUid = ?\n AND Message.messageToPersonUid = Person.personUid)\n OR (Message.messageSenderPersonUid = Person.personUid\n AND Message.messageToPersonUid = ?)\n ORDER BY Message.messageTimestamp DESC\n LIMIT 1)\n \n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE ? = '%' \n OR (Person.firstNames || ' ' || Person.lastName) LIKE ?\n ORDER BY LatestMessage.messageTimestamp DESC\n ) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.hfc_1.mfb_1, tmp, MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda_0(this.ifc_1, this.jfc_1, null), $completion); }; function MessageDao_JdbcImpl(_db) { MessageDao.call(this); this.mfb_1 = _db; var tmp = this; tmp.nfb_1 = new MessageDao_JdbcImpl$_insertAdapterMessage_abort$1(this); } protoOf(MessageDao_JdbcImpl).qf8 = function (message, $completion) { return this.nfb_1.x5h(message, $completion); }; protoOf(MessageDao_JdbcImpl).of8 = function (accountPersonUid, otherPersonUid) { return new MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1(this, accountPersonUid, otherPersonUid); }; protoOf(MessageDao_JdbcImpl).pf8 = function (searchQuery, accountPersonUid) { return new MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1(this, accountPersonUid, searchQuery); }; function MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function MessageDao_Repo$conversationsForUserAsPagingSource$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda(this$0, $accountPersonUid, $otherPersonUid, resultContinuation) { this.tfc_1 = this$0; this.ufc_1 = $accountPersonUid; this.vfc_1 = $otherPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.yfc_1 = this.tfc_1.hfd_1; var tmp_1 = this; tmp_1.zfc_1 = 'MessageDao/messagesFromOtherUserAsPagingSource'; this.md_1 = 4; var tmp_2 = this; tmp_2.afd_1 = this.tfc_1.jfd_1; var tmp_3 = this; tmp_3.bfd_1 = this.afd_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.tfc_1.hfd_1.t39(), 'MessageDao/messagesFromOtherUserAsPagingSource'); doorNodeIdHeader(this_0, this.tfc_1.hfd_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.tfc_1.hfd_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ufc_1)); parameter(this_0, 'otherPersonUid', this.tfc_1.hfd_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.vfc_1)); pagingSourceLoadParameters(this_0, this.tfc_1.hfd_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.wfc_1); tmp_4.cfd_1 = this_0; this.cfd_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.dfd_1 = this.bfd_1; var tmp_6 = this; tmp_6.efd_1 = this.cfd_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.efd_1, this.dfd_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.ffd_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.tfc_1.gfd_1, this.ffd_1, this.tfc_1.hfd_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.xfc_1 = endOfPaginationReached(this.ffd_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda$lambda(this.yfc_1, this.zfc_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.xfc_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda).g87 = function (_pagingParams, completion) { var i = new MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda(this.tfc_1, this.ufc_1, this.vfc_1, completion); i.wfc_1 = _pagingParams; return i; }; function MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda_0(this$0, $accountPersonUid, $otherPersonUid, resultContinuation) { var i = new MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda(this$0, $accountPersonUid, $otherPersonUid, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function MessageDao_Repo$conversationsForUserAsPagingSource$slambda(this$0, $searchQuery, $accountPersonUid, resultContinuation) { this.ufd_1 = this$0; this.vfd_1 = $searchQuery; this.wfd_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageDao_Repo$conversationsForUserAsPagingSource$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(MessageDao_Repo$conversationsForUserAsPagingSource$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(MessageDao_Repo$conversationsForUserAsPagingSource$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.zfd_1 = this.ufd_1.hfd_1; var tmp_1 = this; tmp_1.afe_1 = 'MessageDao/conversationsForUserAsPagingSource'; this.md_1 = 4; var tmp_2 = this; tmp_2.bfe_1 = this.ufd_1.jfd_1; var tmp_3 = this; tmp_3.cfe_1 = this.bfe_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.ufd_1.hfd_1.t39(), 'MessageDao/conversationsForUserAsPagingSource'); doorNodeIdHeader(this_0, this.ufd_1.hfd_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'searchQuery', this.ufd_1.hfd_1.t39().a67_1.b46(serializer_0(StringCompanionObject_instance), this.vfd_1)); parameter(this_0, 'accountPersonUid', this.ufd_1.hfd_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.wfd_1)); pagingSourceLoadParameters(this_0, this.ufd_1.hfd_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.xfd_1); tmp_4.dfe_1 = this_0; this.dfe_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.efe_1 = this.cfe_1; var tmp_6 = this; tmp_6.ffe_1 = this.dfe_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.ffe_1, this.efe_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.gfe_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.ufd_1.gfd_1, this.gfe_1, this.ufd_1.hfd_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.yfd_1 = endOfPaginationReached(this.gfe_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', MessageDao_Repo$conversationsForUserAsPagingSource$slambda$lambda(this.zfd_1, this.afe_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.yfd_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(MessageDao_Repo$conversationsForUserAsPagingSource$slambda).g87 = function (_pagingParams, completion) { var i = new MessageDao_Repo$conversationsForUserAsPagingSource$slambda(this.ufd_1, this.vfd_1, this.wfd_1, completion); i.xfd_1 = _pagingParams; return i; }; function MessageDao_Repo$conversationsForUserAsPagingSource$slambda_0(this$0, $searchQuery, $accountPersonUid, resultContinuation) { var i = new MessageDao_Repo$conversationsForUserAsPagingSource$slambda(this$0, $searchQuery, $accountPersonUid, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function MessageDao_Repo$insert$slambda(this$0, $message, resultContinuation) { this.pfe_1 = this$0; this.qfe_1 = $message; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageDao_Repo$insert$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(MessageDao_Repo$insert$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(MessageDao_Repo$insert$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.pfe_1.ifd_1.qf8(this.qfe_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(MessageDao_Repo$insert$slambda).q79 = function (completion) { return new MessageDao_Repo$insert$slambda(this.pfe_1, this.qfe_1, completion); }; function MessageDao_Repo$insert$slambda_0(this$0, $message, resultContinuation) { var i = new MessageDao_Repo$insert$slambda(this$0, $message, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function MessageDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { MessageDao.call(this); this.gfd_1 = _db; this.hfd_1 = _repo; this.ifd_1 = _dao; this.jfd_1 = _httpClient; this.kfd_1 = _clientId; this.lfd_1 = _endpoint; } protoOf(MessageDao_Repo).of8 = function (accountPersonUid, otherPersonUid) { var tmp = this.ifd_1.of8(accountPersonUid, otherPersonUid); return new DoorRepositoryReplicatePullPagingSource(this.hfd_1, 'MessageDao/messagesFromOtherUserAsPagingSource', tmp, MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda_0(this, accountPersonUid, otherPersonUid, null)); }; protoOf(MessageDao_Repo).pf8 = function (searchQuery, accountPersonUid) { var tmp = this.ifd_1.pf8(searchQuery, accountPersonUid); return new DoorRepositoryReplicatePullPagingSource(this.hfd_1, 'MessageDao/conversationsForUserAsPagingSource', tmp, MessageDao_Repo$conversationsForUserAsPagingSource$slambda_0(this, searchQuery, accountPersonUid, null)); }; protoOf(MessageDao_Repo).qf8 = function (message, $completion) { return withRepoChangeMonitorAsync(this.hfd_1, 'Message', MessageDao_Repo$insert$slambda_0(this, message, null), $completion); }; function OfflineItemDao() { } function OfflineItemDao_DoorWrapper(_db, _dao) { OfflineItemDao.call(this); this.sfe_1 = _db; this.tfe_1 = _dao; } protoOf(OfflineItemDao_DoorWrapper).rfe = function (contentEntryUid, nodeId) { return this.tfe_1.rfe(contentEntryUid, nodeId); }; function OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda$lambda$lambda(_result)); } function OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_readyForOffline = $_result.m67('readyForOffline'); var _tmp_OfflineItem_nullCount = 0; var _tmp_oiUid = $_result.b5o('oiUid'); var tmp; if ($_result.t68()) { _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_oiNodeId = $_result.b5o('oiNodeId'); var tmp_0; if ($_result.t68()) { _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_oiClazzUid = $_result.b5o('oiClazzUid'); var tmp_1; if ($_result.t68()) { _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_oiCourseBlockUid = $_result.b5o('oiCourseBlockUid'); var tmp_2; if ($_result.t68()) { _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_oiContentEntryUid = $_result.b5o('oiContentEntryUid'); var tmp_3; if ($_result.t68()) { _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_oiActive = $_result.m67('oiActive'); var tmp_4; if ($_result.t68()) { _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_oiLct = $_result.b5o('oiLct'); var tmp_5; if ($_result.t68()) { _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_OfflineItem_isAllNull = _tmp_OfflineItem_nullCount === 7; var _tmp_TransferJobAndTotals_nullCount = 0; var _tmp_totalSize = $_result.b5o('totalSize'); var tmp_6; if ($_result.t68()) { _tmp_TransferJobAndTotals_nullCount = _tmp_TransferJobAndTotals_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_transferred = $_result.b5o('transferred'); var tmp_7; if ($_result.t68()) { _tmp_TransferJobAndTotals_nullCount = _tmp_TransferJobAndTotals_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_latestErrorStr = $_result.b10('latestErrorStr'); var tmp_8; if ($_result.t68()) { _tmp_TransferJobAndTotals_nullCount = _tmp_TransferJobAndTotals_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_TransferJobAndTotals_isAllNull = _tmp_TransferJobAndTotals_nullCount === 3; var _tmp_TransferJob_nullCount = 0; var _tmp_tjUid = $_result.a5o('tjUid'); var tmp_9; if ($_result.t68()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_tjType = $_result.a5o('tjType'); var tmp_10; if ($_result.t68()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_tjStatus = $_result.a5o('tjStatus'); var tmp_11; if ($_result.t68()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_tjName = $_result.b10('tjName'); var tmp_12; if ($_result.t68()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_tjUuid = $_result.b10('tjUuid'); var tmp_13; if ($_result.t68()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_tjTableId = $_result.a5o('tjTableId'); var tmp_14; if ($_result.t68()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_tjEntityUid = $_result.b5o('tjEntityUid'); var tmp_15; if ($_result.t68()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_tjTimeCreated = $_result.b5o('tjTimeCreated'); var tmp_16; if ($_result.t68()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_tjCreationType = $_result.a5o('tjCreationType'); var tmp_17; if ($_result.t68()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_tjOiUid = $_result.b5o('tjOiUid'); var tmp_18; if ($_result.t68()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_TransferJob_isAllNull = _tmp_TransferJob_nullCount === 10; // Inline function 'kotlin.apply' call var this_0 = new OfflineItemAndState(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.OfflineItemDao_JdbcImpl.findByContentEntryUid.....' call this_0.wfe_1 = _tmp_readyForOffline; if (!_tmp_OfflineItem_isAllNull) { var tmp_19 = this_0; // Inline function 'kotlin.apply' call var this_1 = new OfflineItem(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.OfflineItemDao_JdbcImpl.findByContentEntryUid......' call this_1.xfe_1 = _tmp_oiUid; this_1.yfe_1 = _tmp_oiNodeId; this_1.zfe_1 = _tmp_oiClazzUid; this_1.aff_1 = _tmp_oiCourseBlockUid; this_1.bff_1 = _tmp_oiContentEntryUid; this_1.cff_1 = _tmp_oiActive; this_1.dff_1 = _tmp_oiLct; tmp_19.ufe_1 = this_1; } if (!_tmp_TransferJobAndTotals_isAllNull) { var tmp_20 = this_0; // Inline function 'kotlin.apply' call var this_2 = new TransferJobAndTotals(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.OfflineItemDao_JdbcImpl.findByContentEntryUid......' call this_2.fff_1 = _tmp_totalSize; this_2.gff_1 = _tmp_transferred; this_2.hff_1 = _tmp_latestErrorStr; if (!_tmp_TransferJob_isAllNull) { var tmp_21 = this_2; // Inline function 'kotlin.apply' call var this_3 = new TransferJob(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.OfflineItemDao_JdbcImpl.findByContentEntryUid.......' call this_3.iff_1 = _tmp_tjUid; this_3.jff_1 = _tmp_tjType; this_3.kff_1 = _tmp_tjStatus; this_3.lff_1 = _tmp_tjName; this_3.mff_1 = _tmp_tjUuid; this_3.nff_1 = _tmp_tjTableId; this_3.off_1 = _tmp_tjEntityUid; this_3.pff_1 = _tmp_tjTimeCreated; this_3.qff_1 = _tmp_tjCreationType; this_3.rff_1 = _tmp_tjOiUid; tmp_21.eff_1 = this_3; } tmp_20.vfe_1 = this_2; } return this_0; }; } function OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda($contentEntryUid, $nodeId, resultContinuation) { this.afg_1 = $contentEntryUid; this.bfg_1 = $nodeId; CoroutineImpl.call(this, resultContinuation); } protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda).dfg = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda).le = function (p1, $completion) { return this.dfg((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.cfg_1.x5i(1, this.afg_1); this.cfg_1.x5i(2, this.afg_1); this.cfg_1.x5i(3, this.bfg_1); this.cfg_1.x5i(4, this.afg_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.cfg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda).o5g = function (_stmt, completion) { var i = new OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda(this.afg_1, this.bfg_1, completion); i.cfg_1 = _stmt; return i; }; function OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda_0($contentEntryUid, $nodeId, resultContinuation) { var i = new OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda($contentEntryUid, $nodeId, resultContinuation); var l = function (_stmt, $completion) { return i.dfg(_stmt, $completion); }; l.$arity = 1; return l; } function OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.efg_1); } protoOf(OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1).w5h = function (returnsId) { return 'INSERT INTO OfflineItem (oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1).ifg = function (stmt, entity) { if (entity.xfe_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.xfe_1); } stmt.x5i(2, entity.yfe_1); stmt.x5i(3, entity.zfe_1); stmt.x5i(4, entity.aff_1); stmt.x5i(5, entity.bff_1); stmt.k5i(6, entity.cff_1); stmt.x5i(7, entity.dff_1); }; protoOf(OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1).r5g = function (stmt, entity) { return this.ifg(stmt, entity instanceof OfflineItem ? entity : THROW_CCE()); }; function OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda(this$0, $contentEntryUid, $nodeId, resultContinuation) { this.rfg_1 = this$0; this.sfg_1 = $contentEntryUid; this.tfg_1 = $nodeId; CoroutineImpl.call(this, resultContinuation); } protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda).ufg = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda).r79 = function ($completion) { return this.ufg($completion); }; protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT OfflineItem.*,\n TransferJob.*,\n \n (SELECT SUM(TransferJobItem.tjTotalSize)\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = TransferJob.tjUid) AS totalSize,\n (SELECT SUM(TransferJobItem.tjTransferred)\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = TransferJob.tjUid) AS transferred \n ,\n CAST(OfflineItem.oiActive AS INTEGER) = 1 AND (SELECT EXISTS(\n SELECT CompletedJob.tjUid\n FROM TransferJob CompletedJob\n WHERE CompletedJob.tjTableId = 738\n AND CompletedJob.tjEntityUid IN \n \n (SELECT ContentEntryVersion.cevUid\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = CAST(? AS BIGINT))\n \n AND CompletedJob.tjStatus = 21\n AND CompletedJob.tjType = 2\n AND CompletedJob.tjTimeCreated >= OfflineItem.oiLct\n LIMIT 1 \n )) AS readyForOffline,\n NULL AS latestErrorStr\n FROM OfflineItem\n LEFT JOIN TransferJob \n ON TransferJob.tjUid = \n (SELECT TransferJob.tjUid\n FROM TransferJob\n WHERE TransferJob.tjTableId = 738\n AND TransferJob.tjEntityUid IN \n \n (SELECT ContentEntryVersion.cevUid\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = CAST(? AS BIGINT))\n \n AND TransferJob.tjStatus < 21\n ORDER BY TransferJob.tjTimeCreated DESC \n LIMIT 1)\n WHERE OfflineItem.oiNodeId = CAST(? AS BIGINT)\n AND OfflineItem.oiContentEntryUid = CAST(? AS BIGINT)\n ORDER BY OfflineItem.oiLct DESC\n LIMIT 1 \n ', VOID, VOID, VOID, '\n SELECT OfflineItem.*,\n TransferJob.*,\n \n (SELECT SUM(TransferJobItem.tjTotalSize)\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = TransferJob.tjUid) AS totalSize,\n (SELECT SUM(TransferJobItem.tjTransferred)\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = TransferJob.tjUid) AS transferred \n ,\n CAST(OfflineItem.oiActive AS INTEGER) = 1 AND (SELECT EXISTS(\n SELECT CompletedJob.tjUid\n FROM TransferJob CompletedJob\n WHERE CompletedJob.tjTableId = 738\n AND CompletedJob.tjEntityUid IN \n \n (SELECT ContentEntryVersion.cevUid\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = ?)\n \n AND CompletedJob.tjStatus = 21\n AND CompletedJob.tjType = 2\n AND CompletedJob.tjTimeCreated >= OfflineItem.oiLct\n LIMIT 1 \n )) AS readyForOffline,\n NULL AS latestErrorStr\n FROM OfflineItem\n LEFT JOIN TransferJob \n ON TransferJob.tjUid = \n (SELECT TransferJob.tjUid\n FROM TransferJob\n WHERE TransferJob.tjTableId = 738\n AND TransferJob.tjEntityUid IN \n \n (SELECT ContentEntryVersion.cevUid\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = ?)\n \n AND TransferJob.tjStatus < 21\n ORDER BY TransferJob.tjTimeCreated DESC \n LIMIT 1)\n WHERE OfflineItem.oiNodeId = ?\n AND OfflineItem.oiContentEntryUid = ?\n ORDER BY OfflineItem.oiLct DESC\n LIMIT 1 \n \n', true); suspendResult = prepareAndUseStatementAsync(this.rfg_1.efg_1, tmp_0, OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda_0(this.sfg_1, this.tfg_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda).q79 = function (completion) { return new OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda(this.rfg_1, this.sfg_1, this.tfg_1, completion); }; function OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda_0(this$0, $contentEntryUid, $nodeId, resultContinuation) { var i = new OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda(this$0, $contentEntryUid, $nodeId, resultContinuation); var l = function ($completion) { return i.ufg($completion); }; l.$arity = 0; return l; } function OfflineItemDao_JdbcImpl(_db) { OfflineItemDao.call(this); this.efg_1 = _db; var tmp = this; tmp.ffg_1 = new OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1(this); } protoOf(OfflineItemDao_JdbcImpl).rfe = function (contentEntryUid, nodeId) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['OfflineItem', 'TransferJob', 'TransferJobItem']; return doorFlow(this.efg_1, tmp, OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda_0(this, contentEntryUid, nodeId, null)); }; function OfflineItemDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { OfflineItemDao.call(this); this.vfg_1 = _db; this.wfg_1 = _repo; this.xfg_1 = _dao; this.yfg_1 = _httpClient; this.zfg_1 = _clientId; this.afh_1 = _endpoint; } protoOf(OfflineItemDao_Repo).rfe = function (contentEntryUid, nodeId) { var _result = this.xfg_1.rfe(contentEntryUid, nodeId); return _result; }; function OutgoingReplicationDao() { } function OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.bfh_1); } protoOf(OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1).w5h = function (returnsId) { return 'INSERT INTO OutgoingReplication (destNodeId, orPk1, orPk2, orPk3, orPk4, orTableId, orUid) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1).ffh = function (stmt, entity) { stmt.x5i(1, entity.w65_1); stmt.x5i(2, entity.y65_1); stmt.x5i(3, entity.z65_1); stmt.x5i(4, entity.a66_1); stmt.x5i(5, entity.b66_1); stmt.w5i(6, entity.x65_1); if (entity.v65_1.equals(new Long(0, 0))) { stmt.c5j(7, null); } else { stmt.x5i(7, entity.v65_1); } }; protoOf(OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1).r5g = function (stmt, entity) { return this.ffh(stmt, entity instanceof OutgoingReplication ? entity : THROW_CCE()); }; function OutgoingReplicationDao_JdbcImpl(_db) { OutgoingReplicationDao.call(this); this.bfh_1 = _db; var tmp = this; tmp.cfh_1 = new OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1(this); } function PeerReviewerAllocationDao() { } function $upsertListCOROUTINE$292(_this__u8e3s4, entityList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qfh_1 = _this__u8e3s4; this.rfh_1 = entityList; } protoOf($upsertListCOROUTINE$292).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; this.sfh_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.qfh_1.zfh_1)); var tmp_0 = this; tmp_0.tfh_1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.ufh_1 = this.rfh_1.w(); var tmp_2 = this; tmp_2.vfh_1 = this.ufh_1; this.ld_1 = 1; continue $sm; case 1: if (!this.vfh_1.f()) { this.ld_1 = 4; continue $sm; } this.wfh_1 = this.vfh_1.e(); var tmp_3 = this; tmp_3.xfh_1 = this.wfh_1; if (this.xfh_1.bfi_1.equals(new Long(0, 0))) { this.ld_1 = 2; suspendResult = this.sfh_1.r63(140, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 3; continue $sm; } case 2: this.yfh_1 = suspendResult; this.xfh_1.bfi_1 = this.yfh_1; var this_0 = this.tfh_1; var element = this.yfh_1; this_0.j1(element); this.ld_1 = 3; continue $sm; case 3: this.xfh_1.gfi_1 = systemTimeInMillis(); this.ld_1 = 1; continue $sm; case 4: this.ld_1 = 5; suspendResult = this.qfh_1.afi_1.hfh(this.rfh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_instance; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$293(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.pfi_1 = _this__u8e3s4; this.qfi_1 = entity; } protoOf($insertAsyncCOROUTINE$293).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.rfi_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.pfi_1.zfh_1)); if (this.qfi_1.bfi_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.rfi_1.r63(140, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.sfi_1 = suspendResult; this.qfi_1.bfi_1 = this.sfi_1; this.ld_1 = 2; continue $sm; case 2: this.qfi_1.gfi_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.pfi_1.afi_1.insertAsync(this.qfi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.qfi_1.bfi_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PeerReviewerAllocationDao_DoorWrapper(_db, _dao) { PeerReviewerAllocationDao.call(this); this.zfh_1 = _db; this.afi_1 = _dao; } protoOf(PeerReviewerAllocationDao_DoorWrapper).gfh = function (clazzUid, includeInactive, $completion) { return this.afi_1.gfh(clazzUid, includeInactive, $completion); }; protoOf(PeerReviewerAllocationDao_DoorWrapper).xc8 = function (cbUid, active, changeTime, $completion) { return this.afi_1.xc8(cbUid, active, changeTime, $completion); }; protoOf(PeerReviewerAllocationDao_DoorWrapper).hfh = function (entityList, $completion) { var tmp = new $upsertListCOROUTINE$292(this, entityList, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PeerReviewerAllocationDao_DoorWrapper).tfi = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$293(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PeerReviewerAllocationDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.tfi(entity instanceof PeerReviewerAllocation ? entity : THROW_CCE(), $completion); }; function PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda$lambda(_result) { return mapRows(_result, PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda$lambda$lambda(_result)); } function PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_praUid = $_result.b5o('praUid'); var _tmp_praMarkerSubmitterUid = $_result.b5o('praMarkerSubmitterUid'); var _tmp_praToMarkerSubmitterUid = $_result.b5o('praToMarkerSubmitterUid'); var _tmp_praAssignmentUid = $_result.b5o('praAssignmentUid'); var _tmp_praActive = $_result.m67('praActive'); var _tmp_praLct = $_result.b5o('praLct'); // Inline function 'kotlin.apply' call var this_0 = new PeerReviewerAllocation(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PeerReviewerAllocationDao_JdbcImpl.getAllPeerReviewerAllocationsByClazzUid....' call this_0.bfi_1 = _tmp_praUid; this_0.cfi_1 = _tmp_praMarkerSubmitterUid; this_0.dfi_1 = _tmp_praToMarkerSubmitterUid; this_0.efi_1 = _tmp_praAssignmentUid; this_0.ffi_1 = _tmp_praActive; this_0.gfi_1 = _tmp_praLct; return this_0; }; } function PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.ufi_1); } protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO PeerReviewerAllocation (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1).zfi = function (stmt, entity) { if (entity.bfi_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.bfi_1); } stmt.x5i(2, entity.cfi_1); stmt.x5i(3, entity.dfi_1); stmt.x5i(4, entity.efi_1); stmt.k5i(5, entity.ffi_1); stmt.x5i(6, entity.gfi_1); }; protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1).r5g = function (stmt, entity) { return this.zfi(stmt, entity instanceof PeerReviewerAllocation ? entity : THROW_CCE()); }; function PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.ufi_1); } protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1).w5h = function (returnsId) { return 'INSERT INTO PeerReviewerAllocation (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1).zfi = function (stmt, entity) { if (entity.bfi_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.bfi_1); } stmt.x5i(2, entity.cfi_1); stmt.x5i(3, entity.dfi_1); stmt.x5i(4, entity.efi_1); stmt.k5i(5, entity.ffi_1); stmt.x5i(6, entity.gfi_1); }; protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1).r5g = function (stmt, entity) { return this.zfi(stmt, entity instanceof PeerReviewerAllocation ? entity : THROW_CCE()); }; function PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda($clazzUid, $includeInactive, resultContinuation) { this.kfj_1 = $clazzUid; this.lfj_1 = $includeInactive; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda).nfj = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda).le = function (p1, $completion) { return this.nfj((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.mfj_1.x5i(1, this.kfj_1); this.mfj_1.k5i(2, this.lfj_1); this.mfj_1.k5i(3, this.lfj_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.mfj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda).o5g = function (_stmt, completion) { var i = new PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda(this.kfj_1, this.lfj_1, completion); i.mfj_1 = _stmt; return i; }; function PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda_0($clazzUid, $includeInactive, resultContinuation) { var i = new PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda($clazzUid, $includeInactive, resultContinuation); var l = function (_stmt, $completion) { return i.nfj(_stmt, $completion); }; l.$arity = 1; return l; } function PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda($active, $changeTime, $cbUid, resultContinuation) { this.wfj_1 = $active; this.xfj_1 = $changeTime; this.yfj_1 = $cbUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.zfj_1.k5i(1, this.wfj_1); this.zfj_1.x5i(2, this.xfj_1); this.zfj_1.x5i(3, this.yfj_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.zfj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda).o5g = function (_stmt, completion) { var i = new PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda(this.wfj_1, this.xfj_1, this.yfj_1, completion); i.zfj_1 = _stmt; return i; }; function PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda_0($active, $changeTime, $cbUid, resultContinuation) { var i = new PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda($active, $changeTime, $cbUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$294(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ifk_1 = _this__u8e3s4; this.jfk_1 = entity; } protoOf($insertAsyncCOROUTINE$294).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.ifk_1.wfi_1.y5h(this.jfk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateActiveByUidCOROUTINE$295(_this__u8e3s4, cbUid, active, changeTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.sfk_1 = _this__u8e3s4; this.tfk_1 = cbUid; this.ufk_1 = active; this.vfk_1 = changeTime; } protoOf($updateActiveByUidCOROUTINE$295).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE PeerReviewerAllocation \n SET praActive = ?, \n praLct = CAST(? AS BIGINT)\n WHERE praUid = CAST(? AS BIGINT)', VOID, VOID, VOID, '\n UPDATE PeerReviewerAllocation \n SET praActive = ?, \n praLct = ?\n WHERE praUid = ?\n', false); suspendResult = prepareAndUseStatementAsync(this.sfk_1.ufi_1, tmp_0, PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda_0(this.ufk_1, this.vfk_1, this.tfk_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PeerReviewerAllocationDao_JdbcImpl(_db) { PeerReviewerAllocationDao.call(this); this.ufi_1 = _db; var tmp = this; tmp.vfi_1 = new PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1(this); var tmp_0 = this; tmp_0.wfi_1 = new PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1(this); } protoOf(PeerReviewerAllocationDao_JdbcImpl).hfh = function (entityList, $completion) { return this.vfi_1.b5i(entityList, $completion); }; protoOf(PeerReviewerAllocationDao_JdbcImpl).tfi = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$294(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PeerReviewerAllocationDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.tfi(entity instanceof PeerReviewerAllocation ? entity : THROW_CCE(), $completion); }; protoOf(PeerReviewerAllocationDao_JdbcImpl).gfh = function (clazzUid, includeInactive, $completion) { var tmp = new PreparedStatementConfig('\n SELECT PeerReviewerAllocation.*\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid IN\n (SELECT CourseBlock.cbEntityUid\n FROM CourseBlock\n WHERE CourseBlock.cbClazzUid = CAST(? AS BIGINT)\n AND CourseBlock.cbType = 103\n AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive))\n AND (CAST(? AS INTEGER) = 1 OR PeerReviewerAllocation.praActive)\n ', VOID, VOID, VOID, '\n SELECT PeerReviewerAllocation.*\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid IN\n (SELECT CourseBlock.cbEntityUid\n FROM CourseBlock\n WHERE CourseBlock.cbClazzUid = ?\n AND CourseBlock.cbType = 103\n AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive))\n AND (CAST(? AS INTEGER) = 1 OR PeerReviewerAllocation.praActive)\n \n', true); return prepareAndUseStatementAsync(this.ufi_1, tmp, PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda_0(clazzUid, includeInactive, null), $completion); }; protoOf(PeerReviewerAllocationDao_JdbcImpl).xc8 = function (cbUid, active, changeTime, $completion) { var tmp = new $updateActiveByUidCOROUTINE$295(this, cbUid, active, changeTime, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function PeerReviewerAllocationDao_Repo$getAllPeerReviewerAllocationsByClazzUid$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda(this$0, $cbUid, $active, $changeTime, resultContinuation) { this.efl_1 = this$0; this.ffl_1 = $cbUid; this.gfl_1 = $active; this.hfl_1 = $changeTime; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.efl_1.kfl_1.xc8(this.ffl_1, this.gfl_1, this.hfl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda).q79 = function (completion) { return new PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda(this.efl_1, this.ffl_1, this.gfl_1, this.hfl_1, completion); }; function PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda_0(this$0, $cbUid, $active, $changeTime, resultContinuation) { var i = new PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda(this$0, $cbUid, $active, $changeTime, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function PeerReviewerAllocationDao_Repo$upsertList$slambda(this$0, $entityList, resultContinuation) { this.wfl_1 = this$0; this.xfl_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationDao_Repo$upsertList$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PeerReviewerAllocationDao_Repo$upsertList$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(PeerReviewerAllocationDao_Repo$upsertList$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.wfl_1.kfl_1.hfh(this.xfl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PeerReviewerAllocationDao_Repo$upsertList$slambda).q79 = function (completion) { return new PeerReviewerAllocationDao_Repo$upsertList$slambda(this.wfl_1, this.xfl_1, completion); }; function PeerReviewerAllocationDao_Repo$upsertList$slambda_0(this$0, $entityList, resultContinuation) { var i = new PeerReviewerAllocationDao_Repo$upsertList$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function PeerReviewerAllocationDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.gfm_1 = this$0; this.hfm_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PeerReviewerAllocationDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(PeerReviewerAllocationDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.gfm_1.kfl_1.insertAsync(this.hfm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PeerReviewerAllocationDao_Repo$insertAsync$slambda).q79 = function (completion) { return new PeerReviewerAllocationDao_Repo$insertAsync$slambda(this.gfm_1, this.hfm_1, completion); }; function PeerReviewerAllocationDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new PeerReviewerAllocationDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $getAllPeerReviewerAllocationsByClazzUidCOROUTINE$297(_this__u8e3s4, clazzUid, includeInactive, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qfm_1 = _this__u8e3s4; this.rfm_1 = clazzUid; this.sfm_1 = includeInactive; } protoOf($getAllPeerReviewerAllocationsByClazzUidCOROUTINE$297).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.tfm_1 = this.qfm_1.jfl_1; var tmp_1 = this; tmp_1.ufm_1 = 'PeerReviewerAllocationDao/getAllPeerReviewerAllocationsByClazzUid'; this.md_1 = 3; var tmp_2 = this; tmp_2.vfm_1 = this.qfm_1.lfl_1; var tmp_3 = this; tmp_3.wfm_1 = this.vfm_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.qfm_1.jfl_1.t39(), 'PeerReviewerAllocationDao/getAllPeerReviewerAllocationsByClazzUid'); doorNodeIdHeader(this_0, this.qfm_1.jfl_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.qfm_1.jfl_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.rfm_1)); parameter(this_0, 'includeInactive', this.qfm_1.jfl_1.t39().a67_1.b46(serializer_2(BooleanCompanionObject_instance), this.sfm_1)); tmp_4.xfm_1 = this_0; this.xfm_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.yfm_1 = this.wfm_1; var tmp_6 = this; tmp_6.zfm_1 = this.xfm_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.zfm_1, this.yfm_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.afn_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.qfm_1.ifl_1, this.afn_1, this.qfm_1.jfl_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.bfn_1 = this.od_1; Napier_getInstance().e5f(this.bfn_1, 'DoorLog', PeerReviewerAllocationDao_Repo$getAllPeerReviewerAllocationsByClazzUid$lambda(this.tfm_1, this.ufm_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.qfm_1.kfl_1.gfh(this.rfm_1, this.sfm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$298(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.kfn_1 = _this__u8e3s4; this.lfn_1 = entity; } protoOf($insertAsyncCOROUTINE$298).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.kfn_1.jfl_1, 'PeerReviewerAllocation', PeerReviewerAllocationDao_Repo$insertAsync$slambda_0(this.kfn_1, this.lfn_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PeerReviewerAllocationDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { PeerReviewerAllocationDao.call(this); this.ifl_1 = _db; this.jfl_1 = _repo; this.kfl_1 = _dao; this.lfl_1 = _httpClient; this.mfl_1 = _clientId; this.nfl_1 = _endpoint; } protoOf(PeerReviewerAllocationDao_Repo).gfh = function (clazzUid, includeInactive, $completion) { var tmp = new $getAllPeerReviewerAllocationsByClazzUidCOROUTINE$297(this, clazzUid, includeInactive, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PeerReviewerAllocationDao_Repo).xc8 = function (cbUid, active, changeTime, $completion) { return withRepoChangeMonitorAsync(this.jfl_1, 'PeerReviewerAllocation', PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda_0(this, cbUid, active, changeTime, null), $completion); }; protoOf(PeerReviewerAllocationDao_Repo).hfh = function (entityList, $completion) { return withRepoChangeMonitorAsync(this.jfl_1, 'PeerReviewerAllocation', PeerReviewerAllocationDao_Repo$upsertList$slambda_0(this, entityList, null), $completion); }; protoOf(PeerReviewerAllocationDao_Repo).tfi = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$298(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PeerReviewerAllocationDao_Repo).insertAsync = function (entity, $completion) { return this.tfi(entity instanceof PeerReviewerAllocation ? entity : THROW_CCE(), $completion); }; function PersonAuth2Dao() { } function PersonAuth2Dao_DoorWrapper(_db, _dao) { PersonAuth2Dao.call(this); this.nfn_1 = _db; this.ofn_1 = _dao; } protoOf(PersonAuth2Dao_DoorWrapper).mfn = function (auth, $completion) { auth.vfn_1 = systemTimeInMillis(); return this.ofn_1.mfn(auth, $completion); }; function PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.wfn_1); } protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1).w5h = function (returnsId) { return 'INSERT INTO PersonAuth2 (pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1).bfo = function (stmt, entity) { stmt.x5i(1, entity.pfn_1); stmt.a5j(2, entity.qfn_1); stmt.a5j(3, entity.rfn_1); stmt.x5i(4, entity.sfn_1); stmt.x5i(5, entity.tfn_1); stmt.x5i(6, entity.ufn_1); stmt.x5i(7, entity.vfn_1); }; protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1).r5g = function (stmt, entity) { return this.bfo(stmt, entity instanceof PersonAuth2 ? entity : THROW_CCE()); }; function PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.wfn_1); } protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO PersonAuth2 (pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1).bfo = function (stmt, entity) { stmt.x5i(1, entity.pfn_1); stmt.a5j(2, entity.qfn_1); stmt.a5j(3, entity.rfn_1); stmt.x5i(4, entity.sfn_1); stmt.x5i(5, entity.tfn_1); stmt.x5i(6, entity.ufn_1); stmt.x5i(7, entity.vfn_1); }; protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1).r5g = function (stmt, entity) { return this.bfo(stmt, entity instanceof PersonAuth2 ? entity : THROW_CCE()); }; function $insertAsyncCOROUTINE$299(_this__u8e3s4, auth, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.mfo_1 = _this__u8e3s4; this.nfo_1 = auth; } protoOf($insertAsyncCOROUTINE$299).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.mfo_1.yfn_1.y5h(this.nfo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PersonAuth2Dao_JdbcImpl(_db) { PersonAuth2Dao.call(this); this.wfn_1 = _db; var tmp = this; tmp.xfn_1 = new PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1(this); var tmp_0 = this; tmp_0.yfn_1 = new PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1(this); } protoOf(PersonAuth2Dao_JdbcImpl).mfn = function (auth, $completion) { var tmp = new $insertAsyncCOROUTINE$299(this, auth, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function PersonAuth2Dao_Repo$insertAsync$slambda(this$0, $auth, resultContinuation) { this.wfo_1 = this$0; this.xfo_1 = $auth; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAuth2Dao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonAuth2Dao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(PersonAuth2Dao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.wfo_1.afp_1.mfn(this.xfo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonAuth2Dao_Repo$insertAsync$slambda).q79 = function (completion) { return new PersonAuth2Dao_Repo$insertAsync$slambda(this.wfo_1, this.xfo_1, completion); }; function PersonAuth2Dao_Repo$insertAsync$slambda_0(this$0, $auth, resultContinuation) { var i = new PersonAuth2Dao_Repo$insertAsync$slambda(this$0, $auth, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$300(_this__u8e3s4, auth, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.mfp_1 = _this__u8e3s4; this.nfp_1 = auth; } protoOf($insertAsyncCOROUTINE$300).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.mfp_1.zfo_1, 'PersonAuth2', PersonAuth2Dao_Repo$insertAsync$slambda_0(this.mfp_1, this.nfp_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PersonAuth2Dao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { PersonAuth2Dao.call(this); this.yfo_1 = _db; this.zfo_1 = _repo; this.afp_1 = _dao; this.bfp_1 = _httpClient; this.cfp_1 = _clientId; this.dfp_1 = _endpoint; } protoOf(PersonAuth2Dao_Repo).mfn = function (auth, $completion) { var tmp = new $insertAsyncCOROUTINE$300(this, auth, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function PersonAuthDao() { } function PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.ofp_1); } protoOf(PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).w5h = function (returnsId) { return 'INSERT INTO PersonAuth (personAuthUid, passwordHash, personAuthStatus) VALUES(?, ?, ?)'; }; protoOf(PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).sfp = function (stmt, entity) { if (entity.tfp_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.tfp_1); } stmt.a5j(2, entity.ufp_1); stmt.w5i(3, entity.vfp_1); }; protoOf(PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).r5g = function (stmt, entity) { return this.sfp(stmt, entity instanceof PersonAuth ? entity : THROW_CCE()); }; function $insertAsyncCOROUTINE$303(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.efq_1 = _this__u8e3s4; this.ffq_1 = entity; } protoOf($insertAsyncCOROUTINE$303).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.efq_1.pfp_1.y5h(this.ffq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PersonAuthDao_JdbcImpl(_db) { PersonAuthDao.call(this); this.ofp_1 = _db; var tmp = this; tmp.pfp_1 = new PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1(this); } protoOf(PersonAuthDao_JdbcImpl).gfq = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$303(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonAuthDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.gfq(entity instanceof PersonAuth ? entity : THROW_CCE(), $completion); }; function PersonDao() { } function $insertAsyncCOROUTINE$309(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.yfq_1 = _this__u8e3s4; this.zfq_1 = entity; } protoOf($insertAsyncCOROUTINE$309).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.afr_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.yfq_1.cfr_1)); if (this.zfq_1.a97_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.afr_1.r63(9, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.bfr_1 = suspendResult; this.zfq_1.a97_1 = this.bfr_1; this.ld_1 = 2; continue $sm; case 2: this.zfq_1.m97_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.yfq_1.dfr_1.insertAsync(this.zfq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.zfq_1.a97_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PersonDao_DoorWrapper(_db, _dao) { PersonDao.call(this); this.cfr_1 = _db; this.dfr_1 = _dao; } protoOf(PersonDao_DoorWrapper).hfq = function (username, $completion) { return this.dfr_1.hfq(username, $completion); }; protoOf(PersonDao_DoorWrapper).ifq = function (accountPersonUid, $completion) { return this.dfr_1.ifq(accountPersonUid, $completion); }; protoOf(PersonDao_DoorWrapper).uc8 = function (uid) { return this.dfr_1.uc8(uid); }; protoOf(PersonDao_DoorWrapper).jfq = function (uid, $completion) { return this.dfr_1.jfq(uid, $completion); }; protoOf(PersonDao_DoorWrapper).kfq = function (entity, $completion) { entity.m97_1 = systemTimeInMillis(); return this.dfr_1.kfq(entity, $completion); }; protoOf(PersonDao_DoorWrapper).lfq = function (timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText) { return this.dfr_1.lfq(timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText); }; protoOf(PersonDao_DoorWrapper).mfq = function (personUid, accountPersonUid) { return this.dfr_1.mfq(personUid, accountPersonUid); }; protoOf(PersonDao_DoorWrapper).nfq = function (uid) { return this.dfr_1.nfq(uid); }; protoOf(PersonDao_DoorWrapper).ofq = function (uid, $completion) { return this.dfr_1.ofq(uid, $completion); }; protoOf(PersonDao_DoorWrapper).pfq = function (personUid, username, currentTime, $completion) { return this.dfr_1.pfq(personUid, username, currentTime, $completion); }; protoOf(PersonDao_DoorWrapper).efr = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$309(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.efr(entity instanceof Person ? entity : THROW_CCE(), $completion); }; function PersonDao_JdbcImpl$countUsername$slambda$lambda(_result) { return mapNextRow(_result, 0, PersonDao_JdbcImpl$countUsername$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$countUsername$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function PersonDao_JdbcImpl$findByUidWithPicture$slambda$lambda(_result) { return mapNextRow(_result, null, PersonDao_JdbcImpl$findByUidWithPicture$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findByUidWithPicture$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.b5o('personUid'); var tmp; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_username = $_result.b10('username'); var tmp_0; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_firstNames = $_result.b10('firstNames'); var tmp_1; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_lastName = $_result.b10('lastName'); var tmp_2; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_emailAddr = $_result.b10('emailAddr'); var tmp_3; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_phoneNum = $_result.b10('phoneNum'); var tmp_4; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_gender = $_result.a5o('gender'); var tmp_5; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_active = $_result.m67('active'); var tmp_6; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_dateOfBirth = $_result.b5o('dateOfBirth'); var tmp_7; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_personAddress = $_result.b10('personAddress'); var tmp_8; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_personOrgId = $_result.b10('personOrgId'); var tmp_9; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_personGroupUid = $_result.b5o('personGroupUid'); var tmp_10; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_personLct = $_result.b5o('personLct'); var tmp_11; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_personCountry = $_result.b10('personCountry'); var tmp_12; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_personType = $_result.a5o('personType'); var tmp_13; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_personMasterChangeSeqNum = $_result.b5o('personMasterChangeSeqNum'); var tmp_14; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_personLocalChangeSeqNum = $_result.b5o('personLocalChangeSeqNum'); var tmp_15; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_personLastChangedBy = $_result.a5o('personLastChangedBy'); var tmp_16; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_admin = $_result.m67('admin'); var tmp_17; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_personNotes = $_result.b10('personNotes'); var tmp_18; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_fatherName = $_result.b10('fatherName'); var tmp_19; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_fatherNumber = $_result.b10('fatherNumber'); var tmp_20; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_motherName = $_result.b10('motherName'); var tmp_21; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_motherNum = $_result.b10('motherNum'); var tmp_22; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.b5o('personPictureUid'); var tmp_23; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_personPictureLct = $_result.b5o('personPictureLct'); var tmp_24; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_personPictureUri = $_result.b10('personPictureUri'); var tmp_25; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_personPictureThumbnailUri = $_result.b10('personPictureThumbnailUri'); var tmp_26; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_fileSize = $_result.a5o('fileSize'); var tmp_27; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_personPictureActive = $_result.m67('personPictureActive'); var tmp_28; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new PersonAndPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithPicture....' call if (!_tmp_Person_isAllNull) { var tmp_29 = this_0; // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithPicture.....' call this_1.a97_1 = _tmp_personUid; this_1.b97_1 = _tmp_username; this_1.c97_1 = _tmp_firstNames; this_1.d97_1 = _tmp_lastName; this_1.e97_1 = _tmp_emailAddr; this_1.f97_1 = _tmp_phoneNum; this_1.g97_1 = _tmp_gender; this_1.h97_1 = _tmp_active; this_1.i97_1 = _tmp_dateOfBirth; this_1.j97_1 = _tmp_personAddress; this_1.k97_1 = _tmp_personOrgId; this_1.l97_1 = _tmp_personGroupUid; this_1.m97_1 = _tmp_personLct; this_1.n97_1 = _tmp_personCountry; this_1.o97_1 = _tmp_personType; this_1.p97_1 = _tmp_personMasterChangeSeqNum; this_1.q97_1 = _tmp_personLocalChangeSeqNum; this_1.r97_1 = _tmp_personLastChangedBy; this_1.s97_1 = _tmp_admin; this_1.t97_1 = _tmp_personNotes; this_1.u97_1 = _tmp_fatherName; this_1.v97_1 = _tmp_fatherNumber; this_1.w97_1 = _tmp_motherName; this_1.x97_1 = _tmp_motherNum; tmp_29.ffr_1 = this_1; } if (!_tmp_PersonPicture_isAllNull) { var tmp_30 = this_0; // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithPicture.....' call this_2.y97_1 = _tmp_personPictureUid; this_2.z97_1 = _tmp_personPictureLct; this_2.a98_1 = _tmp_personPictureUri; this_2.b98_1 = _tmp_personPictureThumbnailUri; this_2.c98_1 = _tmp_fileSize; this_2.d98_1 = _tmp_personPictureActive; tmp_30.gfr_1 = this_2; } return this_0; }; } function PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.b5o('personUid'); var tmp; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_username = $_result.b10('username'); var tmp_0; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_firstNames = $_result.b10('firstNames'); var tmp_1; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_lastName = $_result.b10('lastName'); var tmp_2; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_emailAddr = $_result.b10('emailAddr'); var tmp_3; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_phoneNum = $_result.b10('phoneNum'); var tmp_4; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_gender = $_result.a5o('gender'); var tmp_5; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_active = $_result.m67('active'); var tmp_6; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_dateOfBirth = $_result.b5o('dateOfBirth'); var tmp_7; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_personAddress = $_result.b10('personAddress'); var tmp_8; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_personOrgId = $_result.b10('personOrgId'); var tmp_9; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_personGroupUid = $_result.b5o('personGroupUid'); var tmp_10; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_personLct = $_result.b5o('personLct'); var tmp_11; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_personCountry = $_result.b10('personCountry'); var tmp_12; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_personType = $_result.a5o('personType'); var tmp_13; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_personMasterChangeSeqNum = $_result.b5o('personMasterChangeSeqNum'); var tmp_14; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_personLocalChangeSeqNum = $_result.b5o('personLocalChangeSeqNum'); var tmp_15; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_personLastChangedBy = $_result.a5o('personLastChangedBy'); var tmp_16; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_admin = $_result.m67('admin'); var tmp_17; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_personNotes = $_result.b10('personNotes'); var tmp_18; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_fatherName = $_result.b10('fatherName'); var tmp_19; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_fatherNumber = $_result.b10('fatherNumber'); var tmp_20; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_motherName = $_result.b10('motherName'); var tmp_21; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_motherNum = $_result.b10('motherNum'); var tmp_22; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.b5o('personPictureUid'); var tmp_23; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_personPictureLct = $_result.b5o('personPictureLct'); var tmp_24; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_personPictureUri = $_result.b10('personPictureUri'); var tmp_25; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_personPictureThumbnailUri = $_result.b10('personPictureThumbnailUri'); var tmp_26; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_fileSize = $_result.a5o('fileSize'); var tmp_27; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_personPictureActive = $_result.m67('personPictureActive'); var tmp_28; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new PersonAndPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithPictureAsFlow.....' call if (!_tmp_Person_isAllNull) { var tmp_29 = this_0; // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithPictureAsFlow......' call this_1.a97_1 = _tmp_personUid; this_1.b97_1 = _tmp_username; this_1.c97_1 = _tmp_firstNames; this_1.d97_1 = _tmp_lastName; this_1.e97_1 = _tmp_emailAddr; this_1.f97_1 = _tmp_phoneNum; this_1.g97_1 = _tmp_gender; this_1.h97_1 = _tmp_active; this_1.i97_1 = _tmp_dateOfBirth; this_1.j97_1 = _tmp_personAddress; this_1.k97_1 = _tmp_personOrgId; this_1.l97_1 = _tmp_personGroupUid; this_1.m97_1 = _tmp_personLct; this_1.n97_1 = _tmp_personCountry; this_1.o97_1 = _tmp_personType; this_1.p97_1 = _tmp_personMasterChangeSeqNum; this_1.q97_1 = _tmp_personLocalChangeSeqNum; this_1.r97_1 = _tmp_personLastChangedBy; this_1.s97_1 = _tmp_admin; this_1.t97_1 = _tmp_personNotes; this_1.u97_1 = _tmp_fatherName; this_1.v97_1 = _tmp_fatherNumber; this_1.w97_1 = _tmp_motherName; this_1.x97_1 = _tmp_motherNum; tmp_29.ffr_1 = this_1; } if (!_tmp_PersonPicture_isAllNull) { var tmp_30 = this_0; // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithPictureAsFlow......' call this_2.y97_1 = _tmp_personPictureUid; this_2.z97_1 = _tmp_personPictureLct; this_2.a98_1 = _tmp_personPictureUri; this_2.b98_1 = _tmp_personPictureThumbnailUri; this_2.c98_1 = _tmp_fileSize; this_2.d98_1 = _tmp_personPictureActive; tmp_30.gfr_1 = this_2; } return this_0; }; } function PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda($uid, resultContinuation) { this.pfr_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).rfr = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).le = function (p1, $completion) { return this.rfr((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.qfr_1.x5i(1, this.pfr_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.qfr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda(this.pfr_1, completion); i.qfr_1 = _stmt; return i; }; function PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda_0($uid, resultContinuation) { var i = new PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.rfr(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, PersonDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_personUid = $_result.b5o('personUid'); var _tmp_username = $_result.b10('username'); var _tmp_firstNames = $_result.b10('firstNames'); var _tmp_lastName = $_result.b10('lastName'); var _tmp_emailAddr = $_result.b10('emailAddr'); var _tmp_phoneNum = $_result.b10('phoneNum'); var _tmp_gender = $_result.a5o('gender'); var _tmp_active = $_result.m67('active'); var _tmp_dateOfBirth = $_result.b5o('dateOfBirth'); var _tmp_personAddress = $_result.b10('personAddress'); var _tmp_personOrgId = $_result.b10('personOrgId'); var _tmp_personGroupUid = $_result.b5o('personGroupUid'); var _tmp_personLct = $_result.b5o('personLct'); var _tmp_personCountry = $_result.b10('personCountry'); var _tmp_personType = $_result.a5o('personType'); var _tmp_personMasterChangeSeqNum = $_result.b5o('personMasterChangeSeqNum'); var _tmp_personLocalChangeSeqNum = $_result.b5o('personLocalChangeSeqNum'); var _tmp_personLastChangedBy = $_result.a5o('personLastChangedBy'); var _tmp_admin = $_result.m67('admin'); var _tmp_personNotes = $_result.b10('personNotes'); var _tmp_fatherName = $_result.b10('fatherName'); var _tmp_fatherNumber = $_result.b10('fatherNumber'); var _tmp_motherName = $_result.b10('motherName'); var _tmp_motherNum = $_result.b10('motherNum'); // Inline function 'kotlin.apply' call var this_0 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidAsync....' call this_0.a97_1 = _tmp_personUid; this_0.b97_1 = _tmp_username; this_0.c97_1 = _tmp_firstNames; this_0.d97_1 = _tmp_lastName; this_0.e97_1 = _tmp_emailAddr; this_0.f97_1 = _tmp_phoneNum; this_0.g97_1 = _tmp_gender; this_0.h97_1 = _tmp_active; this_0.i97_1 = _tmp_dateOfBirth; this_0.j97_1 = _tmp_personAddress; this_0.k97_1 = _tmp_personOrgId; this_0.l97_1 = _tmp_personGroupUid; this_0.m97_1 = _tmp_personLct; this_0.n97_1 = _tmp_personCountry; this_0.o97_1 = _tmp_personType; this_0.p97_1 = _tmp_personMasterChangeSeqNum; this_0.q97_1 = _tmp_personLocalChangeSeqNum; this_0.r97_1 = _tmp_personLastChangedBy; this_0.s97_1 = _tmp_admin; this_0.t97_1 = _tmp_personNotes; this_0.u97_1 = _tmp_fatherName; this_0.v97_1 = _tmp_fatherNumber; this_0.w97_1 = _tmp_motherName; this_0.x97_1 = _tmp_motherNum; return this_0; }; } function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda$lambda(_result) { return mapRows(_result, PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.b5o('personUid'); var tmp; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_username = $_result.b10('username'); var tmp_0; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_firstNames = $_result.b10('firstNames'); var tmp_1; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_lastName = $_result.b10('lastName'); var tmp_2; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_emailAddr = $_result.b10('emailAddr'); var tmp_3; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_phoneNum = $_result.b10('phoneNum'); var tmp_4; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_gender = $_result.a5o('gender'); var tmp_5; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_active = $_result.m67('active'); var tmp_6; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_dateOfBirth = $_result.b5o('dateOfBirth'); var tmp_7; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_personAddress = $_result.b10('personAddress'); var tmp_8; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_personOrgId = $_result.b10('personOrgId'); var tmp_9; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_personGroupUid = $_result.b5o('personGroupUid'); var tmp_10; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_personLct = $_result.b5o('personLct'); var tmp_11; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_personCountry = $_result.b10('personCountry'); var tmp_12; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_personType = $_result.a5o('personType'); var tmp_13; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_personMasterChangeSeqNum = $_result.b5o('personMasterChangeSeqNum'); var tmp_14; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_personLocalChangeSeqNum = $_result.b5o('personLocalChangeSeqNum'); var tmp_15; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_personLastChangedBy = $_result.a5o('personLastChangedBy'); var tmp_16; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_admin = $_result.m67('admin'); var tmp_17; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_personNotes = $_result.b10('personNotes'); var tmp_18; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_fatherName = $_result.b10('fatherName'); var tmp_19; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_fatherNumber = $_result.b10('fatherNumber'); var tmp_20; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_motherName = $_result.b10('motherName'); var tmp_21; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_motherNum = $_result.b10('motherNum'); var tmp_22; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.b5o('personPictureUid'); var tmp_23; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_personPictureLct = $_result.b5o('personPictureLct'); var tmp_24; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_personPictureUri = $_result.b10('personPictureUri'); var tmp_25; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_personPictureThumbnailUri = $_result.b10('personPictureThumbnailUri'); var tmp_26; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_fileSize = $_result.a5o('fileSize'); var tmp_27; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_personPictureActive = $_result.m67('personPictureActive'); var tmp_28; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new PersonAndListDisplayDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call if (!_tmp_Person_isAllNull) { var tmp_29 = this_0; // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.a97_1 = _tmp_personUid; this_1.b97_1 = _tmp_username; this_1.c97_1 = _tmp_firstNames; this_1.d97_1 = _tmp_lastName; this_1.e97_1 = _tmp_emailAddr; this_1.f97_1 = _tmp_phoneNum; this_1.g97_1 = _tmp_gender; this_1.h97_1 = _tmp_active; this_1.i97_1 = _tmp_dateOfBirth; this_1.j97_1 = _tmp_personAddress; this_1.k97_1 = _tmp_personOrgId; this_1.l97_1 = _tmp_personGroupUid; this_1.m97_1 = _tmp_personLct; this_1.n97_1 = _tmp_personCountry; this_1.o97_1 = _tmp_personType; this_1.p97_1 = _tmp_personMasterChangeSeqNum; this_1.q97_1 = _tmp_personLocalChangeSeqNum; this_1.r97_1 = _tmp_personLastChangedBy; this_1.s97_1 = _tmp_admin; this_1.t97_1 = _tmp_personNotes; this_1.u97_1 = _tmp_fatherName; this_1.v97_1 = _tmp_fatherNumber; this_1.w97_1 = _tmp_motherName; this_1.x97_1 = _tmp_motherNum; tmp_29.sfr_1 = this_1; } if (!_tmp_PersonPicture_isAllNull) { var tmp_30 = this_0; // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_2.y97_1 = _tmp_personPictureUid; this_2.z97_1 = _tmp_personPictureLct; this_2.a98_1 = _tmp_personPictureUri; this_2.b98_1 = _tmp_personPictureThumbnailUri; this_2.c98_1 = _tmp_fileSize; this_2.d98_1 = _tmp_personPictureActive; tmp_30.tfr_1 = this_2; } return this_0; }; } function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda($accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { this.cfs_1 = $accountPersonUid; this.dfs_1 = $excludeClazz; this.efs_1 = $timestamp; this.ffs_1 = $excludeSelected; this.gfs_1 = $searchText; this.hfs_1 = $sortOrder; this.ifs_1 = $_limit; this.jfs_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda).lfs = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda).le = function (p1, $completion) { return this.lfs((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.kfs_1.x5i(1, this.cfs_1); this.kfs_1.x5i(2, this.cfs_1); this.kfs_1.x5i(3, this.cfs_1); this.kfs_1.x5i(4, this.cfs_1); this.kfs_1.x5i(5, this.cfs_1); this.kfs_1.x5i(6, this.cfs_1); this.kfs_1.x5i(7, this.cfs_1); this.kfs_1.x5i(8, this.dfs_1); this.kfs_1.x5i(9, this.dfs_1); this.kfs_1.x5i(10, this.efs_1); var tmp_0 = this.kfs_1.t5h(); var this_0 = this.ffs_1; this.kfs_1.b5j(11, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.kfs_1.a5j(12, this.gfs_1); this.kfs_1.a5j(13, this.gfs_1); this.kfs_1.w5i(14, this.hfs_1); this.kfs_1.w5i(15, this.hfs_1); this.kfs_1.w5i(16, this.ifs_1); this.kfs_1.w5i(17, this.jfs_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.kfs_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda(this.cfs_1, this.dfs_1, this.efs_1, this.ffs_1, this.gfs_1, this.hfs_1, this.ifs_1, this.jfs_1, completion); i.kfs_1 = _stmt; return i; }; function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda_0($accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { var i = new PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda($accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.lfs(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda($accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder, resultContinuation) { this.ufs_1 = $accountPersonUid; this.vfs_1 = $excludeClazz; this.wfs_1 = $timestamp; this.xfs_1 = $excludeSelected; this.yfs_1 = $searchText; this.zfs_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.aft_1.x5i(1, this.ufs_1); this.aft_1.x5i(2, this.ufs_1); this.aft_1.x5i(3, this.ufs_1); this.aft_1.x5i(4, this.ufs_1); this.aft_1.x5i(5, this.ufs_1); this.aft_1.x5i(6, this.ufs_1); this.aft_1.x5i(7, this.ufs_1); this.aft_1.x5i(8, this.vfs_1); this.aft_1.x5i(9, this.vfs_1); this.aft_1.x5i(10, this.wfs_1); var tmp_0 = this.aft_1.t5h(); var this_0 = this.xfs_1; this.aft_1.b5j(11, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.aft_1.a5j(12, this.yfs_1); this.aft_1.a5j(13, this.yfs_1); this.aft_1.w5i(14, this.zfs_1); this.aft_1.w5i(15, this.zfs_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.aft_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda(this.ufs_1, this.vfs_1, this.wfs_1, this.xfs_1, this.yfs_1, this.zfs_1, completion); i.aft_1 = _stmt; return i; }; function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda_0($accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder, resultContinuation) { var i = new PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda($accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.b5o('personUid'); var tmp; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_username = $_result.b10('username'); var tmp_0; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_firstNames = $_result.b10('firstNames'); var tmp_1; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_lastName = $_result.b10('lastName'); var tmp_2; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_emailAddr = $_result.b10('emailAddr'); var tmp_3; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_phoneNum = $_result.b10('phoneNum'); var tmp_4; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_gender = $_result.a5o('gender'); var tmp_5; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_active = $_result.m67('active'); var tmp_6; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_dateOfBirth = $_result.b5o('dateOfBirth'); var tmp_7; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_personAddress = $_result.b10('personAddress'); var tmp_8; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_personOrgId = $_result.b10('personOrgId'); var tmp_9; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_personGroupUid = $_result.b5o('personGroupUid'); var tmp_10; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_personLct = $_result.b5o('personLct'); var tmp_11; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_personCountry = $_result.b10('personCountry'); var tmp_12; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_personType = $_result.a5o('personType'); var tmp_13; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_personMasterChangeSeqNum = $_result.b5o('personMasterChangeSeqNum'); var tmp_14; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_personLocalChangeSeqNum = $_result.b5o('personLocalChangeSeqNum'); var tmp_15; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_personLastChangedBy = $_result.a5o('personLastChangedBy'); var tmp_16; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_admin = $_result.m67('admin'); var tmp_17; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_personNotes = $_result.b10('personNotes'); var tmp_18; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_fatherName = $_result.b10('fatherName'); var tmp_19; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_fatherNumber = $_result.b10('fatherNumber'); var tmp_20; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_motherName = $_result.b10('motherName'); var tmp_21; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_motherNum = $_result.b10('motherNum'); var tmp_22; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonParentJoin_nullCount = 0; var _tmp_ppjUid = $_result.b5o('ppjUid'); var tmp_23; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_ppjPcsn = $_result.b5o('ppjPcsn'); var tmp_24; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_ppjLcsn = $_result.b5o('ppjLcsn'); var tmp_25; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_ppjLcb = $_result.a5o('ppjLcb'); var tmp_26; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_ppjLct = $_result.b5o('ppjLct'); var tmp_27; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_ppjParentPersonUid = $_result.b5o('ppjParentPersonUid'); var tmp_28; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_ppjMinorPersonUid = $_result.b5o('ppjMinorPersonUid'); var tmp_29; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_ppjRelationship = $_result.a5o('ppjRelationship'); var tmp_30; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_30 = Unit_instance; } var _tmp_ppjEmail = $_result.b10('ppjEmail'); var tmp_31; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_31 = Unit_instance; } var _tmp_ppjPhone = $_result.b10('ppjPhone'); var tmp_32; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_32 = Unit_instance; } var _tmp_ppjInactive = $_result.m67('ppjInactive'); var tmp_33; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_33 = Unit_instance; } var _tmp_ppjStatus = $_result.a5o('ppjStatus'); var tmp_34; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_34 = Unit_instance; } var _tmp_ppjApprovalTiemstamp = $_result.b5o('ppjApprovalTiemstamp'); var tmp_35; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_35 = Unit_instance; } var _tmp_ppjApprovalIpAddr = $_result.b10('ppjApprovalIpAddr'); var tmp_36; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_36 = Unit_instance; } var _tmp_PersonParentJoin_isAllNull = _tmp_PersonParentJoin_nullCount === 14; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.b5o('personPictureUid'); var tmp_37; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_37 = Unit_instance; } var _tmp_personPictureLct = $_result.b5o('personPictureLct'); var tmp_38; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_38 = Unit_instance; } var _tmp_personPictureUri = $_result.b10('personPictureUri'); var tmp_39; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_39 = Unit_instance; } var _tmp_personPictureThumbnailUri = $_result.b10('personPictureThumbnailUri'); var tmp_40; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_40 = Unit_instance; } var _tmp_fileSize = $_result.a5o('fileSize'); var tmp_41; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_41 = Unit_instance; } var _tmp_personPictureActive = $_result.m67('personPictureActive'); var tmp_42; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_42 = Unit_instance; } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; var _tmp_TransferJobItem_nullCount = 0; var _tmp_tjiUid = $_result.a5o('tjiUid'); var tmp_43; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_43 = Unit_instance; } var _tmp_tjiTjUid = $_result.a5o('tjiTjUid'); var tmp_44; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_44 = Unit_instance; } var _tmp_tjTotalSize = $_result.b5o('tjTotalSize'); var tmp_45; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_45 = Unit_instance; } var _tmp_tjTransferred = $_result.b5o('tjTransferred'); var tmp_46; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_46 = Unit_instance; } var _tmp_tjAttemptCount = $_result.a5o('tjAttemptCount'); var tmp_47; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_47 = Unit_instance; } var _tmp_tjiSrc = $_result.b10('tjiSrc'); var tmp_48; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_48 = Unit_instance; } var _tmp_tjiDest = $_result.b10('tjiDest'); var tmp_49; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_49 = Unit_instance; } var _tmp_tjiType = $_result.a5o('tjiType'); var tmp_50; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_50 = Unit_instance; } var _tmp_tjiStatus = $_result.a5o('tjiStatus'); var tmp_51; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_51 = Unit_instance; } var _tmp_tjiTableId = $_result.a5o('tjiTableId'); var tmp_52; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_52 = Unit_instance; } var _tmp_tjiEntityUid = $_result.b5o('tjiEntityUid'); var tmp_53; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_53 = Unit_instance; } var _tmp_tjiEntityEtag = $_result.b5o('tjiEntityEtag'); var tmp_54; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_54 = Unit_instance; } var _tmp_tjiLockIdToRelease = $_result.b5o('tjiLockIdToRelease'); var tmp_55; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_55 = Unit_instance; } var _tmp_tjiPartialTmpFile = $_result.b10('tjiPartialTmpFile'); var tmp_56; if ($_result.t68()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_56 = Unit_instance; } var _tmp_TransferJobItem_isAllNull = _tmp_TransferJobItem_nullCount === 14; // Inline function 'kotlin.apply' call var this_0 = new PersonAndDisplayDetail(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithDisplayDetailsFlow.....' call if (!_tmp_Person_isAllNull) { var tmp_57 = this_0; // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithDisplayDetailsFlow......' call this_1.a97_1 = _tmp_personUid; this_1.b97_1 = _tmp_username; this_1.c97_1 = _tmp_firstNames; this_1.d97_1 = _tmp_lastName; this_1.e97_1 = _tmp_emailAddr; this_1.f97_1 = _tmp_phoneNum; this_1.g97_1 = _tmp_gender; this_1.h97_1 = _tmp_active; this_1.i97_1 = _tmp_dateOfBirth; this_1.j97_1 = _tmp_personAddress; this_1.k97_1 = _tmp_personOrgId; this_1.l97_1 = _tmp_personGroupUid; this_1.m97_1 = _tmp_personLct; this_1.n97_1 = _tmp_personCountry; this_1.o97_1 = _tmp_personType; this_1.p97_1 = _tmp_personMasterChangeSeqNum; this_1.q97_1 = _tmp_personLocalChangeSeqNum; this_1.r97_1 = _tmp_personLastChangedBy; this_1.s97_1 = _tmp_admin; this_1.t97_1 = _tmp_personNotes; this_1.u97_1 = _tmp_fatherName; this_1.v97_1 = _tmp_fatherNumber; this_1.w97_1 = _tmp_motherName; this_1.x97_1 = _tmp_motherNum; tmp_57.bft_1 = this_1; } if (!_tmp_PersonParentJoin_isAllNull) { var tmp_58 = this_0; // Inline function 'kotlin.apply' call var this_2 = new PersonParentJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithDisplayDetailsFlow......' call this_2.fft_1 = _tmp_ppjUid; this_2.gft_1 = _tmp_ppjPcsn; this_2.hft_1 = _tmp_ppjLcsn; this_2.ift_1 = _tmp_ppjLcb; this_2.jft_1 = _tmp_ppjLct; this_2.kft_1 = _tmp_ppjParentPersonUid; this_2.lft_1 = _tmp_ppjMinorPersonUid; this_2.mft_1 = _tmp_ppjRelationship; this_2.nft_1 = _tmp_ppjEmail; this_2.oft_1 = _tmp_ppjPhone; this_2.pft_1 = _tmp_ppjInactive; this_2.qft_1 = _tmp_ppjStatus; this_2.rft_1 = _tmp_ppjApprovalTiemstamp; this_2.sft_1 = _tmp_ppjApprovalIpAddr; tmp_58.cft_1 = this_2; } if (!_tmp_PersonPicture_isAllNull) { var tmp_59 = this_0; // Inline function 'kotlin.apply' call var this_3 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithDisplayDetailsFlow......' call this_3.y97_1 = _tmp_personPictureUid; this_3.z97_1 = _tmp_personPictureLct; this_3.a98_1 = _tmp_personPictureUri; this_3.b98_1 = _tmp_personPictureThumbnailUri; this_3.c98_1 = _tmp_fileSize; this_3.d98_1 = _tmp_personPictureActive; tmp_59.dft_1 = this_3; } if (!_tmp_TransferJobItem_isAllNull) { var tmp_60 = this_0; // Inline function 'kotlin.apply' call var this_4 = new TransferJobItem(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithDisplayDetailsFlow......' call this_4.mbz_1 = _tmp_tjiUid; this_4.nbz_1 = _tmp_tjiTjUid; this_4.obz_1 = _tmp_tjTotalSize; this_4.pbz_1 = _tmp_tjTransferred; this_4.qbz_1 = _tmp_tjAttemptCount; this_4.rbz_1 = _tmp_tjiSrc; this_4.sbz_1 = _tmp_tjiDest; this_4.tbz_1 = _tmp_tjiType; this_4.ubz_1 = _tmp_tjiStatus; this_4.vbz_1 = _tmp_tjiTableId; this_4.wbz_1 = _tmp_tjiEntityUid; this_4.xbz_1 = _tmp_tjiEntityEtag; this_4.ybz_1 = _tmp_tjiLockIdToRelease; this_4.zbz_1 = _tmp_tjiPartialTmpFile; tmp_60.eft_1 = this_4; } return this_0; }; } function PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda($personUid, $accountPersonUid, resultContinuation) { this.bfu_1 = $personUid; this.cfu_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda).efu = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda).le = function (p1, $completion) { return this.efu((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.dfu_1.x5i(1, this.bfu_1); this.dfu_1.x5i(2, this.cfu_1); this.dfu_1.x5i(3, this.bfu_1); this.dfu_1.x5i(4, this.bfu_1); this.dfu_1.x5i(5, this.bfu_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.dfu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda(this.bfu_1, this.cfu_1, completion); i.dfu_1 = _stmt; return i; }; function PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda_0($personUid, $accountPersonUid, resultContinuation) { var i = new PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda($personUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.efu(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$getNamesByUid$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, PersonDao_JdbcImpl$getNamesByUid$slambda$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$getNamesByUid$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstNames = $_result.b10('firstNames'); var _tmp_lastName = $_result.b10('lastName'); // Inline function 'kotlin.apply' call var this_0 = new PersonNames(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.getNamesByUid.....' call this_0.ffu_1 = _tmp_firstNames; this_0.gfu_1 = _tmp_lastName; return this_0; }; } function PersonDao_JdbcImpl$getNamesByUid$slambda$slambda($uid, resultContinuation) { this.pfu_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda$slambda).rfu = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda$slambda).le = function (p1, $completion) { return this.rfu((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.qfu_1.x5i(1, this.pfu_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.qfu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$getNamesByUid$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda$slambda).o5g = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$getNamesByUid$slambda$slambda(this.pfu_1, completion); i.qfu_1 = _stmt; return i; }; function PersonDao_JdbcImpl$getNamesByUid$slambda$slambda_0($uid, resultContinuation) { var i = new PersonDao_JdbcImpl$getNamesByUid$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.rfu(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$getNamesByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, PersonDao_JdbcImpl$getNamesByUidAsync$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$getNamesByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstNames = $_result.b10('firstNames'); var _tmp_lastName = $_result.b10('lastName'); // Inline function 'kotlin.apply' call var this_0 = new PersonNames(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.getNamesByUidAsync....' call this_0.ffu_1 = _tmp_firstNames; this_0.gfu_1 = _tmp_lastName; return this_0; }; } function PersonDao_JdbcImpl$_insertAdapterPerson_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.sfu_1); } protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_abort$1).w5h = function (returnsId) { return 'INSERT INTO Person (personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_abort$1).afv = function (stmt, entity) { if (entity.a97_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.a97_1); } stmt.a5j(2, entity.b97_1); stmt.a5j(3, entity.c97_1); stmt.a5j(4, entity.d97_1); stmt.a5j(5, entity.e97_1); stmt.a5j(6, entity.f97_1); stmt.w5i(7, entity.g97_1); stmt.k5i(8, entity.h97_1); stmt.x5i(9, entity.i97_1); stmt.a5j(10, entity.j97_1); stmt.a5j(11, entity.k97_1); stmt.x5i(12, entity.l97_1); stmt.x5i(13, entity.m97_1); stmt.a5j(14, entity.n97_1); stmt.w5i(15, entity.o97_1); stmt.x5i(16, entity.p97_1); stmt.x5i(17, entity.q97_1); stmt.w5i(18, entity.r97_1); stmt.k5i(19, entity.s97_1); stmt.a5j(20, entity.t97_1); stmt.a5j(21, entity.u97_1); stmt.a5j(22, entity.v97_1); stmt.a5j(23, entity.w97_1); stmt.a5j(24, entity.x97_1); }; protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_abort$1).r5g = function (stmt, entity) { return this.afv(stmt, entity instanceof Person ? entity : THROW_CCE()); }; function PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.sfu_1); } protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO Person (personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1).afv = function (stmt, entity) { if (entity.a97_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.a97_1); } stmt.a5j(2, entity.b97_1); stmt.a5j(3, entity.c97_1); stmt.a5j(4, entity.d97_1); stmt.a5j(5, entity.e97_1); stmt.a5j(6, entity.f97_1); stmt.w5i(7, entity.g97_1); stmt.k5i(8, entity.h97_1); stmt.x5i(9, entity.i97_1); stmt.a5j(10, entity.j97_1); stmt.a5j(11, entity.k97_1); stmt.x5i(12, entity.l97_1); stmt.x5i(13, entity.m97_1); stmt.a5j(14, entity.n97_1); stmt.w5i(15, entity.o97_1); stmt.x5i(16, entity.p97_1); stmt.x5i(17, entity.q97_1); stmt.w5i(18, entity.r97_1); stmt.k5i(19, entity.s97_1); stmt.a5j(20, entity.t97_1); stmt.a5j(21, entity.u97_1); stmt.a5j(22, entity.v97_1); stmt.a5j(23, entity.w97_1); stmt.a5j(24, entity.x97_1); }; protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1).r5g = function (stmt, entity) { return this.afv(stmt, entity instanceof Person ? entity : THROW_CCE()); }; function PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.sfu_1); } protoOf(PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).w5h = function (returnsId) { return 'INSERT INTO PersonAuth (personAuthUid, passwordHash, personAuthStatus) VALUES(?, ?, ?)'; }; protoOf(PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).sfp = function (stmt, entity) { if (entity.tfp_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.tfp_1); } stmt.a5j(2, entity.ufp_1); stmt.w5i(3, entity.vfp_1); }; protoOf(PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).r5g = function (stmt, entity) { return this.sfp(stmt, entity instanceof PersonAuth ? entity : THROW_CCE()); }; function PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.sfu_1); } protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).w5h = function (returnsId) { return 'INSERT INTO PersonGroup (groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).hfv = function (stmt, entity) { if (entity.ifv_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.ifv_1); } stmt.x5i(2, entity.jfv_1); stmt.x5i(3, entity.kfv_1); stmt.w5i(4, entity.lfv_1); stmt.x5i(5, entity.mfv_1); stmt.a5j(6, entity.nfv_1); stmt.k5i(7, entity.ofv_1); stmt.w5i(8, entity.pfv_1); }; protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).r5g = function (stmt, entity) { return this.hfv(stmt, entity instanceof PersonGroup ? entity : THROW_CCE()); }; function PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.sfu_1); } protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).w5h = function (returnsId) { return 'INSERT INTO PersonGroupMember (groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).sfv = function (stmt, entity) { if (entity.tfv_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.tfv_1); } stmt.k5i(2, entity.ufv_1); stmt.x5i(3, entity.vfv_1); stmt.x5i(4, entity.wfv_1); stmt.x5i(5, entity.xfv_1); stmt.x5i(6, entity.yfv_1); stmt.w5i(7, entity.zfv_1); stmt.x5i(8, entity.afw_1); }; protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).r5g = function (stmt, entity) { return this.sfv(stmt, entity instanceof PersonGroupMember ? entity : THROW_CCE()); }; function PersonDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) { this.jfw_1 = $entity; this.kfw_1 = $_result; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$updateAsync$slambda).n5g = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_JdbcImpl$updateAsync$slambda).le = function (p1, $completion) { return this.n5g((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$updateAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.lfw_1.a5j(1, this.jfw_1.b97_1); this.lfw_1.a5j(2, this.jfw_1.c97_1); this.lfw_1.a5j(3, this.jfw_1.d97_1); this.lfw_1.a5j(4, this.jfw_1.e97_1); this.lfw_1.a5j(5, this.jfw_1.f97_1); this.lfw_1.w5i(6, this.jfw_1.g97_1); this.lfw_1.k5i(7, this.jfw_1.h97_1); this.lfw_1.x5i(8, this.jfw_1.i97_1); this.lfw_1.a5j(9, this.jfw_1.j97_1); this.lfw_1.a5j(10, this.jfw_1.k97_1); this.lfw_1.x5i(11, this.jfw_1.l97_1); this.lfw_1.x5i(12, this.jfw_1.m97_1); this.lfw_1.a5j(13, this.jfw_1.n97_1); this.lfw_1.w5i(14, this.jfw_1.o97_1); this.lfw_1.x5i(15, this.jfw_1.p97_1); this.lfw_1.x5i(16, this.jfw_1.q97_1); this.lfw_1.w5i(17, this.jfw_1.r97_1); this.lfw_1.k5i(18, this.jfw_1.s97_1); this.lfw_1.a5j(19, this.jfw_1.t97_1); this.lfw_1.a5j(20, this.jfw_1.u97_1); this.lfw_1.a5j(21, this.jfw_1.v97_1); this.lfw_1.a5j(22, this.jfw_1.w97_1); this.lfw_1.a5j(23, this.jfw_1.x97_1); this.lfw_1.x5i(24, this.jfw_1.a97_1); this.mfw_1 = this.kfw_1._v; this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.lfw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; var ARGUMENT_0 = this.mfw_1 + ARGUMENT | 0; this.kfw_1._v = ARGUMENT_0; return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonDao_JdbcImpl$updateAsync$slambda).o5g = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$updateAsync$slambda(this.jfw_1, this.kfw_1, completion); i.lfw_1 = _stmt; return i; }; function PersonDao_JdbcImpl$updateAsync$slambda_0($entity, $_result, resultContinuation) { var i = new PersonDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation); var l = function (_stmt, $completion) { return i.n5g(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$countUsername$slambda($username, resultContinuation) { this.vfw_1 = $username; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$countUsername$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_JdbcImpl$countUsername$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$countUsername$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.wfw_1.a5j(1, this.vfw_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.wfw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$countUsername$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonDao_JdbcImpl$countUsername$slambda).o5g = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$countUsername$slambda(this.vfw_1, completion); i.wfw_1 = _stmt; return i; }; function PersonDao_JdbcImpl$countUsername$slambda_0($username, resultContinuation) { var i = new PersonDao_JdbcImpl$countUsername$slambda($username, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$findByUidWithPicture$slambda($accountPersonUid, resultContinuation) { this.ffx_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findByUidWithPicture$slambda).rfr = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_JdbcImpl$findByUidWithPicture$slambda).le = function (p1, $completion) { return this.rfr((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$findByUidWithPicture$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.gfx_1.x5i(1, this.ffx_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.gfx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$findByUidWithPicture$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonDao_JdbcImpl$findByUidWithPicture$slambda).o5g = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$findByUidWithPicture$slambda(this.ffx_1, completion); i.gfx_1 = _stmt; return i; }; function PersonDao_JdbcImpl$findByUidWithPicture$slambda_0($accountPersonUid, resultContinuation) { var i = new PersonDao_JdbcImpl$findByUidWithPicture$slambda($accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.rfr(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this$0, $uid, resultContinuation) { this.pfx_1 = this$0; this.qfx_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).rfx = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).r79 = function ($completion) { return this.rfx($completion); }; protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid = ? \n \n', true); suspendResult = prepareAndUseStatementAsync(this.pfx_1.sfu_1, tmp_0, PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda_0(this.qfx_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).q79 = function (completion) { return new PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this.pfx_1, this.qfx_1, completion); }; function PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda_0(this$0, $uid, resultContinuation) { var i = new PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.rfx($completion); }; l.$arity = 0; return l; } function PersonDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) { this.afy_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findByUidAsync$slambda).cfy = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_JdbcImpl$findByUidAsync$slambda).le = function (p1, $completion) { return this.cfy((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$findByUidAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.bfy_1.x5i(1, this.afy_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.bfy_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonDao_JdbcImpl$findByUidAsync$slambda).o5g = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$findByUidAsync$slambda(this.afy_1, completion); i.bfy_1 = _stmt; return i; }; function PersonDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) { var i = new PersonDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.cfy(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1(this$0, $accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder) { this.jfy_1 = this$0; this.kfy_1 = $accountPersonUid; this.lfy_1 = $excludeClazz; this.mfy_1 = $timestamp; this.nfy_1 = $excludeSelected; this.ofy_1 = $searchText; this.pfy_1 = $sortOrder; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['SystemPermission', 'ClazzEnrolment', 'Person', 'PersonPicture', 'CoursePermission']; DoorLimitOffsetPagingSource.call(this, this$0.sfu_1, tmp$ret$2); } protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1).qfy = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n /* Select personUids that can be viewed based on CoursePermission given the active user \n for their enrolments \n */\n (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE CAST(? AS BIGINT) != 0\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n \n UNION\n /* Select personUids that can be viewed based on CoursePermission for the active user\n where the CoursePermission is granted directly to them\n */ \n SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM CoursePermission\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE CAST(? AS BIGINT) != 0\n AND CoursePermission.cpToPersonUid = CAST(? AS BIGINT))\n \n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE /* Begin permission check */ \n ( \n (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 8192\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (Person.personUid IN \n (SELECT CanViewPersonUidsViaCoursePermission.personUid\n FROM CanViewPersonUidsViaCoursePermission))\n OR (Person.personUid = CAST(? AS BIGINT))\n )\n /* End permission check */\n AND (CAST(? AS BIGINT) = 0 OR CAST(? AS BIGINT) NOT IN\n (SELECT clazzEnrolmentClazzUid \n FROM ClazzEnrolment \n WHERE clazzEnrolmentPersonUid = Person.personUid \n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft\n AND ClazzEnrolment.clazzEnrolmentActive))\n AND Person.personType = 0 \n AND (Person.personUid NOT IN (?))\n AND (? = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n GROUP BY Person.personUid, PersonPicture.personPictureUid\n ORDER BY CASE(?)\n WHEN 1 THEN Person.firstNames\n WHEN 3 THEN Person.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN Person.firstNames\n WHEN 4 THEN Person.lastName\n ELSE ''\n END DESC\n ) AS _PagingData LIMIT ? OFFSET ?", true, VOID, VOID, "SELECT * FROM (\n WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n /* Select personUids that can be viewed based on CoursePermission given the active user \n for their enrolments \n */\n (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE ? != 0\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n \n UNION\n /* Select personUids that can be viewed based on CoursePermission for the active user\n where the CoursePermission is granted directly to them\n */ \n SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM CoursePermission\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE ? != 0\n AND CoursePermission.cpToPersonUid = ?)\n \n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE /* Begin permission check */ \n ( \n (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 8192\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (Person.personUid IN \n (SELECT CanViewPersonUidsViaCoursePermission.personUid\n FROM CanViewPersonUidsViaCoursePermission))\n OR (Person.personUid = ?)\n )\n /* End permission check */\n AND (? = 0 OR ? NOT IN\n (SELECT clazzEnrolmentClazzUid \n FROM ClazzEnrolment \n WHERE clazzEnrolmentPersonUid = Person.personUid \n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft\n AND ClazzEnrolment.clazzEnrolmentActive))\n AND Person.personType = 0 \n AND (Person.personUid NOT IN (?))\n AND (? = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n GROUP BY Person.personUid, PersonPicture.personPictureUid\n ORDER BY CASE(?)\n WHEN 1 THEN Person.firstNames\n WHEN 3 THEN Person.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN Person.firstNames\n WHEN 4 THEN Person.lastName\n ELSE ''\n END DESC\n ) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.jfy_1.sfu_1, tmp, PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda_0(this.kfy_1, this.lfy_1, this.mfy_1, this.nfy_1, this.ofy_1, this.pfy_1, _limit, _offset, null), $completion); }; protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1).z5q = function (_limit, _offset, $completion) { return this.qfy(_limit, _offset, $completion); }; protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n /* Select personUids that can be viewed based on CoursePermission given the active user \n for their enrolments \n */\n (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE CAST(? AS BIGINT) != 0\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n \n UNION\n /* Select personUids that can be viewed based on CoursePermission for the active user\n where the CoursePermission is granted directly to them\n */ \n SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM CoursePermission\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE CAST(? AS BIGINT) != 0\n AND CoursePermission.cpToPersonUid = CAST(? AS BIGINT))\n \n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE /* Begin permission check */ \n ( \n (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 8192\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (Person.personUid IN \n (SELECT CanViewPersonUidsViaCoursePermission.personUid\n FROM CanViewPersonUidsViaCoursePermission))\n OR (Person.personUid = CAST(? AS BIGINT))\n )\n /* End permission check */\n AND (CAST(? AS BIGINT) = 0 OR CAST(? AS BIGINT) NOT IN\n (SELECT clazzEnrolmentClazzUid \n FROM ClazzEnrolment \n WHERE clazzEnrolmentPersonUid = Person.personUid \n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft\n AND ClazzEnrolment.clazzEnrolmentActive))\n AND Person.personType = 0 \n AND (Person.personUid NOT IN (?))\n AND (? = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n GROUP BY Person.personUid, PersonPicture.personPictureUid\n ORDER BY CASE(?)\n WHEN 1 THEN Person.firstNames\n WHEN 3 THEN Person.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN Person.firstNames\n WHEN 4 THEN Person.lastName\n ELSE ''\n END DESC\n ) AS _PagingCount", true, VOID, VOID, "SELECT COUNT(*) FROM (\n WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n /* Select personUids that can be viewed based on CoursePermission given the active user \n for their enrolments \n */\n (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE ? != 0\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n \n UNION\n /* Select personUids that can be viewed based on CoursePermission for the active user\n where the CoursePermission is granted directly to them\n */ \n SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM CoursePermission\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE ? != 0\n AND CoursePermission.cpToPersonUid = ?)\n \n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE /* Begin permission check */ \n ( \n (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 8192\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (Person.personUid IN \n (SELECT CanViewPersonUidsViaCoursePermission.personUid\n FROM CanViewPersonUidsViaCoursePermission))\n OR (Person.personUid = ?)\n )\n /* End permission check */\n AND (? = 0 OR ? NOT IN\n (SELECT clazzEnrolmentClazzUid \n FROM ClazzEnrolment \n WHERE clazzEnrolmentPersonUid = Person.personUid \n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft\n AND ClazzEnrolment.clazzEnrolmentActive))\n AND Person.personType = 0 \n AND (Person.personUid NOT IN (?))\n AND (? = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n GROUP BY Person.personUid, PersonPicture.personPictureUid\n ORDER BY CASE(?)\n WHEN 1 THEN Person.firstNames\n WHEN 3 THEN Person.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN Person.firstNames\n WHEN 4 THEN Person.lastName\n ELSE ''\n END DESC\n ) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.jfy_1.sfu_1, tmp, PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda_0(this.kfy_1, this.lfy_1, this.mfy_1, this.nfy_1, this.ofy_1, this.pfy_1, null), $completion); }; function PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda(this$0, $personUid, $accountPersonUid, resultContinuation) { this.zfy_1 = this$0; this.afz_1 = $personUid; this.bfz_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda).cfz = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda).r79 = function ($completion) { return this.cfz($completion); }; protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT Person.*, PersonParentJoin.* , PersonPicture.*, TransferJobItem.*\n FROM Person\n LEFT JOIN PersonParentJoin \n ON ppjUid =\n (SELECT ppjUid \n FROM PersonParentJoin\n WHERE ppjMinorPersonUid = CAST(? AS BIGINT) \n AND ppjParentPersonUid = CAST(? AS BIGINT) \n LIMIT 1) \n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = CAST(? AS BIGINT)\n LEFT JOIN TransferJobItem\n ON TransferJobItem.tjiUid = \n (SELECT TransferJobItem.tjiUid\n FROM TransferJobItem\n WHERE TransferJobItem.tjiEntityUid = CAST(? AS BIGINT)\n AND TransferJobItem.tjiTableId = 50\n AND TransferJobItem.tjiEntityEtag = PersonPicture.personPictureLct\n AND TransferJobItem.tjiStatus != 21\n LIMIT 1)\n \n WHERE Person.personUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT Person.*, PersonParentJoin.* , PersonPicture.*, TransferJobItem.*\n FROM Person\n LEFT JOIN PersonParentJoin \n ON ppjUid =\n (SELECT ppjUid \n FROM PersonParentJoin\n WHERE ppjMinorPersonUid = ? \n AND ppjParentPersonUid = ? \n LIMIT 1) \n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = ?\n LEFT JOIN TransferJobItem\n ON TransferJobItem.tjiUid = \n (SELECT TransferJobItem.tjiUid\n FROM TransferJobItem\n WHERE TransferJobItem.tjiEntityUid = ?\n AND TransferJobItem.tjiTableId = 50\n AND TransferJobItem.tjiEntityEtag = PersonPicture.personPictureLct\n AND TransferJobItem.tjiStatus != 21\n LIMIT 1)\n \n WHERE Person.personUid = ?\n \n', true); suspendResult = prepareAndUseStatementAsync(this.zfy_1.sfu_1, tmp_0, PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda_0(this.afz_1, this.bfz_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda).q79 = function (completion) { return new PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda(this.zfy_1, this.afz_1, this.bfz_1, completion); }; function PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda_0(this$0, $personUid, $accountPersonUid, resultContinuation) { var i = new PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda(this$0, $personUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.cfz($completion); }; l.$arity = 0; return l; } function PersonDao_JdbcImpl$getNamesByUid$slambda(this$0, $uid, resultContinuation) { this.lfz_1 = this$0; this.mfz_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda).nfz = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda).r79 = function ($completion) { return this.nfz($completion); }; protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT Person.firstNames, Person.lastName\n FROM Person\n WHERE Person.personUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT Person.firstNames, Person.lastName\n FROM Person\n WHERE Person.personUid = ? \n \n', true); suspendResult = prepareAndUseStatementAsync(this.lfz_1.sfu_1, tmp_0, PersonDao_JdbcImpl$getNamesByUid$slambda$slambda_0(this.mfz_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda).q79 = function (completion) { return new PersonDao_JdbcImpl$getNamesByUid$slambda(this.lfz_1, this.mfz_1, completion); }; function PersonDao_JdbcImpl$getNamesByUid$slambda_0(this$0, $uid, resultContinuation) { var i = new PersonDao_JdbcImpl$getNamesByUid$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.nfz($completion); }; l.$arity = 0; return l; } function PersonDao_JdbcImpl$getNamesByUidAsync$slambda($uid, resultContinuation) { this.wfz_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$getNamesByUidAsync$slambda).rfu = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_JdbcImpl$getNamesByUidAsync$slambda).le = function (p1, $completion) { return this.rfu((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$getNamesByUidAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.xfz_1.x5i(1, this.wfz_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.xfz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$getNamesByUidAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonDao_JdbcImpl$getNamesByUidAsync$slambda).o5g = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$getNamesByUidAsync$slambda(this.wfz_1, completion); i.xfz_1 = _stmt; return i; }; function PersonDao_JdbcImpl$getNamesByUidAsync$slambda_0($uid, resultContinuation) { var i = new PersonDao_JdbcImpl$getNamesByUidAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.rfu(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$updateUsername$slambda($username, $currentTime, $personUid, resultContinuation) { this.gg0_1 = $username; this.hg0_1 = $currentTime; this.ig0_1 = $personUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$updateUsername$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_JdbcImpl$updateUsername$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$updateUsername$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.jg0_1.a5j(1, this.gg0_1); this.jg0_1.x5i(2, this.hg0_1); this.jg0_1.x5i(3, this.ig0_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.jg0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonDao_JdbcImpl$updateUsername$slambda).o5g = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$updateUsername$slambda(this.gg0_1, this.hg0_1, this.ig0_1, completion); i.jg0_1 = _stmt; return i; }; function PersonDao_JdbcImpl$updateUsername$slambda_0($username, $currentTime, $personUid, resultContinuation) { var i = new PersonDao_JdbcImpl$updateUsername$slambda($username, $currentTime, $personUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$312(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.sg0_1 = _this__u8e3s4; this.tg0_1 = entity; } protoOf($insertAsyncCOROUTINE$312).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.sg0_1.tfu_1.y5h(this.tg0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateAsyncCOROUTINE$313(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cg1_1 = _this__u8e3s4; this.dg1_1 = entity; } protoOf($updateAsyncCOROUTINE$313).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.eg1_1 = {_v: 0}; this.fg1_1 = 'UPDATE Person SET username = ?, firstNames = ?, lastName = ?, emailAddr = ?, phoneNum = ?, gender = ?, active = ?, dateOfBirth = ?, personAddress = ?, personOrgId = ?, personGroupUid = ?, personLct = ?, personCountry = ?, personType = ?, personMasterChangeSeqNum = ?, personLocalChangeSeqNum = ?, personLastChangedBy = ?, admin = ?, personNotes = ?, fatherName = ?, fatherNumber = ?, motherName = ?, motherNum = ? WHERE personUid = ?'; this.ld_1 = 1; suspendResult = prepareAndUseStatementAsync_0(this.cg1_1.sfu_1, this.fg1_1, VOID, PersonDao_JdbcImpl$updateAsync$slambda_0(this.dg1_1, this.eg1_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return this.eg1_1._v; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PersonDao_JdbcImpl(_db) { PersonDao.call(this); this.sfu_1 = _db; var tmp = this; tmp.tfu_1 = new PersonDao_JdbcImpl$_insertAdapterPerson_abort$1(this); var tmp_0 = this; tmp_0.ufu_1 = new PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1(this); var tmp_1 = this; tmp_1.vfu_1 = new PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1(this); var tmp_2 = this; tmp_2.wfu_1 = new PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1(this); var tmp_3 = this; tmp_3.xfu_1 = new PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1(this); } protoOf(PersonDao_JdbcImpl).efr = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$312(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.efr(entity instanceof Person ? entity : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl).kfq = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$313(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_JdbcImpl).hfq = function (username, $completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM Person where Person.username = ?', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.sfu_1, tmp, PersonDao_JdbcImpl$countUsername$slambda_0(username, null), $completion); }; protoOf(PersonDao_JdbcImpl).ifq = function (accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid = ? \n \n', true); return prepareAndUseStatementAsync(this.sfu_1, tmp, PersonDao_JdbcImpl$findByUidWithPicture$slambda_0(accountPersonUid, null), $completion); }; protoOf(PersonDao_JdbcImpl).uc8 = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Person', 'PersonPicture']; return doorFlow(this.sfu_1, tmp, PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda_0(this, uid, null)); }; protoOf(PersonDao_JdbcImpl).jfq = function (uid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM Person WHERE personUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM Person WHERE personUid = ?\n', true); return prepareAndUseStatementAsync(this.sfu_1, tmp, PersonDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion); }; protoOf(PersonDao_JdbcImpl).lfq = function (timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText) { return new PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1(this, accountPersonUid, excludeClazz, timestamp, excludeSelected, searchText, sortOrder); }; protoOf(PersonDao_JdbcImpl).mfq = function (personUid, accountPersonUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Person', 'PersonPicture', 'PersonParentJoin', 'TransferJobItem']; return doorFlow(this.sfu_1, tmp, PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda_0(this, personUid, accountPersonUid, null)); }; protoOf(PersonDao_JdbcImpl).nfq = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Person']; return doorFlow(this.sfu_1, tmp, PersonDao_JdbcImpl$getNamesByUid$slambda_0(this, uid, null)); }; protoOf(PersonDao_JdbcImpl).ofq = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Person.firstNames, Person.lastName\n FROM Person\n WHERE Person.personUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT Person.firstNames, Person.lastName\n FROM Person\n WHERE Person.personUid = ? \n \n', true); return prepareAndUseStatementAsync(this.sfu_1, tmp, PersonDao_JdbcImpl$getNamesByUidAsync$slambda_0(uid, null), $completion); }; protoOf(PersonDao_JdbcImpl).pfq = function (personUid, username, currentTime, $completion) { var tmp = new PreparedStatementConfig('\n UPDATE Person\n SET username = ?,\n personLct = CAST(? AS BIGINT)\n WHERE Person.personUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE Person\n SET username = ?,\n personLct = ?\n WHERE Person.personUid = ? \n \n', false); return prepareAndUseStatementAsync(this.sfu_1, tmp, PersonDao_JdbcImpl$updateUsername$slambda_0(username, currentTime, personUid, null), $completion); }; function PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function PersonDao_Repo$getNamesByUid$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function PersonDao_Repo$countUsername$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequest: exception for ' + $repoPath; }; } function PersonDao_Repo$findByUidWithPicture$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function PersonDao_Repo$findByUidAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function PersonDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) { this.og1_1 = this$0; this.pg1_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_Repo$updateAsync$slambda).d8v = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_Repo$updateAsync$slambda).r79 = function ($completion) { return this.d8v($completion); }; protoOf(PersonDao_Repo$updateAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.og1_1.sg1_1.kfq(this.pg1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonDao_Repo$updateAsync$slambda).q79 = function (completion) { return new PersonDao_Repo$updateAsync$slambda(this.og1_1, this.pg1_1, completion); }; function PersonDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new PersonDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.d8v($completion); }; l.$arity = 0; return l; } function PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda(this$0, $timestamp, $excludeClazz, $excludeSelected, $accountPersonUid, $sortOrder, $searchText, resultContinuation) { this.fg2_1 = this$0; this.gg2_1 = $timestamp; this.hg2_1 = $excludeClazz; this.ig2_1 = $excludeSelected; this.jg2_1 = $accountPersonUid; this.kg2_1 = $sortOrder; this.lg2_1 = $searchText; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.og2_1 = this.fg2_1.rg1_1; var tmp_1 = this; tmp_1.pg2_1 = 'PersonDao/findPersonsWithPermissionAsPagingSource'; this.md_1 = 4; var tmp_2 = this; tmp_2.qg2_1 = this.fg2_1.tg1_1; var tmp_3 = this; tmp_3.rg2_1 = this.qg2_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.fg2_1.rg1_1.t39(), 'PersonDao/findPersonsWithPermissionAsPagingSource'); doorNodeIdHeader(this_0, this.fg2_1.rg1_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'timestamp', this.fg2_1.rg1_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.gg2_1)); parameter(this_0, 'excludeClazz', this.fg2_1.rg1_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.hg2_1)); parameter(this_0, 'excludeSelected', this.fg2_1.rg1_1.t39().a67_1.b46(ListSerializer(serializer(Companion_getInstance())), this.ig2_1)); parameter(this_0, 'accountPersonUid', this.fg2_1.rg1_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.jg2_1)); parameter(this_0, 'sortOrder', this.fg2_1.rg1_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.kg2_1)); parameter(this_0, 'searchText', this.fg2_1.rg1_1.t39().a67_1.b46(get_nullable(serializer_0(StringCompanionObject_instance)), this.lg2_1)); pagingSourceLoadParameters(this_0, this.fg2_1.rg1_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.mg2_1); tmp_4.sg2_1 = this_0; this.sg2_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.tg2_1 = this.rg2_1; var tmp_6 = this; tmp_6.ug2_1 = this.sg2_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.ug2_1, this.tg2_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.vg2_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.fg2_1.qg1_1, this.vg2_1, this.fg2_1.rg1_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.ng2_1 = endOfPaginationReached(this.vg2_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda$lambda(this.og2_1, this.pg2_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.ng2_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda).g87 = function (_pagingParams, completion) { var i = new PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda(this.fg2_1, this.gg2_1, this.hg2_1, this.ig2_1, this.jg2_1, this.kg2_1, this.lg2_1, completion); i.mg2_1 = _pagingParams; return i; }; function PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda_0(this$0, $timestamp, $excludeClazz, $excludeSelected, $accountPersonUid, $sortOrder, $searchText, resultContinuation) { var i = new PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda(this$0, $timestamp, $excludeClazz, $excludeSelected, $accountPersonUid, $sortOrder, $searchText, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda(this$0, $personUid, $accountPersonUid, resultContinuation) { this.eg3_1 = this$0; this.fg3_1 = $personUid; this.gg3_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.hg3_1 = this.eg3_1.rg1_1; var tmp_1 = this; tmp_1.ig3_1 = 'PersonDao/findByUidWithDisplayDetailsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.jg3_1 = this.eg3_1.tg1_1; var tmp_3 = this; tmp_3.kg3_1 = this.jg3_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.eg3_1.rg1_1.t39(), 'PersonDao/findByUidWithDisplayDetailsFlow'); doorNodeIdHeader(this_0, this.eg3_1.rg1_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'personUid', this.eg3_1.rg1_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.fg3_1)); parameter(this_0, 'accountPersonUid', this.eg3_1.rg1_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.gg3_1)); tmp_4.lg3_1 = this_0; this.lg3_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.mg3_1 = this.kg3_1; var tmp_6 = this; tmp_6.ng3_1 = this.lg3_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.ng3_1, this.mg3_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.og3_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.eg3_1.qg1_1, this.og3_1, this.eg3_1.rg1_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda$lambda(this.hg3_1, this.ig3_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda).q79 = function (completion) { return new PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda(this.eg3_1, this.fg3_1, this.gg3_1, completion); }; function PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda_0(this$0, $personUid, $accountPersonUid, resultContinuation) { var i = new PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda(this$0, $personUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function PersonDao_Repo$getNamesByUid$slambda(this$0, $uid, resultContinuation) { this.xg3_1 = this$0; this.yg3_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_Repo$getNamesByUid$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_Repo$getNamesByUid$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(PersonDao_Repo$getNamesByUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.zg3_1 = this.xg3_1.rg1_1; var tmp_1 = this; tmp_1.ag4_1 = 'PersonDao/getNamesByUid'; this.md_1 = 3; var tmp_2 = this; tmp_2.bg4_1 = this.xg3_1.tg1_1; var tmp_3 = this; tmp_3.cg4_1 = this.bg4_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.xg3_1.rg1_1.t39(), 'PersonDao/getNamesByUid'); doorNodeIdHeader(this_0, this.xg3_1.rg1_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this.xg3_1.rg1_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.yg3_1)); tmp_4.dg4_1 = this_0; this.dg4_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.eg4_1 = this.cg4_1; var tmp_6 = this; tmp_6.fg4_1 = this.dg4_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.fg4_1, this.eg4_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.gg4_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.xg3_1.qg1_1, this.gg4_1, this.xg3_1.rg1_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', PersonDao_Repo$getNamesByUid$slambda$lambda(this.zg3_1, this.ag4_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(PersonDao_Repo$getNamesByUid$slambda).q79 = function (completion) { return new PersonDao_Repo$getNamesByUid$slambda(this.xg3_1, this.yg3_1, completion); }; function PersonDao_Repo$getNamesByUid$slambda_0(this$0, $uid, resultContinuation) { var i = new PersonDao_Repo$getNamesByUid$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function PersonDao_Repo$getNamesByUidAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function PersonDao_Repo$updateUsername$slambda(this$0, $personUid, $username, $currentTime, resultContinuation) { this.pg4_1 = this$0; this.qg4_1 = $personUid; this.rg4_1 = $username; this.sg4_1 = $currentTime; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_Repo$updateUsername$slambda).d8v = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_Repo$updateUsername$slambda).r79 = function ($completion) { return this.d8v($completion); }; protoOf(PersonDao_Repo$updateUsername$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.pg4_1.sg1_1.pfq(this.qg4_1, this.rg4_1, this.sg4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonDao_Repo$updateUsername$slambda).q79 = function (completion) { return new PersonDao_Repo$updateUsername$slambda(this.pg4_1, this.qg4_1, this.rg4_1, this.sg4_1, completion); }; function PersonDao_Repo$updateUsername$slambda_0(this$0, $personUid, $username, $currentTime, resultContinuation) { var i = new PersonDao_Repo$updateUsername$slambda(this$0, $personUid, $username, $currentTime, resultContinuation); var l = function ($completion) { return i.d8v($completion); }; l.$arity = 0; return l; } function PersonDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.bg5_1 = this$0; this.cg5_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(PersonDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.bg5_1.sg1_1.insertAsync(this.cg5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonDao_Repo$insertAsync$slambda).q79 = function (completion) { return new PersonDao_Repo$insertAsync$slambda(this.bg5_1, this.cg5_1, completion); }; function PersonDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new PersonDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $countUsernameCOROUTINE$314(_this__u8e3s4, username, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.lg5_1 = _this__u8e3s4; this.mg5_1 = username; } protoOf($countUsernameCOROUTINE$314).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ng5_1 = this.lg5_1.rg1_1.t39().a67_1; this.og5_1 = serializer_1(IntCompanionObject_instance); var tmp_0 = this; tmp_0.pg5_1 = this.lg5_1.rg1_1; var tmp_1 = this; tmp_1.qg5_1 = 'PersonDao/countUsername'; this.md_1 = 3; var tmp_2 = this; tmp_2.sg5_1 = this.lg5_1.rg1_1.t39().z66_1; var tmp_3 = this; tmp_3.tg5_1 = this.sg5_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.lg5_1.rg1_1.t39(), 'PersonDao/countUsername'); doorNodeIdHeader(this_0, this.lg5_1.rg1_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'username', this.lg5_1.rg1_1.t39().a67_1.b46(serializer_0(StringCompanionObject_instance), this.mg5_1)); tmp_4.ug5_1 = this_0; this.ug5_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.vg5_1 = this.tg5_1; var tmp_6 = this; tmp_6.wg5_1 = this.ug5_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.wg5_1, this.vg5_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.xg5_1 = suspendResult; this.ld_1 = 2; suspendResult = bodyAsText(this.xg5_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.rg5_1 = suspendResult; this.md_1 = 5; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; var tmp_8 = this; Napier_getInstance().o5f(e, 'DoorLog', PersonDao_Repo$countUsername$lambda(this.pg5_1, this.qg5_1)); throw e; } else { throw this.od_1; } case 4: this.md_1 = 5; var ARGUMENT = this.rg5_1; return this.ng5_1.c46(this.og5_1, ARGUMENT); case 5: throw this.od_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; function $findByUidWithPictureCOROUTINE$319(_this__u8e3s4, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.gg6_1 = _this__u8e3s4; this.hg6_1 = accountPersonUid; } protoOf($findByUidWithPictureCOROUTINE$319).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.ig6_1 = this.gg6_1.rg1_1; var tmp_1 = this; tmp_1.jg6_1 = 'PersonDao/findByUidWithPicture'; this.md_1 = 3; var tmp_2 = this; tmp_2.kg6_1 = this.gg6_1.tg1_1; var tmp_3 = this; tmp_3.lg6_1 = this.kg6_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.gg6_1.rg1_1.t39(), 'PersonDao/findByUidWithPicture'); doorNodeIdHeader(this_0, this.gg6_1.rg1_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.gg6_1.rg1_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.hg6_1)); tmp_4.mg6_1 = this_0; this.mg6_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.ng6_1 = this.lg6_1; var tmp_6 = this; tmp_6.og6_1 = this.mg6_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.og6_1, this.ng6_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.pg6_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.gg6_1.qg1_1, this.pg6_1, this.gg6_1.rg1_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.qg6_1 = this.od_1; Napier_getInstance().e5f(this.qg6_1, 'DoorLog', PersonDao_Repo$findByUidWithPicture$lambda(this.ig6_1, this.jg6_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.gg6_1.sg1_1.ifq(this.hg6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $findByUidAsyncCOROUTINE$320(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.zg6_1 = _this__u8e3s4; this.ag7_1 = uid; } protoOf($findByUidAsyncCOROUTINE$320).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.bg7_1 = this.zg6_1.rg1_1; var tmp_1 = this; tmp_1.cg7_1 = 'PersonDao/findByUidAsync'; this.md_1 = 3; var tmp_2 = this; tmp_2.dg7_1 = this.zg6_1.tg1_1; var tmp_3 = this; tmp_3.eg7_1 = this.dg7_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.zg6_1.rg1_1.t39(), 'PersonDao/findByUidAsync'); doorNodeIdHeader(this_0, this.zg6_1.rg1_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this.zg6_1.rg1_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ag7_1)); tmp_4.fg7_1 = this_0; this.fg7_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.gg7_1 = this.eg7_1; var tmp_6 = this; tmp_6.hg7_1 = this.fg7_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.hg7_1, this.gg7_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ig7_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.zg6_1.qg1_1, this.ig7_1, this.zg6_1.rg1_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.jg7_1 = this.od_1; Napier_getInstance().e5f(this.jg7_1, 'DoorLog', PersonDao_Repo$findByUidAsync$lambda(this.bg7_1, this.cg7_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.zg6_1.sg1_1.jfq(this.ag7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateAsyncCOROUTINE$321(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.sg7_1 = _this__u8e3s4; this.tg7_1 = entity; } protoOf($updateAsyncCOROUTINE$321).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.sg7_1.rg1_1, 'Person', PersonDao_Repo$updateAsync$slambda_0(this.sg7_1, this.tg7_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $getNamesByUidAsyncCOROUTINE$324(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cg8_1 = _this__u8e3s4; this.dg8_1 = uid; } protoOf($getNamesByUidAsyncCOROUTINE$324).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.eg8_1 = this.cg8_1.rg1_1; var tmp_1 = this; tmp_1.fg8_1 = 'PersonDao/getNamesByUidAsync'; this.md_1 = 3; var tmp_2 = this; tmp_2.gg8_1 = this.cg8_1.tg1_1; var tmp_3 = this; tmp_3.hg8_1 = this.gg8_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.cg8_1.rg1_1.t39(), 'PersonDao/getNamesByUidAsync'); doorNodeIdHeader(this_0, this.cg8_1.rg1_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this.cg8_1.rg1_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.dg8_1)); tmp_4.ig8_1 = this_0; this.ig8_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.jg8_1 = this.hg8_1; var tmp_6 = this; tmp_6.kg8_1 = this.ig8_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.kg8_1, this.jg8_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.lg8_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.cg8_1.qg1_1, this.lg8_1, this.cg8_1.rg1_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.mg8_1 = this.od_1; Napier_getInstance().e5f(this.mg8_1, 'DoorLog', PersonDao_Repo$getNamesByUidAsync$lambda(this.eg8_1, this.fg8_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.cg8_1.sg1_1.ofq(this.dg8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateUsernameCOROUTINE$325(_this__u8e3s4, personUid, username, currentTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.vg8_1 = _this__u8e3s4; this.wg8_1 = personUid; this.xg8_1 = username; this.yg8_1 = currentTime; } protoOf($updateUsernameCOROUTINE$325).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.vg8_1.rg1_1, 'Person', PersonDao_Repo$updateUsername$slambda_0(this.vg8_1, this.wg8_1, this.xg8_1, this.yg8_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$327(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.hg9_1 = _this__u8e3s4; this.ig9_1 = entity; } protoOf($insertAsyncCOROUTINE$327).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.hg9_1.rg1_1, 'Person', PersonDao_Repo$insertAsync$slambda_0(this.hg9_1, this.ig9_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PersonDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { PersonDao.call(this); this.qg1_1 = _db; this.rg1_1 = _repo; this.sg1_1 = _dao; this.tg1_1 = _httpClient; this.ug1_1 = _clientId; this.vg1_1 = _endpoint; this.wg1_1 = new RepoDaoFlowHelper(this.rg1_1); } protoOf(PersonDao_Repo).hfq = function (username, $completion) { var tmp = new $countUsernameCOROUTINE$314(this, username, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_Repo).ifq = function (accountPersonUid, $completion) { var tmp = new $findByUidWithPictureCOROUTINE$319(this, accountPersonUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_Repo).uc8 = function (uid) { var _result = this.sg1_1.uc8(uid); return _result; }; protoOf(PersonDao_Repo).jfq = function (uid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$320(this, uid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_Repo).kfq = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$321(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_Repo).lfq = function (timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText) { var tmp = this.sg1_1.lfq(timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText); return new DoorRepositoryReplicatePullPagingSource(this.rg1_1, 'PersonDao/findPersonsWithPermissionAsPagingSource', tmp, PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda_0(this, timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText, null)); }; protoOf(PersonDao_Repo).mfq = function (personUid, accountPersonUid) { var tmp = this.sg1_1.mfq(personUid, accountPersonUid); return this.wg1_1.r68(tmp, PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda_0(this, personUid, accountPersonUid, null)); }; protoOf(PersonDao_Repo).nfq = function (uid) { var tmp = this.sg1_1.nfq(uid); return this.wg1_1.r68(tmp, PersonDao_Repo$getNamesByUid$slambda_0(this, uid, null)); }; protoOf(PersonDao_Repo).ofq = function (uid, $completion) { var tmp = new $getNamesByUidAsyncCOROUTINE$324(this, uid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_Repo).pfq = function (personUid, username, currentTime, $completion) { var tmp = new $updateUsernameCOROUTINE$325(this, personUid, username, currentTime, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_Repo).efr = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$327(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonDao_Repo).insertAsync = function (entity, $completion) { return this.efr(entity instanceof Person ? entity : THROW_CCE(), $completion); }; function PersonGroupDao() { } function $insertAsyncCOROUTINE$328(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.rg9_1 = _this__u8e3s4; this.sg9_1 = entity; } protoOf($insertAsyncCOROUTINE$328).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.tg9_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.rg9_1.vg9_1)); if (this.sg9_1.ifv_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.tg9_1.r63(43, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.ug9_1 = suspendResult; this.sg9_1.ifv_1 = this.ug9_1; this.ld_1 = 2; continue $sm; case 2: this.sg9_1.mfv_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.rg9_1.wg9_1.insertAsync(this.sg9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.sg9_1.ifv_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PersonGroupDao_DoorWrapper(_db, _dao) { PersonGroupDao.call(this); this.vg9_1 = _db; this.wg9_1 = _dao; } protoOf(PersonGroupDao_DoorWrapper).xg9 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$328(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonGroupDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.xg9(entity instanceof PersonGroup ? entity : THROW_CCE(), $completion); }; function PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.yg9_1); } protoOf(PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).w5h = function (returnsId) { return 'INSERT INTO PersonGroup (groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).hfv = function (stmt, entity) { if (entity.ifv_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.ifv_1); } stmt.x5i(2, entity.jfv_1); stmt.x5i(3, entity.kfv_1); stmt.w5i(4, entity.lfv_1); stmt.x5i(5, entity.mfv_1); stmt.a5j(6, entity.nfv_1); stmt.k5i(7, entity.ofv_1); stmt.w5i(8, entity.pfv_1); }; protoOf(PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).r5g = function (stmt, entity) { return this.hfv(stmt, entity instanceof PersonGroup ? entity : THROW_CCE()); }; function $insertAsyncCOROUTINE$329(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.kga_1 = _this__u8e3s4; this.lga_1 = entity; } protoOf($insertAsyncCOROUTINE$329).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.kga_1.zg9_1.y5h(this.lga_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PersonGroupDao_JdbcImpl(_db) { PersonGroupDao.call(this); this.yg9_1 = _db; var tmp = this; tmp.zg9_1 = new PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1(this); } protoOf(PersonGroupDao_JdbcImpl).xg9 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$329(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonGroupDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.xg9(entity instanceof PersonGroup ? entity : THROW_CCE(), $completion); }; function PersonGroupDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.uga_1 = this$0; this.vga_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonGroupDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonGroupDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(PersonGroupDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.uga_1.yga_1.insertAsync(this.vga_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonGroupDao_Repo$insertAsync$slambda).q79 = function (completion) { return new PersonGroupDao_Repo$insertAsync$slambda(this.uga_1, this.vga_1, completion); }; function PersonGroupDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new PersonGroupDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$334(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.kgb_1 = _this__u8e3s4; this.lgb_1 = entity; } protoOf($insertAsyncCOROUTINE$334).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.kgb_1.xga_1, 'PersonGroup', PersonGroupDao_Repo$insertAsync$slambda_0(this.kgb_1, this.lgb_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PersonGroupDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { PersonGroupDao.call(this); this.wga_1 = _db; this.xga_1 = _repo; this.yga_1 = _dao; this.zga_1 = _httpClient; this.agb_1 = _clientId; this.bgb_1 = _endpoint; } protoOf(PersonGroupDao_Repo).xg9 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$334(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonGroupDao_Repo).insertAsync = function (entity, $completion) { return this.xg9(entity instanceof PersonGroup ? entity : THROW_CCE(), $completion); }; function PersonGroupMemberDao() { } function $insertAsyncCOROUTINE$335(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ugb_1 = _this__u8e3s4; this.vgb_1 = entity; } protoOf($insertAsyncCOROUTINE$335).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.wgb_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.ugb_1.ygb_1)); if (this.vgb_1.tfv_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.wgb_1.r63(44, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.xgb_1 = suspendResult; this.vgb_1.tfv_1 = this.xgb_1; this.ld_1 = 2; continue $sm; case 2: this.vgb_1.afw_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.ugb_1.zgb_1.insertAsync(this.vgb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.vgb_1.tfv_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PersonGroupMemberDao_DoorWrapper(_db, _dao) { PersonGroupMemberDao.call(this); this.ygb_1 = _db; this.zgb_1 = _dao; } protoOf(PersonGroupMemberDao_DoorWrapper).agc = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$335(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonGroupMemberDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.agc(entity instanceof PersonGroupMember ? entity : THROW_CCE(), $completion); }; function PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.bgc_1); } protoOf(PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).w5h = function (returnsId) { return 'INSERT INTO PersonGroupMember (groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).sfv = function (stmt, entity) { if (entity.tfv_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.tfv_1); } stmt.k5i(2, entity.ufv_1); stmt.x5i(3, entity.vfv_1); stmt.x5i(4, entity.wfv_1); stmt.x5i(5, entity.xfv_1); stmt.x5i(6, entity.yfv_1); stmt.w5i(7, entity.zfv_1); stmt.x5i(8, entity.afw_1); }; protoOf(PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).r5g = function (stmt, entity) { return this.sfv(stmt, entity instanceof PersonGroupMember ? entity : THROW_CCE()); }; function $insertAsyncCOROUTINE$336(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ngc_1 = _this__u8e3s4; this.ogc_1 = entity; } protoOf($insertAsyncCOROUTINE$336).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.ngc_1.cgc_1.y5h(this.ogc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PersonGroupMemberDao_JdbcImpl(_db) { PersonGroupMemberDao.call(this); this.bgc_1 = _db; var tmp = this; tmp.cgc_1 = new PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1(this); } protoOf(PersonGroupMemberDao_JdbcImpl).agc = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$336(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonGroupMemberDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.agc(entity instanceof PersonGroupMember ? entity : THROW_CCE(), $completion); }; function PersonGroupMemberDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.xgc_1 = this$0; this.ygc_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonGroupMemberDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonGroupMemberDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(PersonGroupMemberDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.xgc_1.bgd_1.insertAsync(this.ygc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonGroupMemberDao_Repo$insertAsync$slambda).q79 = function (completion) { return new PersonGroupMemberDao_Repo$insertAsync$slambda(this.xgc_1, this.ygc_1, completion); }; function PersonGroupMemberDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new PersonGroupMemberDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$342(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ngd_1 = _this__u8e3s4; this.ogd_1 = entity; } protoOf($insertAsyncCOROUTINE$342).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.ngd_1.agd_1, 'PersonGroupMember', PersonGroupMemberDao_Repo$insertAsync$slambda_0(this.ngd_1, this.ogd_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PersonGroupMemberDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { PersonGroupMemberDao.call(this); this.zgc_1 = _db; this.agd_1 = _repo; this.bgd_1 = _dao; this.cgd_1 = _httpClient; this.dgd_1 = _clientId; this.egd_1 = _endpoint; } protoOf(PersonGroupMemberDao_Repo).agc = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$342(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonGroupMemberDao_Repo).insertAsync = function (entity, $completion) { return this.agc(entity instanceof PersonGroupMember ? entity : THROW_CCE(), $completion); }; function PersonParentJoinDao() { } function $upsertAsyncCOROUTINE$343(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bge_1 = _this__u8e3s4; this.cge_1 = entity; } protoOf($upsertAsyncCOROUTINE$343).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.dge_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.bge_1.fge_1)); if (this.cge_1.fft_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.dge_1.r63(512, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.ege_1 = suspendResult; this.cge_1.fft_1 = this.ege_1; this.ld_1 = 2; continue $sm; case 2: this.cge_1.jft_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.bge_1.gge_1.pgd(this.cge_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.cge_1.fft_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PersonParentJoinDao_DoorWrapper(_db, _dao) { PersonParentJoinDao.call(this); this.fge_1 = _db; this.gge_1 = _dao; } protoOf(PersonParentJoinDao_DoorWrapper).pgd = function (entity, $completion) { var tmp = new $upsertAsyncCOROUTINE$343(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonParentJoinDao_DoorWrapper).qgd = function (uid, $completion) { return this.gge_1.qgd(uid, $completion); }; protoOf(PersonParentJoinDao_DoorWrapper).rgd = function (personParentJoin, $completion) { personParentJoin.jft_1 = systemTimeInMillis(); return this.gge_1.rgd(personParentJoin, $completion); }; protoOf(PersonParentJoinDao_DoorWrapper).sgd = function (minorPersonUid, $completion) { return this.gge_1.sgd(minorPersonUid, $completion); }; function PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda$lambda(_result) { return mapNextRow(_result, null, PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda$lambda$lambda(_result)); } function PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_PersonParentJoin_nullCount = 0; var _tmp_ppjUid = $_result.b5o('ppjUid'); var tmp; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_ppjPcsn = $_result.b5o('ppjPcsn'); var tmp_0; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_ppjLcsn = $_result.b5o('ppjLcsn'); var tmp_1; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_ppjLcb = $_result.a5o('ppjLcb'); var tmp_2; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_ppjLct = $_result.b5o('ppjLct'); var tmp_3; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_ppjParentPersonUid = $_result.b5o('ppjParentPersonUid'); var tmp_4; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_ppjMinorPersonUid = $_result.b5o('ppjMinorPersonUid'); var tmp_5; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_ppjRelationship = $_result.a5o('ppjRelationship'); var tmp_6; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_ppjEmail = $_result.b10('ppjEmail'); var tmp_7; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_ppjPhone = $_result.b10('ppjPhone'); var tmp_8; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_ppjInactive = $_result.m67('ppjInactive'); var tmp_9; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_ppjStatus = $_result.a5o('ppjStatus'); var tmp_10; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_ppjApprovalTiemstamp = $_result.b5o('ppjApprovalTiemstamp'); var tmp_11; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_ppjApprovalIpAddr = $_result.b10('ppjApprovalIpAddr'); var tmp_12; if ($_result.t68()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_PersonParentJoin_isAllNull = _tmp_PersonParentJoin_nullCount === 14; var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.b5o('personUid'); var tmp_13; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_username = $_result.b10('username'); var tmp_14; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_firstNames = $_result.b10('firstNames'); var tmp_15; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_lastName = $_result.b10('lastName'); var tmp_16; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_emailAddr = $_result.b10('emailAddr'); var tmp_17; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_phoneNum = $_result.b10('phoneNum'); var tmp_18; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_gender = $_result.a5o('gender'); var tmp_19; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_active = $_result.m67('active'); var tmp_20; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_dateOfBirth = $_result.b5o('dateOfBirth'); var tmp_21; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_personAddress = $_result.b10('personAddress'); var tmp_22; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_personOrgId = $_result.b10('personOrgId'); var tmp_23; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_personGroupUid = $_result.b5o('personGroupUid'); var tmp_24; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_personLct = $_result.b5o('personLct'); var tmp_25; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_personCountry = $_result.b10('personCountry'); var tmp_26; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_personType = $_result.a5o('personType'); var tmp_27; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_personMasterChangeSeqNum = $_result.b5o('personMasterChangeSeqNum'); var tmp_28; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_personLocalChangeSeqNum = $_result.b5o('personLocalChangeSeqNum'); var tmp_29; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_personLastChangedBy = $_result.a5o('personLastChangedBy'); var tmp_30; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_30 = Unit_instance; } var _tmp_admin = $_result.m67('admin'); var tmp_31; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_31 = Unit_instance; } var _tmp_personNotes = $_result.b10('personNotes'); var tmp_32; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_32 = Unit_instance; } var _tmp_fatherName = $_result.b10('fatherName'); var tmp_33; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_33 = Unit_instance; } var _tmp_fatherNumber = $_result.b10('fatherNumber'); var tmp_34; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_34 = Unit_instance; } var _tmp_motherName = $_result.b10('motherName'); var tmp_35; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_35 = Unit_instance; } var _tmp_motherNum = $_result.b10('motherNum'); var tmp_36; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_36 = Unit_instance; } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; // Inline function 'kotlin.apply' call var this_0 = new PersonParentJoinAndMinorPerson(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonParentJoinDao_JdbcImpl.findByUidWithMinorAsync....' call if (!_tmp_PersonParentJoin_isAllNull) { var tmp_37 = this_0; // Inline function 'kotlin.apply' call var this_1 = new PersonParentJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonParentJoinDao_JdbcImpl.findByUidWithMinorAsync.....' call this_1.fft_1 = _tmp_ppjUid; this_1.gft_1 = _tmp_ppjPcsn; this_1.hft_1 = _tmp_ppjLcsn; this_1.ift_1 = _tmp_ppjLcb; this_1.jft_1 = _tmp_ppjLct; this_1.kft_1 = _tmp_ppjParentPersonUid; this_1.lft_1 = _tmp_ppjMinorPersonUid; this_1.mft_1 = _tmp_ppjRelationship; this_1.nft_1 = _tmp_ppjEmail; this_1.oft_1 = _tmp_ppjPhone; this_1.pft_1 = _tmp_ppjInactive; this_1.qft_1 = _tmp_ppjStatus; this_1.rft_1 = _tmp_ppjApprovalTiemstamp; this_1.sft_1 = _tmp_ppjApprovalIpAddr; tmp_37.hge_1 = this_1; } if (!_tmp_Person_isAllNull) { var tmp_38 = this_0; // Inline function 'kotlin.apply' call var this_2 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonParentJoinDao_JdbcImpl.findByUidWithMinorAsync.....' call this_2.a97_1 = _tmp_personUid; this_2.b97_1 = _tmp_username; this_2.c97_1 = _tmp_firstNames; this_2.d97_1 = _tmp_lastName; this_2.e97_1 = _tmp_emailAddr; this_2.f97_1 = _tmp_phoneNum; this_2.g97_1 = _tmp_gender; this_2.h97_1 = _tmp_active; this_2.i97_1 = _tmp_dateOfBirth; this_2.j97_1 = _tmp_personAddress; this_2.k97_1 = _tmp_personOrgId; this_2.l97_1 = _tmp_personGroupUid; this_2.m97_1 = _tmp_personLct; this_2.n97_1 = _tmp_personCountry; this_2.o97_1 = _tmp_personType; this_2.p97_1 = _tmp_personMasterChangeSeqNum; this_2.q97_1 = _tmp_personLocalChangeSeqNum; this_2.r97_1 = _tmp_personLastChangedBy; this_2.s97_1 = _tmp_admin; this_2.t97_1 = _tmp_personNotes; this_2.u97_1 = _tmp_fatherName; this_2.v97_1 = _tmp_fatherNumber; this_2.w97_1 = _tmp_motherName; this_2.x97_1 = _tmp_motherNum; tmp_38.ige_1 = this_2; } return this_0; }; } function PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda$lambda(_result) { return mapNextRow(_result, false, PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda$lambda$lambda(_result)); } function PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda$lambda$lambda($_result) { return function (it) { return $_result.s75(1); }; } function PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.jge_1); } protoOf(PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO PersonParentJoin (ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1).nge = function (stmt, entity) { if (entity.fft_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.fft_1); } stmt.x5i(2, entity.gft_1); stmt.x5i(3, entity.hft_1); stmt.w5i(4, entity.ift_1); stmt.x5i(5, entity.jft_1); stmt.x5i(6, entity.kft_1); stmt.x5i(7, entity.lft_1); stmt.w5i(8, entity.mft_1); stmt.a5j(9, entity.nft_1); stmt.a5j(10, entity.oft_1); stmt.k5i(11, entity.pft_1); stmt.w5i(12, entity.qft_1); stmt.x5i(13, entity.rft_1); stmt.a5j(14, entity.sft_1); }; protoOf(PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1).r5g = function (stmt, entity) { return this.nge(stmt, entity instanceof PersonParentJoin ? entity : THROW_CCE()); }; function PersonParentJoinDao_JdbcImpl$updateAsync$slambda($personParentJoin, resultContinuation) { this.wge_1 = $personParentJoin; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonParentJoinDao_JdbcImpl$updateAsync$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonParentJoinDao_JdbcImpl$updateAsync$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonParentJoinDao_JdbcImpl$updateAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.xge_1.x5i(1, this.wge_1.gft_1); this.xge_1.x5i(2, this.wge_1.hft_1); this.xge_1.w5i(3, this.wge_1.ift_1); this.xge_1.x5i(4, this.wge_1.jft_1); this.xge_1.x5i(5, this.wge_1.kft_1); this.xge_1.x5i(6, this.wge_1.lft_1); this.xge_1.w5i(7, this.wge_1.mft_1); this.xge_1.a5j(8, this.wge_1.nft_1); this.xge_1.a5j(9, this.wge_1.oft_1); this.xge_1.k5i(10, this.wge_1.pft_1); this.xge_1.w5i(11, this.wge_1.qft_1); this.xge_1.x5i(12, this.wge_1.rft_1); this.xge_1.a5j(13, this.wge_1.sft_1); this.xge_1.x5i(14, this.wge_1.fft_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.xge_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonParentJoinDao_JdbcImpl$updateAsync$slambda).o5g = function (_stmt, completion) { var i = new PersonParentJoinDao_JdbcImpl$updateAsync$slambda(this.wge_1, completion); i.xge_1 = _stmt; return i; }; function PersonParentJoinDao_JdbcImpl$updateAsync$slambda_0($personParentJoin, resultContinuation) { var i = new PersonParentJoinDao_JdbcImpl$updateAsync$slambda($personParentJoin, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda($uid, resultContinuation) { this.ggf_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda).igf = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda).le = function (p1, $completion) { return this.igf((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.hgf_1.x5i(1, this.ggf_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.hgf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda).o5g = function (_stmt, completion) { var i = new PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda(this.ggf_1, completion); i.hgf_1 = _stmt; return i; }; function PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda_0($uid, resultContinuation) { var i = new PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.igf(_stmt, $completion); }; l.$arity = 1; return l; } function PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda($minorPersonUid, resultContinuation) { this.rgf_1 = $minorPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda).h9u = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda).le = function (p1, $completion) { return this.h9u((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.sgf_1.x5i(1, this.rgf_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.sgf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda).o5g = function (_stmt, completion) { var i = new PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda(this.rgf_1, completion); i.sgf_1 = _stmt; return i; }; function PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda_0($minorPersonUid, resultContinuation) { var i = new PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda($minorPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.h9u(_stmt, $completion); }; l.$arity = 1; return l; } function $upsertAsyncCOROUTINE$344(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bgg_1 = _this__u8e3s4; this.cgg_1 = entity; } protoOf($upsertAsyncCOROUTINE$344).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.bgg_1.kge_1.y5h(this.cgg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateAsyncCOROUTINE$345(_this__u8e3s4, personParentJoin, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.lgg_1 = _this__u8e3s4; this.mgg_1 = personParentJoin; } protoOf($updateAsyncCOROUTINE$345).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ngg_1 = 'UPDATE PersonParentJoin SET ppjPcsn = ?, ppjLcsn = ?, ppjLcb = ?, ppjLct = ?, ppjParentPersonUid = ?, ppjMinorPersonUid = ?, ppjRelationship = ?, ppjEmail = ?, ppjPhone = ?, ppjInactive = ?, ppjStatus = ?, ppjApprovalTiemstamp = ?, ppjApprovalIpAddr = ? WHERE ppjUid = ?'; this.ld_1 = 1; suspendResult = prepareAndUseStatementAsync_0(this.lgg_1.jge_1, this.ngg_1, VOID, PersonParentJoinDao_JdbcImpl$updateAsync$slambda_0(this.mgg_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PersonParentJoinDao_JdbcImpl(_db) { PersonParentJoinDao.call(this); this.jge_1 = _db; var tmp = this; tmp.kge_1 = new PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1(this); } protoOf(PersonParentJoinDao_JdbcImpl).pgd = function (entity, $completion) { var tmp = new $upsertAsyncCOROUTINE$344(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonParentJoinDao_JdbcImpl).rgd = function (personParentJoin, $completion) { var tmp = new $updateAsyncCOROUTINE$345(this, personParentJoin, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonParentJoinDao_JdbcImpl).qgd = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT PersonParentJoin.*, Person.*\n FROM PersonParentJoin\n LEFT JOIN Person ON Person.personUid = PersonParentJoin.ppjMinorPersonUid \n WHERE PersonParentJoin.ppjUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT PersonParentJoin.*, Person.*\n FROM PersonParentJoin\n LEFT JOIN Person ON Person.personUid = PersonParentJoin.ppjMinorPersonUid \n WHERE PersonParentJoin.ppjUid = ?\n \n', true); return prepareAndUseStatementAsync(this.jge_1, tmp, PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda_0(uid, null), $completion); }; protoOf(PersonParentJoinDao_JdbcImpl).sgd = function (minorPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT EXISTS(\n SELECT ppjUid\n FROM PersonParentJoin\n WHERE ppjMinorPersonUid = CAST(? AS BIGINT)\n AND CAST(ppjInactive AS INTEGER) = 0\n AND ppjStatus = 1)\n ', VOID, VOID, VOID, '\n SELECT EXISTS(\n SELECT ppjUid\n FROM PersonParentJoin\n WHERE ppjMinorPersonUid = ?\n AND CAST(ppjInactive AS INTEGER) = 0\n AND ppjStatus = 1)\n \n', true); return prepareAndUseStatementAsync(this.jge_1, tmp, PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda_0(minorPersonUid, null), $completion); }; function PersonParentJoinDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation) { this.wgg_1 = this$0; this.xgg_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonParentJoinDao_Repo$upsertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonParentJoinDao_Repo$upsertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(PersonParentJoinDao_Repo$upsertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.wgg_1.agh_1.pgd(this.xgg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonParentJoinDao_Repo$upsertAsync$slambda).q79 = function (completion) { return new PersonParentJoinDao_Repo$upsertAsync$slambda(this.wgg_1, this.xgg_1, completion); }; function PersonParentJoinDao_Repo$upsertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new PersonParentJoinDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function PersonParentJoinDao_Repo$findByUidWithMinorAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function PersonParentJoinDao_Repo$updateAsync$slambda(this$0, $personParentJoin, resultContinuation) { this.mgh_1 = this$0; this.ngh_1 = $personParentJoin; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonParentJoinDao_Repo$updateAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonParentJoinDao_Repo$updateAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(PersonParentJoinDao_Repo$updateAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.mgh_1.agh_1.rgd(this.ngh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonParentJoinDao_Repo$updateAsync$slambda).q79 = function (completion) { return new PersonParentJoinDao_Repo$updateAsync$slambda(this.mgh_1, this.ngh_1, completion); }; function PersonParentJoinDao_Repo$updateAsync$slambda_0(this$0, $personParentJoin, resultContinuation) { var i = new PersonParentJoinDao_Repo$updateAsync$slambda(this$0, $personParentJoin, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function PersonParentJoinDao_Repo$isMinorApproved$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function $upsertAsyncCOROUTINE$346(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.wgh_1 = _this__u8e3s4; this.xgh_1 = entity; } protoOf($upsertAsyncCOROUTINE$346).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.wgh_1.zgg_1, 'PersonParentJoin', PersonParentJoinDao_Repo$upsertAsync$slambda_0(this.wgh_1, this.xgh_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $findByUidWithMinorAsyncCOROUTINE$347(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ggi_1 = _this__u8e3s4; this.hgi_1 = uid; } protoOf($findByUidWithMinorAsyncCOROUTINE$347).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.igi_1 = this.ggi_1.zgg_1; var tmp_1 = this; tmp_1.jgi_1 = 'PersonParentJoinDao/findByUidWithMinorAsync'; this.md_1 = 3; var tmp_2 = this; tmp_2.kgi_1 = this.ggi_1.bgh_1; var tmp_3 = this; tmp_3.lgi_1 = this.kgi_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.ggi_1.zgg_1.t39(), 'PersonParentJoinDao/findByUidWithMinorAsync'); doorNodeIdHeader(this_0, this.ggi_1.zgg_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this.ggi_1.zgg_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.hgi_1)); tmp_4.mgi_1 = this_0; this.mgi_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.ngi_1 = this.lgi_1; var tmp_6 = this; tmp_6.ogi_1 = this.mgi_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.ogi_1, this.ngi_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.pgi_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.ggi_1.ygg_1, this.pgi_1, this.ggi_1.zgg_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.qgi_1 = this.od_1; Napier_getInstance().e5f(this.qgi_1, 'DoorLog', PersonParentJoinDao_Repo$findByUidWithMinorAsync$lambda(this.igi_1, this.jgi_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.ggi_1.agh_1.qgd(this.hgi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $isMinorApprovedCOROUTINE$352(_this__u8e3s4, minorPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.zgi_1 = _this__u8e3s4; this.agj_1 = minorPersonUid; } protoOf($isMinorApprovedCOROUTINE$352).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.bgj_1 = this.zgi_1.zgg_1; var tmp_1 = this; tmp_1.cgj_1 = 'PersonParentJoinDao/isMinorApproved'; this.md_1 = 3; var tmp_2 = this; tmp_2.dgj_1 = this.zgi_1.bgh_1; var tmp_3 = this; tmp_3.egj_1 = this.dgj_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.zgi_1.zgg_1.t39(), 'PersonParentJoinDao/isMinorApproved'); doorNodeIdHeader(this_0, this.zgi_1.zgg_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'minorPersonUid', this.zgi_1.zgg_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.agj_1)); tmp_4.fgj_1 = this_0; this.fgj_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.ggj_1 = this.egj_1; var tmp_6 = this; tmp_6.hgj_1 = this.fgj_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.hgj_1, this.ggj_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.igj_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.zgi_1.ygg_1, this.igj_1, this.zgi_1.zgg_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.jgj_1 = this.od_1; Napier_getInstance().e5f(this.jgj_1, 'DoorLog', PersonParentJoinDao_Repo$isMinorApproved$lambda(this.bgj_1, this.cgj_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.zgi_1.agh_1.sgd(this.agj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PersonParentJoinDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { PersonParentJoinDao.call(this); this.ygg_1 = _db; this.zgg_1 = _repo; this.agh_1 = _dao; this.bgh_1 = _httpClient; this.cgh_1 = _clientId; this.dgh_1 = _endpoint; } protoOf(PersonParentJoinDao_Repo).pgd = function (entity, $completion) { var tmp = new $upsertAsyncCOROUTINE$346(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonParentJoinDao_Repo).qgd = function (uid, $completion) { var tmp = new $findByUidWithMinorAsyncCOROUTINE$347(this, uid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonParentJoinDao_Repo).rgd = function (personParentJoin, $completion) { return withRepoChangeMonitorAsync(this.zgg_1, 'PersonParentJoin', PersonParentJoinDao_Repo$updateAsync$slambda_0(this, personParentJoin, null), $completion); }; protoOf(PersonParentJoinDao_Repo).sgd = function (minorPersonUid, $completion) { var tmp = new $isMinorApprovedCOROUTINE$352(this, minorPersonUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function PersonPictureDao() { } function $upsertCOROUTINE$353(_this__u8e3s4, personPicture, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ugj_1 = _this__u8e3s4; this.vgj_1 = personPicture; } protoOf($upsertCOROUTINE$353).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.wgj_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.ugj_1.ygj_1)); if (this.vgj_1.y97_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.wgj_1.r63(50, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.xgj_1 = suspendResult; this.vgj_1.y97_1 = this.xgj_1; this.ld_1 = 2; continue $sm; case 2: this.vgj_1.z97_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.ugj_1.zgj_1.kgj(this.vgj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_instance; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$354(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.igk_1 = _this__u8e3s4; this.jgk_1 = entity; } protoOf($insertAsyncCOROUTINE$354).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.kgk_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.igk_1.ygj_1)); if (this.jgk_1.y97_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.kgk_1.r63(50, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.lgk_1 = suspendResult; this.jgk_1.y97_1 = this.lgk_1; this.ld_1 = 2; continue $sm; case 2: this.jgk_1.z97_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.igk_1.zgj_1.insertAsync(this.jgk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.jgk_1.y97_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PersonPictureDao_DoorWrapper(_db, _dao) { PersonPictureDao.call(this); this.ygj_1 = _db; this.zgj_1 = _dao; } protoOf(PersonPictureDao_DoorWrapper).kgj = function (personPicture, $completion) { var tmp = new $upsertCOROUTINE$353(this, personPicture, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonPictureDao_DoorWrapper).lgj = function (personUid, $completion) { return this.zgj_1.lgj(personUid, $completion); }; protoOf(PersonPictureDao_DoorWrapper).ib6 = function (uid, uri, thumbnailUri, time, $completion) { return this.zgj_1.ib6(uid, uri, thumbnailUri, time, $completion); }; protoOf(PersonPictureDao_DoorWrapper).wbd = function (entityUid, transferJobItemUid, $completion) { return this.zgj_1.wbd(entityUid, transferJobItemUid, $completion); }; protoOf(PersonPictureDao_DoorWrapper).mgk = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$354(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonPictureDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.mgk(entity instanceof PersonPicture ? entity : THROW_CCE(), $completion); }; function PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda$lambda$lambda(_result)); } function PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_personPictureUid = $_result.b5o('personPictureUid'); var _tmp_personPictureLct = $_result.b5o('personPictureLct'); var _tmp_personPictureUri = $_result.b10('personPictureUri'); var _tmp_personPictureThumbnailUri = $_result.b10('personPictureThumbnailUri'); var _tmp_fileSize = $_result.a5o('fileSize'); var _tmp_personPictureActive = $_result.m67('personPictureActive'); // Inline function 'kotlin.apply' call var this_0 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonPictureDao_JdbcImpl.findByPersonUidAsync....' call this_0.y97_1 = _tmp_personPictureUid; this_0.z97_1 = _tmp_personPictureLct; this_0.a98_1 = _tmp_personPictureUri; this_0.b98_1 = _tmp_personPictureThumbnailUri; this_0.c98_1 = _tmp_fileSize; this_0.d98_1 = _tmp_personPictureActive; return this_0; }; } function PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.ngk_1); } protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO PersonPicture (personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1).sgk = function (stmt, entity) { if (entity.y97_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.y97_1); } stmt.x5i(2, entity.z97_1); stmt.a5j(3, entity.a98_1); stmt.a5j(4, entity.b98_1); stmt.w5i(5, entity.c98_1); stmt.k5i(6, entity.d98_1); }; protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1).r5g = function (stmt, entity) { return this.sgk(stmt, entity instanceof PersonPicture ? entity : THROW_CCE()); }; function PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.ngk_1); } protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1).w5h = function (returnsId) { return 'INSERT INTO PersonPicture (personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1).sgk = function (stmt, entity) { if (entity.y97_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.y97_1); } stmt.x5i(2, entity.z97_1); stmt.a5j(3, entity.a98_1); stmt.a5j(4, entity.b98_1); stmt.w5i(5, entity.c98_1); stmt.k5i(6, entity.d98_1); }; protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1).r5g = function (stmt, entity) { return this.sgk(stmt, entity instanceof PersonPicture ? entity : THROW_CCE()); }; function PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda($personUid, resultContinuation) { this.dgl_1 = $personUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda).fgl = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda).le = function (p1, $completion) { return this.fgl((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.egl_1.x5i(1, this.dgl_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.egl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda).o5g = function (_stmt, completion) { var i = new PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda(this.dgl_1, completion); i.egl_1 = _stmt; return i; }; function PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda_0($personUid, resultContinuation) { var i = new PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda($personUid, resultContinuation); var l = function (_stmt, $completion) { return i.fgl(_stmt, $completion); }; l.$arity = 1; return l; } function PersonPictureDao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation) { this.ogl_1 = $uri; this.pgl_1 = $thumbnailUri; this.qgl_1 = $time; this.rgl_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_JdbcImpl$updateUri$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonPictureDao_JdbcImpl$updateUri$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonPictureDao_JdbcImpl$updateUri$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.sgl_1.a5j(1, this.ogl_1); this.sgl_1.a5j(2, this.pgl_1); this.sgl_1.x5i(3, this.qgl_1); this.sgl_1.x5i(4, this.rgl_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.sgl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonPictureDao_JdbcImpl$updateUri$slambda).o5g = function (_stmt, completion) { var i = new PersonPictureDao_JdbcImpl$updateUri$slambda(this.ogl_1, this.pgl_1, this.qgl_1, this.rgl_1, completion); i.sgl_1 = _stmt; return i; }; function PersonPictureDao_JdbcImpl$updateUri$slambda_0($uri, $thumbnailUri, $time, $uid, resultContinuation) { var i = new PersonPictureDao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda($entityUid, $transferJobItemUid, resultContinuation) { this.bgm_1 = $entityUid; this.cgm_1 = $transferJobItemUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.dgm_1.x5i(1, this.bgm_1); this.dgm_1.w5i(2, this.cgm_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.dgm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda).o5g = function (_stmt, completion) { var i = new PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda(this.bgm_1, this.cgm_1, completion); i.dgm_1 = _stmt; return i; }; function PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda_0($entityUid, $transferJobItemUid, resultContinuation) { var i = new PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda($entityUid, $transferJobItemUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$355(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.mgm_1 = _this__u8e3s4; this.ngm_1 = entity; } protoOf($insertAsyncCOROUTINE$355).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.mgm_1.pgk_1.y5h(this.ngm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateUriCOROUTINE$358(_this__u8e3s4, uid, uri, thumbnailUri, time, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.wgm_1 = _this__u8e3s4; this.xgm_1 = uid; this.ygm_1 = uri; this.zgm_1 = thumbnailUri; this.agn_1 = time; } protoOf($updateUriCOROUTINE$358).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE PersonPicture\n SET personPictureUri = ?,\n personPictureThumbnailUri = ?,\n personPictureLct = CAST(? AS BIGINT)\n WHERE personPictureUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE PersonPicture\n SET personPictureUri = ?,\n personPictureThumbnailUri = ?,\n personPictureLct = ?\n WHERE personPictureUid = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this.wgm_1.ngk_1, tmp_0, PersonPictureDao_JdbcImpl$updateUri$slambda_0(this.ygm_1, this.zgm_1, this.agn_1, this.xgm_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateTransferJobItemEtagCOROUTINE$359(_this__u8e3s4, entityUid, transferJobItemUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.jgn_1 = _this__u8e3s4; this.kgn_1 = entityUid; this.lgn_1 = transferJobItemUid; } protoOf($updateTransferJobItemEtagCOROUTINE$359).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE TransferJobItem\n SET tjiEntityEtag = \n (SELECT personPictureLct\n FROM PersonPicture\n WHERE personPictureUid = CAST(? AS BIGINT))\n WHERE tjiUid = ? \n ', VOID, VOID, VOID, '\n UPDATE TransferJobItem\n SET tjiEntityEtag = \n (SELECT personPictureLct\n FROM PersonPicture\n WHERE personPictureUid = ?)\n WHERE tjiUid = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this.jgn_1.ngk_1, tmp_0, PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda_0(this.kgn_1, this.lgn_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PersonPictureDao_JdbcImpl(_db) { PersonPictureDao.call(this); this.ngk_1 = _db; var tmp = this; tmp.ogk_1 = new PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1(this); var tmp_0 = this; tmp_0.pgk_1 = new PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1(this); } protoOf(PersonPictureDao_JdbcImpl).kgj = function (personPicture, $completion) { return this.ogk_1.x5h(personPicture, $completion); }; protoOf(PersonPictureDao_JdbcImpl).mgk = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$355(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonPictureDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.mgk(entity instanceof PersonPicture ? entity : THROW_CCE(), $completion); }; protoOf(PersonPictureDao_JdbcImpl).lgj = function (personUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT * \n FROM PersonPicture \n WHERE personPictureUid = CAST(? AS BIGINT)\n AND CAST(personPictureActive AS INTEGER) = 1\n ', VOID, VOID, VOID, '\n SELECT * \n FROM PersonPicture \n WHERE personPictureUid = ?\n AND CAST(personPictureActive AS INTEGER) = 1\n \n', true); return prepareAndUseStatementAsync(this.ngk_1, tmp, PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda_0(personUid, null), $completion); }; protoOf(PersonPictureDao_JdbcImpl).ib6 = function (uid, uri, thumbnailUri, time, $completion) { var tmp = new $updateUriCOROUTINE$358(this, uid, uri, thumbnailUri, time, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonPictureDao_JdbcImpl).wbd = function (entityUid, transferJobItemUid, $completion) { var tmp = new $updateTransferJobItemEtagCOROUTINE$359(this, entityUid, transferJobItemUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function PersonPictureDao_Repo$upsert$slambda(this$0, $personPicture, resultContinuation) { this.ugn_1 = this$0; this.vgn_1 = $personPicture; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_Repo$upsert$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonPictureDao_Repo$upsert$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(PersonPictureDao_Repo$upsert$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.ugn_1.ygn_1.kgj(this.vgn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonPictureDao_Repo$upsert$slambda).q79 = function (completion) { return new PersonPictureDao_Repo$upsert$slambda(this.ugn_1, this.vgn_1, completion); }; function PersonPictureDao_Repo$upsert$slambda_0(this$0, $personPicture, resultContinuation) { var i = new PersonPictureDao_Repo$upsert$slambda(this$0, $personPicture, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function PersonPictureDao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) { this.lgo_1 = this$0; this.mgo_1 = $uid; this.ngo_1 = $uri; this.ogo_1 = $thumbnailUri; this.pgo_1 = $time; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_Repo$updateUri$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonPictureDao_Repo$updateUri$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(PersonPictureDao_Repo$updateUri$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.lgo_1.ygn_1.ib6(this.mgo_1, this.ngo_1, this.ogo_1, this.pgo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonPictureDao_Repo$updateUri$slambda).q79 = function (completion) { return new PersonPictureDao_Repo$updateUri$slambda(this.lgo_1, this.mgo_1, this.ngo_1, this.ogo_1, this.pgo_1, completion); }; function PersonPictureDao_Repo$updateUri$slambda_0(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) { var i = new PersonPictureDao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function PersonPictureDao_Repo$updateTransferJobItemEtag$slambda(this$0, $entityUid, $transferJobItemUid, resultContinuation) { this.ygo_1 = this$0; this.zgo_1 = $entityUid; this.agp_1 = $transferJobItemUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_Repo$updateTransferJobItemEtag$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonPictureDao_Repo$updateTransferJobItemEtag$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(PersonPictureDao_Repo$updateTransferJobItemEtag$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.ygo_1.ygn_1.wbd(this.zgo_1, this.agp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonPictureDao_Repo$updateTransferJobItemEtag$slambda).q79 = function (completion) { return new PersonPictureDao_Repo$updateTransferJobItemEtag$slambda(this.ygo_1, this.zgo_1, this.agp_1, completion); }; function PersonPictureDao_Repo$updateTransferJobItemEtag$slambda_0(this$0, $entityUid, $transferJobItemUid, resultContinuation) { var i = new PersonPictureDao_Repo$updateTransferJobItemEtag$slambda(this$0, $entityUid, $transferJobItemUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function PersonPictureDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.jgp_1 = this$0; this.kgp_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonPictureDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(PersonPictureDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.jgp_1.ygn_1.insertAsync(this.kgp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(PersonPictureDao_Repo$insertAsync$slambda).q79 = function (completion) { return new PersonPictureDao_Repo$insertAsync$slambda(this.jgp_1, this.kgp_1, completion); }; function PersonPictureDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new PersonPictureDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $findByPersonUidAsyncCOROUTINE$360(_this__u8e3s4, personUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.tgp_1 = _this__u8e3s4; this.ugp_1 = personUid; } protoOf($findByPersonUidAsyncCOROUTINE$360).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.tgp_1.ygn_1.lgj(this.ugp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$361(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dgq_1 = _this__u8e3s4; this.egq_1 = entity; } protoOf($insertAsyncCOROUTINE$361).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.dgq_1.xgn_1, 'PersonPicture', PersonPictureDao_Repo$insertAsync$slambda_0(this.dgq_1, this.egq_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PersonPictureDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { PersonPictureDao.call(this); this.wgn_1 = _db; this.xgn_1 = _repo; this.ygn_1 = _dao; this.zgn_1 = _httpClient; this.ago_1 = _clientId; this.bgo_1 = _endpoint; this.cgo_1 = new RepoDaoFlowHelper(this.xgn_1); } protoOf(PersonPictureDao_Repo).kgj = function (personPicture, $completion) { return withRepoChangeMonitorAsync(this.xgn_1, 'PersonPicture', PersonPictureDao_Repo$upsert$slambda_0(this, personPicture, null), $completion); }; protoOf(PersonPictureDao_Repo).lgj = function (personUid, $completion) { var tmp = new $findByPersonUidAsyncCOROUTINE$360(this, personUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonPictureDao_Repo).ib6 = function (uid, uri, thumbnailUri, time, $completion) { return withRepoChangeMonitorAsync(this.xgn_1, 'PersonPicture', PersonPictureDao_Repo$updateUri$slambda_0(this, uid, uri, thumbnailUri, time, null), $completion); }; protoOf(PersonPictureDao_Repo).wbd = function (entityUid, transferJobItemUid, $completion) { return withRepoChangeMonitorAsync(this.xgn_1, 'TransferJobItem', PersonPictureDao_Repo$updateTransferJobItemEtag$slambda_0(this, entityUid, transferJobItemUid, null), $completion); }; protoOf(PersonPictureDao_Repo).mgk = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$361(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(PersonPictureDao_Repo).insertAsync = function (entity, $completion) { return this.mgk(entity instanceof PersonPicture ? entity : THROW_CCE(), $completion); }; function ReportDao() { } function $insertAsyncCOROUTINE$362(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.sgq_1 = _this__u8e3s4; this.tgq_1 = entity; } protoOf($insertAsyncCOROUTINE$362).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.ugq_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.sgq_1.wgq_1)); if (this.tgq_1.ygq_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.ugq_1.r63(101, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.vgq_1 = suspendResult; this.tgq_1.ygq_1 = this.vgq_1; this.ld_1 = 2; continue $sm; case 2: this.tgq_1.cgr_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.sgq_1.xgq_1.insertAsync(this.tgq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.tgq_1.ygq_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ReportDao_DoorWrapper(_db, _dao) { ReportDao.call(this); this.wgq_1 = _db; this.xgq_1 = _dao; } protoOf(ReportDao_DoorWrapper).fgq = function (reportUid, $completion) { return this.xgq_1.fgq(reportUid, $completion); }; protoOf(ReportDao_DoorWrapper).ggq = function () { return this.xgq_1.ggq(); }; protoOf(ReportDao_DoorWrapper).hgq = function (entityUid, $completion) { return this.xgq_1.hgq(entityUid, $completion); }; protoOf(ReportDao_DoorWrapper).igq = function (entity, $completion) { entity.cgr_1 = systemTimeInMillis(); return this.xgq_1.igq(entity, $completion); }; protoOf(ReportDao_DoorWrapper).jgq = function (uid) { return this.xgq_1.jgq(uid); }; protoOf(ReportDao_DoorWrapper).egr = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$362(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ReportDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.egr(entity instanceof Report ? entity : THROW_CCE(), $completion); }; function ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda$lambda$lambda(_result)); } function ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_reportUid = $_result.b5o('reportUid'); var _tmp_reportTitle = $_result.b10('reportTitle'); var _tmp_reportOptions = $_result.b10('reportOptions'); var _tmp_reportIsTemplate = $_result.m67('reportIsTemplate'); var _tmp_reportLastModTime = $_result.b5o('reportLastModTime'); var _tmp_reportOwnerPersonUid = $_result.b5o('reportOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Report(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.ygq_1 = _tmp_reportUid; this_0.zgq_1 = _tmp_reportTitle; this_0.agr_1 = _tmp_reportOptions; this_0.bgr_1 = _tmp_reportIsTemplate; this_0.cgr_1 = _tmp_reportLastModTime; this_0.dgr_1 = _tmp_reportOwnerPersonUid; return this_0; }; } function ReportDao_JdbcImpl$findAllReports$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ReportDao_JdbcImpl$findAllReports$o$countRows$slambda$lambda$lambda(_result)); } function ReportDao_JdbcImpl$findAllReports$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda($_limit, $_offset, resultContinuation) { this.ngr_1 = $_limit; this.ogr_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda).qgr = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda).le = function (p1, $completion) { return this.qgr((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.pgr_1.w5i(1, this.ngr_1); this.pgr_1.w5i(2, this.ogr_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.pgr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda(this.ngr_1, this.ogr_1, completion); i.pgr_1 = _stmt; return i; }; function ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda_0($_limit, $_offset, resultContinuation) { var i = new ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda($_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.qgr(_stmt, $completion); }; l.$arity = 1; return l; } function ReportDao_JdbcImpl$findAllReports$o$countRows$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_JdbcImpl$findAllReports$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ReportDao_JdbcImpl$findAllReports$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportDao_JdbcImpl$findAllReports$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.zgr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ReportDao_JdbcImpl$findAllReports$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ReportDao_JdbcImpl$findAllReports$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new ReportDao_JdbcImpl$findAllReports$o$countRows$slambda(completion); i.zgr_1 = _stmt; return i; }; function ReportDao_JdbcImpl$findAllReports$o$countRows$slambda_0(resultContinuation) { var i = new ReportDao_JdbcImpl$findAllReports$o$countRows$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function ReportDao_JdbcImpl$findByUid$slambda$lambda(_result) { return mapNextRow(_result, null, ReportDao_JdbcImpl$findByUid$slambda$lambda$lambda(_result)); } function ReportDao_JdbcImpl$findByUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_reportUid = $_result.b5o('reportUid'); var _tmp_reportTitle = $_result.b10('reportTitle'); var _tmp_reportOptions = $_result.b10('reportOptions'); var _tmp_reportIsTemplate = $_result.m67('reportIsTemplate'); var _tmp_reportLastModTime = $_result.b5o('reportLastModTime'); var _tmp_reportOwnerPersonUid = $_result.b5o('reportOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Report(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ReportDao_JdbcImpl.findByUid....' call this_0.ygq_1 = _tmp_reportUid; this_0.zgq_1 = _tmp_reportTitle; this_0.agr_1 = _tmp_reportOptions; this_0.bgr_1 = _tmp_reportIsTemplate; this_0.cgr_1 = _tmp_reportLastModTime; this_0.dgr_1 = _tmp_reportOwnerPersonUid; return this_0; }; } function ReportDao_JdbcImpl$findByUidLive$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ReportDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda(_result)); } function ReportDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_reportUid = $_result.b5o('reportUid'); var _tmp_reportTitle = $_result.b10('reportTitle'); var _tmp_reportOptions = $_result.b10('reportOptions'); var _tmp_reportIsTemplate = $_result.m67('reportIsTemplate'); var _tmp_reportLastModTime = $_result.b5o('reportLastModTime'); var _tmp_reportOwnerPersonUid = $_result.b5o('reportOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Report(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ReportDao_JdbcImpl.findByUidLive.....' call this_0.ygq_1 = _tmp_reportUid; this_0.zgq_1 = _tmp_reportTitle; this_0.agr_1 = _tmp_reportOptions; this_0.bgr_1 = _tmp_reportIsTemplate; this_0.cgr_1 = _tmp_reportLastModTime; this_0.dgr_1 = _tmp_reportOwnerPersonUid; return this_0; }; } function ReportDao_JdbcImpl$findByUidLive$slambda$slambda($uid, resultContinuation) { this.igs_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_JdbcImpl$findByUidLive$slambda$slambda).kgs = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ReportDao_JdbcImpl$findByUidLive$slambda$slambda).le = function (p1, $completion) { return this.kgs((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportDao_JdbcImpl$findByUidLive$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.jgs_1.x5i(1, this.igs_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.jgs_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ReportDao_JdbcImpl$findByUidLive$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ReportDao_JdbcImpl$findByUidLive$slambda$slambda).o5g = function (_stmt, completion) { var i = new ReportDao_JdbcImpl$findByUidLive$slambda$slambda(this.igs_1, completion); i.jgs_1 = _stmt; return i; }; function ReportDao_JdbcImpl$findByUidLive$slambda$slambda_0($uid, resultContinuation) { var i = new ReportDao_JdbcImpl$findByUidLive$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.kgs(_stmt, $completion); }; l.$arity = 1; return l; } function ReportDao_JdbcImpl$_insertAdapterReport_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.lgs_1); } protoOf(ReportDao_JdbcImpl$_insertAdapterReport_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO Report (reportUid, reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportOwnerPersonUid) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(ReportDao_JdbcImpl$_insertAdapterReport_upsert$1).qgs = function (stmt, entity) { if (entity.ygq_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.ygq_1); } stmt.a5j(2, entity.zgq_1); stmt.a5j(3, entity.agr_1); stmt.k5i(4, entity.bgr_1); stmt.x5i(5, entity.cgr_1); stmt.x5i(6, entity.dgr_1); }; protoOf(ReportDao_JdbcImpl$_insertAdapterReport_upsert$1).r5g = function (stmt, entity) { return this.qgs(stmt, entity instanceof Report ? entity : THROW_CCE()); }; function ReportDao_JdbcImpl$_insertAdapterReport_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.lgs_1); } protoOf(ReportDao_JdbcImpl$_insertAdapterReport_abort$1).w5h = function (returnsId) { return 'INSERT INTO Report (reportUid, reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportOwnerPersonUid) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(ReportDao_JdbcImpl$_insertAdapterReport_abort$1).qgs = function (stmt, entity) { if (entity.ygq_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.ygq_1); } stmt.a5j(2, entity.zgq_1); stmt.a5j(3, entity.agr_1); stmt.k5i(4, entity.bgr_1); stmt.x5i(5, entity.cgr_1); stmt.x5i(6, entity.dgr_1); }; protoOf(ReportDao_JdbcImpl$_insertAdapterReport_abort$1).r5g = function (stmt, entity) { return this.qgs(stmt, entity instanceof Report ? entity : THROW_CCE()); }; function ReportDao_JdbcImpl$updateAsync$slambda($entity, resultContinuation) { this.bgt_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_JdbcImpl$updateAsync$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ReportDao_JdbcImpl$updateAsync$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportDao_JdbcImpl$updateAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.cgt_1.a5j(1, this.bgt_1.zgq_1); this.cgt_1.a5j(2, this.bgt_1.agr_1); this.cgt_1.k5i(3, this.bgt_1.bgr_1); this.cgt_1.x5i(4, this.bgt_1.cgr_1); this.cgt_1.x5i(5, this.bgt_1.dgr_1); this.cgt_1.x5i(6, this.bgt_1.ygq_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.cgt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ReportDao_JdbcImpl$updateAsync$slambda).o5g = function (_stmt, completion) { var i = new ReportDao_JdbcImpl$updateAsync$slambda(this.bgt_1, completion); i.cgt_1 = _stmt; return i; }; function ReportDao_JdbcImpl$updateAsync$slambda_0($entity, resultContinuation) { var i = new ReportDao_JdbcImpl$updateAsync$slambda($entity, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function ReportDao_JdbcImpl$deleteReportByUid$slambda($reportUid, resultContinuation) { this.lgt_1 = $reportUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_JdbcImpl$deleteReportByUid$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ReportDao_JdbcImpl$deleteReportByUid$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportDao_JdbcImpl$deleteReportByUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.mgt_1.x5i(1, this.lgt_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.mgt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ReportDao_JdbcImpl$deleteReportByUid$slambda).o5g = function (_stmt, completion) { var i = new ReportDao_JdbcImpl$deleteReportByUid$slambda(this.lgt_1, completion); i.mgt_1 = _stmt; return i; }; function ReportDao_JdbcImpl$deleteReportByUid$slambda_0($reportUid, resultContinuation) { var i = new ReportDao_JdbcImpl$deleteReportByUid$slambda($reportUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function ReportDao_JdbcImpl$findAllReports$1(this$0) { this.tgt_1 = this$0; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Report']; DoorLimitOffsetPagingSource.call(this, this$0.lgs_1, tmp$ret$2); } protoOf(ReportDao_JdbcImpl$findAllReports$1).ugt = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (SELECT * FROM Report ORDER BY reportTitle ASC) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.tgt_1.lgs_1, tmp, ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda_0(_limit, _offset, null), $completion); }; protoOf(ReportDao_JdbcImpl$findAllReports$1).z5q = function (_limit, _offset, $completion) { return this.ugt(_limit, _offset, $completion); }; protoOf(ReportDao_JdbcImpl$findAllReports$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (SELECT * FROM Report ORDER BY reportTitle ASC) AS _PagingCount', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.tgt_1.lgs_1, tmp, ReportDao_JdbcImpl$findAllReports$o$countRows$slambda_0(null), $completion); }; function ReportDao_JdbcImpl$findByUid$slambda($entityUid, resultContinuation) { this.dgu_1 = $entityUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_JdbcImpl$findByUid$slambda).kgs = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ReportDao_JdbcImpl$findByUid$slambda).le = function (p1, $completion) { return this.kgs((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportDao_JdbcImpl$findByUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.egu_1.x5i(1, this.dgu_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.egu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ReportDao_JdbcImpl$findByUid$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ReportDao_JdbcImpl$findByUid$slambda).o5g = function (_stmt, completion) { var i = new ReportDao_JdbcImpl$findByUid$slambda(this.dgu_1, completion); i.egu_1 = _stmt; return i; }; function ReportDao_JdbcImpl$findByUid$slambda_0($entityUid, resultContinuation) { var i = new ReportDao_JdbcImpl$findByUid$slambda($entityUid, resultContinuation); var l = function (_stmt, $completion) { return i.kgs(_stmt, $completion); }; l.$arity = 1; return l; } function ReportDao_JdbcImpl$findByUidLive$slambda(this$0, $uid, resultContinuation) { this.ngu_1 = this$0; this.ogu_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_JdbcImpl$findByUidLive$slambda).pgu = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ReportDao_JdbcImpl$findByUidLive$slambda).r79 = function ($completion) { return this.pgu($completion); }; protoOf(ReportDao_JdbcImpl$findByUidLive$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('SELECT * FROM Report WHERE reportUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM Report WHERE reportUid = ?\n', true); suspendResult = prepareAndUseStatementAsync(this.ngu_1.lgs_1, tmp_0, ReportDao_JdbcImpl$findByUidLive$slambda$slambda_0(this.ogu_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ReportDao_JdbcImpl$findByUidLive$slambda).q79 = function (completion) { return new ReportDao_JdbcImpl$findByUidLive$slambda(this.ngu_1, this.ogu_1, completion); }; function ReportDao_JdbcImpl$findByUidLive$slambda_0(this$0, $uid, resultContinuation) { var i = new ReportDao_JdbcImpl$findByUidLive$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.pgu($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$363(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ygu_1 = _this__u8e3s4; this.zgu_1 = entity; } protoOf($insertAsyncCOROUTINE$363).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.ygu_1.ngs_1.y5h(this.zgu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateAsyncCOROUTINE$364(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.igv_1 = _this__u8e3s4; this.jgv_1 = entity; } protoOf($updateAsyncCOROUTINE$364).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.kgv_1 = 'UPDATE Report SET reportTitle = ?, reportOptions = ?, reportIsTemplate = ?, reportLastModTime = ?, reportOwnerPersonUid = ? WHERE reportUid = ?'; this.ld_1 = 1; suspendResult = prepareAndUseStatementAsync_0(this.igv_1.lgs_1, this.kgv_1, VOID, ReportDao_JdbcImpl$updateAsync$slambda_0(this.jgv_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $deleteReportByUidCOROUTINE$365(_this__u8e3s4, reportUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.tgv_1 = _this__u8e3s4; this.ugv_1 = reportUid; } protoOf($deleteReportByUidCOROUTINE$365).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('DELETE FROM Report WHERE reportUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'DELETE FROM Report WHERE reportUid = ?\n', false); suspendResult = prepareAndUseStatementAsync(this.tgv_1.lgs_1, tmp_0, ReportDao_JdbcImpl$deleteReportByUid$slambda_0(this.ugv_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ReportDao_JdbcImpl(_db) { ReportDao.call(this); this.lgs_1 = _db; var tmp = this; tmp.mgs_1 = new ReportDao_JdbcImpl$_insertAdapterReport_upsert$1(this); var tmp_0 = this; tmp_0.ngs_1 = new ReportDao_JdbcImpl$_insertAdapterReport_abort$1(this); } protoOf(ReportDao_JdbcImpl).egr = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$363(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ReportDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.egr(entity instanceof Report ? entity : THROW_CCE(), $completion); }; protoOf(ReportDao_JdbcImpl).igq = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$364(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ReportDao_JdbcImpl).fgq = function (reportUid, $completion) { var tmp = new $deleteReportByUidCOROUTINE$365(this, reportUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ReportDao_JdbcImpl).ggq = function () { return new ReportDao_JdbcImpl$findAllReports$1(this); }; protoOf(ReportDao_JdbcImpl).hgq = function (entityUid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM Report WHERE reportUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM Report WHERE reportUid = ?\n', true); return prepareAndUseStatementAsync(this.lgs_1, tmp, ReportDao_JdbcImpl$findByUid$slambda_0(entityUid, null), $completion); }; protoOf(ReportDao_JdbcImpl).jgq = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Report']; return doorFlow(this.lgs_1, tmp, ReportDao_JdbcImpl$findByUidLive$slambda_0(this, uid, null)); }; function ReportDao_Repo$findAllReports$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ReportDao_Repo$deleteReportByUid$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ReportDao_Repo$findAllReports$slambda(this$0, resultContinuation) { this.dgw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_Repo$findAllReports$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ReportDao_Repo$findAllReports$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(ReportDao_Repo$findAllReports$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.ggw_1 = this.dgw_1.pgw_1; var tmp_1 = this; tmp_1.hgw_1 = 'ReportDao/findAllReports'; this.md_1 = 4; var tmp_2 = this; tmp_2.igw_1 = this.dgw_1.rgw_1; var tmp_3 = this; tmp_3.jgw_1 = this.igw_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.dgw_1.pgw_1.t39(), 'ReportDao/findAllReports'); doorNodeIdHeader(this_0, this.dgw_1.pgw_1); header(this_0, 'cache-control', 'no-store'); pagingSourceLoadParameters(this_0, this.dgw_1.pgw_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.egw_1); tmp_4.kgw_1 = this_0; this.kgw_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.lgw_1 = this.jgw_1; var tmp_6 = this; tmp_6.mgw_1 = this.kgw_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.mgw_1, this.lgw_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.ngw_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.dgw_1.ogw_1, this.ngw_1, this.dgw_1.pgw_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.fgw_1 = endOfPaginationReached(this.ngw_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', ReportDao_Repo$findAllReports$slambda$lambda(this.ggw_1, this.hgw_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.fgw_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(ReportDao_Repo$findAllReports$slambda).g87 = function (_pagingParams, completion) { var i = new ReportDao_Repo$findAllReports$slambda(this.dgw_1, completion); i.egw_1 = _pagingParams; return i; }; function ReportDao_Repo$findAllReports$slambda_0(this$0, resultContinuation) { var i = new ReportDao_Repo$findAllReports$slambda(this$0, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function ReportDao_Repo$findByUid$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ReportDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) { this.cgx_1 = this$0; this.dgx_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_Repo$updateAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ReportDao_Repo$updateAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ReportDao_Repo$updateAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.cgx_1.qgw_1.igq(this.dgx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ReportDao_Repo$updateAsync$slambda).q79 = function (completion) { return new ReportDao_Repo$updateAsync$slambda(this.cgx_1, this.dgx_1, completion); }; function ReportDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ReportDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ReportDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.mgx_1 = this$0; this.ngx_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ReportDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(ReportDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.mgx_1.qgw_1.insertAsync(this.ngx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ReportDao_Repo$insertAsync$slambda).q79 = function (completion) { return new ReportDao_Repo$insertAsync$slambda(this.mgx_1, this.ngx_1, completion); }; function ReportDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ReportDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $deleteReportByUidCOROUTINE$367(_this__u8e3s4, reportUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.wgx_1 = _this__u8e3s4; this.xgx_1 = reportUid; } protoOf($deleteReportByUidCOROUTINE$367).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.ygx_1 = this.wgx_1.pgw_1; var tmp_1 = this; tmp_1.zgx_1 = 'ReportDao/deleteReportByUid'; this.md_1 = 3; this.agy_1 = this.wgx_1.pgw_1.t39().a67_1; this.bgy_1 = serializer_3(Unit_instance); var tmp_2 = this; tmp_2.cgy_1 = this.wgx_1.pgw_1.t39().z66_1; var tmp_3 = this; tmp_3.dgy_1 = this.cgy_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.wgx_1.pgw_1.t39(), 'ReportDao/deleteReportByUid'); doorNodeIdHeader(this_0, this.wgx_1.pgw_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'reportUid', this.wgx_1.pgw_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.xgx_1)); tmp_4.egy_1 = this_0; this.egy_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.fgy_1 = this.dgy_1; var tmp_6 = this; tmp_6.ggy_1 = this.egy_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.ggy_1, this.fgy_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hgy_1 = suspendResult; this.ld_1 = 2; suspendResult = bodyAsText(this.hgy_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.igy_1 = suspendResult; this.agy_1.c46(this.bgy_1, this.igy_1); this.md_1 = 6; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.jgy_1 = this.od_1; Napier_getInstance().e5f(this.jgy_1, 'DoorLog', ReportDao_Repo$deleteReportByUid$lambda(this.ygx_1, this.zgx_1)); this.ld_1 = 4; suspendResult = this.wgx_1.qgw_1.fgq(this.xgx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { throw this.od_1; } case 4: this.ld_1 = 5; continue $sm; case 5: this.md_1 = 6; return Unit_instance; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $findByUidCOROUTINE$368(_this__u8e3s4, entityUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.sgy_1 = _this__u8e3s4; this.tgy_1 = entityUid; } protoOf($findByUidCOROUTINE$368).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.ugy_1 = this.sgy_1.pgw_1; var tmp_1 = this; tmp_1.vgy_1 = 'ReportDao/findByUid'; this.md_1 = 3; var tmp_2 = this; tmp_2.wgy_1 = this.sgy_1.rgw_1; var tmp_3 = this; tmp_3.xgy_1 = this.wgy_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.sgy_1.pgw_1.t39(), 'ReportDao/findByUid'); doorNodeIdHeader(this_0, this.sgy_1.pgw_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'entityUid', this.sgy_1.pgw_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.tgy_1)); tmp_4.ygy_1 = this_0; this.ygy_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.zgy_1 = this.xgy_1; var tmp_6 = this; tmp_6.agz_1 = this.ygy_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.agz_1, this.zgy_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.bgz_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.sgy_1.ogw_1, this.bgz_1, this.sgy_1.pgw_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.cgz_1 = this.od_1; Napier_getInstance().e5f(this.cgz_1, 'DoorLog', ReportDao_Repo$findByUid$lambda(this.ugy_1, this.vgy_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.sgy_1.qgw_1.hgq(this.tgy_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$369(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.lgz_1 = _this__u8e3s4; this.mgz_1 = entity; } protoOf($insertAsyncCOROUTINE$369).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.lgz_1.pgw_1, 'Report', ReportDao_Repo$insertAsync$slambda_0(this.lgz_1, this.mgz_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ReportDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ReportDao.call(this); this.ogw_1 = _db; this.pgw_1 = _repo; this.qgw_1 = _dao; this.rgw_1 = _httpClient; this.sgw_1 = _clientId; this.tgw_1 = _endpoint; } protoOf(ReportDao_Repo).fgq = function (reportUid, $completion) { var tmp = new $deleteReportByUidCOROUTINE$367(this, reportUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ReportDao_Repo).ggq = function () { var tmp = this.qgw_1.ggq(); return new DoorRepositoryReplicatePullPagingSource(this.pgw_1, 'ReportDao/findAllReports', tmp, ReportDao_Repo$findAllReports$slambda_0(this, null)); }; protoOf(ReportDao_Repo).hgq = function (entityUid, $completion) { var tmp = new $findByUidCOROUTINE$368(this, entityUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ReportDao_Repo).igq = function (entity, $completion) { return withRepoChangeMonitorAsync(this.pgw_1, 'Report', ReportDao_Repo$updateAsync$slambda_0(this, entity, null), $completion); }; protoOf(ReportDao_Repo).jgq = function (uid) { var _result = this.qgw_1.jgq(uid); return _result; }; protoOf(ReportDao_Repo).egr = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$369(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ReportDao_Repo).insertAsync = function (entity, $completion) { return this.egr(entity instanceof Report ? entity : THROW_CCE(), $completion); }; function ReportQueryResultDao() { } function ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda$lambda(_result) { return mapRows(_result, ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda$lambda$lambda(_result)); } function ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda$lambda$lambda($_result) { return function (it) { var _tmp_rqrUid = $_result.b5o('rqrUid'); var _tmp_rqrReportUid = $_result.b5o('rqrReportUid'); var _tmp_rqrLastModified = $_result.b5o('rqrLastModified'); var _tmp_rqrLastValidated = $_result.b5o('rqrLastValidated'); var _tmp_rqrReportSeriesUid = $_result.a5o('rqrReportSeriesUid'); var _tmp_rqrXAxis = getStringNonNull($_result, 'rqrXAxis'); var _tmp_rqrYAxis = $_result.n67('rqrYAxis'); var _tmp_rqrSubgroup = getStringNonNull($_result, 'rqrSubgroup'); var _tmp_rqrTimeZone = getStringNonNull($_result, 'rqrTimeZone'); // Inline function 'kotlin.apply' call var this_0 = new ReportQueryResult(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ReportQueryResultDao_JdbcImpl.getAllByReportUidAndTimeZone....' call this_0.rgz_1 = _tmp_rqrUid; this_0.sgz_1 = _tmp_rqrReportUid; this_0.tgz_1 = _tmp_rqrLastModified; this_0.ugz_1 = _tmp_rqrLastValidated; this_0.vgz_1 = _tmp_rqrReportSeriesUid; this_0.wgz_1 = _tmp_rqrXAxis; this_0.xgz_1 = _tmp_rqrYAxis; this_0.ygz_1 = _tmp_rqrSubgroup; this_0.zgz_1 = _tmp_rqrTimeZone; return this_0; }; } function ReportQueryResultDao_JdbcImpl$isReportFresh$slambda$lambda(_result) { return mapNextRow(_result, false, ReportQueryResultDao_JdbcImpl$isReportFresh$slambda$lambda$lambda(_result)); } function ReportQueryResultDao_JdbcImpl$isReportFresh$slambda$lambda$lambda($_result) { return function (it) { return $_result.s75(1); }; } function ReportQueryResultDao_JdbcImpl$_insertAdapterReportQueryResult_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.ah0_1); } protoOf(ReportQueryResultDao_JdbcImpl$_insertAdapterReportQueryResult_abort$1).w5h = function (returnsId) { return 'INSERT INTO ReportQueryResult (rqrUid, rqrReportUid, rqrLastModified, rqrLastValidated, rqrReportSeriesUid, rqrXAxis, rqrYAxis, rqrSubgroup, rqrTimeZone) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ReportQueryResultDao_JdbcImpl$_insertAdapterReportQueryResult_abort$1).eh0 = function (stmt, entity) { if (entity.rgz_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.rgz_1); } stmt.x5i(2, entity.sgz_1); stmt.x5i(3, entity.tgz_1); stmt.x5i(4, entity.ugz_1); stmt.w5i(5, entity.vgz_1); stmt.a5j(6, entity.wgz_1); stmt.z5i(7, entity.xgz_1); stmt.a5j(8, entity.ygz_1); stmt.a5j(9, entity.zgz_1); }; protoOf(ReportQueryResultDao_JdbcImpl$_insertAdapterReportQueryResult_abort$1).r5g = function (stmt, entity) { return this.eh0(stmt, entity instanceof ReportQueryResult ? entity : THROW_CCE()); }; function ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda($reportUid, $timeZone, resultContinuation) { this.nh0_1 = $reportUid; this.oh0_1 = $timeZone; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ph0_1.x5i(1, this.nh0_1); this.ph0_1.a5j(2, this.oh0_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.ph0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda).o5g = function (_stmt, completion) { var i = new ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda(this.nh0_1, this.oh0_1, completion); i.ph0_1 = _stmt; return i; }; function ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda_0($reportUid, $timeZone, resultContinuation) { var i = new ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda($reportUid, $timeZone, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda($reportUid, $timeZone, resultContinuation) { this.yh0_1 = $reportUid; this.zh0_1 = $timeZone; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda).bh1 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda).le = function (p1, $completion) { return this.bh1((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ah1_1.x5i(1, this.yh0_1); this.ah1_1.a5j(2, this.zh0_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.ah1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda).o5g = function (_stmt, completion) { var i = new ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda(this.yh0_1, this.zh0_1, completion); i.ah1_1 = _stmt; return i; }; function ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda_0($reportUid, $timeZone, resultContinuation) { var i = new ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda($reportUid, $timeZone, resultContinuation); var l = function (_stmt, $completion) { return i.bh1(_stmt, $completion); }; l.$arity = 1; return l; } function ReportQueryResultDao_JdbcImpl$isReportFresh$slambda($reportUid, $timeZone, $freshThresholdTime, resultContinuation) { this.kh1_1 = $reportUid; this.lh1_1 = $timeZone; this.mh1_1 = $freshThresholdTime; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportQueryResultDao_JdbcImpl$isReportFresh$slambda).h9u = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ReportQueryResultDao_JdbcImpl$isReportFresh$slambda).le = function (p1, $completion) { return this.h9u((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportQueryResultDao_JdbcImpl$isReportFresh$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.nh1_1.x5i(1, this.kh1_1); this.nh1_1.a5j(2, this.lh1_1); this.nh1_1.x5i(3, this.mh1_1); this.nh1_1.x5i(4, this.kh1_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.nh1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ReportQueryResultDao_JdbcImpl$isReportFresh$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ReportQueryResultDao_JdbcImpl$isReportFresh$slambda).o5g = function (_stmt, completion) { var i = new ReportQueryResultDao_JdbcImpl$isReportFresh$slambda(this.kh1_1, this.lh1_1, this.mh1_1, completion); i.nh1_1 = _stmt; return i; }; function ReportQueryResultDao_JdbcImpl$isReportFresh$slambda_0($reportUid, $timeZone, $freshThresholdTime, resultContinuation) { var i = new ReportQueryResultDao_JdbcImpl$isReportFresh$slambda($reportUid, $timeZone, $freshThresholdTime, resultContinuation); var l = function (_stmt, $completion) { return i.h9u(_stmt, $completion); }; l.$arity = 1; return l; } function $deleteByReportUidAndTimeZoneCOROUTINE$370(_this__u8e3s4, reportUid, timeZone, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.wh1_1 = _this__u8e3s4; this.xh1_1 = reportUid; this.yh1_1 = timeZone; } protoOf($deleteByReportUidAndTimeZoneCOROUTINE$370).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n DELETE FROM ReportQueryResult\n WHERE rqrReportUid = CAST(? AS BIGINT)\n AND rqrTimeZone = ?\n ', VOID, VOID, VOID, '\n DELETE FROM ReportQueryResult\n WHERE rqrReportUid = ?\n AND rqrTimeZone = ?\n \n', false); suspendResult = prepareAndUseStatementAsync(this.wh1_1.ah0_1, tmp_0, ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda_0(this.xh1_1, this.yh1_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ReportQueryResultDao_JdbcImpl(_db) { ReportQueryResultDao.call(this); this.ah0_1 = _db; var tmp = this; tmp.bh0_1 = new ReportQueryResultDao_JdbcImpl$_insertAdapterReportQueryResult_abort$1(this); } protoOf(ReportQueryResultDao_JdbcImpl).ogz = function (results, $completion) { return this.bh0_1.b5i(results, $completion); }; protoOf(ReportQueryResultDao_JdbcImpl).ngz = function (reportUid, timeZone, $completion) { var tmp = new $deleteByReportUidAndTimeZoneCOROUTINE$370(this, reportUid, timeZone, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ReportQueryResultDao_JdbcImpl).pgz = function (reportUid, timeZone, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ReportQueryResult.*\n FROM ReportQueryResult\n WHERE ReportQueryResult.rqrReportUid = CAST(? AS BIGINT) \n AND ReportQueryResult.rqrTimeZone = ?\n ', VOID, VOID, VOID, '\n SELECT ReportQueryResult.*\n FROM ReportQueryResult\n WHERE ReportQueryResult.rqrReportUid = ? \n AND ReportQueryResult.rqrTimeZone = ?\n \n', true); return prepareAndUseStatementAsync(this.ah0_1, tmp, ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda_0(reportUid, timeZone, null), $completion); }; protoOf(ReportQueryResultDao_JdbcImpl).qgz = function (reportUid, timeZone, freshThresholdTime, $completion) { var tmp = new PreparedStatementConfig('\n SELECT COALESCE(\n (SELECT ReportQueryResult.rqrLastModified\n FROM ReportQueryResult\n WHERE ReportQueryResult.rqrReportUid = CAST(? AS BIGINT)\n AND ReportQueryResult.rqrTimeZone = ?\n LIMIT 1), 0) >= \n (SELECT MAX(CAST(? AS BIGINT), \n (SELECT COALESCE(\n (SELECT Report.reportLastModTime\n FROM Report\n WHERE Report.reportUid = CAST(? AS BIGINT)), 0))))\n ', VOID, VOID, VOID, '\n SELECT COALESCE(\n (SELECT ReportQueryResult.rqrLastModified\n FROM ReportQueryResult\n WHERE ReportQueryResult.rqrReportUid = ?\n AND ReportQueryResult.rqrTimeZone = ?\n LIMIT 1), 0) >= \n (SELECT GREATEST(?, \n (SELECT COALESCE(\n (SELECT Report.reportLastModTime\n FROM Report\n WHERE Report.reportUid = ?), 0))))\n ', true); return prepareAndUseStatementAsync(this.ah0_1, tmp, ReportQueryResultDao_JdbcImpl$isReportFresh$slambda_0(reportUid, timeZone, freshThresholdTime, null), $completion); }; function ScheduleDao() { } function $upsertListAsyncCOROUTINE$371(_this__u8e3s4, entities, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.kh2_1 = _this__u8e3s4; this.lh2_1 = entities; } protoOf($upsertListAsyncCOROUTINE$371).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; this.mh2_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.kh2_1.th2_1)); var tmp_0 = this; tmp_0.nh2_1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.oh2_1 = this.lh2_1.w(); var tmp_2 = this; tmp_2.ph2_1 = this.oh2_1; this.ld_1 = 1; continue $sm; case 1: if (!this.ph2_1.f()) { this.ld_1 = 4; continue $sm; } this.qh2_1 = this.ph2_1.e(); var tmp_3 = this; tmp_3.rh2_1 = this.qh2_1; if (this.rh2_1.vh2_1.equals(new Long(0, 0))) { this.ld_1 = 2; suspendResult = this.mh2_1.r63(21, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 3; continue $sm; } case 2: this.sh2_1 = suspendResult; this.rh2_1.vh2_1 = this.sh2_1; var this_0 = this.nh2_1; var element = this.sh2_1; this_0.j1(element); this.ld_1 = 3; continue $sm; case 3: this.rh2_1.gh3_1 = systemTimeInMillis(); this.ld_1 = 1; continue $sm; case 4: this.ld_1 = 5; suspendResult = this.kh2_1.uh2_1.zh1(this.lh2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_instance; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$372(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qh3_1 = _this__u8e3s4; this.rh3_1 = entity; } protoOf($insertAsyncCOROUTINE$372).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.sh3_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.qh3_1.th2_1)); if (this.rh3_1.vh2_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.sh3_1.r63(21, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.th3_1 = suspendResult; this.rh3_1.vh2_1 = this.th3_1; this.ld_1 = 2; continue $sm; case 2: this.rh3_1.gh3_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.qh3_1.uh2_1.insertAsync(this.rh3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.rh3_1.vh2_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ScheduleDao_DoorWrapper(_db, _dao) { ScheduleDao.call(this); this.th2_1 = _db; this.uh2_1 = _dao; } protoOf(ScheduleDao_DoorWrapper).zh1 = function (entities, $completion) { var tmp = new $upsertListAsyncCOROUTINE$371(this, entities, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ScheduleDao_DoorWrapper).ah2 = function (scheduleUid, active, changeTime, $completion) { return this.uh2_1.ah2(scheduleUid, active, changeTime, $completion); }; protoOf(ScheduleDao_DoorWrapper).bh2 = function (clazzUid, $completion) { return this.uh2_1.bh2(clazzUid, $completion); }; protoOf(ScheduleDao_DoorWrapper).uh3 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$372(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ScheduleDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.uh3(entity instanceof Schedule ? entity : THROW_CCE(), $completion); }; function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda$lambda(_result) { return mapRows(_result, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda$lambda$lambda(_result)); } function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_scheduleUid = $_result.b5o('scheduleUid'); var _tmp_sceduleStartTime = $_result.b5o('sceduleStartTime'); var _tmp_scheduleEndTime = $_result.b5o('scheduleEndTime'); var _tmp_scheduleDay = $_result.a5o('scheduleDay'); var _tmp_scheduleMonth = $_result.a5o('scheduleMonth'); var _tmp_scheduleFrequency = $_result.a5o('scheduleFrequency'); var _tmp_umCalendarUid = $_result.b5o('umCalendarUid'); var _tmp_scheduleClazzUid = $_result.b5o('scheduleClazzUid'); var _tmp_scheduleMasterChangeSeqNum = $_result.b5o('scheduleMasterChangeSeqNum'); var _tmp_scheduleLocalChangeSeqNum = $_result.b5o('scheduleLocalChangeSeqNum'); var _tmp_scheduleLastChangedBy = $_result.a5o('scheduleLastChangedBy'); var _tmp_scheduleLastChangedTime = $_result.b5o('scheduleLastChangedTime'); var _tmp_scheduleActive = $_result.m67('scheduleActive'); // Inline function 'kotlin.apply' call var this_0 = new Schedule(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ScheduleDao_JdbcImpl.findAllSchedulesByClazzUidAsync....' call this_0.vh2_1 = _tmp_scheduleUid; this_0.wh2_1 = _tmp_sceduleStartTime; this_0.xh2_1 = _tmp_scheduleEndTime; this_0.yh2_1 = _tmp_scheduleDay; this_0.zh2_1 = _tmp_scheduleMonth; this_0.ah3_1 = _tmp_scheduleFrequency; this_0.bh3_1 = _tmp_umCalendarUid; this_0.ch3_1 = _tmp_scheduleClazzUid; this_0.dh3_1 = _tmp_scheduleMasterChangeSeqNum; this_0.eh3_1 = _tmp_scheduleLocalChangeSeqNum; this_0.fh3_1 = _tmp_scheduleLastChangedBy; this_0.gh3_1 = _tmp_scheduleLastChangedTime; this_0.hh3_1 = _tmp_scheduleActive; return this_0; }; } function ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.vh3_1); } protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1).w5h = function (returnsId) { return 'INSERT INTO Schedule (scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1).ah4 = function (stmt, entity) { if (entity.vh2_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.vh2_1); } stmt.x5i(2, entity.wh2_1); stmt.x5i(3, entity.xh2_1); stmt.w5i(4, entity.yh2_1); stmt.w5i(5, entity.zh2_1); stmt.w5i(6, entity.ah3_1); stmt.x5i(7, entity.bh3_1); stmt.x5i(8, entity.ch3_1); stmt.x5i(9, entity.dh3_1); stmt.x5i(10, entity.eh3_1); stmt.w5i(11, entity.fh3_1); stmt.x5i(12, entity.gh3_1); stmt.k5i(13, entity.hh3_1); }; protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1).r5g = function (stmt, entity) { return this.ah4(stmt, entity instanceof Schedule ? entity : THROW_CCE()); }; function ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.vh3_1); } protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO Schedule (scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1).ah4 = function (stmt, entity) { if (entity.vh2_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.vh2_1); } stmt.x5i(2, entity.wh2_1); stmt.x5i(3, entity.xh2_1); stmt.w5i(4, entity.yh2_1); stmt.w5i(5, entity.zh2_1); stmt.w5i(6, entity.ah3_1); stmt.x5i(7, entity.bh3_1); stmt.x5i(8, entity.ch3_1); stmt.x5i(9, entity.dh3_1); stmt.x5i(10, entity.eh3_1); stmt.w5i(11, entity.fh3_1); stmt.x5i(12, entity.gh3_1); stmt.k5i(13, entity.hh3_1); }; protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1).r5g = function (stmt, entity) { return this.ah4(stmt, entity instanceof Schedule ? entity : THROW_CCE()); }; function ScheduleDao_JdbcImpl$updateScheduleActivated$slambda($active, $changeTime, $scheduleUid, resultContinuation) { this.lh4_1 = $active; this.mh4_1 = $changeTime; this.nh4_1 = $scheduleUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleDao_JdbcImpl$updateScheduleActivated$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ScheduleDao_JdbcImpl$updateScheduleActivated$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ScheduleDao_JdbcImpl$updateScheduleActivated$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.oh4_1.k5i(1, this.lh4_1); this.oh4_1.x5i(2, this.mh4_1); this.oh4_1.x5i(3, this.nh4_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.oh4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ScheduleDao_JdbcImpl$updateScheduleActivated$slambda).o5g = function (_stmt, completion) { var i = new ScheduleDao_JdbcImpl$updateScheduleActivated$slambda(this.lh4_1, this.mh4_1, this.nh4_1, completion); i.oh4_1 = _stmt; return i; }; function ScheduleDao_JdbcImpl$updateScheduleActivated$slambda_0($active, $changeTime, $scheduleUid, resultContinuation) { var i = new ScheduleDao_JdbcImpl$updateScheduleActivated$slambda($active, $changeTime, $scheduleUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda($clazzUid, resultContinuation) { this.xh4_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda).zh4 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda).le = function (p1, $completion) { return this.zh4((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.yh4_1.x5i(1, this.xh4_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.yh4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda).o5g = function (_stmt, completion) { var i = new ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda(this.xh4_1, completion); i.yh4_1 = _stmt; return i; }; function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda_0($clazzUid, resultContinuation) { var i = new ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.zh4(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$373(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ih5_1 = _this__u8e3s4; this.jh5_1 = entity; } protoOf($insertAsyncCOROUTINE$373).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.ih5_1.wh3_1.y5h(this.jh5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateScheduleActivatedCOROUTINE$375(_this__u8e3s4, scheduleUid, active, changeTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.sh5_1 = _this__u8e3s4; this.th5_1 = scheduleUid; this.uh5_1 = active; this.vh5_1 = changeTime; } protoOf($updateScheduleActivatedCOROUTINE$375).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE Schedule \n SET scheduleActive = ?,\n scheduleLastChangedTime = CAST(? AS BIGINT)\n WHERE scheduleUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n UPDATE Schedule \n SET scheduleActive = ?,\n scheduleLastChangedTime = ?\n WHERE scheduleUid = ?\n \n', false); suspendResult = prepareAndUseStatementAsync(this.sh5_1.vh3_1, tmp_0, ScheduleDao_JdbcImpl$updateScheduleActivated$slambda_0(this.uh5_1, this.vh5_1, this.th5_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ScheduleDao_JdbcImpl(_db) { ScheduleDao.call(this); this.vh3_1 = _db; var tmp = this; tmp.wh3_1 = new ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1(this); var tmp_0 = this; tmp_0.xh3_1 = new ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1(this); } protoOf(ScheduleDao_JdbcImpl).zh1 = function (entities, $completion) { return this.xh3_1.b5i(entities, $completion); }; protoOf(ScheduleDao_JdbcImpl).uh3 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$373(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ScheduleDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.uh3(entity instanceof Schedule ? entity : THROW_CCE(), $completion); }; protoOf(ScheduleDao_JdbcImpl).ah2 = function (scheduleUid, active, changeTime, $completion) { var tmp = new $updateScheduleActivatedCOROUTINE$375(this, scheduleUid, active, changeTime, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ScheduleDao_JdbcImpl).bh2 = function (clazzUid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM Schedule WHERE scheduleClazzUid = CAST(? AS BIGINT) AND CAST(scheduleActive AS INTEGER) = 1 ', VOID, VOID, VOID, 'SELECT * FROM Schedule WHERE scheduleClazzUid = ? AND CAST(scheduleActive AS INTEGER) = 1 \n', true); return prepareAndUseStatementAsync(this.vh3_1, tmp, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda_0(clazzUid, null), $completion); }; function ScheduleDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) { this.eh6_1 = this$0; this.fh6_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleDao_Repo$upsertListAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ScheduleDao_Repo$upsertListAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ScheduleDao_Repo$upsertListAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.eh6_1.ih6_1.zh1(this.fh6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ScheduleDao_Repo$upsertListAsync$slambda).q79 = function (completion) { return new ScheduleDao_Repo$upsertListAsync$slambda(this.eh6_1, this.fh6_1, completion); }; function ScheduleDao_Repo$upsertListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new ScheduleDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ScheduleDao_Repo$updateScheduleActivated$slambda(this$0, $scheduleUid, $active, $changeTime, resultContinuation) { this.uh6_1 = this$0; this.vh6_1 = $scheduleUid; this.wh6_1 = $active; this.xh6_1 = $changeTime; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleDao_Repo$updateScheduleActivated$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ScheduleDao_Repo$updateScheduleActivated$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ScheduleDao_Repo$updateScheduleActivated$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.uh6_1.ih6_1.ah2(this.vh6_1, this.wh6_1, this.xh6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ScheduleDao_Repo$updateScheduleActivated$slambda).q79 = function (completion) { return new ScheduleDao_Repo$updateScheduleActivated$slambda(this.uh6_1, this.vh6_1, this.wh6_1, this.xh6_1, completion); }; function ScheduleDao_Repo$updateScheduleActivated$slambda_0(this$0, $scheduleUid, $active, $changeTime, resultContinuation) { var i = new ScheduleDao_Repo$updateScheduleActivated$slambda(this$0, $scheduleUid, $active, $changeTime, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ScheduleDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.gh7_1 = this$0; this.hh7_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ScheduleDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(ScheduleDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.gh7_1.ih6_1.insertAsync(this.hh7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ScheduleDao_Repo$insertAsync$slambda).q79 = function (completion) { return new ScheduleDao_Repo$insertAsync$slambda(this.gh7_1, this.hh7_1, completion); }; function ScheduleDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ScheduleDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $findAllSchedulesByClazzUidAsyncCOROUTINE$378(_this__u8e3s4, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qh7_1 = _this__u8e3s4; this.rh7_1 = clazzUid; } protoOf($findAllSchedulesByClazzUidAsyncCOROUTINE$378).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.qh7_1.ih6_1.bh2(this.rh7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertAsyncCOROUTINE$379(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ah8_1 = _this__u8e3s4; this.bh8_1 = entity; } protoOf($insertAsyncCOROUTINE$379).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.ah8_1.hh6_1, 'Schedule', ScheduleDao_Repo$insertAsync$slambda_0(this.ah8_1, this.bh8_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ScheduleDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ScheduleDao.call(this); this.gh6_1 = _db; this.hh6_1 = _repo; this.ih6_1 = _dao; this.jh6_1 = _httpClient; this.kh6_1 = _clientId; this.lh6_1 = _endpoint; } protoOf(ScheduleDao_Repo).zh1 = function (entities, $completion) { return withRepoChangeMonitorAsync(this.hh6_1, 'Schedule', ScheduleDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion); }; protoOf(ScheduleDao_Repo).ah2 = function (scheduleUid, active, changeTime, $completion) { return withRepoChangeMonitorAsync(this.hh6_1, 'Schedule', ScheduleDao_Repo$updateScheduleActivated$slambda_0(this, scheduleUid, active, changeTime, null), $completion); }; protoOf(ScheduleDao_Repo).bh2 = function (clazzUid, $completion) { var tmp = new $findAllSchedulesByClazzUidAsyncCOROUTINE$378(this, clazzUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ScheduleDao_Repo).uh3 = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$379(this, entity, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ScheduleDao_Repo).insertAsync = function (entity, $completion) { return this.uh3(entity instanceof Schedule ? entity : THROW_CCE(), $completion); }; function ScopedGrantDao() { } function $insertAsyncCOROUTINE$380(_this__u8e3s4, scopedGrant, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.lh8_1 = _this__u8e3s4; this.mh8_1 = scopedGrant; } protoOf($insertAsyncCOROUTINE$380).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.nh8_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.lh8_1.ph8_1)); if (this.mh8_1.rh8_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.nh8_1.r63(48, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.oh8_1 = suspendResult; this.mh8_1.rh8_1 = this.oh8_1; this.ld_1 = 2; continue $sm; case 2: this.mh8_1.vh8_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.lh8_1.qh8_1.ch8(this.mh8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.mh8_1.rh8_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ScopedGrantDao_DoorWrapper(_db, _dao) { ScopedGrantDao.call(this); this.ph8_1 = _db; this.qh8_1 = _dao; } protoOf(ScopedGrantDao_DoorWrapper).ch8 = function (scopedGrant, $completion) { var tmp = new $insertAsyncCOROUTINE$380(this, scopedGrant, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.ch9_1); } protoOf(ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1).w5h = function (returnsId) { return 'INSERT INTO ScopedGrant (sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1).gh9 = function (stmt, entity) { if (entity.rh8_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.rh8_1); } stmt.x5i(2, entity.sh8_1); stmt.x5i(3, entity.th8_1); stmt.w5i(4, entity.uh8_1); stmt.x5i(5, entity.vh8_1); stmt.w5i(6, entity.wh8_1); stmt.x5i(7, entity.xh8_1); stmt.x5i(8, entity.yh8_1); stmt.x5i(9, entity.zh8_1); stmt.w5i(10, entity.ah9_1); stmt.w5i(11, entity.bh9_1); }; protoOf(ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1).r5g = function (stmt, entity) { return this.gh9(stmt, entity instanceof ScopedGrant ? entity : THROW_CCE()); }; function $insertAsyncCOROUTINE$382(_this__u8e3s4, scopedGrant, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ph9_1 = _this__u8e3s4; this.qh9_1 = scopedGrant; } protoOf($insertAsyncCOROUTINE$382).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.ph9_1.dh9_1.y5h(this.qh9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ScopedGrantDao_JdbcImpl(_db) { ScopedGrantDao.call(this); this.ch9_1 = _db; var tmp = this; tmp.dh9_1 = new ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1(this); } protoOf(ScopedGrantDao_JdbcImpl).ch8 = function (scopedGrant, $completion) { var tmp = new $insertAsyncCOROUTINE$382(this, scopedGrant, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function ScopedGrantDao_Repo$insertAsync$slambda(this$0, $scopedGrant, resultContinuation) { this.zh9_1 = this$0; this.aha_1 = $scopedGrant; CoroutineImpl.call(this, resultContinuation); } protoOf(ScopedGrantDao_Repo$insertAsync$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ScopedGrantDao_Repo$insertAsync$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(ScopedGrantDao_Repo$insertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.zh9_1.dha_1.ch8(this.aha_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ScopedGrantDao_Repo$insertAsync$slambda).q79 = function (completion) { return new ScopedGrantDao_Repo$insertAsync$slambda(this.zh9_1, this.aha_1, completion); }; function ScopedGrantDao_Repo$insertAsync$slambda_0(this$0, $scopedGrant, resultContinuation) { var i = new ScopedGrantDao_Repo$insertAsync$slambda(this$0, $scopedGrant, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$383(_this__u8e3s4, scopedGrant, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.pha_1 = _this__u8e3s4; this.qha_1 = scopedGrant; } protoOf($insertAsyncCOROUTINE$383).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.pha_1.cha_1, 'ScopedGrant', ScopedGrantDao_Repo$insertAsync$slambda_0(this.pha_1, this.qha_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ScopedGrantDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ScopedGrantDao.call(this); this.bha_1 = _db; this.cha_1 = _repo; this.dha_1 = _dao; this.eha_1 = _httpClient; this.fha_1 = _clientId; this.gha_1 = _endpoint; } protoOf(ScopedGrantDao_Repo).ch8 = function (scopedGrant, $completion) { var tmp = new $insertAsyncCOROUTINE$383(this, scopedGrant, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function SiteDao() { } function SiteDao_DoorWrapper(_db, _dao) { SiteDao.call(this); this.uha_1 = _db; this.vha_1 = _dao; } protoOf(SiteDao_DoorWrapper).rha = function ($completion) { return this.vha_1.rha($completion); }; protoOf(SiteDao_DoorWrapper).sha = function () { return this.vha_1.sha(); }; protoOf(SiteDao_DoorWrapper).tha = function (workspace, $completion) { workspace.ahb_1 = systemTimeInMillis(); return this.vha_1.tha(workspace, $completion); }; function SiteDao_JdbcImpl$getSiteAsync$slambda$lambda(_result) { return mapNextRow(_result, null, SiteDao_JdbcImpl$getSiteAsync$slambda$lambda$lambda(_result)); } function SiteDao_JdbcImpl$getSiteAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_siteUid = $_result.b5o('siteUid'); var _tmp_sitePcsn = $_result.b5o('sitePcsn'); var _tmp_siteLcsn = $_result.b5o('siteLcsn'); var _tmp_siteLcb = $_result.a5o('siteLcb'); var _tmp_siteLct = $_result.b5o('siteLct'); var _tmp_siteName = $_result.b10('siteName'); var _tmp_guestLogin = $_result.m67('guestLogin'); var _tmp_registrationAllowed = $_result.m67('registrationAllowed'); var _tmp_authSalt = $_result.b10('authSalt'); // Inline function 'kotlin.apply' call var this_0 = new Site(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SiteDao_JdbcImpl.getSiteAsync....' call this_0.wha_1 = _tmp_siteUid; this_0.xha_1 = _tmp_sitePcsn; this_0.yha_1 = _tmp_siteLcsn; this_0.zha_1 = _tmp_siteLcb; this_0.ahb_1 = _tmp_siteLct; this_0.bhb_1 = _tmp_siteName; this_0.chb_1 = _tmp_guestLogin; this_0.dhb_1 = _tmp_registrationAllowed; this_0.ehb_1 = _tmp_authSalt; return this_0; }; } function SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda$lambda$lambda(_result)); } function SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_siteUid = $_result.b5o('siteUid'); var _tmp_sitePcsn = $_result.b5o('sitePcsn'); var _tmp_siteLcsn = $_result.b5o('siteLcsn'); var _tmp_siteLcb = $_result.a5o('siteLcb'); var _tmp_siteLct = $_result.b5o('siteLct'); var _tmp_siteName = $_result.b10('siteName'); var _tmp_guestLogin = $_result.m67('guestLogin'); var _tmp_registrationAllowed = $_result.m67('registrationAllowed'); var _tmp_authSalt = $_result.b10('authSalt'); // Inline function 'kotlin.apply' call var this_0 = new Site(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SiteDao_JdbcImpl.getSiteAsFlow.....' call this_0.wha_1 = _tmp_siteUid; this_0.xha_1 = _tmp_sitePcsn; this_0.yha_1 = _tmp_siteLcsn; this_0.zha_1 = _tmp_siteLcb; this_0.ahb_1 = _tmp_siteLct; this_0.bhb_1 = _tmp_siteName; this_0.chb_1 = _tmp_guestLogin; this_0.dhb_1 = _tmp_registrationAllowed; this_0.ehb_1 = _tmp_authSalt; return this_0; }; } function SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda).ohb = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda).le = function (p1, $completion) { return this.ohb((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.nhb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda(completion); i.nhb_1 = _stmt; return i; }; function SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda_0(resultContinuation) { var i = new SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.ohb(_stmt, $completion); }; l.$arity = 1; return l; } function SiteDao_JdbcImpl$_insertAdapterSite_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.phb_1); } protoOf(SiteDao_JdbcImpl$_insertAdapterSite_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO Site (siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(SiteDao_JdbcImpl$_insertAdapterSite_upsert$1).uhb = function (stmt, entity) { if (entity.wha_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.wha_1); } stmt.x5i(2, entity.xha_1); stmt.x5i(3, entity.yha_1); stmt.w5i(4, entity.zha_1); stmt.x5i(5, entity.ahb_1); stmt.a5j(6, entity.bhb_1); stmt.k5i(7, entity.chb_1); stmt.k5i(8, entity.dhb_1); stmt.a5j(9, entity.ehb_1); }; protoOf(SiteDao_JdbcImpl$_insertAdapterSite_upsert$1).r5g = function (stmt, entity) { return this.uhb(stmt, entity instanceof Site ? entity : THROW_CCE()); }; function SiteDao_JdbcImpl$_insertAdapterSite_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.phb_1); } protoOf(SiteDao_JdbcImpl$_insertAdapterSite_abort$1).w5h = function (returnsId) { return 'INSERT INTO Site (siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(SiteDao_JdbcImpl$_insertAdapterSite_abort$1).uhb = function (stmt, entity) { if (entity.wha_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.wha_1); } stmt.x5i(2, entity.xha_1); stmt.x5i(3, entity.yha_1); stmt.w5i(4, entity.zha_1); stmt.x5i(5, entity.ahb_1); stmt.a5j(6, entity.bhb_1); stmt.k5i(7, entity.chb_1); stmt.k5i(8, entity.dhb_1); stmt.a5j(9, entity.ehb_1); }; protoOf(SiteDao_JdbcImpl$_insertAdapterSite_abort$1).r5g = function (stmt, entity) { return this.uhb(stmt, entity instanceof Site ? entity : THROW_CCE()); }; function SiteDao_JdbcImpl$updateAsync$slambda($workspace, resultContinuation) { this.fhc_1 = $workspace; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDao_JdbcImpl$updateAsync$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SiteDao_JdbcImpl$updateAsync$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteDao_JdbcImpl$updateAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ghc_1.x5i(1, this.fhc_1.xha_1); this.ghc_1.x5i(2, this.fhc_1.yha_1); this.ghc_1.w5i(3, this.fhc_1.zha_1); this.ghc_1.x5i(4, this.fhc_1.ahb_1); this.ghc_1.a5j(5, this.fhc_1.bhb_1); this.ghc_1.k5i(6, this.fhc_1.chb_1); this.ghc_1.k5i(7, this.fhc_1.dhb_1); this.ghc_1.a5j(8, this.fhc_1.ehb_1); this.ghc_1.x5i(9, this.fhc_1.wha_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.ghc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SiteDao_JdbcImpl$updateAsync$slambda).o5g = function (_stmt, completion) { var i = new SiteDao_JdbcImpl$updateAsync$slambda(this.fhc_1, completion); i.ghc_1 = _stmt; return i; }; function SiteDao_JdbcImpl$updateAsync$slambda_0($workspace, resultContinuation) { var i = new SiteDao_JdbcImpl$updateAsync$slambda($workspace, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function SiteDao_JdbcImpl$getSiteAsync$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDao_JdbcImpl$getSiteAsync$slambda).ohb = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SiteDao_JdbcImpl$getSiteAsync$slambda).le = function (p1, $completion) { return this.ohb((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteDao_JdbcImpl$getSiteAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.phc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SiteDao_JdbcImpl$getSiteAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SiteDao_JdbcImpl$getSiteAsync$slambda).o5g = function (_stmt, completion) { var i = new SiteDao_JdbcImpl$getSiteAsync$slambda(completion); i.phc_1 = _stmt; return i; }; function SiteDao_JdbcImpl$getSiteAsync$slambda_0(resultContinuation) { var i = new SiteDao_JdbcImpl$getSiteAsync$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.ohb(_stmt, $completion); }; l.$arity = 1; return l; } function SiteDao_JdbcImpl$getSiteAsFlow$slambda(this$0, resultContinuation) { this.yhc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda).zhc = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda).r79 = function ($completion) { return this.zhc($completion); }; protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('SELECT * FROM Site LIMIT 1', VOID, VOID, VOID, VOID, true); suspendResult = prepareAndUseStatementAsync(this.yhc_1.phb_1, tmp_0, SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda_0(null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda).q79 = function (completion) { return new SiteDao_JdbcImpl$getSiteAsFlow$slambda(this.yhc_1, completion); }; function SiteDao_JdbcImpl$getSiteAsFlow$slambda_0(this$0, resultContinuation) { var i = new SiteDao_JdbcImpl$getSiteAsFlow$slambda(this$0, resultContinuation); var l = function ($completion) { return i.zhc($completion); }; l.$arity = 0; return l; } function $updateAsyncCOROUTINE$386(_this__u8e3s4, workspace, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ihd_1 = _this__u8e3s4; this.jhd_1 = workspace; } protoOf($updateAsyncCOROUTINE$386).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.khd_1 = 'UPDATE Site SET sitePcsn = ?, siteLcsn = ?, siteLcb = ?, siteLct = ?, siteName = ?, guestLogin = ?, registrationAllowed = ?, authSalt = ? WHERE siteUid = ?'; this.ld_1 = 1; suspendResult = prepareAndUseStatementAsync_0(this.ihd_1.phb_1, this.khd_1, VOID, SiteDao_JdbcImpl$updateAsync$slambda_0(this.jhd_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function SiteDao_JdbcImpl(_db) { SiteDao.call(this); this.phb_1 = _db; var tmp = this; tmp.qhb_1 = new SiteDao_JdbcImpl$_insertAdapterSite_upsert$1(this); var tmp_0 = this; tmp_0.rhb_1 = new SiteDao_JdbcImpl$_insertAdapterSite_abort$1(this); } protoOf(SiteDao_JdbcImpl).tha = function (workspace, $completion) { var tmp = new $updateAsyncCOROUTINE$386(this, workspace, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SiteDao_JdbcImpl).rha = function ($completion) { var tmp = new PreparedStatementConfig('SELECT * FROM Site LIMIT 1', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.phb_1, tmp, SiteDao_JdbcImpl$getSiteAsync$slambda_0(null), $completion); }; protoOf(SiteDao_JdbcImpl).sha = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Site']; return doorFlow(this.phb_1, tmp, SiteDao_JdbcImpl$getSiteAsFlow$slambda_0(this, null)); }; function SiteDao_Repo$getSiteAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function SiteDao_Repo$getSiteAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function SiteDao_Repo$getSiteAsFlow$slambda(this$0, resultContinuation) { this.thd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDao_Repo$getSiteAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SiteDao_Repo$getSiteAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(SiteDao_Repo$getSiteAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.uhd_1 = this.thd_1.dhe_1; var tmp_1 = this; tmp_1.vhd_1 = 'SiteDao/getSiteAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.whd_1 = this.thd_1.fhe_1; var tmp_3 = this; tmp_3.xhd_1 = this.whd_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.thd_1.dhe_1.t39(), 'SiteDao/getSiteAsFlow'); doorNodeIdHeader(this_0, this.thd_1.dhe_1); header(this_0, 'cache-control', 'no-store'); tmp_4.yhd_1 = this_0; this.yhd_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.zhd_1 = this.xhd_1; var tmp_6 = this; tmp_6.ahe_1 = this.yhd_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.ahe_1, this.zhd_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.bhe_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.thd_1.che_1, this.bhe_1, this.thd_1.dhe_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', SiteDao_Repo$getSiteAsFlow$slambda$lambda(this.uhd_1, this.vhd_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(SiteDao_Repo$getSiteAsFlow$slambda).q79 = function (completion) { return new SiteDao_Repo$getSiteAsFlow$slambda(this.thd_1, completion); }; function SiteDao_Repo$getSiteAsFlow$slambda_0(this$0, resultContinuation) { var i = new SiteDao_Repo$getSiteAsFlow$slambda(this$0, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function SiteDao_Repo$updateAsync$slambda(this$0, $workspace, resultContinuation) { this.rhe_1 = this$0; this.she_1 = $workspace; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDao_Repo$updateAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SiteDao_Repo$updateAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(SiteDao_Repo$updateAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.rhe_1.ehe_1.tha(this.she_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SiteDao_Repo$updateAsync$slambda).q79 = function (completion) { return new SiteDao_Repo$updateAsync$slambda(this.rhe_1, this.she_1, completion); }; function SiteDao_Repo$updateAsync$slambda_0(this$0, $workspace, resultContinuation) { var i = new SiteDao_Repo$updateAsync$slambda(this$0, $workspace, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function $getSiteAsyncCOROUTINE$387(_this__u8e3s4, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bhf_1 = _this__u8e3s4; } protoOf($getSiteAsyncCOROUTINE$387).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.chf_1 = this.bhf_1.dhe_1; var tmp_1 = this; tmp_1.dhf_1 = 'SiteDao/getSiteAsync'; this.md_1 = 3; var tmp_2 = this; tmp_2.ehf_1 = this.bhf_1.fhe_1; var tmp_3 = this; tmp_3.fhf_1 = this.ehf_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.bhf_1.dhe_1.t39(), 'SiteDao/getSiteAsync'); doorNodeIdHeader(this_0, this.bhf_1.dhe_1); header(this_0, 'cache-control', 'no-store'); tmp_4.ghf_1 = this_0; this.ghf_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.hhf_1 = this.fhf_1; var tmp_6 = this; tmp_6.ihf_1 = this.ghf_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.ihf_1, this.hhf_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.jhf_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.bhf_1.che_1, this.jhf_1, this.bhf_1.dhe_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.khf_1 = this.od_1; Napier_getInstance().e5f(this.khf_1, 'DoorLog', SiteDao_Repo$getSiteAsync$lambda(this.chf_1, this.dhf_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.bhf_1.ehe_1.rha(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function SiteDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { SiteDao.call(this); this.che_1 = _db; this.dhe_1 = _repo; this.ehe_1 = _dao; this.fhe_1 = _httpClient; this.ghe_1 = _clientId; this.hhe_1 = _endpoint; this.ihe_1 = new RepoDaoFlowHelper(this.dhe_1); } protoOf(SiteDao_Repo).rha = function ($completion) { var tmp = new $getSiteAsyncCOROUTINE$387(this, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SiteDao_Repo).sha = function () { var tmp = this.ehe_1.sha(); return this.ihe_1.r68(tmp, SiteDao_Repo$getSiteAsFlow$slambda_0(this, null)); }; protoOf(SiteDao_Repo).tha = function (workspace, $completion) { return withRepoChangeMonitorAsync(this.dhe_1, 'Site', SiteDao_Repo$updateAsync$slambda_0(this, workspace, null), $completion); }; function SiteTermsDao() { } function $upsertListCOROUTINE$391(_this__u8e3s4, termList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.yhf_1 = _this__u8e3s4; this.zhf_1 = termList; } protoOf($upsertListCOROUTINE$391).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; this.ahg_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.yhf_1.hhg_1)); var tmp_0 = this; tmp_0.bhg_1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.chg_1 = this.zhf_1.w(); var tmp_2 = this; tmp_2.dhg_1 = this.chg_1; this.ld_1 = 1; continue $sm; case 1: if (!this.dhg_1.f()) { this.ld_1 = 4; continue $sm; } this.ehg_1 = this.dhg_1.e(); var tmp_3 = this; tmp_3.fhg_1 = this.ehg_1; if (this.fhg_1.jhg_1.equals(new Long(0, 0))) { this.ld_1 = 2; suspendResult = this.ahg_1.r63(272, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 3; continue $sm; } case 2: this.ghg_1 = suspendResult; this.fhg_1.jhg_1 = this.ghg_1; var this_0 = this.bhg_1; var element = this.ghg_1; this_0.j1(element); this.ld_1 = 3; continue $sm; case 3: this.fhg_1.rhg_1 = systemTimeInMillis(); this.ld_1 = 1; continue $sm; case 4: this.ld_1 = 5; suspendResult = this.yhf_1.ihg_1.nhf(this.zhf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_instance; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function SiteTermsDao_DoorWrapper(_db, _dao) { SiteTermsDao.call(this); this.hhg_1 = _db; this.ihg_1 = _dao; } protoOf(SiteTermsDao_DoorWrapper).lhf = function (activeOnly) { return this.ihg_1.lhf(activeOnly); }; protoOf(SiteTermsDao_DoorWrapper).mhf = function (activeOnly, $completion) { return this.ihg_1.mhf(activeOnly, $completion); }; protoOf(SiteTermsDao_DoorWrapper).nhf = function (termList, $completion) { var tmp = new $upsertListCOROUTINE$391(this, termList, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SiteTermsDao_DoorWrapper).ohf = function (active, $completion) { return this.ihg_1.ohf(active, $completion); }; protoOf(SiteTermsDao_DoorWrapper).phf = function (lang, $completion) { return this.ihg_1.phf(lang, $completion); }; function SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda$lambda(_result) { return mapRows(_result, SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda$lambda$lambda(_result)); } function SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_sTermsUid = $_result.b5o('sTermsUid'); var _tmp_termsHtml = $_result.b10('termsHtml'); var _tmp_sTermsLang = $_result.b10('sTermsLang'); var _tmp_sTermsLangUid = $_result.b5o('sTermsLangUid'); var _tmp_sTermsActive = $_result.m67('sTermsActive'); var _tmp_sTermsLastChangedBy = $_result.a5o('sTermsLastChangedBy'); var _tmp_sTermsPrimaryCsn = $_result.b5o('sTermsPrimaryCsn'); var _tmp_sTermsLocalCsn = $_result.b5o('sTermsLocalCsn'); var _tmp_sTermsLct = $_result.b5o('sTermsLct'); // Inline function 'kotlin.apply' call var this_0 = new SiteTerms(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SiteTermsDao_JdbcImpl.findAllTermsAsListFlow.....' call this_0.jhg_1 = _tmp_sTermsUid; this_0.khg_1 = _tmp_termsHtml; this_0.lhg_1 = _tmp_sTermsLang; this_0.mhg_1 = _tmp_sTermsLangUid; this_0.nhg_1 = _tmp_sTermsActive; this_0.ohg_1 = _tmp_sTermsLastChangedBy; this_0.phg_1 = _tmp_sTermsPrimaryCsn; this_0.qhg_1 = _tmp_sTermsLocalCsn; this_0.rhg_1 = _tmp_sTermsLct; return this_0; }; } function SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda($activeOnly, resultContinuation) { this.ahh_1 = $activeOnly; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda).chh = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda).le = function (p1, $completion) { return this.chh((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.bhh_1.w5i(1, this.ahh_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.bhh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda(this.ahh_1, completion); i.bhh_1 = _stmt; return i; }; function SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda_0($activeOnly, resultContinuation) { var i = new SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda($activeOnly, resultContinuation); var l = function (_stmt, $completion) { return i.chh(_stmt, $completion); }; l.$arity = 1; return l; } function SiteTermsDao_JdbcImpl$findAllTerms$slambda$lambda(_result) { return mapRows(_result, SiteTermsDao_JdbcImpl$findAllTerms$slambda$lambda$lambda(_result)); } function SiteTermsDao_JdbcImpl$findAllTerms$slambda$lambda$lambda($_result) { return function (it) { var _tmp_sTermsUid = $_result.b5o('sTermsUid'); var _tmp_termsHtml = $_result.b10('termsHtml'); var _tmp_sTermsLang = $_result.b10('sTermsLang'); var _tmp_sTermsLangUid = $_result.b5o('sTermsLangUid'); var _tmp_sTermsActive = $_result.m67('sTermsActive'); var _tmp_sTermsLastChangedBy = $_result.a5o('sTermsLastChangedBy'); var _tmp_sTermsPrimaryCsn = $_result.b5o('sTermsPrimaryCsn'); var _tmp_sTermsLocalCsn = $_result.b5o('sTermsLocalCsn'); var _tmp_sTermsLct = $_result.b5o('sTermsLct'); // Inline function 'kotlin.apply' call var this_0 = new SiteTerms(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SiteTermsDao_JdbcImpl.findAllTerms....' call this_0.jhg_1 = _tmp_sTermsUid; this_0.khg_1 = _tmp_termsHtml; this_0.lhg_1 = _tmp_sTermsLang; this_0.mhg_1 = _tmp_sTermsLangUid; this_0.nhg_1 = _tmp_sTermsActive; this_0.ohg_1 = _tmp_sTermsLastChangedBy; this_0.phg_1 = _tmp_sTermsPrimaryCsn; this_0.qhg_1 = _tmp_sTermsLocalCsn; this_0.rhg_1 = _tmp_sTermsLct; return this_0; }; } function SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda$lambda(_result) { return mapRows(_result, SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda$lambda$lambda(_result)); } function SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda$lambda$lambda($_result) { return function (it) { return $_result.a62(1); }; } function SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda$lambda(_result) { return mapNextRow(_result, null, SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda$lambda$lambda(_result)); } function SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda$lambda$lambda($_result) { return function (it) { var _tmp_sTermsUid = $_result.b5o('sTermsUid'); var _tmp_termsHtml = $_result.b10('termsHtml'); var _tmp_sTermsLang = $_result.b10('sTermsLang'); var _tmp_sTermsLangUid = $_result.b5o('sTermsLangUid'); var _tmp_sTermsActive = $_result.m67('sTermsActive'); var _tmp_sTermsLastChangedBy = $_result.a5o('sTermsLastChangedBy'); var _tmp_sTermsPrimaryCsn = $_result.b5o('sTermsPrimaryCsn'); var _tmp_sTermsLocalCsn = $_result.b5o('sTermsLocalCsn'); var _tmp_sTermsLct = $_result.b5o('sTermsLct'); // Inline function 'kotlin.apply' call var this_0 = new SiteTerms(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SiteTermsDao_JdbcImpl.findLatestByLanguage....' call this_0.jhg_1 = _tmp_sTermsUid; this_0.khg_1 = _tmp_termsHtml; this_0.lhg_1 = _tmp_sTermsLang; this_0.mhg_1 = _tmp_sTermsLangUid; this_0.nhg_1 = _tmp_sTermsActive; this_0.ohg_1 = _tmp_sTermsLastChangedBy; this_0.phg_1 = _tmp_sTermsPrimaryCsn; this_0.qhg_1 = _tmp_sTermsLocalCsn; this_0.rhg_1 = _tmp_sTermsLct; return this_0; }; } function SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.dhh_1); } protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1).w5h = function (returnsId) { return 'INSERT INTO SiteTerms (sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1).ihh = function (stmt, entity) { if (entity.jhg_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.jhg_1); } stmt.a5j(2, entity.khg_1); stmt.a5j(3, entity.lhg_1); stmt.x5i(4, entity.mhg_1); stmt.k5i(5, entity.nhg_1); stmt.w5i(6, entity.ohg_1); stmt.x5i(7, entity.phg_1); stmt.x5i(8, entity.qhg_1); stmt.x5i(9, entity.rhg_1); }; protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1).r5g = function (stmt, entity) { return this.ihh(stmt, entity instanceof SiteTerms ? entity : THROW_CCE()); }; function SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.dhh_1); } protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO SiteTerms (sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1).ihh = function (stmt, entity) { if (entity.jhg_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.jhg_1); } stmt.a5j(2, entity.khg_1); stmt.a5j(3, entity.lhg_1); stmt.x5i(4, entity.mhg_1); stmt.k5i(5, entity.nhg_1); stmt.w5i(6, entity.ohg_1); stmt.x5i(7, entity.phg_1); stmt.x5i(8, entity.qhg_1); stmt.x5i(9, entity.rhg_1); }; protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1).r5g = function (stmt, entity) { return this.ihh(stmt, entity instanceof SiteTerms ? entity : THROW_CCE()); }; function SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda(this$0, $activeOnly, resultContinuation) { this.thh_1 = this$0; this.uhh_1 = $activeOnly; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda).vhh = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda).r79 = function ($completion) { return this.vhh($completion); }; protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT SiteTerms.*\n FROM SiteTerms\n WHERE ? = 0 \n OR CAST(sTermsActive AS INTEGER) = 1\n ', VOID, VOID, VOID, VOID, true); suspendResult = prepareAndUseStatementAsync(this.thh_1.dhh_1, tmp_0, SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda_0(this.uhh_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda).q79 = function (completion) { return new SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda(this.thh_1, this.uhh_1, completion); }; function SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda_0(this$0, $activeOnly, resultContinuation) { var i = new SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda(this$0, $activeOnly, resultContinuation); var l = function ($completion) { return i.vhh($completion); }; l.$arity = 0; return l; } function SiteTermsDao_JdbcImpl$findAllTerms$slambda($activeOnly, resultContinuation) { this.ehi_1 = $activeOnly; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_JdbcImpl$findAllTerms$slambda).chh = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SiteTermsDao_JdbcImpl$findAllTerms$slambda).le = function (p1, $completion) { return this.chh((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteTermsDao_JdbcImpl$findAllTerms$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.fhi_1.w5i(1, this.ehi_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.fhi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SiteTermsDao_JdbcImpl$findAllTerms$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SiteTermsDao_JdbcImpl$findAllTerms$slambda).o5g = function (_stmt, completion) { var i = new SiteTermsDao_JdbcImpl$findAllTerms$slambda(this.ehi_1, completion); i.fhi_1 = _stmt; return i; }; function SiteTermsDao_JdbcImpl$findAllTerms$slambda_0($activeOnly, resultContinuation) { var i = new SiteTermsDao_JdbcImpl$findAllTerms$slambda($activeOnly, resultContinuation); var l = function (_stmt, $completion) { return i.chh(_stmt, $completion); }; l.$arity = 1; return l; } function SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda($active, resultContinuation) { this.ohi_1 = $active; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda).qhi = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda).le = function (p1, $completion) { return this.qhi((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.phi_1.w5i(1, this.ohi_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.phi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda).o5g = function (_stmt, completion) { var i = new SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda(this.ohi_1, completion); i.phi_1 = _stmt; return i; }; function SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda_0($active, resultContinuation) { var i = new SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda($active, resultContinuation); var l = function (_stmt, $completion) { return i.qhi(_stmt, $completion); }; l.$arity = 1; return l; } function SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda($lang, resultContinuation) { this.zhi_1 = $lang; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda).bhj = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda).le = function (p1, $completion) { return this.bhj((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ahj_1.a5j(1, this.zhi_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.ahj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda).o5g = function (_stmt, completion) { var i = new SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda(this.zhi_1, completion); i.ahj_1 = _stmt; return i; }; function SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda_0($lang, resultContinuation) { var i = new SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda($lang, resultContinuation); var l = function (_stmt, $completion) { return i.bhj(_stmt, $completion); }; l.$arity = 1; return l; } function SiteTermsDao_JdbcImpl(_db) { SiteTermsDao.call(this); this.dhh_1 = _db; var tmp = this; tmp.ehh_1 = new SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1(this); var tmp_0 = this; tmp_0.fhh_1 = new SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1(this); } protoOf(SiteTermsDao_JdbcImpl).nhf = function (termList, $completion) { return this.fhh_1.b5i(termList, $completion); }; protoOf(SiteTermsDao_JdbcImpl).lhf = function (activeOnly) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['SiteTerms']; return doorFlow(this.dhh_1, tmp, SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda_0(this, activeOnly, null)); }; protoOf(SiteTermsDao_JdbcImpl).mhf = function (activeOnly, $completion) { var tmp = new PreparedStatementConfig('\n SELECT SiteTerms.*\n FROM SiteTerms\n WHERE ? = 0 \n OR CAST(sTermsActive AS INTEGER) = 1\n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.dhh_1, tmp, SiteTermsDao_JdbcImpl$findAllTerms$slambda_0(activeOnly, null), $completion); }; protoOf(SiteTermsDao_JdbcImpl).ohf = function (active, $completion) { var tmp = new PreparedStatementConfig('\n SELECT SiteTerms.sTermsLang\n FROM SiteTerms\n WHERE CAST(SiteTerms.sTermsActive AS INTEGER) = ? \n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.dhh_1, tmp, SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda_0(active, null), $completion); }; protoOf(SiteTermsDao_JdbcImpl).phf = function (lang, $completion) { var tmp = new PreparedStatementConfig('\n SELECT SiteTerms.*\n FROM SiteTerms\n WHERE SiteTerms.sTermsLang = ?\n AND CAST(SiteTerms.sTermsActive AS INTEGER) = 1\n ORDER BY SiteTerms.sTermsLct DESC\n LIMIT 1 \n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.dhh_1, tmp, SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda_0(lang, null), $completion); }; function SiteTermsDao_Repo$findAllTermsAsListFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function SiteTermsDao_Repo$findAllTermsAsListFlow$slambda(this$0, $activeOnly, resultContinuation) { this.khj_1 = this$0; this.lhj_1 = $activeOnly; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_Repo$findAllTermsAsListFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SiteTermsDao_Repo$findAllTermsAsListFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(SiteTermsDao_Repo$findAllTermsAsListFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.mhj_1 = this.khj_1.vhj_1; var tmp_1 = this; tmp_1.nhj_1 = 'SiteTermsDao/findAllTermsAsListFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.ohj_1 = this.khj_1.xhj_1; var tmp_3 = this; tmp_3.phj_1 = this.ohj_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.khj_1.vhj_1.t39(), 'SiteTermsDao/findAllTermsAsListFlow'); doorNodeIdHeader(this_0, this.khj_1.vhj_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'activeOnly', this.khj_1.vhj_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.lhj_1)); tmp_4.qhj_1 = this_0; this.qhj_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.rhj_1 = this.phj_1; var tmp_6 = this; tmp_6.shj_1 = this.qhj_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.shj_1, this.rhj_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.thj_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.khj_1.uhj_1, this.thj_1, this.khj_1.vhj_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', SiteTermsDao_Repo$findAllTermsAsListFlow$slambda$lambda(this.mhj_1, this.nhj_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(SiteTermsDao_Repo$findAllTermsAsListFlow$slambda).q79 = function (completion) { return new SiteTermsDao_Repo$findAllTermsAsListFlow$slambda(this.khj_1, this.lhj_1, completion); }; function SiteTermsDao_Repo$findAllTermsAsListFlow$slambda_0(this$0, $activeOnly, resultContinuation) { var i = new SiteTermsDao_Repo$findAllTermsAsListFlow$slambda(this$0, $activeOnly, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function SiteTermsDao_Repo$findAllTerms$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function SiteTermsDao_Repo$upsertList$slambda(this$0, $termList, resultContinuation) { this.jhk_1 = this$0; this.khk_1 = $termList; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_Repo$upsertList$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SiteTermsDao_Repo$upsertList$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(SiteTermsDao_Repo$upsertList$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.jhk_1.whj_1.nhf(this.khk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SiteTermsDao_Repo$upsertList$slambda).q79 = function (completion) { return new SiteTermsDao_Repo$upsertList$slambda(this.jhk_1, this.khk_1, completion); }; function SiteTermsDao_Repo$upsertList$slambda_0(this$0, $termList, resultContinuation) { var i = new SiteTermsDao_Repo$upsertList$slambda(this$0, $termList, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function SiteTermsDao_Repo$findAvailableSiteTermLanguages$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function $findAllTermsCOROUTINE$398(_this__u8e3s4, activeOnly, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.thk_1 = _this__u8e3s4; this.uhk_1 = activeOnly; } protoOf($findAllTermsCOROUTINE$398).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.vhk_1 = this.thk_1.vhj_1; var tmp_1 = this; tmp_1.whk_1 = 'SiteTermsDao/findAllTerms'; this.md_1 = 3; var tmp_2 = this; tmp_2.xhk_1 = this.thk_1.xhj_1; var tmp_3 = this; tmp_3.yhk_1 = this.xhk_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.thk_1.vhj_1.t39(), 'SiteTermsDao/findAllTerms'); doorNodeIdHeader(this_0, this.thk_1.vhj_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'activeOnly', this.thk_1.vhj_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.uhk_1)); tmp_4.zhk_1 = this_0; this.zhk_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.ahl_1 = this.yhk_1; var tmp_6 = this; tmp_6.bhl_1 = this.zhk_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.bhl_1, this.ahl_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.chl_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.thk_1.uhj_1, this.chl_1, this.thk_1.vhj_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.dhl_1 = this.od_1; Napier_getInstance().e5f(this.dhl_1, 'DoorLog', SiteTermsDao_Repo$findAllTerms$lambda(this.vhk_1, this.whk_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.thk_1.whj_1.mhf(this.uhk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $findAvailableSiteTermLanguagesCOROUTINE$400(_this__u8e3s4, active, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.mhl_1 = _this__u8e3s4; this.nhl_1 = active; } protoOf($findAvailableSiteTermLanguagesCOROUTINE$400).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.ohl_1 = this.mhl_1.vhj_1; var tmp_1 = this; tmp_1.phl_1 = 'SiteTermsDao/findAvailableSiteTermLanguages'; this.md_1 = 3; var tmp_2 = this; tmp_2.qhl_1 = this.mhl_1.xhj_1; var tmp_3 = this; tmp_3.rhl_1 = this.qhl_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.mhl_1.vhj_1.t39(), 'SiteTermsDao/findAvailableSiteTermLanguages'); doorNodeIdHeader(this_0, this.mhl_1.vhj_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'active', this.mhl_1.vhj_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.nhl_1)); tmp_4.shl_1 = this_0; this.shl_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.thl_1 = this.rhl_1; var tmp_6 = this; tmp_6.uhl_1 = this.shl_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.uhl_1, this.thl_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.vhl_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.mhl_1.uhj_1, this.vhl_1, this.mhl_1.vhj_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.whl_1 = this.od_1; Napier_getInstance().e5f(this.whl_1, 'DoorLog', SiteTermsDao_Repo$findAvailableSiteTermLanguages$lambda(this.ohl_1, this.phl_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.mhl_1.whj_1.ohf(this.nhl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $findLatestByLanguageCOROUTINE$401(_this__u8e3s4, lang, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.fhm_1 = _this__u8e3s4; this.ghm_1 = lang; } protoOf($findLatestByLanguageCOROUTINE$401).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.fhm_1.whj_1.phf(this.ghm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function SiteTermsDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { SiteTermsDao.call(this); this.uhj_1 = _db; this.vhj_1 = _repo; this.whj_1 = _dao; this.xhj_1 = _httpClient; this.yhj_1 = _clientId; this.zhj_1 = _endpoint; this.ahk_1 = new RepoDaoFlowHelper(this.vhj_1); } protoOf(SiteTermsDao_Repo).lhf = function (activeOnly) { var tmp = this.whj_1.lhf(activeOnly); return this.ahk_1.r68(tmp, SiteTermsDao_Repo$findAllTermsAsListFlow$slambda_0(this, activeOnly, null)); }; protoOf(SiteTermsDao_Repo).mhf = function (activeOnly, $completion) { var tmp = new $findAllTermsCOROUTINE$398(this, activeOnly, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SiteTermsDao_Repo).nhf = function (termList, $completion) { return withRepoChangeMonitorAsync(this.vhj_1, 'SiteTerms', SiteTermsDao_Repo$upsertList$slambda_0(this, termList, null), $completion); }; protoOf(SiteTermsDao_Repo).ohf = function (active, $completion) { var tmp = new $findAvailableSiteTermLanguagesCOROUTINE$400(this, active, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SiteTermsDao_Repo).phf = function (lang, $completion) { var tmp = new $findLatestByLanguageCOROUTINE$401(this, lang, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function StudentResultDao() { } function StudentResultDao_DoorWrapper(_db, _dao) { StudentResultDao.call(this); this.hhm_1 = _db; this.ihm_1 = _dao; } function StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.jhm_1); } protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1).w5h = function (returnsId) { return 'INSERT INTO StudentResult (srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1).ohm = function (stmt, entity) { stmt.x5i(1, entity.phm_1); stmt.a5j(2, entity.qhm_1); stmt.x5i(3, entity.rhm_1); stmt.a5j(4, entity.shm_1); stmt.a5j(5, entity.thm_1); stmt.x5i(6, entity.uhm_1); stmt.x5i(7, entity.vhm_1); stmt.w5i(8, entity.whm_1); stmt.a5j(9, entity.xhm_1); stmt.x5i(10, entity.yhm_1); stmt.a5j(11, entity.zhm_1); stmt.w5i(12, entity.ahn_1); stmt.x5i(13, entity.bhn_1); stmt.w5i(14, entity.chn_1); stmt.w5i(15, entity.dhn_1); stmt.y5i(16, entity.ehn_1); stmt.x5i(17, entity.fhn_1); stmt.x5i(18, entity.ghn_1); stmt.a5j(19, entity.hhn_1); stmt.a5j(20, entity.ihn_1); stmt.k5i(21, entity.jhn_1); }; protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1).r5g = function (stmt, entity) { return this.ohm(stmt, entity instanceof StudentResult ? entity : THROW_CCE()); }; function StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.jhm_1); } protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO StudentResult (srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1).ohm = function (stmt, entity) { stmt.x5i(1, entity.phm_1); stmt.a5j(2, entity.qhm_1); stmt.x5i(3, entity.rhm_1); stmt.a5j(4, entity.shm_1); stmt.a5j(5, entity.thm_1); stmt.x5i(6, entity.uhm_1); stmt.x5i(7, entity.vhm_1); stmt.w5i(8, entity.whm_1); stmt.a5j(9, entity.xhm_1); stmt.x5i(10, entity.yhm_1); stmt.a5j(11, entity.zhm_1); stmt.w5i(12, entity.ahn_1); stmt.x5i(13, entity.bhn_1); stmt.w5i(14, entity.chn_1); stmt.w5i(15, entity.dhn_1); stmt.y5i(16, entity.ehn_1); stmt.x5i(17, entity.fhn_1); stmt.x5i(18, entity.ghn_1); stmt.a5j(19, entity.hhn_1); stmt.a5j(20, entity.ihn_1); stmt.k5i(21, entity.jhn_1); }; protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1).r5g = function (stmt, entity) { return this.ohm(stmt, entity instanceof StudentResult ? entity : THROW_CCE()); }; function StudentResultDao_JdbcImpl(_db) { StudentResultDao.call(this); this.jhm_1 = _db; var tmp = this; tmp.khm_1 = new StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1(this); var tmp_0 = this; tmp_0.lhm_1 = new StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1(this); } function StudentResultDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { StudentResultDao.call(this); this.mhn_1 = _db; this.nhn_1 = _repo; this.ohn_1 = _dao; this.phn_1 = _httpClient; this.qhn_1 = _clientId; this.rhn_1 = _endpoint; } function SyncNodeDao() { } function SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.shn_1); } protoOf(SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO SyncNode (nodeClientId) VALUES(?)'; }; protoOf(SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1).whn = function (stmt, entity) { stmt.x5i(1, entity.c65_1); }; protoOf(SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1).r5g = function (stmt, entity) { return this.whn(stmt, entity instanceof SyncNode ? entity : THROW_CCE()); }; function SyncNodeDao_JdbcImpl(_db) { SyncNodeDao.call(this); this.shn_1 = _db; var tmp = this; tmp.thn_1 = new SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1(this); } function SystemPermissionDao() { } function $upsertAsyncCOROUTINE$405(_this__u8e3s4, systemPermissions, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.nho_1 = _this__u8e3s4; this.oho_1 = systemPermissions; } protoOf($upsertAsyncCOROUTINE$405).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.pho_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.nho_1.rho_1)); if (this.oho_1.tho_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.pho_1.r63(10011, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.qho_1 = suspendResult; this.oho_1.tho_1 = this.qho_1; this.ld_1 = 2; continue $sm; case 2: this.oho_1.xho_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.nho_1.sho_1.eho(this.oho_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_instance; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function SystemPermissionDao_DoorWrapper(_db, _dao) { SystemPermissionDao.call(this); this.rho_1 = _db; this.sho_1 = _dao; } protoOf(SystemPermissionDao_DoorWrapper).xhn = function (accountPersonUid) { return this.sho_1.xhn(accountPersonUid); }; protoOf(SystemPermissionDao_DoorWrapper).yhn = function (accountPersonUid, $completion) { return this.sho_1.yhn(accountPersonUid, $completion); }; protoOf(SystemPermissionDao_DoorWrapper).zhn = function (accountPersonUid, permission, $completion) { return this.sho_1.zhn(accountPersonUid, permission, $completion); }; protoOf(SystemPermissionDao_DoorWrapper).aho = function (accountPersonUid, permission) { return this.sho_1.aho(accountPersonUid, permission); }; protoOf(SystemPermissionDao_DoorWrapper).bho = function (accountPersonUid, firstPermission, secondPermission) { return this.sho_1.bho(accountPersonUid, firstPermission, secondPermission); }; protoOf(SystemPermissionDao_DoorWrapper).cho = function (accountPersonUid, firstPermission, secondPermission, $completion) { return this.sho_1.cho(accountPersonUid, firstPermission, secondPermission, $completion); }; protoOf(SystemPermissionDao_DoorWrapper).dho = function (accountPersonUid, otherPersonUid) { return this.sho_1.dho(accountPersonUid, otherPersonUid); }; protoOf(SystemPermissionDao_DoorWrapper).eho = function (systemPermissions, $completion) { var tmp = new $upsertAsyncCOROUTINE$405(this, systemPermissions, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_spUid = $_result.b5o('spUid'); var _tmp_spToPersonUid = $_result.b5o('spToPersonUid'); var _tmp_spToGroupUid = $_result.b5o('spToGroupUid'); var _tmp_spPermissionsFlag = $_result.b5o('spPermissionsFlag'); var _tmp_spLastModified = $_result.b5o('spLastModified'); var _tmp_spIsDeleted = $_result.m67('spIsDeleted'); // Inline function 'kotlin.apply' call var this_0 = new SystemPermission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SystemPermissionDao_JdbcImpl.findByPersonUidAsFlow.....' call this_0.tho_1 = _tmp_spUid; this_0.uho_1 = _tmp_spToPersonUid; this_0.vho_1 = _tmp_spToGroupUid; this_0.who_1 = _tmp_spPermissionsFlag; this_0.xho_1 = _tmp_spLastModified; this_0.yho_1 = _tmp_spIsDeleted; return this_0; }; } function SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda($accountPersonUid, resultContinuation) { this.hhp_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda).jhp = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda).le = function (p1, $completion) { return this.jhp((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ihp_1.x5i(1, this.hhp_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.ihp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda(this.hhp_1, completion); i.ihp_1 = _stmt; return i; }; function SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda_0($accountPersonUid, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda($accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.jhp(_stmt, $completion); }; l.$arity = 1; return l; } function SystemPermissionDao_JdbcImpl$findByPersonUid$slambda$lambda(_result) { return mapNextRow_0(_result, SystemPermissionDao_JdbcImpl$findByPersonUid$slambda$lambda$lambda(_result)); } function SystemPermissionDao_JdbcImpl$findByPersonUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_spUid = $_result.b5o('spUid'); var _tmp_spToPersonUid = $_result.b5o('spToPersonUid'); var _tmp_spToGroupUid = $_result.b5o('spToGroupUid'); var _tmp_spPermissionsFlag = $_result.b5o('spPermissionsFlag'); var _tmp_spLastModified = $_result.b5o('spLastModified'); var _tmp_spIsDeleted = $_result.m67('spIsDeleted'); // Inline function 'kotlin.apply' call var this_0 = new SystemPermission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SystemPermissionDao_JdbcImpl.findByPersonUid....' call this_0.tho_1 = _tmp_spUid; this_0.uho_1 = _tmp_spToPersonUid; this_0.vho_1 = _tmp_spToGroupUid; this_0.who_1 = _tmp_spPermissionsFlag; this_0.xho_1 = _tmp_spLastModified; this_0.yho_1 = _tmp_spIsDeleted; return this_0; }; } function SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda$lambda(_result) { return mapNextRow(_result, false, SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda$lambda$lambda(_result)); } function SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda$lambda$lambda($_result) { return function (it) { return $_result.s75(1); }; } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, false, SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda$lambda$lambda(_result)); } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { return $_result.s75(1); }; } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda($accountPersonUid, $permission, resultContinuation) { this.shp_1 = $accountPersonUid; this.thp_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda).h9u = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda).le = function (p1, $completion) { return this.h9u((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.uhp_1.x5i(1, this.shp_1); this.uhp_1.x5i(2, this.shp_1); this.uhp_1.x5i(3, this.thp_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.uhp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda(this.shp_1, this.thp_1, completion); i.uhp_1 = _stmt; return i; }; function SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda_0($accountPersonUid, $permission, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda($accountPersonUid, $permission, resultContinuation); var l = function (_stmt, $completion) { return i.h9u(_stmt, $completion); }; l.$arity = 1; return l; } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda$lambda(_result) { return mapNextRow_0(_result, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda$lambda$lambda(_result)); } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstPermission = $_result.m67('firstPermission'); var _tmp_secondPermission = $_result.m67('secondPermission'); // Inline function 'kotlin.apply' call var this_0 = new PermissionPair(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SystemPermissionDao_JdbcImpl.personHasSystemPermissionPairAsFlow.....' call this_0.vda_1 = _tmp_firstPermission; this_0.wda_1 = _tmp_secondPermission; return this_0; }; } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda($accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { this.dhq_1 = $accountPersonUid; this.ehq_1 = $firstPermission; this.fhq_1 = $secondPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda).kdb = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda).le = function (p1, $completion) { return this.kdb((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ghq_1.x5i(1, this.dhq_1); this.ghq_1.x5i(2, this.dhq_1); this.ghq_1.x5i(3, this.ehq_1); this.ghq_1.x5i(4, this.dhq_1); this.ghq_1.x5i(5, this.dhq_1); this.ghq_1.x5i(6, this.fhq_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.ghq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda(this.dhq_1, this.ehq_1, this.fhq_1, completion); i.ghq_1 = _stmt; return i; }; function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda_0($accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda($accountPersonUid, $firstPermission, $secondPermission, resultContinuation); var l = function (_stmt, $completion) { return i.kdb(_stmt, $completion); }; l.$arity = 1; return l; } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda$lambda(_result) { return mapNextRow_0(_result, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda$lambda$lambda(_result)); } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstPermission = $_result.m67('firstPermission'); var _tmp_secondPermission = $_result.m67('secondPermission'); // Inline function 'kotlin.apply' call var this_0 = new PermissionPair(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SystemPermissionDao_JdbcImpl.personHasSystemPermissionPair....' call this_0.vda_1 = _tmp_firstPermission; this_0.wda_1 = _tmp_secondPermission; return this_0; }; } function SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda$lambda(_result) { return mapNextRow_0(_result, SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda$lambda$lambda(_result)); } function SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_hasViewPermission = $_result.m67('hasViewPermission'); var _tmp_hasEditPermission = $_result.m67('hasEditPermission'); // Inline function 'kotlin.apply' call var this_0 = new EditAndViewPermission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SystemPermissionDao_JdbcImpl.personHasEditAndViewPermissionForPersonAsFlow.....' call this_0.hhq_1 = _tmp_hasViewPermission; this_0.ihq_1 = _tmp_hasEditPermission; return this_0; }; } function SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda($otherPersonUid, $accountPersonUid, resultContinuation) { this.rhq_1 = $otherPersonUid; this.shq_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda).uhq = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda).le = function (p1, $completion) { return this.uhq((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.thq_1.x5i(1, this.rhq_1); this.thq_1.x5i(2, this.shq_1); this.thq_1.x5i(3, this.shq_1); this.thq_1.x5i(4, this.rhq_1); this.thq_1.x5i(5, this.shq_1); this.thq_1.x5i(6, this.shq_1); this.thq_1.x5i(7, this.shq_1); this.thq_1.x5i(8, this.rhq_1); this.thq_1.x5i(9, this.rhq_1); this.thq_1.x5i(10, this.shq_1); this.thq_1.x5i(11, this.shq_1); this.thq_1.x5i(12, this.shq_1); this.thq_1.x5i(13, this.rhq_1); this.thq_1.x5i(14, this.shq_1); this.thq_1.x5i(15, this.rhq_1); this.thq_1.x5i(16, this.rhq_1); this.thq_1.x5i(17, this.shq_1); this.thq_1.x5i(18, this.shq_1); this.thq_1.x5i(19, this.shq_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.thq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda(this.rhq_1, this.shq_1, completion); i.thq_1 = _stmt; return i; }; function SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda_0($otherPersonUid, $accountPersonUid, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda($otherPersonUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.uhq(_stmt, $completion); }; l.$arity = 1; return l; } function SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.vhq_1); } protoOf(SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO SystemPermission (spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1).zhq = function (stmt, entity) { if (entity.tho_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.tho_1); } stmt.x5i(2, entity.uho_1); stmt.x5i(3, entity.vho_1); stmt.x5i(4, entity.who_1); stmt.x5i(5, entity.xho_1); stmt.k5i(6, entity.yho_1); }; protoOf(SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1).r5g = function (stmt, entity) { return this.zhq(stmt, entity instanceof SystemPermission ? entity : THROW_CCE()); }; function SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda(this$0, $accountPersonUid, resultContinuation) { this.ihr_1 = this$0; this.jhr_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda).khr = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda).r79 = function ($completion) { return this.khr($completion); }; protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT SystemPermission.*\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n LIMIT 1\n ', VOID, VOID, VOID, '\n SELECT SystemPermission.*\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n LIMIT 1\n \n', true); suspendResult = prepareAndUseStatementAsync(this.ihr_1.vhq_1, tmp_0, SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda_0(this.jhr_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda).q79 = function (completion) { return new SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda(this.ihr_1, this.jhr_1, completion); }; function SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda_0(this$0, $accountPersonUid, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda(this$0, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.khr($completion); }; l.$arity = 0; return l; } function SystemPermissionDao_JdbcImpl$findByPersonUid$slambda($accountPersonUid, resultContinuation) { this.thr_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$findByPersonUid$slambda).vhr = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SystemPermissionDao_JdbcImpl$findByPersonUid$slambda).le = function (p1, $completion) { return this.vhr((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDao_JdbcImpl$findByPersonUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.uhr_1.x5i(1, this.thr_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.uhr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$findByPersonUid$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$findByPersonUid$slambda).o5g = function (_stmt, completion) { var i = new SystemPermissionDao_JdbcImpl$findByPersonUid$slambda(this.thr_1, completion); i.uhr_1 = _stmt; return i; }; function SystemPermissionDao_JdbcImpl$findByPersonUid$slambda_0($accountPersonUid, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$findByPersonUid$slambda($accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.vhr(_stmt, $completion); }; l.$arity = 1; return l; } function SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda($accountPersonUid, $permission, resultContinuation) { this.ehs_1 = $accountPersonUid; this.fhs_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda).h9u = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda).le = function (p1, $completion) { return this.h9u((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ghs_1.x5i(1, this.ehs_1); this.ghs_1.x5i(2, this.ehs_1); this.ghs_1.x5i(3, this.fhs_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.ghs_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda).o5g = function (_stmt, completion) { var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda(this.ehs_1, this.fhs_1, completion); i.ghs_1 = _stmt; return i; }; function SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda_0($accountPersonUid, $permission, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda($accountPersonUid, $permission, resultContinuation); var l = function (_stmt, $completion) { return i.h9u(_stmt, $completion); }; l.$arity = 1; return l; } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda(this$0, $accountPersonUid, $permission, resultContinuation) { this.phs_1 = this$0; this.qhs_1 = $accountPersonUid; this.rhs_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda).w9v = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda).r79 = function ($completion) { return this.w9v($completion); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n CAST(? AS BIGINT)\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n ', VOID, VOID, VOID, '\n SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n ?\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n \n', true); suspendResult = prepareAndUseStatementAsync(this.phs_1.vhq_1, tmp_0, SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda_0(this.qhs_1, this.rhs_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda).q79 = function (completion) { return new SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda(this.phs_1, this.qhs_1, this.rhs_1, completion); }; function SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda_0(this$0, $accountPersonUid, $permission, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda(this$0, $accountPersonUid, $permission, resultContinuation); var l = function ($completion) { return i.w9v($completion); }; l.$arity = 0; return l; } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda(this$0, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { this.aht_1 = this$0; this.bht_1 = $accountPersonUid; this.cht_1 = $firstPermission; this.dht_1 = $secondPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda).ddg = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda).r79 = function ($completion) { return this.ddg($completion); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n CAST(? AS BIGINT)\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ) as firstPermission,\n (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n CAST(? AS BIGINT)\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ) as secondPermission\n ', VOID, VOID, VOID, '\n SELECT (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n ?\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ) as firstPermission,\n (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n ?\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ) as secondPermission\n \n', true); suspendResult = prepareAndUseStatementAsync(this.aht_1.vhq_1, tmp_0, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda_0(this.bht_1, this.cht_1, this.dht_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda).q79 = function (completion) { return new SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda(this.aht_1, this.bht_1, this.cht_1, this.dht_1, completion); }; function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda_0(this$0, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda(this$0, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation); var l = function ($completion) { return i.ddg($completion); }; l.$arity = 0; return l; } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda($accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { this.mht_1 = $accountPersonUid; this.nht_1 = $firstPermission; this.oht_1 = $secondPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda).kdb = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda).le = function (p1, $completion) { return this.kdb((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.pht_1.x5i(1, this.mht_1); this.pht_1.x5i(2, this.mht_1); this.pht_1.x5i(3, this.nht_1); this.pht_1.x5i(4, this.mht_1); this.pht_1.x5i(5, this.mht_1); this.pht_1.x5i(6, this.oht_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.pht_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda).o5g = function (_stmt, completion) { var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda(this.mht_1, this.nht_1, this.oht_1, completion); i.pht_1 = _stmt; return i; }; function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda_0($accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda($accountPersonUid, $firstPermission, $secondPermission, resultContinuation); var l = function (_stmt, $completion) { return i.kdb(_stmt, $completion); }; l.$arity = 1; return l; } function SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda(this$0, $otherPersonUid, $accountPersonUid, resultContinuation) { this.yht_1 = this$0; this.zht_1 = $otherPersonUid; this.ahu_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda).bhu = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda).r79 = function ($completion) { return this.bhu($completion); }; protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n /* Similar to the query used on list all persons, however it uses the the otherpersonuid param \n * in the WHERE clauses to narrow down the search. \n */\n WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n /* Select personUids that can be viewed based on CoursePermission given to the active\n * user for their enrolment role in that course\n */\n (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n WHERE CAST(? AS BIGINT) != 0\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n \n UNION\n /* Select personUids that can be viewed based on CoursePermission for the active user\n where the CoursePermission is granted directly to them\n */ \n SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM CoursePermission\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n WHERE CAST(? AS BIGINT) != 0\n AND CoursePermission.cpToPersonUid = CAST(? AS BIGINT))\n \n SELECT ( (SELECT CAST(? AS BIGINT) = CAST(? AS BIGINT))\n OR EXISTS(SELECT 1\n FROM PersonParentJoin\n WHERE PersonParentJoin.ppjMinorPersonUid = CAST(? AS BIGINT)\n AND PersonParentJoin.ppjParentPersonUid = CAST(? AS BIGINT))\n OR (SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 8192\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (SELECT CAST(? AS BIGINT) IN \n (SELECT CanViewPersonUidsViaCoursePermission.personUid\n FROM CanViewPersonUidsViaCoursePermission)) \n ) AS hasViewPermission,\n \n ( (SELECT CAST(? AS BIGINT) = CAST(? AS BIGINT))\n OR EXISTS(SELECT 1\n FROM PersonParentJoin\n WHERE PersonParentJoin.ppjMinorPersonUid = CAST(? AS BIGINT)\n AND PersonParentJoin.ppjParentPersonUid = CAST(? AS BIGINT))\n OR (SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 32768\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n ) AS hasEditPermission\n ', VOID, VOID, VOID, '\n /* Similar to the query used on list all persons, however it uses the the otherpersonuid param \n * in the WHERE clauses to narrow down the search. \n */\n WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n /* Select personUids that can be viewed based on CoursePermission given to the active\n * user for their enrolment role in that course\n */\n (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid = ?\n WHERE ? != 0\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n \n UNION\n /* Select personUids that can be viewed based on CoursePermission for the active user\n where the CoursePermission is granted directly to them\n */ \n SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM CoursePermission\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid = ?\n WHERE ? != 0\n AND CoursePermission.cpToPersonUid = ?)\n \n SELECT ( (SELECT ? = ?)\n OR EXISTS(SELECT 1\n FROM PersonParentJoin\n WHERE PersonParentJoin.ppjMinorPersonUid = ?\n AND PersonParentJoin.ppjParentPersonUid = ?)\n OR (SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 8192\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (SELECT ? IN \n (SELECT CanViewPersonUidsViaCoursePermission.personUid\n FROM CanViewPersonUidsViaCoursePermission)) \n ) AS hasViewPermission,\n \n ( (SELECT ? = ?)\n OR EXISTS(SELECT 1\n FROM PersonParentJoin\n WHERE PersonParentJoin.ppjMinorPersonUid = ?\n AND PersonParentJoin.ppjParentPersonUid = ?)\n OR (SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 32768\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n ) AS hasEditPermission\n \n', true); suspendResult = prepareAndUseStatementAsync(this.yht_1.vhq_1, tmp_0, SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda_0(this.zht_1, this.ahu_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda).q79 = function (completion) { return new SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda(this.yht_1, this.zht_1, this.ahu_1, completion); }; function SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda_0(this$0, $otherPersonUid, $accountPersonUid, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda(this$0, $otherPersonUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.bhu($completion); }; l.$arity = 0; return l; } function SystemPermissionDao_JdbcImpl(_db) { SystemPermissionDao.call(this); this.vhq_1 = _db; var tmp = this; tmp.whq_1 = new SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1(this); } protoOf(SystemPermissionDao_JdbcImpl).eho = function (systemPermissions, $completion) { return this.whq_1.x5h(systemPermissions, $completion); }; protoOf(SystemPermissionDao_JdbcImpl).xhn = function (accountPersonUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['SystemPermission']; return doorFlow(this.vhq_1, tmp, SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda_0(this, accountPersonUid, null)); }; protoOf(SystemPermissionDao_JdbcImpl).yhn = function (accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT SystemPermission.*\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n LIMIT 1\n ', VOID, VOID, VOID, '\n SELECT SystemPermission.*\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n LIMIT 1\n \n', true); return prepareAndUseStatementAsync(this.vhq_1, tmp, SystemPermissionDao_JdbcImpl$findByPersonUid$slambda_0(accountPersonUid, null), $completion); }; protoOf(SystemPermissionDao_JdbcImpl).zhn = function (accountPersonUid, permission, $completion) { var tmp = new PreparedStatementConfig('\n SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n CAST(? AS BIGINT)\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n ', VOID, VOID, VOID, '\n SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n ?\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n \n', true); return prepareAndUseStatementAsync(this.vhq_1, tmp, SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda_0(accountPersonUid, permission, null), $completion); }; protoOf(SystemPermissionDao_JdbcImpl).aho = function (accountPersonUid, permission) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['SystemPermission']; return doorFlow(this.vhq_1, tmp, SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda_0(this, accountPersonUid, permission, null)); }; protoOf(SystemPermissionDao_JdbcImpl).bho = function (accountPersonUid, firstPermission, secondPermission) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['SystemPermission']; return doorFlow(this.vhq_1, tmp, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda_0(this, accountPersonUid, firstPermission, secondPermission, null)); }; protoOf(SystemPermissionDao_JdbcImpl).cho = function (accountPersonUid, firstPermission, secondPermission, $completion) { var tmp = new PreparedStatementConfig('\n SELECT (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n CAST(? AS BIGINT)\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ) as firstPermission,\n (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n CAST(? AS BIGINT)\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ) as secondPermission\n ', VOID, VOID, VOID, '\n SELECT (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n ?\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ) as firstPermission,\n (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n ?\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ) as secondPermission\n \n', true); return prepareAndUseStatementAsync(this.vhq_1, tmp, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda_0(accountPersonUid, firstPermission, secondPermission, null), $completion); }; protoOf(SystemPermissionDao_JdbcImpl).dho = function (accountPersonUid, otherPersonUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['PersonParentJoin', 'SystemPermission', 'ClazzEnrolment', 'CoursePermission']; return doorFlow(this.vhq_1, tmp, SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda_0(this, otherPersonUid, accountPersonUid, null)); }; function SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda(this$0, $accountPersonUid, resultContinuation) { this.khu_1 = this$0; this.lhu_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.mhu_1 = this.khu_1.vhu_1; var tmp_1 = this; tmp_1.nhu_1 = 'SystemPermissionDao/findByPersonUidAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.ohu_1 = this.khu_1.xhu_1; var tmp_3 = this; tmp_3.phu_1 = this.ohu_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.khu_1.vhu_1.t39(), 'SystemPermissionDao/findByPersonUidAsFlow'); doorNodeIdHeader(this_0, this.khu_1.vhu_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.khu_1.vhu_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.lhu_1)); tmp_4.qhu_1 = this_0; this.qhu_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.rhu_1 = this.phu_1; var tmp_6 = this; tmp_6.shu_1 = this.qhu_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.shu_1, this.rhu_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.thu_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.khu_1.uhu_1, this.thu_1, this.khu_1.vhu_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda$lambda(this.mhu_1, this.nhu_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda).q79 = function (completion) { return new SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda(this.khu_1, this.lhu_1, completion); }; function SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda_0(this$0, $accountPersonUid, resultContinuation) { var i = new SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda(this$0, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function SystemPermissionDao_Repo$personHasSystemPermission$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda(this$0, $accountPersonUid, $permission, resultContinuation) { this.jhv_1 = this$0; this.khv_1 = $accountPersonUid; this.lhv_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.mhv_1 = this.jhv_1.vhu_1; var tmp_1 = this; tmp_1.nhv_1 = 'SystemPermissionDao/personHasSystemPermissionAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.ohv_1 = this.jhv_1.xhu_1; var tmp_3 = this; tmp_3.phv_1 = this.ohv_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.jhv_1.vhu_1.t39(), 'SystemPermissionDao/personHasSystemPermissionAsFlow'); doorNodeIdHeader(this_0, this.jhv_1.vhu_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.jhv_1.vhu_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.khv_1)); parameter(this_0, 'permission', this.jhv_1.vhu_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.lhv_1)); tmp_4.qhv_1 = this_0; this.qhv_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.rhv_1 = this.phv_1; var tmp_6 = this; tmp_6.shv_1 = this.qhv_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.shv_1, this.rhv_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.thv_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.jhv_1.uhu_1, this.thv_1, this.jhv_1.vhu_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda$lambda(this.mhv_1, this.nhv_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda).q79 = function (completion) { return new SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda(this.jhv_1, this.khv_1, this.lhv_1, completion); }; function SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda_0(this$0, $accountPersonUid, $permission, resultContinuation) { var i = new SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda(this$0, $accountPersonUid, $permission, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda(this$0, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { this.chw_1 = this$0; this.dhw_1 = $accountPersonUid; this.ehw_1 = $firstPermission; this.fhw_1 = $secondPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.ghw_1 = this.chw_1.vhu_1; var tmp_1 = this; tmp_1.hhw_1 = 'SystemPermissionDao/personHasSystemPermissionPairAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.ihw_1 = this.chw_1.xhu_1; var tmp_3 = this; tmp_3.jhw_1 = this.ihw_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.chw_1.vhu_1.t39(), 'SystemPermissionDao/personHasSystemPermissionPairAsFlow'); doorNodeIdHeader(this_0, this.chw_1.vhu_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.chw_1.vhu_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.dhw_1)); parameter(this_0, 'firstPermission', this.chw_1.vhu_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ehw_1)); parameter(this_0, 'secondPermission', this.chw_1.vhu_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.fhw_1)); tmp_4.khw_1 = this_0; this.khw_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.lhw_1 = this.jhw_1; var tmp_6 = this; tmp_6.mhw_1 = this.khw_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.mhw_1, this.lhw_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.nhw_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.chw_1.uhu_1, this.nhw_1, this.chw_1.vhu_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda$lambda(this.ghw_1, this.hhw_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda).q79 = function (completion) { return new SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda(this.chw_1, this.dhw_1, this.ehw_1, this.fhw_1, completion); }; function SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda_0(this$0, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { var i = new SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda(this$0, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function SystemPermissionDao_Repo$personHasSystemPermissionPair$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda(this$0, $accountPersonUid, $otherPersonUid, resultContinuation) { this.whw_1 = this$0; this.xhw_1 = $accountPersonUid; this.yhw_1 = $otherPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.zhw_1 = this.whw_1.vhu_1; var tmp_1 = this; tmp_1.ahx_1 = 'SystemPermissionDao/personHasEditAndViewPermissionForPersonAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.bhx_1 = this.whw_1.xhu_1; var tmp_3 = this; tmp_3.chx_1 = this.bhx_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.whw_1.vhu_1.t39(), 'SystemPermissionDao/personHasEditAndViewPermissionForPersonAsFlow'); doorNodeIdHeader(this_0, this.whw_1.vhu_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.whw_1.vhu_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.xhw_1)); parameter(this_0, 'otherPersonUid', this.whw_1.vhu_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.yhw_1)); tmp_4.dhx_1 = this_0; this.dhx_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.ehx_1 = this.chx_1; var tmp_6 = this; tmp_6.fhx_1 = this.dhx_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.fhx_1, this.ehx_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ghx_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.whw_1.uhu_1, this.ghx_1, this.whw_1.vhu_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda$lambda(this.zhw_1, this.ahx_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda).q79 = function (completion) { return new SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda(this.whw_1, this.xhw_1, this.yhw_1, completion); }; function SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda_0(this$0, $accountPersonUid, $otherPersonUid, resultContinuation) { var i = new SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda(this$0, $accountPersonUid, $otherPersonUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function SystemPermissionDao_Repo$upsertAsync$slambda(this$0, $systemPermissions, resultContinuation) { this.phx_1 = this$0; this.qhx_1 = $systemPermissions; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_Repo$upsertAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SystemPermissionDao_Repo$upsertAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(SystemPermissionDao_Repo$upsertAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.phx_1.whu_1.eho(this.qhx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(SystemPermissionDao_Repo$upsertAsync$slambda).q79 = function (completion) { return new SystemPermissionDao_Repo$upsertAsync$slambda(this.phx_1, this.qhx_1, completion); }; function SystemPermissionDao_Repo$upsertAsync$slambda_0(this$0, $systemPermissions, resultContinuation) { var i = new SystemPermissionDao_Repo$upsertAsync$slambda(this$0, $systemPermissions, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function $findByPersonUidCOROUTINE$408(_this__u8e3s4, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.zhx_1 = _this__u8e3s4; this.ahy_1 = accountPersonUid; } protoOf($findByPersonUidCOROUTINE$408).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.zhx_1.whu_1.yhn(this.ahy_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $personHasSystemPermissionCOROUTINE$409(_this__u8e3s4, accountPersonUid, permission, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.jhy_1 = _this__u8e3s4; this.khy_1 = accountPersonUid; this.lhy_1 = permission; } protoOf($personHasSystemPermissionCOROUTINE$409).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.mhy_1 = this.jhy_1.vhu_1; var tmp_1 = this; tmp_1.nhy_1 = 'SystemPermissionDao/personHasSystemPermission'; this.md_1 = 3; var tmp_2 = this; tmp_2.ohy_1 = this.jhy_1.xhu_1; var tmp_3 = this; tmp_3.phy_1 = this.ohy_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.jhy_1.vhu_1.t39(), 'SystemPermissionDao/personHasSystemPermission'); doorNodeIdHeader(this_0, this.jhy_1.vhu_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.jhy_1.vhu_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.khy_1)); parameter(this_0, 'permission', this.jhy_1.vhu_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.lhy_1)); tmp_4.qhy_1 = this_0; this.qhy_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.rhy_1 = this.phy_1; var tmp_6 = this; tmp_6.shy_1 = this.qhy_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.shy_1, this.rhy_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.thy_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.jhy_1.uhu_1, this.thy_1, this.jhy_1.vhu_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.uhy_1 = this.od_1; Napier_getInstance().e5f(this.uhy_1, 'DoorLog', SystemPermissionDao_Repo$personHasSystemPermission$lambda(this.mhy_1, this.nhy_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.jhy_1.whu_1.zhn(this.khy_1, this.lhy_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $personHasSystemPermissionPairCOROUTINE$410(_this__u8e3s4, accountPersonUid, firstPermission, secondPermission, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dhz_1 = _this__u8e3s4; this.ehz_1 = accountPersonUid; this.fhz_1 = firstPermission; this.ghz_1 = secondPermission; } protoOf($personHasSystemPermissionPairCOROUTINE$410).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.hhz_1 = this.dhz_1.vhu_1; var tmp_1 = this; tmp_1.ihz_1 = 'SystemPermissionDao/personHasSystemPermissionPair'; this.md_1 = 3; var tmp_2 = this; tmp_2.jhz_1 = this.dhz_1.xhu_1; var tmp_3 = this; tmp_3.khz_1 = this.jhz_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.dhz_1.vhu_1.t39(), 'SystemPermissionDao/personHasSystemPermissionPair'); doorNodeIdHeader(this_0, this.dhz_1.vhu_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.dhz_1.vhu_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ehz_1)); parameter(this_0, 'firstPermission', this.dhz_1.vhu_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.fhz_1)); parameter(this_0, 'secondPermission', this.dhz_1.vhu_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ghz_1)); tmp_4.lhz_1 = this_0; this.lhz_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.mhz_1 = this.khz_1; var tmp_6 = this; tmp_6.nhz_1 = this.lhz_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.nhz_1, this.mhz_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ohz_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.dhz_1.uhu_1, this.ohz_1, this.dhz_1.vhu_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.phz_1 = this.od_1; Napier_getInstance().e5f(this.phz_1, 'DoorLog', SystemPermissionDao_Repo$personHasSystemPermissionPair$lambda(this.hhz_1, this.ihz_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.dhz_1.whu_1.cho(this.ehz_1, this.fhz_1, this.ghz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function SystemPermissionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { SystemPermissionDao.call(this); this.uhu_1 = _db; this.vhu_1 = _repo; this.whu_1 = _dao; this.xhu_1 = _httpClient; this.yhu_1 = _clientId; this.zhu_1 = _endpoint; this.ahv_1 = new RepoDaoFlowHelper(this.vhu_1); } protoOf(SystemPermissionDao_Repo).xhn = function (accountPersonUid) { var tmp = this.whu_1.xhn(accountPersonUid); return this.ahv_1.r68(tmp, SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda_0(this, accountPersonUid, null)); }; protoOf(SystemPermissionDao_Repo).yhn = function (accountPersonUid, $completion) { var tmp = new $findByPersonUidCOROUTINE$408(this, accountPersonUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SystemPermissionDao_Repo).zhn = function (accountPersonUid, permission, $completion) { var tmp = new $personHasSystemPermissionCOROUTINE$409(this, accountPersonUid, permission, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SystemPermissionDao_Repo).aho = function (accountPersonUid, permission) { var tmp = this.whu_1.aho(accountPersonUid, permission); return this.ahv_1.r68(tmp, SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda_0(this, accountPersonUid, permission, null)); }; protoOf(SystemPermissionDao_Repo).bho = function (accountPersonUid, firstPermission, secondPermission) { var tmp = this.whu_1.bho(accountPersonUid, firstPermission, secondPermission); return this.ahv_1.r68(tmp, SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda_0(this, accountPersonUid, firstPermission, secondPermission, null)); }; protoOf(SystemPermissionDao_Repo).cho = function (accountPersonUid, firstPermission, secondPermission, $completion) { var tmp = new $personHasSystemPermissionPairCOROUTINE$410(this, accountPersonUid, firstPermission, secondPermission, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(SystemPermissionDao_Repo).dho = function (accountPersonUid, otherPersonUid) { var tmp = this.whu_1.dho(accountPersonUid, otherPersonUid); return this.ahv_1.r68(tmp, SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda_0(this, accountPersonUid, otherPersonUid, null)); }; protoOf(SystemPermissionDao_Repo).eho = function (systemPermissions, $completion) { return withRepoChangeMonitorAsync(this.vhu_1, 'SystemPermission', SystemPermissionDao_Repo$upsertAsync$slambda_0(this, systemPermissions, null), $completion); }; function TransferJobDao() { } function TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda$lambda(_result) { return mapRows(_result, TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda$lambda$lambda(_result)); } function TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_totalSize = $_result.b5o('totalSize'); var _tmp_transferred = $_result.b5o('transferred'); var _tmp_latestErrorStr = $_result.b10('latestErrorStr'); var _tmp_TransferJob_nullCount = 0; var _tmp_tjUid = $_result.a5o('tjUid'); var tmp; if ($_result.t68()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_tjType = $_result.a5o('tjType'); var tmp_0; if ($_result.t68()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_tjStatus = $_result.a5o('tjStatus'); var tmp_1; if ($_result.t68()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_tjName = $_result.b10('tjName'); var tmp_2; if ($_result.t68()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_tjUuid = $_result.b10('tjUuid'); var tmp_3; if ($_result.t68()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_tjTableId = $_result.a5o('tjTableId'); var tmp_4; if ($_result.t68()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_tjEntityUid = $_result.b5o('tjEntityUid'); var tmp_5; if ($_result.t68()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_tjTimeCreated = $_result.b5o('tjTimeCreated'); var tmp_6; if ($_result.t68()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_tjCreationType = $_result.a5o('tjCreationType'); var tmp_7; if ($_result.t68()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_tjOiUid = $_result.b5o('tjOiUid'); var tmp_8; if ($_result.t68()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_TransferJob_isAllNull = _tmp_TransferJob_nullCount === 10; // Inline function 'kotlin.apply' call var this_0 = new TransferJobAndTotals(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.TransferJobDao_JdbcImpl.findByContentEntryUidWithTotalsAsFlow.....' call this_0.fff_1 = _tmp_totalSize; this_0.gff_1 = _tmp_transferred; this_0.hff_1 = _tmp_latestErrorStr; if (!_tmp_TransferJob_isAllNull) { var tmp_9 = this_0; // Inline function 'kotlin.apply' call var this_1 = new TransferJob(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.TransferJobDao_JdbcImpl.findByContentEntryUidWithTotalsAsFlow......' call this_1.iff_1 = _tmp_tjUid; this_1.jff_1 = _tmp_tjType; this_1.kff_1 = _tmp_tjStatus; this_1.lff_1 = _tmp_tjName; this_1.mff_1 = _tmp_tjUuid; this_1.nff_1 = _tmp_tjTableId; this_1.off_1 = _tmp_tjEntityUid; this_1.pff_1 = _tmp_tjTimeCreated; this_1.qff_1 = _tmp_tjCreationType; this_1.rff_1 = _tmp_tjOiUid; tmp_9.eff_1 = this_1; } return this_0; }; } function TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda($contentEntryUid, $jobType, resultContinuation) { this.bi0_1 = $contentEntryUid; this.ci0_1 = $jobType; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda).ei0 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda).le = function (p1, $completion) { return this.ei0((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.di0_1.x5i(1, this.bi0_1); this.di0_1.w5i(2, this.ci0_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.di0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda(this.bi0_1, this.ci0_1, completion); i.di0_1 = _stmt; return i; }; function TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda_0($contentEntryUid, $jobType, resultContinuation) { var i = new TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda($contentEntryUid, $jobType, resultContinuation); var l = function (_stmt, $completion) { return i.ei0(_stmt, $completion); }; l.$arity = 1; return l; } function TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.fi0_1); } protoOf(TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1).w5h = function (returnsId) { return 'INSERT INTO TransferJob (tjUid, tjType, tjStatus, tjName, tjUuid, tjTableId, tjEntityUid, tjTimeCreated, tjCreationType, tjOiUid) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1).ji0 = function (stmt, entity) { if (entity.iff_1 === 0) { stmt.c5j(1, null); } else { stmt.w5i(1, entity.iff_1); } stmt.w5i(2, entity.jff_1); stmt.w5i(3, entity.kff_1); stmt.a5j(4, entity.lff_1); stmt.a5j(5, entity.mff_1); stmt.w5i(6, entity.nff_1); stmt.x5i(7, entity.off_1); stmt.x5i(8, entity.pff_1); stmt.w5i(9, entity.qff_1); stmt.x5i(10, entity.rff_1); }; protoOf(TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1).r5g = function (stmt, entity) { return this.ji0(stmt, entity instanceof TransferJob ? entity : THROW_CCE()); }; function TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda($jobUid, resultContinuation) { this.si0_1 = $jobUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ti0_1.w5i(1, this.si0_1); this.ti0_1.w5i(2, this.si0_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.ti0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda).o5g = function (_stmt, completion) { var i = new TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda(this.si0_1, completion); i.ti0_1 = _stmt; return i; }; function TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda_0($jobUid, resultContinuation) { var i = new TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda($jobUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda(this$0, $contentEntryUid, $jobType, resultContinuation) { this.ci1_1 = this$0; this.di1_1 = $contentEntryUid; this.ei1_1 = $jobType; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda).fi1 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda).r79 = function ($completion) { return this.fi1($completion); }; protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT TransferJob.*,\n \n (SELECT SUM(TransferJobItem.tjTotalSize)\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = TransferJob.tjUid) AS totalSize,\n (SELECT SUM(TransferJobItem.tjTransferred)\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = TransferJob.tjUid) AS transferred \n ,\n TransferJobError.tjeErrorStr AS latestErrorStr\n FROM TransferJob\n LEFT JOIN TransferJobError\n ON TransferJobError.tjeId = \n (SELECT TransferJobError.tjeId\n FROM TransferJobError\n WHERE TransferJob.tjStatus = 22\n AND TransferJobError.tjeTjUid = TransferJob.tjUid\n ORDER BY TransferJobError.tjeDismissed DESC \n LIMIT 1)\n WHERE TransferJob.tjTableId = 738\n AND TransferJob.tjEntityUid IN \n \n (SELECT ContentEntryVersion.cevUid\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = CAST(? AS BIGINT))\n \n AND ( TransferJob.tjStatus < 21\n OR (TransferJobError.tjeErrorStr IS NOT NULL AND NOT TransferJobError.tjeDismissed))\n AND TransferJob.tjType = ? \n ', VOID, VOID, VOID, '\n SELECT TransferJob.*,\n \n (SELECT SUM(TransferJobItem.tjTotalSize)\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = TransferJob.tjUid) AS totalSize,\n (SELECT SUM(TransferJobItem.tjTransferred)\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = TransferJob.tjUid) AS transferred \n ,\n TransferJobError.tjeErrorStr AS latestErrorStr\n FROM TransferJob\n LEFT JOIN TransferJobError\n ON TransferJobError.tjeId = \n (SELECT TransferJobError.tjeId\n FROM TransferJobError\n WHERE TransferJob.tjStatus = 22\n AND TransferJobError.tjeTjUid = TransferJob.tjUid\n ORDER BY TransferJobError.tjeDismissed DESC \n LIMIT 1)\n WHERE TransferJob.tjTableId = 738\n AND TransferJob.tjEntityUid IN \n \n (SELECT ContentEntryVersion.cevUid\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = ?)\n \n AND ( TransferJob.tjStatus < 21\n OR (TransferJobError.tjeErrorStr IS NOT NULL AND NOT TransferJobError.tjeDismissed))\n AND TransferJob.tjType = ? \n \n', true); suspendResult = prepareAndUseStatementAsync(this.ci1_1.fi0_1, tmp_0, TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda_0(this.di1_1, this.ei1_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda).q79 = function (completion) { return new TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda(this.ci1_1, this.di1_1, this.ei1_1, completion); }; function TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda_0(this$0, $contentEntryUid, $jobType, resultContinuation) { var i = new TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda(this$0, $contentEntryUid, $jobType, resultContinuation); var l = function ($completion) { return i.fi1($completion); }; l.$arity = 0; return l; } function $insertCOROUTINE$411(_this__u8e3s4, job, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.oi1_1 = _this__u8e3s4; this.pi1_1 = job; } protoOf($insertCOROUTINE$411).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.oi1_1.gi0_1.y5h(this.pi1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function TransferJobDao_JdbcImpl(_db) { TransferJobDao.call(this); this.fi0_1 = _db; var tmp = this; tmp.gi0_1 = new TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1(this); } protoOf(TransferJobDao_JdbcImpl).qhz = function (job, $completion) { var tmp = new $insertCOROUTINE$411(this, job, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(TransferJobDao_JdbcImpl).rhz = function (jobUid, $completion) { var tmp = new PreparedStatementConfig('\n UPDATE TransferJob\n SET tjStatus = 21\n WHERE tjUid = ?\n AND NOT EXISTS(\n SELECT TransferJobItem.tjiUid\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = ?\n AND TransferJobItem.tjiStatus != 21) \n ', VOID, VOID, VOID, VOID, false); return prepareAndUseStatementAsync(this.fi0_1, tmp, TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda_0(jobUid, null), $completion); }; protoOf(TransferJobDao_JdbcImpl).shz = function (contentEntryUid, jobType) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ContentEntryVersion', 'TransferJobItem', 'TransferJobError', 'TransferJob']; return doorFlow(this.fi0_1, tmp, TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda_0(this, contentEntryUid, jobType, null)); }; function TransferJobErrorDao() { } function TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.qi1_1); } protoOf(TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1).w5h = function (returnsId) { return 'INSERT INTO TransferJobError (tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed) VALUES(?, ?, ?, ?, ?)'; }; protoOf(TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1).ui1 = function (stmt, entity) { if (entity.vi1_1 === 0) { stmt.c5j(1, null); } else { stmt.w5i(1, entity.vi1_1); } stmt.w5i(2, entity.wi1_1); stmt.x5i(3, entity.xi1_1); stmt.a5j(4, entity.yi1_1); stmt.k5i(5, entity.zi1_1); }; protoOf(TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1).r5g = function (stmt, entity) { return this.ui1(stmt, entity instanceof TransferJobError ? entity : THROW_CCE()); }; function TransferJobErrorDao_JdbcImpl(_db) { TransferJobErrorDao.call(this); this.qi1_1 = _db; var tmp = this; tmp.ri1_1 = new TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1(this); } function TransferJobItemDao() { } function TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.fi2_1); } protoOf(TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1).w5h = function (returnsId) { return 'INSERT INTO TransferJobItem (tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1).ji2 = function (stmt, entity) { if (entity.mbz_1 === 0) { stmt.c5j(1, null); } else { stmt.w5i(1, entity.mbz_1); } stmt.w5i(2, entity.nbz_1); stmt.x5i(3, entity.obz_1); stmt.x5i(4, entity.pbz_1); stmt.w5i(5, entity.qbz_1); stmt.a5j(6, entity.rbz_1); stmt.a5j(7, entity.sbz_1); stmt.w5i(8, entity.tbz_1); stmt.w5i(9, entity.ubz_1); stmt.w5i(10, entity.vbz_1); stmt.x5i(11, entity.wbz_1); stmt.x5i(12, entity.xbz_1); stmt.x5i(13, entity.ybz_1); stmt.a5j(14, entity.zbz_1); }; protoOf(TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1).r5g = function (stmt, entity) { return this.ji2(stmt, entity instanceof TransferJobItem ? entity : THROW_CCE()); }; function TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda($transferred, $jobItemUid, resultContinuation) { this.si2_1 = $transferred; this.ti2_1 = $jobItemUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ui2_1.x5i(1, this.si2_1); this.ui2_1.w5i(2, this.ti2_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.ui2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda).o5g = function (_stmt, completion) { var i = new TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda(this.si2_1, this.ti2_1, completion); i.ui2_1 = _stmt; return i; }; function TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda_0($transferred, $jobItemUid, resultContinuation) { var i = new TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda($transferred, $jobItemUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function TransferJobItemDao_JdbcImpl$updateStatus$slambda($status, $jobItemUid, resultContinuation) { this.di3_1 = $status; this.ei3_1 = $jobItemUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobItemDao_JdbcImpl$updateStatus$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(TransferJobItemDao_JdbcImpl$updateStatus$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobItemDao_JdbcImpl$updateStatus$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.fi3_1.w5i(1, this.di3_1); this.fi3_1.w5i(2, this.ei3_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.fi3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(TransferJobItemDao_JdbcImpl$updateStatus$slambda).o5g = function (_stmt, completion) { var i = new TransferJobItemDao_JdbcImpl$updateStatus$slambda(this.di3_1, this.ei3_1, completion); i.fi3_1 = _stmt; return i; }; function TransferJobItemDao_JdbcImpl$updateStatus$slambda_0($status, $jobItemUid, resultContinuation) { var i = new TransferJobItemDao_JdbcImpl$updateStatus$slambda($status, $jobItemUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda($destNodeId, $transferJobItemUid, resultContinuation) { this.oi3_1 = $destNodeId; this.pi3_1 = $transferJobItemUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.qi3_1.x5i(1, this.oi3_1); this.qi3_1.w5i(2, this.pi3_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.qi3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda).o5g = function (_stmt, completion) { var i = new TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda(this.oi3_1, this.pi3_1, completion); i.qi3_1 = _stmt; return i; }; function TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda_0($destNodeId, $transferJobItemUid, resultContinuation) { var i = new TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda($destNodeId, $transferJobItemUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda($status, $jobUid, resultContinuation) { this.zi3_1 = $status; this.ai4_1 = $jobUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.bi4_1.w5i(1, this.zi3_1); this.bi4_1.w5i(2, this.ai4_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.bi4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda).o5g = function (_stmt, completion) { var i = new TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda(this.zi3_1, this.ai4_1, completion); i.bi4_1 = _stmt; return i; }; function TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda_0($status, $jobUid, resultContinuation) { var i = new TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda($status, $jobUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function $insertCOROUTINE$414(_this__u8e3s4, item, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ki4_1 = _this__u8e3s4; this.li4_1 = item; } protoOf($insertCOROUTINE$414).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.ki4_1.gi2_1.y5h(this.li4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateTransferredProgressCOROUTINE$415(_this__u8e3s4, jobItemUid, transferred, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ui4_1 = _this__u8e3s4; this.vi4_1 = jobItemUid; this.wi4_1 = transferred; } protoOf($updateTransferredProgressCOROUTINE$415).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE TransferJobItem\n SET tjTransferred = CAST(? AS BIGINT)\n WHERE tjiUid = ?\n ', VOID, VOID, VOID, '\n UPDATE TransferJobItem\n SET tjTransferred = ?\n WHERE tjiUid = ?\n \n', false); suspendResult = prepareAndUseStatementAsync(this.ui4_1.fi2_1, tmp_0, TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda_0(this.wi4_1, this.vi4_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateStatusCOROUTINE$416(_this__u8e3s4, jobItemUid, status, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.fi5_1 = _this__u8e3s4; this.gi5_1 = jobItemUid; this.hi5_1 = status; } protoOf($updateStatusCOROUTINE$416).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE TransferJobItem\n SET tjiStatus = ?\n WHERE tjiUid = ? \n ', VOID, VOID, VOID, VOID, false); suspendResult = prepareAndUseStatementAsync(this.fi5_1.fi2_1, tmp_0, TransferJobItemDao_JdbcImpl$updateStatus$slambda_0(this.hi5_1, this.gi5_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $insertOutgoingReplicationForTransferJobItemIfDoneCOROUTINE$417(_this__u8e3s4, destNodeId, transferJobItemUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qi5_1 = _this__u8e3s4; this.ri5_1 = destNodeId; this.si5_1 = transferJobItemUid; } protoOf($insertOutgoingReplicationForTransferJobItemIfDoneCOROUTINE$417).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n INSERT INTO OutgoingReplication(destNodeId, orTableId, orPk1, orPk2)\n SELECT CAST(? AS BIGINT) AS destNodeId, \n TransferJobItem.tjiTableId AS orTableId,\n TransferJobItem.tjiEntityUid AS orPk1,\n 0 AS orPk2\n FROM TransferJobItem\n WHERE TransferJobItem.tjiUid = ?\n AND TransferJobItem.tjiTableId != 0\n AND TransferJobItem.tjiStatus = 21\n AND NOT EXISTS(\n SELECT OtherJob.tjiUid\n FROM TransferJobItem OtherJob\n WHERE OtherJob.tjiTableId = TransferJobItem.tjiTableId\n AND OtherJob.tjiEntityUid = TransferJobItem.tjiEntityUid\n AND OtherJob.tjiEntityEtag = TransferJobItem.tjiEntityEtag\n AND OtherJob.tjiStatus != 21)\n ', VOID, VOID, VOID, '\n INSERT INTO OutgoingReplication(destNodeId, orTableId, orPk1, orPk2)\n SELECT ? AS destNodeId, \n TransferJobItem.tjiTableId AS orTableId,\n TransferJobItem.tjiEntityUid AS orPk1,\n 0 AS orPk2\n FROM TransferJobItem\n WHERE TransferJobItem.tjiUid = ?\n AND TransferJobItem.tjiTableId != 0\n AND TransferJobItem.tjiStatus = 21\n AND NOT EXISTS(\n SELECT OtherJob.tjiUid\n FROM TransferJobItem OtherJob\n WHERE OtherJob.tjiTableId = TransferJobItem.tjiTableId\n AND OtherJob.tjiEntityUid = TransferJobItem.tjiEntityUid\n AND OtherJob.tjiEntityEtag = TransferJobItem.tjiEntityEtag\n AND OtherJob.tjiStatus != 21)\n \n', false); suspendResult = prepareAndUseStatementAsync(this.qi5_1.fi2_1, tmp_0, TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda_0(this.ri5_1, this.si5_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateStatusIfNotCompleteForAllInJobCOROUTINE$418(_this__u8e3s4, jobUid, status, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bi6_1 = _this__u8e3s4; this.ci6_1 = jobUid; this.di6_1 = status; } protoOf($updateStatusIfNotCompleteForAllInJobCOROUTINE$418).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE TransferJobItem\n SET tjiStatus = ?\n WHERE tjiTjUid = ?\n AND tjiStatus != 21 \n ', VOID, VOID, VOID, VOID, false); suspendResult = prepareAndUseStatementAsync(this.bi6_1.fi2_1, tmp_0, TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda_0(this.di6_1, this.ci6_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function TransferJobItemDao_JdbcImpl(_db) { TransferJobItemDao.call(this); this.fi2_1 = _db; var tmp = this; tmp.gi2_1 = new TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1(this); } protoOf(TransferJobItemDao_JdbcImpl).ai2 = function (item, $completion) { var tmp = new $insertCOROUTINE$414(this, item, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(TransferJobItemDao_JdbcImpl).bi2 = function (jobItemUid, transferred, $completion) { var tmp = new $updateTransferredProgressCOROUTINE$415(this, jobItemUid, transferred, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(TransferJobItemDao_JdbcImpl).ci2 = function (jobItemUid, status, $completion) { var tmp = new $updateStatusCOROUTINE$416(this, jobItemUid, status, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(TransferJobItemDao_JdbcImpl).di2 = function (destNodeId, transferJobItemUid, $completion) { var tmp = new $insertOutgoingReplicationForTransferJobItemIfDoneCOROUTINE$417(this, destNodeId, transferJobItemUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(TransferJobItemDao_JdbcImpl).ei2 = function (jobUid, status, $completion) { var tmp = new $updateStatusIfNotCompleteForAllInJobCOROUTINE$418(this, jobUid, status, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function UserSessionDao() { } function $insertSessionCOROUTINE$419(_this__u8e3s4, session, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ri6_1 = _this__u8e3s4; this.si6_1 = session; } protoOf($insertSessionCOROUTINE$419).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; this.ti6_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.ri6_1.vi6_1)); if (this.si6_1.xi6_1.equals(new Long(0, 0))) { this.ld_1 = 1; suspendResult = this.ti6_1.r63(679, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 2; continue $sm; } case 1: this.ui6_1 = suspendResult; this.si6_1.xi6_1 = this.ui6_1; this.ld_1 = 2; continue $sm; case 2: this.si6_1.bi7_1 = systemTimeInMillis(); this.ld_1 = 3; suspendResult = this.ri6_1.wi6_1.ei6(this.si6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.si6_1.xi6_1; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function UserSessionDao_DoorWrapper(_db, _dao) { UserSessionDao.call(this); this.vi6_1 = _db; this.wi6_1 = _dao; } protoOf(UserSessionDao_DoorWrapper).ei6 = function (session, $completion) { var tmp = new $insertSessionCOROUTINE$419(this, session, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(UserSessionDao_DoorWrapper).fi6 = function () { return this.wi6_1.fi6(); }; protoOf(UserSessionDao_DoorWrapper).gi6 = function ($completion) { return this.wi6_1.gi6($completion); }; protoOf(UserSessionDao_DoorWrapper).hi6 = function (maxDateOfBirth, $completion) { return this.wi6_1.hi6(maxDateOfBirth, $completion); }; protoOf(UserSessionDao_DoorWrapper).ii6 = function (sessionUid, newStatus, reason, endTime, $completion) { return this.wi6_1.ii6(sessionUid, newStatus, reason, endTime, $completion); }; function UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda$lambda(_result) { return mapRows(_result, UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda$lambda$lambda(_result)); } function UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.b5o('personUid'); var tmp; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_username = $_result.b10('username'); var tmp_0; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_firstNames = $_result.b10('firstNames'); var tmp_1; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_lastName = $_result.b10('lastName'); var tmp_2; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_emailAddr = $_result.b10('emailAddr'); var tmp_3; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_phoneNum = $_result.b10('phoneNum'); var tmp_4; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_gender = $_result.a5o('gender'); var tmp_5; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_active = $_result.m67('active'); var tmp_6; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_dateOfBirth = $_result.b5o('dateOfBirth'); var tmp_7; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_personAddress = $_result.b10('personAddress'); var tmp_8; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_personOrgId = $_result.b10('personOrgId'); var tmp_9; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_personGroupUid = $_result.b5o('personGroupUid'); var tmp_10; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_personLct = $_result.b5o('personLct'); var tmp_11; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_personCountry = $_result.b10('personCountry'); var tmp_12; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_personType = $_result.a5o('personType'); var tmp_13; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_personMasterChangeSeqNum = $_result.b5o('personMasterChangeSeqNum'); var tmp_14; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_personLocalChangeSeqNum = $_result.b5o('personLocalChangeSeqNum'); var tmp_15; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_personLastChangedBy = $_result.a5o('personLastChangedBy'); var tmp_16; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_admin = $_result.m67('admin'); var tmp_17; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_personNotes = $_result.b10('personNotes'); var tmp_18; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_fatherName = $_result.b10('fatherName'); var tmp_19; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_fatherNumber = $_result.b10('fatherNumber'); var tmp_20; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_motherName = $_result.b10('motherName'); var tmp_21; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_motherNum = $_result.b10('motherNum'); var tmp_22; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.b5o('personPictureUid'); var tmp_23; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_personPictureLct = $_result.b5o('personPictureLct'); var tmp_24; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_personPictureUri = $_result.b10('personPictureUri'); var tmp_25; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_personPictureThumbnailUri = $_result.b10('personPictureThumbnailUri'); var tmp_26; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_fileSize = $_result.a5o('fileSize'); var tmp_27; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_personPictureActive = $_result.m67('personPictureActive'); var tmp_28; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; var _tmp_UserSession_nullCount = 0; var _tmp_usUid = $_result.b5o('usUid'); var tmp_29; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_usPcsn = $_result.b5o('usPcsn'); var tmp_30; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_30 = Unit_instance; } var _tmp_usLcsn = $_result.b5o('usLcsn'); var tmp_31; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_31 = Unit_instance; } var _tmp_usLcb = $_result.b5o('usLcb'); var tmp_32; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_32 = Unit_instance; } var _tmp_usLct = $_result.b5o('usLct'); var tmp_33; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_33 = Unit_instance; } var _tmp_usPersonUid = $_result.b5o('usPersonUid'); var tmp_34; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_34 = Unit_instance; } var _tmp_usClientNodeId = $_result.b5o('usClientNodeId'); var tmp_35; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_35 = Unit_instance; } var _tmp_usStartTime = $_result.b5o('usStartTime'); var tmp_36; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_36 = Unit_instance; } var _tmp_usEndTime = $_result.b5o('usEndTime'); var tmp_37; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_37 = Unit_instance; } var _tmp_usStatus = $_result.a5o('usStatus'); var tmp_38; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_38 = Unit_instance; } var _tmp_usReason = $_result.a5o('usReason'); var tmp_39; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_39 = Unit_instance; } var _tmp_usAuth = $_result.b10('usAuth'); var tmp_40; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_40 = Unit_instance; } var _tmp_usSessionType = $_result.a5o('usSessionType'); var tmp_41; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_41 = Unit_instance; } var _tmp_UserSession_isAllNull = _tmp_UserSession_nullCount === 13; // Inline function 'kotlin.apply' call var this_0 = new UserSessionAndPerson(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsLive.....' call if (!_tmp_Person_isAllNull) { var tmp_42 = this_0; // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsLive......' call this_1.a97_1 = _tmp_personUid; this_1.b97_1 = _tmp_username; this_1.c97_1 = _tmp_firstNames; this_1.d97_1 = _tmp_lastName; this_1.e97_1 = _tmp_emailAddr; this_1.f97_1 = _tmp_phoneNum; this_1.g97_1 = _tmp_gender; this_1.h97_1 = _tmp_active; this_1.i97_1 = _tmp_dateOfBirth; this_1.j97_1 = _tmp_personAddress; this_1.k97_1 = _tmp_personOrgId; this_1.l97_1 = _tmp_personGroupUid; this_1.m97_1 = _tmp_personLct; this_1.n97_1 = _tmp_personCountry; this_1.o97_1 = _tmp_personType; this_1.p97_1 = _tmp_personMasterChangeSeqNum; this_1.q97_1 = _tmp_personLocalChangeSeqNum; this_1.r97_1 = _tmp_personLastChangedBy; this_1.s97_1 = _tmp_admin; this_1.t97_1 = _tmp_personNotes; this_1.u97_1 = _tmp_fatherName; this_1.v97_1 = _tmp_fatherNumber; this_1.w97_1 = _tmp_motherName; this_1.x97_1 = _tmp_motherNum; tmp_42.ki7_1 = this_1; } if (!_tmp_PersonPicture_isAllNull) { var tmp_43 = this_0; // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsLive......' call this_2.y97_1 = _tmp_personPictureUid; this_2.z97_1 = _tmp_personPictureLct; this_2.a98_1 = _tmp_personPictureUri; this_2.b98_1 = _tmp_personPictureThumbnailUri; this_2.c98_1 = _tmp_fileSize; this_2.d98_1 = _tmp_personPictureActive; tmp_43.li7_1 = this_2; } if (!_tmp_UserSession_isAllNull) { var tmp_44 = this_0; // Inline function 'kotlin.apply' call var this_3 = new UserSession(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsLive......' call this_3.xi6_1 = _tmp_usUid; this_3.yi6_1 = _tmp_usPcsn; this_3.zi6_1 = _tmp_usLcsn; this_3.ai7_1 = _tmp_usLcb; this_3.bi7_1 = _tmp_usLct; this_3.ci7_1 = _tmp_usPersonUid; this_3.di7_1 = _tmp_usClientNodeId; this_3.ei7_1 = _tmp_usStartTime; this_3.fi7_1 = _tmp_usEndTime; this_3.gi7_1 = _tmp_usStatus; this_3.hi7_1 = _tmp_usReason; this_3.ii7_1 = _tmp_usAuth; this_3.ji7_1 = _tmp_usSessionType; tmp_44.mi7_1 = this_3; } return this_0; }; } function UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda).wi7 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda).le = function (p1, $completion) { return this.wi7((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.vi7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda).o5g = function (_stmt, completion) { var i = new UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda(completion); i.vi7_1 = _stmt; return i; }; function UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda_0(resultContinuation) { var i = new UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.wi7(_stmt, $completion); }; l.$arity = 1; return l; } function UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda$lambda(_result) { return mapRows(_result, UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda$lambda$lambda(_result)); } function UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.b5o('personUid'); var tmp; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_username = $_result.b10('username'); var tmp_0; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_firstNames = $_result.b10('firstNames'); var tmp_1; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_lastName = $_result.b10('lastName'); var tmp_2; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_emailAddr = $_result.b10('emailAddr'); var tmp_3; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_phoneNum = $_result.b10('phoneNum'); var tmp_4; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_gender = $_result.a5o('gender'); var tmp_5; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_active = $_result.m67('active'); var tmp_6; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_dateOfBirth = $_result.b5o('dateOfBirth'); var tmp_7; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_personAddress = $_result.b10('personAddress'); var tmp_8; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_personOrgId = $_result.b10('personOrgId'); var tmp_9; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_personGroupUid = $_result.b5o('personGroupUid'); var tmp_10; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_personLct = $_result.b5o('personLct'); var tmp_11; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_personCountry = $_result.b10('personCountry'); var tmp_12; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_personType = $_result.a5o('personType'); var tmp_13; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_personMasterChangeSeqNum = $_result.b5o('personMasterChangeSeqNum'); var tmp_14; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_personLocalChangeSeqNum = $_result.b5o('personLocalChangeSeqNum'); var tmp_15; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_personLastChangedBy = $_result.a5o('personLastChangedBy'); var tmp_16; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_admin = $_result.m67('admin'); var tmp_17; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_personNotes = $_result.b10('personNotes'); var tmp_18; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_fatherName = $_result.b10('fatherName'); var tmp_19; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_fatherNumber = $_result.b10('fatherNumber'); var tmp_20; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_motherName = $_result.b10('motherName'); var tmp_21; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_motherNum = $_result.b10('motherNum'); var tmp_22; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.b5o('personPictureUid'); var tmp_23; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_personPictureLct = $_result.b5o('personPictureLct'); var tmp_24; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_personPictureUri = $_result.b10('personPictureUri'); var tmp_25; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_personPictureThumbnailUri = $_result.b10('personPictureThumbnailUri'); var tmp_26; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_fileSize = $_result.a5o('fileSize'); var tmp_27; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_personPictureActive = $_result.m67('personPictureActive'); var tmp_28; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; var _tmp_UserSession_nullCount = 0; var _tmp_usUid = $_result.b5o('usUid'); var tmp_29; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_usPcsn = $_result.b5o('usPcsn'); var tmp_30; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_30 = Unit_instance; } var _tmp_usLcsn = $_result.b5o('usLcsn'); var tmp_31; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_31 = Unit_instance; } var _tmp_usLcb = $_result.b5o('usLcb'); var tmp_32; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_32 = Unit_instance; } var _tmp_usLct = $_result.b5o('usLct'); var tmp_33; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_33 = Unit_instance; } var _tmp_usPersonUid = $_result.b5o('usPersonUid'); var tmp_34; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_34 = Unit_instance; } var _tmp_usClientNodeId = $_result.b5o('usClientNodeId'); var tmp_35; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_35 = Unit_instance; } var _tmp_usStartTime = $_result.b5o('usStartTime'); var tmp_36; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_36 = Unit_instance; } var _tmp_usEndTime = $_result.b5o('usEndTime'); var tmp_37; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_37 = Unit_instance; } var _tmp_usStatus = $_result.a5o('usStatus'); var tmp_38; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_38 = Unit_instance; } var _tmp_usReason = $_result.a5o('usReason'); var tmp_39; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_39 = Unit_instance; } var _tmp_usAuth = $_result.b10('usAuth'); var tmp_40; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_40 = Unit_instance; } var _tmp_usSessionType = $_result.a5o('usSessionType'); var tmp_41; if ($_result.t68()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_41 = Unit_instance; } var _tmp_UserSession_isAllNull = _tmp_UserSession_nullCount === 13; // Inline function 'kotlin.apply' call var this_0 = new UserSessionAndPerson(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsAsync....' call if (!_tmp_Person_isAllNull) { var tmp_42 = this_0; // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsAsync.....' call this_1.a97_1 = _tmp_personUid; this_1.b97_1 = _tmp_username; this_1.c97_1 = _tmp_firstNames; this_1.d97_1 = _tmp_lastName; this_1.e97_1 = _tmp_emailAddr; this_1.f97_1 = _tmp_phoneNum; this_1.g97_1 = _tmp_gender; this_1.h97_1 = _tmp_active; this_1.i97_1 = _tmp_dateOfBirth; this_1.j97_1 = _tmp_personAddress; this_1.k97_1 = _tmp_personOrgId; this_1.l97_1 = _tmp_personGroupUid; this_1.m97_1 = _tmp_personLct; this_1.n97_1 = _tmp_personCountry; this_1.o97_1 = _tmp_personType; this_1.p97_1 = _tmp_personMasterChangeSeqNum; this_1.q97_1 = _tmp_personLocalChangeSeqNum; this_1.r97_1 = _tmp_personLastChangedBy; this_1.s97_1 = _tmp_admin; this_1.t97_1 = _tmp_personNotes; this_1.u97_1 = _tmp_fatherName; this_1.v97_1 = _tmp_fatherNumber; this_1.w97_1 = _tmp_motherName; this_1.x97_1 = _tmp_motherNum; tmp_42.ki7_1 = this_1; } if (!_tmp_PersonPicture_isAllNull) { var tmp_43 = this_0; // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsAsync.....' call this_2.y97_1 = _tmp_personPictureUid; this_2.z97_1 = _tmp_personPictureLct; this_2.a98_1 = _tmp_personPictureUri; this_2.b98_1 = _tmp_personPictureThumbnailUri; this_2.c98_1 = _tmp_fileSize; this_2.d98_1 = _tmp_personPictureActive; tmp_43.li7_1 = this_2; } if (!_tmp_UserSession_isAllNull) { var tmp_44 = this_0; // Inline function 'kotlin.apply' call var this_3 = new UserSession(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsAsync.....' call this_3.xi6_1 = _tmp_usUid; this_3.yi6_1 = _tmp_usPcsn; this_3.zi6_1 = _tmp_usLcsn; this_3.ai7_1 = _tmp_usLcb; this_3.bi7_1 = _tmp_usLct; this_3.ci7_1 = _tmp_usPersonUid; this_3.di7_1 = _tmp_usClientNodeId; this_3.ei7_1 = _tmp_usStartTime; this_3.fi7_1 = _tmp_usEndTime; this_3.gi7_1 = _tmp_usStatus; this_3.hi7_1 = _tmp_usReason; this_3.ii7_1 = _tmp_usAuth; this_3.ji7_1 = _tmp_usSessionType; tmp_44.mi7_1 = this_3; } return this_0; }; } function UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda$lambda(_result) { return mapNextRow(_result, 0, UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda$lambda$lambda(_result)); } function UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.xi7_1); } protoOf(UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1).w5h = function (returnsId) { return 'INSERT INTO UserSession (usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1).bi8 = function (stmt, entity) { if (entity.xi6_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.xi6_1); } stmt.x5i(2, entity.yi6_1); stmt.x5i(3, entity.zi6_1); stmt.x5i(4, entity.ai7_1); stmt.x5i(5, entity.bi7_1); stmt.x5i(6, entity.ci7_1); stmt.x5i(7, entity.di7_1); stmt.x5i(8, entity.ei7_1); stmt.x5i(9, entity.fi7_1); stmt.w5i(10, entity.gi7_1); stmt.w5i(11, entity.hi7_1); stmt.a5j(12, entity.ii7_1); stmt.w5i(13, entity.ji7_1); }; protoOf(UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1).r5g = function (stmt, entity) { return this.bi8(stmt, entity instanceof UserSession ? entity : THROW_CCE()); }; function UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda(this$0, resultContinuation) { this.ki8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda).li8 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda).r79 = function ($completion) { return this.li8($completion); }; protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n SELECT UserSession.*, Person.*, PersonPicture.*\n FROM UserSession\n JOIN Person \n ON Person.personUid = UserSession.usPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = UserSession.usPersonUid\n WHERE UserSession.usClientNodeId = (\n SELECT COALESCE(\n (SELECT nodeClientId \n FROM SyncNode\n LIMIT 1), 0))\n AND UserSession.usStatus = 1 \n AND (UserSession.usSessionType & 8) != 8\n ', VOID, VOID, VOID, VOID, true); suspendResult = prepareAndUseStatementAsync(this.ki8_1.xi7_1, tmp_0, UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda_0(null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda).q79 = function (completion) { return new UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda(this.ki8_1, completion); }; function UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda_0(this$0, resultContinuation) { var i = new UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda(this$0, resultContinuation); var l = function ($completion) { return i.li8($completion); }; l.$arity = 0; return l; } function UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda).wi7 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda).le = function (p1, $completion) { return this.wi7((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.ui8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda).o5g = function (_stmt, completion) { var i = new UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda(completion); i.ui8_1 = _stmt; return i; }; function UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda_0(resultContinuation) { var i = new UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.wi7(_stmt, $completion); }; l.$arity = 1; return l; } function UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda($maxDateOfBirth, resultContinuation) { this.di9_1 = $maxDateOfBirth; CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ei9_1.x5i(1, this.di9_1); this.ei9_1.x5i(2, this.di9_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.ei9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda).o5g = function (_stmt, completion) { var i = new UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda(this.di9_1, completion); i.ei9_1 = _stmt; return i; }; function UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda_0($maxDateOfBirth, resultContinuation) { var i = new UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda($maxDateOfBirth, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function UserSessionDao_JdbcImpl$endSession$slambda($newStatus, $reason, $endTime, $sessionUid, resultContinuation) { this.ni9_1 = $newStatus; this.oi9_1 = $reason; this.pi9_1 = $endTime; this.qi9_1 = $sessionUid; CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_JdbcImpl$endSession$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(UserSessionDao_JdbcImpl$endSession$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UserSessionDao_JdbcImpl$endSession$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ri9_1.w5i(1, this.ni9_1); this.ri9_1.w5i(2, this.oi9_1); this.ri9_1.x5i(3, this.pi9_1); this.ri9_1.x5i(4, this.pi9_1); this.ri9_1.x5i(5, this.qi9_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.ri9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(UserSessionDao_JdbcImpl$endSession$slambda).o5g = function (_stmt, completion) { var i = new UserSessionDao_JdbcImpl$endSession$slambda(this.ni9_1, this.oi9_1, this.pi9_1, this.qi9_1, completion); i.ri9_1 = _stmt; return i; }; function UserSessionDao_JdbcImpl$endSession$slambda_0($newStatus, $reason, $endTime, $sessionUid, resultContinuation) { var i = new UserSessionDao_JdbcImpl$endSession$slambda($newStatus, $reason, $endTime, $sessionUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function $insertSessionCOROUTINE$420(_this__u8e3s4, session, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.aia_1 = _this__u8e3s4; this.bia_1 = session; } protoOf($insertSessionCOROUTINE$420).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.aia_1.yi7_1.y5h(this.bia_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $endSessionCOROUTINE$421(_this__u8e3s4, sessionUid, newStatus, reason, endTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.kia_1 = _this__u8e3s4; this.lia_1 = sessionUid; this.mia_1 = newStatus; this.nia_1 = reason; this.oia_1 = endTime; } protoOf($endSessionCOROUTINE$421).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE UserSession\n SET usAuth = null,\n usStatus = ?,\n usReason = ?,\n usEndTime = CAST(? AS BIGINT),\n usLct = CAST(? AS BIGINT)\n WHERE UserSession.usUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n UPDATE UserSession\n SET usAuth = null,\n usStatus = ?,\n usReason = ?,\n usEndTime = ?,\n usLct = ?\n WHERE UserSession.usUid = ?\n \n', false); suspendResult = prepareAndUseStatementAsync(this.kia_1.xi7_1, tmp_0, UserSessionDao_JdbcImpl$endSession$slambda_0(this.mia_1, this.nia_1, this.oia_1, this.lia_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function UserSessionDao_JdbcImpl(_db) { UserSessionDao.call(this); this.xi7_1 = _db; var tmp = this; tmp.yi7_1 = new UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1(this); } protoOf(UserSessionDao_JdbcImpl).ei6 = function (session, $completion) { var tmp = new $insertSessionCOROUTINE$420(this, session, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(UserSessionDao_JdbcImpl).fi6 = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['UserSession', 'Person', 'PersonPicture', 'SyncNode']; return doorFlow(this.xi7_1, tmp, UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda_0(this, null)); }; protoOf(UserSessionDao_JdbcImpl).gi6 = function ($completion) { var tmp = new PreparedStatementConfig('\n SELECT UserSession.*, Person.*, PersonPicture.*\n FROM UserSession\n JOIN Person \n ON Person.personUid = UserSession.usPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = UserSession.usPersonUid\n WHERE UserSession.usClientNodeId = (\n SELECT COALESCE(\n (SELECT nodeClientId \n FROM SyncNode\n LIMIT 1), 0))\n AND UserSession.usStatus = 1 \n AND (UserSession.usSessionType & 8) != 8\n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.xi7_1, tmp, UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda_0(null), $completion); }; protoOf(UserSessionDao_JdbcImpl).hi6 = function (maxDateOfBirth, $completion) { var tmp = new PreparedStatementConfig('\n SELECT COUNT(*)\n FROM UserSession\n JOIN Person \n ON UserSession.usPersonUid = Person.personUid\n WHERE UserSession.usClientNodeId = (\n SELECT COALESCE(\n (SELECT nodeClientId \n FROM SyncNode\n LIMIT 1), 0))\n AND UserSession.usStatus = 1 \n AND (CAST(? AS BIGINT) = 0 OR Person.dateOfBirth < CAST(? AS BIGINT))\n AND (UserSession.usSessionType & 8) != 8 \n ', VOID, VOID, VOID, '\n SELECT COUNT(*)\n FROM UserSession\n JOIN Person \n ON UserSession.usPersonUid = Person.personUid\n WHERE UserSession.usClientNodeId = (\n SELECT COALESCE(\n (SELECT nodeClientId \n FROM SyncNode\n LIMIT 1), 0))\n AND UserSession.usStatus = 1 \n AND (? = 0 OR Person.dateOfBirth < ?)\n AND (UserSession.usSessionType & 8) != 8 \n \n', true); return prepareAndUseStatementAsync(this.xi7_1, tmp, UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda_0(maxDateOfBirth, null), $completion); }; protoOf(UserSessionDao_JdbcImpl).ii6 = function (sessionUid, newStatus, reason, endTime, $completion) { var tmp = new $endSessionCOROUTINE$421(this, sessionUid, newStatus, reason, endTime, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function UserSessionDao_Repo$insertSession$slambda(this$0, $session, resultContinuation) { this.xia_1 = this$0; this.yia_1 = $session; CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_Repo$insertSession$slambda).i8a = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(UserSessionDao_Repo$insertSession$slambda).r79 = function ($completion) { return this.i8a($completion); }; protoOf(UserSessionDao_Repo$insertSession$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.xia_1.bib_1.ei6(this.yia_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(UserSessionDao_Repo$insertSession$slambda).q79 = function (completion) { return new UserSessionDao_Repo$insertSession$slambda(this.xia_1, this.yia_1, completion); }; function UserSessionDao_Repo$insertSession$slambda_0(this$0, $session, resultContinuation) { var i = new UserSessionDao_Repo$insertSession$slambda(this$0, $session, resultContinuation); var l = function ($completion) { return i.i8a($completion); }; l.$arity = 0; return l; } function UserSessionDao_Repo$endSession$slambda(this$0, $sessionUid, $newStatus, $reason, $endTime, resultContinuation) { this.nib_1 = this$0; this.oib_1 = $sessionUid; this.pib_1 = $newStatus; this.qib_1 = $reason; this.rib_1 = $endTime; CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_Repo$endSession$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(UserSessionDao_Repo$endSession$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(UserSessionDao_Repo$endSession$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.nib_1.bib_1.ii6(this.oib_1, this.pib_1, this.qib_1, this.rib_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(UserSessionDao_Repo$endSession$slambda).q79 = function (completion) { return new UserSessionDao_Repo$endSession$slambda(this.nib_1, this.oib_1, this.pib_1, this.qib_1, this.rib_1, completion); }; function UserSessionDao_Repo$endSession$slambda_0(this$0, $sessionUid, $newStatus, $reason, $endTime, resultContinuation) { var i = new UserSessionDao_Repo$endSession$slambda(this$0, $sessionUid, $newStatus, $reason, $endTime, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function $insertSessionCOROUTINE$423(_this__u8e3s4, session, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.aic_1 = _this__u8e3s4; this.bic_1 = session; } protoOf($insertSessionCOROUTINE$423).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = withRepoChangeMonitorAsync(this.aic_1.aib_1, 'UserSession', UserSessionDao_Repo$insertSession$slambda_0(this.aic_1, this.bic_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $findAllLocalSessionsAsyncCOROUTINE$425(_this__u8e3s4, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.kic_1 = _this__u8e3s4; } protoOf($findAllLocalSessionsAsyncCOROUTINE$425).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.kic_1.bib_1.gi6(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $countAllLocalSessionsAsyncCOROUTINE$427(_this__u8e3s4, maxDateOfBirth, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.tic_1 = _this__u8e3s4; this.uic_1 = maxDateOfBirth; } protoOf($countAllLocalSessionsAsyncCOROUTINE$427).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.tic_1.bib_1.hi6(this.uic_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function UserSessionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { UserSessionDao.call(this); this.zia_1 = _db; this.aib_1 = _repo; this.bib_1 = _dao; this.cib_1 = _httpClient; this.dib_1 = _clientId; this.eib_1 = _endpoint; } protoOf(UserSessionDao_Repo).ei6 = function (session, $completion) { var tmp = new $insertSessionCOROUTINE$423(this, session, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(UserSessionDao_Repo).fi6 = function () { var _result = this.bib_1.fi6(); return _result; }; protoOf(UserSessionDao_Repo).gi6 = function ($completion) { var tmp = new $findAllLocalSessionsAsyncCOROUTINE$425(this, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(UserSessionDao_Repo).hi6 = function (maxDateOfBirth, $completion) { var tmp = new $countAllLocalSessionsAsyncCOROUTINE$427(this, maxDateOfBirth, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(UserSessionDao_Repo).ii6 = function (sessionUid, newStatus, reason, endTime, $completion) { return withRepoChangeMonitorAsync(this.aib_1, 'UserSession', UserSessionDao_Repo$endSession$slambda_0(this, sessionUid, newStatus, reason, endTime, null), $completion); }; function ActivityEntityDao() { } function ActivityEntityDao_DoorWrapper(_db, _dao) { ActivityEntityDao.call(this); this.yic_1 = _db; this.zic_1 = _dao; } protoOf(ActivityEntityDao_DoorWrapper).vic = function (entities, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entities.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.db.dao.xapi.ActivityEntityDao_DoorWrapper.insertOrIgnoreAsync.' call element.gid_1 = systemTimeInMillis(); } return this.zic_1.vic(entities, $completion); }; protoOf(ActivityEntityDao_DoorWrapper).wic = function (activityUid, actMoreInfo, actLct, $completion) { return this.zic_1.wic(activityUid, actMoreInfo, actLct, $completion); }; protoOf(ActivityEntityDao_DoorWrapper).xic = function (actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, $completion) { return this.zic_1.xic(actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, $completion); }; function ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1(this$0) { EntityInsertionAdapter.call(this, this$0.hid_1); } protoOf(ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1).w5h = function (returnsId) { return 'INSERT OR IGNORE INTO ActivityEntity (actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1).lid = function (stmt, entity) { stmt.x5i(1, entity.aid_1); stmt.a5j(2, entity.bid_1); stmt.a5j(3, entity.cid_1); stmt.a5j(4, entity.did_1); stmt.w5i(5, entity.eid_1); stmt.a5j(6, entity.fid_1); stmt.x5i(7, entity.gid_1); }; protoOf(ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1).r5g = function (stmt, entity) { return this.lid(stmt, entity instanceof ActivityEntity ? entity : THROW_CCE()); }; function ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda($actMoreInfo, $actLct, $activityUid, resultContinuation) { this.uid_1 = $actMoreInfo; this.vid_1 = $actLct; this.wid_1 = $activityUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.xid_1.a5j(1, this.uid_1); this.xid_1.x5i(2, this.vid_1); this.xid_1.x5i(3, this.wid_1); this.xid_1.a5j(4, this.uid_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.xid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda).o5g = function (_stmt, completion) { var i = new ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda(this.uid_1, this.vid_1, this.wid_1, completion); i.xid_1 = _stmt; return i; }; function ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda_0($actMoreInfo, $actLct, $activityUid, resultContinuation) { var i = new ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda($actMoreInfo, $actLct, $activityUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda($actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, $actLct, $actUid, resultContinuation) { this.gie_1 = $actType; this.hie_1 = $actMoreInfo; this.iie_1 = $actInteractionType; this.jie_1 = $actCorrectResponsePatterns; this.kie_1 = $actLct; this.lie_1 = $actUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.mie_1.a5j(1, this.gie_1); this.mie_1.a5j(2, this.hie_1); this.mie_1.w5i(3, this.iie_1); this.mie_1.a5j(4, this.jie_1); this.mie_1.x5i(5, this.kie_1); this.mie_1.x5i(6, this.lie_1); this.mie_1.x5i(7, this.lie_1); this.mie_1.x5i(8, this.lie_1); this.mie_1.x5i(9, this.lie_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.mie_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda).o5g = function (_stmt, completion) { var i = new ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda(this.gie_1, this.hie_1, this.iie_1, this.jie_1, this.kie_1, this.lie_1, completion); i.mie_1 = _stmt; return i; }; function ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda_0($actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, $actLct, $actUid, resultContinuation) { var i = new ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda($actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, $actLct, $actUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function $updateIfMoreInfoChangedCOROUTINE$431(_this__u8e3s4, activityUid, actMoreInfo, actLct, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.vie_1 = _this__u8e3s4; this.wie_1 = activityUid; this.xie_1 = actMoreInfo; this.yie_1 = actLct; } protoOf($updateIfMoreInfoChangedCOROUTINE$431).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE ActivityEntity\n SET actMoreInfo = ?,\n actLct = CAST(? AS BIGINT)\n WHERE actUid = CAST(? AS BIGINT)\n AND actMoreInfo != ? \n ', VOID, VOID, VOID, '\n UPDATE ActivityEntity\n SET actMoreInfo = ?,\n actLct = ?\n WHERE actUid = ?\n AND actMoreInfo != ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this.vie_1.hid_1, tmp_0, ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda_0(this.xie_1, this.yie_1, this.wie_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateIfNotYetDefinedCOROUTINE$432(_this__u8e3s4, actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.hif_1 = _this__u8e3s4; this.iif_1 = actUid; this.jif_1 = actType; this.kif_1 = actMoreInfo; this.lif_1 = actInteractionType; this.mif_1 = actCorrectResponsePatterns; this.nif_1 = actLct; } protoOf($updateIfNotYetDefinedCOROUTINE$432).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE ActivityEntity\n SET actType = ?,\n actMoreInfo = ?,\n actInteractionType = ?,\n actCorrectResponsePatterns = ?,\n actLct = CAST(? AS BIGINT)\n WHERE actUid = CAST(? AS BIGINT)\n AND (SELECT ActivityEntityInternal.actType \n FROM ActivityEntity ActivityEntityInternal \n WHERE ActivityEntityInternal.actUid = CAST(? AS BIGINT)) IS NULL\n AND (SELECT ActivityEntityInternal.actInteractionType \n FROM ActivityEntity ActivityEntityInternal \n WHERE ActivityEntityInternal.actUid = CAST(? AS BIGINT)) = 0\n AND (SELECT ActivityEntityInternal.actCorrectResponsePatterns \n FROM ActivityEntity ActivityEntityInternal \n WHERE ActivityEntityInternal.actUid = CAST(? AS BIGINT)) IS NULL \n ', VOID, VOID, VOID, '\n UPDATE ActivityEntity\n SET actType = ?,\n actMoreInfo = ?,\n actInteractionType = ?,\n actCorrectResponsePatterns = ?,\n actLct = ?\n WHERE actUid = ?\n AND (SELECT ActivityEntityInternal.actType \n FROM ActivityEntity ActivityEntityInternal \n WHERE ActivityEntityInternal.actUid = ?) IS NULL\n AND (SELECT ActivityEntityInternal.actInteractionType \n FROM ActivityEntity ActivityEntityInternal \n WHERE ActivityEntityInternal.actUid = ?) = 0\n AND (SELECT ActivityEntityInternal.actCorrectResponsePatterns \n FROM ActivityEntity ActivityEntityInternal \n WHERE ActivityEntityInternal.actUid = ?) IS NULL \n \n', false); suspendResult = prepareAndUseStatementAsync(this.hif_1.hid_1, tmp_0, ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda_0(this.jif_1, this.kif_1, this.lif_1, this.mif_1, this.nif_1, this.iif_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ActivityEntityDao_JdbcImpl(_db) { ActivityEntityDao.call(this); this.hid_1 = _db; var tmp = this; tmp.iid_1 = new ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1(this); } protoOf(ActivityEntityDao_JdbcImpl).vic = function (entities, $completion) { return this.iid_1.b5i(entities, $completion); }; protoOf(ActivityEntityDao_JdbcImpl).wic = function (activityUid, actMoreInfo, actLct, $completion) { var tmp = new $updateIfMoreInfoChangedCOROUTINE$431(this, activityUid, actMoreInfo, actLct, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActivityEntityDao_JdbcImpl).xic = function (actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, $completion) { var tmp = new $updateIfNotYetDefinedCOROUTINE$432(this, actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda(this$0, $entities, resultContinuation) { this.wif_1 = this$0; this.xif_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.wif_1.aig_1.vic(this.xif_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda).q79 = function (completion) { return new ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda(this.wif_1, this.xif_1, completion); }; function ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda(this$0, $activityUid, $actMoreInfo, $actLct, resultContinuation) { this.mig_1 = this$0; this.nig_1 = $activityUid; this.oig_1 = $actMoreInfo; this.pig_1 = $actLct; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.mig_1.aig_1.wic(this.nig_1, this.oig_1, this.pig_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda).q79 = function (completion) { return new ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda(this.mig_1, this.nig_1, this.oig_1, this.pig_1, completion); }; function ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda_0(this$0, $activityUid, $actMoreInfo, $actLct, resultContinuation) { var i = new ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda(this$0, $activityUid, $actMoreInfo, $actLct, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ActivityEntityDao_Repo$updateIfNotYetDefined$slambda(this$0, $actUid, $actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, $actLct, resultContinuation) { this.yig_1 = this$0; this.zig_1 = $actUid; this.aih_1 = $actType; this.bih_1 = $actMoreInfo; this.cih_1 = $actInteractionType; this.dih_1 = $actCorrectResponsePatterns; this.eih_1 = $actLct; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityEntityDao_Repo$updateIfNotYetDefined$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActivityEntityDao_Repo$updateIfNotYetDefined$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ActivityEntityDao_Repo$updateIfNotYetDefined$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.yig_1.aig_1.xic(this.zig_1, this.aih_1, this.bih_1, this.cih_1, this.dih_1, this.eih_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ActivityEntityDao_Repo$updateIfNotYetDefined$slambda).q79 = function (completion) { return new ActivityEntityDao_Repo$updateIfNotYetDefined$slambda(this.yig_1, this.zig_1, this.aih_1, this.bih_1, this.cih_1, this.dih_1, this.eih_1, completion); }; function ActivityEntityDao_Repo$updateIfNotYetDefined$slambda_0(this$0, $actUid, $actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, $actLct, resultContinuation) { var i = new ActivityEntityDao_Repo$updateIfNotYetDefined$slambda(this$0, $actUid, $actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, $actLct, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ActivityEntityDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ActivityEntityDao.call(this); this.yif_1 = _db; this.zif_1 = _repo; this.aig_1 = _dao; this.big_1 = _httpClient; this.cig_1 = _clientId; this.dig_1 = _endpoint; } protoOf(ActivityEntityDao_Repo).vic = function (entities, $completion) { return withRepoChangeMonitorAsync(this.zif_1, 'ActivityEntity', ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda_0(this, entities, null), $completion); }; protoOf(ActivityEntityDao_Repo).wic = function (activityUid, actMoreInfo, actLct, $completion) { return withRepoChangeMonitorAsync(this.zif_1, 'ActivityEntity', ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda_0(this, activityUid, actMoreInfo, actLct, null), $completion); }; protoOf(ActivityEntityDao_Repo).xic = function (actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, $completion) { return withRepoChangeMonitorAsync(this.zif_1, 'ActivityEntity', ActivityEntityDao_Repo$updateIfNotYetDefined$slambda_0(this, actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, null), $completion); }; function ActivityExtensionDao() { } function ActivityExtensionDao_DoorWrapper(_db, _dao) { ActivityExtensionDao.call(this); this.gih_1 = _db; this.hih_1 = _dao; } protoOf(ActivityExtensionDao_DoorWrapper).fih = function (list, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = list.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.db.dao.xapi.ActivityExtensionDao_DoorWrapper.upsertListAsync.' call element.mih_1 = systemTimeInMillis(); } return this.hih_1.fih(list, $completion); }; function ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.oih_1); } protoOf(ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO ActivityExtensionEntity (aeeActivityUid, aeeKeyHash, aeeKey, aeeJson, aeeLastMod, aeeIsDeleted) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1).sih = function (stmt, entity) { stmt.x5i(1, entity.iih_1); stmt.x5i(2, entity.jih_1); stmt.a5j(3, entity.kih_1); stmt.a5j(4, entity.lih_1); stmt.x5i(5, entity.mih_1); stmt.k5i(6, entity.nih_1); }; protoOf(ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1).r5g = function (stmt, entity) { return this.sih(stmt, entity instanceof ActivityExtensionEntity ? entity : THROW_CCE()); }; function ActivityExtensionDao_JdbcImpl(_db) { ActivityExtensionDao.call(this); this.oih_1 = _db; var tmp = this; tmp.pih_1 = new ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1(this); } protoOf(ActivityExtensionDao_JdbcImpl).fih = function (list, $completion) { return this.pih_1.b5i(list, $completion); }; function ActivityExtensionDao_Repo$upsertListAsync$slambda(this$0, $list, resultContinuation) { this.bii_1 = this$0; this.cii_1 = $list; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityExtensionDao_Repo$upsertListAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActivityExtensionDao_Repo$upsertListAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ActivityExtensionDao_Repo$upsertListAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.bii_1.fii_1.fih(this.cii_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ActivityExtensionDao_Repo$upsertListAsync$slambda).q79 = function (completion) { return new ActivityExtensionDao_Repo$upsertListAsync$slambda(this.bii_1, this.cii_1, completion); }; function ActivityExtensionDao_Repo$upsertListAsync$slambda_0(this$0, $list, resultContinuation) { var i = new ActivityExtensionDao_Repo$upsertListAsync$slambda(this$0, $list, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ActivityExtensionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ActivityExtensionDao.call(this); this.dii_1 = _db; this.eii_1 = _repo; this.fii_1 = _dao; this.gii_1 = _httpClient; this.hii_1 = _clientId; this.iii_1 = _endpoint; } protoOf(ActivityExtensionDao_Repo).fih = function (list, $completion) { return withRepoChangeMonitorAsync(this.eii_1, 'ActivityExtensionEntity', ActivityExtensionDao_Repo$upsertListAsync$slambda_0(this, list, null), $completion); }; function ActivityInteractionDao() { } function ActivityInteractionDao_DoorWrapper(_db, _dao) { ActivityInteractionDao.call(this); this.lii_1 = _db; this.mii_1 = _dao; } protoOf(ActivityInteractionDao_DoorWrapper).jii = function (entities, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entities.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.db.dao.xapi.ActivityInteractionDao_DoorWrapper.insertOrIgnoreAsync.' call element.rii_1 = systemTimeInMillis(); } return this.mii_1.jii(entities, $completion); }; protoOf(ActivityInteractionDao_DoorWrapper).kii = function (activityUids, $completion) { return this.mii_1.kii(activityUids, $completion); }; function ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda$lambda(_result) { return mapRows(_result, ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda$lambda$lambda(_result)); } function ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda$lambda$lambda($_result) { return function (it) { return $_result.b5g(1); }; } function ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1(this$0) { EntityInsertionAdapter.call(this, this$0.tii_1); } protoOf(ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1).w5h = function (returnsId) { return 'INSERT OR IGNORE INTO ActivityInteractionEntity (aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1).xii = function (stmt, entity) { stmt.x5i(1, entity.nii_1); stmt.x5i(2, entity.oii_1); stmt.w5i(3, entity.pii_1); stmt.a5j(4, entity.qii_1); stmt.x5i(5, entity.rii_1); stmt.k5i(6, entity.sii_1); }; protoOf(ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1).r5g = function (stmt, entity) { return this.xii(stmt, entity instanceof ActivityInteractionEntity ? entity : THROW_CCE()); }; function ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda($activityUids, resultContinuation) { this.gij_1 = $activityUids; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda).n82 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda).le = function (p1, $completion) { return this.n82((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; var tmp_0 = this.hij_1.t5h(); var this_0 = this.gij_1; this.hij_1.b5j(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.hij_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda).o5g = function (_stmt, completion) { var i = new ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda(this.gij_1, completion); i.hij_1 = _stmt; return i; }; function ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda_0($activityUids, resultContinuation) { var i = new ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda($activityUids, resultContinuation); var l = function (_stmt, $completion) { return i.n82(_stmt, $completion); }; l.$arity = 1; return l; } function ActivityInteractionDao_JdbcImpl(_db) { ActivityInteractionDao.call(this); this.tii_1 = _db; var tmp = this; tmp.uii_1 = new ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1(this); } protoOf(ActivityInteractionDao_JdbcImpl).jii = function (entities, $completion) { return this.uii_1.b5i(entities, $completion); }; protoOf(ActivityInteractionDao_JdbcImpl).kii = function (activityUids, $completion) { var tmp = new PreparedStatementConfig('\n SELECT DISTINCT ActivityInteractionEntity.aieActivityUid\n FROM ActivityInteractionEntity\n WHERE ActivityInteractionEntity.aieActivityUid IN (?)\n ', true, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.tii_1, tmp, ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda_0(activityUids, null), $completion); }; function ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda(this$0, $entities, resultContinuation) { this.qij_1 = this$0; this.rij_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.qij_1.uij_1.jii(this.rij_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda).q79 = function (completion) { return new ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda(this.qij_1, this.rij_1, completion); }; function ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function $findActivityUidsWithInteractionEntitiesAsyncCOROUTINE$435(_this__u8e3s4, activityUids, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.gik_1 = _this__u8e3s4; this.hik_1 = activityUids; } protoOf($findActivityUidsWithInteractionEntitiesAsyncCOROUTINE$435).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.gik_1.uij_1.kii(this.hik_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ActivityInteractionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ActivityInteractionDao.call(this); this.sij_1 = _db; this.tij_1 = _repo; this.uij_1 = _dao; this.vij_1 = _httpClient; this.wij_1 = _clientId; this.xij_1 = _endpoint; } protoOf(ActivityInteractionDao_Repo).jii = function (entities, $completion) { return withRepoChangeMonitorAsync(this.tij_1, 'ActivityInteractionEntity', ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda_0(this, entities, null), $completion); }; protoOf(ActivityInteractionDao_Repo).kii = function (activityUids, $completion) { var tmp = new $findActivityUidsWithInteractionEntitiesAsyncCOROUTINE$435(this, activityUids, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function ActivityLangMapEntryDao() { } function ActivityLangMapEntryDao_DoorWrapper(_db, _dao) { ActivityLangMapEntryDao.call(this); this.mik_1 = _db; this.nik_1 = _dao; } protoOf(ActivityLangMapEntryDao_DoorWrapper).iik = function (entities, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entities.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.db.dao.xapi.ActivityLangMapEntryDao_DoorWrapper.upsertList.' call element.uik_1 = systemTimeInMillis(); } return this.nik_1.iik(entities, $completion); }; protoOf(ActivityLangMapEntryDao_DoorWrapper).jik = function (almeActivityUid, almeHash, almePropName, almeLangCode, almeValue, almeAieHash, almeLastMod, $completion) { return this.nik_1.jik(almeActivityUid, almeHash, almePropName, almeLangCode, almeValue, almeAieHash, almeLastMod, $completion); }; protoOf(ActivityLangMapEntryDao_DoorWrapper).kik = function (almeActivityUid, almeHash, almeValue, almeLastMod, $completion) { return this.nik_1.kik(almeActivityUid, almeHash, almeValue, almeLastMod, $completion); }; protoOf(ActivityLangMapEntryDao_DoorWrapper).lik = function (activityUid, $completion) { return this.nik_1.lik(activityUid, $completion); }; function ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda$lambda(_result) { return mapRows(_result, ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda$lambda$lambda(_result)); } function ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_almeActivityUid = $_result.b5o('almeActivityUid'); var _tmp_almeHash = $_result.b5o('almeHash'); var _tmp_almeLangCode = $_result.b10('almeLangCode'); var _tmp_almePropName = $_result.b10('almePropName'); var _tmp_almeValue = $_result.b10('almeValue'); var _tmp_almeAieHash = $_result.b5o('almeAieHash'); var _tmp_almeLastMod = $_result.b5o('almeLastMod'); // Inline function 'kotlin.apply' call var this_0 = new ActivityLangMapEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.ActivityLangMapEntryDao_JdbcImpl.findAllByActivityUid....' call this_0.oik_1 = _tmp_almeActivityUid; this_0.pik_1 = _tmp_almeHash; this_0.qik_1 = _tmp_almeLangCode; this_0.rik_1 = _tmp_almePropName; this_0.sik_1 = _tmp_almeValue; this_0.tik_1 = _tmp_almeAieHash; this_0.uik_1 = _tmp_almeLastMod; return this_0; }; } function ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.vik_1); } protoOf(ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO ActivityLangMapEntry (almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1).zik = function (stmt, entity) { stmt.x5i(1, entity.oik_1); stmt.x5i(2, entity.pik_1); stmt.a5j(3, entity.qik_1); stmt.a5j(4, entity.rik_1); stmt.a5j(5, entity.sik_1); stmt.x5i(6, entity.tik_1); stmt.x5i(7, entity.uik_1); }; protoOf(ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1).r5g = function (stmt, entity) { return this.zik(stmt, entity instanceof ActivityLangMapEntry ? entity : THROW_CCE()); }; function ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda($almeActivityUid, $almeHash, $almeLangCode, $almePropName, $almeValue, $almeAieHash, $almeLastMod, resultContinuation) { this.iil_1 = $almeActivityUid; this.jil_1 = $almeHash; this.kil_1 = $almeLangCode; this.lil_1 = $almePropName; this.mil_1 = $almeValue; this.nil_1 = $almeAieHash; this.oil_1 = $almeLastMod; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.pil_1.x5i(1, this.iil_1); this.pil_1.x5i(2, this.jil_1); this.pil_1.a5j(3, this.kil_1); this.pil_1.a5j(4, this.lil_1); this.pil_1.a5j(5, this.mil_1); this.pil_1.x5i(6, this.nil_1); this.pil_1.x5i(7, this.oil_1); this.pil_1.x5i(8, this.iil_1); this.pil_1.x5i(9, this.nil_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.pil_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda).o5g = function (_stmt, completion) { var i = new ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda(this.iil_1, this.jil_1, this.kil_1, this.lil_1, this.mil_1, this.nil_1, this.oil_1, completion); i.pil_1 = _stmt; return i; }; function ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda_0($almeActivityUid, $almeHash, $almeLangCode, $almePropName, $almeValue, $almeAieHash, $almeLastMod, resultContinuation) { var i = new ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda($almeActivityUid, $almeHash, $almeLangCode, $almePropName, $almeValue, $almeAieHash, $almeLastMod, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda($almeValue, $almeLastMod, $almeActivityUid, $almeHash, resultContinuation) { this.yil_1 = $almeValue; this.zil_1 = $almeLastMod; this.aim_1 = $almeActivityUid; this.bim_1 = $almeHash; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.cim_1.a5j(1, this.yil_1); this.cim_1.x5i(2, this.zil_1); this.cim_1.x5i(3, this.aim_1); this.cim_1.x5i(4, this.bim_1); this.cim_1.a5j(5, this.yil_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.cim_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda).o5g = function (_stmt, completion) { var i = new ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda(this.yil_1, this.zil_1, this.aim_1, this.bim_1, completion); i.cim_1 = _stmt; return i; }; function ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda_0($almeValue, $almeLastMod, $almeActivityUid, $almeHash, resultContinuation) { var i = new ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda($almeValue, $almeLastMod, $almeActivityUid, $almeHash, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda($activityUid, resultContinuation) { this.lim_1 = $activityUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda).nim = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda).le = function (p1, $completion) { return this.nim((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.mim_1.x5i(1, this.lim_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.mim_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda).o5g = function (_stmt, completion) { var i = new ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda(this.lim_1, completion); i.mim_1 = _stmt; return i; }; function ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda_0($activityUid, resultContinuation) { var i = new ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda($activityUid, resultContinuation); var l = function (_stmt, $completion) { return i.nim(_stmt, $completion); }; l.$arity = 1; return l; } function $upsertIfInteractionEntityExistsCOROUTINE$437(_this__u8e3s4, almeActivityUid, almeHash, almePropName, almeLangCode, almeValue, almeAieHash, almeLastMod, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.wim_1 = _this__u8e3s4; this.xim_1 = almeActivityUid; this.yim_1 = almeHash; this.zim_1 = almePropName; this.ain_1 = almeLangCode; this.bin_1 = almeValue; this.cin_1 = almeAieHash; this.din_1 = almeLastMod; } protoOf($upsertIfInteractionEntityExistsCOROUTINE$437).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n INSERT OR REPLACE \n INTO ActivityLangMapEntry(almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod)\n SELECT CAST(? AS BIGINT) AS almeActivityUid,\n CAST(? AS BIGINT) AS almeHash,\n ? AS almeLangCode,\n ? AS almePropName,\n ? AS almeValue,\n CAST(? AS BIGINT) AS almeAieHash,\n CAST(? AS BIGINT) AS almeLastMod\n WHERE EXISTS(SELECT 1\n FROM ActivityInteractionEntity\n WHERE ActivityInteractionEntity.aieActivityUid = CAST(? AS BIGINT)\n AND ActivityInteractionEntity.aieHash = CAST(? AS BIGINT))\n \n ', VOID, VOID, VOID, '\n INSERT \n INTO ActivityLangMapEntry(almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod)\n SELECT ? AS almeActivityUid,\n ? AS almeHash,\n ? AS almeLangCode,\n ? AS almePropName,\n ? AS almeValue,\n ? AS almeAieHash,\n ? AS almeLastMod\n WHERE EXISTS(SELECT 1\n FROM ActivityInteractionEntity\n WHERE ActivityInteractionEntity.aieActivityUid = ?\n AND ActivityInteractionEntity.aieHash = ?)\n \n ON CONFLICT(almeActivityUid, almeHash) DO UPDATE\n SET almeValue = EXCLUDED.almeValue,\n almeLastMod = EXCLUDED.almeLastMod\n ', false); suspendResult = prepareAndUseStatementAsync(this.wim_1.vik_1, tmp_0, ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda_0(this.xim_1, this.yim_1, this.ain_1, this.zim_1, this.bin_1, this.cin_1, this.din_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $updateIfChangedCOROUTINE$438(_this__u8e3s4, almeActivityUid, almeHash, almeValue, almeLastMod, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.min_1 = _this__u8e3s4; this.nin_1 = almeActivityUid; this.oin_1 = almeHash; this.pin_1 = almeValue; this.qin_1 = almeLastMod; } protoOf($updateIfChangedCOROUTINE$438).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE ActivityLangMapEntry\n SET almeValue = ?,\n almeLastMod = CAST(? AS BIGINT)\n WHERE almeActivityUid = CAST(? AS BIGINT)\n AND almeHash = CAST(? AS BIGINT)\n AND almeValue != ? \n ', VOID, VOID, VOID, '\n UPDATE ActivityLangMapEntry\n SET almeValue = ?,\n almeLastMod = ?\n WHERE almeActivityUid = ?\n AND almeHash = ?\n AND almeValue != ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this.min_1.vik_1, tmp_0, ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda_0(this.pin_1, this.qin_1, this.nin_1, this.oin_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ActivityLangMapEntryDao_JdbcImpl(_db) { ActivityLangMapEntryDao.call(this); this.vik_1 = _db; var tmp = this; tmp.wik_1 = new ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1(this); } protoOf(ActivityLangMapEntryDao_JdbcImpl).iik = function (entities, $completion) { return this.wik_1.b5i(entities, $completion); }; protoOf(ActivityLangMapEntryDao_JdbcImpl).jik = function (almeActivityUid, almeHash, almePropName, almeLangCode, almeValue, almeAieHash, almeLastMod, $completion) { var tmp = new $upsertIfInteractionEntityExistsCOROUTINE$437(this, almeActivityUid, almeHash, almePropName, almeLangCode, almeValue, almeAieHash, almeLastMod, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActivityLangMapEntryDao_JdbcImpl).kik = function (almeActivityUid, almeHash, almeValue, almeLastMod, $completion) { var tmp = new $updateIfChangedCOROUTINE$438(this, almeActivityUid, almeHash, almeValue, almeLastMod, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActivityLangMapEntryDao_JdbcImpl).lik = function (activityUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ActivityLangMapEntry.*\n FROM ActivityLangMapEntry\n WHERE ActivityLangMapEntry.almeActivityUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT ActivityLangMapEntry.*\n FROM ActivityLangMapEntry\n WHERE ActivityLangMapEntry.almeActivityUid = ?\n \n', true); return prepareAndUseStatementAsync(this.vik_1, tmp, ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda_0(activityUid, null), $completion); }; function ActivityLangMapEntryDao_Repo$upsertList$slambda(this$0, $entities, resultContinuation) { this.zin_1 = this$0; this.aio_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityLangMapEntryDao_Repo$upsertList$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActivityLangMapEntryDao_Repo$upsertList$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ActivityLangMapEntryDao_Repo$upsertList$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.zin_1.dio_1.iik(this.aio_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ActivityLangMapEntryDao_Repo$upsertList$slambda).q79 = function (completion) { return new ActivityLangMapEntryDao_Repo$upsertList$slambda(this.zin_1, this.aio_1, completion); }; function ActivityLangMapEntryDao_Repo$upsertList$slambda_0(this$0, $entities, resultContinuation) { var i = new ActivityLangMapEntryDao_Repo$upsertList$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda(this$0, $almeActivityUid, $almeHash, $almePropName, $almeLangCode, $almeValue, $almeAieHash, $almeLastMod, resultContinuation) { this.pio_1 = this$0; this.qio_1 = $almeActivityUid; this.rio_1 = $almeHash; this.sio_1 = $almePropName; this.tio_1 = $almeLangCode; this.uio_1 = $almeValue; this.vio_1 = $almeAieHash; this.wio_1 = $almeLastMod; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.pio_1.dio_1.jik(this.qio_1, this.rio_1, this.sio_1, this.tio_1, this.uio_1, this.vio_1, this.wio_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda).q79 = function (completion) { return new ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda(this.pio_1, this.qio_1, this.rio_1, this.sio_1, this.tio_1, this.uio_1, this.vio_1, this.wio_1, completion); }; function ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda_0(this$0, $almeActivityUid, $almeHash, $almePropName, $almeLangCode, $almeValue, $almeAieHash, $almeLastMod, resultContinuation) { var i = new ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda(this$0, $almeActivityUid, $almeHash, $almePropName, $almeLangCode, $almeValue, $almeAieHash, $almeLastMod, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ActivityLangMapEntryDao_Repo$updateIfChanged$slambda(this$0, $almeActivityUid, $almeHash, $almeValue, $almeLastMod, resultContinuation) { this.fip_1 = this$0; this.gip_1 = $almeActivityUid; this.hip_1 = $almeHash; this.iip_1 = $almeValue; this.jip_1 = $almeLastMod; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityLangMapEntryDao_Repo$updateIfChanged$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActivityLangMapEntryDao_Repo$updateIfChanged$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ActivityLangMapEntryDao_Repo$updateIfChanged$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.fip_1.dio_1.kik(this.gip_1, this.hip_1, this.iip_1, this.jip_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ActivityLangMapEntryDao_Repo$updateIfChanged$slambda).q79 = function (completion) { return new ActivityLangMapEntryDao_Repo$updateIfChanged$slambda(this.fip_1, this.gip_1, this.hip_1, this.iip_1, this.jip_1, completion); }; function ActivityLangMapEntryDao_Repo$updateIfChanged$slambda_0(this$0, $almeActivityUid, $almeHash, $almeValue, $almeLastMod, resultContinuation) { var i = new ActivityLangMapEntryDao_Repo$updateIfChanged$slambda(this$0, $almeActivityUid, $almeHash, $almeValue, $almeLastMod, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ActivityLangMapEntryDao_Repo$findAllByActivityUid$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function $findAllByActivityUidCOROUTINE$439(_this__u8e3s4, activityUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.sip_1 = _this__u8e3s4; this.tip_1 = activityUid; } protoOf($findAllByActivityUidCOROUTINE$439).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.uip_1 = this.sip_1.cio_1; var tmp_1 = this; tmp_1.vip_1 = 'ActivityLangMapEntryDao/findAllByActivityUid'; this.md_1 = 3; var tmp_2 = this; tmp_2.wip_1 = this.sip_1.eio_1; var tmp_3 = this; tmp_3.xip_1 = this.wip_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.sip_1.cio_1.t39(), 'ActivityLangMapEntryDao/findAllByActivityUid'); doorNodeIdHeader(this_0, this.sip_1.cio_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'activityUid', this.sip_1.cio_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.tip_1)); tmp_4.yip_1 = this_0; this.yip_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.zip_1 = this.xip_1; var tmp_6 = this; tmp_6.aiq_1 = this.yip_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.aiq_1, this.zip_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.biq_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.sip_1.bio_1, this.biq_1, this.sip_1.cio_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.ciq_1 = this.od_1; Napier_getInstance().e5f(this.ciq_1, 'DoorLog', ActivityLangMapEntryDao_Repo$findAllByActivityUid$lambda(this.uip_1, this.vip_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.sip_1.dio_1.lik(this.tip_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ActivityLangMapEntryDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ActivityLangMapEntryDao.call(this); this.bio_1 = _db; this.cio_1 = _repo; this.dio_1 = _dao; this.eio_1 = _httpClient; this.fio_1 = _clientId; this.gio_1 = _endpoint; } protoOf(ActivityLangMapEntryDao_Repo).iik = function (entities, $completion) { return withRepoChangeMonitorAsync(this.cio_1, 'ActivityLangMapEntry', ActivityLangMapEntryDao_Repo$upsertList$slambda_0(this, entities, null), $completion); }; protoOf(ActivityLangMapEntryDao_Repo).jik = function (almeActivityUid, almeHash, almePropName, almeLangCode, almeValue, almeAieHash, almeLastMod, $completion) { return withRepoChangeMonitorAsync(this.cio_1, 'ActivityLangMapEntry', ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda_0(this, almeActivityUid, almeHash, almePropName, almeLangCode, almeValue, almeAieHash, almeLastMod, null), $completion); }; protoOf(ActivityLangMapEntryDao_Repo).kik = function (almeActivityUid, almeHash, almeValue, almeLastMod, $completion) { return withRepoChangeMonitorAsync(this.cio_1, 'ActivityLangMapEntry', ActivityLangMapEntryDao_Repo$updateIfChanged$slambda_0(this, almeActivityUid, almeHash, almeValue, almeLastMod, null), $completion); }; protoOf(ActivityLangMapEntryDao_Repo).lik = function (activityUid, $completion) { var tmp = new $findAllByActivityUidCOROUTINE$439(this, activityUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function ActorDao() { } function $insertOrIgnoreListAsyncCOROUTINE$440(_this__u8e3s4, entities, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.piq_1 = _this__u8e3s4; this.qiq_1 = entities; } protoOf($insertOrIgnoreListAsyncCOROUTINE$440).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; this.riq_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.piq_1.yiq_1)); var tmp_0 = this; tmp_0.siq_1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.tiq_1 = this.qiq_1.w(); var tmp_2 = this; tmp_2.uiq_1 = this.tiq_1; this.ld_1 = 1; continue $sm; case 1: if (!this.uiq_1.f()) { this.ld_1 = 4; continue $sm; } this.viq_1 = this.uiq_1.e(); var tmp_3 = this; tmp_3.wiq_1 = this.viq_1; if (this.wiq_1.air_1.equals(new Long(0, 0))) { this.ld_1 = 2; suspendResult = this.riq_1.r63(68, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 3; continue $sm; } case 2: this.xiq_1 = suspendResult; this.wiq_1.air_1 = this.xiq_1; var this_0 = this.siq_1; var element = this.xiq_1; this_0.j1(element); this.ld_1 = 3; continue $sm; case 3: this.wiq_1.jir_1 = systemTimeInMillis(); this.ld_1 = 1; continue $sm; case 4: this.ld_1 = 5; suspendResult = this.piq_1.ziq_1.diq(this.qiq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_instance; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $upsertListAsyncCOROUTINE$441(_this__u8e3s4, entities, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.tir_1 = _this__u8e3s4; this.uir_1 = entities; } protoOf($upsertListAsyncCOROUTINE$441).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; this.vir_1 = get_doorPrimaryKeyManager(get_rootDatabase(this.tir_1.yiq_1)); var tmp_0 = this; tmp_0.wir_1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.xir_1 = this.uir_1.w(); var tmp_2 = this; tmp_2.yir_1 = this.xir_1; this.ld_1 = 1; continue $sm; case 1: if (!this.yir_1.f()) { this.ld_1 = 4; continue $sm; } this.zir_1 = this.yir_1.e(); var tmp_3 = this; tmp_3.ais_1 = this.zir_1; if (this.ais_1.air_1.equals(new Long(0, 0))) { this.ld_1 = 2; suspendResult = this.vir_1.r63(68, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ld_1 = 3; continue $sm; } case 2: this.bis_1 = suspendResult; this.ais_1.air_1 = this.bis_1; var this_0 = this.wir_1; var element = this.bis_1; this_0.j1(element); this.ld_1 = 3; continue $sm; case 3: this.ais_1.jir_1 = systemTimeInMillis(); this.ld_1 = 1; continue $sm; case 4: this.ld_1 = 5; suspendResult = this.tir_1.ziq_1.eiq(this.uir_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_instance; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ActorDao_DoorWrapper(_db, _dao) { ActorDao.call(this); this.yiq_1 = _db; this.ziq_1 = _dao; } protoOf(ActorDao_DoorWrapper).diq = function (entities, $completion) { var tmp = new $insertOrIgnoreListAsyncCOROUTINE$440(this, entities, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActorDao_DoorWrapper).eiq = function (entities, $completion) { var tmp = new $upsertListAsyncCOROUTINE$441(this, entities, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActorDao_DoorWrapper).fiq = function (uid, name, updateTime, $completion) { return this.ziq_1.fiq(uid, name, updateTime, $completion); }; protoOf(ActorDao_DoorWrapper).giq = function (uidList, $completion) { return this.ziq_1.giq(uidList, $completion); }; function ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda$lambda(_result) { return mapRows(_result, ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda$lambda$lambda(_result)); } function ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_actorUid = $_result.b5o('actorUid'); var _tmp_actorEtag = $_result.b5o('actorEtag'); var _tmp_actorLct = $_result.b5o('actorLct'); // Inline function 'kotlin.apply' call var this_0 = new ActorUidEtagAndLastMod(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.ActorDao_JdbcImpl.findUidAndEtagByListAsync....' call this_0.cis_1 = _tmp_actorUid; this_0.dis_1 = _tmp_actorEtag; this_0.eis_1 = _tmp_actorLct; return this_0; }; } function ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1(this$0) { EntityInsertionAdapter.call(this, this$0.fis_1); } protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1).w5h = function (returnsId) { return 'INSERT OR IGNORE INTO ActorEntity (actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1).kis = function (stmt, entity) { if (entity.air_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.air_1); } stmt.x5i(2, entity.bir_1); stmt.a5j(3, entity.cir_1); stmt.a5j(4, entity.dir_1); stmt.a5j(5, entity.eir_1); stmt.a5j(6, entity.fir_1); stmt.a5j(7, entity.gir_1); stmt.a5j(8, entity.hir_1); stmt.x5i(9, entity.iir_1); stmt.x5i(10, entity.jir_1); stmt.w5i(11, entity.kir_1); }; protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1).r5g = function (stmt, entity) { return this.kis(stmt, entity instanceof ActorEntity ? entity : THROW_CCE()); }; function ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.fis_1); } protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO ActorEntity (actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1).kis = function (stmt, entity) { if (entity.air_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.air_1); } stmt.x5i(2, entity.bir_1); stmt.a5j(3, entity.cir_1); stmt.a5j(4, entity.dir_1); stmt.a5j(5, entity.eir_1); stmt.a5j(6, entity.fir_1); stmt.a5j(7, entity.gir_1); stmt.a5j(8, entity.hir_1); stmt.x5i(9, entity.iir_1); stmt.x5i(10, entity.jir_1); stmt.w5i(11, entity.kir_1); }; protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1).r5g = function (stmt, entity) { return this.kis(stmt, entity instanceof ActorEntity ? entity : THROW_CCE()); }; function ActorDao_JdbcImpl$updateIfNameChanged$slambda($name, $updateTime, $uid, resultContinuation) { this.vis_1 = $name; this.wis_1 = $updateTime; this.xis_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ActorDao_JdbcImpl$updateIfNameChanged$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActorDao_JdbcImpl$updateIfNameChanged$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActorDao_JdbcImpl$updateIfNameChanged$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.yis_1.a5j(1, this.vis_1); this.yis_1.x5i(2, this.wis_1); this.yis_1.x5i(3, this.xis_1); this.yis_1.a5j(4, this.vis_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.yis_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ActorDao_JdbcImpl$updateIfNameChanged$slambda).o5g = function (_stmt, completion) { var i = new ActorDao_JdbcImpl$updateIfNameChanged$slambda(this.vis_1, this.wis_1, this.xis_1, completion); i.yis_1 = _stmt; return i; }; function ActorDao_JdbcImpl$updateIfNameChanged$slambda_0($name, $updateTime, $uid, resultContinuation) { var i = new ActorDao_JdbcImpl$updateIfNameChanged$slambda($name, $updateTime, $uid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda($uidList, resultContinuation) { this.hit_1 = $uidList; CoroutineImpl.call(this, resultContinuation); } protoOf(ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda).jit = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda).le = function (p1, $completion) { return this.jit((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; var tmp_0 = this.iit_1.t5h(); var this_0 = this.hit_1; this.iit_1.b5j(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.iit_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda).o5g = function (_stmt, completion) { var i = new ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda(this.hit_1, completion); i.iit_1 = _stmt; return i; }; function ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda_0($uidList, resultContinuation) { var i = new ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda($uidList, resultContinuation); var l = function (_stmt, $completion) { return i.jit(_stmt, $completion); }; l.$arity = 1; return l; } function $updateIfNameChangedCOROUTINE$442(_this__u8e3s4, uid, name, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.sit_1 = _this__u8e3s4; this.tit_1 = uid; this.uit_1 = name; this.vit_1 = updateTime; } protoOf($updateIfNameChangedCOROUTINE$442).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE ActorEntity\n SET actorName = ?,\n actorLct = CAST(? AS BIGINT)\n WHERE actorUid = CAST(? AS BIGINT)\n AND ActorEntity.actorName != ?\n ', VOID, VOID, VOID, '\n UPDATE ActorEntity\n SET actorName = ?,\n actorLct = ?\n WHERE actorUid = ?\n AND ActorEntity.actorName != ?\n \n', false); suspendResult = prepareAndUseStatementAsync(this.sit_1.fis_1, tmp_0, ActorDao_JdbcImpl$updateIfNameChanged$slambda_0(this.uit_1, this.vit_1, this.tit_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ActorDao_JdbcImpl(_db) { ActorDao.call(this); this.fis_1 = _db; var tmp = this; tmp.gis_1 = new ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1(this); var tmp_0 = this; tmp_0.his_1 = new ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1(this); } protoOf(ActorDao_JdbcImpl).diq = function (entities, $completion) { return this.gis_1.b5i(entities, $completion); }; protoOf(ActorDao_JdbcImpl).eiq = function (entities, $completion) { return this.his_1.b5i(entities, $completion); }; protoOf(ActorDao_JdbcImpl).fiq = function (uid, name, updateTime, $completion) { var tmp = new $updateIfNameChangedCOROUTINE$442(this, uid, name, updateTime, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActorDao_JdbcImpl).giq = function (uidList, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ActorEntity.actorUid, ActorEntity.actorEtag, ActorEntity.actorLct\n FROM ActorEntity\n WHERE ActorEntity.actorUid IN (?)\n ', true, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.fis_1, tmp, ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda_0(uidList, null), $completion); }; function ActorDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entities, resultContinuation) { this.eiu_1 = this$0; this.fiu_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(ActorDao_Repo$insertOrIgnoreListAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActorDao_Repo$insertOrIgnoreListAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ActorDao_Repo$insertOrIgnoreListAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.eiu_1.iiu_1.diq(this.fiu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ActorDao_Repo$insertOrIgnoreListAsync$slambda).q79 = function (completion) { return new ActorDao_Repo$insertOrIgnoreListAsync$slambda(this.eiu_1, this.fiu_1, completion); }; function ActorDao_Repo$insertOrIgnoreListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new ActorDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ActorDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) { this.uiu_1 = this$0; this.viu_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(ActorDao_Repo$upsertListAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActorDao_Repo$upsertListAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ActorDao_Repo$upsertListAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.uiu_1.iiu_1.eiq(this.viu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ActorDao_Repo$upsertListAsync$slambda).q79 = function (completion) { return new ActorDao_Repo$upsertListAsync$slambda(this.uiu_1, this.viu_1, completion); }; function ActorDao_Repo$upsertListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new ActorDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function ActorDao_Repo$updateIfNameChanged$slambda(this$0, $uid, $name, $updateTime, resultContinuation) { this.eiv_1 = this$0; this.fiv_1 = $uid; this.giv_1 = $name; this.hiv_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(ActorDao_Repo$updateIfNameChanged$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(ActorDao_Repo$updateIfNameChanged$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(ActorDao_Repo$updateIfNameChanged$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.eiv_1.iiu_1.fiq(this.fiv_1, this.giv_1, this.hiv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(ActorDao_Repo$updateIfNameChanged$slambda).q79 = function (completion) { return new ActorDao_Repo$updateIfNameChanged$slambda(this.eiv_1, this.fiv_1, this.giv_1, this.hiv_1, completion); }; function ActorDao_Repo$updateIfNameChanged$slambda_0(this$0, $uid, $name, $updateTime, resultContinuation) { var i = new ActorDao_Repo$updateIfNameChanged$slambda(this$0, $uid, $name, $updateTime, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function $findUidAndEtagByListAsyncCOROUTINE$445(_this__u8e3s4, uidList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qiv_1 = _this__u8e3s4; this.riv_1 = uidList; } protoOf($findUidAndEtagByListAsyncCOROUTINE$445).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.qiv_1.iiu_1.giq(this.riv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function ActorDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ActorDao.call(this); this.giu_1 = _db; this.hiu_1 = _repo; this.iiu_1 = _dao; this.jiu_1 = _httpClient; this.kiu_1 = _clientId; this.liu_1 = _endpoint; } protoOf(ActorDao_Repo).diq = function (entities, $completion) { return withRepoChangeMonitorAsync(this.hiu_1, 'ActorEntity', ActorDao_Repo$insertOrIgnoreListAsync$slambda_0(this, entities, null), $completion); }; protoOf(ActorDao_Repo).eiq = function (entities, $completion) { return withRepoChangeMonitorAsync(this.hiu_1, 'ActorEntity', ActorDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion); }; protoOf(ActorDao_Repo).fiq = function (uid, name, updateTime, $completion) { return withRepoChangeMonitorAsync(this.hiu_1, 'ActorEntity', ActorDao_Repo$updateIfNameChanged$slambda_0(this, uid, name, updateTime, null), $completion); }; protoOf(ActorDao_Repo).giq = function (uidList, $completion) { var tmp = new $findUidAndEtagByListAsyncCOROUTINE$445(this, uidList, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function GroupMemberActorJoinDao() { } function GroupMemberActorJoinDao_DoorWrapper(_db, _dao) { GroupMemberActorJoinDao.call(this); this.viv_1 = _db; this.wiv_1 = _dao; } protoOf(GroupMemberActorJoinDao_DoorWrapper).siv = function (entities, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entities.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.db.dao.xapi.GroupMemberActorJoinDao_DoorWrapper.insertOrIgnoreListAsync.' call element.ziv_1 = systemTimeInMillis(); } return this.wiv_1.siv(entities, $completion); }; protoOf(GroupMemberActorJoinDao_DoorWrapper).tiv = function (entities, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entities.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.db.dao.xapi.GroupMemberActorJoinDao_DoorWrapper.upsertListAsync.' call element.ziv_1 = systemTimeInMillis(); } return this.wiv_1.tiv(entities, $completion); }; protoOf(GroupMemberActorJoinDao_DoorWrapper).uiv = function (gmajGroupActorUid, gmajMemberActorUid, lastModTime, $completion) { return this.wiv_1.uiv(gmajGroupActorUid, gmajMemberActorUid, lastModTime, $completion); }; function GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1(this$0) { EntityInsertionAdapter.call(this, this$0.aiw_1); } protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1).w5h = function (returnsId) { return 'INSERT OR IGNORE INTO GroupMemberActorJoin (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) VALUES(?, ?, ?)'; }; protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1).fiw = function (stmt, entity) { stmt.x5i(1, entity.xiv_1); stmt.x5i(2, entity.yiv_1); stmt.x5i(3, entity.ziv_1); }; protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1).r5g = function (stmt, entity) { return this.fiw(stmt, entity instanceof GroupMemberActorJoin ? entity : THROW_CCE()); }; function GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.aiw_1); } protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO GroupMemberActorJoin (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) VALUES(?, ?, ?)'; }; protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1).fiw = function (stmt, entity) { stmt.x5i(1, entity.xiv_1); stmt.x5i(2, entity.yiv_1); stmt.x5i(3, entity.ziv_1); }; protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1).r5g = function (stmt, entity) { return this.fiw(stmt, entity instanceof GroupMemberActorJoin ? entity : THROW_CCE()); }; function GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda($lastModTime, $gmajGroupActorUid, $gmajMemberActorUid, resultContinuation) { this.qiw_1 = $lastModTime; this.riw_1 = $gmajGroupActorUid; this.siw_1 = $gmajMemberActorUid; CoroutineImpl.call(this, resultContinuation); } protoOf(GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.tiw_1.x5i(1, this.qiw_1); this.tiw_1.x5i(2, this.riw_1); this.tiw_1.x5i(3, this.siw_1); this.tiw_1.x5i(4, this.qiw_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.tiw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda).o5g = function (_stmt, completion) { var i = new GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda(this.qiw_1, this.riw_1, this.siw_1, completion); i.tiw_1 = _stmt; return i; }; function GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda_0($lastModTime, $gmajGroupActorUid, $gmajMemberActorUid, resultContinuation) { var i = new GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda($lastModTime, $gmajGroupActorUid, $gmajMemberActorUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function $updateLastModifiedTimeIfNeededAsyncCOROUTINE$447(_this__u8e3s4, gmajGroupActorUid, gmajMemberActorUid, lastModTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cix_1 = _this__u8e3s4; this.dix_1 = gmajGroupActorUid; this.eix_1 = gmajMemberActorUid; this.fix_1 = lastModTime; } protoOf($updateLastModifiedTimeIfNeededAsyncCOROUTINE$447).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE GroupMemberActorJoin\n SET gmajLastMod = CAST(? AS BIGINT)\n WHERE gmajGroupActorUid = CAST(? AS BIGINT)\n AND gmajMemberActorUid = CAST(? AS BIGINT)\n AND gmajLastMod != CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE GroupMemberActorJoin\n SET gmajLastMod = ?\n WHERE gmajGroupActorUid = ?\n AND gmajMemberActorUid = ?\n AND gmajLastMod != ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this.cix_1.aiw_1, tmp_0, GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda_0(this.fix_1, this.dix_1, this.eix_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function GroupMemberActorJoinDao_JdbcImpl(_db) { GroupMemberActorJoinDao.call(this); this.aiw_1 = _db; var tmp = this; tmp.biw_1 = new GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1(this); var tmp_0 = this; tmp_0.ciw_1 = new GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1(this); } protoOf(GroupMemberActorJoinDao_JdbcImpl).siv = function (entities, $completion) { return this.biw_1.b5i(entities, $completion); }; protoOf(GroupMemberActorJoinDao_JdbcImpl).tiv = function (entities, $completion) { return this.ciw_1.b5i(entities, $completion); }; protoOf(GroupMemberActorJoinDao_JdbcImpl).uiv = function (gmajGroupActorUid, gmajMemberActorUid, lastModTime, $completion) { var tmp = new $updateLastModifiedTimeIfNeededAsyncCOROUTINE$447(this, gmajGroupActorUid, gmajMemberActorUid, lastModTime, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entities, resultContinuation) { this.oix_1 = this$0; this.pix_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.oix_1.six_1.siv(this.pix_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda).q79 = function (completion) { return new GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda(this.oix_1, this.pix_1, completion); }; function GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function GroupMemberActorJoinDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) { this.eiy_1 = this$0; this.fiy_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(GroupMemberActorJoinDao_Repo$upsertListAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(GroupMemberActorJoinDao_Repo$upsertListAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(GroupMemberActorJoinDao_Repo$upsertListAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.eiy_1.six_1.tiv(this.fiy_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(GroupMemberActorJoinDao_Repo$upsertListAsync$slambda).q79 = function (completion) { return new GroupMemberActorJoinDao_Repo$upsertListAsync$slambda(this.eiy_1, this.fiy_1, completion); }; function GroupMemberActorJoinDao_Repo$upsertListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new GroupMemberActorJoinDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda(this$0, $gmajGroupActorUid, $gmajMemberActorUid, $lastModTime, resultContinuation) { this.oiy_1 = this$0; this.piy_1 = $gmajGroupActorUid; this.qiy_1 = $gmajMemberActorUid; this.riy_1 = $lastModTime; CoroutineImpl.call(this, resultContinuation); } protoOf(GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.oiy_1.six_1.uiv(this.piy_1, this.qiy_1, this.riy_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda).q79 = function (completion) { return new GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda(this.oiy_1, this.piy_1, this.qiy_1, this.riy_1, completion); }; function GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda_0(this$0, $gmajGroupActorUid, $gmajMemberActorUid, $lastModTime, resultContinuation) { var i = new GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda(this$0, $gmajGroupActorUid, $gmajMemberActorUid, $lastModTime, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function GroupMemberActorJoinDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { GroupMemberActorJoinDao.call(this); this.qix_1 = _db; this.rix_1 = _repo; this.six_1 = _dao; this.tix_1 = _httpClient; this.uix_1 = _clientId; this.vix_1 = _endpoint; } protoOf(GroupMemberActorJoinDao_Repo).siv = function (entities, $completion) { return withRepoChangeMonitorAsync(this.rix_1, 'GroupMemberActorJoin', GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda_0(this, entities, null), $completion); }; protoOf(GroupMemberActorJoinDao_Repo).tiv = function (entities, $completion) { return withRepoChangeMonitorAsync(this.rix_1, 'GroupMemberActorJoin', GroupMemberActorJoinDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion); }; protoOf(GroupMemberActorJoinDao_Repo).uiv = function (gmajGroupActorUid, gmajMemberActorUid, lastModTime, $completion) { return withRepoChangeMonitorAsync(this.rix_1, 'GroupMemberActorJoin', GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda_0(this, gmajGroupActorUid, gmajMemberActorUid, lastModTime, null), $completion); }; function StateDeleteCommandDao() { } function StateDeleteCommandDao_DoorWrapper(_db, _dao) { StateDeleteCommandDao.call(this); this.siy_1 = _db; this.tiy_1 = _dao; } function StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.uiy_1); } protoOf(StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO StateDeleteCommand (sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1).yiy = function (stmt, entity) { stmt.x5i(1, entity.ziy_1); stmt.x5i(2, entity.aiz_1); stmt.x5i(3, entity.biz_1); stmt.a5j(4, entity.ciz_1); stmt.x5i(5, entity.diz_1); setLongNullable(stmt, 6, entity.eiz_1); setLongNullable(stmt, 7, entity.fiz_1); }; protoOf(StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1).r5g = function (stmt, entity) { return this.yiy(stmt, entity instanceof StateDeleteCommand ? entity : THROW_CCE()); }; function StateDeleteCommandDao_JdbcImpl(_db) { StateDeleteCommandDao.call(this); this.uiy_1 = _db; var tmp = this; tmp.viy_1 = new StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1(this); } function StateDeleteCommandDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { StateDeleteCommandDao.call(this); this.giz_1 = _db; this.hiz_1 = _repo; this.iiz_1 = _dao; this.jiz_1 = _httpClient; this.kiz_1 = _clientId; this.liz_1 = _endpoint; } function StateEntityDao() { } function StateEntityDao_DoorWrapper(_db, _dao) { StateEntityDao.call(this); this.miz_1 = _db; this.niz_1 = _dao; } function StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.oiz_1); } protoOf(StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO StateEntity (seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1).siz = function (stmt, entity) { stmt.x5i(1, entity.tiz_1); stmt.x5i(2, entity.uiz_1); stmt.x5i(3, entity.viz_1); stmt.a5j(4, entity.wiz_1); stmt.x5i(5, entity.xiz_1); stmt.x5i(6, entity.yiz_1); stmt.a5j(7, entity.ziz_1); stmt.w5i(8, entity.aj0_1); stmt.a5j(9, entity.bj0_1); stmt.k5i(10, entity.cj0_1); setLongNullable(stmt, 11, entity.dj0_1); setLongNullable(stmt, 12, entity.ej0_1); stmt.k5i(13, entity.fj0_1); stmt.a5j(14, entity.gj0_1); }; protoOf(StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1).r5g = function (stmt, entity) { return this.siz(stmt, entity instanceof StateEntity ? entity : THROW_CCE()); }; function StateEntityDao_JdbcImpl(_db) { StateEntityDao.call(this); this.oiz_1 = _db; var tmp = this; tmp.piz_1 = new StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1(this); } function StateEntityDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { StateEntityDao.call(this); this.hj0_1 = _db; this.ij0_1 = _repo; this.jj0_1 = _dao; this.kj0_1 = _httpClient; this.lj0_1 = _clientId; this.mj0_1 = _endpoint; } function StatementContextActivityJoinDao() { } function StatementContextActivityJoinDao_DoorWrapper(_db, _dao) { StatementContextActivityJoinDao.call(this); this.oj0_1 = _db; this.pj0_1 = _dao; } protoOf(StatementContextActivityJoinDao_DoorWrapper).nj0 = function (entities, $completion) { return this.pj0_1.nj0(entities, $completion); }; function StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1(this$0) { EntityInsertionAdapter.call(this, this$0.qj0_1); } protoOf(StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1).w5h = function (returnsId) { return 'INSERT OR IGNORE INTO StatementContextActivityJoin (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash, scajContextType, scajToActivityUid, scajToActivityId, scajEtag) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1).uj0 = function (stmt, entity) { stmt.x5i(1, entity.vj0_1); stmt.x5i(2, entity.wj0_1); stmt.x5i(3, entity.xj0_1); stmt.w5i(4, entity.yj0_1); stmt.x5i(5, entity.zj0_1); stmt.a5j(6, entity.aj1_1); stmt.x5i(7, entity.bj1_1); }; protoOf(StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1).r5g = function (stmt, entity) { return this.uj0(stmt, entity instanceof StatementContextActivityJoin ? entity : THROW_CCE()); }; function StatementContextActivityJoinDao_JdbcImpl(_db) { StatementContextActivityJoinDao.call(this); this.qj0_1 = _db; var tmp = this; tmp.rj0_1 = new StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1(this); } protoOf(StatementContextActivityJoinDao_JdbcImpl).nj0 = function (entities, $completion) { return this.rj0_1.b5i(entities, $completion); }; function StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entities, resultContinuation) { this.kj1_1 = this$0; this.lj1_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.kj1_1.oj1_1.nj0(this.lj1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda).q79 = function (completion) { return new StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda(this.kj1_1, this.lj1_1, completion); }; function StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function StatementContextActivityJoinDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { StatementContextActivityJoinDao.call(this); this.mj1_1 = _db; this.nj1_1 = _repo; this.oj1_1 = _dao; this.pj1_1 = _httpClient; this.qj1_1 = _clientId; this.rj1_1 = _endpoint; } protoOf(StatementContextActivityJoinDao_Repo).nj0 = function (entities, $completion) { return withRepoChangeMonitorAsync(this.nj1_1, 'StatementContextActivityJoin', StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda_0(this, entities, null), $completion); }; function StatementDao() { } function StatementDao_DoorWrapper(_db, _dao) { StatementDao.call(this); this.aj2_1 = _db; this.bj2_1 = _dao; } protoOf(StatementDao_DoorWrapper).sj1 = function (entityList, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entityList.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_DoorWrapper.insertOrIgnoreListAsync.' call element.dj3_1 = systemTimeInMillis(); } return this.bj2_1.sj1(entityList, $completion); }; protoOf(StatementDao_DoorWrapper).tj1 = function (clazzUid, studentPersonUids, accountPersonUid, $completion) { return this.bj2_1.tj1(clazzUid, studentPersonUids, accountPersonUid, $completion); }; protoOf(StatementDao_DoorWrapper).uj1 = function (clazzUid, studentPersonUids, accountPersonUid) { return this.bj2_1.uj1(clazzUid, studentPersonUids, accountPersonUid); }; protoOf(StatementDao_DoorWrapper).vj1 = function (contentEntryUid, accountPersonUid, searchText, sortOrder) { return this.bj2_1.vj1(contentEntryUid, accountPersonUid, searchText, sortOrder); }; protoOf(StatementDao_DoorWrapper).wj1 = function (contentEntryUid, personUid, accountPersonUid, sortOrder) { return this.bj2_1.wj1(contentEntryUid, personUid, accountPersonUid, sortOrder); }; protoOf(StatementDao_DoorWrapper).xj1 = function (registrationHi, registrationLo, accountPersonUid, selectedPersonUid, contentEntryUid, searchText, sortOrder, deSelectedVerbUids) { return this.bj2_1.xj1(registrationHi, registrationLo, accountPersonUid, selectedPersonUid, contentEntryUid, searchText, sortOrder, deSelectedVerbUids); }; protoOf(StatementDao_DoorWrapper).yj1 = function (registrationHi, registrationLo, selectedPersonUid, contentEntryUid) { return this.bj2_1.yj1(registrationHi, registrationLo, selectedPersonUid, contentEntryUid); }; protoOf(StatementDao_DoorWrapper).zj1 = function (contentEntryUid, accountPersonUid, $completion) { return this.bj2_1.zj1(contentEntryUid, accountPersonUid, $completion); }; function StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda$lambda$lambda($_result) { return function (it) { var _tmp_sPersonUid = $_result.b5o('sPersonUid'); var _tmp_sCbUid = $_result.b5o('sCbUid'); var _tmp_sProgress = getIntNullable($_result, 'sProgress'); var _tmp_sIsCompleted = $_result.m67('sIsCompleted'); var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess'); var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled'); // Inline function 'kotlin.apply' call var this_0 = new BlockStatus(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findStatusForStudentsInClazz....' call this_0.kal_1 = _tmp_sPersonUid; this_0.lal_1 = _tmp_sCbUid; this_0.mal_1 = _tmp_sProgress; this_0.nal_1 = _tmp_sIsCompleted; this_0.oal_1 = _tmp_sIsSuccess; this_0.pal_1 = _tmp_sScoreScaled; return this_0; }; } function StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_sPersonUid = $_result.b5o('sPersonUid'); var _tmp_sCbUid = $_result.b5o('sCbUid'); var _tmp_sProgress = getIntNullable($_result, 'sProgress'); var _tmp_sIsCompleted = $_result.m67('sIsCompleted'); var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess'); var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled'); // Inline function 'kotlin.apply' call var this_0 = new BlockStatus(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findStatusForStudentsInClazzAsFlow.....' call this_0.kal_1 = _tmp_sPersonUid; this_0.lal_1 = _tmp_sCbUid; this_0.mal_1 = _tmp_sProgress; this_0.nal_1 = _tmp_sIsCompleted; this_0.oal_1 = _tmp_sIsSuccess; this_0.pal_1 = _tmp_sScoreScaled; return this_0; }; } function StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) { this.uj3_1 = $studentPersonUids; this.vj3_1 = $clazzUid; this.wj3_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda).yj3 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda).le = function (p1, $completion) { return this.yj3((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; var tmp_0 = this.xj3_1.t5h(); var this_0 = this.uj3_1; this.xj3_1.b5j(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.xj3_1.x5i(2, this.vj3_1); var tmp_1 = this.xj3_1.t5h(); var this_1 = this.uj3_1; this.xj3_1.b5j(3, createArrayOrProxyArrayOf(tmp_1, 'BIGINT', copyToArray(this_1))); this.xj3_1.x5i(4, this.wj3_1); this.xj3_1.x5i(5, this.wj3_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.xj3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda).o5g = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda(this.uj3_1, this.vj3_1, this.wj3_1, completion); i.xj3_1 = _stmt; return i; }; function StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda_0($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) { var i = new StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.yj3(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_numAttempts = $_result.a5o('numAttempts'); var _tmp_isCompleted = $_result.m67('isCompleted'); var _tmp_isSuccessful = getBooleanNullable($_result, 'isSuccessful'); var _tmp_maxScore = getFloatNullable($_result, 'maxScore'); var _tmp_maxProgress = getIntNullable($_result, 'maxProgress'); var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.b5o('personUid'); var tmp; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_username = $_result.b10('username'); var tmp_0; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_firstNames = $_result.b10('firstNames'); var tmp_1; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_lastName = $_result.b10('lastName'); var tmp_2; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_emailAddr = $_result.b10('emailAddr'); var tmp_3; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_phoneNum = $_result.b10('phoneNum'); var tmp_4; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_gender = $_result.a5o('gender'); var tmp_5; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_active = $_result.m67('active'); var tmp_6; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_dateOfBirth = $_result.b5o('dateOfBirth'); var tmp_7; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_personAddress = $_result.b10('personAddress'); var tmp_8; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_personOrgId = $_result.b10('personOrgId'); var tmp_9; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_personGroupUid = $_result.b5o('personGroupUid'); var tmp_10; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_personLct = $_result.b5o('personLct'); var tmp_11; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_personCountry = $_result.b10('personCountry'); var tmp_12; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_personType = $_result.a5o('personType'); var tmp_13; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_personMasterChangeSeqNum = $_result.b5o('personMasterChangeSeqNum'); var tmp_14; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_personLocalChangeSeqNum = $_result.b5o('personLocalChangeSeqNum'); var tmp_15; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_personLastChangedBy = $_result.a5o('personLastChangedBy'); var tmp_16; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_admin = $_result.m67('admin'); var tmp_17; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_personNotes = $_result.b10('personNotes'); var tmp_18; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_fatherName = $_result.b10('fatherName'); var tmp_19; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_fatherNumber = $_result.b10('fatherNumber'); var tmp_20; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_motherName = $_result.b10('motherName'); var tmp_21; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_motherNum = $_result.b10('motherNum'); var tmp_22; if ($_result.t68()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.b5o('personPictureUid'); var tmp_23; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_personPictureLct = $_result.b5o('personPictureLct'); var tmp_24; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_personPictureUri = $_result.b10('personPictureUri'); var tmp_25; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_personPictureThumbnailUri = $_result.b10('personPictureThumbnailUri'); var tmp_26; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_fileSize = $_result.a5o('fileSize'); var tmp_27; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_personPictureActive = $_result.m67('personPictureActive'); var tmp_28; if ($_result.t68()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new PersonAndPictureAndNumAttempts(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows....' call this_0.bj4_1 = _tmp_numAttempts; this_0.cj4_1 = _tmp_isCompleted; this_0.dj4_1 = _tmp_isSuccessful; this_0.ej4_1 = _tmp_maxScore; this_0.fj4_1 = _tmp_maxProgress; if (!_tmp_Person_isAllNull) { var tmp_29 = this_0; // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows.....' call this_1.a97_1 = _tmp_personUid; this_1.b97_1 = _tmp_username; this_1.c97_1 = _tmp_firstNames; this_1.d97_1 = _tmp_lastName; this_1.e97_1 = _tmp_emailAddr; this_1.f97_1 = _tmp_phoneNum; this_1.g97_1 = _tmp_gender; this_1.h97_1 = _tmp_active; this_1.i97_1 = _tmp_dateOfBirth; this_1.j97_1 = _tmp_personAddress; this_1.k97_1 = _tmp_personOrgId; this_1.l97_1 = _tmp_personGroupUid; this_1.m97_1 = _tmp_personLct; this_1.n97_1 = _tmp_personCountry; this_1.o97_1 = _tmp_personType; this_1.p97_1 = _tmp_personMasterChangeSeqNum; this_1.q97_1 = _tmp_personLocalChangeSeqNum; this_1.r97_1 = _tmp_personLastChangedBy; this_1.s97_1 = _tmp_admin; this_1.t97_1 = _tmp_personNotes; this_1.u97_1 = _tmp_fatherName; this_1.v97_1 = _tmp_fatherNumber; this_1.w97_1 = _tmp_motherName; this_1.x97_1 = _tmp_motherNum; tmp_29.zj3_1 = this_1; } if (!_tmp_PersonPicture_isAllNull) { var tmp_30 = this_0; // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows.....' call this_2.y97_1 = _tmp_personPictureUid; this_2.z97_1 = _tmp_personPictureLct; this_2.a98_1 = _tmp_personPictureUri; this_2.b98_1 = _tmp_personPictureThumbnailUri; this_2.c98_1 = _tmp_fileSize; this_2.d98_1 = _tmp_personPictureActive; tmp_30.aj4_1 = this_2; } return this_0; }; } function StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda($contentEntryUid, $accountPersonUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { this.oj4_1 = $contentEntryUid; this.pj4_1 = $accountPersonUid; this.qj4_1 = $searchText; this.rj4_1 = $sortOrder; this.sj4_1 = $_limit; this.tj4_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda).vj4 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda).le = function (p1, $completion) { return this.vj4((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.uj4_1.x5i(1, this.oj4_1); this.uj4_1.x5i(2, this.oj4_1); this.uj4_1.x5i(3, this.oj4_1); this.uj4_1.x5i(4, this.oj4_1); this.uj4_1.x5i(5, this.oj4_1); this.uj4_1.x5i(6, this.oj4_1); this.uj4_1.x5i(7, this.oj4_1); this.uj4_1.x5i(8, this.pj4_1); this.uj4_1.x5i(9, this.oj4_1); this.uj4_1.x5i(10, this.pj4_1); this.uj4_1.x5i(11, this.pj4_1); this.uj4_1.x5i(12, this.pj4_1); this.uj4_1.x5i(13, this.pj4_1); this.uj4_1.a5j(14, this.qj4_1); this.uj4_1.a5j(15, this.qj4_1); this.uj4_1.w5i(16, this.rj4_1); this.uj4_1.x5i(17, this.oj4_1); this.uj4_1.w5i(18, this.rj4_1); this.uj4_1.x5i(19, this.oj4_1); this.uj4_1.w5i(20, this.rj4_1); this.uj4_1.x5i(21, this.oj4_1); this.uj4_1.w5i(22, this.rj4_1); this.uj4_1.w5i(23, this.rj4_1); this.uj4_1.w5i(24, this.rj4_1); this.uj4_1.x5i(25, this.oj4_1); this.uj4_1.w5i(26, this.rj4_1); this.uj4_1.x5i(27, this.oj4_1); this.uj4_1.w5i(28, this.rj4_1); this.uj4_1.x5i(29, this.oj4_1); this.uj4_1.w5i(30, this.rj4_1); this.uj4_1.w5i(31, this.rj4_1); this.uj4_1.w5i(32, this.sj4_1); this.uj4_1.w5i(33, this.tj4_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.uj4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda(this.oj4_1, this.pj4_1, this.qj4_1, this.rj4_1, this.sj4_1, this.tj4_1, completion); i.uj4_1 = _stmt; return i; }; function StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda_0($contentEntryUid, $accountPersonUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { var i = new StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda($contentEntryUid, $accountPersonUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.vj4(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda($contentEntryUid, $accountPersonUid, $searchText, $sortOrder, resultContinuation) { this.ej5_1 = $contentEntryUid; this.fj5_1 = $accountPersonUid; this.gj5_1 = $searchText; this.hj5_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ij5_1.x5i(1, this.ej5_1); this.ij5_1.x5i(2, this.ej5_1); this.ij5_1.x5i(3, this.ej5_1); this.ij5_1.x5i(4, this.ej5_1); this.ij5_1.x5i(5, this.ej5_1); this.ij5_1.x5i(6, this.ej5_1); this.ij5_1.x5i(7, this.ej5_1); this.ij5_1.x5i(8, this.fj5_1); this.ij5_1.x5i(9, this.ej5_1); this.ij5_1.x5i(10, this.fj5_1); this.ij5_1.x5i(11, this.fj5_1); this.ij5_1.x5i(12, this.fj5_1); this.ij5_1.x5i(13, this.fj5_1); this.ij5_1.a5j(14, this.gj5_1); this.ij5_1.a5j(15, this.gj5_1); this.ij5_1.w5i(16, this.hj5_1); this.ij5_1.x5i(17, this.ej5_1); this.ij5_1.w5i(18, this.hj5_1); this.ij5_1.x5i(19, this.ej5_1); this.ij5_1.w5i(20, this.hj5_1); this.ij5_1.x5i(21, this.ej5_1); this.ij5_1.w5i(22, this.hj5_1); this.ij5_1.w5i(23, this.hj5_1); this.ij5_1.w5i(24, this.hj5_1); this.ij5_1.x5i(25, this.ej5_1); this.ij5_1.w5i(26, this.hj5_1); this.ij5_1.x5i(27, this.ej5_1); this.ij5_1.w5i(28, this.hj5_1); this.ij5_1.x5i(29, this.ej5_1); this.ij5_1.w5i(30, this.hj5_1); this.ij5_1.w5i(31, this.hj5_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.ij5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda(this.ej5_1, this.fj5_1, this.gj5_1, this.hj5_1, completion); i.ij5_1 = _stmt; return i; }; function StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda_0($contentEntryUid, $accountPersonUid, $searchText, $sortOrder, resultContinuation) { var i = new StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda($contentEntryUid, $accountPersonUid, $searchText, $sortOrder, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_contextRegistrationHi = $_result.b5o('contextRegistrationHi'); var _tmp_contextRegistrationLo = $_result.b5o('contextRegistrationLo'); var _tmp_timeStarted = $_result.b5o('timeStarted'); var _tmp_maxProgress = getIntNullable($_result, 'maxProgress'); var _tmp_maxScore = getFloatNullable($_result, 'maxScore'); var _tmp_isCompleted = $_result.m67('isCompleted'); var _tmp_isSuccessful = getBooleanNullable($_result, 'isSuccessful'); var _tmp_resultDuration = $_result.b5o('resultDuration'); // Inline function 'kotlin.apply' call var this_0 = new SessionTimeAndProgressInfo(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows....' call this_0.jj5_1 = _tmp_contextRegistrationHi; this_0.kj5_1 = _tmp_contextRegistrationLo; this_0.lj5_1 = _tmp_timeStarted; this_0.mj5_1 = _tmp_maxProgress; this_0.nj5_1 = _tmp_maxScore; this_0.oj5_1 = _tmp_isCompleted; this_0.pj5_1 = _tmp_isSuccessful; this_0.qj5_1 = _tmp_resultDuration; return this_0; }; } function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda($contentEntryUid, $personUid, $accountPersonUid, $sortOrder, $_limit, $_offset, resultContinuation) { this.zj5_1 = $contentEntryUid; this.aj6_1 = $personUid; this.bj6_1 = $accountPersonUid; this.cj6_1 = $sortOrder; this.dj6_1 = $_limit; this.ej6_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda).gj6 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda).le = function (p1, $completion) { return this.gj6((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.fj6_1.x5i(1, this.zj5_1); this.fj6_1.x5i(2, this.aj6_1); this.fj6_1.x5i(3, this.aj6_1); this.fj6_1.x5i(4, this.zj5_1); this.fj6_1.x5i(5, this.aj6_1); this.fj6_1.x5i(6, this.zj5_1); this.fj6_1.x5i(7, this.aj6_1); this.fj6_1.x5i(8, this.zj5_1); this.fj6_1.x5i(9, this.aj6_1); this.fj6_1.x5i(10, this.zj5_1); this.fj6_1.x5i(11, this.aj6_1); this.fj6_1.x5i(12, this.zj5_1); this.fj6_1.x5i(13, this.aj6_1); this.fj6_1.x5i(14, this.zj5_1); this.fj6_1.x5i(15, this.aj6_1); this.fj6_1.x5i(16, this.zj5_1); this.fj6_1.x5i(17, this.aj6_1); this.fj6_1.x5i(18, this.bj6_1); this.fj6_1.x5i(19, this.bj6_1); this.fj6_1.x5i(20, this.bj6_1); this.fj6_1.x5i(21, this.bj6_1); this.fj6_1.x5i(22, this.bj6_1); this.fj6_1.w5i(23, this.cj6_1); this.fj6_1.w5i(24, this.cj6_1); this.fj6_1.w5i(25, this.cj6_1); this.fj6_1.w5i(26, this.cj6_1); this.fj6_1.w5i(27, this.cj6_1); this.fj6_1.w5i(28, this.cj6_1); this.fj6_1.w5i(29, this.dj6_1); this.fj6_1.w5i(30, this.ej6_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.fj6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda(this.zj5_1, this.aj6_1, this.bj6_1, this.cj6_1, this.dj6_1, this.ej6_1, completion); i.fj6_1 = _stmt; return i; }; function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda_0($contentEntryUid, $personUid, $accountPersonUid, $sortOrder, $_limit, $_offset, resultContinuation) { var i = new StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda($contentEntryUid, $personUid, $accountPersonUid, $sortOrder, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.gj6(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda($contentEntryUid, $personUid, $accountPersonUid, $sortOrder, resultContinuation) { this.pj6_1 = $contentEntryUid; this.qj6_1 = $personUid; this.rj6_1 = $accountPersonUid; this.sj6_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.tj6_1.x5i(1, this.pj6_1); this.tj6_1.x5i(2, this.qj6_1); this.tj6_1.x5i(3, this.qj6_1); this.tj6_1.x5i(4, this.pj6_1); this.tj6_1.x5i(5, this.qj6_1); this.tj6_1.x5i(6, this.pj6_1); this.tj6_1.x5i(7, this.qj6_1); this.tj6_1.x5i(8, this.pj6_1); this.tj6_1.x5i(9, this.qj6_1); this.tj6_1.x5i(10, this.pj6_1); this.tj6_1.x5i(11, this.qj6_1); this.tj6_1.x5i(12, this.pj6_1); this.tj6_1.x5i(13, this.qj6_1); this.tj6_1.x5i(14, this.pj6_1); this.tj6_1.x5i(15, this.qj6_1); this.tj6_1.x5i(16, this.pj6_1); this.tj6_1.x5i(17, this.qj6_1); this.tj6_1.x5i(18, this.rj6_1); this.tj6_1.x5i(19, this.rj6_1); this.tj6_1.x5i(20, this.rj6_1); this.tj6_1.x5i(21, this.rj6_1); this.tj6_1.x5i(22, this.rj6_1); this.tj6_1.w5i(23, this.sj6_1); this.tj6_1.w5i(24, this.sj6_1); this.tj6_1.w5i(25, this.sj6_1); this.tj6_1.w5i(26, this.sj6_1); this.tj6_1.w5i(27, this.sj6_1); this.tj6_1.w5i(28, this.sj6_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.tj6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda(this.pj6_1, this.qj6_1, this.rj6_1, this.sj6_1, completion); i.tj6_1 = _stmt; return i; }; function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda_0($contentEntryUid, $personUid, $accountPersonUid, $sortOrder, resultContinuation) { var i = new StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda($contentEntryUid, $personUid, $accountPersonUid, $sortOrder, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_statementActivityDescription = $_result.b10('statementActivityDescription'); var _tmp_StatementEntity_nullCount = 0; var _tmp_statementIdHi = $_result.b5o('statementIdHi'); var tmp; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_statementIdLo = $_result.b5o('statementIdLo'); var tmp_0; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_statementActorPersonUid = $_result.b5o('statementActorPersonUid'); var tmp_1; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_statementVerbUid = $_result.b5o('statementVerbUid'); var tmp_2; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_statementObjectType = $_result.a5o('statementObjectType'); var tmp_3; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_statementObjectUid1 = $_result.b5o('statementObjectUid1'); var tmp_4; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_statementObjectUid2 = $_result.b5o('statementObjectUid2'); var tmp_5; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_statementActorUid = $_result.b5o('statementActorUid'); var tmp_6; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_authorityActorUid = $_result.b5o('authorityActorUid'); var tmp_7; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_teamUid = $_result.b5o('teamUid'); var tmp_8; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_8 = Unit_instance; } var _tmp_resultCompletion = getBooleanNullable($_result, 'resultCompletion'); var tmp_9; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_9 = Unit_instance; } var _tmp_resultSuccess = getBooleanNullable($_result, 'resultSuccess'); var tmp_10; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_10 = Unit_instance; } var _tmp_resultScoreScaled = getFloatNullable($_result, 'resultScoreScaled'); var tmp_11; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_11 = Unit_instance; } var _tmp_resultScoreRaw = getFloatNullable($_result, 'resultScoreRaw'); var tmp_12; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_12 = Unit_instance; } var _tmp_resultScoreMin = getFloatNullable($_result, 'resultScoreMin'); var tmp_13; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_13 = Unit_instance; } var _tmp_resultScoreMax = getFloatNullable($_result, 'resultScoreMax'); var tmp_14; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_14 = Unit_instance; } var _tmp_resultDuration = getLongNullable($_result, 'resultDuration'); var tmp_15; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_15 = Unit_instance; } var _tmp_resultResponse = $_result.b10('resultResponse'); var tmp_16; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_16 = Unit_instance; } var _tmp_timestamp = $_result.b5o('timestamp'); var tmp_17; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_17 = Unit_instance; } var _tmp_stored = $_result.b5o('stored'); var tmp_18; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_18 = Unit_instance; } var _tmp_contextRegistrationHi = $_result.b5o('contextRegistrationHi'); var tmp_19; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_19 = Unit_instance; } var _tmp_contextRegistrationLo = $_result.b5o('contextRegistrationLo'); var tmp_20; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_20 = Unit_instance; } var _tmp_contextRegistrationHash = $_result.b5o('contextRegistrationHash'); var tmp_21; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_21 = Unit_instance; } var _tmp_contextPlatform = $_result.b10('contextPlatform'); var tmp_22; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_22 = Unit_instance; } var _tmp_contextStatementRefIdHi = $_result.b5o('contextStatementRefIdHi'); var tmp_23; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_23 = Unit_instance; } var _tmp_contextStatementRefIdLo = $_result.b5o('contextStatementRefIdLo'); var tmp_24; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_24 = Unit_instance; } var _tmp_contextInstructorActorUid = $_result.b5o('contextInstructorActorUid'); var tmp_25; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_25 = Unit_instance; } var _tmp_statementLct = $_result.b5o('statementLct'); var tmp_26; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_26 = Unit_instance; } var _tmp_extensionProgress = getIntNullable($_result, 'extensionProgress'); var tmp_27; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_27 = Unit_instance; } var _tmp_completionOrProgress = $_result.m67('completionOrProgress'); var tmp_28; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_28 = Unit_instance; } var _tmp_statementContentEntryUid = $_result.b5o('statementContentEntryUid'); var tmp_29; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_29 = Unit_instance; } var _tmp_statementLearnerGroupUid = $_result.b5o('statementLearnerGroupUid'); var tmp_30; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_30 = Unit_instance; } var _tmp_statementClazzUid = $_result.b5o('statementClazzUid'); var tmp_31; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_31 = Unit_instance; } var _tmp_statementCbUid = $_result.b5o('statementCbUid'); var tmp_32; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_32 = Unit_instance; } var _tmp_statementDoorNode = $_result.b5o('statementDoorNode'); var tmp_33; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_33 = Unit_instance; } var _tmp_isSubStatement = $_result.m67('isSubStatement'); var tmp_34; if ($_result.t68()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_34 = Unit_instance; } var _tmp_StatementEntity_isAllNull = _tmp_StatementEntity_nullCount === 36; var _tmp_VerbEntity_nullCount = 0; var _tmp_verbUid = $_result.b5o('verbUid'); var tmp_35; if ($_result.t68()) { _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0; tmp_35 = Unit_instance; } var _tmp_verbUrlId = $_result.b10('verbUrlId'); var tmp_36; if ($_result.t68()) { _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0; tmp_36 = Unit_instance; } var _tmp_verbDeleted = $_result.m67('verbDeleted'); var tmp_37; if ($_result.t68()) { _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0; tmp_37 = Unit_instance; } var _tmp_verbLct = $_result.b5o('verbLct'); var tmp_38; if ($_result.t68()) { _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0; tmp_38 = Unit_instance; } var _tmp_VerbEntity_isAllNull = _tmp_VerbEntity_nullCount === 4; var _tmp_VerbLangMapEntry_nullCount = 0; var _tmp_vlmeVerbUid = $_result.b5o('vlmeVerbUid'); var tmp_39; if ($_result.t68()) { _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0; tmp_39 = Unit_instance; } var _tmp_vlmeLangHash = $_result.b5o('vlmeLangHash'); var tmp_40; if ($_result.t68()) { _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0; tmp_40 = Unit_instance; } var _tmp_vlmeLangCode = $_result.b10('vlmeLangCode'); var tmp_41; if ($_result.t68()) { _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0; tmp_41 = Unit_instance; } var _tmp_vlmeEntryString = $_result.b10('vlmeEntryString'); var tmp_42; if ($_result.t68()) { _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0; tmp_42 = Unit_instance; } var _tmp_vlmeLastModified = $_result.b5o('vlmeLastModified'); var tmp_43; if ($_result.t68()) { _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0; tmp_43 = Unit_instance; } var _tmp_VerbLangMapEntry_isAllNull = _tmp_VerbLangMapEntry_nullCount === 5; var _tmp_ActivityEntity_nullCount = 0; var _tmp_actUid = $_result.b5o('actUid'); var tmp_44; if ($_result.t68()) { _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0; tmp_44 = Unit_instance; } var _tmp_actIdIri = $_result.b10('actIdIri'); var tmp_45; if ($_result.t68()) { _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0; tmp_45 = Unit_instance; } var _tmp_actType = $_result.b10('actType'); var tmp_46; if ($_result.t68()) { _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0; tmp_46 = Unit_instance; } var _tmp_actMoreInfo = $_result.b10('actMoreInfo'); var tmp_47; if ($_result.t68()) { _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0; tmp_47 = Unit_instance; } var _tmp_actInteractionType = $_result.a5o('actInteractionType'); var tmp_48; if ($_result.t68()) { _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0; tmp_48 = Unit_instance; } var _tmp_actCorrectResponsePatterns = $_result.b10('actCorrectResponsePatterns'); var tmp_49; if ($_result.t68()) { _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0; tmp_49 = Unit_instance; } var _tmp_actLct = $_result.b5o('actLct'); var tmp_50; if ($_result.t68()) { _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0; tmp_50 = Unit_instance; } var _tmp_ActivityEntity_isAllNull = _tmp_ActivityEntity_nullCount === 7; var _tmp_ActivityLangMapEntry_nullCount = 0; var _tmp_almeActivityUid = $_result.b5o('almeActivityUid'); var tmp_51; if ($_result.t68()) { _tmp_ActivityLangMapEntry_nullCount = _tmp_ActivityLangMapEntry_nullCount + 1 | 0; tmp_51 = Unit_instance; } var _tmp_almeHash = $_result.b5o('almeHash'); var tmp_52; if ($_result.t68()) { _tmp_ActivityLangMapEntry_nullCount = _tmp_ActivityLangMapEntry_nullCount + 1 | 0; tmp_52 = Unit_instance; } var _tmp_almeLangCode = $_result.b10('almeLangCode'); var tmp_53; if ($_result.t68()) { _tmp_ActivityLangMapEntry_nullCount = _tmp_ActivityLangMapEntry_nullCount + 1 | 0; tmp_53 = Unit_instance; } var _tmp_almePropName = $_result.b10('almePropName'); var tmp_54; if ($_result.t68()) { _tmp_ActivityLangMapEntry_nullCount = _tmp_ActivityLangMapEntry_nullCount + 1 | 0; tmp_54 = Unit_instance; } var _tmp_almeValue = $_result.b10('almeValue'); var tmp_55; if ($_result.t68()) { _tmp_ActivityLangMapEntry_nullCount = _tmp_ActivityLangMapEntry_nullCount + 1 | 0; tmp_55 = Unit_instance; } var _tmp_almeAieHash = $_result.b5o('almeAieHash'); var tmp_56; if ($_result.t68()) { _tmp_ActivityLangMapEntry_nullCount = _tmp_ActivityLangMapEntry_nullCount + 1 | 0; tmp_56 = Unit_instance; } var _tmp_almeLastMod = $_result.b5o('almeLastMod'); var tmp_57; if ($_result.t68()) { _tmp_ActivityLangMapEntry_nullCount = _tmp_ActivityLangMapEntry_nullCount + 1 | 0; tmp_57 = Unit_instance; } var _tmp_ActivityLangMapEntry_isAllNull = _tmp_ActivityLangMapEntry_nullCount === 7; // Inline function 'kotlin.apply' call var this_0 = new StatementEntityAndVerb(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows....' call this_0.zj6_1 = _tmp_statementActivityDescription; if (!_tmp_StatementEntity_isAllNull) { var tmp_58 = this_0; // Inline function 'kotlin.apply' call var this_1 = new StatementEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows.....' call this_1.cj2_1 = _tmp_statementIdHi; this_1.dj2_1 = _tmp_statementIdLo; this_1.ej2_1 = _tmp_statementActorPersonUid; this_1.fj2_1 = _tmp_statementVerbUid; this_1.gj2_1 = _tmp_statementObjectType; this_1.hj2_1 = _tmp_statementObjectUid1; this_1.ij2_1 = _tmp_statementObjectUid2; this_1.jj2_1 = _tmp_statementActorUid; this_1.kj2_1 = _tmp_authorityActorUid; this_1.lj2_1 = _tmp_teamUid; this_1.mj2_1 = _tmp_resultCompletion; this_1.nj2_1 = _tmp_resultSuccess; this_1.oj2_1 = _tmp_resultScoreScaled; this_1.pj2_1 = _tmp_resultScoreRaw; this_1.qj2_1 = _tmp_resultScoreMin; this_1.rj2_1 = _tmp_resultScoreMax; this_1.sj2_1 = _tmp_resultDuration; this_1.tj2_1 = _tmp_resultResponse; this_1.uj2_1 = _tmp_timestamp; this_1.vj2_1 = _tmp_stored; this_1.wj2_1 = _tmp_contextRegistrationHi; this_1.xj2_1 = _tmp_contextRegistrationLo; this_1.yj2_1 = _tmp_contextRegistrationHash; this_1.zj2_1 = _tmp_contextPlatform; this_1.aj3_1 = _tmp_contextStatementRefIdHi; this_1.bj3_1 = _tmp_contextStatementRefIdLo; this_1.cj3_1 = _tmp_contextInstructorActorUid; this_1.dj3_1 = _tmp_statementLct; this_1.ej3_1 = _tmp_extensionProgress; this_1.fj3_1 = _tmp_completionOrProgress; this_1.gj3_1 = _tmp_statementContentEntryUid; this_1.hj3_1 = _tmp_statementLearnerGroupUid; this_1.ij3_1 = _tmp_statementClazzUid; this_1.jj3_1 = _tmp_statementCbUid; this_1.kj3_1 = _tmp_statementDoorNode; this_1.lj3_1 = _tmp_isSubStatement; tmp_58.uj6_1 = this_1; } if (!_tmp_VerbEntity_isAllNull) { var tmp_59 = this_0; // Inline function 'kotlin.apply' call var this_2 = new VerbEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows.....' call this_2.aj7_1 = _tmp_verbUid; this_2.bj7_1 = _tmp_verbUrlId; this_2.cj7_1 = _tmp_verbDeleted; this_2.dj7_1 = _tmp_verbLct; tmp_59.vj6_1 = this_2; } if (!_tmp_VerbLangMapEntry_isAllNull) { var tmp_60 = this_0; // Inline function 'kotlin.apply' call var this_3 = new VerbLangMapEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows.....' call this_3.ej7_1 = _tmp_vlmeVerbUid; this_3.fj7_1 = _tmp_vlmeLangHash; this_3.gj7_1 = _tmp_vlmeLangCode; this_3.hj7_1 = _tmp_vlmeEntryString; this_3.ij7_1 = _tmp_vlmeLastModified; tmp_60.wj6_1 = this_3; } if (!_tmp_ActivityEntity_isAllNull) { var tmp_61 = this_0; // Inline function 'kotlin.apply' call var this_4 = new ActivityEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows.....' call this_4.aid_1 = _tmp_actUid; this_4.bid_1 = _tmp_actIdIri; this_4.cid_1 = _tmp_actType; this_4.did_1 = _tmp_actMoreInfo; this_4.eid_1 = _tmp_actInteractionType; this_4.fid_1 = _tmp_actCorrectResponsePatterns; this_4.gid_1 = _tmp_actLct; tmp_61.xj6_1 = this_4; } if (!_tmp_ActivityLangMapEntry_isAllNull) { var tmp_62 = this_0; // Inline function 'kotlin.apply' call var this_5 = new ActivityLangMapEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows.....' call this_5.oik_1 = _tmp_almeActivityUid; this_5.pik_1 = _tmp_almeHash; this_5.qik_1 = _tmp_almeLangCode; this_5.rik_1 = _tmp_almePropName; this_5.sik_1 = _tmp_almeValue; this_5.tik_1 = _tmp_almeAieHash; this_5.uik_1 = _tmp_almeLastMod; tmp_62.yj6_1 = this_5; } return this_0; }; } function StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.p5t(1); }; } function StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda($accountPersonUid, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, $searchText, $deSelectedVerbUids, $sortOrder, $_limit, $_offset, resultContinuation) { this.rj7_1 = $accountPersonUid; this.sj7_1 = $registrationHi; this.tj7_1 = $registrationLo; this.uj7_1 = $selectedPersonUid; this.vj7_1 = $contentEntryUid; this.wj7_1 = $searchText; this.xj7_1 = $deSelectedVerbUids; this.yj7_1 = $sortOrder; this.zj7_1 = $_limit; this.aj8_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda).cj8 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda).le = function (p1, $completion) { return this.cj8((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.bj8_1.x5i(1, this.rj7_1); this.bj8_1.x5i(2, this.sj7_1); this.bj8_1.x5i(3, this.tj7_1); this.bj8_1.x5i(4, this.uj7_1); this.bj8_1.x5i(5, this.vj7_1); this.bj8_1.a5j(6, this.wj7_1); this.bj8_1.a5j(7, this.wj7_1); var tmp_0 = this.bj8_1.t5h(); var this_0 = this.xj7_1; this.bj8_1.b5j(8, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.bj8_1.x5i(9, this.rj7_1); this.bj8_1.x5i(10, this.uj7_1); this.bj8_1.x5i(11, this.rj7_1); this.bj8_1.x5i(12, this.rj7_1); this.bj8_1.x5i(13, this.rj7_1); this.bj8_1.w5i(14, this.yj7_1); this.bj8_1.w5i(15, this.yj7_1); this.bj8_1.w5i(16, this.yj7_1); this.bj8_1.w5i(17, this.yj7_1); this.bj8_1.w5i(18, this.zj7_1); this.bj8_1.w5i(19, this.aj8_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.bj8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda).o5g = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda(this.rj7_1, this.sj7_1, this.tj7_1, this.uj7_1, this.vj7_1, this.wj7_1, this.xj7_1, this.yj7_1, this.zj7_1, this.aj8_1, completion); i.bj8_1 = _stmt; return i; }; function StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda_0($accountPersonUid, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, $searchText, $deSelectedVerbUids, $sortOrder, $_limit, $_offset, resultContinuation) { var i = new StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda($accountPersonUid, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, $searchText, $deSelectedVerbUids, $sortOrder, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.cj8(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda($accountPersonUid, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, $searchText, $deSelectedVerbUids, $sortOrder, resultContinuation) { this.lj8_1 = $accountPersonUid; this.mj8_1 = $registrationHi; this.nj8_1 = $registrationLo; this.oj8_1 = $selectedPersonUid; this.pj8_1 = $contentEntryUid; this.qj8_1 = $searchText; this.rj8_1 = $deSelectedVerbUids; this.sj8_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.tj8_1.x5i(1, this.lj8_1); this.tj8_1.x5i(2, this.mj8_1); this.tj8_1.x5i(3, this.nj8_1); this.tj8_1.x5i(4, this.oj8_1); this.tj8_1.x5i(5, this.pj8_1); this.tj8_1.a5j(6, this.qj8_1); this.tj8_1.a5j(7, this.qj8_1); var tmp_0 = this.tj8_1.t5h(); var this_0 = this.rj8_1; this.tj8_1.b5j(8, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.tj8_1.x5i(9, this.lj8_1); this.tj8_1.x5i(10, this.oj8_1); this.tj8_1.x5i(11, this.lj8_1); this.tj8_1.x5i(12, this.lj8_1); this.tj8_1.x5i(13, this.lj8_1); this.tj8_1.w5i(14, this.sj8_1); this.tj8_1.w5i(15, this.sj8_1); this.tj8_1.w5i(16, this.sj8_1); this.tj8_1.w5i(17, this.sj8_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.tj8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda).o5g = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda(this.lj8_1, this.mj8_1, this.nj8_1, this.oj8_1, this.pj8_1, this.qj8_1, this.rj8_1, this.sj8_1, completion); i.tj8_1 = _stmt; return i; }; function StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda_0($accountPersonUid, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, $searchText, $deSelectedVerbUids, $sortOrder, resultContinuation) { var i = new StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda($accountPersonUid, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, $searchText, $deSelectedVerbUids, $sortOrder, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_VerbEntity_nullCount = 0; var _tmp_verbUid = $_result.b5o('verbUid'); var tmp; if ($_result.t68()) { _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0; tmp = Unit_instance; } var _tmp_verbUrlId = $_result.b10('verbUrlId'); var tmp_0; if ($_result.t68()) { _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0; tmp_0 = Unit_instance; } var _tmp_verbDeleted = $_result.m67('verbDeleted'); var tmp_1; if ($_result.t68()) { _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0; tmp_1 = Unit_instance; } var _tmp_verbLct = $_result.b5o('verbLct'); var tmp_2; if ($_result.t68()) { _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0; tmp_2 = Unit_instance; } var _tmp_VerbEntity_isAllNull = _tmp_VerbEntity_nullCount === 4; var _tmp_VerbLangMapEntry_nullCount = 0; var _tmp_vlmeVerbUid = $_result.b5o('vlmeVerbUid'); var tmp_3; if ($_result.t68()) { _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0; tmp_3 = Unit_instance; } var _tmp_vlmeLangHash = $_result.b5o('vlmeLangHash'); var tmp_4; if ($_result.t68()) { _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0; tmp_4 = Unit_instance; } var _tmp_vlmeLangCode = $_result.b10('vlmeLangCode'); var tmp_5; if ($_result.t68()) { _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0; tmp_5 = Unit_instance; } var _tmp_vlmeEntryString = $_result.b10('vlmeEntryString'); var tmp_6; if ($_result.t68()) { _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0; tmp_6 = Unit_instance; } var _tmp_vlmeLastModified = $_result.b5o('vlmeLastModified'); var tmp_7; if ($_result.t68()) { _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0; tmp_7 = Unit_instance; } var _tmp_VerbLangMapEntry_isAllNull = _tmp_VerbLangMapEntry_nullCount === 5; // Inline function 'kotlin.apply' call var this_0 = new VerbEntityAndName(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.getUniqueVerbsForSession.....' call if (!_tmp_VerbEntity_isAllNull) { var tmp_8 = this_0; // Inline function 'kotlin.apply' call var this_1 = new VerbEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.getUniqueVerbsForSession......' call this_1.aj7_1 = _tmp_verbUid; this_1.bj7_1 = _tmp_verbUrlId; this_1.cj7_1 = _tmp_verbDeleted; this_1.dj7_1 = _tmp_verbLct; tmp_8.uj8_1 = this_1; } if (!_tmp_VerbLangMapEntry_isAllNull) { var tmp_9 = this_0; // Inline function 'kotlin.apply' call var this_2 = new VerbLangMapEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.getUniqueVerbsForSession......' call this_2.ej7_1 = _tmp_vlmeVerbUid; this_2.fj7_1 = _tmp_vlmeLangHash; this_2.gj7_1 = _tmp_vlmeLangCode; this_2.hj7_1 = _tmp_vlmeEntryString; this_2.ij7_1 = _tmp_vlmeLastModified; tmp_9.vj8_1 = this_2; } return this_0; }; } function StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda($registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation) { this.ej9_1 = $registrationHi; this.fj9_1 = $registrationLo; this.gj9_1 = $selectedPersonUid; this.hj9_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda).jj9 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda).le = function (p1, $completion) { return this.jj9((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ij9_1.x5i(1, this.ej9_1); this.ij9_1.x5i(2, this.fj9_1); this.ij9_1.x5i(3, this.gj9_1); this.ij9_1.x5i(4, this.hj9_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.ij9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda).o5g = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda(this.ej9_1, this.fj9_1, this.gj9_1, this.hj9_1, completion); i.ij9_1 = _stmt; return i; }; function StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda_0($registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation) { var i = new StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda($registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation); var l = function (_stmt, $completion) { return i.jj9(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda$lambda$lambda($_result) { return function (it) { var _tmp_statementIdHi = $_result.b5o('statementIdHi'); var _tmp_statementIdLo = $_result.b5o('statementIdLo'); var _tmp_statementActorPersonUid = $_result.b5o('statementActorPersonUid'); var _tmp_statementVerbUid = $_result.b5o('statementVerbUid'); var _tmp_statementObjectType = $_result.a5o('statementObjectType'); var _tmp_statementObjectUid1 = $_result.b5o('statementObjectUid1'); var _tmp_statementObjectUid2 = $_result.b5o('statementObjectUid2'); var _tmp_statementActorUid = $_result.b5o('statementActorUid'); var _tmp_authorityActorUid = $_result.b5o('authorityActorUid'); var _tmp_teamUid = $_result.b5o('teamUid'); var _tmp_resultCompletion = getBooleanNullable($_result, 'resultCompletion'); var _tmp_resultSuccess = getBooleanNullable($_result, 'resultSuccess'); var _tmp_resultScoreScaled = getFloatNullable($_result, 'resultScoreScaled'); var _tmp_resultScoreRaw = getFloatNullable($_result, 'resultScoreRaw'); var _tmp_resultScoreMin = getFloatNullable($_result, 'resultScoreMin'); var _tmp_resultScoreMax = getFloatNullable($_result, 'resultScoreMax'); var _tmp_resultDuration = getLongNullable($_result, 'resultDuration'); var _tmp_resultResponse = $_result.b10('resultResponse'); var _tmp_timestamp = $_result.b5o('timestamp'); var _tmp_stored = $_result.b5o('stored'); var _tmp_contextRegistrationHi = $_result.b5o('contextRegistrationHi'); var _tmp_contextRegistrationLo = $_result.b5o('contextRegistrationLo'); var _tmp_contextRegistrationHash = $_result.b5o('contextRegistrationHash'); var _tmp_contextPlatform = $_result.b10('contextPlatform'); var _tmp_contextStatementRefIdHi = $_result.b5o('contextStatementRefIdHi'); var _tmp_contextStatementRefIdLo = $_result.b5o('contextStatementRefIdLo'); var _tmp_contextInstructorActorUid = $_result.b5o('contextInstructorActorUid'); var _tmp_statementLct = $_result.b5o('statementLct'); var _tmp_extensionProgress = getIntNullable($_result, 'extensionProgress'); var _tmp_completionOrProgress = $_result.m67('completionOrProgress'); var _tmp_statementContentEntryUid = $_result.b5o('statementContentEntryUid'); var _tmp_statementLearnerGroupUid = $_result.b5o('statementLearnerGroupUid'); var _tmp_statementClazzUid = $_result.b5o('statementClazzUid'); var _tmp_statementCbUid = $_result.b5o('statementCbUid'); var _tmp_statementDoorNode = $_result.b5o('statementDoorNode'); var _tmp_isSubStatement = $_result.m67('isSubStatement'); // Inline function 'kotlin.apply' call var this_0 = new StatementEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.scoreOrProgressDataExistsForContent....' call this_0.cj2_1 = _tmp_statementIdHi; this_0.dj2_1 = _tmp_statementIdLo; this_0.ej2_1 = _tmp_statementActorPersonUid; this_0.fj2_1 = _tmp_statementVerbUid; this_0.gj2_1 = _tmp_statementObjectType; this_0.hj2_1 = _tmp_statementObjectUid1; this_0.ij2_1 = _tmp_statementObjectUid2; this_0.jj2_1 = _tmp_statementActorUid; this_0.kj2_1 = _tmp_authorityActorUid; this_0.lj2_1 = _tmp_teamUid; this_0.mj2_1 = _tmp_resultCompletion; this_0.nj2_1 = _tmp_resultSuccess; this_0.oj2_1 = _tmp_resultScoreScaled; this_0.pj2_1 = _tmp_resultScoreRaw; this_0.qj2_1 = _tmp_resultScoreMin; this_0.rj2_1 = _tmp_resultScoreMax; this_0.sj2_1 = _tmp_resultDuration; this_0.tj2_1 = _tmp_resultResponse; this_0.uj2_1 = _tmp_timestamp; this_0.vj2_1 = _tmp_stored; this_0.wj2_1 = _tmp_contextRegistrationHi; this_0.xj2_1 = _tmp_contextRegistrationLo; this_0.yj2_1 = _tmp_contextRegistrationHash; this_0.zj2_1 = _tmp_contextPlatform; this_0.aj3_1 = _tmp_contextStatementRefIdHi; this_0.bj3_1 = _tmp_contextStatementRefIdLo; this_0.cj3_1 = _tmp_contextInstructorActorUid; this_0.dj3_1 = _tmp_statementLct; this_0.ej3_1 = _tmp_extensionProgress; this_0.fj3_1 = _tmp_completionOrProgress; this_0.gj3_1 = _tmp_statementContentEntryUid; this_0.hj3_1 = _tmp_statementLearnerGroupUid; this_0.ij3_1 = _tmp_statementClazzUid; this_0.jj3_1 = _tmp_statementCbUid; this_0.kj3_1 = _tmp_statementDoorNode; this_0.lj3_1 = _tmp_isSubStatement; return this_0; }; } function StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1(this$0) { EntityInsertionAdapter.call(this, this$0.kj9_1); } protoOf(StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1).w5h = function (returnsId) { return 'INSERT OR IGNORE INTO StatementEntity (statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextRegistrationHash, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1).oj9 = function (stmt, entity) { stmt.x5i(1, entity.cj2_1); stmt.x5i(2, entity.dj2_1); stmt.x5i(3, entity.ej2_1); stmt.x5i(4, entity.fj2_1); stmt.w5i(5, entity.gj2_1); stmt.x5i(6, entity.hj2_1); stmt.x5i(7, entity.ij2_1); stmt.x5i(8, entity.jj2_1); stmt.x5i(9, entity.kj2_1); stmt.x5i(10, entity.lj2_1); setBooleanNullable(stmt, 11, entity.mj2_1); setBooleanNullable(stmt, 12, entity.nj2_1); setFloatNullable(stmt, 13, entity.oj2_1); setFloatNullable(stmt, 14, entity.pj2_1); setFloatNullable(stmt, 15, entity.qj2_1); setFloatNullable(stmt, 16, entity.rj2_1); setLongNullable(stmt, 17, entity.sj2_1); stmt.a5j(18, entity.tj2_1); stmt.x5i(19, entity.uj2_1); stmt.x5i(20, entity.vj2_1); stmt.x5i(21, entity.wj2_1); stmt.x5i(22, entity.xj2_1); stmt.x5i(23, entity.yj2_1); stmt.a5j(24, entity.zj2_1); stmt.x5i(25, entity.aj3_1); stmt.x5i(26, entity.bj3_1); stmt.x5i(27, entity.cj3_1); stmt.x5i(28, entity.dj3_1); setIntNullable(stmt, 29, entity.ej3_1); stmt.k5i(30, entity.fj3_1); stmt.x5i(31, entity.gj3_1); stmt.x5i(32, entity.hj3_1); stmt.x5i(33, entity.ij3_1); stmt.x5i(34, entity.jj3_1); stmt.x5i(35, entity.kj3_1); stmt.k5i(36, entity.lj3_1); }; protoOf(StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1).r5g = function (stmt, entity) { return this.oj9(stmt, entity instanceof StatementEntity ? entity : THROW_CCE()); }; function StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) { this.xj9_1 = $studentPersonUids; this.yj9_1 = $clazzUid; this.zj9_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda).yj3 = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda).le = function (p1, $completion) { return this.yj3((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; var tmp_0 = this.aja_1.t5h(); var this_0 = this.xj9_1; this.aja_1.b5j(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.aja_1.x5i(2, this.yj9_1); var tmp_1 = this.aja_1.t5h(); var this_1 = this.xj9_1; this.aja_1.b5j(3, createArrayOrProxyArrayOf(tmp_1, 'BIGINT', copyToArray(this_1))); this.aja_1.x5i(4, this.zj9_1); this.aja_1.x5i(5, this.zj9_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.aja_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda).o5g = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda(this.xj9_1, this.yj9_1, this.zj9_1, completion); i.aja_1 = _stmt; return i; }; function StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda_0($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) { var i = new StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.yj3(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda(this$0, $studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) { this.jja_1 = this$0; this.kja_1 = $studentPersonUids; this.lja_1 = $clazzUid; this.mja_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda).nja = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda).r79 = function ($completion) { return this.nja($completion); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n WITH PersonUids(personUid) AS (\n SELECT Person.personUid\n FROM Person\n WHERE Person.personUid IN (?)\n ),\n \n \n -- Get the ActorUids for the PersonUids See ActoryEntity doc for info on this join relationship\n AgentActorUidsForPersonUid(actorUid, actorPersonUid) AS(\n SELECT ActorEntity.actorUid AS actorUid, \n ActorEntity.actorPersonUid AS actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorPersonUid IN\n (SELECT PersonUids.personUid\n FROM PersonUids) \n ),\n \n -- Add in group actor uids\n ActorUidsForPersonUid(actorUid, actorPersonUid) AS (\n SELECT AgentActorUidsForPersonUid.actorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid \n UNION \n SELECT GroupMemberActorJoin.gmajGroupActorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid\n JOIN GroupMemberActorJoin \n ON GroupMemberActorJoin.gmajMemberActorUid = AgentActorUidsForPersonUid.actorUid\n )\n ,\n \n PersonUidsAndCourseBlocks(personUid, cbUid, cbType, caMarkingType) AS (\n SELECT Person.personUid AS personUid,\n CourseBlock.cbUid AS cbUid,\n CourseBlock.cbType AS cbType,\n ClazzAssignment.caMarkingType AS caMarkingType\n FROM Person\n JOIN CourseBlock\n ON CourseBlock.cbClazzUid = CAST(? AS BIGINT)\n LEFT JOIN ClazzAssignment\n ON CourseBlock.cbType = 103\n AND ClazzAssignment.caUid = CourseBlock.cbEntityUid \n WHERE Person.personUid IN (?) \n )\n \n SELECT PersonUidsAndCourseBlocks.personUid AS sPersonUid,\n PersonUidsAndCourseBlocks.cbUid AS sCbUid,\n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE \n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n \n ) AS sProgress,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n )) AS sIsCompleted,\n (SELECT CASE\n /*If there is a statement marked as success, then count as successful even if\n *there were subsequent failed attempts\n */\n WHEN (\n SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n ) \n ) THEN 1\n /*If there are no statements marked as success, however there are statements marekd as fail,\n *then count as fail \n */\n WHEN (\n SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n ) \n ) THEN 0\n /* Else there is no known success/fail result*/\n ELSE NULL\n END\n ) AS sIsSuccess,\n -- See ClazzGradebookScreen for info on which score is selected\n (SELECT CASE\n -- When there is a peer marked assignment, take the average of the latest distinct ...\n WHEN ( PersonUidsAndCourseBlocks.cbType = 103\n AND PersonUidsAndCourseBlocks.caMarkingType = 2\n ) \n THEN (SELECT AVG(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND StatementEntity.timestamp = (\n SELECT MAX(StatementEntity_Inner.timestamp)\n FROM StatementEntity StatementEntity_Inner\n \n JOIN ActorEntity ActorEntity_Inner\n ON ActorEntity_Inner.actorUid = StatementEntity_Inner.statementActorUid\n LEFT JOIN GroupMemberActorJoin GroupMemberActorJoin_Inner\n ON ActorEntity_Inner.actorObjectType = 2\n AND (GroupMemberActorJoin_Inner.gmajGroupActorUid, GroupMemberActorJoin_Inner.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity_Inner.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity_Inner.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND StatementEntity_Inner.contextInstructorActorUid = StatementEntity.contextInstructorActorUid)\n LIMIT 1)\n -- When an assignment, but not peer marked, then the latest score \n WHEN PersonUidsAndCourseBlocks.cbType = 103\n THEN (SELECT StatementEntity.resultScoreScaled\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n ORDER BY StatementEntity.timestamp DESC\n LIMIT 1)\n -- else the best score accomplished so far \n ELSE (SELECT MAX(StatementEntity.resultScoreScaled) \n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )) \n END\n ) AS sScoreScaled\n FROM PersonUidsAndCourseBlocks\n WHERE CAST(? AS BIGINT) = CAST(? AS BIGINT) \n ', true, VOID, VOID, '\n WITH PersonUids(personUid) AS (\n SELECT Person.personUid\n FROM Person\n WHERE Person.personUid IN (?)\n ),\n \n \n -- Get the ActorUids for the PersonUids See ActoryEntity doc for info on this join relationship\n AgentActorUidsForPersonUid(actorUid, actorPersonUid) AS(\n SELECT ActorEntity.actorUid AS actorUid, \n ActorEntity.actorPersonUid AS actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorPersonUid IN\n (SELECT PersonUids.personUid\n FROM PersonUids) \n ),\n \n -- Add in group actor uids\n ActorUidsForPersonUid(actorUid, actorPersonUid) AS (\n SELECT AgentActorUidsForPersonUid.actorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid \n UNION \n SELECT GroupMemberActorJoin.gmajGroupActorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid\n JOIN GroupMemberActorJoin \n ON GroupMemberActorJoin.gmajMemberActorUid = AgentActorUidsForPersonUid.actorUid\n )\n ,\n \n PersonUidsAndCourseBlocks(personUid, cbUid, cbType, caMarkingType) AS (\n SELECT Person.personUid AS personUid,\n CourseBlock.cbUid AS cbUid,\n CourseBlock.cbType AS cbType,\n ClazzAssignment.caMarkingType AS caMarkingType\n FROM Person\n JOIN CourseBlock\n ON CourseBlock.cbClazzUid = ?\n LEFT JOIN ClazzAssignment\n ON CourseBlock.cbType = 103\n AND ClazzAssignment.caUid = CourseBlock.cbEntityUid \n WHERE Person.personUid IN (?) \n )\n \n SELECT PersonUidsAndCourseBlocks.personUid AS sPersonUid,\n PersonUidsAndCourseBlocks.cbUid AS sCbUid,\n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE \n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n \n ) AS sProgress,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n )) AS sIsCompleted,\n (SELECT CASE\n /*If there is a statement marked as success, then count as successful even if\n *there were subsequent failed attempts\n */\n WHEN (\n SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n ) \n ) THEN 1\n /*If there are no statements marked as success, however there are statements marekd as fail,\n *then count as fail \n */\n WHEN (\n SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n ) \n ) THEN 0\n /* Else there is no known success/fail result*/\n ELSE NULL\n END\n ) AS sIsSuccess,\n -- See ClazzGradebookScreen for info on which score is selected\n (SELECT CASE\n -- When there is a peer marked assignment, take the average of the latest distinct ...\n WHEN ( PersonUidsAndCourseBlocks.cbType = 103\n AND PersonUidsAndCourseBlocks.caMarkingType = 2\n ) \n THEN (SELECT AVG(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND StatementEntity.timestamp = (\n SELECT MAX(StatementEntity_Inner.timestamp)\n FROM StatementEntity StatementEntity_Inner\n \n JOIN ActorEntity ActorEntity_Inner\n ON ActorEntity_Inner.actorUid = StatementEntity_Inner.statementActorUid\n LEFT JOIN GroupMemberActorJoin GroupMemberActorJoin_Inner\n ON ActorEntity_Inner.actorObjectType = 2\n AND (GroupMemberActorJoin_Inner.gmajGroupActorUid, GroupMemberActorJoin_Inner.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity_Inner.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity_Inner.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND StatementEntity_Inner.contextInstructorActorUid = StatementEntity.contextInstructorActorUid)\n LIMIT 1)\n -- When an assignment, but not peer marked, then the latest score \n WHEN PersonUidsAndCourseBlocks.cbType = 103\n THEN (SELECT StatementEntity.resultScoreScaled\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n ORDER BY StatementEntity.timestamp DESC\n LIMIT 1)\n -- else the best score accomplished so far \n ELSE (SELECT MAX(StatementEntity.resultScoreScaled) \n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )) \n END\n ) AS sScoreScaled\n FROM PersonUidsAndCourseBlocks\n WHERE ? = ? \n \n', true); suspendResult = prepareAndUseStatementAsync(this.jja_1.kj9_1, tmp_0, StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda_0(this.kja_1, this.lja_1, this.mja_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda).q79 = function (completion) { return new StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda(this.jja_1, this.kja_1, this.lja_1, this.mja_1, completion); }; function StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda_0(this$0, $studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) { var i = new StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda(this$0, $studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.nja($completion); }; l.$arity = 0; return l; } function StatementDao_JdbcImpl$findPersonsWithAttempts$1(this$0, $contentEntryUid, $accountPersonUid, $searchText, $sortOrder) { this.uja_1 = this$0; this.vja_1 = $contentEntryUid; this.wja_1 = $accountPersonUid; this.xja_1 = $searchText; this.yja_1 = $sortOrder; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['SystemPermission', 'ClazzEnrolment', 'Person', 'PersonPicture', 'StatementEntity', 'CoursePermission']; DoorLimitOffsetPagingSource.call(this, this$0.kj9_1, tmp$ret$2); } protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$1).zja = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n SELECT Person.*, PersonPicture.*,\n (SELECT COUNT(*)\n FROM (SELECT DISTINCT StatementEntity.contextRegistrationHi, StatementEntity.contextRegistrationLo\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n ) AS DistinctRegistrations) AS numAttempts,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1)) AS isCompleted,\n (SELECT CASE\n WHEN EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n WHEN EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND StatementEntity.resultSuccess IS NOT NULL\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 0\n ELSE NULL\n END) AS isSuccessful,\n (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxProgress,\n (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxScore,\n \n (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n ) AS mostRecentAttemptTime \n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN\n (SELECT DISTINCT StatementEntity.statementActorPersonUid\n \n FROM StatementEntity\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n /* permission check */\n AND ( StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ))\n ) \n AND ( ? = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n ORDER BY \n CASE \n WHEN ? = 5 THEN (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 7 THEN (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 9 THEN (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n )\n ELSE 0\n END ASC,\n CASE \n WHEN ? = 1 THEN Person.firstNames\n WHEN ? = 3 THEN Person.lastName\n ELSE ''\n END ASC, \n CASE \n WHEN ? = 6 THEN (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 8 THEN (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 10 THEN (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n )\n ELSE 0\n END DESC,\n CASE\n WHEN ? = 2 THEN Person.firstNames\n WHEN ? = 4 THEN Person.lastName\n END DESC \n) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n SELECT Person.*, PersonPicture.*,\n (SELECT COUNT(*)\n FROM (SELECT DISTINCT StatementEntity.contextRegistrationHi, StatementEntity.contextRegistrationLo\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n ) AS DistinctRegistrations) AS numAttempts,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1)) AS isCompleted,\n (SELECT CASE\n WHEN EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n WHEN EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND StatementEntity.resultSuccess IS NOT NULL\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 0\n ELSE NULL\n END) AS isSuccessful,\n (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxProgress,\n (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxScore,\n \n (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n ) AS mostRecentAttemptTime \n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN\n (SELECT DISTINCT StatementEntity.statementActorPersonUid\n \n FROM StatementEntity\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.statementContentEntryUid = ?\n /* permission check */\n AND ( StatementEntity.statementActorPersonUid = ?\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ))\n ) \n AND ( ? = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n ORDER BY \n CASE \n WHEN ? = 5 THEN (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 7 THEN (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 9 THEN (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n )\n ELSE 0\n END ASC,\n CASE \n WHEN ? = 1 THEN Person.firstNames\n WHEN ? = 3 THEN Person.lastName\n ELSE ''\n END ASC, \n CASE \n WHEN ? = 6 THEN (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 8 THEN (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 10 THEN (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n )\n ELSE 0\n END DESC,\n CASE\n WHEN ? = 2 THEN Person.firstNames\n WHEN ? = 4 THEN Person.lastName\n END DESC \n) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.uja_1.kj9_1, tmp, StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda_0(this.vja_1, this.wja_1, this.xja_1, this.yja_1, _limit, _offset, null), $completion); }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$1).z5q = function (_limit, _offset, $completion) { return this.zja(_limit, _offset, $completion); }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n SELECT Person.*, PersonPicture.*,\n (SELECT COUNT(*)\n FROM (SELECT DISTINCT StatementEntity.contextRegistrationHi, StatementEntity.contextRegistrationLo\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n ) AS DistinctRegistrations) AS numAttempts,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1)) AS isCompleted,\n (SELECT CASE\n WHEN EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n WHEN EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND StatementEntity.resultSuccess IS NOT NULL\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 0\n ELSE NULL\n END) AS isSuccessful,\n (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxProgress,\n (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxScore,\n \n (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n ) AS mostRecentAttemptTime \n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN\n (SELECT DISTINCT StatementEntity.statementActorPersonUid\n \n FROM StatementEntity\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n /* permission check */\n AND ( StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ))\n ) \n AND ( ? = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n ORDER BY \n CASE \n WHEN ? = 5 THEN (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 7 THEN (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 9 THEN (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n )\n ELSE 0\n END ASC,\n CASE \n WHEN ? = 1 THEN Person.firstNames\n WHEN ? = 3 THEN Person.lastName\n ELSE ''\n END ASC, \n CASE \n WHEN ? = 6 THEN (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 8 THEN (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 10 THEN (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n )\n ELSE 0\n END DESC,\n CASE\n WHEN ? = 2 THEN Person.firstNames\n WHEN ? = 4 THEN Person.lastName\n END DESC \n) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n SELECT Person.*, PersonPicture.*,\n (SELECT COUNT(*)\n FROM (SELECT DISTINCT StatementEntity.contextRegistrationHi, StatementEntity.contextRegistrationLo\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n ) AS DistinctRegistrations) AS numAttempts,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1)) AS isCompleted,\n (SELECT CASE\n WHEN EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n WHEN EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND StatementEntity.resultSuccess IS NOT NULL\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 0\n ELSE NULL\n END) AS isSuccessful,\n (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxProgress,\n (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxScore,\n \n (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n ) AS mostRecentAttemptTime \n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN\n (SELECT DISTINCT StatementEntity.statementActorPersonUid\n \n FROM StatementEntity\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.statementContentEntryUid = ?\n /* permission check */\n AND ( StatementEntity.statementActorPersonUid = ?\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ))\n ) \n AND ( ? = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n ORDER BY \n CASE \n WHEN ? = 5 THEN (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 7 THEN (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 9 THEN (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n )\n ELSE 0\n END ASC,\n CASE \n WHEN ? = 1 THEN Person.firstNames\n WHEN ? = 3 THEN Person.lastName\n ELSE ''\n END ASC, \n CASE \n WHEN ? = 6 THEN (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 8 THEN (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 10 THEN (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n )\n ELSE 0\n END DESC,\n CASE\n WHEN ? = 2 THEN Person.firstNames\n WHEN ? = 4 THEN Person.lastName\n END DESC \n) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.uja_1.kj9_1, tmp, StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda_0(this.vja_1, this.wja_1, this.xja_1, this.yja_1, null), $completion); }; function StatementDao_JdbcImpl$findSessionsByPersonAndContent$1(this$0, $contentEntryUid, $personUid, $accountPersonUid, $sortOrder) { this.gjb_1 = this$0; this.hjb_1 = $contentEntryUid; this.ijb_1 = $personUid; this.jjb_1 = $accountPersonUid; this.kjb_1 = $sortOrder; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['SystemPermission', 'ClazzEnrolment', 'StatementEntity', 'CoursePermission']; DoorLimitOffsetPagingSource.call(this, this$0.kj9_1, tmp$ret$2); } protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$1).ljb = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n WITH \n DistinctRegistrationUids(contextRegistrationHi, contextRegistrationLo, statementClazzUid) AS (\n SELECT DISTINCT StatementEntity.contextRegistrationHi, \n StatementEntity.contextRegistrationLo,\n StatementEntity.statementClazzUid\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT))\n ,\n SessionsByPerson(contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration) AS (\n SELECT DistinctRegistrationUids.contextRegistrationHi AS contextRegistrationHi,\n DistinctRegistrationUids.contextRegistrationLo AS contextRegistrationLo,\n (SELECT MIN(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n ) AS timeStarted,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxProgress,\n \n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxScore,\n \n (SELECT EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n )) AS isCompleted,\n (SELECT CASE \n WHEN EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n WHEN EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND StatementEntity.resultSuccess IS NOT NULL\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0) THEN 0\n ELSE NULL\n END) AS isSuccessful,\n (SELECT MAX(StatementEntity.resultDuration)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)) AS resultDuration\n FROM DistinctRegistrationUids\n WHERE (\n CAST(? AS BIGINT) = CAST(? AS BIGINT) \n OR EXISTS(\n SELECT CoursePermission.cpUid\n FROM CoursePermission\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = DistinctRegistrationUids.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE CoursePermission.cpClazzUid = DistinctRegistrationUids.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n )) \n SELECT SessionsByPerson.*\n FROM SessionsByPerson\n ORDER BY \n CASE ?\n WHEN 1 THEN timeStarted\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 2 THEN timeStarted\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 4 THEN maxScore\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 3 THEN maxScore\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 6 THEN maxProgress\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 5 THEN maxProgress\n ELSE NULL\n END ASC\n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n WITH \n DistinctRegistrationUids(contextRegistrationHi, contextRegistrationLo, statementClazzUid) AS (\n SELECT DISTINCT StatementEntity.contextRegistrationHi, \n StatementEntity.contextRegistrationLo,\n StatementEntity.statementClazzUid\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = ?)\n ,\n SessionsByPerson(contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration) AS (\n SELECT DistinctRegistrationUids.contextRegistrationHi AS contextRegistrationHi,\n DistinctRegistrationUids.contextRegistrationLo AS contextRegistrationLo,\n (SELECT MIN(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n ) AS timeStarted,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxProgress,\n \n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxScore,\n \n (SELECT EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n )) AS isCompleted,\n (SELECT CASE \n WHEN EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n WHEN EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND StatementEntity.resultSuccess IS NOT NULL\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0) THEN 0\n ELSE NULL\n END) AS isSuccessful,\n (SELECT MAX(StatementEntity.resultDuration)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?) AS resultDuration\n FROM DistinctRegistrationUids\n WHERE (\n ? = ? \n OR EXISTS(\n SELECT CoursePermission.cpUid\n FROM CoursePermission\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = DistinctRegistrationUids.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE CoursePermission.cpClazzUid = DistinctRegistrationUids.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n )) \n SELECT SessionsByPerson.*\n FROM SessionsByPerson\n ORDER BY \n CASE ?\n WHEN 1 THEN timeStarted\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 2 THEN timeStarted\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 4 THEN maxScore\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 3 THEN maxScore\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 6 THEN maxProgress\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 5 THEN maxProgress\n ELSE NULL\n END ASC\n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.gjb_1.kj9_1, tmp, StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda_0(this.hjb_1, this.ijb_1, this.jjb_1, this.kjb_1, _limit, _offset, null), $completion); }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$1).z5q = function (_limit, _offset, $completion) { return this.ljb(_limit, _offset, $completion); }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n WITH \n DistinctRegistrationUids(contextRegistrationHi, contextRegistrationLo, statementClazzUid) AS (\n SELECT DISTINCT StatementEntity.contextRegistrationHi, \n StatementEntity.contextRegistrationLo,\n StatementEntity.statementClazzUid\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT))\n ,\n SessionsByPerson(contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration) AS (\n SELECT DistinctRegistrationUids.contextRegistrationHi AS contextRegistrationHi,\n DistinctRegistrationUids.contextRegistrationLo AS contextRegistrationLo,\n (SELECT MIN(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n ) AS timeStarted,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxProgress,\n \n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxScore,\n \n (SELECT EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n )) AS isCompleted,\n (SELECT CASE \n WHEN EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n WHEN EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND StatementEntity.resultSuccess IS NOT NULL\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0) THEN 0\n ELSE NULL\n END) AS isSuccessful,\n (SELECT MAX(StatementEntity.resultDuration)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)) AS resultDuration\n FROM DistinctRegistrationUids\n WHERE (\n CAST(? AS BIGINT) = CAST(? AS BIGINT) \n OR EXISTS(\n SELECT CoursePermission.cpUid\n FROM CoursePermission\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = DistinctRegistrationUids.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE CoursePermission.cpClazzUid = DistinctRegistrationUids.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n )) \n SELECT SessionsByPerson.*\n FROM SessionsByPerson\n ORDER BY \n CASE ?\n WHEN 1 THEN timeStarted\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 2 THEN timeStarted\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 4 THEN maxScore\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 3 THEN maxScore\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 6 THEN maxProgress\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 5 THEN maxProgress\n ELSE NULL\n END ASC\n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n WITH \n DistinctRegistrationUids(contextRegistrationHi, contextRegistrationLo, statementClazzUid) AS (\n SELECT DISTINCT StatementEntity.contextRegistrationHi, \n StatementEntity.contextRegistrationLo,\n StatementEntity.statementClazzUid\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = ?)\n ,\n SessionsByPerson(contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration) AS (\n SELECT DistinctRegistrationUids.contextRegistrationHi AS contextRegistrationHi,\n DistinctRegistrationUids.contextRegistrationLo AS contextRegistrationLo,\n (SELECT MIN(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n ) AS timeStarted,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxProgress,\n \n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxScore,\n \n (SELECT EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n )) AS isCompleted,\n (SELECT CASE \n WHEN EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n WHEN EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND StatementEntity.resultSuccess IS NOT NULL\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0) THEN 0\n ELSE NULL\n END) AS isSuccessful,\n (SELECT MAX(StatementEntity.resultDuration)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?) AS resultDuration\n FROM DistinctRegistrationUids\n WHERE (\n ? = ? \n OR EXISTS(\n SELECT CoursePermission.cpUid\n FROM CoursePermission\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = DistinctRegistrationUids.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE CoursePermission.cpClazzUid = DistinctRegistrationUids.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n )) \n SELECT SessionsByPerson.*\n FROM SessionsByPerson\n ORDER BY \n CASE ?\n WHEN 1 THEN timeStarted\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 2 THEN timeStarted\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 4 THEN maxScore\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 3 THEN maxScore\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 6 THEN maxProgress\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 5 THEN maxProgress\n ELSE NULL\n END ASC\n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.gjb_1.kj9_1, tmp, StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda_0(this.hjb_1, this.ijb_1, this.jjb_1, this.kjb_1, null), $completion); }; function StatementDao_JdbcImpl$findStatementsBySession$1(this$0, $accountPersonUid, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, $searchText, $deSelectedVerbUids, $sortOrder) { this.sjb_1 = this$0; this.tjb_1 = $accountPersonUid; this.ujb_1 = $registrationHi; this.vjb_1 = $registrationLo; this.wjb_1 = $selectedPersonUid; this.xjb_1 = $contentEntryUid; this.yjb_1 = $searchText; this.zjb_1 = $deSelectedVerbUids; this.ajc_1 = $sortOrder; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['SystemPermission', 'ActivityEntity', 'VerbEntity', 'ActivityLangMapEntry', 'ClazzEnrolment', 'VerbLangMapEntry', 'StatementEntity', 'CoursePermission']; DoorLimitOffsetPagingSource.call(this, this$0.kj9_1, tmp$ret$2); } protoOf(StatementDao_JdbcImpl$findStatementsBySession$1).bjc = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n SELECT StatementEntity.*, VerbEntity.*, VerbLangMapEntry.*, ActivityEntity.*,\n ActivityLangMapEntry.*,\n ActivityLangMapDescription.almeValue AS statementActivityDescription\n FROM StatementEntity\n LEFT JOIN VerbEntity\n ON StatementEntity.statementVerbUid = VerbEntity.verbUid\n LEFT JOIN VerbLangMapEntry \n ON (VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash) = \n (SELECT VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash\n FROM VerbLangMapEntry\n WHERE VerbLangMapEntry.vlmeVerbUid = VerbEntity.verbUid\n ORDER BY VerbLangMapEntry.vlmeLastModified DESC\n LIMIT 1)\n LEFT JOIN ActivityEntity\n ON ActivityEntity.actUid = StatementEntity.statementObjectUid1\n LEFT JOIN ActivityLangMapEntry\n ON (ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash) = \n (SELECT ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash\n FROM ActivityLangMapEntry\n WHERE ActivityLangMapEntry.almeActivityUid = StatementEntity.statementObjectUid1\n AND ActivityLangMapEntry.almePropName = 'name'\n LIMIT 1)\n LEFT JOIN ActivityLangMapEntry ActivityLangMapDescription\n ON (ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash) = \n (SELECT ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash\n FROM ActivityLangMapEntry ActivityLangMapDescription\n WHERE ActivityLangMapDescription.almeActivityUid = StatementEntity.statementObjectUid1\n AND ActivityLangMapDescription.almePropName = 'description'\n LIMIT 1)\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.contextRegistrationHi = CAST(? AS BIGINT)\n AND StatementEntity.contextRegistrationLo = CAST(? AS BIGINT) \n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND (? = '%' OR VerbEntity.verbUrlId LIKE ?)\n AND StatementEntity.statementVerbUid NOT IN (?)\n /* Permission check */\n AND (\n CAST(? AS BIGINT) = CAST(? AS BIGINT) \n OR EXISTS(\n SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND (\n CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole\n )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted\n )\n OR (\n \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n )\n )\n ORDER BY \n CASE ?\n WHEN 1 THEN StatementEntity.timestamp\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 2 THEN StatementEntity.timestamp\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 3 THEN StatementEntity.resultScoreRaw\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 4 THEN StatementEntity.resultScoreRaw\n ELSE NULL\n END ASC\n) AS _PagingData LIMIT ? OFFSET ?", true, VOID, VOID, "SELECT * FROM (\n SELECT StatementEntity.*, VerbEntity.*, VerbLangMapEntry.*, ActivityEntity.*,\n ActivityLangMapEntry.*,\n ActivityLangMapDescription.almeValue AS statementActivityDescription\n FROM StatementEntity\n LEFT JOIN VerbEntity\n ON StatementEntity.statementVerbUid = VerbEntity.verbUid\n LEFT JOIN VerbLangMapEntry \n ON (VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash) = \n (SELECT VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash\n FROM VerbLangMapEntry\n WHERE VerbLangMapEntry.vlmeVerbUid = VerbEntity.verbUid\n ORDER BY VerbLangMapEntry.vlmeLastModified DESC\n LIMIT 1)\n LEFT JOIN ActivityEntity\n ON ActivityEntity.actUid = StatementEntity.statementObjectUid1\n LEFT JOIN ActivityLangMapEntry\n ON (ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash) = \n (SELECT ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash\n FROM ActivityLangMapEntry\n WHERE ActivityLangMapEntry.almeActivityUid = StatementEntity.statementObjectUid1\n AND ActivityLangMapEntry.almePropName = 'name'\n LIMIT 1)\n LEFT JOIN ActivityLangMapEntry ActivityLangMapDescription\n ON (ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash) = \n (SELECT ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash\n FROM ActivityLangMapEntry ActivityLangMapDescription\n WHERE ActivityLangMapDescription.almeActivityUid = StatementEntity.statementObjectUid1\n AND ActivityLangMapDescription.almePropName = 'description'\n LIMIT 1)\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.contextRegistrationHi = ?\n AND StatementEntity.contextRegistrationLo = ? \n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND (? = '%' OR VerbEntity.verbUrlId LIKE ?)\n AND StatementEntity.statementVerbUid NOT IN (?)\n /* Permission check */\n AND (\n ? = ? \n OR EXISTS(\n SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND (\n CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole\n )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted\n )\n OR (\n \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n )\n )\n ORDER BY \n CASE ?\n WHEN 1 THEN StatementEntity.timestamp\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 2 THEN StatementEntity.timestamp\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 3 THEN StatementEntity.resultScoreRaw\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 4 THEN StatementEntity.resultScoreRaw\n ELSE NULL\n END ASC\n) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.sjb_1.kj9_1, tmp, StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda_0(this.tjb_1, this.ujb_1, this.vjb_1, this.wjb_1, this.xjb_1, this.yjb_1, this.zjb_1, this.ajc_1, _limit, _offset, null), $completion); }; protoOf(StatementDao_JdbcImpl$findStatementsBySession$1).z5q = function (_limit, _offset, $completion) { return this.bjc(_limit, _offset, $completion); }; protoOf(StatementDao_JdbcImpl$findStatementsBySession$1).t5s = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n SELECT StatementEntity.*, VerbEntity.*, VerbLangMapEntry.*, ActivityEntity.*,\n ActivityLangMapEntry.*,\n ActivityLangMapDescription.almeValue AS statementActivityDescription\n FROM StatementEntity\n LEFT JOIN VerbEntity\n ON StatementEntity.statementVerbUid = VerbEntity.verbUid\n LEFT JOIN VerbLangMapEntry \n ON (VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash) = \n (SELECT VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash\n FROM VerbLangMapEntry\n WHERE VerbLangMapEntry.vlmeVerbUid = VerbEntity.verbUid\n ORDER BY VerbLangMapEntry.vlmeLastModified DESC\n LIMIT 1)\n LEFT JOIN ActivityEntity\n ON ActivityEntity.actUid = StatementEntity.statementObjectUid1\n LEFT JOIN ActivityLangMapEntry\n ON (ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash) = \n (SELECT ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash\n FROM ActivityLangMapEntry\n WHERE ActivityLangMapEntry.almeActivityUid = StatementEntity.statementObjectUid1\n AND ActivityLangMapEntry.almePropName = 'name'\n LIMIT 1)\n LEFT JOIN ActivityLangMapEntry ActivityLangMapDescription\n ON (ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash) = \n (SELECT ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash\n FROM ActivityLangMapEntry ActivityLangMapDescription\n WHERE ActivityLangMapDescription.almeActivityUid = StatementEntity.statementObjectUid1\n AND ActivityLangMapDescription.almePropName = 'description'\n LIMIT 1)\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.contextRegistrationHi = CAST(? AS BIGINT)\n AND StatementEntity.contextRegistrationLo = CAST(? AS BIGINT) \n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND (? = '%' OR VerbEntity.verbUrlId LIKE ?)\n AND StatementEntity.statementVerbUid NOT IN (?)\n /* Permission check */\n AND (\n CAST(? AS BIGINT) = CAST(? AS BIGINT) \n OR EXISTS(\n SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND (\n CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole\n )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted\n )\n OR (\n \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n )\n )\n ORDER BY \n CASE ?\n WHEN 1 THEN StatementEntity.timestamp\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 2 THEN StatementEntity.timestamp\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 3 THEN StatementEntity.resultScoreRaw\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 4 THEN StatementEntity.resultScoreRaw\n ELSE NULL\n END ASC\n) AS _PagingCount", true, VOID, VOID, "SELECT COUNT(*) FROM (\n SELECT StatementEntity.*, VerbEntity.*, VerbLangMapEntry.*, ActivityEntity.*,\n ActivityLangMapEntry.*,\n ActivityLangMapDescription.almeValue AS statementActivityDescription\n FROM StatementEntity\n LEFT JOIN VerbEntity\n ON StatementEntity.statementVerbUid = VerbEntity.verbUid\n LEFT JOIN VerbLangMapEntry \n ON (VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash) = \n (SELECT VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash\n FROM VerbLangMapEntry\n WHERE VerbLangMapEntry.vlmeVerbUid = VerbEntity.verbUid\n ORDER BY VerbLangMapEntry.vlmeLastModified DESC\n LIMIT 1)\n LEFT JOIN ActivityEntity\n ON ActivityEntity.actUid = StatementEntity.statementObjectUid1\n LEFT JOIN ActivityLangMapEntry\n ON (ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash) = \n (SELECT ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash\n FROM ActivityLangMapEntry\n WHERE ActivityLangMapEntry.almeActivityUid = StatementEntity.statementObjectUid1\n AND ActivityLangMapEntry.almePropName = 'name'\n LIMIT 1)\n LEFT JOIN ActivityLangMapEntry ActivityLangMapDescription\n ON (ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash) = \n (SELECT ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash\n FROM ActivityLangMapEntry ActivityLangMapDescription\n WHERE ActivityLangMapDescription.almeActivityUid = StatementEntity.statementObjectUid1\n AND ActivityLangMapDescription.almePropName = 'description'\n LIMIT 1)\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.contextRegistrationHi = ?\n AND StatementEntity.contextRegistrationLo = ? \n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND (? = '%' OR VerbEntity.verbUrlId LIKE ?)\n AND StatementEntity.statementVerbUid NOT IN (?)\n /* Permission check */\n AND (\n ? = ? \n OR EXISTS(\n SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND (\n CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole\n )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted\n )\n OR (\n \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n )\n )\n ORDER BY \n CASE ?\n WHEN 1 THEN StatementEntity.timestamp\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 2 THEN StatementEntity.timestamp\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 3 THEN StatementEntity.resultScoreRaw\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 4 THEN StatementEntity.resultScoreRaw\n ELSE NULL\n END ASC\n) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.sjb_1.kj9_1, tmp, StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda_0(this.tjb_1, this.ujb_1, this.vjb_1, this.wjb_1, this.xjb_1, this.yjb_1, this.zjb_1, this.ajc_1, null), $completion); }; function StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda(this$0, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation) { this.kjc_1 = this$0; this.ljc_1 = $registrationHi; this.mjc_1 = $registrationLo; this.njc_1 = $selectedPersonUid; this.ojc_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda).pjc = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda).r79 = function ($completion) { return this.pjc($completion); }; protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n WITH DistinctVerbUrls(statementVerbUid) AS (\n SELECT DISTINCT StatementEntity.statementVerbUid\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = CAST(? AS BIGINT)\n AND StatementEntity.contextRegistrationLo = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n )\n \n SELECT VerbEntity.*,\n VerbLangMapEntry.*\n FROM DistinctVerbUrls\n JOIN VerbEntity \n ON VerbEntity.verbUid = DistinctVerbUrls.statementVerbUid\n LEFT JOIN VerbLangMapEntry\n ON (VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash) = \n (SELECT VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash\n FROM VerbLangMapEntry\n WHERE VerbLangMapEntry.vlmeVerbUid = DistinctVerbUrls.statementVerbUid\n ORDER BY VerbLangMapEntry.vlmeLastModified DESC\n LIMIT 1)\n', VOID, VOID, VOID, '\n WITH DistinctVerbUrls(statementVerbUid) AS (\n SELECT DISTINCT StatementEntity.statementVerbUid\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = ?\n AND StatementEntity.contextRegistrationLo = ?\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n )\n \n SELECT VerbEntity.*,\n VerbLangMapEntry.*\n FROM DistinctVerbUrls\n JOIN VerbEntity \n ON VerbEntity.verbUid = DistinctVerbUrls.statementVerbUid\n LEFT JOIN VerbLangMapEntry\n ON (VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash) = \n (SELECT VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash\n FROM VerbLangMapEntry\n WHERE VerbLangMapEntry.vlmeVerbUid = DistinctVerbUrls.statementVerbUid\n ORDER BY VerbLangMapEntry.vlmeLastModified DESC\n LIMIT 1)\n\n', true); suspendResult = prepareAndUseStatementAsync(this.kjc_1.kj9_1, tmp_0, StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda_0(this.ljc_1, this.mjc_1, this.njc_1, this.ojc_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda).q79 = function (completion) { return new StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda(this.kjc_1, this.ljc_1, this.mjc_1, this.njc_1, this.ojc_1, completion); }; function StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda_0(this$0, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation) { var i = new StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda(this$0, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation); var l = function ($completion) { return i.pjc($completion); }; l.$arity = 0; return l; } function StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda($accountPersonUid, $contentEntryUid, resultContinuation) { this.yjc_1 = $accountPersonUid; this.zjc_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda).bjd = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda).le = function (p1, $completion) { return this.bjd((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ajd_1.x5i(1, this.yjc_1); this.ajd_1.x5i(2, this.zjc_1); this.ajd_1.x5i(3, this.yjc_1); this.ajd_1.x5i(4, this.yjc_1); this.ajd_1.x5i(5, this.yjc_1); this.ajd_1.x5i(6, this.yjc_1); this.ajd_1.x5i(7, this.yjc_1); this.ajd_1.x5i(8, this.zjc_1); this.ajd_1.x5i(9, this.yjc_1); this.ajd_1.x5i(10, this.yjc_1); this.ajd_1.x5i(11, this.yjc_1); this.ajd_1.x5i(12, this.yjc_1); this.ld_1 = 1; suspendResult = executeQueryAsyncKmp(this.ajd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda$lambda); case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda).o5g = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda(this.yjc_1, this.zjc_1, completion); i.ajd_1 = _stmt; return i; }; function StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda_0($accountPersonUid, $contentEntryUid, resultContinuation) { var i = new StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda($accountPersonUid, $contentEntryUid, resultContinuation); var l = function (_stmt, $completion) { return i.bjd(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl(_db) { StatementDao.call(this); this.kj9_1 = _db; var tmp = this; tmp.lj9_1 = new StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1(this); } protoOf(StatementDao_JdbcImpl).sj1 = function (entityList, $completion) { return this.lj9_1.b5i(entityList, $completion); }; protoOf(StatementDao_JdbcImpl).tj1 = function (clazzUid, studentPersonUids, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n WITH PersonUids(personUid) AS (\n SELECT Person.personUid\n FROM Person\n WHERE Person.personUid IN (?)\n ),\n \n \n -- Get the ActorUids for the PersonUids See ActoryEntity doc for info on this join relationship\n AgentActorUidsForPersonUid(actorUid, actorPersonUid) AS(\n SELECT ActorEntity.actorUid AS actorUid, \n ActorEntity.actorPersonUid AS actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorPersonUid IN\n (SELECT PersonUids.personUid\n FROM PersonUids) \n ),\n \n -- Add in group actor uids\n ActorUidsForPersonUid(actorUid, actorPersonUid) AS (\n SELECT AgentActorUidsForPersonUid.actorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid \n UNION \n SELECT GroupMemberActorJoin.gmajGroupActorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid\n JOIN GroupMemberActorJoin \n ON GroupMemberActorJoin.gmajMemberActorUid = AgentActorUidsForPersonUid.actorUid\n )\n ,\n \n PersonUidsAndCourseBlocks(personUid, cbUid, cbType, caMarkingType) AS (\n SELECT Person.personUid AS personUid,\n CourseBlock.cbUid AS cbUid,\n CourseBlock.cbType AS cbType,\n ClazzAssignment.caMarkingType AS caMarkingType\n FROM Person\n JOIN CourseBlock\n ON CourseBlock.cbClazzUid = CAST(? AS BIGINT)\n LEFT JOIN ClazzAssignment\n ON CourseBlock.cbType = 103\n AND ClazzAssignment.caUid = CourseBlock.cbEntityUid \n WHERE Person.personUid IN (?) \n )\n \n SELECT PersonUidsAndCourseBlocks.personUid AS sPersonUid,\n PersonUidsAndCourseBlocks.cbUid AS sCbUid,\n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE \n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n \n ) AS sProgress,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n )) AS sIsCompleted,\n (SELECT CASE\n /*If there is a statement marked as success, then count as successful even if\n *there were subsequent failed attempts\n */\n WHEN (\n SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n ) \n ) THEN 1\n /*If there are no statements marked as success, however there are statements marekd as fail,\n *then count as fail \n */\n WHEN (\n SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n ) \n ) THEN 0\n /* Else there is no known success/fail result*/\n ELSE NULL\n END\n ) AS sIsSuccess,\n -- See ClazzGradebookScreen for info on which score is selected\n (SELECT CASE\n -- When there is a peer marked assignment, take the average of the latest distinct ...\n WHEN ( PersonUidsAndCourseBlocks.cbType = 103\n AND PersonUidsAndCourseBlocks.caMarkingType = 2\n ) \n THEN (SELECT AVG(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND StatementEntity.timestamp = (\n SELECT MAX(StatementEntity_Inner.timestamp)\n FROM StatementEntity StatementEntity_Inner\n \n JOIN ActorEntity ActorEntity_Inner\n ON ActorEntity_Inner.actorUid = StatementEntity_Inner.statementActorUid\n LEFT JOIN GroupMemberActorJoin GroupMemberActorJoin_Inner\n ON ActorEntity_Inner.actorObjectType = 2\n AND (GroupMemberActorJoin_Inner.gmajGroupActorUid, GroupMemberActorJoin_Inner.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity_Inner.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity_Inner.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND StatementEntity_Inner.contextInstructorActorUid = StatementEntity.contextInstructorActorUid)\n LIMIT 1)\n -- When an assignment, but not peer marked, then the latest score \n WHEN PersonUidsAndCourseBlocks.cbType = 103\n THEN (SELECT StatementEntity.resultScoreScaled\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n ORDER BY StatementEntity.timestamp DESC\n LIMIT 1)\n -- else the best score accomplished so far \n ELSE (SELECT MAX(StatementEntity.resultScoreScaled) \n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )) \n END\n ) AS sScoreScaled\n FROM PersonUidsAndCourseBlocks\n WHERE CAST(? AS BIGINT) = CAST(? AS BIGINT) \n ', true, VOID, VOID, '\n WITH PersonUids(personUid) AS (\n SELECT Person.personUid\n FROM Person\n WHERE Person.personUid IN (?)\n ),\n \n \n -- Get the ActorUids for the PersonUids See ActoryEntity doc for info on this join relationship\n AgentActorUidsForPersonUid(actorUid, actorPersonUid) AS(\n SELECT ActorEntity.actorUid AS actorUid, \n ActorEntity.actorPersonUid AS actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorPersonUid IN\n (SELECT PersonUids.personUid\n FROM PersonUids) \n ),\n \n -- Add in group actor uids\n ActorUidsForPersonUid(actorUid, actorPersonUid) AS (\n SELECT AgentActorUidsForPersonUid.actorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid \n UNION \n SELECT GroupMemberActorJoin.gmajGroupActorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid\n JOIN GroupMemberActorJoin \n ON GroupMemberActorJoin.gmajMemberActorUid = AgentActorUidsForPersonUid.actorUid\n )\n ,\n \n PersonUidsAndCourseBlocks(personUid, cbUid, cbType, caMarkingType) AS (\n SELECT Person.personUid AS personUid,\n CourseBlock.cbUid AS cbUid,\n CourseBlock.cbType AS cbType,\n ClazzAssignment.caMarkingType AS caMarkingType\n FROM Person\n JOIN CourseBlock\n ON CourseBlock.cbClazzUid = ?\n LEFT JOIN ClazzAssignment\n ON CourseBlock.cbType = 103\n AND ClazzAssignment.caUid = CourseBlock.cbEntityUid \n WHERE Person.personUid IN (?) \n )\n \n SELECT PersonUidsAndCourseBlocks.personUid AS sPersonUid,\n PersonUidsAndCourseBlocks.cbUid AS sCbUid,\n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE \n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n \n ) AS sProgress,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n )) AS sIsCompleted,\n (SELECT CASE\n /*If there is a statement marked as success, then count as successful even if\n *there were subsequent failed attempts\n */\n WHEN (\n SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n ) \n ) THEN 1\n /*If there are no statements marked as success, however there are statements marekd as fail,\n *then count as fail \n */\n WHEN (\n SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n ) \n ) THEN 0\n /* Else there is no known success/fail result*/\n ELSE NULL\n END\n ) AS sIsSuccess,\n -- See ClazzGradebookScreen for info on which score is selected\n (SELECT CASE\n -- When there is a peer marked assignment, take the average of the latest distinct ...\n WHEN ( PersonUidsAndCourseBlocks.cbType = 103\n AND PersonUidsAndCourseBlocks.caMarkingType = 2\n ) \n THEN (SELECT AVG(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND StatementEntity.timestamp = (\n SELECT MAX(StatementEntity_Inner.timestamp)\n FROM StatementEntity StatementEntity_Inner\n \n JOIN ActorEntity ActorEntity_Inner\n ON ActorEntity_Inner.actorUid = StatementEntity_Inner.statementActorUid\n LEFT JOIN GroupMemberActorJoin GroupMemberActorJoin_Inner\n ON ActorEntity_Inner.actorObjectType = 2\n AND (GroupMemberActorJoin_Inner.gmajGroupActorUid, GroupMemberActorJoin_Inner.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity_Inner.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity_Inner.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND StatementEntity_Inner.contextInstructorActorUid = StatementEntity.contextInstructorActorUid)\n LIMIT 1)\n -- When an assignment, but not peer marked, then the latest score \n WHEN PersonUidsAndCourseBlocks.cbType = 103\n THEN (SELECT StatementEntity.resultScoreScaled\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n ORDER BY StatementEntity.timestamp DESC\n LIMIT 1)\n -- else the best score accomplished so far \n ELSE (SELECT MAX(StatementEntity.resultScoreScaled) \n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )) \n END\n ) AS sScoreScaled\n FROM PersonUidsAndCourseBlocks\n WHERE ? = ? \n \n', true); return prepareAndUseStatementAsync(this.kj9_1, tmp, StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda_0(studentPersonUids, clazzUid, accountPersonUid, null), $completion); }; protoOf(StatementDao_JdbcImpl).uj1 = function (clazzUid, studentPersonUids, accountPersonUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ClazzAssignment', 'CourseBlock', 'Person', 'GroupMemberActorJoin', 'ActorEntity', 'StatementEntity']; return doorFlow(this.kj9_1, tmp, StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda_0(this, studentPersonUids, clazzUid, accountPersonUid, null)); }; protoOf(StatementDao_JdbcImpl).vj1 = function (contentEntryUid, accountPersonUid, searchText, sortOrder) { return new StatementDao_JdbcImpl$findPersonsWithAttempts$1(this, contentEntryUid, accountPersonUid, searchText, sortOrder); }; protoOf(StatementDao_JdbcImpl).wj1 = function (contentEntryUid, personUid, accountPersonUid, sortOrder) { return new StatementDao_JdbcImpl$findSessionsByPersonAndContent$1(this, contentEntryUid, personUid, accountPersonUid, sortOrder); }; protoOf(StatementDao_JdbcImpl).xj1 = function (registrationHi, registrationLo, accountPersonUid, selectedPersonUid, contentEntryUid, searchText, sortOrder, deSelectedVerbUids) { return new StatementDao_JdbcImpl$findStatementsBySession$1(this, accountPersonUid, registrationHi, registrationLo, selectedPersonUid, contentEntryUid, searchText, deSelectedVerbUids, sortOrder); }; protoOf(StatementDao_JdbcImpl).yj1 = function (registrationHi, registrationLo, selectedPersonUid, contentEntryUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['VerbEntity', 'VerbLangMapEntry', 'StatementEntity']; return doorFlow(this.kj9_1, tmp, StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda_0(this, registrationHi, registrationLo, selectedPersonUid, contentEntryUid, null)); }; protoOf(StatementDao_JdbcImpl).zj1 = function (contentEntryUid, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT * \n FROM (SELECT StatementEntity.*\n \n FROM StatementEntity\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n /* permission check */\n AND ( StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ))\n \n AND ( StatementEntity.extensionProgress IS NOT NULL\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n LIMIT 1) AS ProgressStatements\n UNION\n SELECT * \n FROM (SELECT StatementEntity.*\n \n FROM StatementEntity\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n /* permission check */\n AND ( StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ))\n \n AND ( StatementEntity.resultScoreScaled IS NOT NULL\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n LIMIT 1) AS ScoreStatements\n ', VOID, VOID, VOID, '\n SELECT * \n FROM (SELECT StatementEntity.*\n \n FROM StatementEntity\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.statementContentEntryUid = ?\n /* permission check */\n AND ( StatementEntity.statementActorPersonUid = ?\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ))\n \n AND ( StatementEntity.extensionProgress IS NOT NULL\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n LIMIT 1) AS ProgressStatements\n UNION\n SELECT * \n FROM (SELECT StatementEntity.*\n \n FROM StatementEntity\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.statementContentEntryUid = ?\n /* permission check */\n AND ( StatementEntity.statementActorPersonUid = ?\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ))\n \n AND ( StatementEntity.resultScoreScaled IS NOT NULL\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n LIMIT 1) AS ScoreStatements\n \n', true); return prepareAndUseStatementAsync(this.kj9_1, tmp, StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda_0(accountPersonUid, contentEntryUid, null), $completion); }; function StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function StatementDao_Repo$findPersonsWithAttempts$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function StatementDao_Repo$findSessionsByPersonAndContent$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function StatementDao_Repo$findStatementsBySession$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function StatementDao_Repo$getUniqueVerbsForSession$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function StatementDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entityList, resultContinuation) { this.kjd_1 = this$0; this.ljd_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_Repo$insertOrIgnoreListAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(StatementDao_Repo$insertOrIgnoreListAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(StatementDao_Repo$insertOrIgnoreListAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.kjd_1.ojd_1.sj1(this.ljd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(StatementDao_Repo$insertOrIgnoreListAsync$slambda).q79 = function (completion) { return new StatementDao_Repo$insertOrIgnoreListAsync$slambda(this.kjd_1, this.ljd_1, completion); }; function StatementDao_Repo$insertOrIgnoreListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new StatementDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda(this$0, $clazzUid, $studentPersonUids, $accountPersonUid, resultContinuation) { this.bje_1 = this$0; this.cje_1 = $clazzUid; this.dje_1 = $studentPersonUids; this.eje_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.fje_1 = this.bje_1.njd_1; var tmp_1 = this; tmp_1.gje_1 = 'StatementDao/findStatusForStudentsInClazzAsFlow'; this.md_1 = 3; var tmp_2 = this; tmp_2.hje_1 = this.bje_1.pjd_1; var tmp_3 = this; tmp_3.ije_1 = this.hje_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.bje_1.njd_1.t39(), 'StatementDao/findStatusForStudentsInClazzAsFlow'); doorNodeIdHeader(this_0, this.bje_1.njd_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.bje_1.njd_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.cje_1)); parameter(this_0, 'studentPersonUids', this.bje_1.njd_1.t39().a67_1.b46(ListSerializer(serializer(Companion_getInstance())), this.dje_1)); parameter(this_0, 'accountPersonUid', this.bje_1.njd_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.eje_1)); tmp_4.jje_1 = this_0; this.jje_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.kje_1 = this.ije_1; var tmp_6 = this; tmp_6.lje_1 = this.jje_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.lje_1, this.kje_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.mje_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.bje_1.mjd_1, this.mje_1, this.bje_1.njd_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda$lambda(this.fje_1, this.gje_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda).q79 = function (completion) { return new StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda(this.bje_1, this.cje_1, this.dje_1, this.eje_1, completion); }; function StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda_0(this$0, $clazzUid, $studentPersonUids, $accountPersonUid, resultContinuation) { var i = new StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda(this$0, $clazzUid, $studentPersonUids, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function StatementDao_Repo$findPersonsWithAttempts$slambda(this$0, $contentEntryUid, $accountPersonUid, $searchText, $sortOrder, resultContinuation) { this.vje_1 = this$0; this.wje_1 = $contentEntryUid; this.xje_1 = $accountPersonUid; this.yje_1 = $searchText; this.zje_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_Repo$findPersonsWithAttempts$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(StatementDao_Repo$findPersonsWithAttempts$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_Repo$findPersonsWithAttempts$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.cjf_1 = this.vje_1.njd_1; var tmp_1 = this; tmp_1.djf_1 = 'StatementDao/findPersonsWithAttempts'; this.md_1 = 4; var tmp_2 = this; tmp_2.ejf_1 = this.vje_1.pjd_1; var tmp_3 = this; tmp_3.fjf_1 = this.ejf_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.vje_1.njd_1.t39(), 'StatementDao/findPersonsWithAttempts'); doorNodeIdHeader(this_0, this.vje_1.njd_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'contentEntryUid', this.vje_1.njd_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.wje_1)); parameter(this_0, 'accountPersonUid', this.vje_1.njd_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.xje_1)); parameter(this_0, 'searchText', this.vje_1.njd_1.t39().a67_1.b46(get_nullable(serializer_0(StringCompanionObject_instance)), this.yje_1)); parameter(this_0, 'sortOrder', this.vje_1.njd_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.zje_1)); pagingSourceLoadParameters(this_0, this.vje_1.njd_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.ajf_1); tmp_4.gjf_1 = this_0; this.gjf_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.hjf_1 = this.fjf_1; var tmp_6 = this; tmp_6.ijf_1 = this.gjf_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.ijf_1, this.hjf_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.jjf_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.vje_1.mjd_1, this.jjf_1, this.vje_1.njd_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.bjf_1 = endOfPaginationReached(this.jjf_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', StatementDao_Repo$findPersonsWithAttempts$slambda$lambda(this.cjf_1, this.djf_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.bjf_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(StatementDao_Repo$findPersonsWithAttempts$slambda).g87 = function (_pagingParams, completion) { var i = new StatementDao_Repo$findPersonsWithAttempts$slambda(this.vje_1, this.wje_1, this.xje_1, this.yje_1, this.zje_1, completion); i.ajf_1 = _pagingParams; return i; }; function StatementDao_Repo$findPersonsWithAttempts$slambda_0(this$0, $contentEntryUid, $accountPersonUid, $searchText, $sortOrder, resultContinuation) { var i = new StatementDao_Repo$findPersonsWithAttempts$slambda(this$0, $contentEntryUid, $accountPersonUid, $searchText, $sortOrder, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function StatementDao_Repo$findSessionsByPersonAndContent$slambda(this$0, $contentEntryUid, $personUid, $accountPersonUid, $sortOrder, resultContinuation) { this.sjf_1 = this$0; this.tjf_1 = $contentEntryUid; this.ujf_1 = $personUid; this.vjf_1 = $accountPersonUid; this.wjf_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_Repo$findSessionsByPersonAndContent$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(StatementDao_Repo$findSessionsByPersonAndContent$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_Repo$findSessionsByPersonAndContent$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.zjf_1 = this.sjf_1.njd_1; var tmp_1 = this; tmp_1.ajg_1 = 'StatementDao/findSessionsByPersonAndContent'; this.md_1 = 4; var tmp_2 = this; tmp_2.bjg_1 = this.sjf_1.pjd_1; var tmp_3 = this; tmp_3.cjg_1 = this.bjg_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.sjf_1.njd_1.t39(), 'StatementDao/findSessionsByPersonAndContent'); doorNodeIdHeader(this_0, this.sjf_1.njd_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'contentEntryUid', this.sjf_1.njd_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.tjf_1)); parameter(this_0, 'personUid', this.sjf_1.njd_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ujf_1)); parameter(this_0, 'accountPersonUid', this.sjf_1.njd_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.vjf_1)); parameter(this_0, 'sortOrder', this.sjf_1.njd_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.wjf_1)); pagingSourceLoadParameters(this_0, this.sjf_1.njd_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.xjf_1); tmp_4.djg_1 = this_0; this.djg_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.ejg_1 = this.cjg_1; var tmp_6 = this; tmp_6.fjg_1 = this.djg_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.fjg_1, this.ejg_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.gjg_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.sjf_1.mjd_1, this.gjg_1, this.sjf_1.njd_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.yjf_1 = endOfPaginationReached(this.gjg_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', StatementDao_Repo$findSessionsByPersonAndContent$slambda$lambda(this.zjf_1, this.ajg_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.yjf_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(StatementDao_Repo$findSessionsByPersonAndContent$slambda).g87 = function (_pagingParams, completion) { var i = new StatementDao_Repo$findSessionsByPersonAndContent$slambda(this.sjf_1, this.tjf_1, this.ujf_1, this.vjf_1, this.wjf_1, completion); i.xjf_1 = _pagingParams; return i; }; function StatementDao_Repo$findSessionsByPersonAndContent$slambda_0(this$0, $contentEntryUid, $personUid, $accountPersonUid, $sortOrder, resultContinuation) { var i = new StatementDao_Repo$findSessionsByPersonAndContent$slambda(this$0, $contentEntryUid, $personUid, $accountPersonUid, $sortOrder, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function StatementDao_Repo$findStatementsBySession$slambda(this$0, $registrationHi, $registrationLo, $accountPersonUid, $selectedPersonUid, $contentEntryUid, $searchText, $sortOrder, $deSelectedVerbUids, resultContinuation) { this.pjg_1 = this$0; this.qjg_1 = $registrationHi; this.rjg_1 = $registrationLo; this.sjg_1 = $accountPersonUid; this.tjg_1 = $selectedPersonUid; this.ujg_1 = $contentEntryUid; this.vjg_1 = $searchText; this.wjg_1 = $sortOrder; this.xjg_1 = $deSelectedVerbUids; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_Repo$findStatementsBySession$slambda).f87 = function (_pagingParams, $completion) { var tmp = this.g87(_pagingParams, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(StatementDao_Repo$findStatementsBySession$slambda).le = function (p1, $completion) { return this.f87(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_Repo$findStatementsBySession$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 5; this.ld_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.ajh_1 = this.pjg_1.njd_1; var tmp_1 = this; tmp_1.bjh_1 = 'StatementDao/findStatementsBySession'; this.md_1 = 4; var tmp_2 = this; tmp_2.cjh_1 = this.pjg_1.pjd_1; var tmp_3 = this; tmp_3.djh_1 = this.cjh_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.pjg_1.njd_1.t39(), 'StatementDao/findStatementsBySession'); doorNodeIdHeader(this_0, this.pjg_1.njd_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'registrationHi', this.pjg_1.njd_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.qjg_1)); parameter(this_0, 'registrationLo', this.pjg_1.njd_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.rjg_1)); parameter(this_0, 'accountPersonUid', this.pjg_1.njd_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.sjg_1)); parameter(this_0, 'selectedPersonUid', this.pjg_1.njd_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.tjg_1)); parameter(this_0, 'contentEntryUid', this.pjg_1.njd_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ujg_1)); parameter(this_0, 'searchText', this.pjg_1.njd_1.t39().a67_1.b46(serializer_0(StringCompanionObject_instance), this.vjg_1)); parameter(this_0, 'sortOrder', this.pjg_1.njd_1.t39().a67_1.b46(serializer_1(IntCompanionObject_instance), this.wjg_1)); parameter(this_0, 'deSelectedVerbUids', this.pjg_1.njd_1.t39().a67_1.b46(ListSerializer(serializer(Companion_getInstance())), this.xjg_1)); pagingSourceLoadParameters(this_0, this.pjg_1.njd_1.t39().a67_1, get_nullable(serializer_1(IntCompanionObject_instance)), this.yjg_1); tmp_4.ejh_1 = this_0; this.ejh_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.fjh_1 = this.djh_1; var tmp_6 = this; tmp_6.gjh_1 = this.ejh_1; this.ld_1 = 2; suspendResult = (new HttpStatement(this.gjh_1, this.fjh_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.hjh_1 = suspendResult; this.ld_1 = 3; suspendResult = onClientRepoDoorMessageHttpResponse(this.pjg_1.mjd_1, this.hjh_1, this.pjg_1.njd_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.zjg_1 = endOfPaginationReached(this.hjh_1); this.md_1 = 5; this.ld_1 = 7; continue $sm; case 4: this.md_1 = 5; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', StatementDao_Repo$findStatementsBySession$slambda$lambda(this.ajh_1, this.bjh_1)); throw e; } else { throw this.od_1; } case 5: throw this.od_1; case 6: this.md_1 = 5; if (false) { this.ld_1 = 1; continue $sm; } this.ld_1 = 7; continue $sm; case 7: return this.zjg_1; } } catch ($p) { var e_0 = $p; if (this.md_1 === 5) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(StatementDao_Repo$findStatementsBySession$slambda).g87 = function (_pagingParams, completion) { var i = new StatementDao_Repo$findStatementsBySession$slambda(this.pjg_1, this.qjg_1, this.rjg_1, this.sjg_1, this.tjg_1, this.ujg_1, this.vjg_1, this.wjg_1, this.xjg_1, completion); i.yjg_1 = _pagingParams; return i; }; function StatementDao_Repo$findStatementsBySession$slambda_0(this$0, $registrationHi, $registrationLo, $accountPersonUid, $selectedPersonUid, $contentEntryUid, $searchText, $sortOrder, $deSelectedVerbUids, resultContinuation) { var i = new StatementDao_Repo$findStatementsBySession$slambda(this$0, $registrationHi, $registrationLo, $accountPersonUid, $selectedPersonUid, $contentEntryUid, $searchText, $sortOrder, $deSelectedVerbUids, resultContinuation); var l = function (_pagingParams, $completion) { return i.f87(_pagingParams, $completion); }; l.$arity = 1; return l; } function StatementDao_Repo$getUniqueVerbsForSession$slambda(this$0, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation) { this.qjh_1 = this$0; this.rjh_1 = $registrationHi; this.sjh_1 = $registrationLo; this.tjh_1 = $selectedPersonUid; this.ujh_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_Repo$getUniqueVerbsForSession$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(StatementDao_Repo$getUniqueVerbsForSession$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(StatementDao_Repo$getUniqueVerbsForSession$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.vjh_1 = this.qjh_1.njd_1; var tmp_1 = this; tmp_1.wjh_1 = 'StatementDao/getUniqueVerbsForSession'; this.md_1 = 3; var tmp_2 = this; tmp_2.xjh_1 = this.qjh_1.pjd_1; var tmp_3 = this; tmp_3.yjh_1 = this.xjh_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.qjh_1.njd_1.t39(), 'StatementDao/getUniqueVerbsForSession'); doorNodeIdHeader(this_0, this.qjh_1.njd_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'registrationHi', this.qjh_1.njd_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.rjh_1)); parameter(this_0, 'registrationLo', this.qjh_1.njd_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.sjh_1)); parameter(this_0, 'selectedPersonUid', this.qjh_1.njd_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.tjh_1)); parameter(this_0, 'contentEntryUid', this.qjh_1.njd_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.ujh_1)); tmp_4.zjh_1 = this_0; this.zjh_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.aji_1 = this.yjh_1; var tmp_6 = this; tmp_6.bji_1 = this.zjh_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.bji_1, this.aji_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.cji_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.qjh_1.mjd_1, this.cji_1, this.qjh_1.njd_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 4; this.ld_1 = 5; continue $sm; case 3: this.md_1 = 4; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { var e = this.od_1; Napier_getInstance().e5f(e, 'DoorLog', StatementDao_Repo$getUniqueVerbsForSession$slambda$lambda(this.vjh_1, this.wjh_1)); this.ld_1 = 5; continue $sm; } else { throw this.od_1; } case 4: throw this.od_1; case 5: this.md_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.md_1 === 4) { throw e_0; } else { this.ld_1 = this.md_1; this.od_1 = e_0; } } while (true); }; protoOf(StatementDao_Repo$getUniqueVerbsForSession$slambda).q79 = function (completion) { return new StatementDao_Repo$getUniqueVerbsForSession$slambda(this.qjh_1, this.rjh_1, this.sjh_1, this.tjh_1, this.ujh_1, completion); }; function StatementDao_Repo$getUniqueVerbsForSession$slambda_0(this$0, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation) { var i = new StatementDao_Repo$getUniqueVerbsForSession$slambda(this$0, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function StatementDao_Repo$scoreOrProgressDataExistsForContent$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function $findStatusForStudentsInClazzCOROUTINE$463(_this__u8e3s4, clazzUid, studentPersonUids, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.lji_1 = _this__u8e3s4; this.mji_1 = clazzUid; this.nji_1 = studentPersonUids; this.oji_1 = accountPersonUid; } protoOf($findStatusForStudentsInClazzCOROUTINE$463).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.lji_1.ojd_1.tj1(this.mji_1, this.nji_1, this.oji_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function $scoreOrProgressDataExistsForContentCOROUTINE$468(_this__u8e3s4, contentEntryUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.xji_1 = _this__u8e3s4; this.yji_1 = contentEntryUid; this.zji_1 = accountPersonUid; } protoOf($scoreOrProgressDataExistsForContentCOROUTINE$468).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 6; var tmp_0 = this; tmp_0.ajj_1 = this.xji_1.njd_1; var tmp_1 = this; tmp_1.bjj_1 = 'StatementDao/scoreOrProgressDataExistsForContent'; this.md_1 = 3; var tmp_2 = this; tmp_2.cjj_1 = this.xji_1.pjd_1; var tmp_3 = this; tmp_3.djj_1 = this.cjj_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.xji_1.njd_1.t39(), 'StatementDao/scoreOrProgressDataExistsForContent'); doorNodeIdHeader(this_0, this.xji_1.njd_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'contentEntryUid', this.xji_1.njd_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.yji_1)); parameter(this_0, 'accountPersonUid', this.xji_1.njd_1.t39().a67_1.b46(serializer(Companion_getInstance()), this.zji_1)); tmp_4.ejj_1 = this_0; this.ejj_1.g39_1 = Companion_getInstance_0().v2x_1; var tmp_5 = this; tmp_5.fjj_1 = this.djj_1; var tmp_6 = this; tmp_6.gjj_1 = this.ejj_1; this.ld_1 = 1; suspendResult = (new HttpStatement(this.gjj_1, this.fjj_1)).r3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hjj_1 = suspendResult; this.ld_1 = 2; suspendResult = onClientRepoDoorMessageHttpResponse(this.xji_1.mjd_1, this.hjj_1, this.xji_1.njd_1.t39().a67_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.md_1 = 6; this.ld_1 = 4; continue $sm; case 3: this.md_1 = 6; var tmp_7 = this.od_1; if (tmp_7 instanceof Exception) { this.ijj_1 = this.od_1; Napier_getInstance().e5f(this.ijj_1, 'DoorLog', StatementDao_Repo$scoreOrProgressDataExistsForContent$lambda(this.ajj_1, this.bjj_1)); this.ld_1 = 4; continue $sm; } else { throw this.od_1; } case 4: this.md_1 = 6; this.ld_1 = 5; suspendResult = this.xji_1.ojd_1.zj1(this.yji_1, this.zji_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 6) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function StatementDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { StatementDao.call(this); this.mjd_1 = _db; this.njd_1 = _repo; this.ojd_1 = _dao; this.pjd_1 = _httpClient; this.qjd_1 = _clientId; this.rjd_1 = _endpoint; this.sjd_1 = new RepoDaoFlowHelper(this.njd_1); } protoOf(StatementDao_Repo).sj1 = function (entityList, $completion) { return withRepoChangeMonitorAsync(this.njd_1, 'StatementEntity', StatementDao_Repo$insertOrIgnoreListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(StatementDao_Repo).tj1 = function (clazzUid, studentPersonUids, accountPersonUid, $completion) { var tmp = new $findStatusForStudentsInClazzCOROUTINE$463(this, clazzUid, studentPersonUids, accountPersonUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(StatementDao_Repo).uj1 = function (clazzUid, studentPersonUids, accountPersonUid) { var tmp = this.ojd_1.uj1(clazzUid, studentPersonUids, accountPersonUid); return this.sjd_1.r68(tmp, StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda_0(this, clazzUid, studentPersonUids, accountPersonUid, null)); }; protoOf(StatementDao_Repo).vj1 = function (contentEntryUid, accountPersonUid, searchText, sortOrder) { var tmp = this.ojd_1.vj1(contentEntryUid, accountPersonUid, searchText, sortOrder); return new DoorRepositoryReplicatePullPagingSource(this.njd_1, 'StatementDao/findPersonsWithAttempts', tmp, StatementDao_Repo$findPersonsWithAttempts$slambda_0(this, contentEntryUid, accountPersonUid, searchText, sortOrder, null)); }; protoOf(StatementDao_Repo).wj1 = function (contentEntryUid, personUid, accountPersonUid, sortOrder) { var tmp = this.ojd_1.wj1(contentEntryUid, personUid, accountPersonUid, sortOrder); return new DoorRepositoryReplicatePullPagingSource(this.njd_1, 'StatementDao/findSessionsByPersonAndContent', tmp, StatementDao_Repo$findSessionsByPersonAndContent$slambda_0(this, contentEntryUid, personUid, accountPersonUid, sortOrder, null)); }; protoOf(StatementDao_Repo).xj1 = function (registrationHi, registrationLo, accountPersonUid, selectedPersonUid, contentEntryUid, searchText, sortOrder, deSelectedVerbUids) { var tmp = this.ojd_1.xj1(registrationHi, registrationLo, accountPersonUid, selectedPersonUid, contentEntryUid, searchText, sortOrder, deSelectedVerbUids); return new DoorRepositoryReplicatePullPagingSource(this.njd_1, 'StatementDao/findStatementsBySession', tmp, StatementDao_Repo$findStatementsBySession$slambda_0(this, registrationHi, registrationLo, accountPersonUid, selectedPersonUid, contentEntryUid, searchText, sortOrder, deSelectedVerbUids, null)); }; protoOf(StatementDao_Repo).yj1 = function (registrationHi, registrationLo, selectedPersonUid, contentEntryUid) { var tmp = this.ojd_1.yj1(registrationHi, registrationLo, selectedPersonUid, contentEntryUid); return this.sjd_1.r68(tmp, StatementDao_Repo$getUniqueVerbsForSession$slambda_0(this, registrationHi, registrationLo, selectedPersonUid, contentEntryUid, null)); }; protoOf(StatementDao_Repo).zj1 = function (contentEntryUid, accountPersonUid, $completion) { var tmp = new $scoreOrProgressDataExistsForContentCOROUTINE$468(this, contentEntryUid, accountPersonUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function StatementEntityJsonDao() { } function StatementEntityJsonDao_DoorWrapper(_db, _dao) { StatementEntityJsonDao.call(this); this.kjj_1 = _db; this.ljj_1 = _dao; } protoOf(StatementEntityJsonDao_DoorWrapper).jjj = function (entityList, $completion) { return this.ljj_1.jjj(entityList, $completion); }; function StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1(this$0) { EntityInsertionAdapter.call(this, this$0.mjj_1); } protoOf(StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1).w5h = function (returnsId) { return 'INSERT OR IGNORE INTO StatementEntityJson (stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement) VALUES(?, ?, ?, ?)'; }; protoOf(StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1).qjj = function (stmt, entity) { stmt.x5i(1, entity.rjj_1); stmt.x5i(2, entity.sjj_1); stmt.x5i(3, entity.tjj_1); stmt.a5j(4, entity.ujj_1); }; protoOf(StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1).r5g = function (stmt, entity) { return this.qjj(stmt, entity instanceof StatementEntityJson ? entity : THROW_CCE()); }; function StatementEntityJsonDao_JdbcImpl(_db) { StatementEntityJsonDao.call(this); this.mjj_1 = _db; var tmp = this; tmp.njj_1 = new StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1(this); } protoOf(StatementEntityJsonDao_JdbcImpl).jjj = function (entityList, $completion) { return this.njj_1.b5i(entityList, $completion); }; function StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entityList, resultContinuation) { this.djk_1 = this$0; this.ejk_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.djk_1.hjk_1.jjj(this.ejk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda).q79 = function (completion) { return new StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda(this.djk_1, this.ejk_1, completion); }; function StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function StatementEntityJsonDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { StatementEntityJsonDao.call(this); this.fjk_1 = _db; this.gjk_1 = _repo; this.hjk_1 = _dao; this.ijk_1 = _httpClient; this.jjk_1 = _clientId; this.kjk_1 = _endpoint; } protoOf(StatementEntityJsonDao_Repo).jjj = function (entityList, $completion) { return withRepoChangeMonitorAsync(this.gjk_1, 'StatementEntityJson', StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda_0(this, entityList, null), $completion); }; function VerbDao() { } function VerbDao_DoorWrapper(_db, _dao) { VerbDao.call(this); this.mjk_1 = _db; this.njk_1 = _dao; } protoOf(VerbDao_DoorWrapper).ljk = function (entities, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entities.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.db.dao.xapi.VerbDao_DoorWrapper.insertOrIgnoreAsync.' call element.dj7_1 = systemTimeInMillis(); } return this.njk_1.ljk(entities, $completion); }; function VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1(this$0) { EntityInsertionAdapter.call(this, this$0.ojk_1); } protoOf(VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1).w5h = function (returnsId) { return 'INSERT OR IGNORE INTO VerbEntity (verbUid, verbUrlId, verbDeleted, verbLct) VALUES(?, ?, ?, ?)'; }; protoOf(VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1).sjk = function (stmt, entity) { stmt.x5i(1, entity.aj7_1); stmt.a5j(2, entity.bj7_1); stmt.k5i(3, entity.cj7_1); stmt.x5i(4, entity.dj7_1); }; protoOf(VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1).r5g = function (stmt, entity) { return this.sjk(stmt, entity instanceof VerbEntity ? entity : THROW_CCE()); }; function VerbDao_JdbcImpl(_db) { VerbDao.call(this); this.ojk_1 = _db; var tmp = this; tmp.pjk_1 = new VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1(this); } protoOf(VerbDao_JdbcImpl).ljk = function (entities, $completion) { return this.pjk_1.b5i(entities, $completion); }; function VerbDao_Repo$insertOrIgnoreAsync$slambda(this$0, $entities, resultContinuation) { this.bjl_1 = this$0; this.cjl_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(VerbDao_Repo$insertOrIgnoreAsync$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(VerbDao_Repo$insertOrIgnoreAsync$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(VerbDao_Repo$insertOrIgnoreAsync$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.bjl_1.fjl_1.ljk(this.cjl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(VerbDao_Repo$insertOrIgnoreAsync$slambda).q79 = function (completion) { return new VerbDao_Repo$insertOrIgnoreAsync$slambda(this.bjl_1, this.cjl_1, completion); }; function VerbDao_Repo$insertOrIgnoreAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new VerbDao_Repo$insertOrIgnoreAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function VerbDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { VerbDao.call(this); this.djl_1 = _db; this.ejl_1 = _repo; this.fjl_1 = _dao; this.gjl_1 = _httpClient; this.hjl_1 = _clientId; this.ijl_1 = _endpoint; } protoOf(VerbDao_Repo).ljk = function (entities, $completion) { return withRepoChangeMonitorAsync(this.ejl_1, 'VerbEntity', VerbDao_Repo$insertOrIgnoreAsync$slambda_0(this, entities, null), $completion); }; function VerbLangMapEntryDao() { } function VerbLangMapEntryDao_DoorWrapper(_db, _dao) { VerbLangMapEntryDao.call(this); this.kjl_1 = _db; this.ljl_1 = _dao; } protoOf(VerbLangMapEntryDao_DoorWrapper).jjl = function (list, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = list.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.db.dao.xapi.VerbLangMapEntryDao_DoorWrapper.upsertList.' call element.ij7_1 = systemTimeInMillis(); } return this.ljl_1.jjl(list, $completion); }; function VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0.mjl_1); } protoOf(VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1).w5h = function (returnsId) { return 'INSERT OR REPLACE INTO VerbLangMapEntry (vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified) VALUES(?, ?, ?, ?, ?)'; }; protoOf(VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1).qjl = function (stmt, entity) { stmt.x5i(1, entity.ej7_1); stmt.x5i(2, entity.fj7_1); stmt.a5j(3, entity.gj7_1); stmt.a5j(4, entity.hj7_1); stmt.x5i(5, entity.ij7_1); }; protoOf(VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1).r5g = function (stmt, entity) { return this.qjl(stmt, entity instanceof VerbLangMapEntry ? entity : THROW_CCE()); }; function VerbLangMapEntryDao_JdbcImpl(_db) { VerbLangMapEntryDao.call(this); this.mjl_1 = _db; var tmp = this; tmp.njl_1 = new VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1(this); } protoOf(VerbLangMapEntryDao_JdbcImpl).jjl = function (list, $completion) { return this.njl_1.b5i(list, $completion); }; function VerbLangMapEntryDao_Repo$upsertList$slambda(this$0, $list, resultContinuation) { this.zjl_1 = this$0; this.ajm_1 = $list; CoroutineImpl.call(this, resultContinuation); } protoOf(VerbLangMapEntryDao_Repo$upsertList$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(VerbLangMapEntryDao_Repo$upsertList$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(VerbLangMapEntryDao_Repo$upsertList$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.zjl_1.djm_1.jjl(this.ajm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(VerbLangMapEntryDao_Repo$upsertList$slambda).q79 = function (completion) { return new VerbLangMapEntryDao_Repo$upsertList$slambda(this.zjl_1, this.ajm_1, completion); }; function VerbLangMapEntryDao_Repo$upsertList$slambda_0(this$0, $list, resultContinuation) { var i = new VerbLangMapEntryDao_Repo$upsertList$slambda(this$0, $list, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function VerbLangMapEntryDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { VerbLangMapEntryDao.call(this); this.bjm_1 = _db; this.cjm_1 = _repo; this.djm_1 = _dao; this.ejm_1 = _httpClient; this.fjm_1 = _clientId; this.gjm_1 = _endpoint; } protoOf(VerbLangMapEntryDao_Repo).jjl = function (list, $completion) { return withRepoChangeMonitorAsync(this.cjm_1, 'VerbLangMapEntry', VerbLangMapEntryDao_Repo$upsertList$slambda_0(this, list, null), $completion); }; function XapiSessionEntityDao() { } function XapiSessionEntityDao_DoorWrapper(_db, _dao) { XapiSessionEntityDao.call(this); this.ijm_1 = _db; this.jjm_1 = _dao; } protoOf(XapiSessionEntityDao_DoorWrapper).hjm = function (completed, time, xseUid, $completion) { return this.jjm_1.hjm(completed, time, xseUid, $completion); }; function XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0.kjm_1); } protoOf(XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1).w5h = function (returnsId) { return 'INSERT INTO XapiSessionEntity (xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1).ojm = function (stmt, entity) { if (entity.pjm_1.equals(new Long(0, 0))) { stmt.c5j(1, null); } else { stmt.x5i(1, entity.pjm_1); } stmt.x5i(2, entity.qjm_1); stmt.x5i(3, entity.rjm_1); stmt.x5i(4, entity.sjm_1); stmt.x5i(5, entity.tjm_1); stmt.x5i(6, entity.ujm_1); stmt.x5i(7, entity.vjm_1); stmt.a5j(8, entity.wjm_1); stmt.x5i(9, entity.xjm_1); stmt.x5i(10, entity.yjm_1); stmt.x5i(11, entity.zjm_1); stmt.x5i(12, entity.ajn_1); stmt.a5j(13, entity.bjn_1); stmt.x5i(14, entity.cjn_1); stmt.x5i(15, entity.djn_1); stmt.x5i(16, entity.ejn_1); stmt.a5j(17, entity.fjn_1); stmt.k5i(18, entity.gjn_1); stmt.a5j(19, entity.hjn_1); }; protoOf(XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1).r5g = function (stmt, entity) { return this.ojm(stmt, entity instanceof XapiSessionEntity ? entity : THROW_CCE()); }; function XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda($completed, $time, $xseUid, resultContinuation) { this.qjn_1 = $completed; this.rjn_1 = $time; this.sjn_1 = $xseUid; CoroutineImpl.call(this, resultContinuation); } protoOf(XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda).p6k = function (_stmt, $completion) { var tmp = this.o5g(_stmt, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda).le = function (p1, $completion) { return this.p6k((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.tjn_1.k5i(1, this.qjn_1); this.tjn_1.x5i(2, this.rjn_1); this.tjn_1.x5i(3, this.sjn_1); this.ld_1 = 1; suspendResult = executeUpdateAsyncKmp(this.tjn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda).o5g = function (_stmt, completion) { var i = new XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda(this.qjn_1, this.rjn_1, this.sjn_1, completion); i.tjn_1 = _stmt; return i; }; function XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda_0($completed, $time, $xseUid, resultContinuation) { var i = new XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda($completed, $time, $xseUid, resultContinuation); var l = function (_stmt, $completion) { return i.p6k(_stmt, $completion); }; l.$arity = 1; return l; } function $updateLatestAsCompleteCOROUTINE$475(_this__u8e3s4, completed, time, xseUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cjo_1 = _this__u8e3s4; this.djo_1 = completed; this.ejo_1 = time; this.fjo_1 = xseUid; } protoOf($updateLatestAsCompleteCOROUTINE$475).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; var tmp_0 = new PreparedStatementConfig('\n UPDATE XapiSessionEntity\n SET xseCompleted = ?,\n xseLastMod = CAST(? AS BIGINT)\n WHERE xseUid = CAST(? AS BIGINT)\n\n ', VOID, VOID, VOID, '\n UPDATE XapiSessionEntity\n SET xseCompleted = ?,\n xseLastMod = ?\n WHERE xseUid = ?\n\n \n', false); suspendResult = prepareAndUseStatementAsync(this.cjo_1.kjm_1, tmp_0, XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda_0(this.djo_1, this.ejo_1, this.fjo_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function XapiSessionEntityDao_JdbcImpl(_db) { XapiSessionEntityDao.call(this); this.kjm_1 = _db; var tmp = this; tmp.ljm_1 = new XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1(this); } protoOf(XapiSessionEntityDao_JdbcImpl).hjm = function (completed, time, xseUid, $completion) { var tmp = new $updateLatestAsCompleteCOROUTINE$475(this, completed, time, xseUid, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; function XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda(this$0, $completed, $time, $xseUid, resultContinuation) { this.ojo_1 = this$0; this.pjo_1 = $completed; this.qjo_1 = $time; this.rjo_1 = $xseUid; CoroutineImpl.call(this, resultContinuation); } protoOf(XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda).h88 = function ($completion) { var tmp = this.q79($completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); }; protoOf(XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda).r79 = function ($completion) { return this.h88($completion); }; protoOf(XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 2; this.ld_1 = 1; suspendResult = this.ojo_1.ujo_1.hjm(this.pjo_1, this.qjo_1, this.rjo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 2) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; protoOf(XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda).q79 = function (completion) { return new XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda(this.ojo_1, this.pjo_1, this.qjo_1, this.rjo_1, completion); }; function XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda_0(this$0, $completed, $time, $xseUid, resultContinuation) { var i = new XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda(this$0, $completed, $time, $xseUid, resultContinuation); var l = function ($completion) { return i.h88($completion); }; l.$arity = 0; return l; } function XapiSessionEntityDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { XapiSessionEntityDao.call(this); this.sjo_1 = _db; this.tjo_1 = _repo; this.ujo_1 = _dao; this.vjo_1 = _httpClient; this.wjo_1 = _clientId; this.xjo_1 = _endpoint; } protoOf(XapiSessionEntityDao_Repo).hjm = function (completed, time, xseUid, $completion) { return withRepoChangeMonitorAsync(this.tjo_1, 'XapiSessionEntity', XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda_0(this, completed, time, xseUid, null), $completion); }; function shallowCopy(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new ClazzAssignment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.l7u_1 = _this__u8e3s4.l7u_1; this_0.m7u_1 = _this__u8e3s4.m7u_1; this_0.n7u_1 = _this__u8e3s4.n7u_1; this_0.o7u_1 = _this__u8e3s4.o7u_1; this_0.p7u_1 = _this__u8e3s4.p7u_1; this_0.q7u_1 = _this__u8e3s4.q7u_1; this_0.r7u_1 = _this__u8e3s4.r7u_1; this_0.s7u_1 = _this__u8e3s4.s7u_1; this_0.t7u_1 = _this__u8e3s4.t7u_1; this_0.u7u_1 = _this__u8e3s4.u7u_1; this_0.v7u_1 = _this__u8e3s4.v7u_1; this_0.w7u_1 = _this__u8e3s4.w7u_1; this_0.x7u_1 = _this__u8e3s4.x7u_1; this_0.y7u_1 = _this__u8e3s4.y7u_1; this_0.z7u_1 = _this__u8e3s4.z7u_1; this_0.a7v_1 = _this__u8e3s4.a7v_1; this_0.b7v_1 = _this__u8e3s4.b7v_1; this_0.c7v_1 = _this__u8e3s4.c7v_1; this_0.d7v_1 = _this__u8e3s4.d7v_1; this_0.e7v_1 = _this__u8e3s4.e7v_1; this_0.f7v_1 = _this__u8e3s4.f7v_1; this_0.g7v_1 = _this__u8e3s4.g7v_1; this_0.h7v_1 = _this__u8e3s4.h7v_1; this_0.i7v_1 = _this__u8e3s4.i7v_1; block(this_0); return this_0; } function shallowCopy_0(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new ClazzEnrolmentWithLeavingReason(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.m95_1 = _this__u8e3s4.m95_1; this_0.n95_1 = _this__u8e3s4.n95_1; this_0.z8i_1 = _this__u8e3s4.z8i_1; this_0.a8j_1 = _this__u8e3s4.a8j_1; this_0.b8j_1 = _this__u8e3s4.b8j_1; this_0.c8j_1 = _this__u8e3s4.c8j_1; this_0.d8j_1 = _this__u8e3s4.d8j_1; this_0.e8j_1 = _this__u8e3s4.e8j_1; this_0.f8j_1 = _this__u8e3s4.f8j_1; this_0.g8j_1 = _this__u8e3s4.g8j_1; this_0.h8j_1 = _this__u8e3s4.h8j_1; this_0.i8j_1 = _this__u8e3s4.i8j_1; this_0.j8j_1 = _this__u8e3s4.j8j_1; this_0.k8j_1 = _this__u8e3s4.k8j_1; this_0.l8j_1 = _this__u8e3s4.l8j_1; this_0.m8j_1 = _this__u8e3s4.m8j_1; block(this_0); return this_0; } function shallowCopy_1(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new ClazzLogAttendanceRecord(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.o9m_1 = _this__u8e3s4.o9m_1; this_0.p9m_1 = _this__u8e3s4.p9m_1; this_0.q9m_1 = _this__u8e3s4.q9m_1; this_0.r9m_1 = _this__u8e3s4.r9m_1; this_0.s9m_1 = _this__u8e3s4.s9m_1; this_0.t9m_1 = _this__u8e3s4.t9m_1; this_0.u9m_1 = _this__u8e3s4.u9m_1; this_0.v9m_1 = _this__u8e3s4.v9m_1; block(this_0); return this_0; } function shallowCopy_2(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new ClazzLog(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.u9r_1 = _this__u8e3s4.u9r_1; this_0.v9r_1 = _this__u8e3s4.v9r_1; this_0.w9r_1 = _this__u8e3s4.w9r_1; this_0.x9r_1 = _this__u8e3s4.x9r_1; this_0.y9r_1 = _this__u8e3s4.y9r_1; this_0.z9r_1 = _this__u8e3s4.z9r_1; this_0.a9s_1 = _this__u8e3s4.a9s_1; this_0.b9s_1 = _this__u8e3s4.b9s_1; this_0.c9s_1 = _this__u8e3s4.c9s_1; this_0.d9s_1 = _this__u8e3s4.d9s_1; this_0.e9s_1 = _this__u8e3s4.e9s_1; this_0.f9s_1 = _this__u8e3s4.f9s_1; this_0.g9s_1 = _this__u8e3s4.g9s_1; this_0.h9s_1 = _this__u8e3s4.h9s_1; this_0.i9s_1 = _this__u8e3s4.i9s_1; this_0.j9s_1 = _this__u8e3s4.j9s_1; block(this_0); return this_0; } function shallowCopy_3(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new ClazzWithHolidayCalendarAndAndTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.h8h_1 = _this__u8e3s4.h8h_1; this_0.i8h_1 = _this__u8e3s4.i8h_1; this_0.j8h_1 = _this__u8e3s4.j8h_1; this_0.p8e_1 = _this__u8e3s4.p8e_1; this_0.q8e_1 = _this__u8e3s4.q8e_1; this_0.r8e_1 = _this__u8e3s4.r8e_1; this_0.s8e_1 = _this__u8e3s4.s8e_1; this_0.t8e_1 = _this__u8e3s4.t8e_1; this_0.u8e_1 = _this__u8e3s4.u8e_1; this_0.v8e_1 = _this__u8e3s4.v8e_1; this_0.w8e_1 = _this__u8e3s4.w8e_1; this_0.x8e_1 = _this__u8e3s4.x8e_1; this_0.y8e_1 = _this__u8e3s4.y8e_1; this_0.z8e_1 = _this__u8e3s4.z8e_1; this_0.a8f_1 = _this__u8e3s4.a8f_1; this_0.b8f_1 = _this__u8e3s4.b8f_1; this_0.c8f_1 = _this__u8e3s4.c8f_1; this_0.d8f_1 = _this__u8e3s4.d8f_1; this_0.e8f_1 = _this__u8e3s4.e8f_1; this_0.f8f_1 = _this__u8e3s4.f8f_1; this_0.g8f_1 = _this__u8e3s4.g8f_1; this_0.h8f_1 = _this__u8e3s4.h8f_1; this_0.i8f_1 = _this__u8e3s4.i8f_1; this_0.j8f_1 = _this__u8e3s4.j8f_1; this_0.k8f_1 = _this__u8e3s4.k8f_1; this_0.l8f_1 = _this__u8e3s4.l8f_1; this_0.m8f_1 = _this__u8e3s4.m8f_1; this_0.n8f_1 = _this__u8e3s4.n8f_1; block(this_0); return this_0; } function shallowCopy_4(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.baj_1 = _this__u8e3s4.baj_1; this_0.caj_1 = _this__u8e3s4.caj_1; this_0.daj_1 = _this__u8e3s4.daj_1; this_0.eaj_1 = _this__u8e3s4.eaj_1; this_0.faj_1 = _this__u8e3s4.faj_1; this_0.gaj_1 = _this__u8e3s4.gaj_1; this_0.haj_1 = _this__u8e3s4.haj_1; this_0.iaj_1 = _this__u8e3s4.iaj_1; this_0.jaj_1 = _this__u8e3s4.jaj_1; this_0.kaj_1 = _this__u8e3s4.kaj_1; this_0.laj_1 = _this__u8e3s4.laj_1; this_0.maj_1 = _this__u8e3s4.maj_1; this_0.naj_1 = _this__u8e3s4.naj_1; this_0.oaj_1 = _this__u8e3s4.oaj_1; this_0.paj_1 = _this__u8e3s4.paj_1; this_0.qaj_1 = _this__u8e3s4.qaj_1; this_0.raj_1 = _this__u8e3s4.raj_1; this_0.saj_1 = _this__u8e3s4.saj_1; this_0.taj_1 = _this__u8e3s4.taj_1; this_0.uaj_1 = _this__u8e3s4.uaj_1; this_0.vaj_1 = _this__u8e3s4.vaj_1; this_0.waj_1 = _this__u8e3s4.waj_1; this_0.xaj_1 = _this__u8e3s4.xaj_1; this_0.yaj_1 = _this__u8e3s4.yaj_1; this_0.zaj_1 = _this__u8e3s4.zaj_1; this_0.aak_1 = _this__u8e3s4.aak_1; this_0.bak_1 = _this__u8e3s4.bak_1; block(this_0); return this_0; } function shallowCopy_5(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new CourseAssignmentMark(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.tbj_1 = _this__u8e3s4.tbj_1; this_0.ubj_1 = _this__u8e3s4.ubj_1; this_0.vbj_1 = _this__u8e3s4.vbj_1; this_0.wbj_1 = _this__u8e3s4.wbj_1; this_0.xbj_1 = _this__u8e3s4.xbj_1; this_0.ybj_1 = _this__u8e3s4.ybj_1; this_0.zbj_1 = _this__u8e3s4.zbj_1; this_0.abk_1 = _this__u8e3s4.abk_1; this_0.bbk_1 = _this__u8e3s4.bbk_1; this_0.cbk_1 = _this__u8e3s4.cbk_1; this_0.dbk_1 = _this__u8e3s4.dbk_1; block(this_0); return this_0; } function shallowCopy_6(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new CourseAssignmentSubmission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.ybp_1 = _this__u8e3s4.ybp_1; this_0.zbp_1 = _this__u8e3s4.zbp_1; this_0.abq_1 = _this__u8e3s4.abq_1; this_0.bbq_1 = _this__u8e3s4.bbq_1; this_0.cbq_1 = _this__u8e3s4.cbq_1; this_0.dbq_1 = _this__u8e3s4.dbq_1; this_0.ebq_1 = _this__u8e3s4.ebq_1; this_0.fbq_1 = _this__u8e3s4.fbq_1; block(this_0); return this_0; } function shallowCopy_7(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new CourseGroupMember(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.dcs_1 = _this__u8e3s4.dcs_1; this_0.ecs_1 = _this__u8e3s4.ecs_1; this_0.fcs_1 = _this__u8e3s4.fcs_1; this_0.gcs_1 = _this__u8e3s4.gcs_1; this_0.hcs_1 = _this__u8e3s4.hcs_1; block(this_0); return this_0; } function shallowCopy_8(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new CourseGroupSet(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.y7z_1 = _this__u8e3s4.y7z_1; this_0.z7z_1 = _this__u8e3s4.z7z_1; this_0.a80_1 = _this__u8e3s4.a80_1; this_0.b80_1 = _this__u8e3s4.b80_1; this_0.c80_1 = _this__u8e3s4.c80_1; this_0.d80_1 = _this__u8e3s4.d80_1; block(this_0); return this_0; } function shallowCopy_9(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.k8h_1 = _this__u8e3s4.k8h_1; this_0.l8h_1 = _this__u8e3s4.l8h_1; this_0.m8h_1 = _this__u8e3s4.m8h_1; this_0.n8h_1 = _this__u8e3s4.n8h_1; block(this_0); return this_0; } function shallowCopy_10(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new DiscussionPost(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.bea_1 = _this__u8e3s4.bea_1; this_0.cea_1 = _this__u8e3s4.cea_1; this_0.dea_1 = _this__u8e3s4.dea_1; this_0.eea_1 = _this__u8e3s4.eea_1; this_0.fea_1 = _this__u8e3s4.fea_1; this_0.gea_1 = _this__u8e3s4.gea_1; this_0.hea_1 = _this__u8e3s4.hea_1; this_0.iea_1 = _this__u8e3s4.iea_1; this_0.jea_1 = _this__u8e3s4.jea_1; this_0.kea_1 = _this__u8e3s4.kea_1; this_0.lea_1 = _this__u8e3s4.lea_1; this_0.mea_1 = _this__u8e3s4.mea_1; block(this_0); return this_0; } function shallowCopy_11(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new HolidayCalendar(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.a8g_1 = _this__u8e3s4.a8g_1; this_0.b8g_1 = _this__u8e3s4.b8g_1; this_0.c8g_1 = _this__u8e3s4.c8g_1; this_0.d8g_1 = _this__u8e3s4.d8g_1; this_0.e8g_1 = _this__u8e3s4.e8g_1; this_0.f8g_1 = _this__u8e3s4.f8g_1; this_0.g8g_1 = _this__u8e3s4.g8g_1; this_0.h8g_1 = _this__u8e3s4.h8g_1; block(this_0); return this_0; } function shallowCopy_12(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.ccb_1 = _this__u8e3s4.ccb_1; this_0.dcb_1 = _this__u8e3s4.dcb_1; this_0.ecb_1 = _this__u8e3s4.ecb_1; this_0.fcb_1 = _this__u8e3s4.fcb_1; this_0.gcb_1 = _this__u8e3s4.gcb_1; this_0.hcb_1 = _this__u8e3s4.hcb_1; this_0.icb_1 = _this__u8e3s4.icb_1; this_0.jcb_1 = _this__u8e3s4.jcb_1; this_0.kcb_1 = _this__u8e3s4.kcb_1; this_0.lcb_1 = _this__u8e3s4.lcb_1; this_0.mcb_1 = _this__u8e3s4.mcb_1; block(this_0); return this_0; } function shallowCopy_13(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new LeavingReason(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.o95_1 = _this__u8e3s4.o95_1; this_0.p95_1 = _this__u8e3s4.p95_1; this_0.q95_1 = _this__u8e3s4.q95_1; this_0.r95_1 = _this__u8e3s4.r95_1; this_0.s95_1 = _this__u8e3s4.s95_1; this_0.t95_1 = _this__u8e3s4.t95_1; block(this_0); return this_0; } function shallowCopy_14(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new PeerReviewerAllocation(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.bfi_1 = _this__u8e3s4.bfi_1; this_0.cfi_1 = _this__u8e3s4.cfi_1; this_0.dfi_1 = _this__u8e3s4.dfi_1; this_0.efi_1 = _this__u8e3s4.efi_1; this_0.ffi_1 = _this__u8e3s4.ffi_1; this_0.gfi_1 = _this__u8e3s4.gfi_1; block(this_0); return this_0; } function shallowCopy_15(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new PersonParentJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.fft_1 = _this__u8e3s4.fft_1; this_0.gft_1 = _this__u8e3s4.gft_1; this_0.hft_1 = _this__u8e3s4.hft_1; this_0.ift_1 = _this__u8e3s4.ift_1; this_0.jft_1 = _this__u8e3s4.jft_1; this_0.kft_1 = _this__u8e3s4.kft_1; this_0.lft_1 = _this__u8e3s4.lft_1; this_0.mft_1 = _this__u8e3s4.mft_1; this_0.nft_1 = _this__u8e3s4.nft_1; this_0.oft_1 = _this__u8e3s4.oft_1; this_0.pft_1 = _this__u8e3s4.pft_1; this_0.qft_1 = _this__u8e3s4.qft_1; this_0.rft_1 = _this__u8e3s4.rft_1; this_0.sft_1 = _this__u8e3s4.sft_1; block(this_0); return this_0; } function shallowCopy_16(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.a97_1 = _this__u8e3s4.a97_1; this_0.b97_1 = _this__u8e3s4.b97_1; this_0.c97_1 = _this__u8e3s4.c97_1; this_0.d97_1 = _this__u8e3s4.d97_1; this_0.e97_1 = _this__u8e3s4.e97_1; this_0.f97_1 = _this__u8e3s4.f97_1; this_0.g97_1 = _this__u8e3s4.g97_1; this_0.h97_1 = _this__u8e3s4.h97_1; this_0.i97_1 = _this__u8e3s4.i97_1; this_0.j97_1 = _this__u8e3s4.j97_1; this_0.k97_1 = _this__u8e3s4.k97_1; this_0.l97_1 = _this__u8e3s4.l97_1; this_0.m97_1 = _this__u8e3s4.m97_1; this_0.n97_1 = _this__u8e3s4.n97_1; this_0.o97_1 = _this__u8e3s4.o97_1; this_0.p97_1 = _this__u8e3s4.p97_1; this_0.q97_1 = _this__u8e3s4.q97_1; this_0.r97_1 = _this__u8e3s4.r97_1; this_0.s97_1 = _this__u8e3s4.s97_1; this_0.t97_1 = _this__u8e3s4.t97_1; this_0.u97_1 = _this__u8e3s4.u97_1; this_0.v97_1 = _this__u8e3s4.v97_1; this_0.w97_1 = _this__u8e3s4.w97_1; this_0.x97_1 = _this__u8e3s4.x97_1; block(this_0); return this_0; } function shallowCopy_17(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new Schedule(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.vh2_1 = _this__u8e3s4.vh2_1; this_0.wh2_1 = _this__u8e3s4.wh2_1; this_0.xh2_1 = _this__u8e3s4.xh2_1; this_0.yh2_1 = _this__u8e3s4.yh2_1; this_0.zh2_1 = _this__u8e3s4.zh2_1; this_0.ah3_1 = _this__u8e3s4.ah3_1; this_0.bh3_1 = _this__u8e3s4.bh3_1; this_0.ch3_1 = _this__u8e3s4.ch3_1; this_0.dh3_1 = _this__u8e3s4.dh3_1; this_0.eh3_1 = _this__u8e3s4.eh3_1; this_0.fh3_1 = _this__u8e3s4.fh3_1; this_0.gh3_1 = _this__u8e3s4.gh3_1; this_0.hh3_1 = _this__u8e3s4.hh3_1; block(this_0); return this_0; } function shallowCopy_18(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new Site(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.wha_1 = _this__u8e3s4.wha_1; this_0.xha_1 = _this__u8e3s4.xha_1; this_0.yha_1 = _this__u8e3s4.yha_1; this_0.zha_1 = _this__u8e3s4.zha_1; this_0.ahb_1 = _this__u8e3s4.ahb_1; this_0.bhb_1 = _this__u8e3s4.bhb_1; this_0.chb_1 = _this__u8e3s4.chb_1; this_0.dhb_1 = _this__u8e3s4.dhb_1; this_0.ehb_1 = _this__u8e3s4.ehb_1; block(this_0); return this_0; } function shallowCopy_19(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new SiteTerms(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.jhg_1 = _this__u8e3s4.jhg_1; this_0.khg_1 = _this__u8e3s4.khg_1; this_0.lhg_1 = _this__u8e3s4.lhg_1; this_0.mhg_1 = _this__u8e3s4.mhg_1; this_0.nhg_1 = _this__u8e3s4.nhg_1; this_0.ohg_1 = _this__u8e3s4.ohg_1; this_0.phg_1 = _this__u8e3s4.phg_1; this_0.qhg_1 = _this__u8e3s4.qhg_1; this_0.rhg_1 = _this__u8e3s4.rhg_1; block(this_0); return this_0; } function get_UNSET_DISTANT_FUTURE() { return UNSET_DISTANT_FUTURE; } var UNSET_DISTANT_FUTURE; function PermissionFlags() { PermissionFlags_instance = this; this.yjo_1 = new Long(1, 0); this.zjo_1 = new Long(2, 0); this.ajp_1 = new Long(4, 0); this.bjp_1 = new Long(8, 0); this.cjp_1 = new Long(16, 0); this.djp_1 = new Long(32, 0); this.ejp_1 = new Long(64, 0); this.fjp_1 = new Long(128, 0); this.gjp_1 = new Long(256, 0); this.hjp_1 = new Long(512, 0); this.ijp_1 = new Long(1024, 0); this.jjp_1 = new Long(2048, 0); this.kjp_1 = new Long(4096, 0); this.ljp_1 = new Long(8192, 0); this.mjp_1 = new Long(16384, 0); this.njp_1 = new Long(32768, 0); this.ojp_1 = new Long(65536, 0); this.pjp_1 = new Long(131072, 0); this.qjp_1 = new Long(-1, 2147483647); this.rjp_1 = new Long(262144, 0); } var PermissionFlags_instance; function PermissionFlags_getInstance() { if (PermissionFlags_instance == null) new PermissionFlags(); return PermissionFlags_instance; } function get_MIGRATE_USERNAME_CLIENT() { _init_properties_UsernameFilterClientMigration_kt__kpjhqb(); return MIGRATE_USERNAME_CLIENT; } var MIGRATE_USERNAME_CLIENT; function MIGRATE_USERNAME_CLIENT$lambda(_anonymous_parameter_0__qggqh8) { _init_properties_UsernameFilterClientMigration_kt__kpjhqb(); return emptyList(); } var properties_initialized_UsernameFilterClientMigration_kt_4cnqd7; function _init_properties_UsernameFilterClientMigration_kt__kpjhqb() { if (!properties_initialized_UsernameFilterClientMigration_kt_4cnqd7) { properties_initialized_UsernameFilterClientMigration_kt_4cnqd7 = true; MIGRATE_USERNAME_CLIENT = new DoorMigrationStatementList(202, 203, MIGRATE_USERNAME_CLIENT$lambda); } } function ClazzAssignmentDaoCommon() { this.sjp_1 = '\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid)\n LIMIT 1), 0)\n '; this.tjp_1 = '\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = :assignmentUid) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = :assignmentUid) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = :assignmentUid)\n AND CourseGroupMember.cgmPersonUid = :accountPersonUid\n LIMIT 1), -1)\n END\n '; this.ujp_1 = "\n WITH SubmitterList (submitterId, name)\n AS (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n \n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n \n WHERE :groupUid = 0 \n AND clazzEnrolmentClazzUid = :clazzUid\n AND clazzEnrolmentActive\n AND clazzEnrolmentRole = 1000\n GROUP BY submitterId, name\n UNION \n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n :group || ' ' || CourseGroupMember.cgmGroupNumber AS name \n FROM CourseGroupMember\n JOIN CourseGroupSet\n ON CourseGroupSet.cgsUid = :groupUid\n WHERE CourseGroupMember.cgmSetUid = CourseGroupSet.cgsUid\n AND CourseGroupMember.cgmGroupNumber != 0\n GROUP BY submitterId, name\n )\n "; this.vjp_1 = '\n HasLearningRecordSelectPermission (hasPermission) AS\n (SELECT (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = :clazzUid), 0) = :accountPersonUid)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = :accountPersonUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = :clazzUid\n AND (CoursePermission.cpToPersonUid = :accountPersonUid \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = :accountPersonUid\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n ))\n '; this.wjp_1 = '\n AssignmentClazzUid(clazzUid) AS\n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid) \n '; this.xjp_1 = '\n AccountSubmitterUid(accountSubmitterUid) AS \n (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = :assignmentUid) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = :assignmentUid) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = :assignmentUid)\n AND CourseGroupMember.cgmPersonUid = :accountPersonUid\n LIMIT 1), -1)\n END\n )\n '; this.yjp_1 = '\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid\n '; this.zjp_1 = '\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid) = 2)\n '; this.ajq_1 = "\n SubmitterList(submitterId, name) AS \n -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid\n ) = 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = :clazzUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n -- check if the active person eg accountpersonuid is assigned to mark this peer\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = :assignmentUid\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n AND PeerReviewerAllocation.praMarkerSubmitterUid = :accountPersonUid))\n )\n UNION\n -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n :group || ' ' || CourseGroupMember.cgmGroupNumber AS name\n FROM CourseGroupMember\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid\n ) != 0\n AND CourseGroupMember.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid\n )\n -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = :assignmentUid\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n AND PeerReviewerAllocation.praMarkerSubmitterUid = \n (SELECT CourseGroupMemberInner.cgmGroupNumber\n FROM CourseGroupMember CourseGroupMemberInner\n WHERE CourseGroupMemberInner.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid\n )\n AND CourseGroupMemberInner.cgmPersonUid = :accountPersonUid\n LIMIT 1)\n ))\n )\n )\n \n "; this.bjq_1 = 5; this.cjq_1 = 6; } var ClazzAssignmentDaoCommon_instance; function ClazzAssignmentDaoCommon_getInstance() { return ClazzAssignmentDaoCommon_instance; } function ClazzDaoCommon() { this.djq_1 = 1; this.ejq_1 = 2; this.fjq_1 = 3; this.gjq_1 = 4; this.hjq_1 = 5; this.ijq_1 = 6; this.jjq_1 = 'SELECT * FROM Clazz WHERE CAST(isClazzActive AS INTEGER) = 1'; } var ClazzDaoCommon_instance; function ClazzDaoCommon_getInstance() { return ClazzDaoCommon_instance; } function ClazzEnrolmentDaoCommon() { this.kjq_1 = 1; this.ljq_1 = 2; this.mjq_1 = 3; this.njq_1 = 4; this.ojq_1 = 7; this.pjq_1 = 8; this.qjq_1 = 9; this.rjq_1 = 10; this.sjq_1 = 1; this.tjq_1 = '\n WITH CurrentlyEnrolledPersonUids(enroledPersonUid) AS\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS enroledPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = :clazzUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND :time BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft)\n '; this.ujq_1 = '\n SELECT ClazzEnrolment.clazzEnrolmentRole\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentUid = :clazzEnrolmentUid \n '; this.vjq_1 = '\n CASE (\n SELECT ClazzEnrolment.clazzEnrolmentRole\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentUid = :clazzEnrolmentUid \n )\n WHEN 1000 THEN 8\n ELSE 8\n END \n '; this.wjq_1 = '\n (SELECT EXISTS(\n SELECT 1\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = :clazzUid\n AND ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1000))\n '; this.xjq_1 = "\n SELECT * \n FROM (SELECT Person.*, PersonPicture.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = :clazzUid \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = :clazzUid \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = :roleId \n AND (:filter != 1 \n OR (:currentTime \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = :clazzUid), 0) = :accountPersonUid)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = :accountPersonUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = :clazzUid\n AND (CoursePermission.cpToPersonUid = :accountPersonUid \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n :permission\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = :accountPersonUid\n AND (SystemPermission.spPermissionsFlag & \n :permission\n \n ) > 0)\n )\n \n )\n OR Person.personUid = :accountPersonUid\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE :searchText\n GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n ORDER BY CASE(:sortOrder)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(:sortOrder)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(:sortOrder)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(:sortOrder)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n "; this.yjq_1 = "\n PersonUids(personUid) AS (\n SELECT CourseMember.personUid \n FROM (SELECT Person.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = :clazzUid \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = :clazzUid \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = :roleId \n AND (:filter != 1 \n OR (:currentTime \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = :clazzUid), 0) = :accountPersonUid)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = :accountPersonUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = :clazzUid\n AND (CoursePermission.cpToPersonUid = :accountPersonUid \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = :accountPersonUid\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n )\n OR Person.personUid = :accountPersonUid\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE :searchText\n GROUP BY Person.personUid) AS CourseMember\n ORDER BY CASE(:sortOrder)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(:sortOrder)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(:sortOrder)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(:sortOrder)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n LIMIT :studentsLimit\n OFFSET :studentsOffset \n )\n "; } var ClazzEnrolmentDaoCommon_instance; function ClazzEnrolmentDaoCommon_getInstance() { return ClazzEnrolmentDaoCommon_instance; } function ContentEntryDaoCommon() { this.zjq_1 = 1; this.ajr_1 = 2; this.bjr_1 = '\n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = :accountPersonUid\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = :accountPersonUid\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = :accountPersonUid\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = :accountPersonUid\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = :accountPersonUid\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n '; this.cjr_1 = '\n :accountPersonUid AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = :accountPersonUid\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = :accountPersonUid\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = :accountPersonUid\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = :accountPersonUid\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = :accountPersonUid\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n '; } var ContentEntryDaoCommon_instance; function ContentEntryDaoCommon_getInstance() { return ContentEntryDaoCommon_instance; } function CourseAssignmentMarkDaoCommon() { this.djr_1 = 1; this.ejr_1 = 0; } var CourseAssignmentMarkDaoCommon_instance; function CourseAssignmentMarkDaoCommon_getInstance() { return CourseAssignmentMarkDaoCommon_instance; } function deactivateByUids(_this__u8e3s4, uidList, changeTime, $completion) { var tmp = new $deactivateByUidsCOROUTINE$478(_this__u8e3s4, uidList, changeTime, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); } function $deactivateByUidsCOROUTINE$478(_this__u8e3s4, uidList, changeTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.njr_1 = _this__u8e3s4; this.ojr_1 = uidList; this.pjr_1 = changeTime; } protoOf($deactivateByUidsCOROUTINE$478).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.qjr_1 = this.ojr_1; this.rjr_1 = this.qjr_1.w(); this.ld_1 = 1; continue $sm; case 1: if (!this.rjr_1.f()) { this.ld_1 = 3; continue $sm; } this.sjr_1 = this.rjr_1.e(); var tmp_1 = this; tmp_1.tjr_1 = this.sjr_1; this.ld_1 = 2; suspendResult = this.njr_1.xc8(this.tjr_1, false, this.pjr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.ld_1 = 1; continue $sm; case 3: return Unit_instance; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function CourseGroupSetDaoConstants() { this.ujr_1 = 1; this.vjr_1 = 2; } var CourseGroupSetDaoConstants_instance; function CourseGroupSetDaoConstants_getInstance() { return CourseGroupSetDaoConstants_instance; } function LanguageDaoCommon() { this.wjr_1 = 1; this.xjr_1 = 2; this.yjr_1 = 3; this.zjr_1 = 4; this.ajs_1 = 5; this.bjs_1 = 6; } var LanguageDaoCommon_instance; function LanguageDaoCommon_getInstance() { return LanguageDaoCommon_instance; } function deactivateByUids_0(_this__u8e3s4, uidList, changeTime, $completion) { var tmp = new $deactivateByUidsCOROUTINE$479(_this__u8e3s4, uidList, changeTime, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); } function $deactivateByUidsCOROUTINE$479(_this__u8e3s4, uidList, changeTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.kjs_1 = _this__u8e3s4; this.ljs_1 = uidList; this.mjs_1 = changeTime; } protoOf($deactivateByUidsCOROUTINE$479).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.njs_1 = this.ljs_1; this.ojs_1 = this.njs_1.w(); this.ld_1 = 1; continue $sm; case 1: if (!this.ojs_1.f()) { this.ld_1 = 3; continue $sm; } this.pjs_1 = this.ojs_1.e(); var tmp_1 = this; tmp_1.qjs_1 = this.pjs_1; this.ld_1 = 2; suspendResult = this.kjs_1.xc8(this.qjs_1, false, this.mjs_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.ld_1 = 1; continue $sm; case 3: return Unit_instance; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function PersonDaoCommon() { this.rjs_1 = 1; this.sjs_1 = 2; this.tjs_1 = 3; this.ujs_1 = 4; this.vjs_1 = "\n WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n /* Select personUids that can be viewed based on CoursePermission given the active user \n for their enrolments \n */\n (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE :accountPersonUid != 0\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = :accountPersonUid\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n \n UNION\n /* Select personUids that can be viewed based on CoursePermission for the active user\n where the CoursePermission is granted directly to them\n */ \n SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM CoursePermission\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE :accountPersonUid != 0\n AND CoursePermission.cpToPersonUid = :accountPersonUid)\n \n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE /* Begin permission check */ \n ( \n (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE :accountPersonUid != 0 \n AND SystemPermission.spToPersonUid = :accountPersonUid\n AND (SystemPermission.spPermissionsFlag &\n \n 8192\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (Person.personUid IN \n (SELECT CanViewPersonUidsViaCoursePermission.personUid\n FROM CanViewPersonUidsViaCoursePermission))\n OR (Person.personUid = :accountPersonUid)\n )\n /* End permission check */\n AND (:excludeClazz = 0 OR :excludeClazz NOT IN\n (SELECT clazzEnrolmentClazzUid \n FROM ClazzEnrolment \n WHERE clazzEnrolmentPersonUid = Person.personUid \n AND :timestamp BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft\n AND ClazzEnrolment.clazzEnrolmentActive))\n AND Person.personType = 0 \n AND (Person.personUid NOT IN (:excludeSelected))\n AND (:searchText = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE :searchText)\n GROUP BY Person.personUid, PersonPicture.personPictureUid\n ORDER BY CASE(:sortOrder)\n WHEN 1 THEN Person.firstNames\n WHEN 3 THEN Person.lastName\n ELSE ''\n END ASC,\n CASE(:sortOrder)\n WHEN 2 THEN Person.firstNames\n WHEN 4 THEN Person.lastName\n ELSE ''\n END DESC\n "; } var PersonDaoCommon_instance; function PersonDaoCommon_getInstance() { return PersonDaoCommon_instance; } function deactivateByUids_1(_this__u8e3s4, uidList, changeTime, $completion) { var tmp = new $deactivateByUidsCOROUTINE$480(_this__u8e3s4, uidList, changeTime, $completion); tmp.nd_1 = Unit_instance; tmp.od_1 = null; return tmp.yd(); } function $deactivateByUidsCOROUTINE$480(_this__u8e3s4, uidList, changeTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ejt_1 = _this__u8e3s4; this.fjt_1 = uidList; this.gjt_1 = changeTime; } protoOf($deactivateByUidsCOROUTINE$480).yd = function () { var suspendResult = this.nd_1; $sm: do try { var tmp = this.ld_1; switch (tmp) { case 0: this.md_1 = 4; var tmp_0 = this; tmp_0.hjt_1 = this.fjt_1; this.ijt_1 = this.hjt_1.w(); this.ld_1 = 1; continue $sm; case 1: if (!this.ijt_1.f()) { this.ld_1 = 3; continue $sm; } this.jjt_1 = this.ijt_1.e(); var tmp_1 = this; tmp_1.kjt_1 = this.jjt_1; this.ld_1 = 2; suspendResult = this.ejt_1.ah2(this.kjt_1, false, this.gjt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.ld_1 = 1; continue $sm; case 3: return Unit_instance; case 4: throw this.od_1; } } catch ($p) { var e = $p; if (this.md_1 === 4) { throw e; } else { this.ld_1 = this.md_1; this.od_1 = e; } } while (true); }; function get_MIGRATION_105_106() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_105_106; } var MIGRATION_105_106; function get_MIGRATION_106_107() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_106_107; } var MIGRATION_106_107; function get_MIGRATION_107_108() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_107_108; } var MIGRATION_107_108; function get_MIGRATION_108_109() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_108_109; } var MIGRATION_108_109; function get_MIGRATION_120_121() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_120_121; } var MIGRATION_120_121; function get_MIGRATION_121_122() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_121_122; } var MIGRATION_121_122; function get_MIGRATION_122_123() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_122_123; } var MIGRATION_122_123; function get_MIGRATION_123_124() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_123_124; } var MIGRATION_123_124; function get_MIGRATION_124_125() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_124_125; } var MIGRATION_124_125; function get_MIGRATION_125_126() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_125_126; } var MIGRATION_125_126; function get_MIGRATION_126_127() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_126_127; } var MIGRATION_126_127; function get_MIGRATION_127_128() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_127_128; } var MIGRATION_127_128; function get_MIGRATION_128_129() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_128_129; } var MIGRATION_128_129; function get_MIGRATION_129_130() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_129_130; } var MIGRATION_129_130; function get_MIGRATION_130_131() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_130_131; } var MIGRATION_130_131; function get_MIGRATION_132_133() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_132_133; } var MIGRATION_132_133; function get_MIGRATION_133_134() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_133_134; } var MIGRATION_133_134; function get_MIGRATION_134_135() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_134_135; } var MIGRATION_134_135; function get_MIGRATION_135_136() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_135_136; } var MIGRATION_135_136; function get_MIGRATION_136_137() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_136_137; } var MIGRATION_136_137; function get_MIGRATION_137_138() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_137_138; } var MIGRATION_137_138; function get_MIGRATION_138_139() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_138_139; } var MIGRATION_138_139; function get_MIGRATION_139_140() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_139_140; } var MIGRATION_139_140; function get_MIGRATION_140_141() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_140_141; } var MIGRATION_140_141; function get_MIGRATION_141_142() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_141_142; } var MIGRATION_141_142; function get_MIGRATION_142_143() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_142_143; } var MIGRATION_142_143; function get_MIGRATION_143_144() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_143_144; } var MIGRATION_143_144; var MIGRATION_144_145_SERVER; function get_MIGRATION_144_145_CLIENT() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_144_145_CLIENT; } var MIGRATION_144_145_CLIENT; function get_MIGRATION_145_146() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_145_146; } var MIGRATION_145_146; function get_MIGRATION_146_147() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_146_147; } var MIGRATION_146_147; function get_MIGRATION_147_148() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_147_148; } var MIGRATION_147_148; var MIGRATION_148_149_CLIENT_WITH_OFFLINE_ITEMS; function get_MIGRATION_148_149_NO_OFFLINE_ITEMS() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_148_149_NO_OFFLINE_ITEMS; } var MIGRATION_148_149_NO_OFFLINE_ITEMS; function get_MIGRATION_149_150() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_149_150; } var MIGRATION_149_150; function get_MIGRATION_150_151() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_150_151; } var MIGRATION_150_151; function get_MIGRATION_151_152() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_151_152; } var MIGRATION_151_152; function get_MIGRATION_152_153() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_152_153; } var MIGRATION_152_153; function get_MIGRATION_153_154() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_153_154; } var MIGRATION_153_154; function get_MIGRATION_154_155() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_154_155; } var MIGRATION_154_155; var MIGRATION_155_156_SERVER; function get_MIGRATION_155_156_CLIENT() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_155_156_CLIENT; } var MIGRATION_155_156_CLIENT; function get_MIGRATION_156_157() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_156_157; } var MIGRATION_156_157; function get_MIGRATION_157_158() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_157_158; } var MIGRATION_157_158; function get_MIGRATION_158_159() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_158_159; } var MIGRATION_158_159; function get_MIGRATION_159_160() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_159_160; } var MIGRATION_159_160; function get_MIGRATION_160_161() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_160_161; } var MIGRATION_160_161; var MIGRATION_161_162_SERVER; function get_MIGRATION_161_162_CLIENT() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_161_162_CLIENT; } var MIGRATION_161_162_CLIENT; function get_MIGRATION_162_163() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_162_163; } var MIGRATION_162_163; function get_MIGRATION_163_164() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_163_164; } var MIGRATION_163_164; function get_MIGRATION_164_165() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_164_165; } var MIGRATION_164_165; function get_MIGRATION_165_166() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_165_166; } var MIGRATION_165_166; function get_MIGRATION_166_167() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_166_167; } var MIGRATION_166_167; function get_MIGRATION_167_168() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_167_168; } var MIGRATION_167_168; function get_MIGRATION_168_169() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_168_169; } var MIGRATION_168_169; var MIGRATION_169_170_SERVER; function get_MIGRATION_169_170_CLIENT() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_169_170_CLIENT; } var MIGRATION_169_170_CLIENT; function get_MIGRATION_170_171() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_170_171; } var MIGRATION_170_171; function get_MIGRATION_171_172() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_171_172; } var MIGRATION_171_172; function get_MIGRATION_172_194() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_172_194; } var MIGRATION_172_194; function get_MIGRATION_194_195() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_194_195; } var MIGRATION_194_195; function get_MIGRATION_195_196() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_195_196; } var MIGRATION_195_196; function get_MIGRATION_196_197() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_196_197; } var MIGRATION_196_197; function get_MIGRATION_197_198() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_197_198; } var MIGRATION_197_198; function get_MIGRATION_198_199() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_198_199; } var MIGRATION_198_199; function get_MIGRATION_199_200() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_199_200; } var MIGRATION_199_200; function get_MIGRATION_200_201() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_200_201; } var MIGRATION_200_201; function get_MIGRATION_201_202() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_201_202; } var MIGRATION_201_202; function get_MIGRATION_202_203() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_202_203; } var MIGRATION_202_203; function get_MIGRATION_204_205() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_204_205; } var MIGRATION_204_205; function get_MIGRATION_205_206() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_205_206; } var MIGRATION_205_206; function get_MIGRATION_206_207() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_206_207; } var MIGRATION_206_207; function get_MIGRATION_203_204() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_203_204; } var MIGRATION_203_204; function migrationList() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf_0([get_MIGRATION_105_106(), get_MIGRATION_106_107(), get_MIGRATION_107_108(), get_MIGRATION_108_109(), get_MIGRATION_120_121(), get_MIGRATION_121_122(), get_MIGRATION_122_123(), get_MIGRATION_123_124(), get_MIGRATION_124_125(), get_MIGRATION_125_126(), get_MIGRATION_126_127(), get_MIGRATION_127_128(), get_MIGRATION_128_129(), get_MIGRATION_129_130(), get_MIGRATION_130_131(), get_MIGRATION_132_133(), get_MIGRATION_133_134(), get_MIGRATION_134_135(), get_MIGRATION_135_136(), get_MIGRATION_136_137(), get_MIGRATION_137_138(), get_MIGRATION_138_139(), get_MIGRATION_139_140(), get_MIGRATION_140_141(), get_MIGRATION_141_142(), get_MIGRATION_142_143(), get_MIGRATION_143_144(), get_MIGRATION_145_146(), get_MIGRATION_146_147(), get_MIGRATION_147_148(), get_MIGRATION_149_150(), get_MIGRATION_150_151(), get_MIGRATION_151_152(), get_MIGRATION_152_153(), get_MIGRATION_153_154(), get_MIGRATION_154_155(), get_MIGRATION_156_157(), get_MIGRATION_157_158(), get_MIGRATION_158_159(), get_MIGRATION_159_160(), get_MIGRATION_160_161(), get_MIGRATION_162_163(), get_MIGRATION_163_164(), get_MIGRATION_164_165(), get_MIGRATION_165_166(), get_MIGRATION_166_167(), get_MIGRATION_167_168(), get_MIGRATION_168_169(), get_MIGRATION_170_171(), get_MIGRATION_171_172(), get_MIGRATION_172_194(), get_MIGRATION_194_195(), get_MIGRATION_195_196(), get_MIGRATION_196_197(), get_MIGRATION_197_198(), get_MIGRATION_198_199(), get_MIGRATION_199_200(), get_MIGRATION_200_201(), get_MIGRATION_201_202(), get_MIGRATION_202_203(), get_MIGRATION_203_204(), get_MIGRATION_204_205(), get_MIGRATION_205_206(), get_MIGRATION_206_207()]); } function MIGRATION_105_106$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.mutableListOf' call var stmtList = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.plusAssign' call var element = 'ALTER TABLE CourseAssignmentSubmissionAttachment ADD COLUMN casaFileName TEXT'; stmtList.j1(element); return stmtList; } function MIGRATION_106_107$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.apply' call // Inline function 'kotlin.collections.mutableListOf' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_106_107..' call this_0.j1('DROP TABLE IF EXISTS SqliteChangeSeqNums'); this_0.j1('DROP TABLE IF EXISTS UpdateNotification'); return this_0; } function MIGRATION_107_108$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.mutableListOf' call var stmtList = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.plusAssign' call var element = 'ALTER TABLE CourseAssignmentMark ADD COLUMN camMarkerComment TEXT'; stmtList.j1(element); // Inline function 'kotlin.collections.plusAssign' call var element_0 = 'ALTER TABLE ClazzAssignment ADD COLUMN caPeerReviewerCount INTEGER NOT NULL DEFAULT 0'; stmtList.j1(element_0); var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { // Inline function 'kotlin.collections.plusAssign' call var element_1 = 'ALTER TABLE CourseAssignmentMark ADD COLUMN camMarkerSubmitterUid INTEGER NOT NULL DEFAULT 0'; stmtList.j1(element_1); // Inline function 'kotlin.collections.plusAssign' call var element_2 = 'ALTER TABLE CourseAssignmentMark ADD COLUMN camMarkerPersonUid INTEGER NOT NULL DEFAULT 0'; stmtList.j1(element_2); // Inline function 'kotlin.collections.plusAssign' call var element_3 = 'CREATE TABLE IF NOT EXISTS PeerReviewerAllocation (`praUid` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `praMarkerSubmitterUid` INTEGER NOT NULL, `praToMarkerSubmitterUid` INTEGER NOT NULL, `praAssignmentUid` INTEGER NOT NULL, `praActive` INTEGER NOT NULL, `praLct` INTEGER NOT NULL)'; stmtList.j1(element_3); // Inline function 'kotlin.collections.plusAssign' call var element_4 = 'CREATE TABLE IF NOT EXISTS PeerReviewerAllocationReplicate (`prarPk` INTEGER NOT NULL, `prarVersionId` INTEGER NOT NULL DEFAULT 0, `prarDestination` INTEGER NOT NULL, `prarPending` INTEGER NOT NULL DEFAULT 1, PRIMARY KEY(`prarPk`, `prarDestination`))'; stmtList.j1(element_4); // Inline function 'kotlin.collections.plusAssign' call var element_5 = 'CREATE INDEX IF NOT EXISTS `index_PeerReviewerAllocationReplicate_prarPk_prarDestination_prarVersionId` ON PeerReviewerAllocationReplicate (`prarPk`, `prarDestination`, `prarVersionId`)'; stmtList.j1(element_5); // Inline function 'kotlin.collections.plusAssign' call var element_6 = 'CREATE INDEX IF NOT EXISTS `index_PeerReviewerAllocationReplicate_prarDestination_prarPending` ON PeerReviewerAllocationReplicate (`prarDestination`, `prarPending`)'; stmtList.j1(element_6); // Inline function 'kotlin.collections.plusAssign' call var element_7 = ' CREATE TRIGGER ch_ins_140 AFTER INSERT ON PeerReviewerAllocation BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 140 AS chTableId, NEW.praUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 140 AND chEntityPk = NEW.praUid); END '; stmtList.j1(element_7); // Inline function 'kotlin.collections.plusAssign' call var element_8 = ' CREATE TRIGGER ch_upd_140 AFTER UPDATE ON PeerReviewerAllocation BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 140 AS chTableId, NEW.praUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 140 AND chEntityPk = NEW.praUid); END '; stmtList.j1(element_8); // Inline function 'kotlin.collections.plusAssign' call var element_9 = ' CREATE TRIGGER ch_del_140 AFTER DELETE ON PeerReviewerAllocation BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 140 AS chTableId, OLD.praUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 140 AND chEntityPk = OLD.praUid); END '; stmtList.j1(element_9); // Inline function 'kotlin.collections.plusAssign' call var element_10 = 'CREATE VIEW PeerReviewerAllocation_ReceiveView AS SELECT PeerReviewerAllocation.*, ClazzAssignmentReplicate.* FROM PeerReviewerAllocation LEFT JOIN ClazzAssignmentReplicate ON ClazzAssignmentReplicate.caPk = PeerReviewerAllocation.praUid '; stmtList.j1(element_10); // Inline function 'kotlin.collections.plusAssign' call var element_11 = ' CREATE TRIGGER peerreviewerallocation_remote_insert_ins INSTEAD OF INSERT ON PeerReviewerAllocation_ReceiveView FOR EACH ROW BEGIN REPLACE INTO PeerReviewerAllocation(praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) VALUES (NEW.praUid, NEW.praMarkerSubmitterUid, NEW.praToMarkerSubmitterUid, NEW.praAssignmentUid, NEW.praActive, NEW.praLct) /*psql ON CONFLICT (praUid) DO UPDATE SET praMarkerSubmitterUid = EXCLUDED.praMarkerSubmitterUid, praToMarkerSubmitterUid = EXCLUDED.praToMarkerSubmitterUid, praAssignmentUid = EXCLUDED.praAssignmentUid, praActive = EXCLUDED.praActive, praLct = EXCLUDED.praLct */; END '; stmtList.j1(element_11); } else { // Inline function 'kotlin.collections.plusAssign' call var element_12 = 'ALTER TABLE CourseAssignmentMark ADD COLUMN camMarkerSubmitterUid BIGINT NOT NULL DEFAULT 0'; stmtList.j1(element_12); // Inline function 'kotlin.collections.plusAssign' call var element_13 = 'ALTER TABLE CourseAssignmentMark ADD COLUMN camMarkerPersonUid BIGINT NOT NULL DEFAULT 0'; stmtList.j1(element_13); // Inline function 'kotlin.collections.plusAssign' call var element_14 = 'CREATE TABLE IF NOT EXISTS PeerReviewerAllocation ( praMarkerSubmitterUid BIGINT NOT NULL , praToMarkerSubmitterUid BIGINT NOT NULL , praAssignmentUid BIGINT NOT NULL , praActive BOOL NOT NULL , praLct BIGINT NOT NULL , praUid BIGSERIAL PRIMARY KEY NOT NULL )'; stmtList.j1(element_14); // Inline function 'kotlin.collections.plusAssign' call var element_15 = 'CREATE TABLE IF NOT EXISTS PeerReviewerAllocationReplicate ( prarPk BIGINT NOT NULL , prarVersionId BIGINT NOT NULL DEFAULT 0 , prarDestination BIGINT NOT NULL , prarPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (prarPk, prarDestination) )'; stmtList.j1(element_15); // Inline function 'kotlin.collections.plusAssign' call var element_16 = 'CREATE INDEX index_PeerReviewerAllocationReplicate_prarPk_prarDestination_prarVersionId ON PeerReviewerAllocationReplicate (prarPk, prarDestination, prarVersionId)'; stmtList.j1(element_16); // Inline function 'kotlin.collections.plusAssign' call var element_17 = 'CREATE INDEX index_PeerReviewerAllocationReplicate_prarDestination_prarPending ON PeerReviewerAllocationReplicate (prarDestination, prarPending)'; stmtList.j1(element_17); // Inline function 'kotlin.collections.plusAssign' call var element_18 = ' CREATE OR REPLACE FUNCTION ch_upd_140_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (140, NEW.praUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql '; stmtList.j1(element_18); // Inline function 'kotlin.collections.plusAssign' call var element_19 = ' CREATE TRIGGER ch_upd_140_trig AFTER UPDATE OR INSERT ON PeerReviewerAllocation FOR EACH ROW EXECUTE PROCEDURE ch_upd_140_fn(); '; stmtList.j1(element_19); // Inline function 'kotlin.collections.plusAssign' call var element_20 = ' CREATE OR REPLACE FUNCTION ch_del_140_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (140, OLD.praUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql '; stmtList.j1(element_20); // Inline function 'kotlin.collections.plusAssign' call var element_21 = ' CREATE TRIGGER ch_del_140_trig AFTER DELETE ON PeerReviewerAllocation FOR EACH ROW EXECUTE PROCEDURE ch_del_140_fn(); '; stmtList.j1(element_21); // Inline function 'kotlin.collections.plusAssign' call var element_22 = 'CREATE VIEW PeerReviewerAllocation_ReceiveView AS SELECT PeerReviewerAllocation.*, ClazzAssignmentReplicate.* FROM PeerReviewerAllocation LEFT JOIN ClazzAssignmentReplicate ON ClazzAssignmentReplicate.caPk = PeerReviewerAllocation.praUid '; stmtList.j1(element_22); // Inline function 'kotlin.collections.plusAssign' call var element_23 = "CREATE OR REPLACE FUNCTION peerreviewerallocation_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO PeerReviewerAllocation(praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) VALUES (NEW.praUid, NEW.praMarkerSubmitterUid, NEW.praToMarkerSubmitterUid, NEW.praAssignmentUid, NEW.praActive, NEW.praLct) ON CONFLICT (praUid) DO UPDATE SET praMarkerSubmitterUid = EXCLUDED.praMarkerSubmitterUid, praToMarkerSubmitterUid = EXCLUDED.praToMarkerSubmitterUid, praAssignmentUid = EXCLUDED.praAssignmentUid, praActive = EXCLUDED.praActive, praLct = EXCLUDED.praLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"; stmtList.j1(element_23); // Inline function 'kotlin.collections.plusAssign' call var element_24 = ' CREATE TRIGGER peerreviewerallocation_remote_insert_trig INSTEAD OF INSERT ON PeerReviewerAllocation_ReceiveView FOR EACH ROW EXECUTE PROCEDURE peerreviewerallocation_remote_insert_fn() '; stmtList.j1(element_24); } return stmtList; } function MIGRATION_108_109$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.mutableListOf' call var stmtList = ArrayList_init_$Create$(); var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { // Inline function 'kotlin.collections.plusAssign' call var element = 'CREATE TABLE IF NOT EXISTS ExternalAppPermission ( eapPersonUid INTEGER NOT NULL , eapPackageId TEXT , eapStartTime INTEGER NOT NULL , eapExpireTime INTEGER NOT NULL , eapAuthToken TEXT , eapAndroidAccountName TEXT , eapUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; stmtList.j1(element); } else { // Inline function 'kotlin.collections.plusAssign' call var element_0 = 'CREATE TABLE IF NOT EXISTS ExternalAppPermission ( eapPersonUid BIGINT NOT NULL , eapPackageId TEXT , eapStartTime BIGINT NOT NULL , eapExpireTime BIGINT NOT NULL , eapAuthToken TEXT , eapAndroidAccountName TEXT , eapUid SERIAL PRIMARY KEY NOT NULL )'; stmtList.j1(element_0); } return stmtList; } function MIGRATION_120_121$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_120_121..' call var tmp0_subject = dbType(db); Companion_getInstance_1(); if (tmp0_subject === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS StudentResult ( srSourcedId TEXT , srCourseBlockUid INTEGER NOT NULL , srClazzUid INTEGER NOT NULL , srAssignmentUid INTEGER NOT NULL , srLineItemSourcedId TEXT , srStatus INTEGER NOT NULL , srMetaData TEXT , srStudentPersonUid INTEGER NOT NULL , srStudentGroupId INTEGER NOT NULL , srMarkerPersonUid INTEGER NOT NULL , srMarkerGroupId INTEGER NOT NULL , srScoreStatus INTEGER NOT NULL , srScore REAl NOT NULL , srScoreDate INTEGER NOT NULL , srLastModified INTEGER NOT NULL , srComment TEXT , srAppId TEXT , srActive INTEGER NOT NULL , srUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { Companion_getInstance_1(); if (tmp0_subject === 2) { this_0.j1('CREATE TABLE IF NOT EXISTS StudentResult ( srSourcedId TEXT , srCourseBlockUid BIGINT NOT NULL , srClazzUid BIGINT NOT NULL , srAssignmentUid BIGINT NOT NULL , srLineItemSourcedId TEXT , srStatus INTEGER NOT NULL , srMetaData TEXT , srStudentPersonUid BIGINT NOT NULL , srStudentGroupId INTEGER NOT NULL , srMarkerPersonUid BIGINT NOT NULL , srMarkerGroupId INTEGER NOT NULL , srScoreStatus INTEGER NOT NULL , srScore FLOAT NOT NULL , srScoreDate BIGINT NOT NULL , srLastModified BIGINT NOT NULL , srComment TEXT , srAppId TEXT , srActive BOOL NOT NULL , srUid BIGSERIAL PRIMARY KEY NOT NULL )'); } } return this_0.f3(); } function MIGRATION_121_122$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_121_122..' call var tmp0_subject = dbType(db); Companion_getInstance_1(); if (tmp0_subject === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS OutgoingReplication ( destNodeId INTEGER NOT NULL , orPk1 INTEGER NOT NULL , orPk2 INTEGER NOT NULL , orTableId INTEGER NOT NULL , orUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.j1('CREATE TABLE IF NOT EXISTS ReplicationOperation ( repOpRemoteNodeId INTEGER NOT NULL , repOpStatus INTEGER NOT NULL , repOpTableId INTEGER NOT NULL , PRIMARY KEY (repOpRemoteNodeId, repOpTableId) )'); this_0.j1('CREATE TABLE IF NOT EXISTS PendingRepositorySession ( endpointUrl TEXT , remoteNodeId INTEGER NOT NULL , rsUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { Companion_getInstance_1(); if (tmp0_subject === 2) { this_0.j1('CREATE TABLE IF NOT EXISTS OutgoingReplication ( destNodeId BIGINT NOT NULL , orPk1 BIGINT NOT NULL , orPk2 BIGINT NOT NULL , orTableId INTEGER NOT NULL , orUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.j1('CREATE TABLE IF NOT EXISTS ReplicationOperation ( repOpRemoteNodeId BIGINT NOT NULL , repOpStatus INTEGER NOT NULL , repOpTableId INTEGER NOT NULL , PRIMARY KEY (repOpRemoteNodeId, repOpTableId) )'); this_0.j1('CREATE TABLE IF NOT EXISTS PendingRepositorySession ( endpointUrl TEXT , remoteNodeId BIGINT NOT NULL , rsUid BIGSERIAL PRIMARY KEY NOT NULL )'); } } return this_0.f3(); } function MIGRATION_122_123$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf('DROP TABLE IF EXISTS CourseDiscussion'); } function MIGRATION_123_124$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_123_124..' call this_0.j1('DROP TABLE IF EXISTS ContentJobItem'); this_0.j1('DROP TABLE IF EXISTS ContentJob'); var tmp0_subject = dbType(db); Companion_getInstance_1(); if (tmp0_subject === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS ContentJob ( toUri TEXT , cjProgress INTEGER NOT NULL , cjTotal INTEGER NOT NULL , cjNotificationTitle TEXT , cjIsMeteredAllowed INTEGER NOT NULL , params TEXT , cjLct INTEGER NOT NULL , cjUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.j1('CREATE TABLE IF NOT EXISTS ContentJobItem ( cjiJobUid INTEGER NOT NULL , sourceUri TEXT , cjiIsLeaf INTEGER NOT NULL , cjiContentEntryUid INTEGER NOT NULL , cjiParentContentEntryUid INTEGER NOT NULL , cjiContainerUid INTEGER NOT NULL , cjiItemProgress INTEGER NOT NULL , cjiItemTotal INTEGER NOT NULL , cjiRecursiveProgress INTEGER NOT NULL , cjiRecursiveTotal INTEGER NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiConnectivityNeeded INTEGER NOT NULL , cjiPluginId INTEGER NOT NULL , cjiAttemptCount INTEGER NOT NULL , cjiParentCjiUid INTEGER NOT NULL , cjiServerJobId INTEGER NOT NULL , cjiStartTime INTEGER NOT NULL , cjiFinishTime INTEGER NOT NULL , cjiUploadSessionUid TEXT , cjiContentDeletedOnCancellation INTEGER NOT NULL , cjiContainerProcessed INTEGER NOT NULL , cjiLastModified INTEGER NOT NULL , cjiUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.j1('CREATE INDEX index_ContentJobItem_cjiContentEntryUid_cjiFinishTime ON ContentJobItem (cjiContentEntryUid, cjiFinishTime)'); } else { Companion_getInstance_1(); if (tmp0_subject === 2) { this_0.j1('CREATE TABLE IF NOT EXISTS ContentJob ( toUri TEXT , cjProgress BIGINT NOT NULL , cjTotal BIGINT NOT NULL , cjNotificationTitle TEXT , cjIsMeteredAllowed BOOL NOT NULL , params TEXT , cjLct BIGINT NOT NULL , cjUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.j1('CREATE TABLE IF NOT EXISTS ContentJobItem ( cjiJobUid BIGINT NOT NULL , sourceUri TEXT , cjiIsLeaf BOOL NOT NULL , cjiContentEntryUid BIGINT NOT NULL , cjiParentContentEntryUid BIGINT NOT NULL , cjiContainerUid BIGINT NOT NULL , cjiItemProgress BIGINT NOT NULL , cjiItemTotal BIGINT NOT NULL , cjiRecursiveProgress BIGINT NOT NULL , cjiRecursiveTotal BIGINT NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiConnectivityNeeded BOOL NOT NULL , cjiPluginId INTEGER NOT NULL , cjiAttemptCount INTEGER NOT NULL , cjiParentCjiUid BIGINT NOT NULL , cjiServerJobId BIGINT NOT NULL , cjiStartTime BIGINT NOT NULL , cjiFinishTime BIGINT NOT NULL , cjiUploadSessionUid TEXT , cjiContentDeletedOnCancellation BOOL NOT NULL , cjiContainerProcessed BOOL NOT NULL , cjiLastModified BIGINT NOT NULL , cjiUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.j1('CREATE INDEX index_ContentJobItem_cjiContentEntryUid_cjiFinishTime ON ContentJobItem (cjiContentEntryUid, cjiFinishTime)'); } } return this_0.f3(); } function MIGRATION_124_125$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_124_125..' call this_0.j1('DROP TABLE IF EXISTS ContentJobItem'); var tmp0_subject = dbType(db); Companion_getInstance_1(); if (tmp0_subject === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS ContentJobItem ( cjiJobUid INTEGER NOT NULL , sourceUri TEXT , cjiOriginalFilename TEXT , cjiIsLeaf INTEGER NOT NULL , cjiContentEntryUid INTEGER NOT NULL , cjiParentContentEntryUid INTEGER NOT NULL , cjiContentEntryVersion INTEGER NOT NULL , cjiItemProgress INTEGER NOT NULL , cjiItemTotal INTEGER NOT NULL , cjiRecursiveProgress INTEGER NOT NULL , cjiRecursiveTotal INTEGER NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiConnectivityNeeded INTEGER NOT NULL , cjiPluginId INTEGER NOT NULL , cjiAttemptCount INTEGER NOT NULL , cjiParentCjiUid INTEGER NOT NULL , cjiServerJobId INTEGER NOT NULL , cjiStartTime INTEGER NOT NULL , cjiFinishTime INTEGER NOT NULL , cjiUploadSessionUid TEXT , cjiContentDeletedOnCancellation INTEGER NOT NULL , cjiContainerProcessed INTEGER NOT NULL , cjiLastModified INTEGER NOT NULL , cjiUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.j1('CREATE INDEX index_ContentJobItem_cjiContentEntryUid_cjiFinishTime ON ContentJobItem (cjiContentEntryUid, cjiFinishTime)'); this_0.j1('CREATE TABLE IF NOT EXISTS ContentEntryVersion ( cevContentEntryUid INTEGER NOT NULL , cevUrl TEXT , cevContentType TEXT , cevSitemapUrl TEXT , cevSize INTEGER NOT NULL , cevInActive INTEGER NOT NULL , cevLastModified INTEGER NOT NULL , cevLct INTEGER NOT NULL , cevUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { Companion_getInstance_1(); if (tmp0_subject === 2) { this_0.j1('CREATE TABLE IF NOT EXISTS ContentJobItem ( cjiJobUid BIGINT NOT NULL , sourceUri TEXT , cjiOriginalFilename TEXT , cjiIsLeaf BOOL NOT NULL , cjiContentEntryUid BIGINT NOT NULL , cjiParentContentEntryUid BIGINT NOT NULL , cjiContentEntryVersion BIGINT NOT NULL , cjiItemProgress BIGINT NOT NULL , cjiItemTotal BIGINT NOT NULL , cjiRecursiveProgress BIGINT NOT NULL , cjiRecursiveTotal BIGINT NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiConnectivityNeeded BOOL NOT NULL , cjiPluginId INTEGER NOT NULL , cjiAttemptCount INTEGER NOT NULL , cjiParentCjiUid BIGINT NOT NULL , cjiServerJobId BIGINT NOT NULL , cjiStartTime BIGINT NOT NULL , cjiFinishTime BIGINT NOT NULL , cjiUploadSessionUid TEXT , cjiContentDeletedOnCancellation BOOL NOT NULL , cjiContainerProcessed BOOL NOT NULL , cjiLastModified BIGINT NOT NULL , cjiUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.j1('CREATE INDEX index_ContentJobItem_cjiContentEntryUid_cjiFinishTime ON ContentJobItem (cjiContentEntryUid, cjiFinishTime)'); this_0.j1('CREATE TABLE IF NOT EXISTS ContentEntryVersion ( cevContentEntryUid BIGINT NOT NULL , cevUrl TEXT , cevContentType TEXT , cevSitemapUrl TEXT , cevSize BIGINT NOT NULL , cevInActive BOOL NOT NULL , cevLastModified BIGINT NOT NULL , cevLct BIGINT NOT NULL , cevUid BIGSERIAL PRIMARY KEY NOT NULL )'); } } return this_0.f3(); } function MIGRATION_125_126$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return emptyList(); } function MIGRATION_126_127$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_126_127..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS TransferJob ( tjType INTEGER NOT NULL , tjStatus INTEGER NOT NULL , tjName TEXT , tjUuid TEXT , tjUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.j1('CREATE TABLE IF NOT EXISTS TransferJobItem ( tjiTjUid INTEGER NOT NULL , tjTotalSize INTEGER NOT NULL , tjTransferred INTEGER NOT NULL , tjAttemptCount INTEGER NOT NULL , tjiSrc TEXT , tjiDest TEXT , tjiType INTEGER NOT NULL , tjiStatus INTEGER NOT NULL , tjiTableId INTEGER NOT NULL , tjiEntityUid INTEGER NOT NULL , tjiUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.j1('CREATE TABLE IF NOT EXISTS TransferJob ( tjType INTEGER NOT NULL , tjStatus INTEGER NOT NULL , tjName TEXT , tjUuid TEXT , tjUid SERIAL PRIMARY KEY NOT NULL )'); this_0.j1('CREATE TABLE IF NOT EXISTS TransferJobItem ( tjiTjUid INTEGER NOT NULL , tjTotalSize BIGINT NOT NULL , tjTransferred BIGINT NOT NULL , tjAttemptCount INTEGER NOT NULL , tjiSrc TEXT , tjiDest TEXT , tjiType INTEGER NOT NULL , tjiStatus INTEGER NOT NULL , tjiTableId INTEGER NOT NULL , tjiEntityUid BIGINT NOT NULL , tjiUid SERIAL PRIMARY KEY NOT NULL )'); } return this_0.f3(); } function MIGRATION_127_128$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_127_128..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('DROP TABLE IF EXISTS PersonPicture'); this_0.j1('CREATE TABLE IF NOT EXISTS PersonPicture ( personPictureLct INTEGER NOT NULL , personPictureUri TEXT , personPictureThumbnailUri TEXT , fileSize INTEGER NOT NULL , personPictureActive INTEGER NOT NULL , personPictureUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.j1('ALTER TABLE TransferJobItem ADD COLUMN tjiEntityEtag INTEGER NOT NULL DEFAULT 0'); } else { this_0.j1('DROP TABLE IF EXISTS PersonPicture'); this_0.j1('CREATE TABLE IF NOT EXISTS PersonPicture ( personPictureLct BIGINT NOT NULL , personPictureUri TEXT , personPictureThumbnailUri TEXT , fileSize INTEGER NOT NULL , personPictureActive BOOL NOT NULL , personPictureUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.j1('ALTER TABLE TransferJobItem ADD COLUMN tjiEntityEtag BIGINT NOT NULL DEFAULT 0'); } return this_0.f3(); } function MIGRATION_128_129$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_128_129..' call this_0.j1('DROP TABLE IF EXISTS CoursePicture'); var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS CoursePicture ( coursePictureLct INTEGER NOT NULL , coursePictureUri TEXT , coursePictureThumbnailUri TEXT , coursePictureActive INTEGER NOT NULL , coursePictureUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.j1('CREATE TABLE IF NOT EXISTS CoursePicture ( coursePictureLct BIGINT NOT NULL , coursePictureUri TEXT , coursePictureThumbnailUri TEXT , coursePictureActive BOOL NOT NULL , coursePictureUid BIGSERIAL PRIMARY KEY NOT NULL )'); } return this_0.f3(); } function MIGRATION_129_130$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_129_130..' call this_0.j1('ALTER TABLE TransferJobItem ADD COLUMN tjiLockIdToRelease INTEGER NOT NULL DEFAULT 0'); return this_0.f3(); } function MIGRATION_130_131$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_130_131..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS CacheLockJoin ( cljTableId INTEGER NOT NULL , cljEntityUid INTEGER NOT NULL , cljUrl TEXT NOT NULL , cljLockId INTEGER NOT NULL , cljStatus INTEGER NOT NULL , cljType INTEGER NOT NULL , cljId INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.j1('CREATE INDEX idx_clj_table_entity_url ON CacheLockJoin (cljTableId, cljEntityUid, cljUrl)'); } else { this_0.j1('CREATE TABLE IF NOT EXISTS CacheLockJoin ( cljTableId INTEGER NOT NULL , cljEntityUid BIGINT NOT NULL , cljUrl TEXT NOT NULL , cljLockId INTEGER NOT NULL , cljStatus INTEGER NOT NULL , cljType INTEGER NOT NULL , cljId SERIAL PRIMARY KEY NOT NULL )'); this_0.j1('CREATE INDEX idx_clj_table_entity_url ON CacheLockJoin (cljTableId, cljEntityUid, cljUrl)'); } return this_0.f3(); } function MIGRATION_132_133$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_132_133..' call this_0.j1('DROP TABLE ContentJobItem'); var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS ContentEntryImportJob ( sourceUri TEXT , cjiOriginalFilename TEXT , cjiContentEntryUid INTEGER NOT NULL , cjiParentContentEntryUid INTEGER NOT NULL , cjiContentEntryVersion INTEGER NOT NULL , cjiItemProgress INTEGER NOT NULL , cjiItemTotal INTEGER NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiPluginId INTEGER NOT NULL , cjiParentCjiUid INTEGER NOT NULL , cjiStartTime INTEGER NOT NULL , cjiFinishTime INTEGER NOT NULL , cjiContentDeletedOnCancellation INTEGER NOT NULL , cjiUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.j1('CREATE INDEX index_ContentEntryImportJob_cjiContentEntryUid_cjiFinishTime ON ContentEntryImportJob (cjiContentEntryUid, cjiFinishTime)'); } else { this_0.j1('CREATE TABLE IF NOT EXISTS ContentEntryImportJob ( sourceUri TEXT , cjiOriginalFilename TEXT , cjiContentEntryUid BIGINT NOT NULL , cjiParentContentEntryUid BIGINT NOT NULL , cjiContentEntryVersion BIGINT NOT NULL , cjiItemProgress BIGINT NOT NULL , cjiItemTotal BIGINT NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiPluginId INTEGER NOT NULL , cjiParentCjiUid BIGINT NOT NULL , cjiStartTime BIGINT NOT NULL , cjiFinishTime BIGINT NOT NULL , cjiContentDeletedOnCancellation BOOL NOT NULL , cjiUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.j1('CREATE INDEX index_ContentEntryImportJob_cjiContentEntryUid_cjiFinishTime ON ContentEntryImportJob (cjiContentEntryUid, cjiFinishTime)'); } return this_0.f3(); } function MIGRATION_133_134$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_133_134..' call this_0.j1('CREATE INDEX tji_table_entity_etag ON TransferJobItem (tjiTableId, tjiEntityUid, tjiEntityEtag)'); return this_0.f3(); } function MIGRATION_134_135$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_134_135..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS OfflineItem ( oiNodeId INTEGER NOT NULL , oiClazzUid INTEGER NOT NULL , oiCourseBlockUid INTEGER NOT NULL , oiContentEntryUid INTEGER NOT NULL , oiActive INTEGER NOT NULL , oiLct INTEGER NOT NULL , oiUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.j1('CREATE INDEX offline_item_node_content_entry ON OfflineItem (oiNodeId, oiContentEntryUid)'); } else { this_0.j1('CREATE TABLE IF NOT EXISTS OfflineItem ( oiNodeId BIGINT NOT NULL , oiClazzUid BIGINT NOT NULL , oiCourseBlockUid BIGINT NOT NULL , oiContentEntryUid BIGINT NOT NULL , oiActive BOOL NOT NULL , oiLct BIGINT NOT NULL , oiUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.j1('CREATE INDEX offline_item_node_content_entry ON OfflineItem (oiNodeId, oiContentEntryUid)'); } return this_0.f3(); } function MIGRATION_135_136$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_135_136..' call this_0.j1('ALTER TABLE TransferJob ADD COLUMN tjTableId INTEGER NOT NULL DEFAULT 0'); this_0.j1('ALTER TABLE TransferJob ADD COLUMN tjCreationType INTEGER NOT NULL DEFAULT 0'); var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('ALTER TABLE TransferJob ADD COLUMN tjEntityUid INTEGER NOT NULL DEFAULT 0'); this_0.j1('ALTER TABLE TransferJob ADD COLUMN tjTimeCreated INTEGER NOT NULL DEFAULT 0'); } else { this_0.j1('ALTER TABLE TransferJob ADD COLUMN tjEntityUid BIGINT NOT NULL DEFAULT 0'); this_0.j1('ALTER TABLE TransferJob ADD COLUMN tjTimeCreated BIGINT NOT NULL DEFAULT 0'); } this_0.j1('CREATE INDEX TransferJob_idx_tjTableId_EntityUid ON TransferJob (tjTableId, tjEntityUid)'); return this_0.f3(); } function MIGRATION_136_137$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_136_137..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS OfflineItemPendingTransferJob ( oiptjOiUid INTEGER NOT NULL , oiptjTableId INTEGER NOT NULL , oiptjEntityUid INTEGER NOT NULL , oiptjUrl TEXT , oiptjType INTEGER NOT NULL , oiptjId INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.j1('CREATE TABLE IF NOT EXISTS OfflineItemPendingTransferJob ( oiptjOiUid BIGINT NOT NULL , oiptjTableId INTEGER NOT NULL , oiptjEntityUid BIGINT NOT NULL , oiptjUrl TEXT , oiptjType INTEGER NOT NULL , oiptjId SERIAL PRIMARY KEY NOT NULL )'); } return this_0.f3(); } function MIGRATION_137_138$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_137_138..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('ALTER TABLE ContentEntryVersion RENAME to ContentEntryVersion_OLD'); this_0.j1('CREATE TABLE IF NOT EXISTS ContentEntryVersion ( cevContentEntryUid INTEGER NOT NULL , cevUrl TEXT , cevContentType TEXT , cevManifestUrl TEXT , cevSize INTEGER NOT NULL , cevInActive INTEGER NOT NULL , cevLastModified INTEGER NOT NULL , cevLct INTEGER NOT NULL , cevUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.j1('INSERT INTO ContentEntryVersion (cevContentEntryUid, cevUrl, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevUid) SELECT cevContentEntryUid, cevUrl, cevContentType, cevSitemapUrl, cevSize, cevInActive, cevLastModified, cevLct, cevUid FROM ContentEntryVersion_OLD'); this_0.j1('DROP TABLE ContentEntryVersion_OLD'); } else { this_0.j1('ALTER TABLE ContentEntryVersion RENAME COLUMN cevSitemapUrl TO cevManifestUrl'); } return this_0.f3(); } function MIGRATION_138_139$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_138_139..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('ALTER TABLE ContentEntryVersion RENAME to ContentEntryVersion_OLD'); this_0.j1('CREATE TABLE IF NOT EXISTS ContentEntryVersion ( cevContentEntryUid INTEGER NOT NULL , cevOpenUri TEXT , cevContentType TEXT , cevManifestUrl TEXT , cevSize INTEGER NOT NULL , cevInActive INTEGER NOT NULL , cevLastModified INTEGER NOT NULL , cevLct INTEGER NOT NULL , cevUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.j1('INSERT INTO ContentEntryVersion (cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevUid) SELECT cevContentEntryUid, cevUrl, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevUid FROM ContentEntryVersion_OLD'); this_0.j1('DROP TABLE ContentEntryVersion_OLD'); } else { this_0.j1('ALTER TABLE ContentEntryVersion RENAME COLUMN cevUrl to cevOpenUri'); } return this_0.f3(); } function MIGRATION_139_140$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_139_140..' call this_0.j1('CREATE INDEX transferjob_tjuid ON TransferJobItem (tjiTjUid)'); return this_0.f3(); } function MIGRATION_140_141$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_140_141..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 2) { this_0.j1('ALTER TABLE UserSession ALTER COLUMN usLcb TYPE BIGINT'); } return this_0.f3(); } function MIGRATION_141_142$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf('DROP TABLE IF EXISTS ClazzAssignmentContentJoin'); } function MIGRATION_142_143$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_142_143..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('ALTER TABLE ContentEntryParentChildJoin ADD COLUMN cepcjDeleted INTEGER NOT NULL DEFAULT 0'); this_0.j1('CREATE TABLE IF NOT EXISTS DeletedItem ( delItemName TEXT , delItemIconUri TEXT , delItemLastModTime INTEGER NOT NULL , delItemTimeDeleted INTEGER NOT NULL , delItemEntityTable INTEGER NOT NULL , delItemEntityUid INTEGER NOT NULL , delItemDeletedByPersonUid INTEGER NOT NULL , delItemStatus INTEGER NOT NULL , delItemIsFolder INTEGER NOT NULL DEFAULT 0 , delItemUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.j1('CREATE INDEX delitem_idx_status_time ON DeletedItem (delItemStatus, delItemTimeDeleted)'); } else { this_0.j1('ALTER TABLE ContentEntryParentChildJoin ADD COLUMN cepcjDeleted BOOL NOT NULL DEFAULT false'); this_0.j1('CREATE TABLE IF NOT EXISTS DeletedItem ( delItemName TEXT , delItemIconUri TEXT , delItemLastModTime BIGINT NOT NULL , delItemTimeDeleted BIGINT NOT NULL , delItemEntityTable INTEGER NOT NULL , delItemEntityUid BIGINT NOT NULL , delItemDeletedByPersonUid BIGINT NOT NULL , delItemStatus INTEGER NOT NULL , delItemIsFolder BOOL NOT NULL DEFAULT false, delItemUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.j1('CREATE INDEX delitem_idx_status_time ON DeletedItem (delItemStatus, delItemTimeDeleted)'); } return this_0.f3(); } function MIGRATION_143_144$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_143_144..' call this_0.j1('DROP TABLE IF EXISTS Message'); var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS Message ( messageSenderPersonUid INTEGER NOT NULL , messageToPersonUid INTEGER NOT NULL , messageText TEXT , messageTimestamp INTEGER NOT NULL , messageLct INTEGER NOT NULL , messageUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.j1('CREATE TABLE IF NOT EXISTS Message ( messageSenderPersonUid BIGINT NOT NULL , messageToPersonUid BIGINT NOT NULL , messageText TEXT , messageTimestamp BIGINT NOT NULL , messageLct BIGINT NOT NULL , messageUid BIGSERIAL PRIMARY KEY NOT NULL )'); } return this_0.f3(); } function MIGRATION_144_145_SERVER$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); var insertOutgoingReplicationSql = '\n INSERT INTO OutgoingReplication(destNodeId, orTableId, orPk1, orPk2)\n SELECT UserSession.usClientNodeId AS destNodeId,\n ' + 126 + ' AS orTableId,\n NEW.messageUid AS orPk1,\n 0 as orPk2\n FROM UserSession\n WHERE ( UserSession.usPersonUid = NEW.messageSenderPersonUid \n OR UserSession.usPersonUid = NEW.messageToPersonUid)\n AND UserSession.usStatus = ' + 1 + ' \n AND UserSession.usClientNodeId NOT IN \n (SELECT ReplicationOperation.repOpRemoteNodeId\n FROM ReplicationOperation\n WHERE ReplicationOperation.repOpTableId = ' + 126 + ');\n '; // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_144_145_SERVER..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('\n CREATE TRIGGER IF NOT EXISTS message_send_trigger\n AFTER INSERT ON Message\n FOR EACH ROW\n BEGIN\n ' + insertOutgoingReplicationSql + '\n END \n '); } else { this_0.j1('\n CREATE OR REPLACE FUNCTION message_send_fn() RETURNS TRIGGER AS $$\n BEGIN\n ' + insertOutgoingReplicationSql + '\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.j1('\n CREATE TRIGGER message_send_trig AFTER INSERT \n ON Message\n FOR EACH ROW EXECUTE PROCEDURE message_send_fn()\n '); } return this_0.f3(); } function MIGRATION_144_145_CLIENT$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return emptyList(); } function MIGRATION_145_146$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf('CREATE INDEX message_idx_send_to_time ON Message (messageSenderPersonUid, messageToPersonUid, messageTimestamp)'); } function MIGRATION_146_147$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_146_147..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 2) { this_0.j1('ALTER TABLE CacheLockJoin ALTER COLUMN cljLockId TYPE BIGINT'); } return this_0.f3(); } function MIGRATION_147_148$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_147_148..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 2) { this_0.j1('ALTER TABLE TransferJob ADD COLUMN tjOiUid BIGINT NOT NULL DEFAULT 0'); this_0.j1('ALTER TABLE CacheLockJoin ADD COLUMN cljOiUid BIGINT NOT NULL DEFAULT 0'); } else { this_0.j1('ALTER TABLE TransferJob ADD COLUMN tjOiUid INTEGER NOT NULL DEFAULT 0'); this_0.j1('ALTER TABLE CacheLockJoin ADD COLUMN cljOiUid INTEGER NOT NULL DEFAULT 0'); } this_0.j1('CREATE INDEX idx_clj_offline_item_uid ON CacheLockJoin (cljOiUid)'); return this_0.f3(); } function MIGRATION_148_149_CLIENT_WITH_OFFLINE_ITEMS$lambda(it) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf('\n CREATE TRIGGER IF NOT EXISTS offline_item_inactive_trig \n AFTER UPDATE ON OfflineItem\n FOR EACH ROW WHEN NEW.oiActive = 0 AND OLD.oiActive = 1\n BEGIN \n UPDATE CacheLockJoin\n SET cljStatus = ' + 3 + '\n WHERE cljOiUid = NEW.oiUid; \n END\n '); } function MIGRATION_148_149_NO_OFFLINE_ITEMS$lambda(it) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return emptyList(); } function MIGRATION_149_150$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_149_150..' call var tmp; var tmp_0 = dbType(db); Companion_getInstance_1(); if (tmp_0 === 1) { tmp = 'INTEGER'; } else { tmp = 'BIGINT'; } var fieldType = tmp; this_0.j1('ALTER TABLE ContentEntryVersion ADD COLUMN cevStorageSize ' + fieldType + ' NOT NULL DEFAULT 0'); this_0.j1('ALTER TABLE ContentEntryVersion ADD COLUMN cevOriginalSize ' + fieldType + ' NOT NULL DEFAULT 0'); return this_0.f3(); } function MIGRATION_150_151$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf('ALTER TABLE TransferJobItem ADD COLUMN tjiPartialTmpFile TEXT'); } function MIGRATION_151_152$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_151_152..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 2) { this_0.j1('\n CREATE OR REPLACE FUNCTION retain_c_clj_50_personPictureUri() RETURNS TRIGGER AS $$\n BEGIN\n INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(50, NEW.personPictureUid, NEW.personPictureUri, 0, 1, 1);\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.j1('\n CREATE OR REPLACE FUNCTION retain_d_clj_50_personPictureUri() RETURNS TRIGGER AS $$\n BEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 50\n AND cljEntityUid = OLD.personPictureUid\n AND cljUrl = OLD.personPictureUri;\n RETURN OLD;\n END $$ LANGUAGE plpgsql \n '); this_0.j1('\n CREATE TRIGGER retain_c_clj_50_personPictureUri_ins_t\n AFTER INSERT ON PersonPicture\n FOR EACH ROW\n WHEN (NEW.personPictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_50_personPictureUri();\n '); this_0.j1('\n CREATE TRIGGER retain_c_clj_50_personPictureUri_upd_t\n AFTER UPDATE ON PersonPicture\n FOR EACH ROW\n WHEN (NEW.personPictureUri IS DISTINCT FROM OLD.personPictureUri AND OLD.personPictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_50_personPictureUri();\n '); this_0.j1('\n CREATE TRIGGER retain_d_clj_50_personPictureUri_upd_t\n AFTER UPDATE ON PersonPicture\n FOR EACH ROW\n WHEN (NEW.personPictureUri IS DISTINCT FROM OLD.personPictureUri AND NEW.personPictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_d_clj_50_personPictureUri();\n '); this_0.j1('\n CREATE OR REPLACE FUNCTION retain_c_clj_50_personPictureThumbnailUr() RETURNS TRIGGER AS $$\n BEGIN\n INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(50, NEW.personPictureUid, NEW.personPictureThumbnailUri, 0, 1, 1);\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.j1('\n CREATE OR REPLACE FUNCTION retain_d_clj_50_personPictureThumbnailUr() RETURNS TRIGGER AS $$\n BEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 50\n AND cljEntityUid = OLD.personPictureUid\n AND cljUrl = OLD.personPictureThumbnailUri;\n RETURN OLD;\n END $$ LANGUAGE plpgsql \n '); this_0.j1('\n CREATE TRIGGER retain_c_clj_50_personPictureThumbnailUr_ins_t\n AFTER INSERT ON PersonPicture\n FOR EACH ROW\n WHEN (NEW.personPictureThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_50_personPictureThumbnailUr();\n '); this_0.j1('\n CREATE TRIGGER retain_c_clj_50_personPictureThumbnailUr_upd_t\n AFTER UPDATE ON PersonPicture\n FOR EACH ROW\n WHEN (NEW.personPictureThumbnailUri IS DISTINCT FROM OLD.personPictureThumbnailUri AND OLD.personPictureThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_50_personPictureThumbnailUr();\n '); this_0.j1('\n CREATE TRIGGER retain_d_clj_50_personPictureThumbnailUr_upd_t\n AFTER UPDATE ON PersonPicture\n FOR EACH ROW\n WHEN (NEW.personPictureThumbnailUri IS DISTINCT FROM OLD.personPictureThumbnailUri AND NEW.personPictureThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_d_clj_50_personPictureThumbnailUr();\n '); this_0.j1('\n CREATE OR REPLACE FUNCTION retain_c_clj_125_coursePictureUri() RETURNS TRIGGER AS $$\n BEGIN\n INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(125, NEW.coursePictureUid, NEW.coursePictureUri, 0, 1, 1);\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.j1('\n CREATE OR REPLACE FUNCTION retain_d_clj_125_coursePictureUri() RETURNS TRIGGER AS $$\n BEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 125\n AND cljEntityUid = OLD.coursePictureUid\n AND cljUrl = OLD.coursePictureUri;\n RETURN OLD;\n END $$ LANGUAGE plpgsql \n '); this_0.j1('\n CREATE TRIGGER retain_c_clj_125_coursePictureUri_ins_t\n AFTER INSERT ON CoursePicture\n FOR EACH ROW\n WHEN (NEW.coursePictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_125_coursePictureUri();\n '); this_0.j1('\n CREATE TRIGGER retain_c_clj_125_coursePictureUri_upd_t\n AFTER UPDATE ON CoursePicture\n FOR EACH ROW\n WHEN (NEW.coursePictureUri IS DISTINCT FROM OLD.coursePictureUri AND OLD.coursePictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_125_coursePictureUri();\n '); this_0.j1('\n CREATE TRIGGER retain_d_clj_125_coursePictureUri_upd_t\n AFTER UPDATE ON CoursePicture\n FOR EACH ROW\n WHEN (NEW.coursePictureUri IS DISTINCT FROM OLD.coursePictureUri AND NEW.coursePictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_d_clj_125_coursePictureUri();\n '); this_0.j1('\n CREATE OR REPLACE FUNCTION retain_c_clj_125_coursePictureThumbnailUr() RETURNS TRIGGER AS $$\n BEGIN\n INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(125, NEW.coursePictureUid, NEW.coursePictureThumbnailUri, 0, 1, 1);\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.j1('\n CREATE OR REPLACE FUNCTION retain_d_clj_125_coursePictureThumbnailUr() RETURNS TRIGGER AS $$\n BEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 125\n AND cljEntityUid = OLD.coursePictureUid\n AND cljUrl = OLD.coursePictureThumbnailUri;\n RETURN OLD;\n END $$ LANGUAGE plpgsql \n '); this_0.j1('\n CREATE TRIGGER retain_c_clj_125_coursePictureThumbnailUr_ins_t\n AFTER INSERT ON CoursePicture\n FOR EACH ROW\n WHEN (NEW.coursePictureThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_125_coursePictureThumbnailUr();\n '); this_0.j1('\n CREATE TRIGGER retain_c_clj_125_coursePictureThumbnailUr_upd_t\n AFTER UPDATE ON CoursePicture\n FOR EACH ROW\n WHEN (NEW.coursePictureThumbnailUri IS DISTINCT FROM OLD.coursePictureThumbnailUri AND OLD.coursePictureThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_125_coursePictureThumbnailUr();\n '); this_0.j1('\n CREATE TRIGGER retain_d_clj_125_coursePictureThumbnailUr_upd_t\n AFTER UPDATE ON CoursePicture\n FOR EACH ROW\n WHEN (NEW.coursePictureThumbnailUri IS DISTINCT FROM OLD.coursePictureThumbnailUri AND NEW.coursePictureThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_d_clj_125_coursePictureThumbnailUr();\n '); } return this_0.f3(); } function MIGRATION_152_153$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_152_153..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS EnrolmentRequest ( erClazzUid INTEGER NOT NULL , erClazzName TEXT , erPersonUid INTEGER NOT NULL , erPersonFullname TEXT , erPersonPictureUri TEXT , erPersonUsername TEXT , erRole INTEGER NOT NULL , erRequestTime INTEGER NOT NULL , erStatus INTEGER NOT NULL , erStatusSetByPersonUid INTEGER NOT NULL , erDeleted INTEGER NOT NULL , erStatusSetAuth TEXT , erLastModified INTEGER NOT NULL , erUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.j1('CREATE TABLE IF NOT EXISTS EnrolmentRequest ( erClazzUid BIGINT NOT NULL , erClazzName TEXT , erPersonUid BIGINT NOT NULL , erPersonFullname TEXT , erPersonPictureUri TEXT , erPersonUsername TEXT , erRole INTEGER NOT NULL , erRequestTime BIGINT NOT NULL , erStatus INTEGER NOT NULL , erStatusSetByPersonUid BIGINT NOT NULL , erDeleted BOOL NOT NULL , erStatusSetAuth TEXT , erLastModified BIGINT NOT NULL , erUid BIGSERIAL PRIMARY KEY NOT NULL )'); } this_0.j1('CREATE INDEX idx_enrolmentrequest_by_clazz ON EnrolmentRequest (erClazzUid, erStatus)'); this_0.j1('CREATE INDEX idx_enrolmentrequest_by_person ON EnrolmentRequest (erPersonUid, erStatus)'); return this_0.f3(); } function MIGRATION_153_154$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_153_154..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS CoursePermission ( cpLastModified INTEGER NOT NULL , cpClazzUid INTEGER NOT NULL , cpToEnrolmentRole INTEGER NOT NULL , cpToPersonUid INTEGER NOT NULL , cpToGroupUid INTEGER NOT NULL , cpPermissionsFlag INTEGER NOT NULL , cpIsDeleted INTEGER NOT NULL , cpUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.j1('CREATE TABLE IF NOT EXISTS SystemPermission ( spToPersonUid INTEGER NOT NULL , spToGroupUid INTEGER NOT NULL , spPermissionsFlag INTEGER NOT NULL , spLastModified INTEGER NOT NULL , spIsDeleted INTEGER NOT NULL , spUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.j1('ALTER TABLE Clazz ADD COLUMN clazzOwnerPersonUid INTEGER NOT NULL DEFAULT 0'); } else { this_0.j1('CREATE TABLE IF NOT EXISTS CoursePermission ( cpLastModified BIGINT NOT NULL , cpClazzUid BIGINT NOT NULL , cpToEnrolmentRole INTEGER NOT NULL , cpToPersonUid BIGINT NOT NULL , cpToGroupUid BIGINT NOT NULL , cpPermissionsFlag BIGINT NOT NULL , cpIsDeleted BOOL NOT NULL , cpUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.j1('CREATE TABLE IF NOT EXISTS SystemPermission ( spToPersonUid BIGINT NOT NULL , spToGroupUid BIGINT NOT NULL , spPermissionsFlag BIGINT NOT NULL , spLastModified BIGINT NOT NULL , spIsDeleted BOOL NOT NULL , spUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.j1('ALTER TABLE Clazz ADD COLUMN clazzOwnerPersonUid BIGINT NOT NULL DEFAULT 0'); } this_0.j1('CREATE INDEX idx_coursepermission_clazzuid ON CoursePermission (cpClazzUid)'); this_0.j1('CREATE INDEX idx_systempermission_personuid ON SystemPermission (spToPersonUid)'); return this_0.f3(); } function MIGRATION_154_155$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_154_155..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('ALTER TABLE CourseAssignmentSubmission ADD COLUMN casClazzUid INTEGER NOT NULL DEFAULT 0'); this_0.j1('ALTER TABLE CourseAssignmentMark ADD COLUMN camClazzUid INTEGER NOT NULL DEFAULT 0'); } else { this_0.j1('ALTER TABLE CourseAssignmentSubmission ADD COLUMN casClazzUid BIGINT NOT NULL DEFAULT 0'); this_0.j1('ALTER TABLE CourseAssignmentMark ADD COLUMN camClazzUid BIGINT NOT NULL DEFAULT 0'); } return this_0.f3(); } function MIGRATION_155_156_SERVER$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_155_156_SERVER..' call var tmp; var tmp_0 = dbType(db); Companion_getInstance_1(); if (tmp_0 === 1) { tmp = '0'; } else { tmp = 'false'; } var falseVal = tmp; Companion_getInstance(); this_0.j1("\n INSERT INTO SystemPermission(spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted)\n SELECT Person.personUid AS spToPersonUid,\n 0 AS spToGroupUid,\n CASE \n WHEN Person.username = 'admin' THEN " + (new Long(-1, 2147483647)).toString() + '\n ELSE 0\n END AS spPermissionsFlag,\n ' + systemTimeInMillis().toString() + ' AS spLastModified,\n ' + falseVal + ' AS spIsDeleted\n FROM Person\n '); var tmp_1 = systemTimeInMillis().toString(); Companion_getInstance_83(); this_0.j1('\n INSERT INTO CoursePermission(cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted)\n SELECT ' + tmp_1 + ' AS cpLastModified,\n Clazz.clazzUid AS cpClazzUid,\n ' + 1001 + ' AS cpToEnrolmentRole,\n 0 AS cpToPersonUid,\n 0 AS cpToGroupUid,\n ' + (new Long(8703, 0)).toString() + ' AS cpPermissionsFlag,\n ' + falseVal + ' AS cpIsDeleted\n FROM Clazz \n '); var tmp_2 = systemTimeInMillis().toString(); Companion_getInstance_83(); this_0.j1('\n INSERT INTO CoursePermission(cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted)\n SELECT ' + tmp_2 + ' AS cpLastModified,\n Clazz.clazzUid AS cpClazzUid,\n ' + 1000 + ' AS cpToEnrolmentRole,\n 0 AS cpToPersonUid,\n 0 AS cpToGroupUid,\n ' + (new Long(8193, 0)).toString() + ' AS cpPermissionsFlag,\n ' + falseVal + ' AS cpIsDeleted\n FROM Clazz \n '); this_0.j1("\n UPDATE Clazz\n SET clazzOwnerPersonUid = \n (SELECT Person.personUid\n FROM Person\n WHERE Person.username = 'admin'\n LIMIT 1) \n "); this_0.j1('\n UPDATE ScopedGrant\n SET sgPermissions = 0,\n sgLct = ' + systemTimeInMillis().toString() + '\n '); return this_0.f3(); } function MIGRATION_155_156_CLIENT$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return emptyList(); } function MIGRATION_156_157$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_156_157..' call this_0.j1('DROP TABLE IF EXISTS CourseAssignmentSubmissionAttachment'); var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionFile ( casaSubmissionUid INTEGER NOT NULL , casaCaUid INTEGER NOT NULL , casaClazzUid INTEGER NOT NULL , casaMimeType TEXT , casaFileName TEXT , casaUri TEXT , casaSize INTEGER NOT NULL , casaTimestamp INTEGER NOT NULL , casaUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.j1('CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionFile ( casaSubmissionUid BIGINT NOT NULL , casaCaUid BIGINT NOT NULL , casaClazzUid BIGINT NOT NULL , casaMimeType TEXT , casaFileName TEXT , casaUri TEXT , casaSize INTEGER NOT NULL , casaTimestamp BIGINT NOT NULL , casaUid BIGSERIAL PRIMARY KEY NOT NULL )'); } return this_0.f3(); } function MIGRATION_157_158$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_157_158..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('ALTER TABLE CourseAssignmentSubmissionFile ADD COLUMN casaDeleted INTEGER NOT NULL DEFAULT 0'); } else { this_0.j1('ALTER TABLE CourseAssignmentSubmissionFile ADD COLUMN casaDeleted BOOL NOT NULL DEFAULT FALSE'); } return this_0.f3(); } function MIGRATION_158_159$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_158_159..' call var tmp; var tmp_0 = dbType(db); Companion_getInstance_1(); if (tmp_0 === 1) { tmp = 'INTEGER'; } else { tmp = 'BIGINT'; } var colType = tmp; this_0.j1('ALTER TABLE CourseAssignmentSubmissionFile ADD COLUMN casaSubmitterUid ' + colType + ' NOT NULL DEFAULT 0'); return this_0.f3(); } function MIGRATION_159_160$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_159_160..' call this_0.j1('DROP TABLE IF EXISTS Comments'); var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS Comments ( commentsText TEXT , commentsEntityUid INTEGER NOT NULL , commentsStatus INTEGER NOT NULL , commentsFromPersonUid INTEGER NOT NULL , commentsForSubmitterUid INTEGER NOT NULL , commentsFromSubmitterUid INTEGER NOT NULL , commentsFlagged INTEGER NOT NULL , commentsDeleted INTEGER NOT NULL , commentsDateTimeAdded INTEGER NOT NULL , commentsLct INTEGER NOT NULL , commentsUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.j1('CREATE TABLE IF NOT EXISTS Comments ( commentsText TEXT , commentsEntityUid BIGINT NOT NULL , commentsStatus INTEGER NOT NULL , commentsFromPersonUid BIGINT NOT NULL , commentsForSubmitterUid BIGINT NOT NULL , commentsFromSubmitterUid BIGINT NOT NULL , commentsFlagged BOOL NOT NULL , commentsDeleted BOOL NOT NULL , commentsDateTimeAdded BIGINT NOT NULL , commentsLct BIGINT NOT NULL , commentsUid BIGSERIAL PRIMARY KEY NOT NULL )'); } this_0.j1('CREATE INDEX idx_comments_entity_submitter ON Comments (commentsEntityUid, commentsForSubmitterUid)'); return this_0.f3(); } function MIGRATION_160_161$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_160_161..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 2) { this_0.j1('ALTER TABLE DiscussionPost DROP COLUMN discussionPostVisible'); this_0.j1('ALTER TABLE DiscussionPost DROP COLUMN discussionPostArchive'); this_0.j1('ALTER TABLE DiscussionPost ADD COLUMN dpDeleted BOOL NOT NULL DEFAULT FALSE'); this_0.j1('ALTER TABLE DiscussionPost ADD COLUMN discussionPostReplyToPostUid BIGINT NOT NULL DEFAULT 0'); this_0.j1('ALTER TABLE DiscussionPost ADD COLUMN discussionPostCourseBlockUid BIGINT NOT NULL DEFAULT 0'); } else { this_0.j1('ALTER TABLE DiscussionPost RENAME to DiscussionPost_OLD'); this_0.j1('CREATE TABLE IF NOT EXISTS DiscussionPost ( discussionPostReplyToPostUid INTEGER NOT NULL , discussionPostTitle TEXT , discussionPostMessage TEXT , discussionPostStartDate INTEGER NOT NULL , discussionPostCourseBlockUid INTEGER NOT NULL , dpDeleted INTEGER NOT NULL , discussionPostStartedPersonUid INTEGER NOT NULL , discussionPostClazzUid INTEGER NOT NULL , discussionPostLct INTEGER NOT NULL , discussionPostUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.j1('INSERT INTO DiscussionPost (discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostUid) SELECT discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, 0 AS dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostUid FROM DiscussionPost_OLD'); this_0.j1('DROP TABLE DiscussionPost_OLD'); } return this_0.f3(); } function MIGRATION_161_162_SERVER$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_161_162_SERVER..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('\n CREATE TRIGGER IF NOT EXISTS Retain_CourseAssignmentSubmissionFile_Ins_casaUri\n AFTER INSERT ON CourseAssignmentSubmissionFile\n FOR EACH ROW WHEN NEW.casaUri IS NOT NULL\n BEGIN\n INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(90, NEW.casaUid, NEW.casaUri, 0, 1, 1);\n END\n '); this_0.j1('\n CREATE TRIGGER IF NOT EXISTS Retain_CourseAssignmentSubmissionFile_Upd_casaUri_New\n AFTER UPDATE ON CourseAssignmentSubmissionFile\n FOR EACH ROW WHEN NEW.casaUri != OLD.casaUri AND NEW.casaUri IS NOT NULL\n BEGIN\n INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(90, NEW.casaUid, NEW.casaUri, 0, 1, 1);\n END \n '); this_0.j1('CREATE TRIGGER IF NOT EXISTS Retain_CourseAssignmentSubmissionFile_Upd_casaUri_Old\nAFTER UPDATE ON CourseAssignmentSubmissionFile\nFOR EACH ROW WHEN NEW.casaUri != OLD.casaUri AND OLD.casaUri IS NOT NULL\nBEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 90\n AND cljEntityUid = OLD.casaUid\n AND cljUrl = OLD.casaUri;\nEND '); this_0.j1('CREATE TRIGGER IF NOT EXISTS Retain_CourseAssignmentSubmissionFile_Del_casaUri\nAFTER DELETE ON CourseAssignmentSubmissionFile\nFOR EACH ROW WHEN OLD.casaUri IS NOT NULL\nBEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 90\n AND cljEntityUid = OLD.casaUid\n AND cljUrl = OLD.casaUri;\nEND '); } else { this_0.j1('\n CREATE OR REPLACE FUNCTION retain_c_clj_90_casaUri() RETURNS TRIGGER AS $$\n BEGIN\n INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(90, NEW.casaUid, NEW.casaUri, 0, 1, 1);\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.j1('\n CREATE OR REPLACE FUNCTION retain_d_clj_90_casaUri() RETURNS TRIGGER AS $$\n BEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 90\n AND cljEntityUid = OLD.casaUid\n AND cljUrl = OLD.casaUri;\n RETURN OLD;\n END $$ LANGUAGE plpgsql \n '); this_0.j1('\n CREATE TRIGGER retain_c_clj_90_casaUri_ins_t\n AFTER INSERT ON CourseAssignmentSubmissionFile\n FOR EACH ROW\n WHEN (NEW.casaUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_90_casaUri();\n '); this_0.j1('\n CREATE TRIGGER retain_c_clj_90_casaUri_upd_t\n AFTER UPDATE ON CourseAssignmentSubmissionFile\n FOR EACH ROW\n WHEN (NEW.casaUri IS DISTINCT FROM OLD.casaUri AND OLD.casaUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_90_casaUri();\n '); this_0.j1('\n CREATE TRIGGER retain_d_clj_90_casaUri_upd_t\n AFTER UPDATE ON CourseAssignmentSubmissionFile\n FOR EACH ROW\n WHEN (NEW.casaUri IS DISTINCT FROM OLD.casaUri AND NEW.casaUri IS NOT NULL)\n EXECUTE FUNCTION retain_d_clj_90_casaUri();\n '); } return this_0.f3(); } function MIGRATION_161_162_CLIENT$lambda(it) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return emptyList(); } function MIGRATION_162_163$lambda(it) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf('ALTER TABLE ContentEntry ADD COLUMN contentOwnerType INTEGER NOT NULL DEFAULT 0'); } function MIGRATION_163_164$lambda(it) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf('ALTER TABLE ContentEntryImportJob ADD COLUMN cjiCompressionLevel INTEGER NOT NULL DEFAULT 0'); } function MIGRATION_164_165$lambda(it) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_164_165..' call this_0.j1('ALTER TABLE ContentEntryImportJob ADD COLUMN cjiError TEXT'); var tmp = dbType(it); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('ALTER TABLE ContentEntryImportJob ADD COLUMN cjiErrorDismissed INTEGER NOT NULL DEFAULT 0'); } else { this_0.j1('ALTER TABLE ContentEntryImportJob ADD COLUMN cjiErrorDismissed BOOL NOT NULL DEFAULT FALSE'); } return this_0.f3(); } function MIGRATION_165_166$lambda(it) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); var tmp; var tmp_0 = dbType(it); Companion_getInstance_1(); if (tmp_0 === 1) { tmp = listOf('ALTER TABLE ContentEntryImportJob ADD COLUMN cjiOwnerPersonUid INTEGER NOT NULL DEFAULT 0'); } else { tmp = listOf('ALTER TABLE ContentEntryImportJob ADD COLUMN cjiOwnerPersonUid BIGINT NOT NULL DEFAULT 0'); } return tmp; } function MIGRATION_166_167$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf('UPDATE ContentEntryImportJob SET cjiStatus = 24 WHERE cjiStatus = 4'); } function MIGRATION_167_168$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); var tmp; var tmp_0 = dbType(db); Companion_getInstance_1(); if (tmp_0 === 1) { tmp = listOf('CREATE TABLE IF NOT EXISTS CourseBlockPicture ( cbpUid INTEGER PRIMARY KEY NOT NULL , cbpLct INTEGER NOT NULL , cbpPictureUri TEXT , cbpThumbnailUri TEXT )'); } else { tmp = listOf('CREATE TABLE IF NOT EXISTS CourseBlockPicture ( cbpUid BIGINT PRIMARY KEY NOT NULL , cbpLct BIGINT NOT NULL , cbpPictureUri TEXT , cbpThumbnailUri TEXT )'); } return tmp; } function MIGRATION_168_169$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); var tmp; var tmp_0 = dbType(db); Companion_getInstance_1(); if (tmp_0 === 1) { tmp = listOf('CREATE TABLE IF NOT EXISTS ContentEntryPicture2 ( cepUid INTEGER PRIMARY KEY NOT NULL , cepLct INTEGER NOT NULL , cepPictureUri TEXT , cepThumbnailUri TEXT )'); } else { tmp = listOf('CREATE TABLE IF NOT EXISTS ContentEntryPicture2 ( cepUid BIGINT PRIMARY KEY NOT NULL , cepLct BIGINT NOT NULL , cepPictureUri TEXT , cepThumbnailUri TEXT )'); } return tmp; } function MIGRATION_169_170_SERVER$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_169_170_SERVER..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('\n CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Ins_cbpPictureUri\n AFTER INSERT ON CourseBlockPicture\n FOR EACH ROW WHEN NEW.cbpPictureUri IS NOT NULL\n BEGIN\n INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6677, NEW.cbpUid, NEW.cbpPictureUri, 0, 1, 1);\n END\n '); this_0.j1('\n CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Ins_cbpThumbnailUri\n AFTER INSERT ON CourseBlockPicture\n FOR EACH ROW WHEN NEW.cbpThumbnailUri IS NOT NULL\n BEGIN\n INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6677, NEW.cbpUid, NEW.cbpThumbnailUri, 0, 1, 1);\n END\n '); this_0.j1('\n CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Upd_cbpPictureUri_New\n AFTER UPDATE ON CourseBlockPicture\n FOR EACH ROW WHEN NEW.cbpPictureUri != OLD.cbpPictureUri AND NEW.cbpPictureUri IS NOT NULL\n BEGIN\n INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6677, NEW.cbpUid, NEW.cbpPictureUri, 0, 1, 1);\n END \n '); this_0.j1('CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Upd_cbpPictureUri_Old\nAFTER UPDATE ON CourseBlockPicture\nFOR EACH ROW WHEN NEW.cbpPictureUri != OLD.cbpPictureUri AND OLD.cbpPictureUri IS NOT NULL\nBEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6677\n AND cljEntityUid = OLD.cbpUid\n AND cljUrl = OLD.cbpPictureUri;\nEND '); this_0.j1('\n CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Upd_cbpThumbnailUri_New\n AFTER UPDATE ON CourseBlockPicture\n FOR EACH ROW WHEN NEW.cbpThumbnailUri != OLD.cbpThumbnailUri AND NEW.cbpThumbnailUri IS NOT NULL\n BEGIN\n INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6677, NEW.cbpUid, NEW.cbpThumbnailUri, 0, 1, 1);\n END \n '); this_0.j1('CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Upd_cbpThumbnailUri_Old\nAFTER UPDATE ON CourseBlockPicture\nFOR EACH ROW WHEN NEW.cbpThumbnailUri != OLD.cbpThumbnailUri AND OLD.cbpThumbnailUri IS NOT NULL\nBEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6677\n AND cljEntityUid = OLD.cbpUid\n AND cljUrl = OLD.cbpThumbnailUri;\nEND '); this_0.j1('CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Del_cbpPictureUri\nAFTER DELETE ON CourseBlockPicture\nFOR EACH ROW WHEN OLD.cbpPictureUri IS NOT NULL\nBEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6677\n AND cljEntityUid = OLD.cbpUid\n AND cljUrl = OLD.cbpPictureUri;\nEND '); this_0.j1('CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Del_cbpThumbnailUri\nAFTER DELETE ON CourseBlockPicture\nFOR EACH ROW WHEN OLD.cbpThumbnailUri IS NOT NULL\nBEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6677\n AND cljEntityUid = OLD.cbpUid\n AND cljUrl = OLD.cbpThumbnailUri;\nEND '); this_0.j1('\n CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Ins_cepPictureUri\n AFTER INSERT ON ContentEntryPicture2\n FOR EACH ROW WHEN NEW.cepPictureUri IS NOT NULL\n BEGIN\n INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6678, NEW.cepUid, NEW.cepPictureUri, 0, 1, 1);\n END\n '); this_0.j1('\n CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Ins_cepThumbnailUri\n AFTER INSERT ON ContentEntryPicture2\n FOR EACH ROW WHEN NEW.cepThumbnailUri IS NOT NULL\n BEGIN\n INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6678, NEW.cepUid, NEW.cepThumbnailUri, 0, 1, 1);\n END\n '); this_0.j1('\n CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Upd_cepPictureUri_New\n AFTER UPDATE ON ContentEntryPicture2\n FOR EACH ROW WHEN NEW.cepPictureUri != OLD.cepPictureUri AND NEW.cepPictureUri IS NOT NULL\n BEGIN\n INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6678, NEW.cepUid, NEW.cepPictureUri, 0, 1, 1);\n END \n '); this_0.j1('CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Upd_cepPictureUri_Old\nAFTER UPDATE ON ContentEntryPicture2\nFOR EACH ROW WHEN NEW.cepPictureUri != OLD.cepPictureUri AND OLD.cepPictureUri IS NOT NULL\nBEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6678\n AND cljEntityUid = OLD.cepUid\n AND cljUrl = OLD.cepPictureUri;\nEND '); this_0.j1('\n CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Upd_cepThumbnailUri_New\n AFTER UPDATE ON ContentEntryPicture2\n FOR EACH ROW WHEN NEW.cepThumbnailUri != OLD.cepThumbnailUri AND NEW.cepThumbnailUri IS NOT NULL\n BEGIN\n INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6678, NEW.cepUid, NEW.cepThumbnailUri, 0, 1, 1);\n END \n '); this_0.j1('CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Upd_cepThumbnailUri_Old\nAFTER UPDATE ON ContentEntryPicture2\nFOR EACH ROW WHEN NEW.cepThumbnailUri != OLD.cepThumbnailUri AND OLD.cepThumbnailUri IS NOT NULL\nBEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6678\n AND cljEntityUid = OLD.cepUid\n AND cljUrl = OLD.cepThumbnailUri;\nEND '); this_0.j1('CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Del_cepPictureUri\nAFTER DELETE ON ContentEntryPicture2\nFOR EACH ROW WHEN OLD.cepPictureUri IS NOT NULL\nBEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6678\n AND cljEntityUid = OLD.cepUid\n AND cljUrl = OLD.cepPictureUri;\nEND '); this_0.j1('CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Del_cepThumbnailUri\nAFTER DELETE ON ContentEntryPicture2\nFOR EACH ROW WHEN OLD.cepThumbnailUri IS NOT NULL\nBEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6678\n AND cljEntityUid = OLD.cepUid\n AND cljUrl = OLD.cepThumbnailUri;\nEND '); } else { this_0.j1('\n CREATE OR REPLACE FUNCTION retain_c_clj_6677_cbpPictureUri() RETURNS TRIGGER AS $$\n BEGIN\n INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6677, NEW.cbpUid, NEW.cbpPictureUri, 0, 1, 1);\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.j1('\n CREATE OR REPLACE FUNCTION retain_d_clj_6677_cbpPictureUri() RETURNS TRIGGER AS $$\n BEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6677\n AND cljEntityUid = OLD.cbpUid\n AND cljUrl = OLD.cbpPictureUri;\n RETURN OLD;\n END $$ LANGUAGE plpgsql \n '); this_0.j1('\n CREATE TRIGGER retain_c_clj_6677_cbpPictureUri_ins_t\n AFTER INSERT ON CourseBlockPicture\n FOR EACH ROW\n WHEN (NEW.cbpPictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_6677_cbpPictureUri();\n '); this_0.j1('\n CREATE TRIGGER retain_c_clj_6677_cbpPictureUri_upd_t\n AFTER UPDATE ON CourseBlockPicture\n FOR EACH ROW\n WHEN (NEW.cbpPictureUri IS DISTINCT FROM OLD.cbpPictureUri AND OLD.cbpPictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_6677_cbpPictureUri();\n '); this_0.j1('\n CREATE TRIGGER retain_d_clj_6677_cbpPictureUri_upd_t\n AFTER UPDATE ON CourseBlockPicture\n FOR EACH ROW\n WHEN (NEW.cbpPictureUri IS DISTINCT FROM OLD.cbpPictureUri AND NEW.cbpPictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_d_clj_6677_cbpPictureUri();\n '); this_0.j1('\n CREATE OR REPLACE FUNCTION retain_c_clj_6677_cbpThumbnailUri() RETURNS TRIGGER AS $$\n BEGIN\n INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6677, NEW.cbpUid, NEW.cbpThumbnailUri, 0, 1, 1);\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.j1('\n CREATE OR REPLACE FUNCTION retain_d_clj_6677_cbpThumbnailUri() RETURNS TRIGGER AS $$\n BEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6677\n AND cljEntityUid = OLD.cbpUid\n AND cljUrl = OLD.cbpThumbnailUri;\n RETURN OLD;\n END $$ LANGUAGE plpgsql \n '); this_0.j1('\n CREATE TRIGGER retain_c_clj_6677_cbpThumbnailUri_ins_t\n AFTER INSERT ON CourseBlockPicture\n FOR EACH ROW\n WHEN (NEW.cbpThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_6677_cbpThumbnailUri();\n '); this_0.j1('\n CREATE TRIGGER retain_c_clj_6677_cbpThumbnailUri_upd_t\n AFTER UPDATE ON CourseBlockPicture\n FOR EACH ROW\n WHEN (NEW.cbpThumbnailUri IS DISTINCT FROM OLD.cbpThumbnailUri AND OLD.cbpThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_6677_cbpThumbnailUri();\n '); this_0.j1('\n CREATE TRIGGER retain_d_clj_6677_cbpThumbnailUri_upd_t\n AFTER UPDATE ON CourseBlockPicture\n FOR EACH ROW\n WHEN (NEW.cbpThumbnailUri IS DISTINCT FROM OLD.cbpThumbnailUri AND NEW.cbpThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_d_clj_6677_cbpThumbnailUri();\n '); this_0.j1('\n CREATE OR REPLACE FUNCTION retain_c_clj_6678_cepPictureUri() RETURNS TRIGGER AS $$\n BEGIN\n INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6678, NEW.cepUid, NEW.cepPictureUri, 0, 1, 1);\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.j1('\n CREATE OR REPLACE FUNCTION retain_d_clj_6678_cepPictureUri() RETURNS TRIGGER AS $$\n BEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6678\n AND cljEntityUid = OLD.cepUid\n AND cljUrl = OLD.cepPictureUri;\n RETURN OLD;\n END $$ LANGUAGE plpgsql \n '); this_0.j1('\n CREATE TRIGGER retain_c_clj_6678_cepPictureUri_ins_t\n AFTER INSERT ON ContentEntryPicture2\n FOR EACH ROW\n WHEN (NEW.cepPictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_6678_cepPictureUri();\n '); this_0.j1('\n CREATE TRIGGER retain_c_clj_6678_cepPictureUri_upd_t\n AFTER UPDATE ON ContentEntryPicture2\n FOR EACH ROW\n WHEN (NEW.cepPictureUri IS DISTINCT FROM OLD.cepPictureUri AND OLD.cepPictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_6678_cepPictureUri();\n '); this_0.j1('\n CREATE TRIGGER retain_d_clj_6678_cepPictureUri_upd_t\n AFTER UPDATE ON ContentEntryPicture2\n FOR EACH ROW\n WHEN (NEW.cepPictureUri IS DISTINCT FROM OLD.cepPictureUri AND NEW.cepPictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_d_clj_6678_cepPictureUri();\n '); this_0.j1('\n CREATE OR REPLACE FUNCTION retain_c_clj_6678_cepThumbnailUri() RETURNS TRIGGER AS $$\n BEGIN\n INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6678, NEW.cepUid, NEW.cepThumbnailUri, 0, 1, 1);\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.j1('\n CREATE OR REPLACE FUNCTION retain_d_clj_6678_cepThumbnailUri() RETURNS TRIGGER AS $$\n BEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6678\n AND cljEntityUid = OLD.cepUid\n AND cljUrl = OLD.cepThumbnailUri;\n RETURN OLD;\n END $$ LANGUAGE plpgsql \n '); this_0.j1('\n CREATE TRIGGER retain_c_clj_6678_cepThumbnailUri_ins_t\n AFTER INSERT ON ContentEntryPicture2\n FOR EACH ROW\n WHEN (NEW.cepThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_6678_cepThumbnailUri();\n '); this_0.j1('\n CREATE TRIGGER retain_c_clj_6678_cepThumbnailUri_upd_t\n AFTER UPDATE ON ContentEntryPicture2\n FOR EACH ROW\n WHEN (NEW.cepThumbnailUri IS DISTINCT FROM OLD.cepThumbnailUri AND OLD.cepThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_6678_cepThumbnailUri();\n '); this_0.j1('\n CREATE TRIGGER retain_d_clj_6678_cepThumbnailUri_upd_t\n AFTER UPDATE ON ContentEntryPicture2\n FOR EACH ROW\n WHEN (NEW.cepThumbnailUri IS DISTINCT FROM OLD.cepThumbnailUri AND NEW.cepThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_d_clj_6678_cepThumbnailUri();\n '); } return this_0.f3(); } function MIGRATION_169_170_CLIENT$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return emptyList(); } function MIGRATION_170_171$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_170_171..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS TransferJobError ( tjeTjUid INTEGER NOT NULL , tjeTime INTEGER NOT NULL , tjeErrorStr TEXT , tjeDismissed INTEGER NOT NULL , tjeId INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.j1('CREATE TABLE IF NOT EXISTS TransferJobError ( tjeTjUid INTEGER NOT NULL , tjeTime BIGINT NOT NULL , tjeErrorStr TEXT , tjeDismissed BOOL NOT NULL , tjeId SERIAL PRIMARY KEY NOT NULL )'); } this_0.j1('CREATE INDEX idx_transferjoberror_tjetjuid ON TransferJobError (tjeTjUid)'); return this_0.f3(); } function MIGRATION_171_172$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_171_172..' call this_0.j1('ALTER TABLE CourseBlock ADD COLUMN cbSourcedId TEXT'); this_0.j1('CREATE INDEX idx_courseblock_cbclazzuid ON CourseBlock (cbClazzUid)'); this_0.j1('CREATE INDEX idx_courseblock_cbsourcedid ON CourseBlock (cbSourcedId)'); return this_0.f3(); } function MIGRATION_172_194$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_172_194..' call this_0.j1('ALTER TABLE CourseBlock ADD COLUMN cbClazzSourcedId TEXT'); this_0.j1('ALTER TABLE CourseBlock ADD COLUMN cbCreatedByAppId TEXT'); this_0.j1('ALTER TABLE CourseBlock ADD COLUMN cbMetadata TEXT'); var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('ALTER TABLE CourseBlock RENAME to CourseBlock_OLD'); this_0.j1('CREATE TABLE IF NOT EXISTS CourseBlock ( cbType INTEGER NOT NULL , cbIndentLevel INTEGER NOT NULL , cbModuleParentBlockUid INTEGER NOT NULL , cbTitle TEXT , cbDescription TEXT , cbCompletionCriteria INTEGER NOT NULL , cbHideUntilDate INTEGER NOT NULL , cbDeadlineDate INTEGER NOT NULL , cbLateSubmissionPenalty INTEGER NOT NULL , cbGracePeriodDate INTEGER NOT NULL , cbMaxPoints REAl , cbMinPoints REAL , cbIndex INTEGER NOT NULL , cbClazzUid INTEGER NOT NULL , cbClazzSourcedId TEXT , cbActive INTEGER NOT NULL , cbHidden INTEGER NOT NULL , cbEntityUid INTEGER NOT NULL , cbLct INTEGER NOT NULL , cbSourcedId TEXT , cbMetadata TEXT , cbCreatedByAppId TEXT , cbUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.j1('INSERT INTO CourseBlock (cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId, cbUid) SELECT cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId, cbUid FROM CourseBlock_OLD'); this_0.j1('DROP TABLE CourseBlock_OLD'); this_0.j1('CREATE INDEX idx_courseblock_cbclazzuid ON CourseBlock (cbClazzUid)'); this_0.j1('CREATE INDEX idx_courseblock_cbsourcedid ON CourseBlock (cbSourcedId)'); } else { this_0.j1('ALTER TABLE CourseBlock ALTER COLUMN cbMaxPoints TYPE FLOAT'); this_0.j1('ALTER TABLE CourseBlock ALTER COLUMN cbMaxPoints DROP NOT NULL'); this_0.j1('ALTER TABLE CourseBlock ALTER COLUMN cbMinPoints TYPE FLOAT'); this_0.j1('ALTER TABLE CourseBlock ALTER COLUMN cbMinPoints DROP NOT NULL'); } var tmp_0; var tmp_1 = dbType(db); Companion_getInstance_1(); if (tmp_1 === 1) { tmp_0 = 'INTEGER'; } else { tmp_0 = 'BIGINT'; } var bigIntType = tmp_0; // Inline function 'kotlin.collections.forEach' call var tmp0_iterator = numberRangeToNumber(3, 4).w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_172_194...' call this_0.j1('ALTER TABLE OutgoingReplication ADD COLUMN orPk' + element + ' ' + bigIntType + ' NOT NULL DEFAULT 0'); } var tmp_2 = dbType(db); Companion_getInstance_1(); if (tmp_2 === 1) { this_0.j1('ALTER TABLE OutgoingReplication RENAME to OutgoingReplication_OLD'); this_0.j1('CREATE TABLE IF NOT EXISTS OutgoingReplication ( destNodeId INTEGER NOT NULL , orPk1 INTEGER NOT NULL , orPk2 INTEGER NOT NULL DEFAULT 0 , orPk3 INTEGER NOT NULL DEFAULT 0 , orPk4 INTEGER NOT NULL DEFAULT 0 , orTableId INTEGER NOT NULL , orUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.j1('INSERT INTO OutgoingReplication (destNodeId, orPk1, orPk2, orPk3, orPk4, orTableId, orUid) SELECT destNodeId, orPk1, orPk2, orPk3, orPk4, orTableId, orUid FROM OutgoingReplication_OLD'); this_0.j1('DROP TABLE OutgoingReplication_OLD'); } else { this_0.j1('ALTER TABLE OutgoingReplication ALTER COLUMN orPk2 SET DEFAULT 0'); } // Inline function 'kotlin.collections.forEach' call var tmp0_iterator_0 = listOf_0(['StudentResult', 'StatementEntity', 'AgentEntity', 'VerbLangMapEntry', 'XObjectEntity', 'ContextXObjectStatementJoin', 'VerbEntity']).w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_172_194...' call this_0.j1('DROP TABLE IF EXISTS ' + element_0); } var tmp_3 = dbType(db); Companion_getInstance_1(); if (tmp_3 === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS StudentResult ( srUid INTEGER PRIMARY KEY NOT NULL , srSourcedId TEXT , srCourseBlockUid INTEGER NOT NULL , srLineItemSourcedId TEXT , srLineItemHref TEXT , srClazzUid INTEGER NOT NULL , srAssignmentUid INTEGER NOT NULL , srStatus INTEGER NOT NULL , srMetaData TEXT , srStudentPersonUid INTEGER NOT NULL , srStudentPersonSourcedId TEXT , srStudentGroupId INTEGER NOT NULL , srMarkerPersonUid INTEGER NOT NULL , srMarkerGroupId INTEGER NOT NULL , srScoreStatus INTEGER NOT NULL , srScore REAl NOT NULL , srScoreDate INTEGER NOT NULL , srLastModified INTEGER NOT NULL , srComment TEXT , srAppId TEXT , srDeleted INTEGER NOT NULL )'); this_0.j1('CREATE TABLE IF NOT EXISTS ActivityEntity ( actUid INTEGER PRIMARY KEY NOT NULL , actIdIri TEXT , actType TEXT , actMoreInfo TEXT , actInteractionType INTEGER NOT NULL , actCorrectResponsePatterns TEXT , actLct INTEGER NOT NULL )'); this_0.j1('CREATE TABLE IF NOT EXISTS ActivityExtensionEntity ( aeeActivityUid INTEGER NOT NULL , aeeKeyHash INTEGER NOT NULL , aeeKey TEXT , aeeJson TEXT , aeeLastMod INTEGER NOT NULL , aeeIsDeleted INTEGER NOT NULL , PRIMARY KEY (aeeActivityUid, aeeKeyHash) )'); this_0.j1('CREATE TABLE IF NOT EXISTS ActivityInteractionEntity ( aieActivityUid INTEGER NOT NULL , aieHash INTEGER NOT NULL , aieProp INTEGER NOT NULL , aieId TEXT , aieLastMod INTEGER NOT NULL , aieIsDeleted INTEGER NOT NULL , PRIMARY KEY (aieActivityUid, aieHash) )'); this_0.j1('CREATE TABLE IF NOT EXISTS ActivityLangMapEntry ( almeActivityUid INTEGER NOT NULL , almeHash INTEGER NOT NULL , almeLangCode TEXT , almeValue TEXT , almeAieHash INTEGER NOT NULL , almeLastMod INTEGER NOT NULL , PRIMARY KEY (almeActivityUid, almeHash) )'); this_0.j1('CREATE TABLE IF NOT EXISTS ActorEntity ( actorPersonUid INTEGER NOT NULL , actorName TEXT , actorMbox TEXT , actorMbox_sha1sum TEXT , actorOpenid TEXT , actorAccountName TEXT , actorAccountHomePage TEXT , actorEtag INTEGER NOT NULL , actorLct INTEGER NOT NULL , actorObjectType INTEGER NOT NULL , actorUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.j1('CREATE TABLE IF NOT EXISTS GroupMemberActorJoin ( gmajGroupActorUid BIGINT NOT NULL , gmajMemberActorUid BIGINT NOT NULL , gmajLastMod BIGINT NOT NULL , PRIMARY KEY (gmajGroupActorUid, gmajMemberActorUid) )'); this_0.j1('CREATE TABLE IF NOT EXISTS StatementContextActivityJoin ( scajFromStatementIdHi INTEGER NOT NULL , scajFromStatementIdLo INTEGER NOT NULL , scajToHash INTEGER NOT NULL , scajContextType INTEGER NOT NULL , scajToActivityUid INTEGER NOT NULL , scajToActivityId TEXT , scajEtag INTEGER NOT NULL , PRIMARY KEY (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash) )'); this_0.j1('CREATE TABLE IF NOT EXISTS StatementEntity ( statementIdHi INTEGER NOT NULL , statementIdLo INTEGER NOT NULL , statementActorPersonUid INTEGER NOT NULL , statementVerbUid INTEGER NOT NULL , statementObjectType INTEGER NOT NULL , statementObjectUid1 INTEGER NOT NULL , statementObjectUid2 INTEGER NOT NULL , statementActorUid INTEGER NOT NULL , authorityActorUid INTEGER NOT NULL , teamUid INTEGER NOT NULL , resultCompletion INTEGER , resultSuccess INTEGER , resultScoreScaled REAl , resultScoreRaw REAl , resultScoreMin REAl , resultScoreMax REAl , resultDuration INTEGER , resultResponse TEXT , timestamp INTEGER NOT NULL , stored INTEGER NOT NULL , contextRegistrationHi INTEGER NOT NULL , contextRegistrationLo INTEGER NOT NULL , contextPlatform TEXT , contextStatementRefIdHi INTEGER NOT NULL , contextStatementRefIdLo INTEGER NOT NULL , contextInstructorActorUid INTEGER NOT NULL , statementLct INTEGER NOT NULL , extensionProgress INTEGER , completionOrProgress INTEGER NOT NULL , statementContentEntryUid INTEGER NOT NULL , statementLearnerGroupUid INTEGER NOT NULL , statementClazzUid INTEGER NOT NULL , statementCbUid INTEGER NOT NULL , statementDoorNode INTEGER NOT NULL , isSubStatement INTEGER NOT NULL , PRIMARY KEY (statementIdHi, statementIdLo) )'); this_0.j1('CREATE TABLE IF NOT EXISTS StatementEntityJson ( stmtJsonIdHi INTEGER NOT NULL , stmtJsonIdLo INTEGER NOT NULL , stmtEtag INTEGER NOT NULL , fullStatement TEXT , PRIMARY KEY (stmtJsonIdHi, stmtJsonIdLo) )'); this_0.j1('CREATE TABLE IF NOT EXISTS VerbEntity ( verbUid INTEGER PRIMARY KEY NOT NULL , verbUrlId TEXT , verbDeleted INTEGER NOT NULL , verbLct INTEGER NOT NULL )'); this_0.j1('CREATE TABLE IF NOT EXISTS VerbLangMapEntry ( vlmeVerbUid INTEGER NOT NULL , vlmeLangHash INTEGER NOT NULL , vlmeLangCode TEXT , vlmeEntryString TEXT , vlmeLastModified INTEGER NOT NULL , PRIMARY KEY (vlmeVerbUid, vlmeLangHash) )'); this_0.j1('CREATE TABLE IF NOT EXISTS XapiSessionEntity ( xseLastMod INTEGER NOT NULL , xseRegistrationHi INTEGER NOT NULL , xseRegistrationLo INTEGER NOT NULL , xseUsUid INTEGER NOT NULL , xseAccountPersonUid INTEGER NOT NULL , xseAccountUsername TEXT , xseClazzUid INTEGER NOT NULL , xseCbUid INTEGER NOT NULL , xseContentEntryUid INTEGER NOT NULL , xseRootActivityId TEXT , xseStartTime INTEGER NOT NULL , xseExpireTime INTEGER NOT NULL , xseAuth TEXT , xseUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.j1('CREATE TABLE IF NOT EXISTS StudentResult ( srUid BIGINT PRIMARY KEY NOT NULL , srSourcedId TEXT , srCourseBlockUid BIGINT NOT NULL , srLineItemSourcedId TEXT , srLineItemHref TEXT , srClazzUid BIGINT NOT NULL , srAssignmentUid BIGINT NOT NULL , srStatus INTEGER NOT NULL , srMetaData TEXT , srStudentPersonUid BIGINT NOT NULL , srStudentPersonSourcedId TEXT , srStudentGroupId INTEGER NOT NULL , srMarkerPersonUid BIGINT NOT NULL , srMarkerGroupId INTEGER NOT NULL , srScoreStatus INTEGER NOT NULL , srScore FLOAT NOT NULL , srScoreDate BIGINT NOT NULL , srLastModified BIGINT NOT NULL , srComment TEXT , srAppId TEXT , srDeleted BOOL NOT NULL )'); this_0.j1('CREATE TABLE IF NOT EXISTS ActivityEntity ( actUid BIGINT PRIMARY KEY NOT NULL , actIdIri TEXT , actType TEXT , actMoreInfo TEXT , actInteractionType INTEGER NOT NULL , actCorrectResponsePatterns TEXT , actLct BIGINT NOT NULL )'); this_0.j1('CREATE TABLE IF NOT EXISTS ActivityExtensionEntity ( aeeActivityUid BIGINT NOT NULL , aeeKeyHash BIGINT NOT NULL , aeeKey TEXT , aeeJson TEXT , aeeLastMod BIGINT NOT NULL , aeeIsDeleted BOOL NOT NULL , PRIMARY KEY (aeeActivityUid, aeeKeyHash) )'); this_0.j1('CREATE TABLE IF NOT EXISTS ActivityInteractionEntity ( aieActivityUid BIGINT NOT NULL , aieHash BIGINT NOT NULL , aieProp INTEGER NOT NULL , aieId TEXT , aieLastMod BIGINT NOT NULL , aieIsDeleted BOOL NOT NULL , PRIMARY KEY (aieActivityUid, aieHash) )'); this_0.j1('CREATE TABLE IF NOT EXISTS ActivityLangMapEntry ( almeActivityUid BIGINT NOT NULL , almeHash BIGINT NOT NULL , almeLangCode TEXT , almeValue TEXT , almeAieHash BIGINT NOT NULL , almeLastMod BIGINT NOT NULL , PRIMARY KEY (almeActivityUid, almeHash) )'); this_0.j1('CREATE TABLE IF NOT EXISTS ActorEntity ( actorPersonUid BIGINT NOT NULL , actorName TEXT , actorMbox TEXT , actorMbox_sha1sum TEXT , actorOpenid TEXT , actorAccountName TEXT , actorAccountHomePage TEXT , actorEtag BIGINT NOT NULL , actorLct BIGINT NOT NULL , actorObjectType INTEGER NOT NULL , actorUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.j1('CREATE TABLE IF NOT EXISTS GroupMemberActorJoin ( gmajGroupActorUid BIGINT NOT NULL , gmajMemberActorUid BIGINT NOT NULL , gmajLastMod BIGINT NOT NULL , PRIMARY KEY (gmajGroupActorUid, gmajMemberActorUid) )'); this_0.j1('CREATE TABLE IF NOT EXISTS StatementContextActivityJoin ( scajFromStatementIdHi BIGINT NOT NULL , scajFromStatementIdLo BIGINT NOT NULL , scajToHash BIGINT NOT NULL , scajContextType INTEGER NOT NULL , scajToActivityUid BIGINT NOT NULL , scajToActivityId TEXT , scajEtag BIGINT NOT NULL , PRIMARY KEY (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash) )'); this_0.j1('CREATE TABLE IF NOT EXISTS StatementEntity ( statementIdHi BIGINT NOT NULL , statementIdLo BIGINT NOT NULL , statementActorPersonUid BIGINT NOT NULL , statementVerbUid BIGINT NOT NULL , statementObjectType INTEGER NOT NULL , statementObjectUid1 BIGINT NOT NULL , statementObjectUid2 BIGINT NOT NULL , statementActorUid BIGINT NOT NULL , authorityActorUid BIGINT NOT NULL , teamUid BIGINT NOT NULL , resultCompletion BOOL , resultSuccess BOOL , resultScoreScaled FLOAT , resultScoreRaw FLOAT , resultScoreMin FLOAT , resultScoreMax FLOAT , resultDuration BIGINT , resultResponse TEXT , timestamp BIGINT NOT NULL , stored BIGINT NOT NULL , contextRegistrationHi BIGINT NOT NULL , contextRegistrationLo BIGINT NOT NULL , contextPlatform TEXT , contextStatementRefIdHi BIGINT NOT NULL , contextStatementRefIdLo BIGINT NOT NULL , contextInstructorActorUid BIGINT NOT NULL , statementLct BIGINT NOT NULL , extensionProgress INTEGER , completionOrProgress BOOL NOT NULL , statementContentEntryUid BIGINT NOT NULL , statementLearnerGroupUid BIGINT NOT NULL , statementClazzUid BIGINT NOT NULL , statementCbUid BIGINT NOT NULL , statementDoorNode BIGINT NOT NULL , isSubStatement BOOL NOT NULL , PRIMARY KEY (statementIdHi, statementIdLo) )'); this_0.j1('CREATE TABLE IF NOT EXISTS StatementEntityJson ( stmtJsonIdHi BIGINT NOT NULL , stmtJsonIdLo BIGINT NOT NULL , stmtEtag BIGINT NOT NULL , fullStatement TEXT , PRIMARY KEY (stmtJsonIdHi, stmtJsonIdLo) )'); this_0.j1('CREATE TABLE IF NOT EXISTS VerbEntity ( verbUid BIGINT PRIMARY KEY NOT NULL , verbUrlId TEXT , verbDeleted BOOL NOT NULL , verbLct BIGINT NOT NULL )'); this_0.j1('CREATE TABLE IF NOT EXISTS VerbLangMapEntry ( vlmeVerbUid BIGINT NOT NULL , vlmeLangHash BIGINT NOT NULL , vlmeLangCode TEXT , vlmeEntryString TEXT , vlmeLastModified BIGINT NOT NULL , PRIMARY KEY (vlmeVerbUid, vlmeLangHash) )'); this_0.j1('CREATE TABLE IF NOT EXISTS XapiSessionEntity ( xseLastMod BIGINT NOT NULL , xseRegistrationHi BIGINT NOT NULL , xseRegistrationLo BIGINT NOT NULL , xseUsUid BIGINT NOT NULL , xseAccountPersonUid BIGINT NOT NULL , xseAccountUsername TEXT , xseClazzUid BIGINT NOT NULL , xseCbUid BIGINT NOT NULL , xseContentEntryUid BIGINT NOT NULL , xseRootActivityId TEXT , xseStartTime BIGINT NOT NULL , xseExpireTime BIGINT NOT NULL , xseAuth TEXT , xseUid BIGSERIAL PRIMARY KEY NOT NULL )'); } this_0.j1('CREATE INDEX idx_actorentity_actorobjecttype ON ActorEntity (actorObjectType)'); this_0.j1('CREATE INDEX idx_actorentity_uid_personuid ON ActorEntity (actorPersonUid)'); this_0.j1('CREATE INDEX idx_stmt_actor_person ON StatementEntity (statementActorPersonUid)'); this_0.j1('CREATE INDEX idx_statement_clazz_person ON StatementEntity (statementClazzUid, statementActorPersonUid)'); this_0.j1('CREATE INDEX idx_statement_cbuid_actor ON StatementEntity (statementCbUid, statementActorUid)'); this_0.j1('CREATE INDEX idx_groupmemberactorjoin_gmajgroupactoruid ON GroupMemberActorJoin (gmajGroupActorUid)'); this_0.j1('CREATE INDEX idx_groupmemberactorjoin_gmajmemberactoruid ON GroupMemberActorJoin (gmajMemberActorUid)'); this_0.j1('DROP INDEX IF EXISTS idx_courseblock_cbsourcedid'); var tmp_4; var tmp_5 = dbType(db); Companion_getInstance_1(); if (tmp_5 === 1) { tmp_4 = new Pair('INTEGER', '0'); } else { tmp_4 = new Pair('BOOL', 'FALSE'); } var tmp0_container = tmp_4; var boolColType = tmp0_container.y6(); var boolDefaultVal = tmp0_container.z6(); this_0.j1('ALTER TABLE DiscussionPost ADD COLUMN discussionPostVisible ' + boolColType + ' NOT NULL DEFAULT ' + boolDefaultVal); this_0.j1('ALTER TABLE DiscussionPost ADD COLUMN discussionPostArchive ' + boolColType + ' NOT NULL DEFAULT ' + boolDefaultVal); // Inline function 'kotlin.collections.forEach' call var tmp0_iterator_1 = listOf_0(['NetworkNode', 'AccessToken', 'ScrapeQueueItem', 'ContainerEntry', 'ContainerEntryFile', 'LocallyAvailableContainer', 'ContainerEtag', 'ContainerImportJob', 'Role', 'XLangMapEntry', 'School', 'SchoolMember', 'Chat', 'ChatMember', 'MessageRead', 'StateEntity', 'StateContentEntity', 'Container']).w(); while (tmp0_iterator_1.f()) { var element_1 = tmp0_iterator_1.e(); // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_172_194...' call this_0.j1('DROP TABLE IF EXISTS ' + element_1); } return this_0.f3(); } function MIGRATION_194_195$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_194_195..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS StateEntity ( seActorUid INTEGER NOT NULL , seHash INTEGER NOT NULL , seActivityUid INTEGER NOT NULL , seStateId TEXT , seLastMod INTEGER NOT NULL , seTimeStored INTEGER NOT NULL , seContentType TEXT , seCompressed INTEGER NOT NULL , seContent TEXT , seDeleted INTEGER NOT NULL , seRegistrationHi INTEGER , seRegistrationLo INTEGER , PRIMARY KEY (seActorUid, seHash) )'); } else { this_0.j1('CREATE TABLE IF NOT EXISTS StateEntity ( seActorUid BIGINT NOT NULL , seHash BIGINT NOT NULL , seActivityUid BIGINT NOT NULL , seStateId TEXT , seLastMod BIGINT NOT NULL , seTimeStored BIGINT NOT NULL , seContentType TEXT , seCompressed INTEGER NOT NULL , seContent TEXT , seDeleted BOOL NOT NULL , seRegistrationHi BIGINT , seRegistrationLo BIGINT , PRIMARY KEY (seActorUid, seHash) )'); } return this_0.f3(); } function MIGRATION_195_196$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_195_196..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS StateDeleteCommand ( sdcActorUid INTEGER NOT NULL , sdcHash INTEGER NOT NULL , sdcActivityUid INTEGER NOT NULL , sdcStateId TEXT , sdcLastMod INTEGER NOT NULL , sdcRegistrationHi INTEGER , sdcRegistrationLo INTEGER , PRIMARY KEY (sdcActorUid, sdcHash) )'); } else { this_0.j1('CREATE TABLE IF NOT EXISTS StateDeleteCommand ( sdcActorUid BIGINT NOT NULL , sdcHash BIGINT NOT NULL , sdcActivityUid BIGINT NOT NULL , sdcStateId TEXT , sdcLastMod BIGINT NOT NULL , sdcRegistrationHi BIGINT , sdcRegistrationLo BIGINT , PRIMARY KEY (sdcActorUid, sdcHash) )'); } return this_0.f3(); } function MIGRATION_196_197$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_196_197..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { // Inline function 'kotlin.collections.forEach' call var tmp0_iterator = listOf_0(['INSERT', 'UPDATE']).w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_196_197...' call // Inline function 'kotlin.text.substring' call // Inline function 'kotlin.text.lowercase' call // Inline function 'kotlin.js.asDynamic' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$3 = element.toLowerCase().substring(0, 3); this_0.j1('\n CREATE TRIGGER IF NOT EXISTS xapi_state_delete_trig_' + tmp$ret$3 + '\n AFTER ' + element + ' ON StateDeleteCommand\n FOR EACH ROW\n BEGIN\n UPDATE StateEntity\n SET seDeleted = 1,\n seLastMod = NEW.sdcLastMod\n WHERE seActorUid = NEW.sdcActorUid\n AND seActivityUid = NEW.sdcActivityUid\n AND seLastMod < NEW.sdcLastMod\n AND ( ( NEW.sdcRegistrationHi IS NULL \n AND seRegistrationHi IS NULL\n AND NEW.sdcRegistrationLo IS NULL\n AND seRegistrationLo IS NULL)\n OR ( seRegistrationHi = NEW.sdcRegistrationHi\n AND seRegistrationLo = NEW.sdcRegistrationLo))\n AND ( NEW.sdcStateId IS NULL\n OR seStateId = NEW.sdcStateId);\n END \n '); } } else { this_0.j1('\n CREATE OR REPLACE FUNCTION xapi_state_delete_fn() RETURNS TRIGGER AS $$\n BEGIN\n UPDATE StateEntity\n SET seDeleted = TRUE,\n seLastMod = NEW.sdcLastMod\n WHERE seActorUid = NEW.sdcActorUid\n AND seActivityUid = NEW.sdcActivityUid\n AND seLastMod < NEW.sdcLastMod\n AND ( ( NEW.sdcRegistrationHi IS NULL \n AND seRegistrationHi IS NULL\n AND NEW.sdcRegistrationLo IS NULL\n AND seRegistrationLo IS NULL)\n OR ( seRegistrationHi = NEW.sdcRegistrationHi\n AND seRegistrationLo = NEW.sdcRegistrationLo))\n AND ( NEW.sdcStateId IS NULL\n OR seStateId = NEW.sdcStateId);\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.j1('\n CREATE TRIGGER xapi_state_delete_trig\n AFTER INSERT OR UPDATE ON StateDeleteCommand\n FOR EACH ROW\n EXECUTE FUNCTION xapi_state_delete_fn();\n '); } return this_0.f3(); } function MIGRATION_197_198$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_197_198..' call this_0.j1('DROP TABLE XapiSessionEntity'); var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS XapiSessionEntity ( xseLastMod INTEGER NOT NULL , xseRegistrationHi INTEGER NOT NULL , xseRegistrationLo INTEGER NOT NULL , xseUsUid INTEGER NOT NULL , xseAccountPersonUid INTEGER NOT NULL , xseAccountUsername TEXT , xseClazzUid INTEGER NOT NULL , xseCbUid INTEGER NOT NULL , xseContentEntryUid INTEGER NOT NULL , xseRootActivityId TEXT , xseStartTime INTEGER NOT NULL , xseExpireTime INTEGER NOT NULL , xseAuth TEXT , xseCompleted INTEGER NOT NULL DEFAULT 0 , xseUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.j1('CREATE TABLE IF NOT EXISTS XapiSessionEntity ( xseLastMod BIGINT NOT NULL , xseRegistrationHi BIGINT NOT NULL , xseRegistrationLo BIGINT NOT NULL , xseUsUid BIGINT NOT NULL , xseAccountPersonUid BIGINT NOT NULL , xseAccountUsername TEXT , xseClazzUid BIGINT NOT NULL , xseCbUid BIGINT NOT NULL , xseContentEntryUid BIGINT NOT NULL , xseRootActivityId TEXT , xseStartTime BIGINT NOT NULL , xseExpireTime BIGINT NOT NULL , xseAuth TEXT , xseCompleted BOOL NOT NULL DEFAULT false, xseUid BIGSERIAL PRIMARY KEY NOT NULL )'); } return this_0.f3(); } function MIGRATION_198_199$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_198_199..' call this_0.j1('DROP TABLE StateEntity'); var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS StateEntity ( seActorUid INTEGER NOT NULL , seHash INTEGER NOT NULL , seActivityUid INTEGER NOT NULL , seStateId TEXT NOT NULL , seLastMod INTEGER NOT NULL , seTimeStored INTEGER NOT NULL , seContentType TEXT NOT NULL , seCompressed INTEGER NOT NULL , seContent TEXT NOT NULL , seDeleted INTEGER NOT NULL , seRegistrationHi INTEGER , seRegistrationLo INTEGER , seH5PPreloaded INTEGER NOT NULL , seH5PSubContentId TEXT , PRIMARY KEY (seActorUid, seHash) )'); } else { this_0.j1('CREATE TABLE IF NOT EXISTS StateEntity ( seActorUid BIGINT NOT NULL , seHash BIGINT NOT NULL , seActivityUid BIGINT NOT NULL , seStateId TEXT NOT NULL , seLastMod BIGINT NOT NULL , seTimeStored BIGINT NOT NULL , seContentType TEXT NOT NULL , seCompressed INTEGER NOT NULL , seContent TEXT NOT NULL , seDeleted BOOL NOT NULL , seRegistrationHi BIGINT , seRegistrationLo BIGINT , seH5PPreloaded BOOL NOT NULL , seH5PSubContentId TEXT , PRIMARY KEY (seActorUid, seHash) )'); } return this_0.f3(); } function MIGRATION_199_200$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_199_200..' call this_0.j1('DROP TABLE XapiSessionEntity'); var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS XapiSessionEntity ( xseLastMod INTEGER NOT NULL , xseRegistrationHi INTEGER NOT NULL , xseRegistrationLo INTEGER NOT NULL , xseUsUid INTEGER NOT NULL , xseAccountPersonUid INTEGER NOT NULL , xseActorUid INTEGER NOT NULL , xseAccountUsername TEXT NOT NULL , xseClazzUid INTEGER NOT NULL , xseCbUid INTEGER NOT NULL , xseContentEntryUid INTEGER NOT NULL , xseRootActivityId TEXT NOT NULL , xseRootActivityUid INTEGER NOT NULL , xseStartTime INTEGER NOT NULL , xseExpireTime INTEGER NOT NULL , xseAuth TEXT , xseCompleted INTEGER NOT NULL DEFAULT 0 , knownActorUidToPersonUids TEXT NOT NULL , xseUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.j1('CREATE TABLE IF NOT EXISTS XapiSessionEntity ( xseLastMod BIGINT NOT NULL , xseRegistrationHi BIGINT NOT NULL , xseRegistrationLo BIGINT NOT NULL , xseUsUid BIGINT NOT NULL , xseAccountPersonUid BIGINT NOT NULL , xseActorUid BIGINT NOT NULL , xseAccountUsername TEXT NOT NULL , xseClazzUid BIGINT NOT NULL , xseCbUid BIGINT NOT NULL , xseContentEntryUid BIGINT NOT NULL , xseRootActivityId TEXT NOT NULL , xseRootActivityUid BIGINT NOT NULL , xseStartTime BIGINT NOT NULL , xseExpireTime BIGINT NOT NULL , xseAuth TEXT , xseCompleted BOOL NOT NULL DEFAULT false, knownActorUidToPersonUids TEXT NOT NULL , xseUid BIGSERIAL PRIMARY KEY NOT NULL )'); } return this_0.f3(); } function MIGRATION_200_201$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_200_201..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('ALTER TABLE XapiSessionEntity ADD COLUMN xseContentEntryVersionUid INTEGER NOT NULL DEFAULT 0'); } else { this_0.j1('ALTER TABLE XapiSessionEntity ADD COLUMN xseContentEntryVersionUid BIGINT NOT NULL DEFAULT 0'); } return this_0.f3(); } function MIGRATION_201_202$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_201_202..' call this_0.j1('DROP TABLE ContentEntryImportJob'); var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS ContentEntryImportJob ( sourceUri TEXT , cjiOriginalFilename TEXT , cjiContentEntryUid INTEGER NOT NULL , cjiParentContentEntryUid INTEGER NOT NULL , cjiContentEntryVersion INTEGER NOT NULL , cjiItemProgress INTEGER NOT NULL , cjiItemTotal INTEGER NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiPluginId INTEGER NOT NULL , cjiParentCjiUid INTEGER NOT NULL , cjiStartTime INTEGER NOT NULL , cjiFinishTime INTEGER NOT NULL , cjiContentDeletedOnCancellation INTEGER NOT NULL , cjiCompressionLevel INTEGER NOT NULL DEFAULT 3 , cjiError TEXT , cjiErrorDismissed INTEGER NOT NULL , cjiOwnerPersonUid INTEGER NOT NULL , cjiParams TEXT , cjiUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.j1('CREATE TABLE IF NOT EXISTS ContentEntryImportJob ( sourceUri TEXT , cjiOriginalFilename TEXT , cjiContentEntryUid BIGINT NOT NULL , cjiParentContentEntryUid BIGINT NOT NULL , cjiContentEntryVersion BIGINT NOT NULL , cjiItemProgress BIGINT NOT NULL , cjiItemTotal BIGINT NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiPluginId INTEGER NOT NULL , cjiParentCjiUid BIGINT NOT NULL , cjiStartTime BIGINT NOT NULL , cjiFinishTime BIGINT NOT NULL , cjiContentDeletedOnCancellation BOOL NOT NULL , cjiCompressionLevel INTEGER NOT NULL DEFAULT 3 , cjiError TEXT , cjiErrorDismissed BOOL NOT NULL , cjiOwnerPersonUid BIGINT NOT NULL , cjiParams TEXT , cjiUid BIGSERIAL PRIMARY KEY NOT NULL )'); } this_0.j1('CREATE INDEX index_ContentEntryImportJob_cjiContentEntryUid_cjiFinishTime ON ContentEntryImportJob (cjiContentEntryUid, cjiFinishTime)'); return this_0.f3(); } function MIGRATION_202_203$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_202_203..' call this_0.j1('ALTER TABLE Report RENAME TO Report_OLD'); var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('\n CREATE TABLE IF NOT EXISTS Report (\n reportTitle TEXT,\n reportOptions TEXT,\n reportIsTemplate INTEGER NOT NULL,\n reportLastModTime INTEGER NOT NULL,\n reportUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL\n )\n '); } else { this_0.j1('\n CREATE TABLE IF NOT EXISTS Report (\n reportTitle TEXT,\n reportOptions TEXT,\n reportIsTemplate BIGINT NOT NULL,\n reportLastModTime BIGINT NOT NULL,\n reportUid BIGSERIAL PRIMARY KEY NOT NULL\n )\n '); } this_0.j1('\n INSERT INTO Report (reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportUid)\n SELECT reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportUid FROM Report_OLD\n '); this_0.j1('DROP TABLE Report_OLD'); return this_0.f3(); } function MIGRATION_204_205$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_204_205..' call var tmp = dbType(db); Companion_getInstance_1(); if (tmp === 1) { this_0.j1('CREATE TABLE IF NOT EXISTS ReportQueryResult ( rqrReportUid INTEGER NOT NULL , rqrLastModified INTEGER NOT NULL , rqrLastValidated INTEGER NOT NULL , rqrReportSeriesUid INTEGER NOT NULL , rqrXAxis TEXT NOT NULL , rqrYAxis REAl NOT NULL , rqrSubgroup TEXT NOT NULL , rqrUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.j1('CREATE TABLE IF NOT EXISTS ReportQueryResult ( rqrReportUid BIGINT NOT NULL , rqrLastModified BIGINT NOT NULL , rqrLastValidated BIGINT NOT NULL , rqrReportSeriesUid BIGINT NOT NULL , rqrXAxis TEXT NOT NULL , rqrYAxis DOUBLE PRECISION NOT NULL , rqrSubgroup TEXT NOT NULL , rqrUid BIGSERIAL PRIMARY KEY NOT NULL )'); } this_0.j1('CREATE INDEX idx_reportqueryresult_rqrreportuid ON ReportQueryResult (rqrReportUid)'); return this_0.f3(); } function MIGRATION_205_206$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); var tmp; var tmp_0 = dbType(db); Companion_getInstance_1(); if (tmp_0 === 1) { tmp = 'INTEGER'; } else { tmp = 'BIGINT'; } var bigIntType = tmp; return listOf('ALTER TABLE Report ADD COLUMN reportOwnerPersonUid ' + bigIntType + ' NOT NULL DEFAULT 0'); } function MIGRATION_206_207$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf_0(["ALTER TABLE ReportQueryResult ADD rqrTimeZone TEXT NOT NULL DEFAULT ''", 'DROP INDEX IF EXISTS idx_reportqueryresult_rqrreportuid', 'CREATE INDEX idx_reportqueryresult_rqrreportuid_rqrtimezone ON ReportQueryResult (rqrReportUid, rqrTimeZone)']); } function MIGRATION_203_204$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf('ALTER TABLE ActivityLangMapEntry ADD COLUMN almePropName TEXT'); } var properties_initialized_UmAppDatabaseMigrations_kt_wz5hlz; function _init_properties_UmAppDatabaseMigrations_kt__v2rrqh() { if (!properties_initialized_UmAppDatabaseMigrations_kt_wz5hlz) { properties_initialized_UmAppDatabaseMigrations_kt_wz5hlz = true; MIGRATION_105_106 = new DoorMigrationStatementList(105, 106, MIGRATION_105_106$lambda); MIGRATION_106_107 = new DoorMigrationStatementList(106, 107, MIGRATION_106_107$lambda); MIGRATION_107_108 = new DoorMigrationStatementList(107, 108, MIGRATION_107_108$lambda); MIGRATION_108_109 = new DoorMigrationStatementList(108, 109, MIGRATION_108_109$lambda); MIGRATION_120_121 = new DoorMigrationStatementList(120, 121, MIGRATION_120_121$lambda); MIGRATION_121_122 = new DoorMigrationStatementList(121, 122, MIGRATION_121_122$lambda); MIGRATION_122_123 = new DoorMigrationStatementList(122, 123, MIGRATION_122_123$lambda); MIGRATION_123_124 = new DoorMigrationStatementList(123, 124, MIGRATION_123_124$lambda); MIGRATION_124_125 = new DoorMigrationStatementList(124, 125, MIGRATION_124_125$lambda); MIGRATION_125_126 = new DoorMigrationStatementList(125, 126, MIGRATION_125_126$lambda); MIGRATION_126_127 = new DoorMigrationStatementList(126, 127, MIGRATION_126_127$lambda); MIGRATION_127_128 = new DoorMigrationStatementList(127, 128, MIGRATION_127_128$lambda); MIGRATION_128_129 = new DoorMigrationStatementList(128, 129, MIGRATION_128_129$lambda); MIGRATION_129_130 = new DoorMigrationStatementList(129, 130, MIGRATION_129_130$lambda); MIGRATION_130_131 = new DoorMigrationStatementList(130, 131, MIGRATION_130_131$lambda); MIGRATION_132_133 = new DoorMigrationStatementList(132, 133, MIGRATION_132_133$lambda); MIGRATION_133_134 = new DoorMigrationStatementList(133, 134, MIGRATION_133_134$lambda); MIGRATION_134_135 = new DoorMigrationStatementList(134, 135, MIGRATION_134_135$lambda); MIGRATION_135_136 = new DoorMigrationStatementList(135, 136, MIGRATION_135_136$lambda); MIGRATION_136_137 = new DoorMigrationStatementList(136, 137, MIGRATION_136_137$lambda); MIGRATION_137_138 = new DoorMigrationStatementList(137, 138, MIGRATION_137_138$lambda); MIGRATION_138_139 = new DoorMigrationStatementList(138, 139, MIGRATION_138_139$lambda); MIGRATION_139_140 = new DoorMigrationStatementList(139, 140, MIGRATION_139_140$lambda); MIGRATION_140_141 = new DoorMigrationStatementList(140, 141, MIGRATION_140_141$lambda); MIGRATION_141_142 = new DoorMigrationStatementList(141, 142, MIGRATION_141_142$lambda); MIGRATION_142_143 = new DoorMigrationStatementList(142, 143, MIGRATION_142_143$lambda); MIGRATION_143_144 = new DoorMigrationStatementList(143, 144, MIGRATION_143_144$lambda); MIGRATION_144_145_SERVER = new DoorMigrationStatementList(144, 145, MIGRATION_144_145_SERVER$lambda); MIGRATION_144_145_CLIENT = new DoorMigrationStatementList(144, 145, MIGRATION_144_145_CLIENT$lambda); MIGRATION_145_146 = new DoorMigrationStatementList(145, 146, MIGRATION_145_146$lambda); MIGRATION_146_147 = new DoorMigrationStatementList(146, 147, MIGRATION_146_147$lambda); MIGRATION_147_148 = new DoorMigrationStatementList(147, 148, MIGRATION_147_148$lambda); MIGRATION_148_149_CLIENT_WITH_OFFLINE_ITEMS = new DoorMigrationStatementList(148, 149, MIGRATION_148_149_CLIENT_WITH_OFFLINE_ITEMS$lambda); MIGRATION_148_149_NO_OFFLINE_ITEMS = new DoorMigrationStatementList(148, 149, MIGRATION_148_149_NO_OFFLINE_ITEMS$lambda); MIGRATION_149_150 = new DoorMigrationStatementList(149, 150, MIGRATION_149_150$lambda); MIGRATION_150_151 = new DoorMigrationStatementList(150, 151, MIGRATION_150_151$lambda); MIGRATION_151_152 = new DoorMigrationStatementList(151, 152, MIGRATION_151_152$lambda); MIGRATION_152_153 = new DoorMigrationStatementList(152, 153, MIGRATION_152_153$lambda); MIGRATION_153_154 = new DoorMigrationStatementList(153, 154, MIGRATION_153_154$lambda); MIGRATION_154_155 = new DoorMigrationStatementList(154, 155, MIGRATION_154_155$lambda); MIGRATION_155_156_SERVER = new DoorMigrationStatementList(155, 156, MIGRATION_155_156_SERVER$lambda); MIGRATION_155_156_CLIENT = new DoorMigrationStatementList(155, 156, MIGRATION_155_156_CLIENT$lambda); MIGRATION_156_157 = new DoorMigrationStatementList(156, 157, MIGRATION_156_157$lambda); MIGRATION_157_158 = new DoorMigrationStatementList(157, 158, MIGRATION_157_158$lambda); MIGRATION_158_159 = new DoorMigrationStatementList(158, 159, MIGRATION_158_159$lambda); MIGRATION_159_160 = new DoorMigrationStatementList(159, 160, MIGRATION_159_160$lambda); MIGRATION_160_161 = new DoorMigrationStatementList(160, 161, MIGRATION_160_161$lambda); MIGRATION_161_162_SERVER = new DoorMigrationStatementList(161, 162, MIGRATION_161_162_SERVER$lambda); MIGRATION_161_162_CLIENT = new DoorMigrationStatementList(161, 162, MIGRATION_161_162_CLIENT$lambda); MIGRATION_162_163 = new DoorMigrationStatementList(162, 163, MIGRATION_162_163$lambda); MIGRATION_163_164 = new DoorMigrationStatementList(163, 164, MIGRATION_163_164$lambda); MIGRATION_164_165 = new DoorMigrationStatementList(164, 165, MIGRATION_164_165$lambda); MIGRATION_165_166 = new DoorMigrationStatementList(165, 166, MIGRATION_165_166$lambda); MIGRATION_166_167 = new DoorMigrationStatementList(166, 167, MIGRATION_166_167$lambda); MIGRATION_167_168 = new DoorMigrationStatementList(167, 168, MIGRATION_167_168$lambda); MIGRATION_168_169 = new DoorMigrationStatementList(168, 169, MIGRATION_168_169$lambda); MIGRATION_169_170_SERVER = new DoorMigrationStatementList(169, 170, MIGRATION_169_170_SERVER$lambda); MIGRATION_169_170_CLIENT = new DoorMigrationStatementList(169, 170, MIGRATION_169_170_CLIENT$lambda); MIGRATION_170_171 = new DoorMigrationStatementList(170, 171, MIGRATION_170_171$lambda); MIGRATION_171_172 = new DoorMigrationStatementList(171, 172, MIGRATION_171_172$lambda); MIGRATION_172_194 = new DoorMigrationStatementList(172, 194, MIGRATION_172_194$lambda); MIGRATION_194_195 = new DoorMigrationStatementList(194, 195, MIGRATION_194_195$lambda); MIGRATION_195_196 = new DoorMigrationStatementList(195, 196, MIGRATION_195_196$lambda); MIGRATION_196_197 = new DoorMigrationStatementList(196, 197, MIGRATION_196_197$lambda); MIGRATION_197_198 = new DoorMigrationStatementList(197, 198, MIGRATION_197_198$lambda); MIGRATION_198_199 = new DoorMigrationStatementList(198, 199, MIGRATION_198_199$lambda); MIGRATION_199_200 = new DoorMigrationStatementList(199, 200, MIGRATION_199_200$lambda); MIGRATION_200_201 = new DoorMigrationStatementList(200, 201, MIGRATION_200_201$lambda); MIGRATION_201_202 = new DoorMigrationStatementList(201, 202, MIGRATION_201_202$lambda); MIGRATION_202_203 = new DoorMigrationStatementList(202, 203, MIGRATION_202_203$lambda); MIGRATION_204_205 = new DoorMigrationStatementList(204, 205, MIGRATION_204_205$lambda); MIGRATION_205_206 = new DoorMigrationStatementList(205, 206, MIGRATION_205_206$lambda); MIGRATION_206_207 = new DoorMigrationStatementList(206, 207, MIGRATION_206_207$lambda); MIGRATION_203_204 = new DoorMigrationStatementList(203, 204, MIGRATION_203_204$lambda); } } function ActorUidEtagAndLastMod(actorUid, actorEtag, actorLct) { actorUid = actorUid === VOID ? new Long(0, 0) : actorUid; actorEtag = actorEtag === VOID ? new Long(0, 0) : actorEtag; actorLct = actorLct === VOID ? new Long(0, 0) : actorLct; this.cis_1 = actorUid; this.dis_1 = actorEtag; this.eis_1 = actorLct; } protoOf(ActorUidEtagAndLastMod).toString = function () { return 'ActorUidEtagAndLastMod(actorUid=' + this.cis_1.toString() + ', actorEtag=' + this.dis_1.toString() + ', actorLct=' + this.eis_1.toString() + ')'; }; protoOf(ActorUidEtagAndLastMod).hashCode = function () { var result = this.cis_1.hashCode(); result = imul(result, 31) + this.dis_1.hashCode() | 0; result = imul(result, 31) + this.eis_1.hashCode() | 0; return result; }; protoOf(ActorUidEtagAndLastMod).equals = function (other) { if (this === other) return true; if (!(other instanceof ActorUidEtagAndLastMod)) return false; var tmp0_other_with_cast = other instanceof ActorUidEtagAndLastMod ? other : THROW_CCE(); if (!this.cis_1.equals(tmp0_other_with_cast.cis_1)) return false; if (!this.dis_1.equals(tmp0_other_with_cast.dis_1)) return false; if (!this.eis_1.equals(tmp0_other_with_cast.eis_1)) return false; return true; }; function Companion_0() { } var Companion_instance_1; function Companion_getInstance_3() { return Companion_instance_1; } function $serializer() { $serializer_instance = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.AssignmentPermissionAndActiveUserSubmitterUid', this, 4); tmp0_serialDesc.d4g('canMark', true); tmp0_serialDesc.d4g('canView', true); tmp0_serialDesc.d4g('canModerate', true); tmp0_serialDesc.d4g('activeUserSubmitterUid', true); this.ljt_1 = tmp0_serialDesc; } protoOf($serializer).a45 = function () { return this.ljt_1; }; protoOf($serializer).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer).c45 = function (decoder) { var tmp0_desc = this.ljt_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = false; var tmp5_local1 = false; var tmp6_local2 = false; var tmp7_local3 = new Long(0, 0); var tmp8_input = decoder.s48(tmp0_desc); if (tmp8_input.h49()) { tmp4_local0 = tmp8_input.u48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.u48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.u48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.u48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.u48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.u48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.t48(tmp0_desc); return AssignmentPermissionAndActiveUserSubmitterUid_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer).mjt = function (encoder, value) { var tmp0_desc = this.ljt_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.ddc_1 === false)) { tmp1_output.y49(tmp0_desc, 0, value.ddc_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.edc_1 === false)) { tmp1_output.y49(tmp0_desc, 1, value.edc_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.fdc_1 === false)) { tmp1_output.y49(tmp0_desc, 2, value.fdc_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.gdc_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.gdc_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer).b45 = function (encoder, value) { return this.mjt(encoder, value instanceof AssignmentPermissionAndActiveUserSubmitterUid ? value : THROW_CCE()); }; var $serializer_instance; function $serializer_getInstance() { if ($serializer_instance == null) new $serializer(); return $serializer_instance; } function AssignmentPermissionAndActiveUserSubmitterUid_init_$Init$(seen1, canMark, canView, canModerate, activeUserSubmitterUid, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance().ljt_1); } if (0 === (seen1 & 1)) $this.ddc_1 = false; else $this.ddc_1 = canMark; if (0 === (seen1 & 2)) $this.edc_1 = false; else $this.edc_1 = canView; if (0 === (seen1 & 4)) $this.fdc_1 = false; else $this.fdc_1 = canModerate; if (0 === (seen1 & 8)) $this.gdc_1 = new Long(0, 0); else $this.gdc_1 = activeUserSubmitterUid; return $this; } function AssignmentPermissionAndActiveUserSubmitterUid_init_$Create$(seen1, canMark, canView, canModerate, activeUserSubmitterUid, serializationConstructorMarker) { return AssignmentPermissionAndActiveUserSubmitterUid_init_$Init$(seen1, canMark, canView, canModerate, activeUserSubmitterUid, serializationConstructorMarker, objectCreate(protoOf(AssignmentPermissionAndActiveUserSubmitterUid))); } function AssignmentPermissionAndActiveUserSubmitterUid(canMark, canView, canModerate, activeUserSubmitterUid) { canMark = canMark === VOID ? false : canMark; canView = canView === VOID ? false : canView; canModerate = canModerate === VOID ? false : canModerate; activeUserSubmitterUid = activeUserSubmitterUid === VOID ? new Long(0, 0) : activeUserSubmitterUid; this.ddc_1 = canMark; this.edc_1 = canView; this.fdc_1 = canModerate; this.gdc_1 = activeUserSubmitterUid; } protoOf(AssignmentPermissionAndActiveUserSubmitterUid).toString = function () { return 'AssignmentPermissionAndActiveUserSubmitterUid(canMark=' + this.ddc_1 + ', canView=' + this.edc_1 + ', canModerate=' + this.fdc_1 + ', activeUserSubmitterUid=' + this.gdc_1.toString() + ')'; }; protoOf(AssignmentPermissionAndActiveUserSubmitterUid).hashCode = function () { var result = getBooleanHashCode(this.ddc_1); result = imul(result, 31) + getBooleanHashCode(this.edc_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.fdc_1) | 0; result = imul(result, 31) + this.gdc_1.hashCode() | 0; return result; }; protoOf(AssignmentPermissionAndActiveUserSubmitterUid).equals = function (other) { if (this === other) return true; if (!(other instanceof AssignmentPermissionAndActiveUserSubmitterUid)) return false; var tmp0_other_with_cast = other instanceof AssignmentPermissionAndActiveUserSubmitterUid ? other : THROW_CCE(); if (!(this.ddc_1 === tmp0_other_with_cast.ddc_1)) return false; if (!(this.edc_1 === tmp0_other_with_cast.edc_1)) return false; if (!(this.fdc_1 === tmp0_other_with_cast.fdc_1)) return false; if (!this.gdc_1.equals(tmp0_other_with_cast.gdc_1)) return false; return true; }; function Companion_1() { } var Companion_instance_2; function Companion_getInstance_4() { return Companion_instance_2; } function $serializer_0() { $serializer_instance_0 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.AssignmentSubmitterUidAndName', this, 2); tmp0_serialDesc.d4g('name', true); tmp0_serialDesc.d4g('submitterUid', true); this.njt_1 = tmp0_serialDesc; } protoOf($serializer_0).a45 = function () { return this.njt_1; }; protoOf($serializer_0).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()]; }; protoOf($serializer_0).c45 = function (decoder) { var tmp0_desc = this.njt_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = new Long(0, 0); var tmp6_input = decoder.s48(tmp0_desc); if (tmp6_input.h49()) { tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.t48(tmp0_desc); return AssignmentSubmitterUidAndName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_0).ojt = function (encoder, value) { var tmp0_desc = this.njt_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.b7y_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, StringSerializer_getInstance(), value.b7y_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.c7y_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.c7y_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_0).b45 = function (encoder, value) { return this.ojt(encoder, value instanceof AssignmentSubmitterUidAndName ? value : THROW_CCE()); }; var $serializer_instance_0; function $serializer_getInstance_0() { if ($serializer_instance_0 == null) new $serializer_0(); return $serializer_instance_0; } function AssignmentSubmitterUidAndName_init_$Init$(seen1, name, submitterUid, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_0().njt_1); } if (0 === (seen1 & 1)) $this.b7y_1 = null; else $this.b7y_1 = name; if (0 === (seen1 & 2)) $this.c7y_1 = new Long(0, 0); else $this.c7y_1 = submitterUid; return $this; } function AssignmentSubmitterUidAndName_init_$Create$(seen1, name, submitterUid, serializationConstructorMarker) { return AssignmentSubmitterUidAndName_init_$Init$(seen1, name, submitterUid, serializationConstructorMarker, objectCreate(protoOf(AssignmentSubmitterUidAndName))); } function AssignmentSubmitterUidAndName(name, submitterUid) { name = name === VOID ? null : name; submitterUid = submitterUid === VOID ? new Long(0, 0) : submitterUid; this.b7y_1 = name; this.c7y_1 = submitterUid; } protoOf(AssignmentSubmitterUidAndName).toString = function () { return 'AssignmentSubmitterUidAndName(name=' + this.b7y_1 + ', submitterUid=' + this.c7y_1.toString() + ')'; }; protoOf(AssignmentSubmitterUidAndName).hashCode = function () { var result = this.b7y_1 == null ? 0 : getStringHashCode(this.b7y_1); result = imul(result, 31) + this.c7y_1.hashCode() | 0; return result; }; protoOf(AssignmentSubmitterUidAndName).equals = function (other) { if (this === other) return true; if (!(other instanceof AssignmentSubmitterUidAndName)) return false; var tmp0_other_with_cast = other instanceof AssignmentSubmitterUidAndName ? other : THROW_CCE(); if (!(this.b7y_1 == tmp0_other_with_cast.b7y_1)) return false; if (!this.c7y_1.equals(tmp0_other_with_cast.c7y_1)) return false; return true; }; function Companion_2() { this.pjt_1 = 1; this.qjt_1 = 2; } var Companion_instance_3; function Companion_getInstance_5() { return Companion_instance_3; } function $serializer_1() { $serializer_instance_1 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.BlockStatus', this, 6); tmp0_serialDesc.d4g('sPersonUid', true); tmp0_serialDesc.d4g('sCbUid', true); tmp0_serialDesc.d4g('sProgress', true); tmp0_serialDesc.d4g('sIsCompleted', true); tmp0_serialDesc.d4g('sIsSuccess', true); tmp0_serialDesc.d4g('sScoreScaled', true); this.rjt_1 = tmp0_serialDesc; } protoOf($serializer_1).a45 = function () { return this.rjt_1; }; protoOf($serializer_1).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(IntSerializer_getInstance()), BooleanSerializer_getInstance(), get_nullable(BooleanSerializer_getInstance()), get_nullable(FloatSerializer_getInstance())]; }; protoOf($serializer_1).c45 = function (decoder) { var tmp0_desc = this.rjt_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = null; var tmp7_local3 = false; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_input = decoder.s48(tmp0_desc); if (tmp10_input.h49()) { tmp4_local0 = tmp10_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.g49(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.u48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.g49(tmp0_desc, 4, BooleanSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.g49(tmp0_desc, 5, FloatSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.g49(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.u48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.g49(tmp0_desc, 4, BooleanSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.g49(tmp0_desc, 5, FloatSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.t48(tmp0_desc); return BlockStatus_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_1).sjt = function (encoder, value) { var tmp0_desc = this.rjt_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.kal_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.kal_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.lal_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.lal_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.mal_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, IntSerializer_getInstance(), value.mal_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.nal_1 === false)) { tmp1_output.y49(tmp0_desc, 3, value.nal_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.oal_1 == null)) { tmp1_output.k4a(tmp0_desc, 4, BooleanSerializer_getInstance(), value.oal_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.pal_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, FloatSerializer_getInstance(), value.pal_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_1).b45 = function (encoder, value) { return this.sjt(encoder, value instanceof BlockStatus ? value : THROW_CCE()); }; var $serializer_instance_1; function $serializer_getInstance_1() { if ($serializer_instance_1 == null) new $serializer_1(); return $serializer_instance_1; } function BlockStatus_init_$Init$(seen1, sPersonUid, sCbUid, sProgress, sIsCompleted, sIsSuccess, sScoreScaled, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_1().rjt_1); } if (0 === (seen1 & 1)) $this.kal_1 = new Long(0, 0); else $this.kal_1 = sPersonUid; if (0 === (seen1 & 2)) $this.lal_1 = new Long(0, 0); else $this.lal_1 = sCbUid; if (0 === (seen1 & 4)) $this.mal_1 = null; else $this.mal_1 = sProgress; if (0 === (seen1 & 8)) $this.nal_1 = false; else $this.nal_1 = sIsCompleted; if (0 === (seen1 & 16)) $this.oal_1 = null; else $this.oal_1 = sIsSuccess; if (0 === (seen1 & 32)) $this.pal_1 = null; else $this.pal_1 = sScoreScaled; return $this; } function BlockStatus_init_$Create$(seen1, sPersonUid, sCbUid, sProgress, sIsCompleted, sIsSuccess, sScoreScaled, serializationConstructorMarker) { return BlockStatus_init_$Init$(seen1, sPersonUid, sCbUid, sProgress, sIsCompleted, sIsSuccess, sScoreScaled, serializationConstructorMarker, objectCreate(protoOf(BlockStatus))); } function BlockStatus(sPersonUid, sCbUid, sProgress, sIsCompleted, sIsSuccess, sScoreScaled) { sPersonUid = sPersonUid === VOID ? new Long(0, 0) : sPersonUid; sCbUid = sCbUid === VOID ? new Long(0, 0) : sCbUid; sProgress = sProgress === VOID ? null : sProgress; sIsCompleted = sIsCompleted === VOID ? false : sIsCompleted; sIsSuccess = sIsSuccess === VOID ? null : sIsSuccess; sScoreScaled = sScoreScaled === VOID ? null : sScoreScaled; this.kal_1 = sPersonUid; this.lal_1 = sCbUid; this.mal_1 = sProgress; this.nal_1 = sIsCompleted; this.oal_1 = sIsSuccess; this.pal_1 = sScoreScaled; } protoOf(BlockStatus).toString = function () { return 'BlockStatus(sPersonUid=' + this.kal_1.toString() + ', sCbUid=' + this.lal_1.toString() + ', sProgress=' + this.mal_1 + ', sIsCompleted=' + this.nal_1 + ', sIsSuccess=' + this.oal_1 + ', sScoreScaled=' + this.pal_1 + ')'; }; protoOf(BlockStatus).hashCode = function () { var result = this.kal_1.hashCode(); result = imul(result, 31) + this.lal_1.hashCode() | 0; result = imul(result, 31) + (this.mal_1 == null ? 0 : this.mal_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.nal_1) | 0; result = imul(result, 31) + (this.oal_1 == null ? 0 : getBooleanHashCode(this.oal_1)) | 0; result = imul(result, 31) + (this.pal_1 == null ? 0 : getNumberHashCode(this.pal_1)) | 0; return result; }; protoOf(BlockStatus).equals = function (other) { if (this === other) return true; if (!(other instanceof BlockStatus)) return false; var tmp0_other_with_cast = other instanceof BlockStatus ? other : THROW_CCE(); if (!this.kal_1.equals(tmp0_other_with_cast.kal_1)) return false; if (!this.lal_1.equals(tmp0_other_with_cast.lal_1)) return false; if (!(this.mal_1 == tmp0_other_with_cast.mal_1)) return false; if (!(this.nal_1 === tmp0_other_with_cast.nal_1)) return false; if (!(this.oal_1 == tmp0_other_with_cast.oal_1)) return false; if (!equals(this.pal_1, tmp0_other_with_cast.pal_1)) return false; return true; }; function Companion_3() { } var Companion_instance_4; function Companion_getInstance_6() { return Companion_instance_4; } function $serializer_2() { $serializer_instance_2 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ClazzAndDetailPermissions', this, 4); tmp0_serialDesc.d4g('clazz', true); tmp0_serialDesc.d4g('hasAttendancePermission', true); tmp0_serialDesc.d4g('hasViewMembersPermission', true); tmp0_serialDesc.d4g('hasLearningRecordPermission', true); this.tjt_1 = tmp0_serialDesc; } protoOf($serializer_2).a45 = function () { return this.tjt_1; }; protoOf($serializer_2).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_45()), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_2).c45 = function (decoder) { var tmp0_desc = this.tjt_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = false; var tmp6_local2 = false; var tmp7_local3 = false; var tmp8_input = decoder.s48(tmp0_desc); if (tmp8_input.h49()) { tmp4_local0 = tmp8_input.g49(tmp0_desc, 0, $serializer_getInstance_45(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.u48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.u48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.u48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.g49(tmp0_desc, 0, $serializer_getInstance_45(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.u48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.u48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.u48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.t48(tmp0_desc); return ClazzAndDetailPermissions_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_2).ujt = function (encoder, value) { var tmp0_desc = this.tjt_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.w8k_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_45(), value.w8k_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.x8k_1 === false)) { tmp1_output.y49(tmp0_desc, 1, value.x8k_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.y8k_1 === false)) { tmp1_output.y49(tmp0_desc, 2, value.y8k_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.z8k_1 === false)) { tmp1_output.y49(tmp0_desc, 3, value.z8k_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_2).b45 = function (encoder, value) { return this.ujt(encoder, value instanceof ClazzAndDetailPermissions ? value : THROW_CCE()); }; var $serializer_instance_2; function $serializer_getInstance_2() { if ($serializer_instance_2 == null) new $serializer_2(); return $serializer_instance_2; } function ClazzAndDetailPermissions_init_$Init$(seen1, clazz, hasAttendancePermission, hasViewMembersPermission, hasLearningRecordPermission, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_2().tjt_1); } if (0 === (seen1 & 1)) $this.w8k_1 = null; else $this.w8k_1 = clazz; if (0 === (seen1 & 2)) $this.x8k_1 = false; else $this.x8k_1 = hasAttendancePermission; if (0 === (seen1 & 4)) $this.y8k_1 = false; else $this.y8k_1 = hasViewMembersPermission; if (0 === (seen1 & 8)) $this.z8k_1 = false; else $this.z8k_1 = hasLearningRecordPermission; return $this; } function ClazzAndDetailPermissions_init_$Create$(seen1, clazz, hasAttendancePermission, hasViewMembersPermission, hasLearningRecordPermission, serializationConstructorMarker) { return ClazzAndDetailPermissions_init_$Init$(seen1, clazz, hasAttendancePermission, hasViewMembersPermission, hasLearningRecordPermission, serializationConstructorMarker, objectCreate(protoOf(ClazzAndDetailPermissions))); } function ClazzAndDetailPermissions(clazz, hasAttendancePermission, hasViewMembersPermission, hasLearningRecordPermission) { clazz = clazz === VOID ? null : clazz; hasAttendancePermission = hasAttendancePermission === VOID ? false : hasAttendancePermission; hasViewMembersPermission = hasViewMembersPermission === VOID ? false : hasViewMembersPermission; hasLearningRecordPermission = hasLearningRecordPermission === VOID ? false : hasLearningRecordPermission; this.w8k_1 = clazz; this.x8k_1 = hasAttendancePermission; this.y8k_1 = hasViewMembersPermission; this.z8k_1 = hasLearningRecordPermission; } protoOf(ClazzAndDetailPermissions).toString = function () { return 'ClazzAndDetailPermissions(clazz=' + this.w8k_1 + ', hasAttendancePermission=' + this.x8k_1 + ', hasViewMembersPermission=' + this.y8k_1 + ', hasLearningRecordPermission=' + this.z8k_1 + ')'; }; protoOf(ClazzAndDetailPermissions).hashCode = function () { var result = this.w8k_1 == null ? 0 : this.w8k_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.x8k_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.y8k_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.z8k_1) | 0; return result; }; protoOf(ClazzAndDetailPermissions).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzAndDetailPermissions)) return false; var tmp0_other_with_cast = other instanceof ClazzAndDetailPermissions ? other : THROW_CCE(); if (!equals(this.w8k_1, tmp0_other_with_cast.w8k_1)) return false; if (!(this.x8k_1 === tmp0_other_with_cast.x8k_1)) return false; if (!(this.y8k_1 === tmp0_other_with_cast.y8k_1)) return false; if (!(this.z8k_1 === tmp0_other_with_cast.z8k_1)) return false; return true; }; function ClazzAndDisplayDetails(clazz, terminology, coursePicture, numStudents, numTeachers, activeUserIsStudent) { clazz = clazz === VOID ? null : clazz; terminology = terminology === VOID ? null : terminology; coursePicture = coursePicture === VOID ? null : coursePicture; numStudents = numStudents === VOID ? 0 : numStudents; numTeachers = numTeachers === VOID ? 0 : numTeachers; activeUserIsStudent = activeUserIsStudent === VOID ? false : activeUserIsStudent; this.m8l_1 = clazz; this.n8l_1 = terminology; this.o8l_1 = coursePicture; this.p8l_1 = numStudents; this.q8l_1 = numTeachers; this.r8l_1 = activeUserIsStudent; } protoOf(ClazzAndDisplayDetails).toString = function () { return 'ClazzAndDisplayDetails(clazz=' + this.m8l_1 + ', terminology=' + this.n8l_1 + ', coursePicture=' + this.o8l_1 + ', numStudents=' + this.p8l_1 + ', numTeachers=' + this.q8l_1 + ', activeUserIsStudent=' + this.r8l_1 + ')'; }; protoOf(ClazzAndDisplayDetails).hashCode = function () { var result = this.m8l_1 == null ? 0 : this.m8l_1.hashCode(); result = imul(result, 31) + (this.n8l_1 == null ? 0 : hashCode(this.n8l_1)) | 0; result = imul(result, 31) + (this.o8l_1 == null ? 0 : this.o8l_1.hashCode()) | 0; result = imul(result, 31) + this.p8l_1 | 0; result = imul(result, 31) + this.q8l_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.r8l_1) | 0; return result; }; protoOf(ClazzAndDisplayDetails).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzAndDisplayDetails)) return false; var tmp0_other_with_cast = other instanceof ClazzAndDisplayDetails ? other : THROW_CCE(); if (!equals(this.m8l_1, tmp0_other_with_cast.m8l_1)) return false; if (!equals(this.n8l_1, tmp0_other_with_cast.n8l_1)) return false; if (!equals(this.o8l_1, tmp0_other_with_cast.o8l_1)) return false; if (!(this.p8l_1 === tmp0_other_with_cast.p8l_1)) return false; if (!(this.q8l_1 === tmp0_other_with_cast.q8l_1)) return false; if (!(this.r8l_1 === tmp0_other_with_cast.r8l_1)) return false; return true; }; function Companion_4() { } var Companion_instance_5; function Companion_getInstance_7() { return Companion_instance_5; } function $serializer_3() { $serializer_instance_3 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ClazzAssignmentAndBlock', this, 2); tmp0_serialDesc.d4g('assignment', true); tmp0_serialDesc.d4g('block', true); this.vjt_1 = tmp0_serialDesc; } protoOf($serializer_3).a45 = function () { return this.vjt_1; }; protoOf($serializer_3).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_46()), get_nullable($serializer_getInstance_72())]; }; protoOf($serializer_3).c45 = function (decoder) { var tmp0_desc = this.vjt_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.s48(tmp0_desc); if (tmp6_input.h49()) { tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, $serializer_getInstance_46(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_72(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, $serializer_getInstance_46(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_72(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.t48(tmp0_desc); return ClazzAssignmentAndBlock_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_3).wjt = function (encoder, value) { var tmp0_desc = this.vjt_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.p7y_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_46(), value.p7y_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.q7y_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_72(), value.q7y_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_3).b45 = function (encoder, value) { return this.wjt(encoder, value instanceof ClazzAssignmentAndBlock ? value : THROW_CCE()); }; var $serializer_instance_3; function $serializer_getInstance_3() { if ($serializer_instance_3 == null) new $serializer_3(); return $serializer_instance_3; } function ClazzAssignmentAndBlock_init_$Init$(seen1, assignment, block, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_3().vjt_1); } if (0 === (seen1 & 1)) $this.p7y_1 = null; else $this.p7y_1 = assignment; if (0 === (seen1 & 2)) $this.q7y_1 = null; else $this.q7y_1 = block; return $this; } function ClazzAssignmentAndBlock_init_$Create$(seen1, assignment, block, serializationConstructorMarker) { return ClazzAssignmentAndBlock_init_$Init$(seen1, assignment, block, serializationConstructorMarker, objectCreate(protoOf(ClazzAssignmentAndBlock))); } function ClazzAssignmentAndBlock(assignment, block) { assignment = assignment === VOID ? null : assignment; block = block === VOID ? null : block; this.p7y_1 = assignment; this.q7y_1 = block; } protoOf(ClazzAssignmentAndBlock).toString = function () { return 'ClazzAssignmentAndBlock(assignment=' + this.p7y_1 + ', block=' + this.q7y_1 + ')'; }; protoOf(ClazzAssignmentAndBlock).hashCode = function () { var result = this.p7y_1 == null ? 0 : this.p7y_1.hashCode(); result = imul(result, 31) + (this.q7y_1 == null ? 0 : this.q7y_1.hashCode()) | 0; return result; }; protoOf(ClazzAssignmentAndBlock).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzAssignmentAndBlock)) return false; var tmp0_other_with_cast = other instanceof ClazzAssignmentAndBlock ? other : THROW_CCE(); if (!equals(this.p7y_1, tmp0_other_with_cast.p7y_1)) return false; if (!equals(this.q7y_1, tmp0_other_with_cast.q7y_1)) return false; return true; }; function Companion_5() { } var Companion_instance_6; function Companion_getInstance_8() { return Companion_instance_6; } function $serializer_4() { $serializer_instance_4 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ClazzEnrolmentAndPersonDetailDetails', this, 3); tmp0_serialDesc.d4g('enrolment', true); tmp0_serialDesc.d4g('clazz', true); tmp0_serialDesc.d4g('courseTerminology', true); this.xjt_1 = tmp0_serialDesc; } protoOf($serializer_4).a45 = function () { return this.xjt_1; }; protoOf($serializer_4).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_48()), get_nullable($serializer_getInstance_45()), get_nullable($serializer_getInstance_79())]; }; protoOf($serializer_4).c45 = function (decoder) { var tmp0_desc = this.xjt_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_input = decoder.s48(tmp0_desc); if (tmp7_input.h49()) { tmp4_local0 = tmp7_input.g49(tmp0_desc, 0, $serializer_getInstance_48(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.g49(tmp0_desc, 1, $serializer_getInstance_45(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.g49(tmp0_desc, 2, $serializer_getInstance_79(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.g49(tmp0_desc, 0, $serializer_getInstance_48(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.g49(tmp0_desc, 1, $serializer_getInstance_45(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.g49(tmp0_desc, 2, $serializer_getInstance_79(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.t48(tmp0_desc); return ClazzEnrolmentAndPersonDetailDetails_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_4).yjt = function (encoder, value) { var tmp0_desc = this.xjt_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.g96_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_48(), value.g96_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.h96_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_45(), value.h96_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.i96_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, $serializer_getInstance_79(), value.i96_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_4).b45 = function (encoder, value) { return this.yjt(encoder, value instanceof ClazzEnrolmentAndPersonDetailDetails ? value : THROW_CCE()); }; var $serializer_instance_4; function $serializer_getInstance_4() { if ($serializer_instance_4 == null) new $serializer_4(); return $serializer_instance_4; } function ClazzEnrolmentAndPersonDetailDetails_init_$Init$(seen1, enrolment, clazz, courseTerminology, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_4().xjt_1); } if (0 === (seen1 & 1)) $this.g96_1 = null; else $this.g96_1 = enrolment; if (0 === (seen1 & 2)) $this.h96_1 = null; else $this.h96_1 = clazz; if (0 === (seen1 & 4)) $this.i96_1 = null; else $this.i96_1 = courseTerminology; return $this; } function ClazzEnrolmentAndPersonDetailDetails_init_$Create$(seen1, enrolment, clazz, courseTerminology, serializationConstructorMarker) { return ClazzEnrolmentAndPersonDetailDetails_init_$Init$(seen1, enrolment, clazz, courseTerminology, serializationConstructorMarker, objectCreate(protoOf(ClazzEnrolmentAndPersonDetailDetails))); } function ClazzEnrolmentAndPersonDetailDetails(enrolment, clazz, courseTerminology) { enrolment = enrolment === VOID ? null : enrolment; clazz = clazz === VOID ? null : clazz; courseTerminology = courseTerminology === VOID ? null : courseTerminology; this.g96_1 = enrolment; this.h96_1 = clazz; this.i96_1 = courseTerminology; } protoOf(ClazzEnrolmentAndPersonDetailDetails).toString = function () { return 'ClazzEnrolmentAndPersonDetailDetails(enrolment=' + this.g96_1 + ', clazz=' + this.h96_1 + ', courseTerminology=' + this.i96_1 + ')'; }; protoOf(ClazzEnrolmentAndPersonDetailDetails).hashCode = function () { var result = this.g96_1 == null ? 0 : hashCode(this.g96_1); result = imul(result, 31) + (this.h96_1 == null ? 0 : this.h96_1.hashCode()) | 0; result = imul(result, 31) + (this.i96_1 == null ? 0 : hashCode(this.i96_1)) | 0; return result; }; protoOf(ClazzEnrolmentAndPersonDetailDetails).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzEnrolmentAndPersonDetailDetails)) return false; var tmp0_other_with_cast = other instanceof ClazzEnrolmentAndPersonDetailDetails ? other : THROW_CCE(); if (!equals(this.g96_1, tmp0_other_with_cast.g96_1)) return false; if (!equals(this.h96_1, tmp0_other_with_cast.h96_1)) return false; if (!equals(this.i96_1, tmp0_other_with_cast.i96_1)) return false; return true; }; function Companion_6() { } var Companion_instance_7; function Companion_getInstance_9() { return Companion_instance_7; } function $serializer_5() { $serializer_instance_5 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ClazzNameAndTerminology', this, 2); tmp0_serialDesc.d4g('clazzName', true); tmp0_serialDesc.d4g('terminology', true); this.zjt_1 = tmp0_serialDesc; } protoOf($serializer_5).a45 = function () { return this.zjt_1; }; protoOf($serializer_5).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_79())]; }; protoOf($serializer_5).c45 = function (decoder) { var tmp0_desc = this.zjt_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.s48(tmp0_desc); if (tmp6_input.h49()) { tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_79(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_79(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.t48(tmp0_desc); return ClazzNameAndTerminology_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_5).aju = function (encoder, value) { var tmp0_desc = this.zjt_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.q8m_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, StringSerializer_getInstance(), value.q8m_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.r8m_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_79(), value.r8m_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_5).b45 = function (encoder, value) { return this.aju(encoder, value instanceof ClazzNameAndTerminology ? value : THROW_CCE()); }; var $serializer_instance_5; function $serializer_getInstance_5() { if ($serializer_instance_5 == null) new $serializer_5(); return $serializer_instance_5; } function ClazzNameAndTerminology_init_$Init$(seen1, clazzName, terminology, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_5().zjt_1); } if (0 === (seen1 & 1)) $this.q8m_1 = null; else $this.q8m_1 = clazzName; if (0 === (seen1 & 2)) $this.r8m_1 = null; else $this.r8m_1 = terminology; return $this; } function ClazzNameAndTerminology_init_$Create$(seen1, clazzName, terminology, serializationConstructorMarker) { return ClazzNameAndTerminology_init_$Init$(seen1, clazzName, terminology, serializationConstructorMarker, objectCreate(protoOf(ClazzNameAndTerminology))); } function ClazzNameAndTerminology(clazzName, terminology) { clazzName = clazzName === VOID ? null : clazzName; terminology = terminology === VOID ? null : terminology; this.q8m_1 = clazzName; this.r8m_1 = terminology; } protoOf(ClazzNameAndTerminology).toString = function () { return 'ClazzNameAndTerminology(clazzName=' + this.q8m_1 + ', terminology=' + this.r8m_1 + ')'; }; protoOf(ClazzNameAndTerminology).hashCode = function () { var result = this.q8m_1 == null ? 0 : getStringHashCode(this.q8m_1); result = imul(result, 31) + (this.r8m_1 == null ? 0 : hashCode(this.r8m_1)) | 0; return result; }; protoOf(ClazzNameAndTerminology).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzNameAndTerminology)) return false; var tmp0_other_with_cast = other instanceof ClazzNameAndTerminology ? other : THROW_CCE(); if (!(this.q8m_1 == tmp0_other_with_cast.q8m_1)) return false; if (!equals(this.r8m_1, tmp0_other_with_cast.r8m_1)) return false; return true; }; function Companion_7() { } var Companion_instance_8; function Companion_getInstance_10() { return Companion_instance_8; } function $serializer_6() { $serializer_instance_6 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CommentsAndName', this, 4); tmp0_serialDesc.d4g('comment', true); tmp0_serialDesc.d4g('firstNames', true); tmp0_serialDesc.d4g('lastName', true); tmp0_serialDesc.d4g('pictureUri', true); this.bju_1 = tmp0_serialDesc; } protoOf($serializer_6).a45 = function () { return this.bju_1; }; protoOf($serializer_6).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_54(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_6).c45 = function (decoder) { var tmp0_desc = this.bju_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.s48(tmp0_desc); if (tmp8_input.h49()) { tmp4_local0 = tmp8_input.e49(tmp0_desc, 0, $serializer_getInstance_54(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.e49(tmp0_desc, 0, $serializer_getInstance_54(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.t48(tmp0_desc); return CommentsAndName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_6).cju = function (encoder, value) { var tmp0_desc = this.bju_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.ea1_1.equals(new Comments())) { tmp1_output.i4a(tmp0_desc, 0, $serializer_getInstance_54(), value.ea1_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.fa1_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.fa1_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.ga1_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.ga1_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.ha1_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.ha1_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_6).b45 = function (encoder, value) { return this.cju(encoder, value instanceof CommentsAndName ? value : THROW_CCE()); }; var $serializer_instance_6; function $serializer_getInstance_6() { if ($serializer_instance_6 == null) new $serializer_6(); return $serializer_instance_6; } function CommentsAndName_init_$Init$(seen1, comment, firstNames, lastName, pictureUri, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_6().bju_1); } if (0 === (seen1 & 1)) $this.ea1_1 = new Comments(); else $this.ea1_1 = comment; if (0 === (seen1 & 2)) $this.fa1_1 = null; else $this.fa1_1 = firstNames; if (0 === (seen1 & 4)) $this.ga1_1 = null; else $this.ga1_1 = lastName; if (0 === (seen1 & 8)) $this.ha1_1 = null; else $this.ha1_1 = pictureUri; return $this; } function CommentsAndName_init_$Create$(seen1, comment, firstNames, lastName, pictureUri, serializationConstructorMarker) { return CommentsAndName_init_$Init$(seen1, comment, firstNames, lastName, pictureUri, serializationConstructorMarker, objectCreate(protoOf(CommentsAndName))); } function CommentsAndName(comment, firstNames, lastName, pictureUri) { comment = comment === VOID ? new Comments() : comment; firstNames = firstNames === VOID ? null : firstNames; lastName = lastName === VOID ? null : lastName; pictureUri = pictureUri === VOID ? null : pictureUri; this.ea1_1 = comment; this.fa1_1 = firstNames; this.ga1_1 = lastName; this.ha1_1 = pictureUri; } protoOf(CommentsAndName).toString = function () { return 'CommentsAndName(comment=' + this.ea1_1 + ', firstNames=' + this.fa1_1 + ', lastName=' + this.ga1_1 + ', pictureUri=' + this.ha1_1 + ')'; }; protoOf(CommentsAndName).hashCode = function () { var result = this.ea1_1.hashCode(); result = imul(result, 31) + (this.fa1_1 == null ? 0 : getStringHashCode(this.fa1_1)) | 0; result = imul(result, 31) + (this.ga1_1 == null ? 0 : getStringHashCode(this.ga1_1)) | 0; result = imul(result, 31) + (this.ha1_1 == null ? 0 : getStringHashCode(this.ha1_1)) | 0; return result; }; protoOf(CommentsAndName).equals = function (other) { if (this === other) return true; if (!(other instanceof CommentsAndName)) return false; var tmp0_other_with_cast = other instanceof CommentsAndName ? other : THROW_CCE(); if (!this.ea1_1.equals(tmp0_other_with_cast.ea1_1)) return false; if (!(this.fa1_1 == tmp0_other_with_cast.fa1_1)) return false; if (!(this.ga1_1 == tmp0_other_with_cast.ga1_1)) return false; if (!(this.ha1_1 == tmp0_other_with_cast.ha1_1)) return false; return true; }; function Companion_8() { } protoOf(Companion_8).x4r = function () { return $serializer_getInstance_7(); }; var Companion_instance_9; function Companion_getInstance_11() { return Companion_instance_9; } function $serializer_7() { $serializer_instance_7 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ContentEntryAndContentJob', this, 4); tmp0_serialDesc.d4g('entry', true); tmp0_serialDesc.d4g('contentJob', true); tmp0_serialDesc.d4g('contentJobItem', true); tmp0_serialDesc.d4g('picture', true); this.dju_1 = tmp0_serialDesc; } protoOf($serializer_7).a45 = function () { return this.dju_1; }; protoOf($serializer_7).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_57()), get_nullable($serializer_getInstance_68()), get_nullable($serializer_getInstance_59()), get_nullable($serializer_getInstance_62())]; }; protoOf($serializer_7).c45 = function (decoder) { var tmp0_desc = this.dju_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.s48(tmp0_desc); if (tmp8_input.h49()) { tmp4_local0 = tmp8_input.g49(tmp0_desc, 0, $serializer_getInstance_57(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.g49(tmp0_desc, 1, $serializer_getInstance_68(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, $serializer_getInstance_59(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, $serializer_getInstance_62(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.g49(tmp0_desc, 0, $serializer_getInstance_57(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.g49(tmp0_desc, 1, $serializer_getInstance_68(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, $serializer_getInstance_59(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, $serializer_getInstance_62(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.t48(tmp0_desc); return ContentEntryAndContentJob_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_7).eju = function (encoder, value) { var tmp0_desc = this.dju_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.fju_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_57(), value.fju_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.gju_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_68(), value.gju_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.hju_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, $serializer_getInstance_59(), value.hju_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.iju_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, $serializer_getInstance_62(), value.iju_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_7).b45 = function (encoder, value) { return this.eju(encoder, value instanceof ContentEntryAndContentJob ? value : THROW_CCE()); }; var $serializer_instance_7; function $serializer_getInstance_7() { if ($serializer_instance_7 == null) new $serializer_7(); return $serializer_instance_7; } function ContentEntryAndContentJob_init_$Init$(seen1, entry, contentJob, contentJobItem, picture, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_7().dju_1); } if (0 === (seen1 & 1)) $this.fju_1 = null; else $this.fju_1 = entry; if (0 === (seen1 & 2)) $this.gju_1 = null; else $this.gju_1 = contentJob; if (0 === (seen1 & 4)) $this.hju_1 = null; else $this.hju_1 = contentJobItem; if (0 === (seen1 & 8)) $this.iju_1 = null; else $this.iju_1 = picture; return $this; } function ContentEntryAndContentJob_init_$Create$(seen1, entry, contentJob, contentJobItem, picture, serializationConstructorMarker) { return ContentEntryAndContentJob_init_$Init$(seen1, entry, contentJob, contentJobItem, picture, serializationConstructorMarker, objectCreate(protoOf(ContentEntryAndContentJob))); } function ContentEntryAndContentJob(entry, contentJob, contentJobItem, picture) { entry = entry === VOID ? null : entry; contentJob = contentJob === VOID ? null : contentJob; contentJobItem = contentJobItem === VOID ? null : contentJobItem; picture = picture === VOID ? null : picture; this.fju_1 = entry; this.gju_1 = contentJob; this.hju_1 = contentJobItem; this.iju_1 = picture; } protoOf(ContentEntryAndContentJob).jju = function (entry, contentJob, contentJobItem, picture) { return new ContentEntryAndContentJob(entry, contentJob, contentJobItem, picture); }; protoOf(ContentEntryAndContentJob).kju = function (entry, contentJob, contentJobItem, picture, $super) { entry = entry === VOID ? this.fju_1 : entry; contentJob = contentJob === VOID ? this.gju_1 : contentJob; contentJobItem = contentJobItem === VOID ? this.hju_1 : contentJobItem; picture = picture === VOID ? this.iju_1 : picture; return $super === VOID ? this.jju(entry, contentJob, contentJobItem, picture) : $super.jju.call(this, entry, contentJob, contentJobItem, picture); }; protoOf(ContentEntryAndContentJob).toString = function () { return 'ContentEntryAndContentJob(entry=' + this.fju_1 + ', contentJob=' + this.gju_1 + ', contentJobItem=' + this.hju_1 + ', picture=' + this.iju_1 + ')'; }; protoOf(ContentEntryAndContentJob).hashCode = function () { var result = this.fju_1 == null ? 0 : this.fju_1.hashCode(); result = imul(result, 31) + (this.gju_1 == null ? 0 : this.gju_1.hashCode()) | 0; result = imul(result, 31) + (this.hju_1 == null ? 0 : this.hju_1.hashCode()) | 0; result = imul(result, 31) + (this.iju_1 == null ? 0 : this.iju_1.hashCode()) | 0; return result; }; protoOf(ContentEntryAndContentJob).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryAndContentJob)) return false; var tmp0_other_with_cast = other instanceof ContentEntryAndContentJob ? other : THROW_CCE(); if (!equals(this.fju_1, tmp0_other_with_cast.fju_1)) return false; if (!equals(this.gju_1, tmp0_other_with_cast.gju_1)) return false; if (!equals(this.hju_1, tmp0_other_with_cast.hju_1)) return false; if (!equals(this.iju_1, tmp0_other_with_cast.iju_1)) return false; return true; }; function Companion_9() { } var Companion_instance_10; function Companion_getInstance_12() { return Companion_instance_10; } function $serializer_8() { $serializer_instance_8 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ContentEntryAndDetail', this, 4); tmp0_serialDesc.d4g('entry', true); tmp0_serialDesc.d4g('latestVersion', true); tmp0_serialDesc.d4g('picture', true); tmp0_serialDesc.d4g('status', true); this.lju_1 = tmp0_serialDesc; } protoOf($serializer_8).a45 = function () { return this.lju_1; }; protoOf($serializer_8).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_57()), get_nullable($serializer_getInstance_66()), get_nullable($serializer_getInstance_62()), get_nullable($serializer_getInstance_1())]; }; protoOf($serializer_8).c45 = function (decoder) { var tmp0_desc = this.lju_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.s48(tmp0_desc); if (tmp8_input.h49()) { tmp4_local0 = tmp8_input.g49(tmp0_desc, 0, $serializer_getInstance_57(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.g49(tmp0_desc, 1, $serializer_getInstance_66(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, $serializer_getInstance_62(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, $serializer_getInstance_1(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.g49(tmp0_desc, 0, $serializer_getInstance_57(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.g49(tmp0_desc, 1, $serializer_getInstance_66(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, $serializer_getInstance_62(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, $serializer_getInstance_1(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.t48(tmp0_desc); return ContentEntryAndDetail_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_8).mju = function (encoder, value) { var tmp0_desc = this.lju_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.vak_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_57(), value.vak_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.wak_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_66(), value.wak_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.xak_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, $serializer_getInstance_62(), value.xak_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.yak_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, $serializer_getInstance_1(), value.yak_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_8).b45 = function (encoder, value) { return this.mju(encoder, value instanceof ContentEntryAndDetail ? value : THROW_CCE()); }; var $serializer_instance_8; function $serializer_getInstance_8() { if ($serializer_instance_8 == null) new $serializer_8(); return $serializer_instance_8; } function ContentEntryAndDetail_init_$Init$(seen1, entry, latestVersion, picture, status, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_8().lju_1); } if (0 === (seen1 & 1)) $this.vak_1 = null; else $this.vak_1 = entry; if (0 === (seen1 & 2)) $this.wak_1 = null; else $this.wak_1 = latestVersion; if (0 === (seen1 & 4)) $this.xak_1 = null; else $this.xak_1 = picture; if (0 === (seen1 & 8)) $this.yak_1 = null; else $this.yak_1 = status; return $this; } function ContentEntryAndDetail_init_$Create$(seen1, entry, latestVersion, picture, status, serializationConstructorMarker) { return ContentEntryAndDetail_init_$Init$(seen1, entry, latestVersion, picture, status, serializationConstructorMarker, objectCreate(protoOf(ContentEntryAndDetail))); } function ContentEntryAndDetail(entry, latestVersion, picture, status) { entry = entry === VOID ? null : entry; latestVersion = latestVersion === VOID ? null : latestVersion; picture = picture === VOID ? null : picture; status = status === VOID ? null : status; this.vak_1 = entry; this.wak_1 = latestVersion; this.xak_1 = picture; this.yak_1 = status; } protoOf(ContentEntryAndDetail).toString = function () { return 'ContentEntryAndDetail(entry=' + this.vak_1 + ', latestVersion=' + this.wak_1 + ', picture=' + this.xak_1 + ', status=' + this.yak_1 + ')'; }; protoOf(ContentEntryAndDetail).hashCode = function () { var result = this.vak_1 == null ? 0 : this.vak_1.hashCode(); result = imul(result, 31) + (this.wak_1 == null ? 0 : this.wak_1.hashCode()) | 0; result = imul(result, 31) + (this.xak_1 == null ? 0 : this.xak_1.hashCode()) | 0; result = imul(result, 31) + (this.yak_1 == null ? 0 : this.yak_1.hashCode()) | 0; return result; }; protoOf(ContentEntryAndDetail).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryAndDetail)) return false; var tmp0_other_with_cast = other instanceof ContentEntryAndDetail ? other : THROW_CCE(); if (!equals(this.vak_1, tmp0_other_with_cast.vak_1)) return false; if (!equals(this.wak_1, tmp0_other_with_cast.wak_1)) return false; if (!equals(this.xak_1, tmp0_other_with_cast.xak_1)) return false; if (!equals(this.yak_1, tmp0_other_with_cast.yak_1)) return false; return true; }; function ContentEntryAndListDetail(contentEntry, picture, contentEntryParentChildJoin, status) { contentEntry = contentEntry === VOID ? null : contentEntry; picture = picture === VOID ? null : picture; contentEntryParentChildJoin = contentEntryParentChildJoin === VOID ? null : contentEntryParentChildJoin; status = status === VOID ? null : status; this.eam_1 = contentEntry; this.fam_1 = picture; this.gam_1 = contentEntryParentChildJoin; this.ham_1 = status; } protoOf(ContentEntryAndListDetail).toString = function () { return 'ContentEntryAndListDetail(contentEntry=' + this.eam_1 + ', picture=' + this.fam_1 + ', contentEntryParentChildJoin=' + this.gam_1 + ', status=' + this.ham_1 + ')'; }; protoOf(ContentEntryAndListDetail).hashCode = function () { var result = this.eam_1 == null ? 0 : this.eam_1.hashCode(); result = imul(result, 31) + (this.fam_1 == null ? 0 : this.fam_1.hashCode()) | 0; result = imul(result, 31) + (this.gam_1 == null ? 0 : this.gam_1.hashCode()) | 0; result = imul(result, 31) + (this.ham_1 == null ? 0 : this.ham_1.hashCode()) | 0; return result; }; protoOf(ContentEntryAndListDetail).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryAndListDetail)) return false; var tmp0_other_with_cast = other instanceof ContentEntryAndListDetail ? other : THROW_CCE(); if (!equals(this.eam_1, tmp0_other_with_cast.eam_1)) return false; if (!equals(this.fam_1, tmp0_other_with_cast.fam_1)) return false; if (!equals(this.gam_1, tmp0_other_with_cast.gam_1)) return false; if (!equals(this.ham_1, tmp0_other_with_cast.ham_1)) return false; return true; }; function Companion_10() { } var Companion_instance_11; function Companion_getInstance_13() { return Companion_instance_11; } function $serializer_9() { $serializer_instance_9 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ContentEntryAndPicture', this, 2); tmp0_serialDesc.d4g('entry', true); tmp0_serialDesc.d4g('picture', true); this.nju_1 = tmp0_serialDesc; } protoOf($serializer_9).a45 = function () { return this.nju_1; }; protoOf($serializer_9).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_57()), get_nullable($serializer_getInstance_62())]; }; protoOf($serializer_9).c45 = function (decoder) { var tmp0_desc = this.nju_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.s48(tmp0_desc); if (tmp6_input.h49()) { tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, $serializer_getInstance_57(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_62(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, $serializer_getInstance_57(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_62(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.t48(tmp0_desc); return ContentEntryAndPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_9).oju = function (encoder, value) { var tmp0_desc = this.nju_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.pak_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_57(), value.pak_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.qak_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_62(), value.qak_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_9).b45 = function (encoder, value) { return this.oju(encoder, value instanceof ContentEntryAndPicture ? value : THROW_CCE()); }; var $serializer_instance_9; function $serializer_getInstance_9() { if ($serializer_instance_9 == null) new $serializer_9(); return $serializer_instance_9; } function ContentEntryAndPicture_init_$Init$(seen1, entry, picture, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_9().nju_1); } if (0 === (seen1 & 1)) $this.pak_1 = null; else $this.pak_1 = entry; if (0 === (seen1 & 2)) $this.qak_1 = null; else $this.qak_1 = picture; return $this; } function ContentEntryAndPicture_init_$Create$(seen1, entry, picture, serializationConstructorMarker) { return ContentEntryAndPicture_init_$Init$(seen1, entry, picture, serializationConstructorMarker, objectCreate(protoOf(ContentEntryAndPicture))); } function ContentEntryAndPicture(entry, picture) { entry = entry === VOID ? null : entry; picture = picture === VOID ? null : picture; this.pak_1 = entry; this.qak_1 = picture; } protoOf(ContentEntryAndPicture).toString = function () { return 'ContentEntryAndPicture(entry=' + this.pak_1 + ', picture=' + this.qak_1 + ')'; }; protoOf(ContentEntryAndPicture).hashCode = function () { var result = this.pak_1 == null ? 0 : this.pak_1.hashCode(); result = imul(result, 31) + (this.qak_1 == null ? 0 : this.qak_1.hashCode()) | 0; return result; }; protoOf(ContentEntryAndPicture).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryAndPicture)) return false; var tmp0_other_with_cast = other instanceof ContentEntryAndPicture ? other : THROW_CCE(); if (!equals(this.pak_1, tmp0_other_with_cast.pak_1)) return false; if (!equals(this.qak_1, tmp0_other_with_cast.qak_1)) return false; return true; }; function Companion_11() { } protoOf(Companion_11).x4r = function () { return $serializer_getInstance_10(); }; var Companion_instance_12; function Companion_getInstance_14() { return Companion_instance_12; } function $serializer_10() { $serializer_instance_10 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ContentEntryImportJobProgress', this, 6); tmp0_serialDesc.d4g('cjiUid', true); tmp0_serialDesc.d4g('cjiItemProgress', true); tmp0_serialDesc.d4g('cjiItemTotal', true); tmp0_serialDesc.d4g('cjiStatus', true); tmp0_serialDesc.d4g('cjiError', true); tmp0_serialDesc.d4g('cjiOwnerPersonUid', true); this.pju_1 = tmp0_serialDesc; } protoOf($serializer_10).a45 = function () { return this.pju_1; }; protoOf($serializer_10).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()]; }; protoOf($serializer_10).c45 = function (decoder) { var tmp0_desc = this.pju_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = 0; var tmp8_local4 = null; var tmp9_local5 = new Long(0, 0); var tmp10_input = decoder.s48(tmp0_desc); if (tmp10_input.h49()) { tmp4_local0 = tmp10_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.t48(tmp0_desc); return ContentEntryImportJobProgress_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_10).qju = function (encoder, value) { var tmp0_desc = this.pju_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.daz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.daz_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.eaz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.eaz_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.faz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.faz_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.gaz_1 === 4)) { tmp1_output.b4a(tmp0_desc, 3, value.gaz_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.haz_1 == null)) { tmp1_output.k4a(tmp0_desc, 4, StringSerializer_getInstance(), value.haz_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.iaz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.iaz_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_10).b45 = function (encoder, value) { return this.qju(encoder, value instanceof ContentEntryImportJobProgress ? value : THROW_CCE()); }; var $serializer_instance_10; function $serializer_getInstance_10() { if ($serializer_instance_10 == null) new $serializer_10(); return $serializer_instance_10; } function ContentEntryImportJobProgress_init_$Init$(seen1, cjiUid, cjiItemProgress, cjiItemTotal, cjiStatus, cjiError, cjiOwnerPersonUid, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_10().pju_1); } if (0 === (seen1 & 1)) $this.daz_1 = new Long(0, 0); else $this.daz_1 = cjiUid; if (0 === (seen1 & 2)) $this.eaz_1 = new Long(0, 0); else $this.eaz_1 = cjiItemProgress; if (0 === (seen1 & 4)) $this.faz_1 = new Long(0, 0); else $this.faz_1 = cjiItemTotal; if (0 === (seen1 & 8)) $this.gaz_1 = 4; else $this.gaz_1 = cjiStatus; if (0 === (seen1 & 16)) $this.haz_1 = null; else $this.haz_1 = cjiError; if (0 === (seen1 & 32)) $this.iaz_1 = new Long(0, 0); else $this.iaz_1 = cjiOwnerPersonUid; return $this; } function ContentEntryImportJobProgress_init_$Create$(seen1, cjiUid, cjiItemProgress, cjiItemTotal, cjiStatus, cjiError, cjiOwnerPersonUid, serializationConstructorMarker) { return ContentEntryImportJobProgress_init_$Init$(seen1, cjiUid, cjiItemProgress, cjiItemTotal, cjiStatus, cjiError, cjiOwnerPersonUid, serializationConstructorMarker, objectCreate(protoOf(ContentEntryImportJobProgress))); } function ContentEntryImportJobProgress(cjiUid, cjiItemProgress, cjiItemTotal, cjiStatus, cjiError, cjiOwnerPersonUid) { cjiUid = cjiUid === VOID ? new Long(0, 0) : cjiUid; cjiItemProgress = cjiItemProgress === VOID ? new Long(0, 0) : cjiItemProgress; cjiItemTotal = cjiItemTotal === VOID ? new Long(0, 0) : cjiItemTotal; cjiStatus = cjiStatus === VOID ? 4 : cjiStatus; cjiError = cjiError === VOID ? null : cjiError; cjiOwnerPersonUid = cjiOwnerPersonUid === VOID ? new Long(0, 0) : cjiOwnerPersonUid; this.daz_1 = cjiUid; this.eaz_1 = cjiItemProgress; this.faz_1 = cjiItemTotal; this.gaz_1 = cjiStatus; this.haz_1 = cjiError; this.iaz_1 = cjiOwnerPersonUid; } protoOf(ContentEntryImportJobProgress).toString = function () { return 'ContentEntryImportJobProgress(cjiUid=' + this.daz_1.toString() + ', cjiItemProgress=' + this.eaz_1.toString() + ', cjiItemTotal=' + this.faz_1.toString() + ', cjiStatus=' + this.gaz_1 + ', cjiError=' + this.haz_1 + ', cjiOwnerPersonUid=' + this.iaz_1.toString() + ')'; }; protoOf(ContentEntryImportJobProgress).hashCode = function () { var result = this.daz_1.hashCode(); result = imul(result, 31) + this.eaz_1.hashCode() | 0; result = imul(result, 31) + this.faz_1.hashCode() | 0; result = imul(result, 31) + this.gaz_1 | 0; result = imul(result, 31) + (this.haz_1 == null ? 0 : getStringHashCode(this.haz_1)) | 0; result = imul(result, 31) + this.iaz_1.hashCode() | 0; return result; }; protoOf(ContentEntryImportJobProgress).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryImportJobProgress)) return false; var tmp0_other_with_cast = other instanceof ContentEntryImportJobProgress ? other : THROW_CCE(); if (!this.daz_1.equals(tmp0_other_with_cast.daz_1)) return false; if (!this.eaz_1.equals(tmp0_other_with_cast.eaz_1)) return false; if (!this.faz_1.equals(tmp0_other_with_cast.faz_1)) return false; if (!(this.gaz_1 === tmp0_other_with_cast.gaz_1)) return false; if (!(this.haz_1 == tmp0_other_with_cast.haz_1)) return false; if (!this.iaz_1.equals(tmp0_other_with_cast.iaz_1)) return false; return true; }; function Companion_12() { } var Companion_instance_13; function Companion_getInstance_15() { return Companion_instance_13; } function $serializer_11() { $serializer_instance_11 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseAssignmentMarkAndMarkerName', this, 4); tmp0_serialDesc.d4g('courseAssignmentMark', true); tmp0_serialDesc.d4g('markerFirstNames', true); tmp0_serialDesc.d4g('markerLastName', true); tmp0_serialDesc.d4g('markerPictureUri', true); this.rju_1 = tmp0_serialDesc; } protoOf($serializer_11).a45 = function () { return this.rju_1; }; protoOf($serializer_11).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_69()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_11).c45 = function (decoder) { var tmp0_desc = this.rju_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.s48(tmp0_desc); if (tmp8_input.h49()) { tmp4_local0 = tmp8_input.g49(tmp0_desc, 0, $serializer_getInstance_69(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.g49(tmp0_desc, 0, $serializer_getInstance_69(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.t48(tmp0_desc); return CourseAssignmentMarkAndMarkerName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_11).sju = function (encoder, value) { var tmp0_desc = this.rju_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.fbk_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_69(), value.fbk_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.gbk_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.gbk_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.hbk_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.hbk_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.ibk_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.ibk_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_11).b45 = function (encoder, value) { return this.sju(encoder, value instanceof CourseAssignmentMarkAndMarkerName ? value : THROW_CCE()); }; var $serializer_instance_11; function $serializer_getInstance_11() { if ($serializer_instance_11 == null) new $serializer_11(); return $serializer_instance_11; } function CourseAssignmentMarkAndMarkerName_init_$Init$(seen1, courseAssignmentMark, markerFirstNames, markerLastName, markerPictureUri, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_11().rju_1); } if (0 === (seen1 & 1)) $this.fbk_1 = null; else $this.fbk_1 = courseAssignmentMark; if (0 === (seen1 & 2)) $this.gbk_1 = null; else $this.gbk_1 = markerFirstNames; if (0 === (seen1 & 4)) $this.hbk_1 = null; else $this.hbk_1 = markerLastName; if (0 === (seen1 & 8)) $this.ibk_1 = null; else $this.ibk_1 = markerPictureUri; return $this; } function CourseAssignmentMarkAndMarkerName_init_$Create$(seen1, courseAssignmentMark, markerFirstNames, markerLastName, markerPictureUri, serializationConstructorMarker) { return CourseAssignmentMarkAndMarkerName_init_$Init$(seen1, courseAssignmentMark, markerFirstNames, markerLastName, markerPictureUri, serializationConstructorMarker, objectCreate(protoOf(CourseAssignmentMarkAndMarkerName))); } function CourseAssignmentMarkAndMarkerName(courseAssignmentMark, markerFirstNames, markerLastName, markerPictureUri) { courseAssignmentMark = courseAssignmentMark === VOID ? null : courseAssignmentMark; markerFirstNames = markerFirstNames === VOID ? null : markerFirstNames; markerLastName = markerLastName === VOID ? null : markerLastName; markerPictureUri = markerPictureUri === VOID ? null : markerPictureUri; this.fbk_1 = courseAssignmentMark; this.gbk_1 = markerFirstNames; this.hbk_1 = markerLastName; this.ibk_1 = markerPictureUri; } protoOf(CourseAssignmentMarkAndMarkerName).toString = function () { return 'CourseAssignmentMarkAndMarkerName(courseAssignmentMark=' + this.fbk_1 + ', markerFirstNames=' + this.gbk_1 + ', markerLastName=' + this.hbk_1 + ', markerPictureUri=' + this.ibk_1 + ')'; }; protoOf(CourseAssignmentMarkAndMarkerName).hashCode = function () { var result = this.fbk_1 == null ? 0 : hashCode(this.fbk_1); result = imul(result, 31) + (this.gbk_1 == null ? 0 : getStringHashCode(this.gbk_1)) | 0; result = imul(result, 31) + (this.hbk_1 == null ? 0 : getStringHashCode(this.hbk_1)) | 0; result = imul(result, 31) + (this.ibk_1 == null ? 0 : getStringHashCode(this.ibk_1)) | 0; return result; }; protoOf(CourseAssignmentMarkAndMarkerName).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseAssignmentMarkAndMarkerName)) return false; var tmp0_other_with_cast = other instanceof CourseAssignmentMarkAndMarkerName ? other : THROW_CCE(); if (!equals(this.fbk_1, tmp0_other_with_cast.fbk_1)) return false; if (!(this.gbk_1 == tmp0_other_with_cast.gbk_1)) return false; if (!(this.hbk_1 == tmp0_other_with_cast.hbk_1)) return false; if (!(this.ibk_1 == tmp0_other_with_cast.ibk_1)) return false; return true; }; function Companion_13() { } var Companion_instance_14; function Companion_getInstance_16() { return Companion_instance_14; } function $serializer_12() { $serializer_instance_12 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseAssignmentSubmissionFileAndTransferJob', this, 2); tmp0_serialDesc.d4g('submissionFile', true); tmp0_serialDesc.d4g('transferJobItem', true); this.tju_1 = tmp0_serialDesc; } protoOf($serializer_12).a45 = function () { return this.tju_1; }; protoOf($serializer_12).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_71()), get_nullable($serializer_getInstance_113())]; }; protoOf($serializer_12).c45 = function (decoder) { var tmp0_desc = this.tju_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.s48(tmp0_desc); if (tmp6_input.h49()) { tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, $serializer_getInstance_71(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_113(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, $serializer_getInstance_71(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_113(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.t48(tmp0_desc); return CourseAssignmentSubmissionFileAndTransferJob_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_12).uju = function (encoder, value) { var tmp0_desc = this.tju_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.kbz_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_71(), value.kbz_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.lbz_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_113(), value.lbz_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_12).b45 = function (encoder, value) { return this.uju(encoder, value instanceof CourseAssignmentSubmissionFileAndTransferJob ? value : THROW_CCE()); }; var $serializer_instance_12; function $serializer_getInstance_12() { if ($serializer_instance_12 == null) new $serializer_12(); return $serializer_instance_12; } function CourseAssignmentSubmissionFileAndTransferJob_init_$Init$(seen1, submissionFile, transferJobItem, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_12().tju_1); } if (0 === (seen1 & 1)) $this.kbz_1 = null; else $this.kbz_1 = submissionFile; if (0 === (seen1 & 2)) $this.lbz_1 = null; else $this.lbz_1 = transferJobItem; return $this; } function CourseAssignmentSubmissionFileAndTransferJob_init_$Create$(seen1, submissionFile, transferJobItem, serializationConstructorMarker) { return CourseAssignmentSubmissionFileAndTransferJob_init_$Init$(seen1, submissionFile, transferJobItem, serializationConstructorMarker, objectCreate(protoOf(CourseAssignmentSubmissionFileAndTransferJob))); } function CourseAssignmentSubmissionFileAndTransferJob(submissionFile, transferJobItem) { submissionFile = submissionFile === VOID ? null : submissionFile; transferJobItem = transferJobItem === VOID ? null : transferJobItem; this.kbz_1 = submissionFile; this.lbz_1 = transferJobItem; } protoOf(CourseAssignmentSubmissionFileAndTransferJob).toString = function () { return 'CourseAssignmentSubmissionFileAndTransferJob(submissionFile=' + this.kbz_1 + ', transferJobItem=' + this.lbz_1 + ')'; }; protoOf(CourseAssignmentSubmissionFileAndTransferJob).hashCode = function () { var result = this.kbz_1 == null ? 0 : this.kbz_1.hashCode(); result = imul(result, 31) + (this.lbz_1 == null ? 0 : this.lbz_1.hashCode()) | 0; return result; }; protoOf(CourseAssignmentSubmissionFileAndTransferJob).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseAssignmentSubmissionFileAndTransferJob)) return false; var tmp0_other_with_cast = other instanceof CourseAssignmentSubmissionFileAndTransferJob ? other : THROW_CCE(); if (!equals(this.kbz_1, tmp0_other_with_cast.kbz_1)) return false; if (!equals(this.lbz_1, tmp0_other_with_cast.lbz_1)) return false; return true; }; function Companion_14() { } var Companion_instance_15; function Companion_getInstance_17() { return Companion_instance_15; } function $serializer_13() { $serializer_instance_13 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockAndAssignment', this, 2); tmp0_serialDesc.d4g('courseBlock', true); tmp0_serialDesc.d4g('assignment', true); this.vju_1 = tmp0_serialDesc; } protoOf($serializer_13).a45 = function () { return this.vju_1; }; protoOf($serializer_13).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_72()), get_nullable($serializer_getInstance_46())]; }; protoOf($serializer_13).c45 = function (decoder) { var tmp0_desc = this.vju_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.s48(tmp0_desc); if (tmp6_input.h49()) { tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, $serializer_getInstance_72(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_46(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, $serializer_getInstance_72(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_46(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.t48(tmp0_desc); return CourseBlockAndAssignment_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_13).wju = function (encoder, value) { var tmp0_desc = this.vju_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.icc_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_72(), value.icc_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.jcc_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_46(), value.jcc_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_13).b45 = function (encoder, value) { return this.wju(encoder, value instanceof CourseBlockAndAssignment ? value : THROW_CCE()); }; var $serializer_instance_13; function $serializer_getInstance_13() { if ($serializer_instance_13 == null) new $serializer_13(); return $serializer_instance_13; } function CourseBlockAndAssignment_init_$Init$(seen1, courseBlock, assignment, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_13().vju_1); } if (0 === (seen1 & 1)) $this.icc_1 = null; else $this.icc_1 = courseBlock; if (0 === (seen1 & 2)) $this.jcc_1 = null; else $this.jcc_1 = assignment; return $this; } function CourseBlockAndAssignment_init_$Create$(seen1, courseBlock, assignment, serializationConstructorMarker) { return CourseBlockAndAssignment_init_$Init$(seen1, courseBlock, assignment, serializationConstructorMarker, objectCreate(protoOf(CourseBlockAndAssignment))); } function CourseBlockAndAssignment(courseBlock, assignment) { courseBlock = courseBlock === VOID ? null : courseBlock; assignment = assignment === VOID ? null : assignment; this.icc_1 = courseBlock; this.jcc_1 = assignment; } protoOf(CourseBlockAndAssignment).toString = function () { return 'CourseBlockAndAssignment(courseBlock=' + this.icc_1 + ', assignment=' + this.jcc_1 + ')'; }; protoOf(CourseBlockAndAssignment).hashCode = function () { var result = this.icc_1 == null ? 0 : this.icc_1.hashCode(); result = imul(result, 31) + (this.jcc_1 == null ? 0 : this.jcc_1.hashCode()) | 0; return result; }; protoOf(CourseBlockAndAssignment).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseBlockAndAssignment)) return false; var tmp0_other_with_cast = other instanceof CourseBlockAndAssignment ? other : THROW_CCE(); if (!equals(this.icc_1, tmp0_other_with_cast.icc_1)) return false; if (!equals(this.jcc_1, tmp0_other_with_cast.jcc_1)) return false; return true; }; function Companion_15() { } var Companion_instance_16; function Companion_getInstance_18() { return Companion_instance_16; } function $serializer_14() { $serializer_instance_14 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockAndDbEntities', this, 6); tmp0_serialDesc.d4g('courseBlock', true); tmp0_serialDesc.d4g('courseBlockPicture', true); tmp0_serialDesc.d4g('contentEntry', true); tmp0_serialDesc.d4g('contentEntryLang', true); tmp0_serialDesc.d4g('assignment', true); tmp0_serialDesc.d4g('assignmentCourseGroupSetName', true); this.xju_1 = tmp0_serialDesc; } protoOf($serializer_14).a45 = function () { return this.xju_1; }; protoOf($serializer_14).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_72()), get_nullable($serializer_getInstance_73()), get_nullable($serializer_getInstance_57()), get_nullable($serializer_getInstance_88()), get_nullable($serializer_getInstance_46()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_14).c45 = function (decoder) { var tmp0_desc = this.xju_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_input = decoder.s48(tmp0_desc); if (tmp10_input.h49()) { tmp4_local0 = tmp10_input.g49(tmp0_desc, 0, $serializer_getInstance_72(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.g49(tmp0_desc, 1, $serializer_getInstance_73(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.g49(tmp0_desc, 2, $serializer_getInstance_57(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.g49(tmp0_desc, 3, $serializer_getInstance_88(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.g49(tmp0_desc, 4, $serializer_getInstance_46(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.g49(tmp0_desc, 0, $serializer_getInstance_72(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.g49(tmp0_desc, 1, $serializer_getInstance_73(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.g49(tmp0_desc, 2, $serializer_getInstance_57(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.g49(tmp0_desc, 3, $serializer_getInstance_88(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.g49(tmp0_desc, 4, $serializer_getInstance_46(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.t48(tmp0_desc); return CourseBlockAndDbEntities_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_14).yju = function (encoder, value) { var tmp0_desc = this.xju_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.wca_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_72(), value.wca_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.xca_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_73(), value.xca_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.yca_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, $serializer_getInstance_57(), value.yca_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.zca_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, $serializer_getInstance_88(), value.zca_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.acb_1 == null)) { tmp1_output.k4a(tmp0_desc, 4, $serializer_getInstance_46(), value.acb_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.bcb_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, StringSerializer_getInstance(), value.bcb_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_14).b45 = function (encoder, value) { return this.yju(encoder, value instanceof CourseBlockAndDbEntities ? value : THROW_CCE()); }; var $serializer_instance_14; function $serializer_getInstance_14() { if ($serializer_instance_14 == null) new $serializer_14(); return $serializer_instance_14; } function CourseBlockAndDbEntities_init_$Init$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryLang, assignment, assignmentCourseGroupSetName, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_14().xju_1); } if (0 === (seen1 & 1)) $this.wca_1 = null; else $this.wca_1 = courseBlock; if (0 === (seen1 & 2)) $this.xca_1 = null; else $this.xca_1 = courseBlockPicture; if (0 === (seen1 & 4)) $this.yca_1 = null; else $this.yca_1 = contentEntry; if (0 === (seen1 & 8)) $this.zca_1 = null; else $this.zca_1 = contentEntryLang; if (0 === (seen1 & 16)) $this.acb_1 = null; else $this.acb_1 = assignment; if (0 === (seen1 & 32)) $this.bcb_1 = null; else $this.bcb_1 = assignmentCourseGroupSetName; return $this; } function CourseBlockAndDbEntities_init_$Create$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryLang, assignment, assignmentCourseGroupSetName, serializationConstructorMarker) { return CourseBlockAndDbEntities_init_$Init$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryLang, assignment, assignmentCourseGroupSetName, serializationConstructorMarker, objectCreate(protoOf(CourseBlockAndDbEntities))); } function CourseBlockAndDbEntities(courseBlock, courseBlockPicture, contentEntry, contentEntryLang, assignment, assignmentCourseGroupSetName) { courseBlock = courseBlock === VOID ? null : courseBlock; courseBlockPicture = courseBlockPicture === VOID ? null : courseBlockPicture; contentEntry = contentEntry === VOID ? null : contentEntry; contentEntryLang = contentEntryLang === VOID ? null : contentEntryLang; assignment = assignment === VOID ? null : assignment; assignmentCourseGroupSetName = assignmentCourseGroupSetName === VOID ? null : assignmentCourseGroupSetName; this.wca_1 = courseBlock; this.xca_1 = courseBlockPicture; this.yca_1 = contentEntry; this.zca_1 = contentEntryLang; this.acb_1 = assignment; this.bcb_1 = assignmentCourseGroupSetName; } protoOf(CourseBlockAndDbEntities).toString = function () { return 'CourseBlockAndDbEntities(courseBlock=' + this.wca_1 + ', courseBlockPicture=' + this.xca_1 + ', contentEntry=' + this.yca_1 + ', contentEntryLang=' + this.zca_1 + ', assignment=' + this.acb_1 + ', assignmentCourseGroupSetName=' + this.bcb_1 + ')'; }; protoOf(CourseBlockAndDbEntities).hashCode = function () { var result = this.wca_1 == null ? 0 : this.wca_1.hashCode(); result = imul(result, 31) + (this.xca_1 == null ? 0 : this.xca_1.hashCode()) | 0; result = imul(result, 31) + (this.yca_1 == null ? 0 : this.yca_1.hashCode()) | 0; result = imul(result, 31) + (this.zca_1 == null ? 0 : this.zca_1.hashCode()) | 0; result = imul(result, 31) + (this.acb_1 == null ? 0 : this.acb_1.hashCode()) | 0; result = imul(result, 31) + (this.bcb_1 == null ? 0 : getStringHashCode(this.bcb_1)) | 0; return result; }; protoOf(CourseBlockAndDbEntities).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseBlockAndDbEntities)) return false; var tmp0_other_with_cast = other instanceof CourseBlockAndDbEntities ? other : THROW_CCE(); if (!equals(this.wca_1, tmp0_other_with_cast.wca_1)) return false; if (!equals(this.xca_1, tmp0_other_with_cast.xca_1)) return false; if (!equals(this.yca_1, tmp0_other_with_cast.yca_1)) return false; if (!equals(this.zca_1, tmp0_other_with_cast.zca_1)) return false; if (!equals(this.acb_1, tmp0_other_with_cast.acb_1)) return false; if (!(this.bcb_1 == tmp0_other_with_cast.bcb_1)) return false; return true; }; function Companion_16() { } var Companion_instance_17; function Companion_getInstance_19() { return Companion_instance_17; } function $serializer_15() { $serializer_instance_15 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockAndDisplayDetails', this, 4); tmp0_serialDesc.d4g('courseBlock', true); tmp0_serialDesc.d4g('courseBlockPicture', true); tmp0_serialDesc.d4g('contentEntry', true); tmp0_serialDesc.d4g('contentEntryPicture2', true); this.zju_1 = tmp0_serialDesc; } protoOf($serializer_15).a45 = function () { return this.zju_1; }; protoOf($serializer_15).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_72()), get_nullable($serializer_getInstance_73()), get_nullable($serializer_getInstance_57()), get_nullable($serializer_getInstance_62())]; }; protoOf($serializer_15).c45 = function (decoder) { var tmp0_desc = this.zju_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.s48(tmp0_desc); if (tmp8_input.h49()) { tmp4_local0 = tmp8_input.g49(tmp0_desc, 0, $serializer_getInstance_72(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.g49(tmp0_desc, 1, $serializer_getInstance_73(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, $serializer_getInstance_57(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, $serializer_getInstance_62(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.g49(tmp0_desc, 0, $serializer_getInstance_72(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.g49(tmp0_desc, 1, $serializer_getInstance_73(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, $serializer_getInstance_57(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, $serializer_getInstance_62(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.t48(tmp0_desc); return CourseBlockAndDisplayDetails_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_15).ajv = function (encoder, value) { var tmp0_desc = this.zju_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.ncb_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_72(), value.ncb_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.ocb_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_73(), value.ocb_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.pcb_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, $serializer_getInstance_57(), value.pcb_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.qcb_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, $serializer_getInstance_62(), value.qcb_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_15).b45 = function (encoder, value) { return this.ajv(encoder, value instanceof CourseBlockAndDisplayDetails ? value : THROW_CCE()); }; var $serializer_instance_15; function $serializer_getInstance_15() { if ($serializer_instance_15 == null) new $serializer_15(); return $serializer_instance_15; } function CourseBlockAndDisplayDetails_init_$Init$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture2, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_15().zju_1); } if (0 === (seen1 & 1)) $this.ncb_1 = null; else $this.ncb_1 = courseBlock; if (0 === (seen1 & 2)) $this.ocb_1 = null; else $this.ocb_1 = courseBlockPicture; if (0 === (seen1 & 4)) $this.pcb_1 = null; else $this.pcb_1 = contentEntry; if (0 === (seen1 & 8)) $this.qcb_1 = null; else $this.qcb_1 = contentEntryPicture2; return $this; } function CourseBlockAndDisplayDetails_init_$Create$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture2, serializationConstructorMarker) { return CourseBlockAndDisplayDetails_init_$Init$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture2, serializationConstructorMarker, objectCreate(protoOf(CourseBlockAndDisplayDetails))); } function CourseBlockAndDisplayDetails(courseBlock, courseBlockPicture, contentEntry, contentEntryPicture2) { courseBlock = courseBlock === VOID ? null : courseBlock; courseBlockPicture = courseBlockPicture === VOID ? null : courseBlockPicture; contentEntry = contentEntry === VOID ? null : contentEntry; contentEntryPicture2 = contentEntryPicture2 === VOID ? null : contentEntryPicture2; this.ncb_1 = courseBlock; this.ocb_1 = courseBlockPicture; this.pcb_1 = contentEntry; this.qcb_1 = contentEntryPicture2; } protoOf(CourseBlockAndDisplayDetails).toString = function () { return 'CourseBlockAndDisplayDetails(courseBlock=' + this.ncb_1 + ', courseBlockPicture=' + this.ocb_1 + ', contentEntry=' + this.pcb_1 + ', contentEntryPicture2=' + this.qcb_1 + ')'; }; protoOf(CourseBlockAndDisplayDetails).hashCode = function () { var result = this.ncb_1 == null ? 0 : this.ncb_1.hashCode(); result = imul(result, 31) + (this.ocb_1 == null ? 0 : this.ocb_1.hashCode()) | 0; result = imul(result, 31) + (this.pcb_1 == null ? 0 : this.pcb_1.hashCode()) | 0; result = imul(result, 31) + (this.qcb_1 == null ? 0 : this.qcb_1.hashCode()) | 0; return result; }; protoOf(CourseBlockAndDisplayDetails).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseBlockAndDisplayDetails)) return false; var tmp0_other_with_cast = other instanceof CourseBlockAndDisplayDetails ? other : THROW_CCE(); if (!equals(this.ncb_1, tmp0_other_with_cast.ncb_1)) return false; if (!equals(this.ocb_1, tmp0_other_with_cast.ocb_1)) return false; if (!equals(this.pcb_1, tmp0_other_with_cast.pcb_1)) return false; if (!equals(this.qcb_1, tmp0_other_with_cast.qcb_1)) return false; return true; }; function Companion_17() { Companion_instance_18 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.bjv_1 = [null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_93())]; } protoOf(Companion_17).x4r = function () { return $serializer_getInstance_16(); }; var Companion_instance_18; function Companion_getInstance_20() { if (Companion_instance_18 == null) new Companion_17(); return Companion_instance_18; } function $serializer_16() { $serializer_instance_16 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockAndEditEntities', this, 10); tmp0_serialDesc.d4g('courseBlock', false); tmp0_serialDesc.d4g('courseBlockPicture', true); tmp0_serialDesc.d4g('contentEntry', true); tmp0_serialDesc.d4g('contentEntryPicture', true); tmp0_serialDesc.d4g('contentJobItem', true); tmp0_serialDesc.d4g('contentJob', true); tmp0_serialDesc.d4g('contentEntryLang', true); tmp0_serialDesc.d4g('assignment', true); tmp0_serialDesc.d4g('assignmentCourseGroupSetName', true); tmp0_serialDesc.d4g('assignmentPeerAllocations', true); this.cjv_1 = tmp0_serialDesc; } protoOf($serializer_16).a45 = function () { return this.cjv_1; }; protoOf($serializer_16).u4g = function () { var tmp0_cached = Companion_getInstance_20().bjv_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_72(), get_nullable($serializer_getInstance_73()), get_nullable($serializer_getInstance_57()), get_nullable($serializer_getInstance_62()), get_nullable($serializer_getInstance_59()), get_nullable($serializer_getInstance_68()), get_nullable($serializer_getInstance_88()), get_nullable($serializer_getInstance_46()), get_nullable(StringSerializer_getInstance()), tmp0_cached[9]]; }; protoOf($serializer_16).c45 = function (decoder) { var tmp0_desc = this.cjv_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = null; var tmp12_local8 = null; var tmp13_local9 = null; var tmp14_input = decoder.s48(tmp0_desc); var tmp15_cached = Companion_getInstance_20().bjv_1; if (tmp14_input.h49()) { tmp4_local0 = tmp14_input.e49(tmp0_desc, 0, $serializer_getInstance_72(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp14_input.g49(tmp0_desc, 1, $serializer_getInstance_73(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp14_input.g49(tmp0_desc, 2, $serializer_getInstance_57(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp14_input.g49(tmp0_desc, 3, $serializer_getInstance_62(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp14_input.g49(tmp0_desc, 4, $serializer_getInstance_59(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp14_input.g49(tmp0_desc, 5, $serializer_getInstance_68(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp14_input.g49(tmp0_desc, 6, $serializer_getInstance_88(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp14_input.g49(tmp0_desc, 7, $serializer_getInstance_46(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp14_input.g49(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp14_input.e49(tmp0_desc, 9, tmp15_cached[9], tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; } else while (tmp1_flag) { tmp2_index = tmp14_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp14_input.e49(tmp0_desc, 0, $serializer_getInstance_72(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp14_input.g49(tmp0_desc, 1, $serializer_getInstance_73(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp14_input.g49(tmp0_desc, 2, $serializer_getInstance_57(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp14_input.g49(tmp0_desc, 3, $serializer_getInstance_62(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp14_input.g49(tmp0_desc, 4, $serializer_getInstance_59(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp14_input.g49(tmp0_desc, 5, $serializer_getInstance_68(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp14_input.g49(tmp0_desc, 6, $serializer_getInstance_88(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp14_input.g49(tmp0_desc, 7, $serializer_getInstance_46(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp14_input.g49(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp14_input.e49(tmp0_desc, 9, tmp15_cached[9], tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp14_input.t48(tmp0_desc); return CourseBlockAndEditEntities_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); }; protoOf($serializer_16).djv = function (encoder, value) { var tmp0_desc = this.cjv_1; var tmp1_output = encoder.s48(tmp0_desc); var tmp2_cached = Companion_getInstance_20().bjv_1; tmp1_output.i4a(tmp0_desc, 0, $serializer_getInstance_72(), value.ejv_1); if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.fjv_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_73(), value.fjv_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.gjv_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, $serializer_getInstance_57(), value.gjv_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.hjv_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, $serializer_getInstance_62(), value.hjv_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.ijv_1 == null)) { tmp1_output.k4a(tmp0_desc, 4, $serializer_getInstance_59(), value.ijv_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.jjv_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, $serializer_getInstance_68(), value.jjv_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.kjv_1 == null)) { tmp1_output.k4a(tmp0_desc, 6, $serializer_getInstance_88(), value.kjv_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.ljv_1 == null)) { tmp1_output.k4a(tmp0_desc, 7, $serializer_getInstance_46(), value.ljv_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !(value.mjv_1 == null)) { tmp1_output.k4a(tmp0_desc, 8, StringSerializer_getInstance(), value.mjv_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !equals(value.njv_1, emptyList())) { tmp1_output.i4a(tmp0_desc, 9, tmp2_cached[9], value.njv_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_16).b45 = function (encoder, value) { return this.djv(encoder, value instanceof CourseBlockAndEditEntities ? value : THROW_CCE()); }; var $serializer_instance_16; function $serializer_getInstance_16() { if ($serializer_instance_16 == null) new $serializer_16(); return $serializer_instance_16; } function CourseBlockAndEditEntities_init_$Init$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_16().cjv_1); } $this.ejv_1 = courseBlock; if (0 === (seen1 & 2)) $this.fjv_1 = null; else $this.fjv_1 = courseBlockPicture; if (0 === (seen1 & 4)) $this.gjv_1 = null; else $this.gjv_1 = contentEntry; if (0 === (seen1 & 8)) $this.hjv_1 = null; else $this.hjv_1 = contentEntryPicture; if (0 === (seen1 & 16)) $this.ijv_1 = null; else $this.ijv_1 = contentJobItem; if (0 === (seen1 & 32)) $this.jjv_1 = null; else $this.jjv_1 = contentJob; if (0 === (seen1 & 64)) $this.kjv_1 = null; else $this.kjv_1 = contentEntryLang; if (0 === (seen1 & 128)) $this.ljv_1 = null; else $this.ljv_1 = assignment; if (0 === (seen1 & 256)) $this.mjv_1 = null; else $this.mjv_1 = assignmentCourseGroupSetName; if (0 === (seen1 & 512)) $this.njv_1 = emptyList(); else $this.njv_1 = assignmentPeerAllocations; return $this; } function CourseBlockAndEditEntities_init_$Create$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations, serializationConstructorMarker) { return CourseBlockAndEditEntities_init_$Init$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations, serializationConstructorMarker, objectCreate(protoOf(CourseBlockAndEditEntities))); } function CourseBlockAndEditEntities(courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations) { Companion_getInstance_20(); courseBlockPicture = courseBlockPicture === VOID ? null : courseBlockPicture; contentEntry = contentEntry === VOID ? null : contentEntry; contentEntryPicture = contentEntryPicture === VOID ? null : contentEntryPicture; contentJobItem = contentJobItem === VOID ? null : contentJobItem; contentJob = contentJob === VOID ? null : contentJob; contentEntryLang = contentEntryLang === VOID ? null : contentEntryLang; assignment = assignment === VOID ? null : assignment; assignmentCourseGroupSetName = assignmentCourseGroupSetName === VOID ? null : assignmentCourseGroupSetName; assignmentPeerAllocations = assignmentPeerAllocations === VOID ? emptyList() : assignmentPeerAllocations; this.ejv_1 = courseBlock; this.fjv_1 = courseBlockPicture; this.gjv_1 = contentEntry; this.hjv_1 = contentEntryPicture; this.ijv_1 = contentJobItem; this.jjv_1 = contentJob; this.kjv_1 = contentEntryLang; this.ljv_1 = assignment; this.mjv_1 = assignmentCourseGroupSetName; this.njv_1 = assignmentPeerAllocations; } protoOf(CourseBlockAndEditEntities).ojv = function () { return new ContentEntryAndContentJob(this.gjv_1, this.jjv_1, this.ijv_1, this.hjv_1); }; protoOf(CourseBlockAndEditEntities).pjv = function (courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations) { return new CourseBlockAndEditEntities(courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations); }; protoOf(CourseBlockAndEditEntities).qjv = function (courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations, $super) { courseBlock = courseBlock === VOID ? this.ejv_1 : courseBlock; courseBlockPicture = courseBlockPicture === VOID ? this.fjv_1 : courseBlockPicture; contentEntry = contentEntry === VOID ? this.gjv_1 : contentEntry; contentEntryPicture = contentEntryPicture === VOID ? this.hjv_1 : contentEntryPicture; contentJobItem = contentJobItem === VOID ? this.ijv_1 : contentJobItem; contentJob = contentJob === VOID ? this.jjv_1 : contentJob; contentEntryLang = contentEntryLang === VOID ? this.kjv_1 : contentEntryLang; assignment = assignment === VOID ? this.ljv_1 : assignment; assignmentCourseGroupSetName = assignmentCourseGroupSetName === VOID ? this.mjv_1 : assignmentCourseGroupSetName; assignmentPeerAllocations = assignmentPeerAllocations === VOID ? this.njv_1 : assignmentPeerAllocations; return $super === VOID ? this.pjv(courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations) : $super.pjv.call(this, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations); }; protoOf(CourseBlockAndEditEntities).toString = function () { return 'CourseBlockAndEditEntities(courseBlock=' + this.ejv_1 + ', courseBlockPicture=' + this.fjv_1 + ', contentEntry=' + this.gjv_1 + ', contentEntryPicture=' + this.hjv_1 + ', contentJobItem=' + this.ijv_1 + ', contentJob=' + this.jjv_1 + ', contentEntryLang=' + this.kjv_1 + ', assignment=' + this.ljv_1 + ', assignmentCourseGroupSetName=' + this.mjv_1 + ', assignmentPeerAllocations=' + this.njv_1 + ')'; }; protoOf(CourseBlockAndEditEntities).hashCode = function () { var result = this.ejv_1.hashCode(); result = imul(result, 31) + (this.fjv_1 == null ? 0 : this.fjv_1.hashCode()) | 0; result = imul(result, 31) + (this.gjv_1 == null ? 0 : this.gjv_1.hashCode()) | 0; result = imul(result, 31) + (this.hjv_1 == null ? 0 : this.hjv_1.hashCode()) | 0; result = imul(result, 31) + (this.ijv_1 == null ? 0 : this.ijv_1.hashCode()) | 0; result = imul(result, 31) + (this.jjv_1 == null ? 0 : this.jjv_1.hashCode()) | 0; result = imul(result, 31) + (this.kjv_1 == null ? 0 : this.kjv_1.hashCode()) | 0; result = imul(result, 31) + (this.ljv_1 == null ? 0 : this.ljv_1.hashCode()) | 0; result = imul(result, 31) + (this.mjv_1 == null ? 0 : getStringHashCode(this.mjv_1)) | 0; result = imul(result, 31) + hashCode(this.njv_1) | 0; return result; }; protoOf(CourseBlockAndEditEntities).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseBlockAndEditEntities)) return false; var tmp0_other_with_cast = other instanceof CourseBlockAndEditEntities ? other : THROW_CCE(); if (!this.ejv_1.equals(tmp0_other_with_cast.ejv_1)) return false; if (!equals(this.fjv_1, tmp0_other_with_cast.fjv_1)) return false; if (!equals(this.gjv_1, tmp0_other_with_cast.gjv_1)) return false; if (!equals(this.hjv_1, tmp0_other_with_cast.hjv_1)) return false; if (!equals(this.ijv_1, tmp0_other_with_cast.ijv_1)) return false; if (!equals(this.jjv_1, tmp0_other_with_cast.jjv_1)) return false; if (!equals(this.kjv_1, tmp0_other_with_cast.kjv_1)) return false; if (!equals(this.ljv_1, tmp0_other_with_cast.ljv_1)) return false; if (!(this.mjv_1 == tmp0_other_with_cast.mjv_1)) return false; if (!equals(this.njv_1, tmp0_other_with_cast.njv_1)) return false; return true; }; function Companion_18() { } var Companion_instance_19; function Companion_getInstance_21() { return Companion_instance_19; } function $serializer_17() { $serializer_instance_17 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockAndGradebookDisplayDetails', this, 4); tmp0_serialDesc.d4g('block', true); tmp0_serialDesc.d4g('courseBlockPicture', true); tmp0_serialDesc.d4g('contentEntry', true); tmp0_serialDesc.d4g('contentEntryPicture2', true); this.rjv_1 = tmp0_serialDesc; } protoOf($serializer_17).a45 = function () { return this.rjv_1; }; protoOf($serializer_17).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_72()), get_nullable($serializer_getInstance_73()), get_nullable($serializer_getInstance_57()), get_nullable($serializer_getInstance_62())]; }; protoOf($serializer_17).c45 = function (decoder) { var tmp0_desc = this.rjv_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.s48(tmp0_desc); if (tmp8_input.h49()) { tmp4_local0 = tmp8_input.g49(tmp0_desc, 0, $serializer_getInstance_72(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.g49(tmp0_desc, 1, $serializer_getInstance_73(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, $serializer_getInstance_57(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, $serializer_getInstance_62(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.g49(tmp0_desc, 0, $serializer_getInstance_72(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.g49(tmp0_desc, 1, $serializer_getInstance_73(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, $serializer_getInstance_57(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, $serializer_getInstance_62(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.t48(tmp0_desc); return CourseBlockAndGradebookDisplayDetails_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_17).sjv = function (encoder, value) { var tmp0_desc = this.rjv_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.vcc_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_72(), value.vcc_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.wcc_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_73(), value.wcc_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.xcc_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, $serializer_getInstance_57(), value.xcc_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.ycc_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, $serializer_getInstance_62(), value.ycc_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_17).b45 = function (encoder, value) { return this.sjv(encoder, value instanceof CourseBlockAndGradebookDisplayDetails ? value : THROW_CCE()); }; var $serializer_instance_17; function $serializer_getInstance_17() { if ($serializer_instance_17 == null) new $serializer_17(); return $serializer_instance_17; } function CourseBlockAndGradebookDisplayDetails_init_$Init$(seen1, block, courseBlockPicture, contentEntry, contentEntryPicture2, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_17().rjv_1); } if (0 === (seen1 & 1)) $this.vcc_1 = null; else $this.vcc_1 = block; if (0 === (seen1 & 2)) $this.wcc_1 = null; else $this.wcc_1 = courseBlockPicture; if (0 === (seen1 & 4)) $this.xcc_1 = null; else $this.xcc_1 = contentEntry; if (0 === (seen1 & 8)) $this.ycc_1 = null; else $this.ycc_1 = contentEntryPicture2; return $this; } function CourseBlockAndGradebookDisplayDetails_init_$Create$(seen1, block, courseBlockPicture, contentEntry, contentEntryPicture2, serializationConstructorMarker) { return CourseBlockAndGradebookDisplayDetails_init_$Init$(seen1, block, courseBlockPicture, contentEntry, contentEntryPicture2, serializationConstructorMarker, objectCreate(protoOf(CourseBlockAndGradebookDisplayDetails))); } function CourseBlockAndGradebookDisplayDetails(block, courseBlockPicture, contentEntry, contentEntryPicture2) { block = block === VOID ? null : block; courseBlockPicture = courseBlockPicture === VOID ? null : courseBlockPicture; contentEntry = contentEntry === VOID ? null : contentEntry; contentEntryPicture2 = contentEntryPicture2 === VOID ? null : contentEntryPicture2; this.vcc_1 = block; this.wcc_1 = courseBlockPicture; this.xcc_1 = contentEntry; this.ycc_1 = contentEntryPicture2; } protoOf(CourseBlockAndGradebookDisplayDetails).toString = function () { return 'CourseBlockAndGradebookDisplayDetails(block=' + this.vcc_1 + ', courseBlockPicture=' + this.wcc_1 + ', contentEntry=' + this.xcc_1 + ', contentEntryPicture2=' + this.ycc_1 + ')'; }; protoOf(CourseBlockAndGradebookDisplayDetails).hashCode = function () { var result = this.vcc_1 == null ? 0 : this.vcc_1.hashCode(); result = imul(result, 31) + (this.wcc_1 == null ? 0 : this.wcc_1.hashCode()) | 0; result = imul(result, 31) + (this.xcc_1 == null ? 0 : this.xcc_1.hashCode()) | 0; result = imul(result, 31) + (this.ycc_1 == null ? 0 : this.ycc_1.hashCode()) | 0; return result; }; protoOf(CourseBlockAndGradebookDisplayDetails).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseBlockAndGradebookDisplayDetails)) return false; var tmp0_other_with_cast = other instanceof CourseBlockAndGradebookDisplayDetails ? other : THROW_CCE(); if (!equals(this.vcc_1, tmp0_other_with_cast.vcc_1)) return false; if (!equals(this.wcc_1, tmp0_other_with_cast.wcc_1)) return false; if (!equals(this.xcc_1, tmp0_other_with_cast.xcc_1)) return false; if (!equals(this.ycc_1, tmp0_other_with_cast.ycc_1)) return false; return true; }; function Companion_19() { } var Companion_instance_20; function Companion_getInstance_22() { return Companion_instance_20; } function $serializer_18() { $serializer_instance_18 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockAndPicture', this, 2); tmp0_serialDesc.d4g('block', true); tmp0_serialDesc.d4g('picture', true); this.tjv_1 = tmp0_serialDesc; } protoOf($serializer_18).a45 = function () { return this.tjv_1; }; protoOf($serializer_18).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_72()), get_nullable($serializer_getInstance_73())]; }; protoOf($serializer_18).c45 = function (decoder) { var tmp0_desc = this.tjv_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.s48(tmp0_desc); if (tmp6_input.h49()) { tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, $serializer_getInstance_72(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_73(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, $serializer_getInstance_72(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_73(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.t48(tmp0_desc); return CourseBlockAndPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_18).ujv = function (encoder, value) { var tmp0_desc = this.tjv_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.jca_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_72(), value.jca_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.kca_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_73(), value.kca_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_18).b45 = function (encoder, value) { return this.ujv(encoder, value instanceof CourseBlockAndPicture ? value : THROW_CCE()); }; var $serializer_instance_18; function $serializer_getInstance_18() { if ($serializer_instance_18 == null) new $serializer_18(); return $serializer_instance_18; } function CourseBlockAndPicture_init_$Init$(seen1, block, picture, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_18().tjv_1); } if (0 === (seen1 & 1)) $this.jca_1 = null; else $this.jca_1 = block; if (0 === (seen1 & 2)) $this.kca_1 = null; else $this.kca_1 = picture; return $this; } function CourseBlockAndPicture_init_$Create$(seen1, block, picture, serializationConstructorMarker) { return CourseBlockAndPicture_init_$Init$(seen1, block, picture, serializationConstructorMarker, objectCreate(protoOf(CourseBlockAndPicture))); } function CourseBlockAndPicture(block, picture) { block = block === VOID ? null : block; picture = picture === VOID ? null : picture; this.jca_1 = block; this.kca_1 = picture; } protoOf(CourseBlockAndPicture).toString = function () { return 'CourseBlockAndPicture(block=' + this.jca_1 + ', picture=' + this.kca_1 + ')'; }; protoOf(CourseBlockAndPicture).hashCode = function () { var result = this.jca_1 == null ? 0 : this.jca_1.hashCode(); result = imul(result, 31) + (this.kca_1 == null ? 0 : this.kca_1.hashCode()) | 0; return result; }; protoOf(CourseBlockAndPicture).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseBlockAndPicture)) return false; var tmp0_other_with_cast = other instanceof CourseBlockAndPicture ? other : THROW_CCE(); if (!equals(this.jca_1, tmp0_other_with_cast.jca_1)) return false; if (!equals(this.kca_1, tmp0_other_with_cast.kca_1)) return false; return true; }; function Companion_20() { } var Companion_instance_21; function Companion_getInstance_23() { return Companion_instance_21; } function $serializer_19() { $serializer_instance_19 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockUidAndClazzUid', this, 2); tmp0_serialDesc.d4g('clazzUid', true); tmp0_serialDesc.d4g('courseBlockUid', true); this.vjv_1 = tmp0_serialDesc; } protoOf($serializer_19).a45 = function () { return this.vjv_1; }; protoOf($serializer_19).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_19).c45 = function (decoder) { var tmp0_desc = this.vjv_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_input = decoder.s48(tmp0_desc); if (tmp6_input.h49()) { tmp4_local0 = tmp6_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.t48(tmp0_desc); return CourseBlockUidAndClazzUid_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_19).wjv = function (encoder, value) { var tmp0_desc = this.vjv_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.gcc_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.gcc_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.hcc_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.hcc_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_19).b45 = function (encoder, value) { return this.wjv(encoder, value instanceof CourseBlockUidAndClazzUid ? value : THROW_CCE()); }; var $serializer_instance_19; function $serializer_getInstance_19() { if ($serializer_instance_19 == null) new $serializer_19(); return $serializer_instance_19; } function CourseBlockUidAndClazzUid_init_$Init$(seen1, clazzUid, courseBlockUid, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_19().vjv_1); } if (0 === (seen1 & 1)) $this.gcc_1 = new Long(0, 0); else $this.gcc_1 = clazzUid; if (0 === (seen1 & 2)) $this.hcc_1 = new Long(0, 0); else $this.hcc_1 = courseBlockUid; return $this; } function CourseBlockUidAndClazzUid_init_$Create$(seen1, clazzUid, courseBlockUid, serializationConstructorMarker) { return CourseBlockUidAndClazzUid_init_$Init$(seen1, clazzUid, courseBlockUid, serializationConstructorMarker, objectCreate(protoOf(CourseBlockUidAndClazzUid))); } function CourseBlockUidAndClazzUid(clazzUid, courseBlockUid) { clazzUid = clazzUid === VOID ? new Long(0, 0) : clazzUid; courseBlockUid = courseBlockUid === VOID ? new Long(0, 0) : courseBlockUid; this.gcc_1 = clazzUid; this.hcc_1 = courseBlockUid; } protoOf(CourseBlockUidAndClazzUid).toString = function () { return 'CourseBlockUidAndClazzUid(clazzUid=' + this.gcc_1.toString() + ', courseBlockUid=' + this.hcc_1.toString() + ')'; }; protoOf(CourseBlockUidAndClazzUid).hashCode = function () { var result = this.gcc_1.hashCode(); result = imul(result, 31) + this.hcc_1.hashCode() | 0; return result; }; protoOf(CourseBlockUidAndClazzUid).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseBlockUidAndClazzUid)) return false; var tmp0_other_with_cast = other instanceof CourseBlockUidAndClazzUid ? other : THROW_CCE(); if (!this.gcc_1.equals(tmp0_other_with_cast.gcc_1)) return false; if (!this.hcc_1.equals(tmp0_other_with_cast.hcc_1)) return false; return true; }; function Companion_21() { } var Companion_instance_22; function Companion_getInstance_24() { return Companion_instance_22; } function $serializer_20() { $serializer_instance_20 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseGroupMemberAndPerson', this, 2); tmp0_serialDesc.d4g('courseGroupMember', true); tmp0_serialDesc.d4g('person', true); this.xjv_1 = tmp0_serialDesc; } protoOf($serializer_20).a45 = function () { return this.xjv_1; }; protoOf($serializer_20).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_74()), get_nullable($serializer_getInstance_94())]; }; protoOf($serializer_20).c45 = function (decoder) { var tmp0_desc = this.xjv_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.s48(tmp0_desc); if (tmp6_input.h49()) { tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, $serializer_getInstance_74(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_94(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, $serializer_getInstance_74(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_94(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.t48(tmp0_desc); return CourseGroupMemberAndPerson_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_20).yjv = function (encoder, value) { var tmp0_desc = this.xjv_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.pct_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_74(), value.pct_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.qct_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_94(), value.qct_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_20).b45 = function (encoder, value) { return this.yjv(encoder, value instanceof CourseGroupMemberAndPerson ? value : THROW_CCE()); }; var $serializer_instance_20; function $serializer_getInstance_20() { if ($serializer_instance_20 == null) new $serializer_20(); return $serializer_instance_20; } function CourseGroupMemberAndPerson_init_$Init$(seen1, courseGroupMember, person, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_20().xjv_1); } if (0 === (seen1 & 1)) $this.pct_1 = null; else $this.pct_1 = courseGroupMember; if (0 === (seen1 & 2)) $this.qct_1 = null; else $this.qct_1 = person; return $this; } function CourseGroupMemberAndPerson_init_$Create$(seen1, courseGroupMember, person, serializationConstructorMarker) { return CourseGroupMemberAndPerson_init_$Init$(seen1, courseGroupMember, person, serializationConstructorMarker, objectCreate(protoOf(CourseGroupMemberAndPerson))); } function CourseGroupMemberAndPerson(courseGroupMember, person) { courseGroupMember = courseGroupMember === VOID ? null : courseGroupMember; person = person === VOID ? null : person; this.pct_1 = courseGroupMember; this.qct_1 = person; } protoOf(CourseGroupMemberAndPerson).toString = function () { return 'CourseGroupMemberAndPerson(courseGroupMember=' + this.pct_1 + ', person=' + this.qct_1 + ')'; }; protoOf(CourseGroupMemberAndPerson).hashCode = function () { var result = this.pct_1 == null ? 0 : this.pct_1.hashCode(); result = imul(result, 31) + (this.qct_1 == null ? 0 : this.qct_1.hashCode()) | 0; return result; }; protoOf(CourseGroupMemberAndPerson).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseGroupMemberAndPerson)) return false; var tmp0_other_with_cast = other instanceof CourseGroupMemberAndPerson ? other : THROW_CCE(); if (!equals(this.pct_1, tmp0_other_with_cast.pct_1)) return false; if (!equals(this.qct_1, tmp0_other_with_cast.qct_1)) return false; return true; }; function Companion_22() { } var Companion_instance_23; function Companion_getInstance_25() { return Companion_instance_23; } function $serializer_21() { $serializer_instance_21 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseNameAndPersonName', this, 3); tmp0_serialDesc.d4g('clazzName', true); tmp0_serialDesc.d4g('firstNames', true); tmp0_serialDesc.d4g('lastName', true); this.zjv_1 = tmp0_serialDesc; } protoOf($serializer_21).a45 = function () { return this.zjv_1; }; protoOf($serializer_21).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_21).c45 = function (decoder) { var tmp0_desc = this.zjv_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_input = decoder.s48(tmp0_desc); if (tmp7_input.h49()) { tmp4_local0 = tmp7_input.g49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.g49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.t48(tmp0_desc); return CourseNameAndPersonName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_21).ajw = function (encoder, value) { var tmp0_desc = this.zjv_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.x9a_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, StringSerializer_getInstance(), value.x9a_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.y9a_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.y9a_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.z9a_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.z9a_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_21).b45 = function (encoder, value) { return this.ajw(encoder, value instanceof CourseNameAndPersonName ? value : THROW_CCE()); }; var $serializer_instance_21; function $serializer_getInstance_21() { if ($serializer_instance_21 == null) new $serializer_21(); return $serializer_instance_21; } function CourseNameAndPersonName_init_$Init$(seen1, clazzName, firstNames, lastName, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_21().zjv_1); } if (0 === (seen1 & 1)) $this.x9a_1 = null; else $this.x9a_1 = clazzName; if (0 === (seen1 & 2)) $this.y9a_1 = null; else $this.y9a_1 = firstNames; if (0 === (seen1 & 4)) $this.z9a_1 = null; else $this.z9a_1 = lastName; return $this; } function CourseNameAndPersonName_init_$Create$(seen1, clazzName, firstNames, lastName, serializationConstructorMarker) { return CourseNameAndPersonName_init_$Init$(seen1, clazzName, firstNames, lastName, serializationConstructorMarker, objectCreate(protoOf(CourseNameAndPersonName))); } function CourseNameAndPersonName(clazzName, firstNames, lastName) { clazzName = clazzName === VOID ? null : clazzName; firstNames = firstNames === VOID ? null : firstNames; lastName = lastName === VOID ? null : lastName; this.x9a_1 = clazzName; this.y9a_1 = firstNames; this.z9a_1 = lastName; } protoOf(CourseNameAndPersonName).toString = function () { return 'CourseNameAndPersonName(clazzName=' + this.x9a_1 + ', firstNames=' + this.y9a_1 + ', lastName=' + this.z9a_1 + ')'; }; protoOf(CourseNameAndPersonName).hashCode = function () { var result = this.x9a_1 == null ? 0 : getStringHashCode(this.x9a_1); result = imul(result, 31) + (this.y9a_1 == null ? 0 : getStringHashCode(this.y9a_1)) | 0; result = imul(result, 31) + (this.z9a_1 == null ? 0 : getStringHashCode(this.z9a_1)) | 0; return result; }; protoOf(CourseNameAndPersonName).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseNameAndPersonName)) return false; var tmp0_other_with_cast = other instanceof CourseNameAndPersonName ? other : THROW_CCE(); if (!(this.x9a_1 == tmp0_other_with_cast.x9a_1)) return false; if (!(this.y9a_1 == tmp0_other_with_cast.y9a_1)) return false; if (!(this.z9a_1 == tmp0_other_with_cast.z9a_1)) return false; return true; }; function CoursePermissionAndListDetail(coursePermission, person, personPicture) { coursePermission = coursePermission === VOID ? null : coursePermission; person = person === VOID ? null : person; personPicture = personPicture === VOID ? null : personPicture; this.vd8_1 = coursePermission; this.wd8_1 = person; this.xd8_1 = personPicture; } protoOf(CoursePermissionAndListDetail).toString = function () { return 'CoursePermissionAndListDetail(coursePermission=' + this.vd8_1 + ', person=' + this.wd8_1 + ', personPicture=' + this.xd8_1 + ')'; }; protoOf(CoursePermissionAndListDetail).hashCode = function () { var result = this.vd8_1 == null ? 0 : this.vd8_1.hashCode(); result = imul(result, 31) + (this.wd8_1 == null ? 0 : this.wd8_1.hashCode()) | 0; result = imul(result, 31) + (this.xd8_1 == null ? 0 : this.xd8_1.hashCode()) | 0; return result; }; protoOf(CoursePermissionAndListDetail).equals = function (other) { if (this === other) return true; if (!(other instanceof CoursePermissionAndListDetail)) return false; var tmp0_other_with_cast = other instanceof CoursePermissionAndListDetail ? other : THROW_CCE(); if (!equals(this.vd8_1, tmp0_other_with_cast.vd8_1)) return false; if (!equals(this.wd8_1, tmp0_other_with_cast.wd8_1)) return false; if (!equals(this.xd8_1, tmp0_other_with_cast.xd8_1)) return false; return true; }; function Companion_23() { } var Companion_instance_24; function Companion_getInstance_26() { return Companion_instance_24; } function $serializer_22() { $serializer_instance_22 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.DiscussionPostAndPosterNames', this, 4); tmp0_serialDesc.d4g('discussionPost', true); tmp0_serialDesc.d4g('firstNames', true); tmp0_serialDesc.d4g('lastName', true); tmp0_serialDesc.d4g('personPictureUri', true); this.bjw_1 = tmp0_serialDesc; } protoOf($serializer_22).a45 = function () { return this.bjw_1; }; protoOf($serializer_22).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_81()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_22).c45 = function (decoder) { var tmp0_desc = this.bjw_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.s48(tmp0_desc); if (tmp8_input.h49()) { tmp4_local0 = tmp8_input.g49(tmp0_desc, 0, $serializer_getInstance_81(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.g49(tmp0_desc, 0, $serializer_getInstance_81(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.t48(tmp0_desc); return DiscussionPostAndPosterNames_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_22).cjw = function (encoder, value) { var tmp0_desc = this.bjw_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.bed_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_81(), value.bed_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.ced_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.ced_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.ded_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.ded_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.eed_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.eed_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_22).b45 = function (encoder, value) { return this.cjw(encoder, value instanceof DiscussionPostAndPosterNames ? value : THROW_CCE()); }; var $serializer_instance_22; function $serializer_getInstance_22() { if ($serializer_instance_22 == null) new $serializer_22(); return $serializer_instance_22; } function DiscussionPostAndPosterNames_init_$Init$(seen1, discussionPost, firstNames, lastName, personPictureUri, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_22().bjw_1); } if (0 === (seen1 & 1)) $this.bed_1 = null; else $this.bed_1 = discussionPost; if (0 === (seen1 & 2)) $this.ced_1 = null; else $this.ced_1 = firstNames; if (0 === (seen1 & 4)) $this.ded_1 = null; else $this.ded_1 = lastName; if (0 === (seen1 & 8)) $this.eed_1 = null; else $this.eed_1 = personPictureUri; return $this; } function DiscussionPostAndPosterNames_init_$Create$(seen1, discussionPost, firstNames, lastName, personPictureUri, serializationConstructorMarker) { return DiscussionPostAndPosterNames_init_$Init$(seen1, discussionPost, firstNames, lastName, personPictureUri, serializationConstructorMarker, objectCreate(protoOf(DiscussionPostAndPosterNames))); } function DiscussionPostAndPosterNames(discussionPost, firstNames, lastName, personPictureUri) { discussionPost = discussionPost === VOID ? null : discussionPost; firstNames = firstNames === VOID ? null : firstNames; lastName = lastName === VOID ? null : lastName; personPictureUri = personPictureUri === VOID ? null : personPictureUri; this.bed_1 = discussionPost; this.ced_1 = firstNames; this.ded_1 = lastName; this.eed_1 = personPictureUri; } protoOf(DiscussionPostAndPosterNames).toString = function () { return 'DiscussionPostAndPosterNames(discussionPost=' + this.bed_1 + ', firstNames=' + this.ced_1 + ', lastName=' + this.ded_1 + ', personPictureUri=' + this.eed_1 + ')'; }; protoOf(DiscussionPostAndPosterNames).hashCode = function () { var result = this.bed_1 == null ? 0 : hashCode(this.bed_1); result = imul(result, 31) + (this.ced_1 == null ? 0 : getStringHashCode(this.ced_1)) | 0; result = imul(result, 31) + (this.ded_1 == null ? 0 : getStringHashCode(this.ded_1)) | 0; result = imul(result, 31) + (this.eed_1 == null ? 0 : getStringHashCode(this.eed_1)) | 0; return result; }; protoOf(DiscussionPostAndPosterNames).equals = function (other) { if (this === other) return true; if (!(other instanceof DiscussionPostAndPosterNames)) return false; var tmp0_other_with_cast = other instanceof DiscussionPostAndPosterNames ? other : THROW_CCE(); if (!equals(this.bed_1, tmp0_other_with_cast.bed_1)) return false; if (!(this.ced_1 == tmp0_other_with_cast.ced_1)) return false; if (!(this.ded_1 == tmp0_other_with_cast.ded_1)) return false; if (!(this.eed_1 == tmp0_other_with_cast.eed_1)) return false; return true; }; function Companion_24() { } var Companion_instance_25; function Companion_getInstance_27() { return Companion_instance_25; } function $serializer_23() { $serializer_instance_23 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.EditAndViewPermission', this, 2); tmp0_serialDesc.d4g('hasViewPermission', true); tmp0_serialDesc.d4g('hasEditPermission', true); this.djw_1 = tmp0_serialDesc; } protoOf($serializer_23).a45 = function () { return this.djw_1; }; protoOf($serializer_23).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_23).c45 = function (decoder) { var tmp0_desc = this.djw_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = false; var tmp5_local1 = false; var tmp6_input = decoder.s48(tmp0_desc); if (tmp6_input.h49()) { tmp4_local0 = tmp6_input.u48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.u48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.u48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.u48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.t48(tmp0_desc); return EditAndViewPermission_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_23).ejw = function (encoder, value) { var tmp0_desc = this.djw_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.hhq_1 === false)) { tmp1_output.y49(tmp0_desc, 0, value.hhq_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.ihq_1 === false)) { tmp1_output.y49(tmp0_desc, 1, value.ihq_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_23).b45 = function (encoder, value) { return this.ejw(encoder, value instanceof EditAndViewPermission ? value : THROW_CCE()); }; var $serializer_instance_23; function $serializer_getInstance_23() { if ($serializer_instance_23 == null) new $serializer_23(); return $serializer_instance_23; } function EditAndViewPermission_init_$Init$(seen1, hasViewPermission, hasEditPermission, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_23().djw_1); } if (0 === (seen1 & 1)) $this.hhq_1 = false; else $this.hhq_1 = hasViewPermission; if (0 === (seen1 & 2)) $this.ihq_1 = false; else $this.ihq_1 = hasEditPermission; return $this; } function EditAndViewPermission_init_$Create$(seen1, hasViewPermission, hasEditPermission, serializationConstructorMarker) { return EditAndViewPermission_init_$Init$(seen1, hasViewPermission, hasEditPermission, serializationConstructorMarker, objectCreate(protoOf(EditAndViewPermission))); } function EditAndViewPermission(hasViewPermission, hasEditPermission) { hasViewPermission = hasViewPermission === VOID ? false : hasViewPermission; hasEditPermission = hasEditPermission === VOID ? false : hasEditPermission; this.hhq_1 = hasViewPermission; this.ihq_1 = hasEditPermission; } protoOf(EditAndViewPermission).toString = function () { return 'EditAndViewPermission(hasViewPermission=' + this.hhq_1 + ', hasEditPermission=' + this.ihq_1 + ')'; }; protoOf(EditAndViewPermission).hashCode = function () { var result = getBooleanHashCode(this.hhq_1); result = imul(result, 31) + getBooleanHashCode(this.ihq_1) | 0; return result; }; protoOf(EditAndViewPermission).equals = function (other) { if (this === other) return true; if (!(other instanceof EditAndViewPermission)) return false; var tmp0_other_with_cast = other instanceof EditAndViewPermission ? other : THROW_CCE(); if (!(this.hhq_1 === tmp0_other_with_cast.hhq_1)) return false; if (!(this.ihq_1 === tmp0_other_with_cast.ihq_1)) return false; return true; }; function Companion_25() { } var Companion_instance_26; function Companion_getInstance_28() { return Companion_instance_26; } function $serializer_24() { $serializer_instance_24 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.EnrolmentRequestAndCoursePic', this, 2); tmp0_serialDesc.d4g('enrolmentRequest', true); tmp0_serialDesc.d4g('coursePicture', true); this.fjw_1 = tmp0_serialDesc; } protoOf($serializer_24).a45 = function () { return this.fjw_1; }; protoOf($serializer_24).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_83()), get_nullable($serializer_getInstance_78())]; }; protoOf($serializer_24).c45 = function (decoder) { var tmp0_desc = this.fjw_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.s48(tmp0_desc); if (tmp6_input.h49()) { tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, $serializer_getInstance_83(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_78(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, $serializer_getInstance_83(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_78(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.t48(tmp0_desc); return EnrolmentRequestAndCoursePic_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_24).gjw = function (encoder, value) { var tmp0_desc = this.fjw_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.mem_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_83(), value.mem_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.nem_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_78(), value.nem_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_24).b45 = function (encoder, value) { return this.gjw(encoder, value instanceof EnrolmentRequestAndCoursePic ? value : THROW_CCE()); }; var $serializer_instance_24; function $serializer_getInstance_24() { if ($serializer_instance_24 == null) new $serializer_24(); return $serializer_instance_24; } function EnrolmentRequestAndCoursePic_init_$Init$(seen1, enrolmentRequest, coursePicture, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_24().fjw_1); } if (0 === (seen1 & 1)) $this.mem_1 = null; else $this.mem_1 = enrolmentRequest; if (0 === (seen1 & 2)) $this.nem_1 = null; else $this.nem_1 = coursePicture; return $this; } function EnrolmentRequestAndCoursePic_init_$Create$(seen1, enrolmentRequest, coursePicture, serializationConstructorMarker) { return EnrolmentRequestAndCoursePic_init_$Init$(seen1, enrolmentRequest, coursePicture, serializationConstructorMarker, objectCreate(protoOf(EnrolmentRequestAndCoursePic))); } function EnrolmentRequestAndCoursePic(enrolmentRequest, coursePicture) { enrolmentRequest = enrolmentRequest === VOID ? null : enrolmentRequest; coursePicture = coursePicture === VOID ? null : coursePicture; this.mem_1 = enrolmentRequest; this.nem_1 = coursePicture; } protoOf(EnrolmentRequestAndCoursePic).toString = function () { return 'EnrolmentRequestAndCoursePic(enrolmentRequest=' + this.mem_1 + ', coursePicture=' + this.nem_1 + ')'; }; protoOf(EnrolmentRequestAndCoursePic).hashCode = function () { var result = this.mem_1 == null ? 0 : this.mem_1.hashCode(); result = imul(result, 31) + (this.nem_1 == null ? 0 : this.nem_1.hashCode()) | 0; return result; }; protoOf(EnrolmentRequestAndCoursePic).equals = function (other) { if (this === other) return true; if (!(other instanceof EnrolmentRequestAndCoursePic)) return false; var tmp0_other_with_cast = other instanceof EnrolmentRequestAndCoursePic ? other : THROW_CCE(); if (!equals(this.mem_1, tmp0_other_with_cast.mem_1)) return false; if (!equals(this.nem_1, tmp0_other_with_cast.nem_1)) return false; return true; }; function EnrolmentRequestAndPersonDetails(enrolmentRequest, personPicture, person) { enrolmentRequest = enrolmentRequest === VOID ? null : enrolmentRequest; personPicture = personPicture === VOID ? null : personPicture; person = person === VOID ? null : person; this.aen_1 = enrolmentRequest; this.ben_1 = personPicture; this.cen_1 = person; } protoOf(EnrolmentRequestAndPersonDetails).toString = function () { return 'EnrolmentRequestAndPersonDetails(enrolmentRequest=' + this.aen_1 + ', personPicture=' + this.ben_1 + ', person=' + this.cen_1 + ')'; }; protoOf(EnrolmentRequestAndPersonDetails).hashCode = function () { var result = this.aen_1 == null ? 0 : this.aen_1.hashCode(); result = imul(result, 31) + (this.ben_1 == null ? 0 : this.ben_1.hashCode()) | 0; result = imul(result, 31) + (this.cen_1 == null ? 0 : this.cen_1.hashCode()) | 0; return result; }; protoOf(EnrolmentRequestAndPersonDetails).equals = function (other) { if (this === other) return true; if (!(other instanceof EnrolmentRequestAndPersonDetails)) return false; var tmp0_other_with_cast = other instanceof EnrolmentRequestAndPersonDetails ? other : THROW_CCE(); if (!equals(this.aen_1, tmp0_other_with_cast.aen_1)) return false; if (!equals(this.ben_1, tmp0_other_with_cast.ben_1)) return false; if (!equals(this.cen_1, tmp0_other_with_cast.cen_1)) return false; return true; }; function Companion_26() { } var Companion_instance_27; function Companion_getInstance_29() { return Companion_instance_27; } function $serializer_25() { $serializer_instance_25 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.MessageAndOtherPerson', this, 3); tmp0_serialDesc.d4g('message', true); tmp0_serialDesc.d4g('otherPerson', true); tmp0_serialDesc.d4g('personPicture', true); this.hjw_1 = tmp0_serialDesc; } protoOf($serializer_25).a45 = function () { return this.hjw_1; }; protoOf($serializer_25).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_91()), get_nullable($serializer_getInstance_94()), get_nullable($serializer_getInstance_101())]; }; protoOf($serializer_25).c45 = function (decoder) { var tmp0_desc = this.hjw_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_input = decoder.s48(tmp0_desc); if (tmp7_input.h49()) { tmp4_local0 = tmp7_input.g49(tmp0_desc, 0, $serializer_getInstance_91(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.g49(tmp0_desc, 1, $serializer_getInstance_94(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.g49(tmp0_desc, 2, $serializer_getInstance_101(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.g49(tmp0_desc, 0, $serializer_getInstance_91(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.g49(tmp0_desc, 1, $serializer_getInstance_94(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.g49(tmp0_desc, 2, $serializer_getInstance_101(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.t48(tmp0_desc); return MessageAndOtherPerson_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_25).ijw = function (encoder, value) { var tmp0_desc = this.hjw_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.kfa_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_91(), value.kfa_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.lfa_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_94(), value.lfa_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.mfa_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, $serializer_getInstance_101(), value.mfa_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_25).b45 = function (encoder, value) { return this.ijw(encoder, value instanceof MessageAndOtherPerson ? value : THROW_CCE()); }; var $serializer_instance_25; function $serializer_getInstance_25() { if ($serializer_instance_25 == null) new $serializer_25(); return $serializer_instance_25; } function MessageAndOtherPerson_init_$Init$(seen1, message, otherPerson, personPicture, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_25().hjw_1); } if (0 === (seen1 & 1)) $this.kfa_1 = null; else $this.kfa_1 = message; if (0 === (seen1 & 2)) $this.lfa_1 = null; else $this.lfa_1 = otherPerson; if (0 === (seen1 & 4)) $this.mfa_1 = null; else $this.mfa_1 = personPicture; return $this; } function MessageAndOtherPerson_init_$Create$(seen1, message, otherPerson, personPicture, serializationConstructorMarker) { return MessageAndOtherPerson_init_$Init$(seen1, message, otherPerson, personPicture, serializationConstructorMarker, objectCreate(protoOf(MessageAndOtherPerson))); } function MessageAndOtherPerson(message, otherPerson, personPicture) { message = message === VOID ? null : message; otherPerson = otherPerson === VOID ? null : otherPerson; personPicture = personPicture === VOID ? null : personPicture; this.kfa_1 = message; this.lfa_1 = otherPerson; this.mfa_1 = personPicture; } protoOf(MessageAndOtherPerson).toString = function () { return 'MessageAndOtherPerson(message=' + this.kfa_1 + ', otherPerson=' + this.lfa_1 + ', personPicture=' + this.mfa_1 + ')'; }; protoOf(MessageAndOtherPerson).hashCode = function () { var result = this.kfa_1 == null ? 0 : this.kfa_1.hashCode(); result = imul(result, 31) + (this.lfa_1 == null ? 0 : this.lfa_1.hashCode()) | 0; result = imul(result, 31) + (this.mfa_1 == null ? 0 : this.mfa_1.hashCode()) | 0; return result; }; protoOf(MessageAndOtherPerson).equals = function (other) { if (this === other) return true; if (!(other instanceof MessageAndOtherPerson)) return false; var tmp0_other_with_cast = other instanceof MessageAndOtherPerson ? other : THROW_CCE(); if (!equals(this.kfa_1, tmp0_other_with_cast.kfa_1)) return false; if (!equals(this.lfa_1, tmp0_other_with_cast.lfa_1)) return false; if (!equals(this.mfa_1, tmp0_other_with_cast.mfa_1)) return false; return true; }; function Companion_27() { } var Companion_instance_28; function Companion_getInstance_30() { return Companion_instance_28; } function $serializer_26() { $serializer_instance_26 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.OfflineItemAndState', this, 3); tmp0_serialDesc.d4g('offlineItem', true); tmp0_serialDesc.d4g('activeDownload', true); tmp0_serialDesc.d4g('readyForOffline', true); this.jjw_1 = tmp0_serialDesc; } protoOf($serializer_26).a45 = function () { return this.jjw_1; }; protoOf($serializer_26).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_92()), get_nullable($serializer_getInstance_37()), BooleanSerializer_getInstance()]; }; protoOf($serializer_26).c45 = function (decoder) { var tmp0_desc = this.jjw_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = false; var tmp7_input = decoder.s48(tmp0_desc); if (tmp7_input.h49()) { tmp4_local0 = tmp7_input.g49(tmp0_desc, 0, $serializer_getInstance_92(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.g49(tmp0_desc, 1, $serializer_getInstance_37(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.u48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.g49(tmp0_desc, 0, $serializer_getInstance_92(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.g49(tmp0_desc, 1, $serializer_getInstance_37(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.u48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.t48(tmp0_desc); return OfflineItemAndState_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_26).kjw = function (encoder, value) { var tmp0_desc = this.jjw_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.ufe_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_92(), value.ufe_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.vfe_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_37(), value.vfe_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.wfe_1 === false)) { tmp1_output.y49(tmp0_desc, 2, value.wfe_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_26).b45 = function (encoder, value) { return this.kjw(encoder, value instanceof OfflineItemAndState ? value : THROW_CCE()); }; var $serializer_instance_26; function $serializer_getInstance_26() { if ($serializer_instance_26 == null) new $serializer_26(); return $serializer_instance_26; } function OfflineItemAndState_init_$Init$(seen1, offlineItem, activeDownload, readyForOffline, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_26().jjw_1); } if (0 === (seen1 & 1)) $this.ufe_1 = null; else $this.ufe_1 = offlineItem; if (0 === (seen1 & 2)) $this.vfe_1 = null; else $this.vfe_1 = activeDownload; if (0 === (seen1 & 4)) $this.wfe_1 = false; else $this.wfe_1 = readyForOffline; return $this; } function OfflineItemAndState_init_$Create$(seen1, offlineItem, activeDownload, readyForOffline, serializationConstructorMarker) { return OfflineItemAndState_init_$Init$(seen1, offlineItem, activeDownload, readyForOffline, serializationConstructorMarker, objectCreate(protoOf(OfflineItemAndState))); } function OfflineItemAndState(offlineItem, activeDownload, readyForOffline) { offlineItem = offlineItem === VOID ? null : offlineItem; activeDownload = activeDownload === VOID ? null : activeDownload; readyForOffline = readyForOffline === VOID ? false : readyForOffline; this.ufe_1 = offlineItem; this.vfe_1 = activeDownload; this.wfe_1 = readyForOffline; } protoOf(OfflineItemAndState).toString = function () { return 'OfflineItemAndState(offlineItem=' + this.ufe_1 + ', activeDownload=' + this.vfe_1 + ', readyForOffline=' + this.wfe_1 + ')'; }; protoOf(OfflineItemAndState).hashCode = function () { var result = this.ufe_1 == null ? 0 : this.ufe_1.hashCode(); result = imul(result, 31) + (this.vfe_1 == null ? 0 : this.vfe_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.wfe_1) | 0; return result; }; protoOf(OfflineItemAndState).equals = function (other) { if (this === other) return true; if (!(other instanceof OfflineItemAndState)) return false; var tmp0_other_with_cast = other instanceof OfflineItemAndState ? other : THROW_CCE(); if (!equals(this.ufe_1, tmp0_other_with_cast.ufe_1)) return false; if (!equals(this.vfe_1, tmp0_other_with_cast.vfe_1)) return false; if (!(this.wfe_1 === tmp0_other_with_cast.wfe_1)) return false; return true; }; function Companion_28() { } var Companion_instance_29; function Companion_getInstance_31() { return Companion_instance_29; } function $serializer_27() { $serializer_instance_27 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PermissionPair', this, 2); tmp0_serialDesc.d4g('firstPermission', true); tmp0_serialDesc.d4g('secondPermission', true); this.ljw_1 = tmp0_serialDesc; } protoOf($serializer_27).a45 = function () { return this.ljw_1; }; protoOf($serializer_27).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_27).c45 = function (decoder) { var tmp0_desc = this.ljw_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = false; var tmp5_local1 = false; var tmp6_input = decoder.s48(tmp0_desc); if (tmp6_input.h49()) { tmp4_local0 = tmp6_input.u48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.u48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.u48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.u48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.t48(tmp0_desc); return PermissionPair_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_27).mjw = function (encoder, value) { var tmp0_desc = this.ljw_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.vda_1 === false)) { tmp1_output.y49(tmp0_desc, 0, value.vda_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.wda_1 === false)) { tmp1_output.y49(tmp0_desc, 1, value.wda_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_27).b45 = function (encoder, value) { return this.mjw(encoder, value instanceof PermissionPair ? value : THROW_CCE()); }; var $serializer_instance_27; function $serializer_getInstance_27() { if ($serializer_instance_27 == null) new $serializer_27(); return $serializer_instance_27; } function PermissionPair_init_$Init$(seen1, firstPermission, secondPermission, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_27().ljw_1); } if (0 === (seen1 & 1)) $this.vda_1 = false; else $this.vda_1 = firstPermission; if (0 === (seen1 & 2)) $this.wda_1 = false; else $this.wda_1 = secondPermission; return $this; } function PermissionPair_init_$Create$(seen1, firstPermission, secondPermission, serializationConstructorMarker) { return PermissionPair_init_$Init$(seen1, firstPermission, secondPermission, serializationConstructorMarker, objectCreate(protoOf(PermissionPair))); } function PermissionPair(firstPermission, secondPermission) { firstPermission = firstPermission === VOID ? false : firstPermission; secondPermission = secondPermission === VOID ? false : secondPermission; this.vda_1 = firstPermission; this.wda_1 = secondPermission; } protoOf(PermissionPair).y6 = function () { return this.vda_1; }; protoOf(PermissionPair).z6 = function () { return this.wda_1; }; protoOf(PermissionPair).toString = function () { return 'PermissionPair(firstPermission=' + this.vda_1 + ', secondPermission=' + this.wda_1 + ')'; }; protoOf(PermissionPair).hashCode = function () { var result = getBooleanHashCode(this.vda_1); result = imul(result, 31) + getBooleanHashCode(this.wda_1) | 0; return result; }; protoOf(PermissionPair).equals = function (other) { if (this === other) return true; if (!(other instanceof PermissionPair)) return false; var tmp0_other_with_cast = other instanceof PermissionPair ? other : THROW_CCE(); if (!(this.vda_1 === tmp0_other_with_cast.vda_1)) return false; if (!(this.wda_1 === tmp0_other_with_cast.wda_1)) return false; return true; }; function Companion_29() { } var Companion_instance_30; function Companion_getInstance_32() { return Companion_instance_30; } function $serializer_28() { $serializer_instance_28 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PermissionTriple', this, 3); tmp0_serialDesc.d4g('firstPermission', true); tmp0_serialDesc.d4g('secondPermission', true); tmp0_serialDesc.d4g('thirdPermission', true); this.njw_1 = tmp0_serialDesc; } protoOf($serializer_28).a45 = function () { return this.njw_1; }; protoOf($serializer_28).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_28).c45 = function (decoder) { var tmp0_desc = this.njw_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = false; var tmp5_local1 = false; var tmp6_local2 = false; var tmp7_input = decoder.s48(tmp0_desc); if (tmp7_input.h49()) { tmp4_local0 = tmp7_input.u48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.u48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.u48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.u48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.u48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.u48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.t48(tmp0_desc); return PermissionTriple_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_28).ojw = function (encoder, value) { var tmp0_desc = this.njw_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.ldb_1 === false)) { tmp1_output.y49(tmp0_desc, 0, value.ldb_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.mdb_1 === false)) { tmp1_output.y49(tmp0_desc, 1, value.mdb_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.ndb_1 === false)) { tmp1_output.y49(tmp0_desc, 2, value.ndb_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_28).b45 = function (encoder, value) { return this.ojw(encoder, value instanceof PermissionTriple ? value : THROW_CCE()); }; var $serializer_instance_28; function $serializer_getInstance_28() { if ($serializer_instance_28 == null) new $serializer_28(); return $serializer_instance_28; } function PermissionTriple_init_$Init$(seen1, firstPermission, secondPermission, thirdPermission, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_28().njw_1); } if (0 === (seen1 & 1)) $this.ldb_1 = false; else $this.ldb_1 = firstPermission; if (0 === (seen1 & 2)) $this.mdb_1 = false; else $this.mdb_1 = secondPermission; if (0 === (seen1 & 4)) $this.ndb_1 = false; else $this.ndb_1 = thirdPermission; return $this; } function PermissionTriple_init_$Create$(seen1, firstPermission, secondPermission, thirdPermission, serializationConstructorMarker) { return PermissionTriple_init_$Init$(seen1, firstPermission, secondPermission, thirdPermission, serializationConstructorMarker, objectCreate(protoOf(PermissionTriple))); } function PermissionTriple(firstPermission, secondPermission, thirdPermission) { firstPermission = firstPermission === VOID ? false : firstPermission; secondPermission = secondPermission === VOID ? false : secondPermission; thirdPermission = thirdPermission === VOID ? false : thirdPermission; this.ldb_1 = firstPermission; this.mdb_1 = secondPermission; this.ndb_1 = thirdPermission; } protoOf(PermissionTriple).y6 = function () { return this.ldb_1; }; protoOf(PermissionTriple).z6 = function () { return this.mdb_1; }; protoOf(PermissionTriple).toString = function () { return 'PermissionTriple(firstPermission=' + this.ldb_1 + ', secondPermission=' + this.mdb_1 + ', thirdPermission=' + this.ndb_1 + ')'; }; protoOf(PermissionTriple).hashCode = function () { var result = getBooleanHashCode(this.ldb_1); result = imul(result, 31) + getBooleanHashCode(this.mdb_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ndb_1) | 0; return result; }; protoOf(PermissionTriple).equals = function (other) { if (this === other) return true; if (!(other instanceof PermissionTriple)) return false; var tmp0_other_with_cast = other instanceof PermissionTriple ? other : THROW_CCE(); if (!(this.ldb_1 === tmp0_other_with_cast.ldb_1)) return false; if (!(this.mdb_1 === tmp0_other_with_cast.mdb_1)) return false; if (!(this.ndb_1 === tmp0_other_with_cast.ndb_1)) return false; return true; }; function Companion_30() { } protoOf(Companion_30).x4r = function () { return $serializer_getInstance_29(); }; var Companion_instance_31; function Companion_getInstance_33() { return Companion_instance_31; } function $serializer_29() { $serializer_instance_29 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PersonAndClazzLogAttendanceRecord', this, 3); tmp0_serialDesc.d4g('person', true); tmp0_serialDesc.d4g('personPicture', true); tmp0_serialDesc.d4g('attendanceRecord', true); this.pjw_1 = tmp0_serialDesc; } protoOf($serializer_29).a45 = function () { return this.pjw_1; }; protoOf($serializer_29).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_94()), get_nullable($serializer_getInstance_101()), get_nullable($serializer_getInstance_51())]; }; protoOf($serializer_29).c45 = function (decoder) { var tmp0_desc = this.pjw_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_input = decoder.s48(tmp0_desc); if (tmp7_input.h49()) { tmp4_local0 = tmp7_input.g49(tmp0_desc, 0, $serializer_getInstance_94(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.g49(tmp0_desc, 1, $serializer_getInstance_101(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.g49(tmp0_desc, 2, $serializer_getInstance_51(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.g49(tmp0_desc, 0, $serializer_getInstance_94(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.g49(tmp0_desc, 1, $serializer_getInstance_101(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.g49(tmp0_desc, 2, $serializer_getInstance_51(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.t48(tmp0_desc); return PersonAndClazzLogAttendanceRecord_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_29).qjw = function (encoder, value) { var tmp0_desc = this.pjw_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.j9n_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_94(), value.j9n_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.k9n_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_101(), value.k9n_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.l9n_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, $serializer_getInstance_51(), value.l9n_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_29).b45 = function (encoder, value) { return this.qjw(encoder, value instanceof PersonAndClazzLogAttendanceRecord ? value : THROW_CCE()); }; var $serializer_instance_29; function $serializer_getInstance_29() { if ($serializer_instance_29 == null) new $serializer_29(); return $serializer_instance_29; } function PersonAndClazzLogAttendanceRecord_init_$Init$(seen1, person, personPicture, attendanceRecord, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_29().pjw_1); } if (0 === (seen1 & 1)) $this.j9n_1 = null; else $this.j9n_1 = person; if (0 === (seen1 & 2)) $this.k9n_1 = null; else $this.k9n_1 = personPicture; if (0 === (seen1 & 4)) $this.l9n_1 = null; else $this.l9n_1 = attendanceRecord; return $this; } function PersonAndClazzLogAttendanceRecord_init_$Create$(seen1, person, personPicture, attendanceRecord, serializationConstructorMarker) { return PersonAndClazzLogAttendanceRecord_init_$Init$(seen1, person, personPicture, attendanceRecord, serializationConstructorMarker, objectCreate(protoOf(PersonAndClazzLogAttendanceRecord))); } function PersonAndClazzLogAttendanceRecord(person, personPicture, attendanceRecord) { person = person === VOID ? null : person; personPicture = personPicture === VOID ? null : personPicture; attendanceRecord = attendanceRecord === VOID ? null : attendanceRecord; this.j9n_1 = person; this.k9n_1 = personPicture; this.l9n_1 = attendanceRecord; } protoOf(PersonAndClazzLogAttendanceRecord).rjw = function (person, personPicture, attendanceRecord) { return new PersonAndClazzLogAttendanceRecord(person, personPicture, attendanceRecord); }; protoOf(PersonAndClazzLogAttendanceRecord).sjw = function (person, personPicture, attendanceRecord, $super) { person = person === VOID ? this.j9n_1 : person; personPicture = personPicture === VOID ? this.k9n_1 : personPicture; attendanceRecord = attendanceRecord === VOID ? this.l9n_1 : attendanceRecord; return $super === VOID ? this.rjw(person, personPicture, attendanceRecord) : $super.rjw.call(this, person, personPicture, attendanceRecord); }; protoOf(PersonAndClazzLogAttendanceRecord).toString = function () { return 'PersonAndClazzLogAttendanceRecord(person=' + this.j9n_1 + ', personPicture=' + this.k9n_1 + ', attendanceRecord=' + this.l9n_1 + ')'; }; protoOf(PersonAndClazzLogAttendanceRecord).hashCode = function () { var result = this.j9n_1 == null ? 0 : this.j9n_1.hashCode(); result = imul(result, 31) + (this.k9n_1 == null ? 0 : this.k9n_1.hashCode()) | 0; result = imul(result, 31) + (this.l9n_1 == null ? 0 : this.l9n_1.hashCode()) | 0; return result; }; protoOf(PersonAndClazzLogAttendanceRecord).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonAndClazzLogAttendanceRecord)) return false; var tmp0_other_with_cast = other instanceof PersonAndClazzLogAttendanceRecord ? other : THROW_CCE(); if (!equals(this.j9n_1, tmp0_other_with_cast.j9n_1)) return false; if (!equals(this.k9n_1, tmp0_other_with_cast.k9n_1)) return false; if (!equals(this.l9n_1, tmp0_other_with_cast.l9n_1)) return false; return true; }; function Companion_31() { } var Companion_instance_32; function Companion_getInstance_34() { return Companion_instance_32; } function $serializer_30() { $serializer_instance_30 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PersonAndClazzMemberListDetails', this, 5); tmp0_serialDesc.d4g('person', true); tmp0_serialDesc.d4g('personPicture', true); tmp0_serialDesc.d4g('earliestJoinDate', true); tmp0_serialDesc.d4g('latestDateLeft', true); tmp0_serialDesc.d4g('enrolmentRole', true); this.tjw_1 = tmp0_serialDesc; } protoOf($serializer_30).a45 = function () { return this.tjw_1; }; protoOf($serializer_30).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_94()), get_nullable($serializer_getInstance_101()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance()]; }; protoOf($serializer_30).c45 = function (decoder) { var tmp0_desc = this.tjw_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = 0; var tmp9_input = decoder.s48(tmp0_desc); if (tmp9_input.h49()) { tmp4_local0 = tmp9_input.g49(tmp0_desc, 0, $serializer_getInstance_94(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.g49(tmp0_desc, 1, $serializer_getInstance_101(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.g49(tmp0_desc, 0, $serializer_getInstance_94(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.g49(tmp0_desc, 1, $serializer_getInstance_101(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.t48(tmp0_desc); return PersonAndClazzMemberListDetails_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_30).ujw = function (encoder, value) { var tmp0_desc = this.tjw_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.v96_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_94(), value.v96_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.w96_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_101(), value.w96_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.x96_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.x96_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.y96_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.y96_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.z96_1 === 0)) { tmp1_output.b4a(tmp0_desc, 4, value.z96_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_30).b45 = function (encoder, value) { return this.ujw(encoder, value instanceof PersonAndClazzMemberListDetails ? value : THROW_CCE()); }; var $serializer_instance_30; function $serializer_getInstance_30() { if ($serializer_instance_30 == null) new $serializer_30(); return $serializer_instance_30; } function PersonAndClazzMemberListDetails_init_$Init$(seen1, person, personPicture, earliestJoinDate, latestDateLeft, enrolmentRole, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_30().tjw_1); } if (0 === (seen1 & 1)) $this.v96_1 = null; else $this.v96_1 = person; if (0 === (seen1 & 2)) $this.w96_1 = null; else $this.w96_1 = personPicture; if (0 === (seen1 & 4)) $this.x96_1 = new Long(0, 0); else $this.x96_1 = earliestJoinDate; if (0 === (seen1 & 8)) $this.y96_1 = new Long(0, 0); else $this.y96_1 = latestDateLeft; if (0 === (seen1 & 16)) $this.z96_1 = 0; else $this.z96_1 = enrolmentRole; return $this; } function PersonAndClazzMemberListDetails_init_$Create$(seen1, person, personPicture, earliestJoinDate, latestDateLeft, enrolmentRole, serializationConstructorMarker) { return PersonAndClazzMemberListDetails_init_$Init$(seen1, person, personPicture, earliestJoinDate, latestDateLeft, enrolmentRole, serializationConstructorMarker, objectCreate(protoOf(PersonAndClazzMemberListDetails))); } function PersonAndClazzMemberListDetails(person, personPicture, earliestJoinDate, latestDateLeft, enrolmentRole) { person = person === VOID ? null : person; personPicture = personPicture === VOID ? null : personPicture; earliestJoinDate = earliestJoinDate === VOID ? new Long(0, 0) : earliestJoinDate; latestDateLeft = latestDateLeft === VOID ? new Long(0, 0) : latestDateLeft; enrolmentRole = enrolmentRole === VOID ? 0 : enrolmentRole; this.v96_1 = person; this.w96_1 = personPicture; this.x96_1 = earliestJoinDate; this.y96_1 = latestDateLeft; this.z96_1 = enrolmentRole; } protoOf(PersonAndClazzMemberListDetails).toString = function () { return 'PersonAndClazzMemberListDetails(person=' + this.v96_1 + ', personPicture=' + this.w96_1 + ', earliestJoinDate=' + this.x96_1.toString() + ', latestDateLeft=' + this.y96_1.toString() + ', enrolmentRole=' + this.z96_1 + ')'; }; protoOf(PersonAndClazzMemberListDetails).hashCode = function () { var result = this.v96_1 == null ? 0 : this.v96_1.hashCode(); result = imul(result, 31) + (this.w96_1 == null ? 0 : this.w96_1.hashCode()) | 0; result = imul(result, 31) + this.x96_1.hashCode() | 0; result = imul(result, 31) + this.y96_1.hashCode() | 0; result = imul(result, 31) + this.z96_1 | 0; return result; }; protoOf(PersonAndClazzMemberListDetails).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonAndClazzMemberListDetails)) return false; var tmp0_other_with_cast = other instanceof PersonAndClazzMemberListDetails ? other : THROW_CCE(); if (!equals(this.v96_1, tmp0_other_with_cast.v96_1)) return false; if (!equals(this.w96_1, tmp0_other_with_cast.w96_1)) return false; if (!this.x96_1.equals(tmp0_other_with_cast.x96_1)) return false; if (!this.y96_1.equals(tmp0_other_with_cast.y96_1)) return false; if (!(this.z96_1 === tmp0_other_with_cast.z96_1)) return false; return true; }; function PersonAndListDisplayDetails(person, picture) { person = person === VOID ? null : person; picture = picture === VOID ? null : picture; this.sfr_1 = person; this.tfr_1 = picture; } protoOf(PersonAndListDisplayDetails).toString = function () { return 'PersonAndListDisplayDetails(person=' + this.sfr_1 + ', picture=' + this.tfr_1 + ')'; }; protoOf(PersonAndListDisplayDetails).hashCode = function () { var result = this.sfr_1 == null ? 0 : this.sfr_1.hashCode(); result = imul(result, 31) + (this.tfr_1 == null ? 0 : this.tfr_1.hashCode()) | 0; return result; }; protoOf(PersonAndListDisplayDetails).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonAndListDisplayDetails)) return false; var tmp0_other_with_cast = other instanceof PersonAndListDisplayDetails ? other : THROW_CCE(); if (!equals(this.sfr_1, tmp0_other_with_cast.sfr_1)) return false; if (!equals(this.tfr_1, tmp0_other_with_cast.tfr_1)) return false; return true; }; function Companion_32() { } var Companion_instance_33; function Companion_getInstance_35() { return Companion_instance_33; } function $serializer_31() { $serializer_instance_31 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PersonAndPicture', this, 2); tmp0_serialDesc.d4g('person', true); tmp0_serialDesc.d4g('picture', true); this.vjw_1 = tmp0_serialDesc; } protoOf($serializer_31).a45 = function () { return this.vjw_1; }; protoOf($serializer_31).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_94()), get_nullable($serializer_getInstance_101())]; }; protoOf($serializer_31).c45 = function (decoder) { var tmp0_desc = this.vjw_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.s48(tmp0_desc); if (tmp6_input.h49()) { tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, $serializer_getInstance_94(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_101(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, $serializer_getInstance_94(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_101(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.t48(tmp0_desc); return PersonAndPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_31).wjw = function (encoder, value) { var tmp0_desc = this.vjw_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.ffr_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_94(), value.ffr_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.gfr_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_101(), value.gfr_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_31).b45 = function (encoder, value) { return this.wjw(encoder, value instanceof PersonAndPicture ? value : THROW_CCE()); }; var $serializer_instance_31; function $serializer_getInstance_31() { if ($serializer_instance_31 == null) new $serializer_31(); return $serializer_instance_31; } function PersonAndPicture_init_$Init$(seen1, person, picture, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_31().vjw_1); } if (0 === (seen1 & 1)) $this.ffr_1 = null; else $this.ffr_1 = person; if (0 === (seen1 & 2)) $this.gfr_1 = null; else $this.gfr_1 = picture; return $this; } function PersonAndPicture_init_$Create$(seen1, person, picture, serializationConstructorMarker) { return PersonAndPicture_init_$Init$(seen1, person, picture, serializationConstructorMarker, objectCreate(protoOf(PersonAndPicture))); } function PersonAndPicture(person, picture) { person = person === VOID ? null : person; picture = picture === VOID ? null : picture; this.ffr_1 = person; this.gfr_1 = picture; } protoOf(PersonAndPicture).toString = function () { return 'PersonAndPicture(person=' + this.ffr_1 + ', picture=' + this.gfr_1 + ')'; }; protoOf(PersonAndPicture).hashCode = function () { var result = this.ffr_1 == null ? 0 : this.ffr_1.hashCode(); result = imul(result, 31) + (this.gfr_1 == null ? 0 : this.gfr_1.hashCode()) | 0; return result; }; protoOf(PersonAndPicture).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonAndPicture)) return false; var tmp0_other_with_cast = other instanceof PersonAndPicture ? other : THROW_CCE(); if (!equals(this.ffr_1, tmp0_other_with_cast.ffr_1)) return false; if (!equals(this.gfr_1, tmp0_other_with_cast.gfr_1)) return false; return true; }; function Companion_33() { } var Companion_instance_34; function Companion_getInstance_36() { return Companion_instance_34; } function $serializer_32() { $serializer_instance_32 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PersonAndPictureAndNumAttempts', this, 7); tmp0_serialDesc.d4g('person', true); tmp0_serialDesc.d4g('picture', true); tmp0_serialDesc.d4g('numAttempts', true); tmp0_serialDesc.d4g('isCompleted', true); tmp0_serialDesc.d4g('isSuccessful', true); tmp0_serialDesc.d4g('maxScore', true); tmp0_serialDesc.d4g('maxProgress', true); this.xjw_1 = tmp0_serialDesc; } protoOf($serializer_32).a45 = function () { return this.xjw_1; }; protoOf($serializer_32).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_94(), get_nullable($serializer_getInstance_101()), IntSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(BooleanSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), get_nullable(IntSerializer_getInstance())]; }; protoOf($serializer_32).c45 = function (decoder) { var tmp0_desc = this.xjw_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = 0; var tmp7_local3 = false; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_input = decoder.s48(tmp0_desc); if (tmp11_input.h49()) { tmp4_local0 = tmp11_input.e49(tmp0_desc, 0, $serializer_getInstance_94(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.g49(tmp0_desc, 1, $serializer_getInstance_101(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.u48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.g49(tmp0_desc, 4, BooleanSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.g49(tmp0_desc, 5, FloatSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.g49(tmp0_desc, 6, IntSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.e49(tmp0_desc, 0, $serializer_getInstance_94(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.g49(tmp0_desc, 1, $serializer_getInstance_101(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.u48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.g49(tmp0_desc, 4, BooleanSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.g49(tmp0_desc, 5, FloatSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.g49(tmp0_desc, 6, IntSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.t48(tmp0_desc); return PersonAndPictureAndNumAttempts_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_32).yjw = function (encoder, value) { var tmp0_desc = this.xjw_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.zj3_1.equals(new Person())) { tmp1_output.i4a(tmp0_desc, 0, $serializer_getInstance_94(), value.zj3_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.aj4_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_101(), value.aj4_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.bj4_1 === 0)) { tmp1_output.b4a(tmp0_desc, 2, value.bj4_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.cj4_1 === false)) { tmp1_output.y49(tmp0_desc, 3, value.cj4_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.dj4_1 == null)) { tmp1_output.k4a(tmp0_desc, 4, BooleanSerializer_getInstance(), value.dj4_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.ej4_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, FloatSerializer_getInstance(), value.ej4_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.fj4_1 == null)) { tmp1_output.k4a(tmp0_desc, 6, IntSerializer_getInstance(), value.fj4_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_32).b45 = function (encoder, value) { return this.yjw(encoder, value instanceof PersonAndPictureAndNumAttempts ? value : THROW_CCE()); }; var $serializer_instance_32; function $serializer_getInstance_32() { if ($serializer_instance_32 == null) new $serializer_32(); return $serializer_instance_32; } function PersonAndPictureAndNumAttempts_init_$Init$(seen1, person, picture, numAttempts, isCompleted, isSuccessful, maxScore, maxProgress, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_32().xjw_1); } if (0 === (seen1 & 1)) $this.zj3_1 = new Person(); else $this.zj3_1 = person; if (0 === (seen1 & 2)) $this.aj4_1 = null; else $this.aj4_1 = picture; if (0 === (seen1 & 4)) $this.bj4_1 = 0; else $this.bj4_1 = numAttempts; if (0 === (seen1 & 8)) $this.cj4_1 = false; else $this.cj4_1 = isCompleted; if (0 === (seen1 & 16)) $this.dj4_1 = null; else $this.dj4_1 = isSuccessful; if (0 === (seen1 & 32)) $this.ej4_1 = null; else $this.ej4_1 = maxScore; if (0 === (seen1 & 64)) $this.fj4_1 = null; else $this.fj4_1 = maxProgress; return $this; } function PersonAndPictureAndNumAttempts_init_$Create$(seen1, person, picture, numAttempts, isCompleted, isSuccessful, maxScore, maxProgress, serializationConstructorMarker) { return PersonAndPictureAndNumAttempts_init_$Init$(seen1, person, picture, numAttempts, isCompleted, isSuccessful, maxScore, maxProgress, serializationConstructorMarker, objectCreate(protoOf(PersonAndPictureAndNumAttempts))); } function PersonAndPictureAndNumAttempts(person, picture, numAttempts, isCompleted, isSuccessful, maxScore, maxProgress) { person = person === VOID ? new Person() : person; picture = picture === VOID ? null : picture; numAttempts = numAttempts === VOID ? 0 : numAttempts; isCompleted = isCompleted === VOID ? false : isCompleted; isSuccessful = isSuccessful === VOID ? null : isSuccessful; maxScore = maxScore === VOID ? null : maxScore; maxProgress = maxProgress === VOID ? null : maxProgress; this.zj3_1 = person; this.aj4_1 = picture; this.bj4_1 = numAttempts; this.cj4_1 = isCompleted; this.dj4_1 = isSuccessful; this.ej4_1 = maxScore; this.fj4_1 = maxProgress; } protoOf(PersonAndPictureAndNumAttempts).toString = function () { return 'PersonAndPictureAndNumAttempts(person=' + this.zj3_1 + ', picture=' + this.aj4_1 + ', numAttempts=' + this.bj4_1 + ', isCompleted=' + this.cj4_1 + ', isSuccessful=' + this.dj4_1 + ', maxScore=' + this.ej4_1 + ', maxProgress=' + this.fj4_1 + ')'; }; protoOf(PersonAndPictureAndNumAttempts).hashCode = function () { var result = this.zj3_1.hashCode(); result = imul(result, 31) + (this.aj4_1 == null ? 0 : this.aj4_1.hashCode()) | 0; result = imul(result, 31) + this.bj4_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.cj4_1) | 0; result = imul(result, 31) + (this.dj4_1 == null ? 0 : getBooleanHashCode(this.dj4_1)) | 0; result = imul(result, 31) + (this.ej4_1 == null ? 0 : getNumberHashCode(this.ej4_1)) | 0; result = imul(result, 31) + (this.fj4_1 == null ? 0 : this.fj4_1) | 0; return result; }; protoOf(PersonAndPictureAndNumAttempts).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonAndPictureAndNumAttempts)) return false; var tmp0_other_with_cast = other instanceof PersonAndPictureAndNumAttempts ? other : THROW_CCE(); if (!this.zj3_1.equals(tmp0_other_with_cast.zj3_1)) return false; if (!equals(this.aj4_1, tmp0_other_with_cast.aj4_1)) return false; if (!(this.bj4_1 === tmp0_other_with_cast.bj4_1)) return false; if (!(this.cj4_1 === tmp0_other_with_cast.cj4_1)) return false; if (!(this.dj4_1 == tmp0_other_with_cast.dj4_1)) return false; if (!equals(this.ej4_1, tmp0_other_with_cast.ej4_1)) return false; if (!(this.fj4_1 == tmp0_other_with_cast.fj4_1)) return false; return true; }; function AttemptsPersonListConst() { this.zjw_1 = 1; this.ajx_1 = 2; this.bjx_1 = 3; this.cjx_1 = 4; this.djx_1 = 5; this.ejx_1 = 6; this.fjx_1 = 7; this.gjx_1 = 8; this.hjx_1 = 9; this.ijx_1 = 10; } var AttemptsPersonListConst_instance; function AttemptsPersonListConst_getInstance() { return AttemptsPersonListConst_instance; } function Companion_34() { } var Companion_instance_35; function Companion_getInstance_37() { return Companion_instance_35; } function $serializer_33() { $serializer_instance_33 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PersonNames', this, 2); tmp0_serialDesc.d4g('firstNames', true); tmp0_serialDesc.d4g('lastName', true); this.jjx_1 = tmp0_serialDesc; } protoOf($serializer_33).a45 = function () { return this.jjx_1; }; protoOf($serializer_33).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_33).c45 = function (decoder) { var tmp0_desc = this.jjx_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.s48(tmp0_desc); if (tmp6_input.h49()) { tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.t48(tmp0_desc); return PersonNames_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_33).kjx = function (encoder, value) { var tmp0_desc = this.jjx_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.ffu_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, StringSerializer_getInstance(), value.ffu_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.gfu_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.gfu_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_33).b45 = function (encoder, value) { return this.kjx(encoder, value instanceof PersonNames ? value : THROW_CCE()); }; var $serializer_instance_33; function $serializer_getInstance_33() { if ($serializer_instance_33 == null) new $serializer_33(); return $serializer_instance_33; } function PersonNames_init_$Init$(seen1, firstNames, lastName, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_33().jjx_1); } if (0 === (seen1 & 1)) $this.ffu_1 = null; else $this.ffu_1 = firstNames; if (0 === (seen1 & 2)) $this.gfu_1 = null; else $this.gfu_1 = lastName; return $this; } function PersonNames_init_$Create$(seen1, firstNames, lastName, serializationConstructorMarker) { return PersonNames_init_$Init$(seen1, firstNames, lastName, serializationConstructorMarker, objectCreate(protoOf(PersonNames))); } function PersonNames(firstNames, lastName) { firstNames = firstNames === VOID ? null : firstNames; lastName = lastName === VOID ? null : lastName; this.ffu_1 = firstNames; this.gfu_1 = lastName; } protoOf(PersonNames).toString = function () { var tmp0_elvis_lhs = this.ffu_1; var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = this.gfu_1; return tmp + ' ' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); }; protoOf(PersonNames).hashCode = function () { var result = this.ffu_1 == null ? 0 : getStringHashCode(this.ffu_1); result = imul(result, 31) + (this.gfu_1 == null ? 0 : getStringHashCode(this.gfu_1)) | 0; return result; }; protoOf(PersonNames).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonNames)) return false; var tmp0_other_with_cast = other instanceof PersonNames ? other : THROW_CCE(); if (!(this.ffu_1 == tmp0_other_with_cast.ffu_1)) return false; if (!(this.gfu_1 == tmp0_other_with_cast.gfu_1)) return false; return true; }; function SiteTermsAndLangName(terms, langDisplayName) { this.ljx_1 = terms; this.mjx_1 = langDisplayName; } protoOf(SiteTermsAndLangName).toString = function () { return 'SiteTermsAndLangName(terms=' + this.ljx_1 + ', langDisplayName=' + this.mjx_1 + ')'; }; protoOf(SiteTermsAndLangName).hashCode = function () { var result = hashCode(this.ljx_1); result = imul(result, 31) + getStringHashCode(this.mjx_1) | 0; return result; }; protoOf(SiteTermsAndLangName).equals = function (other) { if (this === other) return true; if (!(other instanceof SiteTermsAndLangName)) return false; var tmp0_other_with_cast = other instanceof SiteTermsAndLangName ? other : THROW_CCE(); if (!equals(this.ljx_1, tmp0_other_with_cast.ljx_1)) return false; if (!(this.mjx_1 === tmp0_other_with_cast.mjx_1)) return false; return true; }; function Companion_35() { } var Companion_instance_36; function Companion_getInstance_38() { return Companion_instance_36; } function $serializer_34() { $serializer_instance_34 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.StatementReportRow', this, 3); tmp0_serialDesc.d4g('yAxis', true); tmp0_serialDesc.d4g('xAxis', true); tmp0_serialDesc.d4g('subgroup', true); this.njx_1 = tmp0_serialDesc; } protoOf($serializer_34).a45 = function () { return this.njx_1; }; protoOf($serializer_34).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [DoubleSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; }; protoOf($serializer_34).c45 = function (decoder) { var tmp0_desc = this.njx_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0.0; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_input = decoder.s48(tmp0_desc); if (tmp7_input.h49()) { tmp4_local0 = tmp7_input.a49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.c49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.c49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.a49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.c49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.c49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.t48(tmp0_desc); return StatementReportRow_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_34).ojx = function (encoder, value) { var tmp0_desc = this.njx_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !equals(value.pjx_1, 0.0)) { tmp1_output.e4a(tmp0_desc, 0, value.pjx_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.qjx_1 === '')) { tmp1_output.g4a(tmp0_desc, 1, value.qjx_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.rjx_1 === '')) { tmp1_output.g4a(tmp0_desc, 2, value.rjx_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_34).b45 = function (encoder, value) { return this.ojx(encoder, value instanceof StatementReportRow ? value : THROW_CCE()); }; var $serializer_instance_34; function $serializer_getInstance_34() { if ($serializer_instance_34 == null) new $serializer_34(); return $serializer_instance_34; } function StatementReportRow_init_$Init$(seen1, yAxis, xAxis, subgroup, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_34().njx_1); } if (0 === (seen1 & 1)) $this.pjx_1 = 0.0; else $this.pjx_1 = yAxis; if (0 === (seen1 & 2)) $this.qjx_1 = ''; else $this.qjx_1 = xAxis; if (0 === (seen1 & 4)) $this.rjx_1 = ''; else $this.rjx_1 = subgroup; return $this; } function StatementReportRow_init_$Create$(seen1, yAxis, xAxis, subgroup, serializationConstructorMarker) { return StatementReportRow_init_$Init$(seen1, yAxis, xAxis, subgroup, serializationConstructorMarker, objectCreate(protoOf(StatementReportRow))); } function StatementReportRow(yAxis, xAxis, subgroup) { yAxis = yAxis === VOID ? 0.0 : yAxis; xAxis = xAxis === VOID ? '' : xAxis; subgroup = subgroup === VOID ? '' : subgroup; this.pjx_1 = yAxis; this.qjx_1 = xAxis; this.rjx_1 = subgroup; } protoOf(StatementReportRow).toString = function () { return 'StatementReportRow(yAxis=' + this.pjx_1 + ', xAxis=' + this.qjx_1 + ', subgroup=' + this.rjx_1 + ')'; }; protoOf(StatementReportRow).hashCode = function () { var result = getNumberHashCode(this.pjx_1); result = imul(result, 31) + getStringHashCode(this.qjx_1) | 0; result = imul(result, 31) + getStringHashCode(this.rjx_1) | 0; return result; }; protoOf(StatementReportRow).equals = function (other) { if (this === other) return true; if (!(other instanceof StatementReportRow)) return false; var tmp0_other_with_cast = other instanceof StatementReportRow ? other : THROW_CCE(); if (!equals(this.pjx_1, tmp0_other_with_cast.pjx_1)) return false; if (!(this.qjx_1 === tmp0_other_with_cast.qjx_1)) return false; if (!(this.rjx_1 === tmp0_other_with_cast.rjx_1)) return false; return true; }; function Companion_36() { Companion_instance_37 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.sjx_1 = [null, new ArrayListSerializer($serializer_getInstance_1())]; } var Companion_instance_37; function Companion_getInstance_39() { if (Companion_instance_37 == null) new Companion_36(); return Companion_instance_37; } function $serializer_35() { $serializer_instance_35 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.StudentAndBlockStatuses', this, 2); tmp0_serialDesc.d4g('student', false); tmp0_serialDesc.d4g('blockStatuses', false); this.tjx_1 = tmp0_serialDesc; } protoOf($serializer_35).a45 = function () { return this.tjx_1; }; protoOf($serializer_35).u4g = function () { var tmp0_cached = Companion_getInstance_39().sjx_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_30(), tmp0_cached[1]]; }; protoOf($serializer_35).c45 = function (decoder) { var tmp0_desc = this.tjx_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.s48(tmp0_desc); var tmp7_cached = Companion_getInstance_39().sjx_1; if (tmp6_input.h49()) { tmp4_local0 = tmp6_input.e49(tmp0_desc, 0, $serializer_getInstance_30(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.e49(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.e49(tmp0_desc, 0, $serializer_getInstance_30(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.e49(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.t48(tmp0_desc); return StudentAndBlockStatuses_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_35).ujx = function (encoder, value) { var tmp0_desc = this.tjx_1; var tmp1_output = encoder.s48(tmp0_desc); var tmp2_cached = Companion_getInstance_39().sjx_1; tmp1_output.i4a(tmp0_desc, 0, $serializer_getInstance_30(), value.vjx_1); tmp1_output.i4a(tmp0_desc, 1, tmp2_cached[1], value.wjx_1); tmp1_output.t48(tmp0_desc); }; protoOf($serializer_35).b45 = function (encoder, value) { return this.ujx(encoder, value instanceof StudentAndBlockStatuses ? value : THROW_CCE()); }; var $serializer_instance_35; function $serializer_getInstance_35() { if ($serializer_instance_35 == null) new $serializer_35(); return $serializer_instance_35; } function StudentAndBlockStatuses_init_$Init$(seen1, student, blockStatuses, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_35().tjx_1); } $this.vjx_1 = student; $this.wjx_1 = blockStatuses; return $this; } function StudentAndBlockStatuses_init_$Create$(seen1, student, blockStatuses, serializationConstructorMarker) { return StudentAndBlockStatuses_init_$Init$(seen1, student, blockStatuses, serializationConstructorMarker, objectCreate(protoOf(StudentAndBlockStatuses))); } function StudentAndBlockStatuses(student, blockStatuses) { Companion_getInstance_39(); this.vjx_1 = student; this.wjx_1 = blockStatuses; } protoOf(StudentAndBlockStatuses).toString = function () { return 'StudentAndBlockStatuses(student=' + this.vjx_1 + ', blockStatuses=' + this.wjx_1 + ')'; }; protoOf(StudentAndBlockStatuses).hashCode = function () { var result = this.vjx_1.hashCode(); result = imul(result, 31) + hashCode(this.wjx_1) | 0; return result; }; protoOf(StudentAndBlockStatuses).equals = function (other) { if (this === other) return true; if (!(other instanceof StudentAndBlockStatuses)) return false; var tmp0_other_with_cast = other instanceof StudentAndBlockStatuses ? other : THROW_CCE(); if (!this.vjx_1.equals(tmp0_other_with_cast.vjx_1)) return false; if (!equals(this.wjx_1, tmp0_other_with_cast.wjx_1)) return false; return true; }; function Companion_37() { Companion_instance_38 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.xjx_1 = [null, new ArrayListSerializer($serializer_getInstance_12())]; } var Companion_instance_38; function Companion_getInstance_40() { if (Companion_instance_38 == null) new Companion_37(); return Companion_instance_38; } function $serializer_36() { $serializer_instance_36 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.SubmissionAndFiles', this, 2); tmp0_serialDesc.d4g('submission', false); tmp0_serialDesc.d4g('files', false); this.yjx_1 = tmp0_serialDesc; } protoOf($serializer_36).a45 = function () { return this.yjx_1; }; protoOf($serializer_36).u4g = function () { var tmp0_cached = Companion_getInstance_40().xjx_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_70(), tmp0_cached[1]]; }; protoOf($serializer_36).c45 = function (decoder) { var tmp0_desc = this.yjx_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.s48(tmp0_desc); var tmp7_cached = Companion_getInstance_40().xjx_1; if (tmp6_input.h49()) { tmp4_local0 = tmp6_input.e49(tmp0_desc, 0, $serializer_getInstance_70(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.e49(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.e49(tmp0_desc, 0, $serializer_getInstance_70(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.e49(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.t48(tmp0_desc); return SubmissionAndFiles_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_36).zjx = function (encoder, value) { var tmp0_desc = this.yjx_1; var tmp1_output = encoder.s48(tmp0_desc); var tmp2_cached = Companion_getInstance_40().xjx_1; tmp1_output.i4a(tmp0_desc, 0, $serializer_getInstance_70(), value.ajy_1); tmp1_output.i4a(tmp0_desc, 1, tmp2_cached[1], value.bjy_1); tmp1_output.t48(tmp0_desc); }; protoOf($serializer_36).b45 = function (encoder, value) { return this.zjx(encoder, value instanceof SubmissionAndFiles ? value : THROW_CCE()); }; var $serializer_instance_36; function $serializer_getInstance_36() { if ($serializer_instance_36 == null) new $serializer_36(); return $serializer_instance_36; } function SubmissionAndFiles_init_$Init$(seen1, submission, files, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_36().yjx_1); } $this.ajy_1 = submission; $this.bjy_1 = files; return $this; } function SubmissionAndFiles_init_$Create$(seen1, submission, files, serializationConstructorMarker) { return SubmissionAndFiles_init_$Init$(seen1, submission, files, serializationConstructorMarker, objectCreate(protoOf(SubmissionAndFiles))); } function SubmissionAndFiles(submission, files) { Companion_getInstance_40(); this.ajy_1 = submission; this.bjy_1 = files; } function Companion_38() { } var Companion_instance_39; function Companion_getInstance_41() { return Companion_instance_39; } function $serializer_37() { $serializer_instance_37 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.TransferJobAndTotals', this, 4); tmp0_serialDesc.d4g('transferJob', true); tmp0_serialDesc.d4g('totalSize', true); tmp0_serialDesc.d4g('transferred', true); tmp0_serialDesc.d4g('latestErrorStr', true); this.cjy_1 = tmp0_serialDesc; } protoOf($serializer_37).a45 = function () { return this.cjy_1; }; protoOf($serializer_37).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_111()), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_37).c45 = function (decoder) { var tmp0_desc = this.cjy_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = null; var tmp8_input = decoder.s48(tmp0_desc); if (tmp8_input.h49()) { tmp4_local0 = tmp8_input.g49(tmp0_desc, 0, $serializer_getInstance_111(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.g49(tmp0_desc, 0, $serializer_getInstance_111(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.t48(tmp0_desc); return TransferJobAndTotals_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_37).djy = function (encoder, value) { var tmp0_desc = this.cjy_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.eff_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_111(), value.eff_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.fff_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.fff_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.gff_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.gff_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.hff_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.hff_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_37).b45 = function (encoder, value) { return this.djy(encoder, value instanceof TransferJobAndTotals ? value : THROW_CCE()); }; var $serializer_instance_37; function $serializer_getInstance_37() { if ($serializer_instance_37 == null) new $serializer_37(); return $serializer_instance_37; } function TransferJobAndTotals_init_$Init$(seen1, transferJob, totalSize, transferred, latestErrorStr, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_37().cjy_1); } if (0 === (seen1 & 1)) $this.eff_1 = null; else $this.eff_1 = transferJob; if (0 === (seen1 & 2)) $this.fff_1 = new Long(0, 0); else $this.fff_1 = totalSize; if (0 === (seen1 & 4)) $this.gff_1 = new Long(0, 0); else $this.gff_1 = transferred; if (0 === (seen1 & 8)) $this.hff_1 = null; else $this.hff_1 = latestErrorStr; return $this; } function TransferJobAndTotals_init_$Create$(seen1, transferJob, totalSize, transferred, latestErrorStr, serializationConstructorMarker) { return TransferJobAndTotals_init_$Init$(seen1, transferJob, totalSize, transferred, latestErrorStr, serializationConstructorMarker, objectCreate(protoOf(TransferJobAndTotals))); } function TransferJobAndTotals(transferJob, totalSize, transferred, latestErrorStr) { transferJob = transferJob === VOID ? null : transferJob; totalSize = totalSize === VOID ? new Long(0, 0) : totalSize; transferred = transferred === VOID ? new Long(0, 0) : transferred; latestErrorStr = latestErrorStr === VOID ? null : latestErrorStr; this.eff_1 = transferJob; this.fff_1 = totalSize; this.gff_1 = transferred; this.hff_1 = latestErrorStr; } protoOf(TransferJobAndTotals).toString = function () { return 'TransferJobAndTotals(transferJob=' + this.eff_1 + ', totalSize=' + this.fff_1.toString() + ', transferred=' + this.gff_1.toString() + ', latestErrorStr=' + this.hff_1 + ')'; }; protoOf(TransferJobAndTotals).hashCode = function () { var result = this.eff_1 == null ? 0 : this.eff_1.hashCode(); result = imul(result, 31) + this.fff_1.hashCode() | 0; result = imul(result, 31) + this.gff_1.hashCode() | 0; result = imul(result, 31) + (this.hff_1 == null ? 0 : getStringHashCode(this.hff_1)) | 0; return result; }; protoOf(TransferJobAndTotals).equals = function (other) { if (this === other) return true; if (!(other instanceof TransferJobAndTotals)) return false; var tmp0_other_with_cast = other instanceof TransferJobAndTotals ? other : THROW_CCE(); if (!equals(this.eff_1, tmp0_other_with_cast.eff_1)) return false; if (!this.fff_1.equals(tmp0_other_with_cast.fff_1)) return false; if (!this.gff_1.equals(tmp0_other_with_cast.gff_1)) return false; if (!(this.hff_1 == tmp0_other_with_cast.hff_1)) return false; return true; }; var TransferJobItemStatus_QUEUED_instance; var TransferJobItemStatus_IN_PROGRESS_instance; var TransferJobItemStatus_COMPLETE_instance; var TransferJobItemStatus_FAILED_instance; var TransferJobItemStatus_CANCELLED_instance; function Companion_39() { this.ejy_1 = 1; this.fjy_1 = 11; this.gjy_1 = 21; this.hjy_1 = 22; this.ijy_1 = 23; } protoOf(Companion_39).jjy = function (value) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = get_entries().w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.lib.db.composites.Companion.valueOf.' call if (element.mjy_1 === value) { tmp$ret$1 = element; break $l$block; } } tmp$ret$1 = null; } var tmp0_elvis_lhs = tmp$ret$1; return tmp0_elvis_lhs == null ? TransferJobItemStatus_QUEUED_getInstance() : tmp0_elvis_lhs; }; var Companion_instance_40; function Companion_getInstance_42() { return Companion_instance_40; } function values() { return [TransferJobItemStatus_QUEUED_getInstance(), TransferJobItemStatus_IN_PROGRESS_getInstance(), TransferJobItemStatus_COMPLETE_getInstance(), TransferJobItemStatus_FAILED_getInstance(), TransferJobItemStatus_CANCELLED_getInstance()]; } function get_entries() { if ($ENTRIES == null) $ENTRIES = enumEntries(values()); return $ENTRIES; } var TransferJobItemStatus_entriesInitialized; function TransferJobItemStatus_initEntries() { if (TransferJobItemStatus_entriesInitialized) return Unit_instance; TransferJobItemStatus_entriesInitialized = true; TransferJobItemStatus_QUEUED_instance = new TransferJobItemStatus('QUEUED', 0, 1); TransferJobItemStatus_IN_PROGRESS_instance = new TransferJobItemStatus('IN_PROGRESS', 1, 11); TransferJobItemStatus_COMPLETE_instance = new TransferJobItemStatus('COMPLETE', 2, 21); TransferJobItemStatus_FAILED_instance = new TransferJobItemStatus('FAILED', 3, 22); TransferJobItemStatus_CANCELLED_instance = new TransferJobItemStatus('CANCELLED', 4, 23); } var $ENTRIES; function TransferJobItemStatus(name, ordinal, value) { Enum.call(this, name, ordinal); this.mjy_1 = value; } function TransferJobItemStatus_QUEUED_getInstance() { TransferJobItemStatus_initEntries(); return TransferJobItemStatus_QUEUED_instance; } function TransferJobItemStatus_IN_PROGRESS_getInstance() { TransferJobItemStatus_initEntries(); return TransferJobItemStatus_IN_PROGRESS_instance; } function TransferJobItemStatus_COMPLETE_getInstance() { TransferJobItemStatus_initEntries(); return TransferJobItemStatus_COMPLETE_instance; } function TransferJobItemStatus_FAILED_getInstance() { TransferJobItemStatus_initEntries(); return TransferJobItemStatus_FAILED_instance; } function TransferJobItemStatus_CANCELLED_getInstance() { TransferJobItemStatus_initEntries(); return TransferJobItemStatus_CANCELLED_instance; } function asStatementReportRow(_this__u8e3s4) { var tmp0_xAxis = _this__u8e3s4.wgz_1; var tmp1_yAxis = _this__u8e3s4.xgz_1; var tmp2_subgroup = _this__u8e3s4.ygz_1; return new StatementReportRow(tmp1_yAxis, tmp0_xAxis, tmp2_subgroup); } function Companion_40() { } var Companion_instance_41; function Companion_getInstance_43() { return Companion_instance_41; } function $serializer_38() { $serializer_instance_38 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.xapi.SessionTimeAndProgressInfo', this, 8); tmp0_serialDesc.d4g('contextRegistrationHi', true); tmp0_serialDesc.d4g('contextRegistrationLo', true); tmp0_serialDesc.d4g('timeStarted', true); tmp0_serialDesc.d4g('maxProgress', true); tmp0_serialDesc.d4g('maxScore', true); tmp0_serialDesc.d4g('isCompleted', true); tmp0_serialDesc.d4g('isSuccessful', true); tmp0_serialDesc.d4g('resultDuration', true); this.njy_1 = tmp0_serialDesc; } protoOf($serializer_38).a45 = function () { return this.njy_1; }; protoOf($serializer_38).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(IntSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), BooleanSerializer_getInstance(), get_nullable(BooleanSerializer_getInstance()), LongSerializer_getInstance()]; }; protoOf($serializer_38).c45 = function (decoder) { var tmp0_desc = this.njy_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = false; var tmp10_local6 = null; var tmp11_local7 = new Long(0, 0); var tmp12_input = decoder.s48(tmp0_desc); if (tmp12_input.h49()) { tmp4_local0 = tmp12_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.g49(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.g49(tmp0_desc, 4, FloatSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.u48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.g49(tmp0_desc, 6, BooleanSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.g49(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.g49(tmp0_desc, 4, FloatSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.u48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.g49(tmp0_desc, 6, BooleanSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.t48(tmp0_desc); return SessionTimeAndProgressInfo_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_38).ojy = function (encoder, value) { var tmp0_desc = this.njy_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.jj5_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.jj5_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.kj5_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.kj5_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.lj5_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.lj5_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.mj5_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, IntSerializer_getInstance(), value.mj5_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.nj5_1 == null)) { tmp1_output.k4a(tmp0_desc, 4, FloatSerializer_getInstance(), value.nj5_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.oj5_1 === false)) { tmp1_output.y49(tmp0_desc, 5, value.oj5_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.pj5_1 == null)) { tmp1_output.k4a(tmp0_desc, 6, BooleanSerializer_getInstance(), value.pj5_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.qj5_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.qj5_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_38).b45 = function (encoder, value) { return this.ojy(encoder, value instanceof SessionTimeAndProgressInfo ? value : THROW_CCE()); }; var $serializer_instance_38; function $serializer_getInstance_38() { if ($serializer_instance_38 == null) new $serializer_38(); return $serializer_instance_38; } function SessionTimeAndProgressInfo_init_$Init$(seen1, contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_38().njy_1); } if (0 === (seen1 & 1)) $this.jj5_1 = new Long(0, 0); else $this.jj5_1 = contextRegistrationHi; if (0 === (seen1 & 2)) $this.kj5_1 = new Long(0, 0); else $this.kj5_1 = contextRegistrationLo; if (0 === (seen1 & 4)) $this.lj5_1 = new Long(0, 0); else $this.lj5_1 = timeStarted; if (0 === (seen1 & 8)) $this.mj5_1 = null; else $this.mj5_1 = maxProgress; if (0 === (seen1 & 16)) $this.nj5_1 = null; else $this.nj5_1 = maxScore; if (0 === (seen1 & 32)) $this.oj5_1 = false; else $this.oj5_1 = isCompleted; if (0 === (seen1 & 64)) $this.pj5_1 = null; else $this.pj5_1 = isSuccessful; if (0 === (seen1 & 128)) $this.qj5_1 = new Long(0, 0); else $this.qj5_1 = resultDuration; return $this; } function SessionTimeAndProgressInfo_init_$Create$(seen1, contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration, serializationConstructorMarker) { return SessionTimeAndProgressInfo_init_$Init$(seen1, contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration, serializationConstructorMarker, objectCreate(protoOf(SessionTimeAndProgressInfo))); } function SessionTimeAndProgressInfo(contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration) { contextRegistrationHi = contextRegistrationHi === VOID ? new Long(0, 0) : contextRegistrationHi; contextRegistrationLo = contextRegistrationLo === VOID ? new Long(0, 0) : contextRegistrationLo; timeStarted = timeStarted === VOID ? new Long(0, 0) : timeStarted; maxProgress = maxProgress === VOID ? null : maxProgress; maxScore = maxScore === VOID ? null : maxScore; isCompleted = isCompleted === VOID ? false : isCompleted; isSuccessful = isSuccessful === VOID ? null : isSuccessful; resultDuration = resultDuration === VOID ? new Long(0, 0) : resultDuration; this.jj5_1 = contextRegistrationHi; this.kj5_1 = contextRegistrationLo; this.lj5_1 = timeStarted; this.mj5_1 = maxProgress; this.nj5_1 = maxScore; this.oj5_1 = isCompleted; this.pj5_1 = isSuccessful; this.qj5_1 = resultDuration; } protoOf(SessionTimeAndProgressInfo).toString = function () { return 'SessionTimeAndProgressInfo(contextRegistrationHi=' + this.jj5_1.toString() + ', contextRegistrationLo=' + this.kj5_1.toString() + ', timeStarted=' + this.lj5_1.toString() + ', maxProgress=' + this.mj5_1 + ', maxScore=' + this.nj5_1 + ', isCompleted=' + this.oj5_1 + ', isSuccessful=' + this.pj5_1 + ', resultDuration=' + this.qj5_1.toString() + ')'; }; protoOf(SessionTimeAndProgressInfo).hashCode = function () { var result = this.jj5_1.hashCode(); result = imul(result, 31) + this.kj5_1.hashCode() | 0; result = imul(result, 31) + this.lj5_1.hashCode() | 0; result = imul(result, 31) + (this.mj5_1 == null ? 0 : this.mj5_1) | 0; result = imul(result, 31) + (this.nj5_1 == null ? 0 : getNumberHashCode(this.nj5_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.oj5_1) | 0; result = imul(result, 31) + (this.pj5_1 == null ? 0 : getBooleanHashCode(this.pj5_1)) | 0; result = imul(result, 31) + this.qj5_1.hashCode() | 0; return result; }; protoOf(SessionTimeAndProgressInfo).equals = function (other) { if (this === other) return true; if (!(other instanceof SessionTimeAndProgressInfo)) return false; var tmp0_other_with_cast = other instanceof SessionTimeAndProgressInfo ? other : THROW_CCE(); if (!this.jj5_1.equals(tmp0_other_with_cast.jj5_1)) return false; if (!this.kj5_1.equals(tmp0_other_with_cast.kj5_1)) return false; if (!this.lj5_1.equals(tmp0_other_with_cast.lj5_1)) return false; if (!(this.mj5_1 == tmp0_other_with_cast.mj5_1)) return false; if (!equals(this.nj5_1, tmp0_other_with_cast.nj5_1)) return false; if (!(this.oj5_1 === tmp0_other_with_cast.oj5_1)) return false; if (!(this.pj5_1 == tmp0_other_with_cast.pj5_1)) return false; if (!this.qj5_1.equals(tmp0_other_with_cast.qj5_1)) return false; return true; }; function SessionTimeAndProgressInfoConst() { this.pjy_1 = 1; this.qjy_1 = 2; this.rjy_1 = 3; this.sjy_1 = 4; this.tjy_1 = 5; this.ujy_1 = 6; this.vjy_1 = 7; this.wjy_1 = 8; } var SessionTimeAndProgressInfoConst_instance; function SessionTimeAndProgressInfoConst_getInstance() { return SessionTimeAndProgressInfoConst_instance; } function Companion_41() { } var Companion_instance_42; function Companion_getInstance_44() { return Companion_instance_42; } function $serializer_39() { $serializer_instance_39 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.xapi.StatementEntityAndVerb', this, 6); tmp0_serialDesc.d4g('statementEntity', true); tmp0_serialDesc.d4g('verb', true); tmp0_serialDesc.d4g('verbDisplay', true); tmp0_serialDesc.d4g('activity', true); tmp0_serialDesc.d4g('activityLangMapEntry', true); tmp0_serialDesc.d4g('statementActivityDescription', true); this.xjy_1 = tmp0_serialDesc; } protoOf($serializer_39).a45 = function () { return this.xjy_1; }; protoOf($serializer_39).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_123(), get_nullable($serializer_getInstance_125()), get_nullable($serializer_getInstance_126()), get_nullable($serializer_getInstance_116()), get_nullable($serializer_getInstance_118()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_39).c45 = function (decoder) { var tmp0_desc = this.xjy_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_input = decoder.s48(tmp0_desc); if (tmp10_input.h49()) { tmp4_local0 = tmp10_input.e49(tmp0_desc, 0, $serializer_getInstance_123(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.g49(tmp0_desc, 1, $serializer_getInstance_125(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.g49(tmp0_desc, 2, $serializer_getInstance_126(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.g49(tmp0_desc, 3, $serializer_getInstance_116(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.g49(tmp0_desc, 4, $serializer_getInstance_118(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.e49(tmp0_desc, 0, $serializer_getInstance_123(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.g49(tmp0_desc, 1, $serializer_getInstance_125(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.g49(tmp0_desc, 2, $serializer_getInstance_126(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.g49(tmp0_desc, 3, $serializer_getInstance_116(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.g49(tmp0_desc, 4, $serializer_getInstance_118(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.t48(tmp0_desc); return StatementEntityAndVerb_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_39).yjy = function (encoder, value) { var tmp0_desc = this.xjy_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.uj6_1.equals(new StatementEntity())) { tmp1_output.i4a(tmp0_desc, 0, $serializer_getInstance_123(), value.uj6_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.vj6_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_125(), value.vj6_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.wj6_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, $serializer_getInstance_126(), value.wj6_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.xj6_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, $serializer_getInstance_116(), value.xj6_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.yj6_1 == null)) { tmp1_output.k4a(tmp0_desc, 4, $serializer_getInstance_118(), value.yj6_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.zj6_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, StringSerializer_getInstance(), value.zj6_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_39).b45 = function (encoder, value) { return this.yjy(encoder, value instanceof StatementEntityAndVerb ? value : THROW_CCE()); }; var $serializer_instance_39; function $serializer_getInstance_39() { if ($serializer_instance_39 == null) new $serializer_39(); return $serializer_instance_39; } function StatementEntityAndVerb_init_$Init$(seen1, statementEntity, verb, verbDisplay, activity, activityLangMapEntry, statementActivityDescription, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_39().xjy_1); } if (0 === (seen1 & 1)) $this.uj6_1 = new StatementEntity(); else $this.uj6_1 = statementEntity; if (0 === (seen1 & 2)) $this.vj6_1 = null; else $this.vj6_1 = verb; if (0 === (seen1 & 4)) $this.wj6_1 = null; else $this.wj6_1 = verbDisplay; if (0 === (seen1 & 8)) $this.xj6_1 = null; else $this.xj6_1 = activity; if (0 === (seen1 & 16)) $this.yj6_1 = null; else $this.yj6_1 = activityLangMapEntry; if (0 === (seen1 & 32)) $this.zj6_1 = null; else $this.zj6_1 = statementActivityDescription; return $this; } function StatementEntityAndVerb_init_$Create$(seen1, statementEntity, verb, verbDisplay, activity, activityLangMapEntry, statementActivityDescription, serializationConstructorMarker) { return StatementEntityAndVerb_init_$Init$(seen1, statementEntity, verb, verbDisplay, activity, activityLangMapEntry, statementActivityDescription, serializationConstructorMarker, objectCreate(protoOf(StatementEntityAndVerb))); } function StatementEntityAndVerb(statementEntity, verb, verbDisplay, activity, activityLangMapEntry, statementActivityDescription) { statementEntity = statementEntity === VOID ? new StatementEntity() : statementEntity; verb = verb === VOID ? null : verb; verbDisplay = verbDisplay === VOID ? null : verbDisplay; activity = activity === VOID ? null : activity; activityLangMapEntry = activityLangMapEntry === VOID ? null : activityLangMapEntry; statementActivityDescription = statementActivityDescription === VOID ? null : statementActivityDescription; this.uj6_1 = statementEntity; this.vj6_1 = verb; this.wj6_1 = verbDisplay; this.xj6_1 = activity; this.yj6_1 = activityLangMapEntry; this.zj6_1 = statementActivityDescription; } function StatementConst() { this.zjy_1 = 1; this.ajz_1 = 2; this.bjz_1 = 3; this.cjz_1 = 4; } var StatementConst_instance; function StatementConst_getInstance() { return StatementConst_instance; } function Companion_42() { } var Companion_instance_43; function Companion_getInstance_45() { return Companion_instance_43; } function $serializer_40() { $serializer_instance_40 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.xapi.VerbEntityAndName', this, 2); tmp0_serialDesc.d4g('verbEntity', true); tmp0_serialDesc.d4g('verbName', true); this.djz_1 = tmp0_serialDesc; } protoOf($serializer_40).a45 = function () { return this.djz_1; }; protoOf($serializer_40).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_125(), get_nullable($serializer_getInstance_126())]; }; protoOf($serializer_40).c45 = function (decoder) { var tmp0_desc = this.djz_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.s48(tmp0_desc); if (tmp6_input.h49()) { tmp4_local0 = tmp6_input.e49(tmp0_desc, 0, $serializer_getInstance_125(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_126(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.e49(tmp0_desc, 0, $serializer_getInstance_125(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_126(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.t48(tmp0_desc); return VerbEntityAndName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_40).ejz = function (encoder, value) { var tmp0_desc = this.djz_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.uj8_1.equals(new VerbEntity())) { tmp1_output.i4a(tmp0_desc, 0, $serializer_getInstance_125(), value.uj8_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.vj8_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_126(), value.vj8_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_40).b45 = function (encoder, value) { return this.ejz(encoder, value instanceof VerbEntityAndName ? value : THROW_CCE()); }; var $serializer_instance_40; function $serializer_getInstance_40() { if ($serializer_instance_40 == null) new $serializer_40(); return $serializer_instance_40; } function VerbEntityAndName_init_$Init$(seen1, verbEntity, verbName, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_40().djz_1); } if (0 === (seen1 & 1)) $this.uj8_1 = new VerbEntity(); else $this.uj8_1 = verbEntity; if (0 === (seen1 & 2)) $this.vj8_1 = null; else $this.vj8_1 = verbName; return $this; } function VerbEntityAndName_init_$Create$(seen1, verbEntity, verbName, serializationConstructorMarker) { return VerbEntityAndName_init_$Init$(seen1, verbEntity, verbName, serializationConstructorMarker, objectCreate(protoOf(VerbEntityAndName))); } function VerbEntityAndName(verbEntity, verbName) { verbEntity = verbEntity === VOID ? new VerbEntity() : verbEntity; verbName = verbName === VOID ? null : verbName; this.uj8_1 = verbEntity; this.vj8_1 = verbName; } protoOf(VerbEntityAndName).toString = function () { return 'VerbEntityAndName(verbEntity=' + this.uj8_1 + ', verbName=' + this.vj8_1 + ')'; }; protoOf(VerbEntityAndName).hashCode = function () { var result = this.uj8_1.hashCode(); result = imul(result, 31) + (this.vj8_1 == null ? 0 : this.vj8_1.hashCode()) | 0; return result; }; protoOf(VerbEntityAndName).equals = function (other) { if (this === other) return true; if (!(other instanceof VerbEntityAndName)) return false; var tmp0_other_with_cast = other instanceof VerbEntityAndName ? other : THROW_CCE(); if (!this.uj8_1.equals(tmp0_other_with_cast.uj8_1)) return false; if (!equals(this.vj8_1, tmp0_other_with_cast.vj8_1)) return false; return true; }; function Companion_43() { } var Companion_instance_44; function Companion_getInstance_46() { return Companion_instance_44; } function $serializer_41() { $serializer_instance_41 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.AssignmentProgressSummary', this, 5); tmp0_serialDesc.d4g('submittedStudents', true); tmp0_serialDesc.d4g('totalStudents', true); tmp0_serialDesc.d4g('markedStudents', true); tmp0_serialDesc.d4g('activeUserHasViewLearnerRecordsPermission', true); tmp0_serialDesc.d4g('isGroupAssignment', true); this.fjz_1 = tmp0_serialDesc; } protoOf($serializer_41).a45 = function () { return this.fjz_1; }; protoOf($serializer_41).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_41).c45 = function (decoder) { var tmp0_desc = this.fjz_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_local1 = 0; var tmp6_local2 = 0; var tmp7_local3 = false; var tmp8_local4 = false; var tmp9_input = decoder.s48(tmp0_desc); if (tmp9_input.h49()) { tmp4_local0 = tmp9_input.x48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.x48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.u48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.u48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.x48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.x48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.u48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.u48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.t48(tmp0_desc); return AssignmentProgressSummary_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_41).gjz = function (encoder, value) { var tmp0_desc = this.fjz_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.w7v_1 === 0)) { tmp1_output.b4a(tmp0_desc, 0, value.w7v_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.x7v_1 === 0)) { tmp1_output.b4a(tmp0_desc, 1, value.x7v_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.y7v_1 === 0)) { tmp1_output.b4a(tmp0_desc, 2, value.y7v_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.z7v_1 === false)) { tmp1_output.y49(tmp0_desc, 3, value.z7v_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.a7w_1 === false)) { tmp1_output.y49(tmp0_desc, 4, value.a7w_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_41).b45 = function (encoder, value) { return this.gjz(encoder, value instanceof AssignmentProgressSummary ? value : THROW_CCE()); }; var $serializer_instance_41; function $serializer_getInstance_41() { if ($serializer_instance_41 == null) new $serializer_41(); return $serializer_instance_41; } function AssignmentProgressSummary_init_$Init$(seen1, submittedStudents, totalStudents, markedStudents, activeUserHasViewLearnerRecordsPermission, isGroupAssignment, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_41().fjz_1); } if (0 === (seen1 & 1)) $this.w7v_1 = 0; else $this.w7v_1 = submittedStudents; if (0 === (seen1 & 2)) $this.x7v_1 = 0; else $this.x7v_1 = totalStudents; if (0 === (seen1 & 4)) $this.y7v_1 = 0; else $this.y7v_1 = markedStudents; if (0 === (seen1 & 8)) $this.z7v_1 = false; else $this.z7v_1 = activeUserHasViewLearnerRecordsPermission; if (0 === (seen1 & 16)) $this.a7w_1 = false; else $this.a7w_1 = isGroupAssignment; return $this; } function AssignmentProgressSummary_init_$Create$(seen1, submittedStudents, totalStudents, markedStudents, activeUserHasViewLearnerRecordsPermission, isGroupAssignment, serializationConstructorMarker) { return AssignmentProgressSummary_init_$Init$(seen1, submittedStudents, totalStudents, markedStudents, activeUserHasViewLearnerRecordsPermission, isGroupAssignment, serializationConstructorMarker, objectCreate(protoOf(AssignmentProgressSummary))); } function AssignmentProgressSummary() { this.w7v_1 = 0; this.x7v_1 = 0; this.y7v_1 = 0; this.z7v_1 = false; this.a7w_1 = false; } function Companion_44() { Companion_instance_45 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.hjz_1 = [null, new ArrayListSerializer($serializer_getInstance_93())]; } protoOf(Companion_44).x4r = function () { return $serializer_getInstance_42(); }; var Companion_instance_45; function Companion_getInstance_47() { if (Companion_instance_45 == null) new Companion_44(); return Companion_instance_45; } function $serializer_42() { $serializer_instance_42 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.AssignmentSubmitterAndAllocations', this, 2); tmp0_serialDesc.d4g('submitter', true); tmp0_serialDesc.d4g('allocations', true); this.ijz_1 = tmp0_serialDesc; } protoOf($serializer_42).a45 = function () { return this.ijz_1; }; protoOf($serializer_42).u4g = function () { var tmp0_cached = Companion_getInstance_47().hjz_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_43(), tmp0_cached[1]]; }; protoOf($serializer_42).c45 = function (decoder) { var tmp0_desc = this.ijz_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.s48(tmp0_desc); var tmp7_cached = Companion_getInstance_47().hjz_1; if (tmp6_input.h49()) { tmp4_local0 = tmp6_input.e49(tmp0_desc, 0, $serializer_getInstance_43(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.e49(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.e49(tmp0_desc, 0, $serializer_getInstance_43(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.e49(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.t48(tmp0_desc); return AssignmentSubmitterAndAllocations_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_42).jjz = function (encoder, value) { var tmp0_desc = this.ijz_1; var tmp1_output = encoder.s48(tmp0_desc); var tmp2_cached = Companion_getInstance_47().hjz_1; if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.kjz_1.equals(new AssignmentSubmitterSummary())) { tmp1_output.i4a(tmp0_desc, 0, $serializer_getInstance_43(), value.kjz_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !equals(value.ljz_1, emptyList())) { tmp1_output.i4a(tmp0_desc, 1, tmp2_cached[1], value.ljz_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_42).b45 = function (encoder, value) { return this.jjz(encoder, value instanceof AssignmentSubmitterAndAllocations ? value : THROW_CCE()); }; var $serializer_instance_42; function $serializer_getInstance_42() { if ($serializer_instance_42 == null) new $serializer_42(); return $serializer_instance_42; } function AssignmentSubmitterAndAllocations_init_$Init$(seen1, submitter, allocations, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_42().ijz_1); } if (0 === (seen1 & 1)) $this.kjz_1 = new AssignmentSubmitterSummary(); else $this.kjz_1 = submitter; if (0 === (seen1 & 2)) $this.ljz_1 = emptyList(); else $this.ljz_1 = allocations; return $this; } function AssignmentSubmitterAndAllocations_init_$Create$(seen1, submitter, allocations, serializationConstructorMarker) { return AssignmentSubmitterAndAllocations_init_$Init$(seen1, submitter, allocations, serializationConstructorMarker, objectCreate(protoOf(AssignmentSubmitterAndAllocations))); } function AssignmentSubmitterAndAllocations(submitter, allocations) { Companion_getInstance_47(); submitter = submitter === VOID ? new AssignmentSubmitterSummary() : submitter; allocations = allocations === VOID ? emptyList() : allocations; this.kjz_1 = submitter; this.ljz_1 = allocations; } protoOf(AssignmentSubmitterAndAllocations).mjz = function (submitter, allocations) { return new AssignmentSubmitterAndAllocations(submitter, allocations); }; protoOf(AssignmentSubmitterAndAllocations).njz = function (submitter, allocations, $super) { submitter = submitter === VOID ? this.kjz_1 : submitter; allocations = allocations === VOID ? this.ljz_1 : allocations; return $super === VOID ? this.mjz(submitter, allocations) : $super.mjz.call(this, submitter, allocations); }; protoOf(AssignmentSubmitterAndAllocations).toString = function () { return 'AssignmentSubmitterAndAllocations(submitter=' + this.kjz_1 + ', allocations=' + this.ljz_1 + ')'; }; protoOf(AssignmentSubmitterAndAllocations).hashCode = function () { var result = this.kjz_1.hashCode(); result = imul(result, 31) + hashCode(this.ljz_1) | 0; return result; }; protoOf(AssignmentSubmitterAndAllocations).equals = function (other) { if (this === other) return true; if (!(other instanceof AssignmentSubmitterAndAllocations)) return false; var tmp0_other_with_cast = other instanceof AssignmentSubmitterAndAllocations ? other : THROW_CCE(); if (!this.kjz_1.equals(tmp0_other_with_cast.kjz_1)) return false; if (!equals(this.ljz_1, tmp0_other_with_cast.ljz_1)) return false; return true; }; function Companion_45() { } var Companion_instance_46; function Companion_getInstance_48() { return Companion_instance_46; } function $serializer_43() { $serializer_instance_43 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.AssignmentSubmitterSummary', this, 5); tmp0_serialDesc.d4g('submitterUid', true); tmp0_serialDesc.d4g('name', true); tmp0_serialDesc.d4g('pictureUri', true); tmp0_serialDesc.d4g('latestPrivateComment', true); tmp0_serialDesc.d4g('fileSubmissionStatus', true); this.ojz_1 = tmp0_serialDesc; } protoOf($serializer_43).a45 = function () { return this.ojz_1; }; protoOf($serializer_43).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance()]; }; protoOf($serializer_43).c45 = function (decoder) { var tmp0_desc = this.ojz_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = 0; var tmp9_input = decoder.s48(tmp0_desc); if (tmp9_input.h49()) { tmp4_local0 = tmp9_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.t48(tmp0_desc); return AssignmentSubmitterSummary_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_43).pjz = function (encoder, value) { var tmp0_desc = this.ojz_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.p7w_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.p7w_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.q7w_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.q7w_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.r7w_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.r7w_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.s7w_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.s7w_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.t7w_1 === 0)) { tmp1_output.b4a(tmp0_desc, 4, value.t7w_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_43).b45 = function (encoder, value) { return this.pjz(encoder, value instanceof AssignmentSubmitterSummary ? value : THROW_CCE()); }; var $serializer_instance_43; function $serializer_getInstance_43() { if ($serializer_instance_43 == null) new $serializer_43(); return $serializer_instance_43; } function AssignmentSubmitterSummary_init_$Init$(seen1, submitterUid, name, pictureUri, latestPrivateComment, fileSubmissionStatus, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_43().ojz_1); } if (0 === (seen1 & 1)) $this.p7w_1 = new Long(0, 0); else $this.p7w_1 = submitterUid; if (0 === (seen1 & 2)) $this.q7w_1 = null; else $this.q7w_1 = name; if (0 === (seen1 & 4)) $this.r7w_1 = null; else $this.r7w_1 = pictureUri; if (0 === (seen1 & 8)) $this.s7w_1 = null; else $this.s7w_1 = latestPrivateComment; if (0 === (seen1 & 16)) $this.t7w_1 = 0; else $this.t7w_1 = fileSubmissionStatus; return $this; } function AssignmentSubmitterSummary_init_$Create$(seen1, submitterUid, name, pictureUri, latestPrivateComment, fileSubmissionStatus, serializationConstructorMarker) { return AssignmentSubmitterSummary_init_$Init$(seen1, submitterUid, name, pictureUri, latestPrivateComment, fileSubmissionStatus, serializationConstructorMarker, objectCreate(protoOf(AssignmentSubmitterSummary))); } function AssignmentSubmitterSummary(submitterUid, name, pictureUri, latestPrivateComment, fileSubmissionStatus) { submitterUid = submitterUid === VOID ? new Long(0, 0) : submitterUid; name = name === VOID ? null : name; pictureUri = pictureUri === VOID ? null : pictureUri; latestPrivateComment = latestPrivateComment === VOID ? null : latestPrivateComment; fileSubmissionStatus = fileSubmissionStatus === VOID ? 0 : fileSubmissionStatus; this.p7w_1 = submitterUid; this.q7w_1 = name; this.r7w_1 = pictureUri; this.s7w_1 = latestPrivateComment; this.t7w_1 = fileSubmissionStatus; } protoOf(AssignmentSubmitterSummary).toString = function () { return 'AssignmentSubmitterSummary(submitterUid=' + this.p7w_1.toString() + ', name=' + this.q7w_1 + ', pictureUri=' + this.r7w_1 + ', latestPrivateComment=' + this.s7w_1 + ', fileSubmissionStatus=' + this.t7w_1 + ')'; }; protoOf(AssignmentSubmitterSummary).hashCode = function () { var result = this.p7w_1.hashCode(); result = imul(result, 31) + (this.q7w_1 == null ? 0 : getStringHashCode(this.q7w_1)) | 0; result = imul(result, 31) + (this.r7w_1 == null ? 0 : getStringHashCode(this.r7w_1)) | 0; result = imul(result, 31) + (this.s7w_1 == null ? 0 : getStringHashCode(this.s7w_1)) | 0; result = imul(result, 31) + this.t7w_1 | 0; return result; }; protoOf(AssignmentSubmitterSummary).equals = function (other) { if (this === other) return true; if (!(other instanceof AssignmentSubmitterSummary)) return false; var tmp0_other_with_cast = other instanceof AssignmentSubmitterSummary ? other : THROW_CCE(); if (!this.p7w_1.equals(tmp0_other_with_cast.p7w_1)) return false; if (!(this.q7w_1 == tmp0_other_with_cast.q7w_1)) return false; if (!(this.r7w_1 == tmp0_other_with_cast.r7w_1)) return false; if (!(this.s7w_1 == tmp0_other_with_cast.s7w_1)) return false; if (!(this.t7w_1 === tmp0_other_with_cast.t7w_1)) return false; return true; }; function Companion_46() { } var Companion_instance_47; function Companion_getInstance_49() { return Companion_instance_47; } function $serializer_44() { $serializer_instance_44 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.AverageCourseAssignmentMark', this, 2); tmp0_serialDesc.d4g('averageScore', true); tmp0_serialDesc.d4g('averagePenalty', true); this.qjz_1 = tmp0_serialDesc; } protoOf($serializer_44).a45 = function () { return this.qjz_1; }; protoOf($serializer_44).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [FloatSerializer_getInstance(), IntSerializer_getInstance()]; }; protoOf($serializer_44).c45 = function (decoder) { var tmp0_desc = this.qjz_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0.0; var tmp5_local1 = 0; var tmp6_input = decoder.s48(tmp0_desc); if (tmp6_input.h49()) { tmp4_local0 = tmp6_input.z48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.x48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.z48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.x48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.t48(tmp0_desc); return AverageCourseAssignmentMark_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_44).rjz = function (encoder, value) { var tmp0_desc = this.qjz_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !equals(value.sjz_1, 0.0)) { tmp1_output.d4a(tmp0_desc, 0, value.sjz_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.tjz_1 === 0)) { tmp1_output.b4a(tmp0_desc, 1, value.tjz_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_44).b45 = function (encoder, value) { return this.rjz(encoder, value instanceof AverageCourseAssignmentMark ? value : THROW_CCE()); }; var $serializer_instance_44; function $serializer_getInstance_44() { if ($serializer_instance_44 == null) new $serializer_44(); return $serializer_instance_44; } function AverageCourseAssignmentMark_init_$Init$(seen1, averageScore, averagePenalty, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_44().qjz_1); } if (0 === (seen1 & 1)) $this.sjz_1 = 0.0; else $this.sjz_1 = averageScore; if (0 === (seen1 & 2)) $this.tjz_1 = 0; else $this.tjz_1 = averagePenalty; return $this; } function AverageCourseAssignmentMark_init_$Create$(seen1, averageScore, averagePenalty, serializationConstructorMarker) { return AverageCourseAssignmentMark_init_$Init$(seen1, averageScore, averagePenalty, serializationConstructorMarker, objectCreate(protoOf(AverageCourseAssignmentMark))); } function AverageCourseAssignmentMark() { this.sjz_1 = 0.0; this.tjz_1 = 0; } protoOf(AverageCourseAssignmentMark).equals = function (other) { if (this === other) return true; if (!(other instanceof AverageCourseAssignmentMark)) return false; if (!(this.sjz_1 === other.sjz_1)) return false; if (!(this.tjz_1 === other.tjz_1)) return false; return true; }; protoOf(AverageCourseAssignmentMark).hashCode = function () { var result = getNumberHashCode(this.sjz_1); result = imul(31, result) + this.tjz_1 | 0; return result; }; function Companion_47() { this.ujz_1 = 1; this.vjz_1 = 2; this.wjz_1 = 3; this.xjz_1 = 4; this.yjz_1 = 1; this.zjz_1 = 2; } var Companion_instance_48; function Companion_getInstance_50() { return Companion_instance_48; } function CacheLockJoin() { } function Companion_48() { Companion_instance_49 = this; this.a91_1 = 6; this.b91_1 = new Long(1, 0); this.c91_1 = new Long(4, 0); this.d91_1 = new Long(8, 0); this.e91_1 = 6; this.f91_1 = 100; this.g91_1 = 102; } protoOf(Companion_48).x4r = function () { return $serializer_getInstance_45(); }; var Companion_instance_49; function Companion_getInstance_51() { if (Companion_instance_49 == null) new Companion_48(); return Companion_instance_49; } function $serializer_45() { $serializer_instance_45 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Clazz', this, 25); tmp0_serialDesc.d4g('clazzUid', true); tmp0_serialDesc.d4g('clazzName', true); tmp0_serialDesc.d4g('clazzDesc', true); tmp0_serialDesc.d4g('attendanceAverage', true); tmp0_serialDesc.d4g('clazzHolidayUMCalendarUid', true); tmp0_serialDesc.d4g('clazzScheuleUMCalendarUid', true); tmp0_serialDesc.d4g('isClazzActive', true); tmp0_serialDesc.d4g('clazzLocationUid', true); tmp0_serialDesc.d4g('clazzStartTime', true); tmp0_serialDesc.d4g('clazzEndTime', true); tmp0_serialDesc.d4g('clazzFeatures', true); tmp0_serialDesc.d4g('clazzSchoolUid', true); tmp0_serialDesc.d4g('clazzEnrolmentPolicy', true); tmp0_serialDesc.d4g('clazzTerminologyUid', true); tmp0_serialDesc.d4g('clazzMasterChangeSeqNum', true); tmp0_serialDesc.d4g('clazzLocalChangeSeqNum', true); tmp0_serialDesc.d4g('clazzLastChangedBy', true); tmp0_serialDesc.d4g('clazzLct', true); tmp0_serialDesc.d4g('clazzTimeZone', true); tmp0_serialDesc.d4g('clazzStudentsPersonGroupUid', true); tmp0_serialDesc.d4g('clazzTeachersPersonGroupUid', true); tmp0_serialDesc.d4g('clazzPendingStudentsPersonGroupUid', true); tmp0_serialDesc.d4g('clazzParentsPersonGroupUid', true); tmp0_serialDesc.d4g('clazzCode', true); tmp0_serialDesc.d4g('clazzOwnerPersonUid', true); this.ak0_1 = tmp0_serialDesc; } protoOf($serializer_45).a45 = function () { return this.ak0_1; }; protoOf($serializer_45).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), FloatSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()]; }; protoOf($serializer_45).c45 = function (decoder) { var tmp0_desc = this.ak0_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = 0.0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = false; var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = new Long(0, 0); var tmp14_local10 = new Long(0, 0); var tmp15_local11 = new Long(0, 0); var tmp16_local12 = 0; var tmp17_local13 = new Long(0, 0); var tmp18_local14 = new Long(0, 0); var tmp19_local15 = new Long(0, 0); var tmp20_local16 = 0; var tmp21_local17 = new Long(0, 0); var tmp22_local18 = null; var tmp23_local19 = new Long(0, 0); var tmp24_local20 = new Long(0, 0); var tmp25_local21 = new Long(0, 0); var tmp26_local22 = new Long(0, 0); var tmp27_local23 = null; var tmp28_local24 = new Long(0, 0); var tmp29_input = decoder.s48(tmp0_desc); if (tmp29_input.h49()) { tmp4_local0 = tmp29_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp29_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp29_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp29_input.z48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp29_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp29_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp29_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp29_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp29_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp29_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp29_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp29_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp29_input.x48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp29_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp29_input.y48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp29_input.y48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp29_input.x48(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp29_input.y48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp22_local18 = tmp29_input.g49(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp23_local19 = tmp29_input.y48(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; tmp24_local20 = tmp29_input.y48(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; tmp25_local21 = tmp29_input.y48(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; tmp26_local22 = tmp29_input.y48(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; tmp27_local23 = tmp29_input.g49(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; tmp28_local24 = tmp29_input.y48(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; } else while (tmp1_flag) { tmp2_index = tmp29_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp29_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp29_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp29_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp29_input.z48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp29_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp29_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp29_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp29_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp29_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp29_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp29_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp29_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp29_input.x48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp29_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp29_input.y48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp29_input.y48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp29_input.x48(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp29_input.y48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp22_local18 = tmp29_input.g49(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp23_local19 = tmp29_input.y48(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; case 20: tmp24_local20 = tmp29_input.y48(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; break; case 21: tmp25_local21 = tmp29_input.y48(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; break; case 22: tmp26_local22 = tmp29_input.y48(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; break; case 23: tmp27_local23 = tmp29_input.g49(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; break; case 24: tmp28_local24 = tmp29_input.y48(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp29_input.t48(tmp0_desc); return Clazz_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, tmp28_local24, null); }; protoOf($serializer_45).bk0 = function (encoder, value) { var tmp0_desc = this.ak0_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.p8e_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.p8e_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.q8e_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.q8e_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.r8e_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.r8e_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !equals(value.s8e_1, -1.0)) { tmp1_output.d4a(tmp0_desc, 3, value.s8e_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.t8e_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.t8e_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.u8e_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.u8e_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.v8e_1 === false)) { tmp1_output.y49(tmp0_desc, 6, value.v8e_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.w8e_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.w8e_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !value.x8e_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 8, value.x8e_1); } var tmp; if (tmp1_output.o4a(tmp0_desc, 9)) { tmp = true; } else { var tmp_0 = value.y8e_1; Companion_getInstance(); tmp = !tmp_0.equals(new Long(-1, 2147483647)); } if (tmp) { tmp1_output.c4a(tmp0_desc, 9, value.y8e_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !value.z8e_1.equals(new Long(1, 0))) { tmp1_output.c4a(tmp0_desc, 10, value.z8e_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !value.a8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 11, value.a8f_1); } if (tmp1_output.o4a(tmp0_desc, 12) ? true : !(value.b8f_1 === 102)) { tmp1_output.b4a(tmp0_desc, 12, value.b8f_1); } if (tmp1_output.o4a(tmp0_desc, 13) ? true : !value.c8f_1.equals(new Long(25966, 0))) { tmp1_output.c4a(tmp0_desc, 13, value.c8f_1); } if (tmp1_output.o4a(tmp0_desc, 14) ? true : !value.d8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 14, value.d8f_1); } if (tmp1_output.o4a(tmp0_desc, 15) ? true : !value.e8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 15, value.e8f_1); } if (tmp1_output.o4a(tmp0_desc, 16) ? true : !(value.f8f_1 === 0)) { tmp1_output.b4a(tmp0_desc, 16, value.f8f_1); } if (tmp1_output.o4a(tmp0_desc, 17) ? true : !value.g8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 17, value.g8f_1); } if (tmp1_output.o4a(tmp0_desc, 18) ? true : !(value.h8f_1 == null)) { tmp1_output.k4a(tmp0_desc, 18, StringSerializer_getInstance(), value.h8f_1); } if (tmp1_output.o4a(tmp0_desc, 19) ? true : !value.i8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 19, value.i8f_1); } if (tmp1_output.o4a(tmp0_desc, 20) ? true : !value.j8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 20, value.j8f_1); } if (tmp1_output.o4a(tmp0_desc, 21) ? true : !value.k8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 21, value.k8f_1); } if (tmp1_output.o4a(tmp0_desc, 22) ? true : !value.l8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 22, value.l8f_1); } if (tmp1_output.o4a(tmp0_desc, 23) ? true : !(value.m8f_1 == null)) { tmp1_output.k4a(tmp0_desc, 23, StringSerializer_getInstance(), value.m8f_1); } if (tmp1_output.o4a(tmp0_desc, 24) ? true : !value.n8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 24, value.n8f_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_45).b45 = function (encoder, value) { return this.bk0(encoder, value instanceof Clazz ? value : THROW_CCE()); }; var $serializer_instance_45; function $serializer_getInstance_45() { if ($serializer_instance_45 == null) new $serializer_45(); return $serializer_instance_45; } function Clazz_init_$Init$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_45().ak0_1); } if (0 === (seen1 & 1)) $this.p8e_1 = new Long(0, 0); else $this.p8e_1 = clazzUid; if (0 === (seen1 & 2)) $this.q8e_1 = null; else $this.q8e_1 = clazzName; if (0 === (seen1 & 4)) $this.r8e_1 = null; else $this.r8e_1 = clazzDesc; if (0 === (seen1 & 8)) $this.s8e_1 = -1.0; else $this.s8e_1 = attendanceAverage; if (0 === (seen1 & 16)) $this.t8e_1 = new Long(0, 0); else $this.t8e_1 = clazzHolidayUMCalendarUid; if (0 === (seen1 & 32)) $this.u8e_1 = new Long(0, 0); else $this.u8e_1 = clazzScheuleUMCalendarUid; if (0 === (seen1 & 64)) $this.v8e_1 = false; else $this.v8e_1 = isClazzActive; if (0 === (seen1 & 128)) $this.w8e_1 = new Long(0, 0); else $this.w8e_1 = clazzLocationUid; if (0 === (seen1 & 256)) $this.x8e_1 = new Long(0, 0); else $this.x8e_1 = clazzStartTime; if (0 === (seen1 & 512)) { var tmp = $this; Companion_getInstance(); tmp.y8e_1 = new Long(-1, 2147483647); } else $this.y8e_1 = clazzEndTime; if (0 === (seen1 & 1024)) $this.z8e_1 = new Long(1, 0); else $this.z8e_1 = clazzFeatures; if (0 === (seen1 & 2048)) $this.a8f_1 = new Long(0, 0); else $this.a8f_1 = clazzSchoolUid; if (0 === (seen1 & 4096)) $this.b8f_1 = 102; else $this.b8f_1 = clazzEnrolmentPolicy; if (0 === (seen1 & 8192)) $this.c8f_1 = new Long(25966, 0); else $this.c8f_1 = clazzTerminologyUid; if (0 === (seen1 & 16384)) $this.d8f_1 = new Long(0, 0); else $this.d8f_1 = clazzMasterChangeSeqNum; if (0 === (seen1 & 32768)) $this.e8f_1 = new Long(0, 0); else $this.e8f_1 = clazzLocalChangeSeqNum; if (0 === (seen1 & 65536)) $this.f8f_1 = 0; else $this.f8f_1 = clazzLastChangedBy; if (0 === (seen1 & 131072)) $this.g8f_1 = new Long(0, 0); else $this.g8f_1 = clazzLct; if (0 === (seen1 & 262144)) $this.h8f_1 = null; else $this.h8f_1 = clazzTimeZone; if (0 === (seen1 & 524288)) $this.i8f_1 = new Long(0, 0); else $this.i8f_1 = clazzStudentsPersonGroupUid; if (0 === (seen1 & 1048576)) $this.j8f_1 = new Long(0, 0); else $this.j8f_1 = clazzTeachersPersonGroupUid; if (0 === (seen1 & 2097152)) $this.k8f_1 = new Long(0, 0); else $this.k8f_1 = clazzPendingStudentsPersonGroupUid; if (0 === (seen1 & 4194304)) $this.l8f_1 = new Long(0, 0); else $this.l8f_1 = clazzParentsPersonGroupUid; if (0 === (seen1 & 8388608)) $this.m8f_1 = null; else $this.m8f_1 = clazzCode; if (0 === (seen1 & 16777216)) $this.n8f_1 = new Long(0, 0); else $this.n8f_1 = clazzOwnerPersonUid; return $this; } function Clazz_init_$Create$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, serializationConstructorMarker) { return Clazz_init_$Init$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, serializationConstructorMarker, objectCreate(protoOf(Clazz))); } function Clazz() { Companion_getInstance_51(); this.p8e_1 = new Long(0, 0); this.q8e_1 = null; this.r8e_1 = null; this.s8e_1 = -1.0; this.t8e_1 = new Long(0, 0); this.u8e_1 = new Long(0, 0); this.v8e_1 = false; this.w8e_1 = new Long(0, 0); this.x8e_1 = new Long(0, 0); var tmp = this; Companion_getInstance(); tmp.y8e_1 = new Long(-1, 2147483647); this.z8e_1 = new Long(1, 0); this.a8f_1 = new Long(0, 0); this.b8f_1 = 102; this.c8f_1 = new Long(25966, 0); this.d8f_1 = new Long(0, 0); this.e8f_1 = new Long(0, 0); this.f8f_1 = 0; this.g8f_1 = new Long(0, 0); this.h8f_1 = null; this.i8f_1 = new Long(0, 0); this.j8f_1 = new Long(0, 0); this.k8f_1 = new Long(0, 0); this.l8f_1 = new Long(0, 0); this.m8f_1 = null; this.n8f_1 = new Long(0, 0); } protoOf(Clazz).equals = function (other) { if (this === other) return true; if (!(other instanceof Clazz)) return false; if (!this.p8e_1.equals(other.p8e_1)) return false; if (!(this.q8e_1 == other.q8e_1)) return false; if (!(this.r8e_1 == other.r8e_1)) return false; if (!(this.s8e_1 === other.s8e_1)) return false; if (!this.t8e_1.equals(other.t8e_1)) return false; if (!this.u8e_1.equals(other.u8e_1)) return false; if (!(this.v8e_1 === other.v8e_1)) return false; if (!this.w8e_1.equals(other.w8e_1)) return false; if (!this.x8e_1.equals(other.x8e_1)) return false; if (!this.y8e_1.equals(other.y8e_1)) return false; if (!this.z8e_1.equals(other.z8e_1)) return false; if (!this.a8f_1.equals(other.a8f_1)) return false; if (!(this.b8f_1 === other.b8f_1)) return false; if (!this.c8f_1.equals(other.c8f_1)) return false; if (!this.d8f_1.equals(other.d8f_1)) return false; if (!this.e8f_1.equals(other.e8f_1)) return false; if (!(this.f8f_1 === other.f8f_1)) return false; if (!this.g8f_1.equals(other.g8f_1)) return false; if (!(this.h8f_1 == other.h8f_1)) return false; if (!this.i8f_1.equals(other.i8f_1)) return false; if (!this.j8f_1.equals(other.j8f_1)) return false; if (!this.k8f_1.equals(other.k8f_1)) return false; if (!this.l8f_1.equals(other.l8f_1)) return false; if (!(this.m8f_1 == other.m8f_1)) return false; return true; }; protoOf(Clazz).hashCode = function () { var result = this.p8e_1.hashCode(); var tmp = imul(31, result); var tmp0_safe_receiver = this.q8e_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; var tmp_0 = imul(31, result); var tmp2_safe_receiver = this.r8e_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : getStringHashCode(tmp2_safe_receiver); result = tmp_0 + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0; result = imul(31, result) + getNumberHashCode(this.s8e_1) | 0; result = imul(31, result) + this.t8e_1.hashCode() | 0; result = imul(31, result) + this.u8e_1.hashCode() | 0; result = imul(31, result) + getBooleanHashCode(this.v8e_1) | 0; result = imul(31, result) + this.w8e_1.hashCode() | 0; result = imul(31, result) + this.x8e_1.hashCode() | 0; result = imul(31, result) + this.y8e_1.hashCode() | 0; result = imul(31, result) + this.z8e_1.hashCode() | 0; result = imul(31, result) + this.a8f_1.hashCode() | 0; result = imul(31, result) + this.b8f_1 | 0; result = imul(31, result) + this.c8f_1.hashCode() | 0; result = imul(31, result) + this.d8f_1.hashCode() | 0; result = imul(31, result) + this.e8f_1.hashCode() | 0; result = imul(31, result) + this.f8f_1 | 0; result = imul(31, result) + this.g8f_1.hashCode() | 0; var tmp_1 = imul(31, result); var tmp4_safe_receiver = this.h8f_1; var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : getStringHashCode(tmp4_safe_receiver); result = tmp_1 + (tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs) | 0; result = imul(31, result) + this.i8f_1.hashCode() | 0; result = imul(31, result) + this.j8f_1.hashCode() | 0; result = imul(31, result) + this.k8f_1.hashCode() | 0; result = imul(31, result) + this.l8f_1.hashCode() | 0; var tmp_2 = imul(31, result); var tmp6_safe_receiver = this.m8f_1; var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : getStringHashCode(tmp6_safe_receiver); result = tmp_2 + (tmp7_elvis_lhs == null ? 0 : tmp7_elvis_lhs) | 0; return result; }; function Companion_49() { this.ck0_1 = 520; this.dk0_1 = 1; this.ek0_1 = 2; this.fk0_1 = 1; this.gk0_1 = 2; this.hk0_1 = 0; this.ik0_1 = 1; this.jk0_1 = 2; this.kk0_1 = 3; this.lk0_1 = 4; this.mk0_1 = 1; this.nk0_1 = 2; this.ok0_1 = 100; this.pk0_1 = 102; } var Companion_instance_50; function Companion_getInstance_52() { return Companion_instance_50; } function $serializer_46() { $serializer_instance_46 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzAssignment', this, 24); tmp0_serialDesc.d4g('caUid', true); tmp0_serialDesc.d4g('caTitle', true); tmp0_serialDesc.d4g('caDescription', true); tmp0_serialDesc.d4g('caGroupUid', true); tmp0_serialDesc.d4g('caActive', true); tmp0_serialDesc.d4g('caClassCommentEnabled', true); tmp0_serialDesc.d4g('caPrivateCommentsEnabled', true); tmp0_serialDesc.d4g('caCompletionCriteria', true); tmp0_serialDesc.d4g('caRequireFileSubmission', true); tmp0_serialDesc.d4g('caFileType', true); tmp0_serialDesc.d4g('caSizeLimit', true); tmp0_serialDesc.d4g('caNumberOfFiles', true); tmp0_serialDesc.d4g('caSubmissionPolicy', true); tmp0_serialDesc.d4g('caMarkingType', true); tmp0_serialDesc.d4g('caRequireTextSubmission', true); tmp0_serialDesc.d4g('caTextLimitType', true); tmp0_serialDesc.d4g('caTextLimit', true); tmp0_serialDesc.d4g('caXObjectUid', true); tmp0_serialDesc.d4g('caClazzUid', true); tmp0_serialDesc.d4g('caPeerReviewerCount', true); tmp0_serialDesc.d4g('caLocalChangeSeqNum', true); tmp0_serialDesc.d4g('caMasterChangeSeqNum', true); tmp0_serialDesc.d4g('caLastChangedBy', true); tmp0_serialDesc.d4g('caLct', true); this.qk0_1 = tmp0_serialDesc; } protoOf($serializer_46).a45 = function () { return this.qk0_1; }; protoOf($serializer_46).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_46).c45 = function (decoder) { var tmp0_desc = this.qk0_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = false; var tmp9_local5 = false; var tmp10_local6 = false; var tmp11_local7 = 0; var tmp12_local8 = false; var tmp13_local9 = 0; var tmp14_local10 = 0; var tmp15_local11 = 0; var tmp16_local12 = 0; var tmp17_local13 = 0; var tmp18_local14 = false; var tmp19_local15 = 0; var tmp20_local16 = 0; var tmp21_local17 = new Long(0, 0); var tmp22_local18 = new Long(0, 0); var tmp23_local19 = 0; var tmp24_local20 = new Long(0, 0); var tmp25_local21 = new Long(0, 0); var tmp26_local22 = 0; var tmp27_local23 = new Long(0, 0); var tmp28_input = decoder.s48(tmp0_desc); if (tmp28_input.h49()) { tmp4_local0 = tmp28_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp28_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp28_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp28_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp28_input.u48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp28_input.u48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp28_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp28_input.x48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp28_input.u48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp28_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp28_input.x48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp28_input.x48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp28_input.x48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp28_input.x48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp28_input.u48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp28_input.x48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp28_input.x48(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp28_input.y48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp22_local18 = tmp28_input.y48(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp23_local19 = tmp28_input.x48(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; tmp24_local20 = tmp28_input.y48(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; tmp25_local21 = tmp28_input.y48(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; tmp26_local22 = tmp28_input.x48(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; tmp27_local23 = tmp28_input.y48(tmp0_desc, 23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; } else while (tmp1_flag) { tmp2_index = tmp28_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp28_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp28_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp28_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp28_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp28_input.u48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp28_input.u48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp28_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp28_input.x48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp28_input.u48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp28_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp28_input.x48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp28_input.x48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp28_input.x48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp28_input.x48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp28_input.u48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp28_input.x48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp28_input.x48(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp28_input.y48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp22_local18 = tmp28_input.y48(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp23_local19 = tmp28_input.x48(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; case 20: tmp24_local20 = tmp28_input.y48(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; break; case 21: tmp25_local21 = tmp28_input.y48(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; break; case 22: tmp26_local22 = tmp28_input.x48(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; break; case 23: tmp27_local23 = tmp28_input.y48(tmp0_desc, 23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp28_input.t48(tmp0_desc); return ClazzAssignment_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, null); }; protoOf($serializer_46).rk0 = function (encoder, value) { var tmp0_desc = this.qk0_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.l7u_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.l7u_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.m7u_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.m7u_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.n7u_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.n7u_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.o7u_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.o7u_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.p7u_1 === true)) { tmp1_output.y49(tmp0_desc, 4, value.p7u_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.q7u_1 === true)) { tmp1_output.y49(tmp0_desc, 5, value.q7u_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.r7u_1 === true)) { tmp1_output.y49(tmp0_desc, 6, value.r7u_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.s7u_1 === 100)) { tmp1_output.b4a(tmp0_desc, 7, value.s7u_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !(value.t7u_1 === true)) { tmp1_output.y49(tmp0_desc, 8, value.t7u_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !(value.u7u_1 === 0)) { tmp1_output.b4a(tmp0_desc, 9, value.u7u_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !(value.v7u_1 === 50)) { tmp1_output.b4a(tmp0_desc, 10, value.v7u_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !(value.w7u_1 === 1)) { tmp1_output.b4a(tmp0_desc, 11, value.w7u_1); } if (tmp1_output.o4a(tmp0_desc, 12) ? true : !(value.x7u_1 === 1)) { tmp1_output.b4a(tmp0_desc, 12, value.x7u_1); } if (tmp1_output.o4a(tmp0_desc, 13) ? true : !(value.y7u_1 === 1)) { tmp1_output.b4a(tmp0_desc, 13, value.y7u_1); } if (tmp1_output.o4a(tmp0_desc, 14) ? true : !(value.z7u_1 === true)) { tmp1_output.y49(tmp0_desc, 14, value.z7u_1); } if (tmp1_output.o4a(tmp0_desc, 15) ? true : !(value.a7v_1 === 1)) { tmp1_output.b4a(tmp0_desc, 15, value.a7v_1); } if (tmp1_output.o4a(tmp0_desc, 16) ? true : !(value.b7v_1 === 500)) { tmp1_output.b4a(tmp0_desc, 16, value.b7v_1); } if (tmp1_output.o4a(tmp0_desc, 17) ? true : !value.c7v_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 17, value.c7v_1); } if (tmp1_output.o4a(tmp0_desc, 18) ? true : !value.d7v_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 18, value.d7v_1); } if (tmp1_output.o4a(tmp0_desc, 19) ? true : !(value.e7v_1 === 0)) { tmp1_output.b4a(tmp0_desc, 19, value.e7v_1); } if (tmp1_output.o4a(tmp0_desc, 20) ? true : !value.f7v_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 20, value.f7v_1); } if (tmp1_output.o4a(tmp0_desc, 21) ? true : !value.g7v_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 21, value.g7v_1); } if (tmp1_output.o4a(tmp0_desc, 22) ? true : !(value.h7v_1 === 0)) { tmp1_output.b4a(tmp0_desc, 22, value.h7v_1); } if (tmp1_output.o4a(tmp0_desc, 23) ? true : !value.i7v_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 23, value.i7v_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_46).b45 = function (encoder, value) { return this.rk0(encoder, value instanceof ClazzAssignment ? value : THROW_CCE()); }; var $serializer_instance_46; function $serializer_getInstance_46() { if ($serializer_instance_46 == null) new $serializer_46(); return $serializer_instance_46; } function ClazzAssignment_init_$Init$(seen1, caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_46().qk0_1); } if (0 === (seen1 & 1)) $this.l7u_1 = new Long(0, 0); else $this.l7u_1 = caUid; if (0 === (seen1 & 2)) $this.m7u_1 = null; else $this.m7u_1 = caTitle; if (0 === (seen1 & 4)) $this.n7u_1 = null; else $this.n7u_1 = caDescription; if (0 === (seen1 & 8)) $this.o7u_1 = new Long(0, 0); else $this.o7u_1 = caGroupUid; if (0 === (seen1 & 16)) $this.p7u_1 = true; else $this.p7u_1 = caActive; if (0 === (seen1 & 32)) $this.q7u_1 = true; else $this.q7u_1 = caClassCommentEnabled; if (0 === (seen1 & 64)) $this.r7u_1 = true; else $this.r7u_1 = caPrivateCommentsEnabled; if (0 === (seen1 & 128)) $this.s7u_1 = 100; else $this.s7u_1 = caCompletionCriteria; if (0 === (seen1 & 256)) $this.t7u_1 = true; else $this.t7u_1 = caRequireFileSubmission; if (0 === (seen1 & 512)) $this.u7u_1 = 0; else $this.u7u_1 = caFileType; if (0 === (seen1 & 1024)) $this.v7u_1 = 50; else $this.v7u_1 = caSizeLimit; if (0 === (seen1 & 2048)) $this.w7u_1 = 1; else $this.w7u_1 = caNumberOfFiles; if (0 === (seen1 & 4096)) $this.x7u_1 = 1; else $this.x7u_1 = caSubmissionPolicy; if (0 === (seen1 & 8192)) $this.y7u_1 = 1; else $this.y7u_1 = caMarkingType; if (0 === (seen1 & 16384)) $this.z7u_1 = true; else $this.z7u_1 = caRequireTextSubmission; if (0 === (seen1 & 32768)) $this.a7v_1 = 1; else $this.a7v_1 = caTextLimitType; if (0 === (seen1 & 65536)) $this.b7v_1 = 500; else $this.b7v_1 = caTextLimit; if (0 === (seen1 & 131072)) $this.c7v_1 = new Long(0, 0); else $this.c7v_1 = caXObjectUid; if (0 === (seen1 & 262144)) $this.d7v_1 = new Long(0, 0); else $this.d7v_1 = caClazzUid; if (0 === (seen1 & 524288)) $this.e7v_1 = 0; else $this.e7v_1 = caPeerReviewerCount; if (0 === (seen1 & 1048576)) $this.f7v_1 = new Long(0, 0); else $this.f7v_1 = caLocalChangeSeqNum; if (0 === (seen1 & 2097152)) $this.g7v_1 = new Long(0, 0); else $this.g7v_1 = caMasterChangeSeqNum; if (0 === (seen1 & 4194304)) $this.h7v_1 = 0; else $this.h7v_1 = caLastChangedBy; if (0 === (seen1 & 8388608)) $this.i7v_1 = new Long(0, 0); else $this.i7v_1 = caLct; return $this; } function ClazzAssignment_init_$Create$(seen1, caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct, serializationConstructorMarker) { return ClazzAssignment_init_$Init$(seen1, caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct, serializationConstructorMarker, objectCreate(protoOf(ClazzAssignment))); } function ClazzAssignment(caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) { caUid = caUid === VOID ? new Long(0, 0) : caUid; caTitle = caTitle === VOID ? null : caTitle; caDescription = caDescription === VOID ? null : caDescription; caGroupUid = caGroupUid === VOID ? new Long(0, 0) : caGroupUid; caActive = caActive === VOID ? true : caActive; caClassCommentEnabled = caClassCommentEnabled === VOID ? true : caClassCommentEnabled; caPrivateCommentsEnabled = caPrivateCommentsEnabled === VOID ? true : caPrivateCommentsEnabled; caCompletionCriteria = caCompletionCriteria === VOID ? 100 : caCompletionCriteria; caRequireFileSubmission = caRequireFileSubmission === VOID ? true : caRequireFileSubmission; caFileType = caFileType === VOID ? 0 : caFileType; caSizeLimit = caSizeLimit === VOID ? 50 : caSizeLimit; caNumberOfFiles = caNumberOfFiles === VOID ? 1 : caNumberOfFiles; caSubmissionPolicy = caSubmissionPolicy === VOID ? 1 : caSubmissionPolicy; caMarkingType = caMarkingType === VOID ? 1 : caMarkingType; caRequireTextSubmission = caRequireTextSubmission === VOID ? true : caRequireTextSubmission; caTextLimitType = caTextLimitType === VOID ? 1 : caTextLimitType; caTextLimit = caTextLimit === VOID ? 500 : caTextLimit; caXObjectUid = caXObjectUid === VOID ? new Long(0, 0) : caXObjectUid; caClazzUid = caClazzUid === VOID ? new Long(0, 0) : caClazzUid; caPeerReviewerCount = caPeerReviewerCount === VOID ? 0 : caPeerReviewerCount; caLocalChangeSeqNum = caLocalChangeSeqNum === VOID ? new Long(0, 0) : caLocalChangeSeqNum; caMasterChangeSeqNum = caMasterChangeSeqNum === VOID ? new Long(0, 0) : caMasterChangeSeqNum; caLastChangedBy = caLastChangedBy === VOID ? 0 : caLastChangedBy; caLct = caLct === VOID ? new Long(0, 0) : caLct; this.l7u_1 = caUid; this.m7u_1 = caTitle; this.n7u_1 = caDescription; this.o7u_1 = caGroupUid; this.p7u_1 = caActive; this.q7u_1 = caClassCommentEnabled; this.r7u_1 = caPrivateCommentsEnabled; this.s7u_1 = caCompletionCriteria; this.t7u_1 = caRequireFileSubmission; this.u7u_1 = caFileType; this.v7u_1 = caSizeLimit; this.w7u_1 = caNumberOfFiles; this.x7u_1 = caSubmissionPolicy; this.y7u_1 = caMarkingType; this.z7u_1 = caRequireTextSubmission; this.a7v_1 = caTextLimitType; this.b7v_1 = caTextLimit; this.c7v_1 = caXObjectUid; this.d7v_1 = caClazzUid; this.e7v_1 = caPeerReviewerCount; this.f7v_1 = caLocalChangeSeqNum; this.g7v_1 = caMasterChangeSeqNum; this.h7v_1 = caLastChangedBy; this.i7v_1 = caLct; } protoOf(ClazzAssignment).toString = function () { return 'ClazzAssignment(caUid=' + this.l7u_1.toString() + ', caTitle=' + this.m7u_1 + ', caDescription=' + this.n7u_1 + ', caGroupUid=' + this.o7u_1.toString() + ', caActive=' + this.p7u_1 + ', caClassCommentEnabled=' + this.q7u_1 + ', caPrivateCommentsEnabled=' + this.r7u_1 + ', caCompletionCriteria=' + this.s7u_1 + ', caRequireFileSubmission=' + this.t7u_1 + ', caFileType=' + this.u7u_1 + ', caSizeLimit=' + this.v7u_1 + ', caNumberOfFiles=' + this.w7u_1 + ', caSubmissionPolicy=' + this.x7u_1 + ', caMarkingType=' + this.y7u_1 + ', caRequireTextSubmission=' + this.z7u_1 + ', caTextLimitType=' + this.a7v_1 + ', caTextLimit=' + this.b7v_1 + ', caXObjectUid=' + this.c7v_1.toString() + ', caClazzUid=' + this.d7v_1.toString() + ', caPeerReviewerCount=' + this.e7v_1 + ', caLocalChangeSeqNum=' + this.f7v_1.toString() + ', caMasterChangeSeqNum=' + this.g7v_1.toString() + ', caLastChangedBy=' + this.h7v_1 + ', caLct=' + this.i7v_1.toString() + ')'; }; protoOf(ClazzAssignment).hashCode = function () { var result = this.l7u_1.hashCode(); result = imul(result, 31) + (this.m7u_1 == null ? 0 : getStringHashCode(this.m7u_1)) | 0; result = imul(result, 31) + (this.n7u_1 == null ? 0 : getStringHashCode(this.n7u_1)) | 0; result = imul(result, 31) + this.o7u_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.p7u_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.q7u_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.r7u_1) | 0; result = imul(result, 31) + this.s7u_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.t7u_1) | 0; result = imul(result, 31) + this.u7u_1 | 0; result = imul(result, 31) + this.v7u_1 | 0; result = imul(result, 31) + this.w7u_1 | 0; result = imul(result, 31) + this.x7u_1 | 0; result = imul(result, 31) + this.y7u_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.z7u_1) | 0; result = imul(result, 31) + this.a7v_1 | 0; result = imul(result, 31) + this.b7v_1 | 0; result = imul(result, 31) + this.c7v_1.hashCode() | 0; result = imul(result, 31) + this.d7v_1.hashCode() | 0; result = imul(result, 31) + this.e7v_1 | 0; result = imul(result, 31) + this.f7v_1.hashCode() | 0; result = imul(result, 31) + this.g7v_1.hashCode() | 0; result = imul(result, 31) + this.h7v_1 | 0; result = imul(result, 31) + this.i7v_1.hashCode() | 0; return result; }; protoOf(ClazzAssignment).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzAssignment)) return false; var tmp0_other_with_cast = other instanceof ClazzAssignment ? other : THROW_CCE(); if (!this.l7u_1.equals(tmp0_other_with_cast.l7u_1)) return false; if (!(this.m7u_1 == tmp0_other_with_cast.m7u_1)) return false; if (!(this.n7u_1 == tmp0_other_with_cast.n7u_1)) return false; if (!this.o7u_1.equals(tmp0_other_with_cast.o7u_1)) return false; if (!(this.p7u_1 === tmp0_other_with_cast.p7u_1)) return false; if (!(this.q7u_1 === tmp0_other_with_cast.q7u_1)) return false; if (!(this.r7u_1 === tmp0_other_with_cast.r7u_1)) return false; if (!(this.s7u_1 === tmp0_other_with_cast.s7u_1)) return false; if (!(this.t7u_1 === tmp0_other_with_cast.t7u_1)) return false; if (!(this.u7u_1 === tmp0_other_with_cast.u7u_1)) return false; if (!(this.v7u_1 === tmp0_other_with_cast.v7u_1)) return false; if (!(this.w7u_1 === tmp0_other_with_cast.w7u_1)) return false; if (!(this.x7u_1 === tmp0_other_with_cast.x7u_1)) return false; if (!(this.y7u_1 === tmp0_other_with_cast.y7u_1)) return false; if (!(this.z7u_1 === tmp0_other_with_cast.z7u_1)) return false; if (!(this.a7v_1 === tmp0_other_with_cast.a7v_1)) return false; if (!(this.b7v_1 === tmp0_other_with_cast.b7v_1)) return false; if (!this.c7v_1.equals(tmp0_other_with_cast.c7v_1)) return false; if (!this.d7v_1.equals(tmp0_other_with_cast.d7v_1)) return false; if (!(this.e7v_1 === tmp0_other_with_cast.e7v_1)) return false; if (!this.f7v_1.equals(tmp0_other_with_cast.f7v_1)) return false; if (!this.g7v_1.equals(tmp0_other_with_cast.g7v_1)) return false; if (!(this.h7v_1 === tmp0_other_with_cast.h7v_1)) return false; if (!this.i7v_1.equals(tmp0_other_with_cast.i7v_1)) return false; return true; }; function Companion_50() { } var Companion_instance_51; function Companion_getInstance_53() { return Companion_instance_51; } function $serializer_47() { $serializer_instance_47 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzAssignmentCourseBlockAndSubmitterUid', this, 6); tmp0_serialDesc.d4g('clazzAssignment', true); tmp0_serialDesc.d4g('courseBlock', true); tmp0_serialDesc.d4g('courseBlockPicture', true); tmp0_serialDesc.d4g('courseGroupSet', true); tmp0_serialDesc.d4g('submitterUid', true); tmp0_serialDesc.d4g('hasModeratePermission', true); this.sk0_1 = tmp0_serialDesc; } protoOf($serializer_47).a45 = function () { return this.sk0_1; }; protoOf($serializer_47).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_46()), get_nullable($serializer_getInstance_72()), get_nullable($serializer_getInstance_73()), get_nullable($serializer_getInstance_76()), LongSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_47).c45 = function (decoder) { var tmp0_desc = this.sk0_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = false; var tmp10_input = decoder.s48(tmp0_desc); if (tmp10_input.h49()) { tmp4_local0 = tmp10_input.g49(tmp0_desc, 0, $serializer_getInstance_46(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.g49(tmp0_desc, 1, $serializer_getInstance_72(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.g49(tmp0_desc, 2, $serializer_getInstance_73(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.g49(tmp0_desc, 3, $serializer_getInstance_76(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.u48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.g49(tmp0_desc, 0, $serializer_getInstance_46(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.g49(tmp0_desc, 1, $serializer_getInstance_72(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.g49(tmp0_desc, 2, $serializer_getInstance_73(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.g49(tmp0_desc, 3, $serializer_getInstance_76(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.u48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.t48(tmp0_desc); return ClazzAssignmentCourseBlockAndSubmitterUid_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_47).tk0 = function (encoder, value) { var tmp0_desc = this.sk0_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.o7z_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_46(), value.o7z_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.p7z_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_72(), value.p7z_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.q7z_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, $serializer_getInstance_73(), value.q7z_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.r7z_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, $serializer_getInstance_76(), value.r7z_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.s7z_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.s7z_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.t7z_1 === false)) { tmp1_output.y49(tmp0_desc, 5, value.t7z_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_47).b45 = function (encoder, value) { return this.tk0(encoder, value instanceof ClazzAssignmentCourseBlockAndSubmitterUid ? value : THROW_CCE()); }; var $serializer_instance_47; function $serializer_getInstance_47() { if ($serializer_instance_47 == null) new $serializer_47(); return $serializer_instance_47; } function ClazzAssignmentCourseBlockAndSubmitterUid_init_$Init$(seen1, clazzAssignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, hasModeratePermission, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_47().sk0_1); } if (0 === (seen1 & 1)) $this.o7z_1 = null; else $this.o7z_1 = clazzAssignment; if (0 === (seen1 & 2)) $this.p7z_1 = null; else $this.p7z_1 = courseBlock; if (0 === (seen1 & 4)) $this.q7z_1 = null; else $this.q7z_1 = courseBlockPicture; if (0 === (seen1 & 8)) $this.r7z_1 = null; else $this.r7z_1 = courseGroupSet; if (0 === (seen1 & 16)) $this.s7z_1 = new Long(0, 0); else $this.s7z_1 = submitterUid; if (0 === (seen1 & 32)) $this.t7z_1 = false; else $this.t7z_1 = hasModeratePermission; return $this; } function ClazzAssignmentCourseBlockAndSubmitterUid_init_$Create$(seen1, clazzAssignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, hasModeratePermission, serializationConstructorMarker) { return ClazzAssignmentCourseBlockAndSubmitterUid_init_$Init$(seen1, clazzAssignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, hasModeratePermission, serializationConstructorMarker, objectCreate(protoOf(ClazzAssignmentCourseBlockAndSubmitterUid))); } function ClazzAssignmentCourseBlockAndSubmitterUid(clazzAssignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, hasModeratePermission) { clazzAssignment = clazzAssignment === VOID ? null : clazzAssignment; courseBlock = courseBlock === VOID ? null : courseBlock; courseBlockPicture = courseBlockPicture === VOID ? null : courseBlockPicture; courseGroupSet = courseGroupSet === VOID ? null : courseGroupSet; submitterUid = submitterUid === VOID ? new Long(0, 0) : submitterUid; hasModeratePermission = hasModeratePermission === VOID ? false : hasModeratePermission; this.o7z_1 = clazzAssignment; this.p7z_1 = courseBlock; this.q7z_1 = courseBlockPicture; this.r7z_1 = courseGroupSet; this.s7z_1 = submitterUid; this.t7z_1 = hasModeratePermission; } protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).toString = function () { return 'ClazzAssignmentCourseBlockAndSubmitterUid(clazzAssignment=' + this.o7z_1 + ', courseBlock=' + this.p7z_1 + ', courseBlockPicture=' + this.q7z_1 + ', courseGroupSet=' + this.r7z_1 + ', submitterUid=' + this.s7z_1.toString() + ', hasModeratePermission=' + this.t7z_1 + ')'; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).hashCode = function () { var result = this.o7z_1 == null ? 0 : this.o7z_1.hashCode(); result = imul(result, 31) + (this.p7z_1 == null ? 0 : this.p7z_1.hashCode()) | 0; result = imul(result, 31) + (this.q7z_1 == null ? 0 : this.q7z_1.hashCode()) | 0; result = imul(result, 31) + (this.r7z_1 == null ? 0 : hashCode(this.r7z_1)) | 0; result = imul(result, 31) + this.s7z_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.t7z_1) | 0; return result; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzAssignmentCourseBlockAndSubmitterUid)) return false; var tmp0_other_with_cast = other instanceof ClazzAssignmentCourseBlockAndSubmitterUid ? other : THROW_CCE(); if (!equals(this.o7z_1, tmp0_other_with_cast.o7z_1)) return false; if (!equals(this.p7z_1, tmp0_other_with_cast.p7z_1)) return false; if (!equals(this.q7z_1, tmp0_other_with_cast.q7z_1)) return false; if (!equals(this.r7z_1, tmp0_other_with_cast.r7z_1)) return false; if (!this.s7z_1.equals(tmp0_other_with_cast.s7z_1)) return false; if (!(this.t7z_1 === tmp0_other_with_cast.t7z_1)) return false; return true; }; function ClazzEnrolment_init_$Init$(clazzUid, personUid, role, $this) { ClazzEnrolment.call($this); $this.b8j_1 = clazzUid; $this.a8j_1 = personUid; $this.e8j_1 = role; $this.g8j_1 = true; return $this; } function ClazzEnrolment_init_$Create$(clazzUid, personUid, role) { return ClazzEnrolment_init_$Init$(clazzUid, personUid, role, objectCreate(protoOf(ClazzEnrolment))); } function Companion_51() { this.uk0_1 = 1000; this.vk0_1 = 1001; this.wk0_1 = 1002; this.xk0_1 = 1003; this.yk0_1 = 200; this.zk0_1 = 201; this.ak1_1 = 202; this.bk1_1 = 203; this.ck1_1 = 65; } var Companion_instance_52; function Companion_getInstance_54() { return Companion_instance_52; } function $serializer_48() { $serializer_instance_48 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzEnrolment', this, 14); tmp0_serialDesc.d4g('clazzEnrolmentUid', true); tmp0_serialDesc.d4g('clazzEnrolmentPersonUid', true); tmp0_serialDesc.d4g('clazzEnrolmentClazzUid', true); tmp0_serialDesc.d4g('clazzEnrolmentDateJoined', true); tmp0_serialDesc.d4g('clazzEnrolmentDateLeft', true); tmp0_serialDesc.d4g('clazzEnrolmentRole', true); tmp0_serialDesc.d4g('clazzEnrolmentAttendancePercentage', true); tmp0_serialDesc.d4g('clazzEnrolmentActive', true); tmp0_serialDesc.d4g('clazzEnrolmentLeavingReasonUid', true); tmp0_serialDesc.d4g('clazzEnrolmentOutcome', true); tmp0_serialDesc.d4g('clazzEnrolmentLocalChangeSeqNum', true); tmp0_serialDesc.d4g('clazzEnrolmentMasterChangeSeqNum', true); tmp0_serialDesc.d4g('clazzEnrolmentLastChangedBy', true); tmp0_serialDesc.d4g('clazzEnrolmentLct', true); this.dk1_1 = tmp0_serialDesc; } protoOf($serializer_48).a45 = function () { return this.dk1_1; }; protoOf($serializer_48).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), FloatSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_48).c45 = function (decoder) { var tmp0_desc = this.dk1_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = 0; var tmp10_local6 = 0.0; var tmp11_local7 = false; var tmp12_local8 = new Long(0, 0); var tmp13_local9 = 0; var tmp14_local10 = new Long(0, 0); var tmp15_local11 = new Long(0, 0); var tmp16_local12 = 0; var tmp17_local13 = new Long(0, 0); var tmp18_input = decoder.s48(tmp0_desc); if (tmp18_input.h49()) { tmp4_local0 = tmp18_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp18_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp18_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp18_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp18_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp18_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp18_input.z48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp18_input.u48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp18_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp18_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp18_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp18_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp18_input.x48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp18_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; } else while (tmp1_flag) { tmp2_index = tmp18_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp18_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp18_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp18_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp18_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp18_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp18_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp18_input.z48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp18_input.u48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp18_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp18_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp18_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp18_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp18_input.x48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp18_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp18_input.t48(tmp0_desc); return ClazzEnrolment_init_$Create$_0(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); }; protoOf($serializer_48).ek1 = function (encoder, value) { var tmp0_desc = this.dk1_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.z8i_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.z8i_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.a8j_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.a8j_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.b8j_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.b8j_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.c8j_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.c8j_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.d8j_1.equals(get_UNSET_DISTANT_FUTURE())) { tmp1_output.c4a(tmp0_desc, 4, value.d8j_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.e8j_1 === 0)) { tmp1_output.b4a(tmp0_desc, 5, value.e8j_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !equals(value.f8j_1, 0.0)) { tmp1_output.d4a(tmp0_desc, 6, value.f8j_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.g8j_1 === true)) { tmp1_output.y49(tmp0_desc, 7, value.g8j_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !value.h8j_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 8, value.h8j_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !(value.i8j_1 === 200)) { tmp1_output.b4a(tmp0_desc, 9, value.i8j_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !value.j8j_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 10, value.j8j_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !value.k8j_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 11, value.k8j_1); } if (tmp1_output.o4a(tmp0_desc, 12) ? true : !(value.l8j_1 === 0)) { tmp1_output.b4a(tmp0_desc, 12, value.l8j_1); } if (tmp1_output.o4a(tmp0_desc, 13) ? true : !value.m8j_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 13, value.m8j_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_48).b45 = function (encoder, value) { return this.ek1(encoder, value instanceof ClazzEnrolment ? value : THROW_CCE()); }; var $serializer_instance_48; function $serializer_getInstance_48() { if ($serializer_instance_48 == null) new $serializer_48(); return $serializer_instance_48; } function ClazzEnrolment_init_$Init$_0(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_48().dk1_1); } if (0 === (seen1 & 1)) $this.z8i_1 = new Long(0, 0); else $this.z8i_1 = clazzEnrolmentUid; if (0 === (seen1 & 2)) $this.a8j_1 = new Long(0, 0); else $this.a8j_1 = clazzEnrolmentPersonUid; if (0 === (seen1 & 4)) $this.b8j_1 = new Long(0, 0); else $this.b8j_1 = clazzEnrolmentClazzUid; if (0 === (seen1 & 8)) $this.c8j_1 = new Long(0, 0); else $this.c8j_1 = clazzEnrolmentDateJoined; if (0 === (seen1 & 16)) $this.d8j_1 = get_UNSET_DISTANT_FUTURE(); else $this.d8j_1 = clazzEnrolmentDateLeft; if (0 === (seen1 & 32)) $this.e8j_1 = 0; else $this.e8j_1 = clazzEnrolmentRole; if (0 === (seen1 & 64)) $this.f8j_1 = 0.0; else $this.f8j_1 = clazzEnrolmentAttendancePercentage; if (0 === (seen1 & 128)) $this.g8j_1 = true; else $this.g8j_1 = clazzEnrolmentActive; if (0 === (seen1 & 256)) $this.h8j_1 = new Long(0, 0); else $this.h8j_1 = clazzEnrolmentLeavingReasonUid; if (0 === (seen1 & 512)) $this.i8j_1 = 200; else $this.i8j_1 = clazzEnrolmentOutcome; if (0 === (seen1 & 1024)) $this.j8j_1 = new Long(0, 0); else $this.j8j_1 = clazzEnrolmentLocalChangeSeqNum; if (0 === (seen1 & 2048)) $this.k8j_1 = new Long(0, 0); else $this.k8j_1 = clazzEnrolmentMasterChangeSeqNum; if (0 === (seen1 & 4096)) $this.l8j_1 = 0; else $this.l8j_1 = clazzEnrolmentLastChangedBy; if (0 === (seen1 & 8192)) $this.m8j_1 = new Long(0, 0); else $this.m8j_1 = clazzEnrolmentLct; return $this; } function ClazzEnrolment_init_$Create$_0(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, serializationConstructorMarker) { return ClazzEnrolment_init_$Init$_0(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, serializationConstructorMarker, objectCreate(protoOf(ClazzEnrolment))); } function ClazzEnrolment() { this.z8i_1 = new Long(0, 0); this.a8j_1 = new Long(0, 0); this.b8j_1 = new Long(0, 0); this.c8j_1 = new Long(0, 0); this.d8j_1 = get_UNSET_DISTANT_FUTURE(); this.e8j_1 = 0; this.f8j_1 = 0.0; this.g8j_1 = true; this.h8j_1 = new Long(0, 0); this.i8j_1 = 200; this.j8j_1 = new Long(0, 0); this.k8j_1 = new Long(0, 0); this.l8j_1 = 0; this.m8j_1 = new Long(0, 0); } function Companion_52() { } protoOf(Companion_52).x4r = function () { return $serializer_getInstance_49(); }; var Companion_instance_53; function Companion_getInstance_55() { return Companion_instance_53; } function $serializer_49() { $serializer_instance_49 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzEnrolmentWithLeavingReason', this, 16); tmp0_serialDesc.d4g('clazzEnrolmentUid', true); tmp0_serialDesc.d4g('clazzEnrolmentPersonUid', true); tmp0_serialDesc.d4g('clazzEnrolmentClazzUid', true); tmp0_serialDesc.d4g('clazzEnrolmentDateJoined', true); tmp0_serialDesc.d4g('clazzEnrolmentDateLeft', true); tmp0_serialDesc.d4g('clazzEnrolmentRole', true); tmp0_serialDesc.d4g('clazzEnrolmentAttendancePercentage', true); tmp0_serialDesc.d4g('clazzEnrolmentActive', true); tmp0_serialDesc.d4g('clazzEnrolmentLeavingReasonUid', true); tmp0_serialDesc.d4g('clazzEnrolmentOutcome', true); tmp0_serialDesc.d4g('clazzEnrolmentLocalChangeSeqNum', true); tmp0_serialDesc.d4g('clazzEnrolmentMasterChangeSeqNum', true); tmp0_serialDesc.d4g('clazzEnrolmentLastChangedBy', true); tmp0_serialDesc.d4g('clazzEnrolmentLct', true); tmp0_serialDesc.d4g('leavingReason', true); tmp0_serialDesc.d4g('timeZone', true); this.fk1_1 = tmp0_serialDesc; } protoOf($serializer_49).a45 = function () { return this.fk1_1; }; protoOf($serializer_49).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), FloatSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_90()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_49).c45 = function (decoder) { var tmp0_desc = this.fk1_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = 0; var tmp10_local6 = 0.0; var tmp11_local7 = false; var tmp12_local8 = new Long(0, 0); var tmp13_local9 = 0; var tmp14_local10 = new Long(0, 0); var tmp15_local11 = new Long(0, 0); var tmp16_local12 = 0; var tmp17_local13 = new Long(0, 0); var tmp18_local14 = null; var tmp19_local15 = null; var tmp20_input = decoder.s48(tmp0_desc); if (tmp20_input.h49()) { tmp4_local0 = tmp20_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp20_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp20_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp20_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp20_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp20_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp20_input.z48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp20_input.u48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp20_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp20_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp20_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp20_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp20_input.x48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp20_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp20_input.g49(tmp0_desc, 14, $serializer_getInstance_90(), tmp18_local14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp20_input.g49(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; } else while (tmp1_flag) { tmp2_index = tmp20_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp20_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp20_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp20_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp20_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp20_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp20_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp20_input.z48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp20_input.u48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp20_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp20_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp20_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp20_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp20_input.x48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp20_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp20_input.g49(tmp0_desc, 14, $serializer_getInstance_90(), tmp18_local14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp20_input.g49(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp20_input.t48(tmp0_desc); return ClazzEnrolmentWithLeavingReason_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, null); }; protoOf($serializer_49).gk1 = function (encoder, value) { var tmp0_desc = this.fk1_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.z8i_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.z8i_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.a8j_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.a8j_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.b8j_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.b8j_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.c8j_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.c8j_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.d8j_1.equals(get_UNSET_DISTANT_FUTURE())) { tmp1_output.c4a(tmp0_desc, 4, value.d8j_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.e8j_1 === 0)) { tmp1_output.b4a(tmp0_desc, 5, value.e8j_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !equals(value.f8j_1, 0.0)) { tmp1_output.d4a(tmp0_desc, 6, value.f8j_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.g8j_1 === true)) { tmp1_output.y49(tmp0_desc, 7, value.g8j_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !value.h8j_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 8, value.h8j_1); } var tmp; if (tmp1_output.o4a(tmp0_desc, 9)) { tmp = true; } else { var tmp_0 = value.i8j_1; tmp = !(tmp_0 === 200); } if (tmp) { tmp1_output.b4a(tmp0_desc, 9, value.i8j_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !value.j8j_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 10, value.j8j_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !value.k8j_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 11, value.k8j_1); } if (tmp1_output.o4a(tmp0_desc, 12) ? true : !(value.l8j_1 === 0)) { tmp1_output.b4a(tmp0_desc, 12, value.l8j_1); } if (tmp1_output.o4a(tmp0_desc, 13) ? true : !value.m8j_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 13, value.m8j_1); } if (tmp1_output.o4a(tmp0_desc, 14) ? true : !(value.m95_1 == null)) { tmp1_output.k4a(tmp0_desc, 14, $serializer_getInstance_90(), value.m95_1); } if (tmp1_output.o4a(tmp0_desc, 15) ? true : !(value.n95_1 == null)) { tmp1_output.k4a(tmp0_desc, 15, StringSerializer_getInstance(), value.n95_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_49).b45 = function (encoder, value) { return this.gk1(encoder, value instanceof ClazzEnrolmentWithLeavingReason ? value : THROW_CCE()); }; var $serializer_instance_49; function $serializer_getInstance_49() { if ($serializer_instance_49 == null) new $serializer_49(); return $serializer_instance_49; } function ClazzEnrolmentWithLeavingReason_init_$Init$(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, leavingReason, timeZone, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_49().fk1_1); } ClazzEnrolment_init_$Init$_0(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, serializationConstructorMarker, $this); if (0 === (seen1 & 16384)) $this.m95_1 = null; else $this.m95_1 = leavingReason; if (0 === (seen1 & 32768)) $this.n95_1 = null; else $this.n95_1 = timeZone; return $this; } function ClazzEnrolmentWithLeavingReason_init_$Create$(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, leavingReason, timeZone, serializationConstructorMarker) { return ClazzEnrolmentWithLeavingReason_init_$Init$(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, leavingReason, timeZone, serializationConstructorMarker, objectCreate(protoOf(ClazzEnrolmentWithLeavingReason))); } function ClazzEnrolmentWithLeavingReason() { ClazzEnrolment.call(this); this.m95_1 = null; this.n95_1 = null; } function Companion_53() { this.hk1_1 = 14; this.ik1_1 = 0; this.jk1_1 = 1; this.kk1_1 = 2; this.lk1_1 = 4; this.mk1_1 = 8; this.nk1_1 = 16; } protoOf(Companion_53).x4r = function () { return $serializer_getInstance_50(); }; var Companion_instance_54; function Companion_getInstance_56() { return Companion_instance_54; } function $serializer_50() { $serializer_instance_50 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzLog', this, 16); tmp0_serialDesc.d4g('clazzLogUid', true); tmp0_serialDesc.d4g('clazzLogClazzUid', true); tmp0_serialDesc.d4g('logDate', true); tmp0_serialDesc.d4g('timeRecorded', true); tmp0_serialDesc.d4g('clazzLogDone', true); tmp0_serialDesc.d4g('cancellationNote', true); tmp0_serialDesc.d4g('clazzLogCancelled', true); tmp0_serialDesc.d4g('clazzLogNumPresent', true); tmp0_serialDesc.d4g('clazzLogNumAbsent', true); tmp0_serialDesc.d4g('clazzLogNumPartial', true); tmp0_serialDesc.d4g('clazzLogScheduleUid', true); tmp0_serialDesc.d4g('clazzLogStatusFlag', true); tmp0_serialDesc.d4g('clazzLogMSQN', true); tmp0_serialDesc.d4g('clazzLogLCSN', true); tmp0_serialDesc.d4g('clazzLogLCB', true); tmp0_serialDesc.d4g('clazzLogLastChangedTime', true); this.ok1_1 = tmp0_serialDesc; } protoOf($serializer_50).a45 = function () { return this.ok1_1; }; protoOf($serializer_50).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_50).c45 = function (decoder) { var tmp0_desc = this.ok1_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = false; var tmp9_local5 = null; var tmp10_local6 = false; var tmp11_local7 = 0; var tmp12_local8 = 0; var tmp13_local9 = 0; var tmp14_local10 = new Long(0, 0); var tmp15_local11 = 0; var tmp16_local12 = new Long(0, 0); var tmp17_local13 = new Long(0, 0); var tmp18_local14 = 0; var tmp19_local15 = new Long(0, 0); var tmp20_input = decoder.s48(tmp0_desc); if (tmp20_input.h49()) { tmp4_local0 = tmp20_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp20_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp20_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp20_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp20_input.u48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp20_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp20_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp20_input.x48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp20_input.x48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp20_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp20_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp20_input.x48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp20_input.y48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp20_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp20_input.x48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp20_input.y48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; } else while (tmp1_flag) { tmp2_index = tmp20_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp20_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp20_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp20_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp20_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp20_input.u48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp20_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp20_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp20_input.x48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp20_input.x48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp20_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp20_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp20_input.x48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp20_input.y48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp20_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp20_input.x48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp20_input.y48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp20_input.t48(tmp0_desc); return ClazzLog_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, null); }; protoOf($serializer_50).pk1 = function (encoder, value) { var tmp0_desc = this.ok1_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.u9r_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.u9r_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.v9r_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.v9r_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.w9r_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.w9r_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.x9r_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.x9r_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.y9r_1 === false)) { tmp1_output.y49(tmp0_desc, 4, value.y9r_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.z9r_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, StringSerializer_getInstance(), value.z9r_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.a9s_1 === false)) { tmp1_output.y49(tmp0_desc, 6, value.a9s_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.b9s_1 === 0)) { tmp1_output.b4a(tmp0_desc, 7, value.b9s_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !(value.c9s_1 === 0)) { tmp1_output.b4a(tmp0_desc, 8, value.c9s_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !(value.d9s_1 === 0)) { tmp1_output.b4a(tmp0_desc, 9, value.d9s_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !value.e9s_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 10, value.e9s_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !(value.f9s_1 === 0)) { tmp1_output.b4a(tmp0_desc, 11, value.f9s_1); } if (tmp1_output.o4a(tmp0_desc, 12) ? true : !value.g9s_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 12, value.g9s_1); } if (tmp1_output.o4a(tmp0_desc, 13) ? true : !value.h9s_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 13, value.h9s_1); } if (tmp1_output.o4a(tmp0_desc, 14) ? true : !(value.i9s_1 === 0)) { tmp1_output.b4a(tmp0_desc, 14, value.i9s_1); } if (tmp1_output.o4a(tmp0_desc, 15) ? true : !value.j9s_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 15, value.j9s_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_50).b45 = function (encoder, value) { return this.pk1(encoder, value instanceof ClazzLog ? value : THROW_CCE()); }; var $serializer_instance_50; function $serializer_getInstance_50() { if ($serializer_instance_50 == null) new $serializer_50(); return $serializer_instance_50; } function ClazzLog_init_$Init$(seen1, clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_50().ok1_1); } if (0 === (seen1 & 1)) $this.u9r_1 = new Long(0, 0); else $this.u9r_1 = clazzLogUid; if (0 === (seen1 & 2)) $this.v9r_1 = new Long(0, 0); else $this.v9r_1 = clazzLogClazzUid; if (0 === (seen1 & 4)) $this.w9r_1 = new Long(0, 0); else $this.w9r_1 = logDate; if (0 === (seen1 & 8)) $this.x9r_1 = new Long(0, 0); else $this.x9r_1 = timeRecorded; if (0 === (seen1 & 16)) $this.y9r_1 = false; else $this.y9r_1 = clazzLogDone; if (0 === (seen1 & 32)) $this.z9r_1 = null; else $this.z9r_1 = cancellationNote; if (0 === (seen1 & 64)) $this.a9s_1 = false; else $this.a9s_1 = clazzLogCancelled; if (0 === (seen1 & 128)) $this.b9s_1 = 0; else $this.b9s_1 = clazzLogNumPresent; if (0 === (seen1 & 256)) $this.c9s_1 = 0; else $this.c9s_1 = clazzLogNumAbsent; if (0 === (seen1 & 512)) $this.d9s_1 = 0; else $this.d9s_1 = clazzLogNumPartial; if (0 === (seen1 & 1024)) $this.e9s_1 = new Long(0, 0); else $this.e9s_1 = clazzLogScheduleUid; if (0 === (seen1 & 2048)) $this.f9s_1 = 0; else $this.f9s_1 = clazzLogStatusFlag; if (0 === (seen1 & 4096)) $this.g9s_1 = new Long(0, 0); else $this.g9s_1 = clazzLogMSQN; if (0 === (seen1 & 8192)) $this.h9s_1 = new Long(0, 0); else $this.h9s_1 = clazzLogLCSN; if (0 === (seen1 & 16384)) $this.i9s_1 = 0; else $this.i9s_1 = clazzLogLCB; if (0 === (seen1 & 32768)) $this.j9s_1 = new Long(0, 0); else $this.j9s_1 = clazzLogLastChangedTime; return $this; } function ClazzLog_init_$Create$(seen1, clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime, serializationConstructorMarker) { return ClazzLog_init_$Init$(seen1, clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime, serializationConstructorMarker, objectCreate(protoOf(ClazzLog))); } function ClazzLog() { this.u9r_1 = new Long(0, 0); this.v9r_1 = new Long(0, 0); this.w9r_1 = new Long(0, 0); this.x9r_1 = new Long(0, 0); this.y9r_1 = false; this.z9r_1 = null; this.a9s_1 = false; this.b9s_1 = 0; this.c9s_1 = 0; this.d9s_1 = 0; this.e9s_1 = new Long(0, 0); this.f9s_1 = 0; this.g9s_1 = new Long(0, 0); this.h9s_1 = new Long(0, 0); this.i9s_1 = 0; this.j9s_1 = new Long(0, 0); } protoOf(ClazzLog).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!(other instanceof ClazzLog)) THROW_CCE(); if (!this.u9r_1.equals(other.u9r_1)) return false; if (!this.v9r_1.equals(other.v9r_1)) return false; if (!this.w9r_1.equals(other.w9r_1)) return false; if (!this.x9r_1.equals(other.x9r_1)) return false; if (!(this.y9r_1 === other.y9r_1)) return false; if (!(this.z9r_1 == other.z9r_1)) return false; if (!(this.a9s_1 === other.a9s_1)) return false; if (!(this.b9s_1 === other.b9s_1)) return false; if (!(this.c9s_1 === other.c9s_1)) return false; if (!(this.d9s_1 === other.d9s_1)) return false; if (!this.e9s_1.equals(other.e9s_1)) return false; if (!(this.f9s_1 === other.f9s_1)) return false; if (!this.g9s_1.equals(other.g9s_1)) return false; if (!this.h9s_1.equals(other.h9s_1)) return false; if (!(this.i9s_1 === other.i9s_1)) return false; if (!this.j9s_1.equals(other.j9s_1)) return false; return true; }; protoOf(ClazzLog).hashCode = function () { var result = this.u9r_1.hashCode(); result = imul(31, result) + this.v9r_1.hashCode() | 0; result = imul(31, result) + this.w9r_1.hashCode() | 0; result = imul(31, result) + this.x9r_1.hashCode() | 0; result = imul(31, result) + getBooleanHashCode(this.y9r_1) | 0; var tmp = imul(31, result); var tmp0_safe_receiver = this.z9r_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; result = imul(31, result) + getBooleanHashCode(this.a9s_1) | 0; result = imul(31, result) + this.b9s_1 | 0; result = imul(31, result) + this.c9s_1 | 0; result = imul(31, result) + this.d9s_1 | 0; result = imul(31, result) + this.e9s_1.hashCode() | 0; result = imul(31, result) + this.f9s_1 | 0; result = imul(31, result) + this.g9s_1.hashCode() | 0; result = imul(31, result) + this.h9s_1.hashCode() | 0; result = imul(31, result) + this.i9s_1 | 0; result = imul(31, result) + this.j9s_1.hashCode() | 0; return result; }; function Companion_54() { this.qk1_1 = 15; this.rk1_1 = 1; this.sk1_1 = 2; this.tk1_1 = 4; this.uk1_1 = 0.8; this.vk1_1 = 0.6; } var Companion_instance_55; function Companion_getInstance_57() { return Companion_instance_55; } function $serializer_51() { $serializer_instance_51 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzLogAttendanceRecord', this, 8); tmp0_serialDesc.d4g('clazzLogAttendanceRecordUid', true); tmp0_serialDesc.d4g('clazzLogAttendanceRecordClazzLogUid', true); tmp0_serialDesc.d4g('clazzLogAttendanceRecordPersonUid', true); tmp0_serialDesc.d4g('attendanceStatus', true); tmp0_serialDesc.d4g('clazzLogAttendanceRecordMasterChangeSeqNum', true); tmp0_serialDesc.d4g('clazzLogAttendanceRecordLocalChangeSeqNum', true); tmp0_serialDesc.d4g('clazzLogAttendanceRecordLastChangedBy', true); tmp0_serialDesc.d4g('clazzLogAttendanceRecordLastChangedTime', true); this.wk1_1 = tmp0_serialDesc; } protoOf($serializer_51).a45 = function () { return this.wk1_1; }; protoOf($serializer_51).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_51).c45 = function (decoder) { var tmp0_desc = this.wk1_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = 0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = 0; var tmp11_local7 = new Long(0, 0); var tmp12_input = decoder.s48(tmp0_desc); if (tmp12_input.h49()) { tmp4_local0 = tmp12_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.x48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.x48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.t48(tmp0_desc); return ClazzLogAttendanceRecord_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_51).xk1 = function (encoder, value) { var tmp0_desc = this.wk1_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.o9m_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.o9m_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.p9m_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.p9m_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.q9m_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.q9m_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.r9m_1 === 0)) { tmp1_output.b4a(tmp0_desc, 3, value.r9m_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.s9m_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.s9m_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.t9m_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.t9m_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.u9m_1 === 0)) { tmp1_output.b4a(tmp0_desc, 6, value.u9m_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.v9m_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.v9m_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_51).b45 = function (encoder, value) { return this.xk1(encoder, value instanceof ClazzLogAttendanceRecord ? value : THROW_CCE()); }; var $serializer_instance_51; function $serializer_getInstance_51() { if ($serializer_instance_51 == null) new $serializer_51(); return $serializer_instance_51; } function ClazzLogAttendanceRecord_init_$Init$(seen1, clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_51().wk1_1); } if (0 === (seen1 & 1)) $this.o9m_1 = new Long(0, 0); else $this.o9m_1 = clazzLogAttendanceRecordUid; if (0 === (seen1 & 2)) $this.p9m_1 = new Long(0, 0); else $this.p9m_1 = clazzLogAttendanceRecordClazzLogUid; if (0 === (seen1 & 4)) $this.q9m_1 = new Long(0, 0); else $this.q9m_1 = clazzLogAttendanceRecordPersonUid; if (0 === (seen1 & 8)) $this.r9m_1 = 0; else $this.r9m_1 = attendanceStatus; if (0 === (seen1 & 16)) $this.s9m_1 = new Long(0, 0); else $this.s9m_1 = clazzLogAttendanceRecordMasterChangeSeqNum; if (0 === (seen1 & 32)) $this.t9m_1 = new Long(0, 0); else $this.t9m_1 = clazzLogAttendanceRecordLocalChangeSeqNum; if (0 === (seen1 & 64)) $this.u9m_1 = 0; else $this.u9m_1 = clazzLogAttendanceRecordLastChangedBy; if (0 === (seen1 & 128)) $this.v9m_1 = new Long(0, 0); else $this.v9m_1 = clazzLogAttendanceRecordLastChangedTime; return $this; } function ClazzLogAttendanceRecord_init_$Create$(seen1, clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime, serializationConstructorMarker) { return ClazzLogAttendanceRecord_init_$Init$(seen1, clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime, serializationConstructorMarker, objectCreate(protoOf(ClazzLogAttendanceRecord))); } function ClazzLogAttendanceRecord() { this.o9m_1 = new Long(0, 0); this.p9m_1 = new Long(0, 0); this.q9m_1 = new Long(0, 0); this.r9m_1 = 0; this.s9m_1 = new Long(0, 0); this.t9m_1 = new Long(0, 0); this.u9m_1 = 0; this.v9m_1 = new Long(0, 0); } protoOf(ClazzLogAttendanceRecord).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!(other instanceof ClazzLogAttendanceRecord)) THROW_CCE(); if (!this.o9m_1.equals(other.o9m_1)) return false; if (!this.p9m_1.equals(other.p9m_1)) return false; if (!this.q9m_1.equals(other.q9m_1)) return false; if (!(this.r9m_1 === other.r9m_1)) return false; if (!this.s9m_1.equals(other.s9m_1)) return false; if (!this.t9m_1.equals(other.t9m_1)) return false; if (!(this.u9m_1 === other.u9m_1)) return false; return true; }; protoOf(ClazzLogAttendanceRecord).hashCode = function () { var result = this.o9m_1.hashCode(); result = imul(31, result) + this.p9m_1.hashCode() | 0; result = imul(31, result) + this.q9m_1.hashCode() | 0; result = imul(31, result) + this.r9m_1 | 0; result = imul(31, result) + this.s9m_1.hashCode() | 0; result = imul(31, result) + this.t9m_1.hashCode() | 0; result = imul(31, result) + this.u9m_1 | 0; return result; }; function Companion_55() { } protoOf(Companion_55).x4r = function () { return $serializer_getInstance_52(); }; var Companion_instance_56; function Companion_getInstance_58() { return Companion_instance_56; } function $serializer_52() { $serializer_instance_52 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzWithHolidayCalendarAndAndTerminology', this, 28); tmp0_serialDesc.d4g('clazzUid', true); tmp0_serialDesc.d4g('clazzName', true); tmp0_serialDesc.d4g('clazzDesc', true); tmp0_serialDesc.d4g('attendanceAverage', true); tmp0_serialDesc.d4g('clazzHolidayUMCalendarUid', true); tmp0_serialDesc.d4g('clazzScheuleUMCalendarUid', true); tmp0_serialDesc.d4g('isClazzActive', true); tmp0_serialDesc.d4g('clazzLocationUid', true); tmp0_serialDesc.d4g('clazzStartTime', true); tmp0_serialDesc.d4g('clazzEndTime', true); tmp0_serialDesc.d4g('clazzFeatures', true); tmp0_serialDesc.d4g('clazzSchoolUid', true); tmp0_serialDesc.d4g('clazzEnrolmentPolicy', true); tmp0_serialDesc.d4g('clazzTerminologyUid', true); tmp0_serialDesc.d4g('clazzMasterChangeSeqNum', true); tmp0_serialDesc.d4g('clazzLocalChangeSeqNum', true); tmp0_serialDesc.d4g('clazzLastChangedBy', true); tmp0_serialDesc.d4g('clazzLct', true); tmp0_serialDesc.d4g('clazzTimeZone', true); tmp0_serialDesc.d4g('clazzStudentsPersonGroupUid', true); tmp0_serialDesc.d4g('clazzTeachersPersonGroupUid', true); tmp0_serialDesc.d4g('clazzPendingStudentsPersonGroupUid', true); tmp0_serialDesc.d4g('clazzParentsPersonGroupUid', true); tmp0_serialDesc.d4g('clazzCode', true); tmp0_serialDesc.d4g('clazzOwnerPersonUid', true); tmp0_serialDesc.d4g('holidayCalendar', true); tmp0_serialDesc.d4g('terminology', true); tmp0_serialDesc.d4g('coursePicture', true); this.yk1_1 = tmp0_serialDesc; } protoOf($serializer_52).a45 = function () { return this.yk1_1; }; protoOf($serializer_52).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), FloatSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), get_nullable($serializer_getInstance_86()), get_nullable($serializer_getInstance_79()), get_nullable($serializer_getInstance_78())]; }; protoOf($serializer_52).c45 = function (decoder) { var tmp0_desc = this.yk1_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = 0.0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = false; var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = new Long(0, 0); var tmp14_local10 = new Long(0, 0); var tmp15_local11 = new Long(0, 0); var tmp16_local12 = 0; var tmp17_local13 = new Long(0, 0); var tmp18_local14 = new Long(0, 0); var tmp19_local15 = new Long(0, 0); var tmp20_local16 = 0; var tmp21_local17 = new Long(0, 0); var tmp22_local18 = null; var tmp23_local19 = new Long(0, 0); var tmp24_local20 = new Long(0, 0); var tmp25_local21 = new Long(0, 0); var tmp26_local22 = new Long(0, 0); var tmp27_local23 = null; var tmp28_local24 = new Long(0, 0); var tmp29_local25 = null; var tmp30_local26 = null; var tmp31_local27 = null; var tmp32_input = decoder.s48(tmp0_desc); if (tmp32_input.h49()) { tmp4_local0 = tmp32_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp32_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp32_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp32_input.z48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp32_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp32_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp32_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp32_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp32_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp32_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp32_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp32_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp32_input.x48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp32_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp32_input.y48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp32_input.y48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp32_input.x48(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp32_input.y48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp22_local18 = tmp32_input.g49(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp23_local19 = tmp32_input.y48(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; tmp24_local20 = tmp32_input.y48(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; tmp25_local21 = tmp32_input.y48(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; tmp26_local22 = tmp32_input.y48(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; tmp27_local23 = tmp32_input.g49(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; tmp28_local24 = tmp32_input.y48(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; tmp29_local25 = tmp32_input.g49(tmp0_desc, 25, $serializer_getInstance_86(), tmp29_local25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; tmp30_local26 = tmp32_input.g49(tmp0_desc, 26, $serializer_getInstance_79(), tmp30_local26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; tmp31_local27 = tmp32_input.g49(tmp0_desc, 27, $serializer_getInstance_78(), tmp31_local27); tmp3_bitMask0 = tmp3_bitMask0 | 134217728; } else while (tmp1_flag) { tmp2_index = tmp32_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp32_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp32_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp32_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp32_input.z48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp32_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp32_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp32_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp32_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp32_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp32_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp32_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp32_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp32_input.x48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp32_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp32_input.y48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp32_input.y48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp32_input.x48(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp32_input.y48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp22_local18 = tmp32_input.g49(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp23_local19 = tmp32_input.y48(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; case 20: tmp24_local20 = tmp32_input.y48(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; break; case 21: tmp25_local21 = tmp32_input.y48(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; break; case 22: tmp26_local22 = tmp32_input.y48(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; break; case 23: tmp27_local23 = tmp32_input.g49(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; break; case 24: tmp28_local24 = tmp32_input.y48(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; break; case 25: tmp29_local25 = tmp32_input.g49(tmp0_desc, 25, $serializer_getInstance_86(), tmp29_local25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; break; case 26: tmp30_local26 = tmp32_input.g49(tmp0_desc, 26, $serializer_getInstance_79(), tmp30_local26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; break; case 27: tmp31_local27 = tmp32_input.g49(tmp0_desc, 27, $serializer_getInstance_78(), tmp31_local27); tmp3_bitMask0 = tmp3_bitMask0 | 134217728; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp32_input.t48(tmp0_desc); return ClazzWithHolidayCalendarAndAndTerminology_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, tmp28_local24, tmp29_local25, tmp30_local26, tmp31_local27, null); }; protoOf($serializer_52).zk1 = function (encoder, value) { var tmp0_desc = this.yk1_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.p8e_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.p8e_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.q8e_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.q8e_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.r8e_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.r8e_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !equals(value.s8e_1, -1.0)) { tmp1_output.d4a(tmp0_desc, 3, value.s8e_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.t8e_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.t8e_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.u8e_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.u8e_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.v8e_1 === false)) { tmp1_output.y49(tmp0_desc, 6, value.v8e_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.w8e_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.w8e_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !value.x8e_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 8, value.x8e_1); } var tmp; if (tmp1_output.o4a(tmp0_desc, 9)) { tmp = true; } else { var tmp_0 = value.y8e_1; Companion_getInstance(); tmp = !tmp_0.equals(new Long(-1, 2147483647)); } if (tmp) { tmp1_output.c4a(tmp0_desc, 9, value.y8e_1); } var tmp_1; if (tmp1_output.o4a(tmp0_desc, 10)) { tmp_1 = true; } else { var tmp_2 = value.z8e_1; Companion_getInstance_51(); tmp_1 = !tmp_2.equals(new Long(1, 0)); } if (tmp_1) { tmp1_output.c4a(tmp0_desc, 10, value.z8e_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !value.a8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 11, value.a8f_1); } var tmp_3; if (tmp1_output.o4a(tmp0_desc, 12)) { tmp_3 = true; } else { var tmp_4 = value.b8f_1; Companion_getInstance_51(); tmp_3 = !(tmp_4 === 102); } if (tmp_3) { tmp1_output.b4a(tmp0_desc, 12, value.b8f_1); } if (tmp1_output.o4a(tmp0_desc, 13) ? true : !value.c8f_1.equals(new Long(25966, 0))) { tmp1_output.c4a(tmp0_desc, 13, value.c8f_1); } if (tmp1_output.o4a(tmp0_desc, 14) ? true : !value.d8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 14, value.d8f_1); } if (tmp1_output.o4a(tmp0_desc, 15) ? true : !value.e8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 15, value.e8f_1); } if (tmp1_output.o4a(tmp0_desc, 16) ? true : !(value.f8f_1 === 0)) { tmp1_output.b4a(tmp0_desc, 16, value.f8f_1); } if (tmp1_output.o4a(tmp0_desc, 17) ? true : !value.g8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 17, value.g8f_1); } if (tmp1_output.o4a(tmp0_desc, 18) ? true : !(value.h8f_1 == null)) { tmp1_output.k4a(tmp0_desc, 18, StringSerializer_getInstance(), value.h8f_1); } if (tmp1_output.o4a(tmp0_desc, 19) ? true : !value.i8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 19, value.i8f_1); } if (tmp1_output.o4a(tmp0_desc, 20) ? true : !value.j8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 20, value.j8f_1); } if (tmp1_output.o4a(tmp0_desc, 21) ? true : !value.k8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 21, value.k8f_1); } if (tmp1_output.o4a(tmp0_desc, 22) ? true : !value.l8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 22, value.l8f_1); } if (tmp1_output.o4a(tmp0_desc, 23) ? true : !(value.m8f_1 == null)) { tmp1_output.k4a(tmp0_desc, 23, StringSerializer_getInstance(), value.m8f_1); } if (tmp1_output.o4a(tmp0_desc, 24) ? true : !value.n8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 24, value.n8f_1); } if (tmp1_output.o4a(tmp0_desc, 25) ? true : !(value.h8h_1 == null)) { tmp1_output.k4a(tmp0_desc, 25, $serializer_getInstance_86(), value.h8h_1); } if (tmp1_output.o4a(tmp0_desc, 26) ? true : !(value.i8h_1 == null)) { tmp1_output.k4a(tmp0_desc, 26, $serializer_getInstance_79(), value.i8h_1); } if (tmp1_output.o4a(tmp0_desc, 27) ? true : !(value.j8h_1 == null)) { tmp1_output.k4a(tmp0_desc, 27, $serializer_getInstance_78(), value.j8h_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_52).b45 = function (encoder, value) { return this.zk1(encoder, value instanceof ClazzWithHolidayCalendarAndAndTerminology ? value : THROW_CCE()); }; var $serializer_instance_52; function $serializer_getInstance_52() { if ($serializer_instance_52 == null) new $serializer_52(); return $serializer_instance_52; } function ClazzWithHolidayCalendarAndAndTerminology_init_$Init$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, holidayCalendar, terminology, coursePicture, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_52().yk1_1); } Clazz_init_$Init$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, serializationConstructorMarker, $this); if (0 === (seen1 & 33554432)) $this.h8h_1 = null; else $this.h8h_1 = holidayCalendar; if (0 === (seen1 & 67108864)) $this.i8h_1 = null; else $this.i8h_1 = terminology; if (0 === (seen1 & 134217728)) $this.j8h_1 = null; else $this.j8h_1 = coursePicture; return $this; } function ClazzWithHolidayCalendarAndAndTerminology_init_$Create$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, holidayCalendar, terminology, coursePicture, serializationConstructorMarker) { return ClazzWithHolidayCalendarAndAndTerminology_init_$Init$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, holidayCalendar, terminology, coursePicture, serializationConstructorMarker, objectCreate(protoOf(ClazzWithHolidayCalendarAndAndTerminology))); } function ClazzWithHolidayCalendarAndAndTerminology() { Clazz.call(this); this.h8h_1 = null; this.i8h_1 = null; this.j8h_1 = null; } protoOf(ClazzWithHolidayCalendarAndAndTerminology).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzWithHolidayCalendarAndAndTerminology)) return false; if (!protoOf(Clazz).equals.call(this, other)) return false; if (!equals(this.h8h_1, other.h8h_1)) return false; if (!equals(this.i8h_1, other.i8h_1)) return false; return equals(this.j8h_1, other.j8h_1); }; protoOf(ClazzWithHolidayCalendarAndAndTerminology).hashCode = function () { var result = protoOf(Clazz).hashCode.call(this); var tmp = imul(31, result); var tmp0_safe_receiver = this.h8h_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; var tmp_0 = imul(31, result); var tmp2_safe_receiver = this.i8h_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : hashCode(tmp2_safe_receiver); result = tmp_0 + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0; var tmp_1 = imul(31, result); var tmp4_safe_receiver = this.j8h_1; var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.hashCode(); result = tmp_1 + (tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs) | 0; return result; }; function Companion_56() { } var Companion_instance_57; function Companion_getInstance_59() { return Companion_instance_57; } function $serializer_53() { $serializer_instance_53 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzWithListDisplayDetails', this, 32); tmp0_serialDesc.d4g('clazzUid', true); tmp0_serialDesc.d4g('clazzName', true); tmp0_serialDesc.d4g('clazzDesc', true); tmp0_serialDesc.d4g('attendanceAverage', true); tmp0_serialDesc.d4g('clazzHolidayUMCalendarUid', true); tmp0_serialDesc.d4g('clazzScheuleUMCalendarUid', true); tmp0_serialDesc.d4g('isClazzActive', true); tmp0_serialDesc.d4g('clazzLocationUid', true); tmp0_serialDesc.d4g('clazzStartTime', true); tmp0_serialDesc.d4g('clazzEndTime', true); tmp0_serialDesc.d4g('clazzFeatures', true); tmp0_serialDesc.d4g('clazzSchoolUid', true); tmp0_serialDesc.d4g('clazzEnrolmentPolicy', true); tmp0_serialDesc.d4g('clazzTerminologyUid', true); tmp0_serialDesc.d4g('clazzMasterChangeSeqNum', true); tmp0_serialDesc.d4g('clazzLocalChangeSeqNum', true); tmp0_serialDesc.d4g('clazzLastChangedBy', true); tmp0_serialDesc.d4g('clazzLct', true); tmp0_serialDesc.d4g('clazzTimeZone', true); tmp0_serialDesc.d4g('clazzStudentsPersonGroupUid', true); tmp0_serialDesc.d4g('clazzTeachersPersonGroupUid', true); tmp0_serialDesc.d4g('clazzPendingStudentsPersonGroupUid', true); tmp0_serialDesc.d4g('clazzParentsPersonGroupUid', true); tmp0_serialDesc.d4g('clazzCode', true); tmp0_serialDesc.d4g('clazzOwnerPersonUid', true); tmp0_serialDesc.d4g('numStudents', true); tmp0_serialDesc.d4g('numTeachers', true); tmp0_serialDesc.d4g('teacherNames', true); tmp0_serialDesc.d4g('lastRecorded', true); tmp0_serialDesc.d4g('clazzActiveEnrolment', true); tmp0_serialDesc.d4g('terminology', true); tmp0_serialDesc.d4g('coursePicture', true); this.ak2_1 = tmp0_serialDesc; } protoOf($serializer_53).a45 = function () { return this.ak2_1; }; protoOf($serializer_53).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), FloatSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), get_nullable($serializer_getInstance_48()), get_nullable($serializer_getInstance_79()), get_nullable($serializer_getInstance_78())]; }; protoOf($serializer_53).c45 = function (decoder) { var tmp0_desc = this.ak2_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp5_local0 = new Long(0, 0); var tmp6_local1 = null; var tmp7_local2 = null; var tmp8_local3 = 0.0; var tmp9_local4 = new Long(0, 0); var tmp10_local5 = new Long(0, 0); var tmp11_local6 = false; var tmp12_local7 = new Long(0, 0); var tmp13_local8 = new Long(0, 0); var tmp14_local9 = new Long(0, 0); var tmp15_local10 = new Long(0, 0); var tmp16_local11 = new Long(0, 0); var tmp17_local12 = 0; var tmp18_local13 = new Long(0, 0); var tmp19_local14 = new Long(0, 0); var tmp20_local15 = new Long(0, 0); var tmp21_local16 = 0; var tmp22_local17 = new Long(0, 0); var tmp23_local18 = null; var tmp24_local19 = new Long(0, 0); var tmp25_local20 = new Long(0, 0); var tmp26_local21 = new Long(0, 0); var tmp27_local22 = new Long(0, 0); var tmp28_local23 = null; var tmp29_local24 = new Long(0, 0); var tmp30_local25 = 0; var tmp31_local26 = 0; var tmp32_local27 = null; var tmp33_local28 = new Long(0, 0); var tmp34_local29 = null; var tmp35_local30 = null; var tmp36_local31 = null; var tmp37_input = decoder.s48(tmp0_desc); if (tmp37_input.h49()) { tmp5_local0 = tmp37_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp6_local1 = tmp37_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp6_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp7_local2 = tmp37_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp7_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp8_local3 = tmp37_input.z48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp9_local4 = tmp37_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp10_local5 = tmp37_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp11_local6 = tmp37_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp12_local7 = tmp37_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp13_local8 = tmp37_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp14_local9 = tmp37_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp15_local10 = tmp37_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp16_local11 = tmp37_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp17_local12 = tmp37_input.x48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp18_local13 = tmp37_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp19_local14 = tmp37_input.y48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp20_local15 = tmp37_input.y48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp21_local16 = tmp37_input.x48(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp22_local17 = tmp37_input.y48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp23_local18 = tmp37_input.g49(tmp0_desc, 18, StringSerializer_getInstance(), tmp23_local18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp24_local19 = tmp37_input.y48(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; tmp25_local20 = tmp37_input.y48(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; tmp26_local21 = tmp37_input.y48(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; tmp27_local22 = tmp37_input.y48(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; tmp28_local23 = tmp37_input.g49(tmp0_desc, 23, StringSerializer_getInstance(), tmp28_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; tmp29_local24 = tmp37_input.y48(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; tmp30_local25 = tmp37_input.x48(tmp0_desc, 25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; tmp31_local26 = tmp37_input.x48(tmp0_desc, 26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; tmp32_local27 = tmp37_input.g49(tmp0_desc, 27, StringSerializer_getInstance(), tmp32_local27); tmp3_bitMask0 = tmp3_bitMask0 | 134217728; tmp33_local28 = tmp37_input.y48(tmp0_desc, 28); tmp3_bitMask0 = tmp3_bitMask0 | 268435456; tmp34_local29 = tmp37_input.g49(tmp0_desc, 29, $serializer_getInstance_48(), tmp34_local29); tmp3_bitMask0 = tmp3_bitMask0 | 536870912; tmp35_local30 = tmp37_input.g49(tmp0_desc, 30, $serializer_getInstance_79(), tmp35_local30); tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; tmp36_local31 = tmp37_input.g49(tmp0_desc, 31, $serializer_getInstance_78(), tmp36_local31); tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; } else while (tmp1_flag) { tmp2_index = tmp37_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp5_local0 = tmp37_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp6_local1 = tmp37_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp6_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp7_local2 = tmp37_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp7_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp8_local3 = tmp37_input.z48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp9_local4 = tmp37_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp10_local5 = tmp37_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp11_local6 = tmp37_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp12_local7 = tmp37_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp13_local8 = tmp37_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp14_local9 = tmp37_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp15_local10 = tmp37_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp16_local11 = tmp37_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp17_local12 = tmp37_input.x48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp18_local13 = tmp37_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp19_local14 = tmp37_input.y48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp20_local15 = tmp37_input.y48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp21_local16 = tmp37_input.x48(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp22_local17 = tmp37_input.y48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp23_local18 = tmp37_input.g49(tmp0_desc, 18, StringSerializer_getInstance(), tmp23_local18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp24_local19 = tmp37_input.y48(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; case 20: tmp25_local20 = tmp37_input.y48(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; break; case 21: tmp26_local21 = tmp37_input.y48(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; break; case 22: tmp27_local22 = tmp37_input.y48(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; break; case 23: tmp28_local23 = tmp37_input.g49(tmp0_desc, 23, StringSerializer_getInstance(), tmp28_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; break; case 24: tmp29_local24 = tmp37_input.y48(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; break; case 25: tmp30_local25 = tmp37_input.x48(tmp0_desc, 25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; break; case 26: tmp31_local26 = tmp37_input.x48(tmp0_desc, 26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; break; case 27: tmp32_local27 = tmp37_input.g49(tmp0_desc, 27, StringSerializer_getInstance(), tmp32_local27); tmp3_bitMask0 = tmp3_bitMask0 | 134217728; break; case 28: tmp33_local28 = tmp37_input.y48(tmp0_desc, 28); tmp3_bitMask0 = tmp3_bitMask0 | 268435456; break; case 29: tmp34_local29 = tmp37_input.g49(tmp0_desc, 29, $serializer_getInstance_48(), tmp34_local29); tmp3_bitMask0 = tmp3_bitMask0 | 536870912; break; case 30: tmp35_local30 = tmp37_input.g49(tmp0_desc, 30, $serializer_getInstance_79(), tmp35_local30); tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; break; case 31: tmp36_local31 = tmp37_input.g49(tmp0_desc, 31, $serializer_getInstance_78(), tmp36_local31); tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp37_input.t48(tmp0_desc); return ClazzWithListDisplayDetails_init_$Create$(tmp3_bitMask0, 0, tmp5_local0, tmp6_local1, tmp7_local2, tmp8_local3, tmp9_local4, tmp10_local5, tmp11_local6, tmp12_local7, tmp13_local8, tmp14_local9, tmp15_local10, tmp16_local11, tmp17_local12, tmp18_local13, tmp19_local14, tmp20_local15, tmp21_local16, tmp22_local17, tmp23_local18, tmp24_local19, tmp25_local20, tmp26_local21, tmp27_local22, tmp28_local23, tmp29_local24, tmp30_local25, tmp31_local26, tmp32_local27, tmp33_local28, tmp34_local29, tmp35_local30, tmp36_local31, null); }; protoOf($serializer_53).bk2 = function (encoder, value) { var tmp0_desc = this.ak2_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.p8e_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.p8e_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.q8e_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.q8e_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.r8e_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.r8e_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !equals(value.s8e_1, -1.0)) { tmp1_output.d4a(tmp0_desc, 3, value.s8e_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.t8e_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.t8e_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.u8e_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.u8e_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.v8e_1 === false)) { tmp1_output.y49(tmp0_desc, 6, value.v8e_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.w8e_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.w8e_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !value.x8e_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 8, value.x8e_1); } var tmp; if (tmp1_output.o4a(tmp0_desc, 9)) { tmp = true; } else { var tmp_0 = value.y8e_1; Companion_getInstance(); tmp = !tmp_0.equals(new Long(-1, 2147483647)); } if (tmp) { tmp1_output.c4a(tmp0_desc, 9, value.y8e_1); } var tmp_1; if (tmp1_output.o4a(tmp0_desc, 10)) { tmp_1 = true; } else { var tmp_2 = value.z8e_1; Companion_getInstance_51(); tmp_1 = !tmp_2.equals(new Long(1, 0)); } if (tmp_1) { tmp1_output.c4a(tmp0_desc, 10, value.z8e_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !value.a8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 11, value.a8f_1); } var tmp_3; if (tmp1_output.o4a(tmp0_desc, 12)) { tmp_3 = true; } else { var tmp_4 = value.b8f_1; Companion_getInstance_51(); tmp_3 = !(tmp_4 === 102); } if (tmp_3) { tmp1_output.b4a(tmp0_desc, 12, value.b8f_1); } if (tmp1_output.o4a(tmp0_desc, 13) ? true : !value.c8f_1.equals(new Long(25966, 0))) { tmp1_output.c4a(tmp0_desc, 13, value.c8f_1); } if (tmp1_output.o4a(tmp0_desc, 14) ? true : !value.d8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 14, value.d8f_1); } if (tmp1_output.o4a(tmp0_desc, 15) ? true : !value.e8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 15, value.e8f_1); } if (tmp1_output.o4a(tmp0_desc, 16) ? true : !(value.f8f_1 === 0)) { tmp1_output.b4a(tmp0_desc, 16, value.f8f_1); } if (tmp1_output.o4a(tmp0_desc, 17) ? true : !value.g8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 17, value.g8f_1); } if (tmp1_output.o4a(tmp0_desc, 18) ? true : !(value.h8f_1 == null)) { tmp1_output.k4a(tmp0_desc, 18, StringSerializer_getInstance(), value.h8f_1); } if (tmp1_output.o4a(tmp0_desc, 19) ? true : !value.i8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 19, value.i8f_1); } if (tmp1_output.o4a(tmp0_desc, 20) ? true : !value.j8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 20, value.j8f_1); } if (tmp1_output.o4a(tmp0_desc, 21) ? true : !value.k8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 21, value.k8f_1); } if (tmp1_output.o4a(tmp0_desc, 22) ? true : !value.l8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 22, value.l8f_1); } if (tmp1_output.o4a(tmp0_desc, 23) ? true : !(value.m8f_1 == null)) { tmp1_output.k4a(tmp0_desc, 23, StringSerializer_getInstance(), value.m8f_1); } if (tmp1_output.o4a(tmp0_desc, 24) ? true : !value.n8f_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 24, value.n8f_1); } if (tmp1_output.o4a(tmp0_desc, 25) ? true : !(value.s8i_1 === 0)) { tmp1_output.b4a(tmp0_desc, 25, value.s8i_1); } if (tmp1_output.o4a(tmp0_desc, 26) ? true : !(value.t8i_1 === 0)) { tmp1_output.b4a(tmp0_desc, 26, value.t8i_1); } if (tmp1_output.o4a(tmp0_desc, 27) ? true : !(value.u8i_1 == null)) { tmp1_output.k4a(tmp0_desc, 27, StringSerializer_getInstance(), value.u8i_1); } if (tmp1_output.o4a(tmp0_desc, 28) ? true : !value.v8i_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 28, value.v8i_1); } if (tmp1_output.o4a(tmp0_desc, 29) ? true : !(value.w8i_1 == null)) { tmp1_output.k4a(tmp0_desc, 29, $serializer_getInstance_48(), value.w8i_1); } if (tmp1_output.o4a(tmp0_desc, 30) ? true : !(value.x8i_1 == null)) { tmp1_output.k4a(tmp0_desc, 30, $serializer_getInstance_79(), value.x8i_1); } if (tmp1_output.o4a(tmp0_desc, 31) ? true : !(value.y8i_1 == null)) { tmp1_output.k4a(tmp0_desc, 31, $serializer_getInstance_78(), value.y8i_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_53).b45 = function (encoder, value) { return this.bk2(encoder, value instanceof ClazzWithListDisplayDetails ? value : THROW_CCE()); }; var $serializer_instance_53; function $serializer_getInstance_53() { if ($serializer_instance_53 == null) new $serializer_53(); return $serializer_instance_53; } function ClazzWithListDisplayDetails_init_$Init$(seen1, seen2, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, numStudents, numTeachers, teacherNames, lastRecorded, clazzActiveEnrolment, terminology, coursePicture, serializationConstructorMarker, $this) { if (!!(!(0 === (0 & seen1)) | !(0 === (0 & seen2)))) { // Inline function 'kotlin.intArrayOf' call var tmp = new Int32Array([seen1, seen2]); // Inline function 'kotlin.intArrayOf' call var tmp$ret$1 = new Int32Array([0, 0]); throwArrayMissingFieldException(tmp, tmp$ret$1, $serializer_getInstance_53().ak2_1); } Clazz_init_$Init$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, serializationConstructorMarker, $this); if (0 === (seen1 & 33554432)) $this.s8i_1 = 0; else $this.s8i_1 = numStudents; if (0 === (seen1 & 67108864)) $this.t8i_1 = 0; else $this.t8i_1 = numTeachers; if (0 === (seen1 & 134217728)) $this.u8i_1 = null; else $this.u8i_1 = teacherNames; if (0 === (seen1 & 268435456)) $this.v8i_1 = new Long(0, 0); else $this.v8i_1 = lastRecorded; if (0 === (seen1 & 536870912)) $this.w8i_1 = null; else $this.w8i_1 = clazzActiveEnrolment; if (0 === (seen1 & 1073741824)) $this.x8i_1 = null; else $this.x8i_1 = terminology; if (0 === (seen1 & -2147483648)) $this.y8i_1 = null; else $this.y8i_1 = coursePicture; return $this; } function ClazzWithListDisplayDetails_init_$Create$(seen1, seen2, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, numStudents, numTeachers, teacherNames, lastRecorded, clazzActiveEnrolment, terminology, coursePicture, serializationConstructorMarker) { return ClazzWithListDisplayDetails_init_$Init$(seen1, seen2, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, numStudents, numTeachers, teacherNames, lastRecorded, clazzActiveEnrolment, terminology, coursePicture, serializationConstructorMarker, objectCreate(protoOf(ClazzWithListDisplayDetails))); } function ClazzWithListDisplayDetails() { Clazz.call(this); this.s8i_1 = 0; this.t8i_1 = 0; this.u8i_1 = null; this.v8i_1 = new Long(0, 0); this.w8i_1 = null; this.x8i_1 = null; this.y8i_1 = null; } protoOf(ClazzWithListDisplayDetails).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzWithListDisplayDetails)) return false; if (!protoOf(Clazz).equals.call(this, other)) return false; if (!(this.s8i_1 === other.s8i_1)) return false; if (!(this.t8i_1 === other.t8i_1)) return false; if (!(this.u8i_1 == other.u8i_1)) return false; if (!this.v8i_1.equals(other.v8i_1)) return false; if (!equals(this.w8i_1, other.w8i_1)) return false; if (!equals(this.x8i_1, other.x8i_1)) return false; return equals(this.y8i_1, other.y8i_1); }; protoOf(ClazzWithListDisplayDetails).hashCode = function () { var result = protoOf(Clazz).hashCode.call(this); result = imul(31, result) + this.s8i_1 | 0; result = imul(31, result) + this.t8i_1 | 0; var tmp = imul(31, result); var tmp0_safe_receiver = this.u8i_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; result = imul(31, result) + this.v8i_1.hashCode() | 0; var tmp_0 = imul(31, result); var tmp2_safe_receiver = this.w8i_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : hashCode(tmp2_safe_receiver); result = tmp_0 + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0; var tmp_1 = imul(31, result); var tmp4_safe_receiver = this.x8i_1; var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : hashCode(tmp4_safe_receiver); result = tmp_1 + (tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs) | 0; var tmp_2 = imul(31, result); var tmp6_safe_receiver = this.y8i_1; var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.hashCode(); result = tmp_2 + (tmp7_elvis_lhs == null ? 0 : tmp7_elvis_lhs) | 0; return result; }; function Companion_57() { this.ck2_1 = 208; this.dk2_1 = 0; } var Companion_instance_58; function Companion_getInstance_60() { return Companion_instance_58; } function $serializer_54() { $serializer_instance_54 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Comments', this, 11); tmp0_serialDesc.d4g('commentsUid', true); tmp0_serialDesc.d4g('commentsText', true); tmp0_serialDesc.d4g('commentsEntityUid', true); tmp0_serialDesc.d4g('commentsStatus', true); tmp0_serialDesc.d4g('commentsFromPersonUid', true); tmp0_serialDesc.d4g('commentsForSubmitterUid', true); tmp0_serialDesc.d4g('commentsFromSubmitterUid', true); tmp0_serialDesc.d4g('commentsFlagged', true); tmp0_serialDesc.d4g('commentsDeleted', true); tmp0_serialDesc.d4g('commentsDateTimeAdded', true); tmp0_serialDesc.d4g('commentsLct', true); this.ek2_1 = tmp0_serialDesc; } protoOf($serializer_54).a45 = function () { return this.ek2_1; }; protoOf($serializer_54).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_54).c45 = function (decoder) { var tmp0_desc = this.ek2_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = new Long(0, 0); var tmp7_local3 = 0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = new Long(0, 0); var tmp11_local7 = false; var tmp12_local8 = false; var tmp13_local9 = new Long(0, 0); var tmp14_local10 = new Long(0, 0); var tmp15_input = decoder.s48(tmp0_desc); if (tmp15_input.h49()) { tmp4_local0 = tmp15_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.u48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.u48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.u48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.u48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.t48(tmp0_desc); return Comments_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); }; protoOf($serializer_54).fk2 = function (encoder, value) { var tmp0_desc = this.ek2_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.ta0_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.ta0_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.ua0_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.ua0_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.va0_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.va0_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.wa0_1 === 0)) { tmp1_output.b4a(tmp0_desc, 3, value.wa0_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.xa0_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.xa0_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.ya0_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.ya0_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.za0_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.za0_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.aa1_1 === false)) { tmp1_output.y49(tmp0_desc, 7, value.aa1_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !(value.ba1_1 === false)) { tmp1_output.y49(tmp0_desc, 8, value.ba1_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !value.ca1_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 9, value.ca1_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !value.da1_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 10, value.da1_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_54).b45 = function (encoder, value) { return this.fk2(encoder, value instanceof Comments ? value : THROW_CCE()); }; var $serializer_instance_54; function $serializer_getInstance_54() { if ($serializer_instance_54 == null) new $serializer_54(); return $serializer_instance_54; } function Comments_init_$Init$(seen1, commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_54().ek2_1); } if (0 === (seen1 & 1)) $this.ta0_1 = new Long(0, 0); else $this.ta0_1 = commentsUid; if (0 === (seen1 & 2)) $this.ua0_1 = null; else $this.ua0_1 = commentsText; if (0 === (seen1 & 4)) $this.va0_1 = new Long(0, 0); else $this.va0_1 = commentsEntityUid; if (0 === (seen1 & 8)) $this.wa0_1 = 0; else $this.wa0_1 = commentsStatus; if (0 === (seen1 & 16)) $this.xa0_1 = new Long(0, 0); else $this.xa0_1 = commentsFromPersonUid; if (0 === (seen1 & 32)) $this.ya0_1 = new Long(0, 0); else $this.ya0_1 = commentsForSubmitterUid; if (0 === (seen1 & 64)) $this.za0_1 = new Long(0, 0); else $this.za0_1 = commentsFromSubmitterUid; if (0 === (seen1 & 128)) $this.aa1_1 = false; else $this.aa1_1 = commentsFlagged; if (0 === (seen1 & 256)) $this.ba1_1 = false; else $this.ba1_1 = commentsDeleted; if (0 === (seen1 & 512)) $this.ca1_1 = new Long(0, 0); else $this.ca1_1 = commentsDateTimeAdded; if (0 === (seen1 & 1024)) $this.da1_1 = new Long(0, 0); else $this.da1_1 = commentsLct; return $this; } function Comments_init_$Create$(seen1, commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct, serializationConstructorMarker) { return Comments_init_$Init$(seen1, commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct, serializationConstructorMarker, objectCreate(protoOf(Comments))); } function Comments(commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct) { commentsUid = commentsUid === VOID ? new Long(0, 0) : commentsUid; commentsText = commentsText === VOID ? null : commentsText; commentsEntityUid = commentsEntityUid === VOID ? new Long(0, 0) : commentsEntityUid; commentsStatus = commentsStatus === VOID ? 0 : commentsStatus; commentsFromPersonUid = commentsFromPersonUid === VOID ? new Long(0, 0) : commentsFromPersonUid; commentsForSubmitterUid = commentsForSubmitterUid === VOID ? new Long(0, 0) : commentsForSubmitterUid; commentsFromSubmitterUid = commentsFromSubmitterUid === VOID ? new Long(0, 0) : commentsFromSubmitterUid; commentsFlagged = commentsFlagged === VOID ? false : commentsFlagged; commentsDeleted = commentsDeleted === VOID ? false : commentsDeleted; commentsDateTimeAdded = commentsDateTimeAdded === VOID ? new Long(0, 0) : commentsDateTimeAdded; commentsLct = commentsLct === VOID ? new Long(0, 0) : commentsLct; this.ta0_1 = commentsUid; this.ua0_1 = commentsText; this.va0_1 = commentsEntityUid; this.wa0_1 = commentsStatus; this.xa0_1 = commentsFromPersonUid; this.ya0_1 = commentsForSubmitterUid; this.za0_1 = commentsFromSubmitterUid; this.aa1_1 = commentsFlagged; this.ba1_1 = commentsDeleted; this.ca1_1 = commentsDateTimeAdded; this.da1_1 = commentsLct; } protoOf(Comments).toString = function () { return 'Comments(commentsUid=' + this.ta0_1.toString() + ', commentsText=' + this.ua0_1 + ', commentsEntityUid=' + this.va0_1.toString() + ', commentsStatus=' + this.wa0_1 + ', commentsFromPersonUid=' + this.xa0_1.toString() + ', commentsForSubmitterUid=' + this.ya0_1.toString() + ', commentsFromSubmitterUid=' + this.za0_1.toString() + ', commentsFlagged=' + this.aa1_1 + ', commentsDeleted=' + this.ba1_1 + ', commentsDateTimeAdded=' + this.ca1_1.toString() + ', commentsLct=' + this.da1_1.toString() + ')'; }; protoOf(Comments).hashCode = function () { var result = this.ta0_1.hashCode(); result = imul(result, 31) + (this.ua0_1 == null ? 0 : getStringHashCode(this.ua0_1)) | 0; result = imul(result, 31) + this.va0_1.hashCode() | 0; result = imul(result, 31) + this.wa0_1 | 0; result = imul(result, 31) + this.xa0_1.hashCode() | 0; result = imul(result, 31) + this.ya0_1.hashCode() | 0; result = imul(result, 31) + this.za0_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.aa1_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ba1_1) | 0; result = imul(result, 31) + this.ca1_1.hashCode() | 0; result = imul(result, 31) + this.da1_1.hashCode() | 0; return result; }; protoOf(Comments).equals = function (other) { if (this === other) return true; if (!(other instanceof Comments)) return false; var tmp0_other_with_cast = other instanceof Comments ? other : THROW_CCE(); if (!this.ta0_1.equals(tmp0_other_with_cast.ta0_1)) return false; if (!(this.ua0_1 == tmp0_other_with_cast.ua0_1)) return false; if (!this.va0_1.equals(tmp0_other_with_cast.va0_1)) return false; if (!(this.wa0_1 === tmp0_other_with_cast.wa0_1)) return false; if (!this.xa0_1.equals(tmp0_other_with_cast.xa0_1)) return false; if (!this.ya0_1.equals(tmp0_other_with_cast.ya0_1)) return false; if (!this.za0_1.equals(tmp0_other_with_cast.za0_1)) return false; if (!(this.aa1_1 === tmp0_other_with_cast.aa1_1)) return false; if (!(this.ba1_1 === tmp0_other_with_cast.ba1_1)) return false; if (!this.ca1_1.equals(tmp0_other_with_cast.ca1_1)) return false; if (!this.da1_1.equals(tmp0_other_with_cast.da1_1)) return false; return true; }; function Companion_58() { this.gk2_1 = 1; } var Companion_instance_59; function Companion_getInstance_61() { return Companion_instance_59; } function $serializer_55() { $serializer_instance_55 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentCategory', this, 7); tmp0_serialDesc.d4g('contentCategoryUid', true); tmp0_serialDesc.d4g('ctnCatContentCategorySchemaUid', true); tmp0_serialDesc.d4g('name', true); tmp0_serialDesc.d4g('contentCategoryLocalChangeSeqNum', true); tmp0_serialDesc.d4g('contentCategoryMasterChangeSeqNum', true); tmp0_serialDesc.d4g('contentCategoryLastChangedBy', true); tmp0_serialDesc.d4g('contentCategoryLct', true); this.hk2_1 = tmp0_serialDesc; } protoOf($serializer_55).a45 = function () { return this.hk2_1; }; protoOf($serializer_55).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_55).c45 = function (decoder) { var tmp0_desc = this.hk2_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = null; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = 0; var tmp10_local6 = new Long(0, 0); var tmp11_input = decoder.s48(tmp0_desc); if (tmp11_input.h49()) { tmp4_local0 = tmp11_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.t48(tmp0_desc); return ContentCategory_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_55).ik2 = function (encoder, value) { var tmp0_desc = this.hk2_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.lab_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.lab_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.mab_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.mab_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.nab_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.nab_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.oab_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.oab_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.pab_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.pab_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.qab_1 === 0)) { tmp1_output.b4a(tmp0_desc, 5, value.qab_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.rab_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.rab_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_55).b45 = function (encoder, value) { return this.ik2(encoder, value instanceof ContentCategory ? value : THROW_CCE()); }; var $serializer_instance_55; function $serializer_getInstance_55() { if ($serializer_instance_55 == null) new $serializer_55(); return $serializer_instance_55; } function ContentCategory_init_$Init$(seen1, contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_55().hk2_1); } if (0 === (seen1 & 1)) $this.lab_1 = new Long(0, 0); else $this.lab_1 = contentCategoryUid; if (0 === (seen1 & 2)) $this.mab_1 = new Long(0, 0); else $this.mab_1 = ctnCatContentCategorySchemaUid; if (0 === (seen1 & 4)) $this.nab_1 = null; else $this.nab_1 = name; if (0 === (seen1 & 8)) $this.oab_1 = new Long(0, 0); else $this.oab_1 = contentCategoryLocalChangeSeqNum; if (0 === (seen1 & 16)) $this.pab_1 = new Long(0, 0); else $this.pab_1 = contentCategoryMasterChangeSeqNum; if (0 === (seen1 & 32)) $this.qab_1 = 0; else $this.qab_1 = contentCategoryLastChangedBy; if (0 === (seen1 & 64)) $this.rab_1 = new Long(0, 0); else $this.rab_1 = contentCategoryLct; return $this; } function ContentCategory_init_$Create$(seen1, contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct, serializationConstructorMarker) { return ContentCategory_init_$Init$(seen1, contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct, serializationConstructorMarker, objectCreate(protoOf(ContentCategory))); } function ContentCategory() { this.lab_1 = new Long(0, 0); this.mab_1 = new Long(0, 0); this.nab_1 = null; this.oab_1 = new Long(0, 0); this.pab_1 = new Long(0, 0); this.qab_1 = 0; this.rab_1 = new Long(0, 0); } protoOf(ContentCategory).equals = function (other) { if (this === other) return true; var category = (other == null ? true : other instanceof ContentCategory) ? other : THROW_CCE(); if (!this.lab_1.equals(ensureNotNull(category).lab_1)) return false; if (!this.mab_1.equals(category.mab_1)) return false; return !(this.nab_1 == null) ? this.nab_1 == category.nab_1 : category.nab_1 == null; }; protoOf(ContentCategory).hashCode = function () { var result = this.lab_1.ad(this.lab_1.xc(32)).nb(); result = imul(31, result) + this.mab_1.ad(this.mab_1.xc(32)).nb() | 0; result = imul(31, result) + (!(this.nab_1 == null) ? getStringHashCode(ensureNotNull(this.nab_1)) : 0) | 0; return result; }; function Companion_59() { this.jk2_1 = 2; } var Companion_instance_60; function Companion_getInstance_62() { return Companion_instance_60; } function $serializer_56() { $serializer_instance_56 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentCategorySchema', this, 7); tmp0_serialDesc.d4g('contentCategorySchemaUid', true); tmp0_serialDesc.d4g('schemaName', true); tmp0_serialDesc.d4g('schemaUrl', true); tmp0_serialDesc.d4g('contentCategorySchemaLocalChangeSeqNum', true); tmp0_serialDesc.d4g('contentCategorySchemaMasterChangeSeqNum', true); tmp0_serialDesc.d4g('contentCategorySchemaLastChangedBy', true); tmp0_serialDesc.d4g('contentCategorySchemaLct', true); this.kk2_1 = tmp0_serialDesc; } protoOf($serializer_56).a45 = function () { return this.kk2_1; }; protoOf($serializer_56).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_56).c45 = function (decoder) { var tmp0_desc = this.kk2_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = 0; var tmp10_local6 = new Long(0, 0); var tmp11_input = decoder.s48(tmp0_desc); if (tmp11_input.h49()) { tmp4_local0 = tmp11_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.t48(tmp0_desc); return ContentCategorySchema_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_56).lk2 = function (encoder, value) { var tmp0_desc = this.kk2_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.wad_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.wad_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.xad_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.xad_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.yad_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.yad_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.zad_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.zad_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.aae_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.aae_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.bae_1 === 0)) { tmp1_output.b4a(tmp0_desc, 5, value.bae_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.cae_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.cae_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_56).b45 = function (encoder, value) { return this.lk2(encoder, value instanceof ContentCategorySchema ? value : THROW_CCE()); }; var $serializer_instance_56; function $serializer_getInstance_56() { if ($serializer_instance_56 == null) new $serializer_56(); return $serializer_instance_56; } function ContentCategorySchema_init_$Init$(seen1, contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_56().kk2_1); } if (0 === (seen1 & 1)) $this.wad_1 = new Long(0, 0); else $this.wad_1 = contentCategorySchemaUid; if (0 === (seen1 & 2)) $this.xad_1 = null; else $this.xad_1 = schemaName; if (0 === (seen1 & 4)) $this.yad_1 = null; else $this.yad_1 = schemaUrl; if (0 === (seen1 & 8)) $this.zad_1 = new Long(0, 0); else $this.zad_1 = contentCategorySchemaLocalChangeSeqNum; if (0 === (seen1 & 16)) $this.aae_1 = new Long(0, 0); else $this.aae_1 = contentCategorySchemaMasterChangeSeqNum; if (0 === (seen1 & 32)) $this.bae_1 = 0; else $this.bae_1 = contentCategorySchemaLastChangedBy; if (0 === (seen1 & 64)) $this.cae_1 = new Long(0, 0); else $this.cae_1 = contentCategorySchemaLct; return $this; } function ContentCategorySchema_init_$Create$(seen1, contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct, serializationConstructorMarker) { return ContentCategorySchema_init_$Init$(seen1, contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct, serializationConstructorMarker, objectCreate(protoOf(ContentCategorySchema))); } function ContentCategorySchema() { this.wad_1 = new Long(0, 0); this.xad_1 = null; this.yad_1 = null; this.zad_1 = new Long(0, 0); this.aae_1 = new Long(0, 0); this.bae_1 = 0; this.cae_1 = new Long(0, 0); } protoOf(ContentCategorySchema).equals = function (other) { if (this === other) return true; var schema = (other == null ? true : other instanceof ContentCategorySchema) ? other : THROW_CCE(); if (!this.wad_1.equals(ensureNotNull(schema).wad_1)) return false; if (!(this.xad_1 == null) ? !(this.xad_1 == schema.xad_1) : !(schema.xad_1 == null)) return false; return !(this.yad_1 == null) ? this.yad_1 == schema.yad_1 : schema.yad_1 == null; }; protoOf(ContentCategorySchema).hashCode = function () { var result = this.wad_1.ad(this.wad_1.xc(32)).nb(); result = imul(31, result) + (!(this.xad_1 == null) ? getStringHashCode(ensureNotNull(this.xad_1)) : 0) | 0; result = imul(31, result) + (!(this.yad_1 == null) ? getStringHashCode(ensureNotNull(this.yad_1)) : 0) | 0; return result; }; function Companion_60() { this.mk2_1 = 42; this.nk2_1 = 0; this.ok2_1 = 1; this.pk2_1 = 2; this.qk2_1 = 3; this.rk2_1 = 4; this.sk2_1 = 5; this.tk2_1 = 6; this.uk2_1 = 7; this.vk2_1 = 8; this.wk2_1 = 10; this.xk2_1 = 11; this.yk2_1 = 9; this.zk2_1 = 0; this.ak3_1 = 1; this.bk3_1 = 2; this.ck3_1 = 3; this.dk3_1 = 4; this.ek3_1 = 5; this.fk3_1 = 6; this.gk3_1 = 7; this.hk3_1 = 8; this.ik3_1 = 1; this.jk3_1 = 0; this.kk3_1 = 1; this.lk3_1 = 2; this.mk3_1 = 1; this.nk3_1 = 2; } protoOf(Companion_60).x4r = function () { return $serializer_getInstance_57(); }; var Companion_instance_61; function Companion_getInstance_63() { return Companion_instance_61; } function $serializer_57() { $serializer_instance_57 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntry', this, 27); tmp0_serialDesc.d4g('contentEntryUid', true); tmp0_serialDesc.d4g('title', true); tmp0_serialDesc.d4g('description', true); tmp0_serialDesc.d4g('entryId', true); tmp0_serialDesc.d4g('author', true); tmp0_serialDesc.d4g('publisher', true); tmp0_serialDesc.d4g('licenseType', true); tmp0_serialDesc.d4g('licenseName', true); tmp0_serialDesc.d4g('licenseUrl', true); tmp0_serialDesc.d4g('sourceUrl', true); tmp0_serialDesc.d4g('thumbnailUrl', true); tmp0_serialDesc.d4g('lastModified', true); tmp0_serialDesc.d4g('primaryLanguageUid', true); tmp0_serialDesc.d4g('languageVariantUid', true); tmp0_serialDesc.d4g('contentFlags', true); tmp0_serialDesc.d4g('leaf', true); tmp0_serialDesc.d4g('publik', true); tmp0_serialDesc.d4g('ceInactive', true); tmp0_serialDesc.d4g('completionCriteria', true); tmp0_serialDesc.d4g('minScore', true); tmp0_serialDesc.d4g('contentTypeFlag', true); tmp0_serialDesc.d4g('contentOwner', true); tmp0_serialDesc.d4g('contentOwnerType', true); tmp0_serialDesc.d4g('contentEntryLocalChangeSeqNum', true); tmp0_serialDesc.d4g('contentEntryMasterChangeSeqNum', true); tmp0_serialDesc.d4g('contentEntryLastChangedBy', true); tmp0_serialDesc.d4g('contentEntryLct', true); this.ok3_1 = tmp0_serialDesc; } protoOf($serializer_57).a45 = function () { return this.ok3_1; }; protoOf($serializer_57).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_57).c45 = function (decoder) { var tmp0_desc = this.ok3_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = 0; var tmp11_local7 = null; var tmp12_local8 = null; var tmp13_local9 = null; var tmp14_local10 = null; var tmp15_local11 = new Long(0, 0); var tmp16_local12 = new Long(0, 0); var tmp17_local13 = new Long(0, 0); var tmp18_local14 = 0; var tmp19_local15 = false; var tmp20_local16 = false; var tmp21_local17 = false; var tmp22_local18 = 0; var tmp23_local19 = 0; var tmp24_local20 = 0; var tmp25_local21 = new Long(0, 0); var tmp26_local22 = 0; var tmp27_local23 = new Long(0, 0); var tmp28_local24 = new Long(0, 0); var tmp29_local25 = 0; var tmp30_local26 = new Long(0, 0); var tmp31_input = decoder.s48(tmp0_desc); if (tmp31_input.h49()) { tmp4_local0 = tmp31_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp31_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp31_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp31_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp31_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp31_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp31_input.x48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp31_input.g49(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp31_input.g49(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp31_input.g49(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp31_input.g49(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp31_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp31_input.y48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp31_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp31_input.x48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp31_input.u48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp31_input.u48(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp31_input.u48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp22_local18 = tmp31_input.x48(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp23_local19 = tmp31_input.x48(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; tmp24_local20 = tmp31_input.x48(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; tmp25_local21 = tmp31_input.y48(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; tmp26_local22 = tmp31_input.x48(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; tmp27_local23 = tmp31_input.y48(tmp0_desc, 23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; tmp28_local24 = tmp31_input.y48(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; tmp29_local25 = tmp31_input.x48(tmp0_desc, 25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; tmp30_local26 = tmp31_input.y48(tmp0_desc, 26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; } else while (tmp1_flag) { tmp2_index = tmp31_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp31_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp31_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp31_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp31_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp31_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp31_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp31_input.x48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp31_input.g49(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp31_input.g49(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp31_input.g49(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp31_input.g49(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp31_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp31_input.y48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp31_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp31_input.x48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp31_input.u48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp31_input.u48(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp31_input.u48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp22_local18 = tmp31_input.x48(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp23_local19 = tmp31_input.x48(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; case 20: tmp24_local20 = tmp31_input.x48(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; break; case 21: tmp25_local21 = tmp31_input.y48(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; break; case 22: tmp26_local22 = tmp31_input.x48(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; break; case 23: tmp27_local23 = tmp31_input.y48(tmp0_desc, 23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; break; case 24: tmp28_local24 = tmp31_input.y48(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; break; case 25: tmp29_local25 = tmp31_input.x48(tmp0_desc, 25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; break; case 26: tmp30_local26 = tmp31_input.y48(tmp0_desc, 26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp31_input.t48(tmp0_desc); return ContentEntry_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, tmp28_local24, tmp29_local25, tmp30_local26, null); }; protoOf($serializer_57).pk3 = function (encoder, value) { var tmp0_desc = this.ok3_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.baj_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.baj_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.caj_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.caj_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.daj_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.daj_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.eaj_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.eaj_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.faj_1 == null)) { tmp1_output.k4a(tmp0_desc, 4, StringSerializer_getInstance(), value.faj_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.gaj_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, StringSerializer_getInstance(), value.gaj_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.haj_1 === 0)) { tmp1_output.b4a(tmp0_desc, 6, value.haj_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.iaj_1 == null)) { tmp1_output.k4a(tmp0_desc, 7, StringSerializer_getInstance(), value.iaj_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !(value.jaj_1 == null)) { tmp1_output.k4a(tmp0_desc, 8, StringSerializer_getInstance(), value.jaj_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !(value.kaj_1 == null)) { tmp1_output.k4a(tmp0_desc, 9, StringSerializer_getInstance(), value.kaj_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !(value.laj_1 == null)) { tmp1_output.k4a(tmp0_desc, 10, StringSerializer_getInstance(), value.laj_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !value.maj_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 11, value.maj_1); } if (tmp1_output.o4a(tmp0_desc, 12) ? true : !value.naj_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 12, value.naj_1); } if (tmp1_output.o4a(tmp0_desc, 13) ? true : !value.oaj_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 13, value.oaj_1); } if (tmp1_output.o4a(tmp0_desc, 14) ? true : !(value.paj_1 === 0)) { tmp1_output.b4a(tmp0_desc, 14, value.paj_1); } if (tmp1_output.o4a(tmp0_desc, 15) ? true : !(value.qaj_1 === false)) { tmp1_output.y49(tmp0_desc, 15, value.qaj_1); } if (tmp1_output.o4a(tmp0_desc, 16) ? true : !(value.raj_1 === true)) { tmp1_output.y49(tmp0_desc, 16, value.raj_1); } if (tmp1_output.o4a(tmp0_desc, 17) ? true : !(value.saj_1 === false)) { tmp1_output.y49(tmp0_desc, 17, value.saj_1); } if (tmp1_output.o4a(tmp0_desc, 18) ? true : !(value.taj_1 === 0)) { tmp1_output.b4a(tmp0_desc, 18, value.taj_1); } if (tmp1_output.o4a(tmp0_desc, 19) ? true : !(value.uaj_1 === 0)) { tmp1_output.b4a(tmp0_desc, 19, value.uaj_1); } if (tmp1_output.o4a(tmp0_desc, 20) ? true : !(value.vaj_1 === 0)) { tmp1_output.b4a(tmp0_desc, 20, value.vaj_1); } if (tmp1_output.o4a(tmp0_desc, 21) ? true : !value.waj_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 21, value.waj_1); } if (tmp1_output.o4a(tmp0_desc, 22) ? true : !(value.xaj_1 === 0)) { tmp1_output.b4a(tmp0_desc, 22, value.xaj_1); } if (tmp1_output.o4a(tmp0_desc, 23) ? true : !value.yaj_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 23, value.yaj_1); } if (tmp1_output.o4a(tmp0_desc, 24) ? true : !value.zaj_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 24, value.zaj_1); } if (tmp1_output.o4a(tmp0_desc, 25) ? true : !(value.aak_1 === 0)) { tmp1_output.b4a(tmp0_desc, 25, value.aak_1); } if (tmp1_output.o4a(tmp0_desc, 26) ? true : !value.bak_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 26, value.bak_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_57).b45 = function (encoder, value) { return this.pk3(encoder, value instanceof ContentEntry ? value : THROW_CCE()); }; var $serializer_instance_57; function $serializer_getInstance_57() { if ($serializer_instance_57 == null) new $serializer_57(); return $serializer_instance_57; } function ContentEntry_init_$Init$(seen1, contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_57().ok3_1); } if (0 === (seen1 & 1)) $this.baj_1 = new Long(0, 0); else $this.baj_1 = contentEntryUid; if (0 === (seen1 & 2)) $this.caj_1 = null; else $this.caj_1 = title; if (0 === (seen1 & 4)) $this.daj_1 = null; else $this.daj_1 = description; if (0 === (seen1 & 8)) $this.eaj_1 = null; else $this.eaj_1 = entryId; if (0 === (seen1 & 16)) $this.faj_1 = null; else $this.faj_1 = author; if (0 === (seen1 & 32)) $this.gaj_1 = null; else $this.gaj_1 = publisher; if (0 === (seen1 & 64)) $this.haj_1 = 0; else $this.haj_1 = licenseType; if (0 === (seen1 & 128)) $this.iaj_1 = null; else $this.iaj_1 = licenseName; if (0 === (seen1 & 256)) $this.jaj_1 = null; else $this.jaj_1 = licenseUrl; if (0 === (seen1 & 512)) $this.kaj_1 = null; else $this.kaj_1 = sourceUrl; if (0 === (seen1 & 1024)) $this.laj_1 = null; else $this.laj_1 = thumbnailUrl; if (0 === (seen1 & 2048)) $this.maj_1 = new Long(0, 0); else $this.maj_1 = lastModified; if (0 === (seen1 & 4096)) $this.naj_1 = new Long(0, 0); else $this.naj_1 = primaryLanguageUid; if (0 === (seen1 & 8192)) $this.oaj_1 = new Long(0, 0); else $this.oaj_1 = languageVariantUid; if (0 === (seen1 & 16384)) $this.paj_1 = 0; else $this.paj_1 = contentFlags; if (0 === (seen1 & 32768)) $this.qaj_1 = false; else $this.qaj_1 = leaf; if (0 === (seen1 & 65536)) $this.raj_1 = true; else $this.raj_1 = publik; if (0 === (seen1 & 131072)) $this.saj_1 = false; else $this.saj_1 = ceInactive; if (0 === (seen1 & 262144)) $this.taj_1 = 0; else $this.taj_1 = completionCriteria; if (0 === (seen1 & 524288)) $this.uaj_1 = 0; else $this.uaj_1 = minScore; if (0 === (seen1 & 1048576)) $this.vaj_1 = 0; else $this.vaj_1 = contentTypeFlag; if (0 === (seen1 & 2097152)) $this.waj_1 = new Long(0, 0); else $this.waj_1 = contentOwner; if (0 === (seen1 & 4194304)) $this.xaj_1 = 0; else $this.xaj_1 = contentOwnerType; if (0 === (seen1 & 8388608)) $this.yaj_1 = new Long(0, 0); else $this.yaj_1 = contentEntryLocalChangeSeqNum; if (0 === (seen1 & 16777216)) $this.zaj_1 = new Long(0, 0); else $this.zaj_1 = contentEntryMasterChangeSeqNum; if (0 === (seen1 & 33554432)) $this.aak_1 = 0; else $this.aak_1 = contentEntryLastChangedBy; if (0 === (seen1 & 67108864)) $this.bak_1 = new Long(0, 0); else $this.bak_1 = contentEntryLct; return $this; } function ContentEntry_init_$Create$(seen1, contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct, serializationConstructorMarker) { return ContentEntry_init_$Init$(seen1, contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct, serializationConstructorMarker, objectCreate(protoOf(ContentEntry))); } function ContentEntry() { this.baj_1 = new Long(0, 0); this.caj_1 = null; this.daj_1 = null; this.eaj_1 = null; this.faj_1 = null; this.gaj_1 = null; this.haj_1 = 0; this.iaj_1 = null; this.jaj_1 = null; this.kaj_1 = null; this.laj_1 = null; this.maj_1 = new Long(0, 0); this.naj_1 = new Long(0, 0); this.oaj_1 = new Long(0, 0); this.paj_1 = 0; this.qaj_1 = false; this.raj_1 = true; this.saj_1 = false; this.taj_1 = 0; this.uaj_1 = 0; this.vaj_1 = 0; this.waj_1 = new Long(0, 0); this.xaj_1 = 0; this.yaj_1 = new Long(0, 0); this.zaj_1 = new Long(0, 0); this.aak_1 = 0; this.bak_1 = new Long(0, 0); } protoOf(ContentEntry).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntry)) return false; if (!this.baj_1.equals(other.baj_1)) return false; if (!(this.caj_1 == other.caj_1)) return false; if (!(this.daj_1 == other.daj_1)) return false; if (!(this.eaj_1 == other.eaj_1)) return false; if (!(this.faj_1 == other.faj_1)) return false; if (!(this.gaj_1 == other.gaj_1)) return false; if (!(this.haj_1 === other.haj_1)) return false; if (!(this.iaj_1 == other.iaj_1)) return false; if (!(this.jaj_1 == other.jaj_1)) return false; if (!(this.kaj_1 == other.kaj_1)) return false; if (!(this.laj_1 == other.laj_1)) return false; if (!this.maj_1.equals(other.maj_1)) return false; if (!this.naj_1.equals(other.naj_1)) return false; if (!this.oaj_1.equals(other.oaj_1)) return false; if (!(this.paj_1 === other.paj_1)) return false; if (!(this.qaj_1 === other.qaj_1)) return false; if (!(this.raj_1 === other.raj_1)) return false; if (!(this.saj_1 === other.saj_1)) return false; if (!(this.vaj_1 === other.vaj_1)) return false; if (!(this.taj_1 === other.taj_1)) return false; if (!(this.uaj_1 === other.uaj_1)) return false; if (!this.yaj_1.equals(other.yaj_1)) return false; if (!this.zaj_1.equals(other.zaj_1)) return false; if (!(this.aak_1 === other.aak_1)) return false; return true; }; protoOf(ContentEntry).hashCode = function () { var result = this.baj_1.hashCode(); var tmp = imul(31, result); var tmp0_safe_receiver = this.caj_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; var tmp_0 = imul(31, result); var tmp2_safe_receiver = this.daj_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : getStringHashCode(tmp2_safe_receiver); result = tmp_0 + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0; var tmp_1 = imul(31, result); var tmp4_safe_receiver = this.eaj_1; var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : getStringHashCode(tmp4_safe_receiver); result = tmp_1 + (tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs) | 0; var tmp_2 = imul(31, result); var tmp6_safe_receiver = this.faj_1; var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : getStringHashCode(tmp6_safe_receiver); result = tmp_2 + (tmp7_elvis_lhs == null ? 0 : tmp7_elvis_lhs) | 0; var tmp_3 = imul(31, result); var tmp8_safe_receiver = this.gaj_1; var tmp9_elvis_lhs = tmp8_safe_receiver == null ? null : getStringHashCode(tmp8_safe_receiver); result = tmp_3 + (tmp9_elvis_lhs == null ? 0 : tmp9_elvis_lhs) | 0; result = imul(31, result) + this.haj_1 | 0; var tmp_4 = imul(31, result); var tmp10_safe_receiver = this.iaj_1; var tmp11_elvis_lhs = tmp10_safe_receiver == null ? null : getStringHashCode(tmp10_safe_receiver); result = tmp_4 + (tmp11_elvis_lhs == null ? 0 : tmp11_elvis_lhs) | 0; var tmp_5 = imul(31, result); var tmp12_safe_receiver = this.jaj_1; var tmp13_elvis_lhs = tmp12_safe_receiver == null ? null : getStringHashCode(tmp12_safe_receiver); result = tmp_5 + (tmp13_elvis_lhs == null ? 0 : tmp13_elvis_lhs) | 0; var tmp_6 = imul(31, result); var tmp14_safe_receiver = this.kaj_1; var tmp15_elvis_lhs = tmp14_safe_receiver == null ? null : getStringHashCode(tmp14_safe_receiver); result = tmp_6 + (tmp15_elvis_lhs == null ? 0 : tmp15_elvis_lhs) | 0; var tmp_7 = imul(31, result); var tmp16_safe_receiver = this.laj_1; var tmp17_elvis_lhs = tmp16_safe_receiver == null ? null : getStringHashCode(tmp16_safe_receiver); result = tmp_7 + (tmp17_elvis_lhs == null ? 0 : tmp17_elvis_lhs) | 0; result = imul(31, result) + this.maj_1.hashCode() | 0; result = imul(31, result) + this.naj_1.hashCode() | 0; result = imul(31, result) + this.oaj_1.hashCode() | 0; result = imul(31, result) + this.paj_1 | 0; result = imul(31, result) + getBooleanHashCode(this.qaj_1) | 0; result = imul(31, result) + getBooleanHashCode(this.raj_1) | 0; result = imul(31, result) + getBooleanHashCode(this.saj_1) | 0; result = imul(31, result) + this.vaj_1 | 0; result = imul(31, result) + this.taj_1 | 0; result = imul(31, result) + this.uaj_1 | 0; result = imul(31, result) + this.yaj_1.hashCode() | 0; result = imul(31, result) + this.zaj_1.hashCode() | 0; result = imul(31, result) + this.aak_1 | 0; return result; }; function ContentEntryButtonModel() { this.qk3_1 = false; this.rk3_1 = false; this.sk3_1 = false; this.tk3_1 = false; this.uk3_1 = false; } function Companion_61() { this.vk3_1 = 3; } var Companion_instance_62; function Companion_getInstance_64() { return Companion_instance_62; } function $serializer_58() { $serializer_instance_58 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryContentCategoryJoin', this, 7); tmp0_serialDesc.d4g('ceccjUid', true); tmp0_serialDesc.d4g('ceccjContentEntryUid', true); tmp0_serialDesc.d4g('ceccjContentCategoryUid', true); tmp0_serialDesc.d4g('ceccjLocalChangeSeqNum', true); tmp0_serialDesc.d4g('ceccjMasterChangeSeqNum', true); tmp0_serialDesc.d4g('ceccjLastChangedBy', true); tmp0_serialDesc.d4g('ceccjLct', true); this.wk3_1 = tmp0_serialDesc; } protoOf($serializer_58).a45 = function () { return this.wk3_1; }; protoOf($serializer_58).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_58).c45 = function (decoder) { var tmp0_desc = this.wk3_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = 0; var tmp10_local6 = new Long(0, 0); var tmp11_input = decoder.s48(tmp0_desc); if (tmp11_input.h49()) { tmp4_local0 = tmp11_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.t48(tmp0_desc); return ContentEntryContentCategoryJoin_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_58).xk3 = function (encoder, value) { var tmp0_desc = this.wk3_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.hag_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.hag_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.iag_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.iag_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.jag_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.jag_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.kag_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.kag_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.lag_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.lag_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.mag_1 === 0)) { tmp1_output.b4a(tmp0_desc, 5, value.mag_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.nag_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.nag_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_58).b45 = function (encoder, value) { return this.xk3(encoder, value instanceof ContentEntryContentCategoryJoin ? value : THROW_CCE()); }; var $serializer_instance_58; function $serializer_getInstance_58() { if ($serializer_instance_58 == null) new $serializer_58(); return $serializer_instance_58; } function ContentEntryContentCategoryJoin_init_$Init$(seen1, ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_58().wk3_1); } if (0 === (seen1 & 1)) $this.hag_1 = new Long(0, 0); else $this.hag_1 = ceccjUid; if (0 === (seen1 & 2)) $this.iag_1 = new Long(0, 0); else $this.iag_1 = ceccjContentEntryUid; if (0 === (seen1 & 4)) $this.jag_1 = new Long(0, 0); else $this.jag_1 = ceccjContentCategoryUid; if (0 === (seen1 & 8)) $this.kag_1 = new Long(0, 0); else $this.kag_1 = ceccjLocalChangeSeqNum; if (0 === (seen1 & 16)) $this.lag_1 = new Long(0, 0); else $this.lag_1 = ceccjMasterChangeSeqNum; if (0 === (seen1 & 32)) $this.mag_1 = 0; else $this.mag_1 = ceccjLastChangedBy; if (0 === (seen1 & 64)) $this.nag_1 = new Long(0, 0); else $this.nag_1 = ceccjLct; return $this; } function ContentEntryContentCategoryJoin_init_$Create$(seen1, ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct, serializationConstructorMarker) { return ContentEntryContentCategoryJoin_init_$Init$(seen1, ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct, serializationConstructorMarker, objectCreate(protoOf(ContentEntryContentCategoryJoin))); } function ContentEntryContentCategoryJoin() { this.hag_1 = new Long(0, 0); this.iag_1 = new Long(0, 0); this.jag_1 = new Long(0, 0); this.kag_1 = new Long(0, 0); this.lag_1 = new Long(0, 0); this.mag_1 = 0; this.nag_1 = new Long(0, 0); } protoOf(ContentEntryContentCategoryJoin).equals = function (other) { if (this === other) return true; var that = (other == null ? true : other instanceof ContentEntryContentCategoryJoin) ? other : THROW_CCE(); if (!this.hag_1.equals(ensureNotNull(that).hag_1)) return false; return !this.iag_1.equals(that.iag_1) ? false : this.jag_1.equals(that.jag_1); }; protoOf(ContentEntryContentCategoryJoin).hashCode = function () { var result = this.hag_1.ad(this.hag_1.xc(32)).nb(); result = imul(31, result) + this.iag_1.ad(this.iag_1.xc(32)).nb() | 0; result = imul(31, result) + this.jag_1.ad(this.jag_1.xc(32)).nb() | 0; return result; }; function Companion_62() { this.yk3_1 = 720; this.zk3_1 = 'subtitles'; } var Companion_instance_63; function Companion_getInstance_65() { return Companion_instance_63; } function $serializer_59() { $serializer_instance_59 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryImportJob', this, 20); tmp0_serialDesc.d4g('cjiUid', true); tmp0_serialDesc.d4g('sourceUri', true); tmp0_serialDesc.d4g('cjiOriginalFilename', true); tmp0_serialDesc.d4g('cjiContentEntryUid', true); tmp0_serialDesc.d4g('cjiParentContentEntryUid', true); tmp0_serialDesc.d4g('cjiContentEntryVersion', true); tmp0_serialDesc.d4g('cjiItemProgress', true); tmp0_serialDesc.d4g('cjiItemTotal', true); tmp0_serialDesc.d4g('cjiStatus', true); tmp0_serialDesc.d4g('cjiRecursiveStatus', true); tmp0_serialDesc.d4g('cjiPluginId', true); tmp0_serialDesc.d4g('cjiParentCjiUid', true); tmp0_serialDesc.d4g('cjiStartTime', true); tmp0_serialDesc.d4g('cjiFinishTime', true); tmp0_serialDesc.d4g('cjiContentDeletedOnCancellation', true); tmp0_serialDesc.d4g('cjiCompressionLevel', true); tmp0_serialDesc.d4g('cjiError', true); tmp0_serialDesc.d4g('cjiErrorDismissed', true); tmp0_serialDesc.d4g('cjiOwnerPersonUid', true); tmp0_serialDesc.d4g('cjiParams', true); this.ak4_1 = tmp0_serialDesc; } protoOf($serializer_59).a45 = function () { return this.ak4_1; }; protoOf($serializer_59).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_59).c45 = function (decoder) { var tmp0_desc = this.ak4_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = 0; var tmp13_local9 = 0; var tmp14_local10 = 0; var tmp15_local11 = new Long(0, 0); var tmp16_local12 = new Long(0, 0); var tmp17_local13 = new Long(0, 0); var tmp18_local14 = false; var tmp19_local15 = 0; var tmp20_local16 = null; var tmp21_local17 = false; var tmp22_local18 = new Long(0, 0); var tmp23_local19 = null; var tmp24_input = decoder.s48(tmp0_desc); if (tmp24_input.h49()) { tmp4_local0 = tmp24_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp24_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp24_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp24_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp24_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp24_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp24_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp24_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp24_input.x48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp24_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp24_input.x48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp24_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp24_input.y48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp24_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp24_input.u48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp24_input.x48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp24_input.g49(tmp0_desc, 16, StringSerializer_getInstance(), tmp20_local16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp24_input.u48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp22_local18 = tmp24_input.y48(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp23_local19 = tmp24_input.g49(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; } else while (tmp1_flag) { tmp2_index = tmp24_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp24_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp24_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp24_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp24_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp24_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp24_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp24_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp24_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp24_input.x48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp24_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp24_input.x48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp24_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp24_input.y48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp24_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp24_input.u48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp24_input.x48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp24_input.g49(tmp0_desc, 16, StringSerializer_getInstance(), tmp20_local16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp24_input.u48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp22_local18 = tmp24_input.y48(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp23_local19 = tmp24_input.g49(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp24_input.t48(tmp0_desc); return ContentEntryImportJob_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, null); }; protoOf($serializer_59).bk4 = function (encoder, value) { var tmp0_desc = this.ak4_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.zaz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.zaz_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.ab0_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.ab0_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.bb0_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.bb0_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.cb0_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.cb0_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.db0_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.db0_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.eb0_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.eb0_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.fb0_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.fb0_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.gb0_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.gb0_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !(value.hb0_1 === 4)) { tmp1_output.b4a(tmp0_desc, 8, value.hb0_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !(value.ib0_1 === 4)) { tmp1_output.b4a(tmp0_desc, 9, value.ib0_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !(value.jb0_1 === 0)) { tmp1_output.b4a(tmp0_desc, 10, value.jb0_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !value.kb0_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 11, value.kb0_1); } if (tmp1_output.o4a(tmp0_desc, 12) ? true : !value.lb0_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 12, value.lb0_1); } if (tmp1_output.o4a(tmp0_desc, 13) ? true : !value.mb0_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 13, value.mb0_1); } if (tmp1_output.o4a(tmp0_desc, 14) ? true : !(value.nb0_1 === false)) { tmp1_output.y49(tmp0_desc, 14, value.nb0_1); } if (tmp1_output.o4a(tmp0_desc, 15) ? true : !(value.ob0_1 === 3)) { tmp1_output.b4a(tmp0_desc, 15, value.ob0_1); } if (tmp1_output.o4a(tmp0_desc, 16) ? true : !(value.pb0_1 == null)) { tmp1_output.k4a(tmp0_desc, 16, StringSerializer_getInstance(), value.pb0_1); } if (tmp1_output.o4a(tmp0_desc, 17) ? true : !(value.qb0_1 === false)) { tmp1_output.y49(tmp0_desc, 17, value.qb0_1); } if (tmp1_output.o4a(tmp0_desc, 18) ? true : !value.rb0_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 18, value.rb0_1); } if (tmp1_output.o4a(tmp0_desc, 19) ? true : !(value.sb0_1 == null)) { tmp1_output.k4a(tmp0_desc, 19, StringSerializer_getInstance(), value.sb0_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_59).b45 = function (encoder, value) { return this.bk4(encoder, value instanceof ContentEntryImportJob ? value : THROW_CCE()); }; var $serializer_instance_59; function $serializer_getInstance_59() { if ($serializer_instance_59 == null) new $serializer_59(); return $serializer_instance_59; } function ContentEntryImportJob_init_$Init$(seen1, cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_59().ak4_1); } if (0 === (seen1 & 1)) $this.zaz_1 = new Long(0, 0); else $this.zaz_1 = cjiUid; if (0 === (seen1 & 2)) $this.ab0_1 = null; else $this.ab0_1 = sourceUri; if (0 === (seen1 & 4)) $this.bb0_1 = null; else $this.bb0_1 = cjiOriginalFilename; if (0 === (seen1 & 8)) $this.cb0_1 = new Long(0, 0); else $this.cb0_1 = cjiContentEntryUid; if (0 === (seen1 & 16)) $this.db0_1 = new Long(0, 0); else $this.db0_1 = cjiParentContentEntryUid; if (0 === (seen1 & 32)) $this.eb0_1 = new Long(0, 0); else $this.eb0_1 = cjiContentEntryVersion; if (0 === (seen1 & 64)) $this.fb0_1 = new Long(0, 0); else $this.fb0_1 = cjiItemProgress; if (0 === (seen1 & 128)) $this.gb0_1 = new Long(0, 0); else $this.gb0_1 = cjiItemTotal; if (0 === (seen1 & 256)) $this.hb0_1 = 4; else $this.hb0_1 = cjiStatus; if (0 === (seen1 & 512)) $this.ib0_1 = 4; else $this.ib0_1 = cjiRecursiveStatus; if (0 === (seen1 & 1024)) $this.jb0_1 = 0; else $this.jb0_1 = cjiPluginId; if (0 === (seen1 & 2048)) $this.kb0_1 = new Long(0, 0); else $this.kb0_1 = cjiParentCjiUid; if (0 === (seen1 & 4096)) $this.lb0_1 = new Long(0, 0); else $this.lb0_1 = cjiStartTime; if (0 === (seen1 & 8192)) $this.mb0_1 = new Long(0, 0); else $this.mb0_1 = cjiFinishTime; if (0 === (seen1 & 16384)) $this.nb0_1 = false; else $this.nb0_1 = cjiContentDeletedOnCancellation; if (0 === (seen1 & 32768)) $this.ob0_1 = 3; else $this.ob0_1 = cjiCompressionLevel; if (0 === (seen1 & 65536)) $this.pb0_1 = null; else $this.pb0_1 = cjiError; if (0 === (seen1 & 131072)) $this.qb0_1 = false; else $this.qb0_1 = cjiErrorDismissed; if (0 === (seen1 & 262144)) $this.rb0_1 = new Long(0, 0); else $this.rb0_1 = cjiOwnerPersonUid; if (0 === (seen1 & 524288)) $this.sb0_1 = null; else $this.sb0_1 = cjiParams; return $this; } function ContentEntryImportJob_init_$Create$(seen1, cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams, serializationConstructorMarker) { return ContentEntryImportJob_init_$Init$(seen1, cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams, serializationConstructorMarker, objectCreate(protoOf(ContentEntryImportJob))); } function ContentEntryImportJob(cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams) { cjiUid = cjiUid === VOID ? new Long(0, 0) : cjiUid; sourceUri = sourceUri === VOID ? null : sourceUri; cjiOriginalFilename = cjiOriginalFilename === VOID ? null : cjiOriginalFilename; cjiContentEntryUid = cjiContentEntryUid === VOID ? new Long(0, 0) : cjiContentEntryUid; cjiParentContentEntryUid = cjiParentContentEntryUid === VOID ? new Long(0, 0) : cjiParentContentEntryUid; cjiContentEntryVersion = cjiContentEntryVersion === VOID ? new Long(0, 0) : cjiContentEntryVersion; cjiItemProgress = cjiItemProgress === VOID ? new Long(0, 0) : cjiItemProgress; cjiItemTotal = cjiItemTotal === VOID ? new Long(0, 0) : cjiItemTotal; cjiStatus = cjiStatus === VOID ? 4 : cjiStatus; cjiRecursiveStatus = cjiRecursiveStatus === VOID ? 4 : cjiRecursiveStatus; cjiPluginId = cjiPluginId === VOID ? 0 : cjiPluginId; cjiParentCjiUid = cjiParentCjiUid === VOID ? new Long(0, 0) : cjiParentCjiUid; cjiStartTime = cjiStartTime === VOID ? new Long(0, 0) : cjiStartTime; cjiFinishTime = cjiFinishTime === VOID ? new Long(0, 0) : cjiFinishTime; cjiContentDeletedOnCancellation = cjiContentDeletedOnCancellation === VOID ? false : cjiContentDeletedOnCancellation; cjiCompressionLevel = cjiCompressionLevel === VOID ? 3 : cjiCompressionLevel; cjiError = cjiError === VOID ? null : cjiError; cjiErrorDismissed = cjiErrorDismissed === VOID ? false : cjiErrorDismissed; cjiOwnerPersonUid = cjiOwnerPersonUid === VOID ? new Long(0, 0) : cjiOwnerPersonUid; cjiParams = cjiParams === VOID ? null : cjiParams; this.zaz_1 = cjiUid; this.ab0_1 = sourceUri; this.bb0_1 = cjiOriginalFilename; this.cb0_1 = cjiContentEntryUid; this.db0_1 = cjiParentContentEntryUid; this.eb0_1 = cjiContentEntryVersion; this.fb0_1 = cjiItemProgress; this.gb0_1 = cjiItemTotal; this.hb0_1 = cjiStatus; this.ib0_1 = cjiRecursiveStatus; this.jb0_1 = cjiPluginId; this.kb0_1 = cjiParentCjiUid; this.lb0_1 = cjiStartTime; this.mb0_1 = cjiFinishTime; this.nb0_1 = cjiContentDeletedOnCancellation; this.ob0_1 = cjiCompressionLevel; this.pb0_1 = cjiError; this.qb0_1 = cjiErrorDismissed; this.rb0_1 = cjiOwnerPersonUid; this.sb0_1 = cjiParams; } protoOf(ContentEntryImportJob).ck4 = function (cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams) { return new ContentEntryImportJob(cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams); }; protoOf(ContentEntryImportJob).dk4 = function (cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams, $super) { cjiUid = cjiUid === VOID ? this.zaz_1 : cjiUid; sourceUri = sourceUri === VOID ? this.ab0_1 : sourceUri; cjiOriginalFilename = cjiOriginalFilename === VOID ? this.bb0_1 : cjiOriginalFilename; cjiContentEntryUid = cjiContentEntryUid === VOID ? this.cb0_1 : cjiContentEntryUid; cjiParentContentEntryUid = cjiParentContentEntryUid === VOID ? this.db0_1 : cjiParentContentEntryUid; cjiContentEntryVersion = cjiContentEntryVersion === VOID ? this.eb0_1 : cjiContentEntryVersion; cjiItemProgress = cjiItemProgress === VOID ? this.fb0_1 : cjiItemProgress; cjiItemTotal = cjiItemTotal === VOID ? this.gb0_1 : cjiItemTotal; cjiStatus = cjiStatus === VOID ? this.hb0_1 : cjiStatus; cjiRecursiveStatus = cjiRecursiveStatus === VOID ? this.ib0_1 : cjiRecursiveStatus; cjiPluginId = cjiPluginId === VOID ? this.jb0_1 : cjiPluginId; cjiParentCjiUid = cjiParentCjiUid === VOID ? this.kb0_1 : cjiParentCjiUid; cjiStartTime = cjiStartTime === VOID ? this.lb0_1 : cjiStartTime; cjiFinishTime = cjiFinishTime === VOID ? this.mb0_1 : cjiFinishTime; cjiContentDeletedOnCancellation = cjiContentDeletedOnCancellation === VOID ? this.nb0_1 : cjiContentDeletedOnCancellation; cjiCompressionLevel = cjiCompressionLevel === VOID ? this.ob0_1 : cjiCompressionLevel; cjiError = cjiError === VOID ? this.pb0_1 : cjiError; cjiErrorDismissed = cjiErrorDismissed === VOID ? this.qb0_1 : cjiErrorDismissed; cjiOwnerPersonUid = cjiOwnerPersonUid === VOID ? this.rb0_1 : cjiOwnerPersonUid; cjiParams = cjiParams === VOID ? this.sb0_1 : cjiParams; return $super === VOID ? this.ck4(cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams) : $super.ck4.call(this, cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams); }; protoOf(ContentEntryImportJob).toString = function () { return 'ContentEntryImportJob(cjiUid=' + this.zaz_1.toString() + ', sourceUri=' + this.ab0_1 + ', cjiOriginalFilename=' + this.bb0_1 + ', cjiContentEntryUid=' + this.cb0_1.toString() + ', cjiParentContentEntryUid=' + this.db0_1.toString() + ', cjiContentEntryVersion=' + this.eb0_1.toString() + ', cjiItemProgress=' + this.fb0_1.toString() + ', cjiItemTotal=' + this.gb0_1.toString() + ', cjiStatus=' + this.hb0_1 + ', cjiRecursiveStatus=' + this.ib0_1 + ', cjiPluginId=' + this.jb0_1 + ', cjiParentCjiUid=' + this.kb0_1.toString() + ', cjiStartTime=' + this.lb0_1.toString() + ', cjiFinishTime=' + this.mb0_1.toString() + ', cjiContentDeletedOnCancellation=' + this.nb0_1 + ', cjiCompressionLevel=' + this.ob0_1 + ', cjiError=' + this.pb0_1 + ', cjiErrorDismissed=' + this.qb0_1 + ', cjiOwnerPersonUid=' + this.rb0_1.toString() + ', cjiParams=' + this.sb0_1 + ')'; }; protoOf(ContentEntryImportJob).hashCode = function () { var result = this.zaz_1.hashCode(); result = imul(result, 31) + (this.ab0_1 == null ? 0 : getStringHashCode(this.ab0_1)) | 0; result = imul(result, 31) + (this.bb0_1 == null ? 0 : getStringHashCode(this.bb0_1)) | 0; result = imul(result, 31) + this.cb0_1.hashCode() | 0; result = imul(result, 31) + this.db0_1.hashCode() | 0; result = imul(result, 31) + this.eb0_1.hashCode() | 0; result = imul(result, 31) + this.fb0_1.hashCode() | 0; result = imul(result, 31) + this.gb0_1.hashCode() | 0; result = imul(result, 31) + this.hb0_1 | 0; result = imul(result, 31) + this.ib0_1 | 0; result = imul(result, 31) + this.jb0_1 | 0; result = imul(result, 31) + this.kb0_1.hashCode() | 0; result = imul(result, 31) + this.lb0_1.hashCode() | 0; result = imul(result, 31) + this.mb0_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.nb0_1) | 0; result = imul(result, 31) + this.ob0_1 | 0; result = imul(result, 31) + (this.pb0_1 == null ? 0 : getStringHashCode(this.pb0_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.qb0_1) | 0; result = imul(result, 31) + this.rb0_1.hashCode() | 0; result = imul(result, 31) + (this.sb0_1 == null ? 0 : getStringHashCode(this.sb0_1)) | 0; return result; }; protoOf(ContentEntryImportJob).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryImportJob)) return false; var tmp0_other_with_cast = other instanceof ContentEntryImportJob ? other : THROW_CCE(); if (!this.zaz_1.equals(tmp0_other_with_cast.zaz_1)) return false; if (!(this.ab0_1 == tmp0_other_with_cast.ab0_1)) return false; if (!(this.bb0_1 == tmp0_other_with_cast.bb0_1)) return false; if (!this.cb0_1.equals(tmp0_other_with_cast.cb0_1)) return false; if (!this.db0_1.equals(tmp0_other_with_cast.db0_1)) return false; if (!this.eb0_1.equals(tmp0_other_with_cast.eb0_1)) return false; if (!this.fb0_1.equals(tmp0_other_with_cast.fb0_1)) return false; if (!this.gb0_1.equals(tmp0_other_with_cast.gb0_1)) return false; if (!(this.hb0_1 === tmp0_other_with_cast.hb0_1)) return false; if (!(this.ib0_1 === tmp0_other_with_cast.ib0_1)) return false; if (!(this.jb0_1 === tmp0_other_with_cast.jb0_1)) return false; if (!this.kb0_1.equals(tmp0_other_with_cast.kb0_1)) return false; if (!this.lb0_1.equals(tmp0_other_with_cast.lb0_1)) return false; if (!this.mb0_1.equals(tmp0_other_with_cast.mb0_1)) return false; if (!(this.nb0_1 === tmp0_other_with_cast.nb0_1)) return false; if (!(this.ob0_1 === tmp0_other_with_cast.ob0_1)) return false; if (!(this.pb0_1 == tmp0_other_with_cast.pb0_1)) return false; if (!(this.qb0_1 === tmp0_other_with_cast.qb0_1)) return false; if (!this.rb0_1.equals(tmp0_other_with_cast.rb0_1)) return false; if (!(this.sb0_1 == tmp0_other_with_cast.sb0_1)) return false; return true; }; function Companion_63() { this.ek4_1 = 7; } var Companion_instance_64; function Companion_getInstance_66() { return Companion_instance_64; } function $serializer_60() { $serializer_instance_60 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryParentChildJoin', this, 9); tmp0_serialDesc.d4g('cepcjParentContentEntryUid', true); tmp0_serialDesc.d4g('cepcjChildContentEntryUid', true); tmp0_serialDesc.d4g('childIndex', true); tmp0_serialDesc.d4g('cepcjUid', true); tmp0_serialDesc.d4g('cepcjLocalChangeSeqNum', true); tmp0_serialDesc.d4g('cepcjMasterChangeSeqNum', true); tmp0_serialDesc.d4g('cepcjLastChangedBy', true); tmp0_serialDesc.d4g('cepcjLct', true); tmp0_serialDesc.d4g('cepcjDeleted', true); this.fk4_1 = tmp0_serialDesc; } protoOf($serializer_60).a45 = function () { return this.fk4_1; }; protoOf($serializer_60).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_60).c45 = function (decoder) { var tmp0_desc = this.fk4_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = 0; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = 0; var tmp11_local7 = new Long(0, 0); var tmp12_local8 = false; var tmp13_input = decoder.s48(tmp0_desc); if (tmp13_input.h49()) { tmp4_local0 = tmp13_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp13_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp13_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp13_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp13_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp13_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp13_input.x48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp13_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp13_input.u48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; } else while (tmp1_flag) { tmp2_index = tmp13_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp13_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp13_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp13_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp13_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp13_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp13_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp13_input.x48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp13_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp13_input.u48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp13_input.t48(tmp0_desc); return ContentEntryParentChildJoin_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); }; protoOf($serializer_60).gk4 = function (encoder, value) { var tmp0_desc = this.fk4_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.iam_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.iam_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.jam_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.jam_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.kam_1 === 0)) { tmp1_output.b4a(tmp0_desc, 2, value.kam_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.lam_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.lam_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.mam_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.mam_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.nam_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.nam_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.oam_1 === 0)) { tmp1_output.b4a(tmp0_desc, 6, value.oam_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.pam_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.pam_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !(value.qam_1 === false)) { tmp1_output.y49(tmp0_desc, 8, value.qam_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_60).b45 = function (encoder, value) { return this.gk4(encoder, value instanceof ContentEntryParentChildJoin ? value : THROW_CCE()); }; var $serializer_instance_60; function $serializer_getInstance_60() { if ($serializer_instance_60 == null) new $serializer_60(); return $serializer_instance_60; } function ContentEntryParentChildJoin_init_$Init$(seen1, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex, cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_60().fk4_1); } if (0 === (seen1 & 1)) $this.iam_1 = new Long(0, 0); else $this.iam_1 = cepcjParentContentEntryUid; if (0 === (seen1 & 2)) $this.jam_1 = new Long(0, 0); else $this.jam_1 = cepcjChildContentEntryUid; if (0 === (seen1 & 4)) $this.kam_1 = 0; else $this.kam_1 = childIndex; if (0 === (seen1 & 8)) $this.lam_1 = new Long(0, 0); else $this.lam_1 = cepcjUid; if (0 === (seen1 & 16)) $this.mam_1 = new Long(0, 0); else $this.mam_1 = cepcjLocalChangeSeqNum; if (0 === (seen1 & 32)) $this.nam_1 = new Long(0, 0); else $this.nam_1 = cepcjMasterChangeSeqNum; if (0 === (seen1 & 64)) $this.oam_1 = 0; else $this.oam_1 = cepcjLastChangedBy; if (0 === (seen1 & 128)) $this.pam_1 = new Long(0, 0); else $this.pam_1 = cepcjLct; if (0 === (seen1 & 256)) $this.qam_1 = false; else $this.qam_1 = cepcjDeleted; return $this; } function ContentEntryParentChildJoin_init_$Create$(seen1, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex, cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, serializationConstructorMarker) { return ContentEntryParentChildJoin_init_$Init$(seen1, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex, cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, serializationConstructorMarker, objectCreate(protoOf(ContentEntryParentChildJoin))); } function ContentEntryParentChildJoin(cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex) { cepcjParentContentEntryUid = cepcjParentContentEntryUid === VOID ? new Long(0, 0) : cepcjParentContentEntryUid; cepcjChildContentEntryUid = cepcjChildContentEntryUid === VOID ? new Long(0, 0) : cepcjChildContentEntryUid; childIndex = childIndex === VOID ? 0 : childIndex; this.iam_1 = cepcjParentContentEntryUid; this.jam_1 = cepcjChildContentEntryUid; this.kam_1 = childIndex; this.lam_1 = new Long(0, 0); this.mam_1 = new Long(0, 0); this.nam_1 = new Long(0, 0); this.oam_1 = 0; this.pam_1 = new Long(0, 0); this.qam_1 = false; } protoOf(ContentEntryParentChildJoin).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!(other instanceof ContentEntryParentChildJoin)) THROW_CCE(); if (!this.lam_1.equals(other.lam_1)) return false; if (!this.mam_1.equals(other.mam_1)) return false; if (!this.nam_1.equals(other.nam_1)) return false; if (!(this.oam_1 === other.oam_1)) return false; if (!this.iam_1.equals(other.iam_1)) return false; if (!this.jam_1.equals(other.jam_1)) return false; if (!(this.kam_1 === other.kam_1)) return false; return true; }; protoOf(ContentEntryParentChildJoin).hashCode = function () { var result = this.lam_1.hashCode(); result = imul(31, result) + this.mam_1.hashCode() | 0; result = imul(31, result) + this.nam_1.hashCode() | 0; result = imul(31, result) + this.oam_1 | 0; result = imul(31, result) + this.iam_1.hashCode() | 0; result = imul(31, result) + this.jam_1.hashCode() | 0; result = imul(31, result) + this.kam_1 | 0; return result; }; function Companion_64() { this.hk4_1 = 138; } var Companion_instance_65; function Companion_getInstance_67() { return Companion_instance_65; } function $serializer_61() { $serializer_instance_61 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryPicture', this, 8); tmp0_serialDesc.d4g('cepUid', true); tmp0_serialDesc.d4g('cepContentEntryUid', true); tmp0_serialDesc.d4g('cepUri', true); tmp0_serialDesc.d4g('cepMd5', true); tmp0_serialDesc.d4g('cepFileSize', true); tmp0_serialDesc.d4g('cepTimestamp', true); tmp0_serialDesc.d4g('cepMimeType', true); tmp0_serialDesc.d4g('cepActive', true); this.ik4_1 = tmp0_serialDesc; } protoOf($serializer_61).a45 = function () { return this.ik4_1; }; protoOf($serializer_61).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance()]; }; protoOf($serializer_61).c45 = function (decoder) { var tmp0_desc = this.ik4_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = 0; var tmp9_local5 = new Long(0, 0); var tmp10_local6 = null; var tmp11_local7 = false; var tmp12_input = decoder.s48(tmp0_desc); if (tmp12_input.h49()) { tmp4_local0 = tmp12_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.g49(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.u48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.g49(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.u48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.t48(tmp0_desc); return ContentEntryPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_61).jk4 = function (encoder, value) { var tmp0_desc = this.ik4_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.hb9_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.hb9_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.ib9_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.ib9_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.jb9_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.jb9_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.kb9_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.kb9_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.lb9_1 === 0)) { tmp1_output.b4a(tmp0_desc, 4, value.lb9_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.mb9_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.mb9_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.nb9_1 == null)) { tmp1_output.k4a(tmp0_desc, 6, StringSerializer_getInstance(), value.nb9_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.ob9_1 === true)) { tmp1_output.y49(tmp0_desc, 7, value.ob9_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_61).b45 = function (encoder, value) { return this.jk4(encoder, value instanceof ContentEntryPicture ? value : THROW_CCE()); }; var $serializer_instance_61; function $serializer_getInstance_61() { if ($serializer_instance_61 == null) new $serializer_61(); return $serializer_instance_61; } function ContentEntryPicture_init_$Init$(seen1, cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_61().ik4_1); } if (0 === (seen1 & 1)) $this.hb9_1 = new Long(0, 0); else $this.hb9_1 = cepUid; if (0 === (seen1 & 2)) $this.ib9_1 = new Long(0, 0); else $this.ib9_1 = cepContentEntryUid; if (0 === (seen1 & 4)) $this.jb9_1 = null; else $this.jb9_1 = cepUri; if (0 === (seen1 & 8)) $this.kb9_1 = null; else $this.kb9_1 = cepMd5; if (0 === (seen1 & 16)) $this.lb9_1 = 0; else $this.lb9_1 = cepFileSize; if (0 === (seen1 & 32)) $this.mb9_1 = new Long(0, 0); else $this.mb9_1 = cepTimestamp; if (0 === (seen1 & 64)) $this.nb9_1 = null; else $this.nb9_1 = cepMimeType; if (0 === (seen1 & 128)) $this.ob9_1 = true; else $this.ob9_1 = cepActive; return $this; } function ContentEntryPicture_init_$Create$(seen1, cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive, serializationConstructorMarker) { return ContentEntryPicture_init_$Init$(seen1, cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive, serializationConstructorMarker, objectCreate(protoOf(ContentEntryPicture))); } function ContentEntryPicture() { this.hb9_1 = new Long(0, 0); this.ib9_1 = new Long(0, 0); this.jb9_1 = null; this.kb9_1 = null; this.lb9_1 = 0; this.mb9_1 = new Long(0, 0); this.nb9_1 = null; this.ob9_1 = true; } protoOf(ContentEntryPicture).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!(other instanceof ContentEntryPicture)) THROW_CCE(); if (!this.hb9_1.equals(other.hb9_1)) return false; if (!this.ib9_1.equals(other.ib9_1)) return false; if (!(this.jb9_1 == other.jb9_1)) return false; if (!(this.kb9_1 == other.kb9_1)) return false; if (!(this.lb9_1 === other.lb9_1)) return false; if (!this.mb9_1.equals(other.mb9_1)) return false; if (!(this.nb9_1 == other.nb9_1)) return false; if (!(this.ob9_1 === other.ob9_1)) return false; return true; }; protoOf(ContentEntryPicture).hashCode = function () { var result = this.hb9_1.hashCode(); result = imul(31, result) + this.ib9_1.hashCode() | 0; var tmp = imul(31, result); var tmp0_safe_receiver = this.jb9_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; var tmp_0 = imul(31, result); var tmp2_safe_receiver = this.kb9_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : getStringHashCode(tmp2_safe_receiver); result = tmp_0 + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0; result = imul(31, result) + this.lb9_1 | 0; result = imul(31, result) + this.mb9_1.hashCode() | 0; var tmp_1 = imul(31, result); var tmp4_safe_receiver = this.nb9_1; var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : getStringHashCode(tmp4_safe_receiver); result = tmp_1 + (tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs) | 0; result = imul(31, result) + getBooleanHashCode(this.ob9_1) | 0; return result; }; function Companion_65() { this.kk4_1 = 6678; } var Companion_instance_66; function Companion_getInstance_68() { return Companion_instance_66; } function $serializer_62() { $serializer_instance_62 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryPicture2', this, 4); tmp0_serialDesc.d4g('cepUid', true); tmp0_serialDesc.d4g('cepLct', true); tmp0_serialDesc.d4g('cepPictureUri', true); tmp0_serialDesc.d4g('cepThumbnailUri', true); this.lk4_1 = tmp0_serialDesc; } protoOf($serializer_62).a45 = function () { return this.lk4_1; }; protoOf($serializer_62).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_62).c45 = function (decoder) { var tmp0_desc = this.lk4_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.s48(tmp0_desc); if (tmp8_input.h49()) { tmp4_local0 = tmp8_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.t48(tmp0_desc); return ContentEntryPicture2_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_62).mk4 = function (encoder, value) { var tmp0_desc = this.lk4_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.rak_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.rak_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.sak_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.sak_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.tak_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.tak_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.uak_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.uak_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_62).b45 = function (encoder, value) { return this.mk4(encoder, value instanceof ContentEntryPicture2 ? value : THROW_CCE()); }; var $serializer_instance_62; function $serializer_getInstance_62() { if ($serializer_instance_62 == null) new $serializer_62(); return $serializer_instance_62; } function ContentEntryPicture2_init_$Init$(seen1, cepUid, cepLct, cepPictureUri, cepThumbnailUri, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_62().lk4_1); } if (0 === (seen1 & 1)) $this.rak_1 = new Long(0, 0); else $this.rak_1 = cepUid; if (0 === (seen1 & 2)) $this.sak_1 = new Long(0, 0); else $this.sak_1 = cepLct; if (0 === (seen1 & 4)) $this.tak_1 = null; else $this.tak_1 = cepPictureUri; if (0 === (seen1 & 8)) $this.uak_1 = null; else $this.uak_1 = cepThumbnailUri; return $this; } function ContentEntryPicture2_init_$Create$(seen1, cepUid, cepLct, cepPictureUri, cepThumbnailUri, serializationConstructorMarker) { return ContentEntryPicture2_init_$Init$(seen1, cepUid, cepLct, cepPictureUri, cepThumbnailUri, serializationConstructorMarker, objectCreate(protoOf(ContentEntryPicture2))); } function ContentEntryPicture2(cepUid, cepLct, cepPictureUri, cepThumbnailUri) { cepUid = cepUid === VOID ? new Long(0, 0) : cepUid; cepLct = cepLct === VOID ? new Long(0, 0) : cepLct; cepPictureUri = cepPictureUri === VOID ? null : cepPictureUri; cepThumbnailUri = cepThumbnailUri === VOID ? null : cepThumbnailUri; this.rak_1 = cepUid; this.sak_1 = cepLct; this.tak_1 = cepPictureUri; this.uak_1 = cepThumbnailUri; } protoOf(ContentEntryPicture2).nk4 = function (cepUid, cepLct, cepPictureUri, cepThumbnailUri) { return new ContentEntryPicture2(cepUid, cepLct, cepPictureUri, cepThumbnailUri); }; protoOf(ContentEntryPicture2).ok4 = function (cepUid, cepLct, cepPictureUri, cepThumbnailUri, $super) { cepUid = cepUid === VOID ? this.rak_1 : cepUid; cepLct = cepLct === VOID ? this.sak_1 : cepLct; cepPictureUri = cepPictureUri === VOID ? this.tak_1 : cepPictureUri; cepThumbnailUri = cepThumbnailUri === VOID ? this.uak_1 : cepThumbnailUri; return $super === VOID ? this.nk4(cepUid, cepLct, cepPictureUri, cepThumbnailUri) : $super.nk4.call(this, cepUid, cepLct, cepPictureUri, cepThumbnailUri); }; protoOf(ContentEntryPicture2).toString = function () { return 'ContentEntryPicture2(cepUid=' + this.rak_1.toString() + ', cepLct=' + this.sak_1.toString() + ', cepPictureUri=' + this.tak_1 + ', cepThumbnailUri=' + this.uak_1 + ')'; }; protoOf(ContentEntryPicture2).hashCode = function () { var result = this.rak_1.hashCode(); result = imul(result, 31) + this.sak_1.hashCode() | 0; result = imul(result, 31) + (this.tak_1 == null ? 0 : getStringHashCode(this.tak_1)) | 0; result = imul(result, 31) + (this.uak_1 == null ? 0 : getStringHashCode(this.uak_1)) | 0; return result; }; protoOf(ContentEntryPicture2).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryPicture2)) return false; var tmp0_other_with_cast = other instanceof ContentEntryPicture2 ? other : THROW_CCE(); if (!this.rak_1.equals(tmp0_other_with_cast.rak_1)) return false; if (!this.sak_1.equals(tmp0_other_with_cast.sak_1)) return false; if (!(this.tak_1 == tmp0_other_with_cast.tak_1)) return false; if (!(this.uak_1 == tmp0_other_with_cast.uak_1)) return false; return true; }; function Companion_66() { this.pk4_1 = 8; this.qk4_1 = 1; this.rk4_1 = 2; } var Companion_instance_67; function Companion_getInstance_69() { return Companion_instance_67; } function $serializer_63() { $serializer_instance_63 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryRelatedEntryJoin', this, 10); tmp0_serialDesc.d4g('cerejUid', true); tmp0_serialDesc.d4g('cerejContentEntryUid', true); tmp0_serialDesc.d4g('cerejRelatedEntryUid', true); tmp0_serialDesc.d4g('cerejLastChangedBy', true); tmp0_serialDesc.d4g('relType', true); tmp0_serialDesc.d4g('comment', true); tmp0_serialDesc.d4g('cerejRelLanguageUid', true); tmp0_serialDesc.d4g('cerejLocalChangeSeqNum', true); tmp0_serialDesc.d4g('cerejMasterChangeSeqNum', true); tmp0_serialDesc.d4g('cerejLct', true); this.sk4_1 = tmp0_serialDesc; } protoOf($serializer_63).a45 = function () { return this.sk4_1; }; protoOf($serializer_63).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_63).c45 = function (decoder) { var tmp0_desc = this.sk4_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = 0; var tmp8_local4 = 0; var tmp9_local5 = null; var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = new Long(0, 0); var tmp14_input = decoder.s48(tmp0_desc); if (tmp14_input.h49()) { tmp4_local0 = tmp14_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp14_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp14_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp14_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp14_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp14_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp14_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp14_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp14_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp14_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; } else while (tmp1_flag) { tmp2_index = tmp14_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp14_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp14_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp14_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp14_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp14_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp14_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp14_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp14_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp14_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp14_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp14_input.t48(tmp0_desc); return ContentEntryRelatedEntryJoin_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); }; protoOf($serializer_63).tk4 = function (encoder, value) { var tmp0_desc = this.sk4_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.tbb_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.tbb_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.ubb_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.ubb_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.vbb_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.vbb_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.wbb_1 === 0)) { tmp1_output.b4a(tmp0_desc, 3, value.wbb_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.xbb_1 === 0)) { tmp1_output.b4a(tmp0_desc, 4, value.xbb_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.ybb_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, StringSerializer_getInstance(), value.ybb_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.zbb_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.zbb_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.abc_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.abc_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !value.bbc_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 8, value.bbc_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !value.cbc_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 9, value.cbc_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_63).b45 = function (encoder, value) { return this.tk4(encoder, value instanceof ContentEntryRelatedEntryJoin ? value : THROW_CCE()); }; var $serializer_instance_63; function $serializer_getInstance_63() { if ($serializer_instance_63 == null) new $serializer_63(); return $serializer_instance_63; } function ContentEntryRelatedEntryJoin_init_$Init$(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_63().sk4_1); } if (0 === (seen1 & 1)) $this.tbb_1 = new Long(0, 0); else $this.tbb_1 = cerejUid; if (0 === (seen1 & 2)) $this.ubb_1 = new Long(0, 0); else $this.ubb_1 = cerejContentEntryUid; if (0 === (seen1 & 4)) $this.vbb_1 = new Long(0, 0); else $this.vbb_1 = cerejRelatedEntryUid; if (0 === (seen1 & 8)) $this.wbb_1 = 0; else $this.wbb_1 = cerejLastChangedBy; if (0 === (seen1 & 16)) $this.xbb_1 = 0; else $this.xbb_1 = relType; if (0 === (seen1 & 32)) $this.ybb_1 = null; else $this.ybb_1 = comment; if (0 === (seen1 & 64)) $this.zbb_1 = new Long(0, 0); else $this.zbb_1 = cerejRelLanguageUid; if (0 === (seen1 & 128)) $this.abc_1 = new Long(0, 0); else $this.abc_1 = cerejLocalChangeSeqNum; if (0 === (seen1 & 256)) $this.bbc_1 = new Long(0, 0); else $this.bbc_1 = cerejMasterChangeSeqNum; if (0 === (seen1 & 512)) $this.cbc_1 = new Long(0, 0); else $this.cbc_1 = cerejLct; return $this; } function ContentEntryRelatedEntryJoin_init_$Create$(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, serializationConstructorMarker) { return ContentEntryRelatedEntryJoin_init_$Init$(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, serializationConstructorMarker, objectCreate(protoOf(ContentEntryRelatedEntryJoin))); } function ContentEntryRelatedEntryJoin() { this.tbb_1 = new Long(0, 0); this.ubb_1 = new Long(0, 0); this.vbb_1 = new Long(0, 0); this.wbb_1 = 0; this.xbb_1 = 0; this.ybb_1 = null; this.zbb_1 = new Long(0, 0); this.abc_1 = new Long(0, 0); this.bbc_1 = new Long(0, 0); this.cbc_1 = new Long(0, 0); } protoOf(ContentEntryRelatedEntryJoin).equals = function (other) { if (this === other) return true; var that = (other == null ? true : other instanceof ContentEntryRelatedEntryJoin) ? other : THROW_CCE(); if (!this.tbb_1.equals(ensureNotNull(that).tbb_1)) return false; if (!this.ubb_1.equals(that.ubb_1)) return false; if (!this.vbb_1.equals(that.vbb_1)) return false; if (!(this.xbb_1 === that.xbb_1)) return false; if (!this.zbb_1.equals(that.zbb_1)) return false; return !(this.ybb_1 == null) ? this.ybb_1 == that.ybb_1 : that.ybb_1 == null; }; protoOf(ContentEntryRelatedEntryJoin).hashCode = function () { var result = this.tbb_1.ad(this.tbb_1.xc(32)).nb(); result = imul(31, result) + this.ubb_1.ad(this.ubb_1.xc(32)).nb() | 0; result = imul(31, result) + this.vbb_1.ad(this.vbb_1.xc(32)).nb() | 0; result = imul(31, result) + this.xbb_1 | 0; result = imul(31, result) + (!(this.ybb_1 == null) ? getStringHashCode(ensureNotNull(this.ybb_1)) : 0) | 0; result = imul(31, result) + this.zbb_1.ad(this.zbb_1.xc(32)).nb() | 0; return result; }; function Companion_67() { } var Companion_instance_68; function Companion_getInstance_70() { return Companion_instance_68; } function $serializer_64() { $serializer_instance_64 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryRelatedEntryJoinWithLanguage', this, 11); tmp0_serialDesc.d4g('cerejUid', true); tmp0_serialDesc.d4g('cerejContentEntryUid', true); tmp0_serialDesc.d4g('cerejRelatedEntryUid', true); tmp0_serialDesc.d4g('cerejLastChangedBy', true); tmp0_serialDesc.d4g('relType', true); tmp0_serialDesc.d4g('comment', true); tmp0_serialDesc.d4g('cerejRelLanguageUid', true); tmp0_serialDesc.d4g('cerejLocalChangeSeqNum', true); tmp0_serialDesc.d4g('cerejMasterChangeSeqNum', true); tmp0_serialDesc.d4g('cerejLct', true); tmp0_serialDesc.d4g('language', true); this.uk4_1 = tmp0_serialDesc; } protoOf($serializer_64).a45 = function () { return this.uk4_1; }; protoOf($serializer_64).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_88())]; }; protoOf($serializer_64).c45 = function (decoder) { var tmp0_desc = this.uk4_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = 0; var tmp8_local4 = 0; var tmp9_local5 = null; var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = new Long(0, 0); var tmp14_local10 = null; var tmp15_input = decoder.s48(tmp0_desc); if (tmp15_input.h49()) { tmp4_local0 = tmp15_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.g49(tmp0_desc, 10, $serializer_getInstance_88(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.g49(tmp0_desc, 10, $serializer_getInstance_88(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.t48(tmp0_desc); return ContentEntryRelatedEntryJoinWithLanguage_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); }; protoOf($serializer_64).vk4 = function (encoder, value) { var tmp0_desc = this.uk4_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.tbb_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.tbb_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.ubb_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.ubb_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.vbb_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.vbb_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.wbb_1 === 0)) { tmp1_output.b4a(tmp0_desc, 3, value.wbb_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.xbb_1 === 0)) { tmp1_output.b4a(tmp0_desc, 4, value.xbb_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.ybb_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, StringSerializer_getInstance(), value.ybb_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.zbb_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.zbb_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.abc_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.abc_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !value.bbc_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 8, value.bbc_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !value.cbc_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 9, value.cbc_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !(value.gk5_1 == null)) { tmp1_output.k4a(tmp0_desc, 10, $serializer_getInstance_88(), value.gk5_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_64).b45 = function (encoder, value) { return this.vk4(encoder, value instanceof ContentEntryRelatedEntryJoinWithLanguage ? value : THROW_CCE()); }; var $serializer_instance_64; function $serializer_getInstance_64() { if ($serializer_instance_64 == null) new $serializer_64(); return $serializer_instance_64; } function ContentEntryRelatedEntryJoinWithLanguage_init_$Init$(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, language, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_64().uk4_1); } ContentEntryRelatedEntryJoin_init_$Init$(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, serializationConstructorMarker, $this); if (0 === (seen1 & 1024)) $this.gk5_1 = null; else $this.gk5_1 = language; return $this; } function ContentEntryRelatedEntryJoinWithLanguage_init_$Create$(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, language, serializationConstructorMarker) { return ContentEntryRelatedEntryJoinWithLanguage_init_$Init$(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, language, serializationConstructorMarker, objectCreate(protoOf(ContentEntryRelatedEntryJoinWithLanguage))); } function ContentEntryRelatedEntryJoinWithLanguage() { ContentEntryRelatedEntryJoin.call(this); this.gk5_1 = null; } protoOf(ContentEntryRelatedEntryJoinWithLanguage).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!protoOf(ContentEntryRelatedEntryJoin).equals.call(this, other)) return false; if (!(other instanceof ContentEntryRelatedEntryJoinWithLanguage)) THROW_CCE(); if (!equals(this.gk5_1, other.gk5_1)) return false; return true; }; protoOf(ContentEntryRelatedEntryJoinWithLanguage).hashCode = function () { var result = protoOf(ContentEntryRelatedEntryJoin).hashCode.call(this); var tmp = imul(31, result); var tmp0_safe_receiver = this.gk5_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.hashCode(); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; return result; }; function Companion_68() { } var Companion_instance_69; function Companion_getInstance_71() { return Companion_instance_69; } function $serializer_65() { $serializer_instance_65 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryStatementScoreProgress', this, 10); tmp0_serialDesc.d4g('resultScore', true); tmp0_serialDesc.d4g('resultMax', true); tmp0_serialDesc.d4g('resultScaled', true); tmp0_serialDesc.d4g('resultWeight', true); tmp0_serialDesc.d4g('contentComplete', true); tmp0_serialDesc.d4g('progress', true); tmp0_serialDesc.d4g('success', true); tmp0_serialDesc.d4g('penalty', true); tmp0_serialDesc.d4g('totalContent', true); tmp0_serialDesc.d4g('totalCompletedContent', true); this.hk5_1 = tmp0_serialDesc; } protoOf($serializer_65).a45 = function () { return this.hk5_1; }; protoOf($serializer_65).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance(), IntSerializer_getInstance(), FloatSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), ByteSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; }; protoOf($serializer_65).c45 = function (decoder) { var tmp0_desc = this.hk5_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_local1 = 0; var tmp6_local2 = 0.0; var tmp7_local3 = 0; var tmp8_local4 = false; var tmp9_local5 = 0; var tmp10_local6 = 0; var tmp11_local7 = 0; var tmp12_local8 = 0; var tmp13_local9 = 0; var tmp14_input = decoder.s48(tmp0_desc); if (tmp14_input.h49()) { tmp4_local0 = tmp14_input.x48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp14_input.x48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp14_input.z48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp14_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp14_input.u48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp14_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp14_input.v48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp14_input.x48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp14_input.x48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp14_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; } else while (tmp1_flag) { tmp2_index = tmp14_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp14_input.x48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp14_input.x48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp14_input.z48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp14_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp14_input.u48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp14_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp14_input.v48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp14_input.x48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp14_input.x48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp14_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp14_input.t48(tmp0_desc); return ContentEntryStatementScoreProgress_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); }; protoOf($serializer_65).ik5 = function (encoder, value) { var tmp0_desc = this.hk5_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.jk5_1 === 0)) { tmp1_output.b4a(tmp0_desc, 0, value.jk5_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.kk5_1 === 0)) { tmp1_output.b4a(tmp0_desc, 1, value.kk5_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !equals(value.lk5_1, 0.0)) { tmp1_output.d4a(tmp0_desc, 2, value.lk5_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.mk5_1 === 0)) { tmp1_output.b4a(tmp0_desc, 3, value.mk5_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.nk5_1 === false)) { tmp1_output.y49(tmp0_desc, 4, value.nk5_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.ok5_1 === 0)) { tmp1_output.b4a(tmp0_desc, 5, value.ok5_1); } var tmp; if (tmp1_output.o4a(tmp0_desc, 6)) { tmp = true; } else { var tmp_0 = value.pk5_1; tmp = !(tmp_0 === 0); } if (tmp) { tmp1_output.z49(tmp0_desc, 6, value.pk5_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.qk5_1 === 0)) { tmp1_output.b4a(tmp0_desc, 7, value.qk5_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !(value.rk5_1 === 0)) { tmp1_output.b4a(tmp0_desc, 8, value.rk5_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !(value.sk5_1 === 0)) { tmp1_output.b4a(tmp0_desc, 9, value.sk5_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_65).b45 = function (encoder, value) { return this.ik5(encoder, value instanceof ContentEntryStatementScoreProgress ? value : THROW_CCE()); }; var $serializer_instance_65; function $serializer_getInstance_65() { if ($serializer_instance_65 == null) new $serializer_65(); return $serializer_instance_65; } function ContentEntryStatementScoreProgress_init_$Init$(seen1, resultScore, resultMax, resultScaled, resultWeight, contentComplete, progress, success, penalty, totalContent, totalCompletedContent, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_65().hk5_1); } if (0 === (seen1 & 1)) $this.jk5_1 = 0; else $this.jk5_1 = resultScore; if (0 === (seen1 & 2)) $this.kk5_1 = 0; else $this.kk5_1 = resultMax; if (0 === (seen1 & 4)) $this.lk5_1 = 0.0; else $this.lk5_1 = resultScaled; if (0 === (seen1 & 8)) $this.mk5_1 = 0; else $this.mk5_1 = resultWeight; if (0 === (seen1 & 16)) $this.nk5_1 = false; else $this.nk5_1 = contentComplete; if (0 === (seen1 & 32)) $this.ok5_1 = 0; else $this.ok5_1 = progress; if (0 === (seen1 & 64)) { var tmp = $this; tmp.pk5_1 = 0; } else $this.pk5_1 = success; if (0 === (seen1 & 128)) $this.qk5_1 = 0; else $this.qk5_1 = penalty; if (0 === (seen1 & 256)) $this.rk5_1 = 0; else $this.rk5_1 = totalContent; if (0 === (seen1 & 512)) $this.sk5_1 = 0; else $this.sk5_1 = totalCompletedContent; return $this; } function ContentEntryStatementScoreProgress_init_$Create$(seen1, resultScore, resultMax, resultScaled, resultWeight, contentComplete, progress, success, penalty, totalContent, totalCompletedContent, serializationConstructorMarker) { return ContentEntryStatementScoreProgress_init_$Init$(seen1, resultScore, resultMax, resultScaled, resultWeight, contentComplete, progress, success, penalty, totalContent, totalCompletedContent, serializationConstructorMarker, objectCreate(protoOf(ContentEntryStatementScoreProgress))); } function ContentEntryStatementScoreProgress() { this.jk5_1 = 0; this.kk5_1 = 0; this.lk5_1 = 0.0; this.mk5_1 = 0; this.nk5_1 = false; this.ok5_1 = 0; var tmp = this; tmp.pk5_1 = 0; this.qk5_1 = 0; this.rk5_1 = 0; this.sk5_1 = 0; } protoOf(ContentEntryStatementScoreProgress).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!(other instanceof ContentEntryStatementScoreProgress)) THROW_CCE(); if (!(this.jk5_1 === other.jk5_1)) return false; if (!(this.kk5_1 === other.kk5_1)) return false; if (!(this.lk5_1 === other.lk5_1)) return false; if (!(this.mk5_1 === other.mk5_1)) return false; if (!(this.nk5_1 === other.nk5_1)) return false; if (!(this.ok5_1 === other.ok5_1)) return false; if (!(this.pk5_1 === other.pk5_1)) return false; if (!(this.qk5_1 === other.qk5_1)) return false; if (!(this.rk5_1 === other.rk5_1)) return false; if (!(this.sk5_1 === other.sk5_1)) return false; return true; }; protoOf(ContentEntryStatementScoreProgress).hashCode = function () { var result = this.jk5_1; result = imul(31, result) + this.kk5_1 | 0; result = imul(31, result) + getNumberHashCode(this.lk5_1) | 0; result = imul(31, result) + this.mk5_1 | 0; result = imul(31, result) + getBooleanHashCode(this.nk5_1) | 0; result = imul(31, result) + this.ok5_1 | 0; result = imul(31, result) + this.pk5_1 | 0; result = imul(31, result) + this.qk5_1 | 0; result = imul(31, result) + this.rk5_1 | 0; result = imul(31, result) + this.sk5_1 | 0; return result; }; function Companion_69() { this.tk5_1 = 'epub'; this.uk5_1 = 'video'; this.vk5_1 = 'pdf'; this.wk5_1 = 'xapi'; this.xk5_1 = 'api/content/'; this.yk5_1 = 738; this.zk5_1 = '\n SELECT OfflineItem.oiUid\n FROM OfflineItem\n WHERE OfflineItem.oiContentEntryUid = NEW.cevContentEntryUid\n AND CAST(OfflineItem.oiActive AS INTEGER) = 1\n AND OfflineItem.oiNodeId = \n (SELECT COALESCE(\n (SELECT nodeClientId \n FROM SyncNode \n LIMIT 1), 0))\n \n '; } var Companion_instance_70; function Companion_getInstance_72() { return Companion_instance_70; } function $serializer_66() { $serializer_instance_66 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryVersion', this, 11); tmp0_serialDesc.d4g('cevUid', true); tmp0_serialDesc.d4g('cevContentEntryUid', true); tmp0_serialDesc.d4g('cevOpenUri', true); tmp0_serialDesc.d4g('cevContentType', true); tmp0_serialDesc.d4g('cevManifestUrl', true); tmp0_serialDesc.d4g('cevSize', true); tmp0_serialDesc.d4g('cevInActive', true); tmp0_serialDesc.d4g('cevLastModified', true); tmp0_serialDesc.d4g('cevLct', true); tmp0_serialDesc.d4g('cevStorageSize', true); tmp0_serialDesc.d4g('cevOriginalSize', true); this.ak6_1 = tmp0_serialDesc; } protoOf($serializer_66).a45 = function () { return this.ak6_1; }; protoOf($serializer_66).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_66).c45 = function (decoder) { var tmp0_desc = this.ak6_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = new Long(0, 0); var tmp10_local6 = false; var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = new Long(0, 0); var tmp14_local10 = new Long(0, 0); var tmp15_input = decoder.s48(tmp0_desc); if (tmp15_input.h49()) { tmp4_local0 = tmp15_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.t48(tmp0_desc); return ContentEntryVersion_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); }; protoOf($serializer_66).bk6 = function (encoder, value) { var tmp0_desc = this.ak6_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.zak_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.zak_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.aal_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.aal_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.bal_1 === '')) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.bal_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.cal_1 === '')) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.cal_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.dal_1 == null)) { tmp1_output.k4a(tmp0_desc, 4, StringSerializer_getInstance(), value.dal_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.eal_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.eal_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.fal_1 === false)) { tmp1_output.y49(tmp0_desc, 6, value.fal_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.gal_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.gal_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !value.hal_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 8, value.hal_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !value.ial_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 9, value.ial_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !value.jal_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 10, value.jal_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_66).b45 = function (encoder, value) { return this.bk6(encoder, value instanceof ContentEntryVersion ? value : THROW_CCE()); }; var $serializer_instance_66; function $serializer_getInstance_66() { if ($serializer_instance_66 == null) new $serializer_66(); return $serializer_instance_66; } function ContentEntryVersion_init_$Init$(seen1, cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_66().ak6_1); } if (0 === (seen1 & 1)) $this.zak_1 = new Long(0, 0); else $this.zak_1 = cevUid; if (0 === (seen1 & 2)) $this.aal_1 = new Long(0, 0); else $this.aal_1 = cevContentEntryUid; if (0 === (seen1 & 4)) $this.bal_1 = ''; else $this.bal_1 = cevOpenUri; if (0 === (seen1 & 8)) $this.cal_1 = ''; else $this.cal_1 = cevContentType; if (0 === (seen1 & 16)) $this.dal_1 = null; else $this.dal_1 = cevManifestUrl; if (0 === (seen1 & 32)) $this.eal_1 = new Long(0, 0); else $this.eal_1 = cevSize; if (0 === (seen1 & 64)) $this.fal_1 = false; else $this.fal_1 = cevInActive; if (0 === (seen1 & 128)) $this.gal_1 = new Long(0, 0); else $this.gal_1 = cevLastModified; if (0 === (seen1 & 256)) $this.hal_1 = new Long(0, 0); else $this.hal_1 = cevLct; if (0 === (seen1 & 512)) $this.ial_1 = new Long(0, 0); else $this.ial_1 = cevStorageSize; if (0 === (seen1 & 1024)) $this.jal_1 = new Long(0, 0); else $this.jal_1 = cevOriginalSize; return $this; } function ContentEntryVersion_init_$Create$(seen1, cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize, serializationConstructorMarker) { return ContentEntryVersion_init_$Init$(seen1, cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize, serializationConstructorMarker, objectCreate(protoOf(ContentEntryVersion))); } function ContentEntryVersion(cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize) { cevUid = cevUid === VOID ? new Long(0, 0) : cevUid; cevContentEntryUid = cevContentEntryUid === VOID ? new Long(0, 0) : cevContentEntryUid; cevOpenUri = cevOpenUri === VOID ? '' : cevOpenUri; cevContentType = cevContentType === VOID ? '' : cevContentType; cevManifestUrl = cevManifestUrl === VOID ? null : cevManifestUrl; cevSize = cevSize === VOID ? new Long(0, 0) : cevSize; cevInActive = cevInActive === VOID ? false : cevInActive; cevLastModified = cevLastModified === VOID ? new Long(0, 0) : cevLastModified; cevLct = cevLct === VOID ? new Long(0, 0) : cevLct; cevStorageSize = cevStorageSize === VOID ? new Long(0, 0) : cevStorageSize; cevOriginalSize = cevOriginalSize === VOID ? new Long(0, 0) : cevOriginalSize; this.zak_1 = cevUid; this.aal_1 = cevContentEntryUid; this.bal_1 = cevOpenUri; this.cal_1 = cevContentType; this.dal_1 = cevManifestUrl; this.eal_1 = cevSize; this.fal_1 = cevInActive; this.gal_1 = cevLastModified; this.hal_1 = cevLct; this.ial_1 = cevStorageSize; this.jal_1 = cevOriginalSize; } protoOf(ContentEntryVersion).toString = function () { return 'ContentEntryVersion(cevUid=' + this.zak_1.toString() + ', cevContentEntryUid=' + this.aal_1.toString() + ', cevOpenUri=' + this.bal_1 + ', cevContentType=' + this.cal_1 + ', cevManifestUrl=' + this.dal_1 + ', cevSize=' + this.eal_1.toString() + ', cevInActive=' + this.fal_1 + ', cevLastModified=' + this.gal_1.toString() + ', cevLct=' + this.hal_1.toString() + ', cevStorageSize=' + this.ial_1.toString() + ', cevOriginalSize=' + this.jal_1.toString() + ')'; }; protoOf(ContentEntryVersion).hashCode = function () { var result = this.zak_1.hashCode(); result = imul(result, 31) + this.aal_1.hashCode() | 0; result = imul(result, 31) + (this.bal_1 == null ? 0 : getStringHashCode(this.bal_1)) | 0; result = imul(result, 31) + (this.cal_1 == null ? 0 : getStringHashCode(this.cal_1)) | 0; result = imul(result, 31) + (this.dal_1 == null ? 0 : getStringHashCode(this.dal_1)) | 0; result = imul(result, 31) + this.eal_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.fal_1) | 0; result = imul(result, 31) + this.gal_1.hashCode() | 0; result = imul(result, 31) + this.hal_1.hashCode() | 0; result = imul(result, 31) + this.ial_1.hashCode() | 0; result = imul(result, 31) + this.jal_1.hashCode() | 0; return result; }; protoOf(ContentEntryVersion).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryVersion)) return false; var tmp0_other_with_cast = other instanceof ContentEntryVersion ? other : THROW_CCE(); if (!this.zak_1.equals(tmp0_other_with_cast.zak_1)) return false; if (!this.aal_1.equals(tmp0_other_with_cast.aal_1)) return false; if (!(this.bal_1 == tmp0_other_with_cast.bal_1)) return false; if (!(this.cal_1 == tmp0_other_with_cast.cal_1)) return false; if (!(this.dal_1 == tmp0_other_with_cast.dal_1)) return false; if (!this.eal_1.equals(tmp0_other_with_cast.eal_1)) return false; if (!(this.fal_1 === tmp0_other_with_cast.fal_1)) return false; if (!this.gal_1.equals(tmp0_other_with_cast.gal_1)) return false; if (!this.hal_1.equals(tmp0_other_with_cast.hal_1)) return false; if (!this.ial_1.equals(tmp0_other_with_cast.ial_1)) return false; if (!this.jal_1.equals(tmp0_other_with_cast.jal_1)) return false; return true; }; function Companion_70() { } var Companion_instance_71; function Companion_getInstance_73() { return Companion_instance_71; } function $serializer_67() { $serializer_instance_67 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryWithLanguage', this, 28); tmp0_serialDesc.d4g('contentEntryUid', true); tmp0_serialDesc.d4g('title', true); tmp0_serialDesc.d4g('description', true); tmp0_serialDesc.d4g('entryId', true); tmp0_serialDesc.d4g('author', true); tmp0_serialDesc.d4g('publisher', true); tmp0_serialDesc.d4g('licenseType', true); tmp0_serialDesc.d4g('licenseName', true); tmp0_serialDesc.d4g('licenseUrl', true); tmp0_serialDesc.d4g('sourceUrl', true); tmp0_serialDesc.d4g('thumbnailUrl', true); tmp0_serialDesc.d4g('lastModified', true); tmp0_serialDesc.d4g('primaryLanguageUid', true); tmp0_serialDesc.d4g('languageVariantUid', true); tmp0_serialDesc.d4g('contentFlags', true); tmp0_serialDesc.d4g('leaf', true); tmp0_serialDesc.d4g('publik', true); tmp0_serialDesc.d4g('ceInactive', true); tmp0_serialDesc.d4g('completionCriteria', true); tmp0_serialDesc.d4g('minScore', true); tmp0_serialDesc.d4g('contentTypeFlag', true); tmp0_serialDesc.d4g('contentOwner', true); tmp0_serialDesc.d4g('contentOwnerType', true); tmp0_serialDesc.d4g('contentEntryLocalChangeSeqNum', true); tmp0_serialDesc.d4g('contentEntryMasterChangeSeqNum', true); tmp0_serialDesc.d4g('contentEntryLastChangedBy', true); tmp0_serialDesc.d4g('contentEntryLct', true); tmp0_serialDesc.d4g('language', true); this.ck6_1 = tmp0_serialDesc; } protoOf($serializer_67).a45 = function () { return this.ck6_1; }; protoOf($serializer_67).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_88())]; }; protoOf($serializer_67).c45 = function (decoder) { var tmp0_desc = this.ck6_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = 0; var tmp11_local7 = null; var tmp12_local8 = null; var tmp13_local9 = null; var tmp14_local10 = null; var tmp15_local11 = new Long(0, 0); var tmp16_local12 = new Long(0, 0); var tmp17_local13 = new Long(0, 0); var tmp18_local14 = 0; var tmp19_local15 = false; var tmp20_local16 = false; var tmp21_local17 = false; var tmp22_local18 = 0; var tmp23_local19 = 0; var tmp24_local20 = 0; var tmp25_local21 = new Long(0, 0); var tmp26_local22 = 0; var tmp27_local23 = new Long(0, 0); var tmp28_local24 = new Long(0, 0); var tmp29_local25 = 0; var tmp30_local26 = new Long(0, 0); var tmp31_local27 = null; var tmp32_input = decoder.s48(tmp0_desc); if (tmp32_input.h49()) { tmp4_local0 = tmp32_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp32_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp32_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp32_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp32_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp32_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp32_input.x48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp32_input.g49(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp32_input.g49(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp32_input.g49(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp32_input.g49(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp32_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp32_input.y48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp32_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp32_input.x48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp32_input.u48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp32_input.u48(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp32_input.u48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp22_local18 = tmp32_input.x48(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp23_local19 = tmp32_input.x48(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; tmp24_local20 = tmp32_input.x48(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; tmp25_local21 = tmp32_input.y48(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; tmp26_local22 = tmp32_input.x48(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; tmp27_local23 = tmp32_input.y48(tmp0_desc, 23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; tmp28_local24 = tmp32_input.y48(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; tmp29_local25 = tmp32_input.x48(tmp0_desc, 25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; tmp30_local26 = tmp32_input.y48(tmp0_desc, 26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; tmp31_local27 = tmp32_input.g49(tmp0_desc, 27, $serializer_getInstance_88(), tmp31_local27); tmp3_bitMask0 = tmp3_bitMask0 | 134217728; } else while (tmp1_flag) { tmp2_index = tmp32_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp32_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp32_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp32_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp32_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp32_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp32_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp32_input.x48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp32_input.g49(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp32_input.g49(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp32_input.g49(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp32_input.g49(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp32_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp32_input.y48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp32_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp32_input.x48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp32_input.u48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp32_input.u48(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp32_input.u48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp22_local18 = tmp32_input.x48(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp23_local19 = tmp32_input.x48(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; case 20: tmp24_local20 = tmp32_input.x48(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; break; case 21: tmp25_local21 = tmp32_input.y48(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; break; case 22: tmp26_local22 = tmp32_input.x48(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; break; case 23: tmp27_local23 = tmp32_input.y48(tmp0_desc, 23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; break; case 24: tmp28_local24 = tmp32_input.y48(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; break; case 25: tmp29_local25 = tmp32_input.x48(tmp0_desc, 25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; break; case 26: tmp30_local26 = tmp32_input.y48(tmp0_desc, 26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; break; case 27: tmp31_local27 = tmp32_input.g49(tmp0_desc, 27, $serializer_getInstance_88(), tmp31_local27); tmp3_bitMask0 = tmp3_bitMask0 | 134217728; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp32_input.t48(tmp0_desc); return ContentEntryWithLanguage_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, tmp28_local24, tmp29_local25, tmp30_local26, tmp31_local27, null); }; protoOf($serializer_67).dk6 = function (encoder, value) { var tmp0_desc = this.ck6_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.baj_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.baj_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.caj_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.caj_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.daj_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.daj_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.eaj_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.eaj_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.faj_1 == null)) { tmp1_output.k4a(tmp0_desc, 4, StringSerializer_getInstance(), value.faj_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.gaj_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, StringSerializer_getInstance(), value.gaj_1); } var tmp; if (tmp1_output.o4a(tmp0_desc, 6)) { tmp = true; } else { var tmp_0 = value.haj_1; tmp = !(tmp_0 === 0); } if (tmp) { tmp1_output.b4a(tmp0_desc, 6, value.haj_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.iaj_1 == null)) { tmp1_output.k4a(tmp0_desc, 7, StringSerializer_getInstance(), value.iaj_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !(value.jaj_1 == null)) { tmp1_output.k4a(tmp0_desc, 8, StringSerializer_getInstance(), value.jaj_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !(value.kaj_1 == null)) { tmp1_output.k4a(tmp0_desc, 9, StringSerializer_getInstance(), value.kaj_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !(value.laj_1 == null)) { tmp1_output.k4a(tmp0_desc, 10, StringSerializer_getInstance(), value.laj_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !value.maj_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 11, value.maj_1); } if (tmp1_output.o4a(tmp0_desc, 12) ? true : !value.naj_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 12, value.naj_1); } if (tmp1_output.o4a(tmp0_desc, 13) ? true : !value.oaj_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 13, value.oaj_1); } if (tmp1_output.o4a(tmp0_desc, 14) ? true : !(value.paj_1 === 0)) { tmp1_output.b4a(tmp0_desc, 14, value.paj_1); } if (tmp1_output.o4a(tmp0_desc, 15) ? true : !(value.qaj_1 === false)) { tmp1_output.y49(tmp0_desc, 15, value.qaj_1); } if (tmp1_output.o4a(tmp0_desc, 16) ? true : !(value.raj_1 === true)) { tmp1_output.y49(tmp0_desc, 16, value.raj_1); } if (tmp1_output.o4a(tmp0_desc, 17) ? true : !(value.saj_1 === false)) { tmp1_output.y49(tmp0_desc, 17, value.saj_1); } var tmp_1; if (tmp1_output.o4a(tmp0_desc, 18)) { tmp_1 = true; } else { var tmp_2 = value.taj_1; tmp_1 = !(tmp_2 === 0); } if (tmp_1) { tmp1_output.b4a(tmp0_desc, 18, value.taj_1); } if (tmp1_output.o4a(tmp0_desc, 19) ? true : !(value.uaj_1 === 0)) { tmp1_output.b4a(tmp0_desc, 19, value.uaj_1); } if (tmp1_output.o4a(tmp0_desc, 20) ? true : !(value.vaj_1 === 0)) { tmp1_output.b4a(tmp0_desc, 20, value.vaj_1); } if (tmp1_output.o4a(tmp0_desc, 21) ? true : !value.waj_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 21, value.waj_1); } if (tmp1_output.o4a(tmp0_desc, 22) ? true : !(value.xaj_1 === 0)) { tmp1_output.b4a(tmp0_desc, 22, value.xaj_1); } if (tmp1_output.o4a(tmp0_desc, 23) ? true : !value.yaj_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 23, value.yaj_1); } if (tmp1_output.o4a(tmp0_desc, 24) ? true : !value.zaj_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 24, value.zaj_1); } if (tmp1_output.o4a(tmp0_desc, 25) ? true : !(value.aak_1 === 0)) { tmp1_output.b4a(tmp0_desc, 25, value.aak_1); } if (tmp1_output.o4a(tmp0_desc, 26) ? true : !value.bak_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 26, value.bak_1); } if (tmp1_output.o4a(tmp0_desc, 27) ? true : !(value.fk7_1 == null)) { tmp1_output.k4a(tmp0_desc, 27, $serializer_getInstance_88(), value.fk7_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_67).b45 = function (encoder, value) { return this.dk6(encoder, value instanceof ContentEntryWithLanguage ? value : THROW_CCE()); }; var $serializer_instance_67; function $serializer_getInstance_67() { if ($serializer_instance_67 == null) new $serializer_67(); return $serializer_instance_67; } function ContentEntryWithLanguage_init_$Init$(seen1, contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct, language, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_67().ck6_1); } ContentEntry_init_$Init$(seen1, contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct, serializationConstructorMarker, $this); if (0 === (seen1 & 134217728)) $this.fk7_1 = null; else $this.fk7_1 = language; return $this; } function ContentEntryWithLanguage_init_$Create$(seen1, contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct, language, serializationConstructorMarker) { return ContentEntryWithLanguage_init_$Init$(seen1, contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct, language, serializationConstructorMarker, objectCreate(protoOf(ContentEntryWithLanguage))); } function ContentEntryWithLanguage() { ContentEntry.call(this); this.fk7_1 = null; } function Companion_71() { this.gk7_1 = 702; } var Companion_instance_72; function Companion_getInstance_74() { return Companion_instance_72; } function $serializer_68() { $serializer_instance_68 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentJob', this, 8); tmp0_serialDesc.d4g('cjUid', true); tmp0_serialDesc.d4g('toUri', true); tmp0_serialDesc.d4g('cjProgress', true); tmp0_serialDesc.d4g('cjTotal', true); tmp0_serialDesc.d4g('cjNotificationTitle', true); tmp0_serialDesc.d4g('cjIsMeteredAllowed', true); tmp0_serialDesc.d4g('params', true); tmp0_serialDesc.d4g('cjLct', true); this.hk7_1 = tmp0_serialDesc; } protoOf($serializer_68).a45 = function () { return this.hk7_1; }; protoOf($serializer_68).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()]; }; protoOf($serializer_68).c45 = function (decoder) { var tmp0_desc = this.hk7_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = null; var tmp9_local5 = false; var tmp10_local6 = null; var tmp11_local7 = new Long(0, 0); var tmp12_input = decoder.s48(tmp0_desc); if (tmp12_input.h49()) { tmp4_local0 = tmp12_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.u48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.g49(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.u48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.g49(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.t48(tmp0_desc); return ContentJob_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_68).ik7 = function (encoder, value) { var tmp0_desc = this.hk7_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.jk7_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.jk7_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.kk7_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.kk7_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.lk7_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.lk7_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.mk7_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.mk7_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.nk7_1 == null)) { tmp1_output.k4a(tmp0_desc, 4, StringSerializer_getInstance(), value.nk7_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.ok7_1 === false)) { tmp1_output.y49(tmp0_desc, 5, value.ok7_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.pk7_1 == null)) { tmp1_output.k4a(tmp0_desc, 6, StringSerializer_getInstance(), value.pk7_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.qk7_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.qk7_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_68).b45 = function (encoder, value) { return this.ik7(encoder, value instanceof ContentJob ? value : THROW_CCE()); }; var $serializer_instance_68; function $serializer_getInstance_68() { if ($serializer_instance_68 == null) new $serializer_68(); return $serializer_instance_68; } function ContentJob_init_$Init$(seen1, cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_68().hk7_1); } if (0 === (seen1 & 1)) $this.jk7_1 = new Long(0, 0); else $this.jk7_1 = cjUid; if (0 === (seen1 & 2)) $this.kk7_1 = null; else $this.kk7_1 = toUri; if (0 === (seen1 & 4)) $this.lk7_1 = new Long(0, 0); else $this.lk7_1 = cjProgress; if (0 === (seen1 & 8)) $this.mk7_1 = new Long(0, 0); else $this.mk7_1 = cjTotal; if (0 === (seen1 & 16)) $this.nk7_1 = null; else $this.nk7_1 = cjNotificationTitle; if (0 === (seen1 & 32)) $this.ok7_1 = false; else $this.ok7_1 = cjIsMeteredAllowed; if (0 === (seen1 & 64)) $this.pk7_1 = null; else $this.pk7_1 = params; if (0 === (seen1 & 128)) $this.qk7_1 = new Long(0, 0); else $this.qk7_1 = cjLct; return $this; } function ContentJob_init_$Create$(seen1, cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct, serializationConstructorMarker) { return ContentJob_init_$Init$(seen1, cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct, serializationConstructorMarker, objectCreate(protoOf(ContentJob))); } function ContentJob(cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct) { cjUid = cjUid === VOID ? new Long(0, 0) : cjUid; toUri = toUri === VOID ? null : toUri; cjProgress = cjProgress === VOID ? new Long(0, 0) : cjProgress; cjTotal = cjTotal === VOID ? new Long(0, 0) : cjTotal; cjNotificationTitle = cjNotificationTitle === VOID ? null : cjNotificationTitle; cjIsMeteredAllowed = cjIsMeteredAllowed === VOID ? false : cjIsMeteredAllowed; params = params === VOID ? null : params; cjLct = cjLct === VOID ? new Long(0, 0) : cjLct; this.jk7_1 = cjUid; this.kk7_1 = toUri; this.lk7_1 = cjProgress; this.mk7_1 = cjTotal; this.nk7_1 = cjNotificationTitle; this.ok7_1 = cjIsMeteredAllowed; this.pk7_1 = params; this.qk7_1 = cjLct; } protoOf(ContentJob).toString = function () { return 'ContentJob(cjUid=' + this.jk7_1.toString() + ', toUri=' + this.kk7_1 + ', cjProgress=' + this.lk7_1.toString() + ', cjTotal=' + this.mk7_1.toString() + ', cjNotificationTitle=' + this.nk7_1 + ', cjIsMeteredAllowed=' + this.ok7_1 + ', params=' + this.pk7_1 + ', cjLct=' + this.qk7_1.toString() + ')'; }; protoOf(ContentJob).hashCode = function () { var result = this.jk7_1.hashCode(); result = imul(result, 31) + (this.kk7_1 == null ? 0 : getStringHashCode(this.kk7_1)) | 0; result = imul(result, 31) + this.lk7_1.hashCode() | 0; result = imul(result, 31) + this.mk7_1.hashCode() | 0; result = imul(result, 31) + (this.nk7_1 == null ? 0 : getStringHashCode(this.nk7_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.ok7_1) | 0; result = imul(result, 31) + (this.pk7_1 == null ? 0 : getStringHashCode(this.pk7_1)) | 0; result = imul(result, 31) + this.qk7_1.hashCode() | 0; return result; }; protoOf(ContentJob).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentJob)) return false; var tmp0_other_with_cast = other instanceof ContentJob ? other : THROW_CCE(); if (!this.jk7_1.equals(tmp0_other_with_cast.jk7_1)) return false; if (!(this.kk7_1 == tmp0_other_with_cast.kk7_1)) return false; if (!this.lk7_1.equals(tmp0_other_with_cast.lk7_1)) return false; if (!this.mk7_1.equals(tmp0_other_with_cast.mk7_1)) return false; if (!(this.nk7_1 == tmp0_other_with_cast.nk7_1)) return false; if (!(this.ok7_1 === tmp0_other_with_cast.ok7_1)) return false; if (!(this.pk7_1 == tmp0_other_with_cast.pk7_1)) return false; if (!this.qk7_1.equals(tmp0_other_with_cast.qk7_1)) return false; return true; }; function Companion_72() { this.rk7_1 = 523; } var Companion_instance_73; function Companion_getInstance_75() { return Companion_instance_73; } function $serializer_69() { $serializer_instance_69 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseAssignmentMark', this, 11); tmp0_serialDesc.d4g('camUid', true); tmp0_serialDesc.d4g('camAssignmentUid', true); tmp0_serialDesc.d4g('camSubmitterUid', true); tmp0_serialDesc.d4g('camMarkerSubmitterUid', true); tmp0_serialDesc.d4g('camMarkerPersonUid', true); tmp0_serialDesc.d4g('camMarkerComment', true); tmp0_serialDesc.d4g('camMark', true); tmp0_serialDesc.d4g('camMaxMark', true); tmp0_serialDesc.d4g('camPenalty', true); tmp0_serialDesc.d4g('camLct', true); tmp0_serialDesc.d4g('camClazzUid', true); this.sk7_1 = tmp0_serialDesc; } protoOf($serializer_69).a45 = function () { return this.sk7_1; }; protoOf($serializer_69).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), FloatSerializer_getInstance(), FloatSerializer_getInstance(), FloatSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_69).c45 = function (decoder) { var tmp0_desc = this.sk7_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = null; var tmp10_local6 = 0.0; var tmp11_local7 = 0.0; var tmp12_local8 = 0.0; var tmp13_local9 = new Long(0, 0); var tmp14_local10 = new Long(0, 0); var tmp15_input = decoder.s48(tmp0_desc); if (tmp15_input.h49()) { tmp4_local0 = tmp15_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.z48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.z48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.z48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.z48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.z48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.z48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.t48(tmp0_desc); return CourseAssignmentMark_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); }; protoOf($serializer_69).tk7 = function (encoder, value) { var tmp0_desc = this.sk7_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.tbj_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.tbj_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.ubj_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.ubj_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.vbj_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.vbj_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.wbj_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.wbj_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.xbj_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.xbj_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.ybj_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, StringSerializer_getInstance(), value.ybj_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !equals(value.zbj_1, 0.0)) { tmp1_output.d4a(tmp0_desc, 6, value.zbj_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !equals(value.abk_1, 1.0)) { tmp1_output.d4a(tmp0_desc, 7, value.abk_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !equals(value.bbk_1, 0.0)) { tmp1_output.d4a(tmp0_desc, 8, value.bbk_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !value.cbk_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 9, value.cbk_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !value.dbk_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 10, value.dbk_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_69).b45 = function (encoder, value) { return this.tk7(encoder, value instanceof CourseAssignmentMark ? value : THROW_CCE()); }; var $serializer_instance_69; function $serializer_getInstance_69() { if ($serializer_instance_69 == null) new $serializer_69(); return $serializer_instance_69; } function CourseAssignmentMark_init_$Init$(seen1, camUid, camAssignmentUid, camSubmitterUid, camMarkerSubmitterUid, camMarkerPersonUid, camMarkerComment, camMark, camMaxMark, camPenalty, camLct, camClazzUid, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_69().sk7_1); } if (0 === (seen1 & 1)) $this.tbj_1 = new Long(0, 0); else $this.tbj_1 = camUid; if (0 === (seen1 & 2)) $this.ubj_1 = new Long(0, 0); else $this.ubj_1 = camAssignmentUid; if (0 === (seen1 & 4)) $this.vbj_1 = new Long(0, 0); else $this.vbj_1 = camSubmitterUid; if (0 === (seen1 & 8)) $this.wbj_1 = new Long(0, 0); else $this.wbj_1 = camMarkerSubmitterUid; if (0 === (seen1 & 16)) $this.xbj_1 = new Long(0, 0); else $this.xbj_1 = camMarkerPersonUid; if (0 === (seen1 & 32)) $this.ybj_1 = null; else $this.ybj_1 = camMarkerComment; if (0 === (seen1 & 64)) $this.zbj_1 = 0.0; else $this.zbj_1 = camMark; if (0 === (seen1 & 128)) $this.abk_1 = 1.0; else $this.abk_1 = camMaxMark; if (0 === (seen1 & 256)) $this.bbk_1 = 0.0; else $this.bbk_1 = camPenalty; if (0 === (seen1 & 512)) $this.cbk_1 = new Long(0, 0); else $this.cbk_1 = camLct; if (0 === (seen1 & 1024)) $this.dbk_1 = new Long(0, 0); else $this.dbk_1 = camClazzUid; return $this; } function CourseAssignmentMark_init_$Create$(seen1, camUid, camAssignmentUid, camSubmitterUid, camMarkerSubmitterUid, camMarkerPersonUid, camMarkerComment, camMark, camMaxMark, camPenalty, camLct, camClazzUid, serializationConstructorMarker) { return CourseAssignmentMark_init_$Init$(seen1, camUid, camAssignmentUid, camSubmitterUid, camMarkerSubmitterUid, camMarkerPersonUid, camMarkerComment, camMark, camMaxMark, camPenalty, camLct, camClazzUid, serializationConstructorMarker, objectCreate(protoOf(CourseAssignmentMark))); } function CourseAssignmentMark() { this.tbj_1 = new Long(0, 0); this.ubj_1 = new Long(0, 0); this.vbj_1 = new Long(0, 0); this.wbj_1 = new Long(0, 0); this.xbj_1 = new Long(0, 0); this.ybj_1 = null; this.zbj_1 = 0.0; this.abk_1 = 1.0; this.bbk_1 = 0.0; this.cbk_1 = new Long(0, 0); this.dbk_1 = new Long(0, 0); } function Companion_73() { Companion_instance_74 = this; this.uk7_1 = 522; this.vk7_1 = new Long(-1, -1); this.wk7_1 = 1; this.xk7_1 = 2; this.yk7_1 = 0; this.zk7_1 = 1; this.ak8_1 = 2; this.bk8_1 = 10000; } protoOf(Companion_73).x4r = function () { return $serializer_getInstance_70(); }; var Companion_instance_74; function Companion_getInstance_76() { if (Companion_instance_74 == null) new Companion_73(); return Companion_instance_74; } function $serializer_70() { $serializer_instance_70 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseAssignmentSubmission', this, 8); tmp0_serialDesc.d4g('casUid', true); tmp0_serialDesc.d4g('casAssignmentUid', true); tmp0_serialDesc.d4g('casSubmitterUid', true); tmp0_serialDesc.d4g('casSubmitterPersonUid', true); tmp0_serialDesc.d4g('casText', true); tmp0_serialDesc.d4g('casType', true); tmp0_serialDesc.d4g('casTimestamp', true); tmp0_serialDesc.d4g('casClazzUid', true); this.ck8_1 = tmp0_serialDesc; } protoOf($serializer_70).a45 = function () { return this.ck8_1; }; protoOf($serializer_70).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_70).c45 = function (decoder) { var tmp0_desc = this.ck8_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = null; var tmp9_local5 = 0; var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_input = decoder.s48(tmp0_desc); if (tmp12_input.h49()) { tmp4_local0 = tmp12_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.t48(tmp0_desc); return CourseAssignmentSubmission_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_70).dk8 = function (encoder, value) { var tmp0_desc = this.ck8_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.ybp_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.ybp_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.zbp_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.zbp_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.abq_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.abq_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.bbq_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.bbq_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.cbq_1 == null)) { tmp1_output.k4a(tmp0_desc, 4, StringSerializer_getInstance(), value.cbq_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.dbq_1 === 0)) { tmp1_output.b4a(tmp0_desc, 5, value.dbq_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.ebq_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.ebq_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.fbq_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.fbq_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_70).b45 = function (encoder, value) { return this.dk8(encoder, value instanceof CourseAssignmentSubmission ? value : THROW_CCE()); }; var $serializer_instance_70; function $serializer_getInstance_70() { if ($serializer_instance_70 == null) new $serializer_70(); return $serializer_instance_70; } function CourseAssignmentSubmission_init_$Init$(seen1, casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_70().ck8_1); } if (0 === (seen1 & 1)) $this.ybp_1 = new Long(0, 0); else $this.ybp_1 = casUid; if (0 === (seen1 & 2)) $this.zbp_1 = new Long(0, 0); else $this.zbp_1 = casAssignmentUid; if (0 === (seen1 & 4)) $this.abq_1 = new Long(0, 0); else $this.abq_1 = casSubmitterUid; if (0 === (seen1 & 8)) $this.bbq_1 = new Long(0, 0); else $this.bbq_1 = casSubmitterPersonUid; if (0 === (seen1 & 16)) $this.cbq_1 = null; else $this.cbq_1 = casText; if (0 === (seen1 & 32)) $this.dbq_1 = 0; else $this.dbq_1 = casType; if (0 === (seen1 & 64)) $this.ebq_1 = new Long(0, 0); else $this.ebq_1 = casTimestamp; if (0 === (seen1 & 128)) $this.fbq_1 = new Long(0, 0); else $this.fbq_1 = casClazzUid; return $this; } function CourseAssignmentSubmission_init_$Create$(seen1, casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid, serializationConstructorMarker) { return CourseAssignmentSubmission_init_$Init$(seen1, casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid, serializationConstructorMarker, objectCreate(protoOf(CourseAssignmentSubmission))); } function CourseAssignmentSubmission(casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid) { Companion_getInstance_76(); casUid = casUid === VOID ? new Long(0, 0) : casUid; casAssignmentUid = casAssignmentUid === VOID ? new Long(0, 0) : casAssignmentUid; casSubmitterUid = casSubmitterUid === VOID ? new Long(0, 0) : casSubmitterUid; casSubmitterPersonUid = casSubmitterPersonUid === VOID ? new Long(0, 0) : casSubmitterPersonUid; casText = casText === VOID ? null : casText; casType = casType === VOID ? 0 : casType; casTimestamp = casTimestamp === VOID ? new Long(0, 0) : casTimestamp; casClazzUid = casClazzUid === VOID ? new Long(0, 0) : casClazzUid; this.ybp_1 = casUid; this.zbp_1 = casAssignmentUid; this.abq_1 = casSubmitterUid; this.bbq_1 = casSubmitterPersonUid; this.cbq_1 = casText; this.dbq_1 = casType; this.ebq_1 = casTimestamp; this.fbq_1 = casClazzUid; } protoOf(CourseAssignmentSubmission).toString = function () { return 'CourseAssignmentSubmission(casUid=' + this.ybp_1.toString() + ', casAssignmentUid=' + this.zbp_1.toString() + ', casSubmitterUid=' + this.abq_1.toString() + ', casSubmitterPersonUid=' + this.bbq_1.toString() + ', casText=' + this.cbq_1 + ', casType=' + this.dbq_1 + ', casTimestamp=' + this.ebq_1.toString() + ', casClazzUid=' + this.fbq_1.toString() + ')'; }; protoOf(CourseAssignmentSubmission).hashCode = function () { var result = this.ybp_1.hashCode(); result = imul(result, 31) + this.zbp_1.hashCode() | 0; result = imul(result, 31) + this.abq_1.hashCode() | 0; result = imul(result, 31) + this.bbq_1.hashCode() | 0; result = imul(result, 31) + (this.cbq_1 == null ? 0 : getStringHashCode(this.cbq_1)) | 0; result = imul(result, 31) + this.dbq_1 | 0; result = imul(result, 31) + this.ebq_1.hashCode() | 0; result = imul(result, 31) + this.fbq_1.hashCode() | 0; return result; }; protoOf(CourseAssignmentSubmission).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseAssignmentSubmission)) return false; var tmp0_other_with_cast = other instanceof CourseAssignmentSubmission ? other : THROW_CCE(); if (!this.ybp_1.equals(tmp0_other_with_cast.ybp_1)) return false; if (!this.zbp_1.equals(tmp0_other_with_cast.zbp_1)) return false; if (!this.abq_1.equals(tmp0_other_with_cast.abq_1)) return false; if (!this.bbq_1.equals(tmp0_other_with_cast.bbq_1)) return false; if (!(this.cbq_1 == tmp0_other_with_cast.cbq_1)) return false; if (!(this.dbq_1 === tmp0_other_with_cast.dbq_1)) return false; if (!this.ebq_1.equals(tmp0_other_with_cast.ebq_1)) return false; if (!this.fbq_1.equals(tmp0_other_with_cast.fbq_1)) return false; return true; }; function Companion_74() { this.ek8_1 = 90; } var Companion_instance_75; function Companion_getInstance_77() { return Companion_instance_75; } function $serializer_71() { $serializer_instance_71 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseAssignmentSubmissionFile', this, 11); tmp0_serialDesc.d4g('casaUid', true); tmp0_serialDesc.d4g('casaSubmissionUid', true); tmp0_serialDesc.d4g('casaSubmitterUid', true); tmp0_serialDesc.d4g('casaCaUid', true); tmp0_serialDesc.d4g('casaClazzUid', true); tmp0_serialDesc.d4g('casaMimeType', true); tmp0_serialDesc.d4g('casaFileName', true); tmp0_serialDesc.d4g('casaUri', true); tmp0_serialDesc.d4g('casaSize', true); tmp0_serialDesc.d4g('casaTimestamp', true); tmp0_serialDesc.d4g('casaDeleted', true); this.fk8_1 = tmp0_serialDesc; } protoOf($serializer_71).a45 = function () { return this.fk8_1; }; protoOf($serializer_71).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_71).c45 = function (decoder) { var tmp0_desc = this.fk8_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = null; var tmp12_local8 = 0; var tmp13_local9 = new Long(0, 0); var tmp14_local10 = false; var tmp15_input = decoder.s48(tmp0_desc); if (tmp15_input.h49()) { tmp4_local0 = tmp15_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.g49(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.g49(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.x48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.u48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.g49(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.g49(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.x48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.u48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.t48(tmp0_desc); return CourseAssignmentSubmissionFile_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); }; protoOf($serializer_71).gk8 = function (encoder, value) { var tmp0_desc = this.fk8_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.mby_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.mby_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.nby_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.nby_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.oby_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.oby_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.pby_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.pby_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.qby_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.qby_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.rby_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, StringSerializer_getInstance(), value.rby_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.sby_1 == null)) { tmp1_output.k4a(tmp0_desc, 6, StringSerializer_getInstance(), value.sby_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.tby_1 == null)) { tmp1_output.k4a(tmp0_desc, 7, StringSerializer_getInstance(), value.tby_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !(value.uby_1 === 0)) { tmp1_output.b4a(tmp0_desc, 8, value.uby_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !value.vby_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 9, value.vby_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !(value.wby_1 === false)) { tmp1_output.y49(tmp0_desc, 10, value.wby_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_71).b45 = function (encoder, value) { return this.gk8(encoder, value instanceof CourseAssignmentSubmissionFile ? value : THROW_CCE()); }; var $serializer_instance_71; function $serializer_getInstance_71() { if ($serializer_instance_71 == null) new $serializer_71(); return $serializer_instance_71; } function CourseAssignmentSubmissionFile_init_$Init$(seen1, casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_71().fk8_1); } if (0 === (seen1 & 1)) $this.mby_1 = new Long(0, 0); else $this.mby_1 = casaUid; if (0 === (seen1 & 2)) $this.nby_1 = new Long(0, 0); else $this.nby_1 = casaSubmissionUid; if (0 === (seen1 & 4)) $this.oby_1 = new Long(0, 0); else $this.oby_1 = casaSubmitterUid; if (0 === (seen1 & 8)) $this.pby_1 = new Long(0, 0); else $this.pby_1 = casaCaUid; if (0 === (seen1 & 16)) $this.qby_1 = new Long(0, 0); else $this.qby_1 = casaClazzUid; if (0 === (seen1 & 32)) $this.rby_1 = null; else $this.rby_1 = casaMimeType; if (0 === (seen1 & 64)) $this.sby_1 = null; else $this.sby_1 = casaFileName; if (0 === (seen1 & 128)) $this.tby_1 = null; else $this.tby_1 = casaUri; if (0 === (seen1 & 256)) $this.uby_1 = 0; else $this.uby_1 = casaSize; if (0 === (seen1 & 512)) $this.vby_1 = new Long(0, 0); else $this.vby_1 = casaTimestamp; if (0 === (seen1 & 1024)) $this.wby_1 = false; else $this.wby_1 = casaDeleted; return $this; } function CourseAssignmentSubmissionFile_init_$Create$(seen1, casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted, serializationConstructorMarker) { return CourseAssignmentSubmissionFile_init_$Init$(seen1, casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted, serializationConstructorMarker, objectCreate(protoOf(CourseAssignmentSubmissionFile))); } function CourseAssignmentSubmissionFile(casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted) { casaUid = casaUid === VOID ? new Long(0, 0) : casaUid; casaSubmissionUid = casaSubmissionUid === VOID ? new Long(0, 0) : casaSubmissionUid; casaSubmitterUid = casaSubmitterUid === VOID ? new Long(0, 0) : casaSubmitterUid; casaCaUid = casaCaUid === VOID ? new Long(0, 0) : casaCaUid; casaClazzUid = casaClazzUid === VOID ? new Long(0, 0) : casaClazzUid; casaMimeType = casaMimeType === VOID ? null : casaMimeType; casaFileName = casaFileName === VOID ? null : casaFileName; casaUri = casaUri === VOID ? null : casaUri; casaSize = casaSize === VOID ? 0 : casaSize; casaTimestamp = casaTimestamp === VOID ? new Long(0, 0) : casaTimestamp; casaDeleted = casaDeleted === VOID ? false : casaDeleted; this.mby_1 = casaUid; this.nby_1 = casaSubmissionUid; this.oby_1 = casaSubmitterUid; this.pby_1 = casaCaUid; this.qby_1 = casaClazzUid; this.rby_1 = casaMimeType; this.sby_1 = casaFileName; this.tby_1 = casaUri; this.uby_1 = casaSize; this.vby_1 = casaTimestamp; this.wby_1 = casaDeleted; } protoOf(CourseAssignmentSubmissionFile).toString = function () { return 'CourseAssignmentSubmissionFile(casaUid=' + this.mby_1.toString() + ', casaSubmissionUid=' + this.nby_1.toString() + ', casaSubmitterUid=' + this.oby_1.toString() + ', casaCaUid=' + this.pby_1.toString() + ', casaClazzUid=' + this.qby_1.toString() + ', casaMimeType=' + this.rby_1 + ', casaFileName=' + this.sby_1 + ', casaUri=' + this.tby_1 + ', casaSize=' + this.uby_1 + ', casaTimestamp=' + this.vby_1.toString() + ', casaDeleted=' + this.wby_1 + ')'; }; protoOf(CourseAssignmentSubmissionFile).hashCode = function () { var result = this.mby_1.hashCode(); result = imul(result, 31) + this.nby_1.hashCode() | 0; result = imul(result, 31) + this.oby_1.hashCode() | 0; result = imul(result, 31) + this.pby_1.hashCode() | 0; result = imul(result, 31) + this.qby_1.hashCode() | 0; result = imul(result, 31) + (this.rby_1 == null ? 0 : getStringHashCode(this.rby_1)) | 0; result = imul(result, 31) + (this.sby_1 == null ? 0 : getStringHashCode(this.sby_1)) | 0; result = imul(result, 31) + (this.tby_1 == null ? 0 : getStringHashCode(this.tby_1)) | 0; result = imul(result, 31) + this.uby_1 | 0; result = imul(result, 31) + this.vby_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.wby_1) | 0; return result; }; protoOf(CourseAssignmentSubmissionFile).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseAssignmentSubmissionFile)) return false; var tmp0_other_with_cast = other instanceof CourseAssignmentSubmissionFile ? other : THROW_CCE(); if (!this.mby_1.equals(tmp0_other_with_cast.mby_1)) return false; if (!this.nby_1.equals(tmp0_other_with_cast.nby_1)) return false; if (!this.oby_1.equals(tmp0_other_with_cast.oby_1)) return false; if (!this.pby_1.equals(tmp0_other_with_cast.pby_1)) return false; if (!this.qby_1.equals(tmp0_other_with_cast.qby_1)) return false; if (!(this.rby_1 == tmp0_other_with_cast.rby_1)) return false; if (!(this.sby_1 == tmp0_other_with_cast.sby_1)) return false; if (!(this.tby_1 == tmp0_other_with_cast.tby_1)) return false; if (!(this.uby_1 === tmp0_other_with_cast.uby_1)) return false; if (!this.vby_1.equals(tmp0_other_with_cast.vby_1)) return false; if (!(this.wby_1 === tmp0_other_with_cast.wby_1)) return false; return true; }; function Companion_75() { this.hk8_1 = 124; this.ik8_1 = 100; this.jk8_1 = 102; this.kk8_1 = 103; this.lk8_1 = 104; this.mk8_1 = 105; this.nk8_1 = 300; } protoOf(Companion_75).x4r = function () { return $serializer_getInstance_72(); }; var Companion_instance_76; function Companion_getInstance_78() { return Companion_instance_76; } function $serializer_72() { $serializer_instance_72 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseBlock', this, 23); tmp0_serialDesc.d4g('cbUid', true); tmp0_serialDesc.d4g('cbType', true); tmp0_serialDesc.d4g('cbIndentLevel', true); tmp0_serialDesc.d4g('cbModuleParentBlockUid', true); tmp0_serialDesc.d4g('cbTitle', true); tmp0_serialDesc.d4g('cbDescription', true); tmp0_serialDesc.d4g('cbCompletionCriteria', true); tmp0_serialDesc.d4g('cbHideUntilDate', true); tmp0_serialDesc.d4g('cbDeadlineDate', true); tmp0_serialDesc.d4g('cbLateSubmissionPenalty', true); tmp0_serialDesc.d4g('cbGracePeriodDate', true); tmp0_serialDesc.d4g('cbMaxPoints', true); tmp0_serialDesc.d4g('cbMinPoints', true); tmp0_serialDesc.d4g('cbIndex', true); tmp0_serialDesc.d4g('cbClazzUid', true); tmp0_serialDesc.d4g('cbClazzSourcedId', true); tmp0_serialDesc.d4g('cbActive', true); tmp0_serialDesc.d4g('cbHidden', true); tmp0_serialDesc.d4g('cbEntityUid', true); tmp0_serialDesc.d4g('cbLct', true); tmp0_serialDesc.d4g('cbSourcedId', true); tmp0_serialDesc.d4g('cbMetadata', true); tmp0_serialDesc.d4g('cbCreatedByAppId', true); this.ok8_1 = tmp0_serialDesc; } protoOf($serializer_72).a45 = function () { return this.ok8_1; }; protoOf($serializer_72).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(FloatSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_72).c45 = function (decoder) { var tmp0_desc = this.ok8_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = 0; var tmp6_local2 = 0; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = 0; var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = 0; var tmp14_local10 = new Long(0, 0); var tmp15_local11 = null; var tmp16_local12 = null; var tmp17_local13 = 0; var tmp18_local14 = new Long(0, 0); var tmp19_local15 = null; var tmp20_local16 = false; var tmp21_local17 = false; var tmp22_local18 = new Long(0, 0); var tmp23_local19 = new Long(0, 0); var tmp24_local20 = null; var tmp25_local21 = null; var tmp26_local22 = null; var tmp27_input = decoder.s48(tmp0_desc); if (tmp27_input.h49()) { tmp4_local0 = tmp27_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp27_input.x48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp27_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp27_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp27_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp27_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp27_input.x48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp27_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp27_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp27_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp27_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp27_input.g49(tmp0_desc, 11, FloatSerializer_getInstance(), tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp27_input.g49(tmp0_desc, 12, FloatSerializer_getInstance(), tmp16_local12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp27_input.x48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp27_input.y48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp27_input.g49(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp27_input.u48(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp27_input.u48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp22_local18 = tmp27_input.y48(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp23_local19 = tmp27_input.y48(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; tmp24_local20 = tmp27_input.g49(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; tmp25_local21 = tmp27_input.g49(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; tmp26_local22 = tmp27_input.g49(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; } else while (tmp1_flag) { tmp2_index = tmp27_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp27_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp27_input.x48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp27_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp27_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp27_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp27_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp27_input.x48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp27_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp27_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp27_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp27_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp27_input.g49(tmp0_desc, 11, FloatSerializer_getInstance(), tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp27_input.g49(tmp0_desc, 12, FloatSerializer_getInstance(), tmp16_local12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp27_input.x48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp27_input.y48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp27_input.g49(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp27_input.u48(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp27_input.u48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp22_local18 = tmp27_input.y48(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp23_local19 = tmp27_input.y48(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; case 20: tmp24_local20 = tmp27_input.g49(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; break; case 21: tmp25_local21 = tmp27_input.g49(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; break; case 22: tmp26_local22 = tmp27_input.g49(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp27_input.t48(tmp0_desc); return CourseBlock_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, null); }; protoOf($serializer_72).pk8 = function (encoder, value) { var tmp0_desc = this.ok8_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.r7y_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.r7y_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.s7y_1 === 0)) { tmp1_output.b4a(tmp0_desc, 1, value.s7y_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.t7y_1 === 0)) { tmp1_output.b4a(tmp0_desc, 2, value.t7y_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.u7y_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.u7y_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.v7y_1 == null)) { tmp1_output.k4a(tmp0_desc, 4, StringSerializer_getInstance(), value.v7y_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.w7y_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, StringSerializer_getInstance(), value.w7y_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.x7y_1 === 0)) { tmp1_output.b4a(tmp0_desc, 6, value.x7y_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.y7y_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.y7y_1); } var tmp; if (tmp1_output.o4a(tmp0_desc, 8)) { tmp = true; } else { var tmp_0 = value.z7y_1; Companion_getInstance(); tmp = !tmp_0.equals(new Long(-1, 2147483647)); } if (tmp) { tmp1_output.c4a(tmp0_desc, 8, value.z7y_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !(value.a7z_1 === 0)) { tmp1_output.b4a(tmp0_desc, 9, value.a7z_1); } var tmp_1; if (tmp1_output.o4a(tmp0_desc, 10)) { tmp_1 = true; } else { var tmp_2 = value.b7z_1; Companion_getInstance(); tmp_1 = !tmp_2.equals(new Long(-1, 2147483647)); } if (tmp_1) { tmp1_output.c4a(tmp0_desc, 10, value.b7z_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !(value.c7z_1 == null)) { tmp1_output.k4a(tmp0_desc, 11, FloatSerializer_getInstance(), value.c7z_1); } if (tmp1_output.o4a(tmp0_desc, 12) ? true : !(value.d7z_1 == null)) { tmp1_output.k4a(tmp0_desc, 12, FloatSerializer_getInstance(), value.d7z_1); } if (tmp1_output.o4a(tmp0_desc, 13) ? true : !(value.e7z_1 === 0)) { tmp1_output.b4a(tmp0_desc, 13, value.e7z_1); } if (tmp1_output.o4a(tmp0_desc, 14) ? true : !value.f7z_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 14, value.f7z_1); } if (tmp1_output.o4a(tmp0_desc, 15) ? true : !(value.g7z_1 == null)) { tmp1_output.k4a(tmp0_desc, 15, StringSerializer_getInstance(), value.g7z_1); } if (tmp1_output.o4a(tmp0_desc, 16) ? true : !(value.h7z_1 === true)) { tmp1_output.y49(tmp0_desc, 16, value.h7z_1); } if (tmp1_output.o4a(tmp0_desc, 17) ? true : !(value.i7z_1 === false)) { tmp1_output.y49(tmp0_desc, 17, value.i7z_1); } if (tmp1_output.o4a(tmp0_desc, 18) ? true : !value.j7z_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 18, value.j7z_1); } if (tmp1_output.o4a(tmp0_desc, 19) ? true : !value.k7z_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 19, value.k7z_1); } if (tmp1_output.o4a(tmp0_desc, 20) ? true : !(value.l7z_1 == null)) { tmp1_output.k4a(tmp0_desc, 20, StringSerializer_getInstance(), value.l7z_1); } if (tmp1_output.o4a(tmp0_desc, 21) ? true : !(value.m7z_1 == null)) { tmp1_output.k4a(tmp0_desc, 21, StringSerializer_getInstance(), value.m7z_1); } if (tmp1_output.o4a(tmp0_desc, 22) ? true : !(value.n7z_1 == null)) { tmp1_output.k4a(tmp0_desc, 22, StringSerializer_getInstance(), value.n7z_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_72).b45 = function (encoder, value) { return this.pk8(encoder, value instanceof CourseBlock ? value : THROW_CCE()); }; var $serializer_instance_72; function $serializer_getInstance_72() { if ($serializer_instance_72 == null) new $serializer_72(); return $serializer_instance_72; } function CourseBlock_init_$Init$(seen1, cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_72().ok8_1); } if (0 === (seen1 & 1)) $this.r7y_1 = new Long(0, 0); else $this.r7y_1 = cbUid; if (0 === (seen1 & 2)) $this.s7y_1 = 0; else $this.s7y_1 = cbType; if (0 === (seen1 & 4)) $this.t7y_1 = 0; else $this.t7y_1 = cbIndentLevel; if (0 === (seen1 & 8)) $this.u7y_1 = new Long(0, 0); else $this.u7y_1 = cbModuleParentBlockUid; if (0 === (seen1 & 16)) $this.v7y_1 = null; else $this.v7y_1 = cbTitle; if (0 === (seen1 & 32)) $this.w7y_1 = null; else $this.w7y_1 = cbDescription; if (0 === (seen1 & 64)) $this.x7y_1 = 0; else $this.x7y_1 = cbCompletionCriteria; if (0 === (seen1 & 128)) $this.y7y_1 = new Long(0, 0); else $this.y7y_1 = cbHideUntilDate; if (0 === (seen1 & 256)) { var tmp = $this; Companion_getInstance(); tmp.z7y_1 = new Long(-1, 2147483647); } else $this.z7y_1 = cbDeadlineDate; if (0 === (seen1 & 512)) $this.a7z_1 = 0; else $this.a7z_1 = cbLateSubmissionPenalty; if (0 === (seen1 & 1024)) { var tmp_0 = $this; Companion_getInstance(); tmp_0.b7z_1 = new Long(-1, 2147483647); } else $this.b7z_1 = cbGracePeriodDate; if (0 === (seen1 & 2048)) $this.c7z_1 = null; else $this.c7z_1 = cbMaxPoints; if (0 === (seen1 & 4096)) $this.d7z_1 = null; else $this.d7z_1 = cbMinPoints; if (0 === (seen1 & 8192)) $this.e7z_1 = 0; else $this.e7z_1 = cbIndex; if (0 === (seen1 & 16384)) $this.f7z_1 = new Long(0, 0); else $this.f7z_1 = cbClazzUid; if (0 === (seen1 & 32768)) $this.g7z_1 = null; else $this.g7z_1 = cbClazzSourcedId; if (0 === (seen1 & 65536)) $this.h7z_1 = true; else $this.h7z_1 = cbActive; if (0 === (seen1 & 131072)) $this.i7z_1 = false; else $this.i7z_1 = cbHidden; if (0 === (seen1 & 262144)) $this.j7z_1 = new Long(0, 0); else $this.j7z_1 = cbEntityUid; if (0 === (seen1 & 524288)) $this.k7z_1 = new Long(0, 0); else $this.k7z_1 = cbLct; if (0 === (seen1 & 1048576)) $this.l7z_1 = null; else $this.l7z_1 = cbSourcedId; if (0 === (seen1 & 2097152)) $this.m7z_1 = null; else $this.m7z_1 = cbMetadata; if (0 === (seen1 & 4194304)) $this.n7z_1 = null; else $this.n7z_1 = cbCreatedByAppId; return $this; } function CourseBlock_init_$Create$(seen1, cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId, serializationConstructorMarker) { return CourseBlock_init_$Init$(seen1, cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId, serializationConstructorMarker, objectCreate(protoOf(CourseBlock))); } function CourseBlock(cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) { cbUid = cbUid === VOID ? new Long(0, 0) : cbUid; cbType = cbType === VOID ? 0 : cbType; cbIndentLevel = cbIndentLevel === VOID ? 0 : cbIndentLevel; cbModuleParentBlockUid = cbModuleParentBlockUid === VOID ? new Long(0, 0) : cbModuleParentBlockUid; cbTitle = cbTitle === VOID ? null : cbTitle; cbDescription = cbDescription === VOID ? null : cbDescription; cbCompletionCriteria = cbCompletionCriteria === VOID ? 0 : cbCompletionCriteria; cbHideUntilDate = cbHideUntilDate === VOID ? new Long(0, 0) : cbHideUntilDate; var tmp; if (cbDeadlineDate === VOID) { Companion_getInstance(); tmp = new Long(-1, 2147483647); } else { tmp = cbDeadlineDate; } cbDeadlineDate = tmp; cbLateSubmissionPenalty = cbLateSubmissionPenalty === VOID ? 0 : cbLateSubmissionPenalty; var tmp_0; if (cbGracePeriodDate === VOID) { Companion_getInstance(); tmp_0 = new Long(-1, 2147483647); } else { tmp_0 = cbGracePeriodDate; } cbGracePeriodDate = tmp_0; cbMaxPoints = cbMaxPoints === VOID ? null : cbMaxPoints; cbMinPoints = cbMinPoints === VOID ? null : cbMinPoints; cbIndex = cbIndex === VOID ? 0 : cbIndex; cbClazzUid = cbClazzUid === VOID ? new Long(0, 0) : cbClazzUid; cbClazzSourcedId = cbClazzSourcedId === VOID ? null : cbClazzSourcedId; cbActive = cbActive === VOID ? true : cbActive; cbHidden = cbHidden === VOID ? false : cbHidden; cbEntityUid = cbEntityUid === VOID ? new Long(0, 0) : cbEntityUid; cbLct = cbLct === VOID ? new Long(0, 0) : cbLct; cbSourcedId = cbSourcedId === VOID ? null : cbSourcedId; cbMetadata = cbMetadata === VOID ? null : cbMetadata; cbCreatedByAppId = cbCreatedByAppId === VOID ? null : cbCreatedByAppId; this.r7y_1 = cbUid; this.s7y_1 = cbType; this.t7y_1 = cbIndentLevel; this.u7y_1 = cbModuleParentBlockUid; this.v7y_1 = cbTitle; this.w7y_1 = cbDescription; this.x7y_1 = cbCompletionCriteria; this.y7y_1 = cbHideUntilDate; this.z7y_1 = cbDeadlineDate; this.a7z_1 = cbLateSubmissionPenalty; this.b7z_1 = cbGracePeriodDate; this.c7z_1 = cbMaxPoints; this.d7z_1 = cbMinPoints; this.e7z_1 = cbIndex; this.f7z_1 = cbClazzUid; this.g7z_1 = cbClazzSourcedId; this.h7z_1 = cbActive; this.i7z_1 = cbHidden; this.j7z_1 = cbEntityUid; this.k7z_1 = cbLct; this.l7z_1 = cbSourcedId; this.m7z_1 = cbMetadata; this.n7z_1 = cbCreatedByAppId; } protoOf(CourseBlock).qk8 = function (cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) { return new CourseBlock(cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId); }; protoOf(CourseBlock).rk8 = function (cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId, $super) { cbUid = cbUid === VOID ? this.r7y_1 : cbUid; cbType = cbType === VOID ? this.s7y_1 : cbType; cbIndentLevel = cbIndentLevel === VOID ? this.t7y_1 : cbIndentLevel; cbModuleParentBlockUid = cbModuleParentBlockUid === VOID ? this.u7y_1 : cbModuleParentBlockUid; cbTitle = cbTitle === VOID ? this.v7y_1 : cbTitle; cbDescription = cbDescription === VOID ? this.w7y_1 : cbDescription; cbCompletionCriteria = cbCompletionCriteria === VOID ? this.x7y_1 : cbCompletionCriteria; cbHideUntilDate = cbHideUntilDate === VOID ? this.y7y_1 : cbHideUntilDate; cbDeadlineDate = cbDeadlineDate === VOID ? this.z7y_1 : cbDeadlineDate; cbLateSubmissionPenalty = cbLateSubmissionPenalty === VOID ? this.a7z_1 : cbLateSubmissionPenalty; cbGracePeriodDate = cbGracePeriodDate === VOID ? this.b7z_1 : cbGracePeriodDate; cbMaxPoints = cbMaxPoints === VOID ? this.c7z_1 : cbMaxPoints; cbMinPoints = cbMinPoints === VOID ? this.d7z_1 : cbMinPoints; cbIndex = cbIndex === VOID ? this.e7z_1 : cbIndex; cbClazzUid = cbClazzUid === VOID ? this.f7z_1 : cbClazzUid; cbClazzSourcedId = cbClazzSourcedId === VOID ? this.g7z_1 : cbClazzSourcedId; cbActive = cbActive === VOID ? this.h7z_1 : cbActive; cbHidden = cbHidden === VOID ? this.i7z_1 : cbHidden; cbEntityUid = cbEntityUid === VOID ? this.j7z_1 : cbEntityUid; cbLct = cbLct === VOID ? this.k7z_1 : cbLct; cbSourcedId = cbSourcedId === VOID ? this.l7z_1 : cbSourcedId; cbMetadata = cbMetadata === VOID ? this.m7z_1 : cbMetadata; cbCreatedByAppId = cbCreatedByAppId === VOID ? this.n7z_1 : cbCreatedByAppId; return $super === VOID ? this.qk8(cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) : $super.qk8.call(this, cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId); }; protoOf(CourseBlock).toString = function () { return 'CourseBlock(cbUid=' + this.r7y_1.toString() + ', cbType=' + this.s7y_1 + ', cbIndentLevel=' + this.t7y_1 + ', cbModuleParentBlockUid=' + this.u7y_1.toString() + ', cbTitle=' + this.v7y_1 + ', cbDescription=' + this.w7y_1 + ', cbCompletionCriteria=' + this.x7y_1 + ', cbHideUntilDate=' + this.y7y_1.toString() + ', cbDeadlineDate=' + this.z7y_1.toString() + ', cbLateSubmissionPenalty=' + this.a7z_1 + ', cbGracePeriodDate=' + this.b7z_1.toString() + ', cbMaxPoints=' + this.c7z_1 + ', cbMinPoints=' + this.d7z_1 + ', cbIndex=' + this.e7z_1 + ', cbClazzUid=' + this.f7z_1.toString() + ', cbClazzSourcedId=' + this.g7z_1 + ', cbActive=' + this.h7z_1 + ', cbHidden=' + this.i7z_1 + ', cbEntityUid=' + this.j7z_1.toString() + ', cbLct=' + this.k7z_1.toString() + ', cbSourcedId=' + this.l7z_1 + ', cbMetadata=' + this.m7z_1 + ', cbCreatedByAppId=' + this.n7z_1 + ')'; }; protoOf(CourseBlock).hashCode = function () { var result = this.r7y_1.hashCode(); result = imul(result, 31) + this.s7y_1 | 0; result = imul(result, 31) + this.t7y_1 | 0; result = imul(result, 31) + this.u7y_1.hashCode() | 0; result = imul(result, 31) + (this.v7y_1 == null ? 0 : getStringHashCode(this.v7y_1)) | 0; result = imul(result, 31) + (this.w7y_1 == null ? 0 : getStringHashCode(this.w7y_1)) | 0; result = imul(result, 31) + this.x7y_1 | 0; result = imul(result, 31) + this.y7y_1.hashCode() | 0; result = imul(result, 31) + this.z7y_1.hashCode() | 0; result = imul(result, 31) + this.a7z_1 | 0; result = imul(result, 31) + this.b7z_1.hashCode() | 0; result = imul(result, 31) + (this.c7z_1 == null ? 0 : getNumberHashCode(this.c7z_1)) | 0; result = imul(result, 31) + (this.d7z_1 == null ? 0 : getNumberHashCode(this.d7z_1)) | 0; result = imul(result, 31) + this.e7z_1 | 0; result = imul(result, 31) + this.f7z_1.hashCode() | 0; result = imul(result, 31) + (this.g7z_1 == null ? 0 : getStringHashCode(this.g7z_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.h7z_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.i7z_1) | 0; result = imul(result, 31) + this.j7z_1.hashCode() | 0; result = imul(result, 31) + this.k7z_1.hashCode() | 0; result = imul(result, 31) + (this.l7z_1 == null ? 0 : getStringHashCode(this.l7z_1)) | 0; result = imul(result, 31) + (this.m7z_1 == null ? 0 : getStringHashCode(this.m7z_1)) | 0; result = imul(result, 31) + (this.n7z_1 == null ? 0 : getStringHashCode(this.n7z_1)) | 0; return result; }; protoOf(CourseBlock).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseBlock)) return false; var tmp0_other_with_cast = other instanceof CourseBlock ? other : THROW_CCE(); if (!this.r7y_1.equals(tmp0_other_with_cast.r7y_1)) return false; if (!(this.s7y_1 === tmp0_other_with_cast.s7y_1)) return false; if (!(this.t7y_1 === tmp0_other_with_cast.t7y_1)) return false; if (!this.u7y_1.equals(tmp0_other_with_cast.u7y_1)) return false; if (!(this.v7y_1 == tmp0_other_with_cast.v7y_1)) return false; if (!(this.w7y_1 == tmp0_other_with_cast.w7y_1)) return false; if (!(this.x7y_1 === tmp0_other_with_cast.x7y_1)) return false; if (!this.y7y_1.equals(tmp0_other_with_cast.y7y_1)) return false; if (!this.z7y_1.equals(tmp0_other_with_cast.z7y_1)) return false; if (!(this.a7z_1 === tmp0_other_with_cast.a7z_1)) return false; if (!this.b7z_1.equals(tmp0_other_with_cast.b7z_1)) return false; if (!equals(this.c7z_1, tmp0_other_with_cast.c7z_1)) return false; if (!equals(this.d7z_1, tmp0_other_with_cast.d7z_1)) return false; if (!(this.e7z_1 === tmp0_other_with_cast.e7z_1)) return false; if (!this.f7z_1.equals(tmp0_other_with_cast.f7z_1)) return false; if (!(this.g7z_1 == tmp0_other_with_cast.g7z_1)) return false; if (!(this.h7z_1 === tmp0_other_with_cast.h7z_1)) return false; if (!(this.i7z_1 === tmp0_other_with_cast.i7z_1)) return false; if (!this.j7z_1.equals(tmp0_other_with_cast.j7z_1)) return false; if (!this.k7z_1.equals(tmp0_other_with_cast.k7z_1)) return false; if (!(this.l7z_1 == tmp0_other_with_cast.l7z_1)) return false; if (!(this.m7z_1 == tmp0_other_with_cast.m7z_1)) return false; if (!(this.n7z_1 == tmp0_other_with_cast.n7z_1)) return false; return true; }; function Companion_76() { this.sk8_1 = 6677; } var Companion_instance_77; function Companion_getInstance_79() { return Companion_instance_77; } function $serializer_73() { $serializer_instance_73 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseBlockPicture', this, 4); tmp0_serialDesc.d4g('cbpUid', true); tmp0_serialDesc.d4g('cbpLct', true); tmp0_serialDesc.d4g('cbpPictureUri', true); tmp0_serialDesc.d4g('cbpThumbnailUri', true); this.tk8_1 = tmp0_serialDesc; } protoOf($serializer_73).a45 = function () { return this.tk8_1; }; protoOf($serializer_73).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_73).c45 = function (decoder) { var tmp0_desc = this.tk8_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.s48(tmp0_desc); if (tmp8_input.h49()) { tmp4_local0 = tmp8_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.t48(tmp0_desc); return CourseBlockPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_73).uk8 = function (encoder, value) { var tmp0_desc = this.tk8_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.u7z_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.u7z_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.v7z_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.v7z_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.w7z_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.w7z_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.x7z_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.x7z_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_73).b45 = function (encoder, value) { return this.uk8(encoder, value instanceof CourseBlockPicture ? value : THROW_CCE()); }; var $serializer_instance_73; function $serializer_getInstance_73() { if ($serializer_instance_73 == null) new $serializer_73(); return $serializer_instance_73; } function CourseBlockPicture_init_$Init$(seen1, cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_73().tk8_1); } if (0 === (seen1 & 1)) $this.u7z_1 = new Long(0, 0); else $this.u7z_1 = cbpUid; if (0 === (seen1 & 2)) $this.v7z_1 = new Long(0, 0); else $this.v7z_1 = cbpLct; if (0 === (seen1 & 4)) $this.w7z_1 = null; else $this.w7z_1 = cbpPictureUri; if (0 === (seen1 & 8)) $this.x7z_1 = null; else $this.x7z_1 = cbpThumbnailUri; return $this; } function CourseBlockPicture_init_$Create$(seen1, cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri, serializationConstructorMarker) { return CourseBlockPicture_init_$Init$(seen1, cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri, serializationConstructorMarker, objectCreate(protoOf(CourseBlockPicture))); } function CourseBlockPicture(cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri) { cbpUid = cbpUid === VOID ? new Long(0, 0) : cbpUid; cbpLct = cbpLct === VOID ? new Long(0, 0) : cbpLct; cbpPictureUri = cbpPictureUri === VOID ? null : cbpPictureUri; cbpThumbnailUri = cbpThumbnailUri === VOID ? null : cbpThumbnailUri; this.u7z_1 = cbpUid; this.v7z_1 = cbpLct; this.w7z_1 = cbpPictureUri; this.x7z_1 = cbpThumbnailUri; } protoOf(CourseBlockPicture).nk4 = function (cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri) { return new CourseBlockPicture(cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri); }; protoOf(CourseBlockPicture).vk8 = function (cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri, $super) { cbpUid = cbpUid === VOID ? this.u7z_1 : cbpUid; cbpLct = cbpLct === VOID ? this.v7z_1 : cbpLct; cbpPictureUri = cbpPictureUri === VOID ? this.w7z_1 : cbpPictureUri; cbpThumbnailUri = cbpThumbnailUri === VOID ? this.x7z_1 : cbpThumbnailUri; return $super === VOID ? this.nk4(cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri) : $super.nk4.call(this, cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri); }; protoOf(CourseBlockPicture).toString = function () { return 'CourseBlockPicture(cbpUid=' + this.u7z_1.toString() + ', cbpLct=' + this.v7z_1.toString() + ', cbpPictureUri=' + this.w7z_1 + ', cbpThumbnailUri=' + this.x7z_1 + ')'; }; protoOf(CourseBlockPicture).hashCode = function () { var result = this.u7z_1.hashCode(); result = imul(result, 31) + this.v7z_1.hashCode() | 0; result = imul(result, 31) + (this.w7z_1 == null ? 0 : getStringHashCode(this.w7z_1)) | 0; result = imul(result, 31) + (this.x7z_1 == null ? 0 : getStringHashCode(this.x7z_1)) | 0; return result; }; protoOf(CourseBlockPicture).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseBlockPicture)) return false; var tmp0_other_with_cast = other instanceof CourseBlockPicture ? other : THROW_CCE(); if (!this.u7z_1.equals(tmp0_other_with_cast.u7z_1)) return false; if (!this.v7z_1.equals(tmp0_other_with_cast.v7z_1)) return false; if (!(this.w7z_1 == tmp0_other_with_cast.w7z_1)) return false; if (!(this.x7z_1 == tmp0_other_with_cast.x7z_1)) return false; return true; }; function Companion_77() { this.wk8_1 = 243; } var Companion_instance_78; function Companion_getInstance_80() { return Companion_instance_78; } function $serializer_74() { $serializer_instance_74 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseGroupMember', this, 5); tmp0_serialDesc.d4g('cgmUid', true); tmp0_serialDesc.d4g('cgmSetUid', true); tmp0_serialDesc.d4g('cgmGroupNumber', true); tmp0_serialDesc.d4g('cgmPersonUid', true); tmp0_serialDesc.d4g('cgmLct', true); this.xk8_1 = tmp0_serialDesc; } protoOf($serializer_74).a45 = function () { return this.xk8_1; }; protoOf($serializer_74).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_74).c45 = function (decoder) { var tmp0_desc = this.xk8_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = 0; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_input = decoder.s48(tmp0_desc); if (tmp9_input.h49()) { tmp4_local0 = tmp9_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.t48(tmp0_desc); return CourseGroupMember_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_74).yk8 = function (encoder, value) { var tmp0_desc = this.xk8_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.dcs_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.dcs_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.ecs_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.ecs_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.fcs_1 === 0)) { tmp1_output.b4a(tmp0_desc, 2, value.fcs_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.gcs_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.gcs_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.hcs_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.hcs_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_74).b45 = function (encoder, value) { return this.yk8(encoder, value instanceof CourseGroupMember ? value : THROW_CCE()); }; var $serializer_instance_74; function $serializer_getInstance_74() { if ($serializer_instance_74 == null) new $serializer_74(); return $serializer_instance_74; } function CourseGroupMember_init_$Init$(seen1, cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_74().xk8_1); } if (0 === (seen1 & 1)) $this.dcs_1 = new Long(0, 0); else $this.dcs_1 = cgmUid; if (0 === (seen1 & 2)) $this.ecs_1 = new Long(0, 0); else $this.ecs_1 = cgmSetUid; if (0 === (seen1 & 4)) $this.fcs_1 = 0; else $this.fcs_1 = cgmGroupNumber; if (0 === (seen1 & 8)) $this.gcs_1 = new Long(0, 0); else $this.gcs_1 = cgmPersonUid; if (0 === (seen1 & 16)) $this.hcs_1 = new Long(0, 0); else $this.hcs_1 = cgmLct; return $this; } function CourseGroupMember_init_$Create$(seen1, cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct, serializationConstructorMarker) { return CourseGroupMember_init_$Init$(seen1, cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct, serializationConstructorMarker, objectCreate(protoOf(CourseGroupMember))); } function CourseGroupMember(cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) { cgmUid = cgmUid === VOID ? new Long(0, 0) : cgmUid; cgmSetUid = cgmSetUid === VOID ? new Long(0, 0) : cgmSetUid; cgmGroupNumber = cgmGroupNumber === VOID ? 0 : cgmGroupNumber; cgmPersonUid = cgmPersonUid === VOID ? new Long(0, 0) : cgmPersonUid; cgmLct = cgmLct === VOID ? new Long(0, 0) : cgmLct; this.dcs_1 = cgmUid; this.ecs_1 = cgmSetUid; this.fcs_1 = cgmGroupNumber; this.gcs_1 = cgmPersonUid; this.hcs_1 = cgmLct; } protoOf(CourseGroupMember).toString = function () { return 'CourseGroupMember(cgmUid=' + this.dcs_1.toString() + ', cgmSetUid=' + this.ecs_1.toString() + ', cgmGroupNumber=' + this.fcs_1 + ', cgmPersonUid=' + this.gcs_1.toString() + ', cgmLct=' + this.hcs_1.toString() + ')'; }; protoOf(CourseGroupMember).hashCode = function () { var result = this.dcs_1.hashCode(); result = imul(result, 31) + this.ecs_1.hashCode() | 0; result = imul(result, 31) + this.fcs_1 | 0; result = imul(result, 31) + this.gcs_1.hashCode() | 0; result = imul(result, 31) + this.hcs_1.hashCode() | 0; return result; }; protoOf(CourseGroupMember).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseGroupMember)) return false; var tmp0_other_with_cast = other instanceof CourseGroupMember ? other : THROW_CCE(); if (!this.dcs_1.equals(tmp0_other_with_cast.dcs_1)) return false; if (!this.ecs_1.equals(tmp0_other_with_cast.ecs_1)) return false; if (!(this.fcs_1 === tmp0_other_with_cast.fcs_1)) return false; if (!this.gcs_1.equals(tmp0_other_with_cast.gcs_1)) return false; if (!this.hcs_1.equals(tmp0_other_with_cast.hcs_1)) return false; return true; }; function Companion_78() { } protoOf(Companion_78).x4r = function () { return $serializer_getInstance_75(); }; var Companion_instance_79; function Companion_getInstance_81() { return Companion_instance_79; } function $serializer_75() { $serializer_instance_75 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseGroupMemberAndName', this, 5); tmp0_serialDesc.d4g('cgm', true); tmp0_serialDesc.d4g('name', true); tmp0_serialDesc.d4g('personUid', true); tmp0_serialDesc.d4g('enrolmentIsActive', true); tmp0_serialDesc.d4g('pictureUri', true); this.zk8_1 = tmp0_serialDesc; } protoOf($serializer_75).a45 = function () { return this.zk8_1; }; protoOf($serializer_75).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_74()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_75).c45 = function (decoder) { var tmp0_desc = this.zk8_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = new Long(0, 0); var tmp7_local3 = false; var tmp8_local4 = null; var tmp9_input = decoder.s48(tmp0_desc); if (tmp9_input.h49()) { tmp4_local0 = tmp9_input.g49(tmp0_desc, 0, $serializer_getInstance_74(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.u48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.g49(tmp0_desc, 0, $serializer_getInstance_74(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.u48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.t48(tmp0_desc); return CourseGroupMemberAndName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_75).ak9 = function (encoder, value) { var tmp0_desc = this.zk8_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.vcs_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_74(), value.vcs_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.wcs_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.wcs_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.xcs_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.xcs_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.ycs_1 === false)) { tmp1_output.y49(tmp0_desc, 3, value.ycs_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.zcs_1 == null)) { tmp1_output.k4a(tmp0_desc, 4, StringSerializer_getInstance(), value.zcs_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_75).b45 = function (encoder, value) { return this.ak9(encoder, value instanceof CourseGroupMemberAndName ? value : THROW_CCE()); }; var $serializer_instance_75; function $serializer_getInstance_75() { if ($serializer_instance_75 == null) new $serializer_75(); return $serializer_instance_75; } function CourseGroupMemberAndName_init_$Init$(seen1, cgm, name, personUid, enrolmentIsActive, pictureUri, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_75().zk8_1); } if (0 === (seen1 & 1)) $this.vcs_1 = null; else $this.vcs_1 = cgm; if (0 === (seen1 & 2)) $this.wcs_1 = null; else $this.wcs_1 = name; if (0 === (seen1 & 4)) $this.xcs_1 = new Long(0, 0); else $this.xcs_1 = personUid; if (0 === (seen1 & 8)) $this.ycs_1 = false; else $this.ycs_1 = enrolmentIsActive; if (0 === (seen1 & 16)) $this.zcs_1 = null; else $this.zcs_1 = pictureUri; return $this; } function CourseGroupMemberAndName_init_$Create$(seen1, cgm, name, personUid, enrolmentIsActive, pictureUri, serializationConstructorMarker) { return CourseGroupMemberAndName_init_$Init$(seen1, cgm, name, personUid, enrolmentIsActive, pictureUri, serializationConstructorMarker, objectCreate(protoOf(CourseGroupMemberAndName))); } function CourseGroupMemberAndName(cgm, name, personUid, enrolmentIsActive, pictureUri) { cgm = cgm === VOID ? null : cgm; name = name === VOID ? null : name; personUid = personUid === VOID ? new Long(0, 0) : personUid; enrolmentIsActive = enrolmentIsActive === VOID ? false : enrolmentIsActive; pictureUri = pictureUri === VOID ? null : pictureUri; this.vcs_1 = cgm; this.wcs_1 = name; this.xcs_1 = personUid; this.ycs_1 = enrolmentIsActive; this.zcs_1 = pictureUri; } protoOf(CourseGroupMemberAndName).bk9 = function (cgm, name, personUid, enrolmentIsActive, pictureUri) { return new CourseGroupMemberAndName(cgm, name, personUid, enrolmentIsActive, pictureUri); }; protoOf(CourseGroupMemberAndName).ck9 = function (cgm, name, personUid, enrolmentIsActive, pictureUri, $super) { cgm = cgm === VOID ? this.vcs_1 : cgm; name = name === VOID ? this.wcs_1 : name; personUid = personUid === VOID ? this.xcs_1 : personUid; enrolmentIsActive = enrolmentIsActive === VOID ? this.ycs_1 : enrolmentIsActive; pictureUri = pictureUri === VOID ? this.zcs_1 : pictureUri; return $super === VOID ? this.bk9(cgm, name, personUid, enrolmentIsActive, pictureUri) : $super.bk9.call(this, cgm, name, personUid, enrolmentIsActive, pictureUri); }; protoOf(CourseGroupMemberAndName).toString = function () { return 'CourseGroupMemberAndName(cgm=' + this.vcs_1 + ', name=' + this.wcs_1 + ', personUid=' + this.xcs_1.toString() + ', enrolmentIsActive=' + this.ycs_1 + ', pictureUri=' + this.zcs_1 + ')'; }; protoOf(CourseGroupMemberAndName).hashCode = function () { var result = this.vcs_1 == null ? 0 : this.vcs_1.hashCode(); result = imul(result, 31) + (this.wcs_1 == null ? 0 : getStringHashCode(this.wcs_1)) | 0; result = imul(result, 31) + this.xcs_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.ycs_1) | 0; result = imul(result, 31) + (this.zcs_1 == null ? 0 : getStringHashCode(this.zcs_1)) | 0; return result; }; protoOf(CourseGroupMemberAndName).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseGroupMemberAndName)) return false; var tmp0_other_with_cast = other instanceof CourseGroupMemberAndName ? other : THROW_CCE(); if (!equals(this.vcs_1, tmp0_other_with_cast.vcs_1)) return false; if (!(this.wcs_1 == tmp0_other_with_cast.wcs_1)) return false; if (!this.xcs_1.equals(tmp0_other_with_cast.xcs_1)) return false; if (!(this.ycs_1 === tmp0_other_with_cast.ycs_1)) return false; if (!(this.zcs_1 == tmp0_other_with_cast.zcs_1)) return false; return true; }; function Companion_79() { this.dk9_1 = 242; } protoOf(Companion_79).x4r = function () { return $serializer_getInstance_76(); }; var Companion_instance_80; function Companion_getInstance_82() { return Companion_instance_80; } function $serializer_76() { $serializer_instance_76 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseGroupSet', this, 6); tmp0_serialDesc.d4g('cgsUid', true); tmp0_serialDesc.d4g('cgsName', true); tmp0_serialDesc.d4g('cgsTotalGroups', true); tmp0_serialDesc.d4g('cgsActive', true); tmp0_serialDesc.d4g('cgsClazzUid', true); tmp0_serialDesc.d4g('cgsLct', true); this.ek9_1 = tmp0_serialDesc; } protoOf($serializer_76).a45 = function () { return this.ek9_1; }; protoOf($serializer_76).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_76).c45 = function (decoder) { var tmp0_desc = this.ek9_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = 0; var tmp7_local3 = false; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_input = decoder.s48(tmp0_desc); if (tmp10_input.h49()) { tmp4_local0 = tmp10_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.u48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.u48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.t48(tmp0_desc); return CourseGroupSet_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_76).fk9 = function (encoder, value) { var tmp0_desc = this.ek9_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.y7z_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.y7z_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.z7z_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.z7z_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.a80_1 === 4)) { tmp1_output.b4a(tmp0_desc, 2, value.a80_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.b80_1 === true)) { tmp1_output.y49(tmp0_desc, 3, value.b80_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.c80_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.c80_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.d80_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.d80_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_76).b45 = function (encoder, value) { return this.fk9(encoder, value instanceof CourseGroupSet ? value : THROW_CCE()); }; var $serializer_instance_76; function $serializer_getInstance_76() { if ($serializer_instance_76 == null) new $serializer_76(); return $serializer_instance_76; } function CourseGroupSet_init_$Init$(seen1, cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_76().ek9_1); } if (0 === (seen1 & 1)) $this.y7z_1 = new Long(0, 0); else $this.y7z_1 = cgsUid; if (0 === (seen1 & 2)) $this.z7z_1 = null; else $this.z7z_1 = cgsName; if (0 === (seen1 & 4)) $this.a80_1 = 4; else $this.a80_1 = cgsTotalGroups; if (0 === (seen1 & 8)) $this.b80_1 = true; else $this.b80_1 = cgsActive; if (0 === (seen1 & 16)) $this.c80_1 = new Long(0, 0); else $this.c80_1 = cgsClazzUid; if (0 === (seen1 & 32)) $this.d80_1 = new Long(0, 0); else $this.d80_1 = cgsLct; return $this; } function CourseGroupSet_init_$Create$(seen1, cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct, serializationConstructorMarker) { return CourseGroupSet_init_$Init$(seen1, cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct, serializationConstructorMarker, objectCreate(protoOf(CourseGroupSet))); } function CourseGroupSet() { this.y7z_1 = new Long(0, 0); this.z7z_1 = null; this.a80_1 = 4; this.b80_1 = true; this.c80_1 = new Long(0, 0); this.d80_1 = new Long(0, 0); } function Companion_80() { Companion_instance_81 = this; this.gk9_1 = 10012; this.hk9_1 = new Long(8703, 0); this.ik9_1 = new Long(8193, 0); } protoOf(Companion_80).x4r = function () { return $serializer_getInstance_77(); }; var Companion_instance_81; function Companion_getInstance_83() { if (Companion_instance_81 == null) new Companion_80(); return Companion_instance_81; } function $serializer_77() { $serializer_instance_77 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CoursePermission', this, 8); tmp0_serialDesc.d4g('cpUid', true); tmp0_serialDesc.d4g('cpLastModified', true); tmp0_serialDesc.d4g('cpClazzUid', true); tmp0_serialDesc.d4g('cpToEnrolmentRole', true); tmp0_serialDesc.d4g('cpToPersonUid', true); tmp0_serialDesc.d4g('cpToGroupUid', true); tmp0_serialDesc.d4g('cpPermissionsFlag', true); tmp0_serialDesc.d4g('cpIsDeleted', true); this.jk9_1 = tmp0_serialDesc; } protoOf($serializer_77).a45 = function () { return this.jk9_1; }; protoOf($serializer_77).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_77).c45 = function (decoder) { var tmp0_desc = this.jk9_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = 0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = new Long(0, 0); var tmp11_local7 = false; var tmp12_input = decoder.s48(tmp0_desc); if (tmp12_input.h49()) { tmp4_local0 = tmp12_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.u48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.u48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.t48(tmp0_desc); return CoursePermission_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_77).kk9 = function (encoder, value) { var tmp0_desc = this.jk9_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.nd8_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.nd8_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.od8_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.od8_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.pd8_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.pd8_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.qd8_1 === 0)) { tmp1_output.b4a(tmp0_desc, 3, value.qd8_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.rd8_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.rd8_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.sd8_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.sd8_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.td8_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.td8_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.ud8_1 === false)) { tmp1_output.y49(tmp0_desc, 7, value.ud8_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_77).b45 = function (encoder, value) { return this.kk9(encoder, value instanceof CoursePermission ? value : THROW_CCE()); }; var $serializer_instance_77; function $serializer_getInstance_77() { if ($serializer_instance_77 == null) new $serializer_77(); return $serializer_instance_77; } function CoursePermission_init_$Init$(seen1, cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_77().jk9_1); } if (0 === (seen1 & 1)) $this.nd8_1 = new Long(0, 0); else $this.nd8_1 = cpUid; if (0 === (seen1 & 2)) $this.od8_1 = new Long(0, 0); else $this.od8_1 = cpLastModified; if (0 === (seen1 & 4)) $this.pd8_1 = new Long(0, 0); else $this.pd8_1 = cpClazzUid; if (0 === (seen1 & 8)) $this.qd8_1 = 0; else $this.qd8_1 = cpToEnrolmentRole; if (0 === (seen1 & 16)) $this.rd8_1 = new Long(0, 0); else $this.rd8_1 = cpToPersonUid; if (0 === (seen1 & 32)) $this.sd8_1 = new Long(0, 0); else $this.sd8_1 = cpToGroupUid; if (0 === (seen1 & 64)) $this.td8_1 = new Long(0, 0); else $this.td8_1 = cpPermissionsFlag; if (0 === (seen1 & 128)) $this.ud8_1 = false; else $this.ud8_1 = cpIsDeleted; return $this; } function CoursePermission_init_$Create$(seen1, cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted, serializationConstructorMarker) { return CoursePermission_init_$Init$(seen1, cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted, serializationConstructorMarker, objectCreate(protoOf(CoursePermission))); } function CoursePermission(cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted) { Companion_getInstance_83(); cpUid = cpUid === VOID ? new Long(0, 0) : cpUid; cpLastModified = cpLastModified === VOID ? new Long(0, 0) : cpLastModified; cpClazzUid = cpClazzUid === VOID ? new Long(0, 0) : cpClazzUid; cpToEnrolmentRole = cpToEnrolmentRole === VOID ? 0 : cpToEnrolmentRole; cpToPersonUid = cpToPersonUid === VOID ? new Long(0, 0) : cpToPersonUid; cpToGroupUid = cpToGroupUid === VOID ? new Long(0, 0) : cpToGroupUid; cpPermissionsFlag = cpPermissionsFlag === VOID ? new Long(0, 0) : cpPermissionsFlag; cpIsDeleted = cpIsDeleted === VOID ? false : cpIsDeleted; this.nd8_1 = cpUid; this.od8_1 = cpLastModified; this.pd8_1 = cpClazzUid; this.qd8_1 = cpToEnrolmentRole; this.rd8_1 = cpToPersonUid; this.sd8_1 = cpToGroupUid; this.td8_1 = cpPermissionsFlag; this.ud8_1 = cpIsDeleted; } protoOf(CoursePermission).lk9 = function (cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted) { return new CoursePermission(cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted); }; protoOf(CoursePermission).mk9 = function (cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted, $super) { cpUid = cpUid === VOID ? this.nd8_1 : cpUid; cpLastModified = cpLastModified === VOID ? this.od8_1 : cpLastModified; cpClazzUid = cpClazzUid === VOID ? this.pd8_1 : cpClazzUid; cpToEnrolmentRole = cpToEnrolmentRole === VOID ? this.qd8_1 : cpToEnrolmentRole; cpToPersonUid = cpToPersonUid === VOID ? this.rd8_1 : cpToPersonUid; cpToGroupUid = cpToGroupUid === VOID ? this.sd8_1 : cpToGroupUid; cpPermissionsFlag = cpPermissionsFlag === VOID ? this.td8_1 : cpPermissionsFlag; cpIsDeleted = cpIsDeleted === VOID ? this.ud8_1 : cpIsDeleted; return $super === VOID ? this.lk9(cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted) : $super.lk9.call(this, cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted); }; protoOf(CoursePermission).toString = function () { return 'CoursePermission(cpUid=' + this.nd8_1.toString() + ', cpLastModified=' + this.od8_1.toString() + ', cpClazzUid=' + this.pd8_1.toString() + ', cpToEnrolmentRole=' + this.qd8_1 + ', cpToPersonUid=' + this.rd8_1.toString() + ', cpToGroupUid=' + this.sd8_1.toString() + ', cpPermissionsFlag=' + this.td8_1.toString() + ', cpIsDeleted=' + this.ud8_1 + ')'; }; protoOf(CoursePermission).hashCode = function () { var result = this.nd8_1.hashCode(); result = imul(result, 31) + this.od8_1.hashCode() | 0; result = imul(result, 31) + this.pd8_1.hashCode() | 0; result = imul(result, 31) + this.qd8_1 | 0; result = imul(result, 31) + this.rd8_1.hashCode() | 0; result = imul(result, 31) + this.sd8_1.hashCode() | 0; result = imul(result, 31) + this.td8_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.ud8_1) | 0; return result; }; protoOf(CoursePermission).equals = function (other) { if (this === other) return true; if (!(other instanceof CoursePermission)) return false; var tmp0_other_with_cast = other instanceof CoursePermission ? other : THROW_CCE(); if (!this.nd8_1.equals(tmp0_other_with_cast.nd8_1)) return false; if (!this.od8_1.equals(tmp0_other_with_cast.od8_1)) return false; if (!this.pd8_1.equals(tmp0_other_with_cast.pd8_1)) return false; if (!(this.qd8_1 === tmp0_other_with_cast.qd8_1)) return false; if (!this.rd8_1.equals(tmp0_other_with_cast.rd8_1)) return false; if (!this.sd8_1.equals(tmp0_other_with_cast.sd8_1)) return false; if (!this.td8_1.equals(tmp0_other_with_cast.td8_1)) return false; if (!(this.ud8_1 === tmp0_other_with_cast.ud8_1)) return false; return true; }; function Companion_81() { this.nk9_1 = 125; } var Companion_instance_82; function Companion_getInstance_84() { return Companion_instance_82; } function $serializer_78() { $serializer_instance_78 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CoursePicture', this, 5); tmp0_serialDesc.d4g('coursePictureUid', true); tmp0_serialDesc.d4g('coursePictureLct', true); tmp0_serialDesc.d4g('coursePictureUri', true); tmp0_serialDesc.d4g('coursePictureThumbnailUri', true); tmp0_serialDesc.d4g('coursePictureActive', true); this.ok9_1 = tmp0_serialDesc; } protoOf($serializer_78).a45 = function () { return this.ok9_1; }; protoOf($serializer_78).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance()]; }; protoOf($serializer_78).c45 = function (decoder) { var tmp0_desc = this.ok9_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = false; var tmp9_input = decoder.s48(tmp0_desc); if (tmp9_input.h49()) { tmp4_local0 = tmp9_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.u48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.u48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.t48(tmp0_desc); return CoursePicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_78).pk9 = function (encoder, value) { var tmp0_desc = this.ok9_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.o8h_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.o8h_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.p8h_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.p8h_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.q8h_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.q8h_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.r8h_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.r8h_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.s8h_1 === true)) { tmp1_output.y49(tmp0_desc, 4, value.s8h_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_78).b45 = function (encoder, value) { return this.pk9(encoder, value instanceof CoursePicture ? value : THROW_CCE()); }; var $serializer_instance_78; function $serializer_getInstance_78() { if ($serializer_instance_78 == null) new $serializer_78(); return $serializer_instance_78; } function CoursePicture_init_$Init$(seen1, coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_78().ok9_1); } if (0 === (seen1 & 1)) $this.o8h_1 = new Long(0, 0); else $this.o8h_1 = coursePictureUid; if (0 === (seen1 & 2)) $this.p8h_1 = new Long(0, 0); else $this.p8h_1 = coursePictureLct; if (0 === (seen1 & 4)) $this.q8h_1 = null; else $this.q8h_1 = coursePictureUri; if (0 === (seen1 & 8)) $this.r8h_1 = null; else $this.r8h_1 = coursePictureThumbnailUri; if (0 === (seen1 & 16)) $this.s8h_1 = true; else $this.s8h_1 = coursePictureActive; return $this; } function CoursePicture_init_$Create$(seen1, coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive, serializationConstructorMarker) { return CoursePicture_init_$Init$(seen1, coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive, serializationConstructorMarker, objectCreate(protoOf(CoursePicture))); } function CoursePicture(coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive) { coursePictureUid = coursePictureUid === VOID ? new Long(0, 0) : coursePictureUid; coursePictureLct = coursePictureLct === VOID ? new Long(0, 0) : coursePictureLct; coursePictureUri = coursePictureUri === VOID ? null : coursePictureUri; coursePictureThumbnailUri = coursePictureThumbnailUri === VOID ? null : coursePictureThumbnailUri; coursePictureActive = coursePictureActive === VOID ? true : coursePictureActive; this.o8h_1 = coursePictureUid; this.p8h_1 = coursePictureLct; this.q8h_1 = coursePictureUri; this.r8h_1 = coursePictureThumbnailUri; this.s8h_1 = coursePictureActive; } protoOf(CoursePicture).qk9 = function (coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive) { return new CoursePicture(coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive); }; protoOf(CoursePicture).rk9 = function (coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive, $super) { coursePictureUid = coursePictureUid === VOID ? this.o8h_1 : coursePictureUid; coursePictureLct = coursePictureLct === VOID ? this.p8h_1 : coursePictureLct; coursePictureUri = coursePictureUri === VOID ? this.q8h_1 : coursePictureUri; coursePictureThumbnailUri = coursePictureThumbnailUri === VOID ? this.r8h_1 : coursePictureThumbnailUri; coursePictureActive = coursePictureActive === VOID ? this.s8h_1 : coursePictureActive; return $super === VOID ? this.qk9(coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive) : $super.qk9.call(this, coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive); }; protoOf(CoursePicture).toString = function () { return 'CoursePicture(coursePictureUid=' + this.o8h_1.toString() + ', coursePictureLct=' + this.p8h_1.toString() + ', coursePictureUri=' + this.q8h_1 + ', coursePictureThumbnailUri=' + this.r8h_1 + ', coursePictureActive=' + this.s8h_1 + ')'; }; protoOf(CoursePicture).hashCode = function () { var result = this.o8h_1.hashCode(); result = imul(result, 31) + this.p8h_1.hashCode() | 0; result = imul(result, 31) + (this.q8h_1 == null ? 0 : getStringHashCode(this.q8h_1)) | 0; result = imul(result, 31) + (this.r8h_1 == null ? 0 : getStringHashCode(this.r8h_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.s8h_1) | 0; return result; }; protoOf(CoursePicture).equals = function (other) { if (this === other) return true; if (!(other instanceof CoursePicture)) return false; var tmp0_other_with_cast = other instanceof CoursePicture ? other : THROW_CCE(); if (!this.o8h_1.equals(tmp0_other_with_cast.o8h_1)) return false; if (!this.p8h_1.equals(tmp0_other_with_cast.p8h_1)) return false; if (!(this.q8h_1 == tmp0_other_with_cast.q8h_1)) return false; if (!(this.r8h_1 == tmp0_other_with_cast.r8h_1)) return false; if (!(this.s8h_1 === tmp0_other_with_cast.s8h_1)) return false; return true; }; function Companion_82() { this.sk9_1 = 450; } protoOf(Companion_82).x4r = function () { return $serializer_getInstance_79(); }; var Companion_instance_83; function Companion_getInstance_85() { return Companion_instance_83; } function $serializer_79() { $serializer_instance_79 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseTerminology', this, 4); tmp0_serialDesc.d4g('ctUid', true); tmp0_serialDesc.d4g('ctTitle', true); tmp0_serialDesc.d4g('ctTerminology', true); tmp0_serialDesc.d4g('ctLct', true); this.tk9_1 = tmp0_serialDesc; } protoOf($serializer_79).a45 = function () { return this.tk9_1; }; protoOf($serializer_79).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()]; }; protoOf($serializer_79).c45 = function (decoder) { var tmp0_desc = this.tk9_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = new Long(0, 0); var tmp8_input = decoder.s48(tmp0_desc); if (tmp8_input.h49()) { tmp4_local0 = tmp8_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.t48(tmp0_desc); return CourseTerminology_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_79).uk9 = function (encoder, value) { var tmp0_desc = this.tk9_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.k8h_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.k8h_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.l8h_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.l8h_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.m8h_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.m8h_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.n8h_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.n8h_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_79).b45 = function (encoder, value) { return this.uk9(encoder, value instanceof CourseTerminology ? value : THROW_CCE()); }; var $serializer_instance_79; function $serializer_getInstance_79() { if ($serializer_instance_79 == null) new $serializer_79(); return $serializer_instance_79; } function CourseTerminology_init_$Init$(seen1, ctUid, ctTitle, ctTerminology, ctLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_79().tk9_1); } if (0 === (seen1 & 1)) $this.k8h_1 = new Long(0, 0); else $this.k8h_1 = ctUid; if (0 === (seen1 & 2)) $this.l8h_1 = null; else $this.l8h_1 = ctTitle; if (0 === (seen1 & 4)) $this.m8h_1 = null; else $this.m8h_1 = ctTerminology; if (0 === (seen1 & 8)) $this.n8h_1 = new Long(0, 0); else $this.n8h_1 = ctLct; return $this; } function CourseTerminology_init_$Create$(seen1, ctUid, ctTitle, ctTerminology, ctLct, serializationConstructorMarker) { return CourseTerminology_init_$Init$(seen1, ctUid, ctTitle, ctTerminology, ctLct, serializationConstructorMarker, objectCreate(protoOf(CourseTerminology))); } function CourseTerminology() { this.k8h_1 = new Long(0, 0); this.l8h_1 = null; this.m8h_1 = null; this.n8h_1 = new Long(0, 0); } function Companion_83() { this.vk9_1 = 999; this.wk9_1 = 1; this.xk9_1 = 2; this.yk9_1 = 3; } var Companion_instance_84; function Companion_getInstance_86() { return Companion_instance_84; } function $serializer_80() { $serializer_instance_80 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.DeletedItem', this, 10); tmp0_serialDesc.d4g('delItemUid', true); tmp0_serialDesc.d4g('delItemName', true); tmp0_serialDesc.d4g('delItemIconUri', true); tmp0_serialDesc.d4g('delItemLastModTime', true); tmp0_serialDesc.d4g('delItemTimeDeleted', true); tmp0_serialDesc.d4g('delItemEntityTable', true); tmp0_serialDesc.d4g('delItemEntityUid', true); tmp0_serialDesc.d4g('delItemDeletedByPersonUid', true); tmp0_serialDesc.d4g('delItemStatus', true); tmp0_serialDesc.d4g('delItemIsFolder', true); this.zk9_1 = tmp0_serialDesc; } protoOf($serializer_80).a45 = function () { return this.zk9_1; }; protoOf($serializer_80).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_80).c45 = function (decoder) { var tmp0_desc = this.zk9_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = 0; var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = 0; var tmp13_local9 = false; var tmp14_input = decoder.s48(tmp0_desc); if (tmp14_input.h49()) { tmp4_local0 = tmp14_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp14_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp14_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp14_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp14_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp14_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp14_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp14_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp14_input.x48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp14_input.u48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; } else while (tmp1_flag) { tmp2_index = tmp14_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp14_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp14_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp14_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp14_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp14_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp14_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp14_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp14_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp14_input.x48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp14_input.u48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp14_input.t48(tmp0_desc); return DeletedItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); }; protoOf($serializer_80).aka = function (encoder, value) { var tmp0_desc = this.zk9_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.te3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.te3_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.ue3_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.ue3_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.ve3_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.ve3_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.we3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.we3_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.xe3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.xe3_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.ye3_1 === 0)) { tmp1_output.b4a(tmp0_desc, 5, value.ye3_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.ze3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.ze3_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.ae4_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.ae4_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !(value.be4_1 === 1)) { tmp1_output.b4a(tmp0_desc, 8, value.be4_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !(value.ce4_1 === false)) { tmp1_output.y49(tmp0_desc, 9, value.ce4_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_80).b45 = function (encoder, value) { return this.aka(encoder, value instanceof DeletedItem ? value : THROW_CCE()); }; var $serializer_instance_80; function $serializer_getInstance_80() { if ($serializer_instance_80 == null) new $serializer_80(); return $serializer_instance_80; } function DeletedItem_init_$Init$(seen1, delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_80().zk9_1); } if (0 === (seen1 & 1)) $this.te3_1 = new Long(0, 0); else $this.te3_1 = delItemUid; if (0 === (seen1 & 2)) $this.ue3_1 = null; else $this.ue3_1 = delItemName; if (0 === (seen1 & 4)) $this.ve3_1 = null; else $this.ve3_1 = delItemIconUri; if (0 === (seen1 & 8)) $this.we3_1 = new Long(0, 0); else $this.we3_1 = delItemLastModTime; if (0 === (seen1 & 16)) $this.xe3_1 = new Long(0, 0); else $this.xe3_1 = delItemTimeDeleted; if (0 === (seen1 & 32)) $this.ye3_1 = 0; else $this.ye3_1 = delItemEntityTable; if (0 === (seen1 & 64)) $this.ze3_1 = new Long(0, 0); else $this.ze3_1 = delItemEntityUid; if (0 === (seen1 & 128)) $this.ae4_1 = new Long(0, 0); else $this.ae4_1 = delItemDeletedByPersonUid; if (0 === (seen1 & 256)) $this.be4_1 = 1; else $this.be4_1 = delItemStatus; if (0 === (seen1 & 512)) $this.ce4_1 = false; else $this.ce4_1 = delItemIsFolder; return $this; } function DeletedItem_init_$Create$(seen1, delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder, serializationConstructorMarker) { return DeletedItem_init_$Init$(seen1, delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder, serializationConstructorMarker, objectCreate(protoOf(DeletedItem))); } function DeletedItem(delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder) { delItemUid = delItemUid === VOID ? new Long(0, 0) : delItemUid; delItemName = delItemName === VOID ? null : delItemName; delItemIconUri = delItemIconUri === VOID ? null : delItemIconUri; delItemLastModTime = delItemLastModTime === VOID ? new Long(0, 0) : delItemLastModTime; delItemTimeDeleted = delItemTimeDeleted === VOID ? new Long(0, 0) : delItemTimeDeleted; delItemEntityTable = delItemEntityTable === VOID ? 0 : delItemEntityTable; delItemEntityUid = delItemEntityUid === VOID ? new Long(0, 0) : delItemEntityUid; delItemDeletedByPersonUid = delItemDeletedByPersonUid === VOID ? new Long(0, 0) : delItemDeletedByPersonUid; delItemStatus = delItemStatus === VOID ? 1 : delItemStatus; delItemIsFolder = delItemIsFolder === VOID ? false : delItemIsFolder; this.te3_1 = delItemUid; this.ue3_1 = delItemName; this.ve3_1 = delItemIconUri; this.we3_1 = delItemLastModTime; this.xe3_1 = delItemTimeDeleted; this.ye3_1 = delItemEntityTable; this.ze3_1 = delItemEntityUid; this.ae4_1 = delItemDeletedByPersonUid; this.be4_1 = delItemStatus; this.ce4_1 = delItemIsFolder; } protoOf(DeletedItem).toString = function () { return 'DeletedItem(delItemUid=' + this.te3_1.toString() + ', delItemName=' + this.ue3_1 + ', delItemIconUri=' + this.ve3_1 + ', delItemLastModTime=' + this.we3_1.toString() + ', delItemTimeDeleted=' + this.xe3_1.toString() + ', delItemEntityTable=' + this.ye3_1 + ', delItemEntityUid=' + this.ze3_1.toString() + ', delItemDeletedByPersonUid=' + this.ae4_1.toString() + ', delItemStatus=' + this.be4_1 + ', delItemIsFolder=' + this.ce4_1 + ')'; }; protoOf(DeletedItem).hashCode = function () { var result = this.te3_1.hashCode(); result = imul(result, 31) + (this.ue3_1 == null ? 0 : getStringHashCode(this.ue3_1)) | 0; result = imul(result, 31) + (this.ve3_1 == null ? 0 : getStringHashCode(this.ve3_1)) | 0; result = imul(result, 31) + this.we3_1.hashCode() | 0; result = imul(result, 31) + this.xe3_1.hashCode() | 0; result = imul(result, 31) + this.ye3_1 | 0; result = imul(result, 31) + this.ze3_1.hashCode() | 0; result = imul(result, 31) + this.ae4_1.hashCode() | 0; result = imul(result, 31) + this.be4_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.ce4_1) | 0; return result; }; protoOf(DeletedItem).equals = function (other) { if (this === other) return true; if (!(other instanceof DeletedItem)) return false; var tmp0_other_with_cast = other instanceof DeletedItem ? other : THROW_CCE(); if (!this.te3_1.equals(tmp0_other_with_cast.te3_1)) return false; if (!(this.ue3_1 == tmp0_other_with_cast.ue3_1)) return false; if (!(this.ve3_1 == tmp0_other_with_cast.ve3_1)) return false; if (!this.we3_1.equals(tmp0_other_with_cast.we3_1)) return false; if (!this.xe3_1.equals(tmp0_other_with_cast.xe3_1)) return false; if (!(this.ye3_1 === tmp0_other_with_cast.ye3_1)) return false; if (!this.ze3_1.equals(tmp0_other_with_cast.ze3_1)) return false; if (!this.ae4_1.equals(tmp0_other_with_cast.ae4_1)) return false; if (!(this.be4_1 === tmp0_other_with_cast.be4_1)) return false; if (!(this.ce4_1 === tmp0_other_with_cast.ce4_1)) return false; return true; }; function Companion_84() { this.bka_1 = 132; } protoOf(Companion_84).x4r = function () { return $serializer_getInstance_81(); }; var Companion_instance_85; function Companion_getInstance_87() { return Companion_instance_85; } function $serializer_81() { $serializer_instance_81 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.DiscussionPost', this, 12); tmp0_serialDesc.d4g('discussionPostUid', true); tmp0_serialDesc.d4g('discussionPostReplyToPostUid', true); tmp0_serialDesc.d4g('discussionPostTitle', true); tmp0_serialDesc.d4g('discussionPostMessage', true); tmp0_serialDesc.d4g('discussionPostStartDate', true); tmp0_serialDesc.d4g('discussionPostCourseBlockUid', true); tmp0_serialDesc.d4g('dpDeleted', true); tmp0_serialDesc.d4g('discussionPostStartedPersonUid', true); tmp0_serialDesc.d4g('discussionPostClazzUid', true); tmp0_serialDesc.d4g('discussionPostLct', true); tmp0_serialDesc.d4g('discussionPostVisible', true); tmp0_serialDesc.d4g('discussionPostArchive', true); this.cka_1 = tmp0_serialDesc; } protoOf($serializer_81).a45 = function () { return this.cka_1; }; protoOf($serializer_81).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_81).c45 = function (decoder) { var tmp0_desc = this.cka_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = false; var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = new Long(0, 0); var tmp14_local10 = false; var tmp15_local11 = false; var tmp16_input = decoder.s48(tmp0_desc); if (tmp16_input.h49()) { tmp4_local0 = tmp16_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp16_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp16_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp16_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp16_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp16_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp16_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp16_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp16_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp16_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp16_input.u48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp16_input.u48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; } else while (tmp1_flag) { tmp2_index = tmp16_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp16_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp16_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp16_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp16_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp16_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp16_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp16_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp16_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp16_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp16_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp16_input.u48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp16_input.u48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp16_input.t48(tmp0_desc); return DiscussionPost_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); }; protoOf($serializer_81).dka = function (encoder, value) { var tmp0_desc = this.cka_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.bea_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.bea_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.cea_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.cea_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.dea_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.dea_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.eea_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.eea_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.fea_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.fea_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.gea_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.gea_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.hea_1 === false)) { tmp1_output.y49(tmp0_desc, 6, value.hea_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.iea_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.iea_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !value.jea_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 8, value.jea_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !value.kea_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 9, value.kea_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !(value.lea_1 === false)) { tmp1_output.y49(tmp0_desc, 10, value.lea_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !(value.mea_1 === false)) { tmp1_output.y49(tmp0_desc, 11, value.mea_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_81).b45 = function (encoder, value) { return this.dka(encoder, value instanceof DiscussionPost ? value : THROW_CCE()); }; var $serializer_instance_81; function $serializer_getInstance_81() { if ($serializer_instance_81 == null) new $serializer_81(); return $serializer_instance_81; } function DiscussionPost_init_$Init$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_81().cka_1); } if (0 === (seen1 & 1)) $this.bea_1 = new Long(0, 0); else $this.bea_1 = discussionPostUid; if (0 === (seen1 & 2)) $this.cea_1 = new Long(0, 0); else $this.cea_1 = discussionPostReplyToPostUid; if (0 === (seen1 & 4)) $this.dea_1 = null; else $this.dea_1 = discussionPostTitle; if (0 === (seen1 & 8)) $this.eea_1 = null; else $this.eea_1 = discussionPostMessage; if (0 === (seen1 & 16)) $this.fea_1 = new Long(0, 0); else $this.fea_1 = discussionPostStartDate; if (0 === (seen1 & 32)) $this.gea_1 = new Long(0, 0); else $this.gea_1 = discussionPostCourseBlockUid; if (0 === (seen1 & 64)) $this.hea_1 = false; else $this.hea_1 = dpDeleted; if (0 === (seen1 & 128)) $this.iea_1 = new Long(0, 0); else $this.iea_1 = discussionPostStartedPersonUid; if (0 === (seen1 & 256)) $this.jea_1 = new Long(0, 0); else $this.jea_1 = discussionPostClazzUid; if (0 === (seen1 & 512)) $this.kea_1 = new Long(0, 0); else $this.kea_1 = discussionPostLct; if (0 === (seen1 & 1024)) $this.lea_1 = false; else $this.lea_1 = discussionPostVisible; if (0 === (seen1 & 2048)) $this.mea_1 = false; else $this.mea_1 = discussionPostArchive; return $this; } function DiscussionPost_init_$Create$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, serializationConstructorMarker) { return DiscussionPost_init_$Init$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, serializationConstructorMarker, objectCreate(protoOf(DiscussionPost))); } function DiscussionPost() { this.bea_1 = new Long(0, 0); this.cea_1 = new Long(0, 0); this.dea_1 = null; this.eea_1 = null; this.fea_1 = new Long(0, 0); this.gea_1 = new Long(0, 0); this.hea_1 = false; this.iea_1 = new Long(0, 0); this.jea_1 = new Long(0, 0); this.kea_1 = new Long(0, 0); this.lea_1 = false; this.mea_1 = false; } function Companion_85() { } var Companion_instance_86; function Companion_getInstance_88() { return Companion_instance_86; } function $serializer_82() { $serializer_instance_82 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.DiscussionPostWithDetails', this, 18); tmp0_serialDesc.d4g('discussionPostUid', true); tmp0_serialDesc.d4g('discussionPostReplyToPostUid', true); tmp0_serialDesc.d4g('discussionPostTitle', true); tmp0_serialDesc.d4g('discussionPostMessage', true); tmp0_serialDesc.d4g('discussionPostStartDate', true); tmp0_serialDesc.d4g('discussionPostCourseBlockUid', true); tmp0_serialDesc.d4g('dpDeleted', true); tmp0_serialDesc.d4g('discussionPostStartedPersonUid', true); tmp0_serialDesc.d4g('discussionPostClazzUid', true); tmp0_serialDesc.d4g('discussionPostLct', true); tmp0_serialDesc.d4g('discussionPostVisible', true); tmp0_serialDesc.d4g('discussionPostArchive', true); tmp0_serialDesc.d4g('authorPersonFirstNames', true); tmp0_serialDesc.d4g('authorPersonLastName', true); tmp0_serialDesc.d4g('authorPictureUri', true); tmp0_serialDesc.d4g('postLatestMessage', true); tmp0_serialDesc.d4g('postRepliesCount', true); tmp0_serialDesc.d4g('postLatestMessageTimestamp', true); this.eka_1 = tmp0_serialDesc; } protoOf($serializer_82).a45 = function () { return this.eka_1; }; protoOf($serializer_82).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_82).c45 = function (decoder) { var tmp0_desc = this.eka_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = false; var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = new Long(0, 0); var tmp14_local10 = false; var tmp15_local11 = false; var tmp16_local12 = null; var tmp17_local13 = null; var tmp18_local14 = null; var tmp19_local15 = null; var tmp20_local16 = 0; var tmp21_local17 = new Long(0, 0); var tmp22_input = decoder.s48(tmp0_desc); if (tmp22_input.h49()) { tmp4_local0 = tmp22_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp22_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp22_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp22_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp22_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp22_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp22_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp22_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp22_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp22_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp22_input.u48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp22_input.u48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp22_input.g49(tmp0_desc, 12, StringSerializer_getInstance(), tmp16_local12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp22_input.g49(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp22_input.g49(tmp0_desc, 14, StringSerializer_getInstance(), tmp18_local14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp22_input.g49(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp22_input.x48(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp22_input.y48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; } else while (tmp1_flag) { tmp2_index = tmp22_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp22_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp22_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp22_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp22_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp22_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp22_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp22_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp22_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp22_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp22_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp22_input.u48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp22_input.u48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp22_input.g49(tmp0_desc, 12, StringSerializer_getInstance(), tmp16_local12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp22_input.g49(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp22_input.g49(tmp0_desc, 14, StringSerializer_getInstance(), tmp18_local14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp22_input.g49(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp22_input.x48(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp22_input.y48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp22_input.t48(tmp0_desc); return DiscussionPostWithDetails_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, null); }; protoOf($serializer_82).fka = function (encoder, value) { var tmp0_desc = this.eka_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.bea_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.bea_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.cea_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.cea_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.dea_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.dea_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.eea_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.eea_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.fea_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.fea_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.gea_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.gea_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.hea_1 === false)) { tmp1_output.y49(tmp0_desc, 6, value.hea_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.iea_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.iea_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !value.jea_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 8, value.jea_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !value.kea_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 9, value.kea_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !(value.lea_1 === false)) { tmp1_output.y49(tmp0_desc, 10, value.lea_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !(value.mea_1 === false)) { tmp1_output.y49(tmp0_desc, 11, value.mea_1); } if (tmp1_output.o4a(tmp0_desc, 12) ? true : !(value.meb_1 == null)) { tmp1_output.k4a(tmp0_desc, 12, StringSerializer_getInstance(), value.meb_1); } if (tmp1_output.o4a(tmp0_desc, 13) ? true : !(value.neb_1 == null)) { tmp1_output.k4a(tmp0_desc, 13, StringSerializer_getInstance(), value.neb_1); } if (tmp1_output.o4a(tmp0_desc, 14) ? true : !(value.oeb_1 == null)) { tmp1_output.k4a(tmp0_desc, 14, StringSerializer_getInstance(), value.oeb_1); } if (tmp1_output.o4a(tmp0_desc, 15) ? true : !(value.peb_1 == null)) { tmp1_output.k4a(tmp0_desc, 15, StringSerializer_getInstance(), value.peb_1); } if (tmp1_output.o4a(tmp0_desc, 16) ? true : !(value.qeb_1 === 0)) { tmp1_output.b4a(tmp0_desc, 16, value.qeb_1); } if (tmp1_output.o4a(tmp0_desc, 17) ? true : !value.reb_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 17, value.reb_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_82).b45 = function (encoder, value) { return this.fka(encoder, value instanceof DiscussionPostWithDetails ? value : THROW_CCE()); }; var $serializer_instance_82; function $serializer_getInstance_82() { if ($serializer_instance_82 == null) new $serializer_82(); return $serializer_instance_82; } function DiscussionPostWithDetails_init_$Init$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, authorPersonFirstNames, authorPersonLastName, authorPictureUri, postLatestMessage, postRepliesCount, postLatestMessageTimestamp, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_82().eka_1); } DiscussionPost_init_$Init$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, serializationConstructorMarker, $this); if (0 === (seen1 & 4096)) $this.meb_1 = null; else $this.meb_1 = authorPersonFirstNames; if (0 === (seen1 & 8192)) $this.neb_1 = null; else $this.neb_1 = authorPersonLastName; if (0 === (seen1 & 16384)) $this.oeb_1 = null; else $this.oeb_1 = authorPictureUri; if (0 === (seen1 & 32768)) $this.peb_1 = null; else $this.peb_1 = postLatestMessage; if (0 === (seen1 & 65536)) $this.qeb_1 = 0; else $this.qeb_1 = postRepliesCount; if (0 === (seen1 & 131072)) $this.reb_1 = new Long(0, 0); else $this.reb_1 = postLatestMessageTimestamp; return $this; } function DiscussionPostWithDetails_init_$Create$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, authorPersonFirstNames, authorPersonLastName, authorPictureUri, postLatestMessage, postRepliesCount, postLatestMessageTimestamp, serializationConstructorMarker) { return DiscussionPostWithDetails_init_$Init$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, authorPersonFirstNames, authorPersonLastName, authorPictureUri, postLatestMessage, postRepliesCount, postLatestMessageTimestamp, serializationConstructorMarker, objectCreate(protoOf(DiscussionPostWithDetails))); } function DiscussionPostWithDetails() { DiscussionPost.call(this); this.meb_1 = null; this.neb_1 = null; this.oeb_1 = null; this.peb_1 = null; this.qeb_1 = 0; this.reb_1 = new Long(0, 0); } function Companion_86() { this.gka_1 = 1; this.hka_1 = 2; this.ika_1 = 3; this.jka_1 = 4; this.kka_1 = 10070; } var Companion_instance_87; function Companion_getInstance_89() { return Companion_instance_87; } function $serializer_83() { $serializer_instance_83 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.EnrolmentRequest', this, 14); tmp0_serialDesc.d4g('erUid', true); tmp0_serialDesc.d4g('erClazzUid', true); tmp0_serialDesc.d4g('erClazzName', true); tmp0_serialDesc.d4g('erPersonUid', true); tmp0_serialDesc.d4g('erPersonFullname', true); tmp0_serialDesc.d4g('erPersonPictureUri', true); tmp0_serialDesc.d4g('erPersonUsername', true); tmp0_serialDesc.d4g('erRole', true); tmp0_serialDesc.d4g('erRequestTime', true); tmp0_serialDesc.d4g('erStatus', true); tmp0_serialDesc.d4g('erStatusSetByPersonUid', true); tmp0_serialDesc.d4g('erDeleted', true); tmp0_serialDesc.d4g('erStatusSetAuth', true); tmp0_serialDesc.d4g('erLastModified', true); this.lka_1 = tmp0_serialDesc; } protoOf($serializer_83).a45 = function () { return this.lka_1; }; protoOf($serializer_83).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()]; }; protoOf($serializer_83).c45 = function (decoder) { var tmp0_desc = this.lka_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = null; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = 0; var tmp12_local8 = new Long(0, 0); var tmp13_local9 = 0; var tmp14_local10 = new Long(0, 0); var tmp15_local11 = false; var tmp16_local12 = null; var tmp17_local13 = new Long(0, 0); var tmp18_input = decoder.s48(tmp0_desc); if (tmp18_input.h49()) { tmp4_local0 = tmp18_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp18_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp18_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp18_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp18_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp18_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp18_input.g49(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp18_input.x48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp18_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp18_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp18_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp18_input.u48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp18_input.g49(tmp0_desc, 12, StringSerializer_getInstance(), tmp16_local12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp18_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; } else while (tmp1_flag) { tmp2_index = tmp18_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp18_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp18_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp18_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp18_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp18_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp18_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp18_input.g49(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp18_input.x48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp18_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp18_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp18_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp18_input.u48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp18_input.g49(tmp0_desc, 12, StringSerializer_getInstance(), tmp16_local12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp18_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp18_input.t48(tmp0_desc); return EnrolmentRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); }; protoOf($serializer_83).mka = function (encoder, value) { var tmp0_desc = this.lka_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.yel_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.yel_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.zel_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.zel_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.aem_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.aem_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.bem_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.bem_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.cem_1 == null)) { tmp1_output.k4a(tmp0_desc, 4, StringSerializer_getInstance(), value.cem_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.dem_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, StringSerializer_getInstance(), value.dem_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.eem_1 == null)) { tmp1_output.k4a(tmp0_desc, 6, StringSerializer_getInstance(), value.eem_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.fem_1 === 0)) { tmp1_output.b4a(tmp0_desc, 7, value.fem_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !value.gem_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 8, value.gem_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !(value.hem_1 === 1)) { tmp1_output.b4a(tmp0_desc, 9, value.hem_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !value.iem_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 10, value.iem_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !(value.jem_1 === false)) { tmp1_output.y49(tmp0_desc, 11, value.jem_1); } if (tmp1_output.o4a(tmp0_desc, 12) ? true : !(value.kem_1 == null)) { tmp1_output.k4a(tmp0_desc, 12, StringSerializer_getInstance(), value.kem_1); } if (tmp1_output.o4a(tmp0_desc, 13) ? true : !value.lem_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 13, value.lem_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_83).b45 = function (encoder, value) { return this.mka(encoder, value instanceof EnrolmentRequest ? value : THROW_CCE()); }; var $serializer_instance_83; function $serializer_getInstance_83() { if ($serializer_instance_83 == null) new $serializer_83(); return $serializer_instance_83; } function EnrolmentRequest_init_$Init$(seen1, erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_83().lka_1); } if (0 === (seen1 & 1)) $this.yel_1 = new Long(0, 0); else $this.yel_1 = erUid; if (0 === (seen1 & 2)) $this.zel_1 = new Long(0, 0); else $this.zel_1 = erClazzUid; if (0 === (seen1 & 4)) $this.aem_1 = null; else $this.aem_1 = erClazzName; if (0 === (seen1 & 8)) $this.bem_1 = new Long(0, 0); else $this.bem_1 = erPersonUid; if (0 === (seen1 & 16)) $this.cem_1 = null; else $this.cem_1 = erPersonFullname; if (0 === (seen1 & 32)) $this.dem_1 = null; else $this.dem_1 = erPersonPictureUri; if (0 === (seen1 & 64)) $this.eem_1 = null; else $this.eem_1 = erPersonUsername; if (0 === (seen1 & 128)) $this.fem_1 = 0; else $this.fem_1 = erRole; if (0 === (seen1 & 256)) $this.gem_1 = new Long(0, 0); else $this.gem_1 = erRequestTime; if (0 === (seen1 & 512)) $this.hem_1 = 1; else $this.hem_1 = erStatus; if (0 === (seen1 & 1024)) $this.iem_1 = new Long(0, 0); else $this.iem_1 = erStatusSetByPersonUid; if (0 === (seen1 & 2048)) $this.jem_1 = false; else $this.jem_1 = erDeleted; if (0 === (seen1 & 4096)) $this.kem_1 = null; else $this.kem_1 = erStatusSetAuth; if (0 === (seen1 & 8192)) $this.lem_1 = new Long(0, 0); else $this.lem_1 = erLastModified; return $this; } function EnrolmentRequest_init_$Create$(seen1, erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified, serializationConstructorMarker) { return EnrolmentRequest_init_$Init$(seen1, erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified, serializationConstructorMarker, objectCreate(protoOf(EnrolmentRequest))); } function EnrolmentRequest(erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified) { erUid = erUid === VOID ? new Long(0, 0) : erUid; erClazzUid = erClazzUid === VOID ? new Long(0, 0) : erClazzUid; erClazzName = erClazzName === VOID ? null : erClazzName; erPersonUid = erPersonUid === VOID ? new Long(0, 0) : erPersonUid; erPersonFullname = erPersonFullname === VOID ? null : erPersonFullname; erPersonPictureUri = erPersonPictureUri === VOID ? null : erPersonPictureUri; erPersonUsername = erPersonUsername === VOID ? null : erPersonUsername; erRole = erRole === VOID ? 0 : erRole; erRequestTime = erRequestTime === VOID ? new Long(0, 0) : erRequestTime; erStatus = erStatus === VOID ? 1 : erStatus; erStatusSetByPersonUid = erStatusSetByPersonUid === VOID ? new Long(0, 0) : erStatusSetByPersonUid; erDeleted = erDeleted === VOID ? false : erDeleted; erStatusSetAuth = erStatusSetAuth === VOID ? null : erStatusSetAuth; erLastModified = erLastModified === VOID ? new Long(0, 0) : erLastModified; this.yel_1 = erUid; this.zel_1 = erClazzUid; this.aem_1 = erClazzName; this.bem_1 = erPersonUid; this.cem_1 = erPersonFullname; this.dem_1 = erPersonPictureUri; this.eem_1 = erPersonUsername; this.fem_1 = erRole; this.gem_1 = erRequestTime; this.hem_1 = erStatus; this.iem_1 = erStatusSetByPersonUid; this.jem_1 = erDeleted; this.kem_1 = erStatusSetAuth; this.lem_1 = erLastModified; } protoOf(EnrolmentRequest).toString = function () { return 'EnrolmentRequest(erUid=' + this.yel_1.toString() + ', erClazzUid=' + this.zel_1.toString() + ', erClazzName=' + this.aem_1 + ', erPersonUid=' + this.bem_1.toString() + ', erPersonFullname=' + this.cem_1 + ', erPersonPictureUri=' + this.dem_1 + ', erPersonUsername=' + this.eem_1 + ', erRole=' + this.fem_1 + ', erRequestTime=' + this.gem_1.toString() + ', erStatus=' + this.hem_1 + ', erStatusSetByPersonUid=' + this.iem_1.toString() + ', erDeleted=' + this.jem_1 + ', erStatusSetAuth=' + this.kem_1 + ', erLastModified=' + this.lem_1.toString() + ')'; }; protoOf(EnrolmentRequest).hashCode = function () { var result = this.yel_1.hashCode(); result = imul(result, 31) + this.zel_1.hashCode() | 0; result = imul(result, 31) + (this.aem_1 == null ? 0 : getStringHashCode(this.aem_1)) | 0; result = imul(result, 31) + this.bem_1.hashCode() | 0; result = imul(result, 31) + (this.cem_1 == null ? 0 : getStringHashCode(this.cem_1)) | 0; result = imul(result, 31) + (this.dem_1 == null ? 0 : getStringHashCode(this.dem_1)) | 0; result = imul(result, 31) + (this.eem_1 == null ? 0 : getStringHashCode(this.eem_1)) | 0; result = imul(result, 31) + this.fem_1 | 0; result = imul(result, 31) + this.gem_1.hashCode() | 0; result = imul(result, 31) + this.hem_1 | 0; result = imul(result, 31) + this.iem_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.jem_1) | 0; result = imul(result, 31) + (this.kem_1 == null ? 0 : getStringHashCode(this.kem_1)) | 0; result = imul(result, 31) + this.lem_1.hashCode() | 0; return result; }; protoOf(EnrolmentRequest).equals = function (other) { if (this === other) return true; if (!(other instanceof EnrolmentRequest)) return false; var tmp0_other_with_cast = other instanceof EnrolmentRequest ? other : THROW_CCE(); if (!this.yel_1.equals(tmp0_other_with_cast.yel_1)) return false; if (!this.zel_1.equals(tmp0_other_with_cast.zel_1)) return false; if (!(this.aem_1 == tmp0_other_with_cast.aem_1)) return false; if (!this.bem_1.equals(tmp0_other_with_cast.bem_1)) return false; if (!(this.cem_1 == tmp0_other_with_cast.cem_1)) return false; if (!(this.dem_1 == tmp0_other_with_cast.dem_1)) return false; if (!(this.eem_1 == tmp0_other_with_cast.eem_1)) return false; if (!(this.fem_1 === tmp0_other_with_cast.fem_1)) return false; if (!this.gem_1.equals(tmp0_other_with_cast.gem_1)) return false; if (!(this.hem_1 === tmp0_other_with_cast.hem_1)) return false; if (!this.iem_1.equals(tmp0_other_with_cast.iem_1)) return false; if (!(this.jem_1 === tmp0_other_with_cast.jem_1)) return false; if (!(this.kem_1 == tmp0_other_with_cast.kem_1)) return false; if (!this.lem_1.equals(tmp0_other_with_cast.lem_1)) return false; return true; }; function ErrorReport() { this.qeu_1 = new Long(0, 0); this.reu_1 = new Long(0, 0); this.seu_1 = new Long(0, 0); this.teu_1 = 0; this.ueu_1 = new Long(0, 0); this.veu_1 = 0; this.weu_1 = new Long(0, 0); this.xeu_1 = null; this.yeu_1 = null; this.zeu_1 = 0; this.aev_1 = 0; this.bev_1 = null; this.cev_1 = null; this.dev_1 = null; this.eev_1 = null; } function Companion_87() { } var Companion_instance_88; function Companion_getInstance_90() { return Companion_instance_88; } function $serializer_84() { $serializer_instance_84 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ExternalAppPermission', this, 7); tmp0_serialDesc.d4g('eapUid', true); tmp0_serialDesc.d4g('eapPersonUid', true); tmp0_serialDesc.d4g('eapPackageId', true); tmp0_serialDesc.d4g('eapStartTime', true); tmp0_serialDesc.d4g('eapExpireTime', true); tmp0_serialDesc.d4g('eapAuthToken', true); tmp0_serialDesc.d4g('eapAndroidAccountName', true); this.nka_1 = tmp0_serialDesc; } protoOf($serializer_84).a45 = function () { return this.nka_1; }; protoOf($serializer_84).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_84).c45 = function (decoder) { var tmp0_desc = this.nka_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_local1 = new Long(0, 0); var tmp6_local2 = null; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_input = decoder.s48(tmp0_desc); if (tmp11_input.h49()) { tmp4_local0 = tmp11_input.x48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.g49(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.x48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.g49(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.t48(tmp0_desc); return ExternalAppPermission_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_84).oka = function (encoder, value) { var tmp0_desc = this.nka_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.qev_1 === 0)) { tmp1_output.b4a(tmp0_desc, 0, value.qev_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.rev_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.rev_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.sev_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.sev_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.tev_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.tev_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.uev_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.uev_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.vev_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, StringSerializer_getInstance(), value.vev_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.wev_1 == null)) { tmp1_output.k4a(tmp0_desc, 6, StringSerializer_getInstance(), value.wev_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_84).b45 = function (encoder, value) { return this.oka(encoder, value instanceof ExternalAppPermission ? value : THROW_CCE()); }; var $serializer_instance_84; function $serializer_getInstance_84() { if ($serializer_instance_84 == null) new $serializer_84(); return $serializer_instance_84; } function ExternalAppPermission_init_$Init$(seen1, eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_84().nka_1); } if (0 === (seen1 & 1)) $this.qev_1 = 0; else $this.qev_1 = eapUid; if (0 === (seen1 & 2)) $this.rev_1 = new Long(0, 0); else $this.rev_1 = eapPersonUid; if (0 === (seen1 & 4)) $this.sev_1 = null; else $this.sev_1 = eapPackageId; if (0 === (seen1 & 8)) $this.tev_1 = new Long(0, 0); else $this.tev_1 = eapStartTime; if (0 === (seen1 & 16)) $this.uev_1 = new Long(0, 0); else $this.uev_1 = eapExpireTime; if (0 === (seen1 & 32)) $this.vev_1 = null; else $this.vev_1 = eapAuthToken; if (0 === (seen1 & 64)) $this.wev_1 = null; else $this.wev_1 = eapAndroidAccountName; return $this; } function ExternalAppPermission_init_$Create$(seen1, eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName, serializationConstructorMarker) { return ExternalAppPermission_init_$Init$(seen1, eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName, serializationConstructorMarker, objectCreate(protoOf(ExternalAppPermission))); } function ExternalAppPermission(eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName) { eapUid = eapUid === VOID ? 0 : eapUid; eapPersonUid = eapPersonUid === VOID ? new Long(0, 0) : eapPersonUid; eapPackageId = eapPackageId === VOID ? null : eapPackageId; eapStartTime = eapStartTime === VOID ? new Long(0, 0) : eapStartTime; eapExpireTime = eapExpireTime === VOID ? new Long(0, 0) : eapExpireTime; eapAuthToken = eapAuthToken === VOID ? null : eapAuthToken; eapAndroidAccountName = eapAndroidAccountName === VOID ? null : eapAndroidAccountName; this.qev_1 = eapUid; this.rev_1 = eapPersonUid; this.sev_1 = eapPackageId; this.tev_1 = eapStartTime; this.uev_1 = eapExpireTime; this.vev_1 = eapAuthToken; this.wev_1 = eapAndroidAccountName; } protoOf(ExternalAppPermission).toString = function () { return 'ExternalAppPermission(eapUid=' + this.qev_1 + ', eapPersonUid=' + this.rev_1.toString() + ', eapPackageId=' + this.sev_1 + ', eapStartTime=' + this.tev_1.toString() + ', eapExpireTime=' + this.uev_1.toString() + ', eapAuthToken=' + this.vev_1 + ', eapAndroidAccountName=' + this.wev_1 + ')'; }; protoOf(ExternalAppPermission).hashCode = function () { var result = this.qev_1; result = imul(result, 31) + this.rev_1.hashCode() | 0; result = imul(result, 31) + (this.sev_1 == null ? 0 : getStringHashCode(this.sev_1)) | 0; result = imul(result, 31) + this.tev_1.hashCode() | 0; result = imul(result, 31) + this.uev_1.hashCode() | 0; result = imul(result, 31) + (this.vev_1 == null ? 0 : getStringHashCode(this.vev_1)) | 0; result = imul(result, 31) + (this.wev_1 == null ? 0 : getStringHashCode(this.wev_1)) | 0; return result; }; protoOf(ExternalAppPermission).equals = function (other) { if (this === other) return true; if (!(other instanceof ExternalAppPermission)) return false; var tmp0_other_with_cast = other instanceof ExternalAppPermission ? other : THROW_CCE(); if (!(this.qev_1 === tmp0_other_with_cast.qev_1)) return false; if (!this.rev_1.equals(tmp0_other_with_cast.rev_1)) return false; if (!(this.sev_1 == tmp0_other_with_cast.sev_1)) return false; if (!this.tev_1.equals(tmp0_other_with_cast.tev_1)) return false; if (!this.uev_1.equals(tmp0_other_with_cast.uev_1)) return false; if (!(this.vev_1 == tmp0_other_with_cast.vev_1)) return false; if (!(this.wev_1 == tmp0_other_with_cast.wev_1)) return false; return true; }; function Companion_88() { this.pka_1 = 99; } var Companion_instance_89; function Companion_getInstance_91() { return Companion_instance_89; } function $serializer_85() { $serializer_instance_85 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Holiday', this, 10); tmp0_serialDesc.d4g('holUid', true); tmp0_serialDesc.d4g('holMasterCsn', true); tmp0_serialDesc.d4g('holLocalCsn', true); tmp0_serialDesc.d4g('holLastModBy', true); tmp0_serialDesc.d4g('holLct', true); tmp0_serialDesc.d4g('holActive', true); tmp0_serialDesc.d4g('holHolidayCalendarUid', true); tmp0_serialDesc.d4g('holStartTime', true); tmp0_serialDesc.d4g('holEndTime', true); tmp0_serialDesc.d4g('holName', true); this.qka_1 = tmp0_serialDesc; } protoOf($serializer_85).a45 = function () { return this.qka_1; }; protoOf($serializer_85).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_85).c45 = function (decoder) { var tmp0_desc = this.qka_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = 0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = false; var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = null; var tmp14_input = decoder.s48(tmp0_desc); if (tmp14_input.h49()) { tmp4_local0 = tmp14_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp14_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp14_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp14_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp14_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp14_input.u48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp14_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp14_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp14_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp14_input.g49(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; } else while (tmp1_flag) { tmp2_index = tmp14_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp14_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp14_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp14_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp14_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp14_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp14_input.u48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp14_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp14_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp14_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp14_input.g49(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp14_input.t48(tmp0_desc); return Holiday_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); }; protoOf($serializer_85).rka = function (encoder, value) { var tmp0_desc = this.qka_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.sey_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.sey_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.tey_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.tey_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.uey_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.uey_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.vey_1 === 0)) { tmp1_output.b4a(tmp0_desc, 3, value.vey_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.wey_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.wey_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.xey_1 === true)) { tmp1_output.y49(tmp0_desc, 5, value.xey_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.yey_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.yey_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.zey_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.zey_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !value.aez_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 8, value.aez_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !(value.bez_1 == null)) { tmp1_output.k4a(tmp0_desc, 9, StringSerializer_getInstance(), value.bez_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_85).b45 = function (encoder, value) { return this.rka(encoder, value instanceof Holiday ? value : THROW_CCE()); }; var $serializer_instance_85; function $serializer_getInstance_85() { if ($serializer_instance_85 == null) new $serializer_85(); return $serializer_instance_85; } function Holiday_init_$Init$(seen1, holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_85().qka_1); } if (0 === (seen1 & 1)) $this.sey_1 = new Long(0, 0); else $this.sey_1 = holUid; if (0 === (seen1 & 2)) $this.tey_1 = new Long(0, 0); else $this.tey_1 = holMasterCsn; if (0 === (seen1 & 4)) $this.uey_1 = new Long(0, 0); else $this.uey_1 = holLocalCsn; if (0 === (seen1 & 8)) $this.vey_1 = 0; else $this.vey_1 = holLastModBy; if (0 === (seen1 & 16)) $this.wey_1 = new Long(0, 0); else $this.wey_1 = holLct; if (0 === (seen1 & 32)) $this.xey_1 = true; else $this.xey_1 = holActive; if (0 === (seen1 & 64)) $this.yey_1 = new Long(0, 0); else $this.yey_1 = holHolidayCalendarUid; if (0 === (seen1 & 128)) $this.zey_1 = new Long(0, 0); else $this.zey_1 = holStartTime; if (0 === (seen1 & 256)) $this.aez_1 = new Long(0, 0); else $this.aez_1 = holEndTime; if (0 === (seen1 & 512)) $this.bez_1 = null; else $this.bez_1 = holName; return $this; } function Holiday_init_$Create$(seen1, holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName, serializationConstructorMarker) { return Holiday_init_$Init$(seen1, holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName, serializationConstructorMarker, objectCreate(protoOf(Holiday))); } function Holiday() { this.sey_1 = new Long(0, 0); this.tey_1 = new Long(0, 0); this.uey_1 = new Long(0, 0); this.vey_1 = 0; this.wey_1 = new Long(0, 0); this.xey_1 = true; this.yey_1 = new Long(0, 0); this.zey_1 = new Long(0, 0); this.aez_1 = new Long(0, 0); this.bez_1 = null; } protoOf(Holiday).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!(other instanceof Holiday)) THROW_CCE(); if (!this.sey_1.equals(other.sey_1)) return false; if (!this.tey_1.equals(other.tey_1)) return false; if (!this.uey_1.equals(other.uey_1)) return false; if (!(this.vey_1 === other.vey_1)) return false; if (!(this.xey_1 === other.xey_1)) return false; if (!this.yey_1.equals(other.yey_1)) return false; if (!this.zey_1.equals(other.zey_1)) return false; if (!this.aez_1.equals(other.aez_1)) return false; if (!(this.bez_1 == other.bez_1)) return false; return true; }; protoOf(Holiday).hashCode = function () { var result = this.sey_1.hashCode(); result = imul(31, result) + this.tey_1.hashCode() | 0; result = imul(31, result) + this.uey_1.hashCode() | 0; result = imul(31, result) + this.vey_1 | 0; result = imul(31, result) + getBooleanHashCode(this.xey_1) | 0; result = imul(31, result) + this.yey_1.hashCode() | 0; result = imul(31, result) + this.zey_1.hashCode() | 0; result = imul(31, result) + this.aez_1.hashCode() | 0; var tmp = imul(31, result); var tmp0_safe_receiver = this.bez_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; return result; }; function Companion_89() { this.ska_1 = 28; this.tka_1 = 1; } var Companion_instance_90; function Companion_getInstance_92() { return Companion_instance_90; } function $serializer_86() { $serializer_instance_86 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.HolidayCalendar', this, 8); tmp0_serialDesc.d4g('umCalendarUid', true); tmp0_serialDesc.d4g('umCalendarName', true); tmp0_serialDesc.d4g('umCalendarCategory', true); tmp0_serialDesc.d4g('umCalendarActive', true); tmp0_serialDesc.d4g('umCalendarMasterChangeSeqNum', true); tmp0_serialDesc.d4g('umCalendarLocalChangeSeqNum', true); tmp0_serialDesc.d4g('umCalendarLastChangedBy', true); tmp0_serialDesc.d4g('umCalendarLct', true); this.uka_1 = tmp0_serialDesc; } protoOf($serializer_86).a45 = function () { return this.uka_1; }; protoOf($serializer_86).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_86).c45 = function (decoder) { var tmp0_desc = this.uka_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = 0; var tmp7_local3 = false; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = 0; var tmp11_local7 = new Long(0, 0); var tmp12_input = decoder.s48(tmp0_desc); if (tmp12_input.h49()) { tmp4_local0 = tmp12_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.u48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.x48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.u48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.x48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.t48(tmp0_desc); return HolidayCalendar_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_86).vka = function (encoder, value) { var tmp0_desc = this.uka_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.a8g_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.a8g_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.b8g_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.b8g_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.c8g_1 === 1)) { tmp1_output.b4a(tmp0_desc, 2, value.c8g_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.d8g_1 === true)) { tmp1_output.y49(tmp0_desc, 3, value.d8g_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.e8g_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.e8g_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.f8g_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.f8g_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.g8g_1 === 0)) { tmp1_output.b4a(tmp0_desc, 6, value.g8g_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.h8g_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.h8g_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_86).b45 = function (encoder, value) { return this.vka(encoder, value instanceof HolidayCalendar ? value : THROW_CCE()); }; var $serializer_instance_86; function $serializer_getInstance_86() { if ($serializer_instance_86 == null) new $serializer_86(); return $serializer_instance_86; } function HolidayCalendar_init_$Init$(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_86().uka_1); } if (0 === (seen1 & 1)) $this.a8g_1 = new Long(0, 0); else $this.a8g_1 = umCalendarUid; if (0 === (seen1 & 2)) $this.b8g_1 = null; else $this.b8g_1 = umCalendarName; if (0 === (seen1 & 4)) $this.c8g_1 = 1; else $this.c8g_1 = umCalendarCategory; if (0 === (seen1 & 8)) $this.d8g_1 = true; else $this.d8g_1 = umCalendarActive; if (0 === (seen1 & 16)) $this.e8g_1 = new Long(0, 0); else $this.e8g_1 = umCalendarMasterChangeSeqNum; if (0 === (seen1 & 32)) $this.f8g_1 = new Long(0, 0); else $this.f8g_1 = umCalendarLocalChangeSeqNum; if (0 === (seen1 & 64)) $this.g8g_1 = 0; else $this.g8g_1 = umCalendarLastChangedBy; if (0 === (seen1 & 128)) $this.h8g_1 = new Long(0, 0); else $this.h8g_1 = umCalendarLct; return $this; } function HolidayCalendar_init_$Create$(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, serializationConstructorMarker) { return HolidayCalendar_init_$Init$(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, serializationConstructorMarker, objectCreate(protoOf(HolidayCalendar))); } function HolidayCalendar() { this.a8g_1 = new Long(0, 0); this.b8g_1 = null; this.c8g_1 = 1; this.d8g_1 = true; this.e8g_1 = new Long(0, 0); this.f8g_1 = new Long(0, 0); this.g8g_1 = 0; this.h8g_1 = new Long(0, 0); } function Companion_90() { } var Companion_instance_91; function Companion_getInstance_93() { return Companion_instance_91; } function $serializer_87() { $serializer_instance_87 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.HolidayCalendarWithNumEntries', this, 9); tmp0_serialDesc.d4g('umCalendarUid', true); tmp0_serialDesc.d4g('umCalendarName', true); tmp0_serialDesc.d4g('umCalendarCategory', true); tmp0_serialDesc.d4g('umCalendarActive', true); tmp0_serialDesc.d4g('umCalendarMasterChangeSeqNum', true); tmp0_serialDesc.d4g('umCalendarLocalChangeSeqNum', true); tmp0_serialDesc.d4g('umCalendarLastChangedBy', true); tmp0_serialDesc.d4g('umCalendarLct', true); tmp0_serialDesc.d4g('numEntries', true); this.wka_1 = tmp0_serialDesc; } protoOf($serializer_87).a45 = function () { return this.wka_1; }; protoOf($serializer_87).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance()]; }; protoOf($serializer_87).c45 = function (decoder) { var tmp0_desc = this.wka_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = 0; var tmp7_local3 = false; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = 0; var tmp11_local7 = new Long(0, 0); var tmp12_local8 = 0; var tmp13_input = decoder.s48(tmp0_desc); if (tmp13_input.h49()) { tmp4_local0 = tmp13_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp13_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp13_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp13_input.u48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp13_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp13_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp13_input.x48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp13_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp13_input.x48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; } else while (tmp1_flag) { tmp2_index = tmp13_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp13_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp13_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp13_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp13_input.u48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp13_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp13_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp13_input.x48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp13_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp13_input.x48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp13_input.t48(tmp0_desc); return HolidayCalendarWithNumEntries_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); }; protoOf($serializer_87).xka = function (encoder, value) { var tmp0_desc = this.wka_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.a8g_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.a8g_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.b8g_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.b8g_1); } var tmp; if (tmp1_output.o4a(tmp0_desc, 2)) { tmp = true; } else { var tmp_0 = value.c8g_1; tmp = !(tmp_0 === 1); } if (tmp) { tmp1_output.b4a(tmp0_desc, 2, value.c8g_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.d8g_1 === true)) { tmp1_output.y49(tmp0_desc, 3, value.d8g_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.e8g_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.e8g_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.f8g_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.f8g_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.g8g_1 === 0)) { tmp1_output.b4a(tmp0_desc, 6, value.g8g_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.h8g_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.h8g_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !(value.gkb_1 === 0)) { tmp1_output.b4a(tmp0_desc, 8, value.gkb_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_87).b45 = function (encoder, value) { return this.xka(encoder, value instanceof HolidayCalendarWithNumEntries ? value : THROW_CCE()); }; var $serializer_instance_87; function $serializer_getInstance_87() { if ($serializer_instance_87 == null) new $serializer_87(); return $serializer_instance_87; } function HolidayCalendarWithNumEntries_init_$Init$(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, numEntries, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_87().wka_1); } HolidayCalendar_init_$Init$(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, serializationConstructorMarker, $this); if (0 === (seen1 & 256)) $this.gkb_1 = 0; else $this.gkb_1 = numEntries; return $this; } function HolidayCalendarWithNumEntries_init_$Create$(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, numEntries, serializationConstructorMarker) { return HolidayCalendarWithNumEntries_init_$Init$(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, numEntries, serializationConstructorMarker, objectCreate(protoOf(HolidayCalendarWithNumEntries))); } function HolidayCalendarWithNumEntries() { HolidayCalendar.call(this); this.gkb_1 = 0; } function Companion_91() { Companion_instance_92 = this; this.hkb_1 = 13; this.ikb_1 = new Long(10000, 0); this.jkb_1 = new Long(10001, 0); this.kkb_1 = new Long(10002, 0); this.lkb_1 = new Long(10003, 0); this.mkb_1 = new Long(10004, 0); this.nkb_1 = new Long(10005, 0); this.okb_1 = new Long(10006, 0); this.pkb_1 = new Long(10007, 0); this.qkb_1 = new Long(10008, 0); this.rkb_1 = new Long(10009, 0); var tmp = this; // Inline function 'kotlin.apply' call var this_0 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.' call this_0.dcb_1 = 'English'; this_0.ccb_1 = new Long(10000, 0); this_0.ecb_1 = 'en'; this_0.fcb_1 = 'eng'; this_0.gcb_1 = 'eng'; var tmp_0 = this_0; // Inline function 'kotlin.apply' call var this_1 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.' call this_1.dcb_1 = '\u0627\u0644\u0639\u0631\u0628\u064A\u0629'; this_1.ccb_1 = new Long(10001, 0); this_1.ecb_1 = 'ar'; this_1.fcb_1 = 'ara'; this_1.gcb_1 = 'ara'; var tmp_1 = this_1; // Inline function 'kotlin.apply' call var this_2 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.' call this_2.dcb_1 = '\u09AC\u09BE\u0982\u09B2\u09BE'; this_2.ccb_1 = new Long(10002, 0); this_2.ecb_1 = 'bn'; this_2.fcb_1 = 'ben'; this_2.gcb_1 = 'ben'; var tmp_2 = this_2; // Inline function 'kotlin.apply' call var this_3 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.' call this_3.dcb_1 = '\u1019\u103C\u1014\u103A\u1019\u102C'; this_3.ccb_1 = new Long(10003, 0); this_3.ecb_1 = 'my'; this_3.fcb_1 = 'bur'; this_3.gcb_1 = 'mya'; var tmp_3 = this_3; // Inline function 'kotlin.apply' call var this_4 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.' call this_4.dcb_1 = 'Ikinyarwanda'; this_4.ccb_1 = new Long(10004, 0); this_4.ecb_1 = 'rw'; this_4.fcb_1 = 'kin'; this_4.gcb_1 = 'kin'; var tmp_4 = this_4; // Inline function 'kotlin.apply' call var this_5 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.' call this_5.dcb_1 = '\u0928\u0947\u092A\u093E\u0932\u0940'; this_5.ccb_1 = new Long(10005, 0); this_5.ecb_1 = 'ne'; this_5.fcb_1 = 'nep'; this_5.gcb_1 = 'nep'; var tmp_5 = this_5; // Inline function 'kotlin.apply' call var this_6 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.' call this_6.dcb_1 = '\u067E\u069A\u062A\u0648'; this_6.ccb_1 = new Long(10006, 0); this_6.ecb_1 = 'ps'; this_6.fcb_1 = 'pus'; this_6.gcb_1 = 'pus'; var tmp_6 = this_6; // Inline function 'kotlin.apply' call var this_7 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.' call this_7.dcb_1 = '\u0641\u0627\u0631\u0633\u06CC'; this_7.ccb_1 = new Long(10007, 0); this_7.ecb_1 = 'fa'; this_7.fcb_1 = 'per'; this_7.gcb_1 = 'fas'; var tmp_7 = this_7; // Inline function 'kotlin.apply' call var this_8 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.' call this_8.dcb_1 = '\u0440\u0443\u0441\u0441\u043A\u0438\u0439'; this_8.ccb_1 = new Long(10008, 0); this_8.ecb_1 = 'ru'; this_8.fcb_1 = 'rus'; this_8.gcb_1 = 'rus'; var tmp_8 = this_8; // Inline function 'kotlin.apply' call var this_9 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.' call this_9.dcb_1 = '\u0422\u043E\u04B7\u0438\u043A\u04E3'; this_9.ccb_1 = new Long(10009, 0); this_9.ecb_1 = 'tg'; this_9.fcb_1 = 'tgk'; this_9.gcb_1 = 'tgk'; tmp.skb_1 = listOf_0([tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp_6, tmp_7, tmp_8, this_9]); } var Companion_instance_92; function Companion_getInstance_94() { if (Companion_instance_92 == null) new Companion_91(); return Companion_instance_92; } function $serializer_88() { $serializer_instance_88 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Language', this, 11); tmp0_serialDesc.d4g('langUid', true); tmp0_serialDesc.d4g('name', true); tmp0_serialDesc.d4g('iso_639_1_standard', true); tmp0_serialDesc.d4g('iso_639_2_standard', true); tmp0_serialDesc.d4g('iso_639_3_standard', true); tmp0_serialDesc.d4g('Language_Type', true); tmp0_serialDesc.d4g('languageActive', true); tmp0_serialDesc.d4g('langLocalChangeSeqNum', true); tmp0_serialDesc.d4g('langMasterChangeSeqNum', true); tmp0_serialDesc.d4g('langLastChangedBy', true); tmp0_serialDesc.d4g('langLct', true); this.tkb_1 = tmp0_serialDesc; } protoOf($serializer_88).a45 = function () { return this.tkb_1; }; protoOf($serializer_88).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_88).c45 = function (decoder) { var tmp0_desc = this.tkb_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = false; var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = 0; var tmp14_local10 = new Long(0, 0); var tmp15_input = decoder.s48(tmp0_desc); if (tmp15_input.h49()) { tmp4_local0 = tmp15_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.t48(tmp0_desc); return Language_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); }; protoOf($serializer_88).ukb = function (encoder, value) { var tmp0_desc = this.tkb_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.ccb_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.ccb_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.dcb_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.dcb_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.ecb_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.ecb_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.fcb_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.fcb_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.gcb_1 == null)) { tmp1_output.k4a(tmp0_desc, 4, StringSerializer_getInstance(), value.gcb_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.hcb_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, StringSerializer_getInstance(), value.hcb_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.icb_1 === true)) { tmp1_output.y49(tmp0_desc, 6, value.icb_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.jcb_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.jcb_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !value.kcb_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 8, value.kcb_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !(value.lcb_1 === 0)) { tmp1_output.b4a(tmp0_desc, 9, value.lcb_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !value.mcb_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 10, value.mcb_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_88).b45 = function (encoder, value) { return this.ukb(encoder, value instanceof Language ? value : THROW_CCE()); }; var $serializer_instance_88; function $serializer_getInstance_88() { if ($serializer_instance_88 == null) new $serializer_88(); return $serializer_instance_88; } function Language_init_$Init$(seen1, langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_88().tkb_1); } if (0 === (seen1 & 1)) $this.ccb_1 = new Long(0, 0); else $this.ccb_1 = langUid; if (0 === (seen1 & 2)) $this.dcb_1 = null; else $this.dcb_1 = name; if (0 === (seen1 & 4)) $this.ecb_1 = null; else $this.ecb_1 = iso_639_1_standard; if (0 === (seen1 & 8)) $this.fcb_1 = null; else $this.fcb_1 = iso_639_2_standard; if (0 === (seen1 & 16)) $this.gcb_1 = null; else $this.gcb_1 = iso_639_3_standard; if (0 === (seen1 & 32)) $this.hcb_1 = null; else $this.hcb_1 = Language_Type; if (0 === (seen1 & 64)) $this.icb_1 = true; else $this.icb_1 = languageActive; if (0 === (seen1 & 128)) $this.jcb_1 = new Long(0, 0); else $this.jcb_1 = langLocalChangeSeqNum; if (0 === (seen1 & 256)) $this.kcb_1 = new Long(0, 0); else $this.kcb_1 = langMasterChangeSeqNum; if (0 === (seen1 & 512)) $this.lcb_1 = 0; else $this.lcb_1 = langLastChangedBy; if (0 === (seen1 & 1024)) $this.mcb_1 = new Long(0, 0); else $this.mcb_1 = langLct; return $this; } function Language_init_$Create$(seen1, langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct, serializationConstructorMarker) { return Language_init_$Init$(seen1, langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct, serializationConstructorMarker, objectCreate(protoOf(Language))); } function Language() { Companion_getInstance_94(); this.ccb_1 = new Long(0, 0); this.dcb_1 = null; this.ecb_1 = null; this.fcb_1 = null; this.gcb_1 = null; this.hcb_1 = null; this.icb_1 = true; this.jcb_1 = new Long(0, 0); this.kcb_1 = new Long(0, 0); this.lcb_1 = 0; this.mcb_1 = new Long(0, 0); } protoOf(Language).toString = function () { return toString(this.dcb_1); }; protoOf(Language).equals = function (other) { if (this === other) return true; var language = (other == null ? true : other instanceof Language) ? other : THROW_CCE(); if (!this.ccb_1.equals(ensureNotNull(language).ccb_1)) return false; if (!(this.dcb_1 == null) ? !(this.dcb_1 == language.dcb_1) : !(language.dcb_1 == null)) return false; if (!(this.ecb_1 == null) ? !(this.ecb_1 == language.ecb_1) : !(language.ecb_1 == null)) return false; if (!(this.fcb_1 == null) ? !(this.fcb_1 == language.fcb_1) : !(language.fcb_1 == null)) return false; return !(this.gcb_1 == null) ? this.gcb_1 == language.gcb_1 : language.gcb_1 == null; }; protoOf(Language).hashCode = function () { var result = this.ccb_1.ad(this.ccb_1.xc(32)).nb(); result = imul(31, result) + (!(this.dcb_1 == null) ? getStringHashCode(ensureNotNull(this.dcb_1)) : 0) | 0; result = imul(31, result) + (!(this.ecb_1 == null) ? getStringHashCode(ensureNotNull(this.ecb_1)) : 0) | 0; result = imul(31, result) + (!(this.fcb_1 == null) ? getStringHashCode(ensureNotNull(this.fcb_1)) : 0) | 0; result = imul(31, result) + (!(this.gcb_1 == null) ? getStringHashCode(ensureNotNull(this.gcb_1)) : 0) | 0; return result; }; function Companion_92() { this.vkb_1 = 10; } var Companion_instance_93; function Companion_getInstance_95() { return Companion_instance_93; } function $serializer_89() { $serializer_instance_89 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.LanguageVariant', this, 8); tmp0_serialDesc.d4g('langVariantUid', true); tmp0_serialDesc.d4g('langUid', true); tmp0_serialDesc.d4g('countryCode', true); tmp0_serialDesc.d4g('name', true); tmp0_serialDesc.d4g('langVariantLocalChangeSeqNum', true); tmp0_serialDesc.d4g('langVariantMasterChangeSeqNum', true); tmp0_serialDesc.d4g('langVariantLastChangedBy', true); tmp0_serialDesc.d4g('langVariantLct', true); this.wkb_1 = tmp0_serialDesc; } protoOf($serializer_89).a45 = function () { return this.wkb_1; }; protoOf($serializer_89).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_89).c45 = function (decoder) { var tmp0_desc = this.wkb_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = 0; var tmp11_local7 = new Long(0, 0); var tmp12_input = decoder.s48(tmp0_desc); if (tmp12_input.h49()) { tmp4_local0 = tmp12_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.x48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.x48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.t48(tmp0_desc); return LanguageVariant_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_89).xkb = function (encoder, value) { var tmp0_desc = this.wkb_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.nf3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.nf3_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.of3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.of3_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.pf3_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.pf3_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.qf3_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.qf3_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.rf3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.rf3_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.sf3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.sf3_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.tf3_1 === 0)) { tmp1_output.b4a(tmp0_desc, 6, value.tf3_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.uf3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.uf3_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_89).b45 = function (encoder, value) { return this.xkb(encoder, value instanceof LanguageVariant ? value : THROW_CCE()); }; var $serializer_instance_89; function $serializer_getInstance_89() { if ($serializer_instance_89 == null) new $serializer_89(); return $serializer_instance_89; } function LanguageVariant_init_$Init$(seen1, langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_89().wkb_1); } if (0 === (seen1 & 1)) $this.nf3_1 = new Long(0, 0); else $this.nf3_1 = langVariantUid; if (0 === (seen1 & 2)) $this.of3_1 = new Long(0, 0); else $this.of3_1 = langUid; if (0 === (seen1 & 4)) $this.pf3_1 = null; else $this.pf3_1 = countryCode; if (0 === (seen1 & 8)) $this.qf3_1 = null; else $this.qf3_1 = name; if (0 === (seen1 & 16)) $this.rf3_1 = new Long(0, 0); else $this.rf3_1 = langVariantLocalChangeSeqNum; if (0 === (seen1 & 32)) $this.sf3_1 = new Long(0, 0); else $this.sf3_1 = langVariantMasterChangeSeqNum; if (0 === (seen1 & 64)) $this.tf3_1 = 0; else $this.tf3_1 = langVariantLastChangedBy; if (0 === (seen1 & 128)) $this.uf3_1 = new Long(0, 0); else $this.uf3_1 = langVariantLct; return $this; } function LanguageVariant_init_$Create$(seen1, langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct, serializationConstructorMarker) { return LanguageVariant_init_$Init$(seen1, langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct, serializationConstructorMarker, objectCreate(protoOf(LanguageVariant))); } function LanguageVariant() { this.nf3_1 = new Long(0, 0); this.of3_1 = new Long(0, 0); this.pf3_1 = null; this.qf3_1 = null; this.rf3_1 = new Long(0, 0); this.sf3_1 = new Long(0, 0); this.tf3_1 = 0; this.uf3_1 = new Long(0, 0); } protoOf(LanguageVariant).equals = function (other) { if (this === other) return true; var that = (other == null ? true : other instanceof LanguageVariant) ? other : THROW_CCE(); if (!this.nf3_1.equals(ensureNotNull(that).nf3_1)) return false; if (!this.of3_1.equals(that.of3_1)) return false; if (!(this.pf3_1 == null) ? !(this.pf3_1 == that.pf3_1) : !(that.pf3_1 == null)) return false; return !(this.qf3_1 == null) ? this.qf3_1 == that.qf3_1 : that.qf3_1 == null; }; protoOf(LanguageVariant).hashCode = function () { var result = this.nf3_1.ad(this.nf3_1.xc(32)).nb(); result = imul(31, result) + this.of3_1.ad(this.of3_1.xc(32)).nb() | 0; result = imul(31, result) + (!(this.pf3_1 == null) ? getStringHashCode(ensureNotNull(this.pf3_1)) : 0) | 0; result = imul(31, result) + (!(this.qf3_1 == null) ? getStringHashCode(ensureNotNull(this.qf3_1)) : 0) | 0; return result; }; function Companion_93() { Companion_instance_94 = this; this.ykb_1 = 410; this.zkb_1 = 'Moved'; this.akc_1 = new Long(10000, 0); this.bkc_1 = 'Medical'; this.ckc_1 = new Long(10001, 0); this.dkc_1 = 'Transportation problem'; this.ekc_1 = new Long(10002, 0); this.fkc_1 = 'Family economic problem'; this.gkc_1 = new Long(10003, 0); this.hkc_1 = 'Failed test'; this.ikc_1 = new Long(10004, 0); this.jkc_1 = 'Passed test'; this.kkc_1 = new Long(10005, 0); this.lkc_1 = mapOf([to('Moved', new Long(10000, 0)), to('Medical', new Long(10001, 0)), to('Transportation problem', new Long(10002, 0)), to('Family economic problem', new Long(10003, 0)), to('Failed test', new Long(10004, 0)), to('Passed test', new Long(10005, 0))]); } protoOf(Companion_93).x4r = function () { return $serializer_getInstance_90(); }; var Companion_instance_94; function Companion_getInstance_96() { if (Companion_instance_94 == null) new Companion_93(); return Companion_instance_94; } function $serializer_90() { $serializer_instance_90 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.LeavingReason', this, 6); tmp0_serialDesc.d4g('leavingReasonUid', true); tmp0_serialDesc.d4g('leavingReasonTitle', true); tmp0_serialDesc.d4g('leavingReasonMCSN', true); tmp0_serialDesc.d4g('leavingReasonCSN', true); tmp0_serialDesc.d4g('leavingReasonLCB', true); tmp0_serialDesc.d4g('leavingReasonLct', true); this.mkc_1 = tmp0_serialDesc; } protoOf($serializer_90).a45 = function () { return this.mkc_1; }; protoOf($serializer_90).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_90).c45 = function (decoder) { var tmp0_desc = this.mkc_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = 0; var tmp9_local5 = new Long(0, 0); var tmp10_input = decoder.s48(tmp0_desc); if (tmp10_input.h49()) { tmp4_local0 = tmp10_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.t48(tmp0_desc); return LeavingReason_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_90).nkc = function (encoder, value) { var tmp0_desc = this.mkc_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.o95_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.o95_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.p95_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.p95_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.q95_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.q95_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.r95_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.r95_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.s95_1 === 0)) { tmp1_output.b4a(tmp0_desc, 4, value.s95_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.t95_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.t95_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_90).b45 = function (encoder, value) { return this.nkc(encoder, value instanceof LeavingReason ? value : THROW_CCE()); }; var $serializer_instance_90; function $serializer_getInstance_90() { if ($serializer_instance_90 == null) new $serializer_90(); return $serializer_instance_90; } function LeavingReason_init_$Init$(seen1, leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_90().mkc_1); } if (0 === (seen1 & 1)) $this.o95_1 = new Long(0, 0); else $this.o95_1 = leavingReasonUid; if (0 === (seen1 & 2)) $this.p95_1 = null; else $this.p95_1 = leavingReasonTitle; if (0 === (seen1 & 4)) $this.q95_1 = new Long(0, 0); else $this.q95_1 = leavingReasonMCSN; if (0 === (seen1 & 8)) $this.r95_1 = new Long(0, 0); else $this.r95_1 = leavingReasonCSN; if (0 === (seen1 & 16)) $this.s95_1 = 0; else $this.s95_1 = leavingReasonLCB; if (0 === (seen1 & 32)) $this.t95_1 = new Long(0, 0); else $this.t95_1 = leavingReasonLct; return $this; } function LeavingReason_init_$Create$(seen1, leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct, serializationConstructorMarker) { return LeavingReason_init_$Init$(seen1, leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct, serializationConstructorMarker, objectCreate(protoOf(LeavingReason))); } function LeavingReason() { Companion_getInstance_96(); this.o95_1 = new Long(0, 0); this.p95_1 = null; this.q95_1 = new Long(0, 0); this.r95_1 = new Long(0, 0); this.s95_1 = 0; this.t95_1 = new Long(0, 0); } function Companion_94() { this.okc_1 = 126; } var Companion_instance_95; function Companion_getInstance_97() { return Companion_instance_95; } function $serializer_91() { $serializer_instance_91 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Message', this, 6); tmp0_serialDesc.d4g('messageUid', true); tmp0_serialDesc.d4g('messageSenderPersonUid', true); tmp0_serialDesc.d4g('messageToPersonUid', true); tmp0_serialDesc.d4g('messageText', true); tmp0_serialDesc.d4g('messageTimestamp', true); tmp0_serialDesc.d4g('messageLct', true); this.pkc_1 = tmp0_serialDesc; } protoOf($serializer_91).a45 = function () { return this.pkc_1; }; protoOf($serializer_91).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_91).c45 = function (decoder) { var tmp0_desc = this.pkc_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = null; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_input = decoder.s48(tmp0_desc); if (tmp10_input.h49()) { tmp4_local0 = tmp10_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.t48(tmp0_desc); return Message_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_91).qkc = function (encoder, value) { var tmp0_desc = this.pkc_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.ff9_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.ff9_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.gf9_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.gf9_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.hf9_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.hf9_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.if9_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.if9_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.jf9_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.jf9_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.kf9_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.kf9_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_91).b45 = function (encoder, value) { return this.qkc(encoder, value instanceof Message ? value : THROW_CCE()); }; var $serializer_instance_91; function $serializer_getInstance_91() { if ($serializer_instance_91 == null) new $serializer_91(); return $serializer_instance_91; } function Message_init_$Init$(seen1, messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_91().pkc_1); } if (0 === (seen1 & 1)) $this.ff9_1 = new Long(0, 0); else $this.ff9_1 = messageUid; if (0 === (seen1 & 2)) $this.gf9_1 = new Long(0, 0); else $this.gf9_1 = messageSenderPersonUid; if (0 === (seen1 & 4)) $this.hf9_1 = new Long(0, 0); else $this.hf9_1 = messageToPersonUid; if (0 === (seen1 & 8)) $this.if9_1 = null; else $this.if9_1 = messageText; if (0 === (seen1 & 16)) $this.jf9_1 = new Long(0, 0); else $this.jf9_1 = messageTimestamp; if (0 === (seen1 & 32)) $this.kf9_1 = new Long(0, 0); else $this.kf9_1 = messageLct; return $this; } function Message_init_$Create$(seen1, messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct, serializationConstructorMarker) { return Message_init_$Init$(seen1, messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct, serializationConstructorMarker, objectCreate(protoOf(Message))); } function Message(messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct) { messageUid = messageUid === VOID ? new Long(0, 0) : messageUid; messageSenderPersonUid = messageSenderPersonUid === VOID ? new Long(0, 0) : messageSenderPersonUid; messageToPersonUid = messageToPersonUid === VOID ? new Long(0, 0) : messageToPersonUid; messageText = messageText === VOID ? null : messageText; messageTimestamp = messageTimestamp === VOID ? new Long(0, 0) : messageTimestamp; messageLct = messageLct === VOID ? new Long(0, 0) : messageLct; this.ff9_1 = messageUid; this.gf9_1 = messageSenderPersonUid; this.hf9_1 = messageToPersonUid; this.if9_1 = messageText; this.jf9_1 = messageTimestamp; this.kf9_1 = messageLct; } protoOf(Message).toString = function () { return 'Message(messageUid=' + this.ff9_1.toString() + ', messageSenderPersonUid=' + this.gf9_1.toString() + ', messageToPersonUid=' + this.hf9_1.toString() + ', messageText=' + this.if9_1 + ', messageTimestamp=' + this.jf9_1.toString() + ', messageLct=' + this.kf9_1.toString() + ')'; }; protoOf(Message).hashCode = function () { var result = this.ff9_1.hashCode(); result = imul(result, 31) + this.gf9_1.hashCode() | 0; result = imul(result, 31) + this.hf9_1.hashCode() | 0; result = imul(result, 31) + (this.if9_1 == null ? 0 : getStringHashCode(this.if9_1)) | 0; result = imul(result, 31) + this.jf9_1.hashCode() | 0; result = imul(result, 31) + this.kf9_1.hashCode() | 0; return result; }; protoOf(Message).equals = function (other) { if (this === other) return true; if (!(other instanceof Message)) return false; var tmp0_other_with_cast = other instanceof Message ? other : THROW_CCE(); if (!this.ff9_1.equals(tmp0_other_with_cast.ff9_1)) return false; if (!this.gf9_1.equals(tmp0_other_with_cast.gf9_1)) return false; if (!this.hf9_1.equals(tmp0_other_with_cast.hf9_1)) return false; if (!(this.if9_1 == tmp0_other_with_cast.if9_1)) return false; if (!this.jf9_1.equals(tmp0_other_with_cast.jf9_1)) return false; if (!this.kf9_1.equals(tmp0_other_with_cast.kf9_1)) return false; return true; }; function Companion_95() { this.rkc_1 = 971; } var Companion_instance_96; function Companion_getInstance_98() { return Companion_instance_96; } function $serializer_92() { $serializer_instance_92 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.OfflineItem', this, 7); tmp0_serialDesc.d4g('oiUid', true); tmp0_serialDesc.d4g('oiNodeId', true); tmp0_serialDesc.d4g('oiClazzUid', true); tmp0_serialDesc.d4g('oiCourseBlockUid', true); tmp0_serialDesc.d4g('oiContentEntryUid', true); tmp0_serialDesc.d4g('oiActive', true); tmp0_serialDesc.d4g('oiLct', true); this.skc_1 = tmp0_serialDesc; } protoOf($serializer_92).a45 = function () { return this.skc_1; }; protoOf($serializer_92).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_92).c45 = function (decoder) { var tmp0_desc = this.skc_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = false; var tmp10_local6 = new Long(0, 0); var tmp11_input = decoder.s48(tmp0_desc); if (tmp11_input.h49()) { tmp4_local0 = tmp11_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.u48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.u48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.t48(tmp0_desc); return OfflineItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_92).tkc = function (encoder, value) { var tmp0_desc = this.skc_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.xfe_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.xfe_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.yfe_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.yfe_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.zfe_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.zfe_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.aff_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.aff_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.bff_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.bff_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.cff_1 === true)) { tmp1_output.y49(tmp0_desc, 5, value.cff_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.dff_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.dff_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_92).b45 = function (encoder, value) { return this.tkc(encoder, value instanceof OfflineItem ? value : THROW_CCE()); }; var $serializer_instance_92; function $serializer_getInstance_92() { if ($serializer_instance_92 == null) new $serializer_92(); return $serializer_instance_92; } function OfflineItem_init_$Init$(seen1, oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_92().skc_1); } if (0 === (seen1 & 1)) $this.xfe_1 = new Long(0, 0); else $this.xfe_1 = oiUid; if (0 === (seen1 & 2)) $this.yfe_1 = new Long(0, 0); else $this.yfe_1 = oiNodeId; if (0 === (seen1 & 4)) $this.zfe_1 = new Long(0, 0); else $this.zfe_1 = oiClazzUid; if (0 === (seen1 & 8)) $this.aff_1 = new Long(0, 0); else $this.aff_1 = oiCourseBlockUid; if (0 === (seen1 & 16)) $this.bff_1 = new Long(0, 0); else $this.bff_1 = oiContentEntryUid; if (0 === (seen1 & 32)) $this.cff_1 = true; else $this.cff_1 = oiActive; if (0 === (seen1 & 64)) $this.dff_1 = new Long(0, 0); else $this.dff_1 = oiLct; return $this; } function OfflineItem_init_$Create$(seen1, oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct, serializationConstructorMarker) { return OfflineItem_init_$Init$(seen1, oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct, serializationConstructorMarker, objectCreate(protoOf(OfflineItem))); } function OfflineItem(oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct) { oiUid = oiUid === VOID ? new Long(0, 0) : oiUid; oiNodeId = oiNodeId === VOID ? new Long(0, 0) : oiNodeId; oiClazzUid = oiClazzUid === VOID ? new Long(0, 0) : oiClazzUid; oiCourseBlockUid = oiCourseBlockUid === VOID ? new Long(0, 0) : oiCourseBlockUid; oiContentEntryUid = oiContentEntryUid === VOID ? new Long(0, 0) : oiContentEntryUid; oiActive = oiActive === VOID ? true : oiActive; oiLct = oiLct === VOID ? new Long(0, 0) : oiLct; this.xfe_1 = oiUid; this.yfe_1 = oiNodeId; this.zfe_1 = oiClazzUid; this.aff_1 = oiCourseBlockUid; this.bff_1 = oiContentEntryUid; this.cff_1 = oiActive; this.dff_1 = oiLct; } protoOf(OfflineItem).toString = function () { return 'OfflineItem(oiUid=' + this.xfe_1.toString() + ', oiNodeId=' + this.yfe_1.toString() + ', oiClazzUid=' + this.zfe_1.toString() + ', oiCourseBlockUid=' + this.aff_1.toString() + ', oiContentEntryUid=' + this.bff_1.toString() + ', oiActive=' + this.cff_1 + ', oiLct=' + this.dff_1.toString() + ')'; }; protoOf(OfflineItem).hashCode = function () { var result = this.xfe_1.hashCode(); result = imul(result, 31) + this.yfe_1.hashCode() | 0; result = imul(result, 31) + this.zfe_1.hashCode() | 0; result = imul(result, 31) + this.aff_1.hashCode() | 0; result = imul(result, 31) + this.bff_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.cff_1) | 0; result = imul(result, 31) + this.dff_1.hashCode() | 0; return result; }; protoOf(OfflineItem).equals = function (other) { if (this === other) return true; if (!(other instanceof OfflineItem)) return false; var tmp0_other_with_cast = other instanceof OfflineItem ? other : THROW_CCE(); if (!this.xfe_1.equals(tmp0_other_with_cast.xfe_1)) return false; if (!this.yfe_1.equals(tmp0_other_with_cast.yfe_1)) return false; if (!this.zfe_1.equals(tmp0_other_with_cast.zfe_1)) return false; if (!this.aff_1.equals(tmp0_other_with_cast.aff_1)) return false; if (!this.bff_1.equals(tmp0_other_with_cast.bff_1)) return false; if (!(this.cff_1 === tmp0_other_with_cast.cff_1)) return false; if (!this.dff_1.equals(tmp0_other_with_cast.dff_1)) return false; return true; }; function Companion_96() { this.ukc_1 = 140; } protoOf(Companion_96).x4r = function () { return $serializer_getInstance_93(); }; var Companion_instance_97; function Companion_getInstance_99() { return Companion_instance_97; } function $serializer_93() { $serializer_instance_93 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PeerReviewerAllocation', this, 6); tmp0_serialDesc.d4g('praUid', true); tmp0_serialDesc.d4g('praMarkerSubmitterUid', true); tmp0_serialDesc.d4g('praToMarkerSubmitterUid', true); tmp0_serialDesc.d4g('praAssignmentUid', true); tmp0_serialDesc.d4g('praActive', true); tmp0_serialDesc.d4g('praLct', true); this.vkc_1 = tmp0_serialDesc; } protoOf($serializer_93).a45 = function () { return this.vkc_1; }; protoOf($serializer_93).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_93).c45 = function (decoder) { var tmp0_desc = this.vkc_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = false; var tmp9_local5 = new Long(0, 0); var tmp10_input = decoder.s48(tmp0_desc); if (tmp10_input.h49()) { tmp4_local0 = tmp10_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.u48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.u48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.t48(tmp0_desc); return PeerReviewerAllocation_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_93).wkc = function (encoder, value) { var tmp0_desc = this.vkc_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.bfi_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.bfi_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.cfi_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.cfi_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.dfi_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.dfi_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.efi_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.efi_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.ffi_1 === true)) { tmp1_output.y49(tmp0_desc, 4, value.ffi_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.gfi_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.gfi_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_93).b45 = function (encoder, value) { return this.wkc(encoder, value instanceof PeerReviewerAllocation ? value : THROW_CCE()); }; var $serializer_instance_93; function $serializer_getInstance_93() { if ($serializer_instance_93 == null) new $serializer_93(); return $serializer_instance_93; } function PeerReviewerAllocation_init_$Init$(seen1, praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_93().vkc_1); } if (0 === (seen1 & 1)) $this.bfi_1 = new Long(0, 0); else $this.bfi_1 = praUid; if (0 === (seen1 & 2)) $this.cfi_1 = new Long(0, 0); else $this.cfi_1 = praMarkerSubmitterUid; if (0 === (seen1 & 4)) $this.dfi_1 = new Long(0, 0); else $this.dfi_1 = praToMarkerSubmitterUid; if (0 === (seen1 & 8)) $this.efi_1 = new Long(0, 0); else $this.efi_1 = praAssignmentUid; if (0 === (seen1 & 16)) $this.ffi_1 = true; else $this.ffi_1 = praActive; if (0 === (seen1 & 32)) $this.gfi_1 = new Long(0, 0); else $this.gfi_1 = praLct; return $this; } function PeerReviewerAllocation_init_$Create$(seen1, praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct, serializationConstructorMarker) { return PeerReviewerAllocation_init_$Init$(seen1, praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct, serializationConstructorMarker, objectCreate(protoOf(PeerReviewerAllocation))); } function PeerReviewerAllocation(praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) { praUid = praUid === VOID ? new Long(0, 0) : praUid; praMarkerSubmitterUid = praMarkerSubmitterUid === VOID ? new Long(0, 0) : praMarkerSubmitterUid; praToMarkerSubmitterUid = praToMarkerSubmitterUid === VOID ? new Long(0, 0) : praToMarkerSubmitterUid; praAssignmentUid = praAssignmentUid === VOID ? new Long(0, 0) : praAssignmentUid; praActive = praActive === VOID ? true : praActive; praLct = praLct === VOID ? new Long(0, 0) : praLct; this.bfi_1 = praUid; this.cfi_1 = praMarkerSubmitterUid; this.dfi_1 = praToMarkerSubmitterUid; this.efi_1 = praAssignmentUid; this.ffi_1 = praActive; this.gfi_1 = praLct; } protoOf(PeerReviewerAllocation).xkc = function (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) { return new PeerReviewerAllocation(praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct); }; protoOf(PeerReviewerAllocation).ykc = function (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct, $super) { praUid = praUid === VOID ? this.bfi_1 : praUid; praMarkerSubmitterUid = praMarkerSubmitterUid === VOID ? this.cfi_1 : praMarkerSubmitterUid; praToMarkerSubmitterUid = praToMarkerSubmitterUid === VOID ? this.dfi_1 : praToMarkerSubmitterUid; praAssignmentUid = praAssignmentUid === VOID ? this.efi_1 : praAssignmentUid; praActive = praActive === VOID ? this.ffi_1 : praActive; praLct = praLct === VOID ? this.gfi_1 : praLct; return $super === VOID ? this.xkc(praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) : $super.xkc.call(this, praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct); }; protoOf(PeerReviewerAllocation).toString = function () { return 'PeerReviewerAllocation(praUid=' + this.bfi_1.toString() + ', praMarkerSubmitterUid=' + this.cfi_1.toString() + ', praToMarkerSubmitterUid=' + this.dfi_1.toString() + ', praAssignmentUid=' + this.efi_1.toString() + ', praActive=' + this.ffi_1 + ', praLct=' + this.gfi_1.toString() + ')'; }; protoOf(PeerReviewerAllocation).hashCode = function () { var result = this.bfi_1.hashCode(); result = imul(result, 31) + this.cfi_1.hashCode() | 0; result = imul(result, 31) + this.dfi_1.hashCode() | 0; result = imul(result, 31) + this.efi_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.ffi_1) | 0; result = imul(result, 31) + this.gfi_1.hashCode() | 0; return result; }; protoOf(PeerReviewerAllocation).equals = function (other) { if (this === other) return true; if (!(other instanceof PeerReviewerAllocation)) return false; var tmp0_other_with_cast = other instanceof PeerReviewerAllocation ? other : THROW_CCE(); if (!this.bfi_1.equals(tmp0_other_with_cast.bfi_1)) return false; if (!this.cfi_1.equals(tmp0_other_with_cast.cfi_1)) return false; if (!this.dfi_1.equals(tmp0_other_with_cast.dfi_1)) return false; if (!this.efi_1.equals(tmp0_other_with_cast.efi_1)) return false; if (!(this.ffi_1 === tmp0_other_with_cast.ffi_1)) return false; if (!this.gfi_1.equals(tmp0_other_with_cast.gfi_1)) return false; return true; }; function Companion_97() { this.zkc_1 = 9; this.akd_1 = 0; this.bkd_1 = 1; this.ckd_1 = 2; this.dkd_1 = 4; this.ekd_1 = 0; this.fkd_1 = 1; this.gkd_1 = 2; this.hkd_1 = '\n JOIN ScopedGrant\n ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n AND (ScopedGrant.sgPermissions &'; this.ikd_1 = '\n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 9\n AND ScopedGrant.sgEntityUid = Person.personUid)\n OR (ScopedGrant.sgTableId = 6 \n AND Person.personUid IN (\n SELECT DISTINCT clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n AND ClazzEnrolment.clazzEnrolmentActive))\n \n ) \n '; this.jkd_1 = '\n ) > 0\n JOIN Person \n ON \n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 9\n AND ScopedGrant.sgEntityUid = Person.personUid)\n OR (ScopedGrant.sgTableId = 6 \n AND Person.personUid IN (\n SELECT DISTINCT clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n AND ClazzEnrolment.clazzEnrolmentActive))\n \n ) \n \n '; } protoOf(Companion_97).x4r = function () { return $serializer_getInstance_94(); }; var Companion_instance_98; function Companion_getInstance_100() { return Companion_instance_98; } function $serializer_94() { $serializer_instance_94 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Person', this, 24); tmp0_serialDesc.d4g('personUid', true); tmp0_serialDesc.d4g('username', true); tmp0_serialDesc.d4g('firstNames', true); tmp0_serialDesc.d4g('lastName', true); tmp0_serialDesc.d4g('emailAddr', true); tmp0_serialDesc.d4g('phoneNum', true); tmp0_serialDesc.d4g('gender', true); tmp0_serialDesc.d4g('active', true); tmp0_serialDesc.d4g('dateOfBirth', true); tmp0_serialDesc.d4g('personAddress', true); tmp0_serialDesc.d4g('personOrgId', true); tmp0_serialDesc.d4g('personGroupUid', true); tmp0_serialDesc.d4g('personLct', true); tmp0_serialDesc.d4g('personCountry', true); tmp0_serialDesc.d4g('personType', true); tmp0_serialDesc.d4g('personMasterChangeSeqNum', true); tmp0_serialDesc.d4g('personLocalChangeSeqNum', true); tmp0_serialDesc.d4g('personLastChangedBy', true); tmp0_serialDesc.d4g('admin', true); tmp0_serialDesc.d4g('personNotes', true); tmp0_serialDesc.d4g('fatherName', true); tmp0_serialDesc.d4g('fatherNumber', true); tmp0_serialDesc.d4g('motherName', true); tmp0_serialDesc.d4g('motherNum', true); this.kkd_1 = tmp0_serialDesc; } protoOf($serializer_94).a45 = function () { return this.kkd_1; }; protoOf($serializer_94).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_94).c45 = function (decoder) { var tmp0_desc = this.kkd_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = 0; var tmp11_local7 = false; var tmp12_local8 = new Long(0, 0); var tmp13_local9 = null; var tmp14_local10 = null; var tmp15_local11 = new Long(0, 0); var tmp16_local12 = new Long(0, 0); var tmp17_local13 = null; var tmp18_local14 = 0; var tmp19_local15 = new Long(0, 0); var tmp20_local16 = new Long(0, 0); var tmp21_local17 = 0; var tmp22_local18 = false; var tmp23_local19 = null; var tmp24_local20 = null; var tmp25_local21 = null; var tmp26_local22 = null; var tmp27_local23 = null; var tmp28_input = decoder.s48(tmp0_desc); if (tmp28_input.h49()) { tmp4_local0 = tmp28_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp28_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp28_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp28_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp28_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp28_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp28_input.x48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp28_input.u48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp28_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp28_input.g49(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp28_input.g49(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp28_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp28_input.y48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp28_input.g49(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp28_input.x48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp28_input.y48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp28_input.y48(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp28_input.x48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp22_local18 = tmp28_input.u48(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp23_local19 = tmp28_input.g49(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; tmp24_local20 = tmp28_input.g49(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; tmp25_local21 = tmp28_input.g49(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; tmp26_local22 = tmp28_input.g49(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; tmp27_local23 = tmp28_input.g49(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; } else while (tmp1_flag) { tmp2_index = tmp28_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp28_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp28_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp28_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp28_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp28_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp28_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp28_input.x48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp28_input.u48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp28_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp28_input.g49(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp28_input.g49(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp28_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp28_input.y48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp28_input.g49(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp28_input.x48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp28_input.y48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp28_input.y48(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp28_input.x48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp22_local18 = tmp28_input.u48(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp23_local19 = tmp28_input.g49(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; case 20: tmp24_local20 = tmp28_input.g49(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; break; case 21: tmp25_local21 = tmp28_input.g49(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; break; case 22: tmp26_local22 = tmp28_input.g49(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; break; case 23: tmp27_local23 = tmp28_input.g49(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp28_input.t48(tmp0_desc); return Person_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, null); }; protoOf($serializer_94).lkd = function (encoder, value) { var tmp0_desc = this.kkd_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.a97_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.a97_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.b97_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.b97_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.c97_1 === '')) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.c97_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.d97_1 === '')) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.d97_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.e97_1 == null)) { tmp1_output.k4a(tmp0_desc, 4, StringSerializer_getInstance(), value.e97_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.f97_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, StringSerializer_getInstance(), value.f97_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.g97_1 === 0)) { tmp1_output.b4a(tmp0_desc, 6, value.g97_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.h97_1 === true)) { tmp1_output.y49(tmp0_desc, 7, value.h97_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !value.i97_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 8, value.i97_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !(value.j97_1 == null)) { tmp1_output.k4a(tmp0_desc, 9, StringSerializer_getInstance(), value.j97_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !(value.k97_1 == null)) { tmp1_output.k4a(tmp0_desc, 10, StringSerializer_getInstance(), value.k97_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !value.l97_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 11, value.l97_1); } if (tmp1_output.o4a(tmp0_desc, 12) ? true : !value.m97_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 12, value.m97_1); } if (tmp1_output.o4a(tmp0_desc, 13) ? true : !(value.n97_1 == null)) { tmp1_output.k4a(tmp0_desc, 13, StringSerializer_getInstance(), value.n97_1); } if (tmp1_output.o4a(tmp0_desc, 14) ? true : !(value.o97_1 === 0)) { tmp1_output.b4a(tmp0_desc, 14, value.o97_1); } if (tmp1_output.o4a(tmp0_desc, 15) ? true : !value.p97_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 15, value.p97_1); } if (tmp1_output.o4a(tmp0_desc, 16) ? true : !value.q97_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 16, value.q97_1); } if (tmp1_output.o4a(tmp0_desc, 17) ? true : !(value.r97_1 === 0)) { tmp1_output.b4a(tmp0_desc, 17, value.r97_1); } if (tmp1_output.o4a(tmp0_desc, 18) ? true : !(value.s97_1 === false)) { tmp1_output.y49(tmp0_desc, 18, value.s97_1); } if (tmp1_output.o4a(tmp0_desc, 19) ? true : !(value.t97_1 == null)) { tmp1_output.k4a(tmp0_desc, 19, StringSerializer_getInstance(), value.t97_1); } if (tmp1_output.o4a(tmp0_desc, 20) ? true : !(value.u97_1 == null)) { tmp1_output.k4a(tmp0_desc, 20, StringSerializer_getInstance(), value.u97_1); } if (tmp1_output.o4a(tmp0_desc, 21) ? true : !(value.v97_1 == null)) { tmp1_output.k4a(tmp0_desc, 21, StringSerializer_getInstance(), value.v97_1); } if (tmp1_output.o4a(tmp0_desc, 22) ? true : !(value.w97_1 == null)) { tmp1_output.k4a(tmp0_desc, 22, StringSerializer_getInstance(), value.w97_1); } if (tmp1_output.o4a(tmp0_desc, 23) ? true : !(value.x97_1 == null)) { tmp1_output.k4a(tmp0_desc, 23, StringSerializer_getInstance(), value.x97_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_94).b45 = function (encoder, value) { return this.lkd(encoder, value instanceof Person ? value : THROW_CCE()); }; var $serializer_instance_94; function $serializer_getInstance_94() { if ($serializer_instance_94 == null) new $serializer_94(); return $serializer_instance_94; } function Person_init_$Init$(seen1, personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_94().kkd_1); } if (0 === (seen1 & 1)) $this.a97_1 = new Long(0, 0); else $this.a97_1 = personUid; if (0 === (seen1 & 2)) $this.b97_1 = null; else $this.b97_1 = username; if (0 === (seen1 & 4)) $this.c97_1 = ''; else $this.c97_1 = firstNames; if (0 === (seen1 & 8)) $this.d97_1 = ''; else $this.d97_1 = lastName; if (0 === (seen1 & 16)) $this.e97_1 = null; else $this.e97_1 = emailAddr; if (0 === (seen1 & 32)) $this.f97_1 = null; else $this.f97_1 = phoneNum; if (0 === (seen1 & 64)) $this.g97_1 = 0; else $this.g97_1 = gender; if (0 === (seen1 & 128)) $this.h97_1 = true; else $this.h97_1 = active; if (0 === (seen1 & 256)) $this.i97_1 = new Long(0, 0); else $this.i97_1 = dateOfBirth; if (0 === (seen1 & 512)) $this.j97_1 = null; else $this.j97_1 = personAddress; if (0 === (seen1 & 1024)) $this.k97_1 = null; else $this.k97_1 = personOrgId; if (0 === (seen1 & 2048)) $this.l97_1 = new Long(0, 0); else $this.l97_1 = personGroupUid; if (0 === (seen1 & 4096)) $this.m97_1 = new Long(0, 0); else $this.m97_1 = personLct; if (0 === (seen1 & 8192)) $this.n97_1 = null; else $this.n97_1 = personCountry; if (0 === (seen1 & 16384)) $this.o97_1 = 0; else $this.o97_1 = personType; if (0 === (seen1 & 32768)) $this.p97_1 = new Long(0, 0); else $this.p97_1 = personMasterChangeSeqNum; if (0 === (seen1 & 65536)) $this.q97_1 = new Long(0, 0); else $this.q97_1 = personLocalChangeSeqNum; if (0 === (seen1 & 131072)) $this.r97_1 = 0; else $this.r97_1 = personLastChangedBy; if (0 === (seen1 & 262144)) $this.s97_1 = false; else $this.s97_1 = admin; if (0 === (seen1 & 524288)) $this.t97_1 = null; else $this.t97_1 = personNotes; if (0 === (seen1 & 1048576)) $this.u97_1 = null; else $this.u97_1 = fatherName; if (0 === (seen1 & 2097152)) $this.v97_1 = null; else $this.v97_1 = fatherNumber; if (0 === (seen1 & 4194304)) $this.w97_1 = null; else $this.w97_1 = motherName; if (0 === (seen1 & 8388608)) $this.x97_1 = null; else $this.x97_1 = motherNum; return $this; } function Person_init_$Create$(seen1, personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum, serializationConstructorMarker) { return Person_init_$Init$(seen1, personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum, serializationConstructorMarker, objectCreate(protoOf(Person))); } function Person(personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum) { personUid = personUid === VOID ? new Long(0, 0) : personUid; username = username === VOID ? null : username; firstNames = firstNames === VOID ? '' : firstNames; lastName = lastName === VOID ? '' : lastName; emailAddr = emailAddr === VOID ? null : emailAddr; phoneNum = phoneNum === VOID ? null : phoneNum; gender = gender === VOID ? 0 : gender; active = active === VOID ? true : active; dateOfBirth = dateOfBirth === VOID ? new Long(0, 0) : dateOfBirth; personAddress = personAddress === VOID ? null : personAddress; personOrgId = personOrgId === VOID ? null : personOrgId; personGroupUid = personGroupUid === VOID ? new Long(0, 0) : personGroupUid; personLct = personLct === VOID ? new Long(0, 0) : personLct; personCountry = personCountry === VOID ? null : personCountry; personType = personType === VOID ? 0 : personType; personMasterChangeSeqNum = personMasterChangeSeqNum === VOID ? new Long(0, 0) : personMasterChangeSeqNum; personLocalChangeSeqNum = personLocalChangeSeqNum === VOID ? new Long(0, 0) : personLocalChangeSeqNum; personLastChangedBy = personLastChangedBy === VOID ? 0 : personLastChangedBy; admin = admin === VOID ? false : admin; personNotes = personNotes === VOID ? null : personNotes; fatherName = fatherName === VOID ? null : fatherName; fatherNumber = fatherNumber === VOID ? null : fatherNumber; motherName = motherName === VOID ? null : motherName; motherNum = motherNum === VOID ? null : motherNum; this.a97_1 = personUid; this.b97_1 = username; this.c97_1 = firstNames; this.d97_1 = lastName; this.e97_1 = emailAddr; this.f97_1 = phoneNum; this.g97_1 = gender; this.h97_1 = active; this.i97_1 = dateOfBirth; this.j97_1 = personAddress; this.k97_1 = personOrgId; this.l97_1 = personGroupUid; this.m97_1 = personLct; this.n97_1 = personCountry; this.o97_1 = personType; this.p97_1 = personMasterChangeSeqNum; this.q97_1 = personLocalChangeSeqNum; this.r97_1 = personLastChangedBy; this.s97_1 = admin; this.t97_1 = personNotes; this.u97_1 = fatherName; this.v97_1 = fatherNumber; this.w97_1 = motherName; this.x97_1 = motherNum; } protoOf(Person).mkd = function () { // Inline function 'kotlin.text.buildString' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.apply' call var this_0 = StringBuilder_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Person.fullName.' call var tmp0_safe_receiver = this.c97_1; if (tmp0_safe_receiver == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Person.fullName..' call this_0.y5(tmp0_safe_receiver); } if (!(this.c97_1 == null) ? !(this.d97_1 == null) : false) { this_0.y5(' '); } var tmp1_safe_receiver = this.d97_1; if (tmp1_safe_receiver == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Person.fullName..' call this_0.y5(tmp1_safe_receiver); } return this_0.toString(); }; protoOf(Person).toString = function () { return 'Person(personUid=' + this.a97_1.toString() + ', username=' + this.b97_1 + ', firstNames=' + this.c97_1 + ', lastName=' + this.d97_1 + ', emailAddr=' + this.e97_1 + ', phoneNum=' + this.f97_1 + ', gender=' + this.g97_1 + ', active=' + this.h97_1 + ', dateOfBirth=' + this.i97_1.toString() + ', personAddress=' + this.j97_1 + ', personOrgId=' + this.k97_1 + ', personGroupUid=' + this.l97_1.toString() + ', personLct=' + this.m97_1.toString() + ', personCountry=' + this.n97_1 + ', personType=' + this.o97_1 + ', personMasterChangeSeqNum=' + this.p97_1.toString() + ', personLocalChangeSeqNum=' + this.q97_1.toString() + ', personLastChangedBy=' + this.r97_1 + ', admin=' + this.s97_1 + ', personNotes=' + this.t97_1 + ', fatherName=' + this.u97_1 + ', fatherNumber=' + this.v97_1 + ', motherName=' + this.w97_1 + ', motherNum=' + this.x97_1 + ')'; }; protoOf(Person).hashCode = function () { var result = this.a97_1.hashCode(); result = imul(result, 31) + (this.b97_1 == null ? 0 : getStringHashCode(this.b97_1)) | 0; result = imul(result, 31) + (this.c97_1 == null ? 0 : getStringHashCode(this.c97_1)) | 0; result = imul(result, 31) + (this.d97_1 == null ? 0 : getStringHashCode(this.d97_1)) | 0; result = imul(result, 31) + (this.e97_1 == null ? 0 : getStringHashCode(this.e97_1)) | 0; result = imul(result, 31) + (this.f97_1 == null ? 0 : getStringHashCode(this.f97_1)) | 0; result = imul(result, 31) + this.g97_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.h97_1) | 0; result = imul(result, 31) + this.i97_1.hashCode() | 0; result = imul(result, 31) + (this.j97_1 == null ? 0 : getStringHashCode(this.j97_1)) | 0; result = imul(result, 31) + (this.k97_1 == null ? 0 : getStringHashCode(this.k97_1)) | 0; result = imul(result, 31) + this.l97_1.hashCode() | 0; result = imul(result, 31) + this.m97_1.hashCode() | 0; result = imul(result, 31) + (this.n97_1 == null ? 0 : getStringHashCode(this.n97_1)) | 0; result = imul(result, 31) + this.o97_1 | 0; result = imul(result, 31) + this.p97_1.hashCode() | 0; result = imul(result, 31) + this.q97_1.hashCode() | 0; result = imul(result, 31) + this.r97_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.s97_1) | 0; result = imul(result, 31) + (this.t97_1 == null ? 0 : getStringHashCode(this.t97_1)) | 0; result = imul(result, 31) + (this.u97_1 == null ? 0 : getStringHashCode(this.u97_1)) | 0; result = imul(result, 31) + (this.v97_1 == null ? 0 : getStringHashCode(this.v97_1)) | 0; result = imul(result, 31) + (this.w97_1 == null ? 0 : getStringHashCode(this.w97_1)) | 0; result = imul(result, 31) + (this.x97_1 == null ? 0 : getStringHashCode(this.x97_1)) | 0; return result; }; protoOf(Person).equals = function (other) { if (this === other) return true; if (!(other instanceof Person)) return false; var tmp0_other_with_cast = other instanceof Person ? other : THROW_CCE(); if (!this.a97_1.equals(tmp0_other_with_cast.a97_1)) return false; if (!(this.b97_1 == tmp0_other_with_cast.b97_1)) return false; if (!(this.c97_1 == tmp0_other_with_cast.c97_1)) return false; if (!(this.d97_1 == tmp0_other_with_cast.d97_1)) return false; if (!(this.e97_1 == tmp0_other_with_cast.e97_1)) return false; if (!(this.f97_1 == tmp0_other_with_cast.f97_1)) return false; if (!(this.g97_1 === tmp0_other_with_cast.g97_1)) return false; if (!(this.h97_1 === tmp0_other_with_cast.h97_1)) return false; if (!this.i97_1.equals(tmp0_other_with_cast.i97_1)) return false; if (!(this.j97_1 == tmp0_other_with_cast.j97_1)) return false; if (!(this.k97_1 == tmp0_other_with_cast.k97_1)) return false; if (!this.l97_1.equals(tmp0_other_with_cast.l97_1)) return false; if (!this.m97_1.equals(tmp0_other_with_cast.m97_1)) return false; if (!(this.n97_1 == tmp0_other_with_cast.n97_1)) return false; if (!(this.o97_1 === tmp0_other_with_cast.o97_1)) return false; if (!this.p97_1.equals(tmp0_other_with_cast.p97_1)) return false; if (!this.q97_1.equals(tmp0_other_with_cast.q97_1)) return false; if (!(this.r97_1 === tmp0_other_with_cast.r97_1)) return false; if (!(this.s97_1 === tmp0_other_with_cast.s97_1)) return false; if (!(this.t97_1 == tmp0_other_with_cast.t97_1)) return false; if (!(this.u97_1 == tmp0_other_with_cast.u97_1)) return false; if (!(this.v97_1 == tmp0_other_with_cast.v97_1)) return false; if (!(this.w97_1 == tmp0_other_with_cast.w97_1)) return false; if (!(this.x97_1 == tmp0_other_with_cast.x97_1)) return false; return true; }; function Companion_98() { } var Companion_instance_99; function Companion_getInstance_101() { return Companion_instance_99; } function $serializer_95() { $serializer_instance_95 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonAndDisplayDetail', this, 4); tmp0_serialDesc.d4g('person', true); tmp0_serialDesc.d4g('parentJoin', true); tmp0_serialDesc.d4g('personPicture', true); tmp0_serialDesc.d4g('personPictureTransferJobItem', true); this.nkd_1 = tmp0_serialDesc; } protoOf($serializer_95).a45 = function () { return this.nkd_1; }; protoOf($serializer_95).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_94()), get_nullable($serializer_getInstance_99()), get_nullable($serializer_getInstance_101()), get_nullable($serializer_getInstance_113())]; }; protoOf($serializer_95).c45 = function (decoder) { var tmp0_desc = this.nkd_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.s48(tmp0_desc); if (tmp8_input.h49()) { tmp4_local0 = tmp8_input.g49(tmp0_desc, 0, $serializer_getInstance_94(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.g49(tmp0_desc, 1, $serializer_getInstance_99(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, $serializer_getInstance_101(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, $serializer_getInstance_113(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.g49(tmp0_desc, 0, $serializer_getInstance_94(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.g49(tmp0_desc, 1, $serializer_getInstance_99(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.g49(tmp0_desc, 2, $serializer_getInstance_101(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, $serializer_getInstance_113(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.t48(tmp0_desc); return PersonAndDisplayDetail_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_95).okd = function (encoder, value) { var tmp0_desc = this.nkd_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.bft_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_94(), value.bft_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.cft_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_99(), value.cft_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.dft_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, $serializer_getInstance_101(), value.dft_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.eft_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, $serializer_getInstance_113(), value.eft_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_95).b45 = function (encoder, value) { return this.okd(encoder, value instanceof PersonAndDisplayDetail ? value : THROW_CCE()); }; var $serializer_instance_95; function $serializer_getInstance_95() { if ($serializer_instance_95 == null) new $serializer_95(); return $serializer_instance_95; } function PersonAndDisplayDetail_init_$Init$(seen1, person, parentJoin, personPicture, personPictureTransferJobItem, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_95().nkd_1); } if (0 === (seen1 & 1)) $this.bft_1 = null; else $this.bft_1 = person; if (0 === (seen1 & 2)) $this.cft_1 = null; else $this.cft_1 = parentJoin; if (0 === (seen1 & 4)) $this.dft_1 = null; else $this.dft_1 = personPicture; if (0 === (seen1 & 8)) $this.eft_1 = null; else $this.eft_1 = personPictureTransferJobItem; return $this; } function PersonAndDisplayDetail_init_$Create$(seen1, person, parentJoin, personPicture, personPictureTransferJobItem, serializationConstructorMarker) { return PersonAndDisplayDetail_init_$Init$(seen1, person, parentJoin, personPicture, personPictureTransferJobItem, serializationConstructorMarker, objectCreate(protoOf(PersonAndDisplayDetail))); } function PersonAndDisplayDetail(person, parentJoin, personPicture, personPictureTransferJobItem) { person = person === VOID ? null : person; parentJoin = parentJoin === VOID ? null : parentJoin; personPicture = personPicture === VOID ? null : personPicture; personPictureTransferJobItem = personPictureTransferJobItem === VOID ? null : personPictureTransferJobItem; this.bft_1 = person; this.cft_1 = parentJoin; this.dft_1 = personPicture; this.eft_1 = personPictureTransferJobItem; } protoOf(PersonAndDisplayDetail).toString = function () { return 'PersonAndDisplayDetail(person=' + this.bft_1 + ', parentJoin=' + this.cft_1 + ', personPicture=' + this.dft_1 + ', personPictureTransferJobItem=' + this.eft_1 + ')'; }; protoOf(PersonAndDisplayDetail).hashCode = function () { var result = this.bft_1 == null ? 0 : this.bft_1.hashCode(); result = imul(result, 31) + (this.cft_1 == null ? 0 : this.cft_1.hashCode()) | 0; result = imul(result, 31) + (this.dft_1 == null ? 0 : this.dft_1.hashCode()) | 0; result = imul(result, 31) + (this.eft_1 == null ? 0 : this.eft_1.hashCode()) | 0; return result; }; protoOf(PersonAndDisplayDetail).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonAndDisplayDetail)) return false; var tmp0_other_with_cast = other instanceof PersonAndDisplayDetail ? other : THROW_CCE(); if (!equals(this.bft_1, tmp0_other_with_cast.bft_1)) return false; if (!equals(this.cft_1, tmp0_other_with_cast.cft_1)) return false; if (!equals(this.dft_1, tmp0_other_with_cast.dft_1)) return false; if (!equals(this.eft_1, tmp0_other_with_cast.eft_1)) return false; return true; }; function Companion_99() { this.pkd_1 = 1; this.qkd_1 = 0; } var Companion_instance_100; function Companion_getInstance_102() { return Companion_instance_100; } function $serializer_96() { $serializer_instance_96 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonAuth', this, 3); tmp0_serialDesc.d4g('personAuthUid', true); tmp0_serialDesc.d4g('passwordHash', true); tmp0_serialDesc.d4g('personAuthStatus', true); this.rkd_1 = tmp0_serialDesc; } protoOf($serializer_96).a45 = function () { return this.rkd_1; }; protoOf($serializer_96).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance()]; }; protoOf($serializer_96).c45 = function (decoder) { var tmp0_desc = this.rkd_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = 0; var tmp7_input = decoder.s48(tmp0_desc); if (tmp7_input.h49()) { tmp4_local0 = tmp7_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.t48(tmp0_desc); return PersonAuth_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_96).skd = function (encoder, value) { var tmp0_desc = this.rkd_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.tfp_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.tfp_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.ufp_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.ufp_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.vfp_1 === 0)) { tmp1_output.b4a(tmp0_desc, 2, value.vfp_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_96).b45 = function (encoder, value) { return this.skd(encoder, value instanceof PersonAuth ? value : THROW_CCE()); }; var $serializer_instance_96; function $serializer_getInstance_96() { if ($serializer_instance_96 == null) new $serializer_96(); return $serializer_instance_96; } function PersonAuth_init_$Init$(seen1, personAuthUid, passwordHash, personAuthStatus, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_96().rkd_1); } if (0 === (seen1 & 1)) $this.tfp_1 = new Long(0, 0); else $this.tfp_1 = personAuthUid; if (0 === (seen1 & 2)) $this.ufp_1 = null; else $this.ufp_1 = passwordHash; if (0 === (seen1 & 4)) $this.vfp_1 = 0; else $this.vfp_1 = personAuthStatus; return $this; } function PersonAuth_init_$Create$(seen1, personAuthUid, passwordHash, personAuthStatus, serializationConstructorMarker) { return PersonAuth_init_$Init$(seen1, personAuthUid, passwordHash, personAuthStatus, serializationConstructorMarker, objectCreate(protoOf(PersonAuth))); } function PersonAuth() { this.tfp_1 = new Long(0, 0); this.ufp_1 = null; this.vfp_1 = 0; } function Companion_100() { this.tkd_1 = 'PBKDF2x2'; this.ukd_1 = 678; } var Companion_instance_101; function Companion_getInstance_103() { return Companion_instance_101; } function PersonAuth2() { this.pfn_1 = new Long(0, 0); this.qfn_1 = null; this.rfn_1 = null; this.sfn_1 = new Long(0, 0); this.tfn_1 = new Long(0, 0); this.ufn_1 = new Long(0, 0); this.vfn_1 = new Long(0, 0); } function Companion_101() { this.vkd_1 = 43; this.wkd_1 = 0; this.xkd_1 = 1; this.ykd_1 = 2; this.zkd_1 = 4; this.ake_1 = 8; this.bke_1 = 16; } var Companion_instance_102; function Companion_getInstance_104() { return Companion_instance_102; } function $serializer_97() { $serializer_instance_97 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonGroup', this, 8); tmp0_serialDesc.d4g('groupUid', true); tmp0_serialDesc.d4g('groupMasterCsn', true); tmp0_serialDesc.d4g('groupLocalCsn', true); tmp0_serialDesc.d4g('groupLastChangedBy', true); tmp0_serialDesc.d4g('groupLct', true); tmp0_serialDesc.d4g('groupName', true); tmp0_serialDesc.d4g('groupActive', true); tmp0_serialDesc.d4g('personGroupFlag', true); this.cke_1 = tmp0_serialDesc; } protoOf($serializer_97).a45 = function () { return this.cke_1; }; protoOf($serializer_97).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), IntSerializer_getInstance()]; }; protoOf($serializer_97).c45 = function (decoder) { var tmp0_desc = this.cke_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = 0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = null; var tmp10_local6 = false; var tmp11_local7 = 0; var tmp12_input = decoder.s48(tmp0_desc); if (tmp12_input.h49()) { tmp4_local0 = tmp12_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.x48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.x48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.t48(tmp0_desc); return PersonGroup_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_97).dke = function (encoder, value) { var tmp0_desc = this.cke_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.ifv_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.ifv_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.jfv_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.jfv_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.kfv_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.kfv_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.lfv_1 === 0)) { tmp1_output.b4a(tmp0_desc, 3, value.lfv_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.mfv_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.mfv_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.nfv_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, StringSerializer_getInstance(), value.nfv_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.ofv_1 === true)) { tmp1_output.y49(tmp0_desc, 6, value.ofv_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.pfv_1 === 0)) { tmp1_output.b4a(tmp0_desc, 7, value.pfv_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_97).b45 = function (encoder, value) { return this.dke(encoder, value instanceof PersonGroup ? value : THROW_CCE()); }; var $serializer_instance_97; function $serializer_getInstance_97() { if ($serializer_instance_97 == null) new $serializer_97(); return $serializer_instance_97; } function PersonGroup_init_$Init$(seen1, groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_97().cke_1); } if (0 === (seen1 & 1)) $this.ifv_1 = new Long(0, 0); else $this.ifv_1 = groupUid; if (0 === (seen1 & 2)) $this.jfv_1 = new Long(0, 0); else $this.jfv_1 = groupMasterCsn; if (0 === (seen1 & 4)) $this.kfv_1 = new Long(0, 0); else $this.kfv_1 = groupLocalCsn; if (0 === (seen1 & 8)) $this.lfv_1 = 0; else $this.lfv_1 = groupLastChangedBy; if (0 === (seen1 & 16)) $this.mfv_1 = new Long(0, 0); else $this.mfv_1 = groupLct; if (0 === (seen1 & 32)) $this.nfv_1 = null; else $this.nfv_1 = groupName; if (0 === (seen1 & 64)) $this.ofv_1 = true; else $this.ofv_1 = groupActive; if (0 === (seen1 & 128)) $this.pfv_1 = 0; else $this.pfv_1 = personGroupFlag; return $this; } function PersonGroup_init_$Create$(seen1, groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag, serializationConstructorMarker) { return PersonGroup_init_$Init$(seen1, groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag, serializationConstructorMarker, objectCreate(protoOf(PersonGroup))); } function PersonGroup() { this.ifv_1 = new Long(0, 0); this.jfv_1 = new Long(0, 0); this.kfv_1 = new Long(0, 0); this.lfv_1 = 0; this.mfv_1 = new Long(0, 0); this.nfv_1 = null; this.ofv_1 = true; this.pfv_1 = 0; } function PersonGroupMember_init_$Init$(personUid, groupUid, $this) { PersonGroupMember.call($this); $this.vfv_1 = personUid; $this.wfv_1 = groupUid; return $this; } function PersonGroupMember_init_$Create$(personUid, groupUid) { return PersonGroupMember_init_$Init$(personUid, groupUid, objectCreate(protoOf(PersonGroupMember))); } function Companion_102() { this.eke_1 = 44; } var Companion_instance_103; function Companion_getInstance_105() { return Companion_instance_103; } function $serializer_98() { $serializer_instance_98 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonGroupMember', this, 8); tmp0_serialDesc.d4g('groupMemberUid', true); tmp0_serialDesc.d4g('groupMemberActive', true); tmp0_serialDesc.d4g('groupMemberPersonUid', true); tmp0_serialDesc.d4g('groupMemberGroupUid', true); tmp0_serialDesc.d4g('groupMemberMasterCsn', true); tmp0_serialDesc.d4g('groupMemberLocalCsn', true); tmp0_serialDesc.d4g('groupMemberLastChangedBy', true); tmp0_serialDesc.d4g('groupMemberLct', true); this.fke_1 = tmp0_serialDesc; } protoOf($serializer_98).a45 = function () { return this.fke_1; }; protoOf($serializer_98).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_98).c45 = function (decoder) { var tmp0_desc = this.fke_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = false; var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = 0; var tmp11_local7 = new Long(0, 0); var tmp12_input = decoder.s48(tmp0_desc); if (tmp12_input.h49()) { tmp4_local0 = tmp12_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.u48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.x48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.u48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.x48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.t48(tmp0_desc); return PersonGroupMember_init_$Create$_0(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_98).gke = function (encoder, value) { var tmp0_desc = this.fke_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.tfv_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.tfv_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.ufv_1 === true)) { tmp1_output.y49(tmp0_desc, 1, value.ufv_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.vfv_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.vfv_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.wfv_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.wfv_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.xfv_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.xfv_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.yfv_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.yfv_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.zfv_1 === 0)) { tmp1_output.b4a(tmp0_desc, 6, value.zfv_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.afw_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.afw_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_98).b45 = function (encoder, value) { return this.gke(encoder, value instanceof PersonGroupMember ? value : THROW_CCE()); }; var $serializer_instance_98; function $serializer_getInstance_98() { if ($serializer_instance_98 == null) new $serializer_98(); return $serializer_instance_98; } function PersonGroupMember_init_$Init$_0(seen1, groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_98().fke_1); } if (0 === (seen1 & 1)) $this.tfv_1 = new Long(0, 0); else $this.tfv_1 = groupMemberUid; if (0 === (seen1 & 2)) $this.ufv_1 = true; else $this.ufv_1 = groupMemberActive; if (0 === (seen1 & 4)) $this.vfv_1 = new Long(0, 0); else $this.vfv_1 = groupMemberPersonUid; if (0 === (seen1 & 8)) $this.wfv_1 = new Long(0, 0); else $this.wfv_1 = groupMemberGroupUid; if (0 === (seen1 & 16)) $this.xfv_1 = new Long(0, 0); else $this.xfv_1 = groupMemberMasterCsn; if (0 === (seen1 & 32)) $this.yfv_1 = new Long(0, 0); else $this.yfv_1 = groupMemberLocalCsn; if (0 === (seen1 & 64)) $this.zfv_1 = 0; else $this.zfv_1 = groupMemberLastChangedBy; if (0 === (seen1 & 128)) $this.afw_1 = new Long(0, 0); else $this.afw_1 = groupMemberLct; return $this; } function PersonGroupMember_init_$Create$_0(seen1, groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct, serializationConstructorMarker) { return PersonGroupMember_init_$Init$_0(seen1, groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct, serializationConstructorMarker, objectCreate(protoOf(PersonGroupMember))); } function PersonGroupMember() { this.tfv_1 = new Long(0, 0); this.ufv_1 = true; this.vfv_1 = new Long(0, 0); this.wfv_1 = new Long(0, 0); this.xfv_1 = new Long(0, 0); this.yfv_1 = new Long(0, 0); this.zfv_1 = 0; this.afw_1 = new Long(0, 0); } function Companion_103() { this.hke_1 = 512; this.ike_1 = 0; this.jke_1 = 1; this.kke_1 = 2; this.lke_1 = 1; this.mke_1 = 2; this.nke_1 = 4; this.oke_1 = 8; } var Companion_instance_104; function Companion_getInstance_106() { return Companion_instance_104; } function $serializer_99() { $serializer_instance_99 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonParentJoin', this, 14); tmp0_serialDesc.d4g('ppjUid', true); tmp0_serialDesc.d4g('ppjPcsn', true); tmp0_serialDesc.d4g('ppjLcsn', true); tmp0_serialDesc.d4g('ppjLcb', true); tmp0_serialDesc.d4g('ppjLct', true); tmp0_serialDesc.d4g('ppjParentPersonUid', true); tmp0_serialDesc.d4g('ppjMinorPersonUid', true); tmp0_serialDesc.d4g('ppjRelationship', true); tmp0_serialDesc.d4g('ppjEmail', true); tmp0_serialDesc.d4g('ppjPhone', true); tmp0_serialDesc.d4g('ppjInactive', true); tmp0_serialDesc.d4g('ppjStatus', true); tmp0_serialDesc.d4g('ppjApprovalTiemstamp', true); tmp0_serialDesc.d4g('ppjApprovalIpAddr', true); this.pke_1 = tmp0_serialDesc; } protoOf($serializer_99).a45 = function () { return this.pke_1; }; protoOf($serializer_99).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_99).c45 = function (decoder) { var tmp0_desc = this.pke_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = 0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = new Long(0, 0); var tmp11_local7 = 0; var tmp12_local8 = null; var tmp13_local9 = null; var tmp14_local10 = false; var tmp15_local11 = 0; var tmp16_local12 = new Long(0, 0); var tmp17_local13 = null; var tmp18_input = decoder.s48(tmp0_desc); if (tmp18_input.h49()) { tmp4_local0 = tmp18_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp18_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp18_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp18_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp18_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp18_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp18_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp18_input.x48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp18_input.g49(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp18_input.g49(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp18_input.u48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp18_input.x48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp18_input.y48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp18_input.g49(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; } else while (tmp1_flag) { tmp2_index = tmp18_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp18_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp18_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp18_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp18_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp18_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp18_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp18_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp18_input.x48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp18_input.g49(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp18_input.g49(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp18_input.u48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp18_input.x48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp18_input.y48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp18_input.g49(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp18_input.t48(tmp0_desc); return PersonParentJoin_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); }; protoOf($serializer_99).qke = function (encoder, value) { var tmp0_desc = this.pke_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.fft_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.fft_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.gft_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.gft_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.hft_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.hft_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.ift_1 === 0)) { tmp1_output.b4a(tmp0_desc, 3, value.ift_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.jft_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.jft_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.kft_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.kft_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.lft_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.lft_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.mft_1 === 0)) { tmp1_output.b4a(tmp0_desc, 7, value.mft_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !(value.nft_1 == null)) { tmp1_output.k4a(tmp0_desc, 8, StringSerializer_getInstance(), value.nft_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !(value.oft_1 == null)) { tmp1_output.k4a(tmp0_desc, 9, StringSerializer_getInstance(), value.oft_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !(value.pft_1 === false)) { tmp1_output.y49(tmp0_desc, 10, value.pft_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !(value.qft_1 === 0)) { tmp1_output.b4a(tmp0_desc, 11, value.qft_1); } if (tmp1_output.o4a(tmp0_desc, 12) ? true : !value.rft_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 12, value.rft_1); } if (tmp1_output.o4a(tmp0_desc, 13) ? true : !(value.sft_1 == null)) { tmp1_output.k4a(tmp0_desc, 13, StringSerializer_getInstance(), value.sft_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_99).b45 = function (encoder, value) { return this.qke(encoder, value instanceof PersonParentJoin ? value : THROW_CCE()); }; var $serializer_instance_99; function $serializer_getInstance_99() { if ($serializer_instance_99 == null) new $serializer_99(); return $serializer_instance_99; } function PersonParentJoin_init_$Init$(seen1, ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_99().pke_1); } if (0 === (seen1 & 1)) $this.fft_1 = new Long(0, 0); else $this.fft_1 = ppjUid; if (0 === (seen1 & 2)) $this.gft_1 = new Long(0, 0); else $this.gft_1 = ppjPcsn; if (0 === (seen1 & 4)) $this.hft_1 = new Long(0, 0); else $this.hft_1 = ppjLcsn; if (0 === (seen1 & 8)) $this.ift_1 = 0; else $this.ift_1 = ppjLcb; if (0 === (seen1 & 16)) $this.jft_1 = new Long(0, 0); else $this.jft_1 = ppjLct; if (0 === (seen1 & 32)) $this.kft_1 = new Long(0, 0); else $this.kft_1 = ppjParentPersonUid; if (0 === (seen1 & 64)) $this.lft_1 = new Long(0, 0); else $this.lft_1 = ppjMinorPersonUid; if (0 === (seen1 & 128)) $this.mft_1 = 0; else $this.mft_1 = ppjRelationship; if (0 === (seen1 & 256)) $this.nft_1 = null; else $this.nft_1 = ppjEmail; if (0 === (seen1 & 512)) $this.oft_1 = null; else $this.oft_1 = ppjPhone; if (0 === (seen1 & 1024)) $this.pft_1 = false; else $this.pft_1 = ppjInactive; if (0 === (seen1 & 2048)) $this.qft_1 = 0; else $this.qft_1 = ppjStatus; if (0 === (seen1 & 4096)) $this.rft_1 = new Long(0, 0); else $this.rft_1 = ppjApprovalTiemstamp; if (0 === (seen1 & 8192)) $this.sft_1 = null; else $this.sft_1 = ppjApprovalIpAddr; return $this; } function PersonParentJoin_init_$Create$(seen1, ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr, serializationConstructorMarker) { return PersonParentJoin_init_$Init$(seen1, ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr, serializationConstructorMarker, objectCreate(protoOf(PersonParentJoin))); } function PersonParentJoin(ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr) { ppjUid = ppjUid === VOID ? new Long(0, 0) : ppjUid; ppjPcsn = ppjPcsn === VOID ? new Long(0, 0) : ppjPcsn; ppjLcsn = ppjLcsn === VOID ? new Long(0, 0) : ppjLcsn; ppjLcb = ppjLcb === VOID ? 0 : ppjLcb; ppjLct = ppjLct === VOID ? new Long(0, 0) : ppjLct; ppjParentPersonUid = ppjParentPersonUid === VOID ? new Long(0, 0) : ppjParentPersonUid; ppjMinorPersonUid = ppjMinorPersonUid === VOID ? new Long(0, 0) : ppjMinorPersonUid; ppjRelationship = ppjRelationship === VOID ? 0 : ppjRelationship; ppjEmail = ppjEmail === VOID ? null : ppjEmail; ppjPhone = ppjPhone === VOID ? null : ppjPhone; ppjInactive = ppjInactive === VOID ? false : ppjInactive; ppjStatus = ppjStatus === VOID ? 0 : ppjStatus; ppjApprovalTiemstamp = ppjApprovalTiemstamp === VOID ? new Long(0, 0) : ppjApprovalTiemstamp; ppjApprovalIpAddr = ppjApprovalIpAddr === VOID ? null : ppjApprovalIpAddr; this.fft_1 = ppjUid; this.gft_1 = ppjPcsn; this.hft_1 = ppjLcsn; this.ift_1 = ppjLcb; this.jft_1 = ppjLct; this.kft_1 = ppjParentPersonUid; this.lft_1 = ppjMinorPersonUid; this.mft_1 = ppjRelationship; this.nft_1 = ppjEmail; this.oft_1 = ppjPhone; this.pft_1 = ppjInactive; this.qft_1 = ppjStatus; this.rft_1 = ppjApprovalTiemstamp; this.sft_1 = ppjApprovalIpAddr; } protoOf(PersonParentJoin).toString = function () { return 'PersonParentJoin(ppjUid=' + this.fft_1.toString() + ', ppjPcsn=' + this.gft_1.toString() + ', ppjLcsn=' + this.hft_1.toString() + ', ppjLcb=' + this.ift_1 + ', ppjLct=' + this.jft_1.toString() + ', ppjParentPersonUid=' + this.kft_1.toString() + ', ppjMinorPersonUid=' + this.lft_1.toString() + ', ppjRelationship=' + this.mft_1 + ', ppjEmail=' + this.nft_1 + ', ppjPhone=' + this.oft_1 + ', ppjInactive=' + this.pft_1 + ', ppjStatus=' + this.qft_1 + ', ppjApprovalTiemstamp=' + this.rft_1.toString() + ', ppjApprovalIpAddr=' + this.sft_1 + ')'; }; protoOf(PersonParentJoin).hashCode = function () { var result = this.fft_1.hashCode(); result = imul(result, 31) + this.gft_1.hashCode() | 0; result = imul(result, 31) + this.hft_1.hashCode() | 0; result = imul(result, 31) + this.ift_1 | 0; result = imul(result, 31) + this.jft_1.hashCode() | 0; result = imul(result, 31) + this.kft_1.hashCode() | 0; result = imul(result, 31) + this.lft_1.hashCode() | 0; result = imul(result, 31) + this.mft_1 | 0; result = imul(result, 31) + (this.nft_1 == null ? 0 : getStringHashCode(this.nft_1)) | 0; result = imul(result, 31) + (this.oft_1 == null ? 0 : getStringHashCode(this.oft_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.pft_1) | 0; result = imul(result, 31) + this.qft_1 | 0; result = imul(result, 31) + this.rft_1.hashCode() | 0; result = imul(result, 31) + (this.sft_1 == null ? 0 : getStringHashCode(this.sft_1)) | 0; return result; }; protoOf(PersonParentJoin).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonParentJoin)) return false; var tmp0_other_with_cast = other instanceof PersonParentJoin ? other : THROW_CCE(); if (!this.fft_1.equals(tmp0_other_with_cast.fft_1)) return false; if (!this.gft_1.equals(tmp0_other_with_cast.gft_1)) return false; if (!this.hft_1.equals(tmp0_other_with_cast.hft_1)) return false; if (!(this.ift_1 === tmp0_other_with_cast.ift_1)) return false; if (!this.jft_1.equals(tmp0_other_with_cast.jft_1)) return false; if (!this.kft_1.equals(tmp0_other_with_cast.kft_1)) return false; if (!this.lft_1.equals(tmp0_other_with_cast.lft_1)) return false; if (!(this.mft_1 === tmp0_other_with_cast.mft_1)) return false; if (!(this.nft_1 == tmp0_other_with_cast.nft_1)) return false; if (!(this.oft_1 == tmp0_other_with_cast.oft_1)) return false; if (!(this.pft_1 === tmp0_other_with_cast.pft_1)) return false; if (!(this.qft_1 === tmp0_other_with_cast.qft_1)) return false; if (!this.rft_1.equals(tmp0_other_with_cast.rft_1)) return false; if (!(this.sft_1 == tmp0_other_with_cast.sft_1)) return false; return true; }; function Companion_104() { } protoOf(Companion_104).x4r = function () { return $serializer_getInstance_100(); }; var Companion_instance_105; function Companion_getInstance_107() { return Companion_instance_105; } function $serializer_100() { $serializer_instance_100 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonParentJoinAndMinorPerson', this, 2); tmp0_serialDesc.d4g('personParentJoin', true); tmp0_serialDesc.d4g('minorPerson', true); this.rke_1 = tmp0_serialDesc; } protoOf($serializer_100).a45 = function () { return this.rke_1; }; protoOf($serializer_100).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_99()), get_nullable($serializer_getInstance_94())]; }; protoOf($serializer_100).c45 = function (decoder) { var tmp0_desc = this.rke_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.s48(tmp0_desc); if (tmp6_input.h49()) { tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, $serializer_getInstance_99(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_94(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.g49(tmp0_desc, 0, $serializer_getInstance_99(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.g49(tmp0_desc, 1, $serializer_getInstance_94(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.t48(tmp0_desc); return PersonParentJoinAndMinorPerson_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_100).ske = function (encoder, value) { var tmp0_desc = this.rke_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.hge_1 == null)) { tmp1_output.k4a(tmp0_desc, 0, $serializer_getInstance_99(), value.hge_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.ige_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, $serializer_getInstance_94(), value.ige_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_100).b45 = function (encoder, value) { return this.ske(encoder, value instanceof PersonParentJoinAndMinorPerson ? value : THROW_CCE()); }; var $serializer_instance_100; function $serializer_getInstance_100() { if ($serializer_instance_100 == null) new $serializer_100(); return $serializer_instance_100; } function PersonParentJoinAndMinorPerson_init_$Init$(seen1, personParentJoin, minorPerson, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_100().rke_1); } if (0 === (seen1 & 1)) $this.hge_1 = null; else $this.hge_1 = personParentJoin; if (0 === (seen1 & 2)) $this.ige_1 = null; else $this.ige_1 = minorPerson; return $this; } function PersonParentJoinAndMinorPerson_init_$Create$(seen1, personParentJoin, minorPerson, serializationConstructorMarker) { return PersonParentJoinAndMinorPerson_init_$Init$(seen1, personParentJoin, minorPerson, serializationConstructorMarker, objectCreate(protoOf(PersonParentJoinAndMinorPerson))); } function PersonParentJoinAndMinorPerson(personParentJoin, minorPerson) { personParentJoin = personParentJoin === VOID ? null : personParentJoin; minorPerson = minorPerson === VOID ? null : minorPerson; this.hge_1 = personParentJoin; this.ige_1 = minorPerson; } protoOf(PersonParentJoinAndMinorPerson).tke = function (personParentJoin, minorPerson) { return new PersonParentJoinAndMinorPerson(personParentJoin, minorPerson); }; protoOf(PersonParentJoinAndMinorPerson).uke = function (personParentJoin, minorPerson, $super) { personParentJoin = personParentJoin === VOID ? this.hge_1 : personParentJoin; minorPerson = minorPerson === VOID ? this.ige_1 : minorPerson; return $super === VOID ? this.tke(personParentJoin, minorPerson) : $super.tke.call(this, personParentJoin, minorPerson); }; protoOf(PersonParentJoinAndMinorPerson).toString = function () { return 'PersonParentJoinAndMinorPerson(personParentJoin=' + this.hge_1 + ', minorPerson=' + this.ige_1 + ')'; }; protoOf(PersonParentJoinAndMinorPerson).hashCode = function () { var result = this.hge_1 == null ? 0 : this.hge_1.hashCode(); result = imul(result, 31) + (this.ige_1 == null ? 0 : this.ige_1.hashCode()) | 0; return result; }; protoOf(PersonParentJoinAndMinorPerson).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonParentJoinAndMinorPerson)) return false; var tmp0_other_with_cast = other instanceof PersonParentJoinAndMinorPerson ? other : THROW_CCE(); if (!equals(this.hge_1, tmp0_other_with_cast.hge_1)) return false; if (!equals(this.ige_1, tmp0_other_with_cast.ige_1)) return false; return true; }; function Companion_105() { this.vke_1 = 50; } protoOf(Companion_105).x4r = function () { return $serializer_getInstance_101(); }; var Companion_instance_106; function Companion_getInstance_108() { return Companion_instance_106; } function $serializer_101() { $serializer_instance_101 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonPicture', this, 6); tmp0_serialDesc.d4g('personPictureUid', true); tmp0_serialDesc.d4g('personPictureLct', true); tmp0_serialDesc.d4g('personPictureUri', true); tmp0_serialDesc.d4g('personPictureThumbnailUri', true); tmp0_serialDesc.d4g('fileSize', true); tmp0_serialDesc.d4g('personPictureActive', true); this.wke_1 = tmp0_serialDesc; } protoOf($serializer_101).a45 = function () { return this.wke_1; }; protoOf($serializer_101).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_101).c45 = function (decoder) { var tmp0_desc = this.wke_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = 0; var tmp9_local5 = false; var tmp10_input = decoder.s48(tmp0_desc); if (tmp10_input.h49()) { tmp4_local0 = tmp10_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.u48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.u48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.t48(tmp0_desc); return PersonPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_101).xke = function (encoder, value) { var tmp0_desc = this.wke_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.y97_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.y97_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.z97_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.z97_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.a98_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.a98_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.b98_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.b98_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.c98_1 === 0)) { tmp1_output.b4a(tmp0_desc, 4, value.c98_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.d98_1 === true)) { tmp1_output.y49(tmp0_desc, 5, value.d98_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_101).b45 = function (encoder, value) { return this.xke(encoder, value instanceof PersonPicture ? value : THROW_CCE()); }; var $serializer_instance_101; function $serializer_getInstance_101() { if ($serializer_instance_101 == null) new $serializer_101(); return $serializer_instance_101; } function PersonPicture_init_$Init$(seen1, personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_101().wke_1); } if (0 === (seen1 & 1)) $this.y97_1 = new Long(0, 0); else $this.y97_1 = personPictureUid; if (0 === (seen1 & 2)) $this.z97_1 = new Long(0, 0); else $this.z97_1 = personPictureLct; if (0 === (seen1 & 4)) $this.a98_1 = null; else $this.a98_1 = personPictureUri; if (0 === (seen1 & 8)) $this.b98_1 = null; else $this.b98_1 = personPictureThumbnailUri; if (0 === (seen1 & 16)) $this.c98_1 = 0; else $this.c98_1 = fileSize; if (0 === (seen1 & 32)) $this.d98_1 = true; else $this.d98_1 = personPictureActive; return $this; } function PersonPicture_init_$Create$(seen1, personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive, serializationConstructorMarker) { return PersonPicture_init_$Init$(seen1, personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive, serializationConstructorMarker, objectCreate(protoOf(PersonPicture))); } function PersonPicture(personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive) { personPictureUid = personPictureUid === VOID ? new Long(0, 0) : personPictureUid; personPictureLct = personPictureLct === VOID ? new Long(0, 0) : personPictureLct; personPictureUri = personPictureUri === VOID ? null : personPictureUri; personPictureThumbnailUri = personPictureThumbnailUri === VOID ? null : personPictureThumbnailUri; fileSize = fileSize === VOID ? 0 : fileSize; personPictureActive = personPictureActive === VOID ? true : personPictureActive; this.y97_1 = personPictureUid; this.z97_1 = personPictureLct; this.a98_1 = personPictureUri; this.b98_1 = personPictureThumbnailUri; this.c98_1 = fileSize; this.d98_1 = personPictureActive; } protoOf(PersonPicture).toString = function () { return 'PersonPicture(personPictureUid=' + this.y97_1.toString() + ', personPictureLct=' + this.z97_1.toString() + ', personPictureUri=' + this.a98_1 + ', personPictureThumbnailUri=' + this.b98_1 + ', fileSize=' + this.c98_1 + ', personPictureActive=' + this.d98_1 + ')'; }; protoOf(PersonPicture).hashCode = function () { var result = this.y97_1.hashCode(); result = imul(result, 31) + this.z97_1.hashCode() | 0; result = imul(result, 31) + (this.a98_1 == null ? 0 : getStringHashCode(this.a98_1)) | 0; result = imul(result, 31) + (this.b98_1 == null ? 0 : getStringHashCode(this.b98_1)) | 0; result = imul(result, 31) + this.c98_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.d98_1) | 0; return result; }; protoOf(PersonPicture).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonPicture)) return false; var tmp0_other_with_cast = other instanceof PersonPicture ? other : THROW_CCE(); if (!this.y97_1.equals(tmp0_other_with_cast.y97_1)) return false; if (!this.z97_1.equals(tmp0_other_with_cast.z97_1)) return false; if (!(this.a98_1 == tmp0_other_with_cast.a98_1)) return false; if (!(this.b98_1 == tmp0_other_with_cast.b98_1)) return false; if (!(this.c98_1 === tmp0_other_with_cast.c98_1)) return false; if (!(this.d98_1 === tmp0_other_with_cast.d98_1)) return false; return true; }; function Companion_106() { this.yke_1 = 101; } protoOf(Companion_106).x4r = function () { return $serializer_getInstance_102(); }; var Companion_instance_107; function Companion_getInstance_109() { return Companion_instance_107; } function $serializer_102() { $serializer_instance_102 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Report', this, 6); tmp0_serialDesc.d4g('reportUid', true); tmp0_serialDesc.d4g('reportTitle', true); tmp0_serialDesc.d4g('reportOptions', true); tmp0_serialDesc.d4g('reportIsTemplate', true); tmp0_serialDesc.d4g('reportLastModTime', true); tmp0_serialDesc.d4g('reportOwnerPersonUid', true); this.zke_1 = tmp0_serialDesc; } protoOf($serializer_102).a45 = function () { return this.zke_1; }; protoOf($serializer_102).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_102).c45 = function (decoder) { var tmp0_desc = this.zke_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = false; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_input = decoder.s48(tmp0_desc); if (tmp10_input.h49()) { tmp4_local0 = tmp10_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.u48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.u48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.t48(tmp0_desc); return Report_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_102).akf = function (encoder, value) { var tmp0_desc = this.zke_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.ygq_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.ygq_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.zgq_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.zgq_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.agr_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.agr_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.bgr_1 === false)) { tmp1_output.y49(tmp0_desc, 3, value.bgr_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.cgr_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.cgr_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.dgr_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.dgr_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_102).b45 = function (encoder, value) { return this.akf(encoder, value instanceof Report ? value : THROW_CCE()); }; var $serializer_instance_102; function $serializer_getInstance_102() { if ($serializer_instance_102 == null) new $serializer_102(); return $serializer_instance_102; } function Report_init_$Init$(seen1, reportUid, reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportOwnerPersonUid, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_102().zke_1); } if (0 === (seen1 & 1)) $this.ygq_1 = new Long(0, 0); else $this.ygq_1 = reportUid; if (0 === (seen1 & 2)) $this.zgq_1 = null; else $this.zgq_1 = reportTitle; if (0 === (seen1 & 4)) $this.agr_1 = null; else $this.agr_1 = reportOptions; if (0 === (seen1 & 8)) $this.bgr_1 = false; else $this.bgr_1 = reportIsTemplate; if (0 === (seen1 & 16)) $this.cgr_1 = new Long(0, 0); else $this.cgr_1 = reportLastModTime; if (0 === (seen1 & 32)) $this.dgr_1 = new Long(0, 0); else $this.dgr_1 = reportOwnerPersonUid; return $this; } function Report_init_$Create$(seen1, reportUid, reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportOwnerPersonUid, serializationConstructorMarker) { return Report_init_$Init$(seen1, reportUid, reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportOwnerPersonUid, serializationConstructorMarker, objectCreate(protoOf(Report))); } function Report(reportUid, reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportOwnerPersonUid) { reportUid = reportUid === VOID ? new Long(0, 0) : reportUid; reportTitle = reportTitle === VOID ? null : reportTitle; reportOptions = reportOptions === VOID ? null : reportOptions; reportIsTemplate = reportIsTemplate === VOID ? false : reportIsTemplate; reportLastModTime = reportLastModTime === VOID ? new Long(0, 0) : reportLastModTime; reportOwnerPersonUid = reportOwnerPersonUid === VOID ? new Long(0, 0) : reportOwnerPersonUid; this.ygq_1 = reportUid; this.zgq_1 = reportTitle; this.agr_1 = reportOptions; this.bgr_1 = reportIsTemplate; this.cgr_1 = reportLastModTime; this.dgr_1 = reportOwnerPersonUid; } protoOf(Report).toString = function () { return 'Report(reportUid=' + this.ygq_1.toString() + ', reportTitle=' + this.zgq_1 + ', reportOptions=' + this.agr_1 + ', reportIsTemplate=' + this.bgr_1 + ', reportLastModTime=' + this.cgr_1.toString() + ', reportOwnerPersonUid=' + this.dgr_1.toString() + ')'; }; protoOf(Report).hashCode = function () { var result = this.ygq_1.hashCode(); result = imul(result, 31) + (this.zgq_1 == null ? 0 : getStringHashCode(this.zgq_1)) | 0; result = imul(result, 31) + (this.agr_1 == null ? 0 : getStringHashCode(this.agr_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.bgr_1) | 0; result = imul(result, 31) + this.cgr_1.hashCode() | 0; result = imul(result, 31) + this.dgr_1.hashCode() | 0; return result; }; protoOf(Report).equals = function (other) { if (this === other) return true; if (!(other instanceof Report)) return false; var tmp0_other_with_cast = other instanceof Report ? other : THROW_CCE(); if (!this.ygq_1.equals(tmp0_other_with_cast.ygq_1)) return false; if (!(this.zgq_1 == tmp0_other_with_cast.zgq_1)) return false; if (!(this.agr_1 == tmp0_other_with_cast.agr_1)) return false; if (!(this.bgr_1 === tmp0_other_with_cast.bgr_1)) return false; if (!this.cgr_1.equals(tmp0_other_with_cast.cgr_1)) return false; if (!this.dgr_1.equals(tmp0_other_with_cast.dgr_1)) return false; return true; }; function Companion_107() { } var Companion_instance_108; function Companion_getInstance_110() { return Companion_instance_108; } function $serializer_103() { $serializer_instance_103 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ReportQueryResult', this, 9); tmp0_serialDesc.d4g('rqrUid', true); tmp0_serialDesc.d4g('rqrReportUid', true); tmp0_serialDesc.d4g('rqrLastModified', true); tmp0_serialDesc.d4g('rqrLastValidated', true); tmp0_serialDesc.d4g('rqrReportSeriesUid', true); tmp0_serialDesc.d4g('rqrXAxis', true); tmp0_serialDesc.d4g('rqrYAxis', true); tmp0_serialDesc.d4g('rqrSubgroup', true); tmp0_serialDesc.d4g('rqrTimeZone', true); this.bkf_1 = tmp0_serialDesc; } protoOf($serializer_103).a45 = function () { return this.bkf_1; }; protoOf($serializer_103).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), DoubleSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; }; protoOf($serializer_103).c45 = function (decoder) { var tmp0_desc = this.bkf_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = 0; var tmp9_local5 = null; var tmp10_local6 = 0.0; var tmp11_local7 = null; var tmp12_local8 = null; var tmp13_input = decoder.s48(tmp0_desc); if (tmp13_input.h49()) { tmp4_local0 = tmp13_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp13_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp13_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp13_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp13_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp13_input.c49(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp13_input.a49(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp13_input.c49(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp13_input.c49(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; } else while (tmp1_flag) { tmp2_index = tmp13_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp13_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp13_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp13_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp13_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp13_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp13_input.c49(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp13_input.a49(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp13_input.c49(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp13_input.c49(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp13_input.t48(tmp0_desc); return ReportQueryResult_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); }; protoOf($serializer_103).ckf = function (encoder, value) { var tmp0_desc = this.bkf_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.rgz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.rgz_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.sgz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.sgz_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.tgz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.tgz_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.ugz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.ugz_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.vgz_1 === 0)) { tmp1_output.b4a(tmp0_desc, 4, value.vgz_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.wgz_1 === '')) { tmp1_output.g4a(tmp0_desc, 5, value.wgz_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !equals(value.xgz_1, 0.0)) { tmp1_output.e4a(tmp0_desc, 6, value.xgz_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.ygz_1 === '')) { tmp1_output.g4a(tmp0_desc, 7, value.ygz_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !(value.zgz_1 === '')) { tmp1_output.g4a(tmp0_desc, 8, value.zgz_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_103).b45 = function (encoder, value) { return this.ckf(encoder, value instanceof ReportQueryResult ? value : THROW_CCE()); }; var $serializer_instance_103; function $serializer_getInstance_103() { if ($serializer_instance_103 == null) new $serializer_103(); return $serializer_instance_103; } function ReportQueryResult_init_$Init$(seen1, rqrUid, rqrReportUid, rqrLastModified, rqrLastValidated, rqrReportSeriesUid, rqrXAxis, rqrYAxis, rqrSubgroup, rqrTimeZone, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_103().bkf_1); } if (0 === (seen1 & 1)) $this.rgz_1 = new Long(0, 0); else $this.rgz_1 = rqrUid; if (0 === (seen1 & 2)) $this.sgz_1 = new Long(0, 0); else $this.sgz_1 = rqrReportUid; if (0 === (seen1 & 4)) $this.tgz_1 = new Long(0, 0); else $this.tgz_1 = rqrLastModified; if (0 === (seen1 & 8)) $this.ugz_1 = new Long(0, 0); else $this.ugz_1 = rqrLastValidated; if (0 === (seen1 & 16)) $this.vgz_1 = 0; else $this.vgz_1 = rqrReportSeriesUid; if (0 === (seen1 & 32)) $this.wgz_1 = ''; else $this.wgz_1 = rqrXAxis; if (0 === (seen1 & 64)) $this.xgz_1 = 0.0; else $this.xgz_1 = rqrYAxis; if (0 === (seen1 & 128)) $this.ygz_1 = ''; else $this.ygz_1 = rqrSubgroup; if (0 === (seen1 & 256)) $this.zgz_1 = ''; else $this.zgz_1 = rqrTimeZone; return $this; } function ReportQueryResult_init_$Create$(seen1, rqrUid, rqrReportUid, rqrLastModified, rqrLastValidated, rqrReportSeriesUid, rqrXAxis, rqrYAxis, rqrSubgroup, rqrTimeZone, serializationConstructorMarker) { return ReportQueryResult_init_$Init$(seen1, rqrUid, rqrReportUid, rqrLastModified, rqrLastValidated, rqrReportSeriesUid, rqrXAxis, rqrYAxis, rqrSubgroup, rqrTimeZone, serializationConstructorMarker, objectCreate(protoOf(ReportQueryResult))); } function ReportQueryResult(rqrUid, rqrReportUid, rqrLastModified, rqrLastValidated, rqrReportSeriesUid, rqrXAxis, rqrYAxis, rqrSubgroup, rqrTimeZone) { rqrUid = rqrUid === VOID ? new Long(0, 0) : rqrUid; rqrReportUid = rqrReportUid === VOID ? new Long(0, 0) : rqrReportUid; rqrLastModified = rqrLastModified === VOID ? new Long(0, 0) : rqrLastModified; rqrLastValidated = rqrLastValidated === VOID ? new Long(0, 0) : rqrLastValidated; rqrReportSeriesUid = rqrReportSeriesUid === VOID ? 0 : rqrReportSeriesUid; rqrXAxis = rqrXAxis === VOID ? '' : rqrXAxis; rqrYAxis = rqrYAxis === VOID ? 0.0 : rqrYAxis; rqrSubgroup = rqrSubgroup === VOID ? '' : rqrSubgroup; rqrTimeZone = rqrTimeZone === VOID ? '' : rqrTimeZone; this.rgz_1 = rqrUid; this.sgz_1 = rqrReportUid; this.tgz_1 = rqrLastModified; this.ugz_1 = rqrLastValidated; this.vgz_1 = rqrReportSeriesUid; this.wgz_1 = rqrXAxis; this.xgz_1 = rqrYAxis; this.ygz_1 = rqrSubgroup; this.zgz_1 = rqrTimeZone; } protoOf(ReportQueryResult).toString = function () { return 'ReportQueryResult(rqrUid=' + this.rgz_1.toString() + ', rqrReportUid=' + this.sgz_1.toString() + ', rqrLastModified=' + this.tgz_1.toString() + ', rqrLastValidated=' + this.ugz_1.toString() + ', rqrReportSeriesUid=' + this.vgz_1 + ', rqrXAxis=' + this.wgz_1 + ', rqrYAxis=' + this.xgz_1 + ', rqrSubgroup=' + this.ygz_1 + ', rqrTimeZone=' + this.zgz_1 + ')'; }; protoOf(ReportQueryResult).hashCode = function () { var result = this.rgz_1.hashCode(); result = imul(result, 31) + this.sgz_1.hashCode() | 0; result = imul(result, 31) + this.tgz_1.hashCode() | 0; result = imul(result, 31) + this.ugz_1.hashCode() | 0; result = imul(result, 31) + this.vgz_1 | 0; result = imul(result, 31) + getStringHashCode(this.wgz_1) | 0; result = imul(result, 31) + getNumberHashCode(this.xgz_1) | 0; result = imul(result, 31) + getStringHashCode(this.ygz_1) | 0; result = imul(result, 31) + getStringHashCode(this.zgz_1) | 0; return result; }; protoOf(ReportQueryResult).equals = function (other) { if (this === other) return true; if (!(other instanceof ReportQueryResult)) return false; var tmp0_other_with_cast = other instanceof ReportQueryResult ? other : THROW_CCE(); if (!this.rgz_1.equals(tmp0_other_with_cast.rgz_1)) return false; if (!this.sgz_1.equals(tmp0_other_with_cast.sgz_1)) return false; if (!this.tgz_1.equals(tmp0_other_with_cast.tgz_1)) return false; if (!this.ugz_1.equals(tmp0_other_with_cast.ugz_1)) return false; if (!(this.vgz_1 === tmp0_other_with_cast.vgz_1)) return false; if (!(this.wgz_1 === tmp0_other_with_cast.wgz_1)) return false; if (!equals(this.xgz_1, tmp0_other_with_cast.xgz_1)) return false; if (!(this.ygz_1 === tmp0_other_with_cast.ygz_1)) return false; if (!(this.zgz_1 === tmp0_other_with_cast.zgz_1)) return false; return true; }; function Companion_108() { this.dkf_1 = 21; this.ekf_1 = 1; this.fkf_1 = 2; this.gkf_1 = 3; this.hkf_1 = 4; this.ikf_1 = 5; this.jkf_1 = 1; this.kkf_1 = 2; this.lkf_1 = 3; this.mkf_1 = 4; this.nkf_1 = 5; this.okf_1 = 6; this.pkf_1 = 7; this.qkf_1 = 1; this.rkf_1 = 2; this.skf_1 = 3; this.tkf_1 = 4; this.ukf_1 = 5; this.vkf_1 = 6; this.wkf_1 = 7; this.xkf_1 = 8; this.ykf_1 = 9; this.zkf_1 = 10; this.akg_1 = 11; this.bkg_1 = 12; } protoOf(Companion_108).x4r = function () { return $serializer_getInstance_104(); }; var Companion_instance_109; function Companion_getInstance_111() { return Companion_instance_109; } function $serializer_104() { $serializer_instance_104 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Schedule', this, 13); tmp0_serialDesc.d4g('scheduleUid', true); tmp0_serialDesc.d4g('sceduleStartTime', true); tmp0_serialDesc.d4g('scheduleEndTime', true); tmp0_serialDesc.d4g('scheduleDay', true); tmp0_serialDesc.d4g('scheduleMonth', true); tmp0_serialDesc.d4g('scheduleFrequency', true); tmp0_serialDesc.d4g('umCalendarUid', true); tmp0_serialDesc.d4g('scheduleClazzUid', true); tmp0_serialDesc.d4g('scheduleMasterChangeSeqNum', true); tmp0_serialDesc.d4g('scheduleLocalChangeSeqNum', true); tmp0_serialDesc.d4g('scheduleLastChangedBy', true); tmp0_serialDesc.d4g('scheduleLastChangedTime', true); tmp0_serialDesc.d4g('scheduleActive', true); this.ckg_1 = tmp0_serialDesc; } protoOf($serializer_104).a45 = function () { return this.ckg_1; }; protoOf($serializer_104).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_104).c45 = function (decoder) { var tmp0_desc = this.ckg_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = 0; var tmp8_local4 = 0; var tmp9_local5 = 0; var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = new Long(0, 0); var tmp14_local10 = 0; var tmp15_local11 = new Long(0, 0); var tmp16_local12 = false; var tmp17_input = decoder.s48(tmp0_desc); if (tmp17_input.h49()) { tmp4_local0 = tmp17_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp17_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp17_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp17_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp17_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp17_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp17_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp17_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp17_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp17_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp17_input.x48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp17_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp17_input.u48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; } else while (tmp1_flag) { tmp2_index = tmp17_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp17_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp17_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp17_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp17_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp17_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp17_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp17_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp17_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp17_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp17_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp17_input.x48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp17_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp17_input.u48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp17_input.t48(tmp0_desc); return Schedule_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, null); }; protoOf($serializer_104).dkg = function (encoder, value) { var tmp0_desc = this.ckg_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.vh2_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.vh2_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.wh2_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.wh2_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.xh2_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.xh2_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.yh2_1 === Companion_instance_109.jkf_1)) { tmp1_output.b4a(tmp0_desc, 3, value.yh2_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.zh2_1 === 0)) { tmp1_output.b4a(tmp0_desc, 4, value.zh2_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.ah3_1 === Companion_instance_109.fkf_1)) { tmp1_output.b4a(tmp0_desc, 5, value.ah3_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.bh3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.bh3_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.ch3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.ch3_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !value.dh3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 8, value.dh3_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !value.eh3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 9, value.eh3_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !(value.fh3_1 === 0)) { tmp1_output.b4a(tmp0_desc, 10, value.fh3_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !value.gh3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 11, value.gh3_1); } if (tmp1_output.o4a(tmp0_desc, 12) ? true : !(value.hh3_1 === true)) { tmp1_output.y49(tmp0_desc, 12, value.hh3_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_104).b45 = function (encoder, value) { return this.dkg(encoder, value instanceof Schedule ? value : THROW_CCE()); }; var $serializer_instance_104; function $serializer_getInstance_104() { if ($serializer_instance_104 == null) new $serializer_104(); return $serializer_instance_104; } function Schedule_init_$Init$(seen1, scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_104().ckg_1); } if (0 === (seen1 & 1)) $this.vh2_1 = new Long(0, 0); else $this.vh2_1 = scheduleUid; if (0 === (seen1 & 2)) $this.wh2_1 = new Long(0, 0); else $this.wh2_1 = sceduleStartTime; if (0 === (seen1 & 4)) $this.xh2_1 = new Long(0, 0); else $this.xh2_1 = scheduleEndTime; if (0 === (seen1 & 8)) $this.yh2_1 = Companion_instance_109.jkf_1; else $this.yh2_1 = scheduleDay; if (0 === (seen1 & 16)) $this.zh2_1 = 0; else $this.zh2_1 = scheduleMonth; if (0 === (seen1 & 32)) $this.ah3_1 = Companion_instance_109.fkf_1; else $this.ah3_1 = scheduleFrequency; if (0 === (seen1 & 64)) $this.bh3_1 = new Long(0, 0); else $this.bh3_1 = umCalendarUid; if (0 === (seen1 & 128)) $this.ch3_1 = new Long(0, 0); else $this.ch3_1 = scheduleClazzUid; if (0 === (seen1 & 256)) $this.dh3_1 = new Long(0, 0); else $this.dh3_1 = scheduleMasterChangeSeqNum; if (0 === (seen1 & 512)) $this.eh3_1 = new Long(0, 0); else $this.eh3_1 = scheduleLocalChangeSeqNum; if (0 === (seen1 & 1024)) $this.fh3_1 = 0; else $this.fh3_1 = scheduleLastChangedBy; if (0 === (seen1 & 2048)) $this.gh3_1 = new Long(0, 0); else $this.gh3_1 = scheduleLastChangedTime; if (0 === (seen1 & 4096)) $this.hh3_1 = true; else $this.hh3_1 = scheduleActive; return $this; } function Schedule_init_$Create$(seen1, scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive, serializationConstructorMarker) { return Schedule_init_$Init$(seen1, scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive, serializationConstructorMarker, objectCreate(protoOf(Schedule))); } function Schedule() { this.vh2_1 = new Long(0, 0); this.wh2_1 = new Long(0, 0); this.xh2_1 = new Long(0, 0); this.yh2_1 = Companion_instance_109.jkf_1; this.zh2_1 = 0; this.ah3_1 = Companion_instance_109.fkf_1; this.bh3_1 = new Long(0, 0); this.ch3_1 = new Long(0, 0); this.dh3_1 = new Long(0, 0); this.eh3_1 = new Long(0, 0); this.fh3_1 = 0; this.gh3_1 = new Long(0, 0); this.hh3_1 = true; } protoOf(Schedule).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!(other instanceof Schedule)) THROW_CCE(); if (!this.vh2_1.equals(other.vh2_1)) return false; if (!this.wh2_1.equals(other.wh2_1)) return false; if (!this.xh2_1.equals(other.xh2_1)) return false; if (!(this.yh2_1 === other.yh2_1)) return false; if (!(this.zh2_1 === other.zh2_1)) return false; if (!(this.ah3_1 === other.ah3_1)) return false; if (!this.bh3_1.equals(other.bh3_1)) return false; if (!this.ch3_1.equals(other.ch3_1)) return false; if (!this.dh3_1.equals(other.dh3_1)) return false; if (!this.eh3_1.equals(other.eh3_1)) return false; if (!(this.fh3_1 === other.fh3_1)) return false; if (!(this.hh3_1 === other.hh3_1)) return false; return true; }; protoOf(Schedule).hashCode = function () { var result = this.vh2_1.hashCode(); result = imul(31, result) + this.wh2_1.hashCode() | 0; result = imul(31, result) + this.xh2_1.hashCode() | 0; result = imul(31, result) + this.yh2_1 | 0; result = imul(31, result) + this.zh2_1 | 0; result = imul(31, result) + this.ah3_1 | 0; result = imul(31, result) + this.bh3_1.hashCode() | 0; result = imul(31, result) + this.ch3_1.hashCode() | 0; result = imul(31, result) + this.dh3_1.hashCode() | 0; result = imul(31, result) + this.eh3_1.hashCode() | 0; result = imul(31, result) + this.fh3_1 | 0; result = imul(31, result) + getBooleanHashCode(this.hh3_1) | 0; return result; }; function Companion_109() { Companion_instance_110 = this; this.ekg_1 = 48; this.fkg_1 = -2; this.gkg_1 = new Long(-2, -1); } var Companion_instance_110; function Companion_getInstance_112() { if (Companion_instance_110 == null) new Companion_109(); return Companion_instance_110; } function $serializer_105() { $serializer_instance_105 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ScopedGrant', this, 11); tmp0_serialDesc.d4g('sgUid', true); tmp0_serialDesc.d4g('sgPcsn', true); tmp0_serialDesc.d4g('sgLcsn', true); tmp0_serialDesc.d4g('sgLcb', true); tmp0_serialDesc.d4g('sgLct', true); tmp0_serialDesc.d4g('sgTableId', true); tmp0_serialDesc.d4g('sgEntityUid', true); tmp0_serialDesc.d4g('sgPermissions', true); tmp0_serialDesc.d4g('sgGroupUid', true); tmp0_serialDesc.d4g('sgIndex', true); tmp0_serialDesc.d4g('sgFlags', true); this.hkg_1 = tmp0_serialDesc; } protoOf($serializer_105).a45 = function () { return this.hkg_1; }; protoOf($serializer_105).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; }; protoOf($serializer_105).c45 = function (decoder) { var tmp0_desc = this.hkg_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = 0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = 0; var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = 0; var tmp14_local10 = 0; var tmp15_input = decoder.s48(tmp0_desc); if (tmp15_input.h49()) { tmp4_local0 = tmp15_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.x48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.x48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.t48(tmp0_desc); return ScopedGrant_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); }; protoOf($serializer_105).ikg = function (encoder, value) { var tmp0_desc = this.hkg_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.rh8_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.rh8_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.sh8_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.sh8_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.th8_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.th8_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.uh8_1 === 0)) { tmp1_output.b4a(tmp0_desc, 3, value.uh8_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.vh8_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.vh8_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.wh8_1 === 0)) { tmp1_output.b4a(tmp0_desc, 5, value.wh8_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.xh8_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.xh8_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.yh8_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.yh8_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !value.zh8_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 8, value.zh8_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !(value.ah9_1 === 0)) { tmp1_output.b4a(tmp0_desc, 9, value.ah9_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !(value.bh9_1 === 0)) { tmp1_output.b4a(tmp0_desc, 10, value.bh9_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_105).b45 = function (encoder, value) { return this.ikg(encoder, value instanceof ScopedGrant ? value : THROW_CCE()); }; var $serializer_instance_105; function $serializer_getInstance_105() { if ($serializer_instance_105 == null) new $serializer_105(); return $serializer_instance_105; } function ScopedGrant_init_$Init$(seen1, sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_105().hkg_1); } if (0 === (seen1 & 1)) $this.rh8_1 = new Long(0, 0); else $this.rh8_1 = sgUid; if (0 === (seen1 & 2)) $this.sh8_1 = new Long(0, 0); else $this.sh8_1 = sgPcsn; if (0 === (seen1 & 4)) $this.th8_1 = new Long(0, 0); else $this.th8_1 = sgLcsn; if (0 === (seen1 & 8)) $this.uh8_1 = 0; else $this.uh8_1 = sgLcb; if (0 === (seen1 & 16)) $this.vh8_1 = new Long(0, 0); else $this.vh8_1 = sgLct; if (0 === (seen1 & 32)) $this.wh8_1 = 0; else $this.wh8_1 = sgTableId; if (0 === (seen1 & 64)) $this.xh8_1 = new Long(0, 0); else $this.xh8_1 = sgEntityUid; if (0 === (seen1 & 128)) $this.yh8_1 = new Long(0, 0); else $this.yh8_1 = sgPermissions; if (0 === (seen1 & 256)) $this.zh8_1 = new Long(0, 0); else $this.zh8_1 = sgGroupUid; if (0 === (seen1 & 512)) $this.ah9_1 = 0; else $this.ah9_1 = sgIndex; if (0 === (seen1 & 1024)) $this.bh9_1 = 0; else $this.bh9_1 = sgFlags; return $this; } function ScopedGrant_init_$Create$(seen1, sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags, serializationConstructorMarker) { return ScopedGrant_init_$Init$(seen1, sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags, serializationConstructorMarker, objectCreate(protoOf(ScopedGrant))); } function ScopedGrant() { Companion_getInstance_112(); this.rh8_1 = new Long(0, 0); this.sh8_1 = new Long(0, 0); this.th8_1 = new Long(0, 0); this.uh8_1 = 0; this.vh8_1 = new Long(0, 0); this.wh8_1 = 0; this.xh8_1 = new Long(0, 0); this.yh8_1 = new Long(0, 0); this.zh8_1 = new Long(0, 0); this.ah9_1 = 0; this.bh9_1 = 0; } function Companion_110() { this.jkg_1 = 189; } protoOf(Companion_110).x4r = function () { return $serializer_getInstance_106(); }; var Companion_instance_111; function Companion_getInstance_113() { return Companion_instance_111; } function $serializer_106() { $serializer_instance_106 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Site', this, 9); tmp0_serialDesc.d4g('siteUid', true); tmp0_serialDesc.d4g('sitePcsn', true); tmp0_serialDesc.d4g('siteLcsn', true); tmp0_serialDesc.d4g('siteLcb', true); tmp0_serialDesc.d4g('siteLct', true); tmp0_serialDesc.d4g('siteName', true); tmp0_serialDesc.d4g('guestLogin', true); tmp0_serialDesc.d4g('registrationAllowed', true); tmp0_serialDesc.d4g('authSalt', true); this.kkg_1 = tmp0_serialDesc; } protoOf($serializer_106).a45 = function () { return this.kkg_1; }; protoOf($serializer_106).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_106).c45 = function (decoder) { var tmp0_desc = this.kkg_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = 0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = null; var tmp10_local6 = false; var tmp11_local7 = false; var tmp12_local8 = null; var tmp13_input = decoder.s48(tmp0_desc); if (tmp13_input.h49()) { tmp4_local0 = tmp13_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp13_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp13_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp13_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp13_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp13_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp13_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp13_input.u48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp13_input.g49(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; } else while (tmp1_flag) { tmp2_index = tmp13_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp13_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp13_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp13_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp13_input.x48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp13_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp13_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp13_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp13_input.u48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp13_input.g49(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp13_input.t48(tmp0_desc); return Site_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); }; protoOf($serializer_106).lkg = function (encoder, value) { var tmp0_desc = this.kkg_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.wha_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.wha_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.xha_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.xha_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.yha_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.yha_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.zha_1 === 0)) { tmp1_output.b4a(tmp0_desc, 3, value.zha_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.ahb_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.ahb_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.bhb_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, StringSerializer_getInstance(), value.bhb_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.chb_1 === true)) { tmp1_output.y49(tmp0_desc, 6, value.chb_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.dhb_1 === true)) { tmp1_output.y49(tmp0_desc, 7, value.dhb_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !(value.ehb_1 == null)) { tmp1_output.k4a(tmp0_desc, 8, StringSerializer_getInstance(), value.ehb_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_106).b45 = function (encoder, value) { return this.lkg(encoder, value instanceof Site ? value : THROW_CCE()); }; var $serializer_instance_106; function $serializer_getInstance_106() { if ($serializer_instance_106 == null) new $serializer_106(); return $serializer_instance_106; } function Site_init_$Init$(seen1, siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_106().kkg_1); } if (0 === (seen1 & 1)) $this.wha_1 = new Long(0, 0); else $this.wha_1 = siteUid; if (0 === (seen1 & 2)) $this.xha_1 = new Long(0, 0); else $this.xha_1 = sitePcsn; if (0 === (seen1 & 4)) $this.yha_1 = new Long(0, 0); else $this.yha_1 = siteLcsn; if (0 === (seen1 & 8)) $this.zha_1 = 0; else $this.zha_1 = siteLcb; if (0 === (seen1 & 16)) $this.ahb_1 = new Long(0, 0); else $this.ahb_1 = siteLct; if (0 === (seen1 & 32)) $this.bhb_1 = null; else $this.bhb_1 = siteName; if (0 === (seen1 & 64)) $this.chb_1 = true; else $this.chb_1 = guestLogin; if (0 === (seen1 & 128)) $this.dhb_1 = true; else $this.dhb_1 = registrationAllowed; if (0 === (seen1 & 256)) $this.ehb_1 = null; else $this.ehb_1 = authSalt; return $this; } function Site_init_$Create$(seen1, siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt, serializationConstructorMarker) { return Site_init_$Init$(seen1, siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt, serializationConstructorMarker, objectCreate(protoOf(Site))); } function Site() { this.wha_1 = new Long(0, 0); this.xha_1 = new Long(0, 0); this.yha_1 = new Long(0, 0); this.zha_1 = 0; this.ahb_1 = new Long(0, 0); this.bhb_1 = null; this.chb_1 = true; this.dhb_1 = true; this.ehb_1 = null; } function Companion_111() { this.mkg_1 = 272; } protoOf(Companion_111).x4r = function () { return $serializer_getInstance_107(); }; var Companion_instance_112; function Companion_getInstance_114() { return Companion_instance_112; } function $serializer_107() { $serializer_instance_107 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.SiteTerms', this, 9); tmp0_serialDesc.d4g('sTermsUid', true); tmp0_serialDesc.d4g('termsHtml', true); tmp0_serialDesc.d4g('sTermsLang', true); tmp0_serialDesc.d4g('sTermsLangUid', true); tmp0_serialDesc.d4g('sTermsActive', true); tmp0_serialDesc.d4g('sTermsLastChangedBy', true); tmp0_serialDesc.d4g('sTermsPrimaryCsn', true); tmp0_serialDesc.d4g('sTermsLocalCsn', true); tmp0_serialDesc.d4g('sTermsLct', true); this.nkg_1 = tmp0_serialDesc; } protoOf($serializer_107).a45 = function () { return this.nkg_1; }; protoOf($serializer_107).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_107).c45 = function (decoder) { var tmp0_desc = this.nkg_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = false; var tmp9_local5 = 0; var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_input = decoder.s48(tmp0_desc); if (tmp13_input.h49()) { tmp4_local0 = tmp13_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp13_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp13_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp13_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp13_input.u48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp13_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp13_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp13_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp13_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; } else while (tmp1_flag) { tmp2_index = tmp13_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp13_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp13_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp13_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp13_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp13_input.u48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp13_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp13_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp13_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp13_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp13_input.t48(tmp0_desc); return SiteTerms_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); }; protoOf($serializer_107).okg = function (encoder, value) { var tmp0_desc = this.nkg_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.jhg_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.jhg_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.khg_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.khg_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.lhg_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.lhg_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.mhg_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.mhg_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.nhg_1 === true)) { tmp1_output.y49(tmp0_desc, 4, value.nhg_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.ohg_1 === 0)) { tmp1_output.b4a(tmp0_desc, 5, value.ohg_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.phg_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.phg_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.qhg_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.qhg_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !value.rhg_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 8, value.rhg_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_107).b45 = function (encoder, value) { return this.okg(encoder, value instanceof SiteTerms ? value : THROW_CCE()); }; var $serializer_instance_107; function $serializer_getInstance_107() { if ($serializer_instance_107 == null) new $serializer_107(); return $serializer_instance_107; } function SiteTerms_init_$Init$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_107().nkg_1); } if (0 === (seen1 & 1)) $this.jhg_1 = new Long(0, 0); else $this.jhg_1 = sTermsUid; if (0 === (seen1 & 2)) $this.khg_1 = null; else $this.khg_1 = termsHtml; if (0 === (seen1 & 4)) $this.lhg_1 = null; else $this.lhg_1 = sTermsLang; if (0 === (seen1 & 8)) $this.mhg_1 = new Long(0, 0); else $this.mhg_1 = sTermsLangUid; if (0 === (seen1 & 16)) $this.nhg_1 = true; else $this.nhg_1 = sTermsActive; if (0 === (seen1 & 32)) $this.ohg_1 = 0; else $this.ohg_1 = sTermsLastChangedBy; if (0 === (seen1 & 64)) $this.phg_1 = new Long(0, 0); else $this.phg_1 = sTermsPrimaryCsn; if (0 === (seen1 & 128)) $this.qhg_1 = new Long(0, 0); else $this.qhg_1 = sTermsLocalCsn; if (0 === (seen1 & 256)) $this.rhg_1 = new Long(0, 0); else $this.rhg_1 = sTermsLct; return $this; } function SiteTerms_init_$Create$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, serializationConstructorMarker) { return SiteTerms_init_$Init$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, serializationConstructorMarker, objectCreate(protoOf(SiteTerms))); } function SiteTerms() { this.jhg_1 = new Long(0, 0); this.khg_1 = null; this.lhg_1 = null; this.mhg_1 = new Long(0, 0); this.nhg_1 = true; this.ohg_1 = 0; this.phg_1 = new Long(0, 0); this.qhg_1 = new Long(0, 0); this.rhg_1 = new Long(0, 0); } function Companion_112() { } var Companion_instance_113; function Companion_getInstance_115() { return Companion_instance_113; } function $serializer_108() { $serializer_instance_108 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.SiteTermsWithLanguage', this, 10); tmp0_serialDesc.d4g('sTermsUid', true); tmp0_serialDesc.d4g('termsHtml', true); tmp0_serialDesc.d4g('sTermsLang', true); tmp0_serialDesc.d4g('sTermsLangUid', true); tmp0_serialDesc.d4g('sTermsActive', true); tmp0_serialDesc.d4g('sTermsLastChangedBy', true); tmp0_serialDesc.d4g('sTermsPrimaryCsn', true); tmp0_serialDesc.d4g('sTermsLocalCsn', true); tmp0_serialDesc.d4g('sTermsLct', true); tmp0_serialDesc.d4g('stLanguage', true); this.pkg_1 = tmp0_serialDesc; } protoOf($serializer_108).a45 = function () { return this.pkg_1; }; protoOf($serializer_108).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_88())]; }; protoOf($serializer_108).c45 = function (decoder) { var tmp0_desc = this.pkg_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = false; var tmp9_local5 = 0; var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = null; var tmp14_input = decoder.s48(tmp0_desc); if (tmp14_input.h49()) { tmp4_local0 = tmp14_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp14_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp14_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp14_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp14_input.u48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp14_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp14_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp14_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp14_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp14_input.g49(tmp0_desc, 9, $serializer_getInstance_88(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; } else while (tmp1_flag) { tmp2_index = tmp14_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp14_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp14_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp14_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp14_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp14_input.u48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp14_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp14_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp14_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp14_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp14_input.g49(tmp0_desc, 9, $serializer_getInstance_88(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp14_input.t48(tmp0_desc); return SiteTermsWithLanguage_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); }; protoOf($serializer_108).qkg = function (encoder, value) { var tmp0_desc = this.pkg_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.jhg_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.jhg_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.khg_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.khg_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.lhg_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.lhg_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.mhg_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.mhg_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.nhg_1 === true)) { tmp1_output.y49(tmp0_desc, 4, value.nhg_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.ohg_1 === 0)) { tmp1_output.b4a(tmp0_desc, 5, value.ohg_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.phg_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.phg_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.qhg_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.qhg_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !value.rhg_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 8, value.rhg_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !(value.akh_1 == null)) { tmp1_output.k4a(tmp0_desc, 9, $serializer_getInstance_88(), value.akh_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_108).b45 = function (encoder, value) { return this.qkg(encoder, value instanceof SiteTermsWithLanguage ? value : THROW_CCE()); }; var $serializer_instance_108; function $serializer_getInstance_108() { if ($serializer_instance_108 == null) new $serializer_108(); return $serializer_instance_108; } function SiteTermsWithLanguage_init_$Init$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, stLanguage, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_108().pkg_1); } SiteTerms_init_$Init$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, serializationConstructorMarker, $this); if (0 === (seen1 & 512)) $this.akh_1 = null; else $this.akh_1 = stLanguage; return $this; } function SiteTermsWithLanguage_init_$Create$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, stLanguage, serializationConstructorMarker) { return SiteTermsWithLanguage_init_$Init$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, stLanguage, serializationConstructorMarker, objectCreate(protoOf(SiteTermsWithLanguage))); } function SiteTermsWithLanguage() { SiteTerms.call(this); this.akh_1 = null; } function Companion_113() { this.bkh_1 = 471; } var Companion_instance_114; function Companion_getInstance_116() { return Companion_instance_114; } function $serializer_109() { $serializer_instance_109 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.StudentResult', this, 21); tmp0_serialDesc.d4g('srUid', true); tmp0_serialDesc.d4g('srSourcedId', true); tmp0_serialDesc.d4g('srCourseBlockUid', true); tmp0_serialDesc.d4g('srLineItemSourcedId', true); tmp0_serialDesc.d4g('srLineItemHref', true); tmp0_serialDesc.d4g('srClazzUid', true); tmp0_serialDesc.d4g('srAssignmentUid', true); tmp0_serialDesc.d4g('srStatus', true); tmp0_serialDesc.d4g('srMetaData', true); tmp0_serialDesc.d4g('srStudentPersonUid', true); tmp0_serialDesc.d4g('srStudentPersonSourcedId', true); tmp0_serialDesc.d4g('srStudentGroupId', true); tmp0_serialDesc.d4g('srMarkerPersonUid', true); tmp0_serialDesc.d4g('srMarkerGroupId', true); tmp0_serialDesc.d4g('srScoreStatus', true); tmp0_serialDesc.d4g('srScore', true); tmp0_serialDesc.d4g('srScoreDate', true); tmp0_serialDesc.d4g('srLastModified', true); tmp0_serialDesc.d4g('srComment', true); tmp0_serialDesc.d4g('srAppId', true); tmp0_serialDesc.d4g('srDeleted', true); this.ckh_1 = tmp0_serialDesc; } protoOf($serializer_109).a45 = function () { return this.ckh_1; }; protoOf($serializer_109).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), FloatSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance()]; }; protoOf($serializer_109).c45 = function (decoder) { var tmp0_desc = this.ckh_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = new Long(0, 0); var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = new Long(0, 0); var tmp10_local6 = new Long(0, 0); var tmp11_local7 = 0; var tmp12_local8 = null; var tmp13_local9 = new Long(0, 0); var tmp14_local10 = null; var tmp15_local11 = 0; var tmp16_local12 = new Long(0, 0); var tmp17_local13 = 0; var tmp18_local14 = 0; var tmp19_local15 = 0.0; var tmp20_local16 = new Long(0, 0); var tmp21_local17 = new Long(0, 0); var tmp22_local18 = null; var tmp23_local19 = null; var tmp24_local20 = false; var tmp25_input = decoder.s48(tmp0_desc); if (tmp25_input.h49()) { tmp4_local0 = tmp25_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp25_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp25_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp25_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp25_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp25_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp25_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp25_input.x48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp25_input.g49(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp25_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp25_input.g49(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp25_input.x48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp25_input.y48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp25_input.x48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp25_input.x48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp25_input.z48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp25_input.y48(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp25_input.y48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp22_local18 = tmp25_input.g49(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp23_local19 = tmp25_input.g49(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; tmp24_local20 = tmp25_input.u48(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; } else while (tmp1_flag) { tmp2_index = tmp25_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp25_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp25_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp25_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp25_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp25_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp25_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp25_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp25_input.x48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp25_input.g49(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp25_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp25_input.g49(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp25_input.x48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp25_input.y48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp25_input.x48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp25_input.x48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp25_input.z48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp25_input.y48(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp25_input.y48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp22_local18 = tmp25_input.g49(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp23_local19 = tmp25_input.g49(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; case 20: tmp24_local20 = tmp25_input.u48(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp25_input.t48(tmp0_desc); return StudentResult_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, null); }; protoOf($serializer_109).dkh = function (encoder, value) { var tmp0_desc = this.ckh_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.phm_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.phm_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.qhm_1 === '')) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.qhm_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.rhm_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.rhm_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.shm_1 === '')) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.shm_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.thm_1 === '')) { tmp1_output.k4a(tmp0_desc, 4, StringSerializer_getInstance(), value.thm_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.uhm_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.uhm_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.vhm_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.vhm_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.whm_1 === 0)) { tmp1_output.b4a(tmp0_desc, 7, value.whm_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !(value.xhm_1 == null)) { tmp1_output.k4a(tmp0_desc, 8, StringSerializer_getInstance(), value.xhm_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !value.yhm_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 9, value.yhm_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !(value.zhm_1 === '')) { tmp1_output.k4a(tmp0_desc, 10, StringSerializer_getInstance(), value.zhm_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !(value.ahn_1 === 0)) { tmp1_output.b4a(tmp0_desc, 11, value.ahn_1); } if (tmp1_output.o4a(tmp0_desc, 12) ? true : !value.bhn_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 12, value.bhn_1); } if (tmp1_output.o4a(tmp0_desc, 13) ? true : !(value.chn_1 === 0)) { tmp1_output.b4a(tmp0_desc, 13, value.chn_1); } if (tmp1_output.o4a(tmp0_desc, 14) ? true : !(value.dhn_1 === 0)) { tmp1_output.b4a(tmp0_desc, 14, value.dhn_1); } if (tmp1_output.o4a(tmp0_desc, 15) ? true : !equals(value.ehn_1, 0.0)) { tmp1_output.d4a(tmp0_desc, 15, value.ehn_1); } if (tmp1_output.o4a(tmp0_desc, 16) ? true : !value.fhn_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 16, value.fhn_1); } if (tmp1_output.o4a(tmp0_desc, 17) ? true : !value.ghn_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 17, value.ghn_1); } if (tmp1_output.o4a(tmp0_desc, 18) ? true : !(value.hhn_1 == null)) { tmp1_output.k4a(tmp0_desc, 18, StringSerializer_getInstance(), value.hhn_1); } if (tmp1_output.o4a(tmp0_desc, 19) ? true : !(value.ihn_1 == null)) { tmp1_output.k4a(tmp0_desc, 19, StringSerializer_getInstance(), value.ihn_1); } if (tmp1_output.o4a(tmp0_desc, 20) ? true : !(value.jhn_1 === false)) { tmp1_output.y49(tmp0_desc, 20, value.jhn_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_109).b45 = function (encoder, value) { return this.dkh(encoder, value instanceof StudentResult ? value : THROW_CCE()); }; var $serializer_instance_109; function $serializer_getInstance_109() { if ($serializer_instance_109 == null) new $serializer_109(); return $serializer_instance_109; } function StudentResult_init_$Init$(seen1, srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_109().ckh_1); } if (0 === (seen1 & 1)) $this.phm_1 = new Long(0, 0); else $this.phm_1 = srUid; if (0 === (seen1 & 2)) $this.qhm_1 = ''; else $this.qhm_1 = srSourcedId; if (0 === (seen1 & 4)) $this.rhm_1 = new Long(0, 0); else $this.rhm_1 = srCourseBlockUid; if (0 === (seen1 & 8)) $this.shm_1 = ''; else $this.shm_1 = srLineItemSourcedId; if (0 === (seen1 & 16)) $this.thm_1 = ''; else $this.thm_1 = srLineItemHref; if (0 === (seen1 & 32)) $this.uhm_1 = new Long(0, 0); else $this.uhm_1 = srClazzUid; if (0 === (seen1 & 64)) $this.vhm_1 = new Long(0, 0); else $this.vhm_1 = srAssignmentUid; if (0 === (seen1 & 128)) $this.whm_1 = 0; else $this.whm_1 = srStatus; if (0 === (seen1 & 256)) $this.xhm_1 = null; else $this.xhm_1 = srMetaData; if (0 === (seen1 & 512)) $this.yhm_1 = new Long(0, 0); else $this.yhm_1 = srStudentPersonUid; if (0 === (seen1 & 1024)) $this.zhm_1 = ''; else $this.zhm_1 = srStudentPersonSourcedId; if (0 === (seen1 & 2048)) $this.ahn_1 = 0; else $this.ahn_1 = srStudentGroupId; if (0 === (seen1 & 4096)) $this.bhn_1 = new Long(0, 0); else $this.bhn_1 = srMarkerPersonUid; if (0 === (seen1 & 8192)) $this.chn_1 = 0; else $this.chn_1 = srMarkerGroupId; if (0 === (seen1 & 16384)) $this.dhn_1 = 0; else $this.dhn_1 = srScoreStatus; if (0 === (seen1 & 32768)) $this.ehn_1 = 0.0; else $this.ehn_1 = srScore; if (0 === (seen1 & 65536)) $this.fhn_1 = new Long(0, 0); else $this.fhn_1 = srScoreDate; if (0 === (seen1 & 131072)) $this.ghn_1 = new Long(0, 0); else $this.ghn_1 = srLastModified; if (0 === (seen1 & 262144)) $this.hhn_1 = null; else $this.hhn_1 = srComment; if (0 === (seen1 & 524288)) $this.ihn_1 = null; else $this.ihn_1 = srAppId; if (0 === (seen1 & 1048576)) $this.jhn_1 = false; else $this.jhn_1 = srDeleted; return $this; } function StudentResult_init_$Create$(seen1, srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted, serializationConstructorMarker) { return StudentResult_init_$Init$(seen1, srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted, serializationConstructorMarker, objectCreate(protoOf(StudentResult))); } function StudentResult(srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted) { srUid = srUid === VOID ? new Long(0, 0) : srUid; srSourcedId = srSourcedId === VOID ? '' : srSourcedId; srCourseBlockUid = srCourseBlockUid === VOID ? new Long(0, 0) : srCourseBlockUid; srLineItemSourcedId = srLineItemSourcedId === VOID ? '' : srLineItemSourcedId; srLineItemHref = srLineItemHref === VOID ? '' : srLineItemHref; srClazzUid = srClazzUid === VOID ? new Long(0, 0) : srClazzUid; srAssignmentUid = srAssignmentUid === VOID ? new Long(0, 0) : srAssignmentUid; srStatus = srStatus === VOID ? 0 : srStatus; srMetaData = srMetaData === VOID ? null : srMetaData; srStudentPersonUid = srStudentPersonUid === VOID ? new Long(0, 0) : srStudentPersonUid; srStudentPersonSourcedId = srStudentPersonSourcedId === VOID ? '' : srStudentPersonSourcedId; srStudentGroupId = srStudentGroupId === VOID ? 0 : srStudentGroupId; srMarkerPersonUid = srMarkerPersonUid === VOID ? new Long(0, 0) : srMarkerPersonUid; srMarkerGroupId = srMarkerGroupId === VOID ? 0 : srMarkerGroupId; srScoreStatus = srScoreStatus === VOID ? 0 : srScoreStatus; srScore = srScore === VOID ? 0.0 : srScore; srScoreDate = srScoreDate === VOID ? new Long(0, 0) : srScoreDate; srLastModified = srLastModified === VOID ? new Long(0, 0) : srLastModified; srComment = srComment === VOID ? null : srComment; srAppId = srAppId === VOID ? null : srAppId; srDeleted = srDeleted === VOID ? false : srDeleted; this.phm_1 = srUid; this.qhm_1 = srSourcedId; this.rhm_1 = srCourseBlockUid; this.shm_1 = srLineItemSourcedId; this.thm_1 = srLineItemHref; this.uhm_1 = srClazzUid; this.vhm_1 = srAssignmentUid; this.whm_1 = srStatus; this.xhm_1 = srMetaData; this.yhm_1 = srStudentPersonUid; this.zhm_1 = srStudentPersonSourcedId; this.ahn_1 = srStudentGroupId; this.bhn_1 = srMarkerPersonUid; this.chn_1 = srMarkerGroupId; this.dhn_1 = srScoreStatus; this.ehn_1 = srScore; this.fhn_1 = srScoreDate; this.ghn_1 = srLastModified; this.hhn_1 = srComment; this.ihn_1 = srAppId; this.jhn_1 = srDeleted; } protoOf(StudentResult).toString = function () { return 'StudentResult(srUid=' + this.phm_1.toString() + ', srSourcedId=' + this.qhm_1 + ', srCourseBlockUid=' + this.rhm_1.toString() + ', srLineItemSourcedId=' + this.shm_1 + ', srLineItemHref=' + this.thm_1 + ', srClazzUid=' + this.uhm_1.toString() + ', srAssignmentUid=' + this.vhm_1.toString() + ', srStatus=' + this.whm_1 + ', srMetaData=' + this.xhm_1 + ', srStudentPersonUid=' + this.yhm_1.toString() + ', srStudentPersonSourcedId=' + this.zhm_1 + ', srStudentGroupId=' + this.ahn_1 + ', srMarkerPersonUid=' + this.bhn_1.toString() + ', srMarkerGroupId=' + this.chn_1 + ', srScoreStatus=' + this.dhn_1 + ', srScore=' + this.ehn_1 + ', srScoreDate=' + this.fhn_1.toString() + ', srLastModified=' + this.ghn_1.toString() + ', srComment=' + this.hhn_1 + ', srAppId=' + this.ihn_1 + ', srDeleted=' + this.jhn_1 + ')'; }; protoOf(StudentResult).hashCode = function () { var result = this.phm_1.hashCode(); result = imul(result, 31) + (this.qhm_1 == null ? 0 : getStringHashCode(this.qhm_1)) | 0; result = imul(result, 31) + this.rhm_1.hashCode() | 0; result = imul(result, 31) + (this.shm_1 == null ? 0 : getStringHashCode(this.shm_1)) | 0; result = imul(result, 31) + (this.thm_1 == null ? 0 : getStringHashCode(this.thm_1)) | 0; result = imul(result, 31) + this.uhm_1.hashCode() | 0; result = imul(result, 31) + this.vhm_1.hashCode() | 0; result = imul(result, 31) + this.whm_1 | 0; result = imul(result, 31) + (this.xhm_1 == null ? 0 : getStringHashCode(this.xhm_1)) | 0; result = imul(result, 31) + this.yhm_1.hashCode() | 0; result = imul(result, 31) + (this.zhm_1 == null ? 0 : getStringHashCode(this.zhm_1)) | 0; result = imul(result, 31) + this.ahn_1 | 0; result = imul(result, 31) + this.bhn_1.hashCode() | 0; result = imul(result, 31) + this.chn_1 | 0; result = imul(result, 31) + this.dhn_1 | 0; result = imul(result, 31) + getNumberHashCode(this.ehn_1) | 0; result = imul(result, 31) + this.fhn_1.hashCode() | 0; result = imul(result, 31) + this.ghn_1.hashCode() | 0; result = imul(result, 31) + (this.hhn_1 == null ? 0 : getStringHashCode(this.hhn_1)) | 0; result = imul(result, 31) + (this.ihn_1 == null ? 0 : getStringHashCode(this.ihn_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.jhn_1) | 0; return result; }; protoOf(StudentResult).equals = function (other) { if (this === other) return true; if (!(other instanceof StudentResult)) return false; var tmp0_other_with_cast = other instanceof StudentResult ? other : THROW_CCE(); if (!this.phm_1.equals(tmp0_other_with_cast.phm_1)) return false; if (!(this.qhm_1 == tmp0_other_with_cast.qhm_1)) return false; if (!this.rhm_1.equals(tmp0_other_with_cast.rhm_1)) return false; if (!(this.shm_1 == tmp0_other_with_cast.shm_1)) return false; if (!(this.thm_1 == tmp0_other_with_cast.thm_1)) return false; if (!this.uhm_1.equals(tmp0_other_with_cast.uhm_1)) return false; if (!this.vhm_1.equals(tmp0_other_with_cast.vhm_1)) return false; if (!(this.whm_1 === tmp0_other_with_cast.whm_1)) return false; if (!(this.xhm_1 == tmp0_other_with_cast.xhm_1)) return false; if (!this.yhm_1.equals(tmp0_other_with_cast.yhm_1)) return false; if (!(this.zhm_1 == tmp0_other_with_cast.zhm_1)) return false; if (!(this.ahn_1 === tmp0_other_with_cast.ahn_1)) return false; if (!this.bhn_1.equals(tmp0_other_with_cast.bhn_1)) return false; if (!(this.chn_1 === tmp0_other_with_cast.chn_1)) return false; if (!(this.dhn_1 === tmp0_other_with_cast.dhn_1)) return false; if (!equals(this.ehn_1, tmp0_other_with_cast.ehn_1)) return false; if (!this.fhn_1.equals(tmp0_other_with_cast.fhn_1)) return false; if (!this.ghn_1.equals(tmp0_other_with_cast.ghn_1)) return false; if (!(this.hhn_1 == tmp0_other_with_cast.hhn_1)) return false; if (!(this.ihn_1 == tmp0_other_with_cast.ihn_1)) return false; if (!(this.jhn_1 === tmp0_other_with_cast.jhn_1)) return false; return true; }; function Companion_114() { Companion_instance_115 = this; this.ekh_1 = new Long(0, 0); this.fkh_1 = 10011; } protoOf(Companion_114).x4r = function () { return $serializer_getInstance_110(); }; var Companion_instance_115; function Companion_getInstance_117() { if (Companion_instance_115 == null) new Companion_114(); return Companion_instance_115; } function $serializer_110() { $serializer_instance_110 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.SystemPermission', this, 6); tmp0_serialDesc.d4g('spUid', true); tmp0_serialDesc.d4g('spToPersonUid', true); tmp0_serialDesc.d4g('spToGroupUid', true); tmp0_serialDesc.d4g('spPermissionsFlag', true); tmp0_serialDesc.d4g('spLastModified', true); tmp0_serialDesc.d4g('spIsDeleted', true); this.gkh_1 = tmp0_serialDesc; } protoOf($serializer_110).a45 = function () { return this.gkh_1; }; protoOf($serializer_110).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_110).c45 = function (decoder) { var tmp0_desc = this.gkh_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = false; var tmp10_input = decoder.s48(tmp0_desc); if (tmp10_input.h49()) { tmp4_local0 = tmp10_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.u48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.u48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.t48(tmp0_desc); return SystemPermission_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_110).hkh = function (encoder, value) { var tmp0_desc = this.gkh_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.tho_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.tho_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.uho_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.uho_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.vho_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.vho_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.who_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.who_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.xho_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.xho_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.yho_1 === false)) { tmp1_output.y49(tmp0_desc, 5, value.yho_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_110).b45 = function (encoder, value) { return this.hkh(encoder, value instanceof SystemPermission ? value : THROW_CCE()); }; var $serializer_instance_110; function $serializer_getInstance_110() { if ($serializer_instance_110 == null) new $serializer_110(); return $serializer_instance_110; } function SystemPermission_init_$Init$(seen1, spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_110().gkh_1); } if (0 === (seen1 & 1)) $this.tho_1 = new Long(0, 0); else $this.tho_1 = spUid; if (0 === (seen1 & 2)) $this.uho_1 = new Long(0, 0); else $this.uho_1 = spToPersonUid; if (0 === (seen1 & 4)) $this.vho_1 = new Long(0, 0); else $this.vho_1 = spToGroupUid; if (0 === (seen1 & 8)) $this.who_1 = new Long(0, 0); else $this.who_1 = spPermissionsFlag; if (0 === (seen1 & 16)) $this.xho_1 = new Long(0, 0); else $this.xho_1 = spLastModified; if (0 === (seen1 & 32)) $this.yho_1 = false; else $this.yho_1 = spIsDeleted; return $this; } function SystemPermission_init_$Create$(seen1, spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted, serializationConstructorMarker) { return SystemPermission_init_$Init$(seen1, spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted, serializationConstructorMarker, objectCreate(protoOf(SystemPermission))); } function SystemPermission(spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted) { Companion_getInstance_117(); spUid = spUid === VOID ? new Long(0, 0) : spUid; spToPersonUid = spToPersonUid === VOID ? new Long(0, 0) : spToPersonUid; spToGroupUid = spToGroupUid === VOID ? new Long(0, 0) : spToGroupUid; spPermissionsFlag = spPermissionsFlag === VOID ? new Long(0, 0) : spPermissionsFlag; spLastModified = spLastModified === VOID ? new Long(0, 0) : spLastModified; spIsDeleted = spIsDeleted === VOID ? false : spIsDeleted; this.tho_1 = spUid; this.uho_1 = spToPersonUid; this.vho_1 = spToGroupUid; this.who_1 = spPermissionsFlag; this.xho_1 = spLastModified; this.yho_1 = spIsDeleted; } protoOf(SystemPermission).ikh = function (spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted) { return new SystemPermission(spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted); }; protoOf(SystemPermission).jkh = function (spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted, $super) { spUid = spUid === VOID ? this.tho_1 : spUid; spToPersonUid = spToPersonUid === VOID ? this.uho_1 : spToPersonUid; spToGroupUid = spToGroupUid === VOID ? this.vho_1 : spToGroupUid; spPermissionsFlag = spPermissionsFlag === VOID ? this.who_1 : spPermissionsFlag; spLastModified = spLastModified === VOID ? this.xho_1 : spLastModified; spIsDeleted = spIsDeleted === VOID ? this.yho_1 : spIsDeleted; return $super === VOID ? this.ikh(spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted) : $super.ikh.call(this, spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted); }; protoOf(SystemPermission).toString = function () { return 'SystemPermission(spUid=' + this.tho_1.toString() + ', spToPersonUid=' + this.uho_1.toString() + ', spToGroupUid=' + this.vho_1.toString() + ', spPermissionsFlag=' + this.who_1.toString() + ', spLastModified=' + this.xho_1.toString() + ', spIsDeleted=' + this.yho_1 + ')'; }; protoOf(SystemPermission).hashCode = function () { var result = this.tho_1.hashCode(); result = imul(result, 31) + this.uho_1.hashCode() | 0; result = imul(result, 31) + this.vho_1.hashCode() | 0; result = imul(result, 31) + this.who_1.hashCode() | 0; result = imul(result, 31) + this.xho_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.yho_1) | 0; return result; }; protoOf(SystemPermission).equals = function (other) { if (this === other) return true; if (!(other instanceof SystemPermission)) return false; var tmp0_other_with_cast = other instanceof SystemPermission ? other : THROW_CCE(); if (!this.tho_1.equals(tmp0_other_with_cast.tho_1)) return false; if (!this.uho_1.equals(tmp0_other_with_cast.uho_1)) return false; if (!this.vho_1.equals(tmp0_other_with_cast.vho_1)) return false; if (!this.who_1.equals(tmp0_other_with_cast.who_1)) return false; if (!this.xho_1.equals(tmp0_other_with_cast.xho_1)) return false; if (!(this.yho_1 === tmp0_other_with_cast.yho_1)) return false; return true; }; function Companion_115() { this.kkh_1 = 1081; this.lkh_1 = 1; this.mkh_1 = 2; this.nkh_1 = 1; this.okh_1 = 2; } var Companion_instance_116; function Companion_getInstance_118() { return Companion_instance_116; } function $serializer_111() { $serializer_instance_111 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.TransferJob', this, 10); tmp0_serialDesc.d4g('tjUid', true); tmp0_serialDesc.d4g('tjType', true); tmp0_serialDesc.d4g('tjStatus', true); tmp0_serialDesc.d4g('tjName', true); tmp0_serialDesc.d4g('tjUuid', true); tmp0_serialDesc.d4g('tjTableId', true); tmp0_serialDesc.d4g('tjEntityUid', true); tmp0_serialDesc.d4g('tjTimeCreated', true); tmp0_serialDesc.d4g('tjCreationType', true); tmp0_serialDesc.d4g('tjOiUid', true); this.pkh_1 = tmp0_serialDesc; } protoOf($serializer_111).a45 = function () { return this.pkh_1; }; protoOf($serializer_111).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_111).c45 = function (decoder) { var tmp0_desc = this.pkh_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_local1 = 0; var tmp6_local2 = 0; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = 0; var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = 0; var tmp13_local9 = new Long(0, 0); var tmp14_input = decoder.s48(tmp0_desc); if (tmp14_input.h49()) { tmp4_local0 = tmp14_input.x48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp14_input.x48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp14_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp14_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp14_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp14_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp14_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp14_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp14_input.x48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp14_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; } else while (tmp1_flag) { tmp2_index = tmp14_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp14_input.x48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp14_input.x48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp14_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp14_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp14_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp14_input.x48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp14_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp14_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp14_input.x48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp14_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp14_input.t48(tmp0_desc); return TransferJob_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); }; protoOf($serializer_111).qkh = function (encoder, value) { var tmp0_desc = this.pkh_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.iff_1 === 0)) { tmp1_output.b4a(tmp0_desc, 0, value.iff_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.jff_1 === 0)) { tmp1_output.b4a(tmp0_desc, 1, value.jff_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.kff_1 === 0)) { tmp1_output.b4a(tmp0_desc, 2, value.kff_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.lff_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.lff_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.mff_1 == null)) { tmp1_output.k4a(tmp0_desc, 4, StringSerializer_getInstance(), value.mff_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.nff_1 === 0)) { tmp1_output.b4a(tmp0_desc, 5, value.nff_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.off_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.off_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.pff_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.pff_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !(value.qff_1 === 0)) { tmp1_output.b4a(tmp0_desc, 8, value.qff_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !value.rff_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 9, value.rff_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_111).b45 = function (encoder, value) { return this.qkh(encoder, value instanceof TransferJob ? value : THROW_CCE()); }; var $serializer_instance_111; function $serializer_getInstance_111() { if ($serializer_instance_111 == null) new $serializer_111(); return $serializer_instance_111; } function TransferJob_init_$Init$(seen1, tjUid, tjType, tjStatus, tjName, tjUuid, tjTableId, tjEntityUid, tjTimeCreated, tjCreationType, tjOiUid, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_111().pkh_1); } if (0 === (seen1 & 1)) $this.iff_1 = 0; else $this.iff_1 = tjUid; if (0 === (seen1 & 2)) $this.jff_1 = 0; else $this.jff_1 = tjType; if (0 === (seen1 & 4)) $this.kff_1 = 0; else $this.kff_1 = tjStatus; if (0 === (seen1 & 8)) $this.lff_1 = null; else $this.lff_1 = tjName; if (0 === (seen1 & 16)) $this.mff_1 = null; else $this.mff_1 = tjUuid; if (0 === (seen1 & 32)) $this.nff_1 = 0; else $this.nff_1 = tjTableId; if (0 === (seen1 & 64)) $this.off_1 = new Long(0, 0); else $this.off_1 = tjEntityUid; if (0 === (seen1 & 128)) $this.pff_1 = new Long(0, 0); else $this.pff_1 = tjTimeCreated; if (0 === (seen1 & 256)) $this.qff_1 = 0; else $this.qff_1 = tjCreationType; if (0 === (seen1 & 512)) $this.rff_1 = new Long(0, 0); else $this.rff_1 = tjOiUid; return $this; } function TransferJob_init_$Create$(seen1, tjUid, tjType, tjStatus, tjName, tjUuid, tjTableId, tjEntityUid, tjTimeCreated, tjCreationType, tjOiUid, serializationConstructorMarker) { return TransferJob_init_$Init$(seen1, tjUid, tjType, tjStatus, tjName, tjUuid, tjTableId, tjEntityUid, tjTimeCreated, tjCreationType, tjOiUid, serializationConstructorMarker, objectCreate(protoOf(TransferJob))); } function TransferJob(tjUid, tjType, tjStatus, tjName, tjUuid, tjTableId, tjEntityUid, tjTimeCreated, tjCreationType, tjOiUid) { tjUid = tjUid === VOID ? 0 : tjUid; tjType = tjType === VOID ? 0 : tjType; tjStatus = tjStatus === VOID ? 0 : tjStatus; tjName = tjName === VOID ? null : tjName; tjUuid = tjUuid === VOID ? null : tjUuid; tjTableId = tjTableId === VOID ? 0 : tjTableId; tjEntityUid = tjEntityUid === VOID ? new Long(0, 0) : tjEntityUid; tjTimeCreated = tjTimeCreated === VOID ? new Long(0, 0) : tjTimeCreated; tjCreationType = tjCreationType === VOID ? 0 : tjCreationType; tjOiUid = tjOiUid === VOID ? new Long(0, 0) : tjOiUid; this.iff_1 = tjUid; this.jff_1 = tjType; this.kff_1 = tjStatus; this.lff_1 = tjName; this.mff_1 = tjUuid; this.nff_1 = tjTableId; this.off_1 = tjEntityUid; this.pff_1 = tjTimeCreated; this.qff_1 = tjCreationType; this.rff_1 = tjOiUid; } protoOf(TransferJob).toString = function () { return 'TransferJob(tjUid=' + this.iff_1 + ', tjType=' + this.jff_1 + ', tjStatus=' + this.kff_1 + ', tjName=' + this.lff_1 + ', tjUuid=' + this.mff_1 + ', tjTableId=' + this.nff_1 + ', tjEntityUid=' + this.off_1.toString() + ', tjTimeCreated=' + this.pff_1.toString() + ', tjCreationType=' + this.qff_1 + ', tjOiUid=' + this.rff_1.toString() + ')'; }; protoOf(TransferJob).hashCode = function () { var result = this.iff_1; result = imul(result, 31) + this.jff_1 | 0; result = imul(result, 31) + this.kff_1 | 0; result = imul(result, 31) + (this.lff_1 == null ? 0 : getStringHashCode(this.lff_1)) | 0; result = imul(result, 31) + (this.mff_1 == null ? 0 : getStringHashCode(this.mff_1)) | 0; result = imul(result, 31) + this.nff_1 | 0; result = imul(result, 31) + this.off_1.hashCode() | 0; result = imul(result, 31) + this.pff_1.hashCode() | 0; result = imul(result, 31) + this.qff_1 | 0; result = imul(result, 31) + this.rff_1.hashCode() | 0; return result; }; protoOf(TransferJob).equals = function (other) { if (this === other) return true; if (!(other instanceof TransferJob)) return false; var tmp0_other_with_cast = other instanceof TransferJob ? other : THROW_CCE(); if (!(this.iff_1 === tmp0_other_with_cast.iff_1)) return false; if (!(this.jff_1 === tmp0_other_with_cast.jff_1)) return false; if (!(this.kff_1 === tmp0_other_with_cast.kff_1)) return false; if (!(this.lff_1 == tmp0_other_with_cast.lff_1)) return false; if (!(this.mff_1 == tmp0_other_with_cast.mff_1)) return false; if (!(this.nff_1 === tmp0_other_with_cast.nff_1)) return false; if (!this.off_1.equals(tmp0_other_with_cast.off_1)) return false; if (!this.pff_1.equals(tmp0_other_with_cast.pff_1)) return false; if (!(this.qff_1 === tmp0_other_with_cast.qff_1)) return false; if (!this.rff_1.equals(tmp0_other_with_cast.rff_1)) return false; return true; }; function Companion_116() { } var Companion_instance_117; function Companion_getInstance_119() { return Companion_instance_117; } function $serializer_112() { $serializer_instance_112 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.TransferJobError', this, 5); tmp0_serialDesc.d4g('tjeId', true); tmp0_serialDesc.d4g('tjeTjUid', true); tmp0_serialDesc.d4g('tjeTime', true); tmp0_serialDesc.d4g('tjeErrorStr', true); tmp0_serialDesc.d4g('tjeDismissed', true); this.rkh_1 = tmp0_serialDesc; } protoOf($serializer_112).a45 = function () { return this.rkh_1; }; protoOf($serializer_112).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance()]; }; protoOf($serializer_112).c45 = function (decoder) { var tmp0_desc = this.rkh_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_local1 = 0; var tmp6_local2 = new Long(0, 0); var tmp7_local3 = null; var tmp8_local4 = false; var tmp9_input = decoder.s48(tmp0_desc); if (tmp9_input.h49()) { tmp4_local0 = tmp9_input.x48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.x48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.u48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.x48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.x48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.u48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.t48(tmp0_desc); return TransferJobError_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_112).skh = function (encoder, value) { var tmp0_desc = this.rkh_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.vi1_1 === 0)) { tmp1_output.b4a(tmp0_desc, 0, value.vi1_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.wi1_1 === 0)) { tmp1_output.b4a(tmp0_desc, 1, value.wi1_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.xi1_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.xi1_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.yi1_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.yi1_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.zi1_1 === false)) { tmp1_output.y49(tmp0_desc, 4, value.zi1_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_112).b45 = function (encoder, value) { return this.skh(encoder, value instanceof TransferJobError ? value : THROW_CCE()); }; var $serializer_instance_112; function $serializer_getInstance_112() { if ($serializer_instance_112 == null) new $serializer_112(); return $serializer_instance_112; } function TransferJobError_init_$Init$(seen1, tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_112().rkh_1); } if (0 === (seen1 & 1)) $this.vi1_1 = 0; else $this.vi1_1 = tjeId; if (0 === (seen1 & 2)) $this.wi1_1 = 0; else $this.wi1_1 = tjeTjUid; if (0 === (seen1 & 4)) $this.xi1_1 = new Long(0, 0); else $this.xi1_1 = tjeTime; if (0 === (seen1 & 8)) $this.yi1_1 = null; else $this.yi1_1 = tjeErrorStr; if (0 === (seen1 & 16)) $this.zi1_1 = false; else $this.zi1_1 = tjeDismissed; return $this; } function TransferJobError_init_$Create$(seen1, tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed, serializationConstructorMarker) { return TransferJobError_init_$Init$(seen1, tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed, serializationConstructorMarker, objectCreate(protoOf(TransferJobError))); } function TransferJobError(tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed) { tjeId = tjeId === VOID ? 0 : tjeId; tjeTjUid = tjeTjUid === VOID ? 0 : tjeTjUid; tjeTime = tjeTime === VOID ? new Long(0, 0) : tjeTime; tjeErrorStr = tjeErrorStr === VOID ? null : tjeErrorStr; tjeDismissed = tjeDismissed === VOID ? false : tjeDismissed; this.vi1_1 = tjeId; this.wi1_1 = tjeTjUid; this.xi1_1 = tjeTime; this.yi1_1 = tjeErrorStr; this.zi1_1 = tjeDismissed; } protoOf(TransferJobError).toString = function () { return 'TransferJobError(tjeId=' + this.vi1_1 + ', tjeTjUid=' + this.wi1_1 + ', tjeTime=' + this.xi1_1.toString() + ', tjeErrorStr=' + this.yi1_1 + ', tjeDismissed=' + this.zi1_1 + ')'; }; protoOf(TransferJobError).hashCode = function () { var result = this.vi1_1; result = imul(result, 31) + this.wi1_1 | 0; result = imul(result, 31) + this.xi1_1.hashCode() | 0; result = imul(result, 31) + (this.yi1_1 == null ? 0 : getStringHashCode(this.yi1_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.zi1_1) | 0; return result; }; protoOf(TransferJobError).equals = function (other) { if (this === other) return true; if (!(other instanceof TransferJobError)) return false; var tmp0_other_with_cast = other instanceof TransferJobError ? other : THROW_CCE(); if (!(this.vi1_1 === tmp0_other_with_cast.vi1_1)) return false; if (!(this.wi1_1 === tmp0_other_with_cast.wi1_1)) return false; if (!this.xi1_1.equals(tmp0_other_with_cast.xi1_1)) return false; if (!(this.yi1_1 == tmp0_other_with_cast.yi1_1)) return false; if (!(this.zi1_1 === tmp0_other_with_cast.zi1_1)) return false; return true; }; function Companion_117() { } var Companion_instance_118; function Companion_getInstance_120() { return Companion_instance_118; } function $serializer_113() { $serializer_instance_113 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.TransferJobItem', this, 14); tmp0_serialDesc.d4g('tjiUid', true); tmp0_serialDesc.d4g('tjiTjUid', true); tmp0_serialDesc.d4g('tjTotalSize', true); tmp0_serialDesc.d4g('tjTransferred', true); tmp0_serialDesc.d4g('tjAttemptCount', true); tmp0_serialDesc.d4g('tjiSrc', true); tmp0_serialDesc.d4g('tjiDest', true); tmp0_serialDesc.d4g('tjiType', true); tmp0_serialDesc.d4g('tjiStatus', true); tmp0_serialDesc.d4g('tjiTableId', true); tmp0_serialDesc.d4g('tjiEntityUid', true); tmp0_serialDesc.d4g('tjiEntityEtag', true); tmp0_serialDesc.d4g('tjiLockIdToRelease', true); tmp0_serialDesc.d4g('tjiPartialTmpFile', true); this.tkh_1 = tmp0_serialDesc; } protoOf($serializer_113).a45 = function () { return this.tkh_1; }; protoOf($serializer_113).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_113).c45 = function (decoder) { var tmp0_desc = this.tkh_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_local1 = 0; var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = 0; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = 0; var tmp12_local8 = 0; var tmp13_local9 = 0; var tmp14_local10 = new Long(0, 0); var tmp15_local11 = new Long(0, 0); var tmp16_local12 = new Long(0, 0); var tmp17_local13 = null; var tmp18_input = decoder.s48(tmp0_desc); if (tmp18_input.h49()) { tmp4_local0 = tmp18_input.x48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp18_input.x48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp18_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp18_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp18_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp18_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp18_input.g49(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp18_input.x48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp18_input.x48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp18_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp18_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp18_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp18_input.y48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp18_input.g49(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; } else while (tmp1_flag) { tmp2_index = tmp18_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp18_input.x48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp18_input.x48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp18_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp18_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp18_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp18_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp18_input.g49(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp18_input.x48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp18_input.x48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp18_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp18_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp18_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp18_input.y48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp18_input.g49(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp18_input.t48(tmp0_desc); return TransferJobItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); }; protoOf($serializer_113).ukh = function (encoder, value) { var tmp0_desc = this.tkh_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !(value.mbz_1 === 0)) { tmp1_output.b4a(tmp0_desc, 0, value.mbz_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.nbz_1 === 0)) { tmp1_output.b4a(tmp0_desc, 1, value.nbz_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.obz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.obz_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.pbz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.pbz_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.qbz_1 === 0)) { tmp1_output.b4a(tmp0_desc, 4, value.qbz_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.rbz_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, StringSerializer_getInstance(), value.rbz_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.sbz_1 == null)) { tmp1_output.k4a(tmp0_desc, 6, StringSerializer_getInstance(), value.sbz_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.tbz_1 === 0)) { tmp1_output.b4a(tmp0_desc, 7, value.tbz_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !(value.ubz_1 === 0)) { tmp1_output.b4a(tmp0_desc, 8, value.ubz_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !(value.vbz_1 === 0)) { tmp1_output.b4a(tmp0_desc, 9, value.vbz_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !value.wbz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 10, value.wbz_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !value.xbz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 11, value.xbz_1); } if (tmp1_output.o4a(tmp0_desc, 12) ? true : !value.ybz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 12, value.ybz_1); } if (tmp1_output.o4a(tmp0_desc, 13) ? true : !(value.zbz_1 == null)) { tmp1_output.k4a(tmp0_desc, 13, StringSerializer_getInstance(), value.zbz_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_113).b45 = function (encoder, value) { return this.ukh(encoder, value instanceof TransferJobItem ? value : THROW_CCE()); }; var $serializer_instance_113; function $serializer_getInstance_113() { if ($serializer_instance_113 == null) new $serializer_113(); return $serializer_instance_113; } function TransferJobItem_init_$Init$(seen1, tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_113().tkh_1); } if (0 === (seen1 & 1)) $this.mbz_1 = 0; else $this.mbz_1 = tjiUid; if (0 === (seen1 & 2)) $this.nbz_1 = 0; else $this.nbz_1 = tjiTjUid; if (0 === (seen1 & 4)) $this.obz_1 = new Long(0, 0); else $this.obz_1 = tjTotalSize; if (0 === (seen1 & 8)) $this.pbz_1 = new Long(0, 0); else $this.pbz_1 = tjTransferred; if (0 === (seen1 & 16)) $this.qbz_1 = 0; else $this.qbz_1 = tjAttemptCount; if (0 === (seen1 & 32)) $this.rbz_1 = null; else $this.rbz_1 = tjiSrc; if (0 === (seen1 & 64)) $this.sbz_1 = null; else $this.sbz_1 = tjiDest; if (0 === (seen1 & 128)) $this.tbz_1 = 0; else $this.tbz_1 = tjiType; if (0 === (seen1 & 256)) $this.ubz_1 = 0; else $this.ubz_1 = tjiStatus; if (0 === (seen1 & 512)) $this.vbz_1 = 0; else $this.vbz_1 = tjiTableId; if (0 === (seen1 & 1024)) $this.wbz_1 = new Long(0, 0); else $this.wbz_1 = tjiEntityUid; if (0 === (seen1 & 2048)) $this.xbz_1 = new Long(0, 0); else $this.xbz_1 = tjiEntityEtag; if (0 === (seen1 & 4096)) $this.ybz_1 = new Long(0, 0); else $this.ybz_1 = tjiLockIdToRelease; if (0 === (seen1 & 8192)) $this.zbz_1 = null; else $this.zbz_1 = tjiPartialTmpFile; return $this; } function TransferJobItem_init_$Create$(seen1, tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile, serializationConstructorMarker) { return TransferJobItem_init_$Init$(seen1, tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile, serializationConstructorMarker, objectCreate(protoOf(TransferJobItem))); } function TransferJobItem(tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile) { tjiUid = tjiUid === VOID ? 0 : tjiUid; tjiTjUid = tjiTjUid === VOID ? 0 : tjiTjUid; tjTotalSize = tjTotalSize === VOID ? new Long(0, 0) : tjTotalSize; tjTransferred = tjTransferred === VOID ? new Long(0, 0) : tjTransferred; tjAttemptCount = tjAttemptCount === VOID ? 0 : tjAttemptCount; tjiSrc = tjiSrc === VOID ? null : tjiSrc; tjiDest = tjiDest === VOID ? null : tjiDest; tjiType = tjiType === VOID ? 0 : tjiType; tjiStatus = tjiStatus === VOID ? 0 : tjiStatus; tjiTableId = tjiTableId === VOID ? 0 : tjiTableId; tjiEntityUid = tjiEntityUid === VOID ? new Long(0, 0) : tjiEntityUid; tjiEntityEtag = tjiEntityEtag === VOID ? new Long(0, 0) : tjiEntityEtag; tjiLockIdToRelease = tjiLockIdToRelease === VOID ? new Long(0, 0) : tjiLockIdToRelease; tjiPartialTmpFile = tjiPartialTmpFile === VOID ? null : tjiPartialTmpFile; this.mbz_1 = tjiUid; this.nbz_1 = tjiTjUid; this.obz_1 = tjTotalSize; this.pbz_1 = tjTransferred; this.qbz_1 = tjAttemptCount; this.rbz_1 = tjiSrc; this.sbz_1 = tjiDest; this.tbz_1 = tjiType; this.ubz_1 = tjiStatus; this.vbz_1 = tjiTableId; this.wbz_1 = tjiEntityUid; this.xbz_1 = tjiEntityEtag; this.ybz_1 = tjiLockIdToRelease; this.zbz_1 = tjiPartialTmpFile; } protoOf(TransferJobItem).vkh = function (tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile) { return new TransferJobItem(tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile); }; protoOf(TransferJobItem).wkh = function (tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile, $super) { tjiUid = tjiUid === VOID ? this.mbz_1 : tjiUid; tjiTjUid = tjiTjUid === VOID ? this.nbz_1 : tjiTjUid; tjTotalSize = tjTotalSize === VOID ? this.obz_1 : tjTotalSize; tjTransferred = tjTransferred === VOID ? this.pbz_1 : tjTransferred; tjAttemptCount = tjAttemptCount === VOID ? this.qbz_1 : tjAttemptCount; tjiSrc = tjiSrc === VOID ? this.rbz_1 : tjiSrc; tjiDest = tjiDest === VOID ? this.sbz_1 : tjiDest; tjiType = tjiType === VOID ? this.tbz_1 : tjiType; tjiStatus = tjiStatus === VOID ? this.ubz_1 : tjiStatus; tjiTableId = tjiTableId === VOID ? this.vbz_1 : tjiTableId; tjiEntityUid = tjiEntityUid === VOID ? this.wbz_1 : tjiEntityUid; tjiEntityEtag = tjiEntityEtag === VOID ? this.xbz_1 : tjiEntityEtag; tjiLockIdToRelease = tjiLockIdToRelease === VOID ? this.ybz_1 : tjiLockIdToRelease; tjiPartialTmpFile = tjiPartialTmpFile === VOID ? this.zbz_1 : tjiPartialTmpFile; return $super === VOID ? this.vkh(tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile) : $super.vkh.call(this, tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile); }; protoOf(TransferJobItem).toString = function () { return 'TransferJobItem(tjiUid=' + this.mbz_1 + ', tjiTjUid=' + this.nbz_1 + ', tjTotalSize=' + this.obz_1.toString() + ', tjTransferred=' + this.pbz_1.toString() + ', tjAttemptCount=' + this.qbz_1 + ', tjiSrc=' + this.rbz_1 + ', tjiDest=' + this.sbz_1 + ', tjiType=' + this.tbz_1 + ', tjiStatus=' + this.ubz_1 + ', tjiTableId=' + this.vbz_1 + ', tjiEntityUid=' + this.wbz_1.toString() + ', tjiEntityEtag=' + this.xbz_1.toString() + ', tjiLockIdToRelease=' + this.ybz_1.toString() + ', tjiPartialTmpFile=' + this.zbz_1 + ')'; }; protoOf(TransferJobItem).hashCode = function () { var result = this.mbz_1; result = imul(result, 31) + this.nbz_1 | 0; result = imul(result, 31) + this.obz_1.hashCode() | 0; result = imul(result, 31) + this.pbz_1.hashCode() | 0; result = imul(result, 31) + this.qbz_1 | 0; result = imul(result, 31) + (this.rbz_1 == null ? 0 : getStringHashCode(this.rbz_1)) | 0; result = imul(result, 31) + (this.sbz_1 == null ? 0 : getStringHashCode(this.sbz_1)) | 0; result = imul(result, 31) + this.tbz_1 | 0; result = imul(result, 31) + this.ubz_1 | 0; result = imul(result, 31) + this.vbz_1 | 0; result = imul(result, 31) + this.wbz_1.hashCode() | 0; result = imul(result, 31) + this.xbz_1.hashCode() | 0; result = imul(result, 31) + this.ybz_1.hashCode() | 0; result = imul(result, 31) + (this.zbz_1 == null ? 0 : getStringHashCode(this.zbz_1)) | 0; return result; }; protoOf(TransferJobItem).equals = function (other) { if (this === other) return true; if (!(other instanceof TransferJobItem)) return false; var tmp0_other_with_cast = other instanceof TransferJobItem ? other : THROW_CCE(); if (!(this.mbz_1 === tmp0_other_with_cast.mbz_1)) return false; if (!(this.nbz_1 === tmp0_other_with_cast.nbz_1)) return false; if (!this.obz_1.equals(tmp0_other_with_cast.obz_1)) return false; if (!this.pbz_1.equals(tmp0_other_with_cast.pbz_1)) return false; if (!(this.qbz_1 === tmp0_other_with_cast.qbz_1)) return false; if (!(this.rbz_1 == tmp0_other_with_cast.rbz_1)) return false; if (!(this.sbz_1 == tmp0_other_with_cast.sbz_1)) return false; if (!(this.tbz_1 === tmp0_other_with_cast.tbz_1)) return false; if (!(this.ubz_1 === tmp0_other_with_cast.ubz_1)) return false; if (!(this.vbz_1 === tmp0_other_with_cast.vbz_1)) return false; if (!this.wbz_1.equals(tmp0_other_with_cast.wbz_1)) return false; if (!this.xbz_1.equals(tmp0_other_with_cast.xbz_1)) return false; if (!this.ybz_1.equals(tmp0_other_with_cast.ybz_1)) return false; if (!(this.zbz_1 == tmp0_other_with_cast.zbz_1)) return false; return true; }; function Companion_118() { } var Companion_instance_119; function Companion_getInstance_121() { return Companion_instance_119; } function $serializer_114() { $serializer_instance_114 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.UmAccount', this, 7); tmp0_serialDesc.d4g('personUid', false); tmp0_serialDesc.d4g('username', true); tmp0_serialDesc.d4g('auth', true); tmp0_serialDesc.d4g('endpointUrl', true); tmp0_serialDesc.d4g('firstName', true); tmp0_serialDesc.d4g('lastName', true); tmp0_serialDesc.d4g('admin', true); this.xkh_1 = tmp0_serialDesc; } protoOf($serializer_114).a45 = function () { return this.xkh_1; }; protoOf($serializer_114).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance()]; }; protoOf($serializer_114).c45 = function (decoder) { var tmp0_desc = this.xkh_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = false; var tmp11_input = decoder.s48(tmp0_desc); if (tmp11_input.h49()) { tmp4_local0 = tmp11_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.c49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.c49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.u48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.t48(tmp0_desc); return UmAccount_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_114).ykh = function (encoder, value) { var tmp0_desc = this.xkh_1; var tmp1_output = encoder.s48(tmp0_desc); tmp1_output.c4a(tmp0_desc, 0, value.zkh_1); if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.aki_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.aki_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.bki_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.bki_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.cki_1 === '')) { tmp1_output.g4a(tmp0_desc, 3, value.cki_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.dki_1 == null)) { tmp1_output.k4a(tmp0_desc, 4, StringSerializer_getInstance(), value.dki_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.eki_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, StringSerializer_getInstance(), value.eki_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.fki_1 === false)) { tmp1_output.y49(tmp0_desc, 6, value.fki_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_114).b45 = function (encoder, value) { return this.ykh(encoder, value instanceof UmAccount ? value : THROW_CCE()); }; var $serializer_instance_114; function $serializer_getInstance_114() { if ($serializer_instance_114 == null) new $serializer_114(); return $serializer_instance_114; } function UmAccount_init_$Init$(seen1, personUid, username, auth, endpointUrl, firstName, lastName, admin, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_114().xkh_1); } $this.zkh_1 = personUid; if (0 === (seen1 & 2)) $this.aki_1 = null; else $this.aki_1 = username; if (0 === (seen1 & 4)) $this.bki_1 = null; else $this.bki_1 = auth; if (0 === (seen1 & 8)) $this.cki_1 = ''; else $this.cki_1 = endpointUrl; if (0 === (seen1 & 16)) $this.dki_1 = null; else $this.dki_1 = firstName; if (0 === (seen1 & 32)) $this.eki_1 = null; else $this.eki_1 = lastName; if (0 === (seen1 & 64)) $this.fki_1 = false; else $this.fki_1 = admin; return $this; } function UmAccount_init_$Create$(seen1, personUid, username, auth, endpointUrl, firstName, lastName, admin, serializationConstructorMarker) { return UmAccount_init_$Init$(seen1, personUid, username, auth, endpointUrl, firstName, lastName, admin, serializationConstructorMarker, objectCreate(protoOf(UmAccount))); } function UmAccount(personUid, username, auth, endpointUrl, firstName, lastName, admin) { username = username === VOID ? null : username; auth = auth === VOID ? null : auth; endpointUrl = endpointUrl === VOID ? '' : endpointUrl; firstName = firstName === VOID ? null : firstName; lastName = lastName === VOID ? null : lastName; admin = admin === VOID ? false : admin; this.zkh_1 = personUid; this.aki_1 = username; this.bki_1 = auth; this.cki_1 = endpointUrl; this.dki_1 = firstName; this.eki_1 = lastName; this.fki_1 = admin; } protoOf(UmAccount).toString = function () { return 'UmAccount(personUid=' + this.zkh_1.toString() + ', username=' + this.aki_1 + ', auth=' + this.bki_1 + ', endpointUrl=' + this.cki_1 + ', firstName=' + this.dki_1 + ', lastName=' + this.eki_1 + ', admin=' + this.fki_1 + ')'; }; protoOf(UmAccount).hashCode = function () { var result = this.zkh_1.hashCode(); result = imul(result, 31) + (this.aki_1 == null ? 0 : getStringHashCode(this.aki_1)) | 0; result = imul(result, 31) + (this.bki_1 == null ? 0 : getStringHashCode(this.bki_1)) | 0; result = imul(result, 31) + getStringHashCode(this.cki_1) | 0; result = imul(result, 31) + (this.dki_1 == null ? 0 : getStringHashCode(this.dki_1)) | 0; result = imul(result, 31) + (this.eki_1 == null ? 0 : getStringHashCode(this.eki_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.fki_1) | 0; return result; }; protoOf(UmAccount).equals = function (other) { if (this === other) return true; if (!(other instanceof UmAccount)) return false; var tmp0_other_with_cast = other instanceof UmAccount ? other : THROW_CCE(); if (!this.zkh_1.equals(tmp0_other_with_cast.zkh_1)) return false; if (!(this.aki_1 == tmp0_other_with_cast.aki_1)) return false; if (!(this.bki_1 == tmp0_other_with_cast.bki_1)) return false; if (!(this.cki_1 === tmp0_other_with_cast.cki_1)) return false; if (!(this.dki_1 == tmp0_other_with_cast.dki_1)) return false; if (!(this.eki_1 == tmp0_other_with_cast.eki_1)) return false; if (!(this.fki_1 === tmp0_other_with_cast.fki_1)) return false; return true; }; function Companion_119() { this.gki_1 = 679; this.hki_1 = 1; this.iki_1 = 2; this.jki_1 = 4; this.kki_1 = 8; this.lki_1 = 1; this.mki_1 = 2; this.nki_1 = 4; this.oki_1 = 1; this.pki_1 = 2; this.qki_1 = 3; } var Companion_instance_120; function Companion_getInstance_122() { return Companion_instance_120; } function $serializer_115() { $serializer_instance_115 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.UserSession', this, 13); tmp0_serialDesc.d4g('usUid', true); tmp0_serialDesc.d4g('usPcsn', true); tmp0_serialDesc.d4g('usLcsn', true); tmp0_serialDesc.d4g('usLcb', true); tmp0_serialDesc.d4g('usLct', true); tmp0_serialDesc.d4g('usPersonUid', true); tmp0_serialDesc.d4g('usClientNodeId', true); tmp0_serialDesc.d4g('usStartTime', true); tmp0_serialDesc.d4g('usEndTime', true); tmp0_serialDesc.d4g('usStatus', true); tmp0_serialDesc.d4g('usReason', true); tmp0_serialDesc.d4g('usAuth', true); tmp0_serialDesc.d4g('usSessionType', true); this.rki_1 = tmp0_serialDesc; } protoOf($serializer_115).a45 = function () { return this.rki_1; }; protoOf($serializer_115).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance()]; }; protoOf($serializer_115).c45 = function (decoder) { var tmp0_desc = this.rki_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = 0; var tmp14_local10 = 0; var tmp15_local11 = null; var tmp16_local12 = 0; var tmp17_input = decoder.s48(tmp0_desc); if (tmp17_input.h49()) { tmp4_local0 = tmp17_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp17_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp17_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp17_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp17_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp17_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp17_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp17_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp17_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp17_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp17_input.x48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp17_input.g49(tmp0_desc, 11, StringSerializer_getInstance(), tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp17_input.x48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; } else while (tmp1_flag) { tmp2_index = tmp17_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp17_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp17_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp17_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp17_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp17_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp17_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp17_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp17_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp17_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp17_input.x48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp17_input.x48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp17_input.g49(tmp0_desc, 11, StringSerializer_getInstance(), tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp17_input.x48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp17_input.t48(tmp0_desc); return UserSession_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, null); }; protoOf($serializer_115).ski = function (encoder, value) { var tmp0_desc = this.rki_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.xi6_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.xi6_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.yi6_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.yi6_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.zi6_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.zi6_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.ai7_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.ai7_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.bi7_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.bi7_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.ci7_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.ci7_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.di7_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.di7_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.ei7_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.ei7_1); } var tmp; if (tmp1_output.o4a(tmp0_desc, 8)) { tmp = true; } else { var tmp_0 = value.fi7_1; Companion_getInstance(); tmp = !tmp_0.equals(new Long(-1, 2147483647)); } if (tmp) { tmp1_output.c4a(tmp0_desc, 8, value.fi7_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !(value.gi7_1 === 0)) { tmp1_output.b4a(tmp0_desc, 9, value.gi7_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !(value.hi7_1 === 0)) { tmp1_output.b4a(tmp0_desc, 10, value.hi7_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !(value.ii7_1 == null)) { tmp1_output.k4a(tmp0_desc, 11, StringSerializer_getInstance(), value.ii7_1); } if (tmp1_output.o4a(tmp0_desc, 12) ? true : !(value.ji7_1 === 1)) { tmp1_output.b4a(tmp0_desc, 12, value.ji7_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_115).b45 = function (encoder, value) { return this.ski(encoder, value instanceof UserSession ? value : THROW_CCE()); }; var $serializer_instance_115; function $serializer_getInstance_115() { if ($serializer_instance_115 == null) new $serializer_115(); return $serializer_instance_115; } function UserSession_init_$Init$(seen1, usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_115().rki_1); } if (0 === (seen1 & 1)) $this.xi6_1 = new Long(0, 0); else $this.xi6_1 = usUid; if (0 === (seen1 & 2)) $this.yi6_1 = new Long(0, 0); else $this.yi6_1 = usPcsn; if (0 === (seen1 & 4)) $this.zi6_1 = new Long(0, 0); else $this.zi6_1 = usLcsn; if (0 === (seen1 & 8)) $this.ai7_1 = new Long(0, 0); else $this.ai7_1 = usLcb; if (0 === (seen1 & 16)) $this.bi7_1 = new Long(0, 0); else $this.bi7_1 = usLct; if (0 === (seen1 & 32)) $this.ci7_1 = new Long(0, 0); else $this.ci7_1 = usPersonUid; if (0 === (seen1 & 64)) $this.di7_1 = new Long(0, 0); else $this.di7_1 = usClientNodeId; if (0 === (seen1 & 128)) $this.ei7_1 = new Long(0, 0); else $this.ei7_1 = usStartTime; if (0 === (seen1 & 256)) { var tmp = $this; Companion_getInstance(); tmp.fi7_1 = new Long(-1, 2147483647); } else $this.fi7_1 = usEndTime; if (0 === (seen1 & 512)) $this.gi7_1 = 0; else $this.gi7_1 = usStatus; if (0 === (seen1 & 1024)) $this.hi7_1 = 0; else $this.hi7_1 = usReason; if (0 === (seen1 & 2048)) $this.ii7_1 = null; else $this.ii7_1 = usAuth; if (0 === (seen1 & 4096)) $this.ji7_1 = 1; else $this.ji7_1 = usSessionType; return $this; } function UserSession_init_$Create$(seen1, usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType, serializationConstructorMarker) { return UserSession_init_$Init$(seen1, usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType, serializationConstructorMarker, objectCreate(protoOf(UserSession))); } function UserSession() { this.xi6_1 = new Long(0, 0); this.yi6_1 = new Long(0, 0); this.zi6_1 = new Long(0, 0); this.ai7_1 = new Long(0, 0); this.bi7_1 = new Long(0, 0); this.ci7_1 = new Long(0, 0); this.di7_1 = new Long(0, 0); this.ei7_1 = new Long(0, 0); var tmp = this; Companion_getInstance(); tmp.fi7_1 = new Long(-1, 2147483647); this.gi7_1 = 0; this.hi7_1 = 0; this.ii7_1 = null; this.ji7_1 = 1; } function UserSessionAndPerson(person, personPicture, userSession) { person = person === VOID ? null : person; personPicture = personPicture === VOID ? null : personPicture; userSession = userSession === VOID ? null : userSession; this.ki7_1 = person; this.li7_1 = personPicture; this.mi7_1 = userSession; } protoOf(UserSessionAndPerson).toString = function () { return 'UserSessionAndPerson(person=' + this.ki7_1 + ', personPicture=' + this.li7_1 + ', userSession=' + this.mi7_1 + ')'; }; protoOf(UserSessionAndPerson).hashCode = function () { var result = this.ki7_1 == null ? 0 : this.ki7_1.hashCode(); result = imul(result, 31) + (this.li7_1 == null ? 0 : this.li7_1.hashCode()) | 0; result = imul(result, 31) + (this.mi7_1 == null ? 0 : hashCode(this.mi7_1)) | 0; return result; }; protoOf(UserSessionAndPerson).equals = function (other) { if (this === other) return true; if (!(other instanceof UserSessionAndPerson)) return false; var tmp0_other_with_cast = other instanceof UserSessionAndPerson ? other : THROW_CCE(); if (!equals(this.ki7_1, tmp0_other_with_cast.ki7_1)) return false; if (!equals(this.li7_1, tmp0_other_with_cast.li7_1)) return false; if (!equals(this.mi7_1, tmp0_other_with_cast.mi7_1)) return false; return true; }; function Companion_120() { this.tki_1 = 0; this.uki_1 = 1; this.vki_1 = 2; this.wki_1 = 3; this.xki_1 = 4; this.yki_1 = 5; this.zki_1 = 6; this.akj_1 = 7; this.bkj_1 = 8; this.ckj_1 = 9; this.dkj_1 = 10; this.ekj_1 = 64; } var Companion_instance_121; function Companion_getInstance_123() { return Companion_instance_121; } function $serializer_116() { $serializer_instance_116 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.ActivityEntity', this, 7); tmp0_serialDesc.d4g('actUid', true); tmp0_serialDesc.d4g('actIdIri', true); tmp0_serialDesc.d4g('actType', true); tmp0_serialDesc.d4g('actMoreInfo', true); tmp0_serialDesc.d4g('actInteractionType', true); tmp0_serialDesc.d4g('actCorrectResponsePatterns', true); tmp0_serialDesc.d4g('actLct', true); this.fkj_1 = tmp0_serialDesc; } protoOf($serializer_116).a45 = function () { return this.fkj_1; }; protoOf($serializer_116).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()]; }; protoOf($serializer_116).c45 = function (decoder) { var tmp0_desc = this.fkj_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = 0; var tmp9_local5 = null; var tmp10_local6 = new Long(0, 0); var tmp11_input = decoder.s48(tmp0_desc); if (tmp11_input.h49()) { tmp4_local0 = tmp11_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.t48(tmp0_desc); return ActivityEntity_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_116).gkj = function (encoder, value) { var tmp0_desc = this.fkj_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.aid_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.aid_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.bid_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.bid_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.cid_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.cid_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.did_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.did_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.eid_1 === 0)) { tmp1_output.b4a(tmp0_desc, 4, value.eid_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.fid_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, StringSerializer_getInstance(), value.fid_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.gid_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.gid_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_116).b45 = function (encoder, value) { return this.gkj(encoder, value instanceof ActivityEntity ? value : THROW_CCE()); }; var $serializer_instance_116; function $serializer_getInstance_116() { if ($serializer_instance_116 == null) new $serializer_116(); return $serializer_instance_116; } function ActivityEntity_init_$Init$(seen1, actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_116().fkj_1); } if (0 === (seen1 & 1)) $this.aid_1 = new Long(0, 0); else $this.aid_1 = actUid; if (0 === (seen1 & 2)) $this.bid_1 = null; else $this.bid_1 = actIdIri; if (0 === (seen1 & 4)) $this.cid_1 = null; else $this.cid_1 = actType; if (0 === (seen1 & 8)) $this.did_1 = null; else $this.did_1 = actMoreInfo; if (0 === (seen1 & 16)) $this.eid_1 = 0; else $this.eid_1 = actInteractionType; if (0 === (seen1 & 32)) $this.fid_1 = null; else $this.fid_1 = actCorrectResponsePatterns; if (0 === (seen1 & 64)) $this.gid_1 = new Long(0, 0); else $this.gid_1 = actLct; return $this; } function ActivityEntity_init_$Create$(seen1, actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, serializationConstructorMarker) { return ActivityEntity_init_$Init$(seen1, actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, serializationConstructorMarker, objectCreate(protoOf(ActivityEntity))); } function ActivityEntity(actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct) { actUid = actUid === VOID ? new Long(0, 0) : actUid; actIdIri = actIdIri === VOID ? null : actIdIri; actType = actType === VOID ? null : actType; actMoreInfo = actMoreInfo === VOID ? null : actMoreInfo; actInteractionType = actInteractionType === VOID ? 0 : actInteractionType; actCorrectResponsePatterns = actCorrectResponsePatterns === VOID ? null : actCorrectResponsePatterns; actLct = actLct === VOID ? new Long(0, 0) : actLct; this.aid_1 = actUid; this.bid_1 = actIdIri; this.cid_1 = actType; this.did_1 = actMoreInfo; this.eid_1 = actInteractionType; this.fid_1 = actCorrectResponsePatterns; this.gid_1 = actLct; } protoOf(ActivityEntity).hkj = function (actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct) { return new ActivityEntity(actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct); }; protoOf(ActivityEntity).ikj = function (actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, $super) { actUid = actUid === VOID ? this.aid_1 : actUid; actIdIri = actIdIri === VOID ? this.bid_1 : actIdIri; actType = actType === VOID ? this.cid_1 : actType; actMoreInfo = actMoreInfo === VOID ? this.did_1 : actMoreInfo; actInteractionType = actInteractionType === VOID ? this.eid_1 : actInteractionType; actCorrectResponsePatterns = actCorrectResponsePatterns === VOID ? this.fid_1 : actCorrectResponsePatterns; actLct = actLct === VOID ? this.gid_1 : actLct; return $super === VOID ? this.hkj(actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct) : $super.hkj.call(this, actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct); }; protoOf(ActivityEntity).toString = function () { return 'ActivityEntity(actUid=' + this.aid_1.toString() + ', actIdIri=' + this.bid_1 + ', actType=' + this.cid_1 + ', actMoreInfo=' + this.did_1 + ', actInteractionType=' + this.eid_1 + ', actCorrectResponsePatterns=' + this.fid_1 + ', actLct=' + this.gid_1.toString() + ')'; }; protoOf(ActivityEntity).hashCode = function () { var result = this.aid_1.hashCode(); result = imul(result, 31) + (this.bid_1 == null ? 0 : getStringHashCode(this.bid_1)) | 0; result = imul(result, 31) + (this.cid_1 == null ? 0 : getStringHashCode(this.cid_1)) | 0; result = imul(result, 31) + (this.did_1 == null ? 0 : getStringHashCode(this.did_1)) | 0; result = imul(result, 31) + this.eid_1 | 0; result = imul(result, 31) + (this.fid_1 == null ? 0 : getStringHashCode(this.fid_1)) | 0; result = imul(result, 31) + this.gid_1.hashCode() | 0; return result; }; protoOf(ActivityEntity).equals = function (other) { if (this === other) return true; if (!(other instanceof ActivityEntity)) return false; var tmp0_other_with_cast = other instanceof ActivityEntity ? other : THROW_CCE(); if (!this.aid_1.equals(tmp0_other_with_cast.aid_1)) return false; if (!(this.bid_1 == tmp0_other_with_cast.bid_1)) return false; if (!(this.cid_1 == tmp0_other_with_cast.cid_1)) return false; if (!(this.did_1 == tmp0_other_with_cast.did_1)) return false; if (!(this.eid_1 === tmp0_other_with_cast.eid_1)) return false; if (!(this.fid_1 == tmp0_other_with_cast.fid_1)) return false; if (!this.gid_1.equals(tmp0_other_with_cast.gid_1)) return false; return true; }; function Companion_121() { this.jkj_1 = 6405; } var Companion_instance_122; function Companion_getInstance_124() { return Companion_instance_122; } function ActivityExtensionEntity(aeeActivityUid, aeeKeyHash, aeeKey, aeeJson, aeeLastMod, aeeIsDeleted) { aeeActivityUid = aeeActivityUid === VOID ? new Long(0, 0) : aeeActivityUid; aeeKeyHash = aeeKeyHash === VOID ? new Long(0, 0) : aeeKeyHash; aeeKey = aeeKey === VOID ? null : aeeKey; aeeJson = aeeJson === VOID ? null : aeeJson; aeeLastMod = aeeLastMod === VOID ? new Long(0, 0) : aeeLastMod; aeeIsDeleted = aeeIsDeleted === VOID ? false : aeeIsDeleted; this.iih_1 = aeeActivityUid; this.jih_1 = aeeKeyHash; this.kih_1 = aeeKey; this.lih_1 = aeeJson; this.mih_1 = aeeLastMod; this.nih_1 = aeeIsDeleted; } protoOf(ActivityExtensionEntity).toString = function () { return 'ActivityExtensionEntity(aeeActivityUid=' + this.iih_1.toString() + ', aeeKeyHash=' + this.jih_1.toString() + ', aeeKey=' + this.kih_1 + ', aeeJson=' + this.lih_1 + ', aeeLastMod=' + this.mih_1.toString() + ', aeeIsDeleted=' + this.nih_1 + ')'; }; protoOf(ActivityExtensionEntity).hashCode = function () { var result = this.iih_1.hashCode(); result = imul(result, 31) + this.jih_1.hashCode() | 0; result = imul(result, 31) + (this.kih_1 == null ? 0 : getStringHashCode(this.kih_1)) | 0; result = imul(result, 31) + (this.lih_1 == null ? 0 : getStringHashCode(this.lih_1)) | 0; result = imul(result, 31) + this.mih_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.nih_1) | 0; return result; }; protoOf(ActivityExtensionEntity).equals = function (other) { if (this === other) return true; if (!(other instanceof ActivityExtensionEntity)) return false; var tmp0_other_with_cast = other instanceof ActivityExtensionEntity ? other : THROW_CCE(); if (!this.iih_1.equals(tmp0_other_with_cast.iih_1)) return false; if (!this.jih_1.equals(tmp0_other_with_cast.jih_1)) return false; if (!(this.kih_1 == tmp0_other_with_cast.kih_1)) return false; if (!(this.lih_1 == tmp0_other_with_cast.lih_1)) return false; if (!this.mih_1.equals(tmp0_other_with_cast.mih_1)) return false; if (!(this.nih_1 === tmp0_other_with_cast.nih_1)) return false; return true; }; function Companion_122() { this.kkj_1 = 1; this.lkj_1 = 2; this.mkj_1 = 3; this.nkj_1 = 4; this.okj_1 = 5; this.pkj_1 = 6401; } var Companion_instance_123; function Companion_getInstance_125() { return Companion_instance_123; } function $serializer_117() { $serializer_instance_117 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.ActivityInteractionEntity', this, 6); tmp0_serialDesc.d4g('aieActivityUid', true); tmp0_serialDesc.d4g('aieHash', true); tmp0_serialDesc.d4g('aieProp', true); tmp0_serialDesc.d4g('aieId', true); tmp0_serialDesc.d4g('aieLastMod', true); tmp0_serialDesc.d4g('aieIsDeleted', true); this.qkj_1 = tmp0_serialDesc; } protoOf($serializer_117).a45 = function () { return this.qkj_1; }; protoOf($serializer_117).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_117).c45 = function (decoder) { var tmp0_desc = this.qkj_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = 0; var tmp7_local3 = null; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = false; var tmp10_input = decoder.s48(tmp0_desc); if (tmp10_input.h49()) { tmp4_local0 = tmp10_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.u48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.x48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.u48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.t48(tmp0_desc); return ActivityInteractionEntity_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_117).rkj = function (encoder, value) { var tmp0_desc = this.qkj_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.nii_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.nii_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.oii_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.oii_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.pii_1 === 0)) { tmp1_output.b4a(tmp0_desc, 2, value.pii_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.qii_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.qii_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.rii_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.rii_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.sii_1 === false)) { tmp1_output.y49(tmp0_desc, 5, value.sii_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_117).b45 = function (encoder, value) { return this.rkj(encoder, value instanceof ActivityInteractionEntity ? value : THROW_CCE()); }; var $serializer_instance_117; function $serializer_getInstance_117() { if ($serializer_instance_117 == null) new $serializer_117(); return $serializer_instance_117; } function ActivityInteractionEntity_init_$Init$(seen1, aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_117().qkj_1); } if (0 === (seen1 & 1)) $this.nii_1 = new Long(0, 0); else $this.nii_1 = aieActivityUid; if (0 === (seen1 & 2)) $this.oii_1 = new Long(0, 0); else $this.oii_1 = aieHash; if (0 === (seen1 & 4)) $this.pii_1 = 0; else $this.pii_1 = aieProp; if (0 === (seen1 & 8)) $this.qii_1 = null; else $this.qii_1 = aieId; if (0 === (seen1 & 16)) $this.rii_1 = new Long(0, 0); else $this.rii_1 = aieLastMod; if (0 === (seen1 & 32)) $this.sii_1 = false; else $this.sii_1 = aieIsDeleted; return $this; } function ActivityInteractionEntity_init_$Create$(seen1, aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted, serializationConstructorMarker) { return ActivityInteractionEntity_init_$Init$(seen1, aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted, serializationConstructorMarker, objectCreate(protoOf(ActivityInteractionEntity))); } function ActivityInteractionEntity(aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted) { aieActivityUid = aieActivityUid === VOID ? new Long(0, 0) : aieActivityUid; aieHash = aieHash === VOID ? new Long(0, 0) : aieHash; aieProp = aieProp === VOID ? 0 : aieProp; aieId = aieId === VOID ? null : aieId; aieLastMod = aieLastMod === VOID ? new Long(0, 0) : aieLastMod; aieIsDeleted = aieIsDeleted === VOID ? false : aieIsDeleted; this.nii_1 = aieActivityUid; this.oii_1 = aieHash; this.pii_1 = aieProp; this.qii_1 = aieId; this.rii_1 = aieLastMod; this.sii_1 = aieIsDeleted; } protoOf(ActivityInteractionEntity).toString = function () { return 'ActivityInteractionEntity(aieActivityUid=' + this.nii_1.toString() + ', aieHash=' + this.oii_1.toString() + ', aieProp=' + this.pii_1 + ', aieId=' + this.qii_1 + ', aieLastMod=' + this.rii_1.toString() + ', aieIsDeleted=' + this.sii_1 + ')'; }; protoOf(ActivityInteractionEntity).hashCode = function () { var result = this.nii_1.hashCode(); result = imul(result, 31) + this.oii_1.hashCode() | 0; result = imul(result, 31) + this.pii_1 | 0; result = imul(result, 31) + (this.qii_1 == null ? 0 : getStringHashCode(this.qii_1)) | 0; result = imul(result, 31) + this.rii_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.sii_1) | 0; return result; }; protoOf(ActivityInteractionEntity).equals = function (other) { if (this === other) return true; if (!(other instanceof ActivityInteractionEntity)) return false; var tmp0_other_with_cast = other instanceof ActivityInteractionEntity ? other : THROW_CCE(); if (!this.nii_1.equals(tmp0_other_with_cast.nii_1)) return false; if (!this.oii_1.equals(tmp0_other_with_cast.oii_1)) return false; if (!(this.pii_1 === tmp0_other_with_cast.pii_1)) return false; if (!(this.qii_1 == tmp0_other_with_cast.qii_1)) return false; if (!this.rii_1.equals(tmp0_other_with_cast.rii_1)) return false; if (!(this.sii_1 === tmp0_other_with_cast.sii_1)) return false; return true; }; function Companion_123() { this.skj_1 = 6442; this.tkj_1 = 'name'; this.ukj_1 = 'description'; } var Companion_instance_124; function Companion_getInstance_126() { return Companion_instance_124; } function $serializer_118() { $serializer_instance_118 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.ActivityLangMapEntry', this, 7); tmp0_serialDesc.d4g('almeActivityUid', true); tmp0_serialDesc.d4g('almeHash', true); tmp0_serialDesc.d4g('almeLangCode', true); tmp0_serialDesc.d4g('almePropName', true); tmp0_serialDesc.d4g('almeValue', true); tmp0_serialDesc.d4g('almeAieHash', true); tmp0_serialDesc.d4g('almeLastMod', true); this.vkj_1 = tmp0_serialDesc; } protoOf($serializer_118).a45 = function () { return this.vkj_1; }; protoOf($serializer_118).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_118).c45 = function (decoder) { var tmp0_desc = this.vkj_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = new Long(0, 0); var tmp10_local6 = new Long(0, 0); var tmp11_input = decoder.s48(tmp0_desc); if (tmp11_input.h49()) { tmp4_local0 = tmp11_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.t48(tmp0_desc); return ActivityLangMapEntry_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_118).wkj = function (encoder, value) { var tmp0_desc = this.vkj_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.oik_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.oik_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.pik_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.pik_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.qik_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.qik_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.rik_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.rik_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.sik_1 == null)) { tmp1_output.k4a(tmp0_desc, 4, StringSerializer_getInstance(), value.sik_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.tik_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.tik_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.uik_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.uik_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_118).b45 = function (encoder, value) { return this.wkj(encoder, value instanceof ActivityLangMapEntry ? value : THROW_CCE()); }; var $serializer_instance_118; function $serializer_getInstance_118() { if ($serializer_instance_118 == null) new $serializer_118(); return $serializer_instance_118; } function ActivityLangMapEntry_init_$Init$(seen1, almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_118().vkj_1); } if (0 === (seen1 & 1)) $this.oik_1 = new Long(0, 0); else $this.oik_1 = almeActivityUid; if (0 === (seen1 & 2)) $this.pik_1 = new Long(0, 0); else $this.pik_1 = almeHash; if (0 === (seen1 & 4)) $this.qik_1 = null; else $this.qik_1 = almeLangCode; if (0 === (seen1 & 8)) $this.rik_1 = null; else $this.rik_1 = almePropName; if (0 === (seen1 & 16)) $this.sik_1 = null; else $this.sik_1 = almeValue; if (0 === (seen1 & 32)) $this.tik_1 = new Long(0, 0); else $this.tik_1 = almeAieHash; if (0 === (seen1 & 64)) $this.uik_1 = new Long(0, 0); else $this.uik_1 = almeLastMod; return $this; } function ActivityLangMapEntry_init_$Create$(seen1, almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod, serializationConstructorMarker) { return ActivityLangMapEntry_init_$Init$(seen1, almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod, serializationConstructorMarker, objectCreate(protoOf(ActivityLangMapEntry))); } function ActivityLangMapEntry(almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod) { almeActivityUid = almeActivityUid === VOID ? new Long(0, 0) : almeActivityUid; almeHash = almeHash === VOID ? new Long(0, 0) : almeHash; almeLangCode = almeLangCode === VOID ? null : almeLangCode; almePropName = almePropName === VOID ? null : almePropName; almeValue = almeValue === VOID ? null : almeValue; almeAieHash = almeAieHash === VOID ? new Long(0, 0) : almeAieHash; almeLastMod = almeLastMod === VOID ? new Long(0, 0) : almeLastMod; this.oik_1 = almeActivityUid; this.pik_1 = almeHash; this.qik_1 = almeLangCode; this.rik_1 = almePropName; this.sik_1 = almeValue; this.tik_1 = almeAieHash; this.uik_1 = almeLastMod; } protoOf(ActivityLangMapEntry).toString = function () { return 'ActivityLangMapEntry(almeActivityUid=' + this.oik_1.toString() + ', almeHash=' + this.pik_1.toString() + ', almeLangCode=' + this.qik_1 + ', almePropName=' + this.rik_1 + ', almeValue=' + this.sik_1 + ', almeAieHash=' + this.tik_1.toString() + ', almeLastMod=' + this.uik_1.toString() + ')'; }; protoOf(ActivityLangMapEntry).hashCode = function () { var result = this.oik_1.hashCode(); result = imul(result, 31) + this.pik_1.hashCode() | 0; result = imul(result, 31) + (this.qik_1 == null ? 0 : getStringHashCode(this.qik_1)) | 0; result = imul(result, 31) + (this.rik_1 == null ? 0 : getStringHashCode(this.rik_1)) | 0; result = imul(result, 31) + (this.sik_1 == null ? 0 : getStringHashCode(this.sik_1)) | 0; result = imul(result, 31) + this.tik_1.hashCode() | 0; result = imul(result, 31) + this.uik_1.hashCode() | 0; return result; }; protoOf(ActivityLangMapEntry).equals = function (other) { if (this === other) return true; if (!(other instanceof ActivityLangMapEntry)) return false; var tmp0_other_with_cast = other instanceof ActivityLangMapEntry ? other : THROW_CCE(); if (!this.oik_1.equals(tmp0_other_with_cast.oik_1)) return false; if (!this.pik_1.equals(tmp0_other_with_cast.pik_1)) return false; if (!(this.qik_1 == tmp0_other_with_cast.qik_1)) return false; if (!(this.rik_1 == tmp0_other_with_cast.rik_1)) return false; if (!(this.sik_1 == tmp0_other_with_cast.sik_1)) return false; if (!this.tik_1.equals(tmp0_other_with_cast.tik_1)) return false; if (!this.uik_1.equals(tmp0_other_with_cast.uik_1)) return false; return true; }; function Companion_124() { this.xkj_1 = 68; } var Companion_instance_125; function Companion_getInstance_127() { return Companion_instance_125; } function $serializer_119() { $serializer_instance_119 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.ActorEntity', this, 11); tmp0_serialDesc.d4g('actorUid', true); tmp0_serialDesc.d4g('actorPersonUid', true); tmp0_serialDesc.d4g('actorName', true); tmp0_serialDesc.d4g('actorMbox', true); tmp0_serialDesc.d4g('actorMbox_sha1sum', true); tmp0_serialDesc.d4g('actorOpenid', true); tmp0_serialDesc.d4g('actorAccountName', true); tmp0_serialDesc.d4g('actorAccountHomePage', true); tmp0_serialDesc.d4g('actorEtag', true); tmp0_serialDesc.d4g('actorLct', true); tmp0_serialDesc.d4g('actorObjectType', true); this.ykj_1 = tmp0_serialDesc; } protoOf($serializer_119).a45 = function () { return this.ykj_1; }; protoOf($serializer_119).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance()]; }; protoOf($serializer_119).c45 = function (decoder) { var tmp0_desc = this.ykj_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = null; var tmp12_local8 = new Long(0, 0); var tmp13_local9 = new Long(0, 0); var tmp14_local10 = 0; var tmp15_input = decoder.s48(tmp0_desc); if (tmp15_input.h49()) { tmp4_local0 = tmp15_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.g49(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.g49(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.x48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.g49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.g49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.g49(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.g49(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.x48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.t48(tmp0_desc); return ActorEntity_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); }; protoOf($serializer_119).zkj = function (encoder, value) { var tmp0_desc = this.ykj_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.air_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.air_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.bir_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.bir_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.cir_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.cir_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.dir_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.dir_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.eir_1 == null)) { tmp1_output.k4a(tmp0_desc, 4, StringSerializer_getInstance(), value.eir_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.fir_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, StringSerializer_getInstance(), value.fir_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.gir_1 == null)) { tmp1_output.k4a(tmp0_desc, 6, StringSerializer_getInstance(), value.gir_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.hir_1 == null)) { tmp1_output.k4a(tmp0_desc, 7, StringSerializer_getInstance(), value.hir_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !value.iir_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 8, value.iir_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !value.jir_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 9, value.jir_1); } var tmp; if (tmp1_output.o4a(tmp0_desc, 10)) { tmp = true; } else { var tmp_0 = value.kir_1; tmp = !(tmp_0 === 1); } if (tmp) { tmp1_output.b4a(tmp0_desc, 10, value.kir_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_119).b45 = function (encoder, value) { return this.zkj(encoder, value instanceof ActorEntity ? value : THROW_CCE()); }; var $serializer_instance_119; function $serializer_getInstance_119() { if ($serializer_instance_119 == null) new $serializer_119(); return $serializer_instance_119; } function ActorEntity_init_$Init$(seen1, actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_119().ykj_1); } if (0 === (seen1 & 1)) $this.air_1 = new Long(0, 0); else $this.air_1 = actorUid; if (0 === (seen1 & 2)) $this.bir_1 = new Long(0, 0); else $this.bir_1 = actorPersonUid; if (0 === (seen1 & 4)) $this.cir_1 = null; else $this.cir_1 = actorName; if (0 === (seen1 & 8)) $this.dir_1 = null; else $this.dir_1 = actorMbox; if (0 === (seen1 & 16)) $this.eir_1 = null; else $this.eir_1 = actorMbox_sha1sum; if (0 === (seen1 & 32)) $this.fir_1 = null; else $this.fir_1 = actorOpenid; if (0 === (seen1 & 64)) $this.gir_1 = null; else $this.gir_1 = actorAccountName; if (0 === (seen1 & 128)) $this.hir_1 = null; else $this.hir_1 = actorAccountHomePage; if (0 === (seen1 & 256)) $this.iir_1 = new Long(0, 0); else $this.iir_1 = actorEtag; if (0 === (seen1 & 512)) $this.jir_1 = new Long(0, 0); else $this.jir_1 = actorLct; if (0 === (seen1 & 1024)) { var tmp = $this; tmp.kir_1 = 1; } else $this.kir_1 = actorObjectType; return $this; } function ActorEntity_init_$Create$(seen1, actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType, serializationConstructorMarker) { return ActorEntity_init_$Init$(seen1, actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType, serializationConstructorMarker, objectCreate(protoOf(ActorEntity))); } function ActorEntity(actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType) { actorUid = actorUid === VOID ? new Long(0, 0) : actorUid; actorPersonUid = actorPersonUid === VOID ? new Long(0, 0) : actorPersonUid; actorName = actorName === VOID ? null : actorName; actorMbox = actorMbox === VOID ? null : actorMbox; actorMbox_sha1sum = actorMbox_sha1sum === VOID ? null : actorMbox_sha1sum; actorOpenid = actorOpenid === VOID ? null : actorOpenid; actorAccountName = actorAccountName === VOID ? null : actorAccountName; actorAccountHomePage = actorAccountHomePage === VOID ? null : actorAccountHomePage; actorEtag = actorEtag === VOID ? new Long(0, 0) : actorEtag; actorLct = actorLct === VOID ? new Long(0, 0) : actorLct; var tmp; if (actorObjectType === VOID) { tmp = 1; } else { tmp = actorObjectType; } actorObjectType = tmp; this.air_1 = actorUid; this.bir_1 = actorPersonUid; this.cir_1 = actorName; this.dir_1 = actorMbox; this.eir_1 = actorMbox_sha1sum; this.fir_1 = actorOpenid; this.gir_1 = actorAccountName; this.hir_1 = actorAccountHomePage; this.iir_1 = actorEtag; this.jir_1 = actorLct; this.kir_1 = actorObjectType; } protoOf(ActorEntity).toString = function () { return 'ActorEntity(actorUid=' + this.air_1.toString() + ', actorPersonUid=' + this.bir_1.toString() + ', actorName=' + this.cir_1 + ', actorMbox=' + this.dir_1 + ', actorMbox_sha1sum=' + this.eir_1 + ', actorOpenid=' + this.fir_1 + ', actorAccountName=' + this.gir_1 + ', actorAccountHomePage=' + this.hir_1 + ', actorEtag=' + this.iir_1.toString() + ', actorLct=' + this.jir_1.toString() + ', actorObjectType=' + this.kir_1 + ')'; }; protoOf(ActorEntity).hashCode = function () { var result = this.air_1.hashCode(); result = imul(result, 31) + this.bir_1.hashCode() | 0; result = imul(result, 31) + (this.cir_1 == null ? 0 : getStringHashCode(this.cir_1)) | 0; result = imul(result, 31) + (this.dir_1 == null ? 0 : getStringHashCode(this.dir_1)) | 0; result = imul(result, 31) + (this.eir_1 == null ? 0 : getStringHashCode(this.eir_1)) | 0; result = imul(result, 31) + (this.fir_1 == null ? 0 : getStringHashCode(this.fir_1)) | 0; result = imul(result, 31) + (this.gir_1 == null ? 0 : getStringHashCode(this.gir_1)) | 0; result = imul(result, 31) + (this.hir_1 == null ? 0 : getStringHashCode(this.hir_1)) | 0; result = imul(result, 31) + this.iir_1.hashCode() | 0; result = imul(result, 31) + this.jir_1.hashCode() | 0; result = imul(result, 31) + this.kir_1 | 0; return result; }; protoOf(ActorEntity).equals = function (other) { if (this === other) return true; if (!(other instanceof ActorEntity)) return false; var tmp0_other_with_cast = other instanceof ActorEntity ? other : THROW_CCE(); if (!this.air_1.equals(tmp0_other_with_cast.air_1)) return false; if (!this.bir_1.equals(tmp0_other_with_cast.bir_1)) return false; if (!(this.cir_1 == tmp0_other_with_cast.cir_1)) return false; if (!(this.dir_1 == tmp0_other_with_cast.dir_1)) return false; if (!(this.eir_1 == tmp0_other_with_cast.eir_1)) return false; if (!(this.fir_1 == tmp0_other_with_cast.fir_1)) return false; if (!(this.gir_1 == tmp0_other_with_cast.gir_1)) return false; if (!(this.hir_1 == tmp0_other_with_cast.hir_1)) return false; if (!this.iir_1.equals(tmp0_other_with_cast.iir_1)) return false; if (!this.jir_1.equals(tmp0_other_with_cast.jir_1)) return false; if (!(this.kir_1 === tmp0_other_with_cast.kir_1)) return false; return true; }; function Companion_125() { this.akk_1 = 4232; } var Companion_instance_126; function Companion_getInstance_128() { return Companion_instance_126; } function $serializer_120() { $serializer_instance_120 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.GroupMemberActorJoin', this, 3); tmp0_serialDesc.d4g('gmajGroupActorUid', true); tmp0_serialDesc.d4g('gmajMemberActorUid', true); tmp0_serialDesc.d4g('gmajLastMod', true); this.bkk_1 = tmp0_serialDesc; } protoOf($serializer_120).a45 = function () { return this.bkk_1; }; protoOf($serializer_120).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_120).c45 = function (decoder) { var tmp0_desc = this.bkk_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_input = decoder.s48(tmp0_desc); if (tmp7_input.h49()) { tmp4_local0 = tmp7_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.t48(tmp0_desc); return GroupMemberActorJoin_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_120).ckk = function (encoder, value) { var tmp0_desc = this.bkk_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.xiv_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.xiv_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.yiv_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.yiv_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.ziv_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.ziv_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_120).b45 = function (encoder, value) { return this.ckk(encoder, value instanceof GroupMemberActorJoin ? value : THROW_CCE()); }; var $serializer_instance_120; function $serializer_getInstance_120() { if ($serializer_instance_120 == null) new $serializer_120(); return $serializer_instance_120; } function GroupMemberActorJoin_init_$Init$(seen1, gmajGroupActorUid, gmajMemberActorUid, gmajLastMod, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_120().bkk_1); } if (0 === (seen1 & 1)) $this.xiv_1 = new Long(0, 0); else $this.xiv_1 = gmajGroupActorUid; if (0 === (seen1 & 2)) $this.yiv_1 = new Long(0, 0); else $this.yiv_1 = gmajMemberActorUid; if (0 === (seen1 & 4)) $this.ziv_1 = new Long(0, 0); else $this.ziv_1 = gmajLastMod; return $this; } function GroupMemberActorJoin_init_$Create$(seen1, gmajGroupActorUid, gmajMemberActorUid, gmajLastMod, serializationConstructorMarker) { return GroupMemberActorJoin_init_$Init$(seen1, gmajGroupActorUid, gmajMemberActorUid, gmajLastMod, serializationConstructorMarker, objectCreate(protoOf(GroupMemberActorJoin))); } function GroupMemberActorJoin(gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) { gmajGroupActorUid = gmajGroupActorUid === VOID ? new Long(0, 0) : gmajGroupActorUid; gmajMemberActorUid = gmajMemberActorUid === VOID ? new Long(0, 0) : gmajMemberActorUid; gmajLastMod = gmajLastMod === VOID ? new Long(0, 0) : gmajLastMod; this.xiv_1 = gmajGroupActorUid; this.yiv_1 = gmajMemberActorUid; this.ziv_1 = gmajLastMod; } protoOf(GroupMemberActorJoin).dkk = function (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) { return new GroupMemberActorJoin(gmajGroupActorUid, gmajMemberActorUid, gmajLastMod); }; protoOf(GroupMemberActorJoin).ekk = function (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod, $super) { gmajGroupActorUid = gmajGroupActorUid === VOID ? this.xiv_1 : gmajGroupActorUid; gmajMemberActorUid = gmajMemberActorUid === VOID ? this.yiv_1 : gmajMemberActorUid; gmajLastMod = gmajLastMod === VOID ? this.ziv_1 : gmajLastMod; return $super === VOID ? this.dkk(gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) : $super.dkk.call(this, gmajGroupActorUid, gmajMemberActorUid, gmajLastMod); }; protoOf(GroupMemberActorJoin).toString = function () { return 'GroupMemberActorJoin(gmajGroupActorUid=' + this.xiv_1.toString() + ', gmajMemberActorUid=' + this.yiv_1.toString() + ', gmajLastMod=' + this.ziv_1.toString() + ')'; }; protoOf(GroupMemberActorJoin).hashCode = function () { var result = this.xiv_1.hashCode(); result = imul(result, 31) + this.yiv_1.hashCode() | 0; result = imul(result, 31) + this.ziv_1.hashCode() | 0; return result; }; protoOf(GroupMemberActorJoin).equals = function (other) { if (this === other) return true; if (!(other instanceof GroupMemberActorJoin)) return false; var tmp0_other_with_cast = other instanceof GroupMemberActorJoin ? other : THROW_CCE(); if (!this.xiv_1.equals(tmp0_other_with_cast.xiv_1)) return false; if (!this.yiv_1.equals(tmp0_other_with_cast.yiv_1)) return false; if (!this.ziv_1.equals(tmp0_other_with_cast.ziv_1)) return false; return true; }; function Companion_126() { this.fkk_1 = 121422; } var Companion_instance_127; function Companion_getInstance_129() { return Companion_instance_127; } function $serializer_121() { $serializer_instance_121 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.StateDeleteCommand', this, 7); tmp0_serialDesc.d4g('sdcActorUid', true); tmp0_serialDesc.d4g('sdcHash', true); tmp0_serialDesc.d4g('sdcActivityUid', true); tmp0_serialDesc.d4g('sdcStateId', true); tmp0_serialDesc.d4g('sdcLastMod', true); tmp0_serialDesc.d4g('sdcRegistrationHi', true); tmp0_serialDesc.d4g('sdcRegistrationLo', true); this.gkk_1 = tmp0_serialDesc; } protoOf($serializer_121).a45 = function () { return this.gkk_1; }; protoOf($serializer_121).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), get_nullable(LongSerializer_getInstance()), get_nullable(LongSerializer_getInstance())]; }; protoOf($serializer_121).c45 = function (decoder) { var tmp0_desc = this.gkk_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = null; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_input = decoder.s48(tmp0_desc); if (tmp11_input.h49()) { tmp4_local0 = tmp11_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.g49(tmp0_desc, 5, LongSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.g49(tmp0_desc, 6, LongSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.g49(tmp0_desc, 5, LongSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.g49(tmp0_desc, 6, LongSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.t48(tmp0_desc); return StateDeleteCommand_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_121).hkk = function (encoder, value) { var tmp0_desc = this.gkk_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.ziy_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.ziy_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.aiz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.aiz_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.biz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.biz_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.ciz_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.ciz_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.diz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.diz_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !(value.eiz_1 == null)) { tmp1_output.k4a(tmp0_desc, 5, LongSerializer_getInstance(), value.eiz_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.fiz_1 == null)) { tmp1_output.k4a(tmp0_desc, 6, LongSerializer_getInstance(), value.fiz_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_121).b45 = function (encoder, value) { return this.hkk(encoder, value instanceof StateDeleteCommand ? value : THROW_CCE()); }; var $serializer_instance_121; function $serializer_getInstance_121() { if ($serializer_instance_121 == null) new $serializer_121(); return $serializer_instance_121; } function StateDeleteCommand_init_$Init$(seen1, sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_121().gkk_1); } if (0 === (seen1 & 1)) $this.ziy_1 = new Long(0, 0); else $this.ziy_1 = sdcActorUid; if (0 === (seen1 & 2)) $this.aiz_1 = new Long(0, 0); else $this.aiz_1 = sdcHash; if (0 === (seen1 & 4)) $this.biz_1 = new Long(0, 0); else $this.biz_1 = sdcActivityUid; if (0 === (seen1 & 8)) $this.ciz_1 = null; else $this.ciz_1 = sdcStateId; if (0 === (seen1 & 16)) $this.diz_1 = new Long(0, 0); else $this.diz_1 = sdcLastMod; if (0 === (seen1 & 32)) $this.eiz_1 = null; else $this.eiz_1 = sdcRegistrationHi; if (0 === (seen1 & 64)) $this.fiz_1 = null; else $this.fiz_1 = sdcRegistrationLo; return $this; } function StateDeleteCommand_init_$Create$(seen1, sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo, serializationConstructorMarker) { return StateDeleteCommand_init_$Init$(seen1, sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo, serializationConstructorMarker, objectCreate(protoOf(StateDeleteCommand))); } function StateDeleteCommand(sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo) { sdcActorUid = sdcActorUid === VOID ? new Long(0, 0) : sdcActorUid; sdcHash = sdcHash === VOID ? new Long(0, 0) : sdcHash; sdcActivityUid = sdcActivityUid === VOID ? new Long(0, 0) : sdcActivityUid; sdcStateId = sdcStateId === VOID ? null : sdcStateId; sdcLastMod = sdcLastMod === VOID ? new Long(0, 0) : sdcLastMod; sdcRegistrationHi = sdcRegistrationHi === VOID ? null : sdcRegistrationHi; sdcRegistrationLo = sdcRegistrationLo === VOID ? null : sdcRegistrationLo; this.ziy_1 = sdcActorUid; this.aiz_1 = sdcHash; this.biz_1 = sdcActivityUid; this.ciz_1 = sdcStateId; this.diz_1 = sdcLastMod; this.eiz_1 = sdcRegistrationHi; this.fiz_1 = sdcRegistrationLo; } protoOf(StateDeleteCommand).toString = function () { return 'StateDeleteCommand(sdcActorUid=' + this.ziy_1.toString() + ', sdcHash=' + this.aiz_1.toString() + ', sdcActivityUid=' + this.biz_1.toString() + ', sdcStateId=' + this.ciz_1 + ', sdcLastMod=' + this.diz_1.toString() + ', sdcRegistrationHi=' + toString(this.eiz_1) + ', sdcRegistrationLo=' + toString(this.fiz_1) + ')'; }; protoOf(StateDeleteCommand).hashCode = function () { var result = this.ziy_1.hashCode(); result = imul(result, 31) + this.aiz_1.hashCode() | 0; result = imul(result, 31) + this.biz_1.hashCode() | 0; result = imul(result, 31) + (this.ciz_1 == null ? 0 : getStringHashCode(this.ciz_1)) | 0; result = imul(result, 31) + this.diz_1.hashCode() | 0; result = imul(result, 31) + (this.eiz_1 == null ? 0 : this.eiz_1.hashCode()) | 0; result = imul(result, 31) + (this.fiz_1 == null ? 0 : this.fiz_1.hashCode()) | 0; return result; }; protoOf(StateDeleteCommand).equals = function (other) { if (this === other) return true; if (!(other instanceof StateDeleteCommand)) return false; var tmp0_other_with_cast = other instanceof StateDeleteCommand ? other : THROW_CCE(); if (!this.ziy_1.equals(tmp0_other_with_cast.ziy_1)) return false; if (!this.aiz_1.equals(tmp0_other_with_cast.aiz_1)) return false; if (!this.biz_1.equals(tmp0_other_with_cast.biz_1)) return false; if (!(this.ciz_1 == tmp0_other_with_cast.ciz_1)) return false; if (!this.diz_1.equals(tmp0_other_with_cast.diz_1)) return false; if (!equals(this.eiz_1, tmp0_other_with_cast.eiz_1)) return false; if (!equals(this.fiz_1, tmp0_other_with_cast.fiz_1)) return false; return true; }; function Companion_127() { this.ikk_1 = 3289; } var Companion_instance_128; function Companion_getInstance_130() { return Companion_instance_128; } function $serializer_122() { $serializer_instance_122 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.StateEntity', this, 14); tmp0_serialDesc.d4g('seActorUid', true); tmp0_serialDesc.d4g('seHash', true); tmp0_serialDesc.d4g('seActivityUid', true); tmp0_serialDesc.d4g('seStateId', true); tmp0_serialDesc.d4g('seLastMod', true); tmp0_serialDesc.d4g('seTimeStored', true); tmp0_serialDesc.d4g('seContentType', true); tmp0_serialDesc.d4g('seCompressed', true); tmp0_serialDesc.d4g('seContent', true); tmp0_serialDesc.d4g('seDeleted', true); tmp0_serialDesc.d4g('seRegistrationHi', true); tmp0_serialDesc.d4g('seRegistrationLo', true); tmp0_serialDesc.d4g('seH5PPreloaded', true); tmp0_serialDesc.d4g('seH5PSubContentId', true); this.jkk_1 = tmp0_serialDesc; } protoOf($serializer_122).a45 = function () { return this.jkk_1; }; protoOf($serializer_122).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(LongSerializer_getInstance()), get_nullable(LongSerializer_getInstance()), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_122).c45 = function (decoder) { var tmp0_desc = this.jkk_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = null; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = null; var tmp11_local7 = 0; var tmp12_local8 = null; var tmp13_local9 = false; var tmp14_local10 = null; var tmp15_local11 = null; var tmp16_local12 = false; var tmp17_local13 = null; var tmp18_input = decoder.s48(tmp0_desc); if (tmp18_input.h49()) { tmp4_local0 = tmp18_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp18_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp18_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp18_input.c49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp18_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp18_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp18_input.c49(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp18_input.x48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp18_input.c49(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp18_input.u48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp18_input.g49(tmp0_desc, 10, LongSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp18_input.g49(tmp0_desc, 11, LongSerializer_getInstance(), tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp18_input.u48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp18_input.g49(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; } else while (tmp1_flag) { tmp2_index = tmp18_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp18_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp18_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp18_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp18_input.c49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp18_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp18_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp18_input.c49(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp18_input.x48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp18_input.c49(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp18_input.u48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp18_input.g49(tmp0_desc, 10, LongSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp18_input.g49(tmp0_desc, 11, LongSerializer_getInstance(), tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp18_input.u48(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp18_input.g49(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp18_input.t48(tmp0_desc); return StateEntity_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, null); }; protoOf($serializer_122).kkk = function (encoder, value) { var tmp0_desc = this.jkk_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.tiz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.tiz_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.uiz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.uiz_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.viz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.viz_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.wiz_1 === '')) { tmp1_output.g4a(tmp0_desc, 3, value.wiz_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.xiz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.xiz_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.yiz_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.yiz_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !(value.ziz_1 === '')) { tmp1_output.g4a(tmp0_desc, 6, value.ziz_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.aj0_1 === 0)) { tmp1_output.b4a(tmp0_desc, 7, value.aj0_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !(value.bj0_1 === '')) { tmp1_output.g4a(tmp0_desc, 8, value.bj0_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !(value.cj0_1 === false)) { tmp1_output.y49(tmp0_desc, 9, value.cj0_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !(value.dj0_1 == null)) { tmp1_output.k4a(tmp0_desc, 10, LongSerializer_getInstance(), value.dj0_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !(value.ej0_1 == null)) { tmp1_output.k4a(tmp0_desc, 11, LongSerializer_getInstance(), value.ej0_1); } if (tmp1_output.o4a(tmp0_desc, 12) ? true : !(value.fj0_1 === false)) { tmp1_output.y49(tmp0_desc, 12, value.fj0_1); } if (tmp1_output.o4a(tmp0_desc, 13) ? true : !(value.gj0_1 == null)) { tmp1_output.k4a(tmp0_desc, 13, StringSerializer_getInstance(), value.gj0_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_122).b45 = function (encoder, value) { return this.kkk(encoder, value instanceof StateEntity ? value : THROW_CCE()); }; var $serializer_instance_122; function $serializer_getInstance_122() { if ($serializer_instance_122 == null) new $serializer_122(); return $serializer_instance_122; } function StateEntity_init_$Init$(seen1, seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_122().jkk_1); } if (0 === (seen1 & 1)) $this.tiz_1 = new Long(0, 0); else $this.tiz_1 = seActorUid; if (0 === (seen1 & 2)) $this.uiz_1 = new Long(0, 0); else $this.uiz_1 = seHash; if (0 === (seen1 & 4)) $this.viz_1 = new Long(0, 0); else $this.viz_1 = seActivityUid; if (0 === (seen1 & 8)) $this.wiz_1 = ''; else $this.wiz_1 = seStateId; if (0 === (seen1 & 16)) $this.xiz_1 = new Long(0, 0); else $this.xiz_1 = seLastMod; if (0 === (seen1 & 32)) $this.yiz_1 = new Long(0, 0); else $this.yiz_1 = seTimeStored; if (0 === (seen1 & 64)) $this.ziz_1 = ''; else $this.ziz_1 = seContentType; if (0 === (seen1 & 128)) $this.aj0_1 = 0; else $this.aj0_1 = seCompressed; if (0 === (seen1 & 256)) $this.bj0_1 = ''; else $this.bj0_1 = seContent; if (0 === (seen1 & 512)) $this.cj0_1 = false; else $this.cj0_1 = seDeleted; if (0 === (seen1 & 1024)) $this.dj0_1 = null; else $this.dj0_1 = seRegistrationHi; if (0 === (seen1 & 2048)) $this.ej0_1 = null; else $this.ej0_1 = seRegistrationLo; if (0 === (seen1 & 4096)) $this.fj0_1 = false; else $this.fj0_1 = seH5PPreloaded; if (0 === (seen1 & 8192)) $this.gj0_1 = null; else $this.gj0_1 = seH5PSubContentId; return $this; } function StateEntity_init_$Create$(seen1, seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId, serializationConstructorMarker) { return StateEntity_init_$Init$(seen1, seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId, serializationConstructorMarker, objectCreate(protoOf(StateEntity))); } function StateEntity(seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId) { seActorUid = seActorUid === VOID ? new Long(0, 0) : seActorUid; seHash = seHash === VOID ? new Long(0, 0) : seHash; seActivityUid = seActivityUid === VOID ? new Long(0, 0) : seActivityUid; seStateId = seStateId === VOID ? '' : seStateId; seLastMod = seLastMod === VOID ? new Long(0, 0) : seLastMod; seTimeStored = seTimeStored === VOID ? new Long(0, 0) : seTimeStored; seContentType = seContentType === VOID ? '' : seContentType; seCompressed = seCompressed === VOID ? 0 : seCompressed; seContent = seContent === VOID ? '' : seContent; seDeleted = seDeleted === VOID ? false : seDeleted; seRegistrationHi = seRegistrationHi === VOID ? null : seRegistrationHi; seRegistrationLo = seRegistrationLo === VOID ? null : seRegistrationLo; seH5PPreloaded = seH5PPreloaded === VOID ? false : seH5PPreloaded; seH5PSubContentId = seH5PSubContentId === VOID ? null : seH5PSubContentId; this.tiz_1 = seActorUid; this.uiz_1 = seHash; this.viz_1 = seActivityUid; this.wiz_1 = seStateId; this.xiz_1 = seLastMod; this.yiz_1 = seTimeStored; this.ziz_1 = seContentType; this.aj0_1 = seCompressed; this.bj0_1 = seContent; this.cj0_1 = seDeleted; this.dj0_1 = seRegistrationHi; this.ej0_1 = seRegistrationLo; this.fj0_1 = seH5PPreloaded; this.gj0_1 = seH5PSubContentId; } protoOf(StateEntity).toString = function () { return 'StateEntity(seActorUid=' + this.tiz_1.toString() + ', seHash=' + this.uiz_1.toString() + ', seActivityUid=' + this.viz_1.toString() + ', seStateId=' + this.wiz_1 + ', seLastMod=' + this.xiz_1.toString() + ', seTimeStored=' + this.yiz_1.toString() + ', seContentType=' + this.ziz_1 + ', seCompressed=' + this.aj0_1 + ', seContent=' + this.bj0_1 + ', seDeleted=' + this.cj0_1 + ', seRegistrationHi=' + toString(this.dj0_1) + ', seRegistrationLo=' + toString(this.ej0_1) + ', seH5PPreloaded=' + this.fj0_1 + ', seH5PSubContentId=' + this.gj0_1 + ')'; }; protoOf(StateEntity).hashCode = function () { var result = this.tiz_1.hashCode(); result = imul(result, 31) + this.uiz_1.hashCode() | 0; result = imul(result, 31) + this.viz_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.wiz_1) | 0; result = imul(result, 31) + this.xiz_1.hashCode() | 0; result = imul(result, 31) + this.yiz_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.ziz_1) | 0; result = imul(result, 31) + this.aj0_1 | 0; result = imul(result, 31) + getStringHashCode(this.bj0_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.cj0_1) | 0; result = imul(result, 31) + (this.dj0_1 == null ? 0 : this.dj0_1.hashCode()) | 0; result = imul(result, 31) + (this.ej0_1 == null ? 0 : this.ej0_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.fj0_1) | 0; result = imul(result, 31) + (this.gj0_1 == null ? 0 : getStringHashCode(this.gj0_1)) | 0; return result; }; protoOf(StateEntity).equals = function (other) { if (this === other) return true; if (!(other instanceof StateEntity)) return false; var tmp0_other_with_cast = other instanceof StateEntity ? other : THROW_CCE(); if (!this.tiz_1.equals(tmp0_other_with_cast.tiz_1)) return false; if (!this.uiz_1.equals(tmp0_other_with_cast.uiz_1)) return false; if (!this.viz_1.equals(tmp0_other_with_cast.viz_1)) return false; if (!(this.wiz_1 === tmp0_other_with_cast.wiz_1)) return false; if (!this.xiz_1.equals(tmp0_other_with_cast.xiz_1)) return false; if (!this.yiz_1.equals(tmp0_other_with_cast.yiz_1)) return false; if (!(this.ziz_1 === tmp0_other_with_cast.ziz_1)) return false; if (!(this.aj0_1 === tmp0_other_with_cast.aj0_1)) return false; if (!(this.bj0_1 === tmp0_other_with_cast.bj0_1)) return false; if (!(this.cj0_1 === tmp0_other_with_cast.cj0_1)) return false; if (!equals(this.dj0_1, tmp0_other_with_cast.dj0_1)) return false; if (!equals(this.ej0_1, tmp0_other_with_cast.ej0_1)) return false; if (!(this.fj0_1 === tmp0_other_with_cast.fj0_1)) return false; if (!(this.gj0_1 == tmp0_other_with_cast.gj0_1)) return false; return true; }; function Companion_128() { this.lkk_1 = 1; this.mkk_1 = 2; this.nkk_1 = 3; this.okk_1 = 4; this.pkk_1 = 44044; } var Companion_instance_129; function Companion_getInstance_131() { return Companion_instance_129; } function StatementContextActivityJoin(scajFromStatementIdHi, scajFromStatementIdLo, scajToHash, scajContextType, scajToActivityUid, scajToActivityId, scajEtag) { scajFromStatementIdHi = scajFromStatementIdHi === VOID ? new Long(0, 0) : scajFromStatementIdHi; scajFromStatementIdLo = scajFromStatementIdLo === VOID ? new Long(0, 0) : scajFromStatementIdLo; scajToHash = scajToHash === VOID ? new Long(0, 0) : scajToHash; scajContextType = scajContextType === VOID ? 0 : scajContextType; scajToActivityUid = scajToActivityUid === VOID ? new Long(0, 0) : scajToActivityUid; scajToActivityId = scajToActivityId === VOID ? null : scajToActivityId; scajEtag = scajEtag === VOID ? new Long(1, 0) : scajEtag; this.vj0_1 = scajFromStatementIdHi; this.wj0_1 = scajFromStatementIdLo; this.xj0_1 = scajToHash; this.yj0_1 = scajContextType; this.zj0_1 = scajToActivityUid; this.aj1_1 = scajToActivityId; this.bj1_1 = scajEtag; } protoOf(StatementContextActivityJoin).toString = function () { return 'StatementContextActivityJoin(scajFromStatementIdHi=' + this.vj0_1.toString() + ', scajFromStatementIdLo=' + this.wj0_1.toString() + ', scajToHash=' + this.xj0_1.toString() + ', scajContextType=' + this.yj0_1 + ', scajToActivityUid=' + this.zj0_1.toString() + ', scajToActivityId=' + this.aj1_1 + ', scajEtag=' + this.bj1_1.toString() + ')'; }; protoOf(StatementContextActivityJoin).hashCode = function () { var result = this.vj0_1.hashCode(); result = imul(result, 31) + this.wj0_1.hashCode() | 0; result = imul(result, 31) + this.xj0_1.hashCode() | 0; result = imul(result, 31) + this.yj0_1 | 0; result = imul(result, 31) + this.zj0_1.hashCode() | 0; result = imul(result, 31) + (this.aj1_1 == null ? 0 : getStringHashCode(this.aj1_1)) | 0; result = imul(result, 31) + this.bj1_1.hashCode() | 0; return result; }; protoOf(StatementContextActivityJoin).equals = function (other) { if (this === other) return true; if (!(other instanceof StatementContextActivityJoin)) return false; var tmp0_other_with_cast = other instanceof StatementContextActivityJoin ? other : THROW_CCE(); if (!this.vj0_1.equals(tmp0_other_with_cast.vj0_1)) return false; if (!this.wj0_1.equals(tmp0_other_with_cast.wj0_1)) return false; if (!this.xj0_1.equals(tmp0_other_with_cast.xj0_1)) return false; if (!(this.yj0_1 === tmp0_other_with_cast.yj0_1)) return false; if (!this.zj0_1.equals(tmp0_other_with_cast.zj0_1)) return false; if (!(this.aj1_1 == tmp0_other_with_cast.aj1_1)) return false; if (!this.bj1_1.equals(tmp0_other_with_cast.bj1_1)) return false; return true; }; function Companion_129() { this.qkk_1 = 60; this.rkk_1 = 0; this.skk_1 = 2; this.tkk_1 = 1; this.ukk_1 = 100; this.vkk_1 = 101; this.wkk_1 = 102; this.xkk_1 = 103; } var Companion_instance_130; function Companion_getInstance_132() { return Companion_instance_130; } function $serializer_123() { $serializer_instance_123 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.StatementEntity', this, 36); tmp0_serialDesc.d4g('statementIdHi', true); tmp0_serialDesc.d4g('statementIdLo', true); tmp0_serialDesc.d4g('statementActorPersonUid', true); tmp0_serialDesc.d4g('statementVerbUid', true); tmp0_serialDesc.d4g('statementObjectType', true); tmp0_serialDesc.d4g('statementObjectUid1', true); tmp0_serialDesc.d4g('statementObjectUid2', true); tmp0_serialDesc.d4g('statementActorUid', true); tmp0_serialDesc.d4g('authorityActorUid', true); tmp0_serialDesc.d4g('teamUid', true); tmp0_serialDesc.d4g('resultCompletion', true); tmp0_serialDesc.d4g('resultSuccess', true); tmp0_serialDesc.d4g('resultScoreScaled', true); tmp0_serialDesc.d4g('resultScoreRaw', true); tmp0_serialDesc.d4g('resultScoreMin', true); tmp0_serialDesc.d4g('resultScoreMax', true); tmp0_serialDesc.d4g('resultDuration', true); tmp0_serialDesc.d4g('resultResponse', true); tmp0_serialDesc.d4g('timestamp', true); tmp0_serialDesc.d4g('stored', true); tmp0_serialDesc.d4g('contextRegistrationHi', true); tmp0_serialDesc.d4g('contextRegistrationLo', true); tmp0_serialDesc.d4g('contextRegistrationHash', true); tmp0_serialDesc.d4g('contextPlatform', true); tmp0_serialDesc.d4g('contextStatementRefIdHi', true); tmp0_serialDesc.d4g('contextStatementRefIdLo', true); tmp0_serialDesc.d4g('contextInstructorActorUid', true); tmp0_serialDesc.d4g('statementLct', true); tmp0_serialDesc.d4g('extensionProgress', true); tmp0_serialDesc.d4g('completionOrProgress', true); tmp0_serialDesc.d4g('statementContentEntryUid', true); tmp0_serialDesc.d4g('statementLearnerGroupUid', true); tmp0_serialDesc.d4g('statementClazzUid', true); tmp0_serialDesc.d4g('statementCbUid', true); tmp0_serialDesc.d4g('statementDoorNode', true); tmp0_serialDesc.d4g('isSubStatement', true); this.ykk_1 = tmp0_serialDesc; } protoOf($serializer_123).a45 = function () { return this.ykk_1; }; protoOf($serializer_123).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(BooleanSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), get_nullable(LongSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(IntSerializer_getInstance()), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_123).c45 = function (decoder) { var tmp0_desc = this.ykk_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_bitMask1 = 0; var tmp5_local0 = new Long(0, 0); var tmp6_local1 = new Long(0, 0); var tmp7_local2 = new Long(0, 0); var tmp8_local3 = new Long(0, 0); var tmp9_local4 = 0; var tmp10_local5 = new Long(0, 0); var tmp11_local6 = new Long(0, 0); var tmp12_local7 = new Long(0, 0); var tmp13_local8 = new Long(0, 0); var tmp14_local9 = new Long(0, 0); var tmp15_local10 = null; var tmp16_local11 = null; var tmp17_local12 = null; var tmp18_local13 = null; var tmp19_local14 = null; var tmp20_local15 = null; var tmp21_local16 = null; var tmp22_local17 = null; var tmp23_local18 = new Long(0, 0); var tmp24_local19 = new Long(0, 0); var tmp25_local20 = new Long(0, 0); var tmp26_local21 = new Long(0, 0); var tmp27_local22 = new Long(0, 0); var tmp28_local23 = null; var tmp29_local24 = new Long(0, 0); var tmp30_local25 = new Long(0, 0); var tmp31_local26 = new Long(0, 0); var tmp32_local27 = new Long(0, 0); var tmp33_local28 = null; var tmp34_local29 = false; var tmp35_local30 = new Long(0, 0); var tmp36_local31 = new Long(0, 0); var tmp37_local32 = new Long(0, 0); var tmp38_local33 = new Long(0, 0); var tmp39_local34 = new Long(0, 0); var tmp40_local35 = false; var tmp41_input = decoder.s48(tmp0_desc); if (tmp41_input.h49()) { tmp5_local0 = tmp41_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp6_local1 = tmp41_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp7_local2 = tmp41_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp8_local3 = tmp41_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp9_local4 = tmp41_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp10_local5 = tmp41_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp11_local6 = tmp41_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp12_local7 = tmp41_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp13_local8 = tmp41_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp14_local9 = tmp41_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp15_local10 = tmp41_input.g49(tmp0_desc, 10, BooleanSerializer_getInstance(), tmp15_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp16_local11 = tmp41_input.g49(tmp0_desc, 11, BooleanSerializer_getInstance(), tmp16_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp17_local12 = tmp41_input.g49(tmp0_desc, 12, FloatSerializer_getInstance(), tmp17_local12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp18_local13 = tmp41_input.g49(tmp0_desc, 13, FloatSerializer_getInstance(), tmp18_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp19_local14 = tmp41_input.g49(tmp0_desc, 14, FloatSerializer_getInstance(), tmp19_local14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp20_local15 = tmp41_input.g49(tmp0_desc, 15, FloatSerializer_getInstance(), tmp20_local15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp21_local16 = tmp41_input.g49(tmp0_desc, 16, LongSerializer_getInstance(), tmp21_local16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp22_local17 = tmp41_input.g49(tmp0_desc, 17, StringSerializer_getInstance(), tmp22_local17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp23_local18 = tmp41_input.y48(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp24_local19 = tmp41_input.y48(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; tmp25_local20 = tmp41_input.y48(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; tmp26_local21 = tmp41_input.y48(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; tmp27_local22 = tmp41_input.y48(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; tmp28_local23 = tmp41_input.g49(tmp0_desc, 23, StringSerializer_getInstance(), tmp28_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; tmp29_local24 = tmp41_input.y48(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; tmp30_local25 = tmp41_input.y48(tmp0_desc, 25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; tmp31_local26 = tmp41_input.y48(tmp0_desc, 26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; tmp32_local27 = tmp41_input.y48(tmp0_desc, 27); tmp3_bitMask0 = tmp3_bitMask0 | 134217728; tmp33_local28 = tmp41_input.g49(tmp0_desc, 28, IntSerializer_getInstance(), tmp33_local28); tmp3_bitMask0 = tmp3_bitMask0 | 268435456; tmp34_local29 = tmp41_input.u48(tmp0_desc, 29); tmp3_bitMask0 = tmp3_bitMask0 | 536870912; tmp35_local30 = tmp41_input.y48(tmp0_desc, 30); tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; tmp36_local31 = tmp41_input.y48(tmp0_desc, 31); tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; tmp37_local32 = tmp41_input.y48(tmp0_desc, 32); tmp4_bitMask1 = tmp4_bitMask1 | 1; tmp38_local33 = tmp41_input.y48(tmp0_desc, 33); tmp4_bitMask1 = tmp4_bitMask1 | 2; tmp39_local34 = tmp41_input.y48(tmp0_desc, 34); tmp4_bitMask1 = tmp4_bitMask1 | 4; tmp40_local35 = tmp41_input.u48(tmp0_desc, 35); tmp4_bitMask1 = tmp4_bitMask1 | 8; } else while (tmp1_flag) { tmp2_index = tmp41_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp5_local0 = tmp41_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp6_local1 = tmp41_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp7_local2 = tmp41_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp8_local3 = tmp41_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp9_local4 = tmp41_input.x48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp10_local5 = tmp41_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp11_local6 = tmp41_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp12_local7 = tmp41_input.y48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp13_local8 = tmp41_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp14_local9 = tmp41_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp15_local10 = tmp41_input.g49(tmp0_desc, 10, BooleanSerializer_getInstance(), tmp15_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp16_local11 = tmp41_input.g49(tmp0_desc, 11, BooleanSerializer_getInstance(), tmp16_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp17_local12 = tmp41_input.g49(tmp0_desc, 12, FloatSerializer_getInstance(), tmp17_local12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp18_local13 = tmp41_input.g49(tmp0_desc, 13, FloatSerializer_getInstance(), tmp18_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp19_local14 = tmp41_input.g49(tmp0_desc, 14, FloatSerializer_getInstance(), tmp19_local14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp20_local15 = tmp41_input.g49(tmp0_desc, 15, FloatSerializer_getInstance(), tmp20_local15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp21_local16 = tmp41_input.g49(tmp0_desc, 16, LongSerializer_getInstance(), tmp21_local16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp22_local17 = tmp41_input.g49(tmp0_desc, 17, StringSerializer_getInstance(), tmp22_local17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp23_local18 = tmp41_input.y48(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp24_local19 = tmp41_input.y48(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; case 20: tmp25_local20 = tmp41_input.y48(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; break; case 21: tmp26_local21 = tmp41_input.y48(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; break; case 22: tmp27_local22 = tmp41_input.y48(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; break; case 23: tmp28_local23 = tmp41_input.g49(tmp0_desc, 23, StringSerializer_getInstance(), tmp28_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; break; case 24: tmp29_local24 = tmp41_input.y48(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; break; case 25: tmp30_local25 = tmp41_input.y48(tmp0_desc, 25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; break; case 26: tmp31_local26 = tmp41_input.y48(tmp0_desc, 26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; break; case 27: tmp32_local27 = tmp41_input.y48(tmp0_desc, 27); tmp3_bitMask0 = tmp3_bitMask0 | 134217728; break; case 28: tmp33_local28 = tmp41_input.g49(tmp0_desc, 28, IntSerializer_getInstance(), tmp33_local28); tmp3_bitMask0 = tmp3_bitMask0 | 268435456; break; case 29: tmp34_local29 = tmp41_input.u48(tmp0_desc, 29); tmp3_bitMask0 = tmp3_bitMask0 | 536870912; break; case 30: tmp35_local30 = tmp41_input.y48(tmp0_desc, 30); tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; break; case 31: tmp36_local31 = tmp41_input.y48(tmp0_desc, 31); tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; break; case 32: tmp37_local32 = tmp41_input.y48(tmp0_desc, 32); tmp4_bitMask1 = tmp4_bitMask1 | 1; break; case 33: tmp38_local33 = tmp41_input.y48(tmp0_desc, 33); tmp4_bitMask1 = tmp4_bitMask1 | 2; break; case 34: tmp39_local34 = tmp41_input.y48(tmp0_desc, 34); tmp4_bitMask1 = tmp4_bitMask1 | 4; break; case 35: tmp40_local35 = tmp41_input.u48(tmp0_desc, 35); tmp4_bitMask1 = tmp4_bitMask1 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp41_input.t48(tmp0_desc); return StatementEntity_init_$Create$(tmp3_bitMask0, tmp4_bitMask1, tmp5_local0, tmp6_local1, tmp7_local2, tmp8_local3, tmp9_local4, tmp10_local5, tmp11_local6, tmp12_local7, tmp13_local8, tmp14_local9, tmp15_local10, tmp16_local11, tmp17_local12, tmp18_local13, tmp19_local14, tmp20_local15, tmp21_local16, tmp22_local17, tmp23_local18, tmp24_local19, tmp25_local20, tmp26_local21, tmp27_local22, tmp28_local23, tmp29_local24, tmp30_local25, tmp31_local26, tmp32_local27, tmp33_local28, tmp34_local29, tmp35_local30, tmp36_local31, tmp37_local32, tmp38_local33, tmp39_local34, tmp40_local35, null); }; protoOf($serializer_123).zkk = function (encoder, value) { var tmp0_desc = this.ykk_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.cj2_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.cj2_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.dj2_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.dj2_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.ej2_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.ej2_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.fj2_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.fj2_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !(value.gj2_1 === 0)) { tmp1_output.b4a(tmp0_desc, 4, value.gj2_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.hj2_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.hj2_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.ij2_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.ij2_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !value.jj2_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 7, value.jj2_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !value.kj2_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 8, value.kj2_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !value.lj2_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 9, value.lj2_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !(value.mj2_1 == null)) { tmp1_output.k4a(tmp0_desc, 10, BooleanSerializer_getInstance(), value.mj2_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !(value.nj2_1 == null)) { tmp1_output.k4a(tmp0_desc, 11, BooleanSerializer_getInstance(), value.nj2_1); } if (tmp1_output.o4a(tmp0_desc, 12) ? true : !(value.oj2_1 == null)) { tmp1_output.k4a(tmp0_desc, 12, FloatSerializer_getInstance(), value.oj2_1); } if (tmp1_output.o4a(tmp0_desc, 13) ? true : !(value.pj2_1 == null)) { tmp1_output.k4a(tmp0_desc, 13, FloatSerializer_getInstance(), value.pj2_1); } if (tmp1_output.o4a(tmp0_desc, 14) ? true : !(value.qj2_1 == null)) { tmp1_output.k4a(tmp0_desc, 14, FloatSerializer_getInstance(), value.qj2_1); } if (tmp1_output.o4a(tmp0_desc, 15) ? true : !(value.rj2_1 == null)) { tmp1_output.k4a(tmp0_desc, 15, FloatSerializer_getInstance(), value.rj2_1); } if (tmp1_output.o4a(tmp0_desc, 16) ? true : !(value.sj2_1 == null)) { tmp1_output.k4a(tmp0_desc, 16, LongSerializer_getInstance(), value.sj2_1); } if (tmp1_output.o4a(tmp0_desc, 17) ? true : !(value.tj2_1 == null)) { tmp1_output.k4a(tmp0_desc, 17, StringSerializer_getInstance(), value.tj2_1); } if (tmp1_output.o4a(tmp0_desc, 18) ? true : !value.uj2_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 18, value.uj2_1); } if (tmp1_output.o4a(tmp0_desc, 19) ? true : !value.vj2_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 19, value.vj2_1); } if (tmp1_output.o4a(tmp0_desc, 20) ? true : !value.wj2_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 20, value.wj2_1); } if (tmp1_output.o4a(tmp0_desc, 21) ? true : !value.xj2_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 21, value.xj2_1); } if (tmp1_output.o4a(tmp0_desc, 22) ? true : !value.yj2_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 22, value.yj2_1); } if (tmp1_output.o4a(tmp0_desc, 23) ? true : !(value.zj2_1 == null)) { tmp1_output.k4a(tmp0_desc, 23, StringSerializer_getInstance(), value.zj2_1); } if (tmp1_output.o4a(tmp0_desc, 24) ? true : !value.aj3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 24, value.aj3_1); } if (tmp1_output.o4a(tmp0_desc, 25) ? true : !value.bj3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 25, value.bj3_1); } if (tmp1_output.o4a(tmp0_desc, 26) ? true : !value.cj3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 26, value.cj3_1); } if (tmp1_output.o4a(tmp0_desc, 27) ? true : !value.dj3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 27, value.dj3_1); } if (tmp1_output.o4a(tmp0_desc, 28) ? true : !(value.ej3_1 == null)) { tmp1_output.k4a(tmp0_desc, 28, IntSerializer_getInstance(), value.ej3_1); } if (tmp1_output.o4a(tmp0_desc, 29) ? true : !(value.fj3_1 === false)) { tmp1_output.y49(tmp0_desc, 29, value.fj3_1); } if (tmp1_output.o4a(tmp0_desc, 30) ? true : !value.gj3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 30, value.gj3_1); } if (tmp1_output.o4a(tmp0_desc, 31) ? true : !value.hj3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 31, value.hj3_1); } if (tmp1_output.o4a(tmp0_desc, 32) ? true : !value.ij3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 32, value.ij3_1); } if (tmp1_output.o4a(tmp0_desc, 33) ? true : !value.jj3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 33, value.jj3_1); } if (tmp1_output.o4a(tmp0_desc, 34) ? true : !value.kj3_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 34, value.kj3_1); } if (tmp1_output.o4a(tmp0_desc, 35) ? true : !(value.lj3_1 === false)) { tmp1_output.y49(tmp0_desc, 35, value.lj3_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_123).b45 = function (encoder, value) { return this.zkk(encoder, value instanceof StatementEntity ? value : THROW_CCE()); }; var $serializer_instance_123; function $serializer_getInstance_123() { if ($serializer_instance_123 == null) new $serializer_123(); return $serializer_instance_123; } function StatementEntity_init_$Init$(seen1, seen2, statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextRegistrationHash, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement, serializationConstructorMarker, $this) { if (!!(!(0 === (0 & seen1)) | !(0 === (0 & seen2)))) { // Inline function 'kotlin.intArrayOf' call var tmp = new Int32Array([seen1, seen2]); // Inline function 'kotlin.intArrayOf' call var tmp$ret$1 = new Int32Array([0, 0]); throwArrayMissingFieldException(tmp, tmp$ret$1, $serializer_getInstance_123().ykk_1); } if (0 === (seen1 & 1)) $this.cj2_1 = new Long(0, 0); else $this.cj2_1 = statementIdHi; if (0 === (seen1 & 2)) $this.dj2_1 = new Long(0, 0); else $this.dj2_1 = statementIdLo; if (0 === (seen1 & 4)) $this.ej2_1 = new Long(0, 0); else $this.ej2_1 = statementActorPersonUid; if (0 === (seen1 & 8)) $this.fj2_1 = new Long(0, 0); else $this.fj2_1 = statementVerbUid; if (0 === (seen1 & 16)) $this.gj2_1 = 0; else $this.gj2_1 = statementObjectType; if (0 === (seen1 & 32)) $this.hj2_1 = new Long(0, 0); else $this.hj2_1 = statementObjectUid1; if (0 === (seen1 & 64)) $this.ij2_1 = new Long(0, 0); else $this.ij2_1 = statementObjectUid2; if (0 === (seen1 & 128)) $this.jj2_1 = new Long(0, 0); else $this.jj2_1 = statementActorUid; if (0 === (seen1 & 256)) $this.kj2_1 = new Long(0, 0); else $this.kj2_1 = authorityActorUid; if (0 === (seen1 & 512)) $this.lj2_1 = new Long(0, 0); else $this.lj2_1 = teamUid; if (0 === (seen1 & 1024)) $this.mj2_1 = null; else $this.mj2_1 = resultCompletion; if (0 === (seen1 & 2048)) $this.nj2_1 = null; else $this.nj2_1 = resultSuccess; if (0 === (seen1 & 4096)) $this.oj2_1 = null; else $this.oj2_1 = resultScoreScaled; if (0 === (seen1 & 8192)) $this.pj2_1 = null; else $this.pj2_1 = resultScoreRaw; if (0 === (seen1 & 16384)) $this.qj2_1 = null; else $this.qj2_1 = resultScoreMin; if (0 === (seen1 & 32768)) $this.rj2_1 = null; else $this.rj2_1 = resultScoreMax; if (0 === (seen1 & 65536)) $this.sj2_1 = null; else $this.sj2_1 = resultDuration; if (0 === (seen1 & 131072)) $this.tj2_1 = null; else $this.tj2_1 = resultResponse; if (0 === (seen1 & 262144)) $this.uj2_1 = new Long(0, 0); else $this.uj2_1 = timestamp; if (0 === (seen1 & 524288)) $this.vj2_1 = new Long(0, 0); else $this.vj2_1 = stored; if (0 === (seen1 & 1048576)) $this.wj2_1 = new Long(0, 0); else $this.wj2_1 = contextRegistrationHi; if (0 === (seen1 & 2097152)) $this.xj2_1 = new Long(0, 0); else $this.xj2_1 = contextRegistrationLo; if (0 === (seen1 & 4194304)) $this.yj2_1 = new Long(0, 0); else $this.yj2_1 = contextRegistrationHash; if (0 === (seen1 & 8388608)) $this.zj2_1 = null; else $this.zj2_1 = contextPlatform; if (0 === (seen1 & 16777216)) $this.aj3_1 = new Long(0, 0); else $this.aj3_1 = contextStatementRefIdHi; if (0 === (seen1 & 33554432)) $this.bj3_1 = new Long(0, 0); else $this.bj3_1 = contextStatementRefIdLo; if (0 === (seen1 & 67108864)) $this.cj3_1 = new Long(0, 0); else $this.cj3_1 = contextInstructorActorUid; if (0 === (seen1 & 134217728)) $this.dj3_1 = new Long(0, 0); else $this.dj3_1 = statementLct; if (0 === (seen1 & 268435456)) $this.ej3_1 = null; else $this.ej3_1 = extensionProgress; if (0 === (seen1 & 536870912)) $this.fj3_1 = false; else $this.fj3_1 = completionOrProgress; if (0 === (seen1 & 1073741824)) $this.gj3_1 = new Long(0, 0); else $this.gj3_1 = statementContentEntryUid; if (0 === (seen1 & -2147483648)) $this.hj3_1 = new Long(0, 0); else $this.hj3_1 = statementLearnerGroupUid; if (0 === (seen2 & 1)) $this.ij3_1 = new Long(0, 0); else $this.ij3_1 = statementClazzUid; if (0 === (seen2 & 2)) $this.jj3_1 = new Long(0, 0); else $this.jj3_1 = statementCbUid; if (0 === (seen2 & 4)) $this.kj3_1 = new Long(0, 0); else $this.kj3_1 = statementDoorNode; if (0 === (seen2 & 8)) $this.lj3_1 = false; else $this.lj3_1 = isSubStatement; return $this; } function StatementEntity_init_$Create$(seen1, seen2, statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextRegistrationHash, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement, serializationConstructorMarker) { return StatementEntity_init_$Init$(seen1, seen2, statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextRegistrationHash, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement, serializationConstructorMarker, objectCreate(protoOf(StatementEntity))); } function StatementEntity(statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextRegistrationHash, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement) { statementIdHi = statementIdHi === VOID ? new Long(0, 0) : statementIdHi; statementIdLo = statementIdLo === VOID ? new Long(0, 0) : statementIdLo; statementActorPersonUid = statementActorPersonUid === VOID ? new Long(0, 0) : statementActorPersonUid; statementVerbUid = statementVerbUid === VOID ? new Long(0, 0) : statementVerbUid; statementObjectType = statementObjectType === VOID ? 0 : statementObjectType; statementObjectUid1 = statementObjectUid1 === VOID ? new Long(0, 0) : statementObjectUid1; statementObjectUid2 = statementObjectUid2 === VOID ? new Long(0, 0) : statementObjectUid2; statementActorUid = statementActorUid === VOID ? new Long(0, 0) : statementActorUid; authorityActorUid = authorityActorUid === VOID ? new Long(0, 0) : authorityActorUid; teamUid = teamUid === VOID ? new Long(0, 0) : teamUid; resultCompletion = resultCompletion === VOID ? null : resultCompletion; resultSuccess = resultSuccess === VOID ? null : resultSuccess; resultScoreScaled = resultScoreScaled === VOID ? null : resultScoreScaled; resultScoreRaw = resultScoreRaw === VOID ? null : resultScoreRaw; resultScoreMin = resultScoreMin === VOID ? null : resultScoreMin; resultScoreMax = resultScoreMax === VOID ? null : resultScoreMax; resultDuration = resultDuration === VOID ? null : resultDuration; resultResponse = resultResponse === VOID ? null : resultResponse; timestamp = timestamp === VOID ? new Long(0, 0) : timestamp; stored = stored === VOID ? new Long(0, 0) : stored; contextRegistrationHi = contextRegistrationHi === VOID ? new Long(0, 0) : contextRegistrationHi; contextRegistrationLo = contextRegistrationLo === VOID ? new Long(0, 0) : contextRegistrationLo; contextRegistrationHash = contextRegistrationHash === VOID ? new Long(0, 0) : contextRegistrationHash; contextPlatform = contextPlatform === VOID ? null : contextPlatform; contextStatementRefIdHi = contextStatementRefIdHi === VOID ? new Long(0, 0) : contextStatementRefIdHi; contextStatementRefIdLo = contextStatementRefIdLo === VOID ? new Long(0, 0) : contextStatementRefIdLo; contextInstructorActorUid = contextInstructorActorUid === VOID ? new Long(0, 0) : contextInstructorActorUid; statementLct = statementLct === VOID ? new Long(0, 0) : statementLct; extensionProgress = extensionProgress === VOID ? null : extensionProgress; completionOrProgress = completionOrProgress === VOID ? false : completionOrProgress; statementContentEntryUid = statementContentEntryUid === VOID ? new Long(0, 0) : statementContentEntryUid; statementLearnerGroupUid = statementLearnerGroupUid === VOID ? new Long(0, 0) : statementLearnerGroupUid; statementClazzUid = statementClazzUid === VOID ? new Long(0, 0) : statementClazzUid; statementCbUid = statementCbUid === VOID ? new Long(0, 0) : statementCbUid; statementDoorNode = statementDoorNode === VOID ? new Long(0, 0) : statementDoorNode; isSubStatement = isSubStatement === VOID ? false : isSubStatement; this.cj2_1 = statementIdHi; this.dj2_1 = statementIdLo; this.ej2_1 = statementActorPersonUid; this.fj2_1 = statementVerbUid; this.gj2_1 = statementObjectType; this.hj2_1 = statementObjectUid1; this.ij2_1 = statementObjectUid2; this.jj2_1 = statementActorUid; this.kj2_1 = authorityActorUid; this.lj2_1 = teamUid; this.mj2_1 = resultCompletion; this.nj2_1 = resultSuccess; this.oj2_1 = resultScoreScaled; this.pj2_1 = resultScoreRaw; this.qj2_1 = resultScoreMin; this.rj2_1 = resultScoreMax; this.sj2_1 = resultDuration; this.tj2_1 = resultResponse; this.uj2_1 = timestamp; this.vj2_1 = stored; this.wj2_1 = contextRegistrationHi; this.xj2_1 = contextRegistrationLo; this.yj2_1 = contextRegistrationHash; this.zj2_1 = contextPlatform; this.aj3_1 = contextStatementRefIdHi; this.bj3_1 = contextStatementRefIdLo; this.cj3_1 = contextInstructorActorUid; this.dj3_1 = statementLct; this.ej3_1 = extensionProgress; this.fj3_1 = completionOrProgress; this.gj3_1 = statementContentEntryUid; this.hj3_1 = statementLearnerGroupUid; this.ij3_1 = statementClazzUid; this.jj3_1 = statementCbUid; this.kj3_1 = statementDoorNode; this.lj3_1 = isSubStatement; } protoOf(StatementEntity).toString = function () { return 'StatementEntity(statementIdHi=' + this.cj2_1.toString() + ', statementIdLo=' + this.dj2_1.toString() + ', statementActorPersonUid=' + this.ej2_1.toString() + ', statementVerbUid=' + this.fj2_1.toString() + ', statementObjectType=' + this.gj2_1 + ', statementObjectUid1=' + this.hj2_1.toString() + ', statementObjectUid2=' + this.ij2_1.toString() + ', statementActorUid=' + this.jj2_1.toString() + ', authorityActorUid=' + this.kj2_1.toString() + ', teamUid=' + this.lj2_1.toString() + ', resultCompletion=' + this.mj2_1 + ', resultSuccess=' + this.nj2_1 + ', resultScoreScaled=' + this.oj2_1 + ', resultScoreRaw=' + this.pj2_1 + ', resultScoreMin=' + this.qj2_1 + ', resultScoreMax=' + this.rj2_1 + ', resultDuration=' + toString(this.sj2_1) + ', resultResponse=' + this.tj2_1 + ', timestamp=' + this.uj2_1.toString() + ', stored=' + this.vj2_1.toString() + ', contextRegistrationHi=' + this.wj2_1.toString() + ', contextRegistrationLo=' + this.xj2_1.toString() + ', contextRegistrationHash=' + this.yj2_1.toString() + ', contextPlatform=' + this.zj2_1 + ', contextStatementRefIdHi=' + this.aj3_1.toString() + ', contextStatementRefIdLo=' + this.bj3_1.toString() + ', contextInstructorActorUid=' + this.cj3_1.toString() + ', statementLct=' + this.dj3_1.toString() + ', extensionProgress=' + this.ej3_1 + ', completionOrProgress=' + this.fj3_1 + ', statementContentEntryUid=' + this.gj3_1.toString() + ', statementLearnerGroupUid=' + this.hj3_1.toString() + ', statementClazzUid=' + this.ij3_1.toString() + ', statementCbUid=' + this.jj3_1.toString() + ', statementDoorNode=' + this.kj3_1.toString() + ', isSubStatement=' + this.lj3_1 + ')'; }; protoOf(StatementEntity).hashCode = function () { var result = this.cj2_1.hashCode(); result = imul(result, 31) + this.dj2_1.hashCode() | 0; result = imul(result, 31) + this.ej2_1.hashCode() | 0; result = imul(result, 31) + this.fj2_1.hashCode() | 0; result = imul(result, 31) + this.gj2_1 | 0; result = imul(result, 31) + this.hj2_1.hashCode() | 0; result = imul(result, 31) + this.ij2_1.hashCode() | 0; result = imul(result, 31) + this.jj2_1.hashCode() | 0; result = imul(result, 31) + this.kj2_1.hashCode() | 0; result = imul(result, 31) + this.lj2_1.hashCode() | 0; result = imul(result, 31) + (this.mj2_1 == null ? 0 : getBooleanHashCode(this.mj2_1)) | 0; result = imul(result, 31) + (this.nj2_1 == null ? 0 : getBooleanHashCode(this.nj2_1)) | 0; result = imul(result, 31) + (this.oj2_1 == null ? 0 : getNumberHashCode(this.oj2_1)) | 0; result = imul(result, 31) + (this.pj2_1 == null ? 0 : getNumberHashCode(this.pj2_1)) | 0; result = imul(result, 31) + (this.qj2_1 == null ? 0 : getNumberHashCode(this.qj2_1)) | 0; result = imul(result, 31) + (this.rj2_1 == null ? 0 : getNumberHashCode(this.rj2_1)) | 0; result = imul(result, 31) + (this.sj2_1 == null ? 0 : this.sj2_1.hashCode()) | 0; result = imul(result, 31) + (this.tj2_1 == null ? 0 : getStringHashCode(this.tj2_1)) | 0; result = imul(result, 31) + this.uj2_1.hashCode() | 0; result = imul(result, 31) + this.vj2_1.hashCode() | 0; result = imul(result, 31) + this.wj2_1.hashCode() | 0; result = imul(result, 31) + this.xj2_1.hashCode() | 0; result = imul(result, 31) + this.yj2_1.hashCode() | 0; result = imul(result, 31) + (this.zj2_1 == null ? 0 : getStringHashCode(this.zj2_1)) | 0; result = imul(result, 31) + this.aj3_1.hashCode() | 0; result = imul(result, 31) + this.bj3_1.hashCode() | 0; result = imul(result, 31) + this.cj3_1.hashCode() | 0; result = imul(result, 31) + this.dj3_1.hashCode() | 0; result = imul(result, 31) + (this.ej3_1 == null ? 0 : this.ej3_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.fj3_1) | 0; result = imul(result, 31) + this.gj3_1.hashCode() | 0; result = imul(result, 31) + this.hj3_1.hashCode() | 0; result = imul(result, 31) + this.ij3_1.hashCode() | 0; result = imul(result, 31) + this.jj3_1.hashCode() | 0; result = imul(result, 31) + this.kj3_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.lj3_1) | 0; return result; }; protoOf(StatementEntity).equals = function (other) { if (this === other) return true; if (!(other instanceof StatementEntity)) return false; var tmp0_other_with_cast = other instanceof StatementEntity ? other : THROW_CCE(); if (!this.cj2_1.equals(tmp0_other_with_cast.cj2_1)) return false; if (!this.dj2_1.equals(tmp0_other_with_cast.dj2_1)) return false; if (!this.ej2_1.equals(tmp0_other_with_cast.ej2_1)) return false; if (!this.fj2_1.equals(tmp0_other_with_cast.fj2_1)) return false; if (!(this.gj2_1 === tmp0_other_with_cast.gj2_1)) return false; if (!this.hj2_1.equals(tmp0_other_with_cast.hj2_1)) return false; if (!this.ij2_1.equals(tmp0_other_with_cast.ij2_1)) return false; if (!this.jj2_1.equals(tmp0_other_with_cast.jj2_1)) return false; if (!this.kj2_1.equals(tmp0_other_with_cast.kj2_1)) return false; if (!this.lj2_1.equals(tmp0_other_with_cast.lj2_1)) return false; if (!(this.mj2_1 == tmp0_other_with_cast.mj2_1)) return false; if (!(this.nj2_1 == tmp0_other_with_cast.nj2_1)) return false; if (!equals(this.oj2_1, tmp0_other_with_cast.oj2_1)) return false; if (!equals(this.pj2_1, tmp0_other_with_cast.pj2_1)) return false; if (!equals(this.qj2_1, tmp0_other_with_cast.qj2_1)) return false; if (!equals(this.rj2_1, tmp0_other_with_cast.rj2_1)) return false; if (!equals(this.sj2_1, tmp0_other_with_cast.sj2_1)) return false; if (!(this.tj2_1 == tmp0_other_with_cast.tj2_1)) return false; if (!this.uj2_1.equals(tmp0_other_with_cast.uj2_1)) return false; if (!this.vj2_1.equals(tmp0_other_with_cast.vj2_1)) return false; if (!this.wj2_1.equals(tmp0_other_with_cast.wj2_1)) return false; if (!this.xj2_1.equals(tmp0_other_with_cast.xj2_1)) return false; if (!this.yj2_1.equals(tmp0_other_with_cast.yj2_1)) return false; if (!(this.zj2_1 == tmp0_other_with_cast.zj2_1)) return false; if (!this.aj3_1.equals(tmp0_other_with_cast.aj3_1)) return false; if (!this.bj3_1.equals(tmp0_other_with_cast.bj3_1)) return false; if (!this.cj3_1.equals(tmp0_other_with_cast.cj3_1)) return false; if (!this.dj3_1.equals(tmp0_other_with_cast.dj3_1)) return false; if (!(this.ej3_1 == tmp0_other_with_cast.ej3_1)) return false; if (!(this.fj3_1 === tmp0_other_with_cast.fj3_1)) return false; if (!this.gj3_1.equals(tmp0_other_with_cast.gj3_1)) return false; if (!this.hj3_1.equals(tmp0_other_with_cast.hj3_1)) return false; if (!this.ij3_1.equals(tmp0_other_with_cast.ij3_1)) return false; if (!this.jj3_1.equals(tmp0_other_with_cast.jj3_1)) return false; if (!this.kj3_1.equals(tmp0_other_with_cast.kj3_1)) return false; if (!(this.lj3_1 === tmp0_other_with_cast.lj3_1)) return false; return true; }; function Companion_130() { this.akl_1 = 602; } var Companion_instance_131; function Companion_getInstance_133() { return Companion_instance_131; } function $serializer_124() { $serializer_instance_124 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.StatementEntityJson', this, 4); tmp0_serialDesc.d4g('stmtJsonIdHi', true); tmp0_serialDesc.d4g('stmtJsonIdLo', true); tmp0_serialDesc.d4g('stmtEtag', true); tmp0_serialDesc.d4g('fullStatement', true); this.bkl_1 = tmp0_serialDesc; } protoOf($serializer_124).a45 = function () { return this.bkl_1; }; protoOf($serializer_124).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_124).c45 = function (decoder) { var tmp0_desc = this.bkl_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = null; var tmp8_input = decoder.s48(tmp0_desc); if (tmp8_input.h49()) { tmp4_local0 = tmp8_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.t48(tmp0_desc); return StatementEntityJson_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_124).ckl = function (encoder, value) { var tmp0_desc = this.bkl_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.rjj_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.rjj_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.sjj_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.sjj_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.tjj_1.equals(new Long(1, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.tjj_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.ujj_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.ujj_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_124).b45 = function (encoder, value) { return this.ckl(encoder, value instanceof StatementEntityJson ? value : THROW_CCE()); }; var $serializer_instance_124; function $serializer_getInstance_124() { if ($serializer_instance_124 == null) new $serializer_124(); return $serializer_instance_124; } function StatementEntityJson_init_$Init$(seen1, stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_124().bkl_1); } if (0 === (seen1 & 1)) $this.rjj_1 = new Long(0, 0); else $this.rjj_1 = stmtJsonIdHi; if (0 === (seen1 & 2)) $this.sjj_1 = new Long(0, 0); else $this.sjj_1 = stmtJsonIdLo; if (0 === (seen1 & 4)) $this.tjj_1 = new Long(1, 0); else $this.tjj_1 = stmtEtag; if (0 === (seen1 & 8)) $this.ujj_1 = null; else $this.ujj_1 = fullStatement; return $this; } function StatementEntityJson_init_$Create$(seen1, stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement, serializationConstructorMarker) { return StatementEntityJson_init_$Init$(seen1, stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement, serializationConstructorMarker, objectCreate(protoOf(StatementEntityJson))); } function StatementEntityJson(stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement) { stmtJsonIdHi = stmtJsonIdHi === VOID ? new Long(0, 0) : stmtJsonIdHi; stmtJsonIdLo = stmtJsonIdLo === VOID ? new Long(0, 0) : stmtJsonIdLo; stmtEtag = stmtEtag === VOID ? new Long(1, 0) : stmtEtag; fullStatement = fullStatement === VOID ? null : fullStatement; this.rjj_1 = stmtJsonIdHi; this.sjj_1 = stmtJsonIdLo; this.tjj_1 = stmtEtag; this.ujj_1 = fullStatement; } protoOf(StatementEntityJson).toString = function () { return 'StatementEntityJson(stmtJsonIdHi=' + this.rjj_1.toString() + ', stmtJsonIdLo=' + this.sjj_1.toString() + ', stmtEtag=' + this.tjj_1.toString() + ', fullStatement=' + this.ujj_1 + ')'; }; protoOf(StatementEntityJson).hashCode = function () { var result = this.rjj_1.hashCode(); result = imul(result, 31) + this.sjj_1.hashCode() | 0; result = imul(result, 31) + this.tjj_1.hashCode() | 0; result = imul(result, 31) + (this.ujj_1 == null ? 0 : getStringHashCode(this.ujj_1)) | 0; return result; }; protoOf(StatementEntityJson).equals = function (other) { if (this === other) return true; if (!(other instanceof StatementEntityJson)) return false; var tmp0_other_with_cast = other instanceof StatementEntityJson ? other : THROW_CCE(); if (!this.rjj_1.equals(tmp0_other_with_cast.rjj_1)) return false; if (!this.sjj_1.equals(tmp0_other_with_cast.sjj_1)) return false; if (!this.tjj_1.equals(tmp0_other_with_cast.tjj_1)) return false; if (!(this.ujj_1 == tmp0_other_with_cast.ujj_1)) return false; return true; }; function Companion_131() { this.dkl_1 = 62; this.ekl_1 = 'http://adlnet.gov/expapi/verbs/completed'; this.fkl_1 = 'http://adlnet.gov/expapi/verbs/passed'; this.gkl_1 = 'http://adlnet.gov/expapi/verbs/failed'; this.hkl_1 = 'http://adlnet.gov/expapi/verbs/experienced'; } var Companion_instance_132; function Companion_getInstance_134() { return Companion_instance_132; } function $serializer_125() { $serializer_instance_125 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.VerbEntity', this, 4); tmp0_serialDesc.d4g('verbUid', true); tmp0_serialDesc.d4g('verbUrlId', true); tmp0_serialDesc.d4g('verbDeleted', true); tmp0_serialDesc.d4g('verbLct', true); this.ikl_1 = tmp0_serialDesc; } protoOf($serializer_125).a45 = function () { return this.ikl_1; }; protoOf($serializer_125).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_125).c45 = function (decoder) { var tmp0_desc = this.ikl_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = false; var tmp7_local3 = new Long(0, 0); var tmp8_input = decoder.s48(tmp0_desc); if (tmp8_input.h49()) { tmp4_local0 = tmp8_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.u48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.g49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.u48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.t48(tmp0_desc); return VerbEntity_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_125).jkl = function (encoder, value) { var tmp0_desc = this.ikl_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.aj7_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.aj7_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !(value.bj7_1 == null)) { tmp1_output.k4a(tmp0_desc, 1, StringSerializer_getInstance(), value.bj7_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.cj7_1 === false)) { tmp1_output.y49(tmp0_desc, 2, value.cj7_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.dj7_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.dj7_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_125).b45 = function (encoder, value) { return this.jkl(encoder, value instanceof VerbEntity ? value : THROW_CCE()); }; var $serializer_instance_125; function $serializer_getInstance_125() { if ($serializer_instance_125 == null) new $serializer_125(); return $serializer_instance_125; } function VerbEntity_init_$Init$(seen1, verbUid, verbUrlId, verbDeleted, verbLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_125().ikl_1); } if (0 === (seen1 & 1)) $this.aj7_1 = new Long(0, 0); else $this.aj7_1 = verbUid; if (0 === (seen1 & 2)) $this.bj7_1 = null; else $this.bj7_1 = verbUrlId; if (0 === (seen1 & 4)) $this.cj7_1 = false; else $this.cj7_1 = verbDeleted; if (0 === (seen1 & 8)) $this.dj7_1 = new Long(0, 0); else $this.dj7_1 = verbLct; return $this; } function VerbEntity_init_$Create$(seen1, verbUid, verbUrlId, verbDeleted, verbLct, serializationConstructorMarker) { return VerbEntity_init_$Init$(seen1, verbUid, verbUrlId, verbDeleted, verbLct, serializationConstructorMarker, objectCreate(protoOf(VerbEntity))); } function VerbEntity(verbUid, verbUrlId, verbDeleted, verbLct) { verbUid = verbUid === VOID ? new Long(0, 0) : verbUid; verbUrlId = verbUrlId === VOID ? null : verbUrlId; verbDeleted = verbDeleted === VOID ? false : verbDeleted; verbLct = verbLct === VOID ? new Long(0, 0) : verbLct; this.aj7_1 = verbUid; this.bj7_1 = verbUrlId; this.cj7_1 = verbDeleted; this.dj7_1 = verbLct; } protoOf(VerbEntity).toString = function () { return 'VerbEntity(verbUid=' + this.aj7_1.toString() + ', verbUrlId=' + this.bj7_1 + ', verbDeleted=' + this.cj7_1 + ', verbLct=' + this.dj7_1.toString() + ')'; }; protoOf(VerbEntity).hashCode = function () { var result = this.aj7_1.hashCode(); result = imul(result, 31) + (this.bj7_1 == null ? 0 : getStringHashCode(this.bj7_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.cj7_1) | 0; result = imul(result, 31) + this.dj7_1.hashCode() | 0; return result; }; protoOf(VerbEntity).equals = function (other) { if (this === other) return true; if (!(other instanceof VerbEntity)) return false; var tmp0_other_with_cast = other instanceof VerbEntity ? other : THROW_CCE(); if (!this.aj7_1.equals(tmp0_other_with_cast.aj7_1)) return false; if (!(this.bj7_1 == tmp0_other_with_cast.bj7_1)) return false; if (!(this.cj7_1 === tmp0_other_with_cast.cj7_1)) return false; if (!this.dj7_1.equals(tmp0_other_with_cast.dj7_1)) return false; return true; }; function Companion_132() { this.kkl_1 = 620; } var Companion_instance_133; function Companion_getInstance_135() { return Companion_instance_133; } function $serializer_126() { $serializer_instance_126 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.VerbLangMapEntry', this, 5); tmp0_serialDesc.d4g('vlmeVerbUid', true); tmp0_serialDesc.d4g('vlmeLangHash', true); tmp0_serialDesc.d4g('vlmeLangCode', true); tmp0_serialDesc.d4g('vlmeEntryString', true); tmp0_serialDesc.d4g('vlmeLastModified', true); this.lkl_1 = tmp0_serialDesc; } protoOf($serializer_126).a45 = function () { return this.lkl_1; }; protoOf($serializer_126).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()]; }; protoOf($serializer_126).c45 = function (decoder) { var tmp0_desc = this.lkl_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = new Long(0, 0); var tmp9_input = decoder.s48(tmp0_desc); if (tmp9_input.h49()) { tmp4_local0 = tmp9_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.g49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.g49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.t48(tmp0_desc); return VerbLangMapEntry_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_126).mkl = function (encoder, value) { var tmp0_desc = this.lkl_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.ej7_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.ej7_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.fj7_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.fj7_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !(value.gj7_1 == null)) { tmp1_output.k4a(tmp0_desc, 2, StringSerializer_getInstance(), value.gj7_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !(value.hj7_1 == null)) { tmp1_output.k4a(tmp0_desc, 3, StringSerializer_getInstance(), value.hj7_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.ij7_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.ij7_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_126).b45 = function (encoder, value) { return this.mkl(encoder, value instanceof VerbLangMapEntry ? value : THROW_CCE()); }; var $serializer_instance_126; function $serializer_getInstance_126() { if ($serializer_instance_126 == null) new $serializer_126(); return $serializer_instance_126; } function VerbLangMapEntry_init_$Init$(seen1, vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_126().lkl_1); } if (0 === (seen1 & 1)) $this.ej7_1 = new Long(0, 0); else $this.ej7_1 = vlmeVerbUid; if (0 === (seen1 & 2)) $this.fj7_1 = new Long(0, 0); else $this.fj7_1 = vlmeLangHash; if (0 === (seen1 & 4)) $this.gj7_1 = null; else $this.gj7_1 = vlmeLangCode; if (0 === (seen1 & 8)) $this.hj7_1 = null; else $this.hj7_1 = vlmeEntryString; if (0 === (seen1 & 16)) $this.ij7_1 = new Long(0, 0); else $this.ij7_1 = vlmeLastModified; return $this; } function VerbLangMapEntry_init_$Create$(seen1, vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified, serializationConstructorMarker) { return VerbLangMapEntry_init_$Init$(seen1, vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified, serializationConstructorMarker, objectCreate(protoOf(VerbLangMapEntry))); } function VerbLangMapEntry(vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified) { vlmeVerbUid = vlmeVerbUid === VOID ? new Long(0, 0) : vlmeVerbUid; vlmeLangHash = vlmeLangHash === VOID ? new Long(0, 0) : vlmeLangHash; vlmeLangCode = vlmeLangCode === VOID ? null : vlmeLangCode; vlmeEntryString = vlmeEntryString === VOID ? null : vlmeEntryString; vlmeLastModified = vlmeLastModified === VOID ? new Long(0, 0) : vlmeLastModified; this.ej7_1 = vlmeVerbUid; this.fj7_1 = vlmeLangHash; this.gj7_1 = vlmeLangCode; this.hj7_1 = vlmeEntryString; this.ij7_1 = vlmeLastModified; } protoOf(VerbLangMapEntry).toString = function () { return 'VerbLangMapEntry(vlmeVerbUid=' + this.ej7_1.toString() + ', vlmeLangHash=' + this.fj7_1.toString() + ', vlmeLangCode=' + this.gj7_1 + ', vlmeEntryString=' + this.hj7_1 + ', vlmeLastModified=' + this.ij7_1.toString() + ')'; }; protoOf(VerbLangMapEntry).hashCode = function () { var result = this.ej7_1.hashCode(); result = imul(result, 31) + this.fj7_1.hashCode() | 0; result = imul(result, 31) + (this.gj7_1 == null ? 0 : getStringHashCode(this.gj7_1)) | 0; result = imul(result, 31) + (this.hj7_1 == null ? 0 : getStringHashCode(this.hj7_1)) | 0; result = imul(result, 31) + this.ij7_1.hashCode() | 0; return result; }; protoOf(VerbLangMapEntry).equals = function (other) { if (this === other) return true; if (!(other instanceof VerbLangMapEntry)) return false; var tmp0_other_with_cast = other instanceof VerbLangMapEntry ? other : THROW_CCE(); if (!this.ej7_1.equals(tmp0_other_with_cast.ej7_1)) return false; if (!this.fj7_1.equals(tmp0_other_with_cast.fj7_1)) return false; if (!(this.gj7_1 == tmp0_other_with_cast.gj7_1)) return false; if (!(this.hj7_1 == tmp0_other_with_cast.hj7_1)) return false; if (!this.ij7_1.equals(tmp0_other_with_cast.ij7_1)) return false; return true; }; function XapiEntityObjectTypeFlags() { this.nkl_1 = 1; this.okl_1 = 2; this.pkl_1 = 3; this.qkl_1 = 4; this.rkl_1 = 5; this.skl_1 = 6; } var XapiEntityObjectTypeFlags_instance; function XapiEntityObjectTypeFlags_getInstance() { return XapiEntityObjectTypeFlags_instance; } function Companion_133() { this.tkl_1 = 400122; } var Companion_instance_134; function Companion_getInstance_136() { return Companion_instance_134; } function $serializer_127() { $serializer_instance_127 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.XapiSessionEntity', this, 19); tmp0_serialDesc.d4g('xseUid', true); tmp0_serialDesc.d4g('xseLastMod', true); tmp0_serialDesc.d4g('xseRegistrationHi', true); tmp0_serialDesc.d4g('xseRegistrationLo', true); tmp0_serialDesc.d4g('xseUsUid', true); tmp0_serialDesc.d4g('xseAccountPersonUid', true); tmp0_serialDesc.d4g('xseActorUid', true); tmp0_serialDesc.d4g('xseAccountUsername', true); tmp0_serialDesc.d4g('xseClazzUid', true); tmp0_serialDesc.d4g('xseCbUid', true); tmp0_serialDesc.d4g('xseContentEntryUid', true); tmp0_serialDesc.d4g('xseContentEntryVersionUid', true); tmp0_serialDesc.d4g('xseRootActivityId', true); tmp0_serialDesc.d4g('xseRootActivityUid', true); tmp0_serialDesc.d4g('xseStartTime', true); tmp0_serialDesc.d4g('xseExpireTime', true); tmp0_serialDesc.d4g('xseAuth', true); tmp0_serialDesc.d4g('xseCompleted', true); tmp0_serialDesc.d4g('knownActorUidToPersonUids', true); this.ukl_1 = tmp0_serialDesc; } protoOf($serializer_127).a45 = function () { return this.ukl_1; }; protoOf($serializer_127).u4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), StringSerializer_getInstance()]; }; protoOf($serializer_127).c45 = function (decoder) { var tmp0_desc = this.ukl_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = new Long(0, 0); var tmp11_local7 = null; var tmp12_local8 = new Long(0, 0); var tmp13_local9 = new Long(0, 0); var tmp14_local10 = new Long(0, 0); var tmp15_local11 = new Long(0, 0); var tmp16_local12 = null; var tmp17_local13 = new Long(0, 0); var tmp18_local14 = new Long(0, 0); var tmp19_local15 = new Long(0, 0); var tmp20_local16 = null; var tmp21_local17 = false; var tmp22_local18 = null; var tmp23_input = decoder.s48(tmp0_desc); if (tmp23_input.h49()) { tmp4_local0 = tmp23_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp23_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp23_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp23_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp23_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp23_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp23_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp23_input.c49(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp23_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp23_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp23_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp23_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp23_input.c49(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp23_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp23_input.y48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp23_input.y48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp23_input.g49(tmp0_desc, 16, StringSerializer_getInstance(), tmp20_local16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp23_input.u48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp22_local18 = tmp23_input.c49(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; } else while (tmp1_flag) { tmp2_index = tmp23_input.i49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp23_input.y48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp23_input.y48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp23_input.y48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp23_input.y48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp23_input.y48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp23_input.y48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp23_input.y48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp23_input.c49(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp23_input.y48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp23_input.y48(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp23_input.y48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp23_input.y48(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp23_input.c49(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp23_input.y48(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp23_input.y48(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp23_input.y48(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp23_input.g49(tmp0_desc, 16, StringSerializer_getInstance(), tmp20_local16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp23_input.u48(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp22_local18 = tmp23_input.c49(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp23_input.t48(tmp0_desc); return XapiSessionEntity_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, null); }; protoOf($serializer_127).vkl = function (encoder, value) { var tmp0_desc = this.ukl_1; var tmp1_output = encoder.s48(tmp0_desc); if (tmp1_output.o4a(tmp0_desc, 0) ? true : !value.pjm_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 0, value.pjm_1); } if (tmp1_output.o4a(tmp0_desc, 1) ? true : !value.qjm_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 1, value.qjm_1); } if (tmp1_output.o4a(tmp0_desc, 2) ? true : !value.rjm_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 2, value.rjm_1); } if (tmp1_output.o4a(tmp0_desc, 3) ? true : !value.sjm_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 3, value.sjm_1); } if (tmp1_output.o4a(tmp0_desc, 4) ? true : !value.tjm_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 4, value.tjm_1); } if (tmp1_output.o4a(tmp0_desc, 5) ? true : !value.ujm_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 5, value.ujm_1); } if (tmp1_output.o4a(tmp0_desc, 6) ? true : !value.vjm_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 6, value.vjm_1); } if (tmp1_output.o4a(tmp0_desc, 7) ? true : !(value.wjm_1 === '')) { tmp1_output.g4a(tmp0_desc, 7, value.wjm_1); } if (tmp1_output.o4a(tmp0_desc, 8) ? true : !value.xjm_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 8, value.xjm_1); } if (tmp1_output.o4a(tmp0_desc, 9) ? true : !value.yjm_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 9, value.yjm_1); } if (tmp1_output.o4a(tmp0_desc, 10) ? true : !value.zjm_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 10, value.zjm_1); } if (tmp1_output.o4a(tmp0_desc, 11) ? true : !value.ajn_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 11, value.ajn_1); } if (tmp1_output.o4a(tmp0_desc, 12) ? true : !(value.bjn_1 === '')) { tmp1_output.g4a(tmp0_desc, 12, value.bjn_1); } if (tmp1_output.o4a(tmp0_desc, 13) ? true : !value.cjn_1.equals(new Long(0, 0))) { tmp1_output.c4a(tmp0_desc, 13, value.cjn_1); } if (tmp1_output.o4a(tmp0_desc, 14) ? true : !value.djn_1.equals(systemTimeInMillis())) { tmp1_output.c4a(tmp0_desc, 14, value.djn_1); } var tmp; if (tmp1_output.o4a(tmp0_desc, 15)) { tmp = true; } else { var tmp_0 = value.ejn_1; Companion_getInstance(); tmp = !tmp_0.equals(new Long(-1, 2147483647)); } if (tmp) { tmp1_output.c4a(tmp0_desc, 15, value.ejn_1); } if (tmp1_output.o4a(tmp0_desc, 16) ? true : !(value.fjn_1 == null)) { tmp1_output.k4a(tmp0_desc, 16, StringSerializer_getInstance(), value.fjn_1); } if (tmp1_output.o4a(tmp0_desc, 17) ? true : !(value.gjn_1 === false)) { tmp1_output.y49(tmp0_desc, 17, value.gjn_1); } if (tmp1_output.o4a(tmp0_desc, 18) ? true : !(value.hjn_1 === '')) { tmp1_output.g4a(tmp0_desc, 18, value.hjn_1); } tmp1_output.t48(tmp0_desc); }; protoOf($serializer_127).b45 = function (encoder, value) { return this.vkl(encoder, value instanceof XapiSessionEntity ? value : THROW_CCE()); }; var $serializer_instance_127; function $serializer_getInstance_127() { if ($serializer_instance_127 == null) new $serializer_127(); return $serializer_instance_127; } function XapiSessionEntity_init_$Init$(seen1, xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_127().ukl_1); } if (0 === (seen1 & 1)) $this.pjm_1 = new Long(0, 0); else $this.pjm_1 = xseUid; if (0 === (seen1 & 2)) $this.qjm_1 = new Long(0, 0); else $this.qjm_1 = xseLastMod; if (0 === (seen1 & 4)) $this.rjm_1 = new Long(0, 0); else $this.rjm_1 = xseRegistrationHi; if (0 === (seen1 & 8)) $this.sjm_1 = new Long(0, 0); else $this.sjm_1 = xseRegistrationLo; if (0 === (seen1 & 16)) $this.tjm_1 = new Long(0, 0); else $this.tjm_1 = xseUsUid; if (0 === (seen1 & 32)) $this.ujm_1 = new Long(0, 0); else $this.ujm_1 = xseAccountPersonUid; if (0 === (seen1 & 64)) $this.vjm_1 = new Long(0, 0); else $this.vjm_1 = xseActorUid; if (0 === (seen1 & 128)) $this.wjm_1 = ''; else $this.wjm_1 = xseAccountUsername; if (0 === (seen1 & 256)) $this.xjm_1 = new Long(0, 0); else $this.xjm_1 = xseClazzUid; if (0 === (seen1 & 512)) $this.yjm_1 = new Long(0, 0); else $this.yjm_1 = xseCbUid; if (0 === (seen1 & 1024)) $this.zjm_1 = new Long(0, 0); else $this.zjm_1 = xseContentEntryUid; if (0 === (seen1 & 2048)) $this.ajn_1 = new Long(0, 0); else $this.ajn_1 = xseContentEntryVersionUid; if (0 === (seen1 & 4096)) $this.bjn_1 = ''; else $this.bjn_1 = xseRootActivityId; if (0 === (seen1 & 8192)) $this.cjn_1 = new Long(0, 0); else $this.cjn_1 = xseRootActivityUid; if (0 === (seen1 & 16384)) $this.djn_1 = systemTimeInMillis(); else $this.djn_1 = xseStartTime; if (0 === (seen1 & 32768)) { var tmp = $this; Companion_getInstance(); tmp.ejn_1 = new Long(-1, 2147483647); } else $this.ejn_1 = xseExpireTime; if (0 === (seen1 & 65536)) $this.fjn_1 = null; else $this.fjn_1 = xseAuth; if (0 === (seen1 & 131072)) $this.gjn_1 = false; else $this.gjn_1 = xseCompleted; if (0 === (seen1 & 262144)) $this.hjn_1 = ''; else $this.hjn_1 = knownActorUidToPersonUids; return $this; } function XapiSessionEntity_init_$Create$(seen1, xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids, serializationConstructorMarker) { return XapiSessionEntity_init_$Init$(seen1, xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids, serializationConstructorMarker, objectCreate(protoOf(XapiSessionEntity))); } function XapiSessionEntity(xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids) { xseUid = xseUid === VOID ? new Long(0, 0) : xseUid; xseLastMod = xseLastMod === VOID ? new Long(0, 0) : xseLastMod; xseRegistrationHi = xseRegistrationHi === VOID ? new Long(0, 0) : xseRegistrationHi; xseRegistrationLo = xseRegistrationLo === VOID ? new Long(0, 0) : xseRegistrationLo; xseUsUid = xseUsUid === VOID ? new Long(0, 0) : xseUsUid; xseAccountPersonUid = xseAccountPersonUid === VOID ? new Long(0, 0) : xseAccountPersonUid; xseActorUid = xseActorUid === VOID ? new Long(0, 0) : xseActorUid; xseAccountUsername = xseAccountUsername === VOID ? '' : xseAccountUsername; xseClazzUid = xseClazzUid === VOID ? new Long(0, 0) : xseClazzUid; xseCbUid = xseCbUid === VOID ? new Long(0, 0) : xseCbUid; xseContentEntryUid = xseContentEntryUid === VOID ? new Long(0, 0) : xseContentEntryUid; xseContentEntryVersionUid = xseContentEntryVersionUid === VOID ? new Long(0, 0) : xseContentEntryVersionUid; xseRootActivityId = xseRootActivityId === VOID ? '' : xseRootActivityId; xseRootActivityUid = xseRootActivityUid === VOID ? new Long(0, 0) : xseRootActivityUid; xseStartTime = xseStartTime === VOID ? systemTimeInMillis() : xseStartTime; var tmp; if (xseExpireTime === VOID) { Companion_getInstance(); tmp = new Long(-1, 2147483647); } else { tmp = xseExpireTime; } xseExpireTime = tmp; xseAuth = xseAuth === VOID ? null : xseAuth; xseCompleted = xseCompleted === VOID ? false : xseCompleted; knownActorUidToPersonUids = knownActorUidToPersonUids === VOID ? '' : knownActorUidToPersonUids; this.pjm_1 = xseUid; this.qjm_1 = xseLastMod; this.rjm_1 = xseRegistrationHi; this.sjm_1 = xseRegistrationLo; this.tjm_1 = xseUsUid; this.ujm_1 = xseAccountPersonUid; this.vjm_1 = xseActorUid; this.wjm_1 = xseAccountUsername; this.xjm_1 = xseClazzUid; this.yjm_1 = xseCbUid; this.zjm_1 = xseContentEntryUid; this.ajn_1 = xseContentEntryVersionUid; this.bjn_1 = xseRootActivityId; this.cjn_1 = xseRootActivityUid; this.djn_1 = xseStartTime; this.ejn_1 = xseExpireTime; this.fjn_1 = xseAuth; this.gjn_1 = xseCompleted; this.hjn_1 = knownActorUidToPersonUids; } protoOf(XapiSessionEntity).toString = function () { return 'XapiSessionEntity(xseUid=' + this.pjm_1.toString() + ', xseLastMod=' + this.qjm_1.toString() + ', xseRegistrationHi=' + this.rjm_1.toString() + ', xseRegistrationLo=' + this.sjm_1.toString() + ', xseUsUid=' + this.tjm_1.toString() + ', xseAccountPersonUid=' + this.ujm_1.toString() + ', xseActorUid=' + this.vjm_1.toString() + ', xseAccountUsername=' + this.wjm_1 + ', xseClazzUid=' + this.xjm_1.toString() + ', xseCbUid=' + this.yjm_1.toString() + ', xseContentEntryUid=' + this.zjm_1.toString() + ', xseContentEntryVersionUid=' + this.ajn_1.toString() + ', xseRootActivityId=' + this.bjn_1 + ', xseRootActivityUid=' + this.cjn_1.toString() + ', xseStartTime=' + this.djn_1.toString() + ', xseExpireTime=' + this.ejn_1.toString() + ', xseAuth=' + this.fjn_1 + ', xseCompleted=' + this.gjn_1 + ', knownActorUidToPersonUids=' + this.hjn_1 + ')'; }; protoOf(XapiSessionEntity).hashCode = function () { var result = this.pjm_1.hashCode(); result = imul(result, 31) + this.qjm_1.hashCode() | 0; result = imul(result, 31) + this.rjm_1.hashCode() | 0; result = imul(result, 31) + this.sjm_1.hashCode() | 0; result = imul(result, 31) + this.tjm_1.hashCode() | 0; result = imul(result, 31) + this.ujm_1.hashCode() | 0; result = imul(result, 31) + this.vjm_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.wjm_1) | 0; result = imul(result, 31) + this.xjm_1.hashCode() | 0; result = imul(result, 31) + this.yjm_1.hashCode() | 0; result = imul(result, 31) + this.zjm_1.hashCode() | 0; result = imul(result, 31) + this.ajn_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.bjn_1) | 0; result = imul(result, 31) + this.cjn_1.hashCode() | 0; result = imul(result, 31) + this.djn_1.hashCode() | 0; result = imul(result, 31) + this.ejn_1.hashCode() | 0; result = imul(result, 31) + (this.fjn_1 == null ? 0 : getStringHashCode(this.fjn_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.gjn_1) | 0; result = imul(result, 31) + getStringHashCode(this.hjn_1) | 0; return result; }; protoOf(XapiSessionEntity).equals = function (other) { if (this === other) return true; if (!(other instanceof XapiSessionEntity)) return false; var tmp0_other_with_cast = other instanceof XapiSessionEntity ? other : THROW_CCE(); if (!this.pjm_1.equals(tmp0_other_with_cast.pjm_1)) return false; if (!this.qjm_1.equals(tmp0_other_with_cast.qjm_1)) return false; if (!this.rjm_1.equals(tmp0_other_with_cast.rjm_1)) return false; if (!this.sjm_1.equals(tmp0_other_with_cast.sjm_1)) return false; if (!this.tjm_1.equals(tmp0_other_with_cast.tjm_1)) return false; if (!this.ujm_1.equals(tmp0_other_with_cast.ujm_1)) return false; if (!this.vjm_1.equals(tmp0_other_with_cast.vjm_1)) return false; if (!(this.wjm_1 === tmp0_other_with_cast.wjm_1)) return false; if (!this.xjm_1.equals(tmp0_other_with_cast.xjm_1)) return false; if (!this.yjm_1.equals(tmp0_other_with_cast.yjm_1)) return false; if (!this.zjm_1.equals(tmp0_other_with_cast.zjm_1)) return false; if (!this.ajn_1.equals(tmp0_other_with_cast.ajn_1)) return false; if (!(this.bjn_1 === tmp0_other_with_cast.bjn_1)) return false; if (!this.cjn_1.equals(tmp0_other_with_cast.cjn_1)) return false; if (!this.djn_1.equals(tmp0_other_with_cast.djn_1)) return false; if (!this.ejn_1.equals(tmp0_other_with_cast.ejn_1)) return false; if (!(this.fjn_1 == tmp0_other_with_cast.fjn_1)) return false; if (!(this.gjn_1 === tmp0_other_with_cast.gjn_1)) return false; if (!(this.hjn_1 === tmp0_other_with_cast.hjn_1)) return false; return true; }; function addSyncCallback(_this__u8e3s4, nodeIdAndAuth) { _this__u8e3s4.t73(new SyncNodeIdCallback(nodeIdAndAuth.t65_1)); return _this__u8e3s4; } //region block: post-declaration protoOf($serializer).v4g = typeParametersSerializers; protoOf($serializer_0).v4g = typeParametersSerializers; protoOf($serializer_1).v4g = typeParametersSerializers; protoOf($serializer_2).v4g = typeParametersSerializers; protoOf($serializer_3).v4g = typeParametersSerializers; protoOf($serializer_4).v4g = typeParametersSerializers; protoOf($serializer_5).v4g = typeParametersSerializers; protoOf($serializer_6).v4g = typeParametersSerializers; protoOf($serializer_7).v4g = typeParametersSerializers; protoOf($serializer_8).v4g = typeParametersSerializers; protoOf($serializer_9).v4g = typeParametersSerializers; protoOf($serializer_10).v4g = typeParametersSerializers; protoOf($serializer_11).v4g = typeParametersSerializers; protoOf($serializer_12).v4g = typeParametersSerializers; protoOf($serializer_13).v4g = typeParametersSerializers; protoOf($serializer_14).v4g = typeParametersSerializers; protoOf($serializer_15).v4g = typeParametersSerializers; protoOf($serializer_16).v4g = typeParametersSerializers; protoOf($serializer_17).v4g = typeParametersSerializers; protoOf($serializer_18).v4g = typeParametersSerializers; protoOf($serializer_19).v4g = typeParametersSerializers; protoOf($serializer_20).v4g = typeParametersSerializers; protoOf($serializer_21).v4g = typeParametersSerializers; protoOf($serializer_22).v4g = typeParametersSerializers; protoOf($serializer_23).v4g = typeParametersSerializers; protoOf($serializer_24).v4g = typeParametersSerializers; protoOf($serializer_25).v4g = typeParametersSerializers; protoOf($serializer_26).v4g = typeParametersSerializers; protoOf($serializer_27).v4g = typeParametersSerializers; protoOf($serializer_28).v4g = typeParametersSerializers; protoOf($serializer_29).v4g = typeParametersSerializers; protoOf($serializer_30).v4g = typeParametersSerializers; protoOf($serializer_31).v4g = typeParametersSerializers; protoOf($serializer_32).v4g = typeParametersSerializers; protoOf($serializer_33).v4g = typeParametersSerializers; protoOf($serializer_34).v4g = typeParametersSerializers; protoOf($serializer_35).v4g = typeParametersSerializers; protoOf($serializer_36).v4g = typeParametersSerializers; protoOf($serializer_37).v4g = typeParametersSerializers; protoOf($serializer_38).v4g = typeParametersSerializers; protoOf($serializer_39).v4g = typeParametersSerializers; protoOf($serializer_40).v4g = typeParametersSerializers; protoOf($serializer_41).v4g = typeParametersSerializers; protoOf($serializer_42).v4g = typeParametersSerializers; protoOf($serializer_43).v4g = typeParametersSerializers; protoOf($serializer_44).v4g = typeParametersSerializers; protoOf($serializer_45).v4g = typeParametersSerializers; protoOf($serializer_46).v4g = typeParametersSerializers; protoOf($serializer_47).v4g = typeParametersSerializers; protoOf($serializer_48).v4g = typeParametersSerializers; protoOf($serializer_49).v4g = typeParametersSerializers; protoOf($serializer_50).v4g = typeParametersSerializers; protoOf($serializer_51).v4g = typeParametersSerializers; protoOf($serializer_52).v4g = typeParametersSerializers; protoOf($serializer_53).v4g = typeParametersSerializers; protoOf($serializer_54).v4g = typeParametersSerializers; protoOf($serializer_55).v4g = typeParametersSerializers; protoOf($serializer_56).v4g = typeParametersSerializers; protoOf($serializer_57).v4g = typeParametersSerializers; protoOf($serializer_58).v4g = typeParametersSerializers; protoOf($serializer_59).v4g = typeParametersSerializers; protoOf($serializer_60).v4g = typeParametersSerializers; protoOf($serializer_61).v4g = typeParametersSerializers; protoOf($serializer_62).v4g = typeParametersSerializers; protoOf($serializer_63).v4g = typeParametersSerializers; protoOf($serializer_64).v4g = typeParametersSerializers; protoOf($serializer_65).v4g = typeParametersSerializers; protoOf($serializer_66).v4g = typeParametersSerializers; protoOf($serializer_67).v4g = typeParametersSerializers; protoOf($serializer_68).v4g = typeParametersSerializers; protoOf($serializer_69).v4g = typeParametersSerializers; protoOf($serializer_70).v4g = typeParametersSerializers; protoOf($serializer_71).v4g = typeParametersSerializers; protoOf($serializer_72).v4g = typeParametersSerializers; protoOf($serializer_73).v4g = typeParametersSerializers; protoOf($serializer_74).v4g = typeParametersSerializers; protoOf($serializer_75).v4g = typeParametersSerializers; protoOf($serializer_76).v4g = typeParametersSerializers; protoOf($serializer_77).v4g = typeParametersSerializers; protoOf($serializer_78).v4g = typeParametersSerializers; protoOf($serializer_79).v4g = typeParametersSerializers; protoOf($serializer_80).v4g = typeParametersSerializers; protoOf($serializer_81).v4g = typeParametersSerializers; protoOf($serializer_82).v4g = typeParametersSerializers; protoOf($serializer_83).v4g = typeParametersSerializers; protoOf($serializer_84).v4g = typeParametersSerializers; protoOf($serializer_85).v4g = typeParametersSerializers; protoOf($serializer_86).v4g = typeParametersSerializers; protoOf($serializer_87).v4g = typeParametersSerializers; protoOf($serializer_88).v4g = typeParametersSerializers; protoOf($serializer_89).v4g = typeParametersSerializers; protoOf($serializer_90).v4g = typeParametersSerializers; protoOf($serializer_91).v4g = typeParametersSerializers; protoOf($serializer_92).v4g = typeParametersSerializers; protoOf($serializer_93).v4g = typeParametersSerializers; protoOf($serializer_94).v4g = typeParametersSerializers; protoOf($serializer_95).v4g = typeParametersSerializers; protoOf($serializer_96).v4g = typeParametersSerializers; protoOf($serializer_97).v4g = typeParametersSerializers; protoOf($serializer_98).v4g = typeParametersSerializers; protoOf($serializer_99).v4g = typeParametersSerializers; protoOf($serializer_100).v4g = typeParametersSerializers; protoOf($serializer_101).v4g = typeParametersSerializers; protoOf($serializer_102).v4g = typeParametersSerializers; protoOf($serializer_103).v4g = typeParametersSerializers; protoOf($serializer_104).v4g = typeParametersSerializers; protoOf($serializer_105).v4g = typeParametersSerializers; protoOf($serializer_106).v4g = typeParametersSerializers; protoOf($serializer_107).v4g = typeParametersSerializers; protoOf($serializer_108).v4g = typeParametersSerializers; protoOf($serializer_109).v4g = typeParametersSerializers; protoOf($serializer_110).v4g = typeParametersSerializers; protoOf($serializer_111).v4g = typeParametersSerializers; protoOf($serializer_112).v4g = typeParametersSerializers; protoOf($serializer_113).v4g = typeParametersSerializers; protoOf($serializer_114).v4g = typeParametersSerializers; protoOf($serializer_115).v4g = typeParametersSerializers; protoOf($serializer_116).v4g = typeParametersSerializers; protoOf($serializer_117).v4g = typeParametersSerializers; protoOf($serializer_118).v4g = typeParametersSerializers; protoOf($serializer_119).v4g = typeParametersSerializers; protoOf($serializer_120).v4g = typeParametersSerializers; protoOf($serializer_121).v4g = typeParametersSerializers; protoOf($serializer_122).v4g = typeParametersSerializers; protoOf($serializer_123).v4g = typeParametersSerializers; protoOf($serializer_124).v4g = typeParametersSerializers; protoOf($serializer_125).v4g = typeParametersSerializers; protoOf($serializer_126).v4g = typeParametersSerializers; protoOf($serializer_127).v4g = typeParametersSerializers; //endregion //region block: init Companion_instance_0 = new Companion(); UNSET_DISTANT_FUTURE = new Long(-289930240, 1689); ClazzAssignmentDaoCommon_instance = new ClazzAssignmentDaoCommon(); ClazzDaoCommon_instance = new ClazzDaoCommon(); ClazzEnrolmentDaoCommon_instance = new ClazzEnrolmentDaoCommon(); ContentEntryDaoCommon_instance = new ContentEntryDaoCommon(); CourseAssignmentMarkDaoCommon_instance = new CourseAssignmentMarkDaoCommon(); CourseGroupSetDaoConstants_instance = new CourseGroupSetDaoConstants(); LanguageDaoCommon_instance = new LanguageDaoCommon(); PersonDaoCommon_instance = new PersonDaoCommon(); Companion_instance_1 = new Companion_0(); Companion_instance_2 = new Companion_1(); Companion_instance_3 = new Companion_2(); Companion_instance_4 = new Companion_3(); Companion_instance_5 = new Companion_4(); Companion_instance_6 = new Companion_5(); Companion_instance_7 = new Companion_6(); Companion_instance_8 = new Companion_7(); Companion_instance_9 = new Companion_8(); Companion_instance_10 = new Companion_9(); Companion_instance_11 = new Companion_10(); Companion_instance_12 = new Companion_11(); Companion_instance_13 = new Companion_12(); Companion_instance_14 = new Companion_13(); Companion_instance_15 = new Companion_14(); Companion_instance_16 = new Companion_15(); Companion_instance_17 = new Companion_16(); Companion_instance_19 = new Companion_18(); Companion_instance_20 = new Companion_19(); Companion_instance_21 = new Companion_20(); Companion_instance_22 = new Companion_21(); Companion_instance_23 = new Companion_22(); Companion_instance_24 = new Companion_23(); Companion_instance_25 = new Companion_24(); Companion_instance_26 = new Companion_25(); Companion_instance_27 = new Companion_26(); Companion_instance_28 = new Companion_27(); Companion_instance_29 = new Companion_28(); Companion_instance_30 = new Companion_29(); Companion_instance_31 = new Companion_30(); Companion_instance_32 = new Companion_31(); Companion_instance_33 = new Companion_32(); Companion_instance_34 = new Companion_33(); AttemptsPersonListConst_instance = new AttemptsPersonListConst(); Companion_instance_35 = new Companion_34(); Companion_instance_36 = new Companion_35(); Companion_instance_39 = new Companion_38(); Companion_instance_40 = new Companion_39(); Companion_instance_41 = new Companion_40(); SessionTimeAndProgressInfoConst_instance = new SessionTimeAndProgressInfoConst(); Companion_instance_42 = new Companion_41(); StatementConst_instance = new StatementConst(); Companion_instance_43 = new Companion_42(); Companion_instance_44 = new Companion_43(); Companion_instance_46 = new Companion_45(); Companion_instance_47 = new Companion_46(); Companion_instance_48 = new Companion_47(); Companion_instance_50 = new Companion_49(); Companion_instance_51 = new Companion_50(); Companion_instance_52 = new Companion_51(); Companion_instance_53 = new Companion_52(); Companion_instance_54 = new Companion_53(); Companion_instance_55 = new Companion_54(); Companion_instance_56 = new Companion_55(); Companion_instance_57 = new Companion_56(); Companion_instance_58 = new Companion_57(); Companion_instance_59 = new Companion_58(); Companion_instance_60 = new Companion_59(); Companion_instance_61 = new Companion_60(); Companion_instance_62 = new Companion_61(); Companion_instance_63 = new Companion_62(); Companion_instance_64 = new Companion_63(); Companion_instance_65 = new Companion_64(); Companion_instance_66 = new Companion_65(); Companion_instance_67 = new Companion_66(); Companion_instance_68 = new Companion_67(); Companion_instance_69 = new Companion_68(); Companion_instance_70 = new Companion_69(); Companion_instance_71 = new Companion_70(); Companion_instance_72 = new Companion_71(); Companion_instance_73 = new Companion_72(); Companion_instance_75 = new Companion_74(); Companion_instance_76 = new Companion_75(); Companion_instance_77 = new Companion_76(); Companion_instance_78 = new Companion_77(); Companion_instance_79 = new Companion_78(); Companion_instance_80 = new Companion_79(); Companion_instance_82 = new Companion_81(); Companion_instance_83 = new Companion_82(); Companion_instance_84 = new Companion_83(); Companion_instance_85 = new Companion_84(); Companion_instance_86 = new Companion_85(); Companion_instance_87 = new Companion_86(); Companion_instance_88 = new Companion_87(); Companion_instance_89 = new Companion_88(); Companion_instance_90 = new Companion_89(); Companion_instance_91 = new Companion_90(); Companion_instance_93 = new Companion_92(); Companion_instance_95 = new Companion_94(); Companion_instance_96 = new Companion_95(); Companion_instance_97 = new Companion_96(); Companion_instance_98 = new Companion_97(); Companion_instance_99 = new Companion_98(); Companion_instance_100 = new Companion_99(); Companion_instance_101 = new Companion_100(); Companion_instance_102 = new Companion_101(); Companion_instance_103 = new Companion_102(); Companion_instance_104 = new Companion_103(); Companion_instance_105 = new Companion_104(); Companion_instance_106 = new Companion_105(); Companion_instance_107 = new Companion_106(); Companion_instance_108 = new Companion_107(); Companion_instance_109 = new Companion_108(); Companion_instance_111 = new Companion_110(); Companion_instance_112 = new Companion_111(); Companion_instance_113 = new Companion_112(); Companion_instance_114 = new Companion_113(); Companion_instance_116 = new Companion_115(); Companion_instance_117 = new Companion_116(); Companion_instance_118 = new Companion_117(); Companion_instance_119 = new Companion_118(); Companion_instance_120 = new Companion_119(); Companion_instance_121 = new Companion_120(); Companion_instance_122 = new Companion_121(); Companion_instance_123 = new Companion_122(); Companion_instance_124 = new Companion_123(); Companion_instance_125 = new Companion_124(); Companion_instance_126 = new Companion_125(); Companion_instance_127 = new Companion_126(); Companion_instance_128 = new Companion_127(); Companion_instance_129 = new Companion_128(); Companion_instance_130 = new Companion_129(); Companion_instance_131 = new Companion_130(); Companion_instance_132 = new Companion_131(); Companion_instance_133 = new Companion_132(); XapiEntityObjectTypeFlags_instance = new XapiEntityObjectTypeFlags(); Companion_instance_134 = new Companion_133(); //endregion //region block: exports _.$_$ = _.$_$ || {}; _.$_$.a = get_MIGRATION_144_145_CLIENT; _.$_$.b = get_MIGRATION_148_149_NO_OFFLINE_ITEMS; _.$_$.c = get_MIGRATION_155_156_CLIENT; _.$_$.d = get_MIGRATION_161_162_CLIENT; _.$_$.e = get_MIGRATION_169_170_CLIENT; _.$_$.f = addSyncCallback; _.$_$.g = migrationList; _.$_$.h = get_MIGRATE_USERNAME_CLIENT; _.$_$.i = get_UNSET_DISTANT_FUTURE; _.$_$.j = UmAppDatabase; _.$_$.k = asStatementReportRow; _.$_$.l = AssignmentPermissionAndActiveUserSubmitterUid; _.$_$.m = BlockStatus; _.$_$.n = ClazzAndDetailPermissions; _.$_$.o = ClazzAndDisplayDetails; _.$_$.p = ClazzNameAndTerminology; _.$_$.q = CommentsAndName; _.$_$.r = ContentEntryAndContentJob; _.$_$.s = ContentEntryAndDetail; _.$_$.t = ContentEntryAndListDetail; _.$_$.u = CourseAssignmentMarkAndMarkerName; _.$_$.v = CourseBlockAndAssignment; _.$_$.w = CourseBlockAndEditEntities; _.$_$.x = CourseBlockAndPicture; _.$_$.y = DiscussionPostAndPosterNames; _.$_$.z = EditAndViewPermission; _.$_$.a1 = MessageAndOtherPerson; _.$_$.b1 = OfflineItemAndState; _.$_$.c1 = PermissionPair; _.$_$.d1 = PermissionTriple; _.$_$.e1 = PersonAndClazzLogAttendanceRecord; _.$_$.f1 = PersonAndListDisplayDetails; _.$_$.g1 = PersonAndPicture; _.$_$.h1 = PersonNames; _.$_$.i1 = SiteTermsAndLangName; _.$_$.j1 = StatementReportRow; _.$_$.k1 = StudentAndBlockStatuses; _.$_$.l1 = SubmissionAndFiles; _.$_$.m1 = shallowCopy_12; _.$_$.n1 = shallowCopy_0; _.$_$.o1 = shallowCopy_18; _.$_$.p1 = shallowCopy_1; _.$_$.q1 = shallowCopy_9; _.$_$.r1 = shallowCopy_6; _.$_$.s1 = shallowCopy_10; _.$_$.t1 = shallowCopy_7; _.$_$.u1 = shallowCopy_16; _.$_$.v1 = shallowCopy_11; _.$_$.w1 = shallowCopy_15; _.$_$.x1 = shallowCopy_5; _.$_$.y1 = shallowCopy_4; _.$_$.z1 = shallowCopy_2; _.$_$.a2 = shallowCopy_17; _.$_$.b2 = shallowCopy; _.$_$.c2 = shallowCopy_19; _.$_$.d2 = shallowCopy_14; _.$_$.e2 = shallowCopy_8; _.$_$.f2 = shallowCopy_3; _.$_$.g2 = shallowCopy_13; _.$_$.h2 = ActivityEntity; _.$_$.i2 = ActivityExtensionEntity; _.$_$.j2 = ActivityInteractionEntity; _.$_$.k2 = ActivityLangMapEntry; _.$_$.l2 = ActorEntity; _.$_$.m2 = GroupMemberActorJoin; _.$_$.n2 = StatementContextActivityJoin; _.$_$.o2 = StatementEntityJson; _.$_$.p2 = StatementEntity; _.$_$.q2 = VerbEntity; _.$_$.r2 = VerbLangMapEntry; _.$_$.s2 = XapiSessionEntity; _.$_$.t2 = AssignmentProgressSummary; _.$_$.u2 = AssignmentSubmitterAndAllocations; _.$_$.v2 = AssignmentSubmitterSummary; _.$_$.w2 = AverageCourseAssignmentMark; _.$_$.x2 = ClazzAssignmentCourseBlockAndSubmitterUid; _.$_$.y2 = ClazzAssignment; _.$_$.z2 = ClazzEnrolmentWithLeavingReason; _.$_$.a3 = ClazzLogAttendanceRecord; _.$_$.b3 = ClazzLog; _.$_$.c3 = ClazzWithHolidayCalendarAndAndTerminology; _.$_$.d3 = Clazz; _.$_$.e3 = Comments; _.$_$.f3 = ContentEntryButtonModel; _.$_$.g3 = ContentEntryImportJob; _.$_$.h3 = ContentEntryParentChildJoin; _.$_$.i3 = ContentEntryPicture2; _.$_$.j3 = ContentEntryRelatedEntryJoinWithLanguage; _.$_$.k3 = ContentEntryStatementScoreProgress; _.$_$.l3 = ContentEntryVersion; _.$_$.m3 = ContentEntry; _.$_$.n3 = CourseAssignmentMark; _.$_$.o3 = CourseAssignmentSubmissionFile; _.$_$.p3 = CourseAssignmentSubmission; _.$_$.q3 = CourseBlockPicture; _.$_$.r3 = CourseBlock; _.$_$.s3 = CourseGroupMemberAndName; _.$_$.t3 = CourseGroupMember; _.$_$.u3 = CourseGroupSet; _.$_$.v3 = CoursePermission; _.$_$.w3 = CoursePicture; _.$_$.x3 = CourseTerminology; _.$_$.y3 = DiscussionPost; _.$_$.z3 = EnrolmentRequest; _.$_$.a4 = ErrorReport; _.$_$.b4 = HolidayCalendarWithNumEntries; _.$_$.c4 = HolidayCalendar; _.$_$.d4 = Holiday; _.$_$.e4 = Language; _.$_$.f4 = LeavingReason; _.$_$.g4 = Message; _.$_$.h4 = PeerReviewerAllocation; _.$_$.i4 = PersonAndDisplayDetail; _.$_$.j4 = PersonAuth2; _.$_$.k4 = PersonGroup; _.$_$.l4 = PersonParentJoinAndMinorPerson; _.$_$.m4 = PersonParentJoin; _.$_$.n4 = PersonPicture; _.$_$.o4 = Person; _.$_$.p4 = ReportQueryResult; _.$_$.q4 = Report; _.$_$.r4 = Schedule; _.$_$.s4 = ScopedGrant; _.$_$.t4 = SiteTermsWithLanguage; _.$_$.u4 = SiteTerms; _.$_$.v4 = Site; _.$_$.w4 = SystemPermission; _.$_$.x4 = TransferJobItem; _.$_$.y4 = TransferJob; _.$_$.z4 = UmAccount; _.$_$.a5 = UserSession; _.$_$.b5 = TransferJobItemStatus_COMPLETE_getInstance; _.$_$.c5 = TransferJobItemStatus_FAILED_getInstance; _.$_$.d5 = TransferJobItemStatus_IN_PROGRESS_getInstance; _.$_$.e5 = deactivateByUids_1; _.$_$.f5 = deactivateByUids; _.$_$.g5 = deactivateByUids_0; _.$_$.h5 = ClazzEnrolment_init_$Create$; _.$_$.i5 = PersonGroupMember_init_$Create$; _.$_$.j5 = ClazzAssignmentDaoCommon_instance; _.$_$.k5 = ClazzDaoCommon_instance; _.$_$.l5 = ClazzEnrolmentDaoCommon_instance; _.$_$.m5 = ContentEntryDaoCommon_instance; _.$_$.n5 = CourseAssignmentMarkDaoCommon_instance; _.$_$.o5 = CourseGroupSetDaoConstants_instance; _.$_$.p5 = LanguageDaoCommon_instance; _.$_$.q5 = PersonDaoCommon_instance; _.$_$.r5 = PermissionFlags_getInstance; _.$_$.s5 = UmAppDatabaseJsImplementations_getInstance; _.$_$.t5 = SessionTimeAndProgressInfoConst_instance; _.$_$.u5 = StatementConst_instance; _.$_$.v5 = AttemptsPersonListConst_instance; _.$_$.w5 = Companion_instance_9; _.$_$.x5 = Companion_instance_12; _.$_$.y5 = $serializer_getInstance_16; _.$_$.z5 = Companion_getInstance_20; _.$_$.a6 = Companion_instance_31; _.$_$.b6 = $serializer_getInstance_34; _.$_$.c6 = Companion_instance_40; _.$_$.d6 = Companion_instance_121; _.$_$.e6 = Companion_instance_123; _.$_$.f6 = Companion_instance_124; _.$_$.g6 = Companion_instance_125; _.$_$.h6 = Companion_instance_129; _.$_$.i6 = Companion_instance_130; _.$_$.j6 = XapiEntityObjectTypeFlags_instance; _.$_$.k6 = $serializer_getInstance_127; _.$_$.l6 = Companion_instance_134; _.$_$.m6 = Companion_getInstance_47; _.$_$.n6 = Companion_getInstance_51; _.$_$.o6 = Companion_instance_50; _.$_$.p6 = Companion_instance_52; _.$_$.q6 = Companion_instance_53; _.$_$.r6 = Companion_instance_54; _.$_$.s6 = Companion_instance_55; _.$_$.t6 = $serializer_getInstance_52; _.$_$.u6 = Companion_instance_56; _.$_$.v6 = Companion_instance_61; _.$_$.w6 = $serializer_getInstance_59; _.$_$.x6 = Companion_instance_63; _.$_$.y6 = Companion_instance_64; _.$_$.z6 = $serializer_getInstance_62; _.$_$.a7 = Companion_instance_66; _.$_$.b7 = Companion_instance_70; _.$_$.c7 = $serializer_getInstance_67; _.$_$.d7 = Companion_getInstance_76; _.$_$.e7 = Companion_instance_75; _.$_$.f7 = Companion_instance_76; _.$_$.g7 = Companion_instance_77; _.$_$.h7 = Companion_instance_78; _.$_$.i7 = Companion_instance_79; _.$_$.j7 = Companion_instance_80; _.$_$.k7 = Companion_getInstance_83; _.$_$.l7 = Companion_instance_82; _.$_$.m7 = $serializer_getInstance_79; _.$_$.n7 = Companion_instance_83; _.$_$.o7 = Companion_instance_84; _.$_$.p7 = Companion_instance_85; _.$_$.q7 = Companion_instance_87; _.$_$.r7 = Companion_getInstance_96; _.$_$.s7 = Companion_instance_97; _.$_$.t7 = $serializer_getInstance_94; _.$_$.u7 = Companion_instance_98; _.$_$.v7 = Companion_instance_101; _.$_$.w7 = Companion_instance_102; _.$_$.x7 = $serializer_getInstance_99; _.$_$.y7 = Companion_instance_104; _.$_$.z7 = Companion_instance_105; _.$_$.a8 = $serializer_getInstance_101; _.$_$.b8 = Companion_instance_106; _.$_$.c8 = Companion_instance_107; _.$_$.d8 = $serializer_getInstance_104; _.$_$.e8 = Companion_instance_109; _.$_$.f8 = Companion_instance_111; _.$_$.g8 = Companion_instance_112; _.$_$.h8 = Companion_getInstance_117; _.$_$.i8 = Companion_instance_116; _.$_$.j8 = $serializer_getInstance_115; _.$_$.k8 = Companion_instance_120; //endregion return _; }(module.exports, require('./door-door-runtime.js'), require('./kotlin-kotlin-stdlib.js'), require('./multiplatform-paging-root-paging-common.js'), require('./ktor-ktor-client-core.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./ktor-ktor-http.js'), require('./Napier-napier-js-ir.js'))); //# sourceMappingURL=UstadMobile-lib-database.js.map