/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.gateway.common.mapping.MessageContextMapping
 *  com.l7tech.gateway.common.mapping.MessageContextMapping$MappingType
 *  com.l7tech.gateway.common.mapping.MessageContextMappingKeys
 *  com.l7tech.gateway.common.mapping.MessageContextMappingValues
 *  com.l7tech.gateway.common.security.rbac.OperationType
 *  com.l7tech.gateway.common.service.MetricsBin
 *  com.l7tech.gateway.common.service.MetricsBinDetail
 *  com.l7tech.gateway.common.service.MetricsSummaryBin
 *  com.l7tech.gateway.common.service.PublishedService
 *  com.l7tech.gateway.common.service.ServiceHeader
 *  com.l7tech.gateway.common.service.ServiceState
 *  com.l7tech.identity.IdentityProvider
 *  com.l7tech.identity.User
 *  com.l7tech.objectmodel.Entity
 *  com.l7tech.objectmodel.EntityType
 *  com.l7tech.objectmodel.FindException
 *  com.l7tech.objectmodel.Goid
 *  com.l7tech.objectmodel.PersistentEntity
 *  com.l7tech.objectmodel.SaveException
 *  com.l7tech.util.ConfigFactory
 *  jakarta.inject.Inject
 *  org.hibernate.Session
 *  org.springframework.dao.DataAccessException
 *  org.springframework.orm.hibernate5.HibernateCallback
 *  org.springframework.orm.hibernate5.support.HibernateDaoSupport
 *  org.springframework.transaction.PlatformTransactionManager
 *  org.springframework.transaction.annotation.Propagation
 *  org.springframework.transaction.annotation.Transactional
 */
package com.l7tech.server.service;

