@openmrs/esm-home-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/68.js +1 -1
- package/dist/68.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-home-app.js +1 -1
- package/dist/openmrs-esm-home-app.js.buildmanifest.json +5 -5
- package/dist/openmrs-esm-home-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
package/dist/68.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 mo(){mt.sort((e,n)=>e.appName.localeCompare(n.appName,"en"));let e=new Map;for(let n of mt){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?rT(e,()=>h7(n.appName,n.component),function(e,{online:n,offline:t,featureFlag:r}){return window.offlineEnabled?o=>!!(navigator.onLine&&(n??!0)||!navigator.onLine&&t)&&(!r||!!uk(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?rL(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 ma(e=window.localStorage){try{return e.getItem("test"),!0}catch{return!1}}let mi=ma();function ms(e,n){if(mi){if("string"==typeof n)if(n.startsWith("http"))return mu(e,n);else try{let t=JSON.parse(n);if(mp(t))return mu(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 mu(e,n.toString());else if(mp(n))return mu(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 ml(e){mi&&localStorage.removeItem(h6+e)}function mc(){if(!mi)return;let e=window.localStorage;for(let n=0;n<e.length;n++){let t=e.key(n);t?.startsWith(h6)&&e.removeItem(t)}}function mu(e,n){localStorage.setItem(h6+e,JSON.stringify(n))}function mp(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 md(e){return!!e&&"object"==typeof e&&Object.entries(e).every(([e,n])=>"string"==typeof e&&mp(n))}var mf={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 mh(){document.body.classList.toggle("omrs-breakpoint-lt-tablet",window.innerWidth<mf.TABLET_MIN),document.body.classList.toggle("omrs-breakpoint-gt-phone",window.innerWidth>mf.PHONE_MAX),document.body.classList.toggle("omrs-breakpoint-gt-tablet",window.innerWidth>mf.TABLET_MAX),document.body.classList.toggle("omrs-breakpoint-lt-desktop",window.innerWidth<mf.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-small-desktop",window.innerWidth<mf.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-large-desktop",window.innerWidth<mf.LARGE_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-gt-small-desktop",window.innerWidth>mf.SMALL_DESKTOP_MAX)}var mm=!1;function mg(){mm||(window.addEventListener("resize",mh),mh(),mm=!0)}var m_=t(16709),my=t.n(m_),mb=t(46062),mv=t.n(mb),mA=t(44036),m$=t.n(mA),mw=t(96793),mk=t.n(mw),mx=t(17892),mC=t.n(mx),mE=t(11173),mD=t.n(mE),mS=t(42464),mz=t.n(mS),mB=t(6370),mO={};mO.styleTagTransform=mz(),mO.setAttributes=mC(),mO.insert=mk().bind(null,"head"),mO.domAPI=m$(),mO.insertStyleElement=mD(),mv()(mB.Z,mO);let mM=mB.Z&&mB.Z.locals?mB.Z.locals:void 0;function mP(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function mT(e){var n,t=e.title,r=e.children,o="tablet"===hF();return fy().createElement("div",{className:my()((mP(n={},mM.tabletHeader,o),mP(n,mM.desktopHeader,!o),n))},fy().createElement("h4",null,t),r)}var mI=["red","magenta","purple","blue","teal","cyan","gray","green","warm-gray","cool-gray","high-contrast","outline"],mN={primaryColor:{_type:nx.String,_description:"The color for displaying primary diagnoses tags",_default:"red",_validators:[th.oneOf(mI)]},secondaryColor:{_type:nx.String,_description:"The color for displaying secondary diagnoses tags",_default:"blue",_validators:[th.oneOf(mI)]}},mF={"Brand color #1":{_default:"#005d5d",_type:nx.String},"Brand color #2":{_default:"#004144",_type:nx.String},"Brand color #3":{_default:"#007d79",_type:nx.String},excludePatientIdentifierCodeTypes:{uuids:{_type:nx.Array,_description:"List of UUIDs of patient identifier types to exclude from rendering in the patient banner",_default:[],_elements:{_type:nx.UUID}}},implementationName:{_type:nx.String,_description:"A name of the place (or authority) where all possible locations a user can choose are located.",_default:"Clinic"},patientPhotoConceptUuid:{_type:nx.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:nx.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:[th.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:nx.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:nx.String}},diagnosisTags:mN},mj=t(72530),mR={};mR.styleTagTransform=mz(),mR.setAttributes=mC(),mR.insert=mk().bind(null,"head"),mR.domAPI=m$(),mR.insertStyleElement=mD(),mv()(mj.Z,mR);let mL=mj.Z&&mj.Z.locals?mj.Z.locals:void 0;function mV(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 mW(e){var n,t,r,o=e.menuTitle,a=e.children,i=(n=fy().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 mV(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 mV(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=hW(function(){return l(!1)},s),u="tablet"===hF(),p=(0,f_.useCallback)(function(){return l(function(e){return!e})},[]);return fy().createElement("div",{"data-overflow-menu":!0,className:my()("cds--overflow-menu",mL.container),ref:c},fy().createElement("button",{className:my()("cds--btn","cds--btn--ghost","cds--overflow-menu__trigger",{"cds--overflow-menu--open":s},mL.overflowMenuButton),"aria-haspopup":"true","aria-expanded":s,id:"custom-actions-overflow-menu-trigger","aria-controls":"custom-actions-overflow-menu",onClick:p},o),fy().createElement("div",{className:my()("cds--overflow-menu-options","cds--overflow-menu--flip",mL.menu,(t={},r=mL.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"},fy().createElement("ul",{className:my()("cds--overflow-menu-options__content",{"cds--overflow-menu-options--lg":u})},a),fy().createElement("span",null)))}var mH=t(62836),mG=t(20708),mU=t(23148),mq={};mq.styleTagTransform=mz(),mq.setAttributes=mC(),mq.insert=mk().bind(null,"head"),mq.domAPI=m$(),mq.insertStyleElement=mD(),mv()(mU.Z,mq);let mK=mU.Z&&mU.Z.locals?mU.Z.locals:void 0;var mY=function(e){var n=e.path,t=e.title,r=e.basePath,o=e.icon,a=(0,fQ.useTranslation)().t,i=(0,mH.useLocation)(),s=(0,f_.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 fy().createElement("div",{key:n},fy().createElement(mG.ConfigurableLink,{className:my()("cds--side-nav__link",{"active-left-nav-link":s}),to:"".concat(r,"/").concat(encodeURIComponent(n))},fy().createElement("span",{className:mK.menu},fy().createElement(mG.MaybeIcon,{icon:o,className:mK.icon,size:16}),fy().createElement("span",null,a(t)))))};function mZ(e){return function(n){var t=n.basePath;return fy().createElement(mH.BrowserRouter,null,fy().createElement(mY,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 mJ(e,n){return e-n*Math.floor(e/n)}function mX(e,n,t,r){let o=(n=m0(e,n))-1,a=-2;return t<=2?a=0:mQ(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 mQ(e){return e%4==0&&(e%100!=0||e%400==0)}function m0(e,n){return"BC"===e?1-n:n}function m1(e){let n="AD";return e<=0&&(n="BC",e=1-e),[n,e]}let m2={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 m3{fromJulianDay(e){let n=e-1721426,t=Math.floor(n/146097),r=mJ(n,146097),o=Math.floor(r/36524),a=mJ(r,36524),i=Math.floor(a/1461),s=Math.floor(mJ(a,1461)/365),[l,c]=m1(400*t+100*o+4*i+s+ +(4!==o&&4!==s)),u=e-mX(l,c,1,1),p=2;e<mX(l,c,3,1)?p=0:mQ(c)&&(p=1);let d=Math.floor(((u+p)*12+373)/367),f=e-mX(l,c,d,1)+1;return new gG(l,c,d,f)}toJulianDay(e){return mX(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return m2[mQ(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return mQ(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 m4={"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 m5(e,n){return n=g$(n,e.calendar),e.era===n.era&&e.year===n.year&&e.month===n.month&&e.day===n.day}function m6(e,n){return m8(e.calendar,n.calendar)&&m5(e,n)}function m8(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 m7={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function m9(e,n,t){let r,o=Math.ceil(e.calendar.toJulianDay(e)+1-(t?m7[t]:(r=function(e){if(Intl.Locale){let n=gc.get(e);return!n&&(n=new Intl.Locale(e).maximize().region)&&gc.set(e,n),n}let n=e.split("-")[1];return"u"===n?void 0:n}(n))&&m4[r]||0))%7;return o<0&&(o+=7),o}function ge(e){return gb(Date.now(),e)}function gn(e){return gv(ge(e))}function gt(e,n){return e.calendar.toJulianDay(e)-n.calendar.toJulianDay(n)}function gr(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let go=null;function ga(){return null==go&&(go=new Intl.DateTimeFormat().resolvedOptions().timeZone),go}function gi(e){return e.subtract({days:e.day-1})}function gs(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function gl(e,n,t){let r=m9(e,n,t);return e.subtract({days:r})}let gc=new Map;function gu(e,n){return e&&n?0>=e.compare(n)?e:n:e||n}function gp(e,n){return e&&n?e.compare(n)>=0?e:n:e||n}function gd(e){return gf(m0((e=g$(e,new m3)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function gf(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 gh(e,n){if("UTC"===n)return 0;if(e>0&&n===ga())return -6e4*new Date(e).getTimezoneOffset();let{year:t,month:r,day:o,hour:a,minute:i,second:s}=gg(e,n);return gf(t,r,o,a,i,s,0)-1e3*Math.floor(e/1e3)}let gm=new Map;function gg(e,n){let t=gm.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"}),gm.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 g_(e,n,t="compatible"){var r,o,a;let i=gA(e);if("UTC"===n)return gd(i);if(n===ga()&&"compatible"===t){i=g$(i,new m3);let e=new Date,n=m0(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=gd(i),l=gh(s-864e5,n),c=gh(s+864e5,n),u=(r=i,((o=s-l)==(a=s-c)?[o]:[o,a]).filter(e=>{var t;let o;return t=r,o=gg(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===u.length)return u[0];if(u.length>1)switch(t){case"compatible":case"earlier":return u[0];case"later":return u[u.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 gy(e,n,t="compatible"){return new Date(g_(e,n,t))}function gb(e,n){let t=gh(e,n),r=new Date(e+t),o=r.getUTCFullYear();return new gJ(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 gv(e){return new gG(e.calendar,e.era,e.year,e.month,e.day)}function gA(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 gY(e.calendar,e.era,e.year,e.month,e.day,t,r,o,a)}function g$(e,n){if(m8(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,gE(r),r}function gw(e,n){let t=e.copy(),r="hour"in t?gM(t,n):0;gk(t,n.years||0),t.calendar.balanceYearMonth&&t.calendar.balanceYearMonth(t,e),t.month+=n.months||0,gx(t),gC(t),t.day+=7*(n.weeks||0),t.day+=n.days||0,t.day+=r,function(e){for(;e.day<1;)e.month--,gx(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,gx(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 gk(e,n){var t,r;(null==(t=(r=e.calendar).isInverseEra)?void 0:t.call(r,e))&&(n=-n),e.year+=n}function gx(e){for(;e.month<1;)gk(e,-1),e.month+=e.calendar.getMonthsInYear(e);let n=0;for(;e.month>(n=e.calendar.getMonthsInYear(e));)e.month-=n,gk(e,1)}function gC(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 gE(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),gC(e)}function gD(e){let n={};for(let t in e)"number"==typeof e[t]&&(n[t]=-e[t]);return n}function gS(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),gE(t),t}function gz(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),gB(t),t}function gB(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 gO(e,n){let t=e%n;return t<0&&(t+=n),t}function gM(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=gO(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=gO(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=gO(e.minute,60),t=Math.floor(e.hour/24),e.hour=gO(e.hour,24),t}function gP(e,n){let t=e.copy();return gM(t,n),t}function gT(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=gN(a,t,0,n.length-1,null==r?void 0:r.round),o.era=n[a],gE(o);break}case"year":var a,i;(null==(a=(i=o.calendar).isInverseEra)?void 0:a.call(i,o))&&(t=-t),o.year=gN(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=gN(e.month,t,1,e.calendar.getMonthsInYear(e),null==r?void 0:r.round);break;case"day":o.day=gN(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),gE(o),o}function gI(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=gN(n,t,a,i,null==r?void 0:r.round);break}case"minute":o.minute=gN(e.minute,t,0,59,null==r?void 0:r.round);break;case"second":o.second=gN(e.second,t,0,59,null==r?void 0:r.round);break;case"millisecond":o.millisecond=gN(e.millisecond,t,0,999,null==r?void 0:r.round);break;default:throw Error("Unsupported field "+n)}return o}function gN(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 gF(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?g_(gw(gA(e),{years:n.years,months:n.months,weeks:n.weeks,days:n.days}),e.timeZone):gd(e)-e.offset)+(n.milliseconds||0),t+=1e3*(n.seconds||0),t+=6e4*(n.minutes||0),g$(gb(t+=36e5*(n.hours||0),e.timeZone),e.calendar)}function gj(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 gR(e){let n,t=g$(e,new m3);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 gL(e){return`${gR(e)}T${gj(e)}`}function gV(e,n,t){if(n.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");n.set(e,t)}function gW(e){let n,t="object"==typeof e[0]?e.shift():new m3;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 gH=new WeakMap;class gG{copy(){return this.era?new gG(this.calendar,this.era,this.year,this.month,this.day):new gG(this.calendar,this.year,this.month,this.day)}add(e){return gw(this,e)}subtract(e){return gw(this,gD(e))}set(e){return gS(this,e)}cycle(e,n,t){return gT(this,e,n,t)}toDate(e){return gy(this,e)}toString(){return gR(this)}compare(e){return gt(this,e)}constructor(...e){gV(this,gH,{writable:!0,value:void 0});let[n,t,r,o,a]=gW(e);this.calendar=n,this.era=t,this.year=r,this.month=o,this.day=a,gE(this)}}var gU=new WeakMap;class gq{copy(){return new gq(this.hour,this.minute,this.second,this.millisecond)}add(e){return gP(this,e)}subtract(e){return gP(this,gD(e))}set(e){return gz(this,e)}cycle(e,n,t){return gI(this,e,n,t)}toString(){return gj(this)}compare(e){return gr(this)-gr(e)}constructor(e=0,n=0,t=0,r=0){gV(this,gU,{writable:!0,value:void 0}),this.hour=e,this.minute=n,this.second=t,this.millisecond=r,gB(this)}}var gK=new WeakMap;class gY{copy(){return this.era?new gY(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new gY(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return gw(this,e)}subtract(e){return gw(this,gD(e))}set(e){return gS(gz(this,e),e)}cycle(e,n,t){switch(e){case"era":case"year":case"month":case"day":return gT(this,e,n,t);default:return gI(this,e,n,t)}}toDate(e,n){return gy(this,e,n)}toString(){return gL(this)}compare(e){let n=gt(this,e);if(0===n){var t;return t=gA(e),gr(this)-gr(t)}return n}constructor(...e){gV(this,gK,{writable:!0,value:void 0});let[n,t,r,o,a]=gW(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,gE(this)}}var gZ=new WeakMap;class gJ{copy(){return this.era?new gJ(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new gJ(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return gF(this,e)}subtract(e){return gF(this,gD(e))}set(e,n){let t,r;return 0===(r=gz(gS(t=gA(this),e),e)).compare(t)?this:g$(gb(g_(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=gA(e),i=g$(gz(a,{hour:n}),new m3),s=[g_(i,e.timeZone,"earlier"),g_(i,e.timeZone,"later")].filter(n=>gb(n,e.timeZone).day===i.day)[0],l=g$(gz(a,{hour:o}),new m3),c=[g_(l,e.timeZone,"earlier"),g_(l,e.timeZone,"later")].filter(n=>gb(n,e.timeZone).day===l.day).pop(),u=gd(e)-e.offset,p=Math.floor(u/36e5),d=u%36e5;return g$(gb(u=36e5*gN(p,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 gI(e,n,t,r);case"era":case"year":case"month":case"day":return g$(gb(g_(gT(gA(e),n,t,r),e.timeZone),e.timeZone),e.calendar);default:throw Error("Unsupported field "+n)}}(this,e,n,t)}toDate(){return new Date(gd(this)-this.offset)}toString(){var e;let n,t,r;return`${gL(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 gJ){var r,o;return e.timeZone===n?e:(r=e,o=n,g$(gb(gd(r)-r.offset,o),r.calendar))}return gb(g_(e,n,void 0),n)})(e,this.timeZone).toDate().getTime()}constructor(...e){gV(this,gZ,{writable:!0,value:void 0});let[n,t,r,o,a]=gW(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,gE(this)}}class gX extends m3{fromJulianDay(e){let n=super.fromJulianDay(e);return new gG(this,m0(n.era,n.year)- -543,n.month,n.day)}toJulianDay(e){return super.toJulianDay(gQ(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(gQ(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function gQ(e){let[n,t]=m1(e.year+-543);return new gG(n,t,e.month,e.day)}function g0(e,n,t,r){return e+365*n+Math.floor(n/4)+30*(t-1)+r-1}function g1(e,n){let t=Math.floor(4*(n-e)/1461),r=1+Math.floor((n-g0(e,t,1,1))/30),o=n+1-g0(e,t,r,1);return[t,r,o]}function g2(e){return Math.floor(e%4/3)}function g3(e,n){return n%13!=0?30:g2(e)+5}class g4{fromJulianDay(e){let[n,t,r]=g1(1723856,e),o="AM";return n<=0&&(o="AA",n+=5500),new gG(this,o,n,t,r)}toJulianDay(e){let n=e.year;return"AA"===e.era&&(n-=5500),g0(1723856,n,e.month,e.day)}getDaysInMonth(e){return g3(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+g2(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class g5 extends g4{fromJulianDay(e){let[n,t,r]=g1(1723856,e);return new gG(this,"AA",n+=5500,t,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class g6 extends g4{fromJulianDay(e){let[n,t,r]=g1(1824665,e),o="CE";return n<=0&&(o="BCE",n=1-n),new gG(this,o,n,t,r)}toJulianDay(e){let n=e.year;return"BCE"===e.era&&(n=1-n),g0(1824665,n,e.month,e.day)}getDaysInMonth(e){let n=e.year;return"BCE"===e.era&&(n=1-n),g3(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 g8=765433;function g7(e){return 7>mJ(7*e+1,19)}function g9(e){let n=Math.floor((235*e-234)/19),t=29*n+Math.floor((12084+13753*n)/25920);return 3>mJ(3*(t+1),7)&&(t+=1),t}function _e(e){let n,t;return g9(e)+(n=g9(e-1),t=g9(e),g9(e+1)-t==356?2:+(t-n==382))}function _n(e){return _e(e+1)-_e(e)}function _t(e,n){if(n>=6&&!g7(e)&&n++,4===n||7===n||9===n||11===n||13===n)return 29;let t=function(e){let n=_n(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*!!g7(e):30}class _r{fromJulianDay(e){let n=e-347997,t=Math.floor((25920*n/g8*19+234)/235)+1,r=_e(t),o=Math.floor(n-r);for(;o<1;)o=Math.floor(n-(r=_e(--t)));let a=1,i=0;for(;i<o;)i+=_t(t,a),a++;let s=o-(i-=_t(t,--a));return new gG(this,t,a,s)}toJulianDay(e){let n=_e(e.year);for(let t=1;t<e.month;t++)n+=_t(e.year,t);return n+e.day+347997}getDaysInMonth(e){return _t(e.year,e.month)}getMonthsInYear(e){return g7(e.year)?13:12}getDaysInYear(e){return _n(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,n){n.year!==e.year&&(g7(n.year)&&!g7(e.year)&&n.month>6?e.month--:!g7(n.year)&&g7(e.year)&&n.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}class _o extends m3{fromJulianDay(e){let n,t,r,o=super.fromJulianDay(e),a=o.year-78,i=e-mX(o.era,o.year,1,1);if(i<80?(a--,i+=(n=mQ(o.year-1)?31:30)+155+90+10):(n=mQ(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 gG(this,a,t,r)}toJulianDay(e){let n,t,[r,o]=m1(e.year+78);return(mQ(o)?(n=31,t=mX(r,o,3,21)):(n=30,t=mX(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&&mQ(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 _a(e,n,t,r){return r+Math.ceil(29.5*(t-1))+(n-1)*354+Math.floor((3+11*n)/30)+e-1}function _i(e,n,t){let r=Math.floor((30*(t-n)+10646)/10631),o=Math.min(12,Math.ceil((t-(29+_a(n,r,1,1)))/29.5)+1),a=t-_a(n,r,o,1)+1;return new gG(e,r,o,a)}function _s(e){return(14+11*e)%30<11}class _l{fromJulianDay(e){return _i(this,1948440,e)}toJulianDay(e){return _a(1948440,e.year,e.month,e.day)}getDaysInMonth(e){let n=29+e.month%2;return 12===e.month&&_s(e.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(e){return _s(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class _c extends _l{fromJulianDay(e){return _i(this,1948439,e)}toJulianDay(e){return _a(1948439,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}function _u(e){return 460322+l[e-1300]}function _p(e,n){return(s[e-1300]&1<<11-(n-1))==0?29:30}function _d(e,n){let t=_u(e);for(let r=1;r<n;r++)t+=_p(e,r);return t}function _f(e){return l[e+1-1300]-l[e-1300]}class _h extends _l{fromJulianDay(e){let n=e-1948440,t=_u(1300),r=_u(1600);if(n<t||n>r)return super.fromJulianDay(e);{let e=1299,t=1,r=1;for(;r>0;){r=n-_u(++e)+1;let o=_f(e);if(r===o){t=12;break}if(r<o){let n=_p(e,t);for(t=1;r>n;)r-=n,n=_p(e,++t);break}}return new gG(this,e,t,n-_d(e,t)+1)}}toJulianDay(e){return e.year<1300||e.year>1600?super.toJulianDay(e):1948440+_d(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<1300||e.year>1600?super.getDaysInMonth(e):_p(e.year,e.month)}getDaysInYear(e){return e.year<1300||e.year>1600?super.getDaysInYear(e):_f(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+=_p(n,t)}}}}let _m=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],_g=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],__=[1867,1911,1925,1988,2018],_y=["meiji","taisho","showa","heisei","reiwa"];function _b(e){let n=_m.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?_m.length-1:0===n?0:n-1}function _v(e){let n=__[_y.indexOf(e.era)];if(!n)throw Error("Unknown era: "+e.era);return new gG(e.year+n,e.month,e.day)}class _A extends m3{fromJulianDay(e){let n=super.fromJulianDay(e),t=_b(n);return new gG(this,_y[t],n.year-__[t],n.month,n.day)}toJulianDay(e){return super.toJulianDay(_v(e))}balanceDate(e){let n=_v(e),t=_b(n);_y[t]!==e.era&&(e.era=_y[t],e.year=n.year-__[t]),this.constrainDate(e)}constrainDate(e){let n=_y.indexOf(e.era),t=_g[n];if(null!=t){let[r,o,a]=t,i=r-__[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]=_m[n];e.month=Math.max(t,e.month),e.month===t&&(e.day=Math.max(r,e.day))}}getEras(){return _y}getYearsInEra(e){let n=_y.indexOf(e.era),t=_m[n],r=_m[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(_v(e))}getMinimumMonthInYear(e){let n=_$(e);return n?n[1]:1}getMinimumDayInMonth(e){let n=_$(e);return n&&e.month===n[1]?n[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function _$(e){if(1===e.year)return _m[_y.indexOf(e.era)]}let _w=[0,31,62,93,124,155,186,216,246,276,306,336];class _k{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-_w[o]+1;return new gG(this,t,o+1,a)}toJulianDay(e){let n=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return n+=_w[e.month-1],n+=e.day}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||8>mJ(25*e.year+11,33)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}function _x(e){return"minguo"===e.era?e.year+1911:1-e.year+1911}function _C(e){let n=e-1911;return n>0?["minguo",n]:["before_minguo",1-n]}class _E extends m3{fromJulianDay(e){let n=super.fromJulianDay(e),[t,r]=_C(m0(n.era,n.year));return new gG(this,t,r,n.month,n.day)}toJulianDay(e){return super.toJulianDay(_D(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[n,t]=_C(_x(e));e.era=n,e.year=t}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(_D(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function _D(e){let[n,t]=m1(_x(e));return new gG(n,t,e.month,e.day)}function _S(e){switch(e){case"buddhist":return new gX;case"ethiopic":return new g4;case"ethioaa":return new g5;case"coptic":return new g6;case"hebrew":return new _r;case"indian":return new _o;case"islamic-civil":return new _l;case"islamic-tbla":return new _c;case"islamic-umalqura":return new _h;case"japanese":return new _A;case"persian":return new _k;case"roc":return new _E;default:return new m3}}let _z=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),_B=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function _O(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 _z.has(n.script)}let n=e.split("-")[0];return _B.has(n)}let _M={prefix:String(Math.round(1e10*Math.random())),current:0},_P=f_.createContext(_M),_T=f_.createContext(!1);"undefined"!=typeof window&&window.document&&window.document.createElement;let _I=new WeakMap,_N="function"==typeof f_.useId?function(e){let n=f_.useId(),[t]=(0,f_.useState)(_L()),r=t?"react-aria":`react-aria${_M.prefix}`;return e||`${r}-${n}`}:function(e){let n=(0,f_.useContext)(_P),t=function(e=!1){let n=(0,f_.useContext)(_P),t=(0,f_.useRef)(null);if(null===t.current&&!e){var r,o;let e=null==(o=f_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||null==(r=o.ReactCurrentOwner)?void 0:r.current;if(e){let t=_I.get(e);null==t?_I.set(e,{id:n.current,state:e.memoizedState}):e.memoizedState!==t.state&&(n.current=t.id,_I.delete(e))}t.current=++n.current}return t.current}(!!e),r=`react-aria${n.prefix}`;return e||`${r}-${t}`};function _F(){return!1}function _j(){return!0}function _R(e){return()=>{}}function _L(){return"function"==typeof f_.useSyncExternalStore?f_.useSyncExternalStore(_R,_F,_j):(0,f_.useContext)(_T)}let _V=Symbol.for("react-aria.i18n.locale");function _W(){let e="undefined"!=typeof window&&window[_V]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:_O(e)?"rtl":"ltr"}}let _H=_W(),_G=new Set;function _U(){for(let e of(_H=_W(),_G))e(_H)}function _q(){let e=_L(),[n,t]=(0,f_.useState)(_H);return((0,f_.useEffect)(()=>(0===_G.size&&window.addEventListener("languagechange",_U),_G.add(t),()=>{_G.delete(t),0===_G.size&&window.removeEventListener("languagechange",_U)}),[]),e)?{locale:"en-US",direction:"ltr"}:n}let _K=f_.createContext(null);function _Y(e){let{locale:n,children:t}=e,r=_q(),o=f_.useMemo(()=>n?{locale:n,direction:_O(n)?"rtl":"ltr"}:r,[r,n]);return f_.createElement(_K.Provider,{value:o},t)}function _Z(){let e=_q();return(0,f_.useContext)(_K)||e}function _J(e){let n=(0,f_.useRef)(null),t=(0,f_.useRef)(void 0),r=(0,f_.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,f_.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 _X(e,n){if("function"==typeof e)return e(n);null!=e&&(e.current=n)}function _Q(...e){return(...n)=>{for(let t of e)"function"==typeof t&&t(...n)}}let _0="undefined"!=typeof document?f_.useLayoutEffect:()=>{};function _1(e){let n=(0,f_.useRef)(null);return _0(()=>{n.current=e},[e]),(0,f_.useCallback)((...e)=>{let t=n.current;return null==t?void 0:t(...e)},[])}let _2=!!("undefined"!=typeof window&&window.document&&window.document.createElement),_3=new Map;function _4(e){let[n,t]=(0,f_.useState)(e),r=(0,f_.useRef)(null),o=_N(n),a=(0,f_.useRef)(null);if(c&&c.register(a,o),_2){let e=_3.get(o);e&&!e.includes(r)?e.push(r):_3.set(o,[r])}return _0(()=>()=>{c&&c.unregister(a),_3.delete(o)},[o]),(0,f_.useEffect)(()=>{let e=r.current;return e&&t(e),()=>{e&&(r.current=null)}}),o}function _5(e=[]){let n=_4(),[t,r]=function(e){let[n,t]=(0,f_.useState)(e),r=(0,f_.useRef)(null),o=_1(()=>{if(!r.current)return;let e=r.current.next();if(e.done){r.current=null;return}n===e.value?o():t(e.value)});_0(()=>{r.current&&o()});let a=_1(e=>{r.current=e(n),o()});return[n,a]}(n),o=(0,f_.useCallback)(()=>{r(function*(){yield n,yield document.getElementById(n)?n:void 0})},[n,r]);return _0(o,[n,o,...e]),t}"undefined"!=typeof FinalizationRegistry&&(c=new FinalizationRegistry(e=>{_3.delete(e)}));let _6=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 _8(...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]=_Q(t,o):("className"===e||"UNSAFE_className"===e)&&"string"==typeof t&&"string"==typeof o?n[e]=_6(t,o):"id"===e&&t&&o?n.id=function(e,n){if(e===n)return e;let t=_3.get(e);if(t)return t.forEach(e=>e.current=n),n;let r=_3.get(n);return r?(r.forEach(n=>n.current=e),e):n}(t,o):n[e]=void 0!==o?o:t}}return n}let _7=Symbol("default");function _9({values:e,children:n}){for(let[t,r]of e)n=f_.createElement(t.Provider,{value:r},n);return n}function ye(e){let{className:n,style:t,children:r,defaultClassName:o,defaultChildren:a,defaultStyle:i,values:s}=e;return(0,f_.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 yn(e,n){let t=(0,f_.useContext)(e);if(null===n)return null;if(t&&"object"==typeof t&&"slots"in t&&t.slots){let e=n||_7;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 yt(e,n,t){let{ref:r,...o}=yn(t,e.slot)||{},a=_J((0,f_.useMemo)(()=>(function(...e){return 1===e.length&&e[0]?e[0]:n=>{let t=!1,r=e.map(e=>{let r=_X(e,n);return t||(t="function"==typeof r),r});if(t)return()=>{r.forEach((n,t)=>{"function"==typeof n?n():_X(e[t],null)})}}})(n,r),[n,r])),i=_8(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 yr(e=!0){let[n,t]=(0,f_.useState)(e),r=(0,f_.useRef)(!1),o=(0,f_.useCallback)(e=>{r.current=!0,t(!!e)},[]);return _0(()=>{r.current||t(!1)},[]),[o,n]}function yo(e){let n=/^(data-.*)$/,t={};for(let r in e)n.test(r)||(t[r]=e[r]);return t}let ya=(0,f_.createContext)(null),yi=null;function ys(e,n="assertive",t=7e3){yi?yi.announce(e,n,t):(yi=new yl,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"undefined"!=typeof jest)?yi.announce(e,n,t):setTimeout(()=>{(null==yi?void 0:yi.isAttached())&&(null==yi||yi.announce(e,n,t))},100))}class yl{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 yc=new Set(["id"]),yu=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),yp=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),yd=/^(data-.*)$/;function yf(e,n={}){let{labelable:t,isLink:r,propNames:o}=n,a={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(yc.has(n)||t&&yu.has(n)||r&&yp.has(n)||(null==o?void 0:o.has(n))||yd.test(n))&&(a[n]=e[n]);return a}let yh=["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"])'],ym=yh.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";yh.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let yg=yh.join(':not([hidden]):not([tabindex="-1"]),');function y_(e){return e.matches(ym)}function yy(e){return e.matches(yg)}let yb=e=>{var n;return null!=(n=null==e?void 0:e.ownerDocument)?n:document},yv=e=>e&&"window"in e&&e.window===e?e:yb(e).defaultView||window;function yA(e){if(function(){if(null==y$){y$=!1;try{document.createElement("div").focus({get preventScroll(){return y$=!0,!0}})}catch{}}return y$}())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 y$=null;function yw(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function yk(e,n){Object.defineProperty(e,"target",{value:n}),Object.defineProperty(e,"currentTarget",{value:n})}function yx(e){let n=(0,f_.useRef)({isFocused:!1,observer:null});_0(()=>{let e=n.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let t=_1(n=>{null==e||e(n)});return(0,f_.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(yw(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 yC=!1;function yE(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 yD(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 yS(e){let n=null;return()=>(null==n&&(n=e()),n)}let yz=yS(function(){return yD(/^Mac/i)}),yB=yS(function(){return yD(/^iPhone/i)}),yO=yS(function(){return yD(/^iPad/i)||yz()&&navigator.maxTouchPoints>1}),yM=yS(function(){return yB()||yO()});yS(function(){return yz()||yM()});let yP=yS(function(){return yE(/AppleWebKit/i)&&!yT()}),yT=yS(function(){return yE(/Chrome/i)}),yI=yS(function(){return yE(/Android/i)}),yN=yS(function(){return yE(/Firefox/i)}),yF=new Map,yj=new Set;function yR(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let n=t=>{if(!e(t)||!t.target)return;let r=yF.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",n),yF.delete(t.target)),0===yF.size)){for(let e of yj)e();yj.clear()}};document.body.addEventListener("transitionrun",t=>{if(!e(t)||!t.target)return;let r=yF.get(t.target);r||(r=new Set,yF.set(t.target,r),t.target.addEventListener("transitioncancel",n,{once:!0})),r.add(t.propertyName)}),document.body.addEventListener("transitionend",n)}function yL(e){requestAnimationFrame(()=>{for(let[e]of yF)"isConnected"in e&&!e.isConnected&&yF.delete(e);0===yF.size?e():yj.add(e)})}"undefined"!=typeof document&&("loading"!==document.readyState?yR():document.addEventListener("DOMContentLoaded",yR));let yV="default",yW="",yH=new WeakMap;function yG(e){if(yM())"disabled"===yV&&(yV="restoring",setTimeout(()=>{yL(()=>{if("restoring"===yV){let n=yb(e);"none"===n.documentElement.style.webkitUserSelect&&(n.documentElement.style.webkitUserSelect=yW||""),yW="",yV="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&yH.has(e)){let n=yH.get(e),t="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[t]&&(e.style[t]=n),""===e.getAttribute("style")&&e.removeAttribute("style"),yH.delete(e)}}let yU=f_.createContext({register:()=>{}});function yq(e,n,t){if(!n.has(e))throw TypeError("attempted to "+t+" private field on non-instance");return n.get(e)}function yK(e,n,t){var r=yq(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 yY(e,n){_0(()=>{if(e&&e.ref&&n)return e.ref.current=n.current,()=>{e.ref&&(e.ref.current=null)}})}function yZ(){let e=(0,f_.useRef)(new Map),n=(0,f_.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,f_.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,f_.useCallback)(()=>{e.current.forEach((e,n)=>{t(e.eventTarget,e.type,n,e.options)})},[t]);return(0,f_.useEffect)(()=>r,[r]),{addGlobalListener:n,removeGlobalListener:t,removeAllGlobalListeners:r}}yU.displayName="PressResponderContext";function yJ(e,n){return!!n&&!!e&&e.contains(n)}function yX(e){return e.target}function yQ(e,n,t=!0){var r,o;let{metaKey:a,ctrlKey:i,altKey:s,shiftKey:l}=n;yN()&&(null==(o=window.event)||null==(r=o.type)?void 0:r.startsWith("key"))&&"_blank"===e.target&&(yz()?a=!0:i=!0);let c=yP()&&yz()&&!yO()&&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});yQ.isOpening=t,yA(e),e.dispatchEvent(c),yQ.isOpening=!1}function y0(e){return 0===e.mozInputSource&&!!e.isTrusted||(yI()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}yQ.isOpening=!1;var y1=t(28316),y2=new WeakMap;class y3{continuePropagation(){yK(this,y2,!1)}get shouldStopPropagation(){var e;return e=yq(this,y2,"get"),e.get?e.get.call(this):e.value}constructor(e,n,t,r){var o;gV(this,y2,{writable:!0,value:void 0}),yK(this,y2,!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,u=null;null!=t.clientX&&null!=t.clientY&&(c=t.clientX,u=t.clientY),i&&(null!=c&&null!=u?(s=c-i.left,l=u-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 y4=Symbol("linkClicked"),y5="react-aria-pressable-style",y6="data-react-aria-pressable";function y8(e){let{onPress:n,onPressChange:t,onPressStart:r,onPressEnd:o,onPressUp:a,onClick:i,isDisabled:s,isPressed:l,preventFocusOnPress:c,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:p,ref:d,...f}=function(e){let n=(0,f_.useContext)(yU);if(n){let{register:t,...r}=n;e=_8(r,e),t()}return yY(n,e.ref),e}(e),[h,m]=(0,f_.useState)(!1),g=(0,f_.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:b}=yZ(),v=_1((e,n)=>{let o=g.current;if(s||o.didFirePressStart)return!1;let a=!0;if(o.isTriggeringEvent=!0,r){let t=new y3("pressstart",n,e);r(t),a=t.shouldStopPropagation}return t&&t(!0),o.isTriggeringEvent=!1,o.didFirePressStart=!0,m(!0),a}),A=_1((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 y3("pressend",r,e);o(n),l=n.shouldStopPropagation}if(t&&t(!1),m(!1),n&&a&&!s){let t=new y3("press",r,e);n(t),l&&(l=t.shouldStopPropagation)}return i.isTriggeringEvent=!1,l}),$=_1((e,n)=>{let t=g.current;if(s)return!1;if(a){t.isTriggeringEvent=!0;let r=new y3("pressup",n,e);return a(r),t.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),w=_1(e=>{let n=g.current;if(n.isPressed&&n.target){for(let t of(n.didFirePressStart&&null!=n.pointerType&&A(be(n.target,e),n.pointerType,!1),n.isPressed=!1,n.isOverTarget=!1,n.activePointerId=null,n.pointerType=null,b(),p||yG(n.target),n.disposables))t();n.disposables=[]}}),k=_1(e=>{u&&w(e)}),x=_1(e=>{null==i||i(e)}),C=_1((e,n)=>{if(i){let t=new MouseEvent("click",e);yk(t,n),i(yw(t))}}),E=(0,f_.useMemo)(()=>{let e=g.current,n={onKeyDown(n){if(y9(n.nativeEvent,n.currentTarget)&&yJ(n.currentTarget,yX(n.nativeEvent))){var r;bn(yX(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(yb(n.currentTarget),"keyup",_Q(n=>{y9(n,r)&&!n.repeat&&yJ(r,yX(n))&&e.target&&$(be(e.target,n),"keyboard")},t),!0)}o&&n.stopPropagation(),n.metaKey&&yz()&&(null==(r=e.metaKeyEvents)||r.set(n.key,n.nativeEvent))}else"Meta"===n.key&&(e.metaKeyEvents=new Map)},onClick(n){if((!n||yJ(n.currentTarget,yX(n.nativeEvent)))&&n&&0===n.button&&!e.isTriggeringEvent&&!yQ.isOpening){let t=!0;if(s&&n.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||y0(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=$(be(n.currentTarget,n),r),a=A(be(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&&y9(n,e.target)){bn(yX(n),n.key)&&n.preventDefault();let t=yX(n),o=yJ(e.target,yX(n));A(be(e.target,n),"keyboard",o),o&&C(n,e.target),b(),"Enter"!==n.key&&y7(e.target)&&yJ(e.target,t)&&!n[y4]&&(n[y4]=!0,yQ(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||!yJ(n.currentTarget,yX(n.nativeEvent)))return;if(o=n.nativeEvent,!yI()&&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,p||function(e){if(yM()){if("default"===yV){let n=yb(e);yW=n.documentElement.style.webkitUserSelect,n.documentElement.style.webkitUserSelect="none"}yV="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let n="userSelect"in e.style?"userSelect":"webkitUserSelect";yH.set(e,e.style[n]),e.style[n]="none"}}(e.target),a=v(n,e.pointerType);let o=yX(n.nativeEvent);"releasePointerCapture"in o&&o.releasePointerCapture(n.pointerId),y(yb(n.currentTarget),"pointerup",t,!1),y(yb(n.currentTarget),"pointercancel",r,!1)}a&&n.stopPropagation()},n.onMouseDown=n=>{if(yJ(n.currentTarget,yX(n.nativeEvent))&&0===n.button){if(c){let t=function(e){for(;e&&!y_(e);)e=e.parentElement;let n=yv(e),t=n.document.activeElement;if(!t||t===e)return;yC=!0;let r=!1,o=e=>{(e.target===t||r)&&e.stopImmediatePropagation()},a=n=>{(n.target===t||r)&&(n.stopImmediatePropagation(),e||r||(r=!0,yA(t),l()))},i=n=>{(n.target===e||r)&&n.stopImmediatePropagation()},s=n=>{(n.target===e||r)&&(n.stopImmediatePropagation(),r||(r=!0,yA(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),yC=!1,r=!1},c=requestAnimationFrame(l);return l}(n.target);t&&e.disposables.push(t)}n.stopPropagation()}},n.onPointerUp=n=>{yJ(n.currentTarget,yX(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(be(e.target,n),e.pointerType))},n.onPointerLeave=n=>{n.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,A(be(e.target,n),e.pointerType,!1),k(n))};let t=n=>{if(n.pointerId===e.activePointerId&&e.isPressed&&0===n.button&&e.target){if(yJ(e.target,yX(n))&&null!=e.pointerType){let t=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(t?w(n):(yA(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=>{yJ(e.currentTarget,yX(e.nativeEvent))&&w(e)}}return n},[y,s,c,b,p,w,k,A,v,$,x,C]);return(0,f_.useEffect)(()=>{if(!d)return;let e=yb(d.current);if(!e||!e.head||e.getElementById(y5))return;let n=e.createElement("style");n.id=y5,n.textContent=`
|
|
32
|
+
To fix this, ensure that you define the "component" field inside the page definition.`,e)}(r,n)}}function ma(e=window.localStorage){try{return e.getItem("test"),!0}catch{return!1}}let mi=ma();function ms(e,n){if(mi){if("string"==typeof n)if(n.startsWith("http"))return mu(e,n);else try{let t=JSON.parse(n);if(mp(t))return mu(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 mu(e,n.toString());else if(mp(n))return mu(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 ml(e){mi&&localStorage.removeItem(h6+e)}function mc(){if(mi)for(let e of Object.keys(localStorage))e.startsWith(h6)&&localStorage.removeItem(e)}function mu(e,n){localStorage.setItem(h6+e,JSON.stringify(n))}function mp(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 md(e){return!!e&&"object"==typeof e&&Object.entries(e).every(([e,n])=>"string"==typeof e&&mp(n))}var mf={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 mh(){document.body.classList.toggle("omrs-breakpoint-lt-tablet",window.innerWidth<mf.TABLET_MIN),document.body.classList.toggle("omrs-breakpoint-gt-phone",window.innerWidth>mf.PHONE_MAX),document.body.classList.toggle("omrs-breakpoint-gt-tablet",window.innerWidth>mf.TABLET_MAX),document.body.classList.toggle("omrs-breakpoint-lt-desktop",window.innerWidth<mf.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-small-desktop",window.innerWidth<mf.SMALL_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-lt-large-desktop",window.innerWidth<mf.LARGE_DESKTOP_MIN),document.body.classList.toggle("omrs-breakpoint-gt-small-desktop",window.innerWidth>mf.SMALL_DESKTOP_MAX)}var mm=!1;function mg(){mm||(window.addEventListener("resize",mh),mh(),mm=!0)}var m_=t(16709),my=t.n(m_),mb=t(46062),mv=t.n(mb),mA=t(44036),m$=t.n(mA),mw=t(96793),mk=t.n(mw),mx=t(17892),mC=t.n(mx),mE=t(11173),mD=t.n(mE),mS=t(42464),mz=t.n(mS),mB=t(6370),mO={};mO.styleTagTransform=mz(),mO.setAttributes=mC(),mO.insert=mk().bind(null,"head"),mO.domAPI=m$(),mO.insertStyleElement=mD(),mv()(mB.Z,mO);let mM=mB.Z&&mB.Z.locals?mB.Z.locals:void 0;function mP(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function mT(e){var n,t=e.title,r=e.children,o="tablet"===hF();return fy().createElement("div",{className:my()((mP(n={},mM.tabletHeader,o),mP(n,mM.desktopHeader,!o),n))},fy().createElement("h4",null,t),r)}var mI=["red","magenta","purple","blue","teal","cyan","gray","green","warm-gray","cool-gray","high-contrast","outline"],mN={primaryColor:{_type:nx.String,_description:"The color for displaying primary diagnoses tags",_default:"red",_validators:[th.oneOf(mI)]},secondaryColor:{_type:nx.String,_description:"The color for displaying secondary diagnoses tags",_default:"blue",_validators:[th.oneOf(mI)]}},mF={"Brand color #1":{_default:"#005d5d",_type:nx.String},"Brand color #2":{_default:"#004144",_type:nx.String},"Brand color #3":{_default:"#007d79",_type:nx.String},excludePatientIdentifierCodeTypes:{uuids:{_type:nx.Array,_description:"List of UUIDs of patient identifier types to exclude from rendering in the patient banner",_default:[],_elements:{_type:nx.UUID}}},implementationName:{_type:nx.String,_description:"A name of the place (or authority) where all possible locations a user can choose are located.",_default:"Clinic"},patientPhotoConceptUuid:{_type:nx.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:nx.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:[th.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:nx.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:nx.String}},diagnosisTags:mN},mj=t(72530),mR={};mR.styleTagTransform=mz(),mR.setAttributes=mC(),mR.insert=mk().bind(null,"head"),mR.domAPI=m$(),mR.insertStyleElement=mD(),mv()(mj.Z,mR);let mL=mj.Z&&mj.Z.locals?mj.Z.locals:void 0;function mV(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 mW(e){var n,t,r,o=e.menuTitle,a=e.children,i=(n=fy().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 mV(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 mV(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=hW(function(){return l(!1)},s),u="tablet"===hF(),p=(0,f_.useCallback)(function(){return l(function(e){return!e})},[]);return fy().createElement("div",{"data-overflow-menu":!0,className:my()("cds--overflow-menu",mL.container),ref:c},fy().createElement("button",{className:my()("cds--btn","cds--btn--ghost","cds--overflow-menu__trigger",{"cds--overflow-menu--open":s},mL.overflowMenuButton),"aria-haspopup":"true","aria-expanded":s,id:"custom-actions-overflow-menu-trigger","aria-controls":"custom-actions-overflow-menu",onClick:p},o),fy().createElement("div",{className:my()("cds--overflow-menu-options","cds--overflow-menu--flip",mL.menu,(t={},r=mL.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"},fy().createElement("ul",{className:my()("cds--overflow-menu-options__content",{"cds--overflow-menu-options--lg":u})},a),fy().createElement("span",null)))}var mH=t(62836),mG=t(20708),mU=t(23148),mq={};mq.styleTagTransform=mz(),mq.setAttributes=mC(),mq.insert=mk().bind(null,"head"),mq.domAPI=m$(),mq.insertStyleElement=mD(),mv()(mU.Z,mq);let mK=mU.Z&&mU.Z.locals?mU.Z.locals:void 0;var mY=function(e){var n=e.path,t=e.title,r=e.basePath,o=e.icon,a=(0,fQ.useTranslation)().t,i=(0,mH.useLocation)(),s=(0,f_.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 fy().createElement("div",{key:n},fy().createElement(mG.ConfigurableLink,{className:my()("cds--side-nav__link",{"active-left-nav-link":s}),to:"".concat(r,"/").concat(encodeURIComponent(n))},fy().createElement("span",{className:mK.menu},fy().createElement(mG.MaybeIcon,{icon:o,className:mK.icon,size:16}),fy().createElement("span",null,a(t)))))};function mZ(e){return function(n){var t=n.basePath;return fy().createElement(mH.BrowserRouter,null,fy().createElement(mY,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 mJ(e,n){return e-n*Math.floor(e/n)}function mX(e,n,t,r){let o=(n=m0(e,n))-1,a=-2;return t<=2?a=0:mQ(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 mQ(e){return e%4==0&&(e%100!=0||e%400==0)}function m0(e,n){return"BC"===e?1-n:n}function m1(e){let n="AD";return e<=0&&(n="BC",e=1-e),[n,e]}let m2={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 m3{fromJulianDay(e){let n=e-1721426,t=Math.floor(n/146097),r=mJ(n,146097),o=Math.floor(r/36524),a=mJ(r,36524),i=Math.floor(a/1461),s=Math.floor(mJ(a,1461)/365),[l,c]=m1(400*t+100*o+4*i+s+ +(4!==o&&4!==s)),u=e-mX(l,c,1,1),p=2;e<mX(l,c,3,1)?p=0:mQ(c)&&(p=1);let d=Math.floor(((u+p)*12+373)/367),f=e-mX(l,c,d,1)+1;return new gG(l,c,d,f)}toJulianDay(e){return mX(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return m2[mQ(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return mQ(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 m4={"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 m5(e,n){return n=g$(n,e.calendar),e.era===n.era&&e.year===n.year&&e.month===n.month&&e.day===n.day}function m6(e,n){return m8(e.calendar,n.calendar)&&m5(e,n)}function m8(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 m7={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function m9(e,n,t){let r,o=Math.ceil(e.calendar.toJulianDay(e)+1-(t?m7[t]:(r=function(e){if(Intl.Locale){let n=gc.get(e);return!n&&(n=new Intl.Locale(e).maximize().region)&&gc.set(e,n),n}let n=e.split("-")[1];return"u"===n?void 0:n}(n))&&m4[r]||0))%7;return o<0&&(o+=7),o}function ge(e){return gb(Date.now(),e)}function gn(e){return gv(ge(e))}function gt(e,n){return e.calendar.toJulianDay(e)-n.calendar.toJulianDay(n)}function gr(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let go=null;function ga(){return null==go&&(go=new Intl.DateTimeFormat().resolvedOptions().timeZone),go}function gi(e){return e.subtract({days:e.day-1})}function gs(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function gl(e,n,t){let r=m9(e,n,t);return e.subtract({days:r})}let gc=new Map;function gu(e,n){return e&&n?0>=e.compare(n)?e:n:e||n}function gp(e,n){return e&&n?e.compare(n)>=0?e:n:e||n}function gd(e){return gf(m0((e=g$(e,new m3)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function gf(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 gh(e,n){if("UTC"===n)return 0;if(e>0&&n===ga())return -6e4*new Date(e).getTimezoneOffset();let{year:t,month:r,day:o,hour:a,minute:i,second:s}=gg(e,n);return gf(t,r,o,a,i,s,0)-1e3*Math.floor(e/1e3)}let gm=new Map;function gg(e,n){let t=gm.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"}),gm.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 g_(e,n,t="compatible"){var r,o,a;let i=gA(e);if("UTC"===n)return gd(i);if(n===ga()&&"compatible"===t){i=g$(i,new m3);let e=new Date,n=m0(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=gd(i),l=gh(s-864e5,n),c=gh(s+864e5,n),u=(r=i,((o=s-l)==(a=s-c)?[o]:[o,a]).filter(e=>{var t;let o;return t=r,o=gg(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===u.length)return u[0];if(u.length>1)switch(t){case"compatible":case"earlier":return u[0];case"later":return u[u.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 gy(e,n,t="compatible"){return new Date(g_(e,n,t))}function gb(e,n){let t=gh(e,n),r=new Date(e+t),o=r.getUTCFullYear();return new gJ(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 gv(e){return new gG(e.calendar,e.era,e.year,e.month,e.day)}function gA(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 gY(e.calendar,e.era,e.year,e.month,e.day,t,r,o,a)}function g$(e,n){if(m8(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,gE(r),r}function gw(e,n){let t=e.copy(),r="hour"in t?gM(t,n):0;gk(t,n.years||0),t.calendar.balanceYearMonth&&t.calendar.balanceYearMonth(t,e),t.month+=n.months||0,gx(t),gC(t),t.day+=7*(n.weeks||0),t.day+=n.days||0,t.day+=r,function(e){for(;e.day<1;)e.month--,gx(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,gx(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 gk(e,n){var t,r;(null==(t=(r=e.calendar).isInverseEra)?void 0:t.call(r,e))&&(n=-n),e.year+=n}function gx(e){for(;e.month<1;)gk(e,-1),e.month+=e.calendar.getMonthsInYear(e);let n=0;for(;e.month>(n=e.calendar.getMonthsInYear(e));)e.month-=n,gk(e,1)}function gC(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 gE(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),gC(e)}function gD(e){let n={};for(let t in e)"number"==typeof e[t]&&(n[t]=-e[t]);return n}function gS(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),gE(t),t}function gz(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),gB(t),t}function gB(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 gO(e,n){let t=e%n;return t<0&&(t+=n),t}function gM(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=gO(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=gO(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=gO(e.minute,60),t=Math.floor(e.hour/24),e.hour=gO(e.hour,24),t}function gP(e,n){let t=e.copy();return gM(t,n),t}function gT(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=gN(a,t,0,n.length-1,null==r?void 0:r.round),o.era=n[a],gE(o);break}case"year":var a,i;(null==(a=(i=o.calendar).isInverseEra)?void 0:a.call(i,o))&&(t=-t),o.year=gN(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=gN(e.month,t,1,e.calendar.getMonthsInYear(e),null==r?void 0:r.round);break;case"day":o.day=gN(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),gE(o),o}function gI(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=gN(n,t,a,i,null==r?void 0:r.round);break}case"minute":o.minute=gN(e.minute,t,0,59,null==r?void 0:r.round);break;case"second":o.second=gN(e.second,t,0,59,null==r?void 0:r.round);break;case"millisecond":o.millisecond=gN(e.millisecond,t,0,999,null==r?void 0:r.round);break;default:throw Error("Unsupported field "+n)}return o}function gN(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 gF(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?g_(gw(gA(e),{years:n.years,months:n.months,weeks:n.weeks,days:n.days}),e.timeZone):gd(e)-e.offset)+(n.milliseconds||0),t+=1e3*(n.seconds||0),t+=6e4*(n.minutes||0),g$(gb(t+=36e5*(n.hours||0),e.timeZone),e.calendar)}function gj(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 gR(e){let n,t=g$(e,new m3);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 gL(e){return`${gR(e)}T${gj(e)}`}function gV(e,n,t){if(n.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");n.set(e,t)}function gW(e){let n,t="object"==typeof e[0]?e.shift():new m3;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 gH=new WeakMap;class gG{copy(){return this.era?new gG(this.calendar,this.era,this.year,this.month,this.day):new gG(this.calendar,this.year,this.month,this.day)}add(e){return gw(this,e)}subtract(e){return gw(this,gD(e))}set(e){return gS(this,e)}cycle(e,n,t){return gT(this,e,n,t)}toDate(e){return gy(this,e)}toString(){return gR(this)}compare(e){return gt(this,e)}constructor(...e){gV(this,gH,{writable:!0,value:void 0});let[n,t,r,o,a]=gW(e);this.calendar=n,this.era=t,this.year=r,this.month=o,this.day=a,gE(this)}}var gU=new WeakMap;class gq{copy(){return new gq(this.hour,this.minute,this.second,this.millisecond)}add(e){return gP(this,e)}subtract(e){return gP(this,gD(e))}set(e){return gz(this,e)}cycle(e,n,t){return gI(this,e,n,t)}toString(){return gj(this)}compare(e){return gr(this)-gr(e)}constructor(e=0,n=0,t=0,r=0){gV(this,gU,{writable:!0,value:void 0}),this.hour=e,this.minute=n,this.second=t,this.millisecond=r,gB(this)}}var gK=new WeakMap;class gY{copy(){return this.era?new gY(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new gY(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return gw(this,e)}subtract(e){return gw(this,gD(e))}set(e){return gS(gz(this,e),e)}cycle(e,n,t){switch(e){case"era":case"year":case"month":case"day":return gT(this,e,n,t);default:return gI(this,e,n,t)}}toDate(e,n){return gy(this,e,n)}toString(){return gL(this)}compare(e){let n=gt(this,e);if(0===n){var t;return t=gA(e),gr(this)-gr(t)}return n}constructor(...e){gV(this,gK,{writable:!0,value:void 0});let[n,t,r,o,a]=gW(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,gE(this)}}var gZ=new WeakMap;class gJ{copy(){return this.era?new gJ(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new gJ(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return gF(this,e)}subtract(e){return gF(this,gD(e))}set(e,n){let t,r;return 0===(r=gz(gS(t=gA(this),e),e)).compare(t)?this:g$(gb(g_(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=gA(e),i=g$(gz(a,{hour:n}),new m3),s=[g_(i,e.timeZone,"earlier"),g_(i,e.timeZone,"later")].filter(n=>gb(n,e.timeZone).day===i.day)[0],l=g$(gz(a,{hour:o}),new m3),c=[g_(l,e.timeZone,"earlier"),g_(l,e.timeZone,"later")].filter(n=>gb(n,e.timeZone).day===l.day).pop(),u=gd(e)-e.offset,p=Math.floor(u/36e5),d=u%36e5;return g$(gb(u=36e5*gN(p,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 gI(e,n,t,r);case"era":case"year":case"month":case"day":return g$(gb(g_(gT(gA(e),n,t,r),e.timeZone),e.timeZone),e.calendar);default:throw Error("Unsupported field "+n)}}(this,e,n,t)}toDate(){return new Date(gd(this)-this.offset)}toString(){var e;let n,t,r;return`${gL(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 gJ){var r,o;return e.timeZone===n?e:(r=e,o=n,g$(gb(gd(r)-r.offset,o),r.calendar))}return gb(g_(e,n,void 0),n)})(e,this.timeZone).toDate().getTime()}constructor(...e){gV(this,gZ,{writable:!0,value:void 0});let[n,t,r,o,a]=gW(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,gE(this)}}class gX extends m3{fromJulianDay(e){let n=super.fromJulianDay(e);return new gG(this,m0(n.era,n.year)- -543,n.month,n.day)}toJulianDay(e){return super.toJulianDay(gQ(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(gQ(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function gQ(e){let[n,t]=m1(e.year+-543);return new gG(n,t,e.month,e.day)}function g0(e,n,t,r){return e+365*n+Math.floor(n/4)+30*(t-1)+r-1}function g1(e,n){let t=Math.floor(4*(n-e)/1461),r=1+Math.floor((n-g0(e,t,1,1))/30),o=n+1-g0(e,t,r,1);return[t,r,o]}function g2(e){return Math.floor(e%4/3)}function g3(e,n){return n%13!=0?30:g2(e)+5}class g4{fromJulianDay(e){let[n,t,r]=g1(1723856,e),o="AM";return n<=0&&(o="AA",n+=5500),new gG(this,o,n,t,r)}toJulianDay(e){let n=e.year;return"AA"===e.era&&(n-=5500),g0(1723856,n,e.month,e.day)}getDaysInMonth(e){return g3(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+g2(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class g5 extends g4{fromJulianDay(e){let[n,t,r]=g1(1723856,e);return new gG(this,"AA",n+=5500,t,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class g6 extends g4{fromJulianDay(e){let[n,t,r]=g1(1824665,e),o="CE";return n<=0&&(o="BCE",n=1-n),new gG(this,o,n,t,r)}toJulianDay(e){let n=e.year;return"BCE"===e.era&&(n=1-n),g0(1824665,n,e.month,e.day)}getDaysInMonth(e){let n=e.year;return"BCE"===e.era&&(n=1-n),g3(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 g8=765433;function g7(e){return 7>mJ(7*e+1,19)}function g9(e){let n=Math.floor((235*e-234)/19),t=29*n+Math.floor((12084+13753*n)/25920);return 3>mJ(3*(t+1),7)&&(t+=1),t}function _e(e){let n,t;return g9(e)+(n=g9(e-1),t=g9(e),g9(e+1)-t==356?2:+(t-n==382))}function _n(e){return _e(e+1)-_e(e)}function _t(e,n){if(n>=6&&!g7(e)&&n++,4===n||7===n||9===n||11===n||13===n)return 29;let t=function(e){let n=_n(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*!!g7(e):30}class _r{fromJulianDay(e){let n=e-347997,t=Math.floor((25920*n/g8*19+234)/235)+1,r=_e(t),o=Math.floor(n-r);for(;o<1;)o=Math.floor(n-(r=_e(--t)));let a=1,i=0;for(;i<o;)i+=_t(t,a),a++;let s=o-(i-=_t(t,--a));return new gG(this,t,a,s)}toJulianDay(e){let n=_e(e.year);for(let t=1;t<e.month;t++)n+=_t(e.year,t);return n+e.day+347997}getDaysInMonth(e){return _t(e.year,e.month)}getMonthsInYear(e){return g7(e.year)?13:12}getDaysInYear(e){return _n(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,n){n.year!==e.year&&(g7(n.year)&&!g7(e.year)&&n.month>6?e.month--:!g7(n.year)&&g7(e.year)&&n.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}class _o extends m3{fromJulianDay(e){let n,t,r,o=super.fromJulianDay(e),a=o.year-78,i=e-mX(o.era,o.year,1,1);if(i<80?(a--,i+=(n=mQ(o.year-1)?31:30)+155+90+10):(n=mQ(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 gG(this,a,t,r)}toJulianDay(e){let n,t,[r,o]=m1(e.year+78);return(mQ(o)?(n=31,t=mX(r,o,3,21)):(n=30,t=mX(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&&mQ(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 _a(e,n,t,r){return r+Math.ceil(29.5*(t-1))+(n-1)*354+Math.floor((3+11*n)/30)+e-1}function _i(e,n,t){let r=Math.floor((30*(t-n)+10646)/10631),o=Math.min(12,Math.ceil((t-(29+_a(n,r,1,1)))/29.5)+1),a=t-_a(n,r,o,1)+1;return new gG(e,r,o,a)}function _s(e){return(14+11*e)%30<11}class _l{fromJulianDay(e){return _i(this,1948440,e)}toJulianDay(e){return _a(1948440,e.year,e.month,e.day)}getDaysInMonth(e){let n=29+e.month%2;return 12===e.month&&_s(e.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(e){return _s(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class _c extends _l{fromJulianDay(e){return _i(this,1948439,e)}toJulianDay(e){return _a(1948439,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}function _u(e){return 460322+l[e-1300]}function _p(e,n){return(s[e-1300]&1<<11-(n-1))==0?29:30}function _d(e,n){let t=_u(e);for(let r=1;r<n;r++)t+=_p(e,r);return t}function _f(e){return l[e+1-1300]-l[e-1300]}class _h extends _l{fromJulianDay(e){let n=e-1948440,t=_u(1300),r=_u(1600);if(n<t||n>r)return super.fromJulianDay(e);{let e=1299,t=1,r=1;for(;r>0;){r=n-_u(++e)+1;let o=_f(e);if(r===o){t=12;break}if(r<o){let n=_p(e,t);for(t=1;r>n;)r-=n,n=_p(e,++t);break}}return new gG(this,e,t,n-_d(e,t)+1)}}toJulianDay(e){return e.year<1300||e.year>1600?super.toJulianDay(e):1948440+_d(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<1300||e.year>1600?super.getDaysInMonth(e):_p(e.year,e.month)}getDaysInYear(e){return e.year<1300||e.year>1600?super.getDaysInYear(e):_f(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+=_p(n,t)}}}}let _m=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],_g=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],__=[1867,1911,1925,1988,2018],_y=["meiji","taisho","showa","heisei","reiwa"];function _b(e){let n=_m.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?_m.length-1:0===n?0:n-1}function _v(e){let n=__[_y.indexOf(e.era)];if(!n)throw Error("Unknown era: "+e.era);return new gG(e.year+n,e.month,e.day)}class _A extends m3{fromJulianDay(e){let n=super.fromJulianDay(e),t=_b(n);return new gG(this,_y[t],n.year-__[t],n.month,n.day)}toJulianDay(e){return super.toJulianDay(_v(e))}balanceDate(e){let n=_v(e),t=_b(n);_y[t]!==e.era&&(e.era=_y[t],e.year=n.year-__[t]),this.constrainDate(e)}constrainDate(e){let n=_y.indexOf(e.era),t=_g[n];if(null!=t){let[r,o,a]=t,i=r-__[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]=_m[n];e.month=Math.max(t,e.month),e.month===t&&(e.day=Math.max(r,e.day))}}getEras(){return _y}getYearsInEra(e){let n=_y.indexOf(e.era),t=_m[n],r=_m[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(_v(e))}getMinimumMonthInYear(e){let n=_$(e);return n?n[1]:1}getMinimumDayInMonth(e){let n=_$(e);return n&&e.month===n[1]?n[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function _$(e){if(1===e.year)return _m[_y.indexOf(e.era)]}let _w=[0,31,62,93,124,155,186,216,246,276,306,336];class _k{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-_w[o]+1;return new gG(this,t,o+1,a)}toJulianDay(e){let n=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return n+=_w[e.month-1],n+=e.day}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||8>mJ(25*e.year+11,33)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}function _x(e){return"minguo"===e.era?e.year+1911:1-e.year+1911}function _C(e){let n=e-1911;return n>0?["minguo",n]:["before_minguo",1-n]}class _E extends m3{fromJulianDay(e){let n=super.fromJulianDay(e),[t,r]=_C(m0(n.era,n.year));return new gG(this,t,r,n.month,n.day)}toJulianDay(e){return super.toJulianDay(_D(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[n,t]=_C(_x(e));e.era=n,e.year=t}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(_D(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:8088}constructor(...e){super(...e),this.identifier="roc"}}function _D(e){let[n,t]=m1(_x(e));return new gG(n,t,e.month,e.day)}function _S(e){switch(e){case"buddhist":return new gX;case"ethiopic":return new g4;case"ethioaa":return new g5;case"coptic":return new g6;case"hebrew":return new _r;case"indian":return new _o;case"islamic-civil":return new _l;case"islamic-tbla":return new _c;case"islamic-umalqura":return new _h;case"japanese":return new _A;case"persian":return new _k;case"roc":return new _E;default:return new m3}}let _z=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),_B=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function _O(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 _z.has(n.script)}let n=e.split("-")[0];return _B.has(n)}let _M={prefix:String(Math.round(1e10*Math.random())),current:0},_P=f_.createContext(_M),_T=f_.createContext(!1);"undefined"!=typeof window&&window.document&&window.document.createElement;let _I=new WeakMap,_N="function"==typeof f_.useId?function(e){let n=f_.useId(),[t]=(0,f_.useState)(_L()),r=t?"react-aria":`react-aria${_M.prefix}`;return e||`${r}-${n}`}:function(e){let n=(0,f_.useContext)(_P),t=function(e=!1){let n=(0,f_.useContext)(_P),t=(0,f_.useRef)(null);if(null===t.current&&!e){var r,o;let e=null==(o=f_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||null==(r=o.ReactCurrentOwner)?void 0:r.current;if(e){let t=_I.get(e);null==t?_I.set(e,{id:n.current,state:e.memoizedState}):e.memoizedState!==t.state&&(n.current=t.id,_I.delete(e))}t.current=++n.current}return t.current}(!!e),r=`react-aria${n.prefix}`;return e||`${r}-${t}`};function _F(){return!1}function _j(){return!0}function _R(e){return()=>{}}function _L(){return"function"==typeof f_.useSyncExternalStore?f_.useSyncExternalStore(_R,_F,_j):(0,f_.useContext)(_T)}let _V=Symbol.for("react-aria.i18n.locale");function _W(){let e="undefined"!=typeof window&&window[_V]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:_O(e)?"rtl":"ltr"}}let _H=_W(),_G=new Set;function _U(){for(let e of(_H=_W(),_G))e(_H)}function _q(){let e=_L(),[n,t]=(0,f_.useState)(_H);return((0,f_.useEffect)(()=>(0===_G.size&&window.addEventListener("languagechange",_U),_G.add(t),()=>{_G.delete(t),0===_G.size&&window.removeEventListener("languagechange",_U)}),[]),e)?{locale:"en-US",direction:"ltr"}:n}let _K=f_.createContext(null);function _Y(e){let{locale:n,children:t}=e,r=_q(),o=f_.useMemo(()=>n?{locale:n,direction:_O(n)?"rtl":"ltr"}:r,[r,n]);return f_.createElement(_K.Provider,{value:o},t)}function _Z(){let e=_q();return(0,f_.useContext)(_K)||e}function _J(e){let n=(0,f_.useRef)(null),t=(0,f_.useRef)(void 0),r=(0,f_.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,f_.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 _X(e,n){if("function"==typeof e)return e(n);null!=e&&(e.current=n)}function _Q(...e){return(...n)=>{for(let t of e)"function"==typeof t&&t(...n)}}let _0="undefined"!=typeof document?f_.useLayoutEffect:()=>{};function _1(e){let n=(0,f_.useRef)(null);return _0(()=>{n.current=e},[e]),(0,f_.useCallback)((...e)=>{let t=n.current;return null==t?void 0:t(...e)},[])}let _2=!!("undefined"!=typeof window&&window.document&&window.document.createElement),_3=new Map;function _4(e){let[n,t]=(0,f_.useState)(e),r=(0,f_.useRef)(null),o=_N(n),a=(0,f_.useRef)(null);if(c&&c.register(a,o),_2){let e=_3.get(o);e&&!e.includes(r)?e.push(r):_3.set(o,[r])}return _0(()=>()=>{c&&c.unregister(a),_3.delete(o)},[o]),(0,f_.useEffect)(()=>{let e=r.current;return e&&t(e),()=>{e&&(r.current=null)}}),o}function _5(e=[]){let n=_4(),[t,r]=function(e){let[n,t]=(0,f_.useState)(e),r=(0,f_.useRef)(null),o=_1(()=>{if(!r.current)return;let e=r.current.next();if(e.done){r.current=null;return}n===e.value?o():t(e.value)});_0(()=>{r.current&&o()});let a=_1(e=>{r.current=e(n),o()});return[n,a]}(n),o=(0,f_.useCallback)(()=>{r(function*(){yield n,yield document.getElementById(n)?n:void 0})},[n,r]);return _0(o,[n,o,...e]),t}"undefined"!=typeof FinalizationRegistry&&(c=new FinalizationRegistry(e=>{_3.delete(e)}));let _6=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 _8(...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]=_Q(t,o):("className"===e||"UNSAFE_className"===e)&&"string"==typeof t&&"string"==typeof o?n[e]=_6(t,o):"id"===e&&t&&o?n.id=function(e,n){if(e===n)return e;let t=_3.get(e);if(t)return t.forEach(e=>e.current=n),n;let r=_3.get(n);return r?(r.forEach(n=>n.current=e),e):n}(t,o):n[e]=void 0!==o?o:t}}return n}let _7=Symbol("default");function _9({values:e,children:n}){for(let[t,r]of e)n=f_.createElement(t.Provider,{value:r},n);return n}function ye(e){let{className:n,style:t,children:r,defaultClassName:o,defaultChildren:a,defaultStyle:i,values:s}=e;return(0,f_.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 yn(e,n){let t=(0,f_.useContext)(e);if(null===n)return null;if(t&&"object"==typeof t&&"slots"in t&&t.slots){let e=n||_7;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 yt(e,n,t){let{ref:r,...o}=yn(t,e.slot)||{},a=_J((0,f_.useMemo)(()=>(function(...e){return 1===e.length&&e[0]?e[0]:n=>{let t=!1,r=e.map(e=>{let r=_X(e,n);return t||(t="function"==typeof r),r});if(t)return()=>{r.forEach((n,t)=>{"function"==typeof n?n():_X(e[t],null)})}}})(n,r),[n,r])),i=_8(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 yr(e=!0){let[n,t]=(0,f_.useState)(e),r=(0,f_.useRef)(!1),o=(0,f_.useCallback)(e=>{r.current=!0,t(!!e)},[]);return _0(()=>{r.current||t(!1)},[]),[o,n]}function yo(e){let n=/^(data-.*)$/,t={};for(let r in e)n.test(r)||(t[r]=e[r]);return t}let ya=(0,f_.createContext)(null),yi=null;function ys(e,n="assertive",t=7e3){yi?yi.announce(e,n,t):(yi=new yl,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"undefined"!=typeof jest)?yi.announce(e,n,t):setTimeout(()=>{(null==yi?void 0:yi.isAttached())&&(null==yi||yi.announce(e,n,t))},100))}class yl{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 yc=new Set(["id"]),yu=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),yp=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),yd=/^(data-.*)$/;function yf(e,n={}){let{labelable:t,isLink:r,propNames:o}=n,a={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(yc.has(n)||t&&yu.has(n)||r&&yp.has(n)||(null==o?void 0:o.has(n))||yd.test(n))&&(a[n]=e[n]);return a}let yh=["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"])'],ym=yh.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";yh.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let yg=yh.join(':not([hidden]):not([tabindex="-1"]),');function y_(e){return e.matches(ym)}function yy(e){return e.matches(yg)}let yb=e=>{var n;return null!=(n=null==e?void 0:e.ownerDocument)?n:document},yv=e=>e&&"window"in e&&e.window===e?e:yb(e).defaultView||window;function yA(e){if(function(){if(null==y$){y$=!1;try{document.createElement("div").focus({get preventScroll(){return y$=!0,!0}})}catch{}}return y$}())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 y$=null;function yw(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function yk(e,n){Object.defineProperty(e,"target",{value:n}),Object.defineProperty(e,"currentTarget",{value:n})}function yx(e){let n=(0,f_.useRef)({isFocused:!1,observer:null});_0(()=>{let e=n.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let t=_1(n=>{null==e||e(n)});return(0,f_.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(yw(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 yC=!1;function yE(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 yD(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 yS(e){let n=null;return()=>(null==n&&(n=e()),n)}let yz=yS(function(){return yD(/^Mac/i)}),yB=yS(function(){return yD(/^iPhone/i)}),yO=yS(function(){return yD(/^iPad/i)||yz()&&navigator.maxTouchPoints>1}),yM=yS(function(){return yB()||yO()});yS(function(){return yz()||yM()});let yP=yS(function(){return yE(/AppleWebKit/i)&&!yT()}),yT=yS(function(){return yE(/Chrome/i)}),yI=yS(function(){return yE(/Android/i)}),yN=yS(function(){return yE(/Firefox/i)}),yF=new Map,yj=new Set;function yR(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let n=t=>{if(!e(t)||!t.target)return;let r=yF.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",n),yF.delete(t.target)),0===yF.size)){for(let e of yj)e();yj.clear()}};document.body.addEventListener("transitionrun",t=>{if(!e(t)||!t.target)return;let r=yF.get(t.target);r||(r=new Set,yF.set(t.target,r),t.target.addEventListener("transitioncancel",n,{once:!0})),r.add(t.propertyName)}),document.body.addEventListener("transitionend",n)}function yL(e){requestAnimationFrame(()=>{for(let[e]of yF)"isConnected"in e&&!e.isConnected&&yF.delete(e);0===yF.size?e():yj.add(e)})}"undefined"!=typeof document&&("loading"!==document.readyState?yR():document.addEventListener("DOMContentLoaded",yR));let yV="default",yW="",yH=new WeakMap;function yG(e){if(yM())"disabled"===yV&&(yV="restoring",setTimeout(()=>{yL(()=>{if("restoring"===yV){let n=yb(e);"none"===n.documentElement.style.webkitUserSelect&&(n.documentElement.style.webkitUserSelect=yW||""),yW="",yV="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&yH.has(e)){let n=yH.get(e),t="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[t]&&(e.style[t]=n),""===e.getAttribute("style")&&e.removeAttribute("style"),yH.delete(e)}}let yU=f_.createContext({register:()=>{}});function yq(e,n,t){if(!n.has(e))throw TypeError("attempted to "+t+" private field on non-instance");return n.get(e)}function yK(e,n,t){var r=yq(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 yY(e,n){_0(()=>{if(e&&e.ref&&n)return e.ref.current=n.current,()=>{e.ref&&(e.ref.current=null)}})}function yZ(){let e=(0,f_.useRef)(new Map),n=(0,f_.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,f_.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,f_.useCallback)(()=>{e.current.forEach((e,n)=>{t(e.eventTarget,e.type,n,e.options)})},[t]);return(0,f_.useEffect)(()=>r,[r]),{addGlobalListener:n,removeGlobalListener:t,removeAllGlobalListeners:r}}yU.displayName="PressResponderContext";function yJ(e,n){return!!n&&!!e&&e.contains(n)}function yX(e){return e.target}function yQ(e,n,t=!0){var r,o;let{metaKey:a,ctrlKey:i,altKey:s,shiftKey:l}=n;yN()&&(null==(o=window.event)||null==(r=o.type)?void 0:r.startsWith("key"))&&"_blank"===e.target&&(yz()?a=!0:i=!0);let c=yP()&&yz()&&!yO()&&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});yQ.isOpening=t,yA(e),e.dispatchEvent(c),yQ.isOpening=!1}function y0(e){return 0===e.mozInputSource&&!!e.isTrusted||(yI()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}yQ.isOpening=!1;var y1=t(28316),y2=new WeakMap;class y3{continuePropagation(){yK(this,y2,!1)}get shouldStopPropagation(){var e;return e=yq(this,y2,"get"),e.get?e.get.call(this):e.value}constructor(e,n,t,r){var o;gV(this,y2,{writable:!0,value:void 0}),yK(this,y2,!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,u=null;null!=t.clientX&&null!=t.clientY&&(c=t.clientX,u=t.clientY),i&&(null!=c&&null!=u?(s=c-i.left,l=u-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 y4=Symbol("linkClicked"),y5="react-aria-pressable-style",y6="data-react-aria-pressable";function y8(e){let{onPress:n,onPressChange:t,onPressStart:r,onPressEnd:o,onPressUp:a,onClick:i,isDisabled:s,isPressed:l,preventFocusOnPress:c,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:p,ref:d,...f}=function(e){let n=(0,f_.useContext)(yU);if(n){let{register:t,...r}=n;e=_8(r,e),t()}return yY(n,e.ref),e}(e),[h,m]=(0,f_.useState)(!1),g=(0,f_.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:b}=yZ(),v=_1((e,n)=>{let o=g.current;if(s||o.didFirePressStart)return!1;let a=!0;if(o.isTriggeringEvent=!0,r){let t=new y3("pressstart",n,e);r(t),a=t.shouldStopPropagation}return t&&t(!0),o.isTriggeringEvent=!1,o.didFirePressStart=!0,m(!0),a}),A=_1((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 y3("pressend",r,e);o(n),l=n.shouldStopPropagation}if(t&&t(!1),m(!1),n&&a&&!s){let t=new y3("press",r,e);n(t),l&&(l=t.shouldStopPropagation)}return i.isTriggeringEvent=!1,l}),$=_1((e,n)=>{let t=g.current;if(s)return!1;if(a){t.isTriggeringEvent=!0;let r=new y3("pressup",n,e);return a(r),t.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),w=_1(e=>{let n=g.current;if(n.isPressed&&n.target){for(let t of(n.didFirePressStart&&null!=n.pointerType&&A(be(n.target,e),n.pointerType,!1),n.isPressed=!1,n.isOverTarget=!1,n.activePointerId=null,n.pointerType=null,b(),p||yG(n.target),n.disposables))t();n.disposables=[]}}),k=_1(e=>{u&&w(e)}),x=_1(e=>{null==i||i(e)}),C=_1((e,n)=>{if(i){let t=new MouseEvent("click",e);yk(t,n),i(yw(t))}}),E=(0,f_.useMemo)(()=>{let e=g.current,n={onKeyDown(n){if(y9(n.nativeEvent,n.currentTarget)&&yJ(n.currentTarget,yX(n.nativeEvent))){var r;bn(yX(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(yb(n.currentTarget),"keyup",_Q(n=>{y9(n,r)&&!n.repeat&&yJ(r,yX(n))&&e.target&&$(be(e.target,n),"keyboard")},t),!0)}o&&n.stopPropagation(),n.metaKey&&yz()&&(null==(r=e.metaKeyEvents)||r.set(n.key,n.nativeEvent))}else"Meta"===n.key&&(e.metaKeyEvents=new Map)},onClick(n){if((!n||yJ(n.currentTarget,yX(n.nativeEvent)))&&n&&0===n.button&&!e.isTriggeringEvent&&!yQ.isOpening){let t=!0;if(s&&n.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||y0(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=$(be(n.currentTarget,n),r),a=A(be(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&&y9(n,e.target)){bn(yX(n),n.key)&&n.preventDefault();let t=yX(n),o=yJ(e.target,yX(n));A(be(e.target,n),"keyboard",o),o&&C(n,e.target),b(),"Enter"!==n.key&&y7(e.target)&&yJ(e.target,t)&&!n[y4]&&(n[y4]=!0,yQ(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||!yJ(n.currentTarget,yX(n.nativeEvent)))return;if(o=n.nativeEvent,!yI()&&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,p||function(e){if(yM()){if("default"===yV){let n=yb(e);yW=n.documentElement.style.webkitUserSelect,n.documentElement.style.webkitUserSelect="none"}yV="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let n="userSelect"in e.style?"userSelect":"webkitUserSelect";yH.set(e,e.style[n]),e.style[n]="none"}}(e.target),a=v(n,e.pointerType);let o=yX(n.nativeEvent);"releasePointerCapture"in o&&o.releasePointerCapture(n.pointerId),y(yb(n.currentTarget),"pointerup",t,!1),y(yb(n.currentTarget),"pointercancel",r,!1)}a&&n.stopPropagation()},n.onMouseDown=n=>{if(yJ(n.currentTarget,yX(n.nativeEvent))&&0===n.button){if(c){let t=function(e){for(;e&&!y_(e);)e=e.parentElement;let n=yv(e),t=n.document.activeElement;if(!t||t===e)return;yC=!0;let r=!1,o=e=>{(e.target===t||r)&&e.stopImmediatePropagation()},a=n=>{(n.target===t||r)&&(n.stopImmediatePropagation(),e||r||(r=!0,yA(t),l()))},i=n=>{(n.target===e||r)&&n.stopImmediatePropagation()},s=n=>{(n.target===e||r)&&(n.stopImmediatePropagation(),r||(r=!0,yA(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),yC=!1,r=!1},c=requestAnimationFrame(l);return l}(n.target);t&&e.disposables.push(t)}n.stopPropagation()}},n.onPointerUp=n=>{yJ(n.currentTarget,yX(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(be(e.target,n),e.pointerType))},n.onPointerLeave=n=>{n.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,A(be(e.target,n),e.pointerType,!1),k(n))};let t=n=>{if(n.pointerId===e.activePointerId&&e.isPressed&&0===n.button&&e.target){if(yJ(e.target,yX(n))&&null!=e.pointerType){let t=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(t?w(n):(yA(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=>{yJ(e.currentTarget,yX(e.nativeEvent))&&w(e)}}return n},[y,s,c,b,p,w,k,A,v,$,x,C]);return(0,f_.useEffect)(()=>{if(!d)return;let e=yb(d.current);if(!e||!e.head||e.getElementById(y5))return;let n=e.createElement("style");n.id=y5,n.textContent=`
|
|
33
33
|
@layer {
|
|
34
34
|
[${y6}] {
|
|
35
35
|
touch-action: pan-x pan-y pinch-zoom;
|