(self.webpackChunkhhgDiscoverV1=self.webpackChunkhhgDiscoverV1||[]).push([[1231,6419,7671],{TSYQ:function(e,t){var i;/*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var o={}.hasOwnProperty;function classNames(){for(var e=[],t=0;te&&(!e.includes("=")||e.split("=")[1]));return 0===i.length?e:"".concat(e,"?").concat(i.join("&"))}return o},getApiPath=()=>{let{NEXT_PUBLIC_BASE_API_URL:e,WP_INTERNAL_API:t}=n.Km;return(t||e)+"wp-json/api/"}},"JOt+":function(e,t,i){"use strict";i.r(t),i.d(t,{MAPPED_AXIOS_INSTANCE:function(){return v},callApiNew:function(){return callApiNew}});var o=i("77FC"),s=i("dvDa"),n=i("9brV"),c=i("z2FJ"),l=i("p46w"),_=i.n(l),d=i("Sb+D"),u=i("/sjq");let getFormattedUrl=e=>{let{template:t,params:i,url:o}=e,s=(0,c.J)(o||"",{...i,..."together"===t?{websiteUrl:"https://".concat(u.domainLocales[n.Km.DEPLOY_LOCALE||"en-PH"])}:{},...("care"===t||"careV2"===t||"premium"===t||"unified"===t?{site:u.domainLocales[n.Km.DEPLOY_LOCALE||"en-PH"]}:{})||"ecommerce"===t,..."babyVaccine"===t?{domain:u.domainLocales[n.Km.DEPLOY_LOCALE||"en-PH"]}:{}});return s},getMainInterceptors=e=>({request:t=>{try{let i=_().get(n.ty),o=getFormattedUrl({url:t.url||"",params:t.params,template:e});t.url=o,t.params="tl-PH"===n.Km.NEXT_PUBLIC_DEPLOY_LOCALE?{lang:"fil"}:null,i&&(t.headers.Authorization="Bearer ".concat(i))}catch(e){console.error("\uD83D\uDE80 ~ file: interceptors.ts:53 ~ getMainInterceptors ~ error:",e)}finally{return t}},response:e=>e,error:e=>{console.error(e),(0,d.Cp)(e)}}),E={discover:void 0,care:"care",careV2:"careV2",together:"together",sso:void 0,lead:void 0,sidis:void 0,sidis_frontend:void 0,sidis_subscription:void 0,sidis_update:void 0,baby_vaccine:"babyVaccine",premium:"premium",unified:void 0,ecommerce:"ecommerce",chatbot:"chatbot",open_health_tools:void 0},T={discover:(0,c.e)(),premium:n.Km.NEXT_PUBLIC_PREMIUM_URL,together:n.Km.NEXT_PUBLIC_TOGETHER_API+"api/v1/",care:n.Km.NEXT_PUBLIC_CARE_API+"api/",careV2:n.Km.NEXT_PUBLIC_CARE_API+"api/v2/",sso:n.Km.NEXT_PUBLIC_SSO+"api/",lead:n.Km.NEXT_PUBLIC_LEAD_API+"api/",chatbot:n.Km.NEXT_PUBLIC_CHAT_BOT_API,sidis:n.Km.NEXT_PUBLIC_SIDIS_TEMPLATE_API,sidis_update:n.Km.NEXT_PUBLIC_SIDIS_API+"api/",sidis_frontend:n.Km.NEXT_PUBLIC_SIDIS_API_GET+"frontend/",sidis_subscription:n.Km.NEXT_PUBLIC_SIDIS_API_GET+"api/",baby_vaccine:n.Km.INTERNAL_VACCINATION_TOOL_API||n.Km.NEXT_PUBLIC_VACCINATION_TOOL_API,unified:n.Km.NEXT_PUBLIC_UNIFIED_API,ecommerce:n.Km.NEXT_PUBLIC_ECOMMERCE_API+"rest/"+n.Km.NEXT_PUBLIC_STORE_CODE+"/V1/",open_health_tools:n.Km.NEXT_PUBLIC_OPEN_HEALTH_TOOLS_API};s.A.defaults.headers.post["Content-Type"]="application/json",s.A.defaults.timeout=3e4;let p=s.A.create({baseURL:T.discover}),I=s.A.create({baseURL:T.premium}),h=s.A.create({baseURL:T.together}),g=s.A.create({baseURL:T.care}),A=s.A.create({baseURL:T.careV2,headers:{Accept:"version=2.0.0"}}),m=s.A.create({baseURL:T.sso,headers:{"Accept-Encoding":"*"}}),O=s.A.create({baseURL:T.lead}),S=s.A.create({baseURL:T.chatbot}),f=s.A.create({baseURL:T.sidis}),b=s.A.create({baseURL:T.sidis_update}),L=s.A.create({baseURL:T.sidis_frontend}),G=s.A.create({baseURL:T.sidis_subscription}),y=s.A.create({baseURL:T.baby_vaccine}),P=s.A.create({baseURL:T.unified}),R=s.A.create({baseURL:T.ecommerce});(async()=>{[p,m,g,A,O,f,L,G,b,y,h,I,P,R].forEach(e=>{let{request:t,error:i,response:o}=getMainInterceptors();e.interceptors.request.use(t,i),e.interceptors.response.use(o,i)});let{together:e,care:t,careV2:i,premium:o,baby_vaccine:s,unified:n,ecommerce:c,chatbot:l}=E;h.interceptors.request.use(getMainInterceptors(e).request,getMainInterceptors().error),g.interceptors.request.use(getMainInterceptors(t).request,getMainInterceptors().error),A.interceptors.request.use(getMainInterceptors(i).request,getMainInterceptors().error),I.interceptors.request.use(getMainInterceptors(o).request,getMainInterceptors().error),y.interceptors.request.use(getMainInterceptors(s).request,getMainInterceptors().error),P.interceptors.request.use(getMainInterceptors(n).request,getMainInterceptors().error),R.interceptors.request.use(getMainInterceptors(c).request,getMainInterceptors().error),S.interceptors.request.use(getMainInterceptors(l).request,getMainInterceptors().error)})();let C=s.A.create({baseURL:n.Km.NEXT_PUBLIC_OPEN_HEALTH_TOOLS_API}),v={discover:p,care:g,careV2:A,together:h,sso:m,lead:O,sidis:f,sidis_frontend:L,sidis_subscription:G,sidis_update:b,baby_vaccine:y,premium:I,unified:P,ecommerce:R,chatbot:S,open_health_tools:C},callApiNew=async function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"discover",s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c=v[i];try{let i=await c({url:e,...t});if(i)return s?i:i.data}catch(i){if((0,o.H4)(null,e,(null==t?void 0:t.method)||"GET","",i),n)throw i}return null}},"LSb+":function(e,t,i){"use strict";i.r(t),i.d(t,{PATHS:function(){return o}});let o={CATEGORY:{GET_EXPERT_OF_CATEGORY:"category/expert/?id={id}",GET_CATEGORY_TAG:"tags?category_id={categoryId}",GET_AZ_DRUGS:"category/a-z/{category}",GET_CATEGORY_DETAIL:"category/{slug}",GET_CATEGORY_OR_ARTICLE_DETAIL:"fetch{basePath}/{fullSlug}",GET_CATEGORIES:"categories?type={type}",GET_TRENDING_CATEGORIES:"category/trending"},ARTICLE:{GET_ARTICLE_BY_TAG:"articles?category_id={categoryId}&tag_id={tagId}",GET_ARTICLE_OF_CATEGORY_NO_EXPLAINERS:"articles?category_id={categoryId}&page={currentPage}&skip_ids={ids}",POST_ARTICLE_FEEDBACK:"article/feedback/{id}",GET_PREVIEW_ARTICLE:"fetch{basePath}/{fullSlug}/?preview_nonce={nonce}&preview=true",GET_ARTICLE_OF_CATEGORY:"articles?category_id={categoryId}&page={currentPage}",GET_ARTICLE_DETAIL:"article/{slug}/?skip_ids={skipIds}&_isrelated={isRelated}",GET_ARTICLES:"articles?ids={ids}",GET_BOOST_PAGE_VIEW_INFO:"boost/popup-card?type={type}&article_id={articleId}&primary_category={primaryCategoryId}&community={community}&post_id={postId}"},HEALTH_TOOL:{GET_WEEK_PREGNANCY_PROGRESS:"health-tools/due-date-calculator/all",OVULATION_CREATE_EVENT:"ovulation/event?method={method}&day={day}&cycle={cycle}&period={period}&token={token}&user_id={user_id}",GET_HEALTH_TOOL_OVULATION_INFO:"health-tools/ovulation-calculator/info",GET_HEALTH_TOOL_OVULATION_SUGGESTED_ARTICLES:"health-tools/ovulation-calculator/result?method={method}",GET_HEALTH_TOOL_BMI_INFO:"health-tools/bmi-calculator/info?type={type}",GET_HEALTH_TOOL_BMI_INFOR:"health-tools/bmi-calculator/infor?gender={gender}&level={level}",GET_HEALTH_TOOL_BABY_GROWTH_INFO:"health-tools/baby-growth-tracking/info",GET_HEALTH_TOOL_BABY_GROWTH_RESULT:"health-tools/baby-growth-tracking/result",GET_HEALTH_TOOL_BMI_RESULT:"health-tools/bmi-calculator/result/?gender={gender}&bmi={bmi}&age={age}&type={type}&level={level}&unit={unit}",GET_HEALTH_TOOL_BMR_INFO:"health-tools/bmr-calculator/info",GET_HEALTH_TOOL_BMR_INFOR:"health-tools/bmr-calculator/infor/?status={status}",GET_HEALTH_TOOL_BMR_RESULT:"health-tools/bmr-calculator/result/?kcals={kcals}&gender={gender}&age={age}&status={status}&activity_level={activityLevel}",GET_HEALTH_TOOL_PWG_INFO:"health-tools/preweight-gain-calculator/info",GET_HEALTH_TOOL_PWG_RESULT:"health-tools/preweight-gain-calculator/result?bmi={bmi}&week={week}&weight_gain={pwg}&type={type}",GET_HEALTH_TOOL_THR_RESULT:"health-tools/target-heart-rate/result?result=heart-rate&gender={gender}&age={age}&resting_rate={rate}&intensity={intensity}",GET_HEALTH_TOOL_THR_INFO:"health-tools/target-heart-rate/info",GET_HEALTH_TOOL_BABY_POOP:"health-tools/baby-poop-tool",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info",GET_DUE_DATE_RESULT:"health-tools/due-date-calculator/formula",GET_DUE_DATE_ALL_WEEKS:"health-tools/due-date-calculator/all",GET_DUE_DATE_SUGGESTED_ARTICLES:"health-tools/due-date-calculator/result?from_week={from}&to_week={to}",GET_ALL_HEALTH_TOOLS:"healthtools?ismenu=0&per_page=100",GET_HEALTH_TOOLS_HOME_PAGE:"healthtools?ishome=1",GET_HEALTH_TOOLS_BY_CATEGORY:"healthtools?_hasgroup=1",GET_HEALTH_TOOL_BABY_VACCINE_INFO:"health-tools/vaccination/info",GET_HEALTH_TOOL_BABY_VACCINE_RESULT:"health-tools/vaccination/result",GET_HEALTH_TOOL_BABY_VACCINE_TIMELINE:"health-tools/vaccination/timeline",GET_HEALTH_TOOL_BABY_VACCINE_WITH_ID:"health-tools/vaccination/vaccine/{vaccineId}",CALCULATE_CALORIES:"healthtools/calculator/?weight={weight}&height={height}&activity_level={activityLevel}&age={age}&gender={gender}&unit={unit}",GET_AIR_POPULATION_INFO:"health-tools/air-population-tool/info",GET_AIR_POPULATION_PROVINCE:"health-tools/air-population-tool/provinces",GET_AIR_POPULATION_SPECIFIC_PROVINCE:"health-tools/air-population-tool/result?type={type}&state={name}&lat={lat}&lng={lng}",GET_AIR_POPULATION_DEFAULT:"health-tools/air-population-tool/result",GET_SITEWIDE_BANNER:"sitewide/health-tool",GET_LANDING_PAGE:"healthtools/landing-page"},EXPERT:{GET_ALL_EXPERTS:"experts",GET_ALL_EXPERTS_PAGING:"experts?page={page}&number={perPage}",GET_ALL_EXPERTS_HEADING:"expert/heading",GET_EXPERT:"expert/{slug}",GET_EXPERT_POST:"expert/article?page={page}&per_page={perPage}&user_id={userId}&number={numberOfPost}&reviewed_by_expert={reviewedByExpert}&offset={offset}",GET_LIST_OF_SPECIALTIES:"specialty",GET_EXPERT_BY_SPECIALTY:"experts?specialty={specialty}",GET_EXPERT_BY_NAME_AND_SPECIALTY:"experts?s={name}&specialty={specialty}&page={page}&search_by=display_name"},SSO:{POST_CHANGE_EMAIL:"user/change-email",POST_COMMENT_NOTIFICATION:"comment/notification",POST_SSO_VERIFY_TOKEN:"verify-id-token",SSO_FEEDBACK:"feedback/create",SSO_FEEDBACK_USER:"feedback/create?result=like",GET_FEATURE:"feature",UPDATE_FEATURE:"feature/update",CREATE_BOOKMARK:"bookmark/create",DELETE_BOOKMARK:"bookmark/delete",DELETE_ALL_BOOKMARK:"bookmark/delete-all",SSO_UPDATE_FIRST_TIME_BOOKMARK:"bookmark/update-first-time",GET_ALL_BOOKMARK:"bookmark",UPDATE_PROFILE:"user/update",POST_FCM_TOKEN_AUTH:"user/webpush",POST_FCM_TOKEN:"webpush",UPDATE_SUBSCRIPTION:"user/subscription",ONBOARDING_EMAIL:"user/onboarding/yesdok-email",POST_VERIFY_CHANGE_EMAIL:"user/verify-change-email",UPDATE_HEALTH_TOOL:"healthtool/update",SEND_OTP_VIA_WHATSAPP:"sms/whatsapp_otp",VERIFY_OTP_VIA_WHATSAPP:"sms/whatsapp_verify",AUTH_APP_TOKEN:"auth-app-token",UPLOAD:"upload"},SPOTLIGHT:{GET_SPOTLIGHT_LANDING:"spotlight/{slug}/?group_id={groupId}&additional_slug={additionalSlug}&api_for_website=1",GET_ALL_SPOTLIGHT:"spotlights/?per_page={perPage}&order_by={orderBy}",CHECK_IS_SPOTLIGHT_URL:"find-by-url/?url={url}"},TOGETHER:{GET_TOGETHER_COMMUNITY:"community?website_url={websiteUrl}&community_in={includeIds}",POST_TOGETHER_LIKE_POST:"post/{postId}/like?website_url={websiteUrl}",GET_TOGETHER_TOPICS:"topic?community_id={communityId}&website_url={websiteUrl}&due_date_month={dueDateMonth}&due_date_year={dueDateYear}&show_hidden={showHidden}",GET_TOGETHER_POST_LIST:"post?community_id={communityId}&website_url={websiteUrl}&sort_by={sortBy}&article_id={articleId}&page={page}&report_start_date={reportStartDate}&report_end_date={reportEndDate}&user_type={userType}&post_in={includeIds}&items_per_page={pageSize}&start_date={startDate}&end_date={endDate}&related_posts={postId}&post_by={postBy}&ignore-cache={ignoreCache}",GET_TOGETHER_POST_DETAIL:"post/{idOrSlug}/?website_url={websiteUrl}",GET_TOGETHER_POST_COMMENT:"comment?website_url={websiteUrl}&post_id={postId}&page={page}&sort_by={sort}&items_per_page={perPage}&_without_reply={withoutReply}",GET_TOGETHER_COMMUNITY_DETAIL:"community/{communityId}?website_url={websiteUrl}",GET_TOGETHER_COMMUNITY_DETAIL_AUTH:"auth/community/{communityId}?website_url={websiteUrl}",POST_VALIDATE_ASK_DOCTOR:"validate-ask-doctor-post",GET_TOGETHER_SUGGESTED_POST:"suggested-post?topic_id={topicId}&website_url={websiteUrl}",POST_CREATE_POST:"post/create?website_url={websiteUrl}",POST_TOGETHER_JOIN_COMMUNITY:"community/join?website_url={websiteUrl}",POST_TOGETHER_JOIN_TOPIC:"topic/join?website_url={websiteUrl}",POST_TOGETHER_LEAVE_TOPIC:"topic/leave?website_url={websiteUrl}",GET_TOGETHER_USER_POSTS:"profile/posts?website_url={websiteUrl}",GET_TOGETHER_USER_AUTHORIZE:"auth/user/{userId}",IMAGE_UPLOAD:"comment/image/upload?website_url={websiteUrl}",USER:{DETAIL:"profile/user/detail?website_url={websiteUrl}&user_id=0&email={email}&filter_by_email=1",LIST_POST:"profile/user/posts?website_url={websiteUrl}&user_id={id}&hhd_expert_id={hhgExpertId}&is_anonymous={isAnonymous}&paging=none&items_per_page={pageSize}",LIST_ANSWERS:"replied/{id}?website_url={websiteUrl}&paging=1&items_per_page={pageSize}&filter_by_expert_hhd={filterByExpertHhd}"},FETCH_PREVIEW:"fetch/preview/?website_url={websiteUrl}",FETCH_MULTI_PREVIEW:"fetch/preview-multi/?website_url={websiteUrl}",HEALTH_TOOL:{CREATE:"health-profile/create?website_url={websiteUrl}",GET_STATUS:"health-profile/{type}/get-status?website_url={websiteUrl}"},GET_ELASTIC_SEARCH:"elasticsearch/search?lang={lang}&website_url={websiteUrl}&keyword={keyWord}&paged={page}&per_page={pageSize}&type={type}",COUNT_ELASTIC_SEARCH:"elasticsearch/count-total?website_url={website_url}&keyword={keyword}"},CARE:{GET_CARE_GEOBYIP:"geobyip?latitude={latitude}&longitude={longitude}&site={site}",GET_CARE_LIST_EMBEDDING:"{type}?site={site}&city_id={cityId}&random=1&{type_id}={id}&recommend_same_province=1",GET_CARE_SPECIALTY_DETAIL:"specialties/{specialtyId}?site={site}",GET_CARE_SERVICE_TYPE_DETAIL:"service-types/{serviceTypeId}?site={site}&keyword={keyword}",GET_CARE_CITY_LIST:"lists/cities?keyword={keyword}&site={site}&_nopaging=1",GET_SPECIALTY_LIST:"specialties?site={site}",GET_SEARCH_CARE:"search/?site={site}&keyword={keyword}&city_id={cityId}&district_id={districtId}&type={type}&specialty_id={specialtyId}&specialty_ids={specialtyIds}&doctor_specialty_id={doctorSpecialtyId}&doctor_ids={doctorIds}&service_id={serviceId}&hospital_branch_name={hospitalBranchName}&latitude={latitude}&longitude={longitude}&distance={distance}&page={page}&per_page={perPage}&show_districts={showDistricts}&_nopaging={noPaging}&is_discover={allowSearchInDistrict}&care_path={isCarePath}&skip_booking={skipBooking}",GET_HOSPITAL_BRANCH_LIST:"/hospital/branch?site={site}&keyword={keyword}",GET_HOSPITAL_DETAIL:"hospital/branch/{id}?site={site}",GET_DOCTOR_LIST:"doctors?site={site}&keyword={keyword}&hospital_id={hospitalId}&random={random}&city_id={cityId}&page={page}&specialty_id={specialtyId}&hospital_branch_id={hospitalBranchId}",GET_DOCTOR_DETAIL:"doctors/{id}?site={site}",GET_DOCTOR_SCHEDULE:"doctors/{id}/schedule?site={site}&from_date={startDate}&to_date={endDate}",GET_SERVICE_SCHEDULE:"hospital/service/{serviceId}/schedule?site={site}&from_date={startDate}&to_date={endDate}",GET_SERVICE_DETAIL:"hospital/service/{serviceId}?site={site}",GET_ALL_SERVICE_BASED_ON_SERVICE:"hospital/services?site={site}&hospital_branch_id={hospitalBranchId}",GET_BRANCH_DETAIL:"search/?site={site}&type={type}&hospital_branch_id={id}",GET_TOP_SERVICES:"options/top_services?site={site}&show_district={showDistrict}&city_id={cityId}&categories={categoryIds}",GET_CITY_ID_BY_LAT_LNG:"geobyip?site=hellobacsi.com&latitude={lat}&longitude={lng}",GET_LISTING_POPULAR:"v4/listing-popular?site={site}",GET_LISTING_DETAIL:"v4/listing?site={site}&product_type={productType}",GET_LISTING_FEEDBACK:"v4/listing-feedback?site={site}",GET_SEARCH_LISTING:"v4/listing-home-search?site={site}&keyword={keyword}"},LEADGEN:{POST_LEAD_IMPRESSION:"campaign/{campaignCode}/impression",POST_LEAD_POPUP_EXIT:"campaign/{campaignCode}/popup_exit",POST_LEAD_LEAD:"campaign/{campaignCode}/lead",POST_LEAD_SEND_OTP:"sms/otp",POST_LEAD_VERIFY_OTP:"sms/verify",POST_LEAD_GET_LOG:"collection/get-data",POST_LEAD_UPDATE_LOG:"collection/log",POST_LEAD_CHECK_PHONE_LOG:"collection/log/check-phone",POST_LEAD_FRISO_VERIFY_PHONE_EXIST:"friso/check",POST_LEAD_VERIFY_EXIST_EMAIL:"collection/log/check-email",POST_LEAD_VERIFY_EXIST_PHONE:"collection/log/check-phone-with-campaign",GET_FORMULA_CTA:"formula-cta?category_id={categoryIds}&country_code={countryCode}",GET_CTA_SUBMIT:"collection/cta-submit",POST_TRACKING_OTHERS:"collection/tracking-others"},SIDIS:{GET_UNSUBSCRIPTION:"unsubscription?eid={eid}&cid={cid}&tid={tid}",PUT_UNSUBSCRIPTION_UPDATE:"unsubscription",GET_SIDIS_TEMPLATE_BY_SLUG:"api/templates/get-by-slug/?domain={domain}&slug={slug}",POST_SIDIS_DUE_DATE:"frontend/tools/due_dates",POST_SIDIS_OVULATION:"frontend/tools/ovulations",POST_SIDIS_BMI:"frontend/tools/bmis",POST_SIDIS_BMR:"frontend/tools/bmrs",POST_SIDIS_THR:"frontend/tools/heart-rates",POST_SIDIS_PWG:"frontend/tools/pregnancies",GET_SIDIS_BMI:"api/bmis/{resultId}",GET_SIDIS_BMR:"api/bmrs/{resultId}",GET_SIDIS_THR:"api/heart-rates/{resultId}",GET_SIDIS_PWG:"api/pregnancies/{resultId}",GET_SIDIS_HEALTH_INFO:"api/my-profile/health-info",GET_SIDIS_RISK_SCREENERS:"api/my-profile/my-health/risk-screeners",GET_SIDIS_RISK_SCREENERS_ID:"api/my-profile/my-health/risk-screeners/{id}"},SUBOT:{POST_VERIFY_SMS_OTP:"sms/update-phone",POST_SEND_OTP:"sms/otp",POST_SEND_OTP_WHATSAPP:"whatsapp/otp",POST_VERIFY_OTP:"sms/verify",POST_VERIFY_OTP_WHATSAPP:"sms/verify-whatsapp",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",GET_INLINE_FIRST_NODE:"bots",GET_INLINE_MESSAGE:"inline/messages",GET_INLINE_IMPRESSION:"inline/impressions",GET_INLINE_CLICK:"inline/clicks",GET_SUBOT_LOG:"log/bot/{botId}/{cookieId}/{accountId}",POST_SUBOT_CREATE_LOG:"log/bot",FETCH_URL_DATA:"preview",GET_VOUCHER_QUANTITY:"vouchers/total_quantity?search={search}&client_id={clientId}"},COMMON:{GET_PROVINCE:"provinces?country_code={countryCode}",GET_DISTRICT:"districts?parent_id={parentId}",GET_COMMUNE:"communes?parent_id={parentId}",GET_FOOTER_INFO:"footer",GET_AFFILIATE_PRODUCT:"product/{productId}",GET_CAROUSEL:"carousel/{id}",GET_ABOUT_US_DATA:"about",GET_ADS_TXT:"adspage",POST_UPDATE_LOCATION:"tracking/geo/",GET_AUTHOR:"author/{slug}",GET_PAGE_STATIC:"page/{slug}",BASE_API_PATH:"/",GET_SEARCH_ARTICLES:"search?s={keyword}&page={page}",GET_ABOUT_US_META_TAG:"/about",GET_APP_LANDING_PAGE:"landing-page/tai-app",POST_HHG_CONTACT_FORM:"hhg-contact/v1/submit"},BABY_VACCINE:{POST_SUB_CHANNEL:"frontend/api/channels/registrations?site={domain}",POST_SUB_CHANNEL_DETAIL:"frontend/api/channels?site={domain}",GET_MAIN_TIMELINES:"frontend/api/babies/{babyId}/schedules?site={domain}",POST_RECORD_TIMELINE:"frontend/api/babies/{babyId}/timelines/records?site={domain}",DELETED_RECORD_TIMELINE:"frontend/api/babies/{babyId}/timelines/records/{idRecord}?site={domain}",GET_RESULT_BABY_VACCINE_INFO:"vaccination/result?site={domain}",POST_RECORD_IN_VACCINE_DETAIL:"frontend/api/babies/{babyId}/vaccines/{vaccineId}/records?site={domain}",DELETE_RECORD_IN_VACCINE_DETAIL:"frontend/api/babies/{babyId}/vaccines/{vaccineId}/records/{recordId}?site={domain}",PUT_BABY_DETAIL:"frontend/api/babies/{babyId}?site={domain}",DELETE_BABY:"frontend/api/babies/{babyId}?site={domain}",GET_BANNER_BABY_VACCINE:"frontend/api/banners?site={domain}",ADD_MEASUREMENT:"frontend/api/babies/{babyId}/measurements?site={domain}",GET_HEALTH_TOOL_BABY_VACCINE_INFO:"vaccination/info?site={domain}",GET_HEALTH_TOOL_BABY_VACCINE_LIST:"frontend/api/babies?site={domain}",GET_HEALTH_TOOL_BABY_DETAIL:"frontend/api/babies/{babyId}?site={domain}",GET_GROWTH_CHART_LATEST:"frontend/api/tools/growth-chart?site={domain}",GET_VACCINATION_TOOL_LATEST:"frontend/api/tools/vaccination?site={domain}",GET_HEALTH_TOOL_BABY_DETAIL_V2:"frontend/api/v2/babies/{babyId}?site={domain}",GET_HEALTH_TOOL_BABY_IMMUNIZATION_V2:"frontend/api/v2/babies/{babyId}/statics?site={domain}",GET_VACCINE_DETAIL:"frontend/api/v2/babies/{babyId}/vaccines/{vaccineId}?site={domain}",ADD_INJECTED_DATE:"frontend/api/v2/babies/{babyId}/vaccines/{vaccineId}/records?site={domain}"},USER_PROFILE:{GET_PROFILE:"user/profile/",GET_TOKENS_UID2:"user/uid2",SSO_USER_PROFILE:"user",POST_LOGOUT:"user/logout",SSO_USER_BOOKMARKS:"user/bookmarks",SSO_USER_PASSWORD:"user/settings/password",SSO_USER_EMAIL:"user/settings/update-email",SSO_CLOSE_ACCOUNT:"user/settings/close-account",SSO_HELP:"user/settings/help",POST_USER_REFRESH:"v1/user/refresh"},PREMIUM:{GET_SUGGESTED_TOPIC:"api/v1/categories?external_id={externalId}&site={site}",GET_NEWSLETTER_CATEGORIES:"api/v1/categories?site={site}",POST_SUBSCRIPTION:"api/v1/subscription?site={site}",TEMP_POST_SUBSCRIPTION:"api/v1/subscription/temporary?site={site}",TEMP_POST_SUBSCRIPTION_OFFICIAL:"api/v1/subscription/official?site={site}",TEMP_GET_NEWSLETTER_CATEGORIES:"api/v1/categories/temporary?site={site}",GET_SUBSCRIPTION_CATEGORIES:"api/v1/categories?site={site}"},UNIFIED:{GET_USER_FIELDS:"api/user/fields?site={site}"},ECOMMERCE:{GET_PRODUCT_DETAIL_BY_LIST_IDS:"catalog/products?sku={skuList}",GUEST_GET_CART_ID:"guest-carts",GUEST_ADD_ITEM_TO_CART:"guest-carts/{cartId}/items",GUEST_GET_CART:"guest-carts/{cartId}",GUEST_GET_CART_TOTALS:"guest-carts/{cartId}/totals",GET_CART_ID:"carts/mine",ADD_ITEM_TO_CART:"carts/mine/items",GET_CART:"carts/mine",GET_CART_TOTALS:"carts/mine/totals",MERGE_GUEST_CART_TO_MINE:"guest-carts/{cartId}"},CHATBOT:{SEND_MESSAGE:"{project}/v1/reply",GET_CHAT_HISTORY:"{project}/v1/users/{userId}/chats/{chatId}"},VIDEOS:{GET_LANDING_PAGE:"landing-page/videos/",GET_LISTING:"videos?type={type}&tags={tags}&order_by={orderBy}&page={page}&per_page={pageSize}",GET_VIDEO_DETAIL:""},RAMADAN_WIDGET:{GET_ZONES:"ramadan-widget/zones",GET_PRAYER_TIMES:"ramadan-widget/prayer-times?zone={zoneId}&lat={lat}&lon={lng}&date={date}"},OPEN_HEALTH_TOOLS:{BMI_LOG:"api/v1/bmi/log"},POLL_WIDGET:{GET_WIDGETS:"poll-article/polls?poll_ids={ids}",GET_RESULT:"poll-article/results/{id}?user_id={userId}",POST_VOTE:"poll-article/vote"},RATING_REVIEW:{POST_RATING_REVIEW:"rating-review",GET_RATING_REVIEWS:"rating-reviews?collection_id={collectionId}&rating={rating}&page={page}&per_page={perPage}"},HOMEPAGE:{GET_HOMEPAGE_SETTING:"home/settings",GET_HOMEPAGE_SITEWIDE_BANNER:"home/sitewide-banner",GET_HOMEPAGE_MEDICAL_REVIEWED:"home/medical-reviewed",GET_HOMEPAGE_BANNER:"home/home-banner",GET_HOMEPAGE_SIDE_BANNER:"home/side-banner",GET_HOMEPAGE_FOOTER_BANNER:"home/footer-banner",GET_HOMEPAGE_POSTS:"home/trending-post?type={type}",GET_HOMEPAGE_LATEST_POSTS:"articles?page=1&_islatest=1",GET_HOMEPAGE_COMMUNITY_DATA:"home/community",GET_HOMEPAGE_HEALTH_TOOL:"home/health-tools",GET_HOMEAGE_SCHEMA:"home/schema",GET_HOME_VIDEOS:"home/videos/"}}},"Sb+D":function(e,t,i){"use strict";i.d(t,{Cp:function(){return captureException},wd:function(){return captureMessage}});let debug_showDebug=()=>"undefined"==typeof localStorage||"true"===localStorage.getItem("hhg_debug"),o=null,getSentry=async()=>o||((o=await i.e(2538).then(i.bind(i,"4Q42")))?(o.init({dsn:"https://a9c5a9ddf01e4f4c88e80bf43c490a8f@sentry.hellohealthgroup.com/15",tracesSampleRate:.1,environment:"production",beforeSend:function(e){return -1!==window.location.search.indexOf("fbclid")?null:e}}),o):null),captureException=async function(){for(var e=arguments.length,t=Array(e),i=0;iS Exception",t):null)},captureMessage=async function(){for(var e=arguments.length,t=Array(e),i=0;iS Message",t):null)}},"77FC":function(e,t,i){"use strict";i.d(t,{H4:function(){return logApiCall}});var o=i("Sb+D");let s={},logApiCall=(e,t,i,n,c)=>{setTimeout(()=>{if(s[t]&&s[t]===JSON.stringify(c))return;s[t]=JSON.stringify(c);let l={"user-id":n,path:t,method:i,body:null==e?void 0:e.data,locale:"vi-VN",error:c};(0,o.wd)("clientSide_logs_api_call",{level:"log",extra:l})},0)}},q6HN:function(e,t,i){"use strict";i.d(t,{m:function(){return Container}});var o=i("BGKE"),s=i("TSYQ"),n=i.n(s);let Container=e=>{let{className:t,isFluid:i,...s}=e;return(0,o.Y)("div",{className:n()("hhg-page-container",t,{fluid:i}),...s})}},LZGZ:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return drugs}});var o=i("BGKE"),s=i("+OUp"),n=i("rBCA"),c=i("U+Ez"),l=i("bAY6"),_=i("+YhV"),d=i("CL9C"),u=i("iBNF"),E=i("ns0B"),T=i.n(E),p=i("DzJC"),I=i.n(p),h=i("/zZM"),g=i.n(h),A=i("99+y"),m=i("doQp"),O=i.n(m),S=i("dDsW"),f=i("q6HN"),b=i("9brV");let L=(0,n.A)("div",{target:"eowiwqg0"})(d.M.mbUp,"{position:fixed;right:87px;bottom:50px;img{width:37px;height:37px;}}",d.M.mbDown,"{display:none;}");var goTopButton=()=>(0,o.Y)(L,{children:(0,o.Y)("img",{loading:"lazy",src:"".concat(b.nS,"/chevronUpCircle.svg"),className:"button-image",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},alt:""})}),G=i("ZUAm"),y=i("Imrq"),P=i("a5L+"),R=i("imPi");let C=(0,n.A)("div",{target:"ekr5z880"})("display:flex;flex-direction:row;flex-wrap:wrap;"),v=(0,n.A)("div",{target:"e1yl5iuj0"})("position:relative;",d.M.mbUp,"{padding:24px 0;max-width:1170px;margin:0 auto;}.category-heading{padding:0 16px;margin:8px 0 16px 0;",d.M.mbUp,"{padding:0;}}.search-input{padding:0 16px 24px 16px;",d.M.mbUp,"{padding:0;}}"),N=(0,n.A)("div",{target:"e1yl5iuj1"})(d.M.mbUp,"{position:absolute;z-index:1;min-width:568px;top:-154px;}"),D=(0,n.A)("div",{target:"e1yl5iuj2"})("padding-top:80px;background-color:",u.w.colors.primary50,";",d.M.mbUp,"{padding-top:0;}.thumbnail-inner{width:100%;height:150px;background-position:center center;background-repeat:no-repeat;background-size:150px;",d.M.mbUp,"{height:194px;padding-top:24px;background-position:center right;}}"),w=(0,n.A)("div",{target:"e1yl5iuj3"})("position:relative;display:flex;",d.M.mbUp,"{flex-direction:column-reverse;}"),U=(0,n.A)("div",{target:"e1yl5iuj4"})("max-width:calc(100vw - 17px);flex:1;"),H=(0,n.A)("div",{target:"e1yl5iuj5"})("position:sticky;z-index:100;top:calc((100vh - ",e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.height},") / 2);right:4px;display:none;width:25px;height:",e=>{var t;return null===(t=e.theme)||void 0===t?void 0:t.height},";flex-direction:column;align-items:center;",d.M.mbUp,"{position:sticky;display:flex;top:64px;flex-direction:row;right:0;width:100%;height:auto;padding:24px 0;background-color:#fff;}&[data-visible]{display:flex;}"),M=(0,n.A)("div",{target:"e1yl5iuj6"})("position:absolute;z-index:1000;top:0;width:25px;height:17px;cursor:move;"),k=(0,n.A)("div",{target:"e1yl5iuj7"})("width:8px;height:17px;text-align:center;&[data-active]{color:",u.w.colors.primaryActive,";}",d.M.mbUp,"{width:35px;height:35px;background-color:#f7f9fc;cursor:pointer;display:flex;align-items:center;justify-content:center;margin-right:8px;border-radius:",u.w.borderRadius,";}"),B=(0,n.A)("div",{target:"e1yl5iuj8"})("display:flex;height:32px;align-items:center;padding:0 16px;background-color:",u.w.colors.neutral50,";text-transform:uppercase;",d.M.mbUp,"{background-color:transparent;border-bottom:solid 1px #e4e8ec;margin:24px 0;padding:0 0 8px 0;}"),x=(0,n.A)("li",{target:"e1yl5iuj9"})("padding:12px 16px;list-style:none;overflow-wrap:break-word;text-decoration:none;",d.M.mbUp,"{width:25%;padding:12px;}",d.M.mbDown,"{&:not(:last-child){border-bottom:solid 1px #f8f9fc;}}a{color:inherit;text-decoration:none;}");var drugs=e=>{let{items:t,info:i,footerInfo:n,dataNavMenuContent:d}=e,u=(0,P.a)(),{formatMessage:E}=(0,S.A)(),{locale:p="en-PH"}=(0,A.useRouter)(),h=Object.keys(t),[m,L]=(0,s.useState)(void 0),[Y,F]=(0,s.useState)(""),[V,K]=(0,s.useState)(!1),[j,z]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{if(m){let e="other"===m?h[h.length-2]:m;R.$.measure(()=>{let t=document.querySelector("#drug-".concat(e));if(t){let e=t.getBoundingClientRect().top+window.pageYOffset-(u?72:145);window.scrollTo({top:e,behavior:"auto"})}})}},[m]),(0,s.useEffect)(()=>{let e=I()(()=>{let e=document.querySelector("#drug-".concat(h[0]));if(e){let t=e.getBoundingClientRect().y;t<=80?z(!0):z(!1)}},300);return u&&window.addEventListener("scroll",e,{passive:!0}),()=>{u&&window.removeEventListener("scroll",e)}},[]),(0,s.useEffect)(()=>{K(!!Y&&Y.length>0)},[Y]),(0,o.Y)(y.s,{title:"".concat(i.displayName," - ").concat(b.El[p].SITE_NAME_FORMATTED),description:i.description,image:i.featureImage,SEOData:{isIndexable:!0},footerInfo:n,dataNavMenuContent:d,children:(0,o.FD)("div",{children:[(0,o.Y)(D,{children:(0,o.Y)(f.m,{className:"thumbnail-inner",style:{backgroundImage:"url(".concat(b.nS,"/temp_drugs.png)")}})}),(0,o.FD)(v,{children:[(0,o.FD)(N,{children:[(0,o.Y)(c.H,{tag:"h2",as:"h1",color:i.textColor,className:"category-heading",children:i.displayName}),(0,o.Y)(l.a,{className:"search-input",name:"drugs-search",type:"search",size:"md",placeholder:E({id:"drugPage.searchPlaceholder",defaultMessage:"Search by Drug, Condition or Category"}),onChange:e=>F(e.toLowerCase())})]}),(0,o.FD)(w,{children:[(0,o.Y)(U,{children:h.map(e=>(0,o.FD)("div",{id:"drug-".concat(e),children:[!V&&(0,o.Y)(B,{children:(0,o.Y)(c.H,{tag:"h5",children:e})}),!u&&(0,o.Y)(C,{children:t[e].posts.filter(e=>e.title.toLowerCase().includes(Y)).map(e=>(0,o.Y)(x,{children:(0,o.Y)(c.H,{tag:"h5",children:(0,o.Y)(g(),{prefetch:!1,href:e.permalink,children:T()(e.title)||e.permalink})})},e.permalink))}),u&&t[e].posts.filter(e=>e.title.toLowerCase().includes(Y)).map(e=>(0,o.Y)(x,{children:(0,o.Y)(c.H,{tag:"h5",children:(0,o.Y)(g(),{prefetch:!1,href:e.permalink,children:T()(e.title)||e.permalink})})},e.permalink))]},"drug-".concat(e)))}),!V&&(0,o.FD)(H,{"data-visible":j||void 0,theme:{height:"".concat(17*h.length,"px")},children:[u&&h.map((e,t)=>(0,o.Y)(O(),{axis:"y",handle:".handle",bounds:"parent",grid:[8,17],position:{x:0,y:17*t},onMouseDown:()=>L(h[t]),children:(0,o.Y)(M,{className:"handle"})},"d-".concat(e))),h.map((e,t)=>(0,o.Y)(k,{"data-active":e===m||void 0,onMouseDown:()=>L(h[t]),children:(0,o.Y)(_.T,{type:"caption",size:"c2",color:e===m?"#2D87F3":"#262626",children:"other"===e?"#":e})},e+t))]})]})]}),(0,o.Y)(goTopButton,{}),(0,o.Y)(G.default,{})]})})}},"/sjq":function(e){"use strict";e.exports={domainLocales:{"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","tl-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com","zh-SG":"hellojiankang.com"},ignoreList:[]}},AuMj:function(e,t,i){"use strict";i.d(t,{VD:function(){return ArticleStoreProvider},NP:function(){return useArticleStore}});var o,s,n=i("BGKE"),c=i("+OUp"),l=i("sEfC"),_=i.n(l),d=i("oWg6"),u=i("VNqU");(o=s||(s={}))[o.traditional=0]="traditional",o[o.simplified=1]="simplified";let E=["small","medium","large"],T=(0,c.createContext)(null),createArticleStore=e=>(0,d.y)((t,i)=>({articles:[],bookmarkIds:[],chineseTranslate:s.traditional,currentArticle:null,currentProgress:0,fontSize:"small",isBookmarked:!1,isCommentPopupOpen:!1,isLiked:!1,isDisliked:!1,totalComment:0,categories:[],...e||{},addToArticles:e=>{!e||i().articles.find(t=>e.id===t.id)||t({articles:i().articles.concat(e)})},addToBookmark:e=>t({isBookmarked:!0,bookmarkIds:[...i().bookmarkIds,e]}),removeBookmark:e=>{let o=i().bookmarkIds.filter(t=>t!==e);t({isBookmarked:!1,bookmarkIds:o})},setArticles:e=>t(t=>({articles:"function"==typeof e?e(t.articles):e})),setBookmarkIds:e=>{t({bookmarkIds:e})},setChineseTranslate:e=>t({chineseTranslate:e}),setCurrentArticle:_()(e=>t({currentArticle:e}),300),setCurrentProgress:e=>t({currentProgress:e}),cycleFontSize:()=>t({fontSize:function(e,t){let i=e.indexOf(t);return i===e.length-1?e[0]:e[i+1]}(E,i().fontSize)}),setIsBookmarked:e=>t({isBookmarked:e}),setIsCommentPopupOpen:e=>t({isCommentPopupOpen:e}),setIsLiked:e=>t({isLiked:e}),setIsDisliked:e=>t({isDisliked:e}),setTotalComment:e=>t({totalComment:e}),setCategories:e=>t({categories:e}),setShowDictionaryShortcutBtn:e=>t({showDictionaryShortcutBtn:e})})),ArticleStoreProvider=e=>{let{init:t,refreshKey:i,children:o}=e,s=(0,c.useRef)(createArticleStore(t)),l=s.current;return(0,c.useEffect)(()=>{i&&s.current.setState(t)},[i]),(0,n.Y)(T.Provider,{value:l,children:o})},useArticleStore=(e,t)=>{let i=(0,c.useContext)(T),o=(0,u.Pj)(i,e,t);return o}},imPi:function(e,t,i){"use strict";i.d(t,{$:function(){return l}});var o=i("Sn6X"),s=i.n(o),n=i("KYiY"),c=i.n(n);let l=s().extend(c())},"69Ac":function(e,t,i){"use strict";i.d(t,{OF:function(){return cleanLink},fQ:function(){return normalizeText},jt:function(){return wrapPlainTextAsHtmlParagraph}}),i("/sjq");let escapeHtml=e=>e.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""),wrapPlainTextAsHtmlParagraph=e=>"

".concat(escapeHtml(e.trim()),"

");function cleanLink(e){return e.split("?")[0].split("/").filter((e,t)=>0===t||!!e).join("/")+"/"}function normalizeText(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim()}},lKJe:function(e,t,i){"use strict";/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var o=i("+OUp"),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=o.useState,c=o.useEffect,l=o.useLayoutEffect,_=o.useDebugValue;function r(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!s(e,i)}catch(e){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var i=t(),o=n({inst:{value:i,getSnapshot:t}}),s=o[0].inst,d=o[1];return l(function(){s.value=i,s.getSnapshot=t,r(s)&&d({inst:s})},[e,i,t]),c(function(){return r(s)&&d({inst:s}),e(function(){r(s)&&d({inst:s})})},[e]),_(i),i};t.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:d},AB4A:function(e,t,i){"use strict";/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var o=i("+OUp"),s=i("at8e"),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},c=s.useSyncExternalStore,l=o.useRef,_=o.useEffect,d=o.useMemo,u=o.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,i,o,s){var E=l(null);if(null===E.current){var T={hasValue:!1,value:null};E.current=T}else T=E.current;var p=c(e,(E=d(function(){function a(t){if(!l){if(l=!0,e=t,t=o(t),void 0!==s&&T.hasValue){var i=T.value;if(s(i,t))return c=i}return c=t}if(i=c,n(e,t))return i;var _=o(t);return void 0!==s&&s(i,_)?i:(e=t,c=_)}var e,c,l=!1,_=void 0===i?null:i;return[function(){return a(t())},null===_?void 0:function(){return a(_())}]},[t,i,o,s]))[0],E[1]);return _(function(){T.hasValue=!0,T.value=p},[p]),u(p),p}},at8e:function(e,t,i){"use strict";e.exports=i("lKJe")},ejks:function(e,t,i){"use strict";e.exports=i("AB4A")},VNqU:function(e,t,i){"use strict";i.d(t,{Pj:function(){return useStore},vt:function(){return create}});var o=i("oWg6"),s=i("+OUp"),n=i("ejks");let{useSyncExternalStoreWithSelector:c}=n;function useStore(e,t=e.getState,i){let o=c(e.subscribe,e.getState,e.getServerState||e.getState,t,i);return(0,s.useDebugValue)(o),o}let createImpl=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?(0,o.y)(e):e,useBoundStore=(e,i)=>useStore(t,e,i);return Object.assign(useBoundStore,t),useBoundStore},create=e=>e?createImpl(e):createImpl},a5vB:function(e,t,i){"use strict";function shallow(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[i,o]of e)if(!Object.is(o,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let i of e)if(!t.has(i))return!1;return!0}let i=Object.keys(e);if(i.length!==Object.keys(t).length)return!1;for(let o=0;o{let t;let i=new Set,setState=(e,o)=>{let s="function"==typeof e?e(t):e;if(!Object.is(s,t)){let e=t;t=(null!=o?o:"object"!=typeof s)?s:Object.assign({},t,s),i.forEach(i=>i(t,e))}},getState=()=>t,o={setState,getState,subscribe:e=>(i.add(e),()=>i.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),i.clear()}};return t=e(setState,getState,o),o},createStore=e=>e?createStoreImpl(e):createStoreImpl}}]);