@openmrs/esm-appointments-app 9.2.1-pre.7508 → 9.2.1-pre.7510
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/dist/6672.js +1 -1
- package/dist/6672.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/openmrs-esm-appointments-app.js +1 -1
- package/dist/openmrs-esm-appointments-app.js.buildmanifest.json +5 -5
- package/dist/routes.json +1 -1
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
package/dist/6672.js
CHANGED
|
@@ -29,7 +29,7 @@ To fix this, ensure that you define the "description" field inside the feature f
|
|
|
29
29
|
To fix this, ensure that you define the "label" field inside the feature flag definition.`,n):console.error(`A feature flag definition in ${e} is missing a name and thus cannot be registered.
|
|
30
30
|
To fix this, ensure that you define the "name" field inside the feature flag definition.`,n);else console.warn(`A feature flag for ${e} could not be registered as it does not appear to have the required properties`,n)})}}function fD(){fC.sort((e,n)=>e.appName.localeCompare(n.appName,"en"));let e=new Map;for(let n of fC){e.has(n.appName)?e.set(n.appName,e.get(n.appName)+1):e.set(n.appName,0);let t=e.get(n.appName),r=`${n.appName}-page-${t}`,o=n.containerDomId??"omrs-apps-container",a=document.getElementById(o),i=`single-spa-application:${r}`;if(a){let e=document.createElement("div");e.id=i,a?.appendChild(e)}else throw Error(`${n.appName} ${n.component} cannot be mounted to "${o}"; DOM element does not exist.`);!function(e,n){let t=void 0!==n.route?n.route:void 0!==n.routeRegex&&new RegExp(n.routeRegex);!1===t?console.warn(`A registered page definition is missing a route and thus cannot be registered.
|
|
31
31
|
To fix this, ensure that you define the "route" (or alternatively the "routeRegex") field inside the extension definition.`,e):n.component?rg(e,()=>f$(n.appName,n.component),function(e,{online:n,offline:t,featureFlag:r}){return window.offlineEnabled?o=>!!(navigator.onLine&&(n??!0)||!navigator.onLine&&t)&&(!r||!!pa(r))&&e(o):e}(function e(n){if(Array.isArray(n)){let t=n.map(e);return e=>t.some(n=>n(e))}return"string"==typeof n?r$(window.getOpenmrsSpaBase()+n):n instanceof RegExp?e=>n.test(e.pathname.replace(window.getOpenmrsSpaBase(),"")):()=>n}(t),n)):console.warn(`A registered page definition is missing a component and thus cannot be registered.
|
|
32
|
-
To fix this, ensure that you define the "component" field inside the page definition.`,e)}(r,n)}}function fS(e=window.localStorage){try{return e.getItem("test"),!0}catch{return!1}}let fz=fS();function fB(e,n){if(fz){if("string"==typeof n)if(n.startsWith("http"))return fT(e,n);else try{let t=JSON.parse(n);if(fP(t))return fT(e,t);console.error(`The supplied routes for ${e} is not a valid OpenmrsAppRoutes object`,n)}catch(n){console.error(`Could not add routes override for ${e}: `,n)}else if(n instanceof URL)return fT(e,n.toString());else if(fP(n))return fT(e,n);console.error(`Override for ${e} is not in a valid format. Expected either a Javascript Object, a JSON string of a Javascript object, or a URL`,n)}}function fM(e){fz&&localStorage.removeItem(fv+e)}function fO(){if(!fz)return;let e=window.localStorage;for(let n=0;n<e.length;n++){let t=e.key(n);t?.startsWith(fv)&&e.removeItem(t)}}function fT(e,n){localStorage.setItem(fv+e,JSON.stringify(n))}function fP(e){if(e&&"object"==typeof e){let n=Object.prototype.hasOwnProperty;return!(n.call(e,"pages")&&(!e.pages||!Array.isArray(e.pages))||n.call(e,"extensions")&&(!e.extensions||!Array.isArray(e.extensions))||n.call(e,"workspaces")&&(!e.workspaces||!Array.isArray(e.workspaces))||n.call(e,"modals")&&(!e.modals||!Array.isArray(e.modals)))}return!1}function fI(e){return!!e&&"object"==typeof e&&Object.entries(e).every(([e,n])=>"string"==typeof e&&fP(n))}var fN={PHONE_MIN:0,PHONE_MAX:600,TABLET_MIN:601,TABLET_MAX:1023,SMALL_DESKTOP_MIN:1024,SMALL_DESKTOP_MAX:1439,LARGE_DESKTOP_MIN:1440,LARGE_DESKTOP_MAX:Number.MAX_SAFE_INTEGER};function fF(){document.body.classList.toggle("omrs-breakpoint-lt-tablet",window.innerWidth<fN.TABLET_MIN),document.body.classList.toggle("omrs-breakpoint-gt-phone",window.innerWidth>fN.PHONE_MAX),document.body.classList.toggle("omrs-breakpoint-gt-tablet",window.innerWidth>fN.TABLET_MAX),document.body.classList.toggle("omrs-breakpoint-lt-desktop",window.innerWidth<fN.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-small-desktop",window.innerWidth<fN.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-large-desktop",window.innerWidth<fN.LARGE_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-gt-small-desktop",window.innerWidth>fN.SMALL_DESKTOP_MAX)}var fR=!1;function fj(){fR||(window.addEventListener("resize",fF),fF(),fR=!0)}var fL=t(16709),fV=t.n(fL),fW=t(46062),fG=t.n(fW),fH=t(44036),fU=t.n(fH),fq=t(96793),fK=t.n(fq),fZ=t(17892),fY=t.n(fZ),fJ=t(11173),fX=t.n(fJ),fQ=t(42464),f0=t.n(fQ),f1=t(6370),f2={};f2.styleTagTransform=f0(),f2.setAttributes=fY(),f2.insert=fK().bind(null,"head"),f2.domAPI=fU(),f2.insertStyleElement=fX(),fG()(f1.Z,f2);let f3=f1.Z&&f1.Z.locals?f1.Z.locals:void 0;function f4(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function f5(e){var n,t=e.title,r=e.children,o="tablet"===d7();return uU().createElement("div",{className:fV()((f4(n={},f3.tabletHeader,o),f4(n,f3.desktopHeader,!o),n))},uU().createElement("h4",null,t),r)}var f6=["red","magenta","purple","blue","teal","cyan","gray","green","warm-gray","cool-gray","high-contrast","outline"],f8={primaryColor:{_type:ni.String,_description:"The color for displaying primary diagnoses tags",_default:"red",_validators:[n5.oneOf(f6)]},secondaryColor:{_type:ni.String,_description:"The color for displaying secondary diagnoses tags",_default:"blue",_validators:[n5.oneOf(f6)]}},f7={"Brand color #1":{_default:"#005d5d",_type:ni.String},"Brand color #2":{_default:"#004144",_type:ni.String},"Brand color #3":{_default:"#007d79",_type:ni.String},excludePatientIdentifierCodeTypes:{uuids:{_type:ni.Array,_description:"List of UUIDs of patient identifier types to exclude from rendering in the patient banner",_default:[],_elements:{_type:ni.UUID}}},implementationName:{_type:ni.String,_description:"A name of the place (or authority) where all possible locations a user can choose are located.",_default:"Clinic"},patientPhotoConceptUuid:{_type:ni.ConceptUuid,_default:"736e8771-e501-4615-bfa7-570c03f4bef5",_description:"Used to look up the patient photo, which is stored as an attachment obs. Set to `null` in order to disable the feature and use only generated avatars. To remove the avatars entirely, use extension configuration's `remove` feature."},preferredCalendar:{_type:ni.Object,_description:"Keys should be locale codes, and values should be the preferred calendar for that locale. For example, {'am': 'ethiopic'}.",_default:{am:"ethiopic"},_elements:{_validators:[n5.oneOf(["buddhist","chinese","coptic","dangi","ethioaa","ethiopic","gregory","hebrew","indian","islamic","islamic-umalqura","islamic-tbla","islamic-civil","islamic-rgsa","iso8601","japanese","persian","roc","islamicc"])]}},preferredDateLocale:{_type:ni.Object,_description:"Allows setting the locale used for date formatting for any browser locale. Does not affect time formatting. Keys should be locale codes, and values should be the preferred locale for formatting dates. For example, {'en': 'en-US', 'fr-CA': 'en-CA'}.",_default:{en:"en-GB"},_elements:{_type:ni.String}},diagnosisTags:f8},f9=t(72530),me={};me.styleTagTransform=f0(),me.setAttributes=fY(),me.insert=fK().bind(null,"head"),me.domAPI=fU(),me.insertStyleElement=fX(),fG()(f9.Z,me);let mn=f9.Z&&f9.Z.locals?f9.Z.locals:void 0;function mt(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function mr(e){var n,t,r,o=e.menuTitle,a=e.children,i=(n=uU().useState(!1),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,s=!1;try{for(o=o.call(e);!(i=(t=o.next()).done)&&(a.push(t.value),a.length!==n);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(s)throw r}}return a}}(n,2)||function(e,n){if(e){if("string"==typeof e)return mt(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return mt(e,n)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=i[0],l=i[1],c=fr(function(){return l(!1)},s),p="tablet"===d7(),u=(0,uH.useCallback)(function(){return l(function(e){return!e})},[]);return uU().createElement("div",{"data-overflow-menu":!0,className:fV()("cds--overflow-menu",mn.container),ref:c},uU().createElement("button",{className:fV()("cds--btn","cds--btn--ghost","cds--overflow-menu__trigger",{"cds--overflow-menu--open":s},mn.overflowMenuButton),"aria-haspopup":"true","aria-expanded":s,id:"custom-actions-overflow-menu-trigger","aria-controls":"custom-actions-overflow-menu",onClick:u},o),uU().createElement("div",{className:fV()("cds--overflow-menu-options","cds--overflow-menu--flip",mn.menu,(t={},r=mn.show,r in t?Object.defineProperty(t,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[r]=s,t)),tabIndex:0,"data-floating-menu-direction":"bottom",role:"menu","aria-labelledby":"custom-actions-overflow-menu-trigger",id:"custom-actions-overflow-menu"},uU().createElement("ul",{className:fV()("cds--overflow-menu-options__content",{"cds--overflow-menu-options--lg":p})},a),uU().createElement("span",null)))}var mo=t(62836),ma=t(20708),mi=t(23148),ms={};ms.styleTagTransform=f0(),ms.setAttributes=fY(),ms.insert=fK().bind(null,"head"),ms.domAPI=fU(),ms.insertStyleElement=fX(),fG()(mi.Z,ms);let ml=mi.Z&&mi.Z.locals?mi.Z.locals:void 0;var mc=function(e){var n=e.path,t=e.title,r=e.basePath,o=e.icon,a=(0,dy.useTranslation)().t,i=(0,mo.useLocation)(),s=(0,uH.useMemo)(function(){if(!n)return!1;var e,t=n.startsWith("/")?n.slice(1):n;if(t.startsWith("http"))return t===window.location.href;var r=t.split("/").map(function(e){return decodeURIComponent(e)}),o=(null!=(e=i.pathname)?e:"").split("/").slice(-1*r.length).map(function(e){return decodeURIComponent(e)});return I(r,o)},[i.pathname,n]);return uU().createElement("div",{key:n},uU().createElement(ma.ConfigurableLink,{className:fV()("cds--side-nav__link",{"active-left-nav-link":s}),to:"".concat(r,"/").concat(encodeURIComponent(n))},uU().createElement("span",{className:ml.menu},uU().createElement(ma.MaybeIcon,{icon:o,className:ml.icon,size:16}),uU().createElement("span",null,a(t)))))};function mp(e){return function(n){var t=n.basePath;return uU().createElement(mo.BrowserRouter,null,uU().createElement(mc,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({basePath:t},e)))}}function mu(e,n){return e-n*Math.floor(e/n)}function md(e,n,t,r){let o=(n=mm(e,n))-1,a=-2;return t<=2?a=0:mf(n)&&(a=-1),1721425+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*t-362)/12+a+r)}function mf(e){return e%4==0&&(e%100!=0||e%400==0)}function mm(e,n){return"BC"===e?1-n:n}function mh(e){let n="AD";return e<=0&&(n="BC",e=1-e),[n,e]}let mg={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class m_{fromJulianDay(e){let n=e-1721426,t=Math.floor(n/146097),r=mu(n,146097),o=Math.floor(r/36524),a=mu(r,36524),i=Math.floor(a/1461),s=Math.floor(mu(a,1461)/365),[l,c]=mh(400*t+100*o+4*i+s+ +(4!==o&&4!==s)),p=e-md(l,c,1,1),u=2;e<md(l,c,3,1)?u=0:mf(c)&&(u=1);let d=Math.floor(((p+u)*12+373)/367),f=e-md(l,c,d,1)+1;return new ha(l,c,d,f)}toJulianDay(e){return md(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return mg[mf(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return mf(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}let my={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function mb(e,n){return n=mU(n,e.calendar),e.era===n.era&&e.year===n.year&&e.month===n.month&&e.day===n.day}function mv(e,n){return mA(e.calendar,n.calendar)&&mb(e,n)}function mA(e,n){var t,r,o,a;return null!=(a=null!=(o=null==(t=e.isEqual)?void 0:t.call(e,n))?o:null==(r=n.isEqual)?void 0:r.call(n,e))?a:e.identifier===n.identifier}let m$={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function mw(e,n,t){let r,o=Math.ceil(e.calendar.toJulianDay(e)+1-(t?m$[t]:(r=function(e){if(Intl.Locale){let n=mO.get(e);return!n&&(n=new Intl.Locale(e).maximize().region)&&mO.set(e,n),n}let n=e.split("-")[1];return"u"===n?void 0:n}(n))&&my[r]||0))%7;return o<0&&(o+=7),o}function mk(e){return mW(Date.now(),e)}function mx(e){return mG(mk(e))}function mC(e,n){return e.calendar.toJulianDay(e)-n.calendar.toJulianDay(n)}function mE(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let mD=null;function mS(){return null==mD&&(mD=new Intl.DateTimeFormat().resolvedOptions().timeZone),mD}function mz(e){return e.subtract({days:e.day-1})}function mB(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function mM(e,n,t){let r=mw(e,n,t);return e.subtract({days:r})}let mO=new Map;function mT(e,n){return e&&n?0>=e.compare(n)?e:n:e||n}function mP(e,n){return e&&n?e.compare(n)>=0?e:n:e||n}function mI(e){return mN(mm((e=mU(e,new m_)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function mN(e,n,t,r,o,a,i){let s=new Date;return s.setUTCHours(r,o,a,i),s.setUTCFullYear(e,n-1,t),s.getTime()}function mF(e,n){if("UTC"===n)return 0;if(e>0&&n===mS())return -6e4*new Date(e).getTimezoneOffset();let{year:t,month:r,day:o,hour:a,minute:i,second:s}=mj(e,n);return mN(t,r,o,a,i,s,0)-1e3*Math.floor(e/1e3)}let mR=new Map;function mj(e,n){let t=mR.get(n);t||(t=new Intl.DateTimeFormat("en-US",{timeZone:n,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),mR.set(n,t));let r=t.formatToParts(new Date(e)),o={};for(let e of r)"literal"!==e.type&&(o[e.type]=e.value);return{year:"BC"===o.era||"B"===o.era?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:"24"===o.hour?0:+o.hour,minute:+o.minute,second:+o.second}}function mL(e,n,t="compatible"){var r,o,a;let i=mH(e);if("UTC"===n)return mI(i);if(n===mS()&&"compatible"===t){i=mU(i,new m_);let e=new Date,n=mm(i.era,i.year);return e.setFullYear(n,i.month-1,i.day),e.setHours(i.hour,i.minute,i.second,i.millisecond),e.getTime()}let s=mI(i),l=mF(s-864e5,n),c=mF(s+864e5,n),p=(r=i,((o=s-l)==(a=s-c)?[o]:[o,a]).filter(e=>{var t;let o;return t=r,o=mj(e,n),t.year===o.year&&t.month===o.month&&t.day===o.day&&t.hour===o.hour&&t.minute===o.minute&&t.second===o.second}));if(1===p.length)return p[0];if(p.length>1)switch(t){case"compatible":case"earlier":return p[0];case"later":return p[p.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(t){case"earlier":return Math.min(s-l,s-c);case"compatible":case"later":return Math.max(s-l,s-c);case"reject":throw RangeError("No such absolute time found")}}function mV(e,n,t="compatible"){return new Date(mL(e,n,t))}function mW(e,n){let t=mF(e,n),r=new Date(e+t),o=r.getUTCFullYear();return new hu(o<1?"BC":"AD",o<1?-o+1:o,r.getUTCMonth()+1,r.getUTCDate(),n,t,r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds())}function mG(e){return new ha(e.calendar,e.era,e.year,e.month,e.day)}function mH(e,n){let t=0,r=0,o=0,a=0;if("timeZone"in e)({hour:t,minute:r,second:o,millisecond:a}=e);else if("hour"in e&&!n)return e;return n&&({hour:t,minute:r,second:o,millisecond:a}=n),new hc(e.calendar,e.era,e.year,e.month,e.day,t,r,o,a)}function mU(e,n){if(mA(e.calendar,n))return e;let t=n.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=n,r.era=t.era,r.year=t.year,r.month=t.month,r.day=t.day,mJ(r),r}function mq(e,n){let t=e.copy(),r="hour"in t?m3(t,n):0;mK(t,n.years||0),t.calendar.balanceYearMonth&&t.calendar.balanceYearMonth(t,e),t.month+=n.months||0,mZ(t),mY(t),t.day+=7*(n.weeks||0),t.day+=n.days||0,t.day+=r,function(e){for(;e.day<1;)e.month--,mZ(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,mZ(e)}(t),t.calendar.balanceDate&&t.calendar.balanceDate(t),t.year<1&&(t.year=1,t.month=1,t.day=1);let o=t.calendar.getYearsInEra(t);if(t.year>o){var a,i;let e=null==(a=(i=t.calendar).isInverseEra)?void 0:a.call(i,t);t.year=o,t.month=e?1:t.calendar.getMonthsInYear(t),t.day=e?1:t.calendar.getDaysInMonth(t)}t.month<1&&(t.month=1,t.day=1);let s=t.calendar.getMonthsInYear(t);return t.month>s&&(t.month=s,t.day=t.calendar.getDaysInMonth(t)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day)),t}function mK(e,n){var t,r;(null==(t=(r=e.calendar).isInverseEra)?void 0:t.call(r,e))&&(n=-n),e.year+=n}function mZ(e){for(;e.month<1;)mK(e,-1),e.month+=e.calendar.getMonthsInYear(e);let n=0;for(;e.month>(n=e.calendar.getMonthsInYear(e));)e.month-=n,mK(e,1)}function mY(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function mJ(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),mY(e)}function mX(e){let n={};for(let t in e)"number"==typeof e[t]&&(n[t]=-e[t]);return n}function mQ(e,n){let t=e.copy();return null!=n.era&&(t.era=n.era),null!=n.year&&(t.year=n.year),null!=n.month&&(t.month=n.month),null!=n.day&&(t.day=n.day),mJ(t),t}function m0(e,n){let t=e.copy();return null!=n.hour&&(t.hour=n.hour),null!=n.minute&&(t.minute=n.minute),null!=n.second&&(t.second=n.second),null!=n.millisecond&&(t.millisecond=n.millisecond),m1(t),t}function m1(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function m2(e,n){let t=e%n;return t<0&&(t+=n),t}function m3(e,n){let t;return e.hour+=n.hours||0,e.minute+=n.minutes||0,e.second+=n.seconds||0,e.millisecond+=n.milliseconds||0,e.second+=Math.floor(e.millisecond/1e3),e.millisecond=m2(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=m2(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=m2(e.minute,60),t=Math.floor(e.hour/24),e.hour=m2(e.hour,24),t}function m4(e,n){let t=e.copy();return m3(t,n),t}function m5(e,n,t,r){let o=e.copy();switch(n){case"era":{let n=e.calendar.getEras(),a=n.indexOf(e.era);if(a<0)throw Error("Invalid era: "+e.era);a=m8(a,t,0,n.length-1,null==r?void 0:r.round),o.era=n[a],mJ(o);break}case"year":var a,i;(null==(a=(i=o.calendar).isInverseEra)?void 0:a.call(i,o))&&(t=-t),o.year=m8(e.year,t,-1/0,9999,null==r?void 0:r.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=m8(e.month,t,1,e.calendar.getMonthsInYear(e),null==r?void 0:r.round);break;case"day":o.day=m8(e.day,t,1,e.calendar.getDaysInMonth(e),null==r?void 0:r.round);break;default:throw Error("Unsupported field "+n)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),mJ(o),o}function m6(e,n,t,r){let o=e.copy();switch(n){case"hour":{let n=e.hour,a=0,i=23;if((null==r?void 0:r.hourCycle)===12){let e=n>=12;a=12*!!e,i=e?23:11}o.hour=m8(n,t,a,i,null==r?void 0:r.round);break}case"minute":o.minute=m8(e.minute,t,0,59,null==r?void 0:r.round);break;case"second":o.second=m8(e.second,t,0,59,null==r?void 0:r.round);break;case"millisecond":o.millisecond=m8(e.millisecond,t,0,999,null==r?void 0:r.round);break;default:throw Error("Unsupported field "+n)}return o}function m8(e,n,t,r,o=!1){if(o){(e+=Math.sign(n))<t&&(e=r);let o=Math.abs(n);(e=n>0?Math.ceil(e/o)*o:Math.floor(e/o)*o)>r&&(e=t)}else(e+=n)<t?e=r-(t-e-1):e>r&&(e=t+(e-r-1));return e}function m7(e,n){let t;return t=(null!=n.years&&0!==n.years||null!=n.months&&0!==n.months||null!=n.weeks&&0!==n.weeks||null!=n.days&&0!==n.days?mL(mq(mH(e),{years:n.years,months:n.months,weeks:n.weeks,days:n.days}),e.timeZone):mI(e)-e.offset)+(n.milliseconds||0),t+=1e3*(n.seconds||0),t+=6e4*(n.minutes||0),mU(mW(t+=36e5*(n.hours||0),e.timeZone),e.calendar)}function m9(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function he(e){let n,t=mU(e,new m_);return n="BC"===t.era?1===t.year?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function hn(e){return`${he(e)}T${m9(e)}`}function ht(e,n,t){if(n.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");n.set(e,t)}function hr(e){let n,t="object"==typeof e[0]?e.shift():new m_;if("string"==typeof e[0])n=e.shift();else{let e=t.getEras();n=e[e.length-1]}return[t,n,e.shift(),e.shift(),e.shift()]}var ho=new WeakMap;class ha{copy(){return this.era?new ha(this.calendar,this.era,this.year,this.month,this.day):new ha(this.calendar,this.year,this.month,this.day)}add(e){return mq(this,e)}subtract(e){return mq(this,mX(e))}set(e){return mQ(this,e)}cycle(e,n,t){return m5(this,e,n,t)}toDate(e){return mV(this,e)}toString(){return he(this)}compare(e){return mC(this,e)}constructor(...e){ht(this,ho,{writable:!0,value:void 0});let[n,t,r,o,a]=hr(e);this.calendar=n,this.era=t,this.year=r,this.month=o,this.day=a,mJ(this)}}var hi=new WeakMap;class hs{copy(){return new hs(this.hour,this.minute,this.second,this.millisecond)}add(e){return m4(this,e)}subtract(e){return m4(this,mX(e))}set(e){return m0(this,e)}cycle(e,n,t){return m6(this,e,n,t)}toString(){return m9(this)}compare(e){return mE(this)-mE(e)}constructor(e=0,n=0,t=0,r=0){ht(this,hi,{writable:!0,value:void 0}),this.hour=e,this.minute=n,this.second=t,this.millisecond=r,m1(this)}}var hl=new WeakMap;class hc{copy(){return this.era?new hc(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new hc(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return mq(this,e)}subtract(e){return mq(this,mX(e))}set(e){return mQ(m0(this,e),e)}cycle(e,n,t){switch(e){case"era":case"year":case"month":case"day":return m5(this,e,n,t);default:return m6(this,e,n,t)}}toDate(e,n){return mV(this,e,n)}toString(){return hn(this)}compare(e){let n=mC(this,e);if(0===n){var t;return t=mH(e),mE(this)-mE(t)}return n}constructor(...e){ht(this,hl,{writable:!0,value:void 0});let[n,t,r,o,a]=hr(e);this.calendar=n,this.era=t,this.year=r,this.month=o,this.day=a,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,mJ(this)}}var hp=new WeakMap;class hu{copy(){return this.era?new hu(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new hu(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return m7(this,e)}subtract(e){return m7(this,mX(e))}set(e,n){let t,r;return 0===(r=m0(mQ(t=mH(this),e),e)).compare(t)?this:mU(mW(mL(r,this.timeZone,n),this.timeZone),this.calendar)}cycle(e,n,t){return function(e,n,t,r){switch(n){case"hour":{let n=0,o=23;if((null==r?void 0:r.hourCycle)===12){let t=e.hour>=12;n=12*!!t,o=t?23:11}let a=mH(e),i=mU(m0(a,{hour:n}),new m_),s=[mL(i,e.timeZone,"earlier"),mL(i,e.timeZone,"later")].filter(n=>mW(n,e.timeZone).day===i.day)[0],l=mU(m0(a,{hour:o}),new m_),c=[mL(l,e.timeZone,"earlier"),mL(l,e.timeZone,"later")].filter(n=>mW(n,e.timeZone).day===l.day).pop(),p=mI(e)-e.offset,u=Math.floor(p/36e5),d=p%36e5;return mU(mW(p=36e5*m8(u,t,Math.floor(s/36e5),Math.floor(c/36e5),null==r?void 0:r.round)+d,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return m6(e,n,t,r);case"era":case"year":case"month":case"day":return mU(mW(mL(m5(mH(e),n,t,r),e.timeZone),e.timeZone),e.calendar);default:throw Error("Unsupported field "+n)}}(this,e,n,t)}toDate(){return new Date(mI(this)-this.offset)}toString(){var e;let n,t,r;return`${hn(this)}${n=0>Math.sign(e=this.offset)?"-":"+",t=Math.floor((e=Math.abs(e))/36e5),r=e%36e5/6e4,`${n}${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}`}[${this.timeZone}]`}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-(function(e,n,t){if(e instanceof hu){var r,o;return e.timeZone===n?e:(r=e,o=n,mU(mW(mI(r)-r.offset,o),r.calendar))}return mW(mL(e,n,void 0),n)})(e,this.timeZone).toDate().getTime()}constructor(...e){ht(this,hp,{writable:!0,value:void 0});let[n,t,r,o,a]=hr(e),i=e.shift(),s=e.shift();this.calendar=n,this.era=t,this.year=r,this.month=o,this.day=a,this.timeZone=i,this.offset=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,mJ(this)}}class hd extends m_{fromJulianDay(e){let n=super.fromJulianDay(e);return new ha(this,mm(n.era,n.year)- -543,n.month,n.day)}toJulianDay(e){return super.toJulianDay(hf(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(hf(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function hf(e){let[n,t]=mh(e.year+-543);return new ha(n,t,e.month,e.day)}function hm(e,n,t,r){return e+365*n+Math.floor(n/4)+30*(t-1)+r-1}function hh(e,n){let t=Math.floor(4*(n-e)/1461),r=1+Math.floor((n-hm(e,t,1,1))/30),o=n+1-hm(e,t,r,1);return[t,r,o]}function hg(e){return Math.floor(e%4/3)}function h_(e,n){return n%13!=0?30:hg(e)+5}class hy{fromJulianDay(e){let[n,t,r]=hh(1723856,e),o="AM";return n<=0&&(o="AA",n+=5500),new ha(this,o,n,t,r)}toJulianDay(e){let n=e.year;return"AA"===e.era&&(n-=5500),hm(1723856,n,e.month,e.day)}getDaysInMonth(e){return h_(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+hg(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class hb extends hy{fromJulianDay(e){let[n,t,r]=hh(1723856,e);return new ha(this,"AA",n+=5500,t,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class hv extends hy{fromJulianDay(e){let[n,t,r]=hh(1824665,e),o="CE";return n<=0&&(o="BCE",n=1-n),new ha(this,o,n,t,r)}toJulianDay(e){let n=e.year;return"BCE"===e.era&&(n=1-n),hm(1824665,n,e.month,e.day)}getDaysInMonth(e){let n=e.year;return"BCE"===e.era&&(n=1-n),h_(n,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}let hA=765433;function h$(e){return 7>mu(7*e+1,19)}function hw(e){let n=Math.floor((235*e-234)/19),t=29*n+Math.floor((12084+13753*n)/25920);return 3>mu(3*(t+1),7)&&(t+=1),t}function hk(e){let n,t;return hw(e)+(n=hw(e-1),t=hw(e),hw(e+1)-t==356?2:+(t-n==382))}function hx(e){return hk(e+1)-hk(e)}function hC(e,n){if(n>=6&&!h$(e)&&n++,4===n||7===n||9===n||11===n||13===n)return 29;let t=function(e){let n=hx(e);switch(n>380&&(n-=30),n){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===n?2===t?30:29:3===n?0===t?29:30:6===n?30*!!h$(e):30}class hE{fromJulianDay(e){let n=e-347997,t=Math.floor((25920*n/hA*19+234)/235)+1,r=hk(t),o=Math.floor(n-r);for(;o<1;)o=Math.floor(n-(r=hk(--t)));let a=1,i=0;for(;i<o;)i+=hC(t,a),a++;let s=o-(i-=hC(t,--a));return new ha(this,t,a,s)}toJulianDay(e){let n=hk(e.year);for(let t=1;t<e.month;t++)n+=hC(e.year,t);return n+e.day+347997}getDaysInMonth(e){return hC(e.year,e.month)}getMonthsInYear(e){return h$(e.year)?13:12}getDaysInYear(e){return hx(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,n){n.year!==e.year&&(h$(n.year)&&!h$(e.year)&&n.month>6?e.month--:!h$(n.year)&&h$(e.year)&&n.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}class hD extends m_{fromJulianDay(e){let n,t,r,o=super.fromJulianDay(e),a=o.year-78,i=e-md(o.era,o.year,1,1);if(i<80?(a--,i+=(n=mf(o.year-1)?31:30)+155+90+10):(n=mf(o.year)?31:30,i-=80),i<n)t=1,r=i+1;else{let e=i-n;e<155?(t=Math.floor(e/31)+2,r=e%31+1):(e-=155,t=Math.floor(e/30)+7,r=e%30+1)}return new ha(this,a,t,r)}toJulianDay(e){let n,t,[r,o]=mh(e.year+78);return(mf(o)?(n=31,t=md(r,o,3,21)):(n=30,t=md(r,o,3,22)),1===e.month)?t+e.day-1:(t+=n+31*Math.min(e.month-2,5),e.month>=8&&(t+=(e.month-7)*30),t+=e.day-1)}getDaysInMonth(e){return 1===e.month&&mf(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}function hS(e,n,t,r){return r+Math.ceil(29.5*(t-1))+(n-1)*354+Math.floor((3+11*n)/30)+e-1}function hz(e,n,t){let r=Math.floor((30*(t-n)+10646)/10631),o=Math.min(12,Math.ceil((t-(29+hS(n,r,1,1)))/29.5)+1),a=t-hS(n,r,o,1)+1;return new ha(e,r,o,a)}function hB(e){return(14+11*e)%30<11}class hM{fromJulianDay(e){return hz(this,1948440,e)}toJulianDay(e){return hS(1948440,e.year,e.month,e.day)}getDaysInMonth(e){let n=29+e.month%2;return 12===e.month&&hB(e.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(e){return hB(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class hO extends hM{fromJulianDay(e){return hz(this,1948439,e)}toJulianDay(e){return hS(1948439,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}function hT(e){return 460322+l[e-1300]}function hP(e,n){return(s[e-1300]&1<<11-(n-1))==0?29:30}function hI(e,n){let t=hT(e);for(let r=1;r<n;r++)t+=hP(e,r);return t}function hN(e){return l[e+1-1300]-l[e-1300]}class hF extends hM{fromJulianDay(e){let n=e-1948440,t=hT(1300),r=hT(1600);if(n<t||n>r)return super.fromJulianDay(e);{let e=1299,t=1,r=1;for(;r>0;){r=n-hT(++e)+1;let o=hN(e);if(r===o){t=12;break}if(r<o){let n=hP(e,t);for(t=1;r>n;)r-=n,n=hP(e,++t);break}}return new ha(this,e,t,n-hI(e,t)+1)}}toJulianDay(e){return e.year<1300||e.year>1600?super.toJulianDay(e):1948440+hI(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<1300||e.year>1600?super.getDaysInMonth(e):hP(e.year,e.month)}getDaysInYear(e){return e.year<1300||e.year>1600?super.getDaysInYear(e):hN(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",s||(s=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),e=>e.charCodeAt(0)).buffer)),!l){l=new Uint32Array(301);let e=0;for(let n=1300;n<=1600;n++){l[n-1300]=e;for(let t=1;t<=12;t++)e+=hP(n,t)}}}}let hR=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],hj=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],hL=[1867,1911,1925,1988,2018],hV=["meiji","taisho","showa","heisei","reiwa"];function hW(e){let n=hR.findIndex(([n,t,r])=>!!(e.year<n)||e.year===n&&!!(e.month<t)||e.year===n&&e.month===t&&!!(e.day<r));return -1===n?hR.length-1:0===n?0:n-1}function hG(e){let n=hL[hV.indexOf(e.era)];if(!n)throw Error("Unknown era: "+e.era);return new ha(e.year+n,e.month,e.day)}class hH extends m_{fromJulianDay(e){let n=super.fromJulianDay(e),t=hW(n);return new ha(this,hV[t],n.year-hL[t],n.month,n.day)}toJulianDay(e){return super.toJulianDay(hG(e))}balanceDate(e){let n=hG(e),t=hW(n);hV[t]!==e.era&&(e.era=hV[t],e.year=n.year-hL[t]),this.constrainDate(e)}constrainDate(e){let n=hV.indexOf(e.era),t=hj[n];if(null!=t){let[r,o,a]=t,i=r-hL[n];e.year=Math.max(1,Math.min(i,e.year)),e.year===i&&(e.month=Math.min(o,e.month),e.month===o&&(e.day=Math.min(a,e.day)))}if(1===e.year&&n>=0){let[,t,r]=hR[n];e.month=Math.max(t,e.month),e.month===t&&(e.day=Math.max(r,e.day))}}getEras(){return hV}getYearsInEra(e){let n=hV.indexOf(e.era),t=hR[n],r=hR[n+1];if(null==r)return 9999-t[0]+1;let o=r[0]-t[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&o++,o}getDaysInMonth(e){return super.getDaysInMonth(hG(e))}getMinimumMonthInYear(e){let n=hU(e);return n?n[1]:1}getMinimumDayInMonth(e){let n=hU(e);return n&&e.month===n[1]?n[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function hU(e){if(1===e.year)return hR[hV.indexOf(e.era)]}let hq=[0,31,62,93,124,155,186,216,246,276,306,336];class hK{fromJulianDay(e){let n=e-1948320,t=1+Math.floor((33*n+3)/12053),r=n-(365*(t-1)+Math.floor((8*t+21)/33)),o=r<216?Math.floor(r/31):Math.floor((r-6)/30),a=r-hq[o]+1;return new ha(this,t,o+1,a)}toJulianDay(e){let n=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return n+=hq[e.month-1],n+=e.day}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||8>mu(25*e.year+11,33)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}function hZ(e){return"minguo"===e.era?e.year+1911:1-e.year+1911}function hY(e){let n=e-1911;return n>0?["minguo",n]:["before_minguo",1-n]}class hJ extends m_{fromJulianDay(e){let n=super.fromJulianDay(e),[t,r]=hY(mm(n.era,n.year));return new ha(this,t,r,n.month,n.day)}toJulianDay(e){return super.toJulianDay(hX(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[n,t]=hY(hZ(e));e.era=n,e.year=t}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(hX(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function hX(e){let[n,t]=mh(hZ(e));return new ha(n,t,e.month,e.day)}function hQ(e){switch(e){case"buddhist":return new hd;case"ethiopic":return new hy;case"ethioaa":return new hb;case"coptic":return new hv;case"hebrew":return new hE;case"indian":return new hD;case"islamic-civil":return new hM;case"islamic-tbla":return new hO;case"islamic-umalqura":return new hF;case"japanese":return new hH;case"persian":return new hK;case"roc":return new hJ;default:return new m_}}let h0=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),h1=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function h2(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),t="function"==typeof n.getTextInfo?n.getTextInfo():n.textInfo;if(t)return"rtl"===t.direction;if(n.script)return h0.has(n.script)}let n=e.split("-")[0];return h1.has(n)}let h3={prefix:String(Math.round(1e10*Math.random())),current:0},h4=uH.createContext(h3),h5=uH.createContext(!1);"undefined"!=typeof window&&window.document&&window.document.createElement;let h6=new WeakMap,h8="function"==typeof uH.useId?function(e){let n=uH.useId(),[t]=(0,uH.useState)(gn()),r=t?"react-aria":`react-aria${h3.prefix}`;return e||`${r}-${n}`}:function(e){let n=(0,uH.useContext)(h4),t=function(e=!1){let n=(0,uH.useContext)(h4),t=(0,uH.useRef)(null);if(null===t.current&&!e){var r,o;let e=null==(o=uH.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||null==(r=o.ReactCurrentOwner)?void 0:r.current;if(e){let t=h6.get(e);null==t?h6.set(e,{id:n.current,state:e.memoizedState}):e.memoizedState!==t.state&&(n.current=t.id,h6.delete(e))}t.current=++n.current}return t.current}(!!e),r=`react-aria${n.prefix}`;return e||`${r}-${t}`};function h7(){return!1}function h9(){return!0}function ge(e){return()=>{}}function gn(){return"function"==typeof uH.useSyncExternalStore?uH.useSyncExternalStore(ge,h7,h9):(0,uH.useContext)(h5)}let gt=Symbol.for("react-aria.i18n.locale");function gr(){let e="undefined"!=typeof window&&window[gt]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:h2(e)?"rtl":"ltr"}}let go=gr(),ga=new Set;function gi(){for(let e of(go=gr(),ga))e(go)}function gs(){let e=gn(),[n,t]=(0,uH.useState)(go);return((0,uH.useEffect)(()=>(0===ga.size&&window.addEventListener("languagechange",gi),ga.add(t),()=>{ga.delete(t),0===ga.size&&window.removeEventListener("languagechange",gi)}),[]),e)?{locale:"en-US",direction:"ltr"}:n}let gl=uH.createContext(null);function gc(e){let{locale:n,children:t}=e,r=gs(),o=uH.useMemo(()=>n?{locale:n,direction:h2(n)?"rtl":"ltr"}:r,[r,n]);return uH.createElement(gl.Provider,{value:o},t)}function gp(){let e=gs();return(0,uH.useContext)(gl)||e}function gu(e){let n=(0,uH.useRef)(null),t=(0,uH.useRef)(void 0),r=(0,uH.useCallback)(n=>{if("function"==typeof e){let t=e(n);return()=>{"function"==typeof t?t():e(null)}}if(e)return e.current=n,()=>{e.current=null}},[e]);return(0,uH.useMemo)(()=>({get current(){return n.current},set current(value){n.current=value,t.current&&(t.current(),t.current=void 0),null!=value&&(t.current=r(value))}}),[r])}function gd(e,n){if("function"==typeof e)return e(n);null!=e&&(e.current=n)}function gf(...e){return(...n)=>{for(let t of e)"function"==typeof t&&t(...n)}}let gm="undefined"!=typeof document?uH.useLayoutEffect:()=>{};function gh(e){let n=(0,uH.useRef)(null);return gm(()=>{n.current=e},[e]),(0,uH.useCallback)((...e)=>{let t=n.current;return null==t?void 0:t(...e)},[])}let gg=!!("undefined"!=typeof window&&window.document&&window.document.createElement),g_=new Map;function gy(e){let[n,t]=(0,uH.useState)(e),r=(0,uH.useRef)(null),o=h8(n),a=(0,uH.useRef)(null);if(c&&c.register(a,o),gg){let e=g_.get(o);e&&!e.includes(r)?e.push(r):g_.set(o,[r])}return gm(()=>()=>{c&&c.unregister(a),g_.delete(o)},[o]),(0,uH.useEffect)(()=>{let e=r.current;return e&&t(e),()=>{e&&(r.current=null)}}),o}function gb(e=[]){let n=gy(),[t,r]=function(e){let[n,t]=(0,uH.useState)(e),r=(0,uH.useRef)(null),o=gh(()=>{if(!r.current)return;let e=r.current.next();if(e.done){r.current=null;return}n===e.value?o():t(e.value)});gm(()=>{r.current&&o()});let a=gh(e=>{r.current=e(n),o()});return[n,a]}(n),o=(0,uH.useCallback)(()=>{r(function*(){yield n,yield document.getElementById(n)?n:void 0})},[n,r]);return gm(o,[n,o,...e]),t}"undefined"!=typeof FinalizationRegistry&&(c=new FinalizationRegistry(e=>{g_.delete(e)}));let gv=function(){for(var e,n,t=0,r="",o=arguments.length;t<o;t++)(e=arguments[t])&&(n=function e(n){var t,r,o="";if("string"==typeof n||"number"==typeof n)o+=n;else if("object"==typeof n)if(Array.isArray(n)){var a=n.length;for(t=0;t<a;t++)n[t]&&(r=e(n[t]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}(e))&&(r&&(r+=" "),r+=n);return r};function gA(...e){let n={...e[0]};for(let t=1;t<e.length;t++){let r=e[t];for(let e in r){let t=n[e],o=r[e];"function"==typeof t&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?n[e]=gf(t,o):("className"===e||"UNSAFE_className"===e)&&"string"==typeof t&&"string"==typeof o?n[e]=gv(t,o):"id"===e&&t&&o?n.id=function(e,n){if(e===n)return e;let t=g_.get(e);if(t)return t.forEach(e=>e.current=n),n;let r=g_.get(n);return r?(r.forEach(n=>n.current=e),e):n}(t,o):n[e]=void 0!==o?o:t}}return n}let g$=Symbol("default");function gw({values:e,children:n}){for(let[t,r]of e)n=uH.createElement(t.Provider,{value:r},n);return n}function gk(e){let{className:n,style:t,children:r,defaultClassName:o,defaultChildren:a,defaultStyle:i,values:s}=e;return(0,uH.useMemo)(()=>{let e,l,c;return e="function"==typeof n?n({...s,defaultClassName:o}):n,l="function"==typeof t?t({...s,defaultStyle:i||{}}):t,c="function"==typeof r?r({...s,defaultChildren:a}):null==r?a:r,{className:null!=e?e:o,style:l||i?{...i,...l}:void 0,children:null!=c?c:a,"data-rac":""}},[n,t,r,o,a,i,s])}function gx(e,n){let t=(0,uH.useContext)(e);if(null===n)return null;if(t&&"object"==typeof t&&"slots"in t&&t.slots){let e=n||g$;if(!t.slots[e]){let e=new Intl.ListFormat().format(Object.keys(t.slots).map(e=>`"${e}"`)),r=n?`Invalid slot "${n}".`:"A slot prop is required.";throw Error(`${r} Valid slot names are ${e}.`)}return t.slots[e]}return t}function gC(e,n,t){let{ref:r,...o}=gx(t,e.slot)||{},a=gu((0,uH.useMemo)(()=>(function(...e){return 1===e.length&&e[0]?e[0]:n=>{let t=!1,r=e.map(e=>{let r=gd(e,n);return t||(t="function"==typeof r),r});if(t)return()=>{r.forEach((n,t)=>{"function"==typeof n?n():gd(e[t],null)})}}})(n,r),[n,r])),i=gA(o,e);return"style"in o&&o.style&&"style"in e&&e.style&&("function"==typeof o.style||"function"==typeof e.style?i.style=n=>{let t="function"==typeof o.style?o.style(n):o.style,r={...n.defaultStyle,...t},a="function"==typeof e.style?e.style({...n,defaultStyle:r}):e.style;return{...r,...a}}:i.style={...o.style,...e.style}),[i,a]}function gE(e=!0){let[n,t]=(0,uH.useState)(e),r=(0,uH.useRef)(!1),o=(0,uH.useCallback)(e=>{r.current=!0,t(!!e)},[]);return gm(()=>{r.current||t(!1)},[]),[o,n]}function gD(e){let n=/^(data-.*)$/,t={};for(let r in e)n.test(r)||(t[r]=e[r]);return t}let gS=(0,uH.createContext)(null),gz=null;function gB(e,n="assertive",t=7e3){gz?gz.announce(e,n,t):(gz=new gM,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"undefined"!=typeof jest)?gz.announce(e,n,t):setTimeout(()=>{(null==gz?void 0:gz.isAttached())&&(null==gz||gz.announce(e,n,t))},100))}class gM{isAttached(){var e;return null==(e=this.node)?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",t=7e3){var r,o;if(!this.node)return;let a=document.createElement("div");"object"==typeof e?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",e["aria-labelledby"])):a.textContent=e,"assertive"===n?null==(r=this.assertiveLog)||r.appendChild(a):null==(o=this.politeLog)||o.appendChild(a),""!==e&&setTimeout(()=>{a.remove()},t)}clear(e){this.node&&((!e||"assertive"===e)&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||"polite"===e)&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,"undefined"!=typeof document&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}let gO=new Set(["id"]),gT=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),gP=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),gI=/^(data-.*)$/;function gN(e,n={}){let{labelable:t,isLink:r,propNames:o}=n,a={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(gO.has(n)||t&&gT.has(n)||r&&gP.has(n)||(null==o?void 0:o.has(n))||gI.test(n))&&(a[n]=e[n]);return a}let gF=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],gR=gF.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";gF.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let gj=gF.join(':not([hidden]):not([tabindex="-1"]),');function gL(e){return e.matches(gR)}function gV(e){return e.matches(gj)}let gW=e=>{var n;return null!=(n=null==e?void 0:e.ownerDocument)?n:document},gG=e=>e&&"window"in e&&e.window===e?e:gW(e).defaultView||window;function gH(e){if(function(){if(null==gU){gU=!1;try{document.createElement("div").focus({get preventScroll(){return gU=!0,!0}})}catch{}}return gU}())e.focus({preventScroll:!0});else{let n=function(e){let n=e.parentNode,t=[],r=document.scrollingElement||document.documentElement;for(;n instanceof HTMLElement&&n!==r;)(n.offsetHeight<n.scrollHeight||n.offsetWidth<n.scrollWidth)&&t.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),n=n.parentNode;return r instanceof HTMLElement&&t.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),t}(e);e.focus(),function(e){for(let{element:n,scrollTop:t,scrollLeft:r}of e)n.scrollTop=t,n.scrollLeft=r}(n)}}let gU=null;function gq(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function gK(e,n){Object.defineProperty(e,"target",{value:n}),Object.defineProperty(e,"currentTarget",{value:n})}function gZ(e){let n=(0,uH.useRef)({isFocused:!1,observer:null});gm(()=>{let e=n.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let t=gh(n=>{null==e||e(n)});return(0,uH.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){n.current.isFocused=!0;let r=e.target;r.addEventListener("focusout",e=>{n.current.isFocused=!1,r.disabled&&t(gq(e)),n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)},{once:!0}),n.current.observer=new MutationObserver(()=>{if(n.current.isFocused&&r.disabled){var e;null==(e=n.current.observer)||e.disconnect();let t=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}}),n.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[t])}let gY=!1;function gJ(e){var n;return"undefined"!=typeof window&&null!=window.navigator&&((null==(n=window.navigator.userAgentData)?void 0:n.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent))}function gX(e){var n;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null==(n=window.navigator.userAgentData)?void 0:n.platform)||window.navigator.platform)}function gQ(e){let n=null;return()=>(null==n&&(n=e()),n)}let g0=gQ(function(){return gX(/^Mac/i)}),g1=gQ(function(){return gX(/^iPhone/i)}),g2=gQ(function(){return gX(/^iPad/i)||g0()&&navigator.maxTouchPoints>1}),g3=gQ(function(){return g1()||g2()});gQ(function(){return g0()||g3()});let g4=gQ(function(){return gJ(/AppleWebKit/i)&&!g5()}),g5=gQ(function(){return gJ(/Chrome/i)}),g6=gQ(function(){return gJ(/Android/i)}),g8=gQ(function(){return gJ(/Firefox/i)}),g7=new Map,g9=new Set;function _e(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let n=t=>{if(!e(t)||!t.target)return;let r=g7.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",n),g7.delete(t.target)),0===g7.size)){for(let e of g9)e();g9.clear()}};document.body.addEventListener("transitionrun",t=>{if(!e(t)||!t.target)return;let r=g7.get(t.target);r||(r=new Set,g7.set(t.target,r),t.target.addEventListener("transitioncancel",n,{once:!0})),r.add(t.propertyName)}),document.body.addEventListener("transitionend",n)}function _n(e){requestAnimationFrame(()=>{for(let[e]of g7)"isConnected"in e&&!e.isConnected&&g7.delete(e);0===g7.size?e():g9.add(e)})}"undefined"!=typeof document&&("loading"!==document.readyState?_e():document.addEventListener("DOMContentLoaded",_e));let _t="default",_r="",_o=new WeakMap;function _a(e){if(g3())"disabled"===_t&&(_t="restoring",setTimeout(()=>{_n(()=>{if("restoring"===_t){let n=gW(e);"none"===n.documentElement.style.webkitUserSelect&&(n.documentElement.style.webkitUserSelect=_r||""),_r="",_t="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&_o.has(e)){let n=_o.get(e),t="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[t]&&(e.style[t]=n),""===e.getAttribute("style")&&e.removeAttribute("style"),_o.delete(e)}}let _i=uH.createContext({register:()=>{}});function _s(e,n,t){if(!n.has(e))throw TypeError("attempted to "+t+" private field on non-instance");return n.get(e)}function _l(e,n,t){var r=_s(e,n,"set");if(r.set)r.set.call(e,t);else{if(!r.writable)throw TypeError("attempted to set read only private field");r.value=t}return t}function _c(e,n){gm(()=>{if(e&&e.ref&&n)return e.ref.current=n.current,()=>{e.ref&&(e.ref.current=null)}})}function _p(){let e=(0,uH.useRef)(new Map),n=(0,uH.useCallback)((n,t,r,o)=>{let a=(null==o?void 0:o.once)?(...n)=>{e.current.delete(r),r(...n)}:r;e.current.set(r,{type:t,eventTarget:n,fn:a,options:o}),n.addEventListener(t,a,o)},[]),t=(0,uH.useCallback)((n,t,r,o)=>{var a;let i=(null==(a=e.current.get(r))?void 0:a.fn)||r;n.removeEventListener(t,i,o),e.current.delete(r)},[]),r=(0,uH.useCallback)(()=>{e.current.forEach((e,n)=>{t(e.eventTarget,e.type,n,e.options)})},[t]);return(0,uH.useEffect)(()=>r,[r]),{addGlobalListener:n,removeGlobalListener:t,removeAllGlobalListeners:r}}_i.displayName="PressResponderContext";function _u(e,n){return!!n&&!!e&&e.contains(n)}function _d(e){return e.target}function _f(e,n,t=!0){var r,o;let{metaKey:a,ctrlKey:i,altKey:s,shiftKey:l}=n;g8()&&(null==(o=window.event)||null==(r=o.type)?void 0:r.startsWith("key"))&&"_blank"===e.target&&(g0()?a=!0:i=!0);let c=g4()&&g0()&&!g2()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:i,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:i,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});_f.isOpening=t,gH(e),e.dispatchEvent(c),_f.isOpening=!1}function _m(e){return 0===e.mozInputSource&&!!e.isTrusted||(g6()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}_f.isOpening=!1;var _h=t(3445),_g=new WeakMap;class __{continuePropagation(){_l(this,_g,!1)}get shouldStopPropagation(){var e;return e=_s(this,_g,"get"),e.get?e.get.call(this):e.value}constructor(e,n,t,r){var o;ht(this,_g,{writable:!0,value:void 0}),_l(this,_g,!0);let a=null!=(o=null==r?void 0:r.target)?o:t.currentTarget,i=null==a?void 0:a.getBoundingClientRect(),s,l=0,c,p=null;null!=t.clientX&&null!=t.clientY&&(c=t.clientX,p=t.clientY),i&&(null!=c&&null!=p?(s=c-i.left,l=p-i.top):(s=i.width/2,l=i.height/2)),this.type=e,this.pointerType=n,this.target=t.currentTarget,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.x=s,this.y=l}}let _y=Symbol("linkClicked"),_b="react-aria-pressable-style",_v="data-react-aria-pressable";function _A(e){let{onPress:n,onPressChange:t,onPressStart:r,onPressEnd:o,onPressUp:a,onClick:i,isDisabled:s,isPressed:l,preventFocusOnPress:c,shouldCancelOnPointerExit:p,allowTextSelectionOnPress:u,ref:d,...f}=function(e){let n=(0,uH.useContext)(_i);if(n){let{register:t,...r}=n;e=gA(r,e),t()}return _c(n,e.ref),e}(e),[m,h]=(0,uH.useState)(!1),g=(0,uH.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:b}=_p(),v=gh((e,n)=>{let o=g.current;if(s||o.didFirePressStart)return!1;let a=!0;if(o.isTriggeringEvent=!0,r){let t=new __("pressstart",n,e);r(t),a=t.shouldStopPropagation}return t&&t(!0),o.isTriggeringEvent=!1,o.didFirePressStart=!0,h(!0),a}),A=gh((e,r,a=!0)=>{let i=g.current;if(!i.didFirePressStart)return!1;i.didFirePressStart=!1,i.isTriggeringEvent=!0;let l=!0;if(o){let n=new __("pressend",r,e);o(n),l=n.shouldStopPropagation}if(t&&t(!1),h(!1),n&&a&&!s){let t=new __("press",r,e);n(t),l&&(l=t.shouldStopPropagation)}return i.isTriggeringEvent=!1,l}),$=gh((e,n)=>{let t=g.current;if(s)return!1;if(a){t.isTriggeringEvent=!0;let r=new __("pressup",n,e);return a(r),t.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),w=gh(e=>{let n=g.current;if(n.isPressed&&n.target){for(let t of(n.didFirePressStart&&null!=n.pointerType&&A(_k(n.target,e),n.pointerType,!1),n.isPressed=!1,n.isOverTarget=!1,n.activePointerId=null,n.pointerType=null,b(),u||_a(n.target),n.disposables))t();n.disposables=[]}}),k=gh(e=>{p&&w(e)}),x=gh(e=>{null==i||i(e)}),C=gh((e,n)=>{if(i){let t=new MouseEvent("click",e);gK(t,n),i(gq(t))}}),E=(0,uH.useMemo)(()=>{let e=g.current,n={onKeyDown(n){if(_w(n.nativeEvent,n.currentTarget)&&_u(n.currentTarget,_d(n.nativeEvent))){var r;_x(_d(n.nativeEvent),n.key)&&n.preventDefault();let o=!0;if(!e.isPressed&&!n.repeat){e.target=n.currentTarget,e.isPressed=!0,e.pointerType="keyboard",o=v(n,"keyboard");let r=n.currentTarget;y(gW(n.currentTarget),"keyup",gf(n=>{_w(n,r)&&!n.repeat&&_u(r,_d(n))&&e.target&&$(_k(e.target,n),"keyboard")},t),!0)}o&&n.stopPropagation(),n.metaKey&&g0()&&(null==(r=e.metaKeyEvents)||r.set(n.key,n.nativeEvent))}else"Meta"===n.key&&(e.metaKeyEvents=new Map)},onClick(n){if((!n||_u(n.currentTarget,_d(n.nativeEvent)))&&n&&0===n.button&&!e.isTriggeringEvent&&!_f.isOpening){let t=!0;if(s&&n.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||_m(n.nativeEvent))){let e=v(n,"virtual"),r=$(n,"virtual"),o=A(n,"virtual");x(n),t=e&&r&&o}else if(e.isPressed&&"keyboard"!==e.pointerType){let r=e.pointerType||n.nativeEvent.pointerType||"virtual",o=$(_k(n.currentTarget,n),r),a=A(_k(n.currentTarget,n),r,!0);t=o&&a,e.isOverTarget=!1,x(n),w(n)}e.ignoreEmulatedMouseEvents=!1,t&&n.stopPropagation()}}},t=n=>{var t,r,o;if(e.isPressed&&e.target&&_w(n,e.target)){_x(_d(n),n.key)&&n.preventDefault();let t=_d(n),o=_u(e.target,_d(n));A(_k(e.target,n),"keyboard",o),o&&C(n,e.target),b(),"Enter"!==n.key&&_$(e.target)&&_u(e.target,t)&&!n[_y]&&(n[_y]=!0,_f(e.target,n,!1)),e.isPressed=!1,null==(r=e.metaKeyEvents)||r.delete(n.key)}else if("Meta"===n.key&&(null==(t=e.metaKeyEvents)?void 0:t.size)){let n=e.metaKeyEvents;for(let t of(e.metaKeyEvents=void 0,n.values()))null==(o=e.target)||o.dispatchEvent(new KeyboardEvent("keyup",t))}};if("undefined"!=typeof PointerEvent){n.onPointerDown=n=>{var o;if(0!==n.button||!_u(n.currentTarget,_d(n.nativeEvent)))return;if(o=n.nativeEvent,!g6()&&0===o.width&&0===o.height||1===o.width&&1===o.height&&0===o.pressure&&0===o.detail&&"mouse"===o.pointerType){e.pointerType="virtual";return}e.pointerType=n.pointerType;let a=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=n.pointerId,e.target=n.currentTarget,u||function(e){if(g3()){if("default"===_t){let n=gW(e);_r=n.documentElement.style.webkitUserSelect,n.documentElement.style.webkitUserSelect="none"}_t="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let n="userSelect"in e.style?"userSelect":"webkitUserSelect";_o.set(e,e.style[n]),e.style[n]="none"}}(e.target),a=v(n,e.pointerType);let o=_d(n.nativeEvent);"releasePointerCapture"in o&&o.releasePointerCapture(n.pointerId),y(gW(n.currentTarget),"pointerup",t,!1),y(gW(n.currentTarget),"pointercancel",r,!1)}a&&n.stopPropagation()},n.onMouseDown=n=>{if(_u(n.currentTarget,_d(n.nativeEvent))&&0===n.button){if(c){let t=function(e){for(;e&&!gL(e);)e=e.parentElement;let n=gG(e),t=n.document.activeElement;if(!t||t===e)return;gY=!0;let r=!1,o=e=>{(e.target===t||r)&&e.stopImmediatePropagation()},a=n=>{(n.target===t||r)&&(n.stopImmediatePropagation(),e||r||(r=!0,gH(t),l()))},i=n=>{(n.target===e||r)&&n.stopImmediatePropagation()},s=n=>{(n.target===e||r)&&(n.stopImmediatePropagation(),r||(r=!0,gH(t),l()))};n.addEventListener("blur",o,!0),n.addEventListener("focusout",a,!0),n.addEventListener("focusin",s,!0),n.addEventListener("focus",i,!0);let l=()=>{cancelAnimationFrame(c),n.removeEventListener("blur",o,!0),n.removeEventListener("focusout",a,!0),n.removeEventListener("focusin",s,!0),n.removeEventListener("focus",i,!0),gY=!1,r=!1},c=requestAnimationFrame(l);return l}(n.target);t&&e.disposables.push(t)}n.stopPropagation()}},n.onPointerUp=n=>{_u(n.currentTarget,_d(n.nativeEvent))&&"virtual"!==e.pointerType&&(0!==n.button||e.isPressed||$(n,e.pointerType||n.pointerType))},n.onPointerEnter=n=>{n.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,v(_k(e.target,n),e.pointerType))},n.onPointerLeave=n=>{n.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,A(_k(e.target,n),e.pointerType,!1),k(n))};let t=n=>{if(n.pointerId===e.activePointerId&&e.isPressed&&0===n.button&&e.target){if(_u(e.target,_d(n))&&null!=e.pointerType){let t=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(t?w(n):(gH(e.target),e.target.click()))},80);y(n.currentTarget,"click",()=>t=!0,!0),e.disposables.push(()=>clearTimeout(r))}else w(n);e.isOverTarget=!1}},r=e=>{w(e)};n.onDragStart=e=>{_u(e.currentTarget,_d(e.nativeEvent))&&w(e)}}return n},[y,s,c,b,u,w,k,A,v,$,x,C]);return(0,uH.useEffect)(()=>{if(!d)return;let e=gW(d.current);if(!e||!e.head||e.getElementById(_b))return;let n=e.createElement("style");n.id=_b,n.textContent=`
|
|
32
|
+
To fix this, ensure that you define the "component" field inside the page definition.`,e)}(r,n)}}function fS(e=window.localStorage){try{return e.getItem("test"),!0}catch{return!1}}let fz=fS();function fB(e,n){if(fz){if("string"==typeof n)if(n.startsWith("http"))return fT(e,n);else try{let t=JSON.parse(n);if(fP(t))return fT(e,t);console.error(`The supplied routes for ${e} is not a valid OpenmrsAppRoutes object`,n)}catch(n){console.error(`Could not add routes override for ${e}: `,n)}else if(n instanceof URL)return fT(e,n.toString());else if(fP(n))return fT(e,n);console.error(`Override for ${e} is not in a valid format. Expected either a Javascript Object, a JSON string of a Javascript object, or a URL`,n)}}function fM(e){fz&&localStorage.removeItem(fv+e)}function fO(){if(fz)for(let e of Object.keys(localStorage))e.startsWith(fv)&&localStorage.removeItem(e)}function fT(e,n){localStorage.setItem(fv+e,JSON.stringify(n))}function fP(e){if(e&&"object"==typeof e){let n=Object.prototype.hasOwnProperty;return!(n.call(e,"pages")&&(!e.pages||!Array.isArray(e.pages))||n.call(e,"extensions")&&(!e.extensions||!Array.isArray(e.extensions))||n.call(e,"workspaces")&&(!e.workspaces||!Array.isArray(e.workspaces))||n.call(e,"modals")&&(!e.modals||!Array.isArray(e.modals)))}return!1}function fI(e){return!!e&&"object"==typeof e&&Object.entries(e).every(([e,n])=>"string"==typeof e&&fP(n))}var fN={PHONE_MIN:0,PHONE_MAX:600,TABLET_MIN:601,TABLET_MAX:1023,SMALL_DESKTOP_MIN:1024,SMALL_DESKTOP_MAX:1439,LARGE_DESKTOP_MIN:1440,LARGE_DESKTOP_MAX:Number.MAX_SAFE_INTEGER};function fF(){document.body.classList.toggle("omrs-breakpoint-lt-tablet",window.innerWidth<fN.TABLET_MIN),document.body.classList.toggle("omrs-breakpoint-gt-phone",window.innerWidth>fN.PHONE_MAX),document.body.classList.toggle("omrs-breakpoint-gt-tablet",window.innerWidth>fN.TABLET_MAX),document.body.classList.toggle("omrs-breakpoint-lt-desktop",window.innerWidth<fN.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-small-desktop",window.innerWidth<fN.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-large-desktop",window.innerWidth<fN.LARGE_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-gt-small-desktop",window.innerWidth>fN.SMALL_DESKTOP_MAX)}var fR=!1;function fj(){fR||(window.addEventListener("resize",fF),fF(),fR=!0)}var fL=t(16709),fV=t.n(fL),fW=t(46062),fG=t.n(fW),fH=t(44036),fU=t.n(fH),fq=t(96793),fK=t.n(fq),fZ=t(17892),fY=t.n(fZ),fJ=t(11173),fX=t.n(fJ),fQ=t(42464),f0=t.n(fQ),f1=t(6370),f2={};f2.styleTagTransform=f0(),f2.setAttributes=fY(),f2.insert=fK().bind(null,"head"),f2.domAPI=fU(),f2.insertStyleElement=fX(),fG()(f1.Z,f2);let f3=f1.Z&&f1.Z.locals?f1.Z.locals:void 0;function f4(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function f5(e){var n,t=e.title,r=e.children,o="tablet"===d7();return uU().createElement("div",{className:fV()((f4(n={},f3.tabletHeader,o),f4(n,f3.desktopHeader,!o),n))},uU().createElement("h4",null,t),r)}var f6=["red","magenta","purple","blue","teal","cyan","gray","green","warm-gray","cool-gray","high-contrast","outline"],f8={primaryColor:{_type:ni.String,_description:"The color for displaying primary diagnoses tags",_default:"red",_validators:[n5.oneOf(f6)]},secondaryColor:{_type:ni.String,_description:"The color for displaying secondary diagnoses tags",_default:"blue",_validators:[n5.oneOf(f6)]}},f7={"Brand color #1":{_default:"#005d5d",_type:ni.String},"Brand color #2":{_default:"#004144",_type:ni.String},"Brand color #3":{_default:"#007d79",_type:ni.String},excludePatientIdentifierCodeTypes:{uuids:{_type:ni.Array,_description:"List of UUIDs of patient identifier types to exclude from rendering in the patient banner",_default:[],_elements:{_type:ni.UUID}}},implementationName:{_type:ni.String,_description:"A name of the place (or authority) where all possible locations a user can choose are located.",_default:"Clinic"},patientPhotoConceptUuid:{_type:ni.ConceptUuid,_default:"736e8771-e501-4615-bfa7-570c03f4bef5",_description:"Used to look up the patient photo, which is stored as an attachment obs. Set to `null` in order to disable the feature and use only generated avatars. To remove the avatars entirely, use extension configuration's `remove` feature."},preferredCalendar:{_type:ni.Object,_description:"Keys should be locale codes, and values should be the preferred calendar for that locale. For example, {'am': 'ethiopic'}.",_default:{am:"ethiopic"},_elements:{_validators:[n5.oneOf(["buddhist","chinese","coptic","dangi","ethioaa","ethiopic","gregory","hebrew","indian","islamic","islamic-umalqura","islamic-tbla","islamic-civil","islamic-rgsa","iso8601","japanese","persian","roc","islamicc"])]}},preferredDateLocale:{_type:ni.Object,_description:"Allows setting the locale used for date formatting for any browser locale. Does not affect time formatting. Keys should be locale codes, and values should be the preferred locale for formatting dates. For example, {'en': 'en-US', 'fr-CA': 'en-CA'}.",_default:{en:"en-GB"},_elements:{_type:ni.String}},diagnosisTags:f8},f9=t(72530),me={};me.styleTagTransform=f0(),me.setAttributes=fY(),me.insert=fK().bind(null,"head"),me.domAPI=fU(),me.insertStyleElement=fX(),fG()(f9.Z,me);let mn=f9.Z&&f9.Z.locals?f9.Z.locals:void 0;function mt(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function mr(e){var n,t,r,o=e.menuTitle,a=e.children,i=(n=uU().useState(!1),function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,s=!1;try{for(o=o.call(e);!(i=(t=o.next()).done)&&(a.push(t.value),a.length!==n);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(s)throw r}}return a}}(n,2)||function(e,n){if(e){if("string"==typeof e)return mt(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return mt(e,n)}}(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=i[0],l=i[1],c=fr(function(){return l(!1)},s),p="tablet"===d7(),u=(0,uH.useCallback)(function(){return l(function(e){return!e})},[]);return uU().createElement("div",{"data-overflow-menu":!0,className:fV()("cds--overflow-menu",mn.container),ref:c},uU().createElement("button",{className:fV()("cds--btn","cds--btn--ghost","cds--overflow-menu__trigger",{"cds--overflow-menu--open":s},mn.overflowMenuButton),"aria-haspopup":"true","aria-expanded":s,id:"custom-actions-overflow-menu-trigger","aria-controls":"custom-actions-overflow-menu",onClick:u},o),uU().createElement("div",{className:fV()("cds--overflow-menu-options","cds--overflow-menu--flip",mn.menu,(t={},r=mn.show,r in t?Object.defineProperty(t,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[r]=s,t)),tabIndex:0,"data-floating-menu-direction":"bottom",role:"menu","aria-labelledby":"custom-actions-overflow-menu-trigger",id:"custom-actions-overflow-menu"},uU().createElement("ul",{className:fV()("cds--overflow-menu-options__content",{"cds--overflow-menu-options--lg":p})},a),uU().createElement("span",null)))}var mo=t(62836),ma=t(20708),mi=t(23148),ms={};ms.styleTagTransform=f0(),ms.setAttributes=fY(),ms.insert=fK().bind(null,"head"),ms.domAPI=fU(),ms.insertStyleElement=fX(),fG()(mi.Z,ms);let ml=mi.Z&&mi.Z.locals?mi.Z.locals:void 0;var mc=function(e){var n=e.path,t=e.title,r=e.basePath,o=e.icon,a=(0,dy.useTranslation)().t,i=(0,mo.useLocation)(),s=(0,uH.useMemo)(function(){if(!n)return!1;var e,t=n.startsWith("/")?n.slice(1):n;if(t.startsWith("http"))return t===window.location.href;var r=t.split("/").map(function(e){return decodeURIComponent(e)}),o=(null!=(e=i.pathname)?e:"").split("/").slice(-1*r.length).map(function(e){return decodeURIComponent(e)});return I(r,o)},[i.pathname,n]);return uU().createElement("div",{key:n},uU().createElement(ma.ConfigurableLink,{className:fV()("cds--side-nav__link",{"active-left-nav-link":s}),to:"".concat(r,"/").concat(encodeURIComponent(n))},uU().createElement("span",{className:ml.menu},uU().createElement(ma.MaybeIcon,{icon:o,className:ml.icon,size:16}),uU().createElement("span",null,a(t)))))};function mp(e){return function(n){var t=n.basePath;return uU().createElement(mo.BrowserRouter,null,uU().createElement(mc,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({basePath:t},e)))}}function mu(e,n){return e-n*Math.floor(e/n)}function md(e,n,t,r){let o=(n=mm(e,n))-1,a=-2;return t<=2?a=0:mf(n)&&(a=-1),1721425+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*t-362)/12+a+r)}function mf(e){return e%4==0&&(e%100!=0||e%400==0)}function mm(e,n){return"BC"===e?1-n:n}function mh(e){let n="AD";return e<=0&&(n="BC",e=1-e),[n,e]}let mg={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class m_{fromJulianDay(e){let n=e-1721426,t=Math.floor(n/146097),r=mu(n,146097),o=Math.floor(r/36524),a=mu(r,36524),i=Math.floor(a/1461),s=Math.floor(mu(a,1461)/365),[l,c]=mh(400*t+100*o+4*i+s+ +(4!==o&&4!==s)),p=e-md(l,c,1,1),u=2;e<md(l,c,3,1)?u=0:mf(c)&&(u=1);let d=Math.floor(((p+u)*12+373)/367),f=e-md(l,c,d,1)+1;return new ha(l,c,d,f)}toJulianDay(e){return md(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return mg[mf(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return mf(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}let my={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function mb(e,n){return n=mU(n,e.calendar),e.era===n.era&&e.year===n.year&&e.month===n.month&&e.day===n.day}function mv(e,n){return mA(e.calendar,n.calendar)&&mb(e,n)}function mA(e,n){var t,r,o,a;return null!=(a=null!=(o=null==(t=e.isEqual)?void 0:t.call(e,n))?o:null==(r=n.isEqual)?void 0:r.call(n,e))?a:e.identifier===n.identifier}let m$={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function mw(e,n,t){let r,o=Math.ceil(e.calendar.toJulianDay(e)+1-(t?m$[t]:(r=function(e){if(Intl.Locale){let n=mO.get(e);return!n&&(n=new Intl.Locale(e).maximize().region)&&mO.set(e,n),n}let n=e.split("-")[1];return"u"===n?void 0:n}(n))&&my[r]||0))%7;return o<0&&(o+=7),o}function mk(e){return mW(Date.now(),e)}function mx(e){return mG(mk(e))}function mC(e,n){return e.calendar.toJulianDay(e)-n.calendar.toJulianDay(n)}function mE(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let mD=null;function mS(){return null==mD&&(mD=new Intl.DateTimeFormat().resolvedOptions().timeZone),mD}function mz(e){return e.subtract({days:e.day-1})}function mB(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function mM(e,n,t){let r=mw(e,n,t);return e.subtract({days:r})}let mO=new Map;function mT(e,n){return e&&n?0>=e.compare(n)?e:n:e||n}function mP(e,n){return e&&n?e.compare(n)>=0?e:n:e||n}function mI(e){return mN(mm((e=mU(e,new m_)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function mN(e,n,t,r,o,a,i){let s=new Date;return s.setUTCHours(r,o,a,i),s.setUTCFullYear(e,n-1,t),s.getTime()}function mF(e,n){if("UTC"===n)return 0;if(e>0&&n===mS())return -6e4*new Date(e).getTimezoneOffset();let{year:t,month:r,day:o,hour:a,minute:i,second:s}=mj(e,n);return mN(t,r,o,a,i,s,0)-1e3*Math.floor(e/1e3)}let mR=new Map;function mj(e,n){let t=mR.get(n);t||(t=new Intl.DateTimeFormat("en-US",{timeZone:n,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),mR.set(n,t));let r=t.formatToParts(new Date(e)),o={};for(let e of r)"literal"!==e.type&&(o[e.type]=e.value);return{year:"BC"===o.era||"B"===o.era?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:"24"===o.hour?0:+o.hour,minute:+o.minute,second:+o.second}}function mL(e,n,t="compatible"){var r,o,a;let i=mH(e);if("UTC"===n)return mI(i);if(n===mS()&&"compatible"===t){i=mU(i,new m_);let e=new Date,n=mm(i.era,i.year);return e.setFullYear(n,i.month-1,i.day),e.setHours(i.hour,i.minute,i.second,i.millisecond),e.getTime()}let s=mI(i),l=mF(s-864e5,n),c=mF(s+864e5,n),p=(r=i,((o=s-l)==(a=s-c)?[o]:[o,a]).filter(e=>{var t;let o;return t=r,o=mj(e,n),t.year===o.year&&t.month===o.month&&t.day===o.day&&t.hour===o.hour&&t.minute===o.minute&&t.second===o.second}));if(1===p.length)return p[0];if(p.length>1)switch(t){case"compatible":case"earlier":return p[0];case"later":return p[p.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(t){case"earlier":return Math.min(s-l,s-c);case"compatible":case"later":return Math.max(s-l,s-c);case"reject":throw RangeError("No such absolute time found")}}function mV(e,n,t="compatible"){return new Date(mL(e,n,t))}function mW(e,n){let t=mF(e,n),r=new Date(e+t),o=r.getUTCFullYear();return new hu(o<1?"BC":"AD",o<1?-o+1:o,r.getUTCMonth()+1,r.getUTCDate(),n,t,r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds())}function mG(e){return new ha(e.calendar,e.era,e.year,e.month,e.day)}function mH(e,n){let t=0,r=0,o=0,a=0;if("timeZone"in e)({hour:t,minute:r,second:o,millisecond:a}=e);else if("hour"in e&&!n)return e;return n&&({hour:t,minute:r,second:o,millisecond:a}=n),new hc(e.calendar,e.era,e.year,e.month,e.day,t,r,o,a)}function mU(e,n){if(mA(e.calendar,n))return e;let t=n.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=n,r.era=t.era,r.year=t.year,r.month=t.month,r.day=t.day,mJ(r),r}function mq(e,n){let t=e.copy(),r="hour"in t?m3(t,n):0;mK(t,n.years||0),t.calendar.balanceYearMonth&&t.calendar.balanceYearMonth(t,e),t.month+=n.months||0,mZ(t),mY(t),t.day+=7*(n.weeks||0),t.day+=n.days||0,t.day+=r,function(e){for(;e.day<1;)e.month--,mZ(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,mZ(e)}(t),t.calendar.balanceDate&&t.calendar.balanceDate(t),t.year<1&&(t.year=1,t.month=1,t.day=1);let o=t.calendar.getYearsInEra(t);if(t.year>o){var a,i;let e=null==(a=(i=t.calendar).isInverseEra)?void 0:a.call(i,t);t.year=o,t.month=e?1:t.calendar.getMonthsInYear(t),t.day=e?1:t.calendar.getDaysInMonth(t)}t.month<1&&(t.month=1,t.day=1);let s=t.calendar.getMonthsInYear(t);return t.month>s&&(t.month=s,t.day=t.calendar.getDaysInMonth(t)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day)),t}function mK(e,n){var t,r;(null==(t=(r=e.calendar).isInverseEra)?void 0:t.call(r,e))&&(n=-n),e.year+=n}function mZ(e){for(;e.month<1;)mK(e,-1),e.month+=e.calendar.getMonthsInYear(e);let n=0;for(;e.month>(n=e.calendar.getMonthsInYear(e));)e.month-=n,mK(e,1)}function mY(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function mJ(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),mY(e)}function mX(e){let n={};for(let t in e)"number"==typeof e[t]&&(n[t]=-e[t]);return n}function mQ(e,n){let t=e.copy();return null!=n.era&&(t.era=n.era),null!=n.year&&(t.year=n.year),null!=n.month&&(t.month=n.month),null!=n.day&&(t.day=n.day),mJ(t),t}function m0(e,n){let t=e.copy();return null!=n.hour&&(t.hour=n.hour),null!=n.minute&&(t.minute=n.minute),null!=n.second&&(t.second=n.second),null!=n.millisecond&&(t.millisecond=n.millisecond),m1(t),t}function m1(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function m2(e,n){let t=e%n;return t<0&&(t+=n),t}function m3(e,n){let t;return e.hour+=n.hours||0,e.minute+=n.minutes||0,e.second+=n.seconds||0,e.millisecond+=n.milliseconds||0,e.second+=Math.floor(e.millisecond/1e3),e.millisecond=m2(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=m2(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=m2(e.minute,60),t=Math.floor(e.hour/24),e.hour=m2(e.hour,24),t}function m4(e,n){let t=e.copy();return m3(t,n),t}function m5(e,n,t,r){let o=e.copy();switch(n){case"era":{let n=e.calendar.getEras(),a=n.indexOf(e.era);if(a<0)throw Error("Invalid era: "+e.era);a=m8(a,t,0,n.length-1,null==r?void 0:r.round),o.era=n[a],mJ(o);break}case"year":var a,i;(null==(a=(i=o.calendar).isInverseEra)?void 0:a.call(i,o))&&(t=-t),o.year=m8(e.year,t,-1/0,9999,null==r?void 0:r.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=m8(e.month,t,1,e.calendar.getMonthsInYear(e),null==r?void 0:r.round);break;case"day":o.day=m8(e.day,t,1,e.calendar.getDaysInMonth(e),null==r?void 0:r.round);break;default:throw Error("Unsupported field "+n)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),mJ(o),o}function m6(e,n,t,r){let o=e.copy();switch(n){case"hour":{let n=e.hour,a=0,i=23;if((null==r?void 0:r.hourCycle)===12){let e=n>=12;a=12*!!e,i=e?23:11}o.hour=m8(n,t,a,i,null==r?void 0:r.round);break}case"minute":o.minute=m8(e.minute,t,0,59,null==r?void 0:r.round);break;case"second":o.second=m8(e.second,t,0,59,null==r?void 0:r.round);break;case"millisecond":o.millisecond=m8(e.millisecond,t,0,999,null==r?void 0:r.round);break;default:throw Error("Unsupported field "+n)}return o}function m8(e,n,t,r,o=!1){if(o){(e+=Math.sign(n))<t&&(e=r);let o=Math.abs(n);(e=n>0?Math.ceil(e/o)*o:Math.floor(e/o)*o)>r&&(e=t)}else(e+=n)<t?e=r-(t-e-1):e>r&&(e=t+(e-r-1));return e}function m7(e,n){let t;return t=(null!=n.years&&0!==n.years||null!=n.months&&0!==n.months||null!=n.weeks&&0!==n.weeks||null!=n.days&&0!==n.days?mL(mq(mH(e),{years:n.years,months:n.months,weeks:n.weeks,days:n.days}),e.timeZone):mI(e)-e.offset)+(n.milliseconds||0),t+=1e3*(n.seconds||0),t+=6e4*(n.minutes||0),mU(mW(t+=36e5*(n.hours||0),e.timeZone),e.calendar)}function m9(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function he(e){let n,t=mU(e,new m_);return n="BC"===t.era?1===t.year?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function hn(e){return`${he(e)}T${m9(e)}`}function ht(e,n,t){if(n.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");n.set(e,t)}function hr(e){let n,t="object"==typeof e[0]?e.shift():new m_;if("string"==typeof e[0])n=e.shift();else{let e=t.getEras();n=e[e.length-1]}return[t,n,e.shift(),e.shift(),e.shift()]}var ho=new WeakMap;class ha{copy(){return this.era?new ha(this.calendar,this.era,this.year,this.month,this.day):new ha(this.calendar,this.year,this.month,this.day)}add(e){return mq(this,e)}subtract(e){return mq(this,mX(e))}set(e){return mQ(this,e)}cycle(e,n,t){return m5(this,e,n,t)}toDate(e){return mV(this,e)}toString(){return he(this)}compare(e){return mC(this,e)}constructor(...e){ht(this,ho,{writable:!0,value:void 0});let[n,t,r,o,a]=hr(e);this.calendar=n,this.era=t,this.year=r,this.month=o,this.day=a,mJ(this)}}var hi=new WeakMap;class hs{copy(){return new hs(this.hour,this.minute,this.second,this.millisecond)}add(e){return m4(this,e)}subtract(e){return m4(this,mX(e))}set(e){return m0(this,e)}cycle(e,n,t){return m6(this,e,n,t)}toString(){return m9(this)}compare(e){return mE(this)-mE(e)}constructor(e=0,n=0,t=0,r=0){ht(this,hi,{writable:!0,value:void 0}),this.hour=e,this.minute=n,this.second=t,this.millisecond=r,m1(this)}}var hl=new WeakMap;class hc{copy(){return this.era?new hc(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new hc(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return mq(this,e)}subtract(e){return mq(this,mX(e))}set(e){return mQ(m0(this,e),e)}cycle(e,n,t){switch(e){case"era":case"year":case"month":case"day":return m5(this,e,n,t);default:return m6(this,e,n,t)}}toDate(e,n){return mV(this,e,n)}toString(){return hn(this)}compare(e){let n=mC(this,e);if(0===n){var t;return t=mH(e),mE(this)-mE(t)}return n}constructor(...e){ht(this,hl,{writable:!0,value:void 0});let[n,t,r,o,a]=hr(e);this.calendar=n,this.era=t,this.year=r,this.month=o,this.day=a,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,mJ(this)}}var hp=new WeakMap;class hu{copy(){return this.era?new hu(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new hu(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return m7(this,e)}subtract(e){return m7(this,mX(e))}set(e,n){let t,r;return 0===(r=m0(mQ(t=mH(this),e),e)).compare(t)?this:mU(mW(mL(r,this.timeZone,n),this.timeZone),this.calendar)}cycle(e,n,t){return function(e,n,t,r){switch(n){case"hour":{let n=0,o=23;if((null==r?void 0:r.hourCycle)===12){let t=e.hour>=12;n=12*!!t,o=t?23:11}let a=mH(e),i=mU(m0(a,{hour:n}),new m_),s=[mL(i,e.timeZone,"earlier"),mL(i,e.timeZone,"later")].filter(n=>mW(n,e.timeZone).day===i.day)[0],l=mU(m0(a,{hour:o}),new m_),c=[mL(l,e.timeZone,"earlier"),mL(l,e.timeZone,"later")].filter(n=>mW(n,e.timeZone).day===l.day).pop(),p=mI(e)-e.offset,u=Math.floor(p/36e5),d=p%36e5;return mU(mW(p=36e5*m8(u,t,Math.floor(s/36e5),Math.floor(c/36e5),null==r?void 0:r.round)+d,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return m6(e,n,t,r);case"era":case"year":case"month":case"day":return mU(mW(mL(m5(mH(e),n,t,r),e.timeZone),e.timeZone),e.calendar);default:throw Error("Unsupported field "+n)}}(this,e,n,t)}toDate(){return new Date(mI(this)-this.offset)}toString(){var e;let n,t,r;return`${hn(this)}${n=0>Math.sign(e=this.offset)?"-":"+",t=Math.floor((e=Math.abs(e))/36e5),r=e%36e5/6e4,`${n}${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}`}[${this.timeZone}]`}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-(function(e,n,t){if(e instanceof hu){var r,o;return e.timeZone===n?e:(r=e,o=n,mU(mW(mI(r)-r.offset,o),r.calendar))}return mW(mL(e,n,void 0),n)})(e,this.timeZone).toDate().getTime()}constructor(...e){ht(this,hp,{writable:!0,value:void 0});let[n,t,r,o,a]=hr(e),i=e.shift(),s=e.shift();this.calendar=n,this.era=t,this.year=r,this.month=o,this.day=a,this.timeZone=i,this.offset=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,mJ(this)}}class hd extends m_{fromJulianDay(e){let n=super.fromJulianDay(e);return new ha(this,mm(n.era,n.year)- -543,n.month,n.day)}toJulianDay(e){return super.toJulianDay(hf(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(hf(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function hf(e){let[n,t]=mh(e.year+-543);return new ha(n,t,e.month,e.day)}function hm(e,n,t,r){return e+365*n+Math.floor(n/4)+30*(t-1)+r-1}function hh(e,n){let t=Math.floor(4*(n-e)/1461),r=1+Math.floor((n-hm(e,t,1,1))/30),o=n+1-hm(e,t,r,1);return[t,r,o]}function hg(e){return Math.floor(e%4/3)}function h_(e,n){return n%13!=0?30:hg(e)+5}class hy{fromJulianDay(e){let[n,t,r]=hh(1723856,e),o="AM";return n<=0&&(o="AA",n+=5500),new ha(this,o,n,t,r)}toJulianDay(e){let n=e.year;return"AA"===e.era&&(n-=5500),hm(1723856,n,e.month,e.day)}getDaysInMonth(e){return h_(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+hg(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class hb extends hy{fromJulianDay(e){let[n,t,r]=hh(1723856,e);return new ha(this,"AA",n+=5500,t,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class hv extends hy{fromJulianDay(e){let[n,t,r]=hh(1824665,e),o="CE";return n<=0&&(o="BCE",n=1-n),new ha(this,o,n,t,r)}toJulianDay(e){let n=e.year;return"BCE"===e.era&&(n=1-n),hm(1824665,n,e.month,e.day)}getDaysInMonth(e){let n=e.year;return"BCE"===e.era&&(n=1-n),h_(n,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}let hA=765433;function h$(e){return 7>mu(7*e+1,19)}function hw(e){let n=Math.floor((235*e-234)/19),t=29*n+Math.floor((12084+13753*n)/25920);return 3>mu(3*(t+1),7)&&(t+=1),t}function hk(e){let n,t;return hw(e)+(n=hw(e-1),t=hw(e),hw(e+1)-t==356?2:+(t-n==382))}function hx(e){return hk(e+1)-hk(e)}function hC(e,n){if(n>=6&&!h$(e)&&n++,4===n||7===n||9===n||11===n||13===n)return 29;let t=function(e){let n=hx(e);switch(n>380&&(n-=30),n){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===n?2===t?30:29:3===n?0===t?29:30:6===n?30*!!h$(e):30}class hE{fromJulianDay(e){let n=e-347997,t=Math.floor((25920*n/hA*19+234)/235)+1,r=hk(t),o=Math.floor(n-r);for(;o<1;)o=Math.floor(n-(r=hk(--t)));let a=1,i=0;for(;i<o;)i+=hC(t,a),a++;let s=o-(i-=hC(t,--a));return new ha(this,t,a,s)}toJulianDay(e){let n=hk(e.year);for(let t=1;t<e.month;t++)n+=hC(e.year,t);return n+e.day+347997}getDaysInMonth(e){return hC(e.year,e.month)}getMonthsInYear(e){return h$(e.year)?13:12}getDaysInYear(e){return hx(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,n){n.year!==e.year&&(h$(n.year)&&!h$(e.year)&&n.month>6?e.month--:!h$(n.year)&&h$(e.year)&&n.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}class hD extends m_{fromJulianDay(e){let n,t,r,o=super.fromJulianDay(e),a=o.year-78,i=e-md(o.era,o.year,1,1);if(i<80?(a--,i+=(n=mf(o.year-1)?31:30)+155+90+10):(n=mf(o.year)?31:30,i-=80),i<n)t=1,r=i+1;else{let e=i-n;e<155?(t=Math.floor(e/31)+2,r=e%31+1):(e-=155,t=Math.floor(e/30)+7,r=e%30+1)}return new ha(this,a,t,r)}toJulianDay(e){let n,t,[r,o]=mh(e.year+78);return(mf(o)?(n=31,t=md(r,o,3,21)):(n=30,t=md(r,o,3,22)),1===e.month)?t+e.day-1:(t+=n+31*Math.min(e.month-2,5),e.month>=8&&(t+=(e.month-7)*30),t+=e.day-1)}getDaysInMonth(e){return 1===e.month&&mf(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}function hS(e,n,t,r){return r+Math.ceil(29.5*(t-1))+(n-1)*354+Math.floor((3+11*n)/30)+e-1}function hz(e,n,t){let r=Math.floor((30*(t-n)+10646)/10631),o=Math.min(12,Math.ceil((t-(29+hS(n,r,1,1)))/29.5)+1),a=t-hS(n,r,o,1)+1;return new ha(e,r,o,a)}function hB(e){return(14+11*e)%30<11}class hM{fromJulianDay(e){return hz(this,1948440,e)}toJulianDay(e){return hS(1948440,e.year,e.month,e.day)}getDaysInMonth(e){let n=29+e.month%2;return 12===e.month&&hB(e.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(e){return hB(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class hO extends hM{fromJulianDay(e){return hz(this,1948439,e)}toJulianDay(e){return hS(1948439,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}function hT(e){return 460322+l[e-1300]}function hP(e,n){return(s[e-1300]&1<<11-(n-1))==0?29:30}function hI(e,n){let t=hT(e);for(let r=1;r<n;r++)t+=hP(e,r);return t}function hN(e){return l[e+1-1300]-l[e-1300]}class hF extends hM{fromJulianDay(e){let n=e-1948440,t=hT(1300),r=hT(1600);if(n<t||n>r)return super.fromJulianDay(e);{let e=1299,t=1,r=1;for(;r>0;){r=n-hT(++e)+1;let o=hN(e);if(r===o){t=12;break}if(r<o){let n=hP(e,t);for(t=1;r>n;)r-=n,n=hP(e,++t);break}}return new ha(this,e,t,n-hI(e,t)+1)}}toJulianDay(e){return e.year<1300||e.year>1600?super.toJulianDay(e):1948440+hI(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<1300||e.year>1600?super.getDaysInMonth(e):hP(e.year,e.month)}getDaysInYear(e){return e.year<1300||e.year>1600?super.getDaysInYear(e):hN(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",s||(s=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),e=>e.charCodeAt(0)).buffer)),!l){l=new Uint32Array(301);let e=0;for(let n=1300;n<=1600;n++){l[n-1300]=e;for(let t=1;t<=12;t++)e+=hP(n,t)}}}}let hR=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],hj=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],hL=[1867,1911,1925,1988,2018],hV=["meiji","taisho","showa","heisei","reiwa"];function hW(e){let n=hR.findIndex(([n,t,r])=>!!(e.year<n)||e.year===n&&!!(e.month<t)||e.year===n&&e.month===t&&!!(e.day<r));return -1===n?hR.length-1:0===n?0:n-1}function hG(e){let n=hL[hV.indexOf(e.era)];if(!n)throw Error("Unknown era: "+e.era);return new ha(e.year+n,e.month,e.day)}class hH extends m_{fromJulianDay(e){let n=super.fromJulianDay(e),t=hW(n);return new ha(this,hV[t],n.year-hL[t],n.month,n.day)}toJulianDay(e){return super.toJulianDay(hG(e))}balanceDate(e){let n=hG(e),t=hW(n);hV[t]!==e.era&&(e.era=hV[t],e.year=n.year-hL[t]),this.constrainDate(e)}constrainDate(e){let n=hV.indexOf(e.era),t=hj[n];if(null!=t){let[r,o,a]=t,i=r-hL[n];e.year=Math.max(1,Math.min(i,e.year)),e.year===i&&(e.month=Math.min(o,e.month),e.month===o&&(e.day=Math.min(a,e.day)))}if(1===e.year&&n>=0){let[,t,r]=hR[n];e.month=Math.max(t,e.month),e.month===t&&(e.day=Math.max(r,e.day))}}getEras(){return hV}getYearsInEra(e){let n=hV.indexOf(e.era),t=hR[n],r=hR[n+1];if(null==r)return 9999-t[0]+1;let o=r[0]-t[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&o++,o}getDaysInMonth(e){return super.getDaysInMonth(hG(e))}getMinimumMonthInYear(e){let n=hU(e);return n?n[1]:1}getMinimumDayInMonth(e){let n=hU(e);return n&&e.month===n[1]?n[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function hU(e){if(1===e.year)return hR[hV.indexOf(e.era)]}let hq=[0,31,62,93,124,155,186,216,246,276,306,336];class hK{fromJulianDay(e){let n=e-1948320,t=1+Math.floor((33*n+3)/12053),r=n-(365*(t-1)+Math.floor((8*t+21)/33)),o=r<216?Math.floor(r/31):Math.floor((r-6)/30),a=r-hq[o]+1;return new ha(this,t,o+1,a)}toJulianDay(e){let n=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return n+=hq[e.month-1],n+=e.day}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||8>mu(25*e.year+11,33)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}function hZ(e){return"minguo"===e.era?e.year+1911:1-e.year+1911}function hY(e){let n=e-1911;return n>0?["minguo",n]:["before_minguo",1-n]}class hJ extends m_{fromJulianDay(e){let n=super.fromJulianDay(e),[t,r]=hY(mm(n.era,n.year));return new ha(this,t,r,n.month,n.day)}toJulianDay(e){return super.toJulianDay(hX(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[n,t]=hY(hZ(e));e.era=n,e.year=t}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(hX(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function hX(e){let[n,t]=mh(hZ(e));return new ha(n,t,e.month,e.day)}function hQ(e){switch(e){case"buddhist":return new hd;case"ethiopic":return new hy;case"ethioaa":return new hb;case"coptic":return new hv;case"hebrew":return new hE;case"indian":return new hD;case"islamic-civil":return new hM;case"islamic-tbla":return new hO;case"islamic-umalqura":return new hF;case"japanese":return new hH;case"persian":return new hK;case"roc":return new hJ;default:return new m_}}let h0=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),h1=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function h2(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),t="function"==typeof n.getTextInfo?n.getTextInfo():n.textInfo;if(t)return"rtl"===t.direction;if(n.script)return h0.has(n.script)}let n=e.split("-")[0];return h1.has(n)}let h3={prefix:String(Math.round(1e10*Math.random())),current:0},h4=uH.createContext(h3),h5=uH.createContext(!1);"undefined"!=typeof window&&window.document&&window.document.createElement;let h6=new WeakMap,h8="function"==typeof uH.useId?function(e){let n=uH.useId(),[t]=(0,uH.useState)(gn()),r=t?"react-aria":`react-aria${h3.prefix}`;return e||`${r}-${n}`}:function(e){let n=(0,uH.useContext)(h4),t=function(e=!1){let n=(0,uH.useContext)(h4),t=(0,uH.useRef)(null);if(null===t.current&&!e){var r,o;let e=null==(o=uH.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||null==(r=o.ReactCurrentOwner)?void 0:r.current;if(e){let t=h6.get(e);null==t?h6.set(e,{id:n.current,state:e.memoizedState}):e.memoizedState!==t.state&&(n.current=t.id,h6.delete(e))}t.current=++n.current}return t.current}(!!e),r=`react-aria${n.prefix}`;return e||`${r}-${t}`};function h7(){return!1}function h9(){return!0}function ge(e){return()=>{}}function gn(){return"function"==typeof uH.useSyncExternalStore?uH.useSyncExternalStore(ge,h7,h9):(0,uH.useContext)(h5)}let gt=Symbol.for("react-aria.i18n.locale");function gr(){let e="undefined"!=typeof window&&window[gt]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:h2(e)?"rtl":"ltr"}}let go=gr(),ga=new Set;function gi(){for(let e of(go=gr(),ga))e(go)}function gs(){let e=gn(),[n,t]=(0,uH.useState)(go);return((0,uH.useEffect)(()=>(0===ga.size&&window.addEventListener("languagechange",gi),ga.add(t),()=>{ga.delete(t),0===ga.size&&window.removeEventListener("languagechange",gi)}),[]),e)?{locale:"en-US",direction:"ltr"}:n}let gl=uH.createContext(null);function gc(e){let{locale:n,children:t}=e,r=gs(),o=uH.useMemo(()=>n?{locale:n,direction:h2(n)?"rtl":"ltr"}:r,[r,n]);return uH.createElement(gl.Provider,{value:o},t)}function gp(){let e=gs();return(0,uH.useContext)(gl)||e}function gu(e){let n=(0,uH.useRef)(null),t=(0,uH.useRef)(void 0),r=(0,uH.useCallback)(n=>{if("function"==typeof e){let t=e(n);return()=>{"function"==typeof t?t():e(null)}}if(e)return e.current=n,()=>{e.current=null}},[e]);return(0,uH.useMemo)(()=>({get current(){return n.current},set current(value){n.current=value,t.current&&(t.current(),t.current=void 0),null!=value&&(t.current=r(value))}}),[r])}function gd(e,n){if("function"==typeof e)return e(n);null!=e&&(e.current=n)}function gf(...e){return(...n)=>{for(let t of e)"function"==typeof t&&t(...n)}}let gm="undefined"!=typeof document?uH.useLayoutEffect:()=>{};function gh(e){let n=(0,uH.useRef)(null);return gm(()=>{n.current=e},[e]),(0,uH.useCallback)((...e)=>{let t=n.current;return null==t?void 0:t(...e)},[])}let gg=!!("undefined"!=typeof window&&window.document&&window.document.createElement),g_=new Map;function gy(e){let[n,t]=(0,uH.useState)(e),r=(0,uH.useRef)(null),o=h8(n),a=(0,uH.useRef)(null);if(c&&c.register(a,o),gg){let e=g_.get(o);e&&!e.includes(r)?e.push(r):g_.set(o,[r])}return gm(()=>()=>{c&&c.unregister(a),g_.delete(o)},[o]),(0,uH.useEffect)(()=>{let e=r.current;return e&&t(e),()=>{e&&(r.current=null)}}),o}function gb(e=[]){let n=gy(),[t,r]=function(e){let[n,t]=(0,uH.useState)(e),r=(0,uH.useRef)(null),o=gh(()=>{if(!r.current)return;let e=r.current.next();if(e.done){r.current=null;return}n===e.value?o():t(e.value)});gm(()=>{r.current&&o()});let a=gh(e=>{r.current=e(n),o()});return[n,a]}(n),o=(0,uH.useCallback)(()=>{r(function*(){yield n,yield document.getElementById(n)?n:void 0})},[n,r]);return gm(o,[n,o,...e]),t}"undefined"!=typeof FinalizationRegistry&&(c=new FinalizationRegistry(e=>{g_.delete(e)}));let gv=function(){for(var e,n,t=0,r="",o=arguments.length;t<o;t++)(e=arguments[t])&&(n=function e(n){var t,r,o="";if("string"==typeof n||"number"==typeof n)o+=n;else if("object"==typeof n)if(Array.isArray(n)){var a=n.length;for(t=0;t<a;t++)n[t]&&(r=e(n[t]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}(e))&&(r&&(r+=" "),r+=n);return r};function gA(...e){let n={...e[0]};for(let t=1;t<e.length;t++){let r=e[t];for(let e in r){let t=n[e],o=r[e];"function"==typeof t&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?n[e]=gf(t,o):("className"===e||"UNSAFE_className"===e)&&"string"==typeof t&&"string"==typeof o?n[e]=gv(t,o):"id"===e&&t&&o?n.id=function(e,n){if(e===n)return e;let t=g_.get(e);if(t)return t.forEach(e=>e.current=n),n;let r=g_.get(n);return r?(r.forEach(n=>n.current=e),e):n}(t,o):n[e]=void 0!==o?o:t}}return n}let g$=Symbol("default");function gw({values:e,children:n}){for(let[t,r]of e)n=uH.createElement(t.Provider,{value:r},n);return n}function gk(e){let{className:n,style:t,children:r,defaultClassName:o,defaultChildren:a,defaultStyle:i,values:s}=e;return(0,uH.useMemo)(()=>{let e,l,c;return e="function"==typeof n?n({...s,defaultClassName:o}):n,l="function"==typeof t?t({...s,defaultStyle:i||{}}):t,c="function"==typeof r?r({...s,defaultChildren:a}):null==r?a:r,{className:null!=e?e:o,style:l||i?{...i,...l}:void 0,children:null!=c?c:a,"data-rac":""}},[n,t,r,o,a,i,s])}function gx(e,n){let t=(0,uH.useContext)(e);if(null===n)return null;if(t&&"object"==typeof t&&"slots"in t&&t.slots){let e=n||g$;if(!t.slots[e]){let e=new Intl.ListFormat().format(Object.keys(t.slots).map(e=>`"${e}"`)),r=n?`Invalid slot "${n}".`:"A slot prop is required.";throw Error(`${r} Valid slot names are ${e}.`)}return t.slots[e]}return t}function gC(e,n,t){let{ref:r,...o}=gx(t,e.slot)||{},a=gu((0,uH.useMemo)(()=>(function(...e){return 1===e.length&&e[0]?e[0]:n=>{let t=!1,r=e.map(e=>{let r=gd(e,n);return t||(t="function"==typeof r),r});if(t)return()=>{r.forEach((n,t)=>{"function"==typeof n?n():gd(e[t],null)})}}})(n,r),[n,r])),i=gA(o,e);return"style"in o&&o.style&&"style"in e&&e.style&&("function"==typeof o.style||"function"==typeof e.style?i.style=n=>{let t="function"==typeof o.style?o.style(n):o.style,r={...n.defaultStyle,...t},a="function"==typeof e.style?e.style({...n,defaultStyle:r}):e.style;return{...r,...a}}:i.style={...o.style,...e.style}),[i,a]}function gE(e=!0){let[n,t]=(0,uH.useState)(e),r=(0,uH.useRef)(!1),o=(0,uH.useCallback)(e=>{r.current=!0,t(!!e)},[]);return gm(()=>{r.current||t(!1)},[]),[o,n]}function gD(e){let n=/^(data-.*)$/,t={};for(let r in e)n.test(r)||(t[r]=e[r]);return t}let gS=(0,uH.createContext)(null),gz=null;function gB(e,n="assertive",t=7e3){gz?gz.announce(e,n,t):(gz=new gM,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"undefined"!=typeof jest)?gz.announce(e,n,t):setTimeout(()=>{(null==gz?void 0:gz.isAttached())&&(null==gz||gz.announce(e,n,t))},100))}class gM{isAttached(){var e;return null==(e=this.node)?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",t=7e3){var r,o;if(!this.node)return;let a=document.createElement("div");"object"==typeof e?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",e["aria-labelledby"])):a.textContent=e,"assertive"===n?null==(r=this.assertiveLog)||r.appendChild(a):null==(o=this.politeLog)||o.appendChild(a),""!==e&&setTimeout(()=>{a.remove()},t)}clear(e){this.node&&((!e||"assertive"===e)&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||"polite"===e)&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,"undefined"!=typeof document&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}let gO=new Set(["id"]),gT=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),gP=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),gI=/^(data-.*)$/;function gN(e,n={}){let{labelable:t,isLink:r,propNames:o}=n,a={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(gO.has(n)||t&&gT.has(n)||r&&gP.has(n)||(null==o?void 0:o.has(n))||gI.test(n))&&(a[n]=e[n]);return a}let gF=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],gR=gF.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";gF.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let gj=gF.join(':not([hidden]):not([tabindex="-1"]),');function gL(e){return e.matches(gR)}function gV(e){return e.matches(gj)}let gW=e=>{var n;return null!=(n=null==e?void 0:e.ownerDocument)?n:document},gG=e=>e&&"window"in e&&e.window===e?e:gW(e).defaultView||window;function gH(e){if(function(){if(null==gU){gU=!1;try{document.createElement("div").focus({get preventScroll(){return gU=!0,!0}})}catch{}}return gU}())e.focus({preventScroll:!0});else{let n=function(e){let n=e.parentNode,t=[],r=document.scrollingElement||document.documentElement;for(;n instanceof HTMLElement&&n!==r;)(n.offsetHeight<n.scrollHeight||n.offsetWidth<n.scrollWidth)&&t.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),n=n.parentNode;return r instanceof HTMLElement&&t.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),t}(e);e.focus(),function(e){for(let{element:n,scrollTop:t,scrollLeft:r}of e)n.scrollTop=t,n.scrollLeft=r}(n)}}let gU=null;function gq(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function gK(e,n){Object.defineProperty(e,"target",{value:n}),Object.defineProperty(e,"currentTarget",{value:n})}function gZ(e){let n=(0,uH.useRef)({isFocused:!1,observer:null});gm(()=>{let e=n.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let t=gh(n=>{null==e||e(n)});return(0,uH.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){n.current.isFocused=!0;let r=e.target;r.addEventListener("focusout",e=>{n.current.isFocused=!1,r.disabled&&t(gq(e)),n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)},{once:!0}),n.current.observer=new MutationObserver(()=>{if(n.current.isFocused&&r.disabled){var e;null==(e=n.current.observer)||e.disconnect();let t=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}}),n.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[t])}let gY=!1;function gJ(e){var n;return"undefined"!=typeof window&&null!=window.navigator&&((null==(n=window.navigator.userAgentData)?void 0:n.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent))}function gX(e){var n;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null==(n=window.navigator.userAgentData)?void 0:n.platform)||window.navigator.platform)}function gQ(e){let n=null;return()=>(null==n&&(n=e()),n)}let g0=gQ(function(){return gX(/^Mac/i)}),g1=gQ(function(){return gX(/^iPhone/i)}),g2=gQ(function(){return gX(/^iPad/i)||g0()&&navigator.maxTouchPoints>1}),g3=gQ(function(){return g1()||g2()});gQ(function(){return g0()||g3()});let g4=gQ(function(){return gJ(/AppleWebKit/i)&&!g5()}),g5=gQ(function(){return gJ(/Chrome/i)}),g6=gQ(function(){return gJ(/Android/i)}),g8=gQ(function(){return gJ(/Firefox/i)}),g7=new Map,g9=new Set;function _e(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let n=t=>{if(!e(t)||!t.target)return;let r=g7.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",n),g7.delete(t.target)),0===g7.size)){for(let e of g9)e();g9.clear()}};document.body.addEventListener("transitionrun",t=>{if(!e(t)||!t.target)return;let r=g7.get(t.target);r||(r=new Set,g7.set(t.target,r),t.target.addEventListener("transitioncancel",n,{once:!0})),r.add(t.propertyName)}),document.body.addEventListener("transitionend",n)}function _n(e){requestAnimationFrame(()=>{for(let[e]of g7)"isConnected"in e&&!e.isConnected&&g7.delete(e);0===g7.size?e():g9.add(e)})}"undefined"!=typeof document&&("loading"!==document.readyState?_e():document.addEventListener("DOMContentLoaded",_e));let _t="default",_r="",_o=new WeakMap;function _a(e){if(g3())"disabled"===_t&&(_t="restoring",setTimeout(()=>{_n(()=>{if("restoring"===_t){let n=gW(e);"none"===n.documentElement.style.webkitUserSelect&&(n.documentElement.style.webkitUserSelect=_r||""),_r="",_t="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&_o.has(e)){let n=_o.get(e),t="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[t]&&(e.style[t]=n),""===e.getAttribute("style")&&e.removeAttribute("style"),_o.delete(e)}}let _i=uH.createContext({register:()=>{}});function _s(e,n,t){if(!n.has(e))throw TypeError("attempted to "+t+" private field on non-instance");return n.get(e)}function _l(e,n,t){var r=_s(e,n,"set");if(r.set)r.set.call(e,t);else{if(!r.writable)throw TypeError("attempted to set read only private field");r.value=t}return t}function _c(e,n){gm(()=>{if(e&&e.ref&&n)return e.ref.current=n.current,()=>{e.ref&&(e.ref.current=null)}})}function _p(){let e=(0,uH.useRef)(new Map),n=(0,uH.useCallback)((n,t,r,o)=>{let a=(null==o?void 0:o.once)?(...n)=>{e.current.delete(r),r(...n)}:r;e.current.set(r,{type:t,eventTarget:n,fn:a,options:o}),n.addEventListener(t,a,o)},[]),t=(0,uH.useCallback)((n,t,r,o)=>{var a;let i=(null==(a=e.current.get(r))?void 0:a.fn)||r;n.removeEventListener(t,i,o),e.current.delete(r)},[]),r=(0,uH.useCallback)(()=>{e.current.forEach((e,n)=>{t(e.eventTarget,e.type,n,e.options)})},[t]);return(0,uH.useEffect)(()=>r,[r]),{addGlobalListener:n,removeGlobalListener:t,removeAllGlobalListeners:r}}_i.displayName="PressResponderContext";function _u(e,n){return!!n&&!!e&&e.contains(n)}function _d(e){return e.target}function _f(e,n,t=!0){var r,o;let{metaKey:a,ctrlKey:i,altKey:s,shiftKey:l}=n;g8()&&(null==(o=window.event)||null==(r=o.type)?void 0:r.startsWith("key"))&&"_blank"===e.target&&(g0()?a=!0:i=!0);let c=g4()&&g0()&&!g2()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:i,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:i,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});_f.isOpening=t,gH(e),e.dispatchEvent(c),_f.isOpening=!1}function _m(e){return 0===e.mozInputSource&&!!e.isTrusted||(g6()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}_f.isOpening=!1;var _h=t(3445),_g=new WeakMap;class __{continuePropagation(){_l(this,_g,!1)}get shouldStopPropagation(){var e;return e=_s(this,_g,"get"),e.get?e.get.call(this):e.value}constructor(e,n,t,r){var o;ht(this,_g,{writable:!0,value:void 0}),_l(this,_g,!0);let a=null!=(o=null==r?void 0:r.target)?o:t.currentTarget,i=null==a?void 0:a.getBoundingClientRect(),s,l=0,c,p=null;null!=t.clientX&&null!=t.clientY&&(c=t.clientX,p=t.clientY),i&&(null!=c&&null!=p?(s=c-i.left,l=p-i.top):(s=i.width/2,l=i.height/2)),this.type=e,this.pointerType=n,this.target=t.currentTarget,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.x=s,this.y=l}}let _y=Symbol("linkClicked"),_b="react-aria-pressable-style",_v="data-react-aria-pressable";function _A(e){let{onPress:n,onPressChange:t,onPressStart:r,onPressEnd:o,onPressUp:a,onClick:i,isDisabled:s,isPressed:l,preventFocusOnPress:c,shouldCancelOnPointerExit:p,allowTextSelectionOnPress:u,ref:d,...f}=function(e){let n=(0,uH.useContext)(_i);if(n){let{register:t,...r}=n;e=gA(r,e),t()}return _c(n,e.ref),e}(e),[m,h]=(0,uH.useState)(!1),g=(0,uH.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:b}=_p(),v=gh((e,n)=>{let o=g.current;if(s||o.didFirePressStart)return!1;let a=!0;if(o.isTriggeringEvent=!0,r){let t=new __("pressstart",n,e);r(t),a=t.shouldStopPropagation}return t&&t(!0),o.isTriggeringEvent=!1,o.didFirePressStart=!0,h(!0),a}),A=gh((e,r,a=!0)=>{let i=g.current;if(!i.didFirePressStart)return!1;i.didFirePressStart=!1,i.isTriggeringEvent=!0;let l=!0;if(o){let n=new __("pressend",r,e);o(n),l=n.shouldStopPropagation}if(t&&t(!1),h(!1),n&&a&&!s){let t=new __("press",r,e);n(t),l&&(l=t.shouldStopPropagation)}return i.isTriggeringEvent=!1,l}),$=gh((e,n)=>{let t=g.current;if(s)return!1;if(a){t.isTriggeringEvent=!0;let r=new __("pressup",n,e);return a(r),t.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),w=gh(e=>{let n=g.current;if(n.isPressed&&n.target){for(let t of(n.didFirePressStart&&null!=n.pointerType&&A(_k(n.target,e),n.pointerType,!1),n.isPressed=!1,n.isOverTarget=!1,n.activePointerId=null,n.pointerType=null,b(),u||_a(n.target),n.disposables))t();n.disposables=[]}}),k=gh(e=>{p&&w(e)}),x=gh(e=>{null==i||i(e)}),C=gh((e,n)=>{if(i){let t=new MouseEvent("click",e);gK(t,n),i(gq(t))}}),E=(0,uH.useMemo)(()=>{let e=g.current,n={onKeyDown(n){if(_w(n.nativeEvent,n.currentTarget)&&_u(n.currentTarget,_d(n.nativeEvent))){var r;_x(_d(n.nativeEvent),n.key)&&n.preventDefault();let o=!0;if(!e.isPressed&&!n.repeat){e.target=n.currentTarget,e.isPressed=!0,e.pointerType="keyboard",o=v(n,"keyboard");let r=n.currentTarget;y(gW(n.currentTarget),"keyup",gf(n=>{_w(n,r)&&!n.repeat&&_u(r,_d(n))&&e.target&&$(_k(e.target,n),"keyboard")},t),!0)}o&&n.stopPropagation(),n.metaKey&&g0()&&(null==(r=e.metaKeyEvents)||r.set(n.key,n.nativeEvent))}else"Meta"===n.key&&(e.metaKeyEvents=new Map)},onClick(n){if((!n||_u(n.currentTarget,_d(n.nativeEvent)))&&n&&0===n.button&&!e.isTriggeringEvent&&!_f.isOpening){let t=!0;if(s&&n.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||_m(n.nativeEvent))){let e=v(n,"virtual"),r=$(n,"virtual"),o=A(n,"virtual");x(n),t=e&&r&&o}else if(e.isPressed&&"keyboard"!==e.pointerType){let r=e.pointerType||n.nativeEvent.pointerType||"virtual",o=$(_k(n.currentTarget,n),r),a=A(_k(n.currentTarget,n),r,!0);t=o&&a,e.isOverTarget=!1,x(n),w(n)}e.ignoreEmulatedMouseEvents=!1,t&&n.stopPropagation()}}},t=n=>{var t,r,o;if(e.isPressed&&e.target&&_w(n,e.target)){_x(_d(n),n.key)&&n.preventDefault();let t=_d(n),o=_u(e.target,_d(n));A(_k(e.target,n),"keyboard",o),o&&C(n,e.target),b(),"Enter"!==n.key&&_$(e.target)&&_u(e.target,t)&&!n[_y]&&(n[_y]=!0,_f(e.target,n,!1)),e.isPressed=!1,null==(r=e.metaKeyEvents)||r.delete(n.key)}else if("Meta"===n.key&&(null==(t=e.metaKeyEvents)?void 0:t.size)){let n=e.metaKeyEvents;for(let t of(e.metaKeyEvents=void 0,n.values()))null==(o=e.target)||o.dispatchEvent(new KeyboardEvent("keyup",t))}};if("undefined"!=typeof PointerEvent){n.onPointerDown=n=>{var o;if(0!==n.button||!_u(n.currentTarget,_d(n.nativeEvent)))return;if(o=n.nativeEvent,!g6()&&0===o.width&&0===o.height||1===o.width&&1===o.height&&0===o.pressure&&0===o.detail&&"mouse"===o.pointerType){e.pointerType="virtual";return}e.pointerType=n.pointerType;let a=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=n.pointerId,e.target=n.currentTarget,u||function(e){if(g3()){if("default"===_t){let n=gW(e);_r=n.documentElement.style.webkitUserSelect,n.documentElement.style.webkitUserSelect="none"}_t="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let n="userSelect"in e.style?"userSelect":"webkitUserSelect";_o.set(e,e.style[n]),e.style[n]="none"}}(e.target),a=v(n,e.pointerType);let o=_d(n.nativeEvent);"releasePointerCapture"in o&&o.releasePointerCapture(n.pointerId),y(gW(n.currentTarget),"pointerup",t,!1),y(gW(n.currentTarget),"pointercancel",r,!1)}a&&n.stopPropagation()},n.onMouseDown=n=>{if(_u(n.currentTarget,_d(n.nativeEvent))&&0===n.button){if(c){let t=function(e){for(;e&&!gL(e);)e=e.parentElement;let n=gG(e),t=n.document.activeElement;if(!t||t===e)return;gY=!0;let r=!1,o=e=>{(e.target===t||r)&&e.stopImmediatePropagation()},a=n=>{(n.target===t||r)&&(n.stopImmediatePropagation(),e||r||(r=!0,gH(t),l()))},i=n=>{(n.target===e||r)&&n.stopImmediatePropagation()},s=n=>{(n.target===e||r)&&(n.stopImmediatePropagation(),r||(r=!0,gH(t),l()))};n.addEventListener("blur",o,!0),n.addEventListener("focusout",a,!0),n.addEventListener("focusin",s,!0),n.addEventListener("focus",i,!0);let l=()=>{cancelAnimationFrame(c),n.removeEventListener("blur",o,!0),n.removeEventListener("focusout",a,!0),n.removeEventListener("focusin",s,!0),n.removeEventListener("focus",i,!0),gY=!1,r=!1},c=requestAnimationFrame(l);return l}(n.target);t&&e.disposables.push(t)}n.stopPropagation()}},n.onPointerUp=n=>{_u(n.currentTarget,_d(n.nativeEvent))&&"virtual"!==e.pointerType&&(0!==n.button||e.isPressed||$(n,e.pointerType||n.pointerType))},n.onPointerEnter=n=>{n.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,v(_k(e.target,n),e.pointerType))},n.onPointerLeave=n=>{n.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,A(_k(e.target,n),e.pointerType,!1),k(n))};let t=n=>{if(n.pointerId===e.activePointerId&&e.isPressed&&0===n.button&&e.target){if(_u(e.target,_d(n))&&null!=e.pointerType){let t=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(t?w(n):(gH(e.target),e.target.click()))},80);y(n.currentTarget,"click",()=>t=!0,!0),e.disposables.push(()=>clearTimeout(r))}else w(n);e.isOverTarget=!1}},r=e=>{w(e)};n.onDragStart=e=>{_u(e.currentTarget,_d(e.nativeEvent))&&w(e)}}return n},[y,s,c,b,u,w,k,A,v,$,x,C]);return(0,uH.useEffect)(()=>{if(!d)return;let e=gW(d.current);if(!e||!e.head||e.getElementById(_b))return;let n=e.createElement("style");n.id=_b,n.textContent=`
|
|
33
33
|
@layer {
|
|
34
34
|
[${_v}] {
|
|
35
35
|
touch-action: pan-x pan-y pinch-zoom;
|