hplx-feature-library 1.0.264 → 1.0.266

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { S as f } from "../SearchPatients-6f4jy1uO.js";
1
+ import { S as f } from "../SearchPatients-iXzHKZpb.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1 +1 @@
1
- "use strict";const t=require("./index-D4uYXq_j.cjs"),s=require("react"),W=require("./APIAction-CW7tpjtQ.cjs"),J=require("./useMediaQuery-D4SIgdMW.cjs"),f=require("./common-utils-d6QnkaWh.cjs"),V=Math.abs(window.orientation||0)===90,X=P=>{const{addPatientHandler:k,disabled:x,manipulateExistingDOM:C,onPatientSelect:w,showSearchBar:D,setShowSearchBar:a,variable:T}=P,{window_var:o,token:y,envName:v}=T,[h,p]=s.useState(!1),d=s.useRef(null),u=s.useRef(null),[A,G]=s.useState(0),[L,l]=s.useState([]),U=6,[E,b]=s.useState(""),[F,B]=s.useState([]),[O,R]=s.useState(!0),[$,S]=s.useState([]),c=J.useMediaQuery("(max-width: 1024px)"),m=(e,n,r,i)=>{B([{id:1,title:e,description:n,type:r,duration:i}])},_=s.useCallback(async e=>{try{const n={branch_id:o?.org_branch_id_for_seg||"",doctor_id:o?.person_id_for_seg||"",doctor_role_id:o?.doctor_role_id_for_seg||"",term:encodeURIComponent(e),limit:30},r=await W.getPatientList(n,{envName:v,token:y});if(!r){l([]),m("Error","No response received from server","Error",3e3);return}const i=r,N=window.filteredUpcomingAppts||[];if(i.apiError){l([]),m("Error",i.apiError,"Error",3e3);return}i?.persons?.length?(l(i.persons),p(!0),G(Number(i.total_persons))):l([]),N?.length?(R(!1),S(N.slice(0,5))):(R(!0),S([]))}catch(n){console.error(n),m("Error","Something went wrong while fetching patients","Error",3e3)}},[v,y,o?.doctor_role_id_for_seg,o?.org_branch_id_for_seg,o?.person_id_for_seg]),q=s.useMemo(()=>f.debounceFn(e=>{_(e)},500),[_]),z=e=>{const n=e.currentTarget.value.trim();(!isNaN(Number(n.charAt(0)))||n.length>=2)&&q(n)},H=()=>{h||_(E)},M=()=>{x||p(e=>!e)},g=s.useCallback(e=>{u.current&&h&&!u.current.contains(e.target)&&(p(!1),l([]))},[h]);s.useEffect(()=>(document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)),[g,h]);const Q=e=>{window.location.href.indexOf("/frontdesk")!==-1?window.patientPopupHandlerFromFD(e.patient_role_id,e.patient_person_id):f.goToPage(`viewPatientDashboard.php?pid=${e.patient_role_id}`)},I=async e=>{let n=!0;if(typeof window.beforePatientChange=="function"&&window.location.pathname==f.EAPP_ROUTES.visitpad&&(n=window.beforePatientChange()),p(!1),l([]),!n)return;if(w){w(e);return}window.patient_role_id=e.person_role_id!=="0"?e.person_role_id.toString():"0",window.patient_person_id=e.person_id!=="0"?e.person_id.toString():"0";const r=(e.person_role_id==="0",e.person_role_id);if(r&&(C?.(),window.location.href.indexOf("/frontdesk")!==-1)){window.patientPopupHandlerFromFD(r,e.person_id);return}f.goToPage(`viewPatientDashboard.php?pid=${r}`)},K=()=>{M(),k(),b("")},j=s.useCallback(e=>{d.current&&!d.current.contains(e.target)&&c&&a(!1)},[c,a]);return s.useEffect(()=>(document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)),[j]),t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[D?t.jsxRuntimeExports.jsxs("div",{className:`hfl-flex hfl-items-center hfl-justify-center hfl-rounded-full hfl-bg-Blue-900 hfl-text-1 hfl-text-White ${x?"hfl-pointer-events-none hfl-opacity-60":""}`,title:x?"Low internet speed. Feature available only in online mode":"Search Patient",children:[t.jsxRuntimeExports.jsx("input",{ref:d,type:"text",placeholder:"Search Patient 🔍",className:`hfl-rounded-full hfl-border-none hfl-bg-Blue-900 hfl-py-2 hfl-pl-4 ${c&&!V?"xxs:hfl-w-[400px]":"hfl-min-w-[150px]"} sm:hfl-w-full`,"data-qa":"testid_patientSearch",value:E,onKeyUp:z,onChange:e=>b(e.target.value),onClick:H,onBlur:()=>c&&a(!1)}),c&&t.jsxRuntimeExports.jsx("div",{className:"hx_close hfl-cursor-pointer hfl-pr-4",onClick:()=>a(e=>!e)})]}):t.jsxRuntimeExports.jsxs("div",{onClick:()=>a(e=>!e),className:"hfl-flex hfl-cursor-pointer hfl-flex-col hfl-items-center xs:hfl-mr-1 md:hfl-mr-0",children:[t.jsxRuntimeExports.jsx("i",{className:"hx_search",style:{fontSize:"18px"}}),t.jsxRuntimeExports.jsx(t.bi,{variant:"Regular",type:"Text md",children:"Search"})]}),t.jsxRuntimeExports.jsx(t.qh,{toastList:F}),t.jsxRuntimeExports.jsxs("div",{ref:u,className:`hfl-absolute hfl-right-[255px] hfl-top-[50px] hfl-max-h-[400px] hfl-w-[430px] hfl-min-w-[430px] hfl-overflow-y-auto hfl-rounded-lg hfl-border hfl-border-Gray-300 hfl-bg-White hfl-text-Gray-700 hfl-shadow-md ${h?"hfl-block":"hfl-hidden"}`,children:[!O&&t.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-flex-col",children:[t.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-items-center hfl-py-[10px] ",children:[t.jsxRuntimeExports.jsx(t.bi,{className:"hfl-px-[12px] hfl-text-Gray-400",variant:"Semibold",type:"Text xs",children:"Upcoming Appointments"}),t.jsxRuntimeExports.jsx("a",{href:"viewPatientAppointments.php",children:t.jsxRuntimeExports.jsx("i",{className:"hx_r-open hfl-text-Primary-700"})})]}),$?.map((e,n)=>t.jsxRuntimeExports.jsxs("div",{className:`hfl-flex hfl-cursor-pointer hfl-justify-between hfl-px-[12px] hfl-py-[4px] hover:hfl-bg-Blue_gray-200 ${n%2===1?"":"hfl-bg-Gray-100"}`,onClick:()=>Q(e),children:[t.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-min-w-[92px] hfl-items-center hfl-justify-center hfl-rounded-lg hfl-border hfl-border-Gray-100 hfl-bg-White_20 hfl-p-2",children:t.jsxRuntimeExports.jsx(t.bi,{className:"hfl-whitespace-nowrap hfl-text-Gray-500",variant:"Regular",type:"Text lg",children:e.appnt_time})}),t.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-w-full hfl-flex-col hfl-px-3",children:[t.jsxRuntimeExports.jsx(t.bi,{variant:"Regular",type:"Text md",className:"hfl-text-Gray-700",children:e.org_person_name}),t.jsxRuntimeExports.jsx(t.bi,{variant:"Regular",type:"Text sm",className:"hfl-text-Gray-500",children:e.org_person_phone})]}),t.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-items-center",children:t.jsxRuntimeExports.jsx("i",{className:"hx_play-filled hfl-text-Gray-300"})})]},e.patient_role_id))]}),t.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-flex-col",children:[t.jsxRuntimeExports.jsx(t.bi,{style:{fontSize:"14px"},variant:"Semibold",type:"Text sm",className:"hfl-px-[12px] hfl-py-[8px] hfl-text-Primary-600",children:"Patients List"}),t.jsxRuntimeExports.jsx("div",{className:"hfl-max-h-[40vh] hfl-overflow-y-auto hfl-overflow hfl-scrollbar-hide",children:L?.map((e,n)=>t.jsxRuntimeExports.jsxs("div",{className:`hfl-cursor-pointer hfl-px-[11px] hfl-py-[12px] hfl-leading-9 hover:hfl-bg-Blue_gray-200 ${n%2===1?"":"hfl-bg-Gray-100"}`,onClick:()=>I(e),children:[t.jsxRuntimeExports.jsx(t.bi,{variant:"Regular",type:"Text sm",className:"hfl-inline hfl-uppercase hfl-text-Gray-700",style:{fontSize:"14px"},children:e.org_person_bid_str?e.org_person_bid_str+": ":""}),t.jsxRuntimeExports.jsxs(t.bi,{variant:"Medium",type:"Text sm",className:" hfl-inline hfl-capitalize hfl-text-Gray-700",style:{fontSize:"14px"},children:[e.org_person_name," ",t.jsxRuntimeExports.jsxs("div",{className:"hfl-inline-block",children:["(",e.ageStr.split(" ")[0],", ",f.getGender(Number(e.org_person_gender)),")"]})," "]}),t.jsxRuntimeExports.jsx(t.bi,{variant:"Regular",type:"Text sm",className:"hfl-inline-block hfl-text-Gray-700",style:{fontSize:"14px"},children:e.org_person_phone?`Ph: ${e.org_person_phone}`:""})]},e.person_role_id))})]}),A<U&&t.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-justify-center",id:"newPatientAdd",children:t.jsxRuntimeExports.jsx(t.Ku,{hierarchy:"Secondary",icon:"Left",iconFile:"hx_add",onClick:K,size:"lg",textField:"Create New Patient",className:"hfl-flex hfl-w-full hfl-justify-center"})})]})]})};exports.SearchPatients=X;
1
+ "use strict";const t=require("./index-D4uYXq_j.cjs"),s=require("react"),W=require("./APIAction-rwZo6zta.cjs"),J=require("./useMediaQuery-D4SIgdMW.cjs"),f=require("./common-utils-CAmlqE7Y.cjs"),V=Math.abs(window.orientation||0)===90,X=P=>{const{addPatientHandler:k,disabled:x,manipulateExistingDOM:C,onPatientSelect:w,showSearchBar:D,setShowSearchBar:a,variable:T}=P,{window_var:o,token:y,envName:v}=T,[h,p]=s.useState(!1),d=s.useRef(null),u=s.useRef(null),[A,G]=s.useState(0),[L,l]=s.useState([]),U=6,[E,b]=s.useState(""),[F,B]=s.useState([]),[O,R]=s.useState(!0),[$,S]=s.useState([]),c=J.useMediaQuery("(max-width: 1024px)"),m=(e,n,r,i)=>{B([{id:1,title:e,description:n,type:r,duration:i}])},_=s.useCallback(async e=>{try{const n={branch_id:o?.org_branch_id_for_seg||"",doctor_id:o?.person_id_for_seg||"",doctor_role_id:o?.doctor_role_id_for_seg||"",term:encodeURIComponent(e),limit:30},r=await W.getPatientList(n,{envName:v,token:y});if(!r){l([]),m("Error","No response received from server","Error",3e3);return}const i=r,N=window.filteredUpcomingAppts||[];if(i.apiError){l([]),m("Error",i.apiError,"Error",3e3);return}i?.persons?.length?(l(i.persons),p(!0),G(Number(i.total_persons))):l([]),N?.length?(R(!1),S(N.slice(0,5))):(R(!0),S([]))}catch(n){console.error(n),m("Error","Something went wrong while fetching patients","Error",3e3)}},[v,y,o?.doctor_role_id_for_seg,o?.org_branch_id_for_seg,o?.person_id_for_seg]),q=s.useMemo(()=>f.debounceFn(e=>{_(e)},500),[_]),z=e=>{const n=e.currentTarget.value.trim();(!isNaN(Number(n.charAt(0)))||n.length>=2)&&q(n)},H=()=>{h||_(E)},M=()=>{x||p(e=>!e)},g=s.useCallback(e=>{u.current&&h&&!u.current.contains(e.target)&&(p(!1),l([]))},[h]);s.useEffect(()=>(document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)),[g,h]);const Q=e=>{window.location.href.indexOf("/frontdesk")!==-1?window.patientPopupHandlerFromFD(e.patient_role_id,e.patient_person_id):f.goToPage(`viewPatientDashboard.php?pid=${e.patient_role_id}`)},I=async e=>{let n=!0;if(typeof window.beforePatientChange=="function"&&window.location.pathname==f.EAPP_ROUTES.visitpad&&(n=window.beforePatientChange()),p(!1),l([]),!n)return;if(w){w(e);return}window.patient_role_id=e.person_role_id!=="0"?e.person_role_id.toString():"0",window.patient_person_id=e.person_id!=="0"?e.person_id.toString():"0";const r=(e.person_role_id==="0",e.person_role_id);if(r&&(C?.(),window.location.href.indexOf("/frontdesk")!==-1)){window.patientPopupHandlerFromFD(r,e.person_id);return}f.goToPage(`viewPatientDashboard.php?pid=${r}`)},K=()=>{M(),k(),b("")},j=s.useCallback(e=>{d.current&&!d.current.contains(e.target)&&c&&a(!1)},[c,a]);return s.useEffect(()=>(document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)),[j]),t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[D?t.jsxRuntimeExports.jsxs("div",{className:`hfl-flex hfl-items-center hfl-justify-center hfl-rounded-full hfl-bg-Blue-900 hfl-text-1 hfl-text-White ${x?"hfl-pointer-events-none hfl-opacity-60":""}`,title:x?"Low internet speed. Feature available only in online mode":"Search Patient",children:[t.jsxRuntimeExports.jsx("input",{ref:d,type:"text",placeholder:"Search Patient 🔍",className:`hfl-rounded-full hfl-border-none hfl-bg-Blue-900 hfl-py-2 hfl-pl-4 ${c&&!V?"xxs:hfl-w-[400px]":"hfl-min-w-[150px]"} sm:hfl-w-full`,"data-qa":"testid_patientSearch",value:E,onKeyUp:z,onChange:e=>b(e.target.value),onClick:H,onBlur:()=>c&&a(!1)}),c&&t.jsxRuntimeExports.jsx("div",{className:"hx_close hfl-cursor-pointer hfl-pr-4",onClick:()=>a(e=>!e)})]}):t.jsxRuntimeExports.jsxs("div",{onClick:()=>a(e=>!e),className:"hfl-flex hfl-cursor-pointer hfl-flex-col hfl-items-center xs:hfl-mr-1 md:hfl-mr-0",children:[t.jsxRuntimeExports.jsx("i",{className:"hx_search",style:{fontSize:"18px"}}),t.jsxRuntimeExports.jsx(t.bi,{variant:"Regular",type:"Text md",children:"Search"})]}),t.jsxRuntimeExports.jsx(t.qh,{toastList:F}),t.jsxRuntimeExports.jsxs("div",{ref:u,className:`hfl-absolute hfl-right-[255px] hfl-top-[50px] hfl-max-h-[400px] hfl-w-[430px] hfl-min-w-[430px] hfl-overflow-y-auto hfl-rounded-lg hfl-border hfl-border-Gray-300 hfl-bg-White hfl-text-Gray-700 hfl-shadow-md ${h?"hfl-block":"hfl-hidden"}`,children:[!O&&t.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-flex-col",children:[t.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-items-center hfl-py-[10px] ",children:[t.jsxRuntimeExports.jsx(t.bi,{className:"hfl-px-[12px] hfl-text-Gray-400",variant:"Semibold",type:"Text xs",children:"Upcoming Appointments"}),t.jsxRuntimeExports.jsx("a",{href:"viewPatientAppointments.php",children:t.jsxRuntimeExports.jsx("i",{className:"hx_r-open hfl-text-Primary-700"})})]}),$?.map((e,n)=>t.jsxRuntimeExports.jsxs("div",{className:`hfl-flex hfl-cursor-pointer hfl-justify-between hfl-px-[12px] hfl-py-[4px] hover:hfl-bg-Blue_gray-200 ${n%2===1?"":"hfl-bg-Gray-100"}`,onClick:()=>Q(e),children:[t.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-min-w-[92px] hfl-items-center hfl-justify-center hfl-rounded-lg hfl-border hfl-border-Gray-100 hfl-bg-White_20 hfl-p-2",children:t.jsxRuntimeExports.jsx(t.bi,{className:"hfl-whitespace-nowrap hfl-text-Gray-500",variant:"Regular",type:"Text lg",children:e.appnt_time})}),t.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-w-full hfl-flex-col hfl-px-3",children:[t.jsxRuntimeExports.jsx(t.bi,{variant:"Regular",type:"Text md",className:"hfl-text-Gray-700",children:e.org_person_name}),t.jsxRuntimeExports.jsx(t.bi,{variant:"Regular",type:"Text sm",className:"hfl-text-Gray-500",children:e.org_person_phone})]}),t.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-items-center",children:t.jsxRuntimeExports.jsx("i",{className:"hx_play-filled hfl-text-Gray-300"})})]},e.patient_role_id))]}),t.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-flex-col",children:[t.jsxRuntimeExports.jsx(t.bi,{style:{fontSize:"14px"},variant:"Semibold",type:"Text sm",className:"hfl-px-[12px] hfl-py-[8px] hfl-text-Primary-600",children:"Patients List"}),t.jsxRuntimeExports.jsx("div",{className:"hfl-max-h-[40vh] hfl-overflow-y-auto hfl-overflow hfl-scrollbar-hide",children:L?.map((e,n)=>t.jsxRuntimeExports.jsxs("div",{className:`hfl-cursor-pointer hfl-px-[11px] hfl-py-[12px] hfl-leading-9 hover:hfl-bg-Blue_gray-200 ${n%2===1?"":"hfl-bg-Gray-100"}`,onClick:()=>I(e),children:[t.jsxRuntimeExports.jsx(t.bi,{variant:"Regular",type:"Text sm",className:"hfl-inline hfl-uppercase hfl-text-Gray-700",style:{fontSize:"14px"},children:e.org_person_bid_str?e.org_person_bid_str+": ":""}),t.jsxRuntimeExports.jsxs(t.bi,{variant:"Medium",type:"Text sm",className:" hfl-inline hfl-capitalize hfl-text-Gray-700",style:{fontSize:"14px"},children:[e.org_person_name," ",t.jsxRuntimeExports.jsxs("div",{className:"hfl-inline-block",children:["(",e.ageStr.split(" ")[0],", ",f.getGender(Number(e.org_person_gender)),")"]})," "]}),t.jsxRuntimeExports.jsx(t.bi,{variant:"Regular",type:"Text sm",className:"hfl-inline-block hfl-text-Gray-700",style:{fontSize:"14px"},children:e.org_person_phone?`Ph: ${e.org_person_phone}`:""})]},e.person_role_id))})]}),A<U&&t.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-justify-center",id:"newPatientAdd",children:t.jsxRuntimeExports.jsx(t.Ku,{hierarchy:"Secondary",icon:"Left",iconFile:"hx_add",onClick:K,size:"lg",textField:"Create New Patient",className:"hfl-flex hfl-w-full hfl-justify-center"})})]})]})};exports.SearchPatients=X;
@@ -1,8 +1,8 @@
1
1
  import { j as t, b as r, q as Y, K as Z } from "./index-BZg5otIE.js";
2
2
  import { useState as o, useRef as C, useCallback as y, useMemo as ee, useEffect as D } from "react";
3
- import { g as te } from "./APIAction-DC2OLVlQ.js";
3
+ import { g as te } from "./APIAction-Ds_xx-Ez.js";
4
4
  import { u as ne } from "./useMediaQuery-CZAbdJzN.js";
5
- import { d as re, g as le, a as G, E as se } from "./common-utils-DyBcT-ea.js";
5
+ import { d as re, g as le, a as G, E as se } from "./common-utils-Cm6L8lrK.js";
6
6
  const oe = Math.abs(window.orientation || 0) === 90, de = (T) => {
7
7
  const {
8
8
  addPatientHandler: R,
@@ -1,4 +1,4 @@
1
- import { U as f } from "../UserProfile-DJTBA4wh.js";
1
+ import { U as f } from "../UserProfile-CgS-SMLa.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -2,7 +2,7 @@ import { j as c, b as z, P as $, K as l, e as SA } from "./index-BZg5otIE.js";
2
2
  import * as Q from "react";
3
3
  import { useState as o, useEffect as r, useMemo as DA, useRef as lA, useCallback as XA } from "react";
4
4
  import { M as uA } from "./index-Bw4Rb7rV.js";
5
- import { h as fA, n as qA, r as aA, R as WA, E as AA } from "./common-utils-DyBcT-ea.js";
5
+ import { h as fA, o as qA, r as aA, R as WA, E as AA } from "./common-utils-Cm6L8lrK.js";
6
6
  import { d as vA } from "./dayjs.min-mOIokT7c.js";
7
7
  import { E as rA } from "./CommonConstant-Bj7SvPfU.js";
8
8
  const VA = "../modelChangePassword.php", pA = async (A, E) => {
@@ -1,4 +1,4 @@
1
- "use strict";const c=require("./index-D4uYXq_j.cjs"),y=require("react"),PA=require("./index-Dqp7vsb7.cjs"),L=require("./common-utils-d6QnkaWh.cjs"),nA=require("./dayjs.min-b-u3u61q.cjs"),sA=require("./CommonConstant-COHqiSWL.cjs");function LA(A){const E=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(A){for(const I in A)if(I!=="default"){const g=Object.getOwnPropertyDescriptor(A,I);Object.defineProperty(E,I,g.get?g:{enumerable:!0,get:()=>A[I]})}}return E.default=A,Object.freeze(E)}const Q=LA(y),NA="../modelChangePassword.php",SA=async(A,E)=>{try{return(await L.hplxAPI(E.token,E.env).post(NA,A))?.data}catch(I){return console.error(I),Promise.reject(I)}},lA=A=>{const{closeModel:E,modalIsOpen:I,showToast:g,variable:B}=A,[M,C]=y.useState(""),[D,w]=y.useState(""),[G,x]=y.useState(""),[Y,i]=y.useState({password:"",confirmPassword:"",oldPassword:""}),[H,J]=y.useState(!1),[R,O]=y.useState(!1),[h,j]=y.useState(!1),[k,F]=y.useState(!1),K=()=>{w(""),C(""),x(""),i({password:"",confirmPassword:"",oldPassword:""})},S=async()=>{const m=new FormData;m.append("oldPassword",Y.oldPassword),m.append("pass1",Y.password),m.append("pass2",Y.confirmPassword),m.append("recaptcha-token","");const Z=await SA(m,B),{apierror:o}=Z||{};o?(g?.("Change Password",o,"Error",1500),C(o)):(g?.("Password Changed","Password Changed Successfully","Success",1500),K(),E())},z=(m,Z)=>{const o=m.target.value.trim(),d={...Y,[Z]:o};i(d)};return y.useEffect(()=>{const m=/(?=.*?[A-Z])/,Z=/(?=.*?[a-z])/,o=/(?=.*?[0-9])/,X=/(?=.*?[#?!@$%^&*-])/,d=/.{8,}/,wA=Y.password.length,KA=m.test(Y.password),oA=Z.test(Y.password),zA=o.test(Y.password),eA=X.test(Y.password),TA=d.test(Y.password);let b="";wA===0||!KA||!oA||!zA||!eA||!TA?b="Password must be 8-20 characters and must contains uppercase, lowercase and numerals!":(b="",J(Y.password===Y.confirmPassword)),w(wA>0?b:""),Y.confirmPassword.length>0&&(Y.confirmPassword!==Y.password?x("Confirm password is not matched"):x(""))},[Y]),c.jsxRuntimeExports.jsx("div",{children:c.jsxRuntimeExports.jsx(PA.Modal,{isOpen:I,shouldCloseOnOverlayClick:!0,style:{overlay:{backgroundColor:"rgba(52, 64, 84, 0.5)",position:"fixed",alignContent:"center",justifyContent:"center",zIndex:1060},content:{zIndex:10,boxShadow:"0px 8px 8px -4px #101828",padding:"24px",width:"400px",height:"500px",margin:"auto",borderRadius:"12px"}},children:c.jsxRuntimeExports.jsxs("div",{children:[c.jsxRuntimeExports.jsxs("div",{className:"hfl-mb-4 hfl-flex hfl-flex-col hfl-items-center hfl-justify-items-center",children:[c.jsxRuntimeExports.jsx("div",{className:"hx_lock-closed hfl-mb-4 hfl-flex hfl-h-10 hfl-w-10 hfl-items-center hfl-justify-center hfl-rounded-full hfl-border-8 hfl-border-Blue-50 hfl-bg-Blue-100 hfl-text-4 hfl-text-Blue-600"}),c.jsxRuntimeExports.jsx(c.bi,{variant:"Medium",type:"Text lg",className:"hfl-text-Gray-900",children:"Change Login Password"}),c.jsxRuntimeExports.jsx(c.bi,{variant:"Regular",type:"Text sm",className:"hfl-text-center hfl-text-Gray-500",children:"When you login next time, please enter the new password you saved."})]}),c.jsxRuntimeExports.jsxs("div",{children:[c.jsxRuntimeExports.jsx("div",{className:"hfl-my-2",children:c.jsxRuntimeExports.jsx(c.Pi,{width:"11em",height:"hfl-h-10",label:"Old Password",labelColor:"hfl-text-Gray-700",labelSize:"Text sm",errorMsg:M,end_icon:R?"hx_eye-hide":"hx_eye-show",onEndIconClick:()=>O(m=>!m),endIconClasses:"emr3tw-cursor-pointer",inputProps:{type:R?"text":"password",placeholder:"Old Password",value:Y.oldPassword,autoComplete:"new-password",name:"OldUserPassword",onChange:m=>{z(m,"oldPassword")}}})}),c.jsxRuntimeExports.jsx("div",{className:"hfl-my-2",children:c.jsxRuntimeExports.jsx(c.Pi,{width:"11em",height:"hfl-h-10",label:"New Password",labelColor:"hfl-text-Gray-700",labelSize:"Text sm",errorMsg:D,end_icon:h?"hx_eye-hide":"hx_eye-show",endIconClasses:"emr3tw-cursor-pointer",onEndIconClick:()=>j(m=>!m),inputProps:{type:h?"text":"password",placeholder:"New Password",value:Y.password,autoComplete:"off",onChange:m=>{z(m,"password")}}})}),c.jsxRuntimeExports.jsx("div",{className:"hfl-my-2",children:c.jsxRuntimeExports.jsx(c.Pi,{width:"11em",height:"hfl-h-10",label:"Confirm New Password",labelColor:"hfl-text-Gray-700",labelSize:"Text sm",errorMsg:G,end_icon:k?"hx_eye-hide":"hx_eye-show",onEndIconClick:()=>F(m=>!m),endIconClasses:"emr3tw-cursor-pointer",inputProps:{type:k?"text":"password",placeholder:"Confirm New Password",value:Y.confirmPassword,autoComplete:"off",onChange:m=>{z(m,"confirmPassword")}}})})]}),c.jsxRuntimeExports.jsxs("div",{className:"hfl-mt-[30px] hfl-flex hfl-justify-center hfl-gap-[15px] ",children:[c.jsxRuntimeExports.jsx(c.Ku,{hierarchy:"Secondary-Grey",size:"xl",textField:"Cancel",onClick:()=>{K(),E()},className:"hfl-px-[61.5px] hfl-py-[10px]"}),c.jsxRuntimeExports.jsx(c.Ku,{hierarchy:"Primary",className:"hfl-bg-Primary-600 hfl-px-[57px] hfl-py-[10px] hover:hfl-bg-Primary-700",size:"xl",textField:"Confirm",onClick:()=>{H&&S()}})]})]})})})};/**
1
+ "use strict";const c=require("./index-D4uYXq_j.cjs"),y=require("react"),PA=require("./index-Dqp7vsb7.cjs"),L=require("./common-utils-CAmlqE7Y.cjs"),nA=require("./dayjs.min-b-u3u61q.cjs"),sA=require("./CommonConstant-COHqiSWL.cjs");function LA(A){const E=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(A){for(const I in A)if(I!=="default"){const g=Object.getOwnPropertyDescriptor(A,I);Object.defineProperty(E,I,g.get?g:{enumerable:!0,get:()=>A[I]})}}return E.default=A,Object.freeze(E)}const Q=LA(y),NA="../modelChangePassword.php",SA=async(A,E)=>{try{return(await L.hplxAPI(E.token,E.env).post(NA,A))?.data}catch(I){return console.error(I),Promise.reject(I)}},lA=A=>{const{closeModel:E,modalIsOpen:I,showToast:g,variable:B}=A,[M,C]=y.useState(""),[D,w]=y.useState(""),[G,x]=y.useState(""),[Y,i]=y.useState({password:"",confirmPassword:"",oldPassword:""}),[H,J]=y.useState(!1),[R,O]=y.useState(!1),[h,j]=y.useState(!1),[k,F]=y.useState(!1),K=()=>{w(""),C(""),x(""),i({password:"",confirmPassword:"",oldPassword:""})},S=async()=>{const m=new FormData;m.append("oldPassword",Y.oldPassword),m.append("pass1",Y.password),m.append("pass2",Y.confirmPassword),m.append("recaptcha-token","");const Z=await SA(m,B),{apierror:o}=Z||{};o?(g?.("Change Password",o,"Error",1500),C(o)):(g?.("Password Changed","Password Changed Successfully","Success",1500),K(),E())},z=(m,Z)=>{const o=m.target.value.trim(),d={...Y,[Z]:o};i(d)};return y.useEffect(()=>{const m=/(?=.*?[A-Z])/,Z=/(?=.*?[a-z])/,o=/(?=.*?[0-9])/,X=/(?=.*?[#?!@$%^&*-])/,d=/.{8,}/,wA=Y.password.length,KA=m.test(Y.password),oA=Z.test(Y.password),zA=o.test(Y.password),eA=X.test(Y.password),TA=d.test(Y.password);let b="";wA===0||!KA||!oA||!zA||!eA||!TA?b="Password must be 8-20 characters and must contains uppercase, lowercase and numerals!":(b="",J(Y.password===Y.confirmPassword)),w(wA>0?b:""),Y.confirmPassword.length>0&&(Y.confirmPassword!==Y.password?x("Confirm password is not matched"):x(""))},[Y]),c.jsxRuntimeExports.jsx("div",{children:c.jsxRuntimeExports.jsx(PA.Modal,{isOpen:I,shouldCloseOnOverlayClick:!0,style:{overlay:{backgroundColor:"rgba(52, 64, 84, 0.5)",position:"fixed",alignContent:"center",justifyContent:"center",zIndex:1060},content:{zIndex:10,boxShadow:"0px 8px 8px -4px #101828",padding:"24px",width:"400px",height:"500px",margin:"auto",borderRadius:"12px"}},children:c.jsxRuntimeExports.jsxs("div",{children:[c.jsxRuntimeExports.jsxs("div",{className:"hfl-mb-4 hfl-flex hfl-flex-col hfl-items-center hfl-justify-items-center",children:[c.jsxRuntimeExports.jsx("div",{className:"hx_lock-closed hfl-mb-4 hfl-flex hfl-h-10 hfl-w-10 hfl-items-center hfl-justify-center hfl-rounded-full hfl-border-8 hfl-border-Blue-50 hfl-bg-Blue-100 hfl-text-4 hfl-text-Blue-600"}),c.jsxRuntimeExports.jsx(c.bi,{variant:"Medium",type:"Text lg",className:"hfl-text-Gray-900",children:"Change Login Password"}),c.jsxRuntimeExports.jsx(c.bi,{variant:"Regular",type:"Text sm",className:"hfl-text-center hfl-text-Gray-500",children:"When you login next time, please enter the new password you saved."})]}),c.jsxRuntimeExports.jsxs("div",{children:[c.jsxRuntimeExports.jsx("div",{className:"hfl-my-2",children:c.jsxRuntimeExports.jsx(c.Pi,{width:"11em",height:"hfl-h-10",label:"Old Password",labelColor:"hfl-text-Gray-700",labelSize:"Text sm",errorMsg:M,end_icon:R?"hx_eye-hide":"hx_eye-show",onEndIconClick:()=>O(m=>!m),endIconClasses:"emr3tw-cursor-pointer",inputProps:{type:R?"text":"password",placeholder:"Old Password",value:Y.oldPassword,autoComplete:"new-password",name:"OldUserPassword",onChange:m=>{z(m,"oldPassword")}}})}),c.jsxRuntimeExports.jsx("div",{className:"hfl-my-2",children:c.jsxRuntimeExports.jsx(c.Pi,{width:"11em",height:"hfl-h-10",label:"New Password",labelColor:"hfl-text-Gray-700",labelSize:"Text sm",errorMsg:D,end_icon:h?"hx_eye-hide":"hx_eye-show",endIconClasses:"emr3tw-cursor-pointer",onEndIconClick:()=>j(m=>!m),inputProps:{type:h?"text":"password",placeholder:"New Password",value:Y.password,autoComplete:"off",onChange:m=>{z(m,"password")}}})}),c.jsxRuntimeExports.jsx("div",{className:"hfl-my-2",children:c.jsxRuntimeExports.jsx(c.Pi,{width:"11em",height:"hfl-h-10",label:"Confirm New Password",labelColor:"hfl-text-Gray-700",labelSize:"Text sm",errorMsg:G,end_icon:k?"hx_eye-hide":"hx_eye-show",onEndIconClick:()=>F(m=>!m),endIconClasses:"emr3tw-cursor-pointer",inputProps:{type:k?"text":"password",placeholder:"Confirm New Password",value:Y.confirmPassword,autoComplete:"off",onChange:m=>{z(m,"confirmPassword")}}})})]}),c.jsxRuntimeExports.jsxs("div",{className:"hfl-mt-[30px] hfl-flex hfl-justify-center hfl-gap-[15px] ",children:[c.jsxRuntimeExports.jsx(c.Ku,{hierarchy:"Secondary-Grey",size:"xl",textField:"Cancel",onClick:()=>{K(),E()},className:"hfl-px-[61.5px] hfl-py-[10px]"}),c.jsxRuntimeExports.jsx(c.Ku,{hierarchy:"Primary",className:"hfl-bg-Primary-600 hfl-px-[57px] hfl-py-[10px] hover:hfl-bg-Primary-700",size:"xl",textField:"Confirm",onClick:()=>{H&&S()}})]})]})})})};/**
2
2
  * react-router v7.9.4
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
@@ -1,5 +1,6 @@
1
1
  export declare const getCookie: (cname: string) => string;
2
2
  export declare const goToPage: (params: string) => void;
3
+ export declare const goToPatientDashboard: (pid: string | number) => void;
3
4
  export declare const parseThroughChannelList: (channelList: string[]) => any[];
4
5
  export declare const parseReferredByDocList: (referredList: Array<{
5
6
  doctor_id: string;
@@ -1,6 +1,6 @@
1
- "use strict";const W=require("./CommonConstant-COHqiSWL.cjs"),M=require("./dayjs.min-b-u3u61q.cjs");var We=(e=>(e.visitpad="/md/viewPatientDashboard.php",e.consultations="/md/viewPatientList.php",e.appointments="/md/viewPatientAppointments.php",e.settings="/md/viewPreferenceSettings.php",e.privateDb="/md/viewPrivateDB.php",e.dashboardBase="/",e.referEarn="/md/inviteReferrals.php",e.teleConsults="/md/viewRemoteAppointments.php",e.pricing="/subscription/pricing",e.billSummary="/subscription/bill-summary",e.pediatricsCalculator="/md/viewPediatricCalculator.php",e))(We||{}),ve=(e=>(e.PRODUCTION="PRODUCTION",e.STAGING="STAGING",e.DEVELOPMENT="DEVELOPMENT",e))(ve||{});function Ke(e,t){return function(){return e.apply(t,arguments)}}const{toString:gt}=Object.prototype,{getPrototypeOf:ge}=Object,{iterator:oe,toStringTag:Ye}=Symbol,ie=(e=>t=>{const n=gt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>ie(t)===e),ae=e=>t=>typeof t===e,{isArray:H}=Array,$=ae("undefined");function v(e){return e!==null&&!$(e)&&e.constructor!==null&&!$(e.constructor)&&O(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ge=P("ArrayBuffer");function St(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ge(e.buffer),t}const Et=ae("string"),O=ae("function"),Xe=ae("number"),K=e=>e!==null&&typeof e=="object",Rt=e=>e===!0||e===!1,te=e=>{if(ie(e)!=="object")return!1;const t=ge(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ye in e)&&!(oe in e)},Tt=e=>{if(!K(e)||v(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Ot=P("Date"),At=P("File"),Ct=P("Blob"),xt=P("FileList"),Nt=e=>K(e)&&O(e.pipe),Pt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||O(e.append)&&((t=ie(e))==="formdata"||t==="object"&&O(e.toString)&&e.toString()==="[object FormData]"))},Dt=P("URLSearchParams"),[Ft,Lt,_t,Ut]=["ReadableStream","Request","Response","Headers"].map(P),Bt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Y(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),H(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(v(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function Ze(e,t){if(v(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const j=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qe=e=>!$(e)&&e!==j;function me(){const{caseless:e,skipUndefined:t}=Qe(this)&&this||{},n={},r=(s,o)=>{const i=e&&Ze(n,o)||o;te(n[i])&&te(s)?n[i]=me(n[i],s):te(s)?n[i]=me({},s):H(s)?n[i]=s.slice():(!t||!$(s))&&(n[i]=s)};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&Y(arguments[s],r);return n}const jt=(e,t,n,{allOwnKeys:r}={})=>(Y(t,(s,o)=>{n&&O(s)?e[o]=Ke(s,n):e[o]=s},{allOwnKeys:r}),e),kt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),It=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},qt=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&ge(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Mt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},$t=e=>{if(!e)return null;if(H(e))return e;let t=e.length;if(!Xe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ht=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ge(Uint8Array)),zt=(e,t)=>{const r=(e&&e[oe]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Jt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Vt=P("HTMLFormElement"),Wt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),De=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),vt=P("RegExp"),et=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Y(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Kt=e=>{et(e,(t,n)=>{if(O(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(O(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Yt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return H(e)?r(e):r(String(e).split(t)),n},Gt=()=>{},Xt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Zt(e){return!!(e&&O(e.append)&&e[Ye]==="FormData"&&e[oe])}const Qt=e=>{const t=new Array(10),n=(r,s)=>{if(K(r)){if(t.indexOf(r)>=0)return;if(v(r))return r;if(!("toJSON"in r)){t[s]=r;const o=H(r)?[]:{};return Y(r,(i,c)=>{const d=n(i,s+1);!$(d)&&(o[c]=d)}),t[s]=void 0,o}}return r};return n(e,0)},en=P("AsyncFunction"),tn=e=>e&&(K(e)||O(e))&&O(e.then)&&O(e.catch),tt=((e,t)=>e?setImmediate:t?((n,r)=>(j.addEventListener("message",({source:s,data:o})=>{s===j&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),j.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",O(j.postMessage)),nn=typeof queueMicrotask<"u"?queueMicrotask.bind(j):typeof process<"u"&&process.nextTick||tt,rn=e=>e!=null&&O(e[oe]),a={isArray:H,isArrayBuffer:Ge,isBuffer:v,isFormData:Pt,isArrayBufferView:St,isString:Et,isNumber:Xe,isBoolean:Rt,isObject:K,isPlainObject:te,isEmptyObject:Tt,isReadableStream:Ft,isRequest:Lt,isResponse:_t,isHeaders:Ut,isUndefined:$,isDate:Ot,isFile:At,isBlob:Ct,isRegExp:vt,isFunction:O,isStream:Nt,isURLSearchParams:Dt,isTypedArray:Ht,isFileList:xt,forEach:Y,merge:me,extend:jt,trim:Bt,stripBOM:kt,inherits:It,toFlatObject:qt,kindOf:ie,kindOfTest:P,endsWith:Mt,toArray:$t,forEachEntry:zt,matchAll:Jt,isHTMLForm:Vt,hasOwnProperty:De,hasOwnProp:De,reduceDescriptors:et,freezeMethods:Kt,toObjectSet:Yt,toCamelCase:Wt,noop:Gt,toFiniteNumber:Xt,findKey:Ze,global:j,isContextDefined:Qe,isSpecCompliantForm:Zt,toJSONObject:Qt,isAsyncFn:en,isThenable:tn,setImmediate:tt,asap:nn,isIterable:rn};function y(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const nt=y.prototype,rt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{rt[e]={value:e}});Object.defineProperties(y,rt);Object.defineProperty(nt,"isAxiosError",{value:!0});y.from=(e,t,n,r,s,o)=>{const i=Object.create(nt);a.toFlatObject(e,i,function(l){return l!==Error.prototype},f=>f!=="isAxiosError");const c=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return y.call(i,c,d,n,r,s),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",o&&Object.assign(i,o),i};const sn=null;function ye(e){return a.isPlainObject(e)||a.isArray(e)}function st(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Fe(e,t,n){return e?e.concat(t).map(function(s,o){return s=st(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function on(e){return a.isArray(e)&&!e.some(ye)}const an=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ce(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,p){return!a.isUndefined(p[m])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function f(u){if(u===null)return"";if(a.isDate(u))return u.toISOString();if(a.isBoolean(u))return u.toString();if(!d&&a.isBlob(u))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(u)||a.isTypedArray(u)?d&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function l(u,m,p){let g=u;if(u&&!p&&typeof u=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),u=JSON.stringify(u);else if(a.isArray(u)&&on(u)||(a.isFileList(u)||a.endsWith(m,"[]"))&&(g=a.toArray(u)))return m=st(m),g.forEach(function(S,T){!(a.isUndefined(S)||S===null)&&t.append(i===!0?Fe([m],T,o):i===null?m:m+"[]",f(S))}),!1}return ye(u)?!0:(t.append(Fe(p,m,o),f(u)),!1)}const h=[],b=Object.assign(an,{defaultVisitor:l,convertValue:f,isVisitable:ye});function E(u,m){if(!a.isUndefined(u)){if(h.indexOf(u)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(u),a.forEach(u,function(g,C){(!(a.isUndefined(g)||g===null)&&s.call(t,g,a.isString(C)?C.trim():C,m,b))===!0&&E(g,m?m.concat(C):[C])}),h.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return E(e),t}function Le(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Se(e,t){this._pairs=[],e&&ce(e,this,t)}const ot=Se.prototype;ot.append=function(t,n){this._pairs.push([t,n])};ot.toString=function(t){const n=t?function(r){return t.call(this,r,Le)}:Le;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function cn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function it(e,t,n){if(!t)return e;const r=n&&n.encode||cn;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new Se(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class _e{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const at={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ln=typeof URLSearchParams<"u"?URLSearchParams:Se,un=typeof FormData<"u"?FormData:null,fn=typeof Blob<"u"?Blob:null,dn={isBrowser:!0,classes:{URLSearchParams:ln,FormData:un,Blob:fn},protocols:["http","https","file","blob","url","data"]},Ee=typeof window<"u"&&typeof document<"u",be=typeof navigator=="object"&&navigator||void 0,pn=Ee&&(!be||["ReactNative","NativeScript","NS"].indexOf(be.product)<0),hn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mn=Ee&&window.location.href||"http://localhost",yn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ee,hasStandardBrowserEnv:pn,hasStandardBrowserWebWorkerEnv:hn,navigator:be,origin:mn},Symbol.toStringTag,{value:"Module"})),R={...yn,...dn};function bn(e,t){return ce(e,new R.classes.URLSearchParams,{visitor:function(n,r,s,o){return R.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function wn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function gn(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function ct(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),d=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,d?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=gn(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(wn(r),s,n,0)}),n}return null}function Sn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const G={transitional:at,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(ct(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return bn(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return ce(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Sn(t)):t}],transformResponse:[function(t){const n=this.transitional||G.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(c){if(i)throw c.name==="SyntaxError"?y.from(c,y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:R.classes.FormData,Blob:R.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{G.headers[e]={}});const En=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Rn=e=>{const t={};let n,r,s;return e&&e.split(`
1
+ "use strict";const v=require("./CommonConstant-COHqiSWL.cjs"),M=require("./dayjs.min-b-u3u61q.cjs");var ve=(e=>(e.visitpad="/md/viewPatientDashboard.php",e.consultations="/md/viewPatientList.php",e.appointments="/md/viewPatientAppointments.php",e.settings="/md/viewPreferenceSettings.php",e.privateDb="/md/viewPrivateDB.php",e.dashboardBase="/",e.referEarn="/md/inviteReferrals.php",e.teleConsults="/md/viewRemoteAppointments.php",e.pricing="/subscription/pricing",e.billSummary="/subscription/bill-summary",e.pediatricsCalculator="/md/viewPediatricCalculator.php",e))(ve||{}),We=(e=>(e.PRODUCTION="PRODUCTION",e.STAGING="STAGING",e.DEVELOPMENT="DEVELOPMENT",e))(We||{});function Ke(e,t){return function(){return e.apply(t,arguments)}}const{toString:gt}=Object.prototype,{getPrototypeOf:ge}=Object,{iterator:oe,toStringTag:Ye}=Symbol,ie=(e=>t=>{const n=gt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>ie(t)===e),ae=e=>t=>typeof t===e,{isArray:H}=Array,$=ae("undefined");function W(e){return e!==null&&!$(e)&&e.constructor!==null&&!$(e.constructor)&&O(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ge=P("ArrayBuffer");function St(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ge(e.buffer),t}const Et=ae("string"),O=ae("function"),Xe=ae("number"),K=e=>e!==null&&typeof e=="object",Rt=e=>e===!0||e===!1,te=e=>{if(ie(e)!=="object")return!1;const t=ge(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ye in e)&&!(oe in e)},Tt=e=>{if(!K(e)||W(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Ot=P("Date"),At=P("File"),Ct=P("Blob"),xt=P("FileList"),Nt=e=>K(e)&&O(e.pipe),Pt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||O(e.append)&&((t=ie(e))==="formdata"||t==="object"&&O(e.toString)&&e.toString()==="[object FormData]"))},Dt=P("URLSearchParams"),[Ft,Lt,_t,Ut]=["ReadableStream","Request","Response","Headers"].map(P),Bt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Y(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),H(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(W(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function Ze(e,t){if(W(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const j=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qe=e=>!$(e)&&e!==j;function me(){const{caseless:e,skipUndefined:t}=Qe(this)&&this||{},n={},r=(s,o)=>{const i=e&&Ze(n,o)||o;te(n[i])&&te(s)?n[i]=me(n[i],s):te(s)?n[i]=me({},s):H(s)?n[i]=s.slice():(!t||!$(s))&&(n[i]=s)};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&Y(arguments[s],r);return n}const jt=(e,t,n,{allOwnKeys:r}={})=>(Y(t,(s,o)=>{n&&O(s)?e[o]=Ke(s,n):e[o]=s},{allOwnKeys:r}),e),kt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),It=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},qt=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&ge(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Mt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},$t=e=>{if(!e)return null;if(H(e))return e;let t=e.length;if(!Xe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ht=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ge(Uint8Array)),zt=(e,t)=>{const r=(e&&e[oe]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Jt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Vt=P("HTMLFormElement"),vt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),De=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Wt=P("RegExp"),et=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Y(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Kt=e=>{et(e,(t,n)=>{if(O(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(O(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Yt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return H(e)?r(e):r(String(e).split(t)),n},Gt=()=>{},Xt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Zt(e){return!!(e&&O(e.append)&&e[Ye]==="FormData"&&e[oe])}const Qt=e=>{const t=new Array(10),n=(r,s)=>{if(K(r)){if(t.indexOf(r)>=0)return;if(W(r))return r;if(!("toJSON"in r)){t[s]=r;const o=H(r)?[]:{};return Y(r,(i,c)=>{const d=n(i,s+1);!$(d)&&(o[c]=d)}),t[s]=void 0,o}}return r};return n(e,0)},en=P("AsyncFunction"),tn=e=>e&&(K(e)||O(e))&&O(e.then)&&O(e.catch),tt=((e,t)=>e?setImmediate:t?((n,r)=>(j.addEventListener("message",({source:s,data:o})=>{s===j&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),j.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",O(j.postMessage)),nn=typeof queueMicrotask<"u"?queueMicrotask.bind(j):typeof process<"u"&&process.nextTick||tt,rn=e=>e!=null&&O(e[oe]),a={isArray:H,isArrayBuffer:Ge,isBuffer:W,isFormData:Pt,isArrayBufferView:St,isString:Et,isNumber:Xe,isBoolean:Rt,isObject:K,isPlainObject:te,isEmptyObject:Tt,isReadableStream:Ft,isRequest:Lt,isResponse:_t,isHeaders:Ut,isUndefined:$,isDate:Ot,isFile:At,isBlob:Ct,isRegExp:Wt,isFunction:O,isStream:Nt,isURLSearchParams:Dt,isTypedArray:Ht,isFileList:xt,forEach:Y,merge:me,extend:jt,trim:Bt,stripBOM:kt,inherits:It,toFlatObject:qt,kindOf:ie,kindOfTest:P,endsWith:Mt,toArray:$t,forEachEntry:zt,matchAll:Jt,isHTMLForm:Vt,hasOwnProperty:De,hasOwnProp:De,reduceDescriptors:et,freezeMethods:Kt,toObjectSet:Yt,toCamelCase:vt,noop:Gt,toFiniteNumber:Xt,findKey:Ze,global:j,isContextDefined:Qe,isSpecCompliantForm:Zt,toJSONObject:Qt,isAsyncFn:en,isThenable:tn,setImmediate:tt,asap:nn,isIterable:rn};function y(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const nt=y.prototype,rt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{rt[e]={value:e}});Object.defineProperties(y,rt);Object.defineProperty(nt,"isAxiosError",{value:!0});y.from=(e,t,n,r,s,o)=>{const i=Object.create(nt);a.toFlatObject(e,i,function(l){return l!==Error.prototype},f=>f!=="isAxiosError");const c=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return y.call(i,c,d,n,r,s),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",o&&Object.assign(i,o),i};const sn=null;function ye(e){return a.isPlainObject(e)||a.isArray(e)}function st(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Fe(e,t,n){return e?e.concat(t).map(function(s,o){return s=st(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function on(e){return a.isArray(e)&&!e.some(ye)}const an=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ce(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,p){return!a.isUndefined(p[m])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function f(u){if(u===null)return"";if(a.isDate(u))return u.toISOString();if(a.isBoolean(u))return u.toString();if(!d&&a.isBlob(u))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(u)||a.isTypedArray(u)?d&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function l(u,m,p){let g=u;if(u&&!p&&typeof u=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),u=JSON.stringify(u);else if(a.isArray(u)&&on(u)||(a.isFileList(u)||a.endsWith(m,"[]"))&&(g=a.toArray(u)))return m=st(m),g.forEach(function(S,T){!(a.isUndefined(S)||S===null)&&t.append(i===!0?Fe([m],T,o):i===null?m:m+"[]",f(S))}),!1}return ye(u)?!0:(t.append(Fe(p,m,o),f(u)),!1)}const h=[],b=Object.assign(an,{defaultVisitor:l,convertValue:f,isVisitable:ye});function E(u,m){if(!a.isUndefined(u)){if(h.indexOf(u)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(u),a.forEach(u,function(g,C){(!(a.isUndefined(g)||g===null)&&s.call(t,g,a.isString(C)?C.trim():C,m,b))===!0&&E(g,m?m.concat(C):[C])}),h.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return E(e),t}function Le(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Se(e,t){this._pairs=[],e&&ce(e,this,t)}const ot=Se.prototype;ot.append=function(t,n){this._pairs.push([t,n])};ot.toString=function(t){const n=t?function(r){return t.call(this,r,Le)}:Le;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function cn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function it(e,t,n){if(!t)return e;const r=n&&n.encode||cn;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new Se(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class _e{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const at={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ln=typeof URLSearchParams<"u"?URLSearchParams:Se,un=typeof FormData<"u"?FormData:null,fn=typeof Blob<"u"?Blob:null,dn={isBrowser:!0,classes:{URLSearchParams:ln,FormData:un,Blob:fn},protocols:["http","https","file","blob","url","data"]},Ee=typeof window<"u"&&typeof document<"u",be=typeof navigator=="object"&&navigator||void 0,pn=Ee&&(!be||["ReactNative","NativeScript","NS"].indexOf(be.product)<0),hn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mn=Ee&&window.location.href||"http://localhost",yn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ee,hasStandardBrowserEnv:pn,hasStandardBrowserWebWorkerEnv:hn,navigator:be,origin:mn},Symbol.toStringTag,{value:"Module"})),R={...yn,...dn};function bn(e,t){return ce(e,new R.classes.URLSearchParams,{visitor:function(n,r,s,o){return R.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function wn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function gn(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function ct(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),d=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,d?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=gn(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(wn(r),s,n,0)}),n}return null}function Sn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const G={transitional:at,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(ct(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return bn(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return ce(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Sn(t)):t}],transformResponse:[function(t){const n=this.transitional||G.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(c){if(i)throw c.name==="SyntaxError"?y.from(c,y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:R.classes.FormData,Blob:R.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{G.headers[e]={}});const En=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Rn=e=>{const t={};let n,r,s;return e&&e.split(`
2
2
  `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&En[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ue=Symbol("internals");function V(e){return e&&String(e).trim().toLowerCase()}function ne(e){return e===!1||e==null?e:a.isArray(e)?e.map(ne):String(e)}function Tn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const On=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function de(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function An(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Cn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let A=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,d,f){const l=V(d);if(!l)throw new Error("header name must be a non-empty string");const h=a.findKey(s,l);(!h||s[h]===void 0||f===!0||f===void 0&&s[h]!==!1)&&(s[h||d]=ne(c))}const i=(c,d)=>a.forEach(c,(f,l)=>o(f,l,d));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!On(t))i(Rn(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},d,f;for(const l of t){if(!a.isArray(l))throw TypeError("Object iterator must return a key-value pair");c[f=l[0]]=(d=c[f])?a.isArray(d)?[...d,l[1]]:[d,l[1]]:l[1]}i(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=V(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Tn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=V(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||de(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=V(i),i){const c=a.findKey(r,i);c&&(!n||de(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||de(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=ne(s),delete n[o];return}const c=t?An(o):String(o).trim();c!==o&&delete n[o],n[c]=ne(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
3
3
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Ue]=this[Ue]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=V(i);r[c]||(Cn(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}};A.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(A.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(A);function pe(e,t){const n=this||G,r=t||n,s=A.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function lt(e){return!!(e&&e.__CANCEL__)}function z(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(z,y,{__CANCEL__:!0});function ut(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function xn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Nn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),l=r[o];i||(i=f),n[s]=d,r[s]=f;let h=o,b=0;for(;h!==s;)b+=n[h++],h=h%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),f-i<t)return;const E=l&&f-l;return E?Math.round(b*1e3/E):void 0}}function Pn(e,t){let n=0,r=1e3/t,s,o;const i=(f,l=Date.now())=>{n=l,s=null,o&&(clearTimeout(o),o=null),e(...f)};return[(...f)=>{const l=Date.now(),h=l-n;h>=r?i(f,l):(s=f,o||(o=setTimeout(()=>{o=null,i(s)},r-h)))},()=>s&&i(s)]}const se=(e,t,n=3)=>{let r=0;const s=Nn(50,250);return Pn(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,d=i-r,f=s(d),l=i<=c;r=i;const h={loaded:i,total:c,progress:c?i/c:void 0,bytes:d,rate:f||void 0,estimated:f&&c&&l?(c-i)/f:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},n)},Be=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},je=e=>(...t)=>a.asap(()=>e(...t)),Dn=R.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,R.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(R.origin),R.navigator&&/(msie|trident)/i.test(R.navigator.userAgent)):()=>!0,Fn=R.hasStandardBrowserEnv?{write(e,t,n,r,s,o,i){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];a.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),a.isString(r)&&c.push(`path=${r}`),a.isString(s)&&c.push(`domain=${s}`),o===!0&&c.push("secure"),a.isString(i)&&c.push(`SameSite=${i}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Ln(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _n(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ft(e,t,n){let r=!Ln(t);return e&&(r||n==!1)?_n(e,t):t}const ke=e=>e instanceof A?{...e}:e;function I(e,t){t=t||{};const n={};function r(f,l,h,b){return a.isPlainObject(f)&&a.isPlainObject(l)?a.merge.call({caseless:b},f,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(f,l,h,b){if(a.isUndefined(l)){if(!a.isUndefined(f))return r(void 0,f,h,b)}else return r(f,l,h,b)}function o(f,l){if(!a.isUndefined(l))return r(void 0,l)}function i(f,l){if(a.isUndefined(l)){if(!a.isUndefined(f))return r(void 0,f)}else return r(void 0,l)}function c(f,l,h){if(h in t)return r(f,l);if(h in e)return r(void 0,f)}const d={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(f,l,h)=>s(ke(f),ke(l),h,!0)};return a.forEach(Object.keys({...e,...t}),function(l){const h=d[l]||s,b=h(e[l],t[l],l);a.isUndefined(b)&&h!==c||(n[l]=b)}),n}const dt=e=>{const t=I({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;if(t.headers=i=A.from(i),t.url=it(ft(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),a.isFormData(n)){if(R.hasStandardBrowserEnv||R.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(a.isFunction(n.getHeaders)){const d=n.getHeaders(),f=["content-type","content-length"];Object.entries(d).forEach(([l,h])=>{f.includes(l.toLowerCase())&&i.set(l,h)})}}if(R.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&Dn(t.url))){const d=s&&o&&Fn.read(o);d&&i.set(s,d)}return t},Un=typeof XMLHttpRequest<"u",Bn=Un&&function(e){return new Promise(function(n,r){const s=dt(e);let o=s.data;const i=A.from(s.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:f}=s,l,h,b,E,u;function m(){E&&E(),u&&u(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let p=new XMLHttpRequest;p.open(s.method.toUpperCase(),s.url,!0),p.timeout=s.timeout;function g(){if(!p)return;const S=A.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),N={data:!c||c==="text"||c==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:S,config:e,request:p};ut(function(x){n(x),m()},function(x){r(x),m()},N),p=null}"onloadend"in p?p.onloadend=g:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(g)},p.onabort=function(){p&&(r(new y("Request aborted",y.ECONNABORTED,e,p)),p=null)},p.onerror=function(T){const N=T&&T.message?T.message:"Network Error",U=new y(N,y.ERR_NETWORK,e,p);U.event=T||null,r(U),p=null},p.ontimeout=function(){let T=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const N=s.transitional||at;s.timeoutErrorMessage&&(T=s.timeoutErrorMessage),r(new y(T,N.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,p)),p=null},o===void 0&&i.setContentType(null),"setRequestHeader"in p&&a.forEach(i.toJSON(),function(T,N){p.setRequestHeader(N,T)}),a.isUndefined(s.withCredentials)||(p.withCredentials=!!s.withCredentials),c&&c!=="json"&&(p.responseType=s.responseType),f&&([b,u]=se(f,!0),p.addEventListener("progress",b)),d&&p.upload&&([h,E]=se(d),p.upload.addEventListener("progress",h),p.upload.addEventListener("loadend",E)),(s.cancelToken||s.signal)&&(l=S=>{p&&(r(!S||S.type?new z(null,e,p):S),p.abort(),p=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const C=xn(s.url);if(C&&R.protocols.indexOf(C)===-1){r(new y("Unsupported protocol "+C+":",y.ERR_BAD_REQUEST,e));return}p.send(o||null)})},jn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(f){if(!s){s=!0,c();const l=f instanceof Error?f:this.reason;r.abort(l instanceof y?l:new z(l instanceof Error?l.message:l))}};let i=t&&setTimeout(()=>{i=null,o(new y(`timeout ${t} of ms exceeded`,y.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),e=null)};e.forEach(f=>f.addEventListener("abort",o));const{signal:d}=r;return d.unsubscribe=()=>a.asap(c),d}},kn=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},In=async function*(e,t){for await(const n of qn(e))yield*kn(n,t)},qn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Ie=(e,t,n,r)=>{const s=In(e,t);let o=0,i,c=d=>{i||(i=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:l}=await s.next();if(f){c(),d.close();return}let h=l.byteLength;if(n){let b=o+=h;n(b)}d.enqueue(new Uint8Array(l))}catch(f){throw c(f),f}},cancel(d){return c(d),s.return()}},{highWaterMark:2})},qe=64*1024,{isFunction:ee}=a,Mn=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:Me,TextEncoder:$e}=a.global,He=(e,...t)=>{try{return!!e(...t)}catch{return!1}},$n=e=>{e=a.merge.call({skipUndefined:!0},Mn,e);const{fetch:t,Request:n,Response:r}=e,s=t?ee(t):typeof fetch=="function",o=ee(n),i=ee(r);if(!s)return!1;const c=s&&ee(Me),d=s&&(typeof $e=="function"?(u=>m=>u.encode(m))(new $e):async u=>new Uint8Array(await new n(u).arrayBuffer())),f=o&&c&&He(()=>{let u=!1;const m=new n(R.origin,{body:new Me,method:"POST",get duplex(){return u=!0,"half"}}).headers.has("Content-Type");return u&&!m}),l=i&&c&&He(()=>a.isReadableStream(new r("").body)),h={stream:l&&(u=>u.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(u=>{!h[u]&&(h[u]=(m,p)=>{let g=m&&m[u];if(g)return g.call(m);throw new y(`Response type '${u}' is not supported`,y.ERR_NOT_SUPPORT,p)})});const b=async u=>{if(u==null)return 0;if(a.isBlob(u))return u.size;if(a.isSpecCompliantForm(u))return(await new n(R.origin,{method:"POST",body:u}).arrayBuffer()).byteLength;if(a.isArrayBufferView(u)||a.isArrayBuffer(u))return u.byteLength;if(a.isURLSearchParams(u)&&(u=u+""),a.isString(u))return(await d(u)).byteLength},E=async(u,m)=>{const p=a.toFiniteNumber(u.getContentLength());return p??b(m)};return async u=>{let{url:m,method:p,data:g,signal:C,cancelToken:S,timeout:T,onDownloadProgress:N,onUploadProgress:U,responseType:x,headers:ue,withCredentials:X="same-origin",fetchOptions:Oe}=dt(u),Ae=t||fetch;x=x?(x+"").toLowerCase():"text";let Z=jn([C,S&&S.toAbortSignal()],T),J=null;const B=Z&&Z.unsubscribe&&(()=>{Z.unsubscribe()});let Ce;try{if(U&&f&&p!=="get"&&p!=="head"&&(Ce=await E(ue,g))!==0){let _=new n(m,{method:"POST",body:g,duplex:"half"}),q;if(a.isFormData(g)&&(q=_.headers.get("content-type"))&&ue.setContentType(q),_.body){const[fe,Q]=Be(Ce,se(je(U)));g=Ie(_.body,qe,fe,Q)}}a.isString(X)||(X=X?"include":"omit");const D=o&&"credentials"in n.prototype,xe={...Oe,signal:Z,method:p.toUpperCase(),headers:ue.normalize().toJSON(),body:g,duplex:"half",credentials:D?X:void 0};J=o&&new n(m,xe);let L=await(o?Ae(J,Oe):Ae(m,xe));const Ne=l&&(x==="stream"||x==="response");if(l&&(N||Ne&&B)){const _={};["status","statusText","headers"].forEach(Pe=>{_[Pe]=L[Pe]});const q=a.toFiniteNumber(L.headers.get("content-length")),[fe,Q]=N&&Be(q,se(je(N),!0))||[];L=new r(Ie(L.body,qe,fe,()=>{Q&&Q(),B&&B()}),_)}x=x||"text";let wt=await h[a.findKey(h,x)||"text"](L,u);return!Ne&&B&&B(),await new Promise((_,q)=>{ut(_,q,{data:wt,headers:A.from(L.headers),status:L.status,statusText:L.statusText,config:u,request:J})})}catch(D){throw B&&B(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,u,J),{cause:D.cause||D}):y.from(D,D&&D.code,u,J)}}},Hn=new Map,pt=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,o=[r,s,n];let i=o.length,c=i,d,f,l=Hn;for(;c--;)d=o[c],f=l.get(d),f===void 0&&l.set(d,f=c?new Map:$n(t)),l=f;return f};pt();const Re={http:sn,xhr:Bn,fetch:{get:pt}};a.forEach(Re,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ze=e=>`- ${e}`,zn=e=>a.isFunction(e)||e===null||e===!1;function Jn(e,t){e=a.isArray(e)?e:[e];const{length:n}=e;let r,s;const o={};for(let i=0;i<n;i++){r=e[i];let c;if(s=r,!zn(r)&&(s=Re[(c=String(r)).toLowerCase()],s===void 0))throw new y(`Unknown adapter '${c}'`);if(s&&(a.isFunction(s)||(s=s.get(t))))break;o[c||"#"+i]=s}if(!s){const i=Object.entries(o).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let c=n?i.length>1?`since :
4
4
  `+i.map(ze).join(`
5
5
  `):" "+ze(i[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const ht={getAdapter:Jn,adapters:Re};function he(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new z(null,e)}function Je(e){return he(e),e.headers=A.from(e.headers),e.data=pe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ht.getAdapter(e.adapter||G.adapter,e)(e).then(function(r){return he(e),r.data=pe.call(e,e.transformResponse,r),r.headers=A.from(r.headers),r},function(r){return lt(r)||(he(e),r&&r.response&&(r.response.data=pe.call(e,e.transformResponse,r.response),r.response.headers=A.from(r.response.headers))),Promise.reject(r)})}const mt="1.13.1",le={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{le[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ve={};le.transitional=function(t,n,r){function s(o,i){return"[Axios v"+mt+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new y(s(i," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!Ve[i]&&(Ve[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};le.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Vn(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],d=c===void 0||i(c,o,e);if(d!==!0)throw new y("option "+o+" must be "+d,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+o,y.ERR_BAD_OPTION)}}const re={assertOptions:Vn,validators:le},F=re.validators;let k=class{constructor(t){this.defaults=t||{},this.interceptors={request:new _e,response:new _e}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
- `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=I(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&re.assertOptions(r,{silentJSONParsing:F.transitional(F.boolean),forcedJSONParsing:F.transitional(F.boolean),clarifyTimeoutError:F.transitional(F.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:re.assertOptions(s,{encode:F.function,serialize:F.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),re.assertOptions(n,{baseUrl:F.spelling("baseURL"),withXsrfToken:F.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],u=>{delete o[u]}),n.headers=A.concat(i,o);const c=[];let d=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(d=d&&m.synchronous,c.unshift(m.fulfilled,m.rejected))});const f=[];this.interceptors.response.forEach(function(m){f.push(m.fulfilled,m.rejected)});let l,h=0,b;if(!d){const u=[Je.bind(this),void 0];for(u.unshift(...c),u.push(...f),b=u.length,l=Promise.resolve(n);h<b;)l=l.then(u[h++],u[h++]);return l}b=c.length;let E=n;for(;h<b;){const u=c[h++],m=c[h++];try{E=u(E)}catch(p){m.call(this,p);break}}try{l=Je.call(this,E)}catch(u){return Promise.reject(u)}for(h=0,b=f.length;h<b;)l=l.then(f[h++],f[h++]);return l}getUri(t){t=I(this.defaults,t);const n=ft(t.baseURL,t.url,t.allowAbsoluteUrls);return it(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){k.prototype[t]=function(n,r){return this.request(I(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(I(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}k.prototype[t]=n(),k.prototype[t+"Form"]=n(!0)});let Wn=class yt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new z(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new yt(function(s){t=s}),cancel:t}}};function vn(e){return function(n){return e.apply(null,n)}}function Kn(e){return a.isObject(e)&&e.isAxiosError===!0}const we={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(we).forEach(([e,t])=>{we[t]=e});function bt(e){const t=new k(e),n=Ke(k.prototype.request,t);return a.extend(n,k.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return bt(I(e,s))},n}const w=bt(G);w.Axios=k;w.CanceledError=z;w.CancelToken=Wn;w.isCancel=lt;w.VERSION=mt;w.toFormData=ce;w.AxiosError=y;w.Cancel=w.CanceledError;w.all=function(t){return Promise.all(t)};w.spread=vn;w.isAxiosError=Kn;w.mergeConfig=I;w.AxiosHeaders=A;w.formToJSON=e=>ct(a.isHTMLForm(e)?new FormData(e):e);w.getAdapter=ht.getAdapter;w.HttpStatusCode=we;w.default=w;const{Axios:br,AxiosError:wr,CanceledError:gr,isCancel:Sr,CancelToken:Er,VERSION:Rr,all:Tr,Cancel:Or,isAxiosError:Ar,spread:Cr,toFormData:xr,AxiosHeaders:Nr,HttpStatusCode:Pr,formToJSON:Dr,getAdapter:Fr,mergeConfig:Lr}=w,Te={timeout:60*1e3,headers:{Accept:"application/json","Content-Type":"application/json"}},Yn=(e="",t)=>{const n=w.create({...Te,baseURL:W.BASE_URLS[t].rearch_url});return n.interceptors.request.use(r=>(e&&r.headers&&(r.headers.Authorization=`Bearer ${e}`),r),r=>Promise.reject(r)),n.interceptors.response.use(r=>r,r=>{const{response:s,request:o}=r||{};return Promise.reject(s||o)}),n},Gn=(e="",t)=>{const n=w.create({...Te,baseURL:W.BASE_URLS[t].rearch_url});return n.interceptors.request.use(r=>(e&&r.headers&&(r.headers.Authorization=`Bearer ${e}`),r),r=>Promise.reject(r)),n.interceptors.response.use(r=>r,r=>{const{response:s,request:o}=r||{};return Promise.reject(s||o)}),n},Xn=(e="",t)=>{const n=w.create({...Te,baseURL:W.BASE_URLS[t].php_url});return n.interceptors.request.use(r=>(e&&r.headers&&(r.headers.Authorization=`Bearer ${e}`),r),r=>Promise.reject(r)),n.interceptors.response.use(r=>r,r=>{const{response:s,request:o}=r||{};return Promise.reject(s||o)}),n},Zn=e=>{window.location.href=e},Qn=e=>{const t=[];if(e.length)for(const n of e)t.push({title:n,value:n});return t},er=e=>{const t=[];if(e.length)for(const n of e)t.push({doctor_id:n.doctor_id?n.doctor_id:"",doctor_name:n.doctor_name?n.doctor_name:"",label:n.doctor_name?n.doctor_name:"",specialist:n.specialist||""});return t},tr=e=>{try{JSON.parse(e)}catch(t){return console.log("Error parsing JSON:",t),!1}return!0},nr=(e,t)=>{if(t?.length){const n=t.toLowerCase();if(e&&(n==="day"||n==="days"||n==="weeks"||n==="months"||n==="years")){e=e?e.toString():"";const r=M.dayjs().subtract(Number(e.replace(/[^0-9]/g,"")),n);return M.dayjs(r).format("YYYY-MM-DD")}return null}return null},rr=e=>{switch(e){case"0":return"M";case"1":return"F";case"2":return"O";default:return"O"}},sr=e=>{const t=W.genderList.find(n=>n.value===e);return t&&t.text?t.text.slice(0,1):""},or=e=>{let t="";return new RegExp("^[0-9]{10}$").test(e)?{isError:!1,msg:t}:(e.length<10?t="Please enter 10 digit number":e.length>10?t="Invalid phone number. Should have at most 10 digits.":/^\d+$/.test(e)?t="Please enter 10 digit number":t="Invalid phone number. Should contain only digits.",{isError:!0,msg:t})},ir=e=>e?new Date(e).toString()!=="Invalid Date":!1;function ar(e){const t=M.dayjs(e).format("YYYY-MM-DD"),n=new Date(t),s=Math.abs(new Date().getTime()-n.getTime()),o=Math.ceil(s/(1e3*60*60*24));if(o<=7)return`${o} days`;if(o<=30)return`${Math.floor(o/7)} weeks`;if(o<=365)return`${Math.floor(o/30)} months`;{const i=Math.floor(o/365);return isNaN(i)?"":`${i} years`}}const cr=(e,t=300)=>{let n=null;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{n=null,e.apply(this,r)},t)}},lr=(e,t)=>{if(t?.length){const n=t.toLowerCase();if(e&&(n==="day"||n==="days"||n==="weeks"||n==="months"||n==="years")){e=e?e.toString():"";const r=M.dayjs().subtract(Number(e.replace(/[^0-9]/g,"")),n);return M.dayjs(r).format("YYYY-MM-DD")}return null}return null},ur=()=>{const{title:e,subTitle:t,type:n,time:r}=W.UnauthorizedAccessMessage;typeof window.showToast=="function"&&window.showToast(e,t,n,r)};function fr(e=""){return e?e.charAt(0).toUpperCase()+e.slice(1):""}const dr=(e="",t="")=>{const n=e.split(" ")[0].toLowerCase();window.location.href=`${window.location.origin}/subscription/${n}/${t}`},pr=(e,t="")=>{const n=t?.length&&t?.trim()?t?.trim():"";try{if(typeof e=="string"&&e?.length&&e?.trim()){const r=e.replace(/\s+/g," ").trim().split(" ");return r?.length?{duration:r[0]||"",durationType:r[1]?.length?r[1]:n||""}:{duration:"",durationType:""}}return{duration:e?`${e}`:"",durationType:n}}catch(r){return console.log(r,"getDurationFormat"),{duration:"",durationType:""}}},hr=(e,t)=>`${M.dayjs(new Date(e?.replace(/[Z[\]]/g,""))).format(t)}`;exports.EAPP_ROUTES=We;exports.E_ENVIRONMENT=ve;exports.ReArchAPI=Gn;exports.calculateAge=ar;exports.calculateDOB=lr;exports.calculateDate=nr;exports.capitalizeFirstLetter=fr;exports.debounceFn=cr;exports.formatDateTimeAtUtils=hr;exports.getDurationFormat=pr;exports.getGender=sr;exports.getGenderKey=rr;exports.goToPage=Zn;exports.handle401Status=ur;exports.hplxAPI=Yn;exports.hplxPHPAPI=Xn;exports.isJson=tr;exports.isValidDate=ir;exports.parseReferredByDocList=er;exports.parseThroughChannelList=Qn;exports.redirectionToSubscription=dr;exports.validateMobileNo=or;
6
+ `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=I(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&re.assertOptions(r,{silentJSONParsing:F.transitional(F.boolean),forcedJSONParsing:F.transitional(F.boolean),clarifyTimeoutError:F.transitional(F.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:re.assertOptions(s,{encode:F.function,serialize:F.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),re.assertOptions(n,{baseUrl:F.spelling("baseURL"),withXsrfToken:F.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],u=>{delete o[u]}),n.headers=A.concat(i,o);const c=[];let d=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(d=d&&m.synchronous,c.unshift(m.fulfilled,m.rejected))});const f=[];this.interceptors.response.forEach(function(m){f.push(m.fulfilled,m.rejected)});let l,h=0,b;if(!d){const u=[Je.bind(this),void 0];for(u.unshift(...c),u.push(...f),b=u.length,l=Promise.resolve(n);h<b;)l=l.then(u[h++],u[h++]);return l}b=c.length;let E=n;for(;h<b;){const u=c[h++],m=c[h++];try{E=u(E)}catch(p){m.call(this,p);break}}try{l=Je.call(this,E)}catch(u){return Promise.reject(u)}for(h=0,b=f.length;h<b;)l=l.then(f[h++],f[h++]);return l}getUri(t){t=I(this.defaults,t);const n=ft(t.baseURL,t.url,t.allowAbsoluteUrls);return it(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){k.prototype[t]=function(n,r){return this.request(I(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(I(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}k.prototype[t]=n(),k.prototype[t+"Form"]=n(!0)});let vn=class yt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new z(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new yt(function(s){t=s}),cancel:t}}};function Wn(e){return function(n){return e.apply(null,n)}}function Kn(e){return a.isObject(e)&&e.isAxiosError===!0}const we={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(we).forEach(([e,t])=>{we[t]=e});function bt(e){const t=new k(e),n=Ke(k.prototype.request,t);return a.extend(n,k.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return bt(I(e,s))},n}const w=bt(G);w.Axios=k;w.CanceledError=z;w.CancelToken=vn;w.isCancel=lt;w.VERSION=mt;w.toFormData=ce;w.AxiosError=y;w.Cancel=w.CanceledError;w.all=function(t){return Promise.all(t)};w.spread=Wn;w.isAxiosError=Kn;w.mergeConfig=I;w.AxiosHeaders=A;w.formToJSON=e=>ct(a.isHTMLForm(e)?new FormData(e):e);w.getAdapter=ht.getAdapter;w.HttpStatusCode=we;w.default=w;const{Axios:wr,AxiosError:gr,CanceledError:Sr,isCancel:Er,CancelToken:Rr,VERSION:Tr,all:Or,Cancel:Ar,isAxiosError:Cr,spread:xr,toFormData:Nr,AxiosHeaders:Pr,HttpStatusCode:Dr,formToJSON:Fr,getAdapter:Lr,mergeConfig:_r}=w,Te={timeout:60*1e3,headers:{Accept:"application/json","Content-Type":"application/json"}},Yn=(e="",t)=>{const n=w.create({...Te,baseURL:v.BASE_URLS[t].rearch_url});return n.interceptors.request.use(r=>(e&&r.headers&&(r.headers.Authorization=`Bearer ${e}`),r),r=>Promise.reject(r)),n.interceptors.response.use(r=>r,r=>{const{response:s,request:o}=r||{};return Promise.reject(s||o)}),n},Gn=(e="",t)=>{const n=w.create({...Te,baseURL:v.BASE_URLS[t].rearch_url});return n.interceptors.request.use(r=>(e&&r.headers&&(r.headers.Authorization=`Bearer ${e}`),r),r=>Promise.reject(r)),n.interceptors.response.use(r=>r,r=>{const{response:s,request:o}=r||{};return Promise.reject(s||o)}),n},Xn=(e="",t)=>{const n=w.create({...Te,baseURL:v.BASE_URLS[t].php_url});return n.interceptors.request.use(r=>(e&&r.headers&&(r.headers.Authorization=`Bearer ${e}`),r),r=>Promise.reject(r)),n.interceptors.response.use(r=>r,r=>{const{response:s,request:o}=r||{};return Promise.reject(s||o)}),n},Zn=e=>{window.location.href=e},Qn=e=>{const{origin:t}=window.location;window.location.href=`${t}/md/viewPatientDashboard.php?pid=${e}`},er=e=>{const t=[];if(e.length)for(const n of e)t.push({title:n,value:n});return t},tr=e=>{const t=[];if(e.length)for(const n of e)t.push({doctor_id:n.doctor_id?n.doctor_id:"",doctor_name:n.doctor_name?n.doctor_name:"",label:n.doctor_name?n.doctor_name:"",specialist:n.specialist||""});return t},nr=e=>{try{JSON.parse(e)}catch(t){return console.log("Error parsing JSON:",t),!1}return!0},rr=(e,t)=>{if(t?.length){const n=t.toLowerCase();if(e&&(n==="day"||n==="days"||n==="weeks"||n==="months"||n==="years")){e=e?e.toString():"";const r=M.dayjs().subtract(Number(e.replace(/[^0-9]/g,"")),n);return M.dayjs(r).format("YYYY-MM-DD")}return null}return null},sr=e=>{switch(e){case"0":return"M";case"1":return"F";case"2":return"O";default:return"O"}},or=e=>{const t=v.genderList.find(n=>n.value===e);return t&&t.text?t.text.slice(0,1):""},ir=e=>{let t="";return new RegExp("^[0-9]{10}$").test(e)?{isError:!1,msg:t}:(e.length<10?t="Please enter 10 digit number":e.length>10?t="Invalid phone number. Should have at most 10 digits.":/^\d+$/.test(e)?t="Please enter 10 digit number":t="Invalid phone number. Should contain only digits.",{isError:!0,msg:t})},ar=e=>e?new Date(e).toString()!=="Invalid Date":!1;function cr(e){const t=M.dayjs(e).format("YYYY-MM-DD"),n=new Date(t),s=Math.abs(new Date().getTime()-n.getTime()),o=Math.ceil(s/(1e3*60*60*24));if(o<=7)return`${o} days`;if(o<=30)return`${Math.floor(o/7)} weeks`;if(o<=365)return`${Math.floor(o/30)} months`;{const i=Math.floor(o/365);return isNaN(i)?"":`${i} years`}}const lr=(e,t=300)=>{let n=null;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{n=null,e.apply(this,r)},t)}},ur=(e,t)=>{if(t?.length){const n=t.toLowerCase();if(e&&(n==="day"||n==="days"||n==="weeks"||n==="months"||n==="years")){e=e?e.toString():"";const r=M.dayjs().subtract(Number(e.replace(/[^0-9]/g,"")),n);return M.dayjs(r).format("YYYY-MM-DD")}return null}return null},fr=()=>{const{title:e,subTitle:t,type:n,time:r}=v.UnauthorizedAccessMessage;typeof window.showToast=="function"&&window.showToast(e,t,n,r)};function dr(e=""){return e?e.charAt(0).toUpperCase()+e.slice(1):""}const pr=(e="",t="")=>{const n=e.split(" ")[0].toLowerCase();window.location.href=`${window.location.origin}/subscription/${n}/${t}`},hr=(e,t="")=>{const n=t?.length&&t?.trim()?t?.trim():"";try{if(typeof e=="string"&&e?.length&&e?.trim()){const r=e.replace(/\s+/g," ").trim().split(" ");return r?.length?{duration:r[0]||"",durationType:r[1]?.length?r[1]:n||""}:{duration:"",durationType:""}}return{duration:e?`${e}`:"",durationType:n}}catch(r){return console.log(r,"getDurationFormat"),{duration:"",durationType:""}}},mr=(e,t)=>`${M.dayjs(new Date(e?.replace(/[Z[\]]/g,""))).format(t)}`;exports.EAPP_ROUTES=ve;exports.E_ENVIRONMENT=We;exports.ReArchAPI=Gn;exports.calculateAge=cr;exports.calculateDOB=ur;exports.calculateDate=rr;exports.capitalizeFirstLetter=dr;exports.debounceFn=lr;exports.formatDateTimeAtUtils=mr;exports.getDurationFormat=hr;exports.getGender=or;exports.getGenderKey=sr;exports.goToPage=Zn;exports.goToPatientDashboard=Qn;exports.handle401Status=fr;exports.hplxAPI=Yn;exports.hplxPHPAPI=Xn;exports.isJson=nr;exports.isValidDate=ar;exports.parseReferredByDocList=tr;exports.parseThroughChannelList=er;exports.redirectionToSubscription=pr;exports.validateMobileNo=ir;