/*! For license information please see main.8c747172.js.LICENSE.txt */
(()=>{var e={51:(e,t,n)=>{"use strict";n.d(t,{FR:()=>p,MW:()=>d,tk:()=>l});var a=n(6753);const r=18e5,i=72e5,o=new Map,s=new Map,l=async(e,t,n)=>{const a=((e,t,n)=>"schedule_".concat(e,"_").concat(t,"_").concat(n))(e,t,n);if(o.has(a)){const e=o.get(a);if(Date.now()-e.timestamp<r)return e.data}try{const r=await c(e),l=u(r),d=e=>{const t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(a)},p=new Date(t,n+1,0).getDate(),f={year:t,month:n,doctorEmail:e,days:{},availableDays:[],totalSlots:0,availableSlots:0};for(let e=1;e<=p;e++){const a=d(new Date(t,n,e)),r=l[a]||null;if(r){var i,s;const e=(null===(i=r.starttiming)||void 0===i?void 0:i.length)||0,t=e-((null===(s=r.bookslots)||void 0===s?void 0:s.length)||0);f.days[a]={hasSlots:!0,totalSlots:e,availableSlots:t,slots:r,lastUpdated:Date.now()},t>0&&f.availableDays.push(a),f.totalSlots+=e,f.availableSlots+=t}else f.days[a]={hasSlots:!1,totalSlots:0,availableSlots:0,slots:null,error:"No slots available",lastUpdated:Date.now()}}return o.set(a,{data:f,timestamp:Date.now()}),f}catch(l){return console.error("Error fetching monthly schedule:",l),{year:t,month:n,doctorEmail:e,days:{},availableDays:[],totalSlots:0,availableSlots:0}}},c=async e=>{const t="bulk_".concat(e);if(s.has(t)){const e=s.get(t);if(Date.now()-e.timestamp<r)return e.data}const n=encodeURIComponent(e),i=(await a.A.get("/patient/doctor/doctor-slots-bulk/?doctor_email=".concat(n))).data;return s.set(t,{data:i,timestamp:Date.now()}),i},u=e=>{var t,n,a;const r=null!==(t=null!==(n=null!==(a=null===e||void 0===e?void 0:e.calendar)&&void 0!==a?a:null===e||void 0===e?void 0:e.data)&&void 0!==n?n:null===e||void 0===e?void 0:e.slots)&&void 0!==t?t:e;if(r&&"object"===typeof r&&!Array.isArray(r))return r;if(Array.isArray(r)){const e={};return r.forEach(t=>{null!==t&&void 0!==t&&t.date&&(e[t.date]=t)}),e}return{}},d=e=>e?{totalDays:Object.keys(e.days).length,availableDays:e.availableDays.length,totalSlots:e.totalSlots,availableSlots:e.availableSlots,utilizationRate:e.totalSlots>0?((e.totalSlots-e.availableSlots)/e.totalSlots*100).toFixed(1):0}:null,p=async(e,t,n)=>{const a=[],r=0===n?11:n-1,i=0===n?t-1:t;a.push(l(e,i,r).catch(e=>{}));const o=11===n?0:n+1,s=11===n?t+1:t;a.push(l(e,s,o).catch(e=>{})),Promise.all(a)};setInterval(()=>{const e=Date.now();for(const[t,n]of o.entries())e-n.timestamp>i&&o.delete(t);for(const[t,n]of s.entries())e-n.timestamp>i&&s.delete(t)},3e5)},184:(e,t,n)=>{"use strict";n.d(t,{A7C:()=>w,Cab:()=>D,Cer:()=>R,DSS:()=>o,HiP:()=>H,JhU:()=>L,Ny1:()=>P,OKX:()=>A,QCr:()=>B,QEs:()=>l,QVr:()=>p,RCe:()=>V,SMR:()=>F,TNq:()=>E,Ucs:()=>S,Vk6:()=>d,Vr3:()=>j,X6T:()=>_,YYR:()=>x,Z0P:()=>f,_Jj:()=>k,ao$:()=>s,bfZ:()=>m,cpg:()=>c,dIn:()=>z,eMv:()=>r,feZ:()=>u,gUT:()=>g,hko:()=>h,iYk:()=>i,itz:()=>v,maD:()=>C,mx3:()=>T,qQC:()=>I,rQ8:()=>O,v$b:()=>b,wJQ:()=>U,x$1:()=>q,x1c:()=>N,y8Q:()=>M,z44:()=>y});var a=n(3441);function r(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"},child:[]}]})(e)}function i(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"},child:[]}]})(e)}function o(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 488 512"},child:[{tag:"path",attr:{d:"M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"},child:[]}]})(e)}function s(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(e)}function l(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},child:[]}]})(e)}function c(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 32h214.6v214.6H0V32zm233.4 0H448v214.6H233.4V32zM0 265.4h214.6V480H0V265.4zm233.4 0H448V480H233.4V265.4z"},child:[]}]})(e)}function u(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},child:[]}]})(e)}function d(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"},child:[]}]})(e)}function p(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"},child:[]}]})(e)}function f(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"},child:[]}]})(e)}function h(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M542.22 32.05c-54.8 3.11-163.72 14.43-230.96 55.59-4.64 2.84-7.27 7.89-7.27 13.17v363.87c0 11.55 12.63 18.85 23.28 13.49 69.18-34.82 169.23-44.32 218.7-46.92 16.89-.89 30.02-14.43 30.02-30.66V62.75c.01-17.71-15.35-31.74-33.77-30.7zM264.73 87.64C197.5 46.48 88.58 35.17 33.78 32.05 15.36 31.01 0 45.04 0 62.75V400.6c0 16.24 13.13 29.78 30.02 30.66 49.49 2.6 149.59 12.11 218.77 46.95 10.62 5.35 23.21-1.94 23.21-13.46V100.63c0-5.29-2.62-10.14-7.27-12.99z"},child:[]}]})(e)}function m(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm320-196c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM192 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM64 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z"},child:[]}]})(e)}function g(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M436 160H12c-6.627 0-12-5.373-12-12v-36c0-26.51 21.49-48 48-48h48V12c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v52h128V12c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v52h48c26.51 0 48 21.49 48 48v36c0 6.627-5.373 12-12 12zM12 192h424c6.627 0 12 5.373 12 12v260c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V204c0-6.627 5.373-12 12-12zm333.296 95.947l-28.169-28.398c-4.667-4.705-12.265-4.736-16.97-.068L194.12 364.665l-45.98-46.352c-4.667-4.705-12.266-4.736-16.971-.068l-28.397 28.17c-4.705 4.667-4.736 12.265-.068 16.97l82.601 83.269c4.667 4.705 12.265 4.736 16.97.068l142.953-141.805c4.705-4.667 4.736-12.265.068-16.97z"},child:[]}]})(e)}function v(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm436-44v-36c0-26.5-21.5-48-48-48h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v36c0 6.6 5.4 12 12 12h424c6.6 0 12-5.4 12-12z"},child:[]}]})(e)}function y(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"},child:[]}]})(e)}function b(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"},child:[]}]})(e)}function x(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"},child:[]}]})(e)}function w(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},child:[]}]})(e)}function j(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(e)}function k(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"},child:[]}]})(e)}function _(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"},child:[]}]})(e)}function S(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"},child:[]}]})(e)}function N(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V256H0v176zm192-68c0-6.6 5.4-12 12-12h136c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-40zm-128 0c0-6.6 5.4-12 12-12h72c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM576 80v48H0V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48z"},child:[]}]})(e)}function C(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"},child:[]}]})(e)}function E(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},child:[]}]})(e)}function T(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"},child:[]}]})(e)}function P(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"},child:[]}]})(e)}function A(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"},child:[]}]})(e)}function O(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"},child:[]}]})(e)}function L(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"},child:[]}]})(e)}function R(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z"},child:[]}]})(e)}function D(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"},child:[]}]})(e)}function I(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"},child:[]}]})(e)}function M(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M32,224H64V416H32A31.96166,31.96166,0,0,1,0,384V256A31.96166,31.96166,0,0,1,32,224Zm512-48V448a64.06328,64.06328,0,0,1-64,64H160a64.06328,64.06328,0,0,1-64-64V176a79.974,79.974,0,0,1,80-80H288V32a32,32,0,0,1,64,0V96H464A79.974,79.974,0,0,1,544,176ZM264,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,264,256Zm-8,128H192v32h64Zm96,0H288v32h64ZM456,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,456,256Zm-8,128H384v32h64ZM640,256V384a31.96166,31.96166,0,0,1-32,32H576V224h32A31.96166,31.96166,0,0,1,640,256Z"},child:[]}]})(e)}function z(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"},child:[]}]})(e)}function F(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M466.5 83.7l-192-80a48.15 48.15 0 0 0-36.9 0l-192 80C27.7 91.1 16 108.6 16 128c0 198.5 114.5 335.7 221.5 380.3 11.8 4.9 25.1 4.9 36.9 0C360.1 472.6 496 349.3 496 128c0-19.4-11.7-36.9-29.5-44.3zM256.1 446.3l-.1-381 175.9 73.3c-3.3 151.4-82.1 261.1-175.8 307.7z"},child:[]}]})(e)}function U(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"},child:[]}]})(e)}function B(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(e)}function V(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"},child:[]}]})(e)}function q(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},child:[]}]})(e)}function H(e){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z"},child:[]}]})(e)}},219:(e,t,n)=>{"use strict";var a=n(3763),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return a.isMemo(e)?o:s[e.$$typeof]||r}s[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[a.Memo]=o;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,a){if("string"!==typeof n){if(h){var r=f(n);r&&r!==h&&e(t,r,a)}var o=u(n);d&&(o=o.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<o.length;++g){var v=o[g];if(!i[v]&&(!a||!a[v])&&(!m||!m[v])&&(!s||!s[v])){var y=p(n,v);try{c(t,v,y)}catch(b){}}}}return t}},579:(e,t,n)=>{"use strict";e.exports=n(1153)},722:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var a=n(5043),r=n(5173),i=n.n(r),o=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},s.apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}var u=function(e){var t,n;function r(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(l(t)),t.handleErrored=t.handleErrored.bind(l(t)),t.handleChange=t.handleChange.bind(l(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(l(t)),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,c(t,n);var i=r.prototype;return i.getCaptchaFunction=function(e){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[e]:this.props.grecaptcha[e]:null},i.getValue=function(){var e=this.getCaptchaFunction("getResponse");return e&&void 0!==this._widgetId?e(this._widgetId):null},i.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},i.execute=function(){var e=this.getCaptchaFunction("execute");if(e&&void 0!==this._widgetId)return e(this._widgetId);this._executeRequested=!0},i.executeAsync=function(){var e=this;return new Promise(function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()})},i.reset=function(){var e=this.getCaptchaFunction("reset");e&&void 0!==this._widgetId&&e(this._widgetId)},i.forceReset=function(){var e=this.getCaptchaFunction("reset");e&&e()},i.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},i.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},i.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},i.explicitRender=function(){var e=this.getCaptchaFunction("render");if(e&&void 0===this._widgetId){var t=document.createElement("div");this._widgetId=e(t,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(t)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},i.componentDidMount=function(){this.explicitRender()},i.componentDidUpdate=function(){this.explicitRender()},i.handleRecaptchaRef=function(e){this.captcha=e},i.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,e.isolated,function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,o));return a.createElement("div",s({},t,{ref:this.handleRecaptchaRef}))},r}(a.Component);u.displayName="ReCAPTCHA",u.propTypes={sitekey:i().string.isRequired,onChange:i().func,grecaptcha:i().object,theme:i().oneOf(["dark","light"]),type:i().oneOf(["image","audio"]),tabindex:i().number,onExpired:i().func,onErrored:i().func,size:i().oneOf(["compact","normal","invisible"]),stoken:i().string,hl:i().string,badge:i().oneOf(["bottomright","bottomleft","inline"]),isolated:i().bool},u.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var d=n(219),p=n.n(d);function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},f.apply(this,arguments)}var h={},m=0;var g="onloadcallback";function v(){return"undefined"!==typeof window&&window.recaptchaOptions||{}}const y=(b=function(){var e=v(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+g+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+g+"&render=explicit"},x=(x={callbackName:g,globalName:"grecaptcha",attributes:v().nonce?{nonce:v().nonce}:{}})||{},function(e){var t=e.displayName||e.name||"Component",n=function(t){var n,r;function i(e,n){var a;return(a=t.call(this,e,n)||this).state={},a.__scriptURL="",a}r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var o=i.prototype;return o.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+m++),this.__scriptLoaderID},o.setupScriptURL=function(){return this.__scriptURL="function"===typeof b?b():b,this.__scriptURL},o.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)})},o.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=h[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[x.callbackName]},o.componentDidMount=function(){var e=this,t=this.setupScriptURL(),n=this.asyncScriptLoaderGetScriptLoaderID(),a=x,r=a.globalName,i=a.callbackName,o=a.scriptId;if(r&&"undefined"!==typeof window[r]&&(h[t]={loaded:!0,observers:{}}),h[t]){var s=h[t];return s&&(s.loaded||s.errored)?void this.asyncScriptLoaderHandleLoad(s):void(s.observers[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var l={};l[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)},h[t]={loaded:!1,observers:l};var c=document.createElement("script");for(var u in c.src=t,c.async=!0,x.attributes)c.setAttribute(u,x.attributes[u]);o&&(c.id=o);var d=function(e){if(h[t]){var n=h[t].observers;for(var a in n)e(n[a])&&delete n[a]}};i&&"undefined"!==typeof window&&(window[i]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),c.onload=function(){var e=h[t];e&&(e.loaded=!0,d(function(t){return!i&&(t(e),!0)}))},c.onerror=function(){var e=h[t];e&&(e.errored=!0,d(function(t){return t(e),!0}))},document.body.appendChild(c)},o.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===x.removeOnUnmount)for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n+=1)t[n].src.indexOf(e)>-1&&t[n].parentNode&&t[n].parentNode.removeChild(t[n]);var a=h[e];a&&(delete a.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===x.removeOnUnmount&&delete h[e])},o.render=function(){var t=x.globalName,n=this.props,r=(n.asyncScriptOnLoad,n.forwardedRef),i=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(n,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!==typeof window&&(i[t]="undefined"!==typeof window[t]?window[t]:void 0),i.ref=r,(0,a.createElement)(e,i)},i}(a.Component),r=(0,a.forwardRef)(function(e,t){return(0,a.createElement)(n,f({},e,{forwardedRef:t}))});return r.displayName="AsyncScriptLoader("+t+")",r.propTypes={asyncScriptOnLoad:i().func},p()(r,e)})(u);var b,x;const w=y},775:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var a=n(2555),r=n(3986),i=(n(5043),n(579));const o=["src","alt","className","eager","width","height"],s=e=>{let{src:t,alt:n,className:s="",eager:l=!0,width:c,height:u}=e,d=(0,r.A)(e,o);return(0,i.jsx)("img",(0,a.A)({src:t,alt:n,className:s,loading:l?"eager":"lazy",decoding:l?"sync":"async",fetchPriority:l?"high":"auto",width:c,height:u,style:(0,a.A)({maxWidth:"100%",height:"auto"},d.style)},d))}},843:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var a=n(2555),r=n(6753);const i=new class{constructor(){this.eventData={event_type:"Book Now",event_name:"",step:1,appointment_type:"",appointment_fee:null,slot_selected:"",name:"",email:"",phone:"",age:null,address:"",gender:"",doctor_name:"","confirmation&accepted":!1,"appointment-status":"draft"},this.isInitialized=!1,this.lastEvent=null,this.lastEventTime=0,this.eventDebounceTime=500,this.trackedEvents=new Map,this.componentInstances=new Map}_generateEventKey(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,a.A)({event_name:e,step:this.eventData.step,appointment_type:this.eventData.appointment_type,slot:this.eventData.slot_selected},t);return"".concat(e,"_").concat(JSON.stringify(n))}_shouldTrack(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this._generateEventKey(e,t),a=Date.now();return!(this.lastEvent===n&&a-this.lastEventTime<this.eventDebounceTime)&&(!this.trackedEvents.has(n)&&(this.lastEvent=n,this.lastEventTime=a,this.trackedEvents.set(n,a),!0))}_cleanupOldEvents(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e5;const t=Date.now();for(const[n,a]of this.trackedEvents.entries())t-a>e&&this.trackedEvents.delete(n)}initializeTracking(){const e=this.eventData.doctor_name;this._shouldTrack("initialization")&&(this.eventData={event_type:"Booking Started",event_name:"Booking Modal Opened",step:1,appointment_type:"",appointment_fee:null,slot_selected:"",name:"",email:"",phone:"",age:null,address:"",gender:"",doctor_name:e||"","confirmation&accepted":!1,"appointment-status":"draft"},this.isInitialized=!0)}updateAppointmentType(e,t){const n="appointment_type_".concat(e);this._shouldTrack(n)&&(this.eventData.appointment_type=e,this.eventData.appointment_fee=t?parseFloat(t):null,this.eventData.event_name="Appointment Type Selected: ".concat(e),this.sendEvent())}updateSlotSelection(e,t){const n="slot_".concat(e,"_").concat(t);this._shouldTrack(n)&&(this.eventData.slot_selected="".concat(e," ").concat(t),this.eventData.event_name="Slot is Selected",this.sendEvent())}trackSlotContinued(){this._shouldTrack("slot_continued")&&(this.eventData.step=2,this.eventData.event_name="Slot Confirmed - Proceeding to Details",this.sendEvent())}updateStep(e){const t="step_".concat(e);this._shouldTrack(t)&&(this.eventData.step=e,this.eventData.event_name="On Step ".concat(e),this.sendEvent())}updatePersonalInfo(e){const t="".concat(e.fullName||"","_").concat(e.email||"","_").concat(e.phone||""),n="personal_info_".concat(t);this._shouldTrack(n)&&(this.eventData.name=e.fullName||"",this.eventData.email=e.email||"",this.eventData.phone=e.phone||"",this.eventData.age=e.age?parseInt(e.age):null,this.eventData.address=e.patient_address||"",this.eventData.gender=e.gender||"",e.doctor_name&&(this.eventData.doctor_name=e.doctor_name),this.eventData.event_name="Patient Details Filled",this.sendEvent())}trackEmailVerificationStarted(e){const t="email_verification_started_".concat(e);this._shouldTrack(t)&&(this.eventData.email=e||this.eventData.email,this.eventData.event_name="Email Verification Started",this.sendEvent())}trackEmailVerified(){this._shouldTrack("email_verified")&&(this.eventData.event_name="Email Verified",this.sendEvent())}trackEmailVerificationFailed(){this._shouldTrack("email_verification_failed")&&(this.eventData.event_name="Email Verification Failed",this.sendEvent())}trackInsuranceOpened(){this._shouldTrack("insurance_opened")&&(this.eventData.event_name="Insurance Section Opened",this.sendEvent())}trackInsuranceSaved(){this._shouldTrack("insurance_saved")&&(this.eventData.event_name="Insurance Details Saved",this.sendEvent())}updateConfirmationCheckbox(e){const t="terms_".concat(e);this._shouldTrack(t)&&(this.eventData["confirmation&accepted"]=e,this.eventData.event_name=e?"Terms Accepted":"Terms Unchecked",this.sendEvent())}updateProceedToPayment(){this._shouldTrack("proceed_to_payment")&&(this.eventData.event_name="Patient Details Submitted",this.sendEvent())}trackPaymentStepOpened(){this._shouldTrack("payment_step_opened")&&(this.eventData.step=3,this.eventData.event_name="Payment Step Opened",this.sendEvent())}trackPromoCodeApplied(e,t){const n="promo_".concat(e,"_").concat(t);this._shouldTrack(n)&&(this.eventData.event_name="Promo Code Applied",this.sendEvent({promo_code:e,discount:t}))}trackPaymentFailed(e){const t="payment_failed_".concat(e);this._shouldTrack(t)&&(this.eventData.event_name="Payment Failed",this.eventData["appointment-status"]="payment_failed",this.sendEvent({failure_reason:e}))}updateEventName(e){const t="payment_".concat(e);this._shouldTrack(t)&&(this.eventData.event_name=e,this.sendEvent())}trackModalAbandoned(e){const t="abandoned_step_".concat(e);if(!this._shouldTrack(t))return;const n=1===e?"Slot Selection":2===e?"Appointment Details":3===e?"Payment":"Step ".concat(e);this.eventData.event_name="Modal Abandoned at ".concat(n),this.eventData["appointment-status"]="abandoned",this.sendEvent()}async sendEvent(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.isInitialized){this._cleanupOldEvents(),window.dataLayer=window.dataLayer||[],window.dataLayer.push((0,a.A)((0,a.A)({event:"vt_funnel_event",vt_event_type:this.eventData.event_type,vt_event_name:this.eventData.event_name,vt_step:this.eventData.step,vt_slot:this.eventData.slot_selected,vt_appointment_type:this.eventData.appointment_type,vt_appointment_fee:this.eventData.appointment_fee,doctor_name:this.eventData.doctor_name,vt_status:this.eventData["appointment-status"]},e),{},{timestamp:Date.now()}));try{return(await r.A.post("/track-event/",(0,a.A)((0,a.A)({},this.eventData),e))).data}catch(t){console.error("Tracking error:",t)}}}reset(){this.eventData={event_type:"Book Now",event_name:"",step:1,appointment_type:"",appointment_fee:null,slot_selected:"",name:"",email:"",phone:"",age:null,address:"",gender:"",doctor_name:"","confirmation&accepted":!1,"appointment-status":"draft"},this.isInitialized=!1,this.trackedEvents.clear(),this.lastEvent=null,this.lastEventTime=0}getState(){return(0,a.A)({},this.eventData)}registerComponent(e){return!this.componentInstances.has(e)&&(this.componentInstances.set(e,Date.now()),!0)}unregisterComponent(e){this.componentInstances.delete(e)}}},851:()=>{},1153:(e,t,n)=>{"use strict";var a=n(5043),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var a,i={},c=null,u=null;for(a in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,a)&&!l.hasOwnProperty(a)&&(i[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===i[a]&&(i[a]=t[a]);return{$$typeof:r,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},1387:(e,t,n)=>{"use strict";function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},a.apply(this,arguments)}var r;n.d(t,{AO:()=>d,Gh:()=>R,HS:()=>D,Oi:()=>s,Rr:()=>p,pX:()=>U,pb:()=>P,rc:()=>r,tH:()=>F,ue:()=>m,yD:()=>L,zR:()=>o}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(r||(r={}));const i="popstate";function o(e){return void 0===e&&(e={}),f(function(e,t){let{pathname:n,search:a,hash:r}=e.location;return u("",{pathname:n,search:a,hash:r},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"===typeof t?t:d(t)},null,e)}function s(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function l(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function c(e,t){return{usr:e.state,key:e.key,idx:t}}function u(e,t,n,r){return void 0===n&&(n=null),a({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?p(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function d(e){let{pathname:t="/",search:n="",hash:a=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),a&&"#"!==a&&(t+="#"===a.charAt(0)?a:"#"+a),t}function p(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substr(a),e=e.substr(0,a)),e&&(t.pathname=e)}return t}function f(e,t,n,o){void 0===o&&(o={});let{window:l=document.defaultView,v5Compat:p=!1}=o,f=l.history,h=r.Pop,m=null,g=v();function v(){return(f.state||{idx:null}).idx}function y(){h=r.Pop;let e=v(),t=null==e?null:e-g;g=e,m&&m({action:h,location:x.location,delta:t})}function b(e){let t="null"!==l.location.origin?l.location.origin:l.location.href,n="string"===typeof e?e:d(e);return n=n.replace(/ $/,"%20"),s(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,f.replaceState(a({},f.state,{idx:g}),""));let x={get action(){return h},get location(){return e(l,f)},listen(e){if(m)throw new Error("A history only accepts one active listener");return l.addEventListener(i,y),m=e,()=>{l.removeEventListener(i,y),m=null}},createHref:e=>t(l,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h=r.Push;let a=u(x.location,e,t);n&&n(a,e),g=v()+1;let i=c(a,g),o=x.createHref(a);try{f.pushState(i,"",o)}catch(s){if(s instanceof DOMException&&"DataCloneError"===s.name)throw s;l.location.assign(o)}p&&m&&m({action:h,location:x.location,delta:1})},replace:function(e,t){h=r.Replace;let a=u(x.location,e,t);n&&n(a,e),g=v();let i=c(a,g),o=x.createHref(a);f.replaceState(i,"",o),p&&m&&m({action:h,location:x.location,delta:0})},go:e=>f.go(e)};return x}var h;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(h||(h={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function m(e,t,n){return void 0===n&&(n="/"),g(e,t,n,!1)}function g(e,t,n,a){let r=P(("string"===typeof t?p(t):t).pathname||"/",n);if(null==r)return null;let i=v(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(i);let o=null;for(let s=0;null==o&&s<i.length;++s){let e=T(r);o=C(i[s],e,a)}return o}function v(e,t,n,a){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===a&&(a="");let r=(e,r,i)=>{let o={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};o.relativePath.startsWith("/")&&(s(o.relativePath.startsWith(a),'Absolute route path "'+o.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(a.length));let l=D([a,o.relativePath]),c=n.concat(o);e.children&&e.children.length>0&&(s(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),v(e.children,t,c,l)),(null!=e.path||e.index)&&t.push({path:l,score:N(l,e.index),routesMeta:c})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let a of y(e.path))r(e,t,a);else r(e,t)}),t}function y(e){let t=e.split("/");if(0===t.length)return[];let[n,...a]=t,r=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return r?[i,""]:[i];let o=y(a.join("/")),s=[];return s.push(...o.map(e=>""===e?i:[i,e].join("/"))),r&&s.push(...o),s.map(t=>e.startsWith("/")&&""===t?"/":t)}const b=/^:[\w-]+$/,x=3,w=2,j=1,k=10,_=-2,S=e=>"*"===e;function N(e,t){let n=e.split("/"),a=n.length;return n.some(S)&&(a+=_),t&&(a+=w),n.filter(e=>!S(e)).reduce((e,t)=>e+(b.test(t)?x:""===t?j:k),a)}function C(e,t,n){void 0===n&&(n=!1);let{routesMeta:a}=e,r={},i="/",o=[];for(let s=0;s<a.length;++s){let e=a[s],l=s===a.length-1,c="/"===i?t:t.slice(i.length)||"/",u=E({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!a[a.length-1].route.index&&(u=E({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;Object.assign(r,u.params),o.push({params:r,pathname:D([i,u.pathname]),pathnameBase:I(D([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=D([i,u.pathnameBase]))}return o}function E(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);l("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(a.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));e.endsWith("*")?(a.push({paramName:"*"}),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":""!==e&&"/"!==e&&(r+="(?:(?=\\/|$))");let i=new RegExp(r,t?void 0:"i");return[i,a]}(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let i=r[0],o=i.replace(/(.)\/+$/,"$1"),s=r.slice(1);return{params:a.reduce((e,t,n)=>{let{paramName:a,isOptional:r}=t;if("*"===a){let e=s[n]||"";o=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[a]=r&&!l?void 0:(l||"").replace(/%2F/g,"/"),e},{}),pathname:i,pathnameBase:o,pattern:e}}function T(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return l(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function P(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&"/"!==a?null:e.slice(n)||"/"}function A(e,t,n,a){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(a)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function O(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function L(e,t){let n=O(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function R(e,t,n,r){let i;void 0===r&&(r=!1),"string"===typeof e?i=p(e):(i=a({},e),s(!i.pathname||!i.pathname.includes("?"),A("?","pathname","search",i)),s(!i.pathname||!i.pathname.includes("#"),A("#","pathname","hash",i)),s(!i.search||!i.search.includes("#"),A("#","search","hash",i)));let o,l=""===e||""===i.pathname,c=l?"/":i.pathname;if(null==c)o=n;else{let e=t.length-1;if(!r&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:n,search:a="",hash:r=""}="string"===typeof e?p(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:M(a),hash:z(r)}}(i,o),d=c&&"/"!==c&&c.endsWith("/"),f=(l||"."===c)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!f||(u.pathname+="/"),u}const D=e=>e.join("/").replace(/\/\/+/g,"/"),I=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),M=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",z=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class F extends Error{}function U(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const B=["post","put","patch","delete"],V=(new Set(B),["get",...B]);new Set(V),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred")},1497:(e,t,n)=>{"use strict";var a=n(3218);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,o){if(o!==a){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},1591:(e,t,n)=>{"use strict";n.d(t,{m:()=>le});var a=n(5173),r=n.n(a),i=n(8161),o=n.n(i),s=n(6366),l=n.n(s),c=n(5043),u=n(2123),d=n.n(u),p="bodyAttributes",f="htmlAttributes",h="titleAttributes",m={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},g=(Object.keys(m).map(function(e){return m[e]}),"charset"),v="cssText",y="href",b="http-equiv",x="innerHTML",w="itemprop",j="name",k="property",_="rel",S="src",N="target",C={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},E="defaultTitle",T="defer",P="encodeSpecialCharacters",A="onChangeClientState",O="titleTemplate",L=Object.keys(C).reduce(function(e,t){return e[C[t]]=t,e},{}),R=[m.NOSCRIPT,m.SCRIPT,m.STYLE],D="data-react-helmet",I="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},F=function(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n},U=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},B=function(e){var t=G(e,m.TITLE),n=G(e,O);if(n&&t)return n.replace(/%s/g,function(){return Array.isArray(t)?t.join(""):t});var a=G(e,E);return t||a||void 0},V=function(e){return G(e,A)||function(){}},q=function(e,t){return t.filter(function(t){return"undefined"!==typeof t[e]}).map(function(t){return t[e]}).reduce(function(e,t){return z({},e,t)},{})},H=function(e,t){return t.filter(function(e){return"undefined"!==typeof e[m.BASE]}).map(function(e){return e[m.BASE]}).reverse().reduce(function(t,n){if(!t.length)for(var a=Object.keys(n),r=0;r<a.length;r++){var i=a[r].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t},[])},W=function(e,t,n){var a={};return n.filter(function(t){return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&J("Helmet: "+e+' should be of type "Array". Instead found type "'+I(t[e])+'"'),!1)}).map(function(t){return t[e]}).reverse().reduce(function(e,n){var r={};n.filter(function(e){for(var n=void 0,i=Object.keys(e),o=0;o<i.length;o++){var s=i[o],l=s.toLowerCase();-1===t.indexOf(l)||n===_&&"canonical"===e[n].toLowerCase()||l===_&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||s!==x&&s!==v&&s!==w||(n=s)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return a[n]||(a[n]={}),r[n]||(r[n]={}),!a[n][c]&&(r[n][c]=!0,!0)}).reverse().forEach(function(t){return e.push(t)});for(var i=Object.keys(r),o=0;o<i.length;o++){var s=i[o],l=d()({},a[s],r[s]);a[s]=l}return e},[]).reverse()},G=function(e,t){for(var n=e.length-1;n>=0;n--){var a=e[n];if(a.hasOwnProperty(t))return a[t]}return null},$=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){$(t)},0)}}(),K=function(e){return clearTimeout(e)},Y="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||$:n.g.requestAnimationFrame||$,Q="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||K:n.g.cancelAnimationFrame||K,J=function(e){return console&&"function"===typeof console.warn&&console.warn(e)},Z=null,X=function(e,t){var n=e.baseTag,a=e.bodyAttributes,r=e.htmlAttributes,i=e.linkTags,o=e.metaTags,s=e.noscriptTags,l=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,d=e.title,p=e.titleAttributes;ne(m.BODY,a),ne(m.HTML,r),te(d,p);var f={baseTag:ae(m.BASE,n),linkTags:ae(m.LINK,i),metaTags:ae(m.META,o),noscriptTags:ae(m.NOSCRIPT,s),scriptTags:ae(m.SCRIPT,c),styleTags:ae(m.STYLE,u)},h={},g={};Object.keys(f).forEach(function(e){var t=f[e],n=t.newTags,a=t.oldTags;n.length&&(h[e]=n),a.length&&(g[e]=f[e].oldTags)}),t&&t(),l(e,h,g)},ee=function(e){return Array.isArray(e)?e.join(""):e},te=function(e,t){"undefined"!==typeof e&&document.title!==e&&(document.title=ee(e)),ne(m.TITLE,t)},ne=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var a=n.getAttribute(D),r=a?a.split(","):[],i=[].concat(r),o=Object.keys(t),s=0;s<o.length;s++){var l=o[s],c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),-1===r.indexOf(l)&&r.push(l);var u=i.indexOf(l);-1!==u&&i.splice(u,1)}for(var d=i.length-1;d>=0;d--)n.removeAttribute(i[d]);r.length===i.length?n.removeAttribute(D):n.getAttribute(D)!==o.join(",")&&n.setAttribute(D,o.join(","))}},ae=function(e,t){var n=document.head||document.querySelector(m.HEAD),a=n.querySelectorAll(e+"["+D+"]"),r=Array.prototype.slice.call(a),i=[],o=void 0;return t&&t.length&&t.forEach(function(t){var n=document.createElement(e);for(var a in t)if(t.hasOwnProperty(a))if(a===x)n.innerHTML=t.innerHTML;else if(a===v)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s="undefined"===typeof t[a]?"":t[a];n.setAttribute(a,s)}n.setAttribute(D,"true"),r.some(function(e,t){return o=t,n.isEqualNode(e)})?r.splice(o,1):i.push(n)}),r.forEach(function(e){return e.parentNode.removeChild(e)}),i.forEach(function(e){return n.appendChild(e)}),{oldTags:r,newTags:i}},re=function(e){return Object.keys(e).reduce(function(t,n){var a="undefined"!==typeof e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+a:a},"")},ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce(function(t,n){return t[C[n]||n]=e[n],t},t)},oe=function(e,t,n){switch(e){case m.TITLE:return{toComponent:function(){return function(e,t,n){var a,r=((a={key:t})[D]=!0,a),i=ie(n,r);return[c.createElement(m.TITLE,i,t)]}(0,t.title,t.titleAttributes)},toString:function(){return function(e,t,n,a){var r=re(n),i=ee(t);return r?"<"+e+" "+D+'="true" '+r+">"+U(i,a)+"</"+e+">":"<"+e+" "+D+'="true">'+U(i,a)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case p:case f:return{toComponent:function(){return ie(t)},toString:function(){return re(t)}};default:return{toComponent:function(){return function(e,t){return t.map(function(t,n){var a,r=((a={key:n})[D]=!0,a);return Object.keys(t).forEach(function(e){var n=C[e]||e;if(n===x||n===v){var a=t.innerHTML||t.cssText;r.dangerouslySetInnerHTML={__html:a}}else r[n]=t[e]}),c.createElement(e,r)})}(e,t)},toString:function(){return function(e,t,n){return t.reduce(function(t,a){var r=Object.keys(a).filter(function(e){return!(e===x||e===v)}).reduce(function(e,t){var r="undefined"===typeof a[t]?t:t+'="'+U(a[t],n)+'"';return e?e+" "+r:r},""),i=a.innerHTML||a.cssText||"",o=-1===R.indexOf(e);return t+"<"+e+" "+D+'="true" '+r+(o?"/>":">"+i+"</"+e+">")},"")}(e,t,n)}}}},se=function(e){var t=e.baseTag,n=e.bodyAttributes,a=e.encode,r=e.htmlAttributes,i=e.linkTags,o=e.metaTags,s=e.noscriptTags,l=e.scriptTags,c=e.styleTags,u=e.title,d=void 0===u?"":u,h=e.titleAttributes;return{base:oe(m.BASE,t,a),bodyAttributes:oe(p,n,a),htmlAttributes:oe(f,r,a),link:oe(m.LINK,i,a),meta:oe(m.META,o,a),noscript:oe(m.NOSCRIPT,s,a),script:oe(m.SCRIPT,l,a),style:oe(m.STYLE,c,a),title:oe(m.TITLE,{title:d,titleAttributes:h},a)}},le=function(e){var t,n;return n=t=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.shouldComponentUpdate=function(e){return!l()(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case m.SCRIPT:case m.NOSCRIPT:return{innerHTML:t};case m.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,a=e.arrayTypeChildren,r=e.newChildProps,i=e.nestedChildren;return z({},a,((t={})[n.type]=[].concat(a[n.type]||[],[z({},r,this.mapNestedChildrenToProps(n,i))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,a=e.child,r=e.newProps,i=e.newChildProps,o=e.nestedChildren;switch(a.type){case m.TITLE:return z({},r,((t={})[a.type]=o,t.titleAttributes=z({},i),t));case m.BODY:return z({},r,{bodyAttributes:z({},i)});case m.HTML:return z({},r,{htmlAttributes:z({},i)})}return z({},r,((n={})[a.type]=z({},i),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=z({},t);return Object.keys(e).forEach(function(t){var a;n=z({},n,((a={})[t]=e[t],a))}),n},n.prototype.warnOnInvalidChildren=function(e,t){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,a={};return c.Children.forEach(e,function(e){if(e&&e.props){var r=e.props,i=r.children,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce(function(t,n){return t[L[n]||n]=e[n],t},t)}(F(r,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case m.LINK:case m.META:case m.NOSCRIPT:case m.SCRIPT:case m.STYLE:a=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:a,newChildProps:o,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:o,nestedChildren:i})}}}),t=this.mapArrayTypeChildrenToProps(a,t)},n.prototype.render=function(){var t=this.props,n=t.children,a=F(t,["children"]),r=z({},a);return n&&(r=this.mapChildrenToProps(n,r)),c.createElement(e,r)},M(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(c.Component),t.propTypes={base:r().object,bodyAttributes:r().object,children:r().oneOfType([r().arrayOf(r().node),r().node]),defaultTitle:r().string,defer:r().bool,encodeSpecialCharacters:r().bool,htmlAttributes:r().object,link:r().arrayOf(r().object),meta:r().arrayOf(r().object),noscript:r().arrayOf(r().object),onChangeClientState:r().func,script:r().arrayOf(r().object),style:r().arrayOf(r().object),title:r().string,titleAttributes:r().object,titleTemplate:r().string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=se({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n}(o()(function(e){return{baseTag:H([y,N],e),bodyAttributes:q(p,e),defer:G(e,T),encode:G(e,P),htmlAttributes:q(f,e),linkTags:W(m.LINK,[_,y],e),metaTags:W(m.META,[j,g,b,k,w],e),noscriptTags:W(m.NOSCRIPT,[x],e),onChangeClientState:V(e),scriptTags:W(m.SCRIPT,[S,x],e),styleTags:W(m.STYLE,[v],e),title:B(e),titleAttributes:q(h,e)}},function(e){Z&&Q(Z),e.defer?Z=Y(function(){X(e,function(){Z=null})}):(X(e),Z=null)},se)(function(){return null}));le.renderStatic=le.rewind},2123:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(e){a[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(r){return!1}}()?Object.assign:function(e,r){for(var i,o,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))n.call(i,c)&&(s[c]=i[c]);if(t){o=t(i);for(var u=0;u<o.length;u++)a.call(i,o[u])&&(s[o[u]]=i[o[u]])}}return s}},2208:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});n(5043);var a=n(1591),r=n(579);const i=e=>{let{title:t="Virtual Triage - Online Doctor Appointments & Healthcare Services UK",description:n="Book online doctor appointments, find GPs, and access healthcare services across the UK. Virtual consultations with licensed practitioners. Book your appointment today.",keywords:i="online doctor UK, GP near me, family doctor UK, virtual consultations, telehealth UK, book doctor appointment, NHS alternative, private GP UK",canonical:o,ogImage:s="https://virtualtriage.ai/assets/og/default.jpg",ogType:l="website",structuredData:c,noindex:u=!1,location:d="UK"}=e;const p="https://virtualtriage.ai",f=t.includes("Virtual Triage")?t:"".concat(t," | Virtual Triage"),h=o||("undefined"!==typeof window?window.location.href:p),m={"@context":"https://schema.org","@type":"MedicalBusiness",name:"Virtual Triage",description:"Online healthcare platform connecting patients with licensed medical practitioners across the UK",url:p,logo:"".concat(p,"/assets/Virtual%20Triage.png"),address:{"@type":"PostalAddress",addressCountry:"GB",addressLocality:d},areaServed:{"@type":"Country",name:"United Kingdom"},sameAs:["https://www.facebook.com/virtualtriage","https://www.instagram.com/virtualtriage","https://www.linkedin.com/company/virtualtriage","https://twitter.com/virtualtriage"]},g=c||m;return(0,r.jsxs)(a.m,{children:[(0,r.jsx)("link",{rel:"dns-prefetch",href:"https://directoryapi.virtualtriage.ai"}),(0,r.jsx)("link",{rel:"dns-prefetch",href:"https://portal.virtualtriage.ca"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://directoryapi.virtualtriage.ai",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://portal.virtualtriage.ca",crossOrigin:"anonymous"}),(0,r.jsx)("title",{children:f}),(0,r.jsx)("meta",{name:"title",content:f}),(0,r.jsx)("meta",{name:"description",content:n}),(0,r.jsx)("meta",{name:"keywords",content:i}),(0,r.jsx)("meta",{name:"robots",content:u?"noindex,nofollow":"index,follow"}),(0,r.jsx)("meta",{name:"language",content:"English"}),(0,r.jsx)("meta",{name:"revisit-after",content:"7 days"}),(0,r.jsx)("meta",{name:"author",content:"Virtual Triage"}),(0,r.jsx)("meta",{name:"geo.region",content:"GB"}),(0,r.jsx)("meta",{name:"geo.placename",content:d}),(0,r.jsx)("link",{rel:"canonical",href:h}),(0,r.jsx)("meta",{property:"og:type",content:l}),(0,r.jsx)("meta",{property:"og:url",content:h}),(0,r.jsx)("meta",{property:"og:title",content:f}),(0,r.jsx)("meta",{property:"og:description",content:n}),(0,r.jsx)("meta",{property:"og:image",content:s}),(0,r.jsx)("meta",{property:"og:site_name",content:"Virtual Triage"}),(0,r.jsx)("meta",{property:"og:locale",content:"en_GB"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,r.jsx)("meta",{name:"twitter:url",content:h}),(0,r.jsx)("meta",{name:"twitter:title",content:f}),(0,r.jsx)("meta",{name:"twitter:description",content:n}),(0,r.jsx)("meta",{name:"twitter:image",content:s}),(0,r.jsx)("meta",{name:"twitter:site",content:"@virtualtriage"}),(0,r.jsx)("script",{type:"application/ld+json",children:JSON.stringify(g)})]})}},2304:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var a=n(5043),r=n(3216),i=n(184),o=n(51),s=n(9168),l=n(9286),c=n(6753),u=(n(7064),n(579));const d=e=>{let{availableSlots:t=null,loadingSlots:n=!1,onDateSelect:d,selectedDate:p,selectedSlot:f=null,doctorEmail:h,doctor:m=null,onSlotClick:g=null}=e;const v=(0,r.Zp)(),[y,b]=(0,a.useState)(new Date),[x,w]=(0,a.useState)("month"),[j,k]=(0,a.useState)(null),[_,S]=(0,a.useState)(null),[N,C]=(0,a.useState)(!1),[E,T]=(0,a.useState)(null),[P,A]=(0,a.useState)(null),[O,L]=(0,a.useState)(!1),[R,D]=(0,a.useState)(!1),[I,M]=(0,a.useState)(null),z=e=>({day:new Date(e),type:"day"});(0,a.useEffect)(()=>{if(!h)return;(async()=>{C(!0),T(null);try{const e=y.getFullYear(),t=y.getMonth(),n=await(0,o.tk)(h,e,t);S(n);const a=(0,o.MW)(n);a&&0===a.availableDays&&0===a.availableSlots&&T(null),(0,o.FR)(h,e,t)}catch(e){console.error("Error loading monthly schedule:",e);const t=e.message||String(e);t.includes("404")||t.includes("not found")||t.includes("No slots")?T("Schedule not found"):T(t)}finally{C(!1)}})()},[h,y.getFullYear(),y.getMonth()]),(0,a.useEffect)(()=>{if(!_||P)return;const e=new Date;e.setHours(0,0,0,0);const t=Object.keys(_.days||{}).filter(t=>{const[n,a,r]=t.split("-").map(Number),i=new Date(n,a-1,r);return i.setHours(0,0,0,0),i>=e&&_.days[t].availableSlots>0}).sort()[0];if(t){A(t);const[e,n]=t.split("-").map(Number);if(b(t=>t.getFullYear()!==e||t.getMonth()!==n-1?new Date(e,n-1,1):t),d){const[e,n,a]=t.split("-").map(Number);d(new Date(e,n-1,a))}}},[_]);const F=(0,a.useMemo)(()=>{new Date;const e=y.getFullYear(),t=y.getMonth();return"month"===x?((e,t)=>{const n=new Date(e,t,1),a=(new Date(e,t+1,0),new Date(n));a.setDate(a.getDate()-n.getDay());const r=[];let i=[],o=new Date(a);for(let s=0;s<42;s++)i.push(new Date(o)),o.setDate(o.getDate()+1),7===i.length&&(r.push([...i]),i=[]);return{weeks:r,type:"month"}})(e,t):z(y)},[y,x]),U=e=>{const t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(a)},B=e=>{const n=U(e);if(_&&_.days&&_.days[n]){const e=_.days[n];if(e.slots&&e.slots.starttiming){const t=new Set((e.slots.bookslots||[]).filter(Boolean));return e.slots.starttiming.map((t,a)=>({startTime:t,endTime:e.slots.endtiming[a],isBooked:!1,id:"".concat(n,"-").concat(t)})).filter(e=>!t.has(e.startTime))}}if(t&&t.starttiming&&n===p){const e=new Set((t.bookslots||[]).filter(Boolean));return t.starttiming.map((e,a)=>({startTime:e,endTime:t.endtiming[a],isBooked:!1,id:"".concat(n,"-").concat(e)})).filter(t=>!e.has(t.startTime))}return[]},V=e=>{const t=U(e);if(_&&_.days&&_.days[t])return _.days[t].availableSlots>0;return B(e).some(e=>!e.isBooked)},q=e=>{const t=new Date;return e.toDateString()===t.toDateString()},H=e=>{const t=new Date(y);"month"===x?t.setMonth(t.getMonth()+e):"day"===x?t.setDate(t.getDate()+7*e):t.setDate(t.getDate()+e),b(t)},W=(e,t)=>{e.isBooked||g&&g(e,t)},G=e=>e.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"vt-modern-calendar",children:N?(0,u.jsxs)("div",{className:"vt-cal-loading",children:[(0,u.jsx)("div",{className:"vt-loading-spinner",style:{width:"22px",height:"22px",borderWidth:"2px"}}),(0,u.jsx)("p",{children:"Loading available times\u2026"})]}):E&&(E.includes("not found")||E.includes("404")||E.includes("No slots"))||(()=>{if(!_)return!1;const e=(0,o.MW)(_);return e&&0===e.availableDays&&0===e.availableSlots})()?(0,u.jsxs)("div",{className:"vt-no-schedule-message",children:[(0,u.jsx)("div",{className:"vt-no-schedule-icon",children:(0,u.jsx)(i.bfZ,{})}),(0,u.jsx)("h3",{children:"Schedule Not Available"}),(0,u.jsx)("p",{children:"This doctor has not set their schedule or availability yet."}),(0,u.jsx)("button",{className:"vt-request-appointment-btn",onClick:()=>D(!0),children:"Request Appointment"})]}):E?(0,u.jsx)("div",{className:"vt-cal-error",children:(0,u.jsx)("p",{children:"Error loading schedule. Please try again."})}):(0,u.jsxs)("div",{className:"vt-cal-layout",children:[(0,u.jsxs)("div",{className:"vt-mini-cal-panel",children:[(0,u.jsxs)("div",{className:"vt-mini-nav",children:[(0,u.jsx)("button",{className:"vt-mini-nav-btn",onClick:()=>H(-1),"aria-label":"Previous month",children:(0,u.jsx)(i._Jj,{size:10})}),(0,u.jsx)("span",{className:"vt-mini-month-label",children:(()=>{if("month"===x)return y.toLocaleDateString("en-US",{year:"numeric",month:"long"});if("day"===x){const e=new Date(y);e.setDate(y.getDate()-y.getDay());const t=new Date(e);return t.setDate(e.getDate()+6),e.getMonth()===t.getMonth()?"".concat(e.toLocaleDateString("en-US",{month:"long"})," ").concat(e.getDate(),"-").concat(t.getDate(),", ").concat(e.getFullYear()):"".concat(e.toLocaleDateString("en-US",{month:"short",day:"numeric"})," - ").concat(t.toLocaleDateString("en-US",{month:"short",day:"numeric"}),", ").concat(e.getFullYear())}return G(y)})()}),(0,u.jsx)("button",{className:"vt-mini-nav-btn",onClick:()=>H(1),"aria-label":"Next month",children:(0,u.jsx)(i.X6T,{size:10})})]}),(0,u.jsx)("div",{className:"vt-mini-weekdays",children:["Su","Mo","Tu","We","Th","Fr","Sa"].map(e=>(0,u.jsx)("div",{className:"vt-mini-wd",children:e},e))}),(0,u.jsx)("div",{className:"vt-mini-days-grid",children:F.weeks&&F.weeks.map((e,t)=>e.map((e,n)=>{const a=V(e),r=e.getMonth()===y.getMonth(),i=U(e),o=P===i,s=q(e),l=(e=>{const t=new Date;t.setHours(0,0,0,0);const n=new Date(e);return n.setHours(0,0,0,0),n<t})(e),c=a&&!l;return(0,u.jsxs)("button",{className:"vt-mini-day-btn".concat(r||c?"":" vt-other-month").concat(l?" vt-past":"").concat(s&&!o?" vt-today":"").concat(o?" vt-active":"").concat(c?" vt-has-slots":"").concat(!r&&c?" vt-other-month-clickable":""),onClick:()=>{if(c&&(A(i),r||b(new Date(e.getFullYear(),e.getMonth(),1)),d)){const e=i.split("-").map(Number);d(new Date(e[0],e[1]-1,e[2]))}},disabled:!c,children:[(0,u.jsx)("span",{className:"vt-day-num",children:e.getDate()}),c&&(0,u.jsx)("span",{className:"vt-dot"})]},"".concat(t,"-").concat(n))}))})]}),(0,u.jsx)("div",{className:"vt-cal-divider"}),(0,u.jsx)("div",{className:"vt-time-slots-panel",children:P?(()=>{const e=P.split("-").map(Number),t=new Date(e[0],e[1]-1,e[2]),n=B(t),a=n.filter(e=>!e.isBooked).length;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"vt-slots-panel-header",children:[(0,u.jsx)("span",{className:"vt-slots-panel-date-label",children:t.toLocaleDateString("en-US",{weekday:"long",month:"short",day:"numeric"})}),a>0&&(0,u.jsxs)("span",{className:"vt-slots-avail-count",children:[a," slots available"]})]}),n.length>0?(0,u.jsx)("div",{className:"vt-slots-compact-grid",children:n.map((e,n)=>{const a=f&&e.startTime===f&&P===p,r=((e,t)=>{const n=U(new Date);if(U(t)!==n)return!1;const a=new Date,[r,i]=e.startTime.split(":").map(Number),o=new Date;return o.setHours(r,i,0,0),o<=a})(e,t),i=e.isBooked||r;return(0,u.jsx)("button",{className:"vt-slot-pill".concat(i?r?" vt-slot-past":" vt-slot-booked":" vt-slot-avail").concat(a?" vt-slot-selected":""),onClick:()=>!i&&W(e,t),disabled:i,children:e.startTime},n)})}):(0,u.jsx)("div",{className:"vt-slots-none-msg",children:"No slots available for this date"})]})})():(0,u.jsxs)("div",{className:"vt-slots-empty-state",children:[(0,u.jsx)("svg",{width:"34",height:"34",viewBox:"0 0 24 24",fill:"none",children:(0,u.jsx)("path",{d:"M8 2V6M16 2V6M3 10H21M5 4H19C20.1046 4 21 4.89543 21 6V20C21 21.1046 20.1046 22 19 22H5C3.89543 22 3 21.1046 3 20V6C3 4.89543 3.89543 4 5 4Z",stroke:"#c7c7cc",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,u.jsxs)("p",{children:["Select a date to view",(0,u.jsx)("br",{}),"available times"]})]})})]})}),(0,u.jsx)(l.A,{isOpen:R,onClose:()=>D(!1),doctorId:null===m||void 0===m?void 0:m._id,doctorName:null===m||void 0===m?void 0:m.full_name,doctorEmail:null===m||void 0===m?void 0:m.email}),(0,u.jsx)(s.default,{isOpen:O,onClose:()=>{L(!1),M(null)},onLoginSuccess:()=>{I&&((async e=>{try{if(!localStorage.getItem("authToken"))return void console.error("No auth token found after login");const t=(await c.A.post("patient/appointment/book-appointment/directory/",{doctor_email:e.email})).data;if(!1===t.status&&"Patient not found."===t.message)return M(e),void L(!0);t.clinic_id?v("/clinic-details/".concat(t.clinic_id)):alert("Clinic information not available. Please try again later.")}catch(a){var t,n;console.error("Error getting clinic details after login:",a),401===(null===(t=a.response)||void 0===t?void 0:t.status)||403===(null===(n=a.response)||void 0===n?void 0:n.status)?(localStorage.removeItem("authToken"),localStorage.removeItem("userData"),M(e),L(!0)):alert("Error getting clinic details. Please try again later.")}})(I),M(null))}})]})}},2344:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});const a=["Full portal access for one doctor","Access to bookings, patient chat, and e-consultations","Access to patient history and consultation notes","Secure video consultations","Unlimited appointments \u2013 no cap on usage","Flexible scheduling tools","Automated appointment reminders for patients","20% service charge per successful appointment"],r=["Access to all Virtual Triage features","One practitioner profile included","Patient records and consultation history saved automatically","Secure video consultations and encrypted chat","Unlimited appointments \u2013 no restrictions","Advanced appointment management","Automated reminders and follow-up tools","3\u20135% service charge per appointment (lower service charge)"],i=["Dedicated clinic portal for multi-doctor practices","Ability to add upto 5 practitioners under one account","Centralized dashboard to manage all appointments in one place","Advanced clinic scheduling system for multiple doctors","Access to all Virtual Triage features for every practitioner","Unlimited appointments across the entire clinic","Shared patient records and clinic-wide history tracking","Secure, HIPAA/GDPR-compliant video consultations","Automated reminders and notifications for patients","Optimized for high patient volume clinics"],o=e=>e.includes("Directory")?a:e.includes("Basic")?r:e.includes("Clinic")?i:r},2555:(e,t,n)=>{"use strict";function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function r(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}function i(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.d(t,{A:()=>s})},2730:(e,t,n)=>{"use strict";var a=n(5043),r=n(8853);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)o.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},h={};function m(e,t,n,a,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,a){var r=g.hasOwnProperty(t)?g[t]:null;(null!==r?0!==r.type:a||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,a){if(null===t||"undefined"===typeof t||function(e,t,n,a){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!a&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,a))return!0;if(a)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,a)&&(n=null),a||null===r?function(e){return!!d.call(h,e)||!d.call(f,e)&&(p.test(e)?h[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,a=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,a?e.setAttributeNS(a,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var x=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),j=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),C=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),O=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var L=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function D(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=R&&e[R]||e["@@iterator"])?e:null}var I,M=Object.assign;function z(e){if(void 0===I)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);I=t&&t[1]||""}return"\n"+I+e}var F=!1;function U(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var a=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){a=c}e.call(t.prototype)}else{try{throw Error()}catch(c){a=c}e()}}catch(c){if(c&&a&&"string"===typeof c.stack){for(var r=c.stack.split("\n"),i=a.stack.split("\n"),o=r.length-1,s=i.length-1;1<=o&&0<=s&&r[o]!==i[s];)s--;for(;1<=o&&0<=s;o--,s--)if(r[o]!==i[s]){if(1!==o||1!==s)do{if(o--,0>--s||r[o]!==i[s]){var l="\n"+r[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=o&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function B(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 1:return e=U(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case k:return"Fragment";case j:return"Portal";case S:return"Profiler";case _:return"StrictMode";case T:return"Suspense";case P:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case N:return(e._context.displayName||"Context")+".Provider";case E:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case A:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return V(e(t))}catch(n){}}return null}function q(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){a=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(e){a=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=W(e)?e.checked?"true":"false":e.value),(e=a)!==n&&(t.setValue(e),!0)}function K(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return M({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,a=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:a,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Z(e,t){J(e,t);var n=H(t.value),a=t.type;if(null!=n)"number"===a?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===a||"reset"===a)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!("submit"!==a&&"reset"!==a||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&a&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(a&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return M({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function re(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ie(e,t){var n=H(t.value),a=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=a&&(e.defaultValue=""+a)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,a){MSApp.execUnsafeLocalFunction(function(){return ue(e,t)})}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var a=0===n.indexOf("--"),r=me(n,t[n],a);"float"===n&&(n="cssFloat"),a?e.setProperty(n,r):e[n]=r}}Object.keys(fe).forEach(function(e){he.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]})});var ve=M({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var je=null,ke=null,_e=null;function Se(e){if(e=br(e)){if("function"!==typeof je)throw Error(i(280));var t=e.stateNode;t&&(t=wr(t),je(e.stateNode,e.type,t))}}function Ne(e){ke?_e?_e.push(e):_e=[e]:ke=e}function Ce(){if(ke){var e=ke,t=_e;if(_e=ke=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function Ee(e,t){return e(t)}function Te(){}var Pe=!1;function Ae(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Ee(e,t,n)}finally{Pe=!1,(null!==ke||null!==_e)&&(Te(),Ce())}}function Oe(e,t){var n=e.stateNode;if(null===n)return null;var a=wr(n);if(null===a)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Le=!1;if(u)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){Le=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(ue){Le=!1}function De(e,t,n,a,r,i,o,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Ie=!1,Me=null,ze=!1,Fe=null,Ue={onError:function(e){Ie=!0,Me=e}};function Be(e,t,n,a,r,i,o,s,l){Ie=!1,Me=null,De.apply(Ue,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(Ve(e)!==e)throw Error(i(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,a=t;;){var r=n.return;if(null===r)break;var o=r.alternate;if(null===o){if(null!==(a=r.return)){n=a;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return He(r),e;if(o===a)return He(r),t;o=o.sibling}throw Error(i(188))}if(n.return!==a.return)n=r,a=o;else{for(var s=!1,l=r.child;l;){if(l===n){s=!0,n=r,a=o;break}if(l===a){s=!0,a=r,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,a=r;break}if(l===a){s=!0,a=o,n=r;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==a)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var $e=r.unstable_scheduleCallback,Ke=r.unstable_cancelCallback,Ye=r.unstable_shouldYield,Qe=r.unstable_requestPaint,Je=r.unstable_now,Ze=r.unstable_getCurrentPriorityLevel,Xe=r.unstable_ImmediatePriority,et=r.unstable_UserBlockingPriority,tt=r.unstable_NormalPriority,nt=r.unstable_LowPriority,at=r.unstable_IdlePriority,rt=null,it=null;var ot=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var a=0,r=e.suspendedLanes,i=e.pingedLanes,o=268435455&n;if(0!==o){var s=o&~r;0!==s?a=dt(s):0!==(i&=o)&&(a=dt(i))}else 0!==(o=n&~r)?a=dt(o):0!==i&&(a=dt(i));if(0===a)return 0;if(0!==t&&t!==a&&0===(t&r)&&((r=a&-a)>=(i=t&-t)||16===r&&0!==(4194240&i)))return t;if(0!==(4&a)&&(a|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=a;0<t;)r=1<<(n=31-ot(t)),a|=e[n],t&=~r;return a}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-ot(n),r=1<<a;r&t|e[a]&t&&(e[a]|=t),n&=~r}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,jt,kt,_t,St,Nt=!1,Ct=[],Et=null,Tt=null,Pt=null,At=new Map,Ot=new Map,Lt=[],Rt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Dt(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":At.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function It(e,t,n,a,r,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:i,targetContainers:[r]},null!==t&&(null!==(t=br(t))&&jt(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,null!==r&&-1===t.indexOf(r)&&t.push(r),e)}function Mt(e){var t=yr(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=qe(n)))return e.blockedOn=t,void St(e.priority,function(){kt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=br(n))&&jt(t),e.blockedOn=n,!1;var a=new(n=e.nativeEvent).constructor(n.type,n);xe=a,n.target.dispatchEvent(a),xe=null,t.shift()}return!0}function Ft(e,t,n){zt(e)&&n.delete(t)}function Ut(){Nt=!1,null!==Et&&zt(Et)&&(Et=null),null!==Tt&&zt(Tt)&&(Tt=null),null!==Pt&&zt(Pt)&&(Pt=null),At.forEach(Ft),Ot.forEach(Ft)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Nt||(Nt=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Ut)))}function Vt(e){function t(t){return Bt(t,e)}if(0<Ct.length){Bt(Ct[0],e);for(var n=1;n<Ct.length;n++){var a=Ct[n];a.blockedOn===e&&(a.blockedOn=null)}}for(null!==Et&&Bt(Et,e),null!==Tt&&Bt(Tt,e),null!==Pt&&Bt(Pt,e),At.forEach(t),Ot.forEach(t),n=0;n<Lt.length;n++)(a=Lt[n]).blockedOn===e&&(a.blockedOn=null);for(;0<Lt.length&&null===(n=Lt[0]).blockedOn;)Mt(n),null===n.blockedOn&&Lt.shift()}var qt=x.ReactCurrentBatchConfig,Ht=!0;function Wt(e,t,n,a){var r=bt,i=qt.transition;qt.transition=null;try{bt=1,$t(e,t,n,a)}finally{bt=r,qt.transition=i}}function Gt(e,t,n,a){var r=bt,i=qt.transition;qt.transition=null;try{bt=4,$t(e,t,n,a)}finally{bt=r,qt.transition=i}}function $t(e,t,n,a){if(Ht){var r=Yt(e,t,n,a);if(null===r)Ha(e,t,a,Kt,n),Dt(e,a);else if(function(e,t,n,a,r){switch(t){case"focusin":return Et=It(Et,e,t,n,a,r),!0;case"dragenter":return Tt=It(Tt,e,t,n,a,r),!0;case"mouseover":return Pt=It(Pt,e,t,n,a,r),!0;case"pointerover":var i=r.pointerId;return At.set(i,It(At.get(i)||null,e,t,n,a,r)),!0;case"gotpointercapture":return i=r.pointerId,Ot.set(i,It(Ot.get(i)||null,e,t,n,a,r)),!0}return!1}(r,e,t,n,a))a.stopPropagation();else if(Dt(e,a),4&t&&-1<Rt.indexOf(e)){for(;null!==r;){var i=br(r);if(null!==i&&wt(i),null===(i=Yt(e,t,n,a))&&Ha(e,t,a,Kt,n),i===r)break;r=i}null!==r&&a.stopPropagation()}else Ha(e,t,a,null,n)}}var Kt=null;function Yt(e,t,n,a){if(Kt=null,null!==(e=yr(e=we(a))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=qe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case at:return 536870912;default:return 16}default:return 16}}var Jt=null,Zt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Zt,a=n.length,r="value"in Jt?Jt.value:Jt.textContent,i=r.length;for(e=0;e<a&&n[e]===r[e];e++);var o=a-e;for(t=1;t<=o&&n[a-t]===r[i-t];t++);return Xt=r.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function an(){return!1}function rn(e){function t(t,n,a,r,i){for(var o in this._reactName=t,this._targetInst=a,this.type=n,this.nativeEvent=r,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(r):r[o]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?nn:an,this.isPropagationStopped=an,this}return M(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=rn(cn),dn=M({},cn,{view:0,detail:0}),pn=rn(dn),fn=M({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(on=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=on=0,ln=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=rn(fn),mn=rn(M({},fn,{dataTransfer:0})),gn=rn(M({},dn,{relatedTarget:0})),vn=rn(M({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=M({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=rn(yn),xn=rn(M({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Sn(){return _n}var Nn=M({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?jn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=rn(Nn),En=rn(M({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=rn(M({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),Pn=rn(M({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),An=M({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),On=rn(An),Ln=[9,13,27,32],Rn=u&&"CompositionEvent"in window,Dn=null;u&&"documentMode"in document&&(Dn=document.documentMode);var In=u&&"TextEvent"in window&&!Dn,Mn=u&&(!Rn||Dn&&8<Dn&&11>=Dn),zn=String.fromCharCode(32),Fn=!1;function Un(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1;var qn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qn[e.type]:"textarea"===t}function Wn(e,t,n,a){Ne(a),0<(t=Ga(t,"onChange")).length&&(n=new un("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Gn=null,$n=null;function Kn(e){za(e,0)}function Yn(e){if($(xr(e)))return e}function Qn(e,t){if("change"===e)return t}var Jn=!1;if(u){var Zn;if(u){var Xn="oninput"in document;if(!Xn){var ea=document.createElement("div");ea.setAttribute("oninput","return;"),Xn="function"===typeof ea.oninput}Zn=Xn}else Zn=!1;Jn=Zn&&(!document.documentMode||9<document.documentMode)}function ta(){Gn&&(Gn.detachEvent("onpropertychange",na),$n=Gn=null)}function na(e){if("value"===e.propertyName&&Yn($n)){var t=[];Wn(t,$n,e,we(e)),Ae(Kn,t)}}function aa(e,t,n){"focusin"===e?(ta(),$n=n,(Gn=t).attachEvent("onpropertychange",na)):"focusout"===e&&ta()}function ra(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn($n)}function ia(e,t){if("click"===e)return Yn(t)}function oa(e,t){if("input"===e||"change"===e)return Yn(t)}var sa="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function la(e,t){if(sa(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var r=n[a];if(!d.call(t,r)||!sa(e[r],t[r]))return!1}return!0}function ca(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ua(e,t){var n,a=ca(e);for(e=0;a;){if(3===a.nodeType){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=ca(a)}}function da(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?da(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pa(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(a){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function fa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function ha(e){var t=pa(),n=e.focusedElem,a=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&da(n.ownerDocument.documentElement,n)){if(null!==a&&fa(n))if(t=a.start,void 0===(e=a.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var r=n.textContent.length,i=Math.min(a.start,r);a=void 0===a.end?i:Math.min(a.end,r),!e.extend&&i>a&&(r=a,a=i,i=r),r=ua(n,i);var o=ua(n,a);r&&o&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(r.node,r.offset),e.removeAllRanges(),i>a?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var ma=u&&"documentMode"in document&&11>=document.documentMode,ga=null,va=null,ya=null,ba=!1;function xa(e,t,n){var a=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ba||null==ga||ga!==K(a)||("selectionStart"in(a=ga)&&fa(a)?a={start:a.selectionStart,end:a.selectionEnd}:a={anchorNode:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset},ya&&la(ya,a)||(ya=a,0<(a=Ga(va,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ga)))}function wa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ja={animationend:wa("Animation","AnimationEnd"),animationiteration:wa("Animation","AnimationIteration"),animationstart:wa("Animation","AnimationStart"),transitionend:wa("Transition","TransitionEnd")},ka={},_a={};function Sa(e){if(ka[e])return ka[e];if(!ja[e])return e;var t,n=ja[e];for(t in n)if(n.hasOwnProperty(t)&&t in _a)return ka[e]=n[t];return e}u&&(_a=document.createElement("div").style,"AnimationEvent"in window||(delete ja.animationend.animation,delete ja.animationiteration.animation,delete ja.animationstart.animation),"TransitionEvent"in window||delete ja.transitionend.transition);var Na=Sa("animationend"),Ca=Sa("animationiteration"),Ea=Sa("animationstart"),Ta=Sa("transitionend"),Pa=new Map,Aa="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Oa(e,t){Pa.set(e,t),l(t,[e])}for(var La=0;La<Aa.length;La++){var Ra=Aa[La];Oa(Ra.toLowerCase(),"on"+(Ra[0].toUpperCase()+Ra.slice(1)))}Oa(Na,"onAnimationEnd"),Oa(Ca,"onAnimationIteration"),Oa(Ea,"onAnimationStart"),Oa("dblclick","onDoubleClick"),Oa("focusin","onFocus"),Oa("focusout","onBlur"),Oa(Ta,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Da="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ia=new Set("cancel close invalid load scroll toggle".split(" ").concat(Da));function Ma(e,t,n){var a=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,a,r,o,s,l,c){if(Be.apply(this,arguments),Ie){if(!Ie)throw Error(i(198));var u=Me;Ie=!1,Me=null,ze||(ze=!0,Fe=u)}}(a,t,void 0,e),e.currentTarget=null}function za(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var a=e[n],r=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var o=a.length-1;0<=o;o--){var s=a[o],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&r.isPropagationStopped())break e;Ma(r,s,c),i=l}else for(o=0;o<a.length;o++){if(l=(s=a[o]).instance,c=s.currentTarget,s=s.listener,l!==i&&r.isPropagationStopped())break e;Ma(r,s,c),i=l}}}if(ze)throw e=Fe,ze=!1,Fe=null,e}function Fa(e,t){var n=t[mr];void 0===n&&(n=t[mr]=new Set);var a=e+"__bubble";n.has(a)||(qa(t,e,2,!1),n.add(a))}function Ua(e,t,n){var a=0;t&&(a|=4),qa(n,e,a,t)}var Ba="_reactListening"+Math.random().toString(36).slice(2);function Va(e){if(!e[Ba]){e[Ba]=!0,o.forEach(function(t){"selectionchange"!==t&&(Ia.has(t)||Ua(t,!1,e),Ua(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ba]||(t[Ba]=!0,Ua("selectionchange",!1,t))}}function qa(e,t,n,a){switch(Qt(t)){case 1:var r=Wt;break;case 4:r=Gt;break;default:r=$t}n=r.bind(null,t,n,e),r=void 0,!Le||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r=!0),a?void 0!==r?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):void 0!==r?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Ha(e,t,n,a,r){var i=a;if(0===(1&t)&&0===(2&t)&&null!==a)e:for(;;){if(null===a)return;var o=a.tag;if(3===o||4===o){var s=a.stateNode.containerInfo;if(s===r||8===s.nodeType&&s.parentNode===r)break;if(4===o)for(o=a.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===r||8===l.nodeType&&l.parentNode===r))return;o=o.return}for(;null!==s;){if(null===(o=yr(s)))return;if(5===(l=o.tag)||6===l){a=i=o;continue e}s=s.parentNode}}a=a.return}Ae(function(){var a=i,r=we(n),o=[];e:{var s=Pa.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Cn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case Na:case Ca:case Ea:l=vn;break;case Ta:l=Pn;break;case"scroll":l=pn;break;case"wheel":l=On;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=En}var u=0!==(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var f,h=a;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Oe(h,p))&&u.push(Wa(h,m,f)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,r),o.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(c=n.relatedTarget||n.fromElement)||!yr(c)&&!c[hr])&&(l||s)&&(s=r.window===r?r:(s=r.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=a,null!==(c=(c=n.relatedTarget||n.toElement)?yr(c):null)&&(c!==(d=Ve(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=a),l!==c)){if(u=hn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=En,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==l?s:xr(l),f=null==c?s:xr(c),(s=new u(m,h+"leave",l,n,r)).target=d,s.relatedTarget=f,m=null,yr(r)===a&&((u=new u(p,h+"enter",c,n,r)).target=f,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(p=c,h=0,f=u=l;f;f=$a(f))h++;for(f=0,m=p;m;m=$a(m))f++;for(;0<h-f;)u=$a(u),h--;for(;0<f-h;)p=$a(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=$a(u),p=$a(p)}u=null}else u=null;null!==l&&Ka(o,s,l,u,!1),null!==c&&null!==d&&Ka(o,d,c,u,!0)}if("select"===(l=(s=a?xr(a):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Qn;else if(Hn(s))if(Jn)g=oa;else{g=ra;var v=aa}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ia);switch(g&&(g=g(e,a))?Wn(o,g,n,r):(v&&v(e,s,a),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=a?xr(a):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(ga=v,va=a,ya=null);break;case"focusout":ya=va=ga=null;break;case"mousedown":ba=!0;break;case"contextmenu":case"mouseup":case"dragend":ba=!1,xa(o,n,r);break;case"selectionchange":if(ma)break;case"keydown":case"keyup":xa(o,n,r)}var y;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(y=en()):(Zt="value"in(Jt=r)?Jt.value:Jt.textContent,Vn=!0)),0<(v=Ga(a,b)).length&&(b=new xn(b,e,null,n,r),o.push({event:b,listeners:v}),y?b.data=y:null!==(y=Bn(n))&&(b.data=y))),(y=In?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Fn=!0,zn);case"textInput":return(e=t.data)===zn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!Rn&&Un(e,t)?(e=en(),Xt=Zt=Jt=null,Vn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(a=Ga(a,"onBeforeInput")).length&&(r=new xn("onBeforeInput","beforeinput",null,n,r),o.push({event:r,listeners:a}),r.data=y))}za(o,t)})}function Wa(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ga(e,t){for(var n=t+"Capture",a=[];null!==e;){var r=e,i=r.stateNode;5===r.tag&&null!==i&&(r=i,null!=(i=Oe(e,n))&&a.unshift(Wa(e,i,r)),null!=(i=Oe(e,t))&&a.push(Wa(e,i,r))),e=e.return}return a}function $a(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ka(e,t,n,a,r){for(var i=t._reactName,o=[];null!==n&&n!==a;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===a)break;5===s.tag&&null!==c&&(s=c,r?null!=(l=Oe(n,i))&&o.unshift(Wa(n,l,s)):r||null!=(l=Oe(n,i))&&o.push(Wa(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Ya=/\r\n?/g,Qa=/\u0000|\uFFFD/g;function Ja(e){return("string"===typeof e?e:""+e).replace(Ya,"\n").replace(Qa,"")}function Za(e,t,n){if(t=Ja(t),Ja(e)!==t&&n)throw Error(i(425))}function Xa(){}var er=null,tr=null;function nr(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ar="function"===typeof setTimeout?setTimeout:void 0,rr="function"===typeof clearTimeout?clearTimeout:void 0,ir="function"===typeof Promise?Promise:void 0,or="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ir?function(e){return ir.resolve(null).then(e).catch(sr)}:ar;function sr(e){setTimeout(function(){throw e})}function lr(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===a)return e.removeChild(r),void Vt(t);a--}else"$"!==n&&"$?"!==n&&"$!"!==n||a++;n=r}while(n);Vt(t)}function cr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ur(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var dr=Math.random().toString(36).slice(2),pr="__reactFiber$"+dr,fr="__reactProps$"+dr,hr="__reactContainer$"+dr,mr="__reactEvents$"+dr,gr="__reactListeners$"+dr,vr="__reactHandles$"+dr;function yr(e){var t=e[pr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hr]||n[pr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ur(e);null!==e;){if(n=e[pr])return n;e=ur(e)}return t}n=(e=n).parentNode}return null}function br(e){return!(e=e[pr]||e[hr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function wr(e){return e[fr]||null}var jr=[],kr=-1;function _r(e){return{current:e}}function Sr(e){0>kr||(e.current=jr[kr],jr[kr]=null,kr--)}function Nr(e,t){kr++,jr[kr]=e.current,e.current=t}var Cr={},Er=_r(Cr),Tr=_r(!1),Pr=Cr;function Ar(e,t){var n=e.type.contextTypes;if(!n)return Cr;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var r,i={};for(r in n)i[r]=t[r];return a&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Or(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Lr(){Sr(Tr),Sr(Er)}function Rr(e,t,n){if(Er.current!==Cr)throw Error(i(168));Nr(Er,t),Nr(Tr,n)}function Dr(e,t,n){var a=e.stateNode;if(t=t.childContextTypes,"function"!==typeof a.getChildContext)return n;for(var r in a=a.getChildContext())if(!(r in t))throw Error(i(108,q(e)||"Unknown",r));return M({},n,a)}function Ir(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cr,Pr=Er.current,Nr(Er,e),Nr(Tr,Tr.current),!0}function Mr(e,t,n){var a=e.stateNode;if(!a)throw Error(i(169));n?(e=Dr(e,t,Pr),a.__reactInternalMemoizedMergedChildContext=e,Sr(Tr),Sr(Er),Nr(Er,e)):Sr(Tr),Nr(Tr,n)}var zr=null,Fr=!1,Ur=!1;function Br(e){null===zr?zr=[e]:zr.push(e)}function Vr(){if(!Ur&&null!==zr){Ur=!0;var e=0,t=bt;try{var n=zr;for(bt=1;e<n.length;e++){var a=n[e];do{a=a(!0)}while(null!==a)}zr=null,Fr=!1}catch(r){throw null!==zr&&(zr=zr.slice(e+1)),$e(Xe,Vr),r}finally{bt=t,Ur=!1}}return null}var qr=[],Hr=0,Wr=null,Gr=0,$r=[],Kr=0,Yr=null,Qr=1,Jr="";function Zr(e,t){qr[Hr++]=Gr,qr[Hr++]=Wr,Wr=e,Gr=t}function Xr(e,t,n){$r[Kr++]=Qr,$r[Kr++]=Jr,$r[Kr++]=Yr,Yr=e;var a=Qr;e=Jr;var r=32-ot(a)-1;a&=~(1<<r),n+=1;var i=32-ot(t)+r;if(30<i){var o=r-r%5;i=(a&(1<<o)-1).toString(32),a>>=o,r-=o,Qr=1<<32-ot(t)+r|n<<r|a,Jr=i+e}else Qr=1<<i|n<<r|a,Jr=e}function ei(e){null!==e.return&&(Zr(e,1),Xr(e,1,0))}function ti(e){for(;e===Wr;)Wr=qr[--Hr],qr[Hr]=null,Gr=qr[--Hr],qr[Hr]=null;for(;e===Yr;)Yr=$r[--Kr],$r[Kr]=null,Jr=$r[--Kr],$r[Kr]=null,Qr=$r[--Kr],$r[Kr]=null}var ni=null,ai=null,ri=!1,ii=null;function oi(e,t){var n=Ac(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function si(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ni=e,ai=cr(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ni=e,ai=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yr?{id:Qr,overflow:Jr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ac(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ni=e,ai=null,!0);default:return!1}}function li(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ci(e){if(ri){var t=ai;if(t){var n=t;if(!si(e,t)){if(li(e))throw Error(i(418));t=cr(n.nextSibling);var a=ni;t&&si(e,t)?oi(a,n):(e.flags=-4097&e.flags|2,ri=!1,ni=e)}}else{if(li(e))throw Error(i(418));e.flags=-4097&e.flags|2,ri=!1,ni=e}}}function ui(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ni=e}function di(e){if(e!==ni)return!1;if(!ri)return ui(e),ri=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!nr(e.type,e.memoizedProps)),t&&(t=ai)){if(li(e))throw pi(),Error(i(418));for(;t;)oi(e,t),t=cr(t.nextSibling)}if(ui(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ai=cr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ai=null}}else ai=ni?cr(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=ai;e;)e=cr(e.nextSibling)}function fi(){ai=ni=null,ri=!1}function hi(e){null===ii?ii=[e]:ii.push(e)}var mi=x.ReactCurrentBatchConfig;function gi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var a=n.stateNode}if(!a)throw Error(i(147,e));var r=a,o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function vi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yi(e){return(0,e._init)(e._payload)}function bi(e){function t(t,n){if(e){var a=t.deletions;null===a?(t.deletions=[n],t.flags|=16):a.push(n)}}function n(n,a){if(!e)return null;for(;null!==a;)t(n,a),a=a.sibling;return null}function a(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t){return(e=Lc(e,t)).index=0,e.sibling=null,e}function o(t,n,a){return t.index=a,e?null!==(a=t.alternate)?(a=a.index)<n?(t.flags|=2,n):a:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,a){return null===t||6!==t.tag?((t=Mc(n,e.mode,a)).return=e,t):((t=r(t,n)).return=e,t)}function c(e,t,n,a){var i=n.type;return i===k?d(e,t,n.props.children,a,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===O&&yi(i)===t.type)?((a=r(t,n.props)).ref=gi(e,t,n),a.return=e,a):((a=Rc(n.type,n.key,n.props,null,e.mode,a)).ref=gi(e,t,n),a.return=e,a)}function u(e,t,n,a){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,a)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function d(e,t,n,a,i){return null===t||7!==t.tag?((t=Dc(n,e.mode,a,i)).return=e,t):((t=r(t,n)).return=e,t)}function p(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Mc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Rc(t.type,t.key,t.props,null,e.mode,n)).ref=gi(e,null,t),n.return=e,n;case j:return(t=zc(t,e.mode,n)).return=e,t;case O:return p(e,(0,t._init)(t._payload),n)}if(te(t)||D(t))return(t=Dc(t,e.mode,n,null)).return=e,t;vi(e,t)}return null}function f(e,t,n,a){var r=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==r?null:l(e,t,""+n,a);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===r?c(e,t,n,a):null;case j:return n.key===r?u(e,t,n,a):null;case O:return f(e,t,(r=n._init)(n._payload),a)}if(te(n)||D(n))return null!==r?null:d(e,t,n,a,null);vi(e,n)}return null}function h(e,t,n,a,r){if("string"===typeof a&&""!==a||"number"===typeof a)return l(t,e=e.get(n)||null,""+a,r);if("object"===typeof a&&null!==a){switch(a.$$typeof){case w:return c(t,e=e.get(null===a.key?n:a.key)||null,a,r);case j:return u(t,e=e.get(null===a.key?n:a.key)||null,a,r);case O:return h(e,t,n,(0,a._init)(a._payload),r)}if(te(a)||D(a))return d(t,e=e.get(n)||null,a,r,null);vi(t,a)}return null}function m(r,i,s,l){for(var c=null,u=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=f(r,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(r,d),i=o(v,i,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(r,d),ri&&Zr(r,m),c;if(null===d){for(;m<s.length;m++)null!==(d=p(r,s[m],l))&&(i=o(d,i,m),null===u?c=d:u.sibling=d,u=d);return ri&&Zr(r,m),c}for(d=a(r,d);m<s.length;m++)null!==(g=h(d,r,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=o(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),ri&&Zr(r,m),c}function g(r,s,l,c){var u=D(l);if("function"!==typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=f(r,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(r,m),s=o(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(r,m),ri&&Zr(r,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=p(r,y.value,c))&&(s=o(y,s,g),null===d?u=y:d.sibling=y,d=y);return ri&&Zr(r,g),u}for(m=a(r,m);!y.done;g++,y=l.next())null!==(y=h(m,r,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=o(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(r,e)}),ri&&Zr(r,g),u}return function e(a,i,o,l){if("object"===typeof o&&null!==o&&o.type===k&&null===o.key&&(o=o.props.children),"object"===typeof o&&null!==o){switch(o.$$typeof){case w:e:{for(var c=o.key,u=i;null!==u;){if(u.key===c){if((c=o.type)===k){if(7===u.tag){n(a,u.sibling),(i=r(u,o.props.children)).return=a,a=i;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===O&&yi(c)===u.type){n(a,u.sibling),(i=r(u,o.props)).ref=gi(a,u,o),i.return=a,a=i;break e}n(a,u);break}t(a,u),u=u.sibling}o.type===k?((i=Dc(o.props.children,a.mode,l,o.key)).return=a,a=i):((l=Rc(o.type,o.key,o.props,null,a.mode,l)).ref=gi(a,i,o),l.return=a,a=l)}return s(a);case j:e:{for(u=o.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===o.containerInfo&&i.stateNode.implementation===o.implementation){n(a,i.sibling),(i=r(i,o.children||[])).return=a,a=i;break e}n(a,i);break}t(a,i),i=i.sibling}(i=zc(o,a.mode,l)).return=a,a=i}return s(a);case O:return e(a,i,(u=o._init)(o._payload),l)}if(te(o))return m(a,i,o,l);if(D(o))return g(a,i,o,l);vi(a,o)}return"string"===typeof o&&""!==o||"number"===typeof o?(o=""+o,null!==i&&6===i.tag?(n(a,i.sibling),(i=r(i,o)).return=a,a=i):(n(a,i),(i=Mc(o,a.mode,l)).return=a,a=i),s(a)):n(a,i)}}var xi=bi(!0),wi=bi(!1),ji=_r(null),ki=null,_i=null,Si=null;function Ni(){Si=_i=ki=null}function Ci(e){var t=ji.current;Sr(ji),e._currentValue=t}function Ei(e,t,n){for(;null!==e;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==a&&(a.childLanes|=t)):null!==a&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Ti(e,t){ki=e,Si=_i=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Pi(e){var t=e._currentValue;if(Si!==e)if(e={context:e,memoizedValue:t,next:null},null===_i){if(null===ki)throw Error(i(308));_i=e,ki.dependencies={lanes:0,firstContext:e}}else _i=_i.next=e;return t}var Ai=null;function Oi(e){null===Ai?Ai=[e]:Ai.push(e)}function Li(e,t,n,a){var r=t.interleaved;return null===r?(n.next=n,Oi(t)):(n.next=r.next,r.next=n),t.interleaved=n,Ri(e,a)}function Ri(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Di=!1;function Ii(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fi(e,t,n){var a=e.updateQueue;if(null===a)return null;if(a=a.shared,0!==(2&El)){var r=a.pending;return null===r?t.next=t:(t.next=r.next,r.next=t),a.pending=t,Ri(e,n)}return null===(r=a.interleaved)?(t.next=t,Oi(a)):(t.next=r.next,r.next=t),a.interleaved=t,Ri(e,n)}function Ui(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var a=t.lanes;n|=a&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Bi(e,t){var n=e.updateQueue,a=e.alternate;if(null!==a&&n===(a=a.updateQueue)){var r=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?r=i=o:i=i.next=o,n=n.next}while(null!==n);null===i?r=i=t:i=i.next=t}else r=i=t;return n={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:a.shared,effects:a.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vi(e,t,n,a){var r=e.updateQueue;Di=!1;var i=r.firstBaseUpdate,o=r.lastBaseUpdate,s=r.shared.pending;if(null!==s){r.shared.pending=null;var l=s,c=l.next;l.next=null,null===o?i=c:o.next=c,o=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==o&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=r.baseState;for(o=0,u=c=l=null,s=i;;){var p=s.lane,f=s.eventTime;if((a&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(p=t,f=n,m.tag){case 1:if("function"===typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(p="function"===typeof(h=m.payload)?h.call(f,d,p):h)||void 0===p)break e;d=M({},d,p);break e;case 2:Di=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=r.effects)?r.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,o|=p;if(null===(s=s.next)){if(null===(s=r.shared.pending))break;s=(p=s).next,p.next=null,r.lastBaseUpdate=p,r.shared.pending=null}}if(null===u&&(l=d),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=u,null!==(t=r.shared.interleaved)){r=t;do{o|=r.lane,r=r.next}while(r!==t)}else null===i&&(r.shared.lanes=0);Il|=o,e.lanes=o,e.memoizedState=d}}function qi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var a=e[t],r=a.callback;if(null!==r){if(a.callback=null,a=n,"function"!==typeof r)throw Error(i(191,r));r.call(a)}}}var Hi={},Wi=_r(Hi),Gi=_r(Hi),$i=_r(Hi);function Ki(e){if(e===Hi)throw Error(i(174));return e}function Yi(e,t){switch(Nr($i,t),Nr(Gi,e),Nr(Wi,Hi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Sr(Wi),Nr(Wi,t)}function Qi(){Sr(Wi),Sr(Gi),Sr($i)}function Ji(e){Ki($i.current);var t=Ki(Wi.current),n=le(t,e.type);t!==n&&(Nr(Gi,e),Nr(Wi,n))}function Zi(e){Gi.current===e&&(Sr(Wi),Sr(Gi))}var Xi=_r(0);function eo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var to=[];function no(){for(var e=0;e<to.length;e++)to[e]._workInProgressVersionPrimary=null;to.length=0}var ao=x.ReactCurrentDispatcher,ro=x.ReactCurrentBatchConfig,io=0,oo=null,so=null,lo=null,co=!1,uo=!1,po=0,fo=0;function ho(){throw Error(i(321))}function mo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sa(e[n],t[n]))return!1;return!0}function go(e,t,n,a,r,o){if(io=o,oo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ao.current=null===e||null===e.memoizedState?Xo:es,e=n(a,r),uo){o=0;do{if(uo=!1,po=0,25<=o)throw Error(i(301));o+=1,lo=so=null,t.updateQueue=null,ao.current=ts,e=n(a,r)}while(uo)}if(ao.current=Zo,t=null!==so&&null!==so.next,io=0,lo=so=oo=null,co=!1,t)throw Error(i(300));return e}function vo(){var e=0!==po;return po=0,e}function yo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===lo?oo.memoizedState=lo=e:lo=lo.next=e,lo}function bo(){if(null===so){var e=oo.alternate;e=null!==e?e.memoizedState:null}else e=so.next;var t=null===lo?oo.memoizedState:lo.next;if(null!==t)lo=t,so=e;else{if(null===e)throw Error(i(310));e={memoizedState:(so=e).memoizedState,baseState:so.baseState,baseQueue:so.baseQueue,queue:so.queue,next:null},null===lo?oo.memoizedState=lo=e:lo=lo.next=e}return lo}function xo(e,t){return"function"===typeof t?t(e):t}function wo(e){var t=bo(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var a=so,r=a.baseQueue,o=n.pending;if(null!==o){if(null!==r){var s=r.next;r.next=o.next,o.next=s}a.baseQueue=r=o,n.pending=null}if(null!==r){o=r.next,a=a.baseState;var l=s=null,c=null,u=o;do{var d=u.lane;if((io&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),a=u.hasEagerState?u.eagerState:e(a,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=a):c=c.next=p,oo.lanes|=d,Il|=d}u=u.next}while(null!==u&&u!==o);null===c?s=a:c.next=l,sa(a,t.memoizedState)||(bs=!0),t.memoizedState=a,t.baseState=s,t.baseQueue=c,n.lastRenderedState=a}if(null!==(e=n.interleaved)){r=e;do{o=r.lane,oo.lanes|=o,Il|=o,r=r.next}while(r!==e)}else null===r&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function jo(e){var t=bo(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var a=n.dispatch,r=n.pending,o=t.memoizedState;if(null!==r){n.pending=null;var s=r=r.next;do{o=e(o,s.action),s=s.next}while(s!==r);sa(o,t.memoizedState)||(bs=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function ko(){}function _o(e,t){var n=oo,a=bo(),r=t(),o=!sa(a.memoizedState,r);if(o&&(a.memoizedState=r,bs=!0),a=a.queue,Io(Co.bind(null,n,a,e),[e]),a.getSnapshot!==t||o||null!==lo&&1&lo.memoizedState.tag){if(n.flags|=2048,Ao(9,No.bind(null,n,a,r,t),void 0,null),null===Tl)throw Error(i(349));0!==(30&io)||So(n,t,r)}return r}function So(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=oo.updateQueue)?(t={lastEffect:null,stores:null},oo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function No(e,t,n,a){t.value=n,t.getSnapshot=a,Eo(t)&&To(e)}function Co(e,t,n){return n(function(){Eo(t)&&To(e)})}function Eo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sa(e,n)}catch(a){return!0}}function To(e){var t=Ri(e,1);null!==t&&nc(t,e,1,-1)}function Po(e){var t=yo();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xo,lastRenderedState:e},t.queue=e,e=e.dispatch=Ko.bind(null,oo,e),[t.memoizedState,e]}function Ao(e,t,n,a){return e={tag:e,create:t,destroy:n,deps:a,next:null},null===(t=oo.updateQueue)?(t={lastEffect:null,stores:null},oo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Oo(){return bo().memoizedState}function Lo(e,t,n,a){var r=yo();oo.flags|=e,r.memoizedState=Ao(1|t,n,void 0,void 0===a?null:a)}function Ro(e,t,n,a){var r=bo();a=void 0===a?null:a;var i=void 0;if(null!==so){var o=so.memoizedState;if(i=o.destroy,null!==a&&mo(a,o.deps))return void(r.memoizedState=Ao(t,n,i,a))}oo.flags|=e,r.memoizedState=Ao(1|t,n,i,a)}function Do(e,t){return Lo(8390656,8,e,t)}function Io(e,t){return Ro(2048,8,e,t)}function Mo(e,t){return Ro(4,2,e,t)}function zo(e,t){return Ro(4,4,e,t)}function Fo(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Uo(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ro(4,4,Fo.bind(null,t,e),n)}function Bo(){}function Vo(e,t){var n=bo();t=void 0===t?null:t;var a=n.memoizedState;return null!==a&&null!==t&&mo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function qo(e,t){var n=bo();t=void 0===t?null:t;var a=n.memoizedState;return null!==a&&null!==t&&mo(t,a[1])?a[0]:(e=e(),n.memoizedState=[e,t],e)}function Ho(e,t,n){return 0===(21&io)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sa(n,t)||(n=mt(),oo.lanes|=n,Il|=n,e.baseState=!0),t)}function Wo(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var a=ro.transition;ro.transition={};try{e(!1),t()}finally{bt=n,ro.transition=a}}function Go(){return bo().memoizedState}function $o(e,t,n){var a=tc(e);if(n={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null},Yo(e))Qo(t,n);else if(null!==(n=Li(e,t,n,a))){nc(n,e,a,ec()),Jo(n,t,a)}}function Ko(e,t,n){var a=tc(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(Yo(e))Qo(t,r);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=i(o,n);if(r.hasEagerState=!0,r.eagerState=s,sa(s,o)){var l=t.interleaved;return null===l?(r.next=r,Oi(t)):(r.next=l.next,l.next=r),void(t.interleaved=r)}}catch(c){}null!==(n=Li(e,t,r,a))&&(nc(n,e,a,r=ec()),Jo(n,t,a))}}function Yo(e){var t=e.alternate;return e===oo||null!==t&&t===oo}function Qo(e,t){uo=co=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jo(e,t,n){if(0!==(4194240&n)){var a=t.lanes;n|=a&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Zo={readContext:Pi,useCallback:ho,useContext:ho,useEffect:ho,useImperativeHandle:ho,useInsertionEffect:ho,useLayoutEffect:ho,useMemo:ho,useReducer:ho,useRef:ho,useState:ho,useDebugValue:ho,useDeferredValue:ho,useTransition:ho,useMutableSource:ho,useSyncExternalStore:ho,useId:ho,unstable_isNewReconciler:!1},Xo={readContext:Pi,useCallback:function(e,t){return yo().memoizedState=[e,void 0===t?null:t],e},useContext:Pi,useEffect:Do,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Lo(4194308,4,Fo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Lo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Lo(4,2,e,t)},useMemo:function(e,t){var n=yo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var a=yo();return t=void 0!==n?n(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=$o.bind(null,oo,e),[a.memoizedState,e]},useRef:function(e){return e={current:e},yo().memoizedState=e},useState:Po,useDebugValue:Bo,useDeferredValue:function(e){return yo().memoizedState=e},useTransition:function(){var e=Po(!1),t=e[0];return e=Wo.bind(null,e[1]),yo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var a=oo,r=yo();if(ri){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Tl)throw Error(i(349));0!==(30&io)||So(a,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,Do(Co.bind(null,a,o,e),[e]),a.flags|=2048,Ao(9,No.bind(null,a,o,n,t),void 0,null),n},useId:function(){var e=yo(),t=Tl.identifierPrefix;if(ri){var n=Jr;t=":"+t+"R"+(n=(Qr&~(1<<32-ot(Qr)-1)).toString(32)+n),0<(n=po++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fo++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Pi,useCallback:Vo,useContext:Pi,useEffect:Io,useImperativeHandle:Uo,useInsertionEffect:Mo,useLayoutEffect:zo,useMemo:qo,useReducer:wo,useRef:Oo,useState:function(){return wo(xo)},useDebugValue:Bo,useDeferredValue:function(e){return Ho(bo(),so.memoizedState,e)},useTransition:function(){return[wo(xo)[0],bo().memoizedState]},useMutableSource:ko,useSyncExternalStore:_o,useId:Go,unstable_isNewReconciler:!1},ts={readContext:Pi,useCallback:Vo,useContext:Pi,useEffect:Io,useImperativeHandle:Uo,useInsertionEffect:Mo,useLayoutEffect:zo,useMemo:qo,useReducer:jo,useRef:Oo,useState:function(){return jo(xo)},useDebugValue:Bo,useDeferredValue:function(e){var t=bo();return null===so?t.memoizedState=e:Ho(t,so.memoizedState,e)},useTransition:function(){return[jo(xo)[0],bo().memoizedState]},useMutableSource:ko,useSyncExternalStore:_o,useId:Go,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=M({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function as(e,t,n,a){n=null===(n=n(a,t=e.memoizedState))||void 0===n?t:M({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var rs={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var a=ec(),r=tc(e),i=zi(a,r);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Fi(e,i,r))&&(nc(t,e,r,a),Ui(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=ec(),r=tc(e),i=zi(a,r);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Fi(e,i,r))&&(nc(t,e,r,a),Ui(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),a=tc(e),r=zi(n,a);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=Fi(e,r,a))&&(nc(t,e,a,n),Ui(t,e,a))}};function is(e,t,n,a,r,i,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(a,i,o):!t.prototype||!t.prototype.isPureReactComponent||(!la(n,a)||!la(r,i))}function os(e,t,n){var a=!1,r=Cr,i=t.contextType;return"object"===typeof i&&null!==i?i=Pi(i):(r=Or(t)?Pr:Er.current,i=(a=null!==(a=t.contextTypes)&&void 0!==a)?Ar(e,r):Cr),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=rs,e.stateNode=t,t._reactInternals=e,a&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,n,a){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,a),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&rs.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,a){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},Ii(e);var i=t.contextType;"object"===typeof i&&null!==i?r.context=Pi(i):(i=Or(t)?Pr:Er.current,r.context=Ar(e,i)),r.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(as(e,t,i,n),r.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof r.getSnapshotBeforeUpdate||"function"!==typeof r.UNSAFE_componentWillMount&&"function"!==typeof r.componentWillMount||(t=r.state,"function"===typeof r.componentWillMount&&r.componentWillMount(),"function"===typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&rs.enqueueReplaceState(r,r.state,null),Vi(e,n,r,a),r.state=e.memoizedState),"function"===typeof r.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",a=t;do{n+=B(a),a=a.return}while(a);var r=n}catch(i){r="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:r,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ps="function"===typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=zi(-1,n)).tag=3,n.payload={element:null};var a=t.value;return n.callback=function(){Hl||(Hl=!0,Wl=a),ds(0,t)},n}function hs(e,t,n){(n=zi(-1,n)).tag=3;var a=e.type.getDerivedStateFromError;if("function"===typeof a){var r=t.value;n.payload=function(){return a(r)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof a&&(null===Gl?Gl=new Set([this]):Gl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var a=e.pingCache;if(null===a){a=e.pingCache=new ps;var r=new Set;a.set(t,r)}else void 0===(r=a.get(t))&&(r=new Set,a.set(t,r));r.has(n)||(r.add(n),e=Sc.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,a,r){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=zi(-1,1)).tag=2,Fi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=r,e)}var ys=x.ReactCurrentOwner,bs=!1;function xs(e,t,n,a){t.child=null===e?wi(t,null,n,a):xi(t,e.child,n,a)}function ws(e,t,n,a,r){n=n.render;var i=t.ref;return Ti(t,r),a=go(e,t,n,a,i,r),n=vo(),null===e||bs?(ri&&n&&ei(t),t.flags|=1,xs(e,t,a,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Hs(e,t,r))}function js(e,t,n,a,r){if(null===e){var i=n.type;return"function"!==typeof i||Oc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Rc(n.type,null,a,t,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ks(e,t,i,a,r))}if(i=e.child,0===(e.lanes&r)){var o=i.memoizedProps;if((n=null!==(n=n.compare)?n:la)(o,a)&&e.ref===t.ref)return Hs(e,t,r)}return t.flags|=1,(e=Lc(i,a)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,a,r){if(null!==e){var i=e.memoizedProps;if(la(i,a)&&e.ref===t.ref){if(bs=!1,t.pendingProps=a=i,0===(e.lanes&r))return t.lanes=e.lanes,Hs(e,t,r);0!==(131072&e.flags)&&(bs=!0)}}return Ns(e,t,n,a,r)}function _s(e,t,n){var a=t.pendingProps,r=a.children,i=null!==e?e.memoizedState:null;if("hidden"===a.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Nr(Ll,Ol),Ol|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Nr(Ll,Ol),Ol|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=null!==i?i.baseLanes:n,Nr(Ll,Ol),Ol|=a}else null!==i?(a=i.baseLanes|n,t.memoizedState=null):a=n,Nr(Ll,Ol),Ol|=a;return xs(e,t,r,n),t.child}function Ss(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ns(e,t,n,a,r){var i=Or(n)?Pr:Er.current;return i=Ar(t,i),Ti(t,r),n=go(e,t,n,a,i,r),a=vo(),null===e||bs?(ri&&a&&ei(t),t.flags|=1,xs(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Hs(e,t,r))}function Cs(e,t,n,a,r){if(Or(n)){var i=!0;Ir(t)}else i=!1;if(Ti(t,r),null===t.stateNode)qs(e,t),os(t,n,a),ls(t,n,a,r),a=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,c=n.contextType;"object"===typeof c&&null!==c?c=Pi(c):c=Ar(t,c=Or(n)?Pr:Er.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof o.getSnapshotBeforeUpdate;d||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==a||l!==c)&&ss(t,o,a,c),Di=!1;var p=t.memoizedState;o.state=p,Vi(t,a,o,r),l=t.memoizedState,s!==a||p!==l||Tr.current||Di?("function"===typeof u&&(as(t,n,u,a),l=t.memoizedState),(s=Di||is(t,n,s,a,p,l,c))?(d||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4194308)):("function"===typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=l),o.props=a,o.state=l,o.context=c,a=s):("function"===typeof o.componentDidMount&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,Mi(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),o.props=c,d=t.pendingProps,p=o.context,"object"===typeof(l=n.contextType)&&null!==l?l=Pi(l):l=Ar(t,l=Or(n)?Pr:Er.current);var f=n.getDerivedStateFromProps;(u="function"===typeof f||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==d||p!==l)&&ss(t,o,a,l),Di=!1,p=t.memoizedState,o.state=p,Vi(t,a,o,r);var h=t.memoizedState;s!==d||p!==h||Tr.current||Di?("function"===typeof f&&(as(t,n,f,a),h=t.memoizedState),(c=Di||is(t,n,c,a,p,h,l)||!1)?(u||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(a,h,l),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(a,h,l)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=h),o.props=a,o.state=h,o.context=l,a=c):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),a=!1)}return Es(e,t,n,a,i,r)}function Es(e,t,n,a,r,i){Ss(e,t);var o=0!==(128&t.flags);if(!a&&!o)return r&&Mr(t,n,!1),Hs(e,t,i);a=t.stateNode,ys.current=t;var s=o&&"function"!==typeof n.getDerivedStateFromError?null:a.render();return t.flags|=1,null!==e&&o?(t.child=xi(t,e.child,null,i),t.child=xi(t,null,s,i)):xs(e,t,s,i),t.memoizedState=a.state,r&&Mr(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?Rr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Rr(0,t.context,!1),Yi(e,t.containerInfo)}function Ps(e,t,n,a,r){return fi(),hi(r),t.flags|=256,xs(e,t,n,a),t.child}var As,Os,Ls,Rs,Ds={dehydrated:null,treeContext:null,retryLane:0};function Is(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ms(e,t,n){var a,r=t.pendingProps,o=Xi.current,s=!1,l=0!==(128&t.flags);if((a=l)||(a=(null===e||null!==e.memoizedState)&&0!==(2&o)),a?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Nr(Xi,1&o),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=r.children,e=r.fallback,s?(r=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&r)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Ic(l,r,0,null),e=Dc(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Is(n),t.memoizedState=Ds,e):zs(t,l));if(null!==(o=e.memoizedState)&&null!==(a=o.dehydrated))return function(e,t,n,a,r,o,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,a=us(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=a.fallback,r=t.mode,a=Ic({mode:"visible",children:a.children},r,0,null),(o=Dc(o,r,s,null)).flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,0!==(1&t.mode)&&xi(t,e.child,null,s),t.child.memoizedState=Is(s),t.memoizedState=Ds,o);if(0===(1&t.mode))return Fs(e,t,s,null);if("$!"===r.data){if(a=r.nextSibling&&r.nextSibling.dataset)var l=a.dgst;return a=l,Fs(e,t,s,a=us(o=Error(i(419)),a,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(a=Tl)){switch(s&-s){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}0!==(r=0!==(r&(a.suspendedLanes|s))?0:r)&&r!==o.retryLane&&(o.retryLane=r,Ri(e,r),nc(a,e,r,-1))}return mc(),Fs(e,t,s,a=us(Error(i(421))))}return"$?"===r.data?(t.flags|=128,t.child=e.child,t=Cc.bind(null,e),r._reactRetry=t,null):(e=o.treeContext,ai=cr(r.nextSibling),ni=t,ri=!0,ii=null,null!==e&&($r[Kr++]=Qr,$r[Kr++]=Jr,$r[Kr++]=Yr,Qr=e.id,Jr=e.overflow,Yr=t),t=zs(t,a.children),t.flags|=4096,t)}(e,t,l,r,a,o,n);if(s){s=r.fallback,l=t.mode,a=(o=e.child).sibling;var c={mode:"hidden",children:r.children};return 0===(1&l)&&t.child!==o?((r=t.child).childLanes=0,r.pendingProps=c,t.deletions=null):(r=Lc(o,c)).subtreeFlags=14680064&o.subtreeFlags,null!==a?s=Lc(a,s):(s=Dc(s,l,n,null)).flags|=2,s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,l=null===(l=e.child.memoizedState)?Is(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ds,r}return e=(s=e.child).sibling,r=Lc(s,{mode:"visible",children:r.children}),0===(1&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function zs(e,t){return(t=Ic({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,a){return null!==a&&hi(a),xi(t,e.child,null,n),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Us(e,t,n){e.lanes|=t;var a=e.alternate;null!==a&&(a.lanes|=t),Ei(e.return,t,n)}function Bs(e,t,n,a,r){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=n,i.tailMode=r)}function Vs(e,t,n){var a=t.pendingProps,r=a.revealOrder,i=a.tail;if(xs(e,t,a.children,n),0!==(2&(a=Xi.current)))a=1&a|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Us(e,n,t);else if(19===e.tag)Us(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(Nr(Xi,a),0===(1&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===eo(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Bs(t,!1,r,n,i);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===eo(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Bs(t,!0,n,null,i);break;case"together":Bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Il|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Lc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Lc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ws(e,t){if(!ri)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;null!==n;)null!==n.alternate&&(a=n),n=n.sibling;null===a?t||null===e.tail?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Gs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,a=0;if(t)for(var r=e.child;null!==r;)n|=r.lanes|r.childLanes,a|=14680064&r.subtreeFlags,a|=14680064&r.flags,r.return=e,r=r.sibling;else for(r=e.child;null!==r;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function $s(e,t,n){var a=t.pendingProps;switch(ti(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gs(t),null;case 1:case 17:return Or(t.type)&&Lr(),Gs(t),null;case 3:return a=t.stateNode,Qi(),Sr(Tr),Sr(Er),no(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ii&&(oc(ii),ii=null))),Os(e,t),Gs(t),null;case 5:Zi(t);var r=Ki($i.current);if(n=t.type,null!==e&&null!=t.stateNode)Ls(e,t,n,a,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(null===t.stateNode)throw Error(i(166));return Gs(t),null}if(e=Ki(Wi.current),di(t)){a=t.stateNode,n=t.type;var o=t.memoizedProps;switch(a[pr]=t,a[fr]=o,e=0!==(1&t.mode),n){case"dialog":Fa("cancel",a),Fa("close",a);break;case"iframe":case"object":case"embed":Fa("load",a);break;case"video":case"audio":for(r=0;r<Da.length;r++)Fa(Da[r],a);break;case"source":Fa("error",a);break;case"img":case"image":case"link":Fa("error",a),Fa("load",a);break;case"details":Fa("toggle",a);break;case"input":Q(a,o),Fa("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!o.multiple},Fa("invalid",a);break;case"textarea":re(a,o),Fa("invalid",a)}for(var l in ye(n,o),r=null,o)if(o.hasOwnProperty(l)){var c=o[l];"children"===l?"string"===typeof c?a.textContent!==c&&(!0!==o.suppressHydrationWarning&&Za(a.textContent,c,e),r=["children",c]):"number"===typeof c&&a.textContent!==""+c&&(!0!==o.suppressHydrationWarning&&Za(a.textContent,c,e),r=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fa("scroll",a)}switch(n){case"input":G(a),X(a,o,!0);break;case"textarea":G(a),oe(a);break;case"select":case"option":break;default:"function"===typeof o.onClick&&(a.onclick=Xa)}a=r,t.updateQueue=a,null!==a&&(t.flags|=4)}else{l=9===r.nodeType?r:r.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof a.is?e=l.createElement(n,{is:a.is}):(e=l.createElement(n),"select"===n&&(l=e,a.multiple?l.multiple=!0:a.size&&(l.size=a.size))):e=l.createElementNS(e,n),e[pr]=t,e[fr]=a,As(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,a),n){case"dialog":Fa("cancel",e),Fa("close",e),r=a;break;case"iframe":case"object":case"embed":Fa("load",e),r=a;break;case"video":case"audio":for(r=0;r<Da.length;r++)Fa(Da[r],e);r=a;break;case"source":Fa("error",e),r=a;break;case"img":case"image":case"link":Fa("error",e),Fa("load",e),r=a;break;case"details":Fa("toggle",e),r=a;break;case"input":Q(e,a),r=Y(e,a),Fa("invalid",e);break;case"option":default:r=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},r=M({},a,{value:void 0}),Fa("invalid",e);break;case"textarea":re(e,a),r=ae(e,a),Fa("invalid",e)}for(o in ye(n,r),c=r)if(c.hasOwnProperty(o)){var u=c[o];"style"===o?ge(e,u):"dangerouslySetInnerHTML"===o?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===o?"string"===typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"===typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(s.hasOwnProperty(o)?null!=u&&"onScroll"===o&&Fa("scroll",e):null!=u&&b(e,o,u,l))}switch(n){case"input":G(e),X(e,a,!1);break;case"textarea":G(e),oe(e);break;case"option":null!=a.value&&e.setAttribute("value",""+H(a.value));break;case"select":e.multiple=!!a.multiple,null!=(o=a.value)?ne(e,!!a.multiple,o,!1):null!=a.defaultValue&&ne(e,!!a.multiple,a.defaultValue,!0);break;default:"function"===typeof r.onClick&&(e.onclick=Xa)}switch(n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gs(t),null;case 6:if(e&&null!=t.stateNode)Rs(e,t,e.memoizedProps,a);else{if("string"!==typeof a&&null===t.stateNode)throw Error(i(166));if(n=Ki($i.current),Ki(Wi.current),di(t)){if(a=t.stateNode,n=t.memoizedProps,a[pr]=t,(o=a.nodeValue!==n)&&null!==(e=ni))switch(e.tag){case 3:Za(a.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Za(a.nodeValue,n,0!==(1&e.mode))}o&&(t.flags|=4)}else(a=(9===n.nodeType?n:n.ownerDocument).createTextNode(a))[pr]=t,t.stateNode=a}return Gs(t),null;case 13:if(Sr(Xi),a=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ri&&null!==ai&&0!==(1&t.mode)&&0===(128&t.flags))pi(),fi(),t.flags|=98560,o=!1;else if(o=di(t),null!==a&&null!==a.dehydrated){if(null===e){if(!o)throw Error(i(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(i(317));o[pr]=t}else fi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gs(t),o=!1}else null!==ii&&(oc(ii),ii=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((a=null!==a)!==(null!==e&&null!==e.memoizedState)&&a&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&Xi.current)?0===Rl&&(Rl=3):mc())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return Qi(),Os(e,t),null===e&&Va(t.stateNode.containerInfo),Gs(t),null;case 10:return Ci(t.type._context),Gs(t),null;case 19:if(Sr(Xi),null===(o=t.memoizedState))return Gs(t),null;if(a=0!==(128&t.flags),null===(l=o.rendering))if(a)Ws(o,!1);else{if(0!==Rl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=eo(e))){for(t.flags|=128,Ws(o,!1),null!==(a=l.updateQueue)&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=n,n=t.child;null!==n;)e=a,(o=n).flags&=14680066,null===(l=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Nr(Xi,1&Xi.current|2),t.child}e=e.sibling}null!==o.tail&&Je()>Vl&&(t.flags|=128,a=!0,Ws(o,!1),t.lanes=4194304)}else{if(!a)if(null!==(e=eo(l))){if(t.flags|=128,a=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ws(o,!0),null===o.tail&&"hidden"===o.tailMode&&!l.alternate&&!ri)return Gs(t),null}else 2*Je()-o.renderingStartTime>Vl&&1073741824!==n&&(t.flags|=128,a=!0,Ws(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=o.last)?n.sibling=l:t.child=l,o.last=l)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Je(),t.sibling=null,n=Xi.current,Nr(Xi,a?1&n|2:1&n),t):(Gs(t),null);case 22:case 23:return dc(),a=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==a&&(t.flags|=8192),a&&0!==(1&t.mode)?0!==(1073741824&Ol)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Ks(e,t){switch(ti(t),t.tag){case 1:return Or(t.type)&&Lr(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Sr(Tr),Sr(Er),no(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(Sr(Xi),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));fi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Sr(Xi),null;case 4:return Qi(),null;case 10:return Ci(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}As=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Os=function(){},Ls=function(e,t,n,a){var r=e.memoizedProps;if(r!==a){e=t.stateNode,Ki(Wi.current);var i,o=null;switch(n){case"input":r=Y(e,r),a=Y(e,a),o=[];break;case"select":r=M({},r,{value:void 0}),a=M({},a,{value:void 0}),o=[];break;case"textarea":r=ae(e,r),a=ae(e,a),o=[];break;default:"function"!==typeof r.onClick&&"function"===typeof a.onClick&&(e.onclick=Xa)}for(u in ye(n,a),n=null,r)if(!a.hasOwnProperty(u)&&r.hasOwnProperty(u)&&null!=r[u])if("style"===u){var l=r[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in a){var c=a[u];if(l=null!=r?r[u]:void 0,a.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(o||(o=[]),o.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(o=o||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(o=o||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fa("scroll",e),o||l===c||(o=[])):(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},Rs=function(e,t,n,a){n!==a&&(t.flags|=4)};var Ys=!1,Qs=!1,Js="function"===typeof WeakSet?WeakSet:Set,Zs=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(a){_c(e,t,a)}else n.current=null}function el(e,t,n){try{n()}catch(a){_c(e,t,a)}}var tl=!1;function nl(e,t,n){var a=t.updateQueue;if(null!==(a=null!==a?a.lastEffect:null)){var r=a=a.next;do{if((r.tag&e)===e){var i=r.destroy;r.destroy=void 0,void 0!==i&&el(t,n,i)}r=r.next}while(r!==a)}}function al(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var a=n.create;n.destroy=a()}n=n.next}while(n!==t)}}function rl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pr],delete t[fr],delete t[mr],delete t[gr],delete t[vr])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ol(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ol(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var a=e.tag;if(5===a||6===a)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Xa));else if(4!==a&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var a=e.tag;if(5===a||6===a)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==a&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function pl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(rt,n)}catch(s){}switch(n.tag){case 5:Qs||Xs(n,t);case 6:var a=ul,r=dl;ul=null,pl(e,t,n),dl=r,null!==(ul=a)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?lr(e.parentNode,n):1===e.nodeType&&lr(e,n),Vt(e)):lr(ul,n.stateNode));break;case 4:a=ul,r=dl,ul=n.stateNode.containerInfo,dl=!0,pl(e,t,n),ul=a,dl=r;break;case 0:case 11:case 14:case 15:if(!Qs&&(null!==(a=n.updateQueue)&&null!==(a=a.lastEffect))){r=a=a.next;do{var i=r,o=i.destroy;i=i.tag,void 0!==o&&(0!==(2&i)||0!==(4&i))&&el(n,t,o),r=r.next}while(r!==a)}pl(e,t,n);break;case 1:if(!Qs&&(Xs(n,t),"function"===typeof(a=n.stateNode).componentWillUnmount))try{a.props=n.memoizedProps,a.state=n.memoizedState,a.componentWillUnmount()}catch(s){_c(n,t,s)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Qs=(a=Qs)||null!==n.memoizedState,pl(e,t,n),Qs=a):pl(e,t,n);break;default:pl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Js),t.forEach(function(t){var a=Ec.bind(null,e,t);n.has(t)||(n.add(t),t.then(a,a))})}}function ml(e,t){var n=t.deletions;if(null!==n)for(var a=0;a<n.length;a++){var r=n[a];try{var o=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(i(160));fl(o,s,r),ul=null,dl=!1;var c=r.alternate;null!==c&&(c.return=null),r.return=null}catch(u){_c(r,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&a){try{nl(3,e,e.return),al(3,e)}catch(g){_c(e,e.return,g)}try{nl(5,e,e.return)}catch(g){_c(e,e.return,g)}}break;case 1:ml(t,e),vl(e),512&a&&null!==n&&Xs(n,n.return);break;case 5:if(ml(t,e),vl(e),512&a&&null!==n&&Xs(n,n.return),32&e.flags){var r=e.stateNode;try{pe(r,"")}catch(g){_c(e,e.return,g)}}if(4&a&&null!=(r=e.stateNode)){var o=e.memoizedProps,s=null!==n?n.memoizedProps:o,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===o.type&&null!=o.name&&J(r,o),be(l,s);var u=be(l,o);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?ge(r,p):"dangerouslySetInnerHTML"===d?de(r,p):"children"===d?pe(r,p):b(r,d,p,u)}switch(l){case"input":Z(r,o);break;case"textarea":ie(r,o);break;case"select":var f=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?ne(r,!!o.multiple,h,!1):f!==!!o.multiple&&(null!=o.defaultValue?ne(r,!!o.multiple,o.defaultValue,!0):ne(r,!!o.multiple,o.multiple?[]:"",!1))}r[fr]=o}catch(g){_c(e,e.return,g)}}break;case 6:if(ml(t,e),vl(e),4&a){if(null===e.stateNode)throw Error(i(162));r=e.stateNode,o=e.memoizedProps;try{r.nodeValue=o}catch(g){_c(e,e.return,g)}}break;case 3:if(ml(t,e),vl(e),4&a&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(g){_c(e,e.return,g)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(r=e.child).flags&&(o=null!==r.memoizedState,r.stateNode.isHidden=o,!o||null!==r.alternate&&null!==r.alternate.memoizedState||(Bl=Je())),4&a&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Qs=(u=Qs)||d,ml(t,e),Qs=u):ml(t,e),vl(e),8192&a){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Zs=e,d=e.child;null!==d;){for(p=Zs=d;null!==Zs;){switch(h=(f=Zs).child,f.tag){case 0:case 11:case 14:case 15:nl(4,f,f.return);break;case 1:Xs(f,f.return);var m=f.stateNode;if("function"===typeof m.componentWillUnmount){a=f,n=f.return;try{t=a,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){_c(a,n,g)}}break;case 5:Xs(f,f.return);break;case 22:if(null!==f.memoizedState){wl(p);continue}}null!==h?(h.return=f,Zs=h):wl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{r=p.stateNode,u?"function"===typeof(o=r.style).setProperty?o.setProperty("display","none","important"):o.display="none":(l=p.stateNode,s=void 0!==(c=p.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(g){_c(e,e.return,g)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(g){_c(e,e.return,g)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ml(t,e),vl(e),4&a&&hl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ol(n)){var a=n;break e}n=n.return}throw Error(i(160))}switch(a.tag){case 5:var r=a.stateNode;32&a.flags&&(pe(r,""),a.flags&=-33),cl(e,sl(e),r);break;case 3:case 4:var o=a.stateNode.containerInfo;ll(e,sl(e),o);break;default:throw Error(i(161))}}catch(s){_c(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Zs=e,bl(e,t,n)}function bl(e,t,n){for(var a=0!==(1&e.mode);null!==Zs;){var r=Zs,i=r.child;if(22===r.tag&&a){var o=null!==r.memoizedState||Ys;if(!o){var s=r.alternate,l=null!==s&&null!==s.memoizedState||Qs;s=Ys;var c=Qs;if(Ys=o,(Qs=l)&&!c)for(Zs=r;null!==Zs;)l=(o=Zs).child,22===o.tag&&null!==o.memoizedState?jl(r):null!==l?(l.return=o,Zs=l):jl(r);for(;null!==i;)Zs=i,bl(i,t,n),i=i.sibling;Zs=r,Ys=s,Qs=c}xl(e)}else 0!==(8772&r.subtreeFlags)&&null!==i?(i.return=r,Zs=i):xl(e)}}function xl(e){for(;null!==Zs;){var t=Zs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Qs||al(5,t);break;case 1:var a=t.stateNode;if(4&t.flags&&!Qs)if(null===n)a.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);a.componentDidUpdate(r,n.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&qi(t,o,a);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}qi(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Vt(p)}}}break;default:throw Error(i(163))}Qs||512&t.flags&&rl(t)}catch(f){_c(t,t.return,f)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function wl(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function jl(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{al(4,t)}catch(l){_c(t,n,l)}break;case 1:var a=t.stateNode;if("function"===typeof a.componentDidMount){var r=t.return;try{a.componentDidMount()}catch(l){_c(t,r,l)}}var i=t.return;try{rl(t)}catch(l){_c(t,i,l)}break;case 5:var o=t.return;try{rl(t)}catch(l){_c(t,o,l)}}}catch(l){_c(t,t.return,l)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var kl,_l=Math.ceil,Sl=x.ReactCurrentDispatcher,Nl=x.ReactCurrentOwner,Cl=x.ReactCurrentBatchConfig,El=0,Tl=null,Pl=null,Al=0,Ol=0,Ll=_r(0),Rl=0,Dl=null,Il=0,Ml=0,zl=0,Fl=null,Ul=null,Bl=0,Vl=1/0,ql=null,Hl=!1,Wl=null,Gl=null,$l=!1,Kl=null,Yl=0,Ql=0,Jl=null,Zl=-1,Xl=0;function ec(){return 0!==(6&El)?Je():-1!==Zl?Zl:Zl=Je()}function tc(e){return 0===(1&e.mode)?1:0!==(2&El)&&0!==Al?Al&-Al:null!==mi.transition?(0===Xl&&(Xl=mt()),Xl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Qt(e.type)}function nc(e,t,n,a){if(50<Ql)throw Ql=0,Jl=null,Error(i(185));vt(e,n,a),0!==(2&El)&&e===Tl||(e===Tl&&(0===(2&El)&&(Ml|=n),4===Rl&&sc(e,Al)),ac(e,a),1===n&&0===El&&0===(1&t.mode)&&(Vl=Je()+500,Fr&&Vr()))}function ac(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-ot(i),s=1<<o,l=r[o];-1===l?0!==(s&n)&&0===(s&a)||(r[o]=ft(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var a=pt(e,e===Tl?Al:0);if(0===a)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=a&-a,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){Fr=!0,Br(e)}(lc.bind(null,e)):Br(lc.bind(null,e)),or(function(){0===(6&El)&&Vr()}),n=null;else{switch(xt(a)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=at}n=Tc(n,rc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rc(e,t){if(Zl=-1,Xl=0,0!==(6&El))throw Error(i(327));var n=e.callbackNode;if(jc()&&e.callbackNode!==n)return null;var a=pt(e,e===Tl?Al:0);if(0===a)return null;if(0!==(30&a)||0!==(a&e.expiredLanes)||t)t=gc(e,a);else{t=a;var r=El;El|=2;var o=hc();for(Tl===e&&Al===t||(ql=null,Vl=Je()+500,pc(e,t));;)try{yc();break}catch(l){fc(e,l)}Ni(),Sl.current=o,El=r,null!==Pl?t=0:(Tl=null,Al=0,t=Rl)}if(0!==t){if(2===t&&(0!==(r=ht(e))&&(a=r,t=ic(e,r))),1===t)throw n=Dl,pc(e,0),sc(e,a),ac(e,Je()),n;if(6===t)sc(e,a);else{if(r=e.current.alternate,0===(30&a)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var a=0;a<n.length;a++){var r=n[a],i=r.getSnapshot;r=r.value;try{if(!sa(i(),r))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(r)&&(2===(t=gc(e,a))&&(0!==(o=ht(e))&&(a=o,t=ic(e,o))),1===t))throw n=Dl,pc(e,0),sc(e,a),ac(e,Je()),n;switch(e.finishedWork=r,e.finishedLanes=a,t){case 0:case 1:throw Error(i(345));case 2:case 5:wc(e,Ul,ql);break;case 3:if(sc(e,a),(130023424&a)===a&&10<(t=Bl+500-Je())){if(0!==pt(e,0))break;if(((r=e.suspendedLanes)&a)!==a){ec(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=ar(wc.bind(null,e,Ul,ql),t);break}wc(e,Ul,ql);break;case 4:if(sc(e,a),(4194240&a)===a)break;for(t=e.eventTimes,r=-1;0<a;){var s=31-ot(a);o=1<<s,(s=t[s])>r&&(r=s),a&=~o}if(a=r,10<(a=(120>(a=Je()-a)?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*_l(a/1960))-a)){e.timeoutHandle=ar(wc.bind(null,e,Ul,ql),a);break}wc(e,Ul,ql);break;default:throw Error(i(329))}}}return ac(e,Je()),e.callbackNode===n?rc.bind(null,e):null}function ic(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Ul,Ul=n,null!==t&&oc(t)),e}function oc(e){null===Ul?Ul=e:Ul.push.apply(Ul,e)}function sc(e,t){for(t&=~zl,t&=~Ml,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),a=1<<n;e[n]=-1,t&=~a}}function lc(e){if(0!==(6&El))throw Error(i(327));jc();var t=pt(e,0);if(0===(1&t))return ac(e,Je()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var a=ht(e);0!==a&&(t=a,n=ic(e,a))}if(1===n)throw n=Dl,pc(e,0),sc(e,t),ac(e,Je()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wc(e,Ul,ql),ac(e,Je()),null}function cc(e,t){var n=El;El|=1;try{return e(t)}finally{0===(El=n)&&(Vl=Je()+500,Fr&&Vr())}}function uc(e){null!==Kl&&0===Kl.tag&&0===(6&El)&&jc();var t=El;El|=1;var n=Cl.transition,a=bt;try{if(Cl.transition=null,bt=1,e)return e()}finally{bt=a,Cl.transition=n,0===(6&(El=t))&&Vr()}}function dc(){Ol=Ll.current,Sr(Ll)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,rr(n)),null!==Pl)for(n=Pl.return;null!==n;){var a=n;switch(ti(a),a.tag){case 1:null!==(a=a.type.childContextTypes)&&void 0!==a&&Lr();break;case 3:Qi(),Sr(Tr),Sr(Er),no();break;case 5:Zi(a);break;case 4:Qi();break;case 13:case 19:Sr(Xi);break;case 10:Ci(a.type._context);break;case 22:case 23:dc()}n=n.return}if(Tl=e,Pl=e=Lc(e.current,null),Al=Ol=t,Rl=0,Dl=null,zl=Ml=Il=0,Ul=Fl=null,null!==Ai){for(t=0;t<Ai.length;t++)if(null!==(a=(n=Ai[t]).interleaved)){n.interleaved=null;var r=a.next,i=n.pending;if(null!==i){var o=i.next;i.next=r,a.next=o}n.pending=a}Ai=null}return e}function fc(e,t){for(;;){var n=Pl;try{if(Ni(),ao.current=Zo,co){for(var a=oo.memoizedState;null!==a;){var r=a.queue;null!==r&&(r.pending=null),a=a.next}co=!1}if(io=0,lo=so=oo=null,uo=!1,po=0,Nl.current=null,null===n||null===n.return){Rl=1,Dl=t,Pl=null;break}e:{var o=e,s=n.return,l=n,c=t;if(t=Al,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,p=d.tag;if(0===(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,vs(h,s,l,0,t),1&h.mode&&ms(o,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){ms(o,u,t),mc();break e}c=Error(i(426))}else if(ri&&1&l.mode){var v=gs(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),hi(cs(c,l));break e}}o=c=cs(c,l),4!==Rl&&(Rl=2),null===Fl?Fl=[o]:Fl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,Bi(o,fs(0,c,t));break e;case 1:l=c;var y=o.type,b=o.stateNode;if(0===(128&o.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Gl||!Gl.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t,Bi(o,hs(o,l,t));break e}}o=o.return}while(null!==o)}xc(n)}catch(x){t=x,Pl===n&&null!==n&&(Pl=n=n.return);continue}break}}function hc(){var e=Sl.current;return Sl.current=Zo,null===e?Zo:e}function mc(){0!==Rl&&3!==Rl&&2!==Rl||(Rl=4),null===Tl||0===(268435455&Il)&&0===(268435455&Ml)||sc(Tl,Al)}function gc(e,t){var n=El;El|=2;var a=hc();for(Tl===e&&Al===t||(ql=null,pc(e,t));;)try{vc();break}catch(r){fc(e,r)}if(Ni(),El=n,Sl.current=a,null!==Pl)throw Error(i(261));return Tl=null,Al=0,Rl}function vc(){for(;null!==Pl;)bc(Pl)}function yc(){for(;null!==Pl&&!Ye();)bc(Pl)}function bc(e){var t=kl(e.alternate,e,Ol);e.memoizedProps=e.pendingProps,null===t?xc(e):Pl=t,Nl.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=$s(n,t,Ol)))return void(Pl=n)}else{if(null!==(n=Ks(n,t)))return n.flags&=32767,void(Pl=n);if(null===e)return Rl=6,void(Pl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Pl=t);Pl=t=e}while(null!==t);0===Rl&&(Rl=5)}function wc(e,t,n){var a=bt,r=Cl.transition;try{Cl.transition=null,bt=1,function(e,t,n,a){do{jc()}while(null!==Kl);if(0!==(6&El))throw Error(i(327));n=e.finishedWork;var r=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-ot(n),i=1<<r;t[r]=0,a[r]=-1,e[r]=-1,n&=~i}}(e,o),e===Tl&&(Pl=Tl=null,Al=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||$l||($l=!0,Tc(tt,function(){return jc(),null})),o=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||o){o=Cl.transition,Cl.transition=null;var s=bt;bt=1;var l=El;El|=4,Nl.current=null,function(e,t){if(er=Ht,fa(e=pa())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var a=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(a&&0!==a.rangeCount){n=a.anchorNode;var r=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch(w){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==n||0!==r&&3!==p.nodeType||(l=s+r),p!==o||0!==a&&3!==p.nodeType||(c=s+a),3===p.nodeType&&(s+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===n&&++u===r&&(l=s),f===o&&++d===a&&(c=s),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(tr={focusedElem:e,selectionRange:n},Ht=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(i(163))}}catch(w){_c(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}m=tl,tl=!1}(e,n),gl(n,e),ha(tr),Ht=!!er,tr=er=null,e.current=n,yl(n,e,r),Qe(),El=l,bt=s,Cl.transition=o}else e.current=n;if($l&&($l=!1,Kl=e,Yl=r),o=e.pendingLanes,0===o&&(Gl=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(rt,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ac(e,Je()),null!==t)for(a=e.onRecoverableError,n=0;n<t.length;n++)r=t[n],a(r.value,{componentStack:r.stack,digest:r.digest});if(Hl)throw Hl=!1,e=Wl,Wl=null,e;0!==(1&Yl)&&0!==e.tag&&jc(),o=e.pendingLanes,0!==(1&o)?e===Jl?Ql++:(Ql=0,Jl=e):Ql=0,Vr()}(e,t,n,a)}finally{Cl.transition=r,bt=a}return null}function jc(){if(null!==Kl){var e=xt(Yl),t=Cl.transition,n=bt;try{if(Cl.transition=null,bt=16>e?16:e,null===Kl)var a=!1;else{if(e=Kl,Kl=null,Yl=0,0!==(6&El))throw Error(i(331));var r=El;for(El|=4,Zs=e.current;null!==Zs;){var o=Zs,s=o.child;if(0!==(16&Zs.flags)){var l=o.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Zs=u;null!==Zs;){var d=Zs;switch(d.tag){case 0:case 11:case 15:nl(8,d,o)}var p=d.child;if(null!==p)p.return=d,Zs=p;else for(;null!==Zs;){var f=(d=Zs).sibling,h=d.return;if(il(d),d===u){Zs=null;break}if(null!==f){f.return=h,Zs=f;break}Zs=h}}}var m=o.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Zs=o}}if(0!==(2064&o.subtreeFlags)&&null!==s)s.return=o,Zs=s;else e:for(;null!==Zs;){if(0!==(2048&(o=Zs).flags))switch(o.tag){case 0:case 11:case 15:nl(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,Zs=y;break e}Zs=o.return}}var b=e.current;for(Zs=b;null!==Zs;){var x=(s=Zs).child;if(0!==(2064&s.subtreeFlags)&&null!==x)x.return=s,Zs=x;else e:for(s=b;null!==Zs;){if(0!==(2048&(l=Zs).flags))try{switch(l.tag){case 0:case 11:case 15:al(9,l)}}catch(j){_c(l,l.return,j)}if(l===s){Zs=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Zs=w;break e}Zs=l.return}}if(El=r,Vr(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(rt,e)}catch(j){}a=!0}return a}finally{bt=n,Cl.transition=t}}return!1}function kc(e,t,n){e=Fi(e,t=fs(0,t=cs(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),ac(e,t))}function _c(e,t,n){if(3===e.tag)kc(e,e,n);else for(;null!==t;){if(3===t.tag){kc(t,e,n);break}if(1===t.tag){var a=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof a.componentDidCatch&&(null===Gl||!Gl.has(a))){t=Fi(t,e=hs(t,e=cs(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),ac(t,e));break}}t=t.return}}function Sc(e,t,n){var a=e.pingCache;null!==a&&a.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(Al&n)===n&&(4===Rl||3===Rl&&(130023424&Al)===Al&&500>Je()-Bl?pc(e,0):zl|=n),ac(e,t)}function Nc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Ri(e,t))&&(vt(e,t,n),ac(e,n))}function Cc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Nc(e,n)}function Ec(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,r=e.memoizedState;null!==r&&(n=r.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(i(314))}null!==a&&a.delete(t),Nc(e,n)}function Tc(e,t){return $e(e,t)}function Pc(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ac(e,t,n,a){return new Pc(e,t,n,a)}function Oc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Lc(e,t){var n=e.alternate;return null===n?((n=Ac(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Rc(e,t,n,a,r,o){var s=2;if(a=e,"function"===typeof e)Oc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case k:return Dc(n.children,r,o,t);case _:s=8,r|=8;break;case S:return(e=Ac(12,n,t,2|r)).elementType=S,e.lanes=o,e;case T:return(e=Ac(13,n,t,r)).elementType=T,e.lanes=o,e;case P:return(e=Ac(19,n,t,r)).elementType=P,e.lanes=o,e;case L:return Ic(n,r,o,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case N:s=10;break e;case C:s=9;break e;case E:s=11;break e;case A:s=14;break e;case O:s=16,a=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Ac(s,n,t,r)).elementType=e,t.type=a,t.lanes=o,t}function Dc(e,t,n,a){return(e=Ac(7,e,a,t)).lanes=n,e}function Ic(e,t,n,a){return(e=Ac(22,e,a,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function Mc(e,t,n){return(e=Ac(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Ac(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fc(e,t,n,a,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=a,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Uc(e,t,n,a,r,i,o,s,l){return e=new Fc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Ac(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ii(i),e}function Bc(e){if(!e)return Cr;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Or(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Or(n))return Dr(e,n,t)}return t}function Vc(e,t,n,a,r,i,o,s,l){return(e=Uc(n,a,!0,e,0,i,0,s,l)).context=Bc(null),n=e.current,(i=zi(a=ec(),r=tc(n))).callback=void 0!==t&&null!==t?t:null,Fi(n,i,r),e.current.lanes=r,vt(e,r,a),ac(e,a),e}function qc(e,t,n,a){var r=t.current,i=ec(),o=tc(r);return n=Bc(n),null===t.context?t.context=n:t.pendingContext=n,(t=zi(i,o)).payload={element:e},null!==(a=void 0===a?null:a)&&(t.callback=a),null!==(e=Fi(r,t,o))&&(nc(e,r,o,i),Ui(e,r,o)),o}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gc(e,t){Wc(e,t),(e=e.alternate)&&Wc(e,t)}kl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Tr.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),fi();break;case 5:Ji(t);break;case 1:Or(t.type)&&Ir(t);break;case 4:Yi(t,t.stateNode.containerInfo);break;case 10:var a=t.type._context,r=t.memoizedProps.value;Nr(ji,a._currentValue),a._currentValue=r;break;case 13:if(null!==(a=t.memoizedState))return null!==a.dehydrated?(Nr(Xi,1&Xi.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ms(e,t,n):(Nr(Xi,1&Xi.current),null!==(e=Hs(e,t,n))?e.sibling:null);Nr(Xi,1&Xi.current);break;case 19:if(a=0!==(n&t.childLanes),0!==(128&e.flags)){if(a)return Vs(e,t,n);t.flags|=128}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),Nr(Xi,Xi.current),a)break;return null;case 22:case 23:return t.lanes=0,_s(e,t,n)}return Hs(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,ri&&0!==(1048576&t.flags)&&Xr(t,Gr,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;qs(e,t),e=t.pendingProps;var r=Ar(t,Er.current);Ti(t,n),r=go(null,t,a,e,r,n);var o=vo();return t.flags|=1,"object"===typeof r&&null!==r&&"function"===typeof r.render&&void 0===r.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Or(a)?(o=!0,Ir(t)):o=!1,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,Ii(t),r.updater=rs,t.stateNode=r,r._reactInternals=t,ls(t,a,e,n),t=Es(null,t,a,!0,o,n)):(t.tag=0,ri&&o&&ei(t),xs(null,t,r,n),t=t.child),t;case 16:a=t.elementType;e:{switch(qs(e,t),e=t.pendingProps,a=(r=a._init)(a._payload),t.type=a,r=t.tag=function(e){if("function"===typeof e)return Oc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===E)return 11;if(e===A)return 14}return 2}(a),e=ns(a,e),r){case 0:t=Ns(null,t,a,e,n);break e;case 1:t=Cs(null,t,a,e,n);break e;case 11:t=ws(null,t,a,e,n);break e;case 14:t=js(null,t,a,ns(a.type,e),n);break e}throw Error(i(306,a,""))}return t;case 0:return a=t.type,r=t.pendingProps,Ns(e,t,a,r=t.elementType===a?r:ns(a,r),n);case 1:return a=t.type,r=t.pendingProps,Cs(e,t,a,r=t.elementType===a?r:ns(a,r),n);case 3:e:{if(Ts(t),null===e)throw Error(i(387));a=t.pendingProps,r=(o=t.memoizedState).element,Mi(e,t),Vi(t,a,null,n);var s=t.memoizedState;if(a=s.element,o.isDehydrated){if(o={element:a,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Ps(e,t,a,n,r=cs(Error(i(423)),t));break e}if(a!==r){t=Ps(e,t,a,n,r=cs(Error(i(424)),t));break e}for(ai=cr(t.stateNode.containerInfo.firstChild),ni=t,ri=!0,ii=null,n=wi(t,null,a,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fi(),a===r){t=Hs(e,t,n);break e}xs(e,t,a,n)}t=t.child}return t;case 5:return Ji(t),null===e&&ci(t),a=t.type,r=t.pendingProps,o=null!==e?e.memoizedProps:null,s=r.children,nr(a,r)?s=null:null!==o&&nr(a,o)&&(t.flags|=32),Ss(e,t),xs(e,t,s,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Ms(e,t,n);case 4:return Yi(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=xi(t,null,a,n):xs(e,t,a,n),t.child;case 11:return a=t.type,r=t.pendingProps,ws(e,t,a,r=t.elementType===a?r:ns(a,r),n);case 7:return xs(e,t,t.pendingProps,n),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(a=t.type._context,r=t.pendingProps,o=t.memoizedProps,s=r.value,Nr(ji,a._currentValue),a._currentValue=s,null!==o)if(sa(o.value,s)){if(o.children===r.children&&!Tr.current){t=Hs(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var l=o.dependencies;if(null!==l){s=o.child;for(var c=l.firstContext;null!==c;){if(c.context===a){if(1===o.tag){(c=zi(-1,n&-n)).tag=2;var u=o.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,null!==(c=o.alternate)&&(c.lanes|=n),Ei(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===o.tag)s=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ei(s,n,t),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===t){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}xs(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,a=t.pendingProps.children,Ti(t,n),a=a(r=Pi(r)),t.flags|=1,xs(e,t,a,n),t.child;case 14:return r=ns(a=t.type,t.pendingProps),js(e,t,a,r=ns(a.type,r),n);case 15:return ks(e,t,t.type,t.pendingProps,n);case 17:return a=t.type,r=t.pendingProps,r=t.elementType===a?r:ns(a,r),qs(e,t),t.tag=1,Or(a)?(e=!0,Ir(t)):e=!1,Ti(t,n),os(t,a,r),ls(t,a,r,n),Es(null,t,a,!0,e,n);case 19:return Vs(e,t,n);case 22:return _s(e,t,n)}throw Error(i(156,t.tag))};var $c="function"===typeof reportError?reportError:function(e){console.error(e)};function Kc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zc(){}function Xc(e,t,n,a,r){var i=n._reactRootContainer;if(i){var o=i;if("function"===typeof r){var s=r;r=function(){var e=Hc(o);s.call(e)}}qc(t,o,e,r)}else o=function(e,t,n,a,r){if(r){if("function"===typeof a){var i=a;a=function(){var e=Hc(o);i.call(e)}}var o=Vc(t,a,e,0,null,!1,0,"",Zc);return e._reactRootContainer=o,e[hr]=o.current,Va(8===e.nodeType?e.parentNode:e),uc(),o}for(;r=e.lastChild;)e.removeChild(r);if("function"===typeof a){var s=a;a=function(){var e=Hc(l);s.call(e)}}var l=Uc(e,0,!1,null,0,!1,0,"",Zc);return e._reactRootContainer=l,e[hr]=l.current,Va(8===e.nodeType?e.parentNode:e),uc(function(){qc(t,l,n,a)}),l}(n,t,e,r,a);return Hc(o)}Yc.prototype.render=Kc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));qc(e,t,null,null)},Yc.prototype.unmount=Kc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc(function(){qc(null,e,null,null)}),t[hr]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&0!==t&&t<Lt[n].priority;n++);Lt.splice(n,0,e),0===n&&Mt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ac(t,Je()),0===(6&El)&&(Vl=Je()+500,Vr()))}break;case 13:uc(function(){var t=Ri(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}}),Gc(e,1)}},jt=function(e){if(13===e.tag){var t=Ri(e,134217728);if(null!==t)nc(t,e,134217728,ec());Gc(e,134217728)}},kt=function(e){if(13===e.tag){var t=tc(e),n=Ri(e,t);if(null!==n)nc(n,e,t,ec());Gc(e,t)}},_t=function(){return bt},St=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},je=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var r=wr(a);if(!r)throw Error(i(90));$(a),Z(a,r)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ee=cc,Te=uc;var eu={usingClientEntryPoint:!1,Events:[br,xr,wr,Ne,Ce,cc]},tu={findFiberByHostInstance:yr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!au.isDisabled&&au.supportsFiber)try{rt=au.inject(nu),it=au}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qc(t))throw Error(i(200));return function(e,t,n){var a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:j,key:null==a?null:""+a,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Qc(e))throw Error(i(299));var n=!1,a="",r=$c;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onRecoverableError&&(r=t.onRecoverableError)),t=Uc(e,1,!1,null,0,n,0,a,r),e[hr]=t.current,Va(8===e.nodeType?e.parentNode:e),new Kc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Jc(t))throw Error(i(200));return Xc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qc(e))throw Error(i(405));var a=null!=n&&n.hydratedSources||null,r=!1,o="",s=$c;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Vc(t,null,e,1,null!=n?n:null,r,0,o,s),e[hr]=t.current,Va(e),a)for(e=0;e<a.length;e++)r=(r=(n=a[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new Yc(t)},t.render=function(e,t,n){if(!Jc(t))throw Error(i(200));return Xc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(i(40));return!!e._reactRootContainer&&(uc(function(){Xc(null,null,e,!1,function(){e._reactRootContainer=null,e[hr]=null})}),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,a){if(!Jc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Xc(e,t,n,!1,a)},t.version="18.3.1-next-f1338f8080-20240426"},3216:(e,t,n)=>{"use strict";var a;n.d(t,{$P:()=>f,BV:()=>I,Ix:()=>D,V8:()=>L,Zp:()=>v,g:()=>y,jb:()=>c,qh:()=>R,x$:()=>b,zy:()=>m});var r=n(5043),i=n(1387);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},o.apply(this,arguments)}const s=r.createContext(null);const l=r.createContext(null);const c=r.createContext(null);const u=r.createContext(null);const d=r.createContext({outlet:null,matches:[],isDataRoute:!1});const p=r.createContext(null);function f(e,t){let{relative:n}=void 0===t?{}:t;h()||(0,i.Oi)(!1);let{basename:a,navigator:o}=r.useContext(c),{hash:s,pathname:l,search:u}=b(e,{relative:n}),d=l;return"/"!==a&&(d="/"===l?a:(0,i.HS)([a,l])),o.createHref({pathname:d,search:u,hash:s})}function h(){return null!=r.useContext(u)}function m(){return h()||(0,i.Oi)(!1),r.useContext(u).location}function g(e){r.useContext(c).static||r.useLayoutEffect(e)}function v(){let{isDataRoute:e}=r.useContext(d);return e?function(){let{router:e}=E(N.UseNavigateStable),t=P(C.UseNavigateStable),n=r.useRef(!1);return g(()=>{n.current=!0}),r.useCallback(function(a,r){void 0===r&&(r={}),n.current&&("number"===typeof a?e.navigate(a):e.navigate(a,o({fromRouteId:t},r)))},[e,t])}():function(){h()||(0,i.Oi)(!1);let e=r.useContext(s),{basename:t,future:n,navigator:a}=r.useContext(c),{matches:o}=r.useContext(d),{pathname:l}=m(),u=JSON.stringify((0,i.yD)(o,n.v7_relativeSplatPath)),p=r.useRef(!1);return g(()=>{p.current=!0}),r.useCallback(function(n,r){if(void 0===r&&(r={}),!p.current)return;if("number"===typeof n)return void a.go(n);let o=(0,i.Gh)(n,JSON.parse(u),l,"path"===r.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:(0,i.HS)([t,o.pathname])),(r.replace?a.replace:a.push)(o,r.state,r)},[t,a,u,l,e])}()}function y(){let{matches:e}=r.useContext(d),t=e[e.length-1];return t?t.params:{}}function b(e,t){let{relative:n}=void 0===t?{}:t,{future:a}=r.useContext(c),{matches:o}=r.useContext(d),{pathname:s}=m(),l=JSON.stringify((0,i.yD)(o,a.v7_relativeSplatPath));return r.useMemo(()=>(0,i.Gh)(e,JSON.parse(l),s,"path"===n),[e,l,s,n])}function x(e,t,n,a){h()||(0,i.Oi)(!1);let{navigator:s}=r.useContext(c),{matches:l}=r.useContext(d),p=l[l.length-1],f=p?p.params:{},g=(p&&p.pathname,p?p.pathnameBase:"/");p&&p.route;let v,y=m();if(t){var b;let e="string"===typeof t?(0,i.Rr)(t):t;"/"===g||(null==(b=e.pathname)?void 0:b.startsWith(g))||(0,i.Oi)(!1),v=e}else v=y;let x=v.pathname||"/",w=x;if("/"!==g){let e=g.replace(/^\//,"").split("/");w="/"+x.replace(/^\//,"").split("/").slice(e.length).join("/")}let j=(0,i.ue)(e,{pathname:w});let k=S(j&&j.map(e=>Object.assign({},e,{params:Object.assign({},f,e.params),pathname:(0,i.HS)([g,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?g:(0,i.HS)([g,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),l,n,a);return t&&k?r.createElement(u.Provider,{value:{location:o({pathname:"/",search:"",hash:"",state:null,key:"default"},v),navigationType:i.rc.Pop}},k):k}function w(){let e=function(){var e;let t=r.useContext(p),n=T(C.UseRouteError),a=P(C.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[a]}(),t=(0,i.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:a};return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:o},n):null,null)}const j=r.createElement(w,null);class k extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?r.createElement(d.Provider,{value:this.props.routeContext},r.createElement(p.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function _(e){let{routeContext:t,match:n,children:a}=e,i=r.useContext(s);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(d.Provider,{value:t},a)}function S(e,t,n,a){var o;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===a&&(a=null),null==e){var s;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(s=a)&&s.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let l=e,c=null==(o=n)?void 0:o.errors;if(null!=c){let e=l.findIndex(e=>e.route.id&&void 0!==(null==c?void 0:c[e.route.id]));e>=0||(0,i.Oi)(!1),l=l.slice(0,Math.min(l.length,e+1))}let u=!1,d=-1;if(n&&a&&a.v7_partialHydration)for(let r=0;r<l.length;r++){let e=l[r];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(d=r),e.route.id){let{loaderData:t,errors:a}=n,r=e.route.loader&&void 0===t[e.route.id]&&(!a||void 0===a[e.route.id]);if(e.route.lazy||r){u=!0,l=d>=0?l.slice(0,d+1):[l[0]];break}}}return l.reduceRight((e,a,i)=>{let o,s=!1,p=null,f=null;var h;n&&(o=c&&a.route.id?c[a.route.id]:void 0,p=a.route.errorElement||j,u&&(d<0&&0===i?(h="route-fallback",!1||A[h]||(A[h]=!0),s=!0,f=null):d===i&&(s=!0,f=a.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,i+1)),g=()=>{let t;return t=o?p:s?f:a.route.Component?r.createElement(a.route.Component,null):a.route.element?a.route.element:e,r.createElement(_,{match:a,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(a.route.ErrorBoundary||a.route.errorElement||0===i)?r.createElement(k,{location:n.location,revalidation:n.revalidation,component:p,error:o,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var N=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(N||{}),C=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(C||{});function E(e){let t=r.useContext(s);return t||(0,i.Oi)(!1),t}function T(e){let t=r.useContext(l);return t||(0,i.Oi)(!1),t}function P(e){let t=function(){let e=r.useContext(d);return e||(0,i.Oi)(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||(0,i.Oi)(!1),n.route.id}const A={};const O=(e,t,n)=>{};function L(e,t){void 0===(null==e?void 0:e.v7_startTransition)&&O("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),void 0!==(null==e?void 0:e.v7_relativeSplatPath)||t&&void 0!==t.v7_relativeSplatPath||O("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(void 0===t.v7_fetcherPersist&&O("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===t.v7_normalizeFormMethod&&O("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),void 0===t.v7_partialHydration&&O("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===t.v7_skipActionErrorRevalidation&&O("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}(a||(a=n.t(r,2))).startTransition;function R(e){(0,i.Oi)(!1)}function D(e){let{basename:t="/",children:n=null,location:a,navigationType:s=i.rc.Pop,navigator:l,static:d=!1,future:p}=e;h()&&(0,i.Oi)(!1);let f=t.replace(/^\/*/,"/"),m=r.useMemo(()=>({basename:f,navigator:l,static:d,future:o({v7_relativeSplatPath:!1},p)}),[f,p,l,d]);"string"===typeof a&&(a=(0,i.Rr)(a));let{pathname:g="/",search:v="",hash:y="",state:b=null,key:x="default"}=a,w=r.useMemo(()=>{let e=(0,i.pb)(g,f);return null==e?null:{location:{pathname:e,search:v,hash:y,state:b,key:x},navigationType:s}},[f,g,v,y,b,x,s]);return null==w?null:r.createElement(c.Provider,{value:m},r.createElement(u.Provider,{children:n,value:w}))}function I(e){let{children:t,location:n}=e;return x(M(t),n)}new Promise(()=>{});r.Component;function M(e,t){void 0===t&&(t=[]);let n=[];return r.Children.forEach(e,(e,a)=>{if(!r.isValidElement(e))return;let o=[...t,a];if(e.type===r.Fragment)return void n.push.apply(n,M(e.props.children,o));e.type!==R&&(0,i.Oi)(!1),e.props.index&&e.props.children&&(0,i.Oi)(!1);let s={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=M(e.props.children,o)),n.push(s)}),n}},3218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3393:function(e,t,n){!function(e,t){"use strict";function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function a(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?n(Object(a),!0).forEach(function(t){i(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}function s(e,t){if(null==e)return{};var n,a,r=o(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function l(e,t){return c(e)||u(e,t)||d(e,t)||f()}function c(e){if(Array.isArray(e))return e}function u(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var a,r,i=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);o=!0);}catch(l){s=!0,r=l}finally{try{o||null==n.return||n.return()}finally{if(s)throw r}}return i}}function d(e,t){if(e){if("string"===typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m,g,v,y,b={exports:{}};function x(){return g?m:(g=1,m="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function w(){if(y)return v;y=1;var e=x();function t(){}function n(){}return n.resetWarningCache=t,v=function(){function a(t,n,a,r,i,o){if(o!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function r(){return a}a.isRequired=a;var i={array:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:r,element:a,elementType:a,instanceOf:r,node:a,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}b.exports=w()();var j=h(b.exports),k=function(e,n,a){var r=!!a,i=t.useRef(a);t.useEffect(function(){i.current=a},[a]),t.useEffect(function(){if(!r||!e)return function(){};var t=function(){i.current&&i.current.apply(i,arguments)};return e.on(n,t),function(){e.off(n,t)}},[r,n,e,i])},_=function(e){var n=t.useRef(e);return t.useEffect(function(){n.current=e},[e]),n.current},S=function(e){return null!==e&&"object"===r(e)},N=function(e){return S(e)&&"function"===typeof e.then},C=function(e){return S(e)&&"function"===typeof e.elements&&"function"===typeof e.createToken&&"function"===typeof e.createPaymentMethod&&"function"===typeof e.confirmCardPayment},E="[object Object]",T=function e(t,n){if(!S(t)||!S(n))return t===n;var a=Array.isArray(t);if(a!==Array.isArray(n))return!1;var r=Object.prototype.toString.call(t)===E;if(r!==(Object.prototype.toString.call(n)===E))return!1;if(!r&&!a)return t===n;var i=Object.keys(t),o=Object.keys(n);if(i.length!==o.length)return!1;for(var s={},l=0;l<i.length;l+=1)s[i[l]]=!0;for(var c=0;c<o.length;c+=1)s[o[c]]=!0;var u=Object.keys(s);if(u.length!==i.length)return!1;var d=t,p=n,f=function(t){return e(d[t],p[t])};return u.every(f)},P=function(e,t,n){return S(e)?Object.keys(e).reduce(function(r,o){var s=!S(t)||!T(e[o],t[o]);return n.includes(o)?(s&&console.warn("Unsupported prop change: options.".concat(o," is not a mutable property.")),r):s?a(a({},r||{}),{},i({},o,e[o])):r},null):null},A="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A;if(null===e||C(e))return e;throw new Error(t)},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A;if(N(e))return{tag:"async",stripePromise:Promise.resolve(e).then(function(e){return O(e,t)})};var n=O(e,t);return null===n?{tag:"empty"}:{tag:"sync",stripe:n}},R=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"3.8.0"}),e.registerAppInfo({name:"react-stripe-js",version:"3.8.0",url:"https://stripe.com/docs/stripe-js/react"}))},D=t.createContext(null);D.displayName="ElementsContext";var I=function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},M=function(e){var n=e.stripe,a=e.options,r=e.children,i=t.useMemo(function(){return L(n)},[n]),o=l(t.useState(function(){return{stripe:"sync"===i.tag?i.stripe:null,elements:"sync"===i.tag?i.stripe.elements(a):null}}),2),s=o[0],c=o[1];t.useEffect(function(){var e=!0,t=function(e){c(function(t){return t.stripe?t:{stripe:e,elements:e.elements(a)}})};return"async"!==i.tag||s.stripe?"sync"!==i.tag||s.stripe||t(i.stripe):i.stripePromise.then(function(n){n&&e&&t(n)}),function(){e=!1}},[i,s,a]);var u=_(n);t.useEffect(function(){null!==u&&u!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[u,n]);var d=_(a);return t.useEffect(function(){if(s.elements){var e=P(a,d,["clientSecret","fonts"]);e&&s.elements.update(e)}},[a,d,s.elements]),t.useEffect(function(){R(s.stripe)},[s.stripe]),t.createElement(D.Provider,{value:s},r)};M.propTypes={stripe:j.any,options:j.object};var z=function(e){var n=t.useContext(D);return I(n,e)},F=function(){return z("calls useElements()").elements},U=function(e){return(0,e.children)(z("mounts <ElementsConsumer>"))};U.propTypes={children:j.func.isRequired};var B=["on","session"],V=t.createContext(null);V.displayName="CheckoutSdkContext";var q=function(e,t){if(!e)throw new Error("Could not find CheckoutProvider context; You need to wrap the part of your app that ".concat(t," in an <CheckoutProvider> provider."));return e},H=t.createContext(null);H.displayName="CheckoutContext";var W=function(e,t){if(!e)return null;e.on,e.session;var n=s(e,B);return t?Object.assign(t,n):Object.assign(e.session(),n)},G="Invalid prop `stripe` supplied to `CheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",$=function(e){var n=e.stripe,a=e.options,r=e.children,i=t.useMemo(function(){return L(n,G)},[n]),o=l(t.useState(null),2),s=o[0],c=o[1],u=l(t.useState(function(){return{stripe:"sync"===i.tag?i.stripe:null,checkoutSdk:null}}),2),d=u[0],p=u[1],f=function(e,t){p(function(n){return n.stripe&&n.checkoutSdk?n:{stripe:e,checkoutSdk:t}})},h=t.useRef(!1);t.useEffect(function(){var e=!0;return"async"!==i.tag||d.stripe?"sync"===i.tag&&i.stripe&&!h.current&&(h.current=!0,i.stripe.initCheckout(a).then(function(e){e&&(f(i.stripe,e),e.on("change",c))})):i.stripePromise.then(function(t){t&&e&&!h.current&&(h.current=!0,t.initCheckout(a).then(function(e){e&&(f(t,e),e.on("change",c))}))}),function(){e=!1}},[i,d,a,c]);var m=_(n);t.useEffect(function(){null!==m&&m!==n&&console.warn("Unsupported prop change on CheckoutProvider: You cannot change the `stripe` prop after setting it.")},[m,n]);var g=_(a),v=_(d.checkoutSdk);t.useEffect(function(){var e,t;if(d.checkoutSdk){var n=null===g||void 0===g||null===(e=g.elementsOptions)||void 0===e?void 0:e.appearance,r=null===a||void 0===a||null===(t=a.elementsOptions)||void 0===t?void 0:t.appearance,i=!T(r,n),o=!v&&d.checkoutSdk;r&&(i||o)&&d.checkoutSdk.changeAppearance(r)}},[a,g,d.checkoutSdk,v]),t.useEffect(function(){R(d.stripe)},[d.stripe]);var y=t.useMemo(function(){return W(d.checkoutSdk,s)},[d.checkoutSdk,s]);return d.checkoutSdk?t.createElement(V.Provider,{value:d},t.createElement(H.Provider,{value:y},r)):null};$.propTypes={stripe:j.any,options:j.shape({fetchClientSecret:j.func.isRequired,elementsOptions:j.object}).isRequired};var K=function(e){var n=t.useContext(V);return q(n,e)},Y=function(e){var n=t.useContext(V),a=t.useContext(D);if(n&&a)throw new Error("You cannot wrap the part of your app that ".concat(e," in both <CheckoutProvider> and <Elements> providers."));return n?q(n,e):I(a,e)},Q=function(){K("calls useCheckout()");var e=t.useContext(H);if(!e)throw new Error("Could not find Checkout Context; You need to wrap the part of your app that calls useCheckout() in an <CheckoutProvider> provider.");return e},J=["mode"],Z=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},X=function(e,n){var a="".concat(Z(e),"Element"),r=n?function(e){Y("mounts <".concat(a,">"));var n=e.id,r=e.className;return t.createElement("div",{id:n,className:r})}:function(n){var r,i=n.id,o=n.className,c=n.options,u=void 0===c?{}:c,d=n.onBlur,p=n.onFocus,f=n.onReady,h=n.onChange,m=n.onEscape,g=n.onClick,v=n.onLoadError,y=n.onLoaderStart,b=n.onNetworksChange,x=n.onConfirm,w=n.onCancel,j=n.onShippingAddressChange,S=n.onShippingRateChange,N=Y("mounts <".concat(a,">")),C="elements"in N?N.elements:null,E="checkoutSdk"in N?N.checkoutSdk:null,T=l(t.useState(null),2),A=T[0],O=T[1],L=t.useRef(null),R=t.useRef(null);k(A,"blur",d),k(A,"focus",p),k(A,"escape",m),k(A,"click",g),k(A,"loaderror",v),k(A,"loaderstart",y),k(A,"networkschange",b),k(A,"confirm",x),k(A,"cancel",w),k(A,"shippingaddresschange",j),k(A,"shippingratechange",S),k(A,"change",h),f&&(r="expressCheckout"===e?f:function(){f(A)}),k(A,"ready",r),t.useLayoutEffect(function(){if(null===L.current&&null!==R.current&&(C||E)){var t=null;if(E)switch(e){case"payment":t=E.createPaymentElement(u);break;case"address":if(!("mode"in u))throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");var n=u.mode,r=s(u,J);if("shipping"===n)t=E.createShippingAddressElement(r);else{if("billing"!==n)throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.");t=E.createBillingAddressElement(r)}break;case"expressCheckout":t=E.createExpressCheckoutElement(u);break;case"currencySelector":t=E.createCurrencySelectorElement();break;case"taxId":t=E.createTaxIdElement(u);break;default:throw new Error("Invalid Element type ".concat(a,". You must use either the <PaymentElement />, <AddressElement options={{mode: 'shipping'}} />, <AddressElement options={{mode: 'billing'}} />, or <ExpressCheckoutElement />."))}else C&&(t=C.create(e,u));L.current=t,O(t),t&&t.mount(R.current)}},[C,E,u]);var D=_(u);return t.useEffect(function(){if(L.current){var e=P(u,D,["paymentRequest"]);e&&"update"in L.current&&L.current.update(e)}},[u,D]),t.useLayoutEffect(function(){return function(){if(L.current&&"function"===typeof L.current.destroy)try{L.current.destroy(),L.current=null}catch(e){}}},[]),t.createElement("div",{id:i,className:o,ref:R})};return r.propTypes={id:j.string,className:j.string,onChange:j.func,onBlur:j.func,onFocus:j.func,onReady:j.func,onEscape:j.func,onClick:j.func,onLoadError:j.func,onLoaderStart:j.func,onNetworksChange:j.func,onConfirm:j.func,onCancel:j.func,onShippingAddressChange:j.func,onShippingRateChange:j.func,options:j.object},r.displayName=a,r.__elementType=e,r},ee="undefined"===typeof window,te=t.createContext(null);te.displayName="EmbeddedCheckoutProviderContext";var ne=function(){var e=t.useContext(te);if(!e)throw new Error("<EmbeddedCheckout> must be used within <EmbeddedCheckoutProvider>");return e},ae="Invalid prop `stripe` supplied to `EmbeddedCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",re=function(e){var n=e.stripe,a=e.options,r=e.children,i=t.useMemo(function(){return L(n,ae)},[n]),o=t.useRef(null),s=t.useRef(null),c=l(t.useState({embeddedCheckout:null}),2),u=c[0],d=c[1];t.useEffect(function(){if(!s.current&&!o.current){var e=function(e){s.current||o.current||(s.current=e,o.current=s.current.initEmbeddedCheckout(a).then(function(e){d({embeddedCheckout:e})}))};"async"!==i.tag||s.current||!a.clientSecret&&!a.fetchClientSecret?"sync"!==i.tag||s.current||!a.clientSecret&&!a.fetchClientSecret||e(i.stripe):i.stripePromise.then(function(t){t&&e(t)})}},[i,a,u,s]),t.useEffect(function(){return function(){u.embeddedCheckout?(o.current=null,u.embeddedCheckout.destroy()):o.current&&o.current.then(function(){o.current=null,u.embeddedCheckout&&u.embeddedCheckout.destroy()})}},[u.embeddedCheckout]),t.useEffect(function(){R(s)},[s]);var p=_(n);t.useEffect(function(){null!==p&&p!==n&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it.")},[p,n]);var f=_(a);return t.useEffect(function(){null!=f&&(null!=a?(void 0===a.clientSecret&&void 0===a.fetchClientSecret&&console.warn("Invalid props passed to EmbeddedCheckoutProvider: You must provide one of either `options.fetchClientSecret` or `options.clientSecret`."),null!=f.clientSecret&&a.clientSecret!==f.clientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the client secret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=f.fetchClientSecret&&a.fetchClientSecret!==f.fetchClientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change fetchClientSecret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=f.onComplete&&a.onComplete!==f.onComplete&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it."),null!=f.onShippingDetailsChange&&a.onShippingDetailsChange!==f.onShippingDetailsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onShippingDetailsChange option after setting it."),null!=f.onLineItemsChange&&a.onLineItemsChange!==f.onLineItemsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onLineItemsChange option after setting it.")):console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them."))},[f,a]),t.createElement(te.Provider,{value:u},r)},ie=function(e){var n=e.id,a=e.className,r=ne().embeddedCheckout,i=t.useRef(!1),o=t.useRef(null);return t.useLayoutEffect(function(){return!i.current&&r&&null!==o.current&&(r.mount(o.current),i.current=!0),function(){if(i.current&&r)try{r.unmount(),i.current=!1}catch(e){}}},[r]),t.createElement("div",{ref:o,id:n,className:a})},oe=function(e){var n=e.id,a=e.className;return ne(),t.createElement("div",{id:n,className:a})},se=ee?oe:ie,le=function(){return Y("calls useStripe()").stripe},ce=X("auBankAccount",ee),ue=X("card",ee),de=X("cardNumber",ee),pe=X("cardExpiry",ee),fe=X("cardCvc",ee),he=X("fpxBank",ee),me=X("iban",ee),ge=X("idealBank",ee),ve=X("p24Bank",ee),ye=X("epsBank",ee),be=X("payment",ee),xe=X("expressCheckout",ee),we=X("currencySelector",ee),je=X("paymentRequestButton",ee),ke=X("linkAuthentication",ee),_e=X("address",ee),Se=X("shippingAddress",ee),Ne=X("paymentMethodMessaging",ee),Ce=X("affirmMessage",ee),Ee=X("afterpayClearpayMessage",ee),Te=X("taxId",ee);e.AddressElement=_e,e.AffirmMessageElement=Ce,e.AfterpayClearpayMessageElement=Ee,e.AuBankAccountElement=ce,e.CardCvcElement=fe,e.CardElement=ue,e.CardExpiryElement=pe,e.CardNumberElement=de,e.CheckoutProvider=$,e.CurrencySelectorElement=we,e.Elements=M,e.ElementsConsumer=U,e.EmbeddedCheckout=se,e.EmbeddedCheckoutProvider=re,e.EpsBankElement=ye,e.ExpressCheckoutElement=xe,e.FpxBankElement=he,e.IbanElement=me,e.IdealBankElement=ge,e.LinkAuthenticationElement=ke,e.P24BankElement=ve,e.PaymentElement=be,e.PaymentMethodMessagingElement=Ne,e.PaymentRequestButtonElement=je,e.ShippingAddressElement=Se,e.TaxIdElement=Te,e.useCheckout=Q,e.useElements=F,e.useStripe=le}(t,n(5043))},3441:(e,t,n)=>{"use strict";n.d(t,{k5:()=>f});var a=n(5043),r={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=a.createContext&&a.createContext(r),o=["attr","size","title"];function s(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},l.apply(this,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){return e&&e.map((e,t)=>a.createElement(e.tag,u({key:t},e.attr),p(e.child)))}function f(e){return t=>a.createElement(h,l({attr:u({},e.attr)},t),p(e.child))}function h(e){var t=t=>{var n,{attr:r,size:i,title:c}=e,d=s(e,o),p=i||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),a.createElement("svg",l({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,d,{className:n,style:u(u({color:e.color||t.color},t.style),e.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),c&&a.createElement("title",null,c),e.children)};return void 0!==i?a.createElement(i.Consumer,null,e=>t(e)):t(r)}},3763:(e,t,n)=>{"use strict";e.exports=n(4983)},3986:(e,t,n)=>{"use strict";function a(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}n.d(t,{A:()=>a})},4172:()=>{},4202:(e,t)=>{"use strict";var n=Symbol.for("react.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var x=b.prototype=new y;x.constructor=b,m(x,v.prototype),x.isPureReactComponent=!0;var w=Array.isArray,j=Object.prototype.hasOwnProperty,k={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,a){var r,i={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)j.call(t,r)&&!_.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=a;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:n,type:e,key:o,ref:s,props:i,_owner:k.current}}function N(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function E(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function T(e,t,r,i,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case a:l=!0}}if(l)return o=o(l=e),e=""===i?"."+E(l,0):i,w(o)?(r="",null!=e&&(r=e.replace(C,"$&/")+"/"),T(o,t,r,"",function(e){return e})):null!=o&&(N(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,r+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(C,"$&/")+"/")+e)),t.push(o)),1;if(l=0,i=""===i?".":i+":",w(e))for(var c=0;c<e.length;c++){var u=i+E(s=e[c],c);l+=T(s,t,r,u,o)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=T(s=s.value,t,r,u=i+E(s,c++),o);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var a=[],r=0;return T(e,a,"","",function(e){return t.call(n,e,r++)}),a}function A(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O={current:null},L={transition:null},R={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:L,ReactCurrentOwner:k};function D(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!N(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=r,t.Profiler=o,t.PureComponent=b,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.act=D,t.cloneElement=function(e,t,a){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=m({},e.props),i=e.key,o=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,s=k.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)j.call(t,c)&&!_.hasOwnProperty(c)&&(r[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)r.children=a;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:n,type:e.type,key:i,ref:o,props:r,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=N,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},t.unstable_act=D,t.useCallback=function(e,t){return O.current.useCallback(e,t)},t.useContext=function(e){return O.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return O.current.useDeferredValue(e)},t.useEffect=function(e,t){return O.current.useEffect(e,t)},t.useId=function(){return O.current.useId()},t.useImperativeHandle=function(e,t,n){return O.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return O.current.useMemo(e,t)},t.useReducer=function(e,t,n){return O.current.useReducer(e,t,n)},t.useRef=function(e){return O.current.useRef(e)},t.useState=function(e){return O.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return O.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return O.current.useTransition()},t.version="18.3.1"},4391:(e,t,n)=>{"use strict";var a=n(7950);t.createRoot=a.createRoot,t.hydrateRoot=a.hydrateRoot},4866:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var a=n(5043),r=n(6906),i=n(7521),o=n(9286),s=n(2304),l=n(6753),c=n(7488),u=n(51),d=n(843),p=(n(7064),n(579));const f=e=>{let{isOpen:t,onClose:n,clinicId:f,practitionerEmail:h,practitionerData:m,preSelectedDate:g=null,preSelectedSlot:v=null}=e;const[y,b]=(0,a.useState)(null),[x,w]=(0,a.useState)(!1),[j,k]=(0,a.useState)(null),[_,S]=(0,a.useState)(null),[N,C]=(0,a.useState)(null),[E,T]=(0,a.useState)(null),[P,A]=(0,a.useState)(!1),[O,L]=(0,a.useState)(null),[R,D]=(0,a.useState)(null),[I,M]=(0,a.useState)("initial"),[z,F]=(0,a.useState)(null),[U,B]=(0,a.useState)(!1),[V,q]=(0,a.useState)(!1),[H,W]=(0,a.useState)(!1),[G,$]=(0,a.useState)(null),[K,Y]=(0,a.useState)(""),[Q,J]=(0,a.useState)(!1),Z=(0,a.useRef)(!1),X=()=>{const e=new Date,t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(a)};(0,a.useEffect)(()=>{t&&(Z.current||(Z.current=!0,d.A.initializeTracking()),f||!m||_||(te(m),L(g||X()),v&&D(v)))},[t,f,m]),(0,a.useEffect)(()=>{t&&f&&ee()},[t,f]),(0,a.useEffect)(()=>{if(y&&y.doctors){let e=null;h&&(e=y.doctors.find(e=>e.Email&&e.Email.toLowerCase()===h.toLowerCase()||e.email&&e.email.toLowerCase()===h.toLowerCase()||e.Health_Professional_Email&&e.Health_Professional_Email.toLowerCase()===h.toLowerCase())),!e&&y.doctors.length>0&&(e=y.doctors[0]),e&&(d.A.eventData.doctor_name=e.Full_Name||e.full_name||e.full_Name||"",d.A.sendEvent(),S(e),te(e))}},[y,h,m]),(0,a.useEffect)(()=>{g&&L(g),v&&D(v),_&&(g&&v?(d.A.trackSlotContinued(),B(!1),q(!0)):g&&B(!0))},[g,v,_]),(0,a.useEffect)(()=>{N&&F("initial"===I?N.initial_appointment_fee:N.follow_up_appointment_fee)},[I,N]),(0,a.useEffect)(()=>{if(!t||!_)return;const e=h||(null===m||void 0===m?void 0:m.email)||(null===_||void 0===_?void 0:_.email)||(null===_||void 0===_?void 0:_.Email)||(null===_||void 0===_?void 0:_.Health_Professional_Email);if(!e)return;const n=new Date;(0,u.tk)(e,n.getFullYear(),n.getMonth()).catch(e=>console.error("Error prefetching schedule:",e))},[_,t]);const ee=async()=>{if(!f)return k("Clinic ID is required but was not provided."),void w(!1);w(!0),k(null);try{const e=await l.A.get("/patient/clinics/clinic-details/?id=".concat(f));if(e.data.status){const t=e.data.data[0];b(t)}else k("Failed to fetch clinic details."),c.oR.error("Failed to fetch clinic details.")}catch(e){k("An error occurred while fetching clinic details."),c.oR.error("An error occurred while fetching clinic details.")}finally{w(!1)}},te=async e=>{if(e){S(e),B(!0),L(X()),T(null),A(!1),C(null);try{const t=e.Health_Professional_Id||e.health_professional_id;e.Full_Name;if(!t)return void A(!0);const n=await l.A.get("/patient/doctor/doctor-schedule/?id=".concat(t));n.data.status?(C(n.data.data||{}),A(!1)):(A(!0),C(null))}catch(j){A(!0),C(null)}}},ne=()=>{"Payment Successful"!==d.A.getState().event_name&&d.A.trackModalAbandoned(V?2:1),q(!1),B(!1),S(null),L(null),D(null),C(null),T(null),A(!1),F(null),Y(""),W(!1),$(null),Z.current=!1,d.A.reset(),n()};if(!t)return null;const ae=h||(null===m||void 0===m?void 0:m.email)||(null===_||void 0===_?void 0:_.email)||(null===_||void 0===_?void 0:_.Email)||(null===_||void 0===_?void 0:_.Health_Professional_Email);return(0,p.jsxs)(p.Fragment,{children:[x&&(0,p.jsx)("div",{className:"modal-overlay",onClick:e=>e.target===e.currentTarget&&ne(),children:(0,p.jsx)("div",{className:"modal-content",children:(0,p.jsxs)("div",{className:"loading-container",children:[(0,p.jsx)("div",{className:"loading-spinner"}),(0,p.jsx)("p",{children:"Loading clinic details..."})]})})}),j&&!x&&(0,p.jsx)("div",{className:"modal-overlay",onClick:e=>e.target===e.currentTarget&&ne(),children:(0,p.jsx)("div",{className:"modal-content",children:(0,p.jsxs)("div",{className:"error-container",children:[(0,p.jsx)("p",{className:"error",children:j}),(0,p.jsx)("button",{onClick:ne,className:"close-btn",children:"Close"})]})})}),!x&&!j&&!V&&_&&(U||y&&y.doctors&&y.doctors.length>0)&&(0,p.jsx)("div",{className:"modal-direct-booking-overlay",children:(0,p.jsxs)("div",{className:"modal-direct-booking-modal",children:[(0,p.jsxs)("div",{className:"modal-direct-booking-header",children:[(0,p.jsxs)("div",{className:"modal-direct-booking-title-section",children:[(0,p.jsx)("h2",{className:"modal-direct-booking-title",children:"Book Appointment"}),_&&(0,p.jsxs)("p",{className:"modal-direct-booking-subtitle",children:["Schedule your appointment with"," ",(0,p.jsx)("strong",{children:_.full_Name||_.Full_Name||_.full_name||"Practitioner"})]})]}),(0,p.jsx)("button",{className:"modal-direct-booking-close-button",onClick:ne,"aria-label":"Close",children:(0,p.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,p.jsx)("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,p.jsx)("div",{className:"dbm-progress",children:["Slot Selection","Appointment Details","Payment"].map((e,t)=>{const n=t+1,r=1===n;return(0,p.jsxs)(a.Fragment,{children:[(0,p.jsxs)("div",{className:"dbm-progress-step".concat(r?" dbm-progress-step--active":""),children:[(0,p.jsx)("div",{className:"dbm-progress-circle",children:n}),(0,p.jsx)("span",{className:"dbm-progress-label",children:e})]}),t<2&&(0,p.jsx)("div",{className:"dbm-progress-line"})]},n)})}),(0,p.jsx)("div",{className:"modal-direct-booking-content",children:(0,p.jsxs)("div",{className:"modal-direct-booking-step",children:[!P&&(0,p.jsx)("div",{className:"modal-direct-booking-section",children:N?(0,p.jsx)("div",{className:"dbm-type-toggle-row",children:(0,p.jsxs)("div",{className:"dbm-type-toggle",children:[(0,p.jsxs)("button",{type:"button",className:"dbm-type-btn".concat("initial"===I?" dbm-type-btn--active":""),onClick:()=>{M("initial"),d.A.updateAppointmentType("initial",N.initial_appointment_fee)},children:["Initial ",(0,p.jsxs)("span",{className:"dbm-type-price",children:["\xa3",N.initial_appointment_fee]})]}),(0,p.jsxs)("button",{type:"button",className:"dbm-type-btn".concat("follow_up"===I?" dbm-type-btn--active":""),onClick:()=>{M("follow_up"),d.A.updateAppointmentType("follow_up",N.follow_up_appointment_fee)},children:["Follow-up ",(0,p.jsxs)("span",{className:"dbm-type-price",children:["\xa3",N.follow_up_appointment_fee]})]})]})}):(0,p.jsxs)("div",{className:"modal-direct-booking-schedule-loading",children:[(0,p.jsx)("div",{className:"loading-spinner",style:{width:"24px",height:"24px",borderWidth:"2px"}}),(0,p.jsx)("span",{children:"Loading schedule..."})]})}),(0,p.jsx)("div",{className:"modal-direct-booking-section modal-direct-booking-section--calendar",children:P?(0,p.jsxs)("div",{className:"dbm-no-schedule",children:[(0,p.jsx)("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",children:(0,p.jsx)("path",{d:"M8 2V6M16 2V6M3 10H21M5 4H19C20.1046 4 21 4.89543 21 6V20C21 21.1046 20.1046 22 19 22H5C3.89543 22 3 21.1046 3 20V6C3 4.89543 3.89543 4 5 4Z",stroke:"#9ca3af",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,p.jsx)("h3",{children:"Schedule Not Available"}),(0,p.jsx)("p",{children:"This doctor has not set up their availability yet. You can send a request and they will get back to you."}),(0,p.jsxs)("button",{className:"modal-direct-booking-proceed-button",onClick:()=>J(!0),children:["Request Appointment",(0,p.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",children:(0,p.jsx)("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]}):g&&v?(0,p.jsxs)("div",{className:"dbm-slot-locked",children:[(0,p.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",children:[(0,p.jsx)("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",stroke:"currentColor",strokeWidth:"2"}),(0,p.jsx)("path",{d:"M7 11V7a5 5 0 0 1 10 0v4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),(0,p.jsxs)("span",{children:[(0,p.jsx)("strong",{children:g})," at ",(0,p.jsx)("strong",{children:v})]}),(0,p.jsx)("span",{className:"dbm-slot-locked-badge",children:"Pre-selected"})]}):(0,p.jsx)("div",{className:"modal-direct-booking-date-time-selection",children:ae?(0,p.jsx)(s.A,{availableSlots:null,loadingSlots:!1,onDateSelect:e=>{const t=e instanceof Date?"".concat(e.getFullYear(),"-").concat(String(e.getMonth()+1).padStart(2,"0"),"-").concat(String(e.getDate()).padStart(2,"0")):e;L(t),D(null),Y("")},selectedDate:O||(new Date).toISOString().split("T")[0],selectedSlot:R,doctorEmail:String(ae).trim(),doctor:m||_,onSlotClick:async(e,t)=>{const n=(e=>{const t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(a)})(t);D(e.startTime),L(n),Y(""),d.A.updateSlotSelection(n,e.startTime)}},"calendar-".concat(ae)):(0,p.jsxs)("div",{className:"modal-direct-booking-alert-message",style:{margin:"20px 0",padding:"20px"},children:[(0,p.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",children:(0,p.jsx)("path",{d:"M12 9V13M12 17H12.01M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),"Unable to load calendar: Doctor email not found. Please try again."]})})}),R&&O&&(0,p.jsxs)("div",{className:"modal-direct-booking-slot-selected",children:[(0,p.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:(0,p.jsx)("path",{d:"M20 6L9 17L4 12",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,p.jsxs)("span",{children:["Selected: ",(0,p.jsx)("strong",{children:O})," at ",(0,p.jsx)("strong",{children:R})]})]}),K&&(0,p.jsxs)("div",{className:"modal-direct-booking-alert-message",children:[(0,p.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:(0,p.jsx)("path",{d:"M12 9V13M12 17H12.01M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),K]}),!P&&(0,p.jsx)("div",{className:"modal-direct-booking-step-navigation",children:(0,p.jsxs)("button",{className:"modal-direct-booking-proceed-button",disabled:!R||!I,onClick:()=>{O?R&&O&&_?(d.A.trackSlotContinued(),B(!1),q(!0),Y("")):Y("Please select a date and time slot before proceeding."):Y("Please select a date before proceeding to booking.")},children:["Continue to Booking",(0,p.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",children:(0,p.jsx)("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})})]})})]})}),V&&_&&(0,p.jsx)(r.A,{practitioner:_,selectedDate:O,selectedSlot:R,onClose:ne,appointmentType:I,appointmentFee:z,onAppointmentBooked:e=>{$(e),q(!1),W(!0)},scheduleData:N,doctorEmail:ae}),H&&(0,p.jsx)(i.default,{appointment_id:G,onClose:()=>W(!1)}),(0,p.jsx)(o.A,{isOpen:Q,onClose:()=>J(!1),doctorId:(null===_||void 0===_?void 0:_.Health_Professional_Id)||(null===_||void 0===_?void 0:_.health_professional_id),doctorName:(null===_||void 0===_?void 0:_.full_Name)||(null===_||void 0===_?void 0:_.Full_Name)||(null===_||void 0===_?void 0:_.full_name),doctorEmail:ae})]})}},4941:(e,t,n)=>{"use strict";n.d(t,{q:()=>o,u:()=>s});var a=n(5043),r=n(579);const i=(0,a.createContext)(),o=()=>{const e=(0,a.useContext)(i);if(!e)throw new Error("useChatWidget must be used within a ChatWidgetProvider");return e},s=e=>{let{children:t}=e;const[n,o]=(0,a.useState)(!1),[s,l]=(0,a.useState)(!1);return(0,r.jsx)(i.Provider,{value:{isLarge:n,isOpen:s,openLargeChat:()=>{o(!0),l(!0)},closeChat:()=>{o(!1),l(!1)},openSmallChat:()=>{o(!1),l(!0)}},children:t})}},4983:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,a=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case u:case d:case i:case s:case o:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case r:return t}}}function j(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=a,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=r,t.Profiler=s,t.StrictMode=o,t.Suspense=f,t.isAsyncMode=function(e){return j(e)||w(e)===u},t.isConcurrentMode=j,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===o},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===s||e===o||e===f||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},5043:(e,t,n)=>{"use strict";e.exports=n(4202)},5173:(e,t,n)=>{e.exports=n(1497)()},5475:(e,t,n)=>{"use strict";var a,r;n.d(t,{Kd:()=>h,N_:()=>v,ok:()=>x});var i=n(5043),o=n(7950),s=n(3216),l=n(1387);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},c.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}function d(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let a=e[n];return t.concat(Array.isArray(a)?a.map(e=>[n,e]):[[n,a]])},[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const p=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(w){}new Map;const f=(a||(a=n.t(i,2))).startTransition;(r||(r=n.t(o,2))).flushSync,(a||(a=n.t(i,2))).useId;function h(e){let{basename:t,children:n,future:a,window:r}=e,o=i.useRef();null==o.current&&(o.current=(0,l.zR)({window:r,v5Compat:!0}));let c=o.current,[u,d]=i.useState({action:c.action,location:c.location}),{v7_startTransition:p}=a||{},h=i.useCallback(e=>{p&&f?f(()=>d(e)):d(e)},[d,p]);return i.useLayoutEffect(()=>c.listen(h),[c,h]),i.useEffect(()=>(0,s.V8)(a),[a]),i.createElement(s.Ix,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:c,future:a})}const m="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,g=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,v=i.forwardRef(function(e,t){let n,{onClick:a,relative:r,reloadDocument:o,replace:d,state:f,target:h,to:v,preventScrollReset:y,viewTransition:b}=e,x=u(e,p),{basename:j}=i.useContext(s.jb),k=!1;if("string"===typeof v&&g.test(v)&&(n=v,m))try{let e=new URL(window.location.href),t=v.startsWith("//")?new URL(e.protocol+v):new URL(v),n=(0,l.pb)(t.pathname,j);t.origin===e.origin&&null!=n?v=n+t.search+t.hash:k=!0}catch(w){}let _=(0,s.$P)(v,{relative:r}),S=function(e,t){let{target:n,replace:a,state:r,preventScrollReset:o,relative:c,viewTransition:u}=void 0===t?{}:t,d=(0,s.Zp)(),p=(0,s.zy)(),f=(0,s.x$)(e,{relative:c});return i.useCallback(t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==a?a:(0,l.AO)(p)===(0,l.AO)(f);d(e,{replace:n,state:r,preventScrollReset:o,relative:c,viewTransition:u})}},[p,d,f,a,r,n,e,o,c,u])}(v,{replace:d,state:f,target:h,preventScrollReset:y,relative:r,viewTransition:b});return i.createElement("a",c({},x,{href:n||_,onClick:k||o?a:function(e){a&&a(e),e.defaultPrevented||S(e)},ref:t,target:h}))});var y,b;function x(e){let t=i.useRef(d(e)),n=i.useRef(!1),a=(0,s.zy)(),r=i.useMemo(()=>function(e,t){let n=d(e);return t&&t.forEach((e,a)=>{n.has(a)||t.getAll(a).forEach(e=>{n.append(a,e)})}),n}(a.search,n.current?null:t.current),[a.search]),o=(0,s.Zp)(),l=i.useCallback((e,t)=>{const a=d("function"===typeof e?e(r):e);n.current=!0,o("?"+a,t)},[o,r]);return[r,l]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(y||(y={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(b||(b={}))},6102:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(2555),r=n(5043),i=n(184),o=n(722),s=n(6566),l=n(579);const c=function(){const[e,t]=(0,r.useState)(!1),[n,c]=(0,r.useState)(null),[u,d]=(0,r.useState)(null),[p,f]=(0,r.useState)(!1),[h,m]=(0,r.useState)(!1),[g,v]=(0,r.useState)(!1),[y,b]=(0,r.useState)({name:"",email:""}),x=(0,r.useRef)(null);return(0,l.jsxs)("footer",{className:"footer-contact",children:[(0,l.jsx)("div",{className:"footer-contact-container",children:(0,l.jsxs)("div",{className:"footer-top-section",children:[(0,l.jsxs)("div",{className:"footer-left-column",children:[(0,l.jsxs)("div",{className:"footer-links-container",children:[(0,l.jsxs)("div",{className:"footer-link-group",children:[(0,l.jsx)("h4",{className:"footer-link-title",children:"Platform"}),(0,l.jsxs)("ul",{className:"footer-link-list",children:[(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"/find-practitioners",children:"Find Doctors"})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"/pricing",children:"Pricing"})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"/about",children:"About"})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"/compliance",children:"Security & Compliance"})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"/patients-booking-gp",children:"GPs on Virtual Triage"})})]})]}),(0,l.jsxs)("div",{className:"footer-link-group",children:[(0,l.jsx)("h4",{className:"footer-link-title",children:"Resources"}),(0,l.jsxs)("ul",{className:"footer-link-list",children:[(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"/privacy-notice",target:"_blank",rel:"noreferrer",children:"Privacy Notice"})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"/cookie-policy",target:"_blank",rel:"noreferrer",children:"Cookie Policy"})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"/terms-and-conditions",target:"_blank",rel:"noreferrer",children:"Terms & Conditions"})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"/clinician-provider-agreement",target:"_blank",rel:"noreferrer",children:"Clinician Provider Agreement"})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"/appointment-terms",target:"_blank",rel:"noreferrer",children:"Appointment Terms & Medical"})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"#disclaimer",children:"Disclaimer"})})]})]}),(0,l.jsxs)("div",{className:"footer-link-group",children:[(0,l.jsx)("h4",{className:"footer-link-title",children:"Contact"}),(0,l.jsxs)("ul",{className:"footer-link-list",children:[(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"mailto:teams@virtualtriage.ai",children:"Email support"})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"tel:+442045865400",children:"Call us"})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"/contact",children:"Contact form"})}),(0,l.jsx)("li",{children:(0,l.jsx)("button",{className:"platform-status-btn",disabled:!0,title:"Coming Soon","aria-disabled":"true",children:"Platform status"})})]})]})]}),(0,l.jsxs)("div",{className:"footer-brand-section",children:[(0,l.jsx)("h3",{className:"footer-brand-title",children:"Virtual Triage"}),(0,l.jsx)("p",{className:"footer-brand-description",children:"Professional digital health platform connecting patients and clinicians with secure appointments, messaging, and video consultations."}),(0,l.jsxs)("div",{className:"footer-contact-details",children:[(0,l.jsxs)("a",{href:"tel:+442045865400",className:"footer-contact-item",children:[(0,l.jsx)(i.Cab,{}),(0,l.jsx)("span",{children:"+44 20 4586 5400"})]}),(0,l.jsxs)("a",{href:"mailto:teams@virtualtriage.ai",className:"footer-contact-item",children:[(0,l.jsx)(i.maD,{}),(0,l.jsx)("span",{children:"teams@virtualtriage.ai"})]})]}),(0,l.jsxs)("div",{className:"footer-social-section",children:[(0,l.jsx)("p",{className:"footer-social-title",children:"Connect with us"}),(0,l.jsxs)("div",{className:"footer-social-icons",children:[(0,l.jsx)("a",{href:"https://www.youtube.com",target:"_blank",rel:"noreferrer","aria-label":"YouTube",children:(0,l.jsx)(i.Vk6,{})}),(0,l.jsx)("a",{href:"https://www.instagram.com/virtualtriage_/",target:"_blank",rel:"noreferrer","aria-label":"Instagram",children:(0,l.jsx)(i.ao$,{})}),(0,l.jsx)("a",{href:"https://www.facebook.com/virtualtriage?mibextid=ZbWKwL",target:"_blank",rel:"noreferrer","aria-label":"Facebook",children:(0,l.jsx)(i.iYk,{})}),(0,l.jsx)("a",{href:"https://www.linkedin.com/company/virtualtriage/",target:"_blank",rel:"noreferrer","aria-label":"LinkedIn",children:(0,l.jsx)(i.QEs,{})}),(0,l.jsx)("a",{href:"https://twitter.com/virtual_triage",target:"_blank",rel:"noreferrer","aria-label":"Twitter",children:(0,l.jsx)(i.feZ,{})})]})]})]})]}),(0,l.jsx)("div",{className:"footer-right-column",children:(0,l.jsxs)("div",{className:"contact-form-section",children:[(0,l.jsx)("h3",{className:"newsletter-title",children:"Subscribe to our newsletter"}),(0,l.jsx)("p",{className:"newsletter-description",children:"Insights on product updates, uptime notices, and clinical platform improvements."}),(0,l.jsxs)("form",{className:"contact-form",onSubmit:async e=>{if(e.preventDefault(),!g)return void d("Please accept the consent terms to continue.");if(!h)return void d("Please confirm you're not a robot.");if(!n)return void d("Please complete the reCAPTCHA verification.");t(!0),d(null);const a={name:y.name,number:"",email:y.email,message:"feature request",type:"contact"};try{if(!(await fetch("https://portal.virtualtriage.ca/contact_email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok)throw new Error("Failed to send newsletter subscription");d("Subscription successful!"),b({name:"",email:""}),c(null),f(!1),m(!1),v(!1),x.current&&x.current.reset()}catch(r){console.error("Error sending subscription:",r),d("There was an error sending your subscription. Please try again later."),x.current&&x.current.reset(),c(null)}finally{t(!1)}},children:[(0,l.jsxs)("div",{className:"input-wrapper",children:[(0,l.jsx)(i.x$1,{}),(0,l.jsx)("input",{type:"text",placeholder:"Full Name",name:"from_name",value:y.name,required:!0,onChange:e=>b((0,a.A)((0,a.A)({},y),{},{name:e.target.value}))})]}),(0,l.jsxs)("div",{className:"input-wrapper",children:[(0,l.jsx)(i.maD,{}),(0,l.jsx)("input",{type:"email",placeholder:"Email",name:"email",required:!0,value:y.email,onChange:e=>b((0,a.A)((0,a.A)({},y),{},{email:e.target.value}))})]}),(0,l.jsx)("div",{className:"consent",children:(0,l.jsxs)("label",{className:"consent-checkbox-container",children:[(0,l.jsx)("input",{type:"checkbox",checked:g,onChange:e=>{v(e.target.checked),e.target.checked&&u&&u.includes("consent")&&d(null)}}),(0,l.jsx)("span",{children:"I agree to receive SMS messages from Virtual Triage, including appointment reminders, account alerts, and customer care updates. Message frequency varies. Reply STOP to opt-out. Standard message and data rates may apply."})]})}),(0,l.jsx)("div",{className:"human-verification",children:(0,l.jsxs)("label",{className:"checkbox-container",children:[(0,l.jsx)("input",{type:"checkbox",checked:h,onChange:e=>{m(e.target.checked),f(e.target.checked),e.target.checked&&u&&u.includes("robot")&&d(null),e.target.checked||(f(!1),c(null),x.current&&x.current.reset())}}),(0,l.jsx)("span",{className:"checkmark"}),(0,l.jsx)("span",{className:"checkbox-text",children:"I'm not a robot"})]})}),p&&(0,l.jsx)("div",{className:"recaptcha-container-footer",children:(0,l.jsx)(o.A,{ref:x,sitekey:s.P.SITE_KEY,onChange:e=>{c(e),e&&u&&u.includes("reCAPTCHA")&&d(null)},theme:"light",size:"normal"})}),(0,l.jsx)("button",{className:"footer-submit-button",type:"submit",disabled:e||!g||h&&!n,children:e?(0,l.jsx)("span",{className:"loader"}):"Submit"}),u&&(0,l.jsx)("div",{className:"status-message ".concat(u.includes("success")?"success":"error"),children:u})]})]})})]})}),(0,l.jsx)("div",{className:"footer-legal",id:"disclaimer",children:(0,l.jsxs)("div",{className:"footer-legal-container",children:[(0,l.jsxs)("div",{className:"footer-disclaimer-content",children:[(0,l.jsx)("h4",{className:"disclaimer-title",children:"Disclaimer"}),(0,l.jsx)("p",{className:"disclaimer-text",children:"Virtual Triage does not provide medical advice, diagnosis, or treatment. We are not a healthcare provider. Our role is solely to facilitate connections between patients and licensed medical professionals. All medical services are rendered independently by the healthcare providers with whom users choose to engage. Users are encouraged to verify the credentials of any provider and consult directly with them regarding their medical needs. We do not assume responsibility for the quality or outcomes of any services provided."})]}),(0,l.jsxs)("div",{className:"footer-legal-bottom",children:[(0,l.jsxs)("div",{className:"footer-copyright",children:[(0,l.jsx)("p",{className:"copyright-text",children:"\xa9 2026 Virtual Triage. All rights reserved."}),(0,l.jsx)("p",{className:"footer-legal-text",children:"Virtual Triage is a registered company in the United Kingdom, operating in compliance with UK regulations and data protection standards."})]}),(0,l.jsx)("button",{onClick:()=>{localStorage.removeItem("cookieConsent"),window.location.reload()},className:"cookie-settings-btn",children:"Cookie Settings"})]})]})})]})}},6366:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,a="function"===typeof Set,r="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,o){if(e===o)return!0;if(e&&o&&"object"==typeof e&&"object"==typeof o){if(e.constructor!==o.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=o.length)return!1;for(l=s;0!==l--;)if(!i(e[l],o[l]))return!1;return!0}if(n&&e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!o.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!i(l.value[1],o.get(l.value[0])))return!1;return!0}if(a&&e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!o.has(l.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(o)){if((s=e.length)!=o.length)return!1;for(l=s;0!==l--;)if(e[l]!==o[l])return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof o.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof o.toString)return e.toString()===o.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(o).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(o,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!i(e[c[l]],o[c[l]]))return!1;return!0}return e!==e&&o!==o}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},6566:(e,t,n)=>{"use strict";n.d(t,{P:()=>a});const a={SITE_KEY:"6Ldyw2crAAAAAAZltagaE1PEMhZYrJgXWojFuRFU"}},6753:(e,t,n)=>{"use strict";n.d(t,{r:()=>Et,A:()=>Pt});var a={};function r(e,t){return function(){return e.apply(t,arguments)}}n.r(a),n.d(a,{hasBrowserEnv:()=>ce,hasStandardBrowserEnv:()=>de,hasStandardBrowserWebWorkerEnv:()=>pe,navigator:()=>ue,origin:()=>fe});const{toString:i}=Object.prototype,{getPrototypeOf:o}=Object,{iterator:s,toStringTag:l}=Symbol,c=(u=Object.create(null),e=>{const t=i.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const d=e=>(e=e.toLowerCase(),t=>c(t)===e),p=e=>t=>typeof t===e,{isArray:f}=Array,h=p("undefined");const m=d("ArrayBuffer");const g=p("string"),v=p("function"),y=p("number"),b=e=>null!==e&&"object"===typeof e,x=e=>{if("object"!==c(e))return!1;const t=o(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(l in e)&&!(s in e)},w=d("Date"),j=d("File"),k=d("Blob"),_=d("FileList"),S=d("URLSearchParams"),[N,C,E,T]=["ReadableStream","Request","Response","Headers"].map(d);function P(e,t){let n,a,{allOwnKeys:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),f(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const a=r?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let o;for(n=0;n<i;n++)o=a[n],t.call(null,e[o],o,e)}}function A(e,t){t=t.toLowerCase();const n=Object.keys(e);let a,r=n.length;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const O="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,L=e=>!h(e)&&e!==O;const R=(D="undefined"!==typeof Uint8Array&&o(Uint8Array),e=>D&&e instanceof D);var D;const I=d("HTMLFormElement"),M=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),z=d("RegExp"),F=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};P(n,(n,r)=>{let i;!1!==(i=t(n,r,e))&&(a[r]=i||n)}),Object.defineProperties(e,a)};const U=d("AsyncFunction"),B=((e,t)=>{return e?setImmediate:t?(n="axios@".concat(Math.random()),a=[],O.addEventListener("message",e=>{let{source:t,data:r}=e;t===O&&r===n&&a.length&&a.shift()()},!1),e=>{a.push(e),O.postMessage(n,"*")}):e=>setTimeout(e);var n,a})("function"===typeof setImmediate,v(O.postMessage)),V="undefined"!==typeof queueMicrotask?queueMicrotask.bind(O):"undefined"!==typeof process&&process.nextTick||B,q={isArray:f,isArrayBuffer:m,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||v(e.append)&&("formdata"===(t=c(e))||"object"===t&&v(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer),t},isString:g,isNumber:y,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:x,isReadableStream:N,isRequest:C,isResponse:E,isHeaders:T,isUndefined:h,isDate:w,isFile:j,isBlob:k,isRegExp:z,isFunction:v,isStream:e=>b(e)&&v(e.pipe),isURLSearchParams:S,isTypedArray:R,isFileList:_,forEach:P,merge:function e(){const{caseless:t}=L(this)&&this||{},n={},a=(a,r)=>{const i=t&&A(n,r)||r;x(n[i])&&x(a)?n[i]=e(n[i],a):x(a)?n[i]=e({},a):f(a)?n[i]=a.slice():n[i]=a};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&P(arguments[r],a);return n},extend:function(e,t,n){let{allOwnKeys:a}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return P(t,(t,a)=>{n&&v(t)?e[a]=r(t,n):e[a]=t},{allOwnKeys:a}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,a)=>{let r,i,s;const l={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)s=r[i],a&&!a(s,e,t)||l[s]||(t[s]=e[s],l[s]=!0);e=!1!==n&&o(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return-1!==a&&a===n},toArray:e=>{if(!e)return null;if(f(e))return e;let t=e.length;if(!y(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[s]).call(e);let a;for(;(a=n.next())&&!a.done;){const n=a.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const a=[];for(;null!==(n=e.exec(t));)a.push(n);return a},isHTMLForm:I,hasOwnProperty:M,hasOwnProp:M,reduceDescriptors:F,freezeMethods:e=>{F(e,(t,n)=>{if(v(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const a=e[n];v(a)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},a=e=>{e.forEach(e=>{n[e]=!0})};return f(e)?a(e):a(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:A,global:O,isContextDefined:L,isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[l]&&e[s])},toJSONObject:e=>{const t=new Array(10),n=(e,a)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[a]=e;const r=f(e)?[]:{};return P(e,(e,t)=>{const i=n(e,a+1);!h(i)&&(r[t]=i)}),t[a]=void 0,r}}return e};return n(e,0)},isAsyncFn:U,isThenable:e=>e&&(b(e)||v(e))&&v(e.then)&&v(e.catch),setImmediate:B,asap:V,isIterable:e=>null!=e&&v(e[s])};function H(e,t,n,a,r){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),a&&(this.request=a),r&&(this.response=r,this.status=r.status?r.status:null)}q.inherits(H,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:q.toJSONObject(this.config),code:this.code,status:this.status}}});const W=H.prototype,G={};["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=>{G[e]={value:e}}),Object.defineProperties(H,G),Object.defineProperty(W,"isAxiosError",{value:!0}),H.from=(e,t,n,a,r,i)=>{const o=Object.create(W);return q.toFlatObject(e,o,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),H.call(o,e.message,t,n,a,r),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const $=H;function K(e){return q.isPlainObject(e)||q.isArray(e)}function Y(e){return q.endsWith(e,"[]")?e.slice(0,-2):e}function Q(e,t,n){return e?e.concat(t).map(function(e,t){return e=Y(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const J=q.toFlatObject(q,{},null,function(e){return/^is[A-Z]/.test(e)});const Z=function(e,t,n){if(!q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const a=(n=q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!q.isUndefined(t[e])})).metaTokens,r=n.visitor||c,i=n.dots,o=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&q.isSpecCompliantForm(t);if(!q.isFunction(r))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(q.isDate(e))return e.toISOString();if(q.isBoolean(e))return e.toString();if(!s&&q.isBlob(e))throw new $("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(e)||q.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,r){let s=e;if(e&&!r&&"object"===typeof e)if(q.endsWith(n,"{}"))n=a?n:n.slice(0,-2),e=JSON.stringify(e);else if(q.isArray(e)&&function(e){return q.isArray(e)&&!e.some(K)}(e)||(q.isFileList(e)||q.endsWith(n,"[]"))&&(s=q.toArray(e)))return n=Y(n),s.forEach(function(e,a){!q.isUndefined(e)&&null!==e&&t.append(!0===o?Q([n],a,i):null===o?n:n+"[]",l(e))}),!1;return!!K(e)||(t.append(Q(r,n,i),l(e)),!1)}const u=[],d=Object.assign(J,{defaultVisitor:c,convertValue:l,isVisitable:K});if(!q.isObject(e))throw new TypeError("data must be an object");return function e(n,a){if(!q.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+a.join("."));u.push(n),q.forEach(n,function(n,i){!0===(!(q.isUndefined(n)||null===n)&&r.call(t,n,q.isString(i)?i.trim():i,a,d))&&e(n,a?a.concat(i):[i])}),u.pop()}}(e),t};function X(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ee(e,t){this._pairs=[],e&&Z(e,this,t)}const te=ee.prototype;te.append=function(e,t){this._pairs.push([e,t])},te.toString=function(e){const t=e?function(t){return e.call(this,t,X)}:X;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const ne=ee;function ae(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function re(e,t,n){if(!t)return e;const a=n&&n.encode||ae;q.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let i;if(i=r?r(t,n):q.isURLSearchParams(t)?t.toString():new ne(t,n).toString(a),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const ie=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){q.forEach(this.handlers,function(t){null!==t&&e(t)})}},oe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var se=n(2555);const le={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:ne,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ce="undefined"!==typeof window&&"undefined"!==typeof document,ue="object"===typeof navigator&&navigator||void 0,de=ce&&(!ue||["ReactNative","NativeScript","NS"].indexOf(ue.product)<0),pe="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,fe=ce&&window.location.href||"http://localhost",he=(0,se.A)((0,se.A)({},a),le);const me=function(e){function t(e,n,a,r){let i=e[r++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),s=r>=e.length;if(i=!i&&q.isArray(a)?a.length:i,s)return q.hasOwnProp(a,i)?a[i]=[a[i],n]:a[i]=n,!o;a[i]&&q.isObject(a[i])||(a[i]=[]);return t(e,n,a[i],r)&&q.isArray(a[i])&&(a[i]=function(e){const t={},n=Object.keys(e);let a;const r=n.length;let i;for(a=0;a<r;a++)i=n[a],t[i]=e[i];return t}(a[i])),!o}if(q.isFormData(e)&&q.isFunction(e.entries)){const n={};return q.forEachEntry(e,(e,a)=>{t(function(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),a,n,0)}),n}return null};const ge={transitional:oe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",a=n.indexOf("application/json")>-1,r=q.isObject(e);r&&q.isHTMLForm(e)&&(e=new FormData(e));if(q.isFormData(e))return a?JSON.stringify(me(e)):e;if(q.isArrayBuffer(e)||q.isBuffer(e)||q.isStream(e)||q.isFile(e)||q.isBlob(e)||q.isReadableStream(e))return e;if(q.isArrayBufferView(e))return e.buffer;if(q.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Z(e,new he.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,a){return he.isNode&&q.isBuffer(e)?(this.append(t,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=q.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Z(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||a?(t.setContentType("application/json",!1),function(e,t,n){if(q.isString(e))try{return(t||JSON.parse)(e),q.trim(e)}catch(a){if("SyntaxError"!==a.name)throw a}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ge.transitional,n=t&&t.forcedJSONParsing,a="json"===this.responseType;if(q.isResponse(e)||q.isReadableStream(e))return e;if(e&&q.isString(e)&&(n&&!this.responseType||a)){const n=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(r){if(n){if("SyntaxError"===r.name)throw $.from(r,$.ERR_BAD_RESPONSE,this,null,this.response);throw r}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:he.classes.FormData,Blob:he.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};q.forEach(["delete","get","head","post","put","patch"],e=>{ge.headers[e]={}});const ve=ge,ye=q.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"]),be=Symbol("internals");function xe(e){return e&&String(e).trim().toLowerCase()}function we(e){return!1===e||null==e?e:q.isArray(e)?e.map(we):String(e)}function je(e,t,n,a,r){return q.isFunction(a)?a.call(this,t,n):(r&&(t=n),q.isString(t)?q.isString(a)?-1!==t.indexOf(a):q.isRegExp(a)?a.test(t):void 0:void 0)}class ke{constructor(e){e&&this.set(e)}set(e,t,n){const a=this;function r(e,t,n){const r=xe(t);if(!r)throw new Error("header name must be a non-empty string");const i=q.findKey(a,r);(!i||void 0===a[i]||!0===n||void 0===n&&!1!==a[i])&&(a[i||t]=we(e))}const i=(e,t)=>q.forEach(e,(e,n)=>r(e,n,t));if(q.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(q.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,a,r;return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),a=e.substring(r+1).trim(),!n||t[n]&&ye[n]||("set-cookie"===n?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t})(e),t);else if(q.isObject(e)&&q.isIterable(e)){let n,a,r={};for(const t of e){if(!q.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[a=t[0]]=(n=r[a])?q.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(r,t)}else null!=e&&r(t,e,n);return this}get(e,t){if(e=xe(e)){const n=q.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}(e);if(q.isFunction(t))return t.call(this,e,n);if(q.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=xe(e)){const n=q.findKey(this,e);return!(!n||void 0===this[n]||t&&!je(0,this[n],n,t))}return!1}delete(e,t){const n=this;let a=!1;function r(e){if(e=xe(e)){const r=q.findKey(n,e);!r||t&&!je(0,n[r],r,t)||(delete n[r],a=!0)}}return q.isArray(e)?e.forEach(r):r(e),a}clear(e){const t=Object.keys(this);let n=t.length,a=!1;for(;n--;){const r=t[n];e&&!je(0,this[r],r,e,!0)||(delete this[r],a=!0)}return a}normalize(e){const t=this,n={};return q.forEach(this,(a,r)=>{const i=q.findKey(n,r);if(i)return t[i]=we(a),void delete t[r];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(r):String(r).trim();o!==r&&delete t[r],t[o]=we(a),n[o]=!0}),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return q.forEach(this,(n,a)=>{null!=n&&!1!==n&&(t[a]=e&&q.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(e=>{let[t,n]=e;return t+": "+n}).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];return a.forEach(e=>t.set(e)),t}static accessor(e){const t=(this[be]=this[be]={accessors:{}}).accessors,n=this.prototype;function a(e){const a=xe(e);t[a]||(!function(e,t){const n=q.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(e,n,r){return this[a].call(this,t,e,n,r)},configurable:!0})})}(n,e),t[a]=!0)}return q.isArray(e)?e.forEach(a):a(e),this}}ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),q.reduceDescriptors(ke.prototype,(e,t)=>{let{value:n}=e,a=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[a]=e}}}),q.freezeMethods(ke);const _e=ke;function Se(e,t){const n=this||ve,a=t||n,r=_e.from(a.headers);let i=a.data;return q.forEach(e,function(e){i=e.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function Ne(e){return!(!e||!e.__CANCEL__)}function Ce(e,t,n){$.call(this,null==e?"canceled":e,$.ERR_CANCELED,t,n),this.name="CanceledError"}q.inherits(Ce,$,{__CANCEL__:!0});const Ee=Ce;function Te(e,t,n){const a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(new $("Request failed with status code "+n.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Pe=function(e,t){e=e||10;const n=new Array(e),a=new Array(e);let r,i=0,o=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=a[o];r||(r=l),n[i]=s,a[i]=l;let u=o,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),l-r<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}};const Ae=function(e,t){let n,a,r=0,i=1e3/t;const o=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();r=i,n=null,a&&(clearTimeout(a),a=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-r;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];t>=i?o(l,e):(n=l,a||(a=setTimeout(()=>{a=null,o(n)},i-t)))},()=>n&&o(n)]},Oe=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,a=0;const r=Pe(50,250);return Ae(n=>{const i=n.loaded,o=n.lengthComputable?n.total:void 0,s=i-a,l=r(s);a=i;e({loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&i<=o?(o-i)/l:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0})},n)},Le=(e,t)=>{const n=null!=e;return[a=>t[0]({lengthComputable:n,total:e,loaded:a}),t[1]]},Re=e=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return q.asap(()=>e(...n))},De=he.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,he.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(he.origin),he.navigator&&/(msie|trident)/i.test(he.navigator.userAgent)):()=>!0,Ie=he.hasStandardBrowserEnv?{write(e,t,n,a,r,i){const o=[e+"="+encodeURIComponent(t)];q.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),q.isString(a)&&o.push("path="+a),q.isString(r)&&o.push("domain="+r),!0===i&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Me(e,t,n){let a=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(a||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ze=e=>e instanceof _e?(0,se.A)({},e):e;function Fe(e,t){t=t||{};const n={};function a(e,t,n,a){return q.isPlainObject(e)&&q.isPlainObject(t)?q.merge.call({caseless:a},e,t):q.isPlainObject(t)?q.merge({},t):q.isArray(t)?t.slice():t}function r(e,t,n,r){return q.isUndefined(t)?q.isUndefined(e)?void 0:a(void 0,e,0,r):a(e,t,0,r)}function i(e,t){if(!q.isUndefined(t))return a(void 0,t)}function o(e,t){return q.isUndefined(t)?q.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function s(n,r,i){return i in t?a(n,r):i in e?a(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>r(ze(e),ze(t),0,!0)};return q.forEach(Object.keys(Object.assign({},e,t)),function(a){const i=l[a]||r,o=i(e[a],t[a],a);q.isUndefined(o)&&i!==s||(n[a]=o)}),n}const Ue=e=>{const t=Fe({},e);let n,{data:a,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:l}=t;if(t.headers=s=_e.from(s),t.url=re(Me(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),q.isFormData(a))if(he.hasStandardBrowserEnv||he.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(he.hasStandardBrowserEnv&&(r&&q.isFunction(r)&&(r=r(t)),r||!1!==r&&De(t.url))){const e=i&&o&&Ie.read(o);e&&s.set(i,e)}return t},Be="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const a=Ue(e);let r=a.data;const i=_e.from(a.headers).normalize();let o,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=a;function h(){c&&c(),u&&u(),a.cancelToken&&a.cancelToken.unsubscribe(o),a.signal&&a.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;function g(){if(!m)return;const a=_e.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Te(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:a,config:e,request:m}),m=null}m.open(a.method.toUpperCase(),a.url,!0),m.timeout=a.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new $("Request aborted",$.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new $("Network Error",$.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const r=a.transitional||oe;a.timeoutErrorMessage&&(t=a.timeoutErrorMessage),n(new $(t,r.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,m)),m=null},void 0===r&&i.setContentType(null),"setRequestHeader"in m&&q.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),q.isUndefined(a.withCredentials)||(m.withCredentials=!!a.withCredentials),d&&"json"!==d&&(m.responseType=a.responseType),f&&([l,u]=Oe(f,!0),m.addEventListener("progress",l)),p&&m.upload&&([s,c]=Oe(p),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(a.cancelToken||a.signal)&&(o=t=>{m&&(n(!t||t.type?new Ee(null,e,m):t),m.abort(),m=null)},a.cancelToken&&a.cancelToken.subscribe(o),a.signal&&(a.signal.aborted?o():a.signal.addEventListener("abort",o)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(a.url);v&&-1===he.protocols.indexOf(v)?n(new $("Unsupported protocol "+v+":",$.ERR_BAD_REQUEST,e)):m.send(r||null)})},Ve=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,a=new AbortController;const r=function(e){if(!n){n=!0,o();const t=e instanceof Error?e:this.reason;a.abort(t instanceof $?t:new Ee(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,r(new $("timeout ".concat(t," of ms exceeded"),$.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r));const{signal:s}=a;return s.unsubscribe=()=>q.asap(o),s}};function qe(e,t){this.v=e,this.k=t}function He(e){return function(){return new We(e.apply(this,arguments))}}function We(e){var t,n;function a(t,n){try{var i=e[t](n),o=i.value,s=o instanceof qe;Promise.resolve(s?o.v:o).then(function(n){if(s){var l="return"===t?"return":"next";if(!o.k||n.done)return a(l,n);n=e[l](n).value}r(i.done?"return":"normal",n)},function(e){a("throw",e)})}catch(e){r("throw",e)}}function r(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1})}(t=t.next)?a(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise(function(i,o){var s={key:e,arg:r,resolve:i,reject:o,next:null};n?n=n.next=s:(t=n=s,a(e,r))})},"function"!=typeof e.return&&(this.return=void 0)}function Ge(e){return new qe(e,0)}function $e(e){var t={},n=!1;function a(t,a){return n=!0,a=new Promise(function(n){n(e[t](a))}),{done:!1,value:new qe(a,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):a("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return a("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):a("return",e)}),t}function Ke(e){var t,n,a,r=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,a=Symbol.iterator);r--;){if(n&&null!=(t=e[n]))return t.call(e);if(a&&null!=(t=e[a]))return new Ye(t.call(e));n="@@asyncIterator",a="@@iterator"}throw new TypeError("Object is not async iterable")}function Ye(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return Ye=function(e){this.s=e,this.n=e.next},Ye.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new Ye(e)}We.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},We.prototype.next=function(e){return this._invoke("next",e)},We.prototype.throw=function(e){return this._invoke("throw",e)},We.prototype.return=function(e){return this._invoke("return",e)};const Qe=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let a,r=0;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},Je=function(){var e=He(function*(e,t){var n,a=!1,r=!1;try{for(var i,o=Ke(Ze(e));a=!(i=yield Ge(o.next())).done;a=!1){const e=i.value;yield*$e(Ke(Qe(e,t)))}}catch(s){r=!0,n=s}finally{try{a&&null!=o.return&&(yield Ge(o.return()))}finally{if(r)throw n}}});return function(t,n){return e.apply(this,arguments)}}(),Ze=function(){var e=He(function*(e){if(e[Symbol.asyncIterator])return void(yield*$e(Ke(e)));const t=e.getReader();try{for(;;){const{done:e,value:n}=yield Ge(t.read());if(e)break;yield n}}finally{yield Ge(t.cancel())}});return function(t){return e.apply(this,arguments)}}(),Xe=(e,t,n,a)=>{const r=Je(e,t);let i,o=0,s=e=>{i||(i=!0,a&&a(e))};return new ReadableStream({async pull(e){try{const{done:t,value:a}=await r.next();if(t)return s(),void e.close();let i=a.byteLength;if(n){let e=o+=i;n(e)}e.enqueue(new Uint8Array(a))}catch(t){throw s(t),t}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},et="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,tt=et&&"function"===typeof ReadableStream,nt=et&&("function"===typeof TextEncoder?(at=new TextEncoder,e=>at.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var at;const rt=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return!!e(...n)}catch(r){return!1}},it=tt&&rt(()=>{let e=!1;const t=new Request(he.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ot=tt&&rt(()=>q.isReadableStream(new Response("").body)),st={stream:ot&&(e=>e.body)};var lt;et&&(lt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!st[e]&&(st[e]=q.isFunction(lt[e])?t=>t[e]():(t,n)=>{throw new $("Response type '".concat(e,"' is not supported"),$.ERR_NOT_SUPPORT,n)})}));const ct=async(e,t)=>{const n=q.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(q.isBlob(e))return e.size;if(q.isSpecCompliantForm(e)){const t=new Request(he.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return q.isArrayBufferView(e)||q.isArrayBuffer(e)?e.byteLength:(q.isURLSearchParams(e)&&(e+=""),q.isString(e)?(await nt(e)).byteLength:void 0)})(t):n},ut={http:null,xhr:Be,fetch:et&&(async e=>{let{url:t,method:n,data:a,signal:r,cancelToken:i,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=Ue(e);c=c?(c+"").toLowerCase():"text";let f,h=Ve([r,i&&i.toAbortSignal()],o);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&it&&"get"!==n&&"head"!==n&&0!==(g=await ct(u,a))){let e,n=new Request(t,{method:"POST",body:a,duplex:"half"});if(q.isFormData(a)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Le(g,Oe(Re(l)));a=Xe(n.body,65536,e,t)}}q.isString(d)||(d=d?"include":"omit");const r="credentials"in Request.prototype;f=new Request(t,(0,se.A)((0,se.A)({},p),{},{signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:a,duplex:"half",credentials:r?d:void 0}));let i=await fetch(f,p);const o=ot&&("stream"===c||"response"===c);if(ot&&(s||o&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=q.toFiniteNumber(i.headers.get("content-length")),[n,a]=s&&Le(t,Oe(Re(s),!0))||[];i=new Response(Xe(i.body,65536,n,()=>{a&&a(),m&&m()}),e)}c=c||"text";let v=await st[q.findKey(st,c)||"text"](i,e);return!o&&m&&m(),await new Promise((t,n)=>{Te(t,n,{data:v,headers:_e.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})})}catch(v){if(m&&m(),v&&"TypeError"===v.name&&/Load failed|fetch/i.test(v.message))throw Object.assign(new $("Network Error",$.ERR_NETWORK,e,f),{cause:v.cause||v});throw $.from(v,v&&v.code,e,f)}})};q.forEach(ut,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const dt=e=>"- ".concat(e),pt=e=>q.isFunction(e)||null===e||!1===e,ft=e=>{e=q.isArray(e)?e:[e];const{length:t}=e;let n,a;const r={};for(let i=0;i<t;i++){let t;if(n=e[i],a=n,!pt(n)&&(a=ut[(t=String(n)).toLowerCase()],void 0===a))throw new $("Unknown adapter '".concat(t,"'"));if(a)break;r[t||"#"+i]=a}if(!a){const e=Object.entries(r).map(e=>{let[t,n]=e;return"adapter ".concat(t," ")+(!1===n?"is not supported by the environment":"is not available in the build")});let n=t?e.length>1?"since :\n"+e.map(dt).join("\n"):" "+dt(e[0]):"as no adapter specified";throw new $("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return a};function ht(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ee(null,e)}function mt(e){ht(e),e.headers=_e.from(e.headers),e.data=Se.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ft(e.adapter||ve.adapter)(e).then(function(t){return ht(e),t.data=Se.call(e,e.transformResponse,t),t.headers=_e.from(t.headers),t},function(t){return Ne(t)||(ht(e),t&&t.response&&(t.response.data=Se.call(e,e.transformResponse,t.response),t.response.headers=_e.from(t.response.headers))),Promise.reject(t)})}const gt="1.10.0",vt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const yt={};vt.transitional=function(e,t,n){function a(e,t){return"[Axios v"+gt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,i)=>{if(!1===e)throw new $(a(r," has been removed"+(t?" in "+t:"")),$.ERR_DEPRECATED);return t&&!yt[r]&&(yt[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}},vt.spelling=function(e){return(t,n)=>(console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0)};const bt={assertOptions:function(e,t,n){if("object"!==typeof e)throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let r=a.length;for(;r-- >0;){const i=a[r],o=t[i];if(o){const t=e[i],n=void 0===t||o(t,i,e);if(!0!==n)throw new $("option "+i+" must be "+n,$.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new $("Unknown option "+i,$.ERR_BAD_OPTION)}},validators:vt},xt=bt.validators;class wt{constructor(e){this.defaults=e||{},this.interceptors={request:new ie,response:new ie}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(a){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=Fe(this.defaults,t);const{transitional:n,paramsSerializer:a,headers:r}=t;void 0!==n&&bt.assertOptions(n,{silentJSONParsing:xt.transitional(xt.boolean),forcedJSONParsing:xt.transitional(xt.boolean),clarifyTimeoutError:xt.transitional(xt.boolean)},!1),null!=a&&(q.isFunction(a)?t.paramsSerializer={serialize:a}:bt.assertOptions(a,{encode:xt.function,serialize:xt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),bt.assertOptions(t,{baseUrl:xt.spelling("baseURL"),withXsrfToken:xt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=r&&q.merge(r.common,r[t.method]);r&&q.forEach(["delete","get","head","post","put","patch","common"],e=>{delete r[e]}),t.headers=_e.concat(i,r);const o=[];let s=!0;this.interceptors.request.forEach(function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,o.unshift(e.fulfilled,e.rejected))});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[mt.bind(this),void 0];for(e.unshift.apply(e,o),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=o.length;let p=t;for(d=0;d<u;){const e=o[d++],t=o[d++];try{p=e(p)}catch(f){t.call(this,f);break}}try{c=mt.call(this,p)}catch(f){return Promise.reject(f)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return re(Me((e=Fe(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}q.forEach(["delete","get","head","options"],function(e){wt.prototype[e]=function(t,n){return this.request(Fe(n||{},{method:e,url:t,data:(n||{}).data}))}}),q.forEach(["post","put","patch"],function(e){function t(t){return function(n,a,r){return this.request(Fe(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:a}))}}wt.prototype[e]=t(),wt.prototype[e+"Form"]=t(!0)});const jt=wt;class kt{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const a=new Promise(e=>{n.subscribe(e),t=e}).then(e);return a.cancel=function(){n.unsubscribe(t)},a},e(function(e,a,r){n.reason||(n.reason=new Ee(e,a,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new kt(function(t){e=t}),cancel:e}}}const _t=kt;const St={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};Object.entries(St).forEach(e=>{let[t,n]=e;St[n]=t});const Nt=St;const Ct=function e(t){const n=new jt(t),a=r(jt.prototype.request,n);return q.extend(a,jt.prototype,n,{allOwnKeys:!0}),q.extend(a,n,null,{allOwnKeys:!0}),a.create=function(n){return e(Fe(t,n))},a}(ve);Ct.Axios=jt,Ct.CanceledError=Ee,Ct.CancelToken=_t,Ct.isCancel=Ne,Ct.VERSION=gt,Ct.toFormData=Z,Ct.AxiosError=$,Ct.Cancel=Ct.CanceledError,Ct.all=function(e){return Promise.all(e)},Ct.spread=function(e){return function(t){return e.apply(null,t)}},Ct.isAxiosError=function(e){return q.isObject(e)&&!0===e.isAxiosError},Ct.mergeConfig=Fe,Ct.AxiosHeaders=_e,Ct.formToJSON=e=>me(q.isHTMLForm(e)?new FormData(e):e),Ct.getAdapter=ft,Ct.HttpStatusCode=Nt,Ct.default=Ct;const Et="https://directoryapi.virtualtriage.ai",Tt=Ct.create({baseURL:"https://portal.virtualtriage.ca/api/v1",headers:{"Content-Type":"application/json",Accept:"application/json"}});Tt.interceptors.request.use(e=>{const t=localStorage.getItem("authToken");return t&&(e.headers.Authorization="Bearer ".concat(t)),e},e=>Promise.reject(e)),Tt.interceptors.response.use(e=>e,e=>{var t;return 401===(null===(t=e.response)||void 0===t?void 0:t.status)&&localStorage.removeItem("authToken"),Promise.reject(e)});const Pt=Tt},6906:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var a=n(2555),r=n(5043),i=n(6753),o=n(7521),s=n(184),l=n(3393),c=n(843),u=n(579);let d=null,p=null;const f={style:{base:{fontSize:"15px",color:"#1a1f36",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',fontWeight:"400","::placeholder":{color:"#a0aec0"},iconColor:"#6b7c93"},invalid:{color:"#e53e3e",iconColor:"#e53e3e"}},hidePostalCode:!1},h=()=>(0,u.jsx)("svg",{viewBox:"0 0 60 25",className:"spm-stripe-svg",xmlns:"http://www.w3.org/2000/svg",children:(0,u.jsx)("path",{d:"M59.64 14.28h-8.06c.19 1.93 1.6 2.55 3.2 2.55 1.64 0 2.96-.37 4.05-.95v3.32a8.33 8.33 0 0 1-4.56 1.1c-4.01 0-6.83-2.5-6.83-7.48 0-4.19 2.39-7.52 6.3-7.52 3.92 0 5.96 3.28 5.96 7.5 0 .4-.04 1.26-.06 1.48zm-5.92-5.62c-1.03 0-2.17.73-2.17 2.58h4.25c0-1.85-1.07-2.58-2.08-2.58zM40.95 20.3c-1.44 0-2.32-.6-2.9-1.04l-.02 4.63-4.12.87V5.57h3.76l.08 1.02a4.7 4.7 0 0 1 3.23-1.29c2.9 0 5.62 2.6 5.62 7.4 0 5.23-2.7 7.6-5.65 7.6zM40 8.95c-.95 0-1.54.34-1.97.81l.02 6.12c.4.44.98.78 1.95.78 1.52 0 2.54-1.65 2.54-3.87 0-2.15-1.04-3.84-2.54-3.84zM28.24 5.57h4.13v14.44h-4.13V5.57zm0-4.7L32.37 0v3.36l-4.13.88V.88zm-4.32 9.35v9.79H19.8V5.57h3.7l.12 1.22c1-1.77 3.07-1.41 3.62-1.22v3.79c-.52-.19-2.7-.55-3.32.87zm-8.55 4.72c0 2.43 2.6 1.68 3.12 1.46v3.36c-.55.3-1.54.54-2.89.54a4.15 4.15 0 0 1-4.27-4.24l.01-13.17 4.02-.86v3.54h3.14V9.1h-3.13v5.85zm-4.91.7c0 2.97-2.31 4.66-5.73 4.66a11.2 11.2 0 0 1-4.46-.93v-3.93c1.38.75 3.1 1.31 4.46 1.31.92 0 1.53-.24 1.53-1C6.26 13.77 0 14.51 0 9.95 0 7.04 2.28 5.3 5.62 5.3c1.36 0 2.72.2 4.09.75v3.92C8.36 9.23 6.8 8.69 5.62 8.69c-.88 0-1.4.38-1.4.98 0 1.84 6.2.95 6.2 6.17z",fill:"#635BFF"})}),m=e=>{let{appointmentData:t,onSuccess:n,onClose:o,StripeHooks:d,embedded:p=!1}=e;const m=d.useStripe(),g=d.useElements(),[v,y]=(0,r.useState)(!1),[b,x]=(0,r.useState)(null),[w,j]=(0,r.useState)(!1),[k,_]=(0,r.useState)(""),[S,N]=(0,r.useState)(""),[C,E]=(0,r.useState)(!0),[T,P]=(0,r.useState)([]),[A,O]=(0,r.useState)(!1),[L,R]=(0,r.useState)(null),[D,I]=(0,r.useState)(!1),[M,z]=(0,r.useState)(15),[F,U]=(0,r.useState)(""),[B,V]=(0,r.useState)(!1),[q,H]=(0,r.useState)(!1),[W,G]=(0,r.useState)(null),[$,K]=(0,r.useState)(null),[Y,Q]=(0,r.useState)(!1);(0,r.useEffect)(()=>{(async()=>{try{const e=localStorage.getItem("savedPaymentMethods");e&&P(JSON.parse(e))}catch(e){console.error("Error fetching saved payment methods:",e)}})()},[]),(0,r.useEffect)(()=>{if(!w)return;z(15);const e=setInterval(()=>{z(t=>t<=1?(clearInterval(e),o(),0):t-1)},1e3);return()=>clearInterval(e)},[w]);const J=()=>"initial"===t.appointmentType,Z=()=>{var e,n;return J()?(null===(n=t.scheduleData)||void 0===n?void 0:n.initial_appointment_fee)||t.amount:null===(e=t.scheduleData)||void 0===e?void 0:e.follow_up_appointment_fee},X=()=>J()?"Initial Consultation":"Follow-up Consultation",ee=()=>q&&void 0!==(null===$||void 0===$?void 0:$.final_amount)?parseFloat($.final_amount):parseFloat(Z()),te=()=>{v||o()},ne=e=>{try{const t=JSON.parse(localStorage.getItem("savedPaymentMethods")||"[]"),n={id:e.id,card:{brand:e.card.brand,last4:e.card.last4,exp_month:e.card.exp_month,exp_year:e.card.exp_year},customer_email:S,saved_at:(new Date).toISOString()};t.find(t=>t.id===e.id)||(t.push(n),localStorage.setItem("savedPaymentMethods",JSON.stringify(t)),P(t))}catch(t){console.error("Error saving payment method:",t)}},ae=(()=>{var e;const n=null===(e=t.scheduleData)||void 0===e?void 0:e.Currency;return n&&""!==n&&"\xa3"!==n&&"gbp"!==n?"usd"===n||"$"===n?"$":"eur"===n||"\u20ac"===n?"\u20ac":"\xa3":"\xa3"})(),re=parseFloat(Z()),ie=ee(),oe=q&&$&&ie<re;if(w){const e=(0,u.jsx)("div",{className:"spm-modal spm-modal--success".concat(p?" spm-modal--embedded":""),onClick:p?void 0:e=>e.stopPropagation(),children:(0,u.jsxs)("div",{className:"spm-success",children:[(0,u.jsx)("div",{className:"spm-success__icon",children:(0,u.jsx)(s.A7C,{})}),(0,u.jsx)("h2",{className:"spm-success__title",children:"Payment Confirmed"}),(0,u.jsx)("p",{className:"spm-success__subtitle",children:"Your appointment has been booked successfully."}),(0,u.jsxs)("div",{className:"spm-success__card",children:[(0,u.jsxs)("div",{className:"spm-success__row",children:[(0,u.jsx)("span",{children:"Service"}),(0,u.jsx)("span",{children:X()})]}),(0,u.jsxs)("div",{className:"spm-success__row",children:[(0,u.jsx)("span",{children:"Amount charged"}),(0,u.jsxs)("span",{className:"spm-success__amount",children:[ae,ie.toFixed(2)]})]}),oe&&(0,u.jsxs)("div",{className:"spm-success__row spm-success__row--discount",children:[(0,u.jsx)("span",{children:"Discount applied"}),(0,u.jsxs)("span",{children:["- ",ae,(re-ie).toFixed(2)]})]})]}),(0,u.jsx)("p",{className:"spm-success__note",children:"A receipt will be sent to your email."}),(0,u.jsxs)("div",{className:"spm-success__countdown",children:[(0,u.jsxs)("svg",{className:"spm-countdown-ring",viewBox:"0 0 36 36",children:[(0,u.jsx)("circle",{className:"spm-countdown-ring__bg",cx:"18",cy:"18",r:"15.5"}),(0,u.jsx)("circle",{className:"spm-countdown-ring__fill",cx:"18",cy:"18",r:"15.5",strokeDasharray:"97.4",strokeDashoffset:97.4*(1-M/15)})]}),(0,u.jsx)("span",{className:"spm-countdown-num",children:M})]}),(0,u.jsxs)("p",{className:"spm-success__closing-note",children:["Closing automatically in ",(0,u.jsxs)("strong",{children:[M,"s"]})]})]})});return p?e:(0,u.jsx)("div",{className:"spm-overlay",onClick:te,children:e})}const se=(0,u.jsxs)("div",{className:"spm-modal".concat(p?" spm-modal--embedded":""),onClick:p?void 0:e=>e.stopPropagation(),children:[(0,u.jsxs)("div",{className:"spm-left",children:[(0,u.jsxs)("button",{className:"spm-summary-toggle",onClick:()=>I(e=>!e),"aria-expanded":D,children:[(0,u.jsxs)("span",{className:"spm-summary-toggle__label",children:[(0,u.jsx)(s.x1c,{className:"spm-summary-toggle__icon"}),"Order summary"]}),(0,u.jsxs)("span",{className:"spm-summary-toggle__amount",children:[ae,ie.toFixed(2)]}),D?(0,u.jsx)(s.Ucs,{className:"spm-summary-toggle__chevron"}):(0,u.jsx)(s.Vr3,{className:"spm-summary-toggle__chevron"})]}),(0,u.jsxs)("div",{className:"spm-left__body".concat(D?" spm-left__body--open":""),children:[(0,u.jsxs)("div",{className:"spm-business",children:[(0,u.jsx)("div",{className:"spm-business__avatar",children:(0,u.jsx)(s.x1c,{})}),(0,u.jsxs)("div",{children:[(0,u.jsx)("p",{className:"spm-business__name",children:"Virtual Triage"}),(0,u.jsx)("p",{className:"spm-business__tagline",children:"Appointment Booking"})]})]}),(0,u.jsxs)("div",{className:"spm-line-items",children:[(0,u.jsxs)("div",{className:"spm-line-item",children:[(0,u.jsx)("span",{className:"spm-line-item__label",children:X()}),oe?(0,u.jsxs)("span",{className:"spm-line-item__original",children:[ae,re.toFixed(2)]}):(0,u.jsxs)("span",{className:"spm-line-item__value",children:[ae,re.toFixed(2)]})]}),oe&&(0,u.jsxs)("div",{className:"spm-line-item spm-line-item--discount",children:[(0,u.jsxs)("span",{className:"spm-line-item__label",children:[(0,u.jsx)(s.wJQ,{className:"spm-tag-icon"}),'Promo "',$.promo_code,'"']}),(0,u.jsxs)("span",{className:"spm-line-item__discount",children:["- ",ae,(re-ie).toFixed(2)]})]}),(0,u.jsx)("div",{className:"spm-divider"}),(0,u.jsxs)("div",{className:"spm-line-item spm-line-item--total",children:[(0,u.jsx)("span",{className:"spm-line-item__label",children:"Total due today"}),(0,u.jsxs)("span",{className:"spm-line-item__total",children:[ae,ie.toFixed(2)]})]})]}),(0,u.jsxs)("div",{className:"spm-refund",children:[(0,u.jsxs)("div",{className:"spm-refund__header",children:[(0,u.jsx)(s.SMR,{className:"spm-refund__icon"}),(0,u.jsx)("span",{className:"spm-refund__title",children:"Full Refund Guarantee"})]}),(0,u.jsxs)("p",{className:"spm-refund__text",children:["You're fully protected. If you have a valid reason \u2014 such as a cancellation, technical issue, or unavailability of your practitioner \u2014 you will receive a ",(0,u.jsx)("strong",{children:"100% refund"})," with no questions asked, processed within 5\u201310 business days."]}),(0,u.jsx)("a",{href:"/appointment-terms",target:"_blank",rel:"noopener noreferrer",className:"spm-refund__link",children:"Read our refund terms \u2192"})]}),(0,u.jsxs)("div",{className:"spm-secure-note",children:[(0,u.jsx)(s.JhU,{className:"spm-secure-note__icon"}),(0,u.jsx)("span",{children:"256-bit SSL encrypted & PCI DSS compliant"})]})]})]}),(0,u.jsxs)("div",{className:"spm-right",children:[!p&&(0,u.jsx)("button",{className:"spm-close",onClick:te,disabled:v,"aria-label":"Close",children:(0,u.jsx)(s.QCr,{})}),(0,u.jsx)("h2",{className:"spm-right__title",children:"Pay with card"}),(0,u.jsx)("p",{className:"spm-right__subtitle",children:"Complete your payment securely below"}),(0,u.jsxs)("form",{className:"spm-form",onSubmit:async e=>{e.preventDefault(),y(!0),x(null),j(!1);try{var r,o,s,u,d,p;if(!m||!g)throw new Error("Payment system not available. Please refresh and try again.");let e;if(A&&L)e=L;else{const{error:t,paymentMethod:n}=await m.createPaymentMethod({type:"card",card:g.getElement(l.CardElement)});if(t)throw new Error(t.message);e=n}const c=F.trim(),f=ee(),h=(0,a.A)((0,a.A)({doctor_id:t.doctor_id||t.Health_Professional_id,appointment_fee:f,appointment_type:X(),date:t.date||t.appointmentDate||t.selectedDate,time:t.time,amount:Math.round(parseFloat(f)),payment_method_id:e.id,schedule_id:null===(r=t.scheduleData)||void 0===r?void 0:r.Schecule_id,duration:null===(o=t.scheduleData)||void 0===o?void 0:o.Appointment_Duration,currency:q&&null!==$&&void 0!==$&&$.currency?$.currency:null!==(s=t.scheduleData)&&void 0!==s&&s.Currency&&""!==(null===(u=t.scheduleData)||void 0===u?void 0:u.Currency)&&"\xa3"!==(null===(d=t.scheduleData)||void 0===d?void 0:d.Currency)?null===(p=t.scheduleData)||void 0===p?void 0:p.Currency:"gbp",package_info:t.package_info,customer_name:k,customer_email:S,save_payment_method:C,promo_applied:!(!q||!c)},c&&q?{promo_code:c}:{}),{},{gender:t.gender,full_name:t.full_name,age:t.age,weight:t.weight,email:t.email,mobile_number:t.mobile_number,preappointmentdetail_id:t.preappointmentdetail_id,body_chart_image:t.body_chart_image,patient_address:t.patient_address,pre_appointment_details:JSON.stringify(t.pre_appointment_details||[]),body_points:JSON.stringify(t.body_points||[]),page_url:t.page_url}),v=await i.A.post("/stripe-connect/payment-processing/",h,{headers:{Authorization:"Bearer ".concat(t.token)}});if(200===v.status&&!0===v.data.requires_action){const{error:t,paymentIntent:r}=await m.confirmCardPayment(v.data.client_secret);if(t)throw new Error(t.message||"3D Secure authentication failed. Please try again.");if("succeeded"!==r.status)throw new Error("Payment was not completed after authentication. Please try again.");j(!0),C&&ne(e);const i={success:!0,message:"Payment confirmed after 3D Secure authentication",data:(0,a.A)((0,a.A)({},v.data),{},{paymentIntent:r}),payment_method_id:e.id,paymentIntentId:r.id};setTimeout(()=>n(i),2500)}else{if(200!==v.status||!0!==v.data.status)throw new Error(v.data.error||v.data.message||"Payment failed");{j(!0),C&&ne(e);const t={success:!0,message:v.data.message||"Payment successful",data:v.data,payment_method_id:e.id,payment_intent_id:v.data.payment_intent_id||null};setTimeout(()=>n(t),2500)}}}catch(h){var f;if(console.error("Payment error:",h),null!==(f=h.response)&&void 0!==f&&f.data){const e=h.response.data;let t=e.error||e.message||"Payment failed. Please try again.";if((t.includes("No such PaymentMethod")||t.includes("PaymentMethod"))&&(t="The payment method is invalid or expired. Please enter a new card and try again.",A&&L))try{const e=JSON.parse(localStorage.getItem("savedPaymentMethods")||"[]").filter(e=>e.id!==L.id);localStorage.setItem("savedPaymentMethods",JSON.stringify(e)),P(e),O(!1),R(null)}catch(v){console.error("Error removing invalid payment method:",v)}x(t),c.A.trackPaymentFailed(t)}else{const e=h.message||"Payment failed. Please try again.";x(e),c.A.trackPaymentFailed(e)}y(!1)}},children:[T.length>0&&(0,u.jsxs)("div",{className:"spm-saved",children:[(0,u.jsxs)("p",{className:"spm-label",children:[(0,u.jsx)(s.OKX,{className:"spm-label__icon"}),"Saved cards"]}),(0,u.jsx)("div",{className:"spm-saved__list",children:T.map(e=>(0,u.jsxs)("div",{className:"spm-saved__item".concat((null===L||void 0===L?void 0:L.id)===e.id?" spm-saved__item--selected":""),onClick:()=>{R(e),O(!0)},role:"button",tabIndex:0,children:[(0,u.jsx)(s.x1c,{className:"spm-saved__card-icon"}),(0,u.jsxs)("div",{className:"spm-saved__card-info",children:[(0,u.jsx)("span",{className:"spm-saved__brand",children:e.card.brand}),(0,u.jsxs)("span",{className:"spm-saved__digits",children:["\u2022\u2022\u2022\u2022 ",e.card.last4]}),(0,u.jsxs)("span",{className:"spm-saved__expiry",children:["Exp ",e.card.exp_month,"/",e.card.exp_year]})]}),(0,u.jsx)("div",{className:"spm-saved__radio",children:(0,u.jsx)("div",{className:"spm-radio".concat((null===L||void 0===L?void 0:L.id)===e.id?" spm-radio--checked":"")})})]},e.id))}),A&&(0,u.jsx)("button",{type:"button",className:"spm-link-btn",onClick:()=>{O(!1),R(null)},children:"+ Use a different card"})]}),(0,u.jsxs)("div",{className:"spm-field-group",children:[(0,u.jsxs)("div",{className:"spm-field",children:[(0,u.jsx)("label",{className:"spm-label",htmlFor:"spm-name",children:"Full name"}),(0,u.jsx)("input",{id:"spm-name",className:"spm-input",type:"text",value:k,onChange:e=>_(e.target.value),placeholder:"Jane Smith",required:!0,autoComplete:"name"})]}),(0,u.jsxs)("div",{className:"spm-field",children:[(0,u.jsx)("label",{className:"spm-label",htmlFor:"spm-email",children:"Email address"}),(0,u.jsx)("input",{id:"spm-email",className:"spm-input",type:"email",value:S,onChange:e=>N(e.target.value),placeholder:"jane@example.com",required:!0,autoComplete:"email"})]})]}),!A&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"spm-field",children:[(0,u.jsx)("label",{className:"spm-label",children:"Card information"}),(0,u.jsxs)("div",{className:"spm-card-element",children:[(0,u.jsx)(l.CardElement,{options:f}),(0,u.jsxs)("div",{className:"spm-card-brands",children:[(0,u.jsx)("span",{className:"spm-brand-badge spm-brand-badge--visa",children:"VISA"}),(0,u.jsx)("span",{className:"spm-brand-badge spm-brand-badge--mc",children:"MC"}),(0,u.jsx)("span",{className:"spm-brand-badge spm-brand-badge--amex",children:"AMEX"})]})]})]}),(0,u.jsxs)("label",{className:"spm-checkbox",children:[(0,u.jsx)("input",{type:"checkbox",checked:C,onChange:e=>E(e.target.checked)}),(0,u.jsx)("span",{className:"spm-checkbox__box"}),(0,u.jsxs)("span",{className:"spm-checkbox__label",children:[(0,u.jsx)(s.dIn,{className:"spm-checkbox__icon"}),"Save card for future appointments"]})]})]}),(0,u.jsxs)("div",{className:"spm-promo",children:[(0,u.jsxs)("button",{type:"button",className:"spm-link-btn spm-promo__toggle",onClick:()=>Q(e=>!e),children:[(0,u.jsx)(s.wJQ,{className:"spm-tag-icon"}),Y?"Hide promo code":"Add promo code"]}),Y&&(0,u.jsxs)("div",{className:"spm-promo__row",children:[(0,u.jsx)("input",{className:"spm-input spm-promo__input".concat(q?" spm-input--valid":"").concat(W?" spm-input--error":""),type:"text",value:F,onChange:e=>{U(e.target.value),(q||W)&&(H(!1),G(null),K(null))},placeholder:"PROMO2024",autoComplete:"off",disabled:v||B}),(0,u.jsx)("button",{type:"button",className:"spm-promo__apply",onClick:async()=>{const e=F.trim();if(e){V(!0),G(null),H(!1),K(null);try{var n;const r=parseFloat(Z()),o=await i.A.post("/stripe/promo-validator/",{amount:r,promo_code:e},{headers:{Authorization:"Bearer ".concat(t.token)}});var a;if(200!==o.status||!0!==(null===(n=o.data)||void 0===n?void 0:n.status))throw new Error((null===(a=o.data)||void 0===a?void 0:a.message)||"Invalid promo code");H(!0),K({promo_code:o.data.promo_code,discount:o.data.discount,final_amount:o.data.final_amount,currency:o.data.currency}),G(null),c.A.trackPromoCodeApplied(e,o.data.discount)}catch(u){var r,o,s,l;H(!1),K(null),G((null===(r=u.response)||void 0===r||null===(o=r.data)||void 0===o?void 0:o.message)||(null===(s=u.response)||void 0===s||null===(l=s.data)||void 0===l?void 0:l.error)||u.message||"Invalid promo code. Please try again.")}finally{V(!1)}}else G("Please enter a promo code")},disabled:v||B||!F.trim(),children:B?(0,u.jsx)("span",{className:"spm-spinner"}):"Apply"}),F.trim()&&(0,u.jsx)("button",{type:"button",className:"spm-promo__clear",onClick:()=>{U(""),H(!1),G(null),K(null)},disabled:v||B,children:"\u2715"})]}),q&&$&&(0,u.jsxs)("div",{className:"spm-alert spm-alert--success",children:[(0,u.jsx)(s.A7C,{}),"Promo ",(0,u.jsxs)("strong",{children:['"',$.promo_code,'"']})," applied \u2014\xa0 you save ",ae,(re-ie).toFixed(2),"!"]}),W&&(0,u.jsxs)("div",{className:"spm-alert spm-alert--error",children:[(0,u.jsx)(s.TNq,{}),W]})]}),b&&(0,u.jsxs)("div",{className:"spm-alert spm-alert--error spm-alert--lg",children:[(0,u.jsx)(s.TNq,{}),b]}),(0,u.jsx)("button",{type:"submit",className:"spm-pay-btn",disabled:!m||v||!A&&(!k||!S),children:v?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("span",{className:"spm-spinner spm-spinner--white"}),"Processing\u2026"]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.JhU,{className:"spm-pay-btn__lock"}),"Pay ",ae,ie.toFixed(2)]})}),(0,u.jsxs)("div",{className:"spm-footer",children:[(0,u.jsxs)("div",{className:"spm-footer__powered",children:[(0,u.jsx)(s.JhU,{className:"spm-footer__lock"}),(0,u.jsx)("span",{children:"Secured by"}),(0,u.jsx)(h,{})]}),(0,u.jsxs)("div",{className:"spm-footer__links",children:[(0,u.jsx)("a",{href:"/terms-and-conditions",target:"_blank",rel:"noopener noreferrer",children:"Terms"}),(0,u.jsx)("span",{className:"spm-footer__sep",children:"\xb7"}),(0,u.jsx)("a",{href:"/privacy-notice",target:"_blank",rel:"noopener noreferrer",children:"Privacy"}),(0,u.jsx)("span",{className:"spm-footer__sep",children:"\xb7"}),(0,u.jsx)("a",{href:"/appointment-terms",target:"_blank",rel:"noopener noreferrer",children:"Refund Policy"})]})]})]})]})]});return p?se:(0,u.jsx)("div",{className:"spm-overlay",onClick:te,children:se})},g=e=>{let{appointmentData:t,onSuccess:i,onClose:o,isOpen:s,embedded:l=!1}=e;const[c,f]=r.useState(null),[h,g]=r.useState(!0);if((0,r.useEffect)(()=>{s&&!c?(async()=>{if(!p){const[e,t]=await Promise.all([n.e(677).then(n.bind(n,9677)),Promise.resolve().then(n.t.bind(n,3393,23))]);d||(d=e.loadStripe("pk_live_51MkDNUKx0rXRL6v7CPCCeukNvoyvRBJJC8igLsmC1wR3BN4qx9BrAZ6VnZiy7Hqg0E3m4jg0esk8qFejT5HMRN3h00CCt4iMlG")),p={Elements:t.Elements,CardElement:t.CardElement,useStripe:t.useStripe,useElements:t.useElements}}return(0,a.A)({stripePromise:d},p)})().then(e=>{f(e),g(!1)}):s||(f(null),g(!0))},[s,c]),!s)return null;if(h||!c){const e=(0,u.jsx)("div",{className:"spm-modal spm-modal--loading".concat(l?" spm-modal--embedded":""),children:(0,u.jsxs)("div",{className:"spm-loading",children:[(0,u.jsx)("span",{className:"spm-spinner spm-spinner--dark"}),(0,u.jsx)("p",{children:"Loading secure payment\u2026"})]})});return l?e:(0,u.jsx)("div",{className:"spm-overlay",children:e})}const{Elements:v,stripePromise:y}=c;return(0,u.jsx)(v,{stripe:y,children:(0,u.jsx)(m,{StripeHooks:c,appointmentData:t,onSuccess:i,onClose:o,embedded:l})})},v=e=>{var t,n;let{practitioner:s,selectedSlot:l,selectedDate:d,onClose:p,appointmentType:f,appointmentFee:h,onAppointmentBooked:m,scheduleData:v}=e;const[y,b]=(0,r.useState)({fullName:"",email:"",phone:"",age:"",gender:"",weight:"",bodyPoints:[],preappointmentdetail_id:"",pre_appointment_details:[],body_chart_image:"",date:"",time:"",patient_address:""}),x=(0,r.useRef)(null),w=((0,r.useRef)(null),(0,r.useRef)(null)),[j,k]=(0,r.useState)(!1),[_,S]=(0,r.useState)(!1),[N,C]=(0,r.useState)(null),[E,T]=(0,r.useState)(!1),[P,A]=(0,r.useState)({insurancebooking_Id:"",insuarance_number:"",insurance_company_name:"",membership_number:"",reference_number:"",group_number:"",coverage_type:"",date_of_issue:"",date_of_expiry:"",preauth_number:""}),[O,L]=(0,r.useState)({}),[R,D]=(0,r.useState)(()=>localStorage.getItem("authToken")),[I,M]=(0,r.useState)(f||"initial"),z="initial"===I?null!==(t=null===v||void 0===v?void 0:v.initial_appointment_fee)&&void 0!==t?t:h:null!==(n=null===v||void 0===v?void 0:v.follow_up_appointment_fee)&&void 0!==n?n:h,[F,U]=(0,r.useState)(!1),[B,V]=(0,r.useState)(!0),[q,H]=(0,r.useState)(!1),[W,G]=(0,r.useState)(null),$=e=>{O[e]&&L(t=>{const n=(0,a.A)({},t);return delete n[e],n})};if((0,r.useEffect)(()=>{b(e=>(0,a.A)((0,a.A)({},e),{},{date:d,time:l}))},[d,l]),(0,r.useEffect)(()=>{if(null===s||void 0===s||!s.Health_Professional_Id)return;(async()=>{try{const e=await i.A.get("/patient/charting/get-charting-details/?doctor_id=".concat(s.Health_Professional_Id));200===e.status&&e.data.status&&b(t=>(0,a.A)((0,a.A)({},t),{},{preappointmentdetail_id:e.data.data.id,body_chart_image:e.data.data.body_chart_image,pre_appointment_details:e.data.data.questions.map(e=>({id:e.id,question:e.question,answer:""}))}))}catch(e){console.error("Error fetching charting details:",e)}})()},[null===s||void 0===s?void 0:s.Health_Professional_Id]),(0,r.useEffect)(()=>()=>{sessionStorage.removeItem("insuranceData")},[]),(0,r.useEffect)(()=>{c.A.updateStep(2)},[]),!s)return null;const K=()=>y.body_chart_image&&""!==y.body_chart_image.trim()&&"null"!==y.body_chart_image&&"undefined"!==y.body_chart_image,Y=e=>{const{name:t,value:n}=e.target;A(e=>(0,a.A)((0,a.A)({},e),{},{[t]:n})),$(t)},Q=s.Full_Name||s.full_Name||s.full_name||"Practitioner",J=_;return(0,u.jsx)("div",{className:"book-appointment-modal-overlay",children:(0,u.jsxs)("div",{className:"book-appointment-modal-content",children:[(0,u.jsx)("button",{className:"modal-close-btn",onClick:()=>{c.A.trackModalAbandoned(E?3:2),p()},"aria-label":"Close modal",children:"\xd7"}),(0,u.jsxs)("div",{className:"bam-summary-bar",children:[(0,u.jsxs)("div",{className:"bam-summary-item",children:[(0,u.jsx)("span",{className:"bam-summary-label",children:"Practitioner"}),(0,u.jsx)("span",{className:"bam-summary-value",children:Q})]}),(0,u.jsx)("div",{className:"bam-summary-divider"}),(0,u.jsxs)("div",{className:"bam-summary-item",children:[(0,u.jsx)("span",{className:"bam-summary-label",children:"Date & Time"}),(0,u.jsxs)("span",{className:"bam-summary-value",children:[d," at ",l]})]}),(0,u.jsx)("div",{className:"bam-summary-divider"}),(0,u.jsxs)("div",{className:"bam-summary-item",children:[(0,u.jsx)("span",{className:"bam-summary-label",children:"Fee"}),(0,u.jsxs)("span",{className:"bam-summary-value bam-summary-fee",children:["\xa3",z]})]})]}),(()=>{const e=j?4:E?3:2,t=["Slot Selection","Appointment Details","Payment"];return(0,u.jsx)("div",{className:"bam-progress",children:t.map((n,a)=>{const i=a+1,o=e>i,s=e===i;return(0,u.jsxs)(r.Fragment,{children:[(0,u.jsxs)("div",{className:"bam-progress-step".concat(o?" bam-progress-step--done":s?" bam-progress-step--active":""),children:[(0,u.jsx)("div",{className:"bam-progress-circle",children:o?(0,u.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",children:(0,u.jsx)("path",{d:"M20 6L9 17L4 12",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})}):i}),(0,u.jsx)("span",{className:"bam-progress-label",children:n})]}),a<t.length-1&&(0,u.jsx)("div",{className:"bam-progress-line".concat(o?" bam-progress-line--done":"")})]},i)})})})(),(0,u.jsx)("div",{className:"bam-body",children:E?(0,u.jsx)(g,{embedded:!0,isOpen:E,onClose:p,appointmentData:{doctor_id:null===s||void 0===s?void 0:s.Health_Professional_Id,appointmentDate:d,appointmentType:I,amount:z,scheduleData:v||{initial_appointment_fee:h,follow_up_appointment_fee:h,Currency:"\xa3"},package_info:null===v||void 0===v?void 0:v.package_info,token:R,date:(e=>{if(!e)return"Invalid Date";const t=new Date(e);if(isNaN(t))return"Invalid Date";const n=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0"),r=t.getFullYear();return"".concat(n,"/").concat(a,"/").concat(r)})(d),time:l,gender:y.gender,full_name:y.fullName,age:y.age,weight:y.weight,email:y.email,mobile_number:y.phone,preappointmentdetail_id:y.preappointmentdetail_id,body_chart_image:y.body_chart_image,patient_address:y.patient_address,pre_appointment_details:y.pre_appointment_details,body_points:y.bodyPoints,page_url:window.location.href},onSuccess:async e=>{if(null!==e&&void 0!==e&&e.success){var t;window.dataLayer=window.dataLayer||[];const a=Number(z)||0,r=(null===e||void 0===e?void 0:e.paymentIntentId)||(null===e||void 0===e?void 0:e.id)||"vt_".concat(Date.now());window.dataLayer.push({event:"purchase",transaction_id:r,value:a,currency:"GBP",doctor_id:(null===s||void 0===s?void 0:s.Health_Professional_Id)||"unknown"}),window.dataLayer.push({event:"vt_purchase",value:a,currency:"GBP"}),c.A.updateEventName("Payment Successful"),c.A.eventData["appointment-status"]="paid";const o=sessionStorage.getItem("insuranceData");if(o){try{await i.A.post("/api/v1/patient/insurance/send_to_medserve/",JSON.parse(o))}catch(n){console.error("Medserve error:",n)}sessionStorage.removeItem("insuranceData")}const l=(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.appointment_id)||null;C(l),k(!0),T(!1)}else window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"purchase_failed",reason:(null===e||void 0===e?void 0:e.message)||"unknown"}),console.error("Payment failed:",null===e||void 0===e?void 0:e.message)}}):(0,u.jsxs)(u.Fragment,{children:[(y.pre_appointment_details.length>0||K())&&(0,u.jsxs)("div",{className:"bam-health-section",children:[(0,u.jsxs)("button",{type:"button",className:"bam-health-toggle",onClick:()=>V(e=>!e),children:[(0,u.jsxs)("span",{children:["\ud83e\ude7a Health Assessment ",(0,u.jsx)("span",{className:"bam-health-toggle__optional",children:"(Optional)"})]}),(0,u.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",style:{transform:B?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease",flexShrink:0},children:(0,u.jsx)("path",{d:"M6 9L12 15L18 9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),B&&(0,u.jsxs)("div",{className:"bam-health-body",children:[(0,u.jsx)("p",{className:"bam-health-desc",children:"Answer the questions below and optionally mark areas of concern on the body chart."}),y.pre_appointment_details.map(e=>(0,u.jsxs)("div",{className:"form-field",children:[(0,u.jsx)("label",{htmlFor:"question-".concat(e.id),children:e.question}),(0,u.jsx)("textarea",{id:"question-".concat(e.id),value:e.answer,onChange:t=>{return n=e.id,r=t.target.value,b(e=>(0,a.A)((0,a.A)({},e),{},{pre_appointment_details:e.pre_appointment_details.map(e=>e.id===n?(0,a.A)((0,a.A)({},e),{},{answer:r}):e)})),void(O["question-".concat(n)]&&$("question-".concat(n)));var n,r},placeholder:"Please provide your answer..."})]},e.id)),K()&&(0,u.jsxs)("div",{className:"body-chart-container",children:[(0,u.jsx)("h4",{children:"Click on the body chart to mark areas of concern"}),(0,u.jsxs)("div",{ref:w,className:"chart-wrapper",onClick:e=>{if(!w.current)return;const t=w.current.getBoundingClientRect(),n=(e.clientX-t.left)/t.width,r=(e.clientY-t.top)/t.height,i=Math.max(0,Math.min(1,n)),o=Math.max(0,Math.min(1,r));b(e=>(0,a.A)((0,a.A)({},e),{},{bodyPoints:[...e.bodyPoints,{x_axis:i,y_axis:o,question:"",answer:""}]}))},children:[(0,u.jsx)("img",{ref:x,src:y.body_chart_image,className:"charting-image",alt:"Body Chart"}),y.bodyPoints.map((e,t)=>{var n,a;return(0,u.jsx)("div",{className:"body-point",style:{top:"".concat(e.y_axis*((null===(n=x.current)||void 0===n?void 0:n.height)||0),"px"),left:"".concat(e.x_axis*((null===(a=x.current)||void 0===a?void 0:a.width)||0),"px")},children:t+1},t)})]})]}),y.bodyPoints.length>0&&(0,u.jsxs)("div",{className:"body-chart-explanations",children:[(0,u.jsx)("h4",{children:"Explain the marked areas"}),y.bodyPoints.map((e,t)=>(0,u.jsxs)("div",{className:"form-field",children:[(0,u.jsxs)("label",{htmlFor:"point-".concat(t),children:["Point ",t+1," \u2014 Description"]}),(0,u.jsx)("textarea",{id:"point-".concat(t),value:e.answer,onChange:n=>((e,t,n)=>{b(r=>{const i=[...r.bodyPoints];return i[e]=(0,a.A)((0,a.A)({},i[e]),{},{question:t,answer:n}),(0,a.A)((0,a.A)({},r),{},{bodyPoints:i})}),O["point-".concat(e)]&&$("point-".concat(e))})(t,e.question,n.target.value),placeholder:"Describe the issue or concern at this location..."})]},t))]})]})]}),(0,u.jsxs)("div",{className:"bam-insurance-section",children:[(0,u.jsxs)("button",{type:"button",className:"bam-insurance-toggle".concat(q?" bam-insurance-toggle--saved":""),onClick:()=>{const e=!F;U(e),e&&c.A.trackInsuranceOpened()},children:[(0,u.jsxs)("span",{children:["\ud83d\udee1\ufe0f"," ",q?"Insurance details saved \u2713":"Add insurance details (Optional)"]}),(0,u.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",style:{transform:F?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease",flexShrink:0},children:(0,u.jsx)("path",{d:"M6 9L12 15L18 9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),F&&(0,u.jsxs)("div",{className:"bam-insurance-form",children:[(0,u.jsxs)("div",{className:"form-row",children:[(0,u.jsxs)("div",{className:"form-field",children:[(0,u.jsx)("label",{htmlFor:"insurancebooking_Id",children:"Insurance ID"}),(0,u.jsx)("input",{id:"insurancebooking_Id",type:"text",name:"insurancebooking_Id",value:P.insurancebooking_Id,onChange:Y,placeholder:"Enter insurance ID"})]}),(0,u.jsxs)("div",{className:"form-field",children:[(0,u.jsx)("label",{htmlFor:"insuarance_number",children:"Policy Number *"}),(0,u.jsx)("input",{id:"insuarance_number",type:"text",name:"insuarance_number",value:P.insuarance_number,onChange:Y,placeholder:"Enter policy number",className:O.insuarance_number?"error":"",required:!0}),O.insuarance_number&&(0,u.jsx)("span",{className:"error-message",children:O.insuarance_number})]})]}),(0,u.jsxs)("div",{className:"form-row",children:[(0,u.jsxs)("div",{className:"form-field",children:[(0,u.jsx)("label",{htmlFor:"insurance_company_name",children:"Insurance Company *"}),(0,u.jsx)("input",{id:"insurance_company_name",type:"text",name:"insurance_company_name",value:P.insurance_company_name,onChange:Y,placeholder:"Enter insurance company name",className:O.insurance_company_name?"error":"",required:!0}),O.insurance_company_name&&(0,u.jsx)("span",{className:"error-message",children:O.insurance_company_name})]}),(0,u.jsxs)("div",{className:"form-field",children:[(0,u.jsx)("label",{htmlFor:"membership_number",children:"Membership Number *"}),(0,u.jsx)("input",{id:"membership_number",type:"text",name:"membership_number",value:P.membership_number,onChange:Y,placeholder:"Enter membership number",required:!0})]})]}),(0,u.jsxs)("div",{className:"form-row",children:[(0,u.jsxs)("div",{className:"form-field",children:[(0,u.jsx)("label",{htmlFor:"reference_number",children:"Reference Number"}),(0,u.jsx)("input",{id:"reference_number",type:"text",name:"reference_number",value:P.reference_number,onChange:Y,placeholder:"Enter reference number"})]}),(0,u.jsxs)("div",{className:"form-field",children:[(0,u.jsx)("label",{htmlFor:"group_number",children:"Group Number"}),(0,u.jsx)("input",{id:"group_number",type:"text",name:"group_number",value:P.group_number,onChange:Y,placeholder:"Enter group number"})]})]}),(0,u.jsxs)("div",{className:"form-row",children:[(0,u.jsxs)("div",{className:"form-field",children:[(0,u.jsx)("label",{htmlFor:"coverage_type",children:"Coverage Type"}),(0,u.jsx)("input",{id:"coverage_type",type:"text",name:"coverage_type",value:P.coverage_type,onChange:Y,placeholder:"Enter coverage type"})]}),(0,u.jsxs)("div",{className:"form-field",children:[(0,u.jsx)("label",{htmlFor:"date_of_issue",children:"Effective Date"}),(0,u.jsx)("input",{id:"date_of_issue",type:"date",name:"date_of_issue",value:P.date_of_issue,onChange:Y})]})]}),(0,u.jsxs)("div",{className:"form-row",children:[(0,u.jsxs)("div",{className:"form-field",children:[(0,u.jsx)("label",{htmlFor:"date_of_expiry",children:"Expiration Date"}),(0,u.jsx)("input",{id:"date_of_expiry",type:"date",name:"date_of_expiry",value:P.date_of_expiry,onChange:Y})]}),(0,u.jsxs)("div",{className:"form-field",children:[(0,u.jsx)("label",{htmlFor:"preauth_number",children:"Pre-Authorization Number"}),(0,u.jsx)("input",{id:"preauth_number",type:"text",name:"preauth_number",value:P.preauth_number,onChange:Y,placeholder:"Enter pre-auth number"})]})]}),(0,u.jsxs)("div",{className:"bam-insurance-form-actions",children:[(0,u.jsx)("button",{type:"button",className:"insurance-skip-button",onClick:()=>U(!1),children:"Cancel"}),(0,u.jsx)("button",{type:"button",className:"insurance-save-button",onClick:async()=>{var e,t;const n={};if(null!==(e=P.insurance_company_name)&&void 0!==e&&e.trim()||(n.insurance_company_name="Insurance company name is required"),null!==(t=P.insuarance_number)&&void 0!==t&&t.trim()||(n.insuarance_number="Policy number is required"),Object.keys(n).length>0)L(e=>(0,a.A)((0,a.A)({},e),n));else try{const e=localStorage.getItem("authToken");if(!e)return void alert("Please log in to save insurance details.");const t={insurancebooking_Id:P.insurancebooking_Id||"",insuarance_number:P.insuarance_number,insurance_company_name:P.insurance_company_name,membership_number:P.membership_number||"",reference_number:P.reference_number||"",group_number:P.group_number||"",coverage_type:P.coverage_type||"",date_of_issue:P.date_of_issue||"",date_of_expiry:P.date_of_expiry||"",preauth_number:P.preauth_number||""};if(200!==(await i.A.post("/patient/insurance/add_insurance/",t,{headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}})).status)throw new Error("Failed to save insurance details");sessionStorage.setItem("insuranceData",JSON.stringify(t)),G(P),H(!0),U(!1),c.A.trackInsuranceSaved()}catch(r){console.error("Error saving insurance details:",r),alert("Error saving insurance details. Please try again.")}},disabled:!(()=>{var e,t;return""!==(null===(e=P.insurance_company_name)||void 0===e?void 0:e.trim())&&""!==(null===(t=P.insuarance_number)||void 0===t?void 0:t.trim())})(),children:"Save Insurance"})]})]})]}),(0,u.jsxs)("div",{className:"bam-emergency-disclaimer",children:[(0,u.jsx)("strong",{children:"\u26a0\ufe0f Not for emergencies."})," Virtual Triage is not a healthcare provider \u2014 call 999 if you need urgent help."]}),(0,u.jsx)("div",{className:"terms-section",children:(0,u.jsxs)("div",{className:"terms-checkbox",children:[(0,u.jsx)("input",{type:"checkbox",id:"terms-checkbox",checked:_,onChange:()=>{const e=!_;S(e),c.A.updateConfirmationCheckbox(e)}}),(0,u.jsxs)("label",{htmlFor:"terms-checkbox",children:["I understand all medical services are provided independently by clinicians and agree to the"," ",(0,u.jsx)("a",{href:"/terms-and-conditions",target:"_blank",rel:"noopener noreferrer",children:"Terms & Conditions"}),","," ",(0,u.jsx)("a",{href:"/privacy-notice",target:"_blank",rel:"noopener noreferrer",children:"Privacy Notice"}),","," ",(0,u.jsx)("a",{href:"/cookie-policy",target:"_blank",rel:"noopener noreferrer",children:"Cookie Policy"})," and"," ",(0,u.jsx)("a",{href:"/appointment-terms",target:"_blank",rel:"noopener noreferrer",children:"Appointment Terms"}),"."]})]})})]})}),(0,u.jsx)("div",{className:"step-actions",children:E?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("button",{className:"back-button",onClick:()=>T(!1),children:"\u2190 Back to Details"}),(0,u.jsxs)("div",{className:"bam-insurance-refund-note",children:[(0,u.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",children:(0,u.jsx)("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,u.jsxs)("span",{children:["If you added insurance details and your claim is accepted, the amount covered by your insurer ",(0,u.jsx)("strong",{children:"will be refunded"})]})]})]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("button",{className:"back-button",onClick:p,children:"Cancel"}),(0,u.jsxs)("div",{className:"proceed-button-wrapper".concat(J?"":" proceed-button-wrapper--blocked"),children:[(0,u.jsx)("button",{className:"proceed-button",onClick:()=>{const e=(null===s||void 0===s?void 0:s.Full_Name)||(null===s||void 0===s?void 0:s.full_name)||(null===s||void 0===s?void 0:s.full_Name)||"";c.A.updatePersonalInfo((0,a.A)((0,a.A)({},y),{},{doctor_name:e})),c.A.updateProceedToPayment(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"checkout_opened"}),c.A.trackPaymentStepOpened(),T(!0)},disabled:!J,children:"Proceed to Payment \u2192"}),!J&&(0,u.jsx)("div",{className:"proceed-tooltip",children:"\u26a0 Please accept the Terms & Conditions"})]})]})}),j&&(0,u.jsx)(o.default,{appointment_id:N,onClose:p,appointmentStart:d+" "+l+":00",appointmentEnd:d+" "+l+":00"})]})})}},7064:()=>{},7234:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var a=n-1>>>1,r=e[a];if(!(0<i(r,t)))break e;e[a]=t,e[n]=r,n=a}}function a(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,r=e.length,o=r>>>1;a<o;){var s=2*(a+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<r&&0>i(u,l)?(e[a]=u,e[c]=n,a=c):(e[a]=l,e[s]=n,a=s);else{if(!(c<r&&0>i(u,n)))break e;e[a]=u,e[c]=n,a=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,f=3,h=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=a(u);null!==t;){if(null===t.callback)r(u);else{if(!(t.startTime<=e))break;r(u),t.sortIndex=t.expirationTime,n(c,t)}t=a(u)}}function w(e){if(g=!1,x(e),!m)if(null!==a(c))m=!0,L(j);else{var t=a(u);null!==t&&R(w,t.startTime-e)}}function j(e,n){m=!1,g&&(g=!1,y(N),N=-1),h=!0;var i=f;try{for(x(n),p=a(c);null!==p&&(!(p.expirationTime>n)||e&&!T());){var o=p.callback;if("function"===typeof o){p.callback=null,f=p.priorityLevel;var s=o(p.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?p.callback=s:p===a(c)&&r(c),x(n)}else r(c);p=a(c)}if(null!==p)var l=!0;else{var d=a(u);null!==d&&R(w,d.startTime-n),l=!1}return l}finally{p=null,f=i,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,_=!1,S=null,N=-1,C=5,E=-1;function T(){return!(t.unstable_now()-E<C)}function P(){if(null!==S){var e=t.unstable_now();E=e;var n=!0;try{n=S(!0,e)}finally{n?k():(_=!1,S=null)}}else _=!1}if("function"===typeof b)k=function(){b(P)};else if("undefined"!==typeof MessageChannel){var A=new MessageChannel,O=A.port2;A.port1.onmessage=P,k=function(){O.postMessage(null)}}else k=function(){v(P,0)};function L(e){S=e,_||(_=!0,k())}function R(e,n){N=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,L(j))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return a(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,r,i){var o=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?o+i:o:i=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:r,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>o?(e.sortIndex=i,n(u,e),null===a(c)&&e===a(u)&&(g?(y(N),N=-1):g=!0,R(w,i-o))):(e.sortIndex=s,n(c,e),m||h||(m=!0,L(j))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},7488:(e,t,n)=>{"use strict";n.d(t,{oR:()=>_});n(3986);var a=n(2555),r=n(5043);!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}(':root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n');var i=e=>"number"==typeof e&&!isNaN(e),o=e=>"string"==typeof e,s=e=>"function"==typeof e,l=e=>(0,r.isValidElement)(e)||o(e)||s(e)||i(e);function c(e){let{enter:t,exit:n,appendPosition:a=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(e){let{children:s,position:l,preventExitTransition:c,done:u,nodeRef:d,isIn:p,playToast:f}=e,h=a?"".concat(t,"--").concat(l):t,m=a?"".concat(n,"--").concat(l):n,g=(0,r.useRef)(0);return(0,r.useLayoutEffect)(()=>{let e=d.current,t=h.split(" "),n=a=>{a.target===d.current&&(f(),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===g.current&&"animationcancel"!==a.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)},[]),(0,r.useEffect)(()=>{let e=d.current,t=()=>{e.removeEventListener("animationend",t),i?function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,{scrollHeight:a,style:r}=e;requestAnimationFrame(()=>{r.minHeight="initial",r.height=a+"px",r.transition="all ".concat(n,"ms"),requestAnimationFrame(()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(t,n)})})}(e,u,o):u()};p||(c?t():(g.current=1,e.className+=" ".concat(m),e.addEventListener("animationend",t)))},[p]),r.createElement(r.Fragment,null,s)}}var u=1,d=()=>"".concat(u++);var p=new Map,f=[],h=new Set,m=()=>p.size>0;function g(e,t){var n;if(t)return!(null==(n=p.get(t))||!n.isToastActive(e));let a=!1;return p.forEach(t=>{t.isToastActive(e)&&(a=!0)}),a}function v(e){if(m()){if(null==e||(e=>o(e)||i(e))(e))p.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=p.get(e.containerId);t?t.removeToast(e.id):p.forEach(t=>{t.removeToast(e.id)})}}else f=f.filter(t=>null!=e&&t.options.toastId!==e)}function y(e,t){l(e)&&(m()||f.push({content:e,options:t}),p.forEach(n=>{n.buildToast(e,t)}))}function b(e,t){p.forEach(n=>{(null==t||null==t||!t.containerId||(null==t?void 0:t.containerId)===n.id)&&n.toggle(e,null==t?void 0:t.id)})}function x(e){return e&&(o(e.toastId)||i(e.toastId))?e.toastId:d()}function w(e,t){return y(e,t),t.toastId}function j(e,t){return(0,a.A)((0,a.A)({},t),{},{type:t&&t.type||e,toastId:x(t)})}function k(e){return(t,n)=>w(t,j(e,n))}function _(e,t){return w(e,j("default",t))}_.loading=(e,t)=>w(e,j("default",(0,a.A)({isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1},t))),_.promise=function(e,t,n){let r,{pending:i,error:l,success:c}=t;i&&(r=o(i)?_.loading(i,n):_.loading(i.render,(0,a.A)((0,a.A)({},n),i)));let u={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(e,t,i)=>{if(null==t)return void _.dismiss(r);let s=(0,a.A)((0,a.A)((0,a.A)({type:e},u),n),{},{data:i}),l=o(t)?{render:t}:t;return r?_.update(r,(0,a.A)((0,a.A)({},s),l)):_(l.render,(0,a.A)((0,a.A)({},s),l)),i},p=s(e)?e():e;return p.then(e=>d("success",c,e)).catch(e=>d("error",l,e)),p},_.success=k("success"),_.info=k("info"),_.error=k("error"),_.warning=k("warning"),_.warn=_.warning,_.dark=(e,t)=>w(e,j("default",(0,a.A)({theme:"dark"},t))),_.dismiss=function(e){v(e)},_.clearWaitingQueue=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})},_.isActive=g,_.update=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=((e,t)=>{let{containerId:n}=t;var a;return null==(a=p.get(n||1))?void 0:a.toasts.get(e)})(e,t);if(n){let{props:r,content:i}=n,o=(0,a.A)((0,a.A)((0,a.A)({delay:100},r),t),{},{toastId:t.toastId||e,updateId:d()});o.toastId!==e&&(o.staleId=e);let s=o.render||i;delete o.render,w(s,o)}},_.done=e=>{_.update(e,{progress:1})},_.onChange=function(e){return h.add(e),()=>{h.delete(e)}},_.play=e=>b(!0,e),_.pause=e=>b(!1,e);"undefined"!=typeof window?r.useLayoutEffect:r.useEffect;var S=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{enter:"Toastify--animate Toastify__".concat(e,"-enter"),exit:"Toastify--animate Toastify__".concat(e,"-exit"),appendPosition:t}};c(S("bounce",!0)),c(S("slide",!0)),c(S("zoom")),c(S("flip"))},7521:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});n(5043);var a=n(184),r=n(579);const i=e=>{let{appointment_id:t,onClose:n,appointmentStart:i,appointmentEnd:o}=e;const s=e=>e.toISOString().replace(/[-:]/g,"").split(".")[0]+"Z",l=e=>e.toISOString().split(".")[0]+"Z",c=i?s(new Date(i)):"20240101T120000Z",u=o?s(new Date(o)):"20240101T130000Z",d=i?l(new Date(i)):"2024-01-01T12:00:00Z",p=o?l(new Date(o)):"2024-01-01T13:00:00Z",f="BEGIN:VCALENDAR\nVERSION:2.0\nBEGIN:VEVENT\nDTSTART:".concat(c,"\nDTEND:").concat(u,"\nSUMMARY:Doctor Appointment\nEND:VEVENT\nEND:VCALENDAR"),h="data:text/calendar;charset=utf-8,".concat(f),m="https://calendar.google.com/calendar/render?action=TEMPLATE&text=Doctor%20Appointment&dates=".concat(c,"/").concat(u),g="https://outlook.office.com/calendar/0/deeplink/compose?subject=Doctor%20Appointment&startdt=".concat(d,"&enddt=").concat(p);return(0,r.jsx)("div",{className:"appointment-booked-modal-overlay",children:(0,r.jsxs)("div",{className:"appointment-booked-modal-content",children:[(0,r.jsx)("h2",{children:"Appointment Booked Successfully!"}),(0,r.jsx)("p",{children:"Your appointment has been successfully booked"}),(0,r.jsxs)("h4",{children:[(0,r.jsx)(a.bfZ,{})," You can add this appointment in your calendar for reminders by selecting one of your calendars below:"]}),(0,r.jsxs)("div",{className:"appointment-calendar-buttons",children:[(0,r.jsxs)("a",{className:"appointment-booked-link",href:h,download:"appointment.ics",children:[(0,r.jsx)(a.eMv,{})," Add to iCal"]}),(0,r.jsxs)("a",{className:"appointment-booked-link",href:g,target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(a.cpg,{})," Add to Microsoft Calendar"]}),(0,r.jsxs)("a",{className:"appointment-booked-link",href:m,target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(a.DSS,{})," Add to Google Calendar"]})]}),(0,r.jsx)("button",{className:"appointment-booked-modal-button",onClick:n,children:"Close"})]})})}},7950:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(2730)},8161:(e,t,n)=>{"use strict";var a,r=n(5043),i=(a=r)&&"object"===typeof a&&"default"in a?a.default:a;function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!==typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!==typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if("undefined"!==typeof n&&"function"!==typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(a){if("function"!==typeof a)throw new Error("Expected WrappedComponent to be a React component.");var l,c=[];function u(){l=e(c.map(function(e){return e.props})),d.canUseDOM?t(l):n&&(l=n(l))}var d=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.peek=function(){return l},r.rewind=function(){if(r.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=l;return l=void 0,c=[],e};var o=r.prototype;return o.UNSAFE_componentWillMount=function(){c.push(this),u()},o.componentDidUpdate=function(){u()},o.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),u()},o.render=function(){return i.createElement(a,this.props)},r}(r.PureComponent);return o(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(a)+")"),o(d,"canUseDOM",s),d}}},8298:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});n(5043);var a=n(579);const r=e=>{let{isOpen:t,onClose:n}=e;if(!t)return null;const r=e=>{window.location.href={Practitioner:"https://practitioner.virtualtriage.ai/",Patient:"https://patient.virtualtriage.ai/",Clinic:"https://clinic.virtualtriage.ai/"}[e]};return(0,a.jsx)("div",{className:"role-modal-overlay",children:(0,a.jsxs)("div",{className:"role-modal-content",children:[(0,a.jsx)("h2",{children:"Select Your Account Type"}),(0,a.jsx)("p",{children:"Please select whether you're a Patient, Practitioner/Doctor or Clinic."}),(0,a.jsxs)("div",{className:"role-buttons",children:[(0,a.jsx)("button",{className:"role-btn",onClick:()=>r("Practitioner"),children:"Practitioner"}),(0,a.jsx)("button",{className:"role-btn",onClick:()=>r("Patient"),children:"Patient"}),(0,a.jsx)("button",{className:"role-btn",onClick:()=>r("Clinic"),children:"Clinic"})]}),(0,a.jsx)("button",{className:"close-btn",onClick:n,children:"\xd7"})]})})}},8369:()=>{},8853:(e,t,n)=>{"use strict";e.exports=n(7234)},9168:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var a=n(2555),r=n(5043),i=n(7488);class o extends Error{}function s(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,(e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(t)}catch(n){return atob(t)}}o.prototype.name="InvalidTokenError";var l=n(184),c=n(6753),u=n(579);const d=e=>{let{isOpen:t,onClose:n,onLoginSuccess:d}=e;const[p,f]=(0,r.useState)(!1),[h,m]=(0,r.useState)(!1),[g,v]=(0,r.useState)(!1),[y,b]=(0,r.useState)(!1),[x,w]=(0,r.useState)(""),[j,k]=(0,r.useState)(""),[_,S]=(0,r.useState)(""),[N,C]=(0,r.useState)(""),[E,T]=(0,r.useState)(""),[P,A]=(0,r.useState)(!1),[O,L]=(0,r.useState)(!1),[R,D]=(0,r.useState)(!1),[I,M]=(0,r.useState)(!1),[z,F]=(0,r.useState)(!1),[U,B]=(0,r.useState)(!1),[V,q]=(0,r.useState)({full_name:"",email:"",password:"",country:""}),[H,W]=(0,r.useState)(!1),[G,$]=(0,r.useState)(!1),[K,Y]=(0,r.useState)({hasUpperCase:!1,hasLowerCase:!1,hasNumber:!1,hasSpecialChar:!1,isMinLength:!1}),[Q,J]=(0,r.useState)(""),[Z,X]=(0,r.useState)(""),[ee,te]=(0,r.useState)(""),ne=()=>{L(e=>!e)},ae=()=>{W(e=>!e)},re=()=>{D(e=>!e)},ie=()=>{M(e=>!e)},oe=e=>{const{name:t,value:n}=e.target;q((0,a.A)((0,a.A)({},V),{},{[t]:n})),"password"===t&&(e=>{Y({hasUpperCase:/[A-Z]/.test(e),hasLowerCase:/[a-z]/.test(e),hasNumber:/\d/.test(e),hasSpecialChar:/[!@#$%^&*(),.?":{}|<>]/.test(e),isMinLength:e.length>=8})})(n)};(0,r.useEffect)(()=>{const e=()=>{if(t&&window.google&&!g&&!p&&!y)try{google.accounts.id.initialize({client_id:"915629878612-onuco3uedr9mphji79d2340jrdjh8cfc.apps.googleusercontent.com",callback:se});const e=document.getElementById("google-login-btn"),t=document.getElementById("google-signup-btn");e&&(e.innerHTML=""),t&&(t.innerHTML=""),!h&&e&&google.accounts.id.renderButton(e,{theme:"outline",size:"large",width:"250",text:"signin_with"}),h&&t&&google.accounts.id.renderButton(t,{theme:"outline",size:"large",width:"250",text:"signup_with"})}catch(e){console.error("Error initializing Google Auth:",e)}};if(window.google)e();else{const t=setInterval(()=>{window.google&&(clearInterval(t),e())},100);setTimeout(()=>{clearInterval(t)},1e4)}return()=>{const e=document.getElementById("google-login-btn"),t=document.getElementById("google-signup-btn");e&&(e.innerHTML=""),t&&(t.innerHTML="")}},[t,h,g,p,y]);const se=async e=>{const t=function(e,t){if("string"!==typeof e)throw new o("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,a=e.split(".")[n];if("string"!==typeof a)throw new o("Invalid token specified: missing part #".concat(n+1));let r;try{r=s(a)}catch(i){throw new o("Invalid token specified: invalid base64 for part #".concat(n+1," (").concat(i.message,")"))}try{return JSON.parse(r)}catch(i){throw new o("Invalid token specified: invalid json for part #".concat(n+1," (").concat(i.message,")"))}}(e.credential),a=t.email,r=t.name||"".concat(t.given_name," ").concat(t.family_name);try{const e=await c.A.post("/patient/auth/google-signin/",{email:a,full_name:r,sender_id:"8327873829",device_type:"web"},{headers:{"Content-Type":"application/json"}});200===e.status?(localStorage.setItem("authToken",e.data.token),i.oR.success("Google login successful!"),n(),d&&d()):(console.error("Unexpected response status:",e.status),i.oR.error("Something went wrong with Google login."))}catch(h){var l,u,p,f;console.error("Google login error:",h),console.error("Error response:",null===(l=h.response)||void 0===l?void 0:l.data),console.error("Error status:",null===(u=h.response)||void 0===u?void 0:u.status);const e=(null===(p=h.response)||void 0===p||null===(f=p.data)||void 0===f?void 0:f.message)||h.message||"Google login failed. Please try again.";i.oR.error(e)}},le=()=>{w(""),k(""),S(""),C(""),T(""),A(!1),f(!1),m(!1),v(!1),b(!1),F(!1),B(!1),L(!1),W(!1),D(!1),M(!1),q({full_name:"",email:"",password:"",country:""}),Y({hasUpperCase:!1,hasLowerCase:!1,hasNumber:!1,hasSpecialChar:!1,isMinLength:!1}),J(""),X(""),te(""),sessionStorage.removeItem("tempPassword"),sessionStorage.removeItem("signupData"),n()};return t?(0,u.jsx)("div",{className:"modal-overlay",onClick:le,children:(0,u.jsxs)("div",{className:"modal-content",onClick:e=>e.stopPropagation(),children:[(0,u.jsx)("button",{className:"modal-close",onClick:le,children:"\xd7"}),(0,u.jsx)("h1",{className:"formhead",children:p?"OTP Verification":h?"Patient Sign Up":g?"Forgot Password":y?"Set Your New Password":"Patient Login"}),p?(0,u.jsx)(u.Fragment,{children:x?(0,u.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),e.stopPropagation(),x){A(!0),te("");try{let e,t;if(U){const n=JSON.parse(sessionStorage.getItem("signupData")||"{}");e="/patient/auth/signup-verificafion/",t={Full_Name:n.Full_Name,Email:n.Email,Password:n.Password,Sender_ID:n.Sender_ID,Device_type:n.Device_type,Country:n.Country,otp:_}}else z?(e="/patient/auth/forgot-password/verify-otp/",t={email:x,otp:_}):(e="/patient/auth/login-verification/",t={email:x,otp:_});const a=await c.A.post(e,t),r=a.data;if(200!==a.status&&201!==a.status||null===r||void 0===r||!r.status){const e=(null===r||void 0===r?void 0:r.message)||"Invalid OTP!";e.toLowerCase().includes("otp")?(te("Invalid OTP. Please check the code and try again."),i.oR.warning("Invalid OTP. Please check the code and try again.")):(te(e),i.oR.error(e))}else if(te(""),U&&null!==r&&void 0!==r&&r.status)localStorage.setItem("authToken",r.token),sessionStorage.removeItem("signupData"),i.oR.success("OTP verified successfully! Please login."),f(!1),B(!1),w(""),k(""),S("");else if(z&&null!==r&&void 0!==r&&r.status)i.oR.success("OTP verified successfully!"),f(!1),b(!0);else if(!U&&!z&&null!==r&&void 0!==r&&r.status){const e={email:x,token:r.token,timestamp:(new Date).getTime()};localStorage.setItem("authToken",r.token),localStorage.setItem("userData",JSON.stringify(e)),sessionStorage.removeItem("tempPassword"),i.oR.success("OTP verified successfully!"),n(),d&&d()}}catch(r){var t,a;const e=(null===(t=r.response)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.message)||r.message;e&&e.toLowerCase().includes("otp")?(te("Invalid OTP. Please check the code and try again."),i.oR.warning("Invalid OTP. Please check the code and try again.")):(te(e||"Something went wrong, please try again."),i.oR.error(e||"Something went wrong, please try again."))}finally{A(!1)}}else i.oR.error("Email is missing. Please go back and try again.")},children:[(0,u.jsxs)("div",{className:"form-group",children:[(0,u.jsx)("label",{htmlFor:"otp-input",children:"Enter OTP"}),(0,u.jsx)("input",{id:"otp-input",type:"text",placeholder:"Enter the OTP sent to your email",value:_,onChange:e=>S(e.target.value),required:!0})]}),p&&ee&&(0,u.jsx)("div",{className:"modal-error-message",children:ee}),(0,u.jsx)("button",{className:"login-submit-button",type:"submit",disabled:P,children:P?"Verifying...":"Verify OTP"}),(0,u.jsx)("div",{className:"modal-links",children:(0,u.jsx)("button",{type:"button",className:"modal-link back-button",onClick:()=>{f(!1),m(!1),v(!1),B(!1),F(!1),te("")},children:"\u2190 Back to Login"})})]}):(0,u.jsxs)("div",{className:"error-message",children:[(0,u.jsx)("p",{children:"Email is missing. Please go back and try again."}),(0,u.jsx)("button",{className:"modal-link back-button",onClick:()=>{f(!1),m(!1),v(!1),B(!1),F(!1),te("")},children:"\u2190 Back to Login"})]})}):y?(0,u.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),e.stopPropagation(),!N||!E)return void i.oR.error("Please fill in all fields.");if(N!==E)return void i.oR.error("Passwords do not match.");const t={hasUpperCase:/[A-Z]/.test(N),hasLowerCase:/[a-z]/.test(N),hasNumber:/\d/.test(N),hasSpecialChar:/[!@#$%^&*(),.?":{}|<>]/.test(N),isMinLength:N.length>=8};if(Object.values(t).every(Boolean)){A(!0);try{200===(await c.A.post("/patient/auth/forgot-password/reset/",{email:x,password:N})).status?(i.oR.success("Password reset successfully! Please login with your new password."),b(!1),f(!1),v(!1),m(!1),F(!1),B(!1),w(""),k(""),S(""),C(""),T(""),sessionStorage.removeItem("tempPassword"),sessionStorage.removeItem("signupData")):i.oR.error("Failed to reset password. Please try again.")}catch(n){console.error("Error resetting password:",n),i.oR.error("Something went wrong. Please try again later.")}finally{A(!1)}}else i.oR.error("Password does not meet security requirements.")},children:[(0,u.jsx)("div",{className:"form-group",children:(0,u.jsxs)("div",{style:{position:"relative",width:"100%"},children:[(0,u.jsx)("input",{type:R?"text":"password",placeholder:"Enter new password",value:N,onChange:e=>C(e.target.value),required:!0,style:{paddingRight:"40px"}}),R?(0,u.jsx)(l.mx3,{onClick:re,style:{position:"absolute",top:"60%",right:"10px",transform:"translateY(-80%)",cursor:"pointer",color:"#aaa"}}):(0,u.jsx)(l.Ny1,{onClick:re,style:{position:"absolute",top:"60%",right:"10px",transform:"translateY(-80%)",cursor:"pointer",color:"#aaa"}})]})}),(0,u.jsx)("div",{className:"form-group",children:(0,u.jsxs)("div",{style:{position:"relative",width:"100%"},children:[(0,u.jsx)("input",{type:I?"text":"password",placeholder:"Confirm new password",value:E,onChange:e=>T(e.target.value),required:!0,style:{paddingRight:"40px"}}),I?(0,u.jsx)(l.mx3,{onClick:ie,style:{position:"absolute",top:"60%",right:"10px",transform:"translateY(-80%)",cursor:"pointer",color:"#aaa"}}):(0,u.jsx)(l.Ny1,{onClick:ie,style:{position:"absolute",top:"60%",right:"10px",transform:"translateY(-80%)",cursor:"pointer",color:"#aaa"}})]})}),(0,u.jsx)("button",{type:"submit",disabled:P,className:"login-submit-button",children:P?"Saving...":"Set Password"}),(0,u.jsx)("div",{className:"modal-links",children:(0,u.jsx)("button",{type:"button",className:"modal-link back-button",onClick:()=>{b(!1),f(!0)},children:"\u2190 Back to OTP"})})]}):g?(0,u.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),e.stopPropagation(),x){A(!0);try{const e=await c.A.post("/patient/auth/forgot-password/send-email/",{email:x});200===e.status?(localStorage.setItem("authToken",e.data.token),i.oR.success("Password reset code sent to your email!"),v(!1),f(!0),F(!0),B(!1)):i.oR.error("Invalid Email. Please try again.")}catch(t){console.error("One or more issues found:",t),i.oR.error("Something went wrong. Please try again later.")}finally{A(!1)}}else i.oR.error("Please enter your email address.")},children:[(0,u.jsx)("div",{className:"form-group",children:(0,u.jsx)("input",{type:"email",placeholder:"Enter your email",value:x,onChange:e=>w(e.target.value),required:!0})}),(0,u.jsx)("button",{type:"submit",disabled:P,className:"login-submit-button",children:P?"Sending...":"Send Code"}),(0,u.jsx)("div",{className:"modal-links",children:(0,u.jsx)("button",{type:"button",className:"modal-link back-button",onClick:()=>v(!1),children:"\u2190 Back to Login"})})]}):h?(0,u.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),e.stopPropagation();const t=(()=>{const{full_name:e,email:t,password:n,country:a}=V;return e&&t&&n&&a?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)?K.hasUpperCase&&K.hasLowerCase&&K.hasNumber&&K.hasSpecialChar&&K.isMinLength?"":"Password does not meet security requirements.":"Invalid email format.":"All fields are required."})();if(t)return J(t),void i.oR.error(t);A(!0),J("");try{const e=await c.A.post("/patient/auth/signup/",V);if(200===e.status&&e.data.status)i.oR.success("Signup successful! Please check your email for OTP."),w(V.email),m(!1),f(!0),F(!1),B(!0),sessionStorage.setItem("signupData",JSON.stringify({Full_Name:e.data.data.Full_Name,Email:e.data.data.Email,Password:e.data.data.Password,Sender_ID:"Sender_ID",Device_type:"web",Country:e.data.data.Country})),q({full_name:"",email:"",password:"",country:""}),Y({hasUpperCase:!1,hasLowerCase:!1,hasNumber:!1,hasSpecialChar:!1,isMinLength:!1});else{var n;const t=(null===(n=e.data)||void 0===n?void 0:n.message)||"Signup failed. Please try again.";t.toLowerCase().includes("email")&&t.toLowerCase().includes("exist")?(J("Email already exists. Please login or use a different email."),i.oR.error("Email already exists. Please login or use a different email.")):(J(t),i.oR.error(t))}}catch(o){var a,r;const e=(null===(a=o.response)||void 0===a||null===(r=a.data)||void 0===r?void 0:r.message)||o.message;e&&e.toLowerCase().includes("email")&&e.toLowerCase().includes("exist")?(J("Email already exists. Please login or use a different email."),i.oR.error("Email already exists. Please login or use a different email.")):(J(e||"An error occurred. Please try again later."),i.oR.error(e||"An error occurred. Please try again later."))}finally{A(!1)}},children:[(0,u.jsxs)("div",{style:{display:"flex",gap:"15px"},children:[(0,u.jsxs)("div",{className:"form-group",style:{flex:1},children:[(0,u.jsx)("label",{children:"Full Name:"}),(0,u.jsx)("input",{type:"text",name:"full_name",placeholder:"Full Name",value:V.full_name,onChange:oe,required:!0})]}),(0,u.jsxs)("div",{className:"form-group",style:{flex:1},children:[(0,u.jsx)("label",{children:"Email:"}),(0,u.jsx)("input",{type:"email",name:"email",placeholder:"Email",value:V.email,onChange:oe,required:!0})]})]}),(0,u.jsxs)("div",{className:"form-group",children:[(0,u.jsx)("label",{children:"Country:"}),(0,u.jsxs)("select",{name:"country",value:V.country,onChange:oe,required:!0,className:"country-select",children:[(0,u.jsx)("option",{value:"",children:"Select a country"}),(0,u.jsx)("option",{value:"United Kingdom",children:"United Kingdom"}),(0,u.jsx)("option",{value:"Canada",children:"Canada"}),(0,u.jsx)("option",{value:"United States",children:"United States"}),(0,u.jsx)("option",{value:"Pakistan",children:"Pakistan"})]})]}),(0,u.jsxs)("div",{className:"form-group",children:[(0,u.jsx)("label",{children:"Password:"}),(0,u.jsxs)("div",{style:{position:"relative",width:"100%"},children:[(0,u.jsx)("input",{type:H?"text":"password",name:"password",placeholder:"Password",value:V.password,onChange:oe,onFocus:()=>$(!0),onBlur:()=>$(!1),required:!0,style:{paddingRight:"40px"}}),H?(0,u.jsx)(l.mx3,{onClick:ae,style:{position:"absolute",top:"50%",right:"10px",transform:"translateY(-80%)",cursor:"pointer",color:"#aaa"}}):(0,u.jsx)(l.Ny1,{onClick:ae,style:{position:"absolute",top:"50%",right:"10px",transform:"translateY(-80%)",cursor:"pointer",color:"#aaa"}})]})]}),G&&(0,u.jsxs)("div",{style:{marginTop:"10px"},children:[(0,u.jsx)("div",{className:"password-validation",style:{fontSize:"0.8rem",marginBottom:"10px"},children:(0,u.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"5px"},children:[(0,u.jsx)("span",{style:{color:K.hasUpperCase?"green":"red"},children:"at least one uppercase letter"}),(0,u.jsx)("span",{style:{color:K.hasLowerCase?"green":"red"},children:"at least one lowercase letter"}),(0,u.jsx)("span",{style:{color:K.hasNumber?"green":"red"},children:"at least one number"}),(0,u.jsx)("span",{style:{color:K.hasSpecialChar?"green":"red"},children:"at least one special character"}),(0,u.jsx)("span",{style:{color:K.isMinLength?"green":"red"},children:"at least 8 characters"})]})}),(0,u.jsx)("div",{className:"password-strength-bar",children:(0,u.jsx)("div",{className:"password-strength-fill",style:{width:"".concat(Object.values(K).filter(Boolean).length/5*100,"%"),backgroundColor:Object.values(K).filter(Boolean).length<=2?"red":3===Object.values(K).filter(Boolean).length?"orange":"green"}})})]}),Q&&(0,u.jsx)("div",{className:"modal-error-message",children:Q}),(0,u.jsx)("button",{type:"submit",disabled:P,className:"login-submit-button",children:P?"Signing up...":"Sign Up"}),(0,u.jsx)("div",{className:"modal-links",children:(0,u.jsx)("button",{type:"button",className:"modal-link",onClick:()=>{m(!1),J("")},children:"Already have an account? Login Here"})}),(0,u.jsx)("div",{className:"google-login-container",children:(0,u.jsx)("div",{id:"google-signup-btn"})})]}):(0,u.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),e.stopPropagation(),A(!0),X("");try{const e=await c.A.post("/patient/auth/login/",{email:x,password:j,sender_id:"senderid",device_type:"web"});if(200===e.status&&!1!==e.data.status)sessionStorage.setItem("tempPassword",j),localStorage.setItem("authToken",e.data.token),f(!0),F(!1),B(!1),X(""),i.oR.success("Please enter the OTP sent to your email");else{var t;const n=(null===(t=e.data)||void 0===t?void 0:t.message)||"Invalid credentials. Please try again.";n.toLowerCase().includes("invalid credentials")?(X("Invalid credentials. Please check your email and password."),i.oR.error("Invalid credentials. Please check your email and password.")):(X(n),i.oR.error(n))}}catch(r){var n,a;const e=(null===(n=r.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.message)||r.message;e&&e.toLowerCase().includes("invalid credentials")?(X("Invalid credentials. Please check your email and password."),i.oR.error("Invalid credentials. Please check your email and password.")):(X(e||"Something went wrong. Please try again later."),i.oR.error(e||"Something went wrong. Please try again later."))}finally{A(!1)}},children:[(0,u.jsx)("div",{className:"form-group",children:(0,u.jsx)("input",{type:"email",placeholder:"Email",value:x,onChange:e=>w(e.target.value),required:!0})}),(0,u.jsx)("div",{className:"form-group",children:(0,u.jsxs)("div",{style:{position:"relative",width:"100%"},children:[(0,u.jsx)("input",{type:O?"text":"password",placeholder:"Password",value:j,onChange:e=>k(e.target.value),required:!0,style:{paddingRight:"40px"}}),O?(0,u.jsx)(l.mx3,{onClick:ne,style:{position:"absolute",top:"60%",right:"10px",transform:"translateY(-80%)",cursor:"pointer",color:"#aaa"}}):(0,u.jsx)(l.Ny1,{onClick:ne,style:{position:"absolute",top:"60%",right:"10px",transform:"translateY(-80%)",cursor:"pointer",color:"#aaa"}})]})}),!h&&!p&&!g&&!y&&Z&&(0,u.jsx)("div",{className:"modal-error-message",children:Z}),(0,u.jsx)("button",{type:"submit",disabled:P,className:"login-submit-button",children:P?"Logging in...":"Login"}),(0,u.jsxs)("div",{className:"modal-links",children:[(0,u.jsx)("button",{type:"button",className:"modal-link",onClick:()=>{v(!0),X("")},children:"Forgot your password?"}),(0,u.jsx)("button",{type:"button",className:"modal-link",onClick:()=>{m(!0),X("")},children:"Don't have an account? Signup Now!"})]}),(0,u.jsx)("div",{className:"google-login-container",children:(0,u.jsx)("div",{id:"google-login-btn"})})]})]})}):null}},9286:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(5043),r=n(722),i=n(6566),o=(n(8369),n(6753)),s=n(579);const l=e=>{let{isOpen:t,onClose:n,doctorId:l,doctorName:c,doctorEmail:u}=e;const[d,p]=(0,a.useState)(""),[f,h]=(0,a.useState)(""),[m,g]=(0,a.useState)(""),[v,y]=(0,a.useState)(""),[b,x]=(0,a.useState)(""),[w,j]=(0,a.useState)(""),[k,_]=(0,a.useState)(null),[S,N]=(0,a.useState)(!1),[C,E]=(0,a.useState)(null),[T,P]=(0,a.useState)(!1),A=(0,a.useRef)(null);return t?(0,s.jsx)("div",{className:"modal-backdrop",children:(0,s.jsxs)("div",{className:"appointment-request-modal",children:[(0,s.jsx)("button",{className:"modal-close-btn",onClick:()=>{_(null),p(""),h(""),g(""),y(""),x(""),j(""),E(null),P(!1),N(!1),A.current&&A.current.reset(),n()},"aria-label":"Close modal",children:"\xd7"}),(0,s.jsx)("h2",{children:"Request an Appointment"}),(0,s.jsxs)("p",{children:["Request an appointment with ",c||"this practitioner",". Fill out your information and we'll send your request to the doctor. We will contact you when the doctor confirms the appointment."]}),(0,s.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),T)if(C){N(!0),_(null);try{const e=await fetch("".concat(o.r,"/doctors/").concat(l,"/request-appointment/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({full_name:d,email:f,phone:m,date:v,time:b,reason:w,recaptcha_token:C})}),t=await e.json();t.status?(_("Appointment request sent successfully! The doctor will contact you soon."),p(""),h(""),g(""),y(""),x(""),j(""),E(null),A.current&&A.current.reset(),setTimeout(()=>{n()},3e3)):(_(t.message||"Failed to send appointment request."),A.current&&A.current.reset(),E(null))}catch(t){_("Error sending appointment request. Please try again."),A.current&&A.current.reset(),E(null)}finally{N(!1)}}else _("Please complete the reCAPTCHA verification.");else _("Please accept the disclaimer to continue.")},children:[(0,s.jsx)("div",{style:{marginBottom:"12px"},children:(0,s.jsx)("input",{type:"text",placeholder:"Full Name",value:d,onChange:e=>p(e.target.value),required:!0,disabled:S,style:{width:"100%"}})}),(0,s.jsxs)("div",{style:{display:"flex",gap:"8px",marginBottom:"12px"},children:[(0,s.jsx)("input",{type:"tel",placeholder:"Phone Number",value:m,onChange:e=>g(e.target.value),required:!0,disabled:S,style:{flex:"1 1 50%",minWidth:0,maxWidth:"50%"}}),(0,s.jsx)("input",{type:"email",placeholder:"Email",value:f,onChange:e=>h(e.target.value),required:!0,disabled:S,style:{flex:"1 1 50%",minWidth:0,maxWidth:"50%"}})]}),(0,s.jsx)("div",{style:{marginBottom:"12px"},children:(0,s.jsxs)("div",{style:{position:"relative",display:"flex",alignItems:"center"},children:[(0,s.jsx)("input",{type:"text",placeholder:"Please Select an Appointment Date",value:v,onChange:e=>{let t=e.target.value.replace(/[^0-9\/\-]/g,""),n=t;const a=t.replace(/[^\d]/g,"");8===a.length&&(n="".concat(a.slice(0,2),"/").concat(a.slice(2,4),"/").concat(a.slice(4,8))),y(n)},required:!0,disabled:S,inputMode:"numeric",pattern:"\\d{2}/\\d{2}/\\d{4}",maxLength:10,style:{paddingRight:"60px",width:"100%"}}),(0,s.jsx)("button",{type:"button",tabIndex:-1,style:{position:"absolute",right:"6px",background:"none",border:"none",cursor:S?"not-allowed":"pointer",padding:0,display:"flex",alignItems:"center"},onClick:()=>{var e,t;S||(null===(e=document.getElementById("hidden-date-picker"))||void 0===e||null===(t=e.showPicker)||void 0===t||t.call(e))},disabled:S,"aria-label":"Pick date",children:(0,s.jsxs)("svg",{width:"22",height:"22",fill:"none",stroke:"#888",strokeWidth:"2",viewBox:"0 0 24 24",children:[(0,s.jsx)("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",fill:"none",stroke:"#888"}),(0,s.jsx)("path",{d:"M16 2v4M8 2v4M3 10h18",stroke:"#888"})]})}),(0,s.jsx)("input",{id:"hidden-date-picker",type:"date",style:{position:"absolute",right:0,top:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,value:/^\d{2}\/\d{2}\/\d{4}$/.test(v)?"".concat(v.slice(6,10),"-").concat(v.slice(3,5),"-").concat(v.slice(0,2)):"",onChange:e=>{const t=e.target.value;if(t){const[e,n,a]=t.split("-");y("".concat(a,"/").concat(n,"/").concat(e))}else y("")},required:!0,disabled:S})]})}),(0,s.jsx)("div",{style:{marginBottom:"12px"},children:(0,s.jsxs)("div",{style:{position:"relative",display:"flex",alignItems:"center"},children:[(0,s.jsx)("input",{type:"text",placeholder:"Please Select an Appointment Time",value:b,onChange:e=>{let t=e.target.value.toUpperCase();t=t.replace(/[^0-9:APM ]/gi,""),t=t.replace(/\s+/g," ").trim();const n=t.replace(/[^\d]/g,"");4!==n.length||t.includes(":")||(t="".concat(n.slice(0,2),":").concat(n.slice(2,4))),n.length>4&&(t=t.slice(0,5)),t=t.replace(/(\d{1,2}:\d{2})([AP]M)/,"$1 $2"),t=t.replace(/(AM|PM).*$/i,e=>"AM"===e.slice(0,2).toUpperCase()?"AM":"PM"),x(t)},required:!0,disabled:S,inputMode:"text",pattern:"^(0[1-9]|1[0-2]):[0-5][0-9] (AM|PM)$",maxLength:8,style:{paddingRight:"60px",width:"100%"}}),(0,s.jsx)("button",{type:"button",tabIndex:-1,style:{position:"absolute",right:"6px",background:"none",border:"none",cursor:S?"not-allowed":"pointer",padding:0,display:"flex",alignItems:"center"},onClick:()=>{var e,t;S||(null===(e=document.getElementById("hidden-time-picker"))||void 0===e||null===(t=e.showPicker)||void 0===t||t.call(e))},disabled:S,"aria-label":"Pick time",children:(0,s.jsxs)("svg",{width:"22",height:"22",fill:"none",stroke:"#888",strokeWidth:"2",viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"#888",fill:"none"}),(0,s.jsx)("path",{d:"M12 6v6l4 2",stroke:"#888"})]})}),(0,s.jsx)("input",{id:"hidden-time-picker",type:"time",style:{position:"absolute",right:0,top:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,value:(()=>{const e=b.match(/^(\d{1,2}):(\d{2}) ?(AM|PM)$/i);if(e){let[t,n,a,r]=e;return n=parseInt(n,10),"PM"===r.toUpperCase()&&12!==n&&(n+=12),"AM"===r.toUpperCase()&&12===n&&(n=0),"".concat(n.toString().padStart(2,"0"),":").concat(a)}return""})(),onChange:e=>{const t=e.target.value;if(t){let[e,n]=t.split(":");e=parseInt(e,10);let a="AM";0===e?(e=12,a="AM"):12===e?a="PM":e>12&&(e-=12,a="PM"),x("".concat(e.toString().padStart(2,"0"),":").concat(n," ").concat(a))}else x("")},required:!0,disabled:S})]})}),(0,s.jsx)("div",{style:{marginBottom:"12px"},children:(0,s.jsx)("textarea",{placeholder:"Reason for appointment",value:w,onChange:e=>j(e.target.value),required:!0,disabled:S,style:{width:"100%",minHeight:"60px",resize:"vertical"}})}),(0,s.jsx)("div",{className:"disclaimer-section",style:{background:"#f8f9fa",padding:"12px",borderRadius:"8px",border:"1px solid #e9ecef",marginBottom:"12px"},children:(0,s.jsxs)("div",{style:{display:"flex",alignItems:"anchor-center",gap:"10px"},children:[(0,s.jsx)("input",{type:"checkbox",id:"disclaimer-checkbox",checked:T,onChange:e=>{P(e.target.checked),e.target.checked&&k&&k.includes("disclaimer")&&_(null)},disabled:S,style:{marginTop:"2px",cursor:S?"not-allowed":"pointer"}}),(0,s.jsxs)("label",{htmlFor:"disclaimer-checkbox",style:{fontSize:"14px",color:"#495057",lineHeight:"1.4",cursor:S?"not-allowed":"pointer",margin:0,textAlign:"justify"},children:[(0,s.jsx)("strong",{children:"Disclaimer:"})," We are not healthcare providers; we only serve as a platform connecting patients with licensed doctors. I understand and agree to this disclaimer."]})]})}),i.P.SITE_KEY&&(0,s.jsx)("div",{className:"recaptcha-container",children:(0,s.jsx)(r.A,{ref:A,sitekey:i.P.SITE_KEY,onChange:e=>{E(e),e&&k&&k.includes("reCAPTCHA")&&_(null)},theme:"light",size:"normal"})}),(0,s.jsx)("button",{type:"submit",disabled:S||!C||!T,className:!S&&C&&T?"":"submit-btn-disabled",children:S?"Sending Request...":"Send Appointment Request"})]}),k&&(0,s.jsx)("div",{className:"status-message ".concat(k.includes("success")?"success":"error"),children:k})]})}):null}},9840:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(5043),r=n(8298),i=n(184),o=n(5475),s=n(775),l=n(579);const c=function(){const[e,t]=(0,a.useState)(!1),n=(0,a.useRef)(null),[c,u]=(0,a.useState)(!1),d=(0,a.useRef)(null),[p,f]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=null;const a=setTimeout(()=>{const a=e=>{n.current&&!n.current.contains(e.target)&&d.current&&!d.current.contains(e.target)&&t(!1)};document.addEventListener("mousedown",a),e=()=>{document.removeEventListener("mousedown",a)}},0);return()=>{clearTimeout(a),e&&e()}},[]),(0,a.useEffect)(()=>{e||f(!1)},[e]);const h=(0,l.jsxs)("div",{className:"nav-links",children:[(0,l.jsx)(o.N_,{to:"/homepage",children:(0,l.jsx)("button",{className:"nav-button",children:"Home"})}),(0,l.jsx)(o.N_,{to:"/practitioners",children:(0,l.jsx)("button",{className:"nav-button",children:"Practitioners"})}),(0,l.jsxs)("div",{className:"nav-dropdown",onMouseEnter:()=>!e&&f(!0),onMouseLeave:()=>!e&&f(!1),children:[(0,l.jsxs)("button",{onClick:()=>f(e=>!e),className:"nav-button",children:["Company",(0,l.jsx)(i.z44,{})]}),p&&(0,l.jsxs)("div",{className:"nav-dropdown-menu",children:[(0,l.jsx)(o.N_,{to:"/contact",onClick:()=>t(!1),children:(0,l.jsx)("button",{className:"nav-dropdown-item",children:"Contact Us"})}),(0,l.jsx)(o.N_,{to:"/about",onClick:()=>t(!1),children:(0,l.jsx)("button",{className:"nav-dropdown-item",children:"About Us"})}),(0,l.jsx)(o.N_,{to:"/blogs",onClick:()=>t(!1),children:(0,l.jsx)("button",{className:"nav-dropdown-item",children:"Blogs"})}),(0,l.jsx)(o.N_,{to:"/compliance",onClick:()=>t(!1),children:(0,l.jsx)("button",{className:"nav-dropdown-item",children:"Compliance"})}),(0,l.jsx)(o.N_,{to:"/pricing",onClick:()=>t(!1),children:(0,l.jsx)("button",{className:"nav-dropdown-item",children:"Pricing"})})]})]}),(0,l.jsx)(o.N_,{to:"/find-practitioners",children:(0,l.jsx)("button",{className:"find-practitioner-nav-btn",children:"Find Doctors"})}),(0,l.jsx)("button",{className:"button-button-login",onClick:()=>u(!0),children:"Login"}),(0,l.jsx)(r.A,{isOpen:c,onClose:()=>u(!1)})]});return(0,l.jsxs)("nav",{className:"nav",children:[(0,l.jsxs)("div",{className:"nav-desktop-row",children:[(0,l.jsx)("div",{className:"Nav-logo",children:(0,l.jsx)(o.N_,{to:"/",children:(0,l.jsx)(s.A,{src:"".concat("","/assets/VTLogo.png"),alt:"VirtualTriage",style:{height:"40px",width:"auto"},eager:!0,width:"140",height:"40"})})}),h]}),(0,l.jsxs)("div",{className:"navbar-hamburger",ref:d,onClick:()=>{e||f(!1),t(!e)},children:[(0,l.jsx)("div",{className:"line"}),(0,l.jsx)("div",{className:"line"}),(0,l.jsx)("div",{className:"line"})]}),(0,l.jsx)("div",{className:"side-panel ".concat(e?"open":""),ref:n,children:h})]})}}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var i=t[a]={exports:{}};return e[a].call(i.exports,i,i.exports,n),i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(a,r){if(1&r&&(a=this(a)),8&r)return a;if("object"===typeof a&&a){if(4&r&&a.__esModule)return a;if(16&r&&"function"===typeof a.then)return a}var i=Object.create(null);n.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&a;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>o[e]=()=>a[e]);return o.default=()=>a,n.d(i,o),i}})(),n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((t,a)=>(n.f[a](e,t),t),[])),n.u=e=>"static/js/"+e+"."+{64:"77f4cb7d",82:"82a18ef9",107:"01cd6ea8",125:"9963c734",144:"07c0bf64",176:"312b1212",201:"3453ac45",215:"80af51ff",291:"e0a63eda",356:"3d4ccf93",382:"3c9244cb",391:"bf6d97f4",453:"7faab9a3",506:"29bb0be6",511:"86c4bded",597:"efa8e2f0",651:"74447d28",676:"02f18bc6",677:"e5357a88",684:"f09ec320",714:"977d8a75",769:"55e90534",773:"fbcc1324",785:"cc295d2b",871:"c9143fa3",940:"f2442f86",962:"53ef8aa4"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+"."+{82:"8eddce50",107:"6f6e97c8",125:"6f6e97c8",144:"67b5b0fd",176:"8cd4ff44",201:"517ebb27",215:"2aeb3ccf",356:"2aeb3ccf",391:"29244fa8",506:"adf1c4ce",511:"2aeb3ccf",556:"8553f8e8",651:"76da99ec",684:"6f6e97c8",769:"2aeb3ccf",773:"428027cc",785:"2aeb3ccf",871:"2aeb3ccf",962:"4f671eb4"}[e]+".chunk.css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="vt-website:";n.l=(a,r,i,o)=>{if(e[a])e[a].push(r);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==a||d.getAttribute("data-webpack")==t+i){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+i),s.src=a),e[a]=[r];var p=(t,n)=>{s.onerror=s.onload=null,clearTimeout(f);var r=e[a];if(delete e[a],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach(e=>e(n)),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",(()=>{if("undefined"!==typeof document){var e=e=>new Promise((t,a)=>{var r=n.miniCssF(e),i=n.p+r;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),a=0;a<n.length;a++){var r=(o=n[a]).getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(r===e||r===t))return o}var i=document.getElementsByTagName("style");for(a=0;a<i.length;a++){var o;if((r=(o=i[a]).getAttribute("data-href"))===e||r===t)return o}})(r,i))return t();((e,t,a,r,i)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",n.nc&&(o.nonce=n.nc),o.onerror=o.onload=n=>{if(o.onerror=o.onload=null,"load"===n.type)r();else{var a=n&&n.type,s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+a+": "+s+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,o.parentNode&&o.parentNode.removeChild(o),i(l)}},o.href=t,a?a.parentNode.insertBefore(o,a.nextSibling):document.head.appendChild(o)})(e,i,null,t,a)}),t={792:0};n.f.miniCss=(n,a)=>{t[n]?a.push(t[n]):0!==t[n]&&{82:1,107:1,125:1,144:1,176:1,201:1,215:1,356:1,391:1,506:1,511:1,556:1,651:1,684:1,769:1,773:1,785:1,871:1,962:1}[n]&&a.push(t[n]=e(n).then(()=>{t[n]=0},e=>{throw delete t[n],e}))}}})(),(()=>{var e={792:0};n.f.j=(t,a)=>{var r=n.o(e,t)?e[t]:void 0;if(0!==r)if(r)a.push(r[2]);else if(556!=t){var i=new Promise((n,a)=>r=e[t]=[n,a]);a.push(r[2]=i);var o=n.p+n.u(t),s=new Error;n.l(o,a=>{if(n.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=a&&("load"===a.type?"missing":a.type),o=a&&a.target&&a.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,r[1](s)}},"chunk-"+t,t)}else e[t]=0};var t=(t,a)=>{var r,i,o=a[0],s=a[1],l=a[2],c=0;if(o.some(t=>0!==e[t])){for(r in s)n.o(s,r)&&(n.m[r]=s[r]);if(l)l(n)}for(t&&t(a);c<o.length;c++)i=o[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},a=self.webpackChunkvt_website=self.webpackChunkvt_website||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})(),(()=>{"use strict";var e=n(5043),t=n(4391),a=n(3216),r=n(5475);const i=()=>((0,e.useEffect)(()=>{const e=()=>{const e="".concat("","/assets/Virtual Triage.png"),t=(new Date).getTime();document.querySelectorAll('link[rel*="icon"]').forEach(e=>e.remove());["16x16","32x32","192x192","512x512"].forEach(n=>{const a=document.createElement("link");a.rel="icon",a.type="image/png",a.sizes=n,a.href="".concat(e,"?v=").concat(t),document.head.appendChild(a)});const n=document.createElement("link");n.rel="apple-touch-icon",n.sizes="180x180",n.href="".concat(e,"?v=").concat(t),document.head.appendChild(n);const a=document.createElement("link");a.rel="shortcut icon",a.href="".concat(e,"?v=").concat(t),document.head.appendChild(a)};"requestIdleCallback"in window?requestIdleCallback(e,{timeout:500}):setTimeout(e,100);const t=()=>{"requestIdleCallback"in window?requestIdleCallback(e,{timeout:500}):setTimeout(e,100)};return window.addEventListener("popstate",t),window.addEventListener("routeChange",t),()=>{window.removeEventListener("popstate",t),window.removeEventListener("routeChange",t)}},[]),null);var o=n(4941),s=n(2555),l=n(579);const c=function(){const[t,n]=(0,e.useState)(!1),[a,i]=(0,e.useState)(!1),[o,c]=(0,e.useState)({essential:!0,functional:!1,analytics:!1,marketing:!1});(0,e.useEffect)(()=>{const e=setTimeout(()=>{const e=localStorage.getItem("cookieConsent");if(e){const t=JSON.parse(e);c(t)}else n(!0)},100);return()=>clearTimeout(e)},[]);const u=()=>{localStorage.setItem("cookieConsent",JSON.stringify(o)),n(!1),i(!1),d(o),window.dispatchEvent(new Event("cookiesAccepted"))},d=e=>{e.analytics?(window.gtag=window.gtag||function(){(window.gtag.q=window.gtag.q||[]).push(arguments)},window.gtag("consent","update",{analytics_storage:"granted"})):window.gtag&&window.gtag("consent","update",{analytics_storage:"denied"}),e.marketing?window.gtag&&window.gtag("consent","update",{ad_storage:"granted"}):window.gtag&&window.gtag("consent","update",{ad_storage:"denied"}),e.functional},p=(e,t)=>{"essential"!==e&&c(n=>(0,s.A)((0,s.A)({},n),{},{[e]:t}))};return t?a?(0,l.jsx)("div",{className:"cookie-consent-overlay",children:(0,l.jsxs)("div",{className:"cookie-preferences-modal",children:[(0,l.jsx)("h3",{children:"Cookie Preferences"}),(0,l.jsx)("p",{children:"We use cookies to enhance your experience on our website. You can manage your preferences below:"}),(0,l.jsxs)("div",{className:"cookie-category",children:[(0,l.jsxs)("div",{className:"cookie-category-header",children:[(0,l.jsxs)("label",{children:[(0,l.jsx)("input",{type:"checkbox",checked:o.essential,disabled:!0}),(0,l.jsx)("strong",{children:"Essential Cookies"})]}),(0,l.jsx)("span",{className:"required-badge",children:"Required"})]}),(0,l.jsx)("p",{children:"These cookies are necessary for the website to function and cannot be switched off."})]}),(0,l.jsxs)("div",{className:"cookie-category",children:[(0,l.jsx)("div",{className:"cookie-category-header",children:(0,l.jsxs)("label",{children:[(0,l.jsx)("input",{type:"checkbox",checked:o.functional,onChange:e=>p("functional",e.target.checked)}),(0,l.jsx)("strong",{children:"Functional Cookies"})]})}),(0,l.jsx)("p",{children:"These cookies enable enhanced functionality and personalization, such as remembering your preferences."})]}),(0,l.jsxs)("div",{className:"cookie-category",children:[(0,l.jsx)("div",{className:"cookie-category-header",children:(0,l.jsxs)("label",{children:[(0,l.jsx)("input",{type:"checkbox",checked:o.analytics,onChange:e=>p("analytics",e.target.checked)}),(0,l.jsx)("strong",{children:"Analytics Cookies"})]})}),(0,l.jsx)("p",{children:"These cookies help us understand how you use our website so we can improve it."})]}),(0,l.jsxs)("div",{className:"cookie-category",children:[(0,l.jsx)("div",{className:"cookie-category-header",children:(0,l.jsxs)("label",{children:[(0,l.jsx)("input",{type:"checkbox",checked:o.marketing,onChange:e=>p("marketing",e.target.checked)}),(0,l.jsx)("strong",{children:"Marketing Cookies"})]})}),(0,l.jsx)("p",{children:"These cookies are used to show you relevant advertisements based on your interests."})]}),(0,l.jsxs)("div",{className:"cookie-preferences-actions",children:[(0,l.jsx)("button",{onClick:u,className:"save-preferences-btn",children:"Save Preferences"}),(0,l.jsx)("button",{onClick:()=>i(!1),className:"cancel-btn",children:"Cancel"})]}),(0,l.jsxs)("p",{className:"cookie-policy-link",children:["Learn more in our ",(0,l.jsx)(r.N_,{to:"/cookie-policy",children:"Cookie Policy"})]})]})}):(0,l.jsxs)("div",{className:"cookie-consent-banner",children:[(0,l.jsxs)("div",{className:"cookie-consent-content",children:[(0,l.jsxs)("div",{className:"cookie-consent-text",children:[(0,l.jsx)("h4",{children:"\ud83c\udf6a We use cookies"}),(0,l.jsx)("p",{children:"We use cookies to enhance your browsing experience, provide personalized content, and analyze our traffic. Some cookies are essential for the proper functioning of our healthcare platform."})]}),(0,l.jsxs)("div",{className:"cookie-consent-actions",children:[(0,l.jsx)("button",{onClick:()=>{const e={essential:!0,functional:!0,analytics:!0,marketing:!0};c(e),localStorage.setItem("cookieConsent",JSON.stringify(e)),n(!1),d(e),window.dispatchEvent(new Event("cookiesAccepted"))},className:"accept-all-btn",children:"Accept All"}),(0,l.jsx)("button",{onClick:()=>i(!0),className:"manage-preferences-btn",children:"Manage Preferences"}),(0,l.jsx)("button",{onClick:()=>{const e={essential:!0,functional:!1,analytics:!1,marketing:!1};c(e),localStorage.setItem("cookieConsent",JSON.stringify(e)),n(!1),d(e),window.dispatchEvent(new Event("cookiesAccepted"))},className:"reject-btn",children:"Reject Non-Essential"})]})]}),(0,l.jsx)("div",{className:"cookie-policy-link",children:(0,l.jsx)(r.N_,{to:"/cookie-policy",children:"View our Cookie Policy"})})]}):null};var u=n(3441);function d(e){return(0,u.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Chat_2"},child:[{tag:"path",attr:{d:"M12,19.937a1.243,1.243,0,0,1-.833-.319L9.281,17.932a1.531,1.531,0,0,0-1.08-.458H4.561a2.5,2.5,0,0,1-2.5-2.5l.006-8.41a2.5,2.5,0,0,1,2.5-2.5H19.439a2.5,2.5,0,0,1,2.5,2.5v8.411a2.5,2.5,0,0,1-2.5,2.5H15.79a1.483,1.483,0,0,0-1.062.441l-1.895,1.7A1.243,1.243,0,0,1,12,19.937ZM4.567,5.063a1.5,1.5,0,0,0-1.5,1.5l-.006,8.411a1.5,1.5,0,0,0,1.5,1.5H8.2a2.483,2.483,0,0,1,1.767.732l1.864,1.667a.248.248,0,0,0,.333,0l1.874-1.682a2.5,2.5,0,0,1,1.751-.716h3.649a1.5,1.5,0,0,0,1.5-1.5V6.563a1.5,1.5,0,0,0-1.5-1.5Z"},child:[]}]}]})(e)}function p(e){return(0,u.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Hospital_1"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M18.435,7.5h-1.93V5.56a2.5,2.5,0,0,0-2.5-2.5h-4a2.5,2.5,0,0,0-2.5,2.5V7.5H5.565a2.5,2.5,0,0,0-2.5,2.5v9.44a1.511,1.511,0,0,0,1.5,1.5h14.87a1.5,1.5,0,0,0,1.5-1.5V10A2.5,2.5,0,0,0,18.435,7.5ZM7.505,19.94H4.565a.508.508,0,0,1-.5-.5V10a1.5,1.5,0,0,1,1.5-1.5h1.94Zm8,0h-1.5v-2.5a2.038,2.038,0,0,0-.59-1.42,2,2,0,0,0-3.41,1.42v2.5h-1.5V5.56a1.5,1.5,0,0,1,1.5-1.5h4a1.5,1.5,0,0,1,1.5,1.5Zm4.43-.5a.5.5,0,0,1-.5.5h-2.93V8.5h1.93a1.5,1.5,0,0,1,1.5,1.5Z"},child:[]},{tag:"path",attr:{d:"M14.505,8.56a.5.5,0,0,1-.5.5h-1.5v1.5a.5.5,0,0,1-.5.5.5.5,0,0,1-.5-.5V9.06h-1.5a.5.5,0,0,1-.5-.5.5.5,0,0,1,.5-.5h1.5V6.56a.5.5,0,0,1,.5-.5.508.508,0,0,1,.5.5v1.5h1.5A.508.508,0,0,1,14.505,8.56Z"},child:[]},{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M5.786,13.217a.5.5,0,0,1-.5-.5v-1.5a.5.5,0,0,1,1,0v1.5A.5.5,0,0,1,5.786,13.217Z"},child:[]},{tag:"path",attr:{d:"M5.786,17.717a.5.5,0,0,1-.5-.5v-1.5a.5.5,0,0,1,1,0v1.5A.5.5,0,0,1,5.786,17.717Z"},child:[]}]},{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M18.221,13.217a.5.5,0,0,1-.5-.5v-1.5a.5.5,0,0,1,1,0v1.5A.5.5,0,0,1,18.221,13.217Z"},child:[]},{tag:"path",attr:{d:"M18.221,17.717a.5.5,0,0,1-.5-.5v-1.5a.5.5,0,0,1,1,0v1.5A.5.5,0,0,1,18.221,17.717Z"},child:[]}]}]}]}]})(e)}function f(e){return(0,u.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"No_Waiting_Sign"},child:[{tag:"path",attr:{d:"M12,2.07a9.93,9.93,0,1,0,7.03,16.95.374.374,0,0,0,.06-.07A9.837,9.837,0,0,0,21.935,12,9.944,9.944,0,0,0,12,2.07Zm0,18.86A8.945,8.945,0,0,1,3.065,12a8.84,8.84,0,0,1,2.28-5.95l12.61,12.61A8.925,8.925,0,0,1,12,20.93Zm6.67-2.98L6.045,5.34a8.934,8.934,0,0,1,12.62,12.61Z"},child:[]}]}]})(e)}function h(e){return(0,u.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Warning"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M12.5,8.752a.5.5,0,0,0-1,0h0v6a.5.5,0,0,0,1,0Z"},child:[]},{tag:"circle",attr:{cx:"11.999",cy:"16.736",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M18.642,20.934H5.385A2.5,2.5,0,0,1,3.163,17.29L9.792,4.421a2.5,2.5,0,0,1,4.444,0L20.865,17.29a2.5,2.5,0,0,1-2.223,3.644ZM12.014,4.065a1.478,1.478,0,0,0-1.334.814L4.052,17.748a1.5,1.5,0,0,0,1.333,2.186H18.642a1.5,1.5,0,0,0,1.334-2.186L13.348,4.879A1.478,1.478,0,0,0,12.014,4.065Z"},child:[]}]}]}]})(e)}var m=n(9840),g=n(6102),v=n(2208),y=n(775),b=n(8298),x=n(184);const w=e=>{let{isOpen:t,onClose:n}=e;const r=(0,a.Zp)();if(!t)return null;return(0,l.jsx)("div",{className:"practitioner-modal-overlay",onClick:e=>{e.target===e.currentTarget&&n()},children:(0,l.jsxs)("div",{className:"practitioner-modal-content",children:[(0,l.jsx)("button",{className:"practitioner-modal-close-btn",onClick:n,children:"\xd7"}),(0,l.jsx)("h2",{children:"Join Virtual Triage Today"}),(0,l.jsx)("p",{className:"practitioner-modal-subtitle",children:"Discover the benefits of getting onboard with Virtual Triage"}),(0,l.jsxs)("div",{className:"practitioner-benefits-list",children:[(0,l.jsxs)("div",{className:"benefit-item",children:[(0,l.jsx)("div",{className:"benefit-icon",children:(0,l.jsx)(x.YYR,{})}),(0,l.jsxs)("div",{className:"benefit-content",children:[(0,l.jsx)("h3",{children:"Increase Revenue with Virtual Consultations"}),(0,l.jsx)("p",{children:"Offer remote consultations to reach more clients without geographic constraints and expand your practice's reach."})]})]}),(0,l.jsxs)("div",{className:"benefit-item",children:[(0,l.jsx)("div",{className:"benefit-icon",children:(0,l.jsx)(x.y8Q,{})}),(0,l.jsxs)("div",{className:"benefit-content",children:[(0,l.jsx)("h3",{children:"AI-Powered Symptom Analysis"}),(0,l.jsx)("p",{children:"Get upfront insights from our AI chatbot that matches clients with the right expert, helping you prepare better for consultations."})]})]}),(0,l.jsxs)("div",{className:"benefit-item",children:[(0,l.jsx)("div",{className:"benefit-icon",children:(0,l.jsx)(x.x1c,{})}),(0,l.jsxs)("div",{className:"benefit-content",children:[(0,l.jsx)("h3",{children:"Streamlined E-Payments & E-Consultations"}),(0,l.jsx)("p",{children:"Secure transactions and consultation notes handling benefit both you and your clients with seamless payment processing."})]})]}),(0,l.jsxs)("div",{className:"benefit-item",children:[(0,l.jsx)("div",{className:"benefit-icon",children:(0,l.jsx)(x.itz,{})}),(0,l.jsxs)("div",{className:"benefit-content",children:[(0,l.jsx)("h3",{children:"Automated Appointment Management"}),(0,l.jsx)("p",{children:"Easy booking and automated reminders reduce no-shows while offering clients flexible scheduling options."})]})]}),(0,l.jsxs)("div",{className:"benefit-item",children:[(0,l.jsx)("div",{className:"benefit-icon",children:(0,l.jsx)(x.HiP,{})}),(0,l.jsxs)("div",{className:"benefit-content",children:[(0,l.jsx)("h3",{children:"Real-Time Video & Messaging"}),(0,l.jsx)("p",{children:"Connect through high-quality video calls and messaging, enabling care anytime, anywhere."})]})]}),(0,l.jsxs)("div",{className:"benefit-item",children:[(0,l.jsx)("div",{className:"benefit-icon",children:(0,l.jsx)(x.v$b,{})}),(0,l.jsxs)("div",{className:"benefit-content",children:[(0,l.jsx)("h3",{children:"Data-Driven Insights"}),(0,l.jsx)("p",{children:"Access analytics on appointment trends and outcomes to refine your services and improve your practice."})]})]})]}),(0,l.jsx)("button",{className:"practitioner-book-appointment-btn",onClick:()=>{n(),r("/pricing")},children:"Get Listed Now!"})]})})},j=(0,e.lazy)(()=>n.e(382).then(n.bind(n,2382)));const k=function(){const[t,n]=(0,e.useState)(null),[a,r]=(0,e.useState)(!1),i=(0,e.useRef)(null),o=(0,e.useRef)(null),[c,u]=(0,e.useState)(!1),[x,k]=(0,e.useState)(!1),[_,S]=(0,e.useState)(!0),[N,C]=(0,e.useState)(0);(0,e.useEffect)(()=>{const e=document.getElementById("homepage-video");e&&(e.muted=_)},[_]),(0,e.useRef)("from_name","email"),(0,e.useRef)(),(0,e.useEffect)(()=>{const e=e=>{i.current&&!i.current.contains(e.target)&&o.current&&!o.current.contains(e.target)&&r(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);const E=["GP","Dermatology","Dental","Veterinary","Chiropractic","Fertility","Nutrition","Psychology"].map(e=>(0,l.jsxs)("div",{className:"specialty-icon",children:[(0,l.jsx)("div",{className:"icon-wrapper",children:(0,l.jsx)(y.A,{src:"/assets/Speciality/".concat(e,".png"),alt:e,loading:"lazy"})}),(0,l.jsx)("span",{className:"specialty-name",children:e})]},e));return(0,l.jsxs)("div",{className:"homepage",children:[(0,l.jsx)(v.A,{title:"Private GP & Online Doctors UK | Book Appointments Online",description:"Book a private GP or online doctor in the UK. Same-day appointments, secure video consultations, and fast access to private ADHD assessments with trusted specialists.",keywords:"private gp uk, online doctor uk, book gp appointment online, private gp appointment today, online gp same day uk, private doctor uk, adhd diagnosis private uk, adult adhd diagnosis private uk, adhd assessment online uk, private psychiatrist adhd uk, adhd specialist uk private, mental health support online, virtual triage, doctor appointment online uk",canonical:"https://virtualtriage.ai",structuredData:{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://virtualtriage.ai/",name:"Virtual Triage",url:"https://virtualtriage.ai",logo:{"@type":"ImageObject","@id":"https://virtualtriage.ai/#logo",url:"https://virtualtriage.ai/assets/Virtual%20Triage.png"}},{"@type":"WebSite","@id":"https://virtualtriage.ai/",name:"Virtual Triage",url:"https://virtualtriage.ai",description:"Book private GP appointments or online doctor consultations in the UK. Same-day appointments, secure video consultations, and private ADHD assessments with trusted specialists.",publisher:{"@id":"https://virtualtriage.ai/"},potentialAction:{"@type":"SearchAction",target:"https://virtualtriage.ai/find-practitioners","query-input":"required name=search_term_string"},inLanguage:"en-GB"},{"@type":"WebPage","@id":"https://virtualtriage.ai/",url:"https://virtualtriage.ai",name:"Private GP & Online Doctor UK | Book Appointments Online",description:"Book a private GP or online doctor in the UK. Same-day appointments, secure video consultations, and fast access to private ADHD assessments with trusted specialists.",isPartOf:{"@id":"https://virtualtriage.ai/"},about:{"@id":"https://virtualtriage.ai/about"},inLanguage:"en-GB"},{"@type":"Service","@id":"https://virtualtriage.ai/find-practitioners",name:"Online Doctor Appointments and Private GP Booking",serviceType:["Telemedicine","Online Medical Consultation","Private GP Appointment Booking","Online ADHD Assessments","Private Psychiatrist ADHD UK"],areaServed:{"@type":"Country",name:"United Kingdom"},provider:{"@id":"https://virtualtriage.ai/find-practitioners"}},{"@type":"FAQPage",name:"Frequently Asked Questions",mainEntity:[{"@type":"Question",name:"How can I book an online doctor appointment in the UK?",acceptedAnswer:{"@type":"Answer",text:"You can book a private doctor appointment online through Virtual Triage with just a few clicks. Select your preferred doctor and time slot for same-day video consultations."}},{"@type":"Question",name:"How do I get an ADHD diagnosis online?",acceptedAnswer:{"@type":"Answer",text:"Virtual Triage provides online ADHD assessments with trusted specialists. You can book a private ADHD consultation and get a diagnosis online from the comfort of your home."}},{"@type":"Question",name:"Can I book a GP appointment for today?",acceptedAnswer:{"@type":"Answer",text:"Yes, Virtual Triage allows you to book same-day GP appointments with private doctors through video consultations."}}]}]},location:"UK"}),(0,l.jsx)(m.A,{}),(0,l.jsx)("header",{className:"header",children:(0,l.jsx)("div",{className:"main-hero",children:(0,l.jsxs)("div",{className:"banner-flex responsive-banner-flex",children:[(0,l.jsxs)("div",{className:"hero-text-homepage",children:[(0,l.jsx)("h1",{children:"Book an Online Doctor Appointment in the UK. Fast, Secure, and Independent"}),(0,l.jsx)("p",{className:"banner-paragraph",children:"Virtual Triage is a UK-focused digital healthcare platform that helps patients book a consultation with a licensed doctor online. Access care through video consultations without long NHS waiting times."}),(0,l.jsx)("div",{className:"hero-buttons-sec",children:(0,l.jsx)("div",{className:"hero-buttons",children:(0,l.jsx)("a",{href:"https://virtualtriage.ai/find-practitioners",rel:"noopener noreferrer",children:(0,l.jsx)("button",{className:"get-started-btn-secondpage",children:"Book a Doctor!"})})})})]}),(0,l.jsx)("div",{className:"vt-hero-banner-image",children:(0,l.jsx)(y.A,{src:window.innerWidth<768?"/assets/Hero-banner-mobile.webp":"/assets/Hero-banner.webp",alt:"Virtual Triage - Connecting Patients with Doctors",className:"hero-banner-img",eager:!0,width:"800",height:"600"})})]})})}),(0,l.jsx)("section",{className:"vt-modern-sections",children:(0,l.jsxs)("div",{className:"vt-modern-container",children:[(0,l.jsxs)("div",{className:"vt-tab-navigation",children:[(0,l.jsxs)("button",{className:"vt-tab-button ".concat(0===N?"active":""),onClick:()=>C(0),children:[(0,l.jsx)("span",{className:"vt-tab-number",children:"01"}),(0,l.jsx)("span",{className:"vt-tab-label",children:"What is Virtual Triage"})]}),(0,l.jsxs)("button",{className:"vt-tab-button ".concat(1===N?"active":""),onClick:()=>C(1),children:[(0,l.jsx)("span",{className:"vt-tab-number",children:"02"}),(0,l.jsx)("span",{className:"vt-tab-label",children:"When to Use"})]}),(0,l.jsxs)("button",{className:"vt-tab-button ".concat(2===N?"active":""),onClick:()=>C(2),children:[(0,l.jsx)("span",{className:"vt-tab-number",children:"03"}),(0,l.jsx)("span",{className:"vt-tab-label",children:"How it Works"})]})]}),(0,l.jsxs)("div",{className:"vt-content-wrapper",children:[(0,l.jsx)("div",{className:"vt-modern-content ".concat(0===N?"active":""),children:(0,l.jsxs)("div",{className:"vt-modern-card",children:[(0,l.jsxs)("div",{className:"vt-card-header",children:[(0,l.jsx)("span",{className:"vt-section-badge",children:"Overview"}),(0,l.jsxs)("h2",{className:"vt-modern-heading",children:[(0,l.jsx)("span",{className:"vt-heading-prefix-modern",children:"What is "}),(0,l.jsxs)("span",{className:"vt-heading-brand-modern",children:[(0,l.jsx)("strong",{style:{color:"#50cada"},children:"VIRTUAL"}),"TRIAGE"]})]})]}),(0,l.jsxs)("div",{className:"vt-card-body",children:[(0,l.jsx)("p",{className:"vt-modern-intro",children:"Virtual Triage is an online appointment booking platform that connects patients with licensed doctors, specialists, and clinics across the United Kingdom. Our platform revolutionizes healthcare access by providing a seamless, secure, and user-friendly interface for finding and booking appointments with qualified medical professionals."}),(0,l.jsxs)("div",{className:"vt-features-grid",children:[(0,l.jsxs)("div",{className:"vt-feature-item",children:[(0,l.jsx)("div",{className:"vt-feature-icon",children:"\u2713"}),(0,l.jsxs)("div",{className:"vt-feature-content",children:[(0,l.jsx)("h4",{children:"Comprehensive Healthcare Directory"}),(0,l.jsx)("p",{children:"Search for doctors by medical specialty, view availability in real time, book appointments online, and attend consultations via secure video or clinic visits."})]})]}),(0,l.jsxs)("div",{className:"vt-feature-item",children:[(0,l.jsx)("div",{className:"vt-feature-icon",children:"\u2713"}),(0,l.jsxs)("div",{className:"vt-feature-content",children:[(0,l.jsx)("h4",{children:"Independent Healthcare Professionals"}),(0,l.jsx)("p",{children:"All care is delivered by independent, regulated healthcare professionals. Virtual Triage does not provide medical advice or diagnoses directly."})]})]}),(0,l.jsxs)("div",{className:"vt-feature-item",children:[(0,l.jsx)("div",{className:"vt-feature-icon",children:"\u2713"}),(0,l.jsxs)("div",{className:"vt-feature-content",children:[(0,l.jsx)("h4",{children:"Advanced Search & Filtering"}),(0,l.jsx)("p",{children:"Find the right healthcare provider based on your specific needs, location preferences, and availability requirements with detailed practitioner profiles."})]})]}),(0,l.jsxs)("div",{className:"vt-feature-item",children:[(0,l.jsx)("div",{className:"vt-feature-icon",children:"\u2713"}),(0,l.jsxs)("div",{className:"vt-feature-content",children:[(0,l.jsx)("h4",{children:"Secure & Transparent Platform"}),(0,l.jsx)("p",{children:"All transactions are processed securely, and your personal health information is protected in accordance with UK GDPR standards."})]})]})]})]})]})}),(0,l.jsx)("div",{className:"vt-modern-content ".concat(2===N?"active":""),children:(0,l.jsxs)("div",{className:"vt-modern-card",children:[(0,l.jsxs)("div",{className:"vt-card-header",children:[(0,l.jsx)("span",{className:"vt-section-badge",children:"Process"}),(0,l.jsxs)("h2",{className:"vt-modern-heading",children:[(0,l.jsx)("span",{className:"vt-heading-prefix-modern",children:"How the Process Works on "}),(0,l.jsxs)("span",{className:"vt-heading-brand-modern",children:[(0,l.jsx)("strong",{style:{color:"#50cada"},children:"VIRTUAL"}),"TRIAGE"]})]})]}),(0,l.jsxs)("div",{className:"vt-card-body",children:[(0,l.jsx)("p",{className:"vt-modern-intro",children:"A simple, secure process to connect you with the right healthcare professional for your needs. Our streamlined workflow ensures you can access quality healthcare quickly and efficiently."}),(0,l.jsxs)("div",{className:"vt-process-steps",children:[(0,l.jsxs)("div",{className:"vt-process-step",children:[(0,l.jsx)("div",{className:"vt-step-number",children:"1"}),(0,l.jsxs)("div",{className:"vt-step-content",children:[(0,l.jsx)("h4",{children:"Search for a Doctor"}),(0,l.jsx)("p",{children:"Browse a wide range of independent doctors, specialists, and clinics across the UK by medical specialty, location, or availability. Use our advanced filters to narrow down your search."})]})]}),(0,l.jsxs)("div",{className:"vt-process-step",children:[(0,l.jsx)("div",{className:"vt-step-number",children:"2"}),(0,l.jsxs)("div",{className:"vt-step-content",children:[(0,l.jsx)("h4",{children:"Available Doctors"}),(0,l.jsx)("p",{children:"Review practitioner profiles, experience, consultation types, and available appointment times before selecting the right doctor for you. Read patient reviews and check qualifications."})]})]}),(0,l.jsxs)("div",{className:"vt-process-step",children:[(0,l.jsx)("div",{className:"vt-step-number",children:"3"}),(0,l.jsxs)("div",{className:"vt-step-content",children:[(0,l.jsx)("h4",{children:"Book Securely Online"}),(0,l.jsx)("p",{children:"Book your appointment through a secure online system, choosing between video consultations or in-clinic visits where available. Complete payment securely."})]})]}),(0,l.jsxs)("div",{className:"vt-process-step",children:[(0,l.jsx)("div",{className:"vt-step-number",children:"4"}),(0,l.jsxs)("div",{className:"vt-step-content",children:[(0,l.jsx)("h4",{children:"Attend Your Consultation"}),(0,l.jsx)("p",{children:"Speak directly with your chosen healthcare professional via secure video or attend your appointment at the clinic as scheduled. Receive consultation notes and follow-up care."})]})]})]})]})]})}),(0,l.jsx)("div",{className:"vt-modern-content ".concat(1===N?"active":""),children:(0,l.jsxs)("div",{className:"vt-modern-card",children:[(0,l.jsxs)("div",{className:"vt-card-header",children:[(0,l.jsx)("span",{className:"vt-section-badge",children:"Use Cases"}),(0,l.jsxs)("h2",{className:"vt-modern-heading",children:[(0,l.jsx)("span",{className:"vt-heading-prefix-modern",children:"When Should You Use "}),(0,l.jsxs)("span",{className:"vt-heading-brand-modern",children:[(0,l.jsx)("strong",{style:{color:"#50cada"},children:"VIRTUAL"}),"TRIAGE"]})]})]}),(0,l.jsxs)("div",{className:"vt-card-body",children:[(0,l.jsx)("p",{className:"vt-modern-intro",children:"Virtual Triage is designed for everyday healthcare needs where fast, convenient access to independent medical professionals is important. Our platform is ideal for various healthcare scenarios."}),(0,l.jsxs)("div",{className:"vt-use-cases-grid",children:[(0,l.jsxs)("div",{className:"vt-use-case-item",children:[(0,l.jsx)("h4",{children:"Non-emergency Health Concerns"}),(0,l.jsx)("p",{children:"General health questions, skin concerns, mental wellbeing, or follow-up discussions that do not require urgent care."})]}),(0,l.jsxs)("div",{className:"vt-use-case-item",children:[(0,l.jsx)("h4",{children:"Private Medical Consultations"}),(0,l.jsx)("p",{children:"Access independent doctors outside traditional public healthcare pathways in the UK."})]}),(0,l.jsxs)("div",{className:"vt-use-case-item",children:[(0,l.jsx)("h4",{children:"Timely Appointment Access"}),(0,l.jsx)("p",{children:"When long waiting times make it hard to see a suitable clinician when you need one."})]}),(0,l.jsxs)("div",{className:"vt-use-case-item",children:[(0,l.jsx)("h4",{children:"Finding Specific Specialists"}),(0,l.jsx)("p",{children:"Browse verified profiles and choose a doctor that matches your needs and preferences."})]}),(0,l.jsxs)("div",{className:"vt-use-case-item",children:[(0,l.jsx)("h4",{children:"Ongoing Care & Follow-ups"}),(0,l.jsx)("p",{children:"Continued discussions, reviews, or monitoring with the same healthcare professional."})]}),(0,l.jsxs)("div",{className:"vt-use-case-item",children:[(0,l.jsx)("h4",{children:"Second Opinions"}),(0,l.jsx)("p",{children:"Seek additional perspectives on your health concerns from qualified medical professionals."})]})]})]})]})})]})]})}),(0,l.jsxs)("section",{className:"homepage-features",children:[(0,l.jsx)("h2",{children:"The Virtual Triage platform features"}),(0,l.jsxs)("div",{className:"homepage-feature-cards",children:[(0,l.jsxs)("div",{className:"homepage-feature-card",children:[(0,l.jsx)("div",{className:"homepage-feature-icon",children:(0,l.jsx)(y.A,{src:"./assets/human.svg",alt:"AI-Powered Symptom Analysis",loading:"lazy"})}),(0,l.jsx)("h3",{className:"homepage-feature-title",children:"AI-Powered Symptom Analysis"}),(0,l.jsx)("p",{className:"homepage-feature-description",children:"An AI chatbot matches clients with the right expert, offering doctors upfront insights."})]}),(0,l.jsxs)("div",{className:"homepage-feature-card",children:[(0,l.jsx)("div",{className:"homepage-feature-icon",children:(0,l.jsx)(y.A,{src:"./assets/e-payment.svg",alt:"E-Payments & e-consultations",loading:"lazy"})}),(0,l.jsx)("h3",{className:"homepage-feature-title",children:"E-Payments & E-Consultations"}),(0,l.jsx)("p",{className:"homepage-feature-description",children:"Streamlined, secure transactions and consultation notes handling benefit both doctors and clients."})]}),(0,l.jsxs)("div",{className:"homepage-feature-card",children:[(0,l.jsx)("div",{className:"homepage-feature-icon",children:(0,l.jsx)(y.A,{src:"./assets/calendar.svg",alt:"Appointment Management",loading:"lazy"})}),(0,l.jsx)("h3",{className:"homepage-feature-title",children:"Appointment Management"}),(0,l.jsx)("p",{className:"homepage-feature-description",children:"Easy booking and automated reminders reduce no-shows for doctors while offering clients flexible scheduling."})]}),(0,l.jsxs)("div",{className:"homepage-feature-card",children:[(0,l.jsx)("div",{className:"homepage-feature-icon",children:(0,l.jsx)(y.A,{src:"./assets/virtualcall.svg",alt:"Real-Time Video & Messaging",loading:"lazy"})}),(0,l.jsx)("h3",{className:"homepage-feature-title",children:"Real-Time Video & Messaging"}),(0,l.jsx)("p",{className:"homepage-feature-description",children:"Connect through high-quality video calls and messaging, enabling care anytime, anywhere."})]}),(0,l.jsxs)("div",{className:"homepage-feature-card",children:[(0,l.jsx)("div",{className:"homepage-feature-icon",children:(0,l.jsx)(y.A,{src:"./assets/icon-5.svg",alt:"Online Appointmentsw for Health & Wellness",loading:"lazy"})}),(0,l.jsx)("h3",{className:"homepage-feature-title",children:"Virtual Appointments for Health & Wellness"}),(0,l.jsx)("p",{className:"homepage-feature-description",children:"Patients can Find Doctors, and professionals showcase their services."})]})]})]}),(0,l.jsx)("section",{className:"specialties",children:(0,l.jsxs)("div",{className:"specialties-header",children:[(0,l.jsx)("h2",{children:"Our platform supports a wide range of specialties"}),(0,l.jsx)("p",{children:"These are some of the many specialties available on Virtual Triage, highlighting its comprehensive approach to diverse healthcare needs"})]})}),(0,l.jsx)("section",{className:"specialties-carousel",children:(0,l.jsx)("div",{className:"carousel-container",children:(0,l.jsx)("div",{className:"carousel-wrapper",children:(0,l.jsx)(e.Suspense,{fallback:(0,l.jsx)("div",{style:{textAlign:"center",padding:"40px"},children:"Loading specialties..."}),children:(0,l.jsx)(j,(0,s.A)((0,s.A)({},{dots:!0,infinite:!0,speed:600,slidesToShow:5,slidesToScroll:1,autoplay:!0,autoplaySpeed:3e3,arrows:!1,pauseOnHover:!0,centerMode:!1,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:3,slidesToScroll:1,centerMode:!1}}]}),{},{children:E}))})})})}),(0,l.jsxs)("section",{className:"vt-compliance-section",children:[(0,l.jsx)("h2",{children:"Safety, Compliance, and Patient Trust"}),(0,l.jsx)("p",{className:"vt-compliance-intro",children:"Virtual Triage is built as a secure healthcare technology platform, designed to help patients connect with independent, regulated medical professionals across the UK."}),(0,l.jsxs)("div",{className:"vt-compliance-cards",children:[(0,l.jsxs)("div",{className:"vt-compliance-card",children:[(0,l.jsx)(p,{className:"homepage-compliance-icon"}),(0,l.jsx)("h3",{className:"vt-compliance-card-title",children:"Independent Clinicians"}),(0,l.jsx)("p",{className:"vt-compliance-card-description",children:"All medical consultations are delivered by independent healthcare professionals. Virtual Triage does not provide medical advice, diagnoses, or treatment."})]}),(0,l.jsxs)("div",{className:"vt-compliance-card",children:[(0,l.jsx)(d,{className:"homepage-compliance-icon"}),(0,l.jsx)("h3",{className:"vt-compliance-card-title",children:"Secure Communication"}),(0,l.jsx)("p",{className:"vt-compliance-card-description",children:"Video consultations and messaging use encrypted technologies to support safe and private communication between patients and clinicians."})]}),(0,l.jsxs)("div",{className:"vt-compliance-card",children:[(0,l.jsx)(h,{className:"homepage-compliance-icon"}),(0,l.jsx)("h3",{className:"vt-compliance-card-title",children:"Data Protection & Privacy"}),(0,l.jsx)("p",{className:"vt-compliance-card-description",children:"Patient information is handled in accordance with UK GDPR standards, with secure systems in place to protect privacy and confidentiality."})]}),(0,l.jsxs)("div",{className:"vt-compliance-card",children:[(0,l.jsx)(f,{className:"homepage-compliance-icon"}),(0,l.jsx)("h3",{className:"vt-compliance-card-title",children:"Not for Medical Emergencies"}),(0,l.jsx)("p",{className:"vt-compliance-card-description",children:"Virtual Triage is not intended for emergency situations. If you require urgent medical attention, you should contact emergency services immediately."})]})]}),(0,l.jsx)("div",{className:"vt-compliance-cta",children:(0,l.jsx)("a",{href:"/compliance",children:"Learn more about our safety and compliance standards"})})]}),(0,l.jsx)("section",{className:"vt-roles-section",children:(0,l.jsxs)("div",{className:"vt-roles-container",children:[(0,l.jsxs)("div",{className:"vt-role-card",children:[(0,l.jsx)("div",{className:"vt-role-image",children:(0,l.jsx)(y.A,{src:"./assets/clinic.png",alt:"Clinics",loading:"lazy"})}),(0,l.jsxs)("div",{className:"vt-role-content",children:[(0,l.jsx)("h3",{className:"vt-role-label",children:"CLINICS"}),(0,l.jsx)("h4",{className:"vt-role-title",children:"Simplifying Administration and Streamlining Care"}),(0,l.jsxs)("ul",{className:"vt-role-benefits",children:[(0,l.jsxs)("li",{children:[(0,l.jsx)("div",{className:"vt-benefit-icon",children:"\u2713"}),(0,l.jsxs)("div",{className:"vt-benefit-text",children:[(0,l.jsx)("strong",{children:"Enhanced Patient Experience:"})," Faster onboarding and organized care delivery build trust and satisfaction with your clinic."]})]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("div",{className:"vt-benefit-icon",children:"\u2713"}),(0,l.jsxs)("div",{className:"vt-benefit-text",children:[(0,l.jsx)("strong",{children:"Simplified Billing and Payments:"})," Streamline invoicing and payment collection with integrated e-payment systems."]})]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("div",{className:"vt-benefit-icon",children:"\u2713"}),(0,l.jsxs)("div",{className:"vt-benefit-text",children:[(0,l.jsx)("strong",{children:"Integrated Patient Records:"})," Centralize and organize patient data, reducing paperwork and improving accessibility."]})]})]}),(0,l.jsx)("a",{href:"https://clinic.virtualtriage.ai",className:"vt-role-cta",children:"Get Started \u2192"})]})]}),(0,l.jsxs)("div",{className:"vt-role-card",children:[(0,l.jsx)("div",{className:"vt-role-image",children:(0,l.jsx)(y.A,{src:"./assets/for practitioners.png",alt:"Practitioners",loading:"lazy"})}),(0,l.jsxs)("div",{className:"vt-role-content",children:[(0,l.jsx)("h3",{className:"vt-role-label",children:"DOCTORS"}),(0,l.jsx)("h4",{className:"vt-role-title",children:"Automate administrative tasks"}),(0,l.jsxs)("ul",{className:"vt-role-benefits",children:[(0,l.jsxs)("li",{children:[(0,l.jsx)("div",{className:"vt-benefit-icon",children:"\u2713"}),(0,l.jsxs)("div",{className:"vt-benefit-text",children:[(0,l.jsx)("strong",{children:"Increase Revenue with Virtual Consultations:"})," Offer remote consultations to reach more clients without geographic constraints."]})]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("div",{className:"vt-benefit-icon",children:"\u2713"}),(0,l.jsxs)("div",{className:"vt-benefit-text",children:[(0,l.jsx)("strong",{children:"Enhance Client Retention:"})," Personalized care plans and follow-up reminders keep clients engaged, fostering long-term relationships."]})]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("div",{className:"vt-benefit-icon",children:"\u2713"}),(0,l.jsxs)("div",{className:"vt-benefit-text",children:[(0,l.jsx)("strong",{children:"Data-Driven Insights:"})," Access analytics on appointment trends and outcomes to refine your services and improve your practice."]})]})]}),(0,l.jsx)("a",{href:"https://practitioner.virtualtriage.ai/",className:"vt-role-cta",children:"Get Started \u2192"})]})]}),(0,l.jsxs)("div",{className:"vt-role-card",children:[(0,l.jsx)("div",{className:"vt-role-image",children:(0,l.jsx)(y.A,{src:"./assets/for individuals.png",alt:"Patients",loading:"lazy"})}),(0,l.jsxs)("div",{className:"vt-role-content",children:[(0,l.jsx)("h3",{className:"vt-role-label",children:"PATIENTS"}),(0,l.jsx)("h4",{className:"vt-role-title",children:"Book virtual appointments and access care instantly"}),(0,l.jsxs)("ul",{className:"vt-role-benefits",children:[(0,l.jsxs)("li",{children:[(0,l.jsx)("div",{className:"vt-benefit-icon",children:"\u2713"}),(0,l.jsxs)("div",{className:"vt-benefit-text",children:[(0,l.jsx)("strong",{children:"AI-Powered Assistant:"})," Leverage advanced AI features to guide symptom checks, provide health insights, and streamline your care journey."]})]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("div",{className:"vt-benefit-icon",children:"\u2713"}),(0,l.jsxs)("div",{className:"vt-benefit-text",children:[(0,l.jsx)("strong",{children:"Virtual Consultations:"})," Book Appointments with a wide range of doctors for virtual consultations."]})]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("div",{className:"vt-benefit-icon",children:"\u2713"}),(0,l.jsxs)("div",{className:"vt-benefit-text",children:[(0,l.jsx)("strong",{children:"Cost-Effective Care:"})," Save time and money with virtual consultations, offering affordable and convenient care."]})]})]}),(0,l.jsx)("a",{href:"https://patient.virtualtriage.ai/login",className:"vt-role-cta",children:"Get Started \u2192"})]})]})]})}),(0,l.jsx)("section",{className:"homepage-video",children:(0,l.jsx)("div",{className:"video-container",style:{position:"relative",width:"100%"},children:(0,l.jsx)("img",{src:"../assets/Footer Image.webp",alt:"Mute"})})}),(0,l.jsxs)("section",{className:"faq",children:[(0,l.jsx)("h2",{style:{textAlign:"center"},children:"Questions & Answers"}),(0,l.jsx)("div",{className:"faq-list",children:[{title:"What is Virtual Triage?",content:"Virtual Triage is a digital healthcare platform that helps patients book appointments with independent doctors and clinics across the UK. It provides tools for booking, and attending consultations, but does not deliver medical care itself."},{title:"Does Virtual Triage provide medical advice or diagnoses?",content:"No. Virtual Triage does not provide medical advice, diagnoses, or treatment. All medical guidance is provided directly by independent healthcare professionals during consultations."},{title:"How do I book an appointment on Virtual Triage?",content:"You can search for a doctor by specialty, location, or availability, review their profile, and book an appointment online in just a few steps using the secure booking system."},{title:"Are the doctors on Virtual Triage qualified?",content:"Doctors listed on Virtual Triage are independent healthcare professionals who provide their own services. Each practitioner is responsible for meeting the professional and regulatory requirements applicable to their practice."},{title:"Can I get a same-day appointment?",content:"In many cases, yes. Availability depends on the doctor and specialty, but Virtual Triage often offers access to same-day or next-day appointments where available."},{title:"Are consultations held online or in person?",content:"All Consultations booked on Virtual Triage are held online via secure video calls by practitioner, you can join the appointment by just logging into your patient account and selecting the confirmed appointment, and the video call will be conducted by the practitioner you have selected."},{title:"Is Virtual Triage suitable for medical emergencies?",content:"No. Virtual Triage is not intended for emergencies. If you have a medical emergency or urgent condition, you should contact emergency services immediately."},{title:"Is my personal and medical information secure?",content:"Yes. Virtual Triage uses secure systems and processes designed to protect user data and handle information in line with UK data protection standards."},{title:"Do I need a subscription to use Virtual Triage as a patient?",content:"No. Patients can browse doctors and book appointments without a subscription. Consultation fees, if any, are set by the individual doctor or clinic."},{title:"Can I choose a specific doctor or specialist?",content:"Yes. Virtual Triage allows you to view doctor profiles, specialties, experience, and availability so you can choose the healthcare professional that best suits your needs."},{title:"Is Virtual Triage available across the UK?",content:"Yes. Virtual Triage can be used by patients across England, Scotland, Wales, and Northern Ireland, subject to practitioner availability."},{title:"How is Virtual Triage different from traditional healthcare booking?",content:"Virtual Triage focuses on convenience and transparency by allowing patients to book doctors, view availability in real time, and book appointments online without long waiting times."}].map((e,a)=>(0,l.jsxs)("div",{className:"faq-item",children:[(0,l.jsxs)("div",{className:"faq-question",onClick:()=>(e=>{n(t===e?null:e)})(a),children:[e.title,(0,l.jsx)("span",{className:"faq-icon",children:t===a?"-":"+"})]}),t===a&&(0,l.jsx)("div",{className:"faq-answer",children:e.content})]},a))})]}),(0,l.jsx)(b.A,{isOpen:c,onClose:()=>u(!1)}),(0,l.jsx)(w,{isOpen:x,onClose:()=>k(!1)}),(0,l.jsx)(g.A,{})]})};n(851),n(4172);var _=n(2344),S=n(6753);const N=function(){const[t,n]=(0,e.useState)(!0),[r,i]=(0,e.useState)(!1),[o,s]=(0,e.useState)([]),[c,u]=(0,e.useState)(!0),d=(0,a.Zp)(),p=((0,e.useRef)("Full_Name","email"),[{id:"price_1RpEQJKx0rXRL6v7DR2UdW0t",name:"Clinic",description:"This package will allow a clinic to manage upto 5 practitioners on Virtual Triage",price:299,type:"clinic"},{id:"price_1RpENMKx0rXRL6v7xrcKQ6Oc",name:"Clinic Yearly",description:"This package will allow a clinic to manage upto 5 practitioners on Virtual Triage",price:2999,type:"clinic"}]);return(0,e.useEffect)(()=>{(async()=>{try{u(!0);const e=await S.A.get("/doctor/auth/signup/pricing-table/");if(e.data.status&&e.data.data){const t=e.data.data.filter(e=>"Directory"===e.name||"Core"===e.name).map(e=>({id:e.stripe_price_id,name:"year"===e.interval?"".concat(e.name," Yearly"):e.name,description:e.description,price:e.price,type:"doctor",marketing_features:e.marketing_features||[]}));s([...t,...p])}else console.error("Failed to fetch packages:",e.data.message),s(p)}catch(e){console.error("Error fetching packages:",e),s(p)}finally{u(!1)}})()},[]),(0,l.jsxs)("div",{className:"secondpage-container",children:[(0,l.jsx)(v.A,{title:"Online Doctors in UK | Get Bookings & Run Video Consultations",description:"Join Virtual Triage\u2019s Public Directory in the UK. Create your profile, receive patient enquiries, manage bookings, and run secure video consultations\u2014built to help you grow your practice.",keywords:"doctors public directory uk, private practice booking system, doctor booking software uk, telehealth platform for doctors uk, online appointment booking for clinics, video consultation platform uk, patient enquiries uk, practice management booking, healthcare marketplace uk, doctors directory uk, secure video consultations, clinic management system",canonical:"https://virtualtriage.ai/find-practitioners",structuredData:{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://virtualtriage.ai/",name:"Virtual Triage",url:"https://virtualtriage.ai",logo:{"@type":"ImageObject","@id":"https://virtualtriage.ai/#logo",url:"https://virtualtriage.ai/assets/Virtual%20Triage.png"}},{"@type":"WebPage","@id":"https://virtualtriage.ai/practitioners",url:"https://virtualtriage.ai/practitioners",name:"Practitioner Platform UK | Grow Your Practice with Virtual Triage",description:"A practitioner platform for the UK to help clinics and healthcare professionals accept bookings, run secure video consultations, and manage appointments in one place.",isPartOf:{"@id":"https://virtualtriage.ai/"},about:{"@id":"https://virtualtriage.ai/practitioners"},inLanguage:"en-GB"},{"@type":"SoftwareApplication","@id":"https://virtualtriage.ai/practitioners",name:"Virtual Triage for Practitioners",applicationCategory:"HealthcareApplication",operatingSystem:"Web",url:"https://virtualtriage.ai/practitioners",description:"A SaaS platform for UK practitioners to receive patient enquiries, accept bookings, offer secure video consultations, and manage appointment workflows.",featureList:["Practitioner profile and directory listing","Appointment booking and scheduling tools","Secure video consultations","Patient messaging and follow-ups","Payments support (where enabled)","Clinic and practitioner management"],provider:{"@id":"https://virtualtriage.ai/"},offers:{"@type":"Offer",priceCurrency:"GBP",price:"20.00",url:"https://virtualtriage.ai/practitioners"}}]},location:"UK"}),(0,l.jsx)(m.A,{}),(0,l.jsx)("section",{className:"banner",children:(0,l.jsxs)("div",{className:"second-page-banner-area",children:[(0,l.jsxs)("div",{className:"banner-text-secondpage",children:[(0,l.jsx)("h1",{children:"AI-Driven Online Booking from Patients and More Appointments to You"}),(0,l.jsx)("p",{children:"Offer professional, secure consultations with our AI-powered platform. Virtual Triage helps you automate tasks, track consultations, reduce admin work, and deliver exceptional care anytime, anywhere."}),(0,l.jsx)("button",{className:"get-started-btn-secondpage",onClick:()=>i(!0),children:"Get Started \u2192"})]}),(0,l.jsx)(b.A,{isOpen:r,onClose:()=>i(!1)}),(0,l.jsx)("div",{className:"banner-image",children:(0,l.jsx)("img",{src:"../assets/practitioner side.png",alt:"Mobile UI"})})]})}),(0,l.jsxs)("section",{className:"secondpage-features-section",children:[(0,l.jsx)("div",{className:"secondpage-features-img",children:(0,l.jsx)("img",{src:"./assets/visuals-1.png",alt:"Features"})}),(0,l.jsxs)("div",{className:"secondpage-features-text",children:[(0,l.jsx)("h2",{children:"Our Features"}),(0,l.jsx)("p",{children:"Few good reasons why you should use Virtual Triage as your health and wellness assistant."}),(0,l.jsxs)("div",{className:"secondpage-features",children:[(0,l.jsxs)("div",{className:"secondpage-feature-item",children:[(0,l.jsx)("img",{src:"./assets/human.svg",alt:"AI-Powered Symptom Checker"}),(0,l.jsx)("span",{children:"AI-Powered Symptom Checker"})]}),(0,l.jsxs)("div",{className:"secondpage-feature-item",children:[(0,l.jsx)("img",{src:"./assets/virtualcall.svg",alt:"Global Virtual Consultations"}),(0,l.jsx)("span",{children:"Global Virtual Consultations"})]}),(0,l.jsxs)("div",{className:"secondpage-feature-item",children:[(0,l.jsx)("img",{src:"./assets/calendar.svg",alt:"Easy Appointment Management"}),(0,l.jsx)("span",{children:"Easy Appointment Management"})]}),(0,l.jsxs)("div",{className:"secondpage-feature-item",children:[(0,l.jsx)("img",{src:"./assets/e-payment.svg",alt:"Secure E-Payments"}),(0,l.jsx)("span",{children:"Secure E-Payments"})]})]})]})]}),(0,l.jsxs)("section",{className:"secondpage-platform-features",children:[(0,l.jsx)("h2",{children:"The Virtual Triage Platform Features"}),(0,l.jsxs)("div",{className:"secondpage-platform-feature-cards",children:[(0,l.jsxs)("div",{className:"secondpage-platform-feature-card",children:[(0,l.jsx)("div",{className:"secondpage-platform-feature-icon",children:(0,l.jsx)("img",{src:"./assets/human.svg",alt:"AI-Powered Symptom Analysis"})}),(0,l.jsx)("h3",{className:"secondpage-platform-feature-title",children:"AI-Powered Powered Precision"}),(0,l.jsx)("p",{className:"secondpage-platform-feature-description",children:"Unlike other platforms, Virtual Traige's AI is built specifically for healthcare, offering deeper symptom analysis and more accurate practitioner recommendations."})]}),(0,l.jsxs)("div",{className:"secondpage-platform-feature-card",children:[(0,l.jsx)("div",{className:"secondpage-platform-feature-icon",children:(0,l.jsx)("img",{src:"./assets/virtualcall.svg",alt:"E-Payments & e-consultations"})}),(0,l.jsx)("h3",{className:"secondpage-platform-feature-title",children:"Streamlined Operations"}),(0,l.jsx)("p",{className:"secondpage-platform-feature-description",children:"Automate administrative tasks like appointment scheduling, symptom analysis, and client inquiries with our healthcare-trained AI."})]}),(0,l.jsxs)("div",{className:"secondpage-platform-feature-card",children:[(0,l.jsx)("div",{className:"secondpage-platform-feature-icon",children:(0,l.jsx)("img",{src:"./assets/icon-5.svg",alt:"E-Payments & e-consultations"})}),(0,l.jsx)("h3",{className:"secondpage-platform-feature-title",children:"Marketplace for Global Healthcare Providers"}),(0,l.jsx)("p",{className:"secondpage-platform-feature-description",children:"A marketplace where users find experts, and professionals showcase their services."})]}),(0,l.jsxs)("div",{className:"secondpage-platform-feature-card",children:[(0,l.jsx)("div",{className:"secondpage-platform-feature-icon",children:(0,l.jsx)("img",{src:"./assets/calendar.svg",alt:"E-Payments & e-consultations"})}),(0,l.jsx)("h3",{className:"secondpage-platform-feature-title",children:"Cost & Time Saving"}),(0,l.jsx)("p",{className:"secondpage-platform-feature-description",children:"By reducing manual tasks and overhead, Virtual Triage saves time and costs, making health and wellness more efficient and accessible."})]})]})]}),(0,l.jsxs)("section",{className:"pricing-plans",children:[(0,l.jsx)("h2",{children:"Pick your preferred plan"}),(0,l.jsx)("p",{children:"Flexible pricing plans designed to fit your needs. Choose the plan that works best for you and start delivering quality care today."}),(0,l.jsxs)("div",{className:"toggle-switch",children:[(0,l.jsx)("button",{className:t?"active":"",onClick:()=>{n(!0)},children:"Monthly"}),(0,l.jsx)("button",{className:t?"":"active",onClick:()=>{n(!1)},children:"Yearly"})]}),(0,l.jsxs)("p",{style:{color:"black"},children:["Upto ",(0,l.jsx)("strong",{children:"16% OFF"})," on Yearly Plans!"]}),(0,l.jsx)("div",{className:"plans",children:c?(0,l.jsx)("div",{style:{textAlign:"center",padding:"50px",color:"black"},children:"Loading packages..."}):o.filter(e=>{const n=e.name.includes("Yearly");return t?!n:n}).map(e=>(0,l.jsxs)("div",{className:"plan-card",children:[(0,l.jsx)("h3",{children:e.name}),(0,l.jsxs)("p",{className:"price",children:["\xa3",e.price,(0,l.jsxs)("span",{style:{fontSize:"18px"},children:[" ","/ ",e.name.includes("Yearly")?"year":"month"]})]}),(0,l.jsx)("p",{children:e.description}),(0,l.jsx)("div",{className:"features-container",style:{height:"580px",overflowY:"auto"},children:(0,l.jsx)("ul",{children:e.marketing_features&&e.marketing_features.length>0?e.marketing_features.map((e,t)=>(0,l.jsx)("li",{children:e.name},t)):(0,_.c)(e.name).map((e,t)=>(0,l.jsx)("li",{children:e},t))})}),(0,l.jsx)("button",{className:"pricing-get-started-btn",onClick:()=>(e=>{"doctor"===e.type?d("/doctor-signup",{state:{packageDetails:e.id,packageName:e.name,packagePrice:e.price,packageDescription:e.description}}):d("/clinic_register",{state:{packageDetails:e.id,packageName:e.name,packagePrice:e.price,packageDescription:e.description}})})(e),children:"Get Started"})]},e.id))})]}),(0,l.jsx)("section",{className:"why-listing-section",children:(0,l.jsxs)("div",{className:"why-listing-container",children:[(0,l.jsxs)("div",{className:"why-listing-left",children:[(0,l.jsx)("h2",{className:"why-listing-title",children:"Why Listing Yourself Matters?"}),(0,l.jsxs)("p",{className:"why-listing-desc",children:["In today's digital-first healthcare world, visibility = credibility. Listing yourself opens the door to career growth and global reach for less than a sandwich a month, just ",(0,l.jsx)("b",{children:"\xa319.99/month"}),"."]}),(0,l.jsxs)("ul",{className:"why-listing-list",children:[(0,l.jsxs)("li",{children:[(0,l.jsx)(x.A7C,{className:"why-listing-check"})," ",(0,l.jsxs)("span",{children:[(0,l.jsx)("b",{children:"Gain exposure"})," to patients globally, not just locally."]})]}),(0,l.jsxs)("li",{children:[(0,l.jsx)(x.A7C,{className:"why-listing-check"})," ",(0,l.jsxs)("span",{children:[(0,l.jsx)("b",{children:"Attract more consultations"})," with higher discoverability."]})]}),(0,l.jsxs)("li",{children:[(0,l.jsx)(x.A7C,{className:"why-listing-check"})," ",(0,l.jsxs)("span",{children:[(0,l.jsx)("b",{children:"Build a loyal"})," following, expanding patient base over time."]})]}),(0,l.jsxs)("li",{children:[(0,l.jsx)(x.A7C,{className:"why-listing-check"})," ",(0,l.jsxs)("span",{children:[(0,l.jsx)("b",{children:"Strengthen your personal brand"})," and stand out professionally."]})]})]}),(0,l.jsxs)("p",{className:"why-listing-desc",children:["All this for just ",(0,l.jsx)("b",{children:"\xa319.99/month"}),", a small price for something that actually adds value."]}),(0,l.jsx)("a",{href:"https://virtualtriage.co/home-page",style:{textDecoration:"none",textAlign:"-webkit-center"},children:(0,l.jsxs)("button",{className:"list-yourself-btn",children:[(0,l.jsx)(x.A7C,{style:{marginRight:8}})," List Yourself!"]})})]}),(0,l.jsx)("div",{className:"why-listing-right",children:(0,l.jsx)("img",{src:"/assets/Asset 4.png",alt:"Why Listing Yourself Matters",className:"why-listing-img"})})]})}),(0,l.jsx)(g.A,{})]})};var C=n(3986);const E=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()},T=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)};var P={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const A=(0,e.createContext)({});function O(t){let{children:n,size:a,color:r,strokeWidth:i,absoluteStrokeWidth:o,className:s}=t;const l=(0,e.useMemo)(()=>({size:a,color:r,strokeWidth:i,absoluteStrokeWidth:o,className:s}),[a,r,i,o,s]);return(0,e.createElement)(A.Provider,{value:l},n)}const L=["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"],R=(0,e.forwardRef)((t,n)=>{var a,r,i;let{color:o,size:l,strokeWidth:c,absoluteStrokeWidth:u,className:d="",children:p,iconNode:f}=t,h=(0,C.A)(t,L);const{size:m=24,strokeWidth:g=2,absoluteStrokeWidth:v=!1,color:y="currentColor",className:b=""}=null!==(a=(0,e.useContext)(A))&&void 0!==a?a:{},x=(null!==u&&void 0!==u?u:v)?24*Number(null!==c&&void 0!==c?c:g)/Number(null!==l&&void 0!==l?l:m):null!==c&&void 0!==c?c:g;return(0,e.createElement)("svg",(0,s.A)((0,s.A)((0,s.A)({ref:n},P),{},{width:null!==(r=null!==l&&void 0!==l?l:m)&&void 0!==r?r:P.width,height:null!==(i=null!==l&&void 0!==l?l:m)&&void 0!==i?i:P.height,stroke:null!==o&&void 0!==o?o:y,strokeWidth:x,className:E("lucide",b,d)},!p&&!(e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(h)&&{"aria-hidden":"true"}),h),[...f.map(t=>{let[n,a]=t;return(0,e.createElement)(n,a)}),...Array.isArray(p)?p:[p]])}),D=["className"],I=(t,n)=>{const a=(0,e.forwardRef)((a,r)=>{let{className:i}=a,o=(0,C.A)(a,D);return(0,e.createElement)(R,(0,s.A)({ref:r,iconNode:n,className:E("lucide-".concat((l=T(t),l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase())),"lucide-".concat(t),i)},o));var l});return a.displayName=T(t),a},M=I("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),z=I("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]]),F=I("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),U=I("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),B=I("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),V=I("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);var q=n(6906),H=n(4866),W=n(843);const G={UK:["London","Manchester","Birmingham","Leeds","Glasgow","Liverpool","Newcastle","Sheffield","Bristol","Edinburgh"]},$=["English","Spanish","Arabic","Urdu","French","German","Russian"],K=e=>e?e.toUpperCase():"",Y=()=>{const[t,n]=(0,e.useState)([]),[r,i]=(0,e.useState)(!0),[o,s]=(0,e.useState)(!1),[c,u]=(0,e.useState)(""),d=(0,a.Zp)(),[p,f]=(0,e.useState)({total_count:0,page:1,page_size:20,total_pages:0,has_next:!1,has_previous:!1,offset:0,limit:20}),[,h]=(0,e.useState)(1),[v,y]=(0,e.useState)(!1),[b,x]=(0,e.useState)(null),[w,j]=(0,e.useState)(null),[k,_]=(0,e.useState)(null),[N,C]=(0,e.useState)(!1),[E,T]=(0,e.useState)([]),[P,A]=(0,e.useState)([]),[L,R]=(0,e.useState)(!1),[D,I]=(0,e.useState)(!1),[Y,Q]=(0,e.useState)(!0),J=["GPs","Dermatologists","Psychiatrists","Paediatricians"],Z=["Skin Rash","Anxiety","Acne","Hypertension","Back Pain"],[X,ee]=(0,e.useState)(0),[te,ne]=(0,e.useState)(0),[ae,re]=(0,e.useState)(!0),[ie,oe]=(0,e.useState)(!0),se=(0,e.useRef)(0);(0,e.useEffect)(()=>{const e=0===X?J:Z;se.current=0,ne(0);const t=setInterval(()=>{re(!1),setTimeout(()=>{const t=se.current+1;t>=e.length?(se.current=0,ne(0),oe(!1),setTimeout(()=>{ee(e=>(e+1)%2),oe(!0),re(!0)},380)):(se.current=t,ne(t),re(!0))},380)},2600);return()=>clearInterval(t)},[X]);const[le,ce]=(0,e.useState)(!1),[ue]=(0,e.useState)(null),[de,pe]=(0,e.useState)(null),[fe,he]=(0,e.useState)(!1),[me,ge]=(0,e.useState)(null),[ve,ye]=(0,e.useState)(null),[be,xe]=(0,e.useState)(null),[we,je]=(0,e.useState)(!1),ke=(0,e.useRef)(null),_e=async()=>{s(!0);try{var e,t;const a=await fetch("".concat(S.r,"/doctors/?limit=20&offset=0")),r=await a.json(),i=(null===r||void 0===r||null===(e=r.data)||void 0===e?void 0:e.data)||[];n(i),f((null===r||void 0===r||null===(t=r.data)||void 0===t?void 0:t.pagination)||p),h(1)}catch(a){console.error("API error:",a)}finally{s(!1),i(!1)}};(0,e.useEffect)(()=>{_e();(async()=>{R(!0);T([{subspecialty:"General Practitioner"},{subspecialty:"Dermatologist"},{subspecialty:"Psychiatrist"}]);try{const e=await fetch("".concat(S.r,"/doctors/subspecialties/counts/")),t=((await e.json()).data||[]).sort((e,t)=>(t.count||0)-(e.count||0));A(t)}catch(e){A([])}finally{R(!1)}})()},[]),(0,e.useEffect)(()=>{if(!(w||b||k||N)){if(ke.current&&clearTimeout(ke.current),c.trim())return ke.current=setTimeout(()=>{Ne(c)},400),()=>{ke.current&&clearTimeout(ke.current)};_e()}},[c,w,b,k,N]);const Se=async e=>{if(w===e)return j(null),void _e();j(e),x(null),_(null),C(!1),s(!0);try{var t,a;const r=await fetch("".concat(S.r,"/doctors/specialities/?speciality=").concat(encodeURIComponent(e),"&limit=20&offset=0")),i=await r.json();n((null===i||void 0===i||null===(t=i.data)||void 0===t?void 0:t.data)||[]),f((null===i||void 0===i||null===(a=i.data)||void 0===a?void 0:a.pagination)||p),h(1)}catch(r){n([])}finally{s(!1)}},Ne=async e=>{s(!0);try{var t,a;const r=await fetch("".concat(S.r,"/doctors/search/?query=").concat(encodeURIComponent(e))),i=await r.json();n((null===i||void 0===i||null===(t=i.data)||void 0===t?void 0:t.data)||[]),f((null===i||void 0===i||null===(a=i.data)||void 0===a?void 0:a.pagination)||p)}catch(r){n([])}finally{s(!1)}},Ce=()=>{x(null),j(null),_(null),C(!1),u(""),_e()},Ee=b||w||k||N,Te=t.filter(e=>{if(!Ee)return!0;if(!c)return!0;const t=(e.full_name||e.name||"").toLowerCase(),n=[...Array.isArray(e.speciality)?e.speciality:[],...Array.isArray(e.subspecialties)?e.subspecialties:[],...e.specialty?[e.specialty]:[]].map(e=>e.toLowerCase()),a=c.toLowerCase();return t.includes(a)||n.some(e=>e.includes(a))});return(0,l.jsxs)("div",{className:"practitioiners-list-container",children:[(0,l.jsx)(m.A,{}),(0,l.jsx)("div",{className:"fp-hero-banner",children:(0,l.jsxs)("div",{className:"fp-hero-inner",children:[(0,l.jsx)("p",{className:"fp-hero-sub",children:"Seamless Healthcare"}),(0,l.jsxs)("h1",{className:"fp-hero-heading",children:[(0,l.jsx)("span",{className:"fp-hero-heading-text".concat(ie?" fp-hero-word-visible":""),children:0===X?"Find Verified Doctors":"Helping With"}),(0,l.jsx)("br",{}),(0,l.jsx)("span",{className:"fp-hero-word".concat(ae?" fp-hero-word-visible":""),children:0===X?J[te]:Z[te]})]})]})}),(0,l.jsx)("div",{className:"practitioners-list-header",children:(0,l.jsxs)("div",{className:"pl-header-inner",children:[(0,l.jsxs)("div",{className:"search-bar",children:[(0,l.jsx)(M,{stroke:"#00a3bb",size:18}),(0,l.jsx)("input",{placeholder:"Search doctors or specialty...",value:c,onChange:e=>u(e.target.value)}),(0,l.jsxs)("button",{className:"filter-btn",onClick:()=>y(!0),title:"Open filters",children:[(0,l.jsx)(z,{size:18}),Ee&&(0,l.jsx)("span",{className:"filter-active-dot"})]})]}),Ee&&(0,l.jsxs)("div",{className:"active-filter-chips",children:[w&&(0,l.jsxs)("span",{className:"filter-chip",children:[w,(0,l.jsx)("button",{onClick:()=>{j(null),_e()},children:(0,l.jsx)(F,{size:12})})]}),b&&(0,l.jsxs)("span",{className:"filter-chip",children:[b,(0,l.jsx)("button",{onClick:()=>{x(null),_e()},children:(0,l.jsx)(F,{size:12})})]}),k&&(0,l.jsxs)("span",{className:"filter-chip",children:[k,(0,l.jsx)("button",{onClick:()=>{_(null),_e()},children:(0,l.jsx)(F,{size:12})})]}),N&&(0,l.jsxs)("span",{className:"filter-chip",children:["Accepts Insurance",(0,l.jsx)("button",{onClick:()=>{C(!1),_e()},children:(0,l.jsx)(F,{size:12})})]}),(0,l.jsx)("button",{className:"clear-all-chip",onClick:Ce,children:"Clear all"})]})]})}),(0,l.jsxs)("div",{className:"pl-layout",children:[v&&(0,l.jsx)("div",{className:"pl-sidebar-overlay",onClick:()=>y(!1)}),(0,l.jsxs)("aside",{className:"pl-sidebar".concat(v?" pl-sidebar-open":""),children:[(0,l.jsxs)("div",{className:"pl-sidebar-header",children:[(0,l.jsx)("span",{children:"Filters"}),(0,l.jsx)("button",{className:"pl-sidebar-close",onClick:()=>y(!1),children:(0,l.jsx)(F,{size:20})})]}),Ee&&(0,l.jsx)("div",{className:"pl-sidebar-section",children:(0,l.jsx)("button",{className:"pl-sidebar-clear-btn",onClick:()=>{Ce(),y(!1)},children:"\u2715 Clear all filters"})}),(0,l.jsxs)("div",{className:"pl-sidebar-section",children:[(0,l.jsx)("div",{className:"pl-sidebar-title",children:"SPECIALTIES"}),L?(0,l.jsx)("div",{className:"pl-sidebar-loading",children:"Loading specialties..."}):(0,l.jsxs)(l.Fragment,{children:[E.map(e=>(0,l.jsx)("button",{className:"pl-sidebar-btn".concat(w===e.subspecialty?" active":""),onClick:()=>{Se(e.subspecialty),y(!1)},children:K(e.subspecialty)},e.subspecialty)),P.length>0&&(0,l.jsxs)("div",{children:[(0,l.jsxs)("button",{className:"pl-sidebar-btn pl-sidebar-btn-expand",onClick:()=>I(e=>!e),children:["Others ",(0,l.jsx)("span",{children:D?"\u25bc":"\u25b6"})]}),(0,l.jsx)("div",{className:"pl-sidebar-collapse".concat(D?" open":""),children:P.map(e=>(0,l.jsx)("button",{className:"pl-sidebar-btn pl-sidebar-btn-sub".concat(w===e.subspecialty?" active":""),onClick:()=>{Se(e.subspecialty),y(!1)},children:K(e.subspecialty)},e.subspecialty))})]})]})]}),(0,l.jsxs)("div",{className:"pl-sidebar-section",children:[(0,l.jsx)("div",{className:"pl-sidebar-title",children:"LOCATION"}),Object.keys(G).map(e=>(0,l.jsxs)("div",{children:[(0,l.jsxs)("button",{className:"pl-sidebar-btn pl-sidebar-btn-expand",onClick:()=>Q(e=>!e),children:["UNITED KINGDOM ",(0,l.jsx)("span",{children:Y?"\u25bc":"\u25b6"})]}),(0,l.jsx)("div",{className:"pl-sidebar-collapse".concat(Y?" open":""),children:G[e].map(e=>(0,l.jsx)("button",{className:"pl-sidebar-btn pl-sidebar-btn-sub".concat(b===e?" active":""),onClick:()=>{(async e=>{if(b===e)return x(null),void _e();x(e),j(null),_(null),C(!1),s(!0);try{var t,a;const r=await fetch("".concat(S.r,"/doctors/search/location/?location=").concat(encodeURIComponent(e))),i=await r.json();n((null===i||void 0===i||null===(t=i.data)||void 0===t?void 0:t.data)||[]),f((null===i||void 0===i||null===(a=i.data)||void 0===a?void 0:a.pagination)||p),h(1)}catch(r){n([])}finally{s(!1)}})(e),y(!1)},children:K(e)},e))})]},e))]}),(0,l.jsxs)("div",{className:"pl-sidebar-section",children:[(0,l.jsx)("div",{className:"pl-sidebar-title",children:"INSURANCE"}),(0,l.jsx)("button",{className:"pl-sidebar-btn".concat(N?" active":""),onClick:()=>{(async()=>{if(N)return C(!1),void _e();C(!0),x(null),j(null),_(null),s(!0);try{var e;const t=await fetch("".concat(S.r,"/doctors/insurance/?insurance=Yes")),a=await t.json(),r=((null===a||void 0===a||null===(e=a.data)||void 0===e?void 0:e.data)||[]).filter(e=>Array.isArray(e.insurers)&&e.insurers.length>0);n(r),f({total_count:r.length,page:1,page_size:20,total_pages:Math.ceil(r.length/20),has_next:r.length>20,has_previous:!1,offset:0,limit:20}),h(1)}catch(t){n([])}finally{s(!1)}})(),y(!1)},children:"ACCEPT INSURANCE"})]}),(0,l.jsxs)("div",{className:"pl-sidebar-section",children:[(0,l.jsx)("div",{className:"pl-sidebar-title",children:"LANGUAGE"}),$.map(e=>(0,l.jsx)("button",{className:"pl-sidebar-btn".concat(k===e?" active":""),onClick:()=>{(async e=>{if(k===e)return _(null),void _e();_(e),x(null),j(null),C(!1),s(!0);try{var t,a;const r=await fetch("".concat(S.r,"/doctors/languages/?language=").concat(encodeURIComponent(e))),i=await r.json();n((null===i||void 0===i||null===(t=i.data)||void 0===t?void 0:t.data)||[]),f((null===i||void 0===i||null===(a=i.data)||void 0===a?void 0:a.pagination)||p),h(1)}catch(r){n([])}finally{s(!1)}})(e),y(!1)},children:K(e)},e))]})]}),(0,l.jsxs)("div",{className:"pl-content",children:[(0,l.jsx)("div",{className:"doctor-list",children:r||o?(0,l.jsx)("div",{className:"pl-loading-grid",children:[...Array(6)].map((e,t)=>(0,l.jsxs)("div",{className:"pl-skeleton-card",children:[(0,l.jsx)("div",{className:"pl-skeleton-img"}),(0,l.jsxs)("div",{className:"pl-skeleton-lines",children:[(0,l.jsx)("div",{className:"pl-skeleton-line pl-skeleton-line-long"}),(0,l.jsx)("div",{className:"pl-skeleton-line pl-skeleton-line-short"}),(0,l.jsx)("div",{className:"pl-skeleton-line pl-skeleton-line-med"})]})]},t))}):0===Te.length?(0,l.jsxs)("div",{className:"pl-empty-state",children:[(0,l.jsxs)("svg",{width:"52",height:"52",viewBox:"0 0 24 24",fill:"none",stroke:"#c8d6e0",strokeWidth:"1.5",children:[(0,l.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,l.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),(0,l.jsx)("p",{className:"pl-empty-title",children:"No practitioners found"}),(0,l.jsx)("p",{className:"pl-empty-sub",children:"Try adjusting your filters or search term"}),(0,l.jsx)("button",{className:"pl-empty-reset",onClick:Ce,children:"Reset filters"})]}):Te.map(e=>{var t,n,a,r;const i={id:e._id||e.id,name:e.full_name||e.name,specialty:(Array.isArray(e.subspecialties)?e.subspecialties[0]:e.subspecialties)||e.speciality||"",location:(()=>{const t=Array.isArray(e.locations)&&e.locations[0];if(t){var n,a;const e=null===(n=t.city)||void 0===n?void 0:n.trim(),r=null===(a=t.country)||void 0===a?void 0:a.trim();if(e&&r)return"".concat(e,", ").concat(r);if(e)return e;if(r)return r}return e.location||"UK"})(),expertise:Array.isArray(e.areas_of_expertise)?e.areas_of_expertise:[],experience:e.experience_years,rating:"number"===typeof e.rating?e.rating:(null===(t=e.ratings)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.Doctor_Rating)||0,image:e.profile_picture_url||"../assets/Virtual%20Triage.png",isAvailable:!0===e.status&&(void 0===e.slots_available||!0===e.slots_available),nextSlot:e.next_available_slot||null},o=(null===e||void 0===e?void 0:e.username)||(null===e||void 0===e?void 0:e._id)||(null===e||void 0===e?void 0:e.id),s=be===o;return(0,l.jsx)("div",{className:"doctor-card".concat(s?" loading":""),onClick:()=>!s&&(async e=>{const t=(null===e||void 0===e?void 0:e.username)||(null===e||void 0===e?void 0:e._id)||(null===e||void 0===e?void 0:e.id);if(t&&be!==t){xe(t);try{const t=await fetch("".concat(S.r,"/doctors/by-username/").concat(encodeURIComponent(e.username))),a=await t.json(),r=null===a||void 0===a?void 0:a.data;if(!r)return;try{await fetch("".concat(S.r,"/doctors/profile-viewed/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doctor_email:r.email})})}catch(n){}const i=r.username||e.username,o=e._id||e.id,s="/profile/".concat(i?encodeURIComponent(i):encodeURIComponent(o));window.scrollTo(0,0),d(s,{state:{doctorData:r,doctorId:o}})}catch(a){console.error("Error fetching doctor details:",a)}finally{xe(null)}}})(e),style:{cursor:s?"wait":"pointer",opacity:s?.7:1},children:(0,l.jsxs)("div",{className:"doctor-info",children:[(0,l.jsxs)("div",{className:"top-row",children:[(0,l.jsxs)("div",{className:"top-section-here",children:[(0,l.jsxs)("div",{className:"doctor-img-wrapper",children:[(0,l.jsx)("img",{src:i.image,alt:"doctor",className:"doctor-img"}),i.isAvailable&&(0,l.jsx)("div",{className:"available-badge",title:"Available",children:"\u2714"})]}),(0,l.jsxs)("div",{className:"doc-info-section",children:[(0,l.jsx)("h3",{children:i.name}),(0,l.jsx)("p",{className:"specialty",children:i.specialty}),(0,l.jsxs)("p",{className:"location",children:[(0,l.jsx)(U,{size:12}),i.location]}),(0,l.jsxs)("p",{className:"location",children:[(0,l.jsx)(B,{size:12}),"Exprience: ",i.experience,"+Years"]})]})]}),(0,l.jsxs)("span",{className:"rating",children:[[1,2,3,4,5].map(e=>(0,l.jsx)(O,{size:12,strokeWidth:0,children:(0,l.jsx)(V,{fill:e<=Math.round(i.rating)?"orange":"#e0e0e0"})},e)),(0,l.jsx)("span",{className:"rating-value",children:i.rating>0?i.rating.toFixed(1):"4.5+"})]})]}),(0,l.jsxs)("div",{className:"expertise-chips",children:[i.expertise.slice(0,3).map(e=>(0,l.jsx)("span",{className:"expertise-chip",children:e},e)),i.expertise.length>3&&(0,l.jsxs)("span",{className:"expertise-chip expertise-chip-more",children:["+",i.expertise.length-3]})]}),(0,l.jsxs)("div",{className:"bottom-row",children:[(0,l.jsxs)("div",{className:"next-available-section-here",children:[(0,l.jsx)("p",{className:"next-available-title",children:"Next Available:"}),null!==(a=i.nextSlot)&&void 0!==a&&a.day&&null!==(r=i.nextSlot)&&void 0!==r&&r.start?(0,l.jsx)("span",{className:"time",children:(0,l.jsx)("p",{children:"".concat(i.nextSlot.day,", ").concat(i.nextSlot.start)})}):(0,l.jsx)("p",{style:{color:"#333",fontWeight:"bold",backgroundColor:"#f5d2d2",fontSize:"12px",padding:"5px",borderRadius:"5px"},children:"Request for Slot"})]}),(0,l.jsx)("button",{className:"book-btn",onClick:t=>{t.stopPropagation(),(async e=>{if(e&&e.email){W.A.reset(),W.A.eventData.doctor_name=e.full_Name||e.full_name||e.name||"",pe(e),ge(null),he(!0),ye(e._id||e.id);try{const t=await S.A.post("/patient/appointment/book-appointment/directory/",{doctor_email:e.email}),n=null===t||void 0===t?void 0:t.data;if(401===t.status||403===t.status||!1===(null===n||void 0===n?void 0:n.status))return localStorage.removeItem("authToken"),void localStorage.removeItem("userData");null!==n&&void 0!==n&&n.clinic_id&&ge(n.clinic_id)}catch(n){var t;console.error("Error resolving clinic_id:",(null===(t=n.response)||void 0===t?void 0:t.data)||n.message)}finally{ye(null)}}else alert("Doctor information is missing. Please try again later.")})(e)},children:ve===i.id?"Loading...":"Book"})]})]})},i.id)})}),p.has_next&&!r&&!o&&(0,l.jsx)("div",{className:"load-more-container",children:(0,l.jsx)("button",{className:"load-more-btn",onClick:async()=>{if(we||!p.has_next)return;je(!0);const e=t.length;try{var a,r;let t;t=w?"".concat(S.r,"/doctors/specialities/?speciality=").concat(encodeURIComponent(w),"&limit=20&offset=").concat(e):b?"".concat(S.r,"/doctors/search/location/?location=").concat(encodeURIComponent(b),"&offset=").concat(e):k?"".concat(S.r,"/doctors/languages/?language=").concat(encodeURIComponent(k),"&offset=").concat(e):N?"".concat(S.r,"/doctors/insurance/?insurance=Yes&offset=").concat(e):"".concat(S.r,"/doctors/?limit=20&offset=").concat(e);const i=await fetch(t),o=await i.json();let s=(null===o||void 0===o||null===(a=o.data)||void 0===a?void 0:a.data)||[];N&&(s=s.filter(e=>Array.isArray(e.insurers)&&e.insurers.length>0)),n(e=>[...e,...s]),N||f((null===o||void 0===o||null===(r=o.data)||void 0===r?void 0:r.pagination)||p)}catch(i){console.error("Load more error:",i)}finally{je(!1)}},disabled:we,children:we?"Loading...":"Load More"})})]})]}),(0,l.jsx)(g.A,{}),(0,l.jsx)(q.A,{isOpen:le,onClose:()=>ce(!1),doctorName:null===ue||void 0===ue?void 0:ue.full_name,doctorId:null===ue||void 0===ue?void 0:ue._id}),(0,l.jsx)(H.default,{isOpen:fe,onClose:()=>{he(!1),ge(null)},clinicId:me,practitionerEmail:null===de||void 0===de?void 0:de.email,practitionerData:de})]})},Q=(0,e.lazy)(()=>Promise.resolve().then(n.bind(n,9168))),J=(0,e.lazy)(()=>Promise.resolve().then(n.bind(n,4866)));const Z=function(){const t=(0,a.Zp)(),[n,r]=(0,e.useState)(!1),[i,o]=(0,e.useState)([]),[c,u]=(0,e.useState)(!1),[d,p]=(0,e.useState)(0),f=(0,e.useRef)(null),[h,b]=(0,e.useState)(null),[x,w]=(0,e.useState)(null),[j,k]=(0,e.useState)(!1),[_,N]=(0,e.useState)(!1),[C,E]=(0,e.useState)(null),[T,P]=(0,e.useState)(!1),[A,O]=(0,e.useState)(null),[L,R]=(0,e.useState)(null),[D,I]=(0,e.useState)(null),[M,z]=(0,e.useState)(null),F=(0,e.useCallback)(async()=>{try{u(!0);const[e,t]=await Promise.all([fetch("".concat(S.r,"/doctors/specialities/?speciality=GP&limit=10&offset=0")),fetch("".concat(S.r,"/doctors/specialities/?speciality=General%20Medicine&limit=10&offset=0"))]),n=await e.json(),a=await t.json(),r=[],i=new Set;n.data&&n.data.data&&n.data.data.forEach(e=>{i.has(e._id)||(i.add(e._id),r.push(e))}),a.data&&a.data.data&&a.data.data.forEach(e=>{i.has(e._id)||(i.add(e._id),r.push(e))});const s=r.sort((e,t)=>e.verified&&!t.verified?-1:!e.verified&&t.verified?1:0);o(s)}catch(e){console.error("Error fetching doctors:",e)}finally{u(!1)}},[]);(0,e.useEffect)(()=>{const e=()=>{"requestIdleCallback"in window?requestIdleCallback(()=>{F()},{timeout:3e3}):setTimeout(()=>{F()},500)};"complete"===document.readyState?e():window.addEventListener("load",e,{once:!0})},[F]);const U=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!e)return void t("/find-practitioners");R(e._id||e.id);const n=localStorage.getItem("authToken");if(!n){let t=e;if(!e.email)try{const n=await fetch("".concat(S.r,"/doctors/").concat(e._id)),a=await n.json();a.data&&(t=a.data)}catch(a){console.error("Error fetching doctor details:",a)}return E(t),N(!0),void R(null)}try{let t=e.email;if(!t){const n=await fetch("".concat(S.r,"/doctors/").concat(e._id)),a=await n.json();a.data&&a.data.email&&(t=a.data.email,e=(0,s.A)((0,s.A)({},e),a.data))}if(!t)return alert("Doctor email not available. Please try again later."),void R(null);const a=await fetch("https://portal.virtualtriage.ca/api/v1/patient/appointment/book-appointment/directory/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:"Bearer ".concat(n)},body:JSON.stringify({doctor_email:t})});if(401===a.status||403===a.status)return localStorage.removeItem("authToken"),localStorage.removeItem("userData"),E(e),N(!0),void R(null);const r=await a.json();if(!1===r.status&&"Patient not found."===r.message)return E(e),N(!0),void R(null);r.clinic_id?(O(r.clinic_id),P(!0)):alert("Clinic information not available. Please try again later.")}catch(a){console.error("Error getting clinic details:",a),a.message&&(a.message.includes("401")||a.message.includes("403"))?(localStorage.removeItem("authToken"),localStorage.removeItem("userData"),E(e),N(!0)):alert("Error getting clinic details. Please try again later.")}finally{R(null)}},B=(0,e.useCallback)(()=>"undefined"===typeof window?3:window.innerWidth<=768?1:window.innerWidth<=1024?2:3,[]),[V,q]=(0,e.useState)(()=>"undefined"===typeof window?3:B());(0,e.useEffect)(()=>{let e;const t=()=>{clearTimeout(e);const t=()=>{e=setTimeout(()=>{q(B()),p(0)},150)};"requestIdleCallback"in window?requestIdleCallback(t,{timeout:300}):t()};return window.addEventListener("resize",t,{passive:!0}),()=>{window.removeEventListener("resize",t),clearTimeout(e)}},[B]);const H=(0,e.useMemo)(()=>Math.max(0,Math.ceil(i.length/V)-1),[i.length,V]),W=(0,e.useCallback)(()=>{p(e=>e>=H?0:e+1)},[H]),G=(0,e.useCallback)(()=>{p(e=>e<=0?H:e-1)},[H]),$=(0,e.useCallback)(e=>{p(e)},[]);(0,e.useEffect)(()=>{if(f.current){const e=requestAnimationFrame(()=>{if(f.current){const e=100*-d;f.current.style.transform="translateX(".concat(e,"%)"),f.current.style.transition=j?"none":"transform 0.5s cubic-bezier(0.4, 0, 0.2, 1)"}});return()=>cancelAnimationFrame(e)}},[d,j]);const K=(0,e.useCallback)(e=>{e.target.closest("button")||(w(null),b(e.targetTouches[0].clientX),k(!0))},[]),Y=(0,e.useCallback)(e=>{null!==h&&w(e.targetTouches[0].clientX)},[h]),Z=(0,e.useCallback)(e=>{if(e.target.closest("button"))return k(!1),b(null),void w(null);if(!h||!x)return void k(!1);const t=h-x,n=t<-50;t>50?W():n&&G(),k(!1),b(null),w(null)},[h,x,W,G]),[X,ee]=(0,e.useState)(null),[te,ne]=(0,e.useState)(null),ae=(0,e.useCallback)(e=>{e.target.closest("button")||(ne(null),ee(e.clientX),k(!0))},[]),re=(0,e.useCallback)(e=>{null!==X&&ne(e.clientX)},[X]),ie=(0,e.useCallback)(e=>{if(e.target.closest("button"))return k(!1),ee(null),void ne(null);if(!X||!te)return void k(!1);const t=X-te,n=t<-50;t>50?W():n&&G(),k(!1),ee(null),ne(null)},[X,te,W,G]),oe=(0,e.useMemo)(()=>({"@type":"FAQPage",mainEntity:[{"@type":"Question",name:"What is an online GP appointment?",acceptedAnswer:{"@type":"Answer",text:"An online GP appointment refers to a consultation conducted by an independent General Practitioner (GP) using video, phone, or secure messaging technologies. Virtual Triage is a technology platform that helps patients find and book online GP appointments with doctors who offer remote consultations. Virtual Triage does not provide medical advice or healthcare services itself."}},{"@type":"Question",name:"Is an online GP the same as NHS GP?",acceptedAnswer:{"@type":"Answer",text:"Online GPs are qualified doctors who may also work within the NHS. Some doctors listed on Virtual Triage offer private appointments outside of their NHS roles. Virtual Triage does not employ doctors or provide medical services. It enables patients to book appointments directly with independent practitioners who choose to offer online consultations."}},{"@type":"Question",name:"Can I get a prescription from an online GP?",acceptedAnswer:{"@type":"Answer",text:"You can get a prescription from an online GP, but it is never issued by Virtual Triage. Any prescriptions are provided solely at the discretion of the independent doctor or clinic you book with, following a consultation conducted outside of the Virtual Triage platform's control."}},{"@type":"Question",name:"How much does an online GP appointment cost?",acceptedAnswer:{"@type":"Answer",text:"Appointment fees are set by the individual doctor or clinic offering the consultation. Virtual Triage displays pricing information transparently to help patients make informed booking decisions."}},{"@type":"Question",name:"Are online doctors safe and licensed in the UK?",acceptedAnswer:{"@type":"Answer",text:"Yes, all doctors on Virtual Triage are fully licensed and registered with the General Medical Council (GMC) in the UK. They must meet this requirement in order to create profile on Virtual Triage. Our platform uses encryption and is GDPR compliant to ensure your medical information is kept secure and confidential. All consultations are conducted in a secure, private environment."}}]}),[]),se=(0,e.useMemo)(()=>({"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://virtualtriage.ai/#organization",name:"Find Available GPs Online",url:"https://virtualtriage.ai",logo:{"@type":"ImageObject","@id":"https://virtualtriage.ai/#logo",url:"https://virtualtriage.ai/assets/Virtual%20Triage.png"}},{"@type":"WebPage","@id":"https://virtualtriage.ai/book-gp#webpage",url:"https://virtualtriage.ai/book-gp",name:"Book Online GP Appointment UK | Same-Day GP Appointments",description:"Book an online GP appointment in the UK with qualified General Practitioners. Same-day appointments available. Connect with UK-licensed doctors for secure video consultations. No long NHS waiting times.",isPartOf:{"@id":"https://virtualtriage.ai/#website"},about:{"@id":"https://virtualtriage.ai/book-gp#service"},inLanguage:"en-GB"},{"@type":"Service","@id":"https://virtualtriage.ai/book-gp#service",name:"Online GP Appointment Booking",serviceType:["Online GP consultation","Private GP appointment","Video consultation","Telemedicine"],description:"Virtual Triage is a UK-focused digital appointment booking platform that helps patients find and book online GP appointments with independent General Practitioners who offer remote consultations.",areaServed:{"@type":"Country",name:"United Kingdom"},provider:{"@id":"https://virtualtriage.ai/#organization"},offers:{"@type":"Offer",availability:"https://schema.org/InStock",priceCurrency:"GBP"}},{"@type":"WebSite","@id":"https://virtualtriage.ai/#website",name:"Virtual Triage",url:"https://virtualtriage.ai",description:"Book a private GP or online doctor in the UK. Same-day appointments, secure video consultations, and fast access to private ADHD assessments with trusted specialists.",publisher:{"@id":"https://virtualtriage.ai/#organization"},inLanguage:"en-GB"},{"@context":"https://schema.org","@type":"FAQPage",mainEntity:oe.mainEntity}]}),[oe]);return(0,l.jsxs)("div",{className:"gp-funnel-page",children:[(0,l.jsx)(v.A,{title:"Book Online GP Appointment UK | Same-Day GP Appointments | Virtual Triage",description:"Book an online GP appointment in the UK with qualified General Practitioners. Same-day appointments available. Connect with UK-licensed doctors for secure video consultations. No long NHS waiting times. Virtual Triage helps you find and book online GP appointments with independent doctors.",keywords:"book gp appointment online uk, online gp appointment uk, same day gp appointment uk, private gp appointment uk, book gp online, online doctor uk, gp consultation online, virtual gp appointment uk, private gp uk, book gp today uk, online gp uk, gp video consultation uk, private general practitioner uk, book gp appointment same day, online gp booking uk",canonical:"https://virtualtriage.ai/book-gp",structuredData:se,location:"UK"}),(0,l.jsx)(m.A,{}),(0,l.jsxs)("section",{className:"hero-area",children:[(0,l.jsxs)("div",{className:"hero-background",children:[(0,l.jsx)("div",{className:"gradient-orb orb-1"}),(0,l.jsx)("div",{className:"gradient-orb orb-2"}),(0,l.jsx)("div",{className:"gradient-orb orb-3"})]}),(0,l.jsxs)("div",{className:"hero-content",children:[(0,l.jsxs)("h1",{className:"lp-hero-title",children:["Book an Online GP Appointment in the UK",(0,l.jsx)("span",{className:"gradient-text",children:"\xa0Find Available GPs"})]}),(0,l.jsx)("p",{className:"hero-subtitle",children:"Connect with qualified General Practitioners & Family Doctors instantly. Book your GP appointment today with Virtual Triage - quality healthcare made simple."}),!c&&i.length>0&&(0,l.jsxs)("div",{className:"hero-doctors-section-inline",children:[(0,l.jsxs)("div",{className:"hero-doctors-header-inline",children:[(0,l.jsx)("h2",{className:"hero-doctors-title-inline",children:"Available Doctors"}),(0,l.jsx)("p",{className:"hero-doctors-subtitle-inline",children:"Choose from our list of General Practitioners"})]}),(0,l.jsxs)("div",{className:"hero-doctors-carousel-wrapper-inline",children:[(0,l.jsx)("button",{className:"carousel-nav-button carousel-prev",onClick:G,"aria-label":"Previous slide",children:(0,l.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,l.jsx)("polyline",{points:"15 18 9 12 15 6"})})}),(0,l.jsx)("div",{className:"hero-doctors-carousel-container",onTouchStart:K,onTouchMove:Y,onTouchEnd:Z,onMouseDown:ae,onMouseMove:re,onMouseUp:ie,onMouseLeave:ie,style:{cursor:j?"grabbing":"grab",userSelect:"none"},children:(0,l.jsx)("div",{className:"hero-doctors-carousel",ref:f,children:Array.from({length:Math.ceil(i.length/V)}).map((e,n)=>{const a=Math.abs(n-d)<=1;return!a&&i.length>2*V?null:(0,l.jsx)("div",{className:"carousel-slide",style:{display:a?"block":"none"},children:(0,l.jsx)("div",{className:"hero-doctors-grid",children:i.slice(n*V,(n+1)*V).map(e=>(0,l.jsxs)("div",{className:"hero-doctor-card-patient",children:[(0,l.jsxs)("div",{className:"hero-doctor-card-top",children:[e.profile_picture_url?(0,l.jsxs)("div",{className:"hero-doctor-image",children:[(0,l.jsx)(y.A,{src:e.profile_picture_url,alt:e.full_name||"Doctor",className:"hero-doctor-img",width:"80",height:"80",eager:0===n&&i.indexOf(e)<V,onError:e=>{e.target.style.display="none",e.target.nextSibling&&(e.target.nextSibling.style.display="flex")}}),(0,l.jsx)("div",{className:"hero-doctor-avatar-fallback",style:{display:"none"},children:e.full_name?e.full_name.split(" ").map(e=>e[0]).join("").substring(0,2):"DR"})]}):(0,l.jsx)("div",{className:"hero-doctor-avatar",children:e.full_name?e.full_name.split(" ").map(e=>e[0]).join("").substring(0,2):"DR"}),(0,l.jsxs)("div",{className:"hero-doctor-info",children:[(0,l.jsxs)("div",{className:"hero-doctor-header",children:[(0,l.jsx)("h3",{className:"hero-doctor-name",children:e.full_name}),e.verified&&(0,l.jsxs)("span",{className:"hero-doctor-verified-badge",children:[(0,l.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,l.jsx)("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),(0,l.jsx)("polyline",{points:"22 4 12 14.01 9 11.01"})]}),"Verified"]})]}),(0,l.jsxs)("div",{className:"hero-doctor-meta",children:[e.subspecialties&&e.subspecialties.length>0&&(0,l.jsx)("span",{className:"hero-specialty-badge",children:e.subspecialties.includes("GP")?"GP":e.subspecialties.includes("General Medicine")?"General Medicine":e.subspecialties.includes(e=>e.includes("GP")||e.includes("General Medicine")||e.includes("General Practitioner"))||e.subspecialties[0]}),e.experience_years&&(0,l.jsxs)("span",{className:"hero-doctor-experience-text",children:[e.experience_years," years experience"]})]}),e.locations&&e.locations.length>0&&(0,l.jsxs)("div",{className:"hero-doctor-location",children:[(0,l.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,l.jsx)("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),(0,l.jsx)("circle",{cx:"12",cy:"10",r:"3"})]}),(0,l.jsx)("span",{children:e.locations&&e.locations.length>0?e.locations.map(e=>"".concat(e.city||"",", ").concat(e.country||"")).join(", "):""})]}),e.new_appointment_fee&&(0,l.jsxs)("div",{className:"hero-doctor-fee",children:[(0,l.jsx)("span",{className:"fee-label",children:"New Appointment:"}),(0,l.jsxs)("span",{className:"fee-amount",children:["\xa3",e.new_appointment_fee]})]})]})]}),(0,l.jsxs)("div",{className:"hero-doctor-actions",children:[(0,l.jsx)("button",{className:"hero-doctor-book-btn",onClick:()=>U(e),disabled:L===e._id,children:L===e._id?"Loading...":"Book Appointment"}),(0,l.jsx)("button",{className:"hero-doctor-profile-btn",onClick:()=>{D!==e._id&&D!==e.id&&(async e=>{if(D!==e._id){I(e._id);try{const r=await fetch("".concat(S.r,"/doctors/").concat(e._id)),i=await r.json();if(i.data){try{await fetch("".concat(S.r,"/doctors/profile-viewed/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doctor_email:i.data.email})})}catch(a){console.error("Error tracking profile view:",a)}const r=(n=i.data.full_name)?n.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,""):"",o="/profile/".concat(r||e._id);window.scrollTo(0,0),t(o,{state:{doctorData:i.data,doctorId:e._id}})}}catch(r){console.error("Error fetching doctor profile:",r)}finally{I(null)}var n}})(e)},disabled:D===e._id||D===e.id,children:D===e._id||D===e.id?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"loading-spinner-small"}),"Loading..."]}):"View Profile"})]})]},e._id))})},n)})})}),(0,l.jsx)("button",{className:"carousel-nav-button carousel-next",onClick:W,"aria-label":"Next slide",children:(0,l.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,l.jsx)("polyline",{points:"9 18 15 12 9 6"})})})]}),Math.ceil(i.length/V)>1&&(0,l.jsx)("div",{className:"carousel-dots",children:Array.from({length:Math.ceil(i.length/V)}).map((e,t)=>(0,l.jsx)("button",{className:"carousel-dot ".concat(d===t?"active":""),onClick:()=>$(t),"aria-label":"Go to slide ".concat(t+1)},t))})]}),(0,l.jsxs)("div",{className:"hero-cta-group",children:[(0,l.jsx)("a",{href:"https://virtualtriage.ai/find-practitioners",children:(0,l.jsxs)("button",{className:"cta-primary",onClick:U,disabled:null!==L,children:[L?"Loading...":"Book Other Specialties",!L&&(0,l.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,l.jsx)("path",{d:"M7.5 15L12.5 10L7.5 5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})}),(0,l.jsx)("a",{href:" https://virtualtriage.ai",children:(0,l.jsx)("button",{className:"cta-secondary",children:"Learn More"})})]}),(0,l.jsxs)("div",{className:"hero-stats",children:[(0,l.jsxs)("div",{className:"stat-item",children:[(0,l.jsx)("div",{className:"stat-number",children:"24/7"}),(0,l.jsx)("div",{className:"lp-stat-label",children:"Availability"})]}),(0,l.jsxs)("div",{className:"stat-item",children:[(0,l.jsx)("div",{className:"stat-number",children:"<15 min"}),(0,l.jsx)("div",{className:"lp-stat-label",children:"Average Wait"})]}),(0,l.jsxs)("div",{className:"stat-item",children:[(0,l.jsxs)("div",{className:"stat-number",children:["4.9 ",(0,l.jsx)("span",{className:"rating-star",children:"\u2605"})]}),(0,l.jsx)("div",{className:"lp-stat-label",children:"Patient Rating"})]})]})]})]}),(0,l.jsx)("section",{className:"features",id:"features",children:(0,l.jsxs)("div",{className:"container",children:[(0,l.jsxs)("div",{className:"section-header",children:[(0,l.jsx)("h2",{className:"lp-section-title",children:"Why Choose Virtual Triage for Your GP Appointment?"}),(0,l.jsx)("p",{className:"section-subtitle",children:"Experience convenient GP appointments with qualified General Practitioners"})]}),(0,l.jsxs)("div",{className:"features-grid",children:[(0,l.jsxs)("div",{className:"feature-card",children:[(0,l.jsx)("div",{className:"feature-icon",children:(0,l.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:[(0,l.jsx)("path",{d:"M16 2L4 8V16C4 22.627 9.373 28 16 28C22.627 28 28 22.627 28 16V8L16 2Z",stroke:"currentColor",strokeWidth:"2",fill:"none"}),(0,l.jsx)("path",{d:"M12 16L14.5 18.5L20 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,l.jsx)("h3",{className:"feature-title",children:"Instant Access"}),(0,l.jsx)("p",{className:"feature-description",children:"Connect with qualified doctors in minutes, not days. No more waiting weeks for appointments."})]}),(0,l.jsxs)("div",{className:"feature-card",children:[(0,l.jsx)("div",{className:"feature-icon",children:(0,l.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:[(0,l.jsx)("rect",{x:"4",y:"8",width:"24",height:"16",rx:"2",stroke:"currentColor",strokeWidth:"2"}),(0,l.jsx)("path",{d:"M4 12H28",stroke:"currentColor",strokeWidth:"2"}),(0,l.jsx)("circle",{cx:"10",cy:"18",r:"1.5",fill:"currentColor"}),(0,l.jsx)("circle",{cx:"16",cy:"18",r:"1.5",fill:"currentColor"})]})}),(0,l.jsx)("h3",{className:"feature-title",children:"Secure & Private"}),(0,l.jsx)("p",{className:"feature-description",children:"Your health information is protected with bank-level encryption and GDPR compliant."})]}),(0,l.jsxs)("div",{className:"feature-card",children:[(0,l.jsx)("div",{className:"feature-icon",children:(0,l.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:[(0,l.jsx)("path",{d:"M16 4C9.373 4 4 9.373 4 16C4 22.627 9.373 28 16 28C22.627 28 28 22.627 28 16C28 9.373 22.627 4 16 4Z",stroke:"currentColor",strokeWidth:"2"}),(0,l.jsx)("path",{d:"M16 8V16L20 20",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}),(0,l.jsx)("h3",{className:"feature-title",children:"Flexible Scheduling"}),(0,l.jsx)("p",{className:"feature-description",children:"Book appointments that fit your schedule. Early morning, late evening, or weekends - we're here for you."})]}),(0,l.jsxs)("div",{className:"feature-card",children:[(0,l.jsx)("div",{className:"feature-icon",children:(0,l.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:[(0,l.jsx)("path",{d:"M16 20C18.209 20 20 18.209 20 16C20 13.791 18.209 12 16 12C13.791 12 12 13.791 12 16C12 18.209 13.791 20 16 20Z",stroke:"currentColor",strokeWidth:"2"}),(0,l.jsx)("path",{d:"M16 4V8M16 24V28M28 16H24M8 16H4M25.657 6.343L23.121 8.879M8.879 23.121L6.343 25.657M25.657 25.657L23.121 23.121M8.879 8.879L6.343 6.343",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}),(0,l.jsx)("h3",{className:"feature-title",children:"Expert Doctors"}),(0,l.jsx)("p",{className:"feature-description",children:"All practitioners are licensed, and experienced in their specialties."})]}),(0,l.jsxs)("div",{className:"feature-card",children:[(0,l.jsx)("div",{className:"feature-icon",children:(0,l.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:(0,l.jsx)("path",{d:"M16 2L20 12L30 14L22 22L24 32L16 26L8 32L10 22L2 14L12 12L16 2Z",stroke:"currentColor",strokeWidth:"2",fill:"none"})})}),(0,l.jsx)("h3",{className:"feature-title",children:"Comprehensive Care"}),(0,l.jsx)("p",{className:"feature-description",children:"From general consultations to specialized care, we cover all your healthcare needs."})]}),(0,l.jsxs)("div",{className:"feature-card",children:[(0,l.jsx)("div",{className:"feature-icon",children:(0,l.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:[(0,l.jsx)("path",{d:"M16 6C10.477 6 6 10.477 6 16C6 21.523 10.477 26 16 26C21.523 26 26 21.523 26 16C26 10.477 21.523 6 16 6Z",stroke:"currentColor",strokeWidth:"2"}),(0,l.jsx)("path",{d:"M16 10V16L20 20",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}),(0,l.jsx)("h3",{className:"feature-title",children:"Cost-Effective"}),(0,l.jsx)("p",{className:"feature-description",children:"Transparent pricing with no hidden fees. Many insurance plans accepted."})]})]})]})}),(0,l.jsx)("section",{className:"gp-online-appointments-uk-section",children:(0,l.jsxs)("div",{className:"container",children:[(0,l.jsxs)("div",{className:"gp-online-appointments-uk-header",children:[(0,l.jsx)("h2",{className:"gp-online-appointments-uk-title",children:"Online GP Appointments in the UK"}),(0,l.jsxs)("div",{className:"gp-online-appointments-uk-main-content",children:[(0,l.jsx)("p",{className:"gp-online-appointments-uk-description",children:"Virtual Triage is a UK-focused digital appointment booking platform that helps patients find and book online GP appointments with independent General Practitioners who offer remote consultations. The platform is designed to make it easier for patients to discover available GPs, check appointment options, and book consultations online without long waiting times."}),(0,l.jsx)("p",{className:"gp-online-appointments-uk-description",children:"Virtual Triage does not provide medical advice, diagnosis, treatment, or prescriptions. All healthcare services are delivered exclusively by the independent doctors or clinics that patients choose to book with through the platform."})]})]}),(0,l.jsxs)("div",{className:"gp-online-appointments-uk-content",children:[(0,l.jsxs)("div",{className:"gp-online-appointments-uk-card",children:[(0,l.jsx)("h3",{className:"gp-online-appointments-uk-card-title",children:"A Digital Platform for Booking Online GP Appointments"}),(0,l.jsx)("p",{className:"gp-online-appointments-uk-card-text",children:"Online GP appointments are offered by independent doctors who choose to provide consultations using digital communication methods such as video calls, phone calls, or secure messaging technologies. Virtual Triage supports this process by acting solely as the technology layer that connects patients with doctors who advertise online appointment availability."}),(0,l.jsx)("p",{className:"gp-online-appointments-uk-card-text",children:"The platform does not influence clinical decisions or consultation outcomes. Any medical advice, referrals, or prescriptions are determined entirely by the doctor during the consultation."})]}),(0,l.jsxs)("div",{className:"gp-online-appointments-uk-card",children:[(0,l.jsx)("h3",{className:"gp-online-appointments-uk-card-title",children:"How Patients Book Online GP Appointments Using Virtual Triage"}),(0,l.jsx)("p",{className:"gp-online-appointments-uk-card-text",children:"Virtual Triage provides a structured and transparent booking experience. Patients can browse available GPs, review profile information, and view appointment availability before selecting a suitable time. Pricing information is displayed upfront, allowing patients to make informed booking decisions."}),(0,l.jsx)("p",{className:"gp-online-appointments-uk-card-text",children:"Once an appointment is booked, the consultation takes place directly between the patient and the selected doctor or clinic, using the communication method chosen by that provider. Virtual Triage's role ends at facilitating the booking."})]}),(0,l.jsxs)("div",{className:"gp-online-appointments-uk-card",children:[(0,l.jsx)("h3",{className:"gp-online-appointments-uk-card-title",children:"Who Uses Online GP Booking Platforms"}),(0,l.jsx)("p",{className:"gp-online-appointments-uk-card-text",children:"Patients across the UK use online GP booking platforms for a variety of practical reasons. These include faster access to appointments, greater scheduling flexibility, and the convenience of booking consultations online without visiting a physical GP surgery."}),(0,l.jsx)("p",{className:"gp-online-appointments-uk-card-text",children:"Virtual Triage is commonly used by patients seeking an alternative booking route when local GP availability is limited or when flexible appointment times are required."})]}),(0,l.jsxs)("div",{className:"gp-online-appointments-uk-card",children:[(0,l.jsx)("h3",{className:"gp-online-appointments-uk-card-title",children:"Why Patients Choose Virtual Triage"}),(0,l.jsx)("p",{className:"gp-online-appointments-uk-card-text",children:"Virtual Triage is built to simplify the appointment booking process while maintaining transparency and choice. Patients use the platform because it offers:"}),(0,l.jsxs)("ul",{className:"gp-online-appointments-uk-list",children:[(0,l.jsx)("li",{children:"Clear visibility of online GP appointment availability"}),(0,l.jsx)("li",{children:"Access to independent doctors offering private consultations"}),(0,l.jsx)("li",{children:"Transparent pricing displayed before booking"}),(0,l.jsx)("li",{children:"Secure, GDPR-compliant technology"}),(0,l.jsx)("li",{children:"A platform designed specifically for UK patients"})]}),(0,l.jsx)("p",{className:"gp-online-appointments-uk-card-text",children:(0,l.jsx)("strong",{children:"All doctors listed on the platform operate independently and remain fully responsible for the medical services they provide."})})]}),(0,l.jsxs)("div",{className:"gp-online-appointments-uk-card",children:[(0,l.jsx)("h3",{className:"gp-online-appointments-uk-card-title",children:"The Role and Limitations of the Platform"}),(0,l.jsx)("p",{className:"gp-online-appointments-uk-card-text",children:"Virtual Triage is strictly a technology platform. It does not employ doctors, provide healthcare services, or take responsibility for clinical outcomes. The platform exists to connect patients with independent practitioners who choose to list their services and availability online."}),(0,l.jsx)("p",{className:"gp-online-appointments-uk-card-text",children:"Patients are encouraged to review doctor profiles, confirm credentials, and ensure that the selected practitioner meets their individual needs before booking an appointment."})]})]})]})}),(0,l.jsx)("section",{className:"gp-faq-section",children:(0,l.jsxs)("div",{className:"container",children:[(0,l.jsx)("div",{className:"gp-faq-header",children:(0,l.jsx)("h2",{className:"gp-faq-title",children:"Online GP Appointment \u2013 Frequently Asked Questions"})}),(0,l.jsxs)("div",{className:"gp-faq-list",children:[(0,l.jsxs)("div",{className:"gp-faq-item",children:[(0,l.jsxs)("button",{className:"gp-faq-question ".concat(0===M?"active":""),onClick:()=>z(0===M?null:0),"aria-expanded":0===M,children:[(0,l.jsx)("span",{children:"What is an online GP appointment?"}),(0,l.jsx)("svg",{className:"gp-faq-icon ".concat(0===M?"open":""),width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,l.jsx)("path",{d:"M6 9l6 6 6-6"})})]}),(0,l.jsx)("div",{className:"gp-faq-answer ".concat(0===M?"open":""),children:(0,l.jsx)("p",{children:"An online GP appointment is a virtual consultation with a qualified General Practitioner (GP) conducted via video call, phone call, or secure messaging platform. It allows you to receive medical advice, get prescriptions, and access healthcare services from the comfort of your home without visiting a physical GP surgery."})})]}),(0,l.jsxs)("div",{className:"gp-faq-item",children:[(0,l.jsxs)("button",{className:"gp-faq-question ".concat(1===M?"active":""),onClick:()=>z(1===M?null:1),"aria-expanded":1===M,children:[(0,l.jsx)("span",{children:"Is an online GP the same as NHS GP?"}),(0,l.jsx)("svg",{className:"gp-faq-icon ".concat(1===M?"open":""),width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,l.jsx)("path",{d:"M6 9l6 6 6-6"})})]}),(0,l.jsx)("div",{className:"gp-faq-answer ".concat(1===M?"open":""),children:(0,l.jsx)("p",{children:"Online GPs are qualified doctors who are licensed to practice in the UK, just like NHS GPs. The main difference is that online GPs provide private consultations through digital platforms, offering faster access to appointments without the long waiting times often associated with NHS services. Many online GPs are also NHS-registered doctors who provide private online consultations in addition to their NHS work."})})]}),(0,l.jsxs)("div",{className:"gp-faq-item",children:[(0,l.jsxs)("button",{className:"gp-faq-question ".concat(2===M?"active":""),onClick:()=>z(2===M?null:2),"aria-expanded":2===M,children:[(0,l.jsx)("span",{children:"Can I get a prescription from an online GP?"}),(0,l.jsx)("svg",{className:"gp-faq-icon ".concat(2===M?"open":""),width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,l.jsx)("path",{d:"M6 9l6 6 6-6"})})]}),(0,l.jsx)("div",{className:"gp-faq-answer ".concat(2===M?"open":""),children:(0,l.jsx)("p",{children:"Yes, qualified online GPs can prescribe medications after assessing your condition during a consultation. They can issue prescriptions for a wide range of conditions, including repeat prescriptions, acute conditions, and ongoing treatments. Prescriptions are typically sent electronically to a pharmacy of your choice, where you can collect your medication."})})]}),(0,l.jsxs)("div",{className:"gp-faq-item",children:[(0,l.jsxs)("button",{className:"gp-faq-question ".concat(3===M?"active":""),onClick:()=>z(3===M?null:3),"aria-expanded":3===M,children:[(0,l.jsx)("span",{children:"How much does an online GP appointment cost?"}),(0,l.jsx)("svg",{className:"gp-faq-icon ".concat(3===M?"open":""),width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,l.jsx)("path",{d:"M6 9l6 6 6-6"})})]}),(0,l.jsx)("div",{className:"gp-faq-answer ".concat(3===M?"open":""),children:(0,l.jsx)("p",{children:"The cost of an online GP appointment varies depending on the service provider and type of consultation. At Virtual Triage, our pricing is transparent with no hidden fees. New appointments typically start from around \xa340-\xa380, while follow-up appointments may be less. Many private health insurance plans also cover online GP consultations. Check with your insurance provider for coverage details."})})]}),(0,l.jsxs)("div",{className:"gp-faq-item",children:[(0,l.jsxs)("button",{className:"gp-faq-question ".concat(4===M?"active":""),onClick:()=>z(4===M?null:4),"aria-expanded":4===M,children:[(0,l.jsx)("span",{children:"Are online doctors safe and licensed in the UK?"}),(0,l.jsx)("svg",{className:"gp-faq-icon ".concat(4===M?"open":""),width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,l.jsx)("path",{d:"M6 9l6 6 6-6"})})]}),(0,l.jsx)("div",{className:"gp-faq-answer ".concat(4===M?"open":""),children:(0,l.jsx)("p",{children:"Yes, all doctors on Virtual Triage are fully licensed and registered with the General Medical Council (GMC) in the UK. They must meet the same rigorous standards as NHS doctors. Our platform uses bank-level encryption and is GDPR compliant to ensure your medical information is kept secure and confidential. All consultations are conducted in a secure, private environment."})})]})]})]})}),(0,l.jsx)("section",{className:"testimonials",children:(0,l.jsxs)("div",{className:"container",children:[(0,l.jsxs)("div",{className:"section-header",children:[(0,l.jsx)("h2",{className:"lp-section-title",children:"What Our Patients Say"}),(0,l.jsx)("p",{className:"section-subtitle",children:"Real experiences from real patients"})]}),(0,l.jsxs)("div",{className:"testimonials-grid",children:[(0,l.jsxs)("div",{className:"testimonial-card",children:[(0,l.jsx)("div",{className:"testimonial-rating",children:"\u2605\u2605\u2605\u2605\u2606"}),(0,l.jsx)("p",{className:"testimonial-text",children:'"I needed to see a GP but couldn\'t get an appointment with my local surgery for weeks. Found a doctor on here and got seen the next day. The video call was very useful. Doctor was professional and helpful."'}),(0,l.jsxs)("div",{className:"testimonial-author",children:[(0,l.jsx)("div",{className:"author-avatar",children:"SM"}),(0,l.jsxs)("div",{className:"author-info",children:[(0,l.jsx)("div",{className:"author-name",children:"Sarah Mitchell"}),(0,l.jsx)("div",{className:"author-location",children:"Manchester, UK"})]})]})]}),(0,l.jsxs)("div",{className:"testimonial-card",children:[(0,l.jsx)("div",{className:"testimonial-rating",children:"\u2605\u2605\u2605\u2605\u2605"}),(0,l.jsx)("p",{className:"testimonial-text",children:"\"Works well for routine check-ups. I've used it a few times now and it's convenient when you can't make it to the surgery. The booking system is easy to navigate. Only downside is you can't always get your usual GP, but the doctors I've seen have been good.\""}),(0,l.jsxs)("div",{className:"testimonial-author",children:[(0,l.jsx)("div",{className:"author-avatar",children:"JW"}),(0,l.jsxs)("div",{className:"author-info",children:[(0,l.jsx)("div",{className:"author-name",children:"James Wilson"}),(0,l.jsx)("div",{className:"author-location",children:"Birmingham, UK"})]})]})]}),(0,l.jsxs)("div",{className:"testimonial-card",children:[(0,l.jsx)("div",{className:"testimonial-rating",children:"\u2605\u2605\u2605\u2605\u2606"}),(0,l.jsx)("p",{className:"testimonial-text",children:'"Used it for a prescription refill. The process was quicker than going to the surgery in person. The doctor took time to ask questions and seemed to listen properly. Would use again for non-urgent things."'}),(0,l.jsxs)("div",{className:"testimonial-author",children:[(0,l.jsx)("div",{className:"author-avatar",children:"EC"}),(0,l.jsxs)("div",{className:"author-info",children:[(0,l.jsx)("div",{className:"author-name",children:"Emma Clarke"}),(0,l.jsx)("div",{className:"author-location",children:"Leeds, UK"})]})]})]})]})]})}),(0,l.jsx)("section",{className:"cta-section",children:(0,l.jsx)("div",{className:"container",children:(0,l.jsxs)("div",{className:"cta-content",children:[(0,l.jsx)("h2",{className:"cta-title",children:"Ready to Book Your GP Appointment?"}),(0,l.jsx)("p",{className:"cta-subtitle",children:"Join thousands of patients who trust Virtual Triage for their GP appointments"}),(0,l.jsx)("a",{href:"https://virtualtriage.ai/find-practitioners",children:(0,l.jsxs)("button",{className:"cta-primary large",children:["Book Other Specialties",(0,l.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,l.jsx)("path",{d:"M9 18L15 12L9 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})}),(0,l.jsxs)("div",{className:"cta-trust-badges",children:[(0,l.jsxs)("div",{className:"trust-badge",children:[(0,l.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,l.jsx)("path",{d:"M10 1L12.5 7.5L19 10L12.5 12.5L10 19L7.5 12.5L1 10L7.5 7.5L10 1Z",stroke:"currentColor",strokeWidth:"1.5",fill:"none"})}),(0,l.jsx)("span",{children:"GDPR Compliant"})]}),(0,l.jsxs)("div",{className:"trust-badge",children:[(0,l.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,l.jsx)("path",{d:"M10 1L12.5 7.5L19 10L12.5 12.5L10 19L7.5 12.5L1 10L7.5 7.5L10 1Z",stroke:"currentColor",strokeWidth:"1.5",fill:"none"})}),(0,l.jsx)("span",{children:"Licensed Practitioners"})]}),(0,l.jsxs)("div",{className:"trust-badge",children:[(0,l.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,l.jsx)("path",{d:"M10 1L12.5 7.5L19 10L12.5 12.5L10 19L7.5 12.5L1 10L7.5 7.5L10 1Z",stroke:"currentColor",strokeWidth:"1.5",fill:"none"})}),(0,l.jsx)("span",{children:"Secure & Private"})]})]})]})})}),(0,l.jsx)(g.A,{}),_&&(0,l.jsx)(e.Suspense,{fallback:null,children:(0,l.jsx)(Q,{isOpen:_,onClose:()=>{N(!1),E(null)},onLoginSuccess:()=>{C&&((async e=>{try{const t=localStorage.getItem("authToken");if(JSON.parse(localStorage.getItem("userData")||"{}"),!t)return void console.error("No auth token found after login");let n=e.email;if(!n){const t=await fetch("".concat(S.r,"/doctors/").concat(e._id)),a=await t.json();a.data&&a.data.email&&(n=a.data.email,e=(0,s.A)((0,s.A)({},e),a.data))}if(!n)return void alert("Doctor email not available. Please try again later.");const a=await fetch("https://portal.virtualtriage.ca/api/v1/patient/appointment/book-appointment/directory/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:"Bearer ".concat(t)},body:JSON.stringify({doctor_email:n})});if(401===a.status||403===a.status)return localStorage.removeItem("authToken"),localStorage.removeItem("userData"),E(e),void N(!0);const r=await a.json();if(!1===r.status&&"Patient not found."===r.message)return E(e),void N(!0);r.clinic_id?(O(r.clinic_id),P(!0)):alert("Clinic information not available. Please try again later.")}catch(t){console.error("Error getting clinic details after login:",t),t.message&&(t.message.includes("401")||t.message.includes("403"))?(localStorage.removeItem("authToken"),localStorage.removeItem("userData"),E(e),N(!0)):alert("Error getting clinic details. Please try again later.")}})(C),E(null))}})}),T&&(0,l.jsx)(e.Suspense,{fallback:null,children:(0,l.jsx)(J,{isOpen:T,onClose:()=>{P(!1),O(null)},clinicId:A,practitionerEmail:null===C||void 0===C?void 0:C.email,practitionerData:C})})]})},X=(0,e.lazy)(()=>n.e(651).then(n.bind(n,7651))),ee=(0,e.lazy)(()=>n.e(871).then(n.bind(n,871))),te=(0,e.lazy)(()=>n.e(785).then(n.bind(n,9785))),ne=(0,e.lazy)(()=>n.e(215).then(n.bind(n,215))),ae=(0,e.lazy)(()=>n.e(769).then(n.bind(n,5769))),re=(0,e.lazy)(()=>n.e(962).then(n.bind(n,7962))),ie=(0,e.lazy)(()=>Promise.all([n.e(64),n.e(773),n.e(684)]).then(n.bind(n,5684))),oe=(0,e.lazy)(()=>Promise.all([n.e(64),n.e(125)]).then(n.bind(n,1125))),se=(0,e.lazy)(()=>Promise.all([n.e(64),n.e(773),n.e(107)]).then(n.bind(n,5107))),le=(0,e.lazy)(()=>n.e(291).then(n.bind(n,8291))),ce=(0,e.lazy)(()=>Promise.resolve().then(n.bind(n,7521))),ue=(0,e.lazy)(()=>n.e(82).then(n.bind(n,82))),de=(0,e.lazy)(()=>Promise.all([n.e(940),n.e(506)]).then(n.bind(n,7506))),pe=(0,e.lazy)(()=>n.e(176).then(n.bind(n,4176))),fe=(0,e.lazy)(()=>n.e(201).then(n.bind(n,4201))),he=(0,e.lazy)(()=>n.e(391).then(n.bind(n,5391))),me=(0,e.lazy)(()=>n.e(676).then(n.bind(n,7676))),ge=(0,e.lazy)(()=>n.e(144).then(n.bind(n,2144))),ve=(0,e.lazy)(()=>Promise.all([n.e(556),n.e(714)]).then(n.bind(n,2786))),ye=(0,e.lazy)(()=>Promise.all([n.e(556),n.e(597)]).then(n.bind(n,8448))),be=(0,e.lazy)(()=>n.e(356).then(n.bind(n,5356))),xe=(0,e.lazy)(()=>n.e(511).then(n.bind(n,1511))),we=()=>(0,l.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh",fontSize:"18px",color:"#00a3bb"},children:"Loading..."});function je(){(()=>{const t=(0,a.zy)();(0,e.useEffect)(()=>{window.dispatchEvent(new CustomEvent("routeChange")),"requestIdleCallback"in window?requestIdleCallback(()=>{const e="".concat("","/assets/Virtual Triage.png"),t=(new Date).getTime();document.querySelectorAll('link[rel*="icon"]').forEach(e=>e.remove()),["16x16","32x32","192x192","512x512"].forEach(n=>{const a=document.createElement("link");a.rel="icon",a.type="image/png",a.sizes=n,a.href="".concat(e,"?v=").concat(t),document.head.appendChild(a)});const n=document.createElement("link");n.rel="apple-touch-icon",n.sizes="180x180",n.href="".concat(e,"?v=").concat(t),document.head.appendChild(n);const a=document.createElement("link");a.rel="shortcut icon",a.href="".concat(e,"?v=").concat(t),document.head.appendChild(a)},{timeout:500}):setTimeout(()=>{window.dispatchEvent(new CustomEvent("routeChange"))},100)},[t])})();const t=(0,a.zy)(),[n,r]=e.useState(!1);(0,e.useEffect)(()=>{const e=setTimeout(()=>{r(!0)},1e4);return()=>clearTimeout(e)},[]),(0,e.useEffect)(()=>{window.scrollTo({top:0,left:0,behavior:"instant"})},[t.pathname]);const o=["/","/homepage","/practitioners","/find-practitioners","/contact","/policy","/cookie-policy","/terms-and-conditions","/privacy-notice","/doctor-signup","/doctor-signup-success","/clinic_register","/payment","/blogs","/patients-booking-gp","/pricing","/compliance","/about","/clinician-provider-agreement","/appointment-terms"],s=!(()=>{const e=t.pathname;return!!o.includes(e)||(!!e.startsWith("/profile/")||(!!e.startsWith("/appointment-booked/")||!!e.startsWith("/blog/")))})();return(0,l.jsxs)("div",{className:"App",children:[(0,l.jsx)(i,{}),(0,l.jsxs)(e.Suspense,{fallback:(0,l.jsx)(we,{}),children:[(0,l.jsxs)(a.BV,{children:[(0,l.jsx)(a.qh,{path:"/",element:(0,l.jsx)(k,{})}),(0,l.jsx)(a.qh,{path:"/homepage",element:(0,l.jsx)(k,{})}),(0,l.jsx)(a.qh,{path:"/practitioners",element:(0,l.jsx)(N,{})}),(0,l.jsx)(a.qh,{path:"/find-practitioners",element:(0,l.jsx)(Y,{})}),(0,l.jsx)(a.qh,{path:"/contact",element:(0,l.jsx)(re,{})}),(0,l.jsx)(a.qh,{path:"/profile/:username",element:(0,l.jsx)(X,{})}),(0,l.jsx)(a.qh,{path:"/policy",element:(0,l.jsx)(ee,{})}),(0,l.jsx)(a.qh,{path:"/cookie-policy",element:(0,l.jsx)(te,{})}),(0,l.jsx)(a.qh,{path:"/terms-and-conditions",element:(0,l.jsx)(ne,{})}),(0,l.jsx)(a.qh,{path:"/privacy-notice",element:(0,l.jsx)(ae,{})}),(0,l.jsx)(a.qh,{path:"/doctor-signup",element:(0,l.jsx)(ie,{})}),(0,l.jsx)(a.qh,{path:"/doctor-signup-success",element:(0,l.jsx)(oe,{})}),(0,l.jsx)(a.qh,{path:"/clinic_register",element:(0,l.jsx)(se,{})}),(0,l.jsx)(a.qh,{path:"/payment",element:(0,l.jsx)(le,{})}),(0,l.jsx)(a.qh,{path:"/appointment-booked/:id",element:(0,l.jsx)(ce,{})}),(0,l.jsx)(a.qh,{path:"/blogs",element:(0,l.jsx)(ue,{})}),(0,l.jsx)(a.qh,{path:"/blog/:slug",element:(0,l.jsx)(de,{})}),(0,l.jsx)(a.qh,{path:"/blog/article/:articleIndex",element:(0,l.jsx)(pe,{})}),(0,l.jsx)(a.qh,{path:"/patients-booking-gp",element:(0,l.jsx)(Z,{})}),(0,l.jsx)(a.qh,{path:"/pricing",element:(0,l.jsx)(ge,{})}),(0,l.jsx)(a.qh,{path:"/compliance",element:(0,l.jsx)(ve,{})}),(0,l.jsx)(a.qh,{path:"/about",element:(0,l.jsx)(ye,{})}),(0,l.jsx)(a.qh,{path:"/clinician-provider-agreement",element:(0,l.jsx)(be,{})}),(0,l.jsx)(a.qh,{path:"/appointment-terms",element:(0,l.jsx)(xe,{})}),(0,l.jsx)(a.qh,{path:"/sitemap.xml",element:(0,l.jsx)(me,{})}),(0,l.jsx)(a.qh,{path:"*",element:(0,l.jsx)(he,{})})]}),!s&&(0,l.jsxs)(l.Fragment,{children:[n&&(0,l.jsx)(e.Suspense,{fallback:null,children:(0,l.jsx)(fe,{})}),(0,l.jsx)(c,{})]})]})]})}const ke=function(){return(0,l.jsx)(o.u,{children:(0,l.jsx)(r.Kd,{children:(0,l.jsx)(je,{})})})},_e=e=>{e&&e instanceof Function&&n.e(453).then(n.bind(n,6453)).then(t=>{let{getCLS:n,getFID:a,getFCP:r,getLCP:i,getTTFB:o}=t;n(e),a(e),r(e),i(e),o(e)})},Se=e=>{var t;if(!e)return!1;if(e.filename&&(e.filename.includes("chrome-extension://")||e.filename.includes("moz-extension://")||e.filename.includes("safari-extension://")||e.filename.includes("extension://")))return!0;if(e.message&&(e.message.includes("chrome-extension://")||e.message.includes("moz-extension://")||e.message.includes("safari-extension://")))return!0;const n=e.stack||(null===(t=e.error)||void 0===t?void 0:t.stack)||"";return!(!n||!(n.includes("chrome-extension://")||n.includes("moz-extension://")||n.includes("safari-extension://")||n.includes("extension://")))};window.addEventListener("error",e=>Se(e)||e.error&&Se(e.error)?(e.preventDefault(),e.stopPropagation(),!0):void 0,!0),window.addEventListener("unhandledrejection",e=>{const t=e.reason;return Se(t)||t&&"object"===typeof t&&Se(t)?(e.preventDefault(),e.stopPropagation(),!0):void 0},!0);t.createRoot(document.getElementById("root")).render((0,l.jsx)(e.StrictMode,{children:(0,l.jsx)(ke,{})})),"requestIdleCallback"in window?requestIdleCallback(()=>{_e()},{timeout:2e3}):setTimeout(()=>{_e()},2e3)})()})();
//# sourceMappingURL=main.8c747172.js.map