import com.l7tech.gateway.common.mapping.MessageContextMapping;
import com.l7tech.gateway.common.mapping.MessageContextMappingKeys;
import com.l7tech.gateway.common.mapping.MessageContextMappingValues;
import com.l7tech.gateway.common.security.rbac.OperationType;
import com.l7tech.gateway.common.service.MetricsBin;
import com.l7tech.gateway.common.service.MetricsBinDetail;
import com.l7tech.gateway.common.service.MetricsSummaryBin;
import com.l7tech.gateway.common.service.PublishedService;
import com.l7tech.gateway.common.service.ServiceHeader;
import com.l7tech.gateway.common.service.ServiceState;
import com.l7tech.identity.IdentityProvider;
import com.l7tech.identity.User;
import com.l7tech.objectmodel.Entity;
import com.l7tech.objectmodel.EntityType;
import com.l7tech.objectmodel.FindException;
import com.l7tech.objectmodel.Goid;
import com.l7tech.objectmodel.PersistentEntity;
import com.l7tech.objectmodel.SaveException;
import com.l7tech.server.identity.IdentityProviderFactory;
import com.l7tech.server.mapping.MessageContextMappingManager;
import com.l7tech.server.security.rbac.RoleManager;
import com.l7tech.server.service.ServiceManager;
import com.l7tech.server.service.ServiceMetrics;
import com.l7tech.server.service.ServiceMetricsManager;
import com.l7tech.server.service.aa;
import com.l7tech.server.service.ac;
import com.l7tech.server.service.an;
import com.l7tech.server.service.ao;
import com.l7tech.server.service.z;
import com.l7tech.server.util.ConfiguredSessionFactoryBean;
import com.l7tech.server.util.JaasUtils;
import com.l7tech.util.ConfigFactory;
import jakarta.inject.Inject;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.hibernate.Session;
import org.springframework.dao.DataAccessException;
import org.springframework.orm.hibernate5.HibernateCallback;
import org.springframework.orm.hibernate5.support.HibernateDaoSupport;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Transactional(propagation=Propagation.REQUIRED, rollbackFor={Throwable.class})
public class ServiceMetricsManagerImpl
extends HibernateDaoSupport
implements ServiceMetricsManager {
    private static final String a;
    private static final String b;
    private static final String c;
    private static final String d;
    private static final Logger e;
    private static final ConfiguredSessionFactoryBean.ConfiguredGOIDGenerator f;
    private final String g;
    private int h;
    @Inject
    private PlatformTransactionManager _transactionManager;
    @Inject
    private ServiceManager _serviceManager;
    @Inject
    private RoleManager _roleManager;
    @Inject
    private MessageContextMappingManager messageContextMappingManager;
    @Inject
    private IdentityProviderFactory identityProviderFactory;
    private static final String[] i;

    public ServiceMetricsManagerImpl(String string) {
        this.g = string;
    }

    @Override
    @Transactional(propagation=Propagation.REQUIRED, readOnly=true)
    public Collection<MetricsSummaryBin> summarizeByPeriod(String string, Goid[] goidArray, Integer n2, Long l2, Long l3, boolean bl2) throws FindException {
        List<MetricsBin> list = this.a(string, goidArray, n2, l2, l3, bl2);
        return MetricsSummaryBin.createSummaryMetricsBinsByPeriodStart(list);
    }

    @Override
    @Transactional(propagation=Propagation.SUPPORTS, readOnly=true)
    public Map<Goid, MetricsSummaryBin> summarizeByService(String string, Integer n2, Long l2, Long l3, Goid[] goidArray, boolean bl2) throws FindException {
        List<MetricsBin> list = this.a(string, goidArray, n2, l2, l3, bl2);
        return MetricsSummaryBin.createSummaryMetricsBinsByServiceOid(list);
    }

    /*
     * Loose catch block
     */
    private List<MetricsBin> a(String string, Goid[] goidArray, Integer n2, Long l2, Long l3, boolean bl2) throws FindException {
        Set<Goid> set;
        block19: {
            block18: {
                set = this.a(goidArray);
                if (set == null) break block18;
                try {
                    block20: {
                        if (!bl2) break block18;
                        break block20;
                        catch (DataAccessException dataAccessException) {
                            throw ServiceMetricsManagerImpl.a((Exception)((Object)dataAccessException));
                        }
                    }
                    set.add(PersistentEntity.DEFAULT_GOID);
                }
                catch (DataAccessException dataAccessException) {
                    throw ServiceMetricsManagerImpl.a((Exception)((Object)dataAccessException));
                }
            }
            if (set == null) break block19;
            try {
                block21: {
                    if (!set.isEmpty()) break block19;
                    break block21;
                    catch (DataAccessException dataAccessException) {
                        throw ServiceMetricsManagerImpl.a((Exception)((Object)dataAccessException));
                    }
                }
                return Collections.emptyList();
            }
            catch (DataAccessException dataAccessException) {
                throw ServiceMetricsManagerImpl.a((Exception)((Object)dataAccessException));
            }
        }
        try {
            List list = (List)this.getHibernateTemplate().execute((HibernateCallback)new an(this, string, set, n2, l2, l3));
            return list;
        }
        catch (DataAccessException dataAccessException) {
            Object object;
            Object object2;
            Object object3;
            String[] stringArray;
            String string2;
            FindException findException;
            FindException findException2;
            try {
                FindException findException3;
                findException2 = findException3;
                findException = findException3;
                string2 = string == null ? i[11] : string;
            }
            catch (DataAccessException dataAccessException2) {
                throw ServiceMetricsManagerImpl.a((Exception)((Object)dataAccessException2));
            }
            String string3 = String.valueOf(set);
            if (n2 == null) {
                stringArray = i;
                object3 = stringArray[18];
            } else {
                object3 = n2;
            }
            String string4 = String.valueOf(object3);
            if (l2 == null) {
                stringArray = i;
                object2 = stringArray[18];
            } else {
                object2 = new Date(l2);
            }
            String string5 = String.valueOf(object2);
            if (l3 == null) {
                stringArray = i;
                object = stringArray[18];
            } else {
                object = new Date(l3);
            }
            String string6 = String.valueOf(object);
            String string7 = string5;
            String string8 = string4;
            String string9 = string3;
            String string10 = string2;
            stringArray = i;
            findException2(stringArray[10] + string10 + stringArray[6] + string9 + stringArray[16] + string8 + stringArray[28] + string7 + stringArray[12] + string6 + ")", (Throwable)dataAccessException);
            throw findException;
        }
    }

    /*
     * Loose catch block
     */
    @Override
    @Transactional(propagation=Propagation.SUPPORTS, readOnly=true)
    public MetricsSummaryBin summarizeLatest(String string, Goid[] goidArray, int n2, int n3, boolean bl2) throws FindException {
        Collection collection;
        long l2;
        long l3;
        block19: {
            Set<Goid> set;
            block18: {
                block17: {
                    set = this.a(goidArray);
                    if (set == null) break block17;
                    try {
                        block20: {
                            if (!bl2) break block17;
                            break block20;
                            catch (DataAccessException dataAccessException) {
                                throw ServiceMetricsManagerImpl.a((Exception)((Object)dataAccessException));
                            }
                        }
                        set.add(PersistentEntity.DEFAULT_GOID);
                    }
                    catch (DataAccessException dataAccessException) {
                        throw ServiceMetricsManagerImpl.a((Exception)((Object)dataAccessException));
                    }
                }
                if (set == null) break block18;
                try {
                    block21: {
                        if (!set.isEmpty()) break block18;
                        break block21;
                        catch (DataAccessException dataAccessException) {
                            throw ServiceMetricsManagerImpl.a((Exception)((Object)dataAccessException));
                        }
                    }
                    return null;
                }
                catch (DataAccessException dataAccessException) {
                    throw ServiceMetricsManagerImpl.a((Exception)((Object)dataAccessException));
                }
            }
            l3 = MetricsBin.periodStartFor((int)n2, (int)this.b(), (long)System.currentTimeMillis());
            l2 = l3 - (long)n3;
            try {
                collection = (Collection)this.getHibernateTemplate().execute((HibernateCallback)new ao(this, string, set, n2, l2, l3));
            }
            catch (DataAccessException dataAccessException) {
                int n4 = n3;
                int n5 = n2;
                String string2 = String.valueOf(set);
                String string3 = string;
                String[] stringArray = i;
                throw new FindException(stringArray[17] + string3 + stringArray[4] + string2 + stringArray[14] + n5 + stringArray[8] + n4 + ")", (Throwable)dataAccessException);
            }
            try {
                if (e.isLoggable(Level.FINER)) {
                    e.finer(i[24] + collection.size() + i[29]);
                }
            }
            catch (DataAccessException dataAccessException) {
                throw ServiceMetricsManagerImpl.a((Exception)((Object)dataAccessException));
            }
            try {
                try {
                    if (collection != null && collection.size() != 0) break block19;
                }
                catch (DataAccessException dataAccessException) {
                    throw ServiceMetricsManagerImpl.a((Exception)((Object)dataAccessException));
                }
                return null;
            }
            catch (DataAccessException dataAccessException) {
                throw ServiceMetricsManagerImpl.a((Exception)((Object)dataAccessException));
            }
        }
        MetricsSummaryBin metricsSummaryBin = new MetricsSummaryBin(collection);
        metricsSummaryBin.setPeriodStart(l2);
        metricsSummaryBin.setInterval(n3);
        metricsSummaryBin.setEndTime(l3);
        return metricsSummaryBin;
    }

    @Override
    @Transactional(propagation=Propagation.SUPPORTS, readOnly=true)
    public ServiceState getCreatedOrUpdatedServiceState(Goid goid) throws FindException {
        ServiceState serviceState;
        block8: {
            PublishedService publishedService;
            block7: {
                try {
                    if (!this.a()) {
                        this.logger.warn((Object)i[15]);
                        return ServiceState.DISABLED;
                    }
                }
                catch (FindException findException) {
                    throw ServiceMetricsManagerImpl.a((Exception)((Object)findException));
                }
                publishedService = (PublishedService)this._serviceManager.findByPrimaryKey(goid);
                try {
                    if (publishedService != null) break block7;
                    serviceState = ServiceState.DELETED;
                    break block8;
                }
                catch (FindException findException) {
                    throw ServiceMetricsManagerImpl.a((Exception)((Object)findException));
                }
            }
            try {
                serviceState = publishedService.isDisabled() ? ServiceState.DISABLED : ServiceState.ENABLED;
            }
            catch (FindException findException) {
                throw ServiceMetricsManagerImpl.a((Exception)((Object)findException));
            }
        }
        return serviceState;
    }

    @Override
    @Transactional(propagation=Propagation.REQUIRED)
    public Integer delete(long l2, int n2) {
        return (Integer)this.getHibernateTemplate().execute((HibernateCallback)new z(this, l2, n2));
    }

    @Override
    @Transactional(propagation=Propagation.REQUIRED, readOnly=true)
    public Collection<ServiceHeader> findAllServiceHeaders() throws FindException {
        try {
            if (!this.a()) {
                this.logger.warn((Object)i[0]);
                return Collections.emptyList();
            }
        }
        catch (FindException findException) {
            throw ServiceMetricsManagerImpl.a((Exception)((Object)findException));
        }
        return this._serviceManager.findAllHeaders(false);
    }

    @Override
    @Transactional(propagation=Propagation.REQUIRED, rollbackFor={Throwable.class})
    public void doFlush(ServiceMetrics.MetricsCollectorSet metricsCollectorSet, MetricsBin metricsBin) {
        try {
            this.getHibernateTemplate().execute((HibernateCallback)new aa(this, metricsBin, metricsCollectorSet));
        }
        catch (Exception exception) {
            throw new RuntimeException(i[20], exception);
        }
    }

    protected void initDao() throws Exception {
        try {
            if (this._transactionManager == null) {
                this.logger.warn((Object)i[5]);
            }
        }
        catch (Exception exception) {
            throw ServiceMetricsManagerImpl.a(exception);
        }
        try {
            if (this._serviceManager == null) {
                this.logger.warn((Object)i[21]);
            }
        }
        catch (Exception exception) {
            throw ServiceMetricsManagerImpl.a(exception);
        }
        try {
            if (this.g == null) {
                this.logger.warn((Object)i[19]);
            }
        }
        catch (Exception exception) {
            throw ServiceMetricsManagerImpl.a(exception);
        }
    }

    private boolean a() {
        boolean bl2;
        block7: {
            block6: {
                try {
                    try {
                        try {
                            if (this._transactionManager == null || this._serviceManager == null) break block6;
                        }
                        catch (DataAccessException dataAccessException) {
                            throw ServiceMetricsManagerImpl.a((Exception)((Object)dataAccessException));
                        }
                        if (this.g == null) break block6;
                    }
                    catch (DataAccessException dataAccessException) {
                        throw ServiceMetricsManagerImpl.a((Exception)((Object)dataAccessException));
                    }
                    bl2 = true;
                    break block7;
                }
                catch (DataAccessException dataAccessException) {
                    throw ServiceMetricsManagerImpl.a((Exception)((Object)dataAccessException));
                }
            }
            bl2 = false;
        }
        return bl2;
    }

    @Override
    @Transactional(propagation=Propagation.REQUIRED, rollbackFor={Throwable.class})
    public void createHourlyBin(Goid goid, ServiceState serviceState, long l2) throws SaveException {
        this.a(goid, serviceState, l2, 1, 0);
    }

    @Override
    @Transactional(propagation=Propagation.REQUIRED, rollbackFor={Throwable.class})
    public void createDailyBin(Goid goid, ServiceState serviceState, long l2) throws SaveException {
        this.a(goid, serviceState, l2, 2, 1);
    }

    private void a(Goid goid, ServiceState serviceState, long l2, int n2, int n3) throws SaveException {
        try {
            this.getHibernateTemplate().execute((HibernateCallback)new ac(this, l2, n2, goid, serviceState, n3));
        }
        catch (Exception exception) {
            throw new SaveException(i[2], (Throwable)exception);
        }
    }

    private void a(Session session, Goid goid, Map<ServiceMetrics.MetricsDetailKey, ServiceMetrics.MetricsCollector> map) {
        if (map != null) {
            for (Map.Entry<ServiceMetrics.MetricsDetailKey, ServiceMetrics.MetricsCollector> entry : map.entrySet()) {
                MetricsBinDetail metricsBinDetail = new MetricsBinDetail();
                try {
                    metricsBinDetail.setMetricsBinGoid(goid);
                    metricsBinDetail.setMappingValuesId(this.a(entry.getKey()));
                    if (entry.getValue().getNumAttemptedRequest() > 0) {
                        metricsBinDetail.setMinFrontendResponseTime(Integer.valueOf(entry.getValue().getMinFrontendResponseTime()));
                        metricsBinDetail.setMaxFrontendResponseTime(Integer.valueOf(entry.getValue().getMaxFrontendResponseTime()));
                    }
                }
                catch (DataAccessException dataAccessException) {
                    throw ServiceMetricsManagerImpl.a((Exception)((Object)dataAccessException));
                }
                try {
                    metricsBinDetail.setSumFrontendResponseTime(entry.getValue().getSumFrontendResponseTime());
                    if (entry.getValue().getNumCompletedRequest() > 0) {
                        metricsBinDetail.setMinBackendResponseTime(Integer.valueOf(entry.getValue().getMinBackendResponseTime()));
                        metricsBinDetail.setMaxBackendResponseTime(Integer.valueOf(entry.getValue().getMaxBackendResponseTime()));
                    }
                }
                catch (DataAccessException dataAccessException) {
                    throw ServiceMetricsManagerImpl.a((Exception)((Object)dataAccessException));
                }
                metricsBinDetail.setSumBackendResponseTime(entry.getValue().getSumBackendResponseTime());
                metricsBinDetail.setNumAttemptedRequest(entry.getValue().getNumAttemptedRequest());
                metricsBinDetail.setNumAuthorizedRequest(entry.getValue().getNumAuthorizedRequest());
                metricsBinDetail.setNumCompletedRequest(entry.getValue().getNumCompletedRequest());
                session.save((Object)metricsBinDetail);
            }
        }
    }

    private Set<Goid> a(Goid[] goidArray) throws FindException {
        HashSet<Object> hashSet;
        block23: {
            Object object;
            Logger logger;
            block26: {
                block25: {
                    Goid[] goidArray2;
                    block22: {
                        try {
                            if (!this.a()) {
                                this.logger.warn((Object)i[1]);
                                return Collections.emptySet();
                            }
                        }
                        catch (FindException findException) {
                            throw ServiceMetricsManagerImpl.a((Exception)((Object)findException));
                        }
                        hashSet = null;
                        if (goidArray != null) {
                            hashSet = new HashSet<Goid>();
                            for (Goid goid : goidArray) {
                                hashSet.add(goid);
                            }
                        }
                        goidArray2 = JaasUtils.getCurrentUser();
                        try {
                            try {
                                if (goidArray2 != null && !this._roleManager.isPermittedForAnyEntityOfType((User)goidArray2, OperationType.READ, EntityType.SERVICE)) break block22;
                                break block23;
                            }
                            catch (FindException findException) {
                                throw ServiceMetricsManagerImpl.a((Exception)((Object)findException));
                            }
                        }
                        catch (FindException findException) {
                            throw ServiceMetricsManagerImpl.a((Exception)((Object)findException));
                        }
                    }
                    HashSet<Goid> hashSet2 = new HashSet<Goid>();
                    for (Goid goid : this._serviceManager.findAll()) {
                        try {
                            if (!this._roleManager.isPermittedForEntity((User)goidArray2, (Entity)goid, OperationType.READ, null)) continue;
                            hashSet2.add(goid.getGoid());
                        }
                        catch (FindException findException) {
                            throw ServiceMetricsManagerImpl.a((Exception)((Object)findException));
                        }
                    }
                    if (hashSet == null) {
                        hashSet = hashSet2;
                    } else {
                        Iterator iterator = hashSet.iterator();
                        while (true) {
                            block24: {
                                try {
                                    while (iterator.hasNext()) {
                                        if (hashSet2.contains(iterator.next())) continue;
                                        break block24;
                                    }
                                    break;
                                }
                                catch (FindException findException) {
                                    throw ServiceMetricsManagerImpl.a((Exception)((Object)findException));
                                }
                            }
                            iterator.remove();
                        }
                    }
                    try {
                        try {
                            if (!e.isLoggable(Level.FINER)) break block23;
                            logger = e;
                            if (goidArray != null) break block25;
                        }
                        catch (FindException findException) {
                            throw ServiceMetricsManagerImpl.a((Exception)((Object)findException));
                        }
                        object = "*";
                        break block26;
                    }
                    catch (FindException findException) {
                        throw ServiceMetricsManagerImpl.a((Exception)((Object)findException));
                    }
                }
                object = goidArray.length;
            }
            String[] stringArray = i;
            logger.finer(stringArray[23] + String.valueOf(object) + stringArray[31] + hashSet.size());
        }
        return hashSet;
    }

    /*
     * Loose catch block
     */
    private Goid a(ServiceMetrics.MetricsDetailKey metricsDetailKey) {
        MessageContextMappingValues messageContextMappingValues;
        MessageContextMappingKeys messageContextMappingKeys;
        block11: {
            try {
                if (this.messageContextMappingManager == null) {
                    return null;
                }
            }
            catch (Exception exception) {
                throw ServiceMetricsManagerImpl.a(exception);
            }
            messageContextMappingKeys = new MessageContextMappingKeys();
            messageContextMappingValues = new MessageContextMappingValues();
            messageContextMappingKeys.setCreateTime(System.currentTimeMillis());
            messageContextMappingValues.setCreateTime(System.currentTimeMillis());
            messageContextMappingValues.setServiceOperation(metricsDetailKey.getOperation());
            if (metricsDetailKey.getMappings() == null) break block11;
            int n2 = 0;
            for (MessageContextMapping messageContextMapping : metricsDetailKey.getMappings()) {
                block10: {
                    if (messageContextMapping.getMappingType() != MessageContextMapping.MappingType.AUTH_USER) break block10;
                    try {
                        block12: {
                            if (metricsDetailKey.getUserId() == null) continue;
                            break block12;
                            catch (Exception exception) {
                                throw ServiceMetricsManagerImpl.a(exception);
                            }
                        }
                        messageContextMappingValues.setAuthUserId(this.a(metricsDetailKey.getUserProviderId(), metricsDetailKey.getUserId()));
                        messageContextMappingValues.setAuthUserUniqueId(metricsDetailKey.getUserId());
                        messageContextMappingValues.setAuthUserProviderId(metricsDetailKey.getUserProviderId());
                        continue;
                    }
                    catch (Exception exception) {
                        throw ServiceMetricsManagerImpl.a(exception);
                    }
                }
                messageContextMappingKeys.setTypeAndKey(n2, messageContextMapping.getMappingType(), messageContextMapping.getKey());
                messageContextMappingValues.setValue(n2, messageContextMapping.getValue());
                ++n2;
            }
        }
        try {
            Goid goid = this.messageContextMappingManager.saveMessageContextMappingKeys(messageContextMappingKeys);
            messageContextMappingValues.setMappingKeysGoid(goid);
            return this.messageContextMappingManager.saveMessageContextMappingValues(messageContextMappingValues);
        }
        catch (Exception exception) {
            e.warning(i[27]);
            return null;
        }
    }

    private String a(Goid goid, String string) {
        String string2 = null;
        try {
            IdentityProvider identityProvider = this.identityProviderFactory.getProvider(goid);
            if (identityProvider != null) {
                String string3;
                User user = identityProvider.getUserManager().findByPrimaryKey(string);
                try {
                    string3 = user == null ? string : this.a(user);
                }
                catch (Exception exception) {
                    throw ServiceMetricsManagerImpl.a(exception);
                }
                String[] stringArray = i;
                string2 = string3 + stringArray[7] + identityProvider.getConfig().getName() + "]";
            }
        }
        catch (Exception exception) {
            String[] stringArray = i;
            e.log(Level.WARNING, stringArray[32], exception);
        }
        if (string2 == null) {
            string2 = string + i[30] + String.valueOf(goid) + "]";
        }
        return string2;
    }

    private String a(User user) {
        String string;
        block5: {
            block4: {
                string = user.getLogin();
                try {
                    if (string != null && !"".equals(string)) break block4;
                }
                catch (DataAccessException dataAccessException) {
                    throw ServiceMetricsManagerImpl.a((Exception)((Object)dataAccessException));
                }
                string = user.getName();
            }
            try {
                if (string != null && !"".equals(string)) break block5;
            }
            catch (DataAccessException dataAccessException) {
                throw ServiceMetricsManagerImpl.a((Exception)((Object)dataAccessException));
            }
            string = user.getId();
        }
        return string;
    }

    private int b() {
        int n2 = this.h;
        if (n2 == 0) {
            block3: {
                n2 = ConfigFactory.getIntProperty((String)i[9], (int)5000);
                try {
                    if (n2 <= 300000 && n2 >= 1000) break block3;
                }
                catch (DataAccessException dataAccessException) {
                    throw ServiceMetricsManagerImpl.a((Exception)((Object)dataAccessException));
                }
                n2 = 5000;
            }
            this.h = n2;
        }
        return n2;
    }

    /*
     * Unable to fully structure code
     */
    static {
        block10: {
            block9: {
                var5 = new String[33];
                var3_1 = 0;
                var2_2 = "\u0004\u007f\u0006/!dP%~G+$o\u0014qb\u0002?;h\u001341\u000f(,e\u0015#bG``!\u001e>eG?(`\u0014(:\u0004\u007f\u0006/!dP%~G+$m\u00044cG=(s\u001d8e\u0013()!\u0000$s\u000b$>i\u001551\u0014(?w\u00192t\u0014m`,P?~\u0013m?d\u00115h!\u0012~\u0012!)oW%1\u0014,;dP<t\u0013?$b\u0003qb\u0012  `\u0002(1\u0005$#>qF/\b\u001fDP!t\u0015$\"e#%p\u00159m=Pka\u0002?$n\u0014\u0002e\u0006?9!1\u001fUG?(r\u001f=d\u0013$\"oPl1]?(r\u001f=d\u0013$\"o\u000e}1\u0014(?w\u00192t \"$eM\u001e\u0005c\u0006#>`\u0013%x\b#\u0000`\u001e0v\u0002?ml\u0005\"eG/(!\u00034e\u000e}1\u0014(?w\u00192t \"$eM\u0002qJ\u000b}1\u00038?`\u00048~\tp\u0013<t\u0013?$b\u0003\u0017x\t(\u0004o\u00044c\u0011,!-\u0012p\t#\"uP7x\t)mL\u0015%c\u000e.>C\u0019?bG$#!\u00140e\u0006/,r\u0015\u007f1O#\"e\u0015\u0018uZ\u0005mP)\u0014s\u0011}1\n,5Q\u0015#x\b)\u001eu\u0011#eZ\u066e\u0018_4\b\u001fUP\u0018_3\u0002mr\u0015#g\u000e.(^\u001d4e\u0015$.r/5t\u0013,$m\u0003[1Gmm)\u00034c\u0011$.d/<t\u0013?$b\u0003\u000ev\b$)-\u001d0a\u0017$#f/'p\u000b8(r/6~\u000e)a`\u0004%t\n=9d\u0014}p\u00129%n\u00028k\u0002)ab\u001f<a\u000b(9d\u0014}s\u0006.&^\u001d8\u007fK/,b\u001b\u000e|\u00065ac\u00112z8>8l\\7c\b#9^\u001d8\u007fK+?n\u001e%N\n,5-\u0016#~\t9\u0012r\u0005<8m\u001e\bM5\u0012Emmm!Py\u001bGmm!Pq1G\u001e\bM5\u0012EG*\"h\u0014qW5\u0002\u0000!\u00034c\u0011$.d/<t\u0013?$b\u0003qF/\b\u001fDzq1Gmm!Pq\u007f\b)(h\u0014l.G\f\u0003Ezq1Gmm!Pqa\u0012/!h\u00039t\u0003\u0012>d\u0002'x\u0004(\u0012f\u001f8uZrm@>\u0015\u001bGmm!Pq1G?(r\u001f=d\u0013$\"oMn1&\u0003\t\u000bPq1Gmm!P!t\u0015$\"e/\"e\u0006?9<O[1Gmm(P0bG$)-zq1Gm>l\u0014\u007f|\u0006==h\u001e6N\u0011,!t\u0015\"N\u0000\"$e\\[1Gmmb\u001f0}\u0002>.dX\"d\ne>l\u0014\u007fp\u00139(l\u0000%t\u0003da1Y}\u001bGmm!\u0013>p\u000b(>b\u0015yb\u0012 er\u001d5?\u000689i\u001f#x\u001d()(\\a8KGm!Pqr\b,!d\u00032tO>8lX\"|\u0003c.n\u001d!}\u00029(eY}!NaG!Pq1.\u000bel\u0019?9\u0004\",m\u0015\"r\u0002e>l\u0014\u007fs\u0006.&^\u001d8\u007fKm\u007f0Df%_~{5Gx8Z\u007f|5Ge)T{y6\\\u001fD+\u0001al\u0019?9\u0004\",m\u0015\"r\u0002e>l\u0014\u007fs\u0006.&^\u001d8\u007fKm\u007f0Df%_~{5Gx8NaG!Pq1.\u000bel\u0011)9\u0004\",m\u0015\"r\u0002e>l\u0014\u007fs\u0006.&^\u001d0iKm`0Yx,J|aO%\u001d]K ,yX2~\u0006!(r\u001349\u0014 )/\u00120r\f\u0012 `\b}1J|d(Y}\u001bGmm!9\u00179\u0004\",m\u0015\"r\u0002e>t\u001dyb\n)cc\u00112z8>8lY}!Ns\u007f0Df%_~{5G}#Vyz5Hb'Szab\u001f0}\u0002>.dX\"d\ne>l\u0014\u007fs\u0006.&^\u0003$|Na}(Y}\u001bGmm!9\u00179\n$#)\u0013>p\u000b(>b\u0015yb\n)cg\u0002>\u007f\u0013\u0012 h\u001e}1U|y6Di\"Qyz(Yl#Vyz5Hb'SzaO%\u001d]K $oX2~\u0006!(r\u001349\u0014 )/\u0016#~\t9\u0012l\u0019?=G\u007f|5Ge)T{y6Yx8KGm!PqX!e `\byr\b,!d\u00032tO> e^7c\b#9^\u001d0iKm`0Yx,J|aO%\u001d]K ,yX2~\u0006!(r\u001349\u0014 )/\u0016#~\t9\u0012l\u0011)=G`|(Yx=mmm!P\u0018WO.\"`\u001c4b\u0004(er\u0005<9\u0014 )/\u0016#~\t9\u0012r\u0005<8K}d?B`%Pyu2Fe&K\u007f|5Ge)T{y6\\2~\u0006!(r\u001349\u00148 )\u0003<uI+?n\u001e%N\u00148 (\\a8NG\u000bS?\u001c1\u0014(?w\u00192t8 (u\u00028r\u0014m>l\\qb\u0002?;h\u00134N\n(9s\u00192b8)(u\u00118}\u0014m>l\u0014[F/\b\u001fDPq1Gm>l^6~\u000e)m<P\"|\u0003c>d\u0002'x\u0004(\u0012l\u0015%c\u000e.>^\u0017>x\u0003m\fO4[1Gmmr\u001d\u007f\u007f\b)(h\u0014l.G\f\u0003Ezq1Gm>l^!d\u0005!$r\u00184u8>(s\u00068r\u0002\u0012*n\u00195,Xm\fO4[1Gmmr\u001d\u007fc\u0002>\"m\u0005%x\b#p>P\u0010_#Gm!Pqb\nc=d\u00028~\u0003\u0012>u\u0011#eYpr!P\u0010_#Gm!Pqb\nc=d\u00028~\u0003\u0012>u\u0011#eL> /\u0019?e\u0002?;`\u001c\u000eb\u000e7(=Mn\u001b \u001f\u0002T qS>m$e\\q|\u0006==h\u001e6N\u0011,!t\u0015\"N\u0000\"$ez\u001e_G\t\u0018Q<\u0018R&\u0019\b!;\u0014HG\u0018\u001dE1\u0005Tmmm!P0e\u0013( q\u00044uZ;,m\u00054bO,9u\u0015<a\u0013()(\\[1Gmm`\u0005%y\b?${\u00155,\u0011,!t\u0015\"9\u000689i\u001f#x\u001d()(\\[1Gmmb\u001f<a\u000b(9d\u0014lg\u0006!8d\u0003yr\b =m\u0015%t\u0003da\u000bPq1G/,b\u001b\u000e|\u000e#pw\u0011=d\u0002>ec\u00112z8 $oY}\u001bGmm!\u00120r\f\u0012 `\blg\u0006!8d\u0003ys\u0006.&^\u001d0iNaG!Pq1\u0005,.j/\"d\np;`\u001c$t\u0014e/`\u0013:N\u00148 (\\[1Gmmg\u0002>\u007f\u0013\u0012 h\u001elg\u0006!8d\u0003yw\u0015\"#u/<x\tda\u000bPq1G+?n\u001e%N\n,5<\u00060}\u0012(>)\u0016#~\t9\u0012l\u0011)8KGm!Pqw\u0015\"#u/\"d\np;`\u001c$t\u0014e+s\u001f?e8>8lYj\r}1\u0015(>n\u001c$e\u000e\"#<*\u0004\u007f\u0006/!dP%~G.%d\u0013:1\u0014(?w\u00192tG>9`\u000441J`mo\u001f%1\u0015(,e\t\r}1\u0015(>n\u001c$e\u000e\"#<4\u0012p\t#\"uP7x\t)mL\u0015%c\u000e.>C\u0019?bG$#!\u00140e\u0006/,r\u0015\u007f1O.!t\u0003%t\u0015\u0003\"e\u0015\u0018uZ\u0005mP)\u0014s\u00192}\u0012>9d\u0002\u001f~\u0003(\u0004eP<d\u00149mc\u0015qb\u00029\u0017\u0014c\u0015\"?!\u00030g\u000e#*!=4e\u0015$.r28\u007f\u001a\u0002t\u0015;$b\u0015\u001cp\t,*d\u0002q|\u0012>9!\u001241\u0014(9\f\u0015T+\b\u0019DP\u0017C(\u0000m!\u0017x\u000b9(s\u001551\u00178/m\u0019\"y\u0002)mr\u0015#g\u000e.(rP7c\b m\u0006\u0017~\u0012#)!B\u0015T+\b\u0019DP\u0017C(\u0000mr\u0015#g\u000e.(^\u001d4e\u0015$.r/5t\u0013,$m\u0003qF/\b\u001fDP\"t\u0015;$b\u0015\u000e|\u00029?h\u0013\"N\u0000\"$ePl1X\u05f1\u0018_4\b\u001fUP\u0018_3\u0002mr\u0015#g\u000e.(^\u001d4e\u0015$.rzq1Gmef\u001f8uK#\"e\u00158uK=8c\u001c8b\u000f()^\u00034c\u0011$.d/6~\u000e)as\u0015\"~\u000b89h\u001f?=\u0017(?h\u001f5N\u00149,s\u0004}x\t9(s\u00060}8>${\u0015}b\u0002?;h\u00134N\u00149,u\u0015}\u001bGmm!P\"e\u0006?9^\u00048|\u0002a(o\u0014\u000ee\u000e (-\u0011%e\u0002 =u\u00155=\u000689i\u001f#x\u001d()-\u0013>|\u0017!(u\u00155=\u0005,.j/<x\ta/`\u0013:N\n,5-\u00120r\f\u0012>t\u001d}w\u0015\"#u/<x\ta+s\u001f?e8 ,y\\7c\b#9^\u0003$|NG\u001eD<\u0014R3mr-O}.Kra>\\n=XaG!Pq1\n$#)\u0003%p\u00159\u0012u\u0019<tNaG!Pq1\n,5)\u0015?u89$l\u0015x=mmm!P2~\u0006!(r\u001349\u00148 )\u0011%e\u0002 =u\u001558K}d-zq1Gm.n\u0011=t\u0014.()\u0003$|O,8u\u0018>c\u000e7(eY}!NaG!Pq1\u0004\",m\u0015\"r\u0002e>t\u001dyr\b =m\u0015%t\u0003da1Y}\u001bGmm!9\u00179\n$#)\u0013>p\u000b(>b\u0015ys\u0006.&^\u001d8\u007fKm\u007f0Df%_~{5Gx8Z\u007f|5Ge)T{y6\\\u001fD+\u0001al\u0019?9\u0004\",m\u0015\"r\u0002e/`\u0013:N\n$#-Pc Szy9Cg%Pdd(\\[1GmmH6y|\u00065eb\u001f0}\u0002>.dX3p\u0004&\u0012l\u0011)=G`|(Yl<Va\u0003T<\u001d=\n,5)\u0013>p\u000b(>b\u0015ys\u0006.&^\u001d0iKm`0Yx8KGm!PqX!e.n\u0011=t\u0014.()\u0003$|O/,b\u001b\u000eb\u0012 d-@x/U|y6Di\"Qyz-B`%Pyu2Fe&K.\"`\u001c4b\u0004(er\u0005<9\u0005,.j/\"d\nda1Yx=mmm!P\u0018WO $oX2~\u0006!(r\u001349\u0001?\"o\u0004\u000e|\u000e#a!B`%Pyu2Fe&Ndp3Ae&Su~7Df=)\u0018\u0001M\\<x\te.n\u0011=t\u0014.()\u0016#~\t9\u0012l\u0019?=G\u007f|5Ge)T{y6Yx8KGm!PqX!e `\byr\b,!d\u00032tO+?n\u001e%N\n,5-P| Ndp,A}_2\u0001\u0001-\u001d0iO.\"`\u001c4b\u0004(eg\u0002>\u007f\u0013\u0012 `\b}1J|d(Y}\u001bGmm!9\u00179\u0004\",m\u0015\"r\u0002e>t\u001dyw\u0015\"#u/\"d\nda1Yo#Vyz5Hb'Sza3Ae&Su~7Df=\u0004\",m\u0015\"r\u0002e>t\u001dyw\u0015\"#u/\"d\nda1Yx\u001b!\u001f\u0002LP\"t\u0015;$b\u0015\u000e|\u00029?h\u0013\"10\u0005\bS5[1Gmmo\u001f5t\u000e)p>P\u0010_#Gm!Pqa\u0012/!h\u00039t\u0003\u0012>d\u0002'x\u0004(\u0012f\u001f8uZrm@>\u0015\u001bGmm!\u00024b\b!8u\u0019>\u007fZrm@>\u0015\u001bGmm!\u00004c\u000e\")^\u0003%p\u00159s<Oq1&\u0003\t\u000bPq1G=(s\u0019>u8>9`\u0002%:\u000e#9d\u0002'p\u000b\u0012>h\n4-ZrGF\"\u001eD7m\u000fXP?~\u0003($e\\!d\u0005!$r\u00184u8>(s\u00068r\u0002\u0012*n\u00195=\u0015(>n\u001c$e\u000e\"#\u000b8\u0010G.\u0003\n!\u001d8\u007fO>9`\u0002%N\u0013$ dYq/G}GN>qU2\u001d\u0001H3\u0010E\"m\u0006D)qD7\t\fU5[1Gmmr\u00040c\u0013\u00129h\u001d4,\u0011,!t\u0015\"9\u00149,s\u0004\u000ee\u000e ((\\[1Gmmd\u001e5N\u0013$ dM'p\u000b8(rX4\u007f\u0003\u00129h\u001d48KGm!Pqp\u00139(l\u0000%t\u0003p;`\u001c$t\u0014e,u\u00044|\u00179(eY}\u001bGmm!\u0011$e\u000f\"?h\n4uZ;,m\u00054bO,8u\u0018>c\u000e7(eY}\u001bGmm!\u0013>|\u0017!(u\u00155,\u0011,!t\u0015\"9\u0004\" q\u001c4e\u0002)d-zq1Gm/`\u0013:N\n$#<\u00060}\u0012(>)\u00120r\f\u0012 h\u001ex=mmm!P3p\u0004&\u0012l\u0011),\u0011,!t\u0015\"9\u0005,.j/<p\u001fda\u000bPq1G/,b\u001b\u000eb\u0012 pw\u0011=d\u0002>ec\u00112z8>8lY}\u001bGmm!\u0016#~\t9\u0012l\u0019?,\u0011,!t\u0015\"9\u0001?\"o\u0004\u000e|\u000e#d-zq1Gm+s\u001f?e8 ,yM'p\u000b8(rX7c\b#9^\u001d0iNaG!Pq1\u0001?\"o\u0004\u000eb\u0012 pw\u0011=d\u0002>eg\u0002>\u007f\u0013\u0012>t\u001dx*A\u0017p\u000e!(eP%~G>,w\u0015qe\u000f(mj\u0015(bG\"?!\u00060}\u0012(>!\u001f71\u0013%(!\u001d4b\u0014,*dP2~\t9(y\u0004q|\u0006==h\u001e6?\u0011}1\n$#Q\u0015#x\b)\u001eu\u0011#eZ\u001bq|\u00029?h\u0013\"1\u0005$#rP%~G>8l\u001d0c\u000e7(/\u0003qJD";
                var4_3 = "\u0004\u007f\u0006/!dP%~G+$o\u0014qb\u0002?;h\u001341\u000f(,e\u0015#bG``!\u001e>eG?(`\u0014(:\u0004\u007f\u0006/!dP%~G+$m\u00044cG=(s\u001d8e\u0013()!\u0000$s\u000b$>i\u001551\u0014(?w\u00192t\u0014m`,P?~\u0013m?d\u00115h!\u0012~\u0012!)oW%1\u0014,;dP<t\u0013?$b\u0003qb\u0012  `\u0002(1\u0005$#>qF/\b\u001fDP!t\u0015$\"e#%p\u00159m=Pka\u0002?$n\u0014\u0002e\u0006?9!1\u001fUG?(r\u001f=d\u0013$\"oPl1]?(r\u001f=d\u0013$\"o\u000e}1\u0014(?w\u00192t \"$eM\u001e\u0005c\u0006#>`\u0013%x\b#\u0000`\u001e0v\u0002?ml\u0005\"eG/(!\u00034e\u000e}1\u0014(?w\u00192t \"$eM\u0002qJ\u000b}1\u00038?`\u00048~\tp\u0013<t\u0013?$b\u0003\u0017x\t(\u0004o\u00044c\u0011,!-\u0012p\t#\"uP7x\t)mL\u0015%c\u000e.>C\u0019?bG$#!\u00140e\u0006/,r\u0015\u007f1O#\"e\u0015\u0018uZ\u0005mP)\u0014s\u0011}1\n,5Q\u0015#x\b)\u001eu\u0011#eZ\u066e\u0018_4\b\u001fUP\u0018_3\u0002mr\u0015#g\u000e.(^\u001d4e\u0015$.r/5t\u0013,$m\u0003[1Gmm)\u00034c\u0011$.d/<t\u0013?$b\u0003\u000ev\b$)-\u001d0a\u0017$#f/'p\u000b8(r/6~\u000e)a`\u0004%t\n=9d\u0014}p\u00129%n\u00028k\u0002)ab\u001f<a\u000b(9d\u0014}s\u0006.&^\u001d8\u007fK/,b\u001b\u000e|\u00065ac\u00112z8>8l\\7c\b#9^\u001d8\u007fK+?n\u001e%N\n,5-\u0016#~\t9\u0012r\u0005<8m\u001e\bM5\u0012Emmm!Py\u001bGmm!Pq1G\u001e\bM5\u0012EG*\"h\u0014qW5\u0002\u0000!\u00034c\u0011$.d/<t\u0013?$b\u0003qF/\b\u001fDzq1Gmm!Pq\u007f\b)(h\u0014l.G\f\u0003Ezq1Gmm!Pqa\u0012/!h\u00039t\u0003\u0012>d\u0002'x\u0004(\u0012f\u001f8uZrm@>\u0015\u001bGmm!Pq1G?(r\u001f=d\u0013$\"oMn1&\u0003\t\u000bPq1Gmm!P!t\u0015$\"e/\"e\u0006?9<O[1Gmm(P0bG$)-zq1Gm>l\u0014\u007f|\u0006==h\u001e6N\u0011,!t\u0015\"N\u0000\"$e\\[1Gmmb\u001f0}\u0002>.dX\"d\ne>l\u0014\u007fp\u00139(l\u0000%t\u0003da1Y}\u001bGmm!\u0013>p\u000b(>b\u0015yb\u0012 er\u001d5?\u000689i\u001f#x\u001d()(\\a8KGm!Pqr\b,!d\u00032tO>8lX\"|\u0003c.n\u001d!}\u00029(eY}!NaG!Pq1.\u000bel\u0019?9\u0004\",m\u0015\"r\u0002e>l\u0014\u007fs\u0006.&^\u001d8\u007fKm\u007f0Df%_~{5Gx8Z\u007f|5Ge)T{y6\\\u001fD+\u0001al\u0019?9\u0004\",m\u0015\"r\u0002e>l\u0014\u007fs\u0006.&^\u001d8\u007fKm\u007f0Df%_~{5Gx8NaG!Pq1.\u000bel\u0011)9\u0004\",m\u0015\"r\u0002e>l\u0014\u007fs\u0006.&^\u001d0iKm`0Yx,J|aO%\u001d]K ,yX2~\u0006!(r\u001349\u0014 )/\u00120r\f\u0012 `\b}1J|d(Y}\u001bGmm!9\u00179\u0004\",m\u0015\"r\u0002e>t\u001dyb\n)cc\u00112z8>8lY}!Ns\u007f0Df%_~{5G}#Vyz5Hb'Szab\u001f0}\u0002>.dX\"d\ne>l\u0014\u007fs\u0006.&^\u0003$|Na}(Y}\u001bGmm!9\u00179\n$#)\u0013>p\u000b(>b\u0015yb\n)cg\u0002>\u007f\u0013\u0012 h\u001e}1U|y6Di\"Qyz(Yl#Vyz5Hb'SzaO%\u001d]K $oX2~\u0006!(r\u001349\u0014 )/\u0016#~\t9\u0012l\u0019?=G\u007f|5Ge)T{y6Yx8KGm!PqX!e `\byr\b,!d\u00032tO> e^7c\b#9^\u001d0iKm`0Yx,J|aO%\u001d]K ,yX2~\u0006!(r\u001349\u0014 )/\u0016#~\t9\u0012l\u0011)=G`|(Yx=mmm!P\u0018WO.\"`\u001c4b\u0004(er\u0005<9\u0014 )/\u0016#~\t9\u0012r\u0005<8K}d?B`%Pyu2Fe&K\u007f|5Ge)T{y6\\2~\u0006!(r\u001349\u00148 )\u0003<uI+?n\u001e%N\u00148 (\\a8NG\u000bS?\u001c1\u0014(?w\u00192t8 (u\u00028r\u0014m>l\\qb\u0002?;h\u00134N\n(9s\u00192b8)(u\u00118}\u0014m>l\u0014[F/\b\u001fDPq1Gm>l^6~\u000e)m<P\"|\u0003c>d\u0002'x\u0004(\u0012l\u0015%c\u000e.>^\u0017>x\u0003m\fO4[1Gmmr\u001d\u007f\u007f\b)(h\u0014l.G\f\u0003Ezq1Gm>l^!d\u0005!$r\u00184u8>(s\u00068r\u0002\u0012*n\u00195,Xm\fO4[1Gmmr\u001d\u007fc\u0002>\"m\u0005%x\b#p>P\u0010_#Gm!Pqb\nc=d\u00028~\u0003\u0012>u\u0011#eYpr!P\u0010_#Gm!Pqb\nc=d\u00028~\u0003\u0012>u\u0011#eL> /\u0019?e\u0002?;`\u001c\u000eb\u000e7(=Mn\u001b \u001f\u0002T qS>m$e\\q|\u0006==h\u001e6N\u0011,!t\u0015\"N\u0000\"$ez\u001e_G\t\u0018Q<\u0018R&\u0019\b!;\u0014HG\u0018\u001dE1\u0005Tmmm!P0e\u0013( q\u00044uZ;,m\u00054bO,9u\u0015<a\u0013()(\\[1Gmm`\u0005%y\b?${\u00155,\u0011,!t\u0015\"9\u000689i\u001f#x\u001d()(\\[1Gmmb\u001f<a\u000b(9d\u0014lg\u0006!8d\u0003yr\b =m\u0015%t\u0003da\u000bPq1G/,b\u001b\u000e|\u000e#pw\u0011=d\u0002>ec\u00112z8 $oY}\u001bGmm!\u00120r\f\u0012 `\blg\u0006!8d\u0003ys\u0006.&^\u001d0iNaG!Pq1\u0005,.j/\"d\np;`\u001c$t\u0014e/`\u0013:N\u00148 (\\[1Gmmg\u0002>\u007f\u0013\u0012 h\u001elg\u0006!8d\u0003yw\u0015\"#u/<x\tda\u000bPq1G+?n\u001e%N\n,5<\u00060}\u0012(>)\u0016#~\t9\u0012l\u0011)8KGm!Pqw\u0015\"#u/\"d\np;`\u001c$t\u0014e+s\u001f?e8>8lYj\r}1\u0015(>n\u001c$e\u000e\"#<*\u0004\u007f\u0006/!dP%~G.%d\u0013:1\u0014(?w\u00192tG>9`\u000441J`mo\u001f%1\u0015(,e\t\r}1\u0015(>n\u001c$e\u000e\"#<4\u0012p\t#\"uP7x\t)mL\u0015%c\u000e.>C\u0019?bG$#!\u00140e\u0006/,r\u0015\u007f1O.!t\u0003%t\u0015\u0003\"e\u0015\u0018uZ\u0005mP)\u0014s\u00192}\u0012>9d\u0002\u001f~\u0003(\u0004eP<d\u00149mc\u0015qb\u00029\u0017\u0014c\u0015\"?!\u00030g\u000e#*!=4e\u0015$.r28\u007f\u001a\u0002t\u0015;$b\u0015\u001cp\t,*d\u0002q|\u0012>9!\u001241\u0014(9\f\u0015T+\b\u0019DP\u0017C(\u0000m!\u0017x\u000b9(s\u001551\u00178/m\u0019\"y\u0002)mr\u0015#g\u000e.(rP7c\b m\u0006\u0017~\u0012#)!B\u0015T+\b\u0019DP\u0017C(\u0000mr\u0015#g\u000e.(^\u001d4e\u0015$.r/5t\u0013,$m\u0003qF/\b\u001fDP\"t\u0015;$b\u0015\u000e|\u00029?h\u0013\"N\u0000\"$ePl1X\u05f1\u0018_4\b\u001fUP\u0018_3\u0002mr\u0015#g\u000e.(^\u001d4e\u0015$.rzq1Gmef\u001f8uK#\"e\u00158uK=8c\u001c8b\u000f()^\u00034c\u0011$.d/6~\u000e)as\u0015\"~\u000b89h\u001f?=\u0017(?h\u001f5N\u00149,s\u0004}x\t9(s\u00060}8>${\u0015}b\u0002?;h\u00134N\u00149,u\u0015}\u001bGmm!P\"e\u0006?9^\u00048|\u0002a(o\u0014\u000ee\u000e (-\u0011%e\u0002 =u\u00155=\u000689i\u001f#x\u001d()-\u0013>|\u0017!(u\u00155=\u0005,.j/<x\ta/`\u0013:N\n,5-\u00120r\f\u0012>t\u001d}w\u0015\"#u/<x\ta+s\u001f?e8 ,y\\7c\b#9^\u0003$|NG\u001eD<\u0014R3mr-O}.Kra>\\n=XaG!Pq1\n$#)\u0003%p\u00159\u0012u\u0019<tNaG!Pq1\n,5)\u0015?u89$l\u0015x=mmm!P2~\u0006!(r\u001349\u00148 )\u0011%e\u0002 =u\u001558K}d-zq1Gm.n\u0011=t\u0014.()\u0003$|O,8u\u0018>c\u000e7(eY}!NaG!Pq1\u0004\",m\u0015\"r\u0002e>t\u001dyr\b =m\u0015%t\u0003da1Y}\u001bGmm!9\u00179\n$#)\u0013>p\u000b(>b\u0015ys\u0006.&^\u001d8\u007fKm\u007f0Df%_~{5Gx8Z\u007f|5Ge)T{y6\\\u001fD+\u0001al\u0019?9\u0004\",m\u0015\"r\u0002e/`\u0013:N\n$#-Pc Szy9Cg%Pdd(\\[1GmmH6y|\u00065eb\u001f0}\u0002>.dX3p\u0004&\u0012l\u0011)=G`|(Yl<Va\u0003T<\u001d=\n,5)\u0013>p\u000b(>b\u0015ys\u0006.&^\u001d0iKm`0Yx8KGm!PqX!e.n\u0011=t\u0014.()\u0003$|O/,b\u001b\u000eb\u0012 d-@x/U|y6Di\"Qyz-B`%Pyu2Fe&K.\"`\u001c4b\u0004(er\u0005<9\u0005,.j/\"d\nda1Yx=mmm!P\u0018WO $oX2~\u0006!(r\u001349\u0001?\"o\u0004\u000e|\u000e#a!B`%Pyu2Fe&Ndp3Ae&Su~7Df=)\u0018\u0001M\\<x\te.n\u0011=t\u0014.()\u0016#~\t9\u0012l\u0019?=G\u007f|5Ge)T{y6Yx8KGm!PqX!e `\byr\b,!d\u00032tO+?n\u001e%N\n,5-P| Ndp,A}_2\u0001\u0001-\u001d0iO.\"`\u001c4b\u0004(eg\u0002>\u007f\u0013\u0012 `\b}1J|d(Y}\u001bGmm!9\u00179\u0004\",m\u0015\"r\u0002e>t\u001dyw\u0015\"#u/\"d\nda1Yo#Vyz5Hb'Sza3Ae&Su~7Df=\u0004\",m\u0015\"r\u0002e>t\u001dyw\u0015\"#u/\"d\nda1Yx\u001b!\u001f\u0002LP\"t\u0015;$b\u0015\u000e|\u00029?h\u0013\"10\u0005\bS5[1Gmmo\u001f5t\u000e)p>P\u0010_#Gm!Pqa\u0012/!h\u00039t\u0003\u0012>d\u0002'x\u0004(\u0012f\u001f8uZrm@>\u0015\u001bGmm!\u00024b\b!8u\u0019>\u007fZrm@>\u0015\u001bGmm!\u00004c\u000e\")^\u0003%p\u00159s<Oq1&\u0003\t\u000bPq1G=(s\u0019>u8>9`\u0002%:\u000e#9d\u0002'p\u000b\u0012>h\n4-ZrGF\"\u001eD7m\u000fXP?~\u0003($e\\!d\u0005!$r\u00184u8>(s\u00068r\u0002\u0012*n\u00195=\u0015(>n\u001c$e\u000e\"#\u000b8\u0010G.\u0003\n!\u001d8\u007fO>9`\u0002%N\u0013$ dYq/G}GN>qU2\u001d\u0001H3\u0010E\"m\u0006D)qD7\t\fU5[1Gmmr\u00040c\u0013\u00129h\u001d4,\u0011,!t\u0015\"9\u00149,s\u0004\u000ee\u000e ((\\[1Gmmd\u001e5N\u0013$ dM'p\u000b8(rX4\u007f\u0003\u00129h\u001d48KGm!Pqp\u00139(l\u0000%t\u0003p;`\u001c$t\u0014e,u\u00044|\u00179(eY}\u001bGmm!\u0011$e\u000f\"?h\n4uZ;,m\u00054bO,8u\u0018>c\u000e7(eY}\u001bGmm!\u0013>|\u0017!(u\u00155,\u0011,!t\u0015\"9\u0004\" q\u001c4e\u0002)d-zq1Gm/`\u0013:N\n$#<\u00060}\u0012(>)\u00120r\f\u0012 h\u001ex=mmm!P3p\u0004&\u0012l\u0011),\u0011,!t\u0015\"9\u0005,.j/<p\u001fda\u000bPq1G/,b\u001b\u000eb\u0012 pw\u0011=d\u0002>ec\u00112z8>8lY}\u001bGmm!\u0016#~\t9\u0012l\u0019?,\u0011,!t\u0015\"9\u0001?\"o\u0004\u000e|\u000e#d-zq1Gm+s\u001f?e8 ,yM'p\u000b8(rX7c\b#9^\u001d0iNaG!Pq1\u0001?\"o\u0004\u000eb\u0012 pw\u0011=d\u0002>eg\u0002>\u007f\u0013\u0012>t\u001dx*A\u0017p\u000e!(eP%~G>,w\u0015qe\u000f(mj\u0015(bG\"?!\u00060}\u0012(>!\u001f71\u0013%(!\u001d4b\u0014,*dP2~\t9(y\u0004q|\u0006==h\u001e6?\u0011}1\n$#Q\u0015#x\b)\u001eu\u0011#eZ\u001bq|\u00029?h\u0013\"1\u0005$#rP%~G>8l\u001d0c\u000e7(/\u0003qJD".length();
                var1_4 = 43;
                var0_5 = -1;
lbl7:
                // 2 sources

                while (true) {
                    v0 = 37;
                    v1 = ++var0_5;
                    v2 = var2_2.substring(v1, v1 + var1_4);
                    v3 = -1;
                    break block9;
                    break;
                }
lbl13:
                // 1 sources

                while (true) {
                    var5[var3_1++] = ServiceMetricsManagerImpl.a(v0, ServiceMetricsManagerImpl.a(v2));
                    if ((var0_5 += var1_4) < var4_3) {
                        var1_4 = var2_2.charAt(var0_5);
                        ** continue;
                    }
                    var2_2 = "WC.K\u001d2E3\u0004\u0019\u00077\u0014T$\u0018\u0018N8\u0010\u00174\u0018\u000eUv\u0013R5\n\u0002K%Y";
                    var4_3 = "WC.K\u001d2E3\u0004\u0019\u00077\u0014T$\u0018\u0018N8\u0010\u00174\u0018\u000eUv\u0013R5\n\u0002K%Y".length();
                    var1_4 = 4;
                    var0_5 = -1;
lbl22:
                    // 2 sources

                    while (true) {
                        v0 = 3;
                        v4 = ++var0_5;
                        v2 = var2_2.substring(v4, v4 + var1_4);
                        v3 = 0;
                        break block9;
                        break;
                    }
                    break;
                }
lbl28:
                // 1 sources

                while (true) {
                    var5[var3_1++] = ServiceMetricsManagerImpl.a(v0, ServiceMetricsManagerImpl.a(v2));
                    if ((var0_5 += var1_4) < var4_3) {
                        var1_4 = var2_2.charAt(var0_5);
                        ** continue;
                    }
                    break block10;
                    break;
                }
            }
            switch (v3) {
                default: {
                    ** continue;
                }
                ** case 0:
lbl39:
                // 1 sources

                ** continue;
            }
        }
        ServiceMetricsManagerImpl.i = var5;
        ServiceMetricsManagerImpl.d = ServiceMetricsManagerImpl.i[13];
        ServiceMetricsManagerImpl.c = ServiceMetricsManagerImpl.i[26];
        ServiceMetricsManagerImpl.b = ServiceMetricsManagerImpl.i[25];
        var0_6 = ServiceMetricsManagerImpl.i;
        ServiceMetricsManagerImpl.a = var0_6[22] + MetricsBin.class.getName() + var0_6[3];
        ServiceMetricsManagerImpl.e = Logger.getLogger(ServiceMetricsManagerImpl.class.getName());
        ServiceMetricsManagerImpl.f = new ConfiguredSessionFactoryBean.ConfiguredGOIDGenerator();
    }

    private static Exception a(Exception exception) {
        return exception;
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x55);
        }
        return cArray;
    }

    /*
     * Handled impossible loop by duplicating code
     * Enabled aggressive block sorting
     */
    private static String a(int n2, char[] cArray) {
        char[] cArray2;
        block11: {
            int n3;
            int n4;
            int n5;
            block10: {
                n5 = n2;
                cArray2 = cArray;
                n4 = cArray.length;
                n3 = 0;
                if (!true) break block10;
                n4 = n4;
                if (n4 <= n3) break block11;
            }
            do {
                n5 = n5;
                cArray2 = cArray2;
                int n6 = n3;
                cArray2[n6] = (char)(cArray2[n6] ^ (n5 ^ (switch (n3 % 7) {
                    case 0 -> 116;
                    case 1 -> 52;
                    case 2 -> 66;
                    case 3 -> 104;
                    case 4 -> 104;
                    case 5 -> 36;
                    default -> 85;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

