(()=>{if(!o||!o.desktopSubscription||(o.desktopSubscription!==yf&&o.desktopSubscription!==vf&&o.desktopSubscription!==bf)){if(o&&o.purchases)for(let e of o.purchases)VQ.includes(e)&&C({hasPurchased:!0,isSubscription:!1,plan:vf});if(o&&o.purchaseTimes)for(let e of o.purchaseTimes)YQ.includes(e.productType)&&C({hasPurchased:!0,isSubscription:!1,plan:yf,startTime:e.updatedAt,freeUpdateExpired:e.freeUpdateExpired,freeUpdateExpiredAt:e.freeUpdateExpiredAt,});}elseC({hasPurchased:!0,isSubscription:!0,plan:o.desktopSubscription,});},[o])