@cubejs-backend/server-core 0.35.4 → 0.35.5
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/package.json +8 -8
- package/playground/assets/{CachePane-38601448.js → CachePane-3f7fb11b.js} +1 -1
- package/playground/assets/{GraphiQLSandbox-7cd5c7a2.js → GraphiQLSandbox-3f652d13.js} +2 -2
- package/playground/assets/{SchemaReference-1042d5f6.js → SchemaReference-3b2bea28.js} +1 -1
- package/playground/assets/{SqlQueryTab-b38898ba.js → SqlQueryTab-a59c6cc6.js} +1 -1
- package/playground/assets/{brace-fold-535c79c7.js → brace-fold-4156d964.js} +1 -1
- package/playground/assets/{closebrackets-9ed1e96e.js → closebrackets-148c84f7.js} +1 -1
- package/playground/assets/{codemirror-18ee3ced.js → codemirror-dbb06670.js} +1 -1
- package/playground/assets/{comment-ce9c25c1.js → comment-fc40c03b.js} +1 -1
- package/playground/assets/{dialog-9fa2df80.js → dialog-304b2862.js} +1 -1
- package/playground/assets/{dialog-9ccd0c12.js → dialog-6fd6c5df.js} +1 -1
- package/playground/assets/{foldgutter-06d2e4fa.js → foldgutter-c2e674ac.js} +1 -1
- package/playground/assets/{hint-332d4bff.js → hint-19db77eb.js} +1 -1
- package/playground/assets/{hint-02164e1b.js → hint-ad055289.js} +1 -1
- package/playground/assets/{index-f97644d0.js → index-56a8e713.js} +1 -1
- package/playground/assets/{index-ac8fb358.js → index-7e640c4c.js} +1 -1
- package/playground/assets/{index-d2bed431.js → index-83d5bd00.js} +155 -155
- package/playground/assets/{info-addon-2e036aed.js → info-addon-42cea1c8.js} +1 -1
- package/playground/assets/{info-fd867a84.js → info-b398aafc.js} +1 -1
- package/playground/assets/{javascript-eac38182.js → javascript-acb92dc2.js} +1 -1
- package/playground/assets/{jump-c8813e6e.js → jump-c916cecb.js} +1 -1
- package/playground/assets/{jump-to-line-f7e3c716.js → jump-to-line-c3b4346c.js} +1 -1
- package/playground/assets/{lint-03a1d5ea.js → lint-61150a72.js} +1 -1
- package/playground/assets/{lint-669b73d4.js → lint-9757f560.js} +1 -1
- package/playground/assets/{lint-e4934feb.js → lint-b967df40.js} +1 -1
- package/playground/assets/{matchbrackets-537330cd.js → matchbrackets-ccb21a42.js} +1 -1
- package/playground/assets/{matchbrackets-1d734f73.js → matchbrackets-e5d4acc3.js} +1 -1
- package/playground/assets/{mode-ecea1abe.js → mode-464224d2.js} +1 -1
- package/playground/assets/{mode-f1de3d33.js → mode-4e667c89.js} +1 -1
- package/playground/assets/{mode-a7e72549.js → mode-569c26e3.js} +1 -1
- package/playground/assets/{search-474b16bf.js → search-28e364cb.js} +1 -1
- package/playground/assets/{searchcursor-f4b4cfdf.js → searchcursor-db74e3b9.js} +1 -1
- package/playground/assets/{searchcursor-5199514e.js → searchcursor-ed99123a.js} +1 -1
- package/playground/assets/{show-hint-73a3412b.js → show-hint-8b9a722c.js} +1 -1
- package/playground/assets/{sublime-f2fd16fd.js → sublime-30f5922a.js} +1 -1
- package/playground/index.html +1 -1
|
@@ -155,32 +155,32 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
155
155
|
*/var b$1=60103,c$1=60106,d$1=60107,e$2=60108,f$1=60114,g$1=60109,h$1=60110,k$2=60112,l$1=60113,m$1=60120,n$2=60115,p$1=60116,q$1=60121,r$4=60122,u$1=60117,v$1=60129,w$1=60131;if(typeof Symbol=="function"&&Symbol.for){var x$1=Symbol.for;b$1=x$1("react.element"),c$1=x$1("react.portal"),d$1=x$1("react.fragment"),e$2=x$1("react.strict_mode"),f$1=x$1("react.profiler"),g$1=x$1("react.provider"),h$1=x$1("react.context"),k$2=x$1("react.forward_ref"),l$1=x$1("react.suspense"),m$1=x$1("react.suspense_list"),n$2=x$1("react.memo"),p$1=x$1("react.lazy"),q$1=x$1("react.block"),r$4=x$1("react.server.block"),u$1=x$1("react.fundamental"),v$1=x$1("react.debug_trace_mode"),w$1=x$1("react.legacy_hidden")}function y$1(s){if(typeof s=="object"&&s!==null){var j=s.$$typeof;switch(j){case b$1:switch(s=s.type,s){case d$1:case f$1:case e$2:case l$1:case m$1:return s;default:switch(s=s&&s.$$typeof,s){case h$1:case k$2:case p$1:case n$2:case g$1:return s;default:return j}}case c$1:return j}}}var z$1=g$1,A$1=b$1,B$1=k$2,C$1=d$1,D$1=p$1,E$1=n$2,F$1=c$1,G$1=f$1,H$1=e$2,I$1=l$1;reactIs_production_min$1.ContextConsumer=h$1;reactIs_production_min$1.ContextProvider=z$1;reactIs_production_min$1.Element=A$1;reactIs_production_min$1.ForwardRef=B$1;reactIs_production_min$1.Fragment=C$1;reactIs_production_min$1.Lazy=D$1;reactIs_production_min$1.Memo=E$1;reactIs_production_min$1.Portal=F$1;reactIs_production_min$1.Profiler=G$1;reactIs_production_min$1.StrictMode=H$1;reactIs_production_min$1.Suspense=I$1;reactIs_production_min$1.isAsyncMode=function(){return!1};reactIs_production_min$1.isConcurrentMode=function(){return!1};reactIs_production_min$1.isContextConsumer=function(s){return y$1(s)===h$1};reactIs_production_min$1.isContextProvider=function(s){return y$1(s)===g$1};reactIs_production_min$1.isElement=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===b$1};reactIs_production_min$1.isForwardRef=function(s){return y$1(s)===k$2};reactIs_production_min$1.isFragment=function(s){return y$1(s)===d$1};reactIs_production_min$1.isLazy=function(s){return y$1(s)===p$1};reactIs_production_min$1.isMemo=function(s){return y$1(s)===n$2};reactIs_production_min$1.isPortal=function(s){return y$1(s)===c$1};reactIs_production_min$1.isProfiler=function(s){return y$1(s)===f$1};reactIs_production_min$1.isStrictMode=function(s){return y$1(s)===e$2};reactIs_production_min$1.isSuspense=function(s){return y$1(s)===l$1};reactIs_production_min$1.isValidElementType=function(s){return typeof s=="string"||typeof s=="function"||s===d$1||s===f$1||s===v$1||s===e$2||s===l$1||s===m$1||s===w$1||typeof s=="object"&&s!==null&&(s.$$typeof===p$1||s.$$typeof===n$2||s.$$typeof===g$1||s.$$typeof===h$1||s.$$typeof===k$2||s.$$typeof===u$1||s.$$typeof===q$1||s[0]===r$4)};reactIs_production_min$1.typeOf=y$1;reactIs$1.exports=reactIs_production_min$1;var reactIsExports$1=reactIs$1.exports;/**
|
|
156
156
|
* @license MIT
|
|
157
157
|
* author: Cube Dev Team
|
|
158
|
-
* @cube-dev/ui-kit v0.
|
|
158
|
+
* @cube-dev/ui-kit v0.31.2
|
|
159
159
|
* Released under the MIT license.
|
|
160
160
|
*/const BreakpointsContext=reactExports.createContext([980]);function BreakpointsProvider({value:s,children:j}){return jsx(BreakpointsContext.Provider,{value:s,children:j})}/**
|
|
161
161
|
* @license MIT
|
|
162
162
|
* author: Cube Dev Team
|
|
163
|
-
* @cube-dev/ui-kit v0.
|
|
163
|
+
* @cube-dev/ui-kit v0.31.2
|
|
164
164
|
* Released under the MIT license.
|
|
165
165
|
*/function camelToKebab(s){return s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}/**
|
|
166
166
|
* @license MIT
|
|
167
167
|
* author: Cube Dev Team
|
|
168
|
-
* @cube-dev/ui-kit v0.
|
|
168
|
+
* @cube-dev/ui-kit v0.31.2
|
|
169
169
|
* Released under the MIT license.
|
|
170
170
|
*/function cacheWrapper(s,j=1e3){let et={},tt=0;return(rt,nt)=>{const at=typeof rt=="string"&&nt==null?rt:JSON.stringify([rt,nt]);return et[at]||(tt>j&&(et={},tt=0),tt++,et[at]=nt==null?s(rt):s(rt,nt)),et[at]}}/**
|
|
171
171
|
* @license MIT
|
|
172
172
|
* author: Cube Dev Team
|
|
173
|
-
* @cube-dev/ui-kit v0.
|
|
173
|
+
* @cube-dev/ui-kit v0.31.2
|
|
174
174
|
* Released under the MIT license.
|
|
175
175
|
*/function modAttrs(s){return s?Object.keys(s).reduce((j,et)=>(s[et]&&(j[`data-is-${camelToKebab(et)}`]=""),j),{}):null}const _modAttrs=cacheWrapper(modAttrs);/**
|
|
176
176
|
* @license MIT
|
|
177
177
|
* author: Cube Dev Team
|
|
178
|
-
* @cube-dev/ui-kit v0.
|
|
178
|
+
* @cube-dev/ui-kit v0.31.2
|
|
179
179
|
* Released under the MIT license.
|
|
180
180
|
*/function filterCombinations(s){return s.filter(j=>{const et=[];return!j.find(tt=>{const rt=tt.match(/\[(.+?)[=\]]/);return rt?et.includes(rt[1])?!0:(et.push(rt[1]),!1):!1})})}function getModCombinations(s,j){const et=j?[[]]:[];if(s.length===0)return[s];if(s.length<2)return et.concat([s]);const tt=function(rt=[],nt){for(let at=0;at<nt.length;at++)et.push([...rt,nt[at]]),tt([...rt,nt[at]],nt.slice(at+1))};return tt([],s),filterCombinations(et)}/**
|
|
181
181
|
* @license MIT
|
|
182
182
|
* author: Cube Dev Team
|
|
183
|
-
* @cube-dev/ui-kit v0.
|
|
183
|
+
* @cube-dev/ui-kit v0.31.2
|
|
184
184
|
* Released under the MIT license.
|
|
185
185
|
*/const devMode$1=!1,IS_DVH_SUPPORTED$1=typeof CSS!="undefined"&&typeof(CSS==null?void 0:CSS.supports)=="function"?CSS.supports("height: 100dvh"):!1,CUSTOM_UNITS={r:"var(--radius)",bw:"var(--border-width)",ow:"var(--outline-width)",x:"var(--gap)",fs:"var(--font-size)",lh:"var(--line-height)",rp:"var(--rem-pixel)",gp:"var(--column-gap)",dvh:function(j){return IS_DVH_SUPPORTED$1?`${j}dvh`:`calc(var(--cube-dynamic-viewport-height, 100dvh) / 100 * ${j})`},sp:function(j){return`((${j} * var(--column-width)) + (${j-1} * var(--column-gap)))`}},DIRECTIONS=["top","right","bottom","left"],COLOR_FUNCS=["rgb","rgba"],IGNORE_MODS=["auto","max-content","min-content","none","subgrid","initial"],ATTR_REGEXP=/("[^"]*")|('[^']*')|([a-z-]+\()|(#[a-z0-9.-]{2,}(?![a-f0-9[-]))|(--[a-z0-9-]+|@[a-z0-9-]+)|([a-z][a-z0-9-]*)|(([0-9]+(?![0-9.])|[0-9-.]{2,}|[0-9-]{2,}|[0-9.-]{3,})([a-z%]{0,3}))|([*/+-])|([()])|(,)/gi,ATTR_CACHE=new Map,ATTR_CACHE_AUTOCALC=new Map,ATTR_CACHE_IGNORE_COLOR=new Map,MAX_CACHE=1e4,ATTR_CACHE_MODE_MAP=[ATTR_CACHE_AUTOCALC,ATTR_CACHE,ATTR_CACHE_IGNORE_COLOR],PREPARE_REGEXP=/calc\((\d*)\)/gi,MOD_NAME_CACHE=new Map;function getModSelector(s){return MOD_NAME_CACHE.has(s)||MOD_NAME_CACHE.set(s,s.match(/^[a-z]/)?`[data-is-${camelToKebab(s)}]`:s),MOD_NAME_CACHE.get(s)}function parseStyle(s,j=0){if(typeof s=="number"&&(s=String(s)),typeof s!="string")return{values:[],mods:[],all:[],value:""};const et=ATTR_CACHE_MODE_MAP[j];if(!et.has(s)){et.size>MAX_CACHE&&et.clear();const tt=[],rt=[],nt=[],at=j!==1;let it="",ot=-1,st=0,lt="",ct="",ut="",dt="",ft;for(ATTR_REGEXP.lastIndex=0,s=s.replace(/@\(/g,"var(--");ft=ATTR_REGEXP.exec(s);){let[,ht,mt,vt,pt,gt,yt,$t,xt,Ct,bt,St,_t]=ft;if(mt||ht)it+=`${mt||ht} `;else if(vt)ut=vt.slice(0,-1),it+=vt,st++;else if(pt)j===2?ct=pt:ct=parseColor(pt,!1).color;else if(yt)st||IGNORE_MODS.includes(yt)?it+=`${yt} `:(tt.push(yt),rt.push(yt),lt+=`${yt} `);else if(St)St==="("&&(~ot||(ot=st,it+="calc"),st++),St===")"&&st&&(it=it.trim(),st>0&&st--,st===ot&&(ot=-1)),St===")"&&!st&&(dt=ut,ut=""),it+=`${St}${St===")"?" ":""}`;else if(bt){if(!~ot&&at){if(it){if(it.includes("(")){const wt=it.lastIndexOf("(");it=`${it.slice(0,wt)}(calc(${it.slice(wt+1)}`,ot=st,st++}}else if(nt.length){lt=lt.slice(0,lt.length-nt[nt.length-1].length-1);let wt=nt.splice(nt.length-1,1)[0];rt.splice(nt.length-1,1),wt&&(wt.startsWith("calc(")&&(wt=wt.slice(4)),ot=st,st++,it=`calc((${wt}) `)}}it+=`${bt} `}else if($t)if(Ct&&CUSTOM_UNITS[Ct]){let wt=customUnit(xt,Ct);!~ot&&wt.startsWith("(")&&(it+="calc"),it+=`${wt} `}else it+=`${$t} `;else gt?(gt=gt.replace("@","--"),ut!=="var"?it+=`var(${gt}) `:it+=`${gt} `):_t&&(~ot?(ot=-1,st--,it=`${it.trim()}), `):it=`${it.trim()}, `,st||rt.push(","));if(it&&!st){let wt=prepareParsedValue(it);COLOR_FUNCS.includes(dt)?ct=wt:wt.startsWith("color(")?(wt=wt.slice(6,-1),ct=parseColor(wt).color):(wt!==","&&(nt.push(wt),rt.push(wt)),lt+=`${wt} `),it=""}}if(st){let ht=prepareParsedValue(`${it.trim()}${")".repeat(st)}`);ht.startsWith("color(")?(ht=ht.slice(6,-1),ct=parseColor(ht).color):(ht!==","&&(nt.push(ht),rt.push(ht)),lt+=ht)}et.set(s,{values:nt,mods:tt,all:rt,value:`${lt} ${ct}`.trim(),color:ct})}return et.get(s)}function parseColor(s,j=!1){if(s=s.trim(),!s)return{};if(s.startsWith("#")){s=s.slice(1);const it=s.split(".");let ot=100;it.length>1&&(it[1].length===1?ot=Number(it[1])*10:ot=Number(it[1]),Number.isNaN(ot)&&(ot=100));const st=it[0];let lt;return st==="current"?lt="currentColor":ot>100?ot=100:ot<0&&(ot=0),lt||(lt=ot!==100?rgbColorProp(st,Math.round(ot)/100):colorProp(st,null,strToRgb(`#${st}`))),{color:lt,name:st,opacity:ot!=null?ot:100}}let{values:et,mods:tt,color:rt}=parseStyle(s),nt,at;if(rt)return{color:(rt.startsWith("var(")?rt:strToRgb(rt))||rt};if(et.forEach(it=>{it.match(/^((var|rgb|rgba|hsl|hsla)\(|#[0-9a-f]{3,6})/)?rt=it.startsWith("var")?it:strToRgb(it):it.endsWith("%")&&(at=parseInt(it))}),rt)return{color:rt};if(nt=nt||tt[0],!nt)return!j&&devMode$1&&console.warn("CubeUIKit: incorrect color value:",s),{};if(!at){let it;return nt==="current"?it="currentColor":nt==="inherit"?it="inherit":nt!=="transparent"&&nt!=="currentColor"?it=`var(--${nt}-color, ${nt})`:it=nt,{name:nt,color:it}}return{color:rgbColorProp(nt,Math.round(at)/100),name:nt,opacity:at}}function rgbColorProp(s,j,et,tt){const rt=tt?`, ${tt}`:"";return`rgba(var(--${s}-color-rgb${et?`, var(--${et}-color-rgb, ${rt})`:rt}), ${j})`}function colorProp(s,j,et){const tt=et?`, ${et}`:"";return`var(--${s}-color${j?`, var(--${j}${tt})`:tt})`}function strToRgb(s,j=!1){if(s)return s.startsWith("rgb")?s:s.startsWith("#")?hexToRgb(s):null}function getRgbValuesFromRgbaString(s){return s.match(/\d+/g).map(j=>parseInt(j)).slice(0,3)}function hexToRgb(s){const j=s.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(et,tt,rt,nt)=>"#"+tt+tt+rt+rt+nt+nt).substring(1).match(/.{2}/g).map((et,tt)=>parseInt(et,16)*(tt===3?.00392156862745098:1));return Number.isNaN(j[0])?"rgba(0, 0, 0, 1)":j.length===3?`rgb(${j.join(", ")})`:j.length===4?`rgba(${j.join(", ")})`:null}function transferMods(s,j,et){s.forEach(tt=>{j.includes(tt)&&(et.push(tt),j.splice(j.indexOf(tt),1))})}function prepareParsedValue(s){return s.trim().replace(PREPARE_REGEXP,(j,et)=>et)}function filterMods(s,j){return s.filter(et=>j.includes(et))}function customUnit(s,j){const et=CUSTOM_UNITS[j];return typeof et=="function"?et(s):s==="1"||s===1?et:`(${s} * ${et})`}function extractStyles(s,j=[],et,tt,rt=[]){const nt={...et,...s.styles};return Object.keys(s).forEach(at=>{const it=tt&&tt[at]||at,ot=s[at];rt&&rt.includes(at)||j.includes(it)&&(nt[it]=ot)},{}),nt}function renderStylesToSC(s,j=""){if(!s)return"";if(Array.isArray(s))return s.reduce((at,it)=>at+renderStylesToSC(it,j),"");const{$:et,css:tt,...rt}=s;let nt=Object.keys(rt).reduce((at,it)=>{const ot=rt[it];return Array.isArray(ot)?at+ot.reduce((st,lt)=>lt?st+`${it}:${lt};
|
|
186
186
|
`:st,""):ot?`${at}${it}:${ot};
|
|
@@ -198,22 +198,22 @@ ${rt.value.replace(/^&&/,"&")}}
|
|
|
198
198
|
`},"")}function styleHandlerCacheWrapper(s,j=1e3){const et=cacheWrapper(rt=>renderStylesToSC(s(rt)),j),tt=cacheWrapper((rt,nt="")=>{if(rt==null||rt===!1)return null;const at=styleMapToStyleMapStateList(rt);return replaceStateValues(at,et),applyStates("&&",at,nt)},j);return Object.assign(tt,{__lookupStyles:s.__lookupStyles})}function replaceStateValues(s,j){const et=new Map;return s.forEach(tt=>{et.get(tt.value)||et.set(tt.value,j(tt.value)),tt.value=et.get(tt.value)}),s}function styleMapToStyleMapStateList(s,j){const et=j||Object.keys(s);if(!et.length)return[];const tt={};let rt=new Set;et.forEach(it=>{tt[it]=styleStateMapToStyleStateDataList(s[it]),tt[it].mods.forEach(rt.add,rt)});const nt=Array.from(rt),at=[];return getModCombinations(nt,!0).forEach(it=>{at.push({mods:it,notMods:nt.filter(ot=>!it.includes(ot)),value:et.reduce((ot,st)=>(ot[st]=tt[st].states.find(lt=>computeState(lt.model,ct=>it.includes(ct))).value,ot),{})})}),at}const STATES_REGEXP=/([&|!^])|([()])|([a-z][a-z0-9-]+)|(:[a-z][a-z0-9-]+\([:a-z0-9-]+\)|:[a-z][a-z0-9-]+)|(\.[a-z][a-z0-9-]+)|(\[[^\]]+])/gi,STATE_OPERATOR_LIST=["!","&","|","^"];function convertTokensToComputeUnits(s){return s.length===1?s[0]:(STATE_OPERATOR_LIST.forEach(j=>{let et;for(;(et=s.indexOf(j))!==-1;){const tt=s[et];tt==="!"?s[et+1]&&s[et+1].length!==1?s.splice(et,2,["!",s[et+1]]):s.splice(et,1):s[et-1]&&s[et+1]&&s[et-1].length!==1&&s[et+1].length!==1?s.splice(et-1,3,[tt,s[et-1],s[et+1]]):s.splice(et,1)}}),s.length===1?s[0]:s)}function parseStateNotationInner(s,j){const et=s.replace(/,/g,"|").match(STATES_REGEXP);if(!et||!et.length)return{model:void 0,mods:[],notMods:[],tokens:[],value:j};if(et.length===1)return{model:et[0],mods:et.slice(0),notMods:[],tokens:et,value:j};const tt=[];let rt=[[]],nt=rt[0],at=0;for(et.forEach(it=>{switch(it){case"(":const ot=[];at++,nt=rt[at]=ot;break;case")":at--,rt[at].push(convertTokensToComputeUnits(nt)),nt=rt[at];break;default:it.length>1&&(tt.includes(it)||tt.push(it)),nt.push(it)}});at;)at--,rt[at].push(convertTokensToComputeUnits(nt)),nt=rt[at];return{tokens:et,mods:tt,notMods:[],model:convertTokensToComputeUnits(rt[0]),value:j}}const parseStateNotation=cacheWrapper(parseStateNotationInner);function styleStateMapToStyleStateDataList(s){if(typeof s!="object"||!s)return{states:[{model:void 0,mods:[],notMods:[],value:s}],mods:[]};const j=[];Object.keys(s).forEach(rt=>{const nt=parseStateNotation(rt,s[rt]);j.push(nt)}),j.reverse();let et;const tt=j.reduce((rt,nt)=>(nt.mods.length?nt.mods.forEach(at=>{rt.includes(at)||rt.push(at)}):et=nt,rt),[]);return et||j.push({mods:[],notMods:tt,value:!0}),{states:j,mods:tt}}const COMPUTE_FUNC_MAP={"!":s=>!s,"^":(s,j)=>s^j,"|":(s,j)=>s|j,"&":(s,j)=>s&j};function computeState(s,j){if(!s)return!0;if(!Array.isArray(s))return typeof j=="function"?!!j(s):!!j[s];const et=COMPUTE_FUNC_MAP[s[0]];et||console.warn("CubeUIKit: unexpected compute method in the model",s);let tt=s[1];if(typeof tt=="object"?tt=!!computeState(tt,j):typeof j=="function"?tt=!!j(tt):tt=!!j[tt],s.length===2)return et(tt);let rt=s[2];return typeof rt=="object"?rt=!!computeState(rt,j):typeof j=="function"?rt=!!j(rt):rt=!!j[rt],!!et(tt,rt)}/**
|
|
199
199
|
* @license MIT
|
|
200
200
|
* author: Cube Dev Team
|
|
201
|
-
* @cube-dev/ui-kit v0.
|
|
201
|
+
* @cube-dev/ui-kit v0.31.2
|
|
202
202
|
* Released under the MIT license.
|
|
203
203
|
*/function gapStyle({display:s="block",flow:j,gap:et}){if(typeof et=="number"&&(et=`${et}px`),!et)return;et===!0&&(et="1.5x");const tt=s.includes("grid"),rt=s.includes("flex"),nt=j?j.includes("wrap")&&!j.includes("nowrap"):!1;!tt&&j==null&&(j=rt?"row":"column");const{values:at}=parseStyle(et);if(et=at.join(" "),tt||rt)return{gap:et};const it=j.includes("row")?"right":"bottom";return nt?[{"margin-right":`calc(-1 * ${at[1]||at[0]})`,"margin-bottom":`calc(-1 * ${at[0]})`},{$:"& > *","margin-right":at[1]||at[0],"margin-bottom":at[0]}]:{$:"& > *:not(:last-child)",[`margin-${it}`]:et}}gapStyle.__lookupStyles=["display","flow","gap"];/**
|
|
204
204
|
* @license MIT
|
|
205
205
|
* author: Cube Dev Team
|
|
206
|
-
* @cube-dev/ui-kit v0.
|
|
206
|
+
* @cube-dev/ui-kit v0.31.2
|
|
207
207
|
* Released under the MIT license.
|
|
208
208
|
*/function fillStyle({fill:s}){if(!s)return"";s.startsWith("#")&&(s=parseStyle(s).color||s);const j=s.match(/var\(--(.+?)-color/);let et="";j&&(et=j[1]);const tt=[{"background-color":s}];return et&&tt.push([{$:">*","--context-fill-color":s,"--context-fill-color-rgb":`var(--${et}-color-rgb)`}]),tt}fillStyle.__lookupStyles=["fill"];/**
|
|
209
209
|
* @license MIT
|
|
210
210
|
* author: Cube Dev Team
|
|
211
|
-
* @cube-dev/ui-kit v0.
|
|
211
|
+
* @cube-dev/ui-kit v0.31.2
|
|
212
212
|
* Released under the MIT license.
|
|
213
213
|
*/function flowStyle({display:s="block",flow:j}){let et;return s.includes("grid")?et="grid-auto-flow":s.includes("flex")&&(et="flex-flow"),et?{[et]:j}:null}flowStyle.__lookupStyles=["display","flow"];/**
|
|
214
214
|
* @license MIT
|
|
215
215
|
* author: Cube Dev Team
|
|
216
|
-
* @cube-dev/ui-kit v0.
|
|
216
|
+
* @cube-dev/ui-kit v0.31.2
|
|
217
217
|
* Released under the MIT license.
|
|
218
218
|
*/const RESET_MAP={input:[{css:`
|
|
219
219
|
-webkit-appearance: none;
|
|
@@ -245,257 +245,257 @@ text-decoration: none;
|
|
|
245
245
|
`}]};function resetStyle({reset:s}){if(!s)return;const{mods:j}=parseStyle(s,1);return j.reduce((et,tt)=>(RESET_MAP[tt]&&et.push(...RESET_MAP[tt]),et),[])}resetStyle.__lookupStyles=["reset"];/**
|
|
246
246
|
* @license MIT
|
|
247
247
|
* author: Cube Dev Team
|
|
248
|
-
* @cube-dev/ui-kit v0.
|
|
248
|
+
* @cube-dev/ui-kit v0.31.2
|
|
249
249
|
* Released under the MIT license.
|
|
250
250
|
*/function colorStyle({color:s}){if(!s)return"";s===!0&&(s="currentColor"),s.startsWith("#")&&(s=parseColor(s).color||s);const j=s.match(/var\(--(.+?)-color/);let et="";j&&(et=j[1]);const tt=[{color:s}];return et&&tt.push([{"--current-color":`var(--${et}-color, ${et})`,"--current-color-rgb":`var(--${et}-color-rgb)`}]),tt}colorStyle.__lookupStyles=["color"];/**
|
|
251
251
|
* @license MIT
|
|
252
252
|
* author: Cube Dev Team
|
|
253
|
-
* @cube-dev/ui-kit v0.
|
|
253
|
+
* @cube-dev/ui-kit v0.31.2
|
|
254
254
|
* Released under the MIT license.
|
|
255
255
|
*/const DEFAULT_MIN_SIZE="var(--gap)",DEFAULT_MAX_SIZE="100%";function isSizingSupport(s){return typeof CSS!="undefined"&&typeof(CSS==null?void 0:CSS.supports)=="function"?CSS.supports("height",s):!1}const STRETCH="stretch",FILL_AVAILABLE="fill-available",WEBKIT_FILL_AVAILABLE="-webkit-fill-available",MOZ_FILL_AVAILABLE="-moz-fill-available",STRETCH_SIZE=isSizingSupport(STRETCH)?STRETCH:isSizingSupport(FILL_AVAILABLE)?FILL_AVAILABLE:isSizingSupport(WEBKIT_FILL_AVAILABLE)?WEBKIT_FILL_AVAILABLE:isSizingSupport(MOZ_FILL_AVAILABLE)?MOZ_FILL_AVAILABLE:null,INTRINSIC_MODS=["max-content","min-content","fit-content","stretch"];function dimensionStyle(s){const j=`min-${s}`,et=`max-${s}`;return tt=>{if(!tt)return"";typeof tt=="number"&&(tt=`${tt}px`),tt=String(tt);const rt={[s]:"auto",[j]:"initial",[et]:"initial"},{mods:nt,values:at}=parseStyle(tt);transferMods(INTRINSIC_MODS,nt,at),at.forEach((ot,st)=>{ot==="stretch"&&(at[st]=STRETCH_SIZE||(s==="height"?"100vh":"100vw"))});let it=!1;for(let ot of nt)switch(ot){case"min":rt[j]=at[0]||DEFAULT_MIN_SIZE,it=!0;break;case"max":rt[et]=at[0]||DEFAULT_MAX_SIZE,it=!0;break}return(!it||!nt.length)&&(at.length===2?(rt[j]=at[0],rt[et]=at[1]):at.length===3?(rt[j]=at[0],rt[s]=at[1],rt[et]=at[2]):rt[s]=at[0]||"auto"),rt}}/**
|
|
256
256
|
* @license MIT
|
|
257
257
|
* author: Cube Dev Team
|
|
258
|
-
* @cube-dev/ui-kit v0.
|
|
258
|
+
* @cube-dev/ui-kit v0.31.2
|
|
259
259
|
* Released under the MIT license.
|
|
260
260
|
*/const dimension$1=dimensionStyle("width");function widthStyle({width:s}){return dimension$1(s)}widthStyle.__lookupStyles=["width"];/**
|
|
261
261
|
* @license MIT
|
|
262
262
|
* author: Cube Dev Team
|
|
263
|
-
* @cube-dev/ui-kit v0.
|
|
263
|
+
* @cube-dev/ui-kit v0.31.2
|
|
264
264
|
* Released under the MIT license.
|
|
265
265
|
*/const dimension=dimensionStyle("height");function heightStyle({height:s}){return dimension(s)}heightStyle.__lookupStyles=["height"];/**
|
|
266
266
|
* @license MIT
|
|
267
267
|
* author: Cube Dev Team
|
|
268
|
-
* @cube-dev/ui-kit v0.
|
|
268
|
+
* @cube-dev/ui-kit v0.31.2
|
|
269
269
|
* Released under the MIT license.
|
|
270
270
|
*/const PROP="var(--radius)",SHARP="var(--leaf-sharp-radius)";function radiusStyle({radius:s}){if(typeof s=="number"&&(s=`${s}px`),!s)return"";s===!0&&(s="1r");let{mods:j,values:et}=parseStyle(s,1);if(j.includes("round")?et=["9999rem"]:j.includes("ellipse")?et=["50%"]:et.length||(et=[PROP]),j.includes("leaf"))et=[et[1]||SHARP,et[0]||PROP,et[1]||SHARP,et[0]||PROP];else if(j.includes("backleaf"))et=[et[0]||PROP,et[1]||SHARP,et[0]||PROP,et[1]||SHARP];else if(j.length){const tt=["0","0","0","0"];let rt=!1;DIRECTIONS.forEach((nt,at)=>{j.includes(nt)&&(rt=!0,tt[at]=et[0]||PROP,tt[(at+1)%4]=et[0]||PROP)}),rt&&(et=tt)}return[{"--local-radius":et.join(" "),"border-radius":"var(--local-radius)"},{$:">*","--context-radius":et.join(" ")}]}radiusStyle.__lookupStyles=["radius"];/**
|
|
271
271
|
* @license MIT
|
|
272
272
|
* author: Cube Dev Team
|
|
273
|
-
* @cube-dev/ui-kit v0.
|
|
273
|
+
* @cube-dev/ui-kit v0.31.2
|
|
274
274
|
* Released under the MIT license.
|
|
275
275
|
*/const BORDER_STYLES=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function borderStyle({border:s}){if(!s&&s!==0)return;s===!0&&(s="1bw");const{values:j,mods:et,color:tt}=parseStyle(String(s)),rt=filterMods(et,DIRECTIONS),nt=filterMods(et,BORDER_STYLES),at=j[0]||"var(--border-width)",it=nt[0]||"solid",ot=tt||"var(--border-color)",st=[at,it,ot].join(" ");if(!rt.length)return{border:st};const lt=[0,it,ot].join(" ");return DIRECTIONS.reduce((ct,ut)=>(et.includes(ut)?ct[`border-${ut}`]=st:ct[`border-${ut}`]=lt,ct),{})}borderStyle.__lookupStyles=["border"];/**
|
|
276
276
|
* @license MIT
|
|
277
277
|
* author: Cube Dev Team
|
|
278
|
-
* @cube-dev/ui-kit v0.
|
|
278
|
+
* @cube-dev/ui-kit v0.31.2
|
|
279
279
|
* Released under the MIT license.
|
|
280
280
|
*/function toBoxShadow(s){const{values:j,mods:et,color:tt}=parseStyle(s),rt=et[0]||"",nt=tt||"var(--shadow-color)";return[rt,...j,nt].join(" ")}function shadowStyle({shadow:s}){return s?(s===!0&&(s="0 5px 15px #shadow"),{"--local-shadow-box-shadow":s.split(",").map(toBoxShadow).join(",")}):""}shadowStyle.__lookupStyles=["shadow"];/**
|
|
281
281
|
* @license MIT
|
|
282
282
|
* author: Cube Dev Team
|
|
283
|
-
* @cube-dev/ui-kit v0.
|
|
283
|
+
* @cube-dev/ui-kit v0.31.2
|
|
284
284
|
* Released under the MIT license.
|
|
285
285
|
*/function paddingStyle({padding:s,paddingBlock:j,paddingInline:et,paddingTop:tt,paddingRight:rt,paddingBottom:nt,paddingLeft:at}){if(typeof s=="number"&&(s=`${s}px`),!s)return"";s===!0&&(s="1x");let{values:it,mods:ot}=parseStyle(s),st=filterMods(ot,DIRECTIONS);it.length||(it=["var(--gap)"]),st.length||(st=DIRECTIONS);const lt=[tt,rt,nt,at];return st.reduce((ct,ut)=>{const dt=DIRECTIONS.indexOf(ut);return(dt%2&&et==null||!(dt%2)&&j==null)&<[dt]==null&&(ct[`padding-${ut}`]=it[dt]||it[dt%2]||it[0]),ct},{})}paddingStyle.__lookupStyles=["padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingBlock","paddingInline"];/**
|
|
286
286
|
* @license MIT
|
|
287
287
|
* author: Cube Dev Team
|
|
288
|
-
* @cube-dev/ui-kit v0.
|
|
288
|
+
* @cube-dev/ui-kit v0.31.2
|
|
289
289
|
* Released under the MIT license.
|
|
290
290
|
*/function paddingBlockStyle({paddingBlock:s,paddingTop:j,paddingBottom:et}){if(typeof s=="number"&&(s=`${s}px`),!s)return"";s===!0&&(s="1x");let{values:tt}=parseStyle(s);tt.length||(tt=["var(--gap)"]);const rt={};return j==null&&(rt["padding-top"]=tt[0]),et==null&&(rt["padding-bottom"]=tt[1]||tt[0]),rt}paddingBlockStyle.__lookupStyles=["paddingBlock","paddingTop","paddingBottom"];/**
|
|
291
291
|
* @license MIT
|
|
292
292
|
* author: Cube Dev Team
|
|
293
|
-
* @cube-dev/ui-kit v0.
|
|
293
|
+
* @cube-dev/ui-kit v0.31.2
|
|
294
294
|
* Released under the MIT license.
|
|
295
295
|
*/function paddingInlineStyle({paddingInline:s,paddingLeft:j,paddingRight:et}){if(typeof s=="number"&&(s=`${s}px`),!s)return"";s===!0&&(s="1x");let{values:tt}=parseStyle(s);tt.length||(tt=["var(--gap)"]);const rt={};return j==null&&(rt["padding-left"]=tt[0]),et==null&&(rt["padding-right"]=tt[1]||tt[0]),rt}paddingInlineStyle.__lookupStyles=["paddingInline","paddingLeft","paddingRight"];/**
|
|
296
296
|
* @license MIT
|
|
297
297
|
* author: Cube Dev Team
|
|
298
|
-
* @cube-dev/ui-kit v0.
|
|
298
|
+
* @cube-dev/ui-kit v0.31.2
|
|
299
299
|
* Released under the MIT license.
|
|
300
300
|
*/function setCSSValue(s,j,et,tt=!1){s[`--${j}`]=(()=>{if(et==="inherit")return"inherit";const rt=`var(--default-${j}, ${j==="font-family"?"var(--font, NonexistentFontName)":"inherit"})`,nt=j==="font-family"?", var(--font, sans-serif)":"";return et==="default"?`${rt}${nt}`:`var(--${et}-${j}, ${rt})${nt}`})(),tt||(s[j]=s[`--${j}`])}function presetStyle({preset:s,fontSize:j,lineHeight:et,textTransform:tt,letterSpacing:rt,fontWeight:nt,fontStyle:at,font:it}){if(!s)return"";s===!0&&(s="");const{mods:ot}=parseStyle(s),st=ot[0]||"default",lt={};return j||setCSSValue(lt,"font-size",st),et||setCSSValue(lt,"line-height",st),rt||setCSSValue(lt,"letter-spacing",st),nt||setCSSValue(lt,"font-weight",st),at||setCSSValue(lt,"font-style",st),tt||setCSSValue(lt,"text-transform",st),it||setCSSValue(lt,"font-family",st),setCSSValue(lt,"bold-font-weight",st,!0),setCSSValue(lt,"icon-size",st,!0),lt}presetStyle.__lookupStyles=["preset","fontSize","lineHeight","letterSpacing","textTransform","fontWeight","fontStyle","font"];/**
|
|
301
301
|
* @license MIT
|
|
302
302
|
* author: Cube Dev Team
|
|
303
|
-
* @cube-dev/ui-kit v0.
|
|
303
|
+
* @cube-dev/ui-kit v0.31.2
|
|
304
304
|
* Released under the MIT license.
|
|
305
305
|
*/function fontStyleStyle({fontStyle:s}){return s===!0&&(s="italic"),s!=="inherit"&&(s=s?"italic":"normal"),{"font-style":s}}fontStyleStyle.__lookupStyles=["fontStyle"];/**
|
|
306
306
|
* @license MIT
|
|
307
307
|
* author: Cube Dev Team
|
|
308
|
-
* @cube-dev/ui-kit v0.
|
|
308
|
+
* @cube-dev/ui-kit v0.31.2
|
|
309
309
|
* Released under the MIT license.
|
|
310
310
|
*/function marginStyle({margin:s,marginBlock:j,marginInline:et,marginTop:tt,marginRight:rt,marginBottom:nt,marginLeft:at}){if(typeof s=="number"&&(s=`${s}px`),!s)return"";s===!0&&(s="1x");let{values:it,mods:ot}=parseStyle(s),st=filterMods(ot,DIRECTIONS);it.length||(it=["var(--gap)"]),st.length||(st=DIRECTIONS);const lt=[tt,rt,nt,at];return st.reduce((ct,ut)=>{const dt=DIRECTIONS.indexOf(ut);return(dt%2&&et==null||!(dt%2)&&j==null)&<[dt]==null&&(ct[`margin-${ut}`]=it[dt]||it[dt%2]||it[0]),ct},{})}marginStyle.__lookupStyles=["margin","marginTop","marginRight","marginBottom","marginLeft","marginBlock","marginInline"];/**
|
|
311
311
|
* @license MIT
|
|
312
312
|
* author: Cube Dev Team
|
|
313
|
-
* @cube-dev/ui-kit v0.
|
|
313
|
+
* @cube-dev/ui-kit v0.31.2
|
|
314
314
|
* Released under the MIT license.
|
|
315
315
|
*/function marginBlockStyle({marginBlock:s,marginTop:j,marginBottom:et}){if(typeof s=="number"&&(s=`${s}px`),!s)return"";s===!0&&(s="1x");let{values:tt}=parseStyle(s);tt.length||(tt=["var(--gap)"]);const rt={};return j==null&&(rt["margin-top"]=tt[0]),et==null&&(rt["margin-bottom"]=tt[1]||tt[0]),rt}marginBlockStyle.__lookupStyles=["marginBlock","marginTop","marginBottom"];/**
|
|
316
316
|
* @license MIT
|
|
317
317
|
* author: Cube Dev Team
|
|
318
|
-
* @cube-dev/ui-kit v0.
|
|
318
|
+
* @cube-dev/ui-kit v0.31.2
|
|
319
319
|
* Released under the MIT license.
|
|
320
320
|
*/function marginInlineStyle({marginInline:s,marginLeft:j,marginRight:et}){if(typeof s=="number"&&(s=`${s}px`),!s)return"";s===!0&&(s="1x");let{values:tt}=parseStyle(s);tt.length||(tt=["var(--gap)"]);const rt={};return j==null&&(rt["margin-left"]=tt[0]),et==null&&(rt["margin-right"]=tt[1]||tt[0]),rt}marginInlineStyle.__lookupStyles=["marginInline","marginLeft","marginRight"];/**
|
|
321
321
|
* @license MIT
|
|
322
322
|
* author: Cube Dev Team
|
|
323
|
-
* @cube-dev/ui-kit v0.
|
|
323
|
+
* @cube-dev/ui-kit v0.31.2
|
|
324
324
|
* Released under the MIT license.
|
|
325
325
|
*/function fontStyle({font:s}){if(s==null||s===!1)return null;const j=s==="monospace"?"var(--monospace-font)":s===!0?"var(--font)":`${s}, var(--font)`;return{"font-family":j,"--font-family":j}}fontStyle.__lookupStyles=["font"];/**
|
|
326
326
|
* @license MIT
|
|
327
327
|
* author: Cube Dev Team
|
|
328
|
-
* @cube-dev/ui-kit v0.
|
|
328
|
+
* @cube-dev/ui-kit v0.31.2
|
|
329
329
|
* Released under the MIT license.
|
|
330
330
|
*/function outlineStyle({outline:s}){if(!s&&s!==0)return"";s===!0&&(s="1ow");const{values:j,color:et,mods:tt}=parseStyle(String(s)),rt=tt.includes("inset"),nt=j[0]||"var(--outline-width)";return{"--local-outline-box-shadow":`${rt?"inset ":""}0 0 0 ${nt} ${et||"var(--outline-color)"}`}}outlineStyle.__lookupStyles=["outline"];/**
|
|
331
331
|
* @license MIT
|
|
332
332
|
* author: Cube Dev Team
|
|
333
|
-
* @cube-dev/ui-kit v0.
|
|
333
|
+
* @cube-dev/ui-kit v0.31.2
|
|
334
334
|
* Released under the MIT license.
|
|
335
335
|
*/const MAP$1={move:["transform"],rotate:["transform"],scale:["transform"],placeSelf:["transform","top","right","bottom","left"],fill:["background-color"],border:["border","box-shadow"],filter:["filter","backdrop-filter"],radius:["border-radius"],shadow:["box-shadow"],outline:["box-shadow"],preset:["font-size","line-height","letter-spacing","font-weight","font-style"],text:["font-weight","text-decoration-color"],theme:["color","background-color","box-shadow","border","border-radius"],inset:["box-shadow"],mark:["box-shadow"],width:["max-width","min-width","width"],height:["max-height","min-height","height"],gap:["gap","margin"],zIndex:["z-index"],image:["background-image","background-position","background-size"]},DEFAULT_EASING="linear";function getTiming(s){return`var(--${s}-transition, var(--transition))`}function transitionStyle({transition:s}){if(!s)return;const j=parseStyle(s).all;if(!j)return;let et=[];const tt=[];j.forEach(at=>{at===","?et&&(tt.push(et),et=[]):et.push(at)}),et&&tt.push(et);const rt={};return tt.forEach(at=>{const it=at[0],ot=at[1],st=at[2],lt=at[3];(MAP$1[it]||[it]).forEach(ut=>{rt[ut]=[it,st,ot,lt]})}),{transition:Object.entries(rt).map(([at,[it,ot,st,lt]])=>`${at} ${st||getTiming(it)} ${ot||DEFAULT_EASING} ${lt||"0s"}`).join(", ")}}transitionStyle.__lookupStyles=["transition"];/**
|
|
336
336
|
* @license MIT
|
|
337
337
|
* author: Cube Dev Team
|
|
338
|
-
* @cube-dev/ui-kit v0.
|
|
338
|
+
* @cube-dev/ui-kit v0.31.2
|
|
339
339
|
* Released under the MIT license.
|
|
340
340
|
*/const MAP={row:["* 0 0 *","0 * * 0"],column:["* * 0 0","0 0 * *"]};function groupRadiusAttr({groupRadius:s,flow:j}){if(!s)return"";s===!0&&(s="1r");const{values:et,mods:tt}=parseStyle(s);j=j||"row";const rt=tt.includes("reverse");let nt=et[0];nt||(tt.includes("round")?nt="9999rem":tt.includes("ellipse")?nt="50%":nt="var(--radius)");const at=MAP[j][rt?1:0].replace(/\*/g,nt),it=MAP[j][rt?0:1].replace(/\*/g,nt);return[{$:">:first-child:not(:last-child)","border-radius":at,"--local-radius":at},{$:">:last-child:not(:first-child)","border-radius":it,"--local-radius":it},{$:">:last-child:first-child","border-radius":nt,"--local-radius":nt},{$:">:not(:last-child):not(:first-child)","border-radius":"0","--local-radius":"0"}]}groupRadiusAttr.__lookupStyles=["groupRadius","flow"];/**
|
|
341
341
|
* @license MIT
|
|
342
342
|
* author: Cube Dev Team
|
|
343
|
-
* @cube-dev/ui-kit v0.
|
|
343
|
+
* @cube-dev/ui-kit v0.31.2
|
|
344
344
|
* Released under the MIT license.
|
|
345
345
|
*/function boxShadowCombinator(s){const j=boxShadowCombinator.__lookupStyles.reduce((et,tt)=>(s[tt]&&et.push(`var(--local-${tt}-box-shadow)`),et),[]);return j.length?{"box-shadow":j.join(", ")}:""}boxShadowCombinator.__lookupStyles=["outline","shadow"];/**
|
|
346
346
|
* @license MIT
|
|
347
347
|
* author: Cube Dev Team
|
|
348
|
-
* @cube-dev/ui-kit v0.
|
|
348
|
+
* @cube-dev/ui-kit v0.31.2
|
|
349
349
|
* Released under the MIT license.
|
|
350
350
|
*/function styledScrollbarStyle({styledScrollbar:s}){return s==null?null:s?[{$:"::-webkit-scrollbar",width:"var(--scrollbar-width)",height:"var(--scrollbar-width)"},{$:"::-webkit-scrollbar-track","background-color":"var(--scrollbar-bg-color)"},{$:"::-webkit-scrollbar-thumb","background-color":"var(--scrollbar-thumb-color)","border-radius":"var(--scrollbar-radius)",border:"var(--scrollbar-outline-width) solid var(--scrollbar-outline-color)","background-clip":"padding-box"},{$:"::-webkit-scrollbar-corner","background-color":"var(--scrollbar-corner-color)"},{"scrollbar-width":"thin","scrollbar-color":"var(--scrollbar-bg-color) var(--scrollbar-thumb-color)"}]:[{$:"::-webkit-scrollbar",display:"none"},{"scrollbar-width":"none"}]}styledScrollbarStyle.__lookupStyles=["styledScrollbar"];/**
|
|
351
351
|
* @license MIT
|
|
352
352
|
* author: Cube Dev Team
|
|
353
|
-
* @cube-dev/ui-kit v0.
|
|
353
|
+
* @cube-dev/ui-kit v0.31.2
|
|
354
354
|
* Released under the MIT license.
|
|
355
355
|
*/function displayStyle({display:s,hide:j}){return{display:j?"none":s}}displayStyle.__lookupStyles=["display","hide"];/**
|
|
356
356
|
* @license MIT
|
|
357
357
|
* author: Cube Dev Team
|
|
358
|
-
* @cube-dev/ui-kit v0.
|
|
358
|
+
* @cube-dev/ui-kit v0.31.2
|
|
359
359
|
* Released under the MIT license.
|
|
360
360
|
*/function alignStyle({align:s}){if(typeof s=="string"&&s)return{"align-items":s,"align-content":s}}alignStyle.__lookupStyles=["align"];/**
|
|
361
361
|
* @license MIT
|
|
362
362
|
* author: Cube Dev Team
|
|
363
|
-
* @cube-dev/ui-kit v0.
|
|
363
|
+
* @cube-dev/ui-kit v0.31.2
|
|
364
364
|
* Released under the MIT license.
|
|
365
365
|
*/function justifyStyle({justify:s}){if(typeof s=="string"&&s)return{"justify-items":s,"justify-content":s}}justifyStyle.__lookupStyles=["justify"];/**
|
|
366
366
|
* @license MIT
|
|
367
367
|
* author: Cube Dev Team
|
|
368
|
-
* @cube-dev/ui-kit v0.
|
|
368
|
+
* @cube-dev/ui-kit v0.31.2
|
|
369
369
|
* Released under the MIT license.
|
|
370
370
|
*/function toSnakeCase(s){return s.replace(/[A-Z]/g,j=>`-${j.toLowerCase()}`)}/**
|
|
371
371
|
* @license MIT
|
|
372
372
|
* author: Cube Dev Team
|
|
373
|
-
* @cube-dev/ui-kit v0.
|
|
373
|
+
* @cube-dev/ui-kit v0.31.2
|
|
374
374
|
* Released under the MIT license.
|
|
375
375
|
*/const CACHE={};function createStyle(s,j,et){const tt=`${s}.${j!=null?j:""}`;if(!CACHE[tt]){const rt=nt=>{let at=nt[s];if(at==null||at===!1)return;const it=j||toSnakeCase(s).replace(/^@/,"--");if(et&&typeof at!="string"&&(at=et(at),!at))return;if(typeof at=="string"&&it.startsWith("--")&&it.endsWith("-color")){at=at.trim();const st=strToRgb(at),{color:lt,name:ct}=parseColor(at);return ct&&st?{[it]:`var(--${ct}-color, ${st})`,[`${it}-rgb`]:`var(--${ct}-color-rgb, ${getRgbValuesFromRgbaString(st).join(", ")})`}:ct?lt?{[it]:lt,[`${it}-rgb`]:`var(--${ct}-color-rgb)`}:{[it]:`var(--${ct}-color)`,[`${it}-rgb`]:`var(--${ct}-color-rgb)`}:st?{[it]:st,[`${it}-rgb`]:getRgbValuesFromRgbaString(st).join(", ")}:{[it]:lt}}const{value:ot}=parseStyle(at,1);return{[it]:ot}};rt.__lookupStyles=[s],CACHE[tt]=styleHandlerCacheWrapper(rt)}return CACHE[tt]}/**
|
|
376
376
|
* @license MIT
|
|
377
377
|
* author: Cube Dev Team
|
|
378
|
-
* @cube-dev/ui-kit v0.
|
|
378
|
+
* @cube-dev/ui-kit v0.31.2
|
|
379
379
|
* Released under the MIT license.
|
|
380
380
|
*/const numberConverter=s=>typeof s=="number"?`${s}px`:s,columnsConverter=s=>{if(typeof s=="number")return"minmax(1px, 1fr) ".repeat(s).trim()},rowsConverter=s=>{if(typeof s=="number")return"auto ".repeat(s).trim()},STYLE_HANDLER_MAP$1={};function defineCustomStyle$1(s,j){let et;if(typeof s=="function")et=s,s=et.__lookupStyles;else if(j)et=Object.assign(j,{__lookupStyles:s});else{console.warn("CubeUIKit: incorrect custom style definition: ",s);return}et=styleHandlerCacheWrapper(et),Array.isArray(s)&&s.forEach(tt=>{STYLE_HANDLER_MAP$1[tt]||(STYLE_HANDLER_MAP$1[tt]=[]),STYLE_HANDLER_MAP$1[tt].push(et)})}function defineStyleAlias$1(s,j,et){const tt=createStyle(s,j,et);STYLE_HANDLER_MAP$1[s]||(STYLE_HANDLER_MAP$1[s]=[]),STYLE_HANDLER_MAP$1[s].push(tt)}function predefine(){return defineStyleAlias$1("fontSize"),defineStyleAlias$1("lineHeight"),defineStyleAlias$1("fontWeight"),defineStyleAlias$1("fontStyle"),defineStyleAlias$1("letterSpacing"),defineStyleAlias$1("textTransform"),defineStyleAlias$1("fontFamily"),defineStyleAlias$1("paddingTop"),defineStyleAlias$1("paddingRight"),defineStyleAlias$1("paddingBottom"),defineStyleAlias$1("paddingLeft"),defineStyleAlias$1("marginTop"),defineStyleAlias$1("marginRight"),defineStyleAlias$1("marginBottom"),defineStyleAlias$1("marginLeft"),defineStyleAlias$1("top","top",numberConverter),defineStyleAlias$1("right","right",numberConverter),defineStyleAlias$1("bottom","bottom",numberConverter),defineStyleAlias$1("left","left",numberConverter),defineStyleAlias$1("gridAreas","grid-template-areas"),defineStyleAlias$1("gridColumns","grid-template-columns",columnsConverter),defineStyleAlias$1("gridRows","grid-template-rows",rowsConverter),defineStyleAlias$1("gridTemplate","grid-template",s=>{if(typeof s=="string")return s.split("/").map((j,et)=>(et?columnsConverter:rowsConverter)(j)).join("/")}),[displayStyle,transitionStyle,resetStyle,fillStyle,widthStyle,marginStyle,marginBlockStyle,marginInlineStyle,gapStyle,flowStyle,colorStyle,heightStyle,radiusStyle,borderStyle,shadowStyle,paddingStyle,paddingBlockStyle,paddingInlineStyle,alignStyle,justifyStyle,presetStyle,boxShadowCombinator,outlineStyle,fontStyle,fontStyleStyle,groupRadiusAttr,styledScrollbarStyle].forEach(s=>defineCustomStyle$1(s)),{STYLE_HANDLER_MAP:STYLE_HANDLER_MAP$1,defineCustomStyle:defineCustomStyle$1,defineStyleAlias:defineStyleAlias$1}}/**
|
|
381
381
|
* @license MIT
|
|
382
382
|
* author: Cube Dev Team
|
|
383
|
-
* @cube-dev/ui-kit v0.
|
|
383
|
+
* @cube-dev/ui-kit v0.31.2
|
|
384
384
|
* Released under the MIT license.
|
|
385
385
|
*/const{STYLE_HANDLER_MAP,defineCustomStyle,defineStyleAlias}=predefine();/**
|
|
386
386
|
* @license MIT
|
|
387
387
|
* author: Cube Dev Team
|
|
388
|
-
* @cube-dev/ui-kit v0.
|
|
388
|
+
* @cube-dev/ui-kit v0.31.2
|
|
389
389
|
* Released under the MIT license.
|
|
390
390
|
*/function mediaWrapper(s,j){return j.filter(et=>et.mediaQuery).map((et,tt)=>`@media ${et.mediaQuery} {${s[tt]}}`).join(`
|
|
391
391
|
`)}const zonesCache={};function pointsToZones(s){const j=s.join("|");if(!zonesCache[j]){const et=[];s.forEach((tt,rt)=>{const nt={};rt&&(nt.max=s[rt-1]-1),nt.min=tt,et.push(nt)}),et.push({max:s[s.length-1]-1}),et.forEach(tt=>{const rt=[];tt.min&&rt.push(`(min-width: ${tt.min}px)`),tt.max&&rt.push(`(max-width: ${tt.max}px)`),tt.mediaQuery=rt.join(" and ")}),zonesCache[j]=et}return zonesCache[j]}function normalizeStyleZones(s,j){if(s==null)return s;const et=Array.from(Array(j));if(typeof s=="string")return et.map(()=>s);if(Array.isArray(s)){let tt=null;for(let rt=0;rt<et.length;rt++)et[rt]=s[rt]==null?tt:s[rt],tt=et[rt];return et}return[]}/**
|
|
392
392
|
* @license MIT
|
|
393
393
|
* author: Cube Dev Team
|
|
394
|
-
* @cube-dev/ui-kit v0.
|
|
394
|
+
* @cube-dev/ui-kit v0.31.2
|
|
395
395
|
* Released under the MIT license.
|
|
396
396
|
*/function isSelector(s){return s.startsWith("&")||s.startsWith(".")||s.match(/^[A-Z]/)}function getSelector$1(s){return s.startsWith("&")?s.slice(1):s.startsWith(".")?` ${s}`:s.match(/^[A-Z]/)?` [data-element="${s}"]`:null}let STYLE_CACHE={},STYLE_CACHE_COUNT=0;const CACHE_LIMIT=1e3;function renderStyles(s,j=[],et){const tt=j,rt=Array.from(Array(tt.length)).map(()=>""),nt=JSON.stringify({s,r:j,suffix:et});let at="";const it=[];if(!STYLE_CACHE[nt]){STYLE_CACHE_COUNT++,STYLE_CACHE_COUNT>CACHE_LIMIT&&(STYLE_CACHE_COUNT=0,STYLE_CACHE={});const ot=s?Object.keys(s):[],st=ot.filter(ct=>isSelector(ct));let lt="";st.length&&st.forEach(ct=>{const ut=getSelector$1(ct);lt+=renderStyles(s==null?void 0:s[ct],j,ut)}),ot.forEach(ct=>{if(isSelector(ct))return;let ut=STYLE_HANDLER_MAP[ct];ut||(ut=STYLE_HANDLER_MAP[ct]=[createStyle(ct)]),ut.forEach(dt=>{if(it.find(vt=>vt.handler===dt))return;let ft=!1;const mt=dt.__lookupStyles.reduce((vt,pt)=>(vt[pt]=s==null?void 0:s[pt],Array.isArray(vt[pt])&&(vt[pt].length===0?delete vt[pt]:(vt[pt].length===1&&(vt[pt]=vt[pt][0]),ft=!0)),vt),{});it.push({handler:dt,styleMap:mt,isResponsive:ft})})}),it.forEach(({handler:ct,styleMap:ut,isResponsive:dt})=>{const ft=ct.__lookupStyles;if(dt){const ht=ft.reduce((pt,gt)=>(pt[gt]=normalizeStyleZones(ut[gt],tt.length),pt),{});tt.map((pt,gt)=>{const yt={};return ft.forEach($t=>{ht!=null&&ht[$t]!=null&&(yt[$t]=ht[$t][gt])}),yt}).map(pt=>ct(pt,et)).forEach((pt,gt)=>{rt[gt]+=pt||""})}else at+=ct(ut,et)||""}),STYLE_CACHE[nt]=`&${et||""}{outline: none;
|
|
397
397
|
&[hidden]{display: none !important;}}${at}${j&&j.length&&rt.filter(ct=>ct).length?mediaWrapper(rt,tt):""}${lt}`}return STYLE_CACHE[nt]}/**
|
|
398
398
|
* @license MIT
|
|
399
399
|
* author: Cube Dev Team
|
|
400
|
-
* @cube-dev/ui-kit v0.
|
|
400
|
+
* @cube-dev/ui-kit v0.31.2
|
|
401
401
|
* Released under the MIT license.
|
|
402
402
|
*/const BASE_STYLES=["display","font","preset","hide","opacity","whiteSpace"],POSITION_STYLES=["gridArea","order","gridColumn","gridRow","placeSelf","alignSelf","justifySelf","zIndex","margin"],BLOCK_STYLES=["reset","padding","paddingInline","paddingBlock","shadow","border","radius","opacity","overflow","styledScrollbar","hide","outline","textAlign"],COLOR_STYLES=["color","fill"],TEXT_STYLES=["textTransform","fontWeight","fontStyle"],DIMENSION_STYLES=["width","height","flexBasis","flexGrow","flexShrink","flex"],FLOW_STYLES=["flow","placeItems","placeContent","alignItems","alignContent","justifyItems","justifyContent","align","justify","gap","columnGap","rowGap","gridColumns","gridRows","gridTemplate","gridAreas"],CONTAINER_STYLES=[...BASE_STYLES,...COLOR_STYLES,...DIMENSION_STYLES,...POSITION_STYLES,...BLOCK_STYLES,...FLOW_STYLES];/**
|
|
403
403
|
* @license MIT
|
|
404
404
|
* author: Cube Dev Team
|
|
405
|
-
* @cube-dev/ui-kit v0.
|
|
405
|
+
* @cube-dev/ui-kit v0.31.2
|
|
406
406
|
* Released under the MIT license.
|
|
407
407
|
*/function mergeStyles(...s){let j=s[0]?{...s[0]}:{},et=1;for(;et in s;){const tt=Object.keys(j).filter(nt=>isSelector(nt)&&j[nt]),rt=s[et];if(rt){const nt={...j,...rt};for(let at of tt)rt!=null&&rt[at]&&(nt[at]={...j[at],...rt[at]});j=nt}et++}return j}/**
|
|
408
408
|
* @license MIT
|
|
409
409
|
* author: Cube Dev Team
|
|
410
|
-
* @cube-dev/ui-kit v0.
|
|
410
|
+
* @cube-dev/ui-kit v0.31.2
|
|
411
411
|
* Released under the MIT license.
|
|
412
412
|
*/const DEFAULT_NAME="Anonymous";function getDisplayName(s,j=DEFAULT_NAME){var et,tt;return typeof s=="function"&&(tt=(et=s.displayName)!=null?et:s.name)!=null?tt:j}/**
|
|
413
413
|
* @license MIT
|
|
414
414
|
* author: Cube Dev Team
|
|
415
|
-
* @cube-dev/ui-kit v0.
|
|
415
|
+
* @cube-dev/ui-kit v0.31.2
|
|
416
416
|
* Released under the MIT license.
|
|
417
417
|
*/function tasty(s,j){var lt,ct;if(typeof s=="string"){let ut=s,dt=j,ft=Ye`${({$css:mt})=>mt}`;const ht=({breakpoints:mt})=>{let vt=reactExports.useContext(BreakpointsContext);mt=mt!=null?mt:vt;const pt=mt.join(",");let gt=reactExports.useMemo(()=>dt?`
|
|
418
418
|
{}${ut}{${renderStyles(dt,pointsToZones(mt||[980]))}}`:"",[pt]);return jsx(ft,{$css:gt})};return ht.displayName=`TastyStyleDeclaration(${s})`,ht}if(reactIsExports$1.isValidElementType(s)){let{as:ut,element:dt,...ft}=j!=null?j:{},ht=["styles"].concat(Object.keys(ft).filter(vt=>vt.endsWith("Styles"))),mt=reactExports.forwardRef((vt,pt)=>{const{as:gt,element:yt,...$t}=vt,xt=ht.map(bt=>vt[bt]),Ct=reactExports.useMemo(()=>ht.reduce((bt,St)=>($t[St]!=null&&ft[St]!=null?bt[St]=mergeStyles(ft[St],$t[St]):bt[St]=$t[St]||ft[St],bt),{}),[xt]);return jsx(s,{ref:pt,...ft,...$t,...Ct,as:gt!=null?gt:ut,element:yt||dt})});return mt.displayName=`TastyWrappedComponent(${getDisplayName(s,(ct=(lt=ft.qa)!=null?lt:ut)!=null?ct:"Anonymous")})`,mt}const et=s;let{as:tt="div",element:rt,styles:nt,styleProps:at,variants:it,...ot}=et,st;if(it){const ut=Object.keys(it).reduce((dt,ft)=>{const ht=it==null?void 0:it[ft];return dt[ft]=tasty({as:tt,styles:mergeStyles(nt,ht),styleProps:at,...ot}),dt},{});ut.default||(ut.default=tasty({as:tt,styles:nt,styleProps:at,...ot})),st=reactExports.forwardRef((dt,ft)=>{const{variant:ht,...mt}=dt,vt=ut[ht]||ut.default;return jsx(vt,{...mt,ref:ft})})}else{let ut=styled[tt](({$css:vt})=>vt);const dt=cacheWrapper(vt=>renderStyles(nt||{},pointsToZones(vt)));let{qa:ft,qaVal:ht,...mt}=ot!=null?ot:{};st=reactExports.forwardRef((vt,pt)=>{let{as:gt,styles:yt,variant:$t,breakpoints:xt,mods:Ct,element:bt,qa:St,qaVal:_t,...wt}=vt,Rt=(at?at.concat(BASE_STYLES):BASE_STYLES).reduce((kt,It)=>(It in wt&&(kt[It]=wt[It],delete wt[It]),kt),{});Object.keys(Rt).length===0&&(Rt=null),(!yt||yt&&Object.keys(yt).length===0)&&(yt=void 0);const Pt=JSON.stringify(Rt),Et=reactExports.useMemo(()=>JSON.stringify(yt),[yt]),Ot=!Rt&&!yt,Mt=reactExports.useMemo(()=>`${yt?JSON.stringify(yt):""}.${Rt?JSON.stringify(Rt):""}`,[Pt,Et]);let Dt=reactExports.useMemo(()=>Ot?nt:mergeStyles(nt,yt,Rt),[Mt]),At=reactExports.useContext(BreakpointsContext);xt=xt!=null?xt:At;let Nt=reactExports.useMemo(()=>Ot?dt(xt):renderStyles(Dt,pointsToZones(xt)),[Dt,xt]);return Ct&&Object.assign(wt,_modAttrs(Ct)),jsx(ut,{as:gt!=null?gt:tt,"data-element":bt||rt,"data-qa":St||ft,"data-qaval":_t||ht,...mt,...wt,ref:pt,$css:Nt})})}return st.displayName=`TastyComponent(${ot.qa||tt})`,st}const Element$1=tasty({});/**
|
|
419
419
|
* @license MIT
|
|
420
420
|
* author: Cube Dev Team
|
|
421
|
-
* @cube-dev/ui-kit v0.
|
|
421
|
+
* @cube-dev/ui-kit v0.31.2
|
|
422
422
|
* Released under the MIT license.
|
|
423
423
|
*/const DOMPropNames=new Set(["id"]),labelablePropNames=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),BasePropNames=new Set(["role","as","element","css","qa","mods","qaVal","hidden","isHidden","disabled","isDisabled","children","style","className","href","target","tabIndex"]),ignoreEventPropsNames=new Set(["onPress","onHoverStart","onHoverEnd","onPressStart","onPressEnd"]),propRe=/^((data-).*)$/,eventRe=/^on[A-Z].+$/;function filterBaseProps(s,j={}){let{labelable:et,propNames:tt,eventProps:rt}=j,nt={};for(const at in s)Object.prototype.hasOwnProperty.call(s,at)&&(DOMPropNames.has(at)||BasePropNames.has(at)||et&&labelablePropNames.has(at)||rt&&eventRe.test(at)&&!ignoreEventPropsNames.has(at)||tt!=null&&tt.has(at)||propRe.test(at))&&(nt[at]=s[at]);return nt}/**
|
|
424
424
|
* @license MIT
|
|
425
425
|
* author: Cube Dev Team
|
|
426
|
-
* @cube-dev/ui-kit v0.
|
|
426
|
+
* @cube-dev/ui-kit v0.31.2
|
|
427
427
|
* Released under the MIT license.
|
|
428
428
|
*/const dotize={valTypes:{none:"NONE",primitive:"PRIM",object:"OBJECT",array:"ARRAY"},getValType:function(s){if(!s||typeof s!="object"||Array.isArray(s))return dotize.valTypes.primitive;if(typeof s=="object")return dotize.valTypes.object},getPathType:function(s){let j=[];for(let et in s){let tt=s[et];tt?dotize.isNumber(tt)?j.push(dotize.valTypes.array):j.push(dotize.valTypes.object):j.push(dotize.valTypes.none)}return j},isUndefined:function(s){return typeof s=="undefined"},isNumber:function(s){return!isNaN(parseInt(s))},isEmptyObj:function(s){for(let j in s)if(Object.hasOwnProperty.call(s,j))return!1;return JSON.stringify(s)===JSON.stringify({})},isPlainObject:function(s){return typeof s!="object"||s===null?!1:Object.getPrototypeOf(s)===Object.prototype},isNotObject:function(s){return!s||!this.isPlainObject(s)},isEmptyArray:function(s){return Array.isArray(s)&&s.length==0},isNotArray:function(s){return Array.isArray(s)==!1},removeEmptyArrayItem:function(s){return s.filter(function(j){return j!=null&&j!=""})},getFieldName:function(s,j,et,tt,rt){return rt?(j||"")+(dotize.isNumber(s)?"["+s+"]":(et&&!j?"":".")+s):tt?(j||"")+"["+s+"]":(j?j+".":"")+s},startsWith:function(s,j){return s.indexOf(j)==0},convert:function(s,j=""){let et={};return dotize.isNotObject(s)?j?(et[j]=s,et):s:function tt(rt,nt,at){let it=Array.isArray(rt);for(let ot in rt){let st=rt[ot];st&&typeof st=="object"&&!Array.isArray(st)&&dotize.isPlainObject(st)?it&&dotize.isEmptyObj(st)==!1?et=tt(st,dotize.getFieldName(ot,nt,at,!0)):dotize.isEmptyObj(st)==!1?et=tt(st,dotize.getFieldName(ot,nt,at)):dotize.isEmptyObj(st)&&(et[dotize.getFieldName(ot,nt,at,it)]=st):it||dotize.isNumber(ot)?et[dotize.getFieldName(ot,nt,at,!0)]=st:et[dotize.getFieldName(ot,nt,at)]=st}return et}(s,j,!0)},backward:function(s,j){let et={},tt=/\[(\d+)\]/g;if(dotize.isNotObject(s)&&dotize.isNotArray(s))return j?s[j]:s;for(let at in s){let it=s[at];if(j){let ot=new RegExp("^"+j);at=at.replace(ot,"")}at=at.replace(tt,".$1"),dotize.startsWith(at,".")&&(at=at.replace(/^\./,""));var rt=at.split("."),nt=dotize.getPathType(rt);!dotize.isUndefined(nt)&&nt[0]==dotize.valTypes.array&&Array.isArray(et)==!1&&(et=[]),function ot(st,lt,ct,ut){let dt=rt.shift(),ft=nt.shift();if(typeof dt=="undefined"||dt==""){et=st;return}let ht=ft==dotize.valTypes.array;if(dotize.isNumber(dt)&&(dt=parseInt(dt)),rt.length>0){typeof lt[dt]=="undefined"&&(ht?lt[dt]=[]:lt[dt]={}),ot(st,lt[dt],dt,lt);return}ft==dotize.valTypes.array&&ct&&ut?(Array.isArray(ut[ct])==!1&&(ut[ct]=[]),ut[ct].push(st)):lt[dt]=st}(it,et)}return et}};/**
|
|
429
429
|
* @license MIT
|
|
430
430
|
* author: Cube Dev Team
|
|
431
|
-
* @cube-dev/ui-kit v0.
|
|
431
|
+
* @cube-dev/ui-kit v0.31.2
|
|
432
432
|
* Released under the MIT license.
|
|
433
433
|
*/function chain$2(...s){return(...j)=>{for(let et of s)typeof et=="function"&&et(...j)}}function r$3(s){var j,et,tt="";if(typeof s=="string"||typeof s=="number")tt+=s;else if(typeof s=="object")if(Array.isArray(s))for(j=0;j<s.length;j++)s[j]&&(et=r$3(s[j]))&&(tt&&(tt+=" "),tt+=et);else for(j in s)s[j]&&(tt&&(tt+=" "),tt+=j);return tt}function clsx$1(){for(var s,j,et=0,tt="";et<arguments.length;)(s=arguments[et++])&&(j=r$3(s))&&(tt&&(tt+=" "),tt+=j);return tt}const $b5e257d569688ac6$var$defaultContext={prefix:String(Math.round(Math.random()*1e10)),current:0},$b5e257d569688ac6$var$SSRContext=React.createContext($b5e257d569688ac6$var$defaultContext),$b5e257d569688ac6$var$IsSSRContext=React.createContext(!1);let $b5e257d569688ac6$var$canUseDOM=!!(typeof window!="undefined"&&window.document&&window.document.createElement),$b5e257d569688ac6$var$componentIds=new WeakMap;function $b5e257d569688ac6$var$useCounter(s=!1){let j=reactExports.useContext($b5e257d569688ac6$var$SSRContext),et=reactExports.useRef(null);if(et.current===null&&!s){var tt,rt;let nt=(rt=React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||rt===void 0||(tt=rt.ReactCurrentOwner)===null||tt===void 0?void 0:tt.current;if(nt){let at=$b5e257d569688ac6$var$componentIds.get(nt);at==null?$b5e257d569688ac6$var$componentIds.set(nt,{id:j.current,state:nt.memoizedState}):nt.memoizedState!==at.state&&(j.current=at.id,$b5e257d569688ac6$var$componentIds.delete(nt))}et.current=++j.current}return et.current}function $b5e257d569688ac6$var$useLegacySSRSafeId(s){let j=reactExports.useContext($b5e257d569688ac6$var$SSRContext);j===$b5e257d569688ac6$var$defaultContext&&!$b5e257d569688ac6$var$canUseDOM&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let et=$b5e257d569688ac6$var$useCounter(!!s),tt=`react-aria${j.prefix}`;return s||`${tt}-${et}`}function $b5e257d569688ac6$var$useModernSSRSafeId(s){let j=React.useId(),[et]=reactExports.useState($b5e257d569688ac6$export$535bd6ca7f90a273()),tt=et?"react-aria":`react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;return s||`${tt}-${j}`}const $b5e257d569688ac6$export$619500959fc48b26=typeof React.useId=="function"?$b5e257d569688ac6$var$useModernSSRSafeId:$b5e257d569688ac6$var$useLegacySSRSafeId;function $b5e257d569688ac6$var$getSnapshot(){return!1}function $b5e257d569688ac6$var$getServerSnapshot(){return!0}function $b5e257d569688ac6$var$subscribe(s){return()=>{}}function $b5e257d569688ac6$export$535bd6ca7f90a273(){return typeof React.useSyncExternalStore=="function"?React.useSyncExternalStore($b5e257d569688ac6$var$subscribe,$b5e257d569688ac6$var$getSnapshot,$b5e257d569688ac6$var$getServerSnapshot):reactExports.useContext($b5e257d569688ac6$var$IsSSRContext)}/**
|
|
434
434
|
* @license MIT
|
|
435
435
|
* author: Cube Dev Team
|
|
436
|
-
* @cube-dev/ui-kit v0.
|
|
436
|
+
* @cube-dev/ui-kit v0.31.2
|
|
437
437
|
* Released under the MIT license.
|
|
438
438
|
*/const useLayoutEffect=typeof window!="undefined"?reactExports.useLayoutEffect:reactExports.useEffect;/**
|
|
439
439
|
* @license MIT
|
|
440
440
|
* author: Cube Dev Team
|
|
441
|
-
* @cube-dev/ui-kit v0.
|
|
441
|
+
* @cube-dev/ui-kit v0.31.2
|
|
442
442
|
* Released under the MIT license.
|
|
443
443
|
*/let idsUpdaterMap=new Map;function useId(s){let j=reactExports.useRef(!0);j.current=!0;let[et,tt]=reactExports.useState(s),rt=reactExports.useRef(null),nt=it=>{j.current?rt.current=it:tt(it)};useLayoutEffect(()=>{j.current=!1}),reactExports.useEffect(()=>{let it=rt.current;it&&(tt(it),rt.current=null)},[tt,nt]);let at=$b5e257d569688ac6$export$619500959fc48b26(et);return idsUpdaterMap.set(at,nt),at}function mergeIds(s,j){if(s===j)return s;let et=idsUpdaterMap.get(s);if(et)return et(j),j;let tt=idsUpdaterMap.get(j);return tt?(tt(s),s):j}/**
|
|
444
444
|
* @license MIT
|
|
445
445
|
* author: Cube Dev Team
|
|
446
|
-
* @cube-dev/ui-kit v0.
|
|
446
|
+
* @cube-dev/ui-kit v0.31.2
|
|
447
447
|
* Released under the MIT license.
|
|
448
448
|
*/function mergeProps(...s){let j={};for(let et of s){for(let tt in j)/^on[A-Z]/.test(tt)&&typeof j[tt]=="function"&&et&&typeof et[tt]=="function"?j[tt]=chain$2(j[tt],et[tt]):tt==="className"&&typeof j.className=="string"&&et&&typeof et.className=="string"?j[tt]=clsx$1(j.className,et.className):(tt==="styles"||tt.endsWith("Styles"))&&typeof j.styles=="object"&&et&&typeof et.styles=="object"?j[tt]=mergeStyles(j[tt],et[tt]):tt==="mods"&&j.mods&&(et!=null&&et.mods)?j.mods={...j.mods,...et==null?void 0:et.mods}:tt==="id"&&j.id&&(et!=null&&et.id)?j.id=mergeIds(j.id,et==null?void 0:et.id):j[tt]=et&&et[tt]!==void 0?et[tt]:j[tt];for(let tt in et)j[tt]===void 0&&(j[tt]=et[tt])}return j}/**
|
|
449
449
|
* @license MIT
|
|
450
450
|
* author: Cube Dev Team
|
|
451
|
-
* @cube-dev/ui-kit v0.
|
|
451
|
+
* @cube-dev/ui-kit v0.31.2
|
|
452
452
|
* Released under the MIT license.
|
|
453
453
|
*/const INITIAL_VALUE={};let SlotContext=reactExports.createContext(INITIAL_VALUE);function useSlotProps(s,j){var nt;let et=s.slot||j,rt=((nt=reactExports.useContext(SlotContext))!=null?nt:INITIAL_VALUE)[et];return mergeProps(rt,s)}function SlotProvider(s){var nt;let j=(nt=reactExports.useContext(SlotContext))!=null?nt:INITIAL_VALUE,{slots:et={},children:tt}=s,rt=reactExports.useMemo(()=>Object.keys(j).concat(Object.keys(et)).reduce((at,it)=>{var ot,st;return{...at,[it]:mergeProps((ot=j[it])!=null?ot:{},(st=et[it])!=null?st:{})}},{}),[j,et]);return jsx(SlotContext.Provider,{value:rt,children:tt})}function ClearSlots(s){const{children:j,...et}=s;let tt=j;return reactExports.Children.toArray(j).length<=1&&typeof j=="function"&&(tt=reactExports.cloneElement(reactExports.Children.only(j),et)),jsx(SlotContext.Provider,{value:INITIAL_VALUE,children:tt})}/**
|
|
454
454
|
* @license MIT
|
|
455
455
|
* author: Cube Dev Team
|
|
456
|
-
* @cube-dev/ui-kit v0.
|
|
456
|
+
* @cube-dev/ui-kit v0.31.2
|
|
457
457
|
* Released under the MIT license.
|
|
458
458
|
*/function useCombinedRefs(...s){const j=reactExports.useRef();return reactExports.useEffect(()=>{s.forEach(et=>{et&&(typeof et=="function"?et(j.current):et.current=j.current)})},[s]),j}/**
|
|
459
459
|
* @license MIT
|
|
460
460
|
* author: Cube Dev Team
|
|
461
|
-
* @cube-dev/ui-kit v0.
|
|
461
|
+
* @cube-dev/ui-kit v0.31.2
|
|
462
462
|
* Released under the MIT license.
|
|
463
463
|
*/function wrapNodeIfPlain(s,j){const et=s&&(Array.isArray(s)||reactIsExports$1.isFragment(s));return!s||!et&&reactExports.isValidElement(s)?s:j()}/**
|
|
464
464
|
* @license MIT
|
|
465
465
|
* author: Cube Dev Team
|
|
466
|
-
* @cube-dev/ui-kit v0.
|
|
466
|
+
* @cube-dev/ui-kit v0.31.2
|
|
467
467
|
* Released under the MIT license.
|
|
468
468
|
*/let visualViewport=typeof window!="undefined"&&window.visualViewport;function useViewportSize(s={}){const{isDisabled:j}=s;let[et,tt]=reactExports.useState(()=>getViewportSize());return reactExports.useEffect(()=>{if(j)return;let rt=()=>{tt(nt=>{let at=getViewportSize();return at.width===nt.width&&at.height===nt.height?nt:at})};return visualViewport?visualViewport.addEventListener("resize",rt):window.addEventListener("resize",rt),()=>{visualViewport?visualViewport.removeEventListener("resize",rt):window.removeEventListener("resize",rt)}},[j]),et}function getViewportSize(){return{width:visualViewport&&visualViewport.width||(typeof window!="undefined"?window.innerWidth:0),height:visualViewport&&visualViewport.height||(typeof window!="undefined"?window.innerHeight:0)}}/**
|
|
469
469
|
* @license MIT
|
|
470
470
|
* author: Cube Dev Team
|
|
471
|
-
* @cube-dev/ui-kit v0.
|
|
471
|
+
* @cube-dev/ui-kit v0.31.2
|
|
472
472
|
* Released under the MIT license.
|
|
473
473
|
*/const STYLE_LIST$6=[...BASE_STYLES,...TEXT_STYLES,...COLOR_STYLES],TEXT_PROP_MAP={transform:"textTransform",weight:"fontWeight",italic:"fontStyle"},TextElement=tasty({qa:"Text",as:"span",styles:{display:{"":"inline","ellipsis | block":"block"},margin:"0",whiteSpace:{"":"inherit","nowrap | ellipsis":"nowrap"},textOverflow:{"":!1,ellipsis:"ellipsis"},overflow:{"":!1,ellipsis:"hidden"},width:{"":!1,ellipsis:"max 100%"}}}),_Text=reactExports.forwardRef(function(j,et){j=useSlotProps(j,"text");const{as:tt,qa:rt,block:nt,styleName:at,ellipsis:it,nowrap:ot,...st}=j,lt=extractStyles(st,STYLE_LIST$6,{},TEXT_PROP_MAP);return jsx(TextElement,{as:tt||"span",qa:rt||"Text",styleName:at,mods:{nowrap:ot,ellipsis:!!it,block:!!nt},...filterBaseProps(st,{eventProps:!0}),ref:et,styles:lt})}),Text$7=Object.assign(_Text,{Minor:reactExports.forwardRef(function(j,et){return jsx(_Text,{ref:et,color:"#minor",...j})}),Danger:reactExports.forwardRef(function(j,et){return jsx(_Text,{ref:et,role:"alert",color:"#danger-text",...j})}),Success:reactExports.forwardRef(function(j,et){return jsx(_Text,{ref:et,color:"#success-text",...j})}),Strong:reactExports.forwardRef(function(j,et){return jsx(_Text,{ref:et,as:"strong",preset:"strong",color:"#dark",...j})}),Emphasis:reactExports.forwardRef(function(j,et){return jsx(_Text,{ref:et,as:"em",preset:"em",...j})}),Selection:reactExports.forwardRef(function(j,et){return jsx(_Text,{ref:et,color:"#dark",fill:"#note.30",...j})})});/**
|
|
474
474
|
* @license MIT
|
|
475
475
|
* author: Cube Dev Team
|
|
476
|
-
* @cube-dev/ui-kit v0.
|
|
476
|
+
* @cube-dev/ui-kit v0.31.2
|
|
477
477
|
* Released under the MIT license.
|
|
478
478
|
*/const STYLE_LIST$5=[...TEXT_STYLES,...CONTAINER_STYLES],TitleElement=tasty({qa:"Title",as:"h1",styles:{gridArea:"heading",display:"block",color:"#dark",preset:{"":"h6",'[data-level="1"]':"h1",'[data-level="2"]':"h2",'[data-level="3"]':"h3",'[data-level="4"]':"h4",'[data-level="5"]':"h5",'[data-level="6"]':"h6"},margin:"0",whiteSpace:{"":"inherit","nowrap | ellipsis":"nowrap"},textOverflow:{"":!1,ellipsis:"ellipsis"},overflow:{"":!1,ellipsis:"hidden"},width:{"":!1,ellipsis:"max 100%"}}}),_Title=reactExports.forwardRef(function({qa:j,as:et,styleName:tt,inline:rt,nowrap:nt,ellipsis:at,level:it,...ot},st){const lt=useSlotProps(ot,"heading"),ct=`h${it||1}`,ut=extractStyles(lt,STYLE_LIST$5,{},TEXT_PROP_MAP);return jsx(TitleElement,{qa:j||"Title",as:et||ct,styleName:tt,"data-level":it||1,mods:{nowrap:nt,ellipsis:at},inline:rt,...filterBaseProps(lt,{eventProps:!0}),ref:st,styles:ut})}),Title$2=Object.assign(_Title,{Danger:reactExports.forwardRef(function(j,et){return jsx(Title$2,{ref:et,color:"#danger-text",...j})}),Success:reactExports.forwardRef(function(j,et){return jsx(Title$2,{ref:et,color:"#success-text",...j})})});/**
|
|
479
479
|
* @license MIT
|
|
480
480
|
* author: Cube Dev Team
|
|
481
|
-
* @cube-dev/ui-kit v0.
|
|
481
|
+
* @cube-dev/ui-kit v0.31.2
|
|
482
482
|
* Released under the MIT license.
|
|
483
483
|
*/const DEFAULT_STYLES$2={preset:"p3",color:"#dark.75",display:"block"},STYLE_PROPS$2=[...CONTAINER_STYLES,...TEXT_STYLES],Paragraph$5=reactExports.forwardRef(function(j,et){const tt=extractStyles(j,STYLE_PROPS$2,DEFAULT_STYLES$2);return jsx(Text$7,{as:"p",qa:"Paragraph",...j,ref:et,styles:tt})});function _check_private_redeclaration(s,j){if(j.has(s))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _class_private_field_init(s,j,et){_check_private_redeclaration(s,j),j.set(s,et)}function $2b4dce13dd5a17fa$export$842a2cf37af977e1(s,j){return s-j*Math.floor(s/j)}const $3b62074eb05584b2$var$EPOCH=1721426;function $3b62074eb05584b2$export$f297eb839006d339(s,j,et,tt){j=$3b62074eb05584b2$export$c36e0ecb2d4fa69d(s,j);let rt=j-1,nt=-2;return et<=2?nt=0:$3b62074eb05584b2$export$553d7fa8e3805fc0(j)&&(nt=-1),$3b62074eb05584b2$var$EPOCH-1+365*rt+Math.floor(rt/4)-Math.floor(rt/100)+Math.floor(rt/400)+Math.floor((367*et-362)/12+nt+tt)}function $3b62074eb05584b2$export$553d7fa8e3805fc0(s){return s%4===0&&(s%100!==0||s%400===0)}function $3b62074eb05584b2$export$c36e0ecb2d4fa69d(s,j){return s==="BC"?1-j:j}function $3b62074eb05584b2$export$4475b7e617eb123c(s){let j="AD";return s<=0&&(j="BC",s=1-s),[j,s]}const $3b62074eb05584b2$var$daysInMonth={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 $3b62074eb05584b2$export$80ee6245ec4f29ec{fromJulianDay(j){let et=j,tt=et-$3b62074eb05584b2$var$EPOCH,rt=Math.floor(tt/146097),nt=$2b4dce13dd5a17fa$export$842a2cf37af977e1(tt,146097),at=Math.floor(nt/36524),it=$2b4dce13dd5a17fa$export$842a2cf37af977e1(nt,36524),ot=Math.floor(it/1461),st=$2b4dce13dd5a17fa$export$842a2cf37af977e1(it,1461),lt=Math.floor(st/365),ct=rt*400+at*100+ot*4+lt+(at!==4&<!==4?1:0),[ut,dt]=$3b62074eb05584b2$export$4475b7e617eb123c(ct),ft=et-$3b62074eb05584b2$export$f297eb839006d339(ut,dt,1,1),ht=2;et<$3b62074eb05584b2$export$f297eb839006d339(ut,dt,3,1)?ht=0:$3b62074eb05584b2$export$553d7fa8e3805fc0(dt)&&(ht=1);let mt=Math.floor(((ft+ht)*12+373)/367),vt=et-$3b62074eb05584b2$export$f297eb839006d339(ut,dt,mt,1)+1;return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(ut,dt,mt,vt)}toJulianDay(j){return $3b62074eb05584b2$export$f297eb839006d339(j.era,j.year,j.month,j.day)}getDaysInMonth(j){return $3b62074eb05584b2$var$daysInMonth[$3b62074eb05584b2$export$553d7fa8e3805fc0(j.year)?"leapyear":"standard"][j.month-1]}getMonthsInYear(j){return 12}getDaysInYear(j){return $3b62074eb05584b2$export$553d7fa8e3805fc0(j.year)?366:365}getYearsInEra(j){return 9999}getEras(){return["BC","AD"]}isInverseEra(j){return j.era==="BC"}balanceDate(j){j.year<=0&&(j.era=j.era==="BC"?"AD":"BC",j.year=1-j.year)}constructor(){this.identifier="gregory"}}const $2fe286d2fb449abb$export$7a5acbd77d414bd9={"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 $14e0f24ef4ac5c92$export$ea39ec197993aef0(s,j){return j=$11d87f3f76e88657$export$b4a036af3fc0b032(j,s.calendar),s.era===j.era&&s.year===j.year&&s.month===j.month&&s.day===j.day}function $14e0f24ef4ac5c92$export$91b62ebf2ba703ee(s,j){return s.calendar.identifier===j.calendar.identifier&&s.era===j.era&&s.year===j.year&&s.month===j.month&&s.day===j.day}function $14e0f24ef4ac5c92$export$629b0a497aa65267(s,j){return $14e0f24ef4ac5c92$export$ea39ec197993aef0(s,$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(j))}function $14e0f24ef4ac5c92$export$2061056d06d7cdf7(s,j){let et=s.calendar.toJulianDay(s),tt=Math.ceil(et+1-$14e0f24ef4ac5c92$var$getWeekStart(j))%7;return tt<0&&(tt+=7),tt}function $14e0f24ef4ac5c92$export$461939dd4422153(s){return $11d87f3f76e88657$export$1b96692a1ba042ac(Date.now(),s)}function $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(s){return $11d87f3f76e88657$export$93522d1a439f3617($14e0f24ef4ac5c92$export$461939dd4422153(s))}function $14e0f24ef4ac5c92$export$68781ddf31c0090f(s,j){return s.calendar.toJulianDay(s)-j.calendar.toJulianDay(j)}function $14e0f24ef4ac5c92$export$c19a80a9721b80f6(s,j){return $14e0f24ef4ac5c92$var$timeToMs(s)-$14e0f24ef4ac5c92$var$timeToMs(j)}function $14e0f24ef4ac5c92$var$timeToMs(s){return s.hour*36e5+s.minute*6e4+s.second*1e3+s.millisecond}let $14e0f24ef4ac5c92$var$localTimeZone=null;function $14e0f24ef4ac5c92$export$aa8b41735afcabd2(){return $14e0f24ef4ac5c92$var$localTimeZone==null&&($14e0f24ef4ac5c92$var$localTimeZone=new Intl.DateTimeFormat().resolvedOptions().timeZone),$14e0f24ef4ac5c92$var$localTimeZone}function $14e0f24ef4ac5c92$export$a5a3b454ada2268e(s){return s.subtract({days:s.day-1})}function $14e0f24ef4ac5c92$export$a2258d9c4118825c(s){return s.add({days:s.calendar.getDaysInMonth(s)-s.day})}function $14e0f24ef4ac5c92$export$f91e89d3d0406102(s){return $14e0f24ef4ac5c92$export$a5a3b454ada2268e(s.subtract({months:s.month-1}))}function $14e0f24ef4ac5c92$export$5412ac11713b72ad(s){return s.calendar.getMinimumMonthInYear?s.calendar.getMinimumMonthInYear(s):1}function $14e0f24ef4ac5c92$export$b2f4953d301981d5(s){return s.calendar.getMinimumDayInMonth?s.calendar.getMinimumDayInMonth(s):1}function $14e0f24ef4ac5c92$export$42c81a444fbfb5d4(s,j){let et=$14e0f24ef4ac5c92$export$2061056d06d7cdf7(s,j);return s.subtract({days:et})}function $14e0f24ef4ac5c92$export$ef8b6d9133084f4e(s,j){return $14e0f24ef4ac5c92$export$42c81a444fbfb5d4(s,j).add({days:6})}const $14e0f24ef4ac5c92$var$cachedRegions=new Map;function $14e0f24ef4ac5c92$var$getRegion(s){if(Intl.Locale){let et=$14e0f24ef4ac5c92$var$cachedRegions.get(s);return et||(et=new Intl.Locale(s).maximize().region,et&&$14e0f24ef4ac5c92$var$cachedRegions.set(s,et)),et}let j=s.split("-")[1];return j==="u"?void 0:j}function $14e0f24ef4ac5c92$var$getWeekStart(s){let j=$14e0f24ef4ac5c92$var$getRegion(s);return j&&$2fe286d2fb449abb$export$7a5acbd77d414bd9[j]||0}function $14e0f24ef4ac5c92$export$ccc1b2479e7dd654(s,j){let et=s.calendar.getDaysInMonth(s);return Math.ceil(($14e0f24ef4ac5c92$export$2061056d06d7cdf7($14e0f24ef4ac5c92$export$a5a3b454ada2268e(s),j)+et)/7)}function $14e0f24ef4ac5c92$export$5c333a116e949cdd(s,j){return s&&j?s.compare(j)<=0?s:j:s||j}function $14e0f24ef4ac5c92$export$a75f2bff57811055(s,j){return s&&j?s.compare(j)>=0?s:j:s||j}function $11d87f3f76e88657$export$bd4fb2bc8bb06fb(s){s=$11d87f3f76e88657$export$b4a036af3fc0b032(s,new $3b62074eb05584b2$export$80ee6245ec4f29ec);let j=$3b62074eb05584b2$export$c36e0ecb2d4fa69d(s.era,s.year);return $11d87f3f76e88657$var$epochFromParts(j,s.month,s.day,s.hour,s.minute,s.second,s.millisecond)}function $11d87f3f76e88657$var$epochFromParts(s,j,et,tt,rt,nt,at){let it=new Date;return it.setUTCHours(tt,rt,nt,at),it.setUTCFullYear(s,j-1,et),it.getTime()}function $11d87f3f76e88657$export$59c99f3515d3493f(s,j){if(j==="UTC")return 0;if(s>0&&j===$14e0f24ef4ac5c92$export$aa8b41735afcabd2())return new Date(s).getTimezoneOffset()*-6e4;let{year:et,month:tt,day:rt,hour:nt,minute:at,second:it}=$11d87f3f76e88657$var$getTimeZoneParts(s,j);return $11d87f3f76e88657$var$epochFromParts(et,tt,rt,nt,at,it,0)-Math.floor(s/1e3)*1e3}const $11d87f3f76e88657$var$formattersByTimeZone=new Map;function $11d87f3f76e88657$var$getTimeZoneParts(s,j){let et=$11d87f3f76e88657$var$formattersByTimeZone.get(j);et||(et=new Intl.DateTimeFormat("en-US",{timeZone:j,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),$11d87f3f76e88657$var$formattersByTimeZone.set(j,et));let tt=et.formatToParts(new Date(s)),rt={};for(let nt of tt)nt.type!=="literal"&&(rt[nt.type]=nt.value);return{year:rt.era==="BC"||rt.era==="B"?-rt.year+1:+rt.year,month:+rt.month,day:+rt.day,hour:rt.hour==="24"?0:+rt.hour,minute:+rt.minute,second:+rt.second}}const $11d87f3f76e88657$var$DAYMILLIS=864e5;function $11d87f3f76e88657$var$getValidWallTimes(s,j,et,tt){return(et===tt?[et]:[et,tt]).filter(nt=>$11d87f3f76e88657$var$isValidWallTime(s,j,nt))}function $11d87f3f76e88657$var$isValidWallTime(s,j,et){let tt=$11d87f3f76e88657$var$getTimeZoneParts(et,j);return s.year===tt.year&&s.month===tt.month&&s.day===tt.day&&s.hour===tt.hour&&s.minute===tt.minute&&s.second===tt.second}function $11d87f3f76e88657$export$5107c82f94518f5c(s,j,et="compatible"){let tt=$11d87f3f76e88657$export$b21e0b124e224484(s);if(j==="UTC")return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(tt);if(j===$14e0f24ef4ac5c92$export$aa8b41735afcabd2()&&et==="compatible"){tt=$11d87f3f76e88657$export$b4a036af3fc0b032(tt,new $3b62074eb05584b2$export$80ee6245ec4f29ec);let ot=new Date,st=$3b62074eb05584b2$export$c36e0ecb2d4fa69d(tt.era,tt.year);return ot.setFullYear(st,tt.month-1,tt.day),ot.setHours(tt.hour,tt.minute,tt.second,tt.millisecond),ot.getTime()}let rt=$11d87f3f76e88657$export$bd4fb2bc8bb06fb(tt),nt=$11d87f3f76e88657$export$59c99f3515d3493f(rt-$11d87f3f76e88657$var$DAYMILLIS,j),at=$11d87f3f76e88657$export$59c99f3515d3493f(rt+$11d87f3f76e88657$var$DAYMILLIS,j),it=$11d87f3f76e88657$var$getValidWallTimes(tt,j,rt-nt,rt-at);if(it.length===1)return it[0];if(it.length>1)switch(et){case"compatible":case"earlier":return it[0];case"later":return it[it.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(et){case"earlier":return Math.min(rt-nt,rt-at);case"compatible":case"later":return Math.max(rt-nt,rt-at);case"reject":throw new RangeError("No such absolute time found")}}function $11d87f3f76e88657$export$e67a095c620b86fe(s,j,et="compatible"){return new Date($11d87f3f76e88657$export$5107c82f94518f5c(s,j,et))}function $11d87f3f76e88657$export$1b96692a1ba042ac(s,j){let et=$11d87f3f76e88657$export$59c99f3515d3493f(s,j),tt=new Date(s+et),rt=tt.getUTCFullYear(),nt=tt.getUTCMonth()+1,at=tt.getUTCDate(),it=tt.getUTCHours(),ot=tt.getUTCMinutes(),st=tt.getUTCSeconds(),lt=tt.getUTCMilliseconds();return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(rt,nt,at,j,et,it,ot,st,lt)}function $11d87f3f76e88657$export$93522d1a439f3617(s){return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(s.calendar,s.era,s.year,s.month,s.day)}function $11d87f3f76e88657$export$b21e0b124e224484(s,j){let et=0,tt=0,rt=0,nt=0;if("timeZone"in s)({hour:et,minute:tt,second:rt,millisecond:nt}=s);else if("hour"in s&&!j)return s;return j&&({hour:et,minute:tt,second:rt,millisecond:nt}=j),new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(s.calendar,s.era,s.year,s.month,s.day,et,tt,rt,nt)}function $11d87f3f76e88657$export$d33f79e3ffc3dc83(s){return new $35ea8db9cb2ccb90$export$680ea196effce5f(s.hour,s.minute,s.second,s.millisecond)}function $11d87f3f76e88657$export$b4a036af3fc0b032(s,j){if(s.calendar.identifier===j.identifier)return s;let et=j.fromJulianDay(s.calendar.toJulianDay(s)),tt=s.copy();return tt.calendar=j,tt.era=et.era,tt.year=et.year,tt.month=et.month,tt.day=et.day,$735220c2d4774dd3$export$c4e2ecac49351ef2(tt),tt}function $11d87f3f76e88657$export$84c95a83c799e074(s,j,et){if(s instanceof $35ea8db9cb2ccb90$export$d3b7288e7994edea)return s.timeZone===j?s:$11d87f3f76e88657$export$538b00033cc11c75(s,j);let tt=$11d87f3f76e88657$export$5107c82f94518f5c(s,j,et);return $11d87f3f76e88657$export$1b96692a1ba042ac(tt,j)}function $11d87f3f76e88657$export$83aac07b4c37b25(s){let j=$11d87f3f76e88657$export$bd4fb2bc8bb06fb(s)-s.offset;return new Date(j)}function $11d87f3f76e88657$export$538b00033cc11c75(s,j){let et=$11d87f3f76e88657$export$bd4fb2bc8bb06fb(s)-s.offset;return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(et,j),s.calendar)}const $735220c2d4774dd3$var$ONE_HOUR=36e5;function $735220c2d4774dd3$export$e16d8520af44a096(s,j){let et=s.copy(),tt="hour"in et?$735220c2d4774dd3$var$addTimeFields(et,j):0;$735220c2d4774dd3$var$addYears(et,j.years||0),et.calendar.balanceYearMonth&&et.calendar.balanceYearMonth(et,s),et.month+=j.months||0,$735220c2d4774dd3$var$balanceYearMonth(et),$735220c2d4774dd3$var$constrainMonthDay(et),et.day+=(j.weeks||0)*7,et.day+=j.days||0,et.day+=tt,$735220c2d4774dd3$var$balanceDay(et),et.calendar.balanceDate&&et.calendar.balanceDate(et),et.year<1&&(et.year=1,et.month=1,et.day=1);let rt=et.calendar.getYearsInEra(et);if(et.year>rt){var nt,at;let ot=(nt=(at=et.calendar).isInverseEra)===null||nt===void 0?void 0:nt.call(at,et);et.year=rt,et.month=ot?1:et.calendar.getMonthsInYear(et),et.day=ot?1:et.calendar.getDaysInMonth(et)}et.month<1&&(et.month=1,et.day=1);let it=et.calendar.getMonthsInYear(et);return et.month>it&&(et.month=it,et.day=et.calendar.getDaysInMonth(et)),et.day=Math.max(1,Math.min(et.calendar.getDaysInMonth(et),et.day)),et}function $735220c2d4774dd3$var$addYears(s,j){var et,tt;!((et=(tt=s.calendar).isInverseEra)===null||et===void 0)&&et.call(tt,s)&&(j=-j),s.year+=j}function $735220c2d4774dd3$var$balanceYearMonth(s){for(;s.month<1;)$735220c2d4774dd3$var$addYears(s,-1),s.month+=s.calendar.getMonthsInYear(s);let j=0;for(;s.month>(j=s.calendar.getMonthsInYear(s));)s.month-=j,$735220c2d4774dd3$var$addYears(s,1)}function $735220c2d4774dd3$var$balanceDay(s){for(;s.day<1;)s.month--,$735220c2d4774dd3$var$balanceYearMonth(s),s.day+=s.calendar.getDaysInMonth(s);for(;s.day>s.calendar.getDaysInMonth(s);)s.day-=s.calendar.getDaysInMonth(s),s.month++,$735220c2d4774dd3$var$balanceYearMonth(s)}function $735220c2d4774dd3$var$constrainMonthDay(s){s.month=Math.max(1,Math.min(s.calendar.getMonthsInYear(s),s.month)),s.day=Math.max(1,Math.min(s.calendar.getDaysInMonth(s),s.day))}function $735220c2d4774dd3$export$c4e2ecac49351ef2(s){s.calendar.constrainDate&&s.calendar.constrainDate(s),s.year=Math.max(1,Math.min(s.calendar.getYearsInEra(s),s.year)),$735220c2d4774dd3$var$constrainMonthDay(s)}function $735220c2d4774dd3$export$3e2544e88a25bff8(s){let j={};for(let et in s)typeof s[et]=="number"&&(j[et]=-s[et]);return j}function $735220c2d4774dd3$export$4e2d2ead65e5f7e3(s,j){return $735220c2d4774dd3$export$e16d8520af44a096(s,$735220c2d4774dd3$export$3e2544e88a25bff8(j))}function $735220c2d4774dd3$export$adaa4cf7ef1b65be(s,j){let et=s.copy();return j.era!=null&&(et.era=j.era),j.year!=null&&(et.year=j.year),j.month!=null&&(et.month=j.month),j.day!=null&&(et.day=j.day),$735220c2d4774dd3$export$c4e2ecac49351ef2(et),et}function $735220c2d4774dd3$export$e5d5e1c1822b6e56(s,j){let et=s.copy();return j.hour!=null&&(et.hour=j.hour),j.minute!=null&&(et.minute=j.minute),j.second!=null&&(et.second=j.second),j.millisecond!=null&&(et.millisecond=j.millisecond),$735220c2d4774dd3$export$7555de1e070510cb(et),et}function $735220c2d4774dd3$var$balanceTime(s){s.second+=Math.floor(s.millisecond/1e3),s.millisecond=$735220c2d4774dd3$var$nonNegativeMod(s.millisecond,1e3),s.minute+=Math.floor(s.second/60),s.second=$735220c2d4774dd3$var$nonNegativeMod(s.second,60),s.hour+=Math.floor(s.minute/60),s.minute=$735220c2d4774dd3$var$nonNegativeMod(s.minute,60);let j=Math.floor(s.hour/24);return s.hour=$735220c2d4774dd3$var$nonNegativeMod(s.hour,24),j}function $735220c2d4774dd3$export$7555de1e070510cb(s){s.millisecond=Math.max(0,Math.min(s.millisecond,1e3)),s.second=Math.max(0,Math.min(s.second,59)),s.minute=Math.max(0,Math.min(s.minute,59)),s.hour=Math.max(0,Math.min(s.hour,23))}function $735220c2d4774dd3$var$nonNegativeMod(s,j){let et=s%j;return et<0&&(et+=j),et}function $735220c2d4774dd3$var$addTimeFields(s,j){return s.hour+=j.hours||0,s.minute+=j.minutes||0,s.second+=j.seconds||0,s.millisecond+=j.milliseconds||0,$735220c2d4774dd3$var$balanceTime(s)}function $735220c2d4774dd3$export$7ed87b6bc2506470(s,j){let et=s.copy();return $735220c2d4774dd3$var$addTimeFields(et,j),et}function $735220c2d4774dd3$export$fe34d3a381cd7501(s,j){return $735220c2d4774dd3$export$7ed87b6bc2506470(s,$735220c2d4774dd3$export$3e2544e88a25bff8(j))}function $735220c2d4774dd3$export$d52ced6badfb9a4c(s,j,et,tt){let rt=s.copy();switch(j){case"era":{let it=s.calendar.getEras(),ot=it.indexOf(s.era);if(ot<0)throw new Error("Invalid era: "+s.era);ot=$735220c2d4774dd3$var$cycleValue(ot,et,0,it.length-1,tt==null?void 0:tt.round),rt.era=it[ot],$735220c2d4774dd3$export$c4e2ecac49351ef2(rt);break}case"year":var nt,at;!((nt=(at=rt.calendar).isInverseEra)===null||nt===void 0)&&nt.call(at,rt)&&(et=-et),rt.year=$735220c2d4774dd3$var$cycleValue(s.year,et,-1/0,9999,tt==null?void 0:tt.round),rt.year===-1/0&&(rt.year=1),rt.calendar.balanceYearMonth&&rt.calendar.balanceYearMonth(rt,s);break;case"month":rt.month=$735220c2d4774dd3$var$cycleValue(s.month,et,1,s.calendar.getMonthsInYear(s),tt==null?void 0:tt.round);break;case"day":rt.day=$735220c2d4774dd3$var$cycleValue(s.day,et,1,s.calendar.getDaysInMonth(s),tt==null?void 0:tt.round);break;default:throw new Error("Unsupported field "+j)}return s.calendar.balanceDate&&s.calendar.balanceDate(rt),$735220c2d4774dd3$export$c4e2ecac49351ef2(rt),rt}function $735220c2d4774dd3$export$dd02b3e0007dfe28(s,j,et,tt){let rt=s.copy();switch(j){case"hour":{let nt=s.hour,at=0,it=23;if((tt==null?void 0:tt.hourCycle)===12){let ot=nt>=12;at=ot?12:0,it=ot?23:11}rt.hour=$735220c2d4774dd3$var$cycleValue(nt,et,at,it,tt==null?void 0:tt.round);break}case"minute":rt.minute=$735220c2d4774dd3$var$cycleValue(s.minute,et,0,59,tt==null?void 0:tt.round);break;case"second":rt.second=$735220c2d4774dd3$var$cycleValue(s.second,et,0,59,tt==null?void 0:tt.round);break;case"millisecond":rt.millisecond=$735220c2d4774dd3$var$cycleValue(s.millisecond,et,0,999,tt==null?void 0:tt.round);break;default:throw new Error("Unsupported field "+j)}return rt}function $735220c2d4774dd3$var$cycleValue(s,j,et,tt,rt=!1){if(rt){s+=Math.sign(j),s<et&&(s=tt);let nt=Math.abs(j);j>0?s=Math.ceil(s/nt)*nt:s=Math.floor(s/nt)*nt,s>tt&&(s=et)}else s+=j,s<et?s=tt-(et-s-1):s>tt&&(s=et+(s-tt-1));return s}function $735220c2d4774dd3$export$96b1d28349274637(s,j){let et;if(j.years!=null&&j.years!==0||j.months!=null&&j.months!==0||j.weeks!=null&&j.weeks!==0||j.days!=null&&j.days!==0){let rt=$735220c2d4774dd3$export$e16d8520af44a096($11d87f3f76e88657$export$b21e0b124e224484(s),{years:j.years,months:j.months,weeks:j.weeks,days:j.days});et=$11d87f3f76e88657$export$5107c82f94518f5c(rt,s.timeZone)}else et=$11d87f3f76e88657$export$bd4fb2bc8bb06fb(s)-s.offset;et+=j.milliseconds||0,et+=(j.seconds||0)*1e3,et+=(j.minutes||0)*6e4,et+=(j.hours||0)*36e5;let tt=$11d87f3f76e88657$export$1b96692a1ba042ac(et,s.timeZone);return $11d87f3f76e88657$export$b4a036af3fc0b032(tt,s.calendar)}function $735220c2d4774dd3$export$6814caac34ca03c7(s,j){return $735220c2d4774dd3$export$96b1d28349274637(s,$735220c2d4774dd3$export$3e2544e88a25bff8(j))}function $735220c2d4774dd3$export$9a297d111fc86b79(s,j,et,tt){switch(j){case"hour":{let rt=0,nt=23;if((tt==null?void 0:tt.hourCycle)===12){let ft=s.hour>=12;rt=ft?12:0,nt=ft?23:11}let at=$11d87f3f76e88657$export$b21e0b124e224484(s),it=$11d87f3f76e88657$export$b4a036af3fc0b032($735220c2d4774dd3$export$e5d5e1c1822b6e56(at,{hour:rt}),new $3b62074eb05584b2$export$80ee6245ec4f29ec),ot=[$11d87f3f76e88657$export$5107c82f94518f5c(it,s.timeZone,"earlier"),$11d87f3f76e88657$export$5107c82f94518f5c(it,s.timeZone,"later")].filter(ft=>$11d87f3f76e88657$export$1b96692a1ba042ac(ft,s.timeZone).day===it.day)[0],st=$11d87f3f76e88657$export$b4a036af3fc0b032($735220c2d4774dd3$export$e5d5e1c1822b6e56(at,{hour:nt}),new $3b62074eb05584b2$export$80ee6245ec4f29ec),lt=[$11d87f3f76e88657$export$5107c82f94518f5c(st,s.timeZone,"earlier"),$11d87f3f76e88657$export$5107c82f94518f5c(st,s.timeZone,"later")].filter(ft=>$11d87f3f76e88657$export$1b96692a1ba042ac(ft,s.timeZone).day===st.day).pop(),ct=$11d87f3f76e88657$export$bd4fb2bc8bb06fb(s)-s.offset,ut=Math.floor(ct/$735220c2d4774dd3$var$ONE_HOUR),dt=ct%$735220c2d4774dd3$var$ONE_HOUR;return ct=$735220c2d4774dd3$var$cycleValue(ut,et,Math.floor(ot/$735220c2d4774dd3$var$ONE_HOUR),Math.floor(lt/$735220c2d4774dd3$var$ONE_HOUR),tt==null?void 0:tt.round)*$735220c2d4774dd3$var$ONE_HOUR+dt,$11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ct,s.timeZone),s.calendar)}case"minute":case"second":case"millisecond":return $735220c2d4774dd3$export$dd02b3e0007dfe28(s,j,et,tt);case"era":case"year":case"month":case"day":{let rt=$735220c2d4774dd3$export$d52ced6badfb9a4c($11d87f3f76e88657$export$b21e0b124e224484(s),j,et,tt),nt=$11d87f3f76e88657$export$5107c82f94518f5c(rt,s.timeZone);return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(nt,s.timeZone),s.calendar)}default:throw new Error("Unsupported field "+j)}}function $735220c2d4774dd3$export$31b5430eb18be4f8(s,j,et){let tt=$11d87f3f76e88657$export$b21e0b124e224484(s),rt=$735220c2d4774dd3$export$e5d5e1c1822b6e56($735220c2d4774dd3$export$adaa4cf7ef1b65be(tt,j),j);if(rt.compare(tt)===0)return s;let nt=$11d87f3f76e88657$export$5107c82f94518f5c(rt,s.timeZone,et);return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(nt,s.timeZone),s.calendar)}const $fae977aafc393c5c$var$ABSOLUTE_RE=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function $fae977aafc393c5c$export$5adfdab05168c219(s,j){let et=s.match($fae977aafc393c5c$var$ABSOLUTE_RE);if(!et)throw new Error("Invalid ISO 8601 date time string: "+s);let tt=new $35ea8db9cb2ccb90$export$d3b7288e7994edea($fae977aafc393c5c$var$parseNumber(et[1],1,9999),$fae977aafc393c5c$var$parseNumber(et[2],1,12),1,j,0,et[4]?$fae977aafc393c5c$var$parseNumber(et[4],0,23):0,et[5]?$fae977aafc393c5c$var$parseNumber(et[5],0,59):0,et[6]?$fae977aafc393c5c$var$parseNumber(et[6],0,59):0,et[7]?$fae977aafc393c5c$var$parseNumber(et[7],0,1/0)*1e3:0);tt.day=$fae977aafc393c5c$var$parseNumber(et[3],0,tt.calendar.getDaysInMonth(tt));var rt;return et[8]&&(tt.offset=$fae977aafc393c5c$var$parseNumber(et[8],-23,23)*36e5+$fae977aafc393c5c$var$parseNumber((rt=et[9])!==null&&rt!==void 0?rt:"0",0,59)*6e4),$11d87f3f76e88657$export$538b00033cc11c75(tt,j)}function $fae977aafc393c5c$var$parseNumber(s,j,et){let tt=Number(s);if(tt<j||tt>et)throw new RangeError(`Value out of range: ${j} <= ${tt} <= ${et}`);return tt}function $fae977aafc393c5c$export$f59dee82248f5ad4(s){return`${String(s.hour).padStart(2,"0")}:${String(s.minute).padStart(2,"0")}:${String(s.second).padStart(2,"0")}${s.millisecond?String(s.millisecond/1e3).slice(1):""}`}function $fae977aafc393c5c$export$60dfd74aa96791bd(s){let j=$11d87f3f76e88657$export$b4a036af3fc0b032(s,new $3b62074eb05584b2$export$80ee6245ec4f29ec);return`${String(j.year).padStart(4,"0")}-${String(j.month).padStart(2,"0")}-${String(j.day).padStart(2,"0")}`}function $fae977aafc393c5c$export$4223de14708adc63(s){return`${$fae977aafc393c5c$export$60dfd74aa96791bd(s)}T${$fae977aafc393c5c$export$f59dee82248f5ad4(s)}`}function $fae977aafc393c5c$var$offsetToString(s){let j=Math.sign(s)<0?"-":"+";s=Math.abs(s);let et=Math.floor(s/36e5),tt=s%36e5/6e4;return`${j}${String(et).padStart(2,"0")}:${String(tt).padStart(2,"0")}`}function $fae977aafc393c5c$export$bf79f1ebf4b18792(s){return`${$fae977aafc393c5c$export$4223de14708adc63(s)}${$fae977aafc393c5c$var$offsetToString(s.offset)}[${s.timeZone}]`}function $35ea8db9cb2ccb90$var$shiftArgs(s){let j=typeof s[0]=="object"?s.shift():new $3b62074eb05584b2$export$80ee6245ec4f29ec,et;if(typeof s[0]=="string")et=s.shift();else{let at=j.getEras();et=at[at.length-1]}let tt=s.shift(),rt=s.shift(),nt=s.shift();return[j,et,tt,rt,nt]}var $35ea8db9cb2ccb90$var$_type=new WeakMap;class $35ea8db9cb2ccb90$export$99faa760c7908e4f{copy(){return this.era?new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar,this.era,this.year,this.month,this.day):new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar,this.year,this.month,this.day)}add(j){return $735220c2d4774dd3$export$e16d8520af44a096(this,j)}subtract(j){return $735220c2d4774dd3$export$4e2d2ead65e5f7e3(this,j)}set(j){return $735220c2d4774dd3$export$adaa4cf7ef1b65be(this,j)}cycle(j,et,tt){return $735220c2d4774dd3$export$d52ced6badfb9a4c(this,j,et,tt)}toDate(j){return $11d87f3f76e88657$export$e67a095c620b86fe(this,j)}toString(){return $fae977aafc393c5c$export$60dfd74aa96791bd(this)}compare(j){return $14e0f24ef4ac5c92$export$68781ddf31c0090f(this,j)}constructor(...j){_class_private_field_init(this,$35ea8db9cb2ccb90$var$_type,{writable:!0,value:void 0});let[et,tt,rt,nt,at]=$35ea8db9cb2ccb90$var$shiftArgs(j);this.calendar=et,this.era=tt,this.year=rt,this.month=nt,this.day=at,$735220c2d4774dd3$export$c4e2ecac49351ef2(this)}}var $35ea8db9cb2ccb90$var$_type1=new WeakMap;class $35ea8db9cb2ccb90$export$680ea196effce5f{copy(){return new $35ea8db9cb2ccb90$export$680ea196effce5f(this.hour,this.minute,this.second,this.millisecond)}add(j){return $735220c2d4774dd3$export$7ed87b6bc2506470(this,j)}subtract(j){return $735220c2d4774dd3$export$fe34d3a381cd7501(this,j)}set(j){return $735220c2d4774dd3$export$e5d5e1c1822b6e56(this,j)}cycle(j,et,tt){return $735220c2d4774dd3$export$dd02b3e0007dfe28(this,j,et,tt)}toString(){return $fae977aafc393c5c$export$f59dee82248f5ad4(this)}compare(j){return $14e0f24ef4ac5c92$export$c19a80a9721b80f6(this,j)}constructor(j=0,et=0,tt=0,rt=0){_class_private_field_init(this,$35ea8db9cb2ccb90$var$_type1,{writable:!0,value:void 0}),this.hour=j,this.minute=et,this.second=tt,this.millisecond=rt,$735220c2d4774dd3$export$7555de1e070510cb(this)}}var $35ea8db9cb2ccb90$var$_type2=new WeakMap;class $35ea8db9cb2ccb90$export$ca871e8dbb80966f{copy(){return this.era?new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(j){return $735220c2d4774dd3$export$e16d8520af44a096(this,j)}subtract(j){return $735220c2d4774dd3$export$4e2d2ead65e5f7e3(this,j)}set(j){return $735220c2d4774dd3$export$adaa4cf7ef1b65be($735220c2d4774dd3$export$e5d5e1c1822b6e56(this,j),j)}cycle(j,et,tt){switch(j){case"era":case"year":case"month":case"day":return $735220c2d4774dd3$export$d52ced6badfb9a4c(this,j,et,tt);default:return $735220c2d4774dd3$export$dd02b3e0007dfe28(this,j,et,tt)}}toDate(j,et){return $11d87f3f76e88657$export$e67a095c620b86fe(this,j,et)}toString(){return $fae977aafc393c5c$export$4223de14708adc63(this)}compare(j){let et=$14e0f24ef4ac5c92$export$68781ddf31c0090f(this,j);return et===0?$14e0f24ef4ac5c92$export$c19a80a9721b80f6(this,$11d87f3f76e88657$export$b21e0b124e224484(j)):et}constructor(...j){_class_private_field_init(this,$35ea8db9cb2ccb90$var$_type2,{writable:!0,value:void 0});let[et,tt,rt,nt,at]=$35ea8db9cb2ccb90$var$shiftArgs(j);this.calendar=et,this.era=tt,this.year=rt,this.month=nt,this.day=at,this.hour=j.shift()||0,this.minute=j.shift()||0,this.second=j.shift()||0,this.millisecond=j.shift()||0,$735220c2d4774dd3$export$c4e2ecac49351ef2(this)}}var $35ea8db9cb2ccb90$var$_type3=new WeakMap;class $35ea8db9cb2ccb90$export$d3b7288e7994edea{copy(){return this.era?new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(j){return $735220c2d4774dd3$export$96b1d28349274637(this,j)}subtract(j){return $735220c2d4774dd3$export$6814caac34ca03c7(this,j)}set(j,et){return $735220c2d4774dd3$export$31b5430eb18be4f8(this,j,et)}cycle(j,et,tt){return $735220c2d4774dd3$export$9a297d111fc86b79(this,j,et,tt)}toDate(){return $11d87f3f76e88657$export$83aac07b4c37b25(this)}toString(){return $fae977aafc393c5c$export$bf79f1ebf4b18792(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(j){return this.toDate().getTime()-$11d87f3f76e88657$export$84c95a83c799e074(j,this.timeZone).toDate().getTime()}constructor(...j){_class_private_field_init(this,$35ea8db9cb2ccb90$var$_type3,{writable:!0,value:void 0});let[et,tt,rt,nt,at]=$35ea8db9cb2ccb90$var$shiftArgs(j),it=j.shift(),ot=j.shift();this.calendar=et,this.era=tt,this.year=rt,this.month=nt,this.day=at,this.timeZone=it,this.offset=ot,this.hour=j.shift()||0,this.minute=j.shift()||0,this.second=j.shift()||0,this.millisecond=j.shift()||0,$735220c2d4774dd3$export$c4e2ecac49351ef2(this)}}const $62225008020f0a13$var$ERA_START_DATES=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],$62225008020f0a13$var$ERA_END_DATES=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],$62225008020f0a13$var$ERA_ADDENDS=[1867,1911,1925,1988,2018],$62225008020f0a13$var$ERA_NAMES=["meiji","taisho","showa","heisei","reiwa"];function $62225008020f0a13$var$findEraFromGregorianDate(s){const j=$62225008020f0a13$var$ERA_START_DATES.findIndex(([et,tt,rt])=>s.year<et||s.year===et&&s.month<tt||s.year===et&&s.month===tt&&s.day<rt);return j===-1?$62225008020f0a13$var$ERA_START_DATES.length-1:j===0?0:j-1}function $62225008020f0a13$var$toGregorian(s){let j=$62225008020f0a13$var$ERA_ADDENDS[$62225008020f0a13$var$ERA_NAMES.indexOf(s.era)];if(!j)throw new Error("Unknown era: "+s.era);return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(s.year+j,s.month,s.day)}class $62225008020f0a13$export$b746ab2b60cdffbf extends $3b62074eb05584b2$export$80ee6245ec4f29ec{fromJulianDay(j){let et=super.fromJulianDay(j),tt=$62225008020f0a13$var$findEraFromGregorianDate(et);return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this,$62225008020f0a13$var$ERA_NAMES[tt],et.year-$62225008020f0a13$var$ERA_ADDENDS[tt],et.month,et.day)}toJulianDay(j){return super.toJulianDay($62225008020f0a13$var$toGregorian(j))}balanceDate(j){let et=$62225008020f0a13$var$toGregorian(j),tt=$62225008020f0a13$var$findEraFromGregorianDate(et);$62225008020f0a13$var$ERA_NAMES[tt]!==j.era&&(j.era=$62225008020f0a13$var$ERA_NAMES[tt],j.year=et.year-$62225008020f0a13$var$ERA_ADDENDS[tt]),this.constrainDate(j)}constrainDate(j){let et=$62225008020f0a13$var$ERA_NAMES.indexOf(j.era),tt=$62225008020f0a13$var$ERA_END_DATES[et];if(tt!=null){let[rt,nt,at]=tt,it=rt-$62225008020f0a13$var$ERA_ADDENDS[et];j.year=Math.max(1,Math.min(it,j.year)),j.year===it&&(j.month=Math.min(nt,j.month),j.month===nt&&(j.day=Math.min(at,j.day)))}if(j.year===1&&et>=0){let[,rt,nt]=$62225008020f0a13$var$ERA_START_DATES[et];j.month=Math.max(rt,j.month),j.month===rt&&(j.day=Math.max(nt,j.day))}}getEras(){return $62225008020f0a13$var$ERA_NAMES}getYearsInEra(j){let et=$62225008020f0a13$var$ERA_NAMES.indexOf(j.era),tt=$62225008020f0a13$var$ERA_START_DATES[et],rt=$62225008020f0a13$var$ERA_START_DATES[et+1];if(rt==null)return 9999-tt[0]+1;let nt=rt[0]-tt[0];return(j.month<rt[1]||j.month===rt[1]&&j.day<rt[2])&&nt++,nt}getDaysInMonth(j){return super.getDaysInMonth($62225008020f0a13$var$toGregorian(j))}getMinimumMonthInYear(j){let et=$62225008020f0a13$var$getMinimums(j);return et?et[1]:1}getMinimumDayInMonth(j){let et=$62225008020f0a13$var$getMinimums(j);return et&&j.month===et[1]?et[2]:1}constructor(...j){super(...j),this.identifier="japanese"}}function $62225008020f0a13$var$getMinimums(s){if(s.year===1){let j=$62225008020f0a13$var$ERA_NAMES.indexOf(s.era);return $62225008020f0a13$var$ERA_START_DATES[j]}}const $8d73d47422ca7302$var$BUDDHIST_ERA_START=-543;class $8d73d47422ca7302$export$42d20a78301dee44 extends $3b62074eb05584b2$export$80ee6245ec4f29ec{fromJulianDay(j){let et=super.fromJulianDay(j),tt=$3b62074eb05584b2$export$c36e0ecb2d4fa69d(et.era,et.year);return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this,tt-$8d73d47422ca7302$var$BUDDHIST_ERA_START,et.month,et.day)}toJulianDay(j){return super.toJulianDay($8d73d47422ca7302$var$toGregorian(j))}getEras(){return["BE"]}getDaysInMonth(j){return super.getDaysInMonth($8d73d47422ca7302$var$toGregorian(j))}balanceDate(){}constructor(...j){super(...j),this.identifier="buddhist"}}function $8d73d47422ca7302$var$toGregorian(s){let[j,et]=$3b62074eb05584b2$export$4475b7e617eb123c(s.year+$8d73d47422ca7302$var$BUDDHIST_ERA_START);return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(j,et,s.month,s.day)}const $5f31bd6f0c8940b2$var$TAIWAN_ERA_START=1911;function $5f31bd6f0c8940b2$var$gregorianYear(s){return s.era==="minguo"?s.year+$5f31bd6f0c8940b2$var$TAIWAN_ERA_START:1-s.year+$5f31bd6f0c8940b2$var$TAIWAN_ERA_START}function $5f31bd6f0c8940b2$var$gregorianToTaiwan(s){let j=s-$5f31bd6f0c8940b2$var$TAIWAN_ERA_START;return j>0?["minguo",j]:["before_minguo",1-j]}class $5f31bd6f0c8940b2$export$65e01080afcb0799 extends $3b62074eb05584b2$export$80ee6245ec4f29ec{fromJulianDay(j){let et=super.fromJulianDay(j),tt=$3b62074eb05584b2$export$c36e0ecb2d4fa69d(et.era,et.year),[rt,nt]=$5f31bd6f0c8940b2$var$gregorianToTaiwan(tt);return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this,rt,nt,et.month,et.day)}toJulianDay(j){return super.toJulianDay($5f31bd6f0c8940b2$var$toGregorian(j))}getEras(){return["before_minguo","minguo"]}balanceDate(j){let[et,tt]=$5f31bd6f0c8940b2$var$gregorianToTaiwan($5f31bd6f0c8940b2$var$gregorianYear(j));j.era=et,j.year=tt}isInverseEra(j){return j.era==="before_minguo"}getDaysInMonth(j){return super.getDaysInMonth($5f31bd6f0c8940b2$var$toGregorian(j))}getYearsInEra(j){return j.era==="before_minguo"?9999:9999-$5f31bd6f0c8940b2$var$TAIWAN_ERA_START}constructor(...j){super(...j),this.identifier="roc"}}function $5f31bd6f0c8940b2$var$toGregorian(s){let[j,et]=$3b62074eb05584b2$export$4475b7e617eb123c($5f31bd6f0c8940b2$var$gregorianYear(s));return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(j,et,s.month,s.day)}const $f3ed2e4472ae7e25$var$PERSIAN_EPOCH=1948321;function $f3ed2e4472ae7e25$var$isLeapYear(s){let j=s>0?s-474:s-473,et=$2b4dce13dd5a17fa$export$842a2cf37af977e1(j,2820)+474;return $2b4dce13dd5a17fa$export$842a2cf37af977e1((et+38)*31,128)<31}function $f3ed2e4472ae7e25$var$persianToJulianDay(s,j,et){let tt=s>0?s-474:s-473,rt=$2b4dce13dd5a17fa$export$842a2cf37af977e1(tt,2820)+474,nt=j<=7?31*(j-1):30*(j-1)+6;return $f3ed2e4472ae7e25$var$PERSIAN_EPOCH-1+1029983*Math.floor(tt/2820)+365*(rt-1)+Math.floor((31*rt-5)/128)+nt+et}class $f3ed2e4472ae7e25$export$37fccdbfd14c5939{fromJulianDay(j){let et=j-$f3ed2e4472ae7e25$var$persianToJulianDay(475,1,1),tt=Math.floor(et/1029983),rt=$2b4dce13dd5a17fa$export$842a2cf37af977e1(et,1029983),nt=rt===1029982?2820:Math.floor((128*rt+46878)/46751),at=474+2820*tt+nt;at<=0&&at--;let it=j-$f3ed2e4472ae7e25$var$persianToJulianDay(at,1,1)+1,ot=it<=186?Math.ceil(it/31):Math.ceil((it-6)/31),st=j-$f3ed2e4472ae7e25$var$persianToJulianDay(at,ot,1)+1;return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this,at,ot,st)}toJulianDay(j){return $f3ed2e4472ae7e25$var$persianToJulianDay(j.year,j.month,j.day)}getMonthsInYear(){return 12}getDaysInMonth(j){return j.month<=6?31:j.month<=11||$f3ed2e4472ae7e25$var$isLeapYear(j.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const $82c358003bdda0a8$var$INDIAN_ERA_START=78,$82c358003bdda0a8$var$INDIAN_YEAR_START=80;class $82c358003bdda0a8$export$39f31c639fa15726 extends $3b62074eb05584b2$export$80ee6245ec4f29ec{fromJulianDay(j){let et=super.fromJulianDay(j),tt=et.year-$82c358003bdda0a8$var$INDIAN_ERA_START,rt=j-$3b62074eb05584b2$export$f297eb839006d339(et.era,et.year,1,1),nt;rt<$82c358003bdda0a8$var$INDIAN_YEAR_START?(tt--,nt=$3b62074eb05584b2$export$553d7fa8e3805fc0(et.year-1)?31:30,rt+=nt+155+90+10):(nt=$3b62074eb05584b2$export$553d7fa8e3805fc0(et.year)?31:30,rt-=$82c358003bdda0a8$var$INDIAN_YEAR_START);let at,it;if(rt<nt)at=1,it=rt+1;else{let ot=rt-nt;ot<155?(at=Math.floor(ot/31)+2,it=ot%31+1):(ot-=155,at=Math.floor(ot/30)+7,it=ot%30+1)}return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this,tt,at,it)}toJulianDay(j){let et=j.year+$82c358003bdda0a8$var$INDIAN_ERA_START,[tt,rt]=$3b62074eb05584b2$export$4475b7e617eb123c(et),nt,at;return $3b62074eb05584b2$export$553d7fa8e3805fc0(rt)?(nt=31,at=$3b62074eb05584b2$export$f297eb839006d339(tt,rt,3,21)):(nt=30,at=$3b62074eb05584b2$export$f297eb839006d339(tt,rt,3,22)),j.month===1?at+j.day-1:(at+=nt+Math.min(j.month-2,5)*31,j.month>=8&&(at+=(j.month-7)*30),at+=j.day-1,at)}getDaysInMonth(j){return j.month===1&&$3b62074eb05584b2$export$553d7fa8e3805fc0(j.year+$82c358003bdda0a8$var$INDIAN_ERA_START)||j.month>=2&&j.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...j){super(...j),this.identifier="indian"}}const $f2f3e0e3a817edbd$var$CIVIL_EPOC=1948440,$f2f3e0e3a817edbd$var$ASTRONOMICAL_EPOC=1948439,$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START=1300,$f2f3e0e3a817edbd$var$UMALQURA_YEAR_END=1600,$f2f3e0e3a817edbd$var$UMALQURA_START_DAYS=460322;function $f2f3e0e3a817edbd$var$islamicToJulianDay(s,j,et,tt){return tt+Math.ceil(29.5*(et-1))+(j-1)*354+Math.floor((3+11*j)/30)+s-1}function $f2f3e0e3a817edbd$var$julianDayToIslamic(s,j,et){let tt=Math.floor((30*(et-j)+10646)/10631),rt=Math.min(12,Math.ceil((et-(29+$f2f3e0e3a817edbd$var$islamicToJulianDay(j,tt,1,1)))/29.5)+1),nt=et-$f2f3e0e3a817edbd$var$islamicToJulianDay(j,tt,rt,1)+1;return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(s,tt,rt,nt)}function $f2f3e0e3a817edbd$var$isLeapYear(s){return(14+11*s)%30<11}class $f2f3e0e3a817edbd$export$2066795aadd37bfc{fromJulianDay(j){return $f2f3e0e3a817edbd$var$julianDayToIslamic(this,$f2f3e0e3a817edbd$var$CIVIL_EPOC,j)}toJulianDay(j){return $f2f3e0e3a817edbd$var$islamicToJulianDay($f2f3e0e3a817edbd$var$CIVIL_EPOC,j.year,j.month,j.day)}getDaysInMonth(j){let et=29+j.month%2;return j.month===12&&$f2f3e0e3a817edbd$var$isLeapYear(j.year)&&et++,et}getMonthsInYear(){return 12}getDaysInYear(j){return $f2f3e0e3a817edbd$var$isLeapYear(j.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class $f2f3e0e3a817edbd$export$37f0887f2f9d22f7 extends $f2f3e0e3a817edbd$export$2066795aadd37bfc{fromJulianDay(j){return $f2f3e0e3a817edbd$var$julianDayToIslamic(this,$f2f3e0e3a817edbd$var$ASTRONOMICAL_EPOC,j)}toJulianDay(j){return $f2f3e0e3a817edbd$var$islamicToJulianDay($f2f3e0e3a817edbd$var$ASTRONOMICAL_EPOC,j.year,j.month,j.day)}constructor(...j){super(...j),this.identifier="islamic-tbla"}}const $f2f3e0e3a817edbd$var$UMALQURA_DATA="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let $f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH,$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE;function $f2f3e0e3a817edbd$var$umalquraYearStart(s){return $f2f3e0e3a817edbd$var$UMALQURA_START_DAYS+$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[s-$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START]}function $f2f3e0e3a817edbd$var$umalquraMonthLength(s,j){let et=s-$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START,tt=1<<11-(j-1);return $f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH[et]&tt?30:29}function $f2f3e0e3a817edbd$var$umalquraMonthStart(s,j){let et=$f2f3e0e3a817edbd$var$umalquraYearStart(s);for(let tt=1;tt<j;tt++)et+=$f2f3e0e3a817edbd$var$umalquraMonthLength(s,tt);return et}function $f2f3e0e3a817edbd$var$umalquraYearLength(s){return $f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[s+1-$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START]-$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[s-$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START]}class $f2f3e0e3a817edbd$export$5baab4758c231076 extends $f2f3e0e3a817edbd$export$2066795aadd37bfc{fromJulianDay(j){let et=j-$f2f3e0e3a817edbd$var$CIVIL_EPOC,tt=$f2f3e0e3a817edbd$var$umalquraYearStart($f2f3e0e3a817edbd$var$UMALQURA_YEAR_START),rt=$f2f3e0e3a817edbd$var$umalquraYearStart($f2f3e0e3a817edbd$var$UMALQURA_YEAR_END);if(et<tt||et>rt)return super.fromJulianDay(j);{let nt=$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START-1,at=1,it=1;for(;it>0;){nt++,it=et-$f2f3e0e3a817edbd$var$umalquraYearStart(nt)+1;let ot=$f2f3e0e3a817edbd$var$umalquraYearLength(nt);if(it===ot){at=12;break}else if(it<ot){let st=$f2f3e0e3a817edbd$var$umalquraMonthLength(nt,at);for(at=1;it>st;)it-=st,at++,st=$f2f3e0e3a817edbd$var$umalquraMonthLength(nt,at);break}}return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this,nt,at,et-$f2f3e0e3a817edbd$var$umalquraMonthStart(nt,at)+1)}}toJulianDay(j){return j.year<$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START||j.year>$f2f3e0e3a817edbd$var$UMALQURA_YEAR_END?super.toJulianDay(j):$f2f3e0e3a817edbd$var$CIVIL_EPOC+$f2f3e0e3a817edbd$var$umalquraMonthStart(j.year,j.month)+(j.day-1)}getDaysInMonth(j){return j.year<$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START||j.year>$f2f3e0e3a817edbd$var$UMALQURA_YEAR_END?super.getDaysInMonth(j):$f2f3e0e3a817edbd$var$umalquraMonthLength(j.year,j.month)}getDaysInYear(j){return j.year<$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START||j.year>$f2f3e0e3a817edbd$var$UMALQURA_YEAR_END?super.getDaysInYear(j):$f2f3e0e3a817edbd$var$umalquraYearLength(j.year)}constructor(){if(super(),this.identifier="islamic-umalqura",$f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH||($f2f3e0e3a817edbd$var$UMALQURA_MONTHLENGTH=new Uint16Array(Uint8Array.from(atob($f2f3e0e3a817edbd$var$UMALQURA_DATA),j=>j.charCodeAt(0)).buffer)),!$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE){$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE=new Uint32Array($f2f3e0e3a817edbd$var$UMALQURA_YEAR_END-$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START+1);let j=0;for(let et=$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START;et<=$f2f3e0e3a817edbd$var$UMALQURA_YEAR_END;et++){$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START_TABLE[et-$f2f3e0e3a817edbd$var$UMALQURA_YEAR_START]=j;for(let tt=1;tt<=12;tt++)j+=$f2f3e0e3a817edbd$var$umalquraMonthLength(et,tt)}}}}const $7c5f6fbf42389787$var$HEBREW_EPOCH=347997,$7c5f6fbf42389787$var$HOUR_PARTS=1080,$7c5f6fbf42389787$var$DAY_PARTS=24*$7c5f6fbf42389787$var$HOUR_PARTS,$7c5f6fbf42389787$var$MONTH_DAYS=29,$7c5f6fbf42389787$var$MONTH_FRACT=12*$7c5f6fbf42389787$var$HOUR_PARTS+793,$7c5f6fbf42389787$var$MONTH_PARTS=$7c5f6fbf42389787$var$MONTH_DAYS*$7c5f6fbf42389787$var$DAY_PARTS+$7c5f6fbf42389787$var$MONTH_FRACT;function $7c5f6fbf42389787$var$isLeapYear(s){return $2b4dce13dd5a17fa$export$842a2cf37af977e1(s*7+1,19)<7}function $7c5f6fbf42389787$var$hebrewDelay1(s){let j=Math.floor((235*s-234)/19),et=12084+13753*j,tt=j*29+Math.floor(et/25920);return $2b4dce13dd5a17fa$export$842a2cf37af977e1(3*(tt+1),7)<3&&(tt+=1),tt}function $7c5f6fbf42389787$var$hebrewDelay2(s){let j=$7c5f6fbf42389787$var$hebrewDelay1(s-1),et=$7c5f6fbf42389787$var$hebrewDelay1(s);return $7c5f6fbf42389787$var$hebrewDelay1(s+1)-et===356?2:et-j===382?1:0}function $7c5f6fbf42389787$var$startOfYear(s){return $7c5f6fbf42389787$var$hebrewDelay1(s)+$7c5f6fbf42389787$var$hebrewDelay2(s)}function $7c5f6fbf42389787$var$getDaysInYear(s){return $7c5f6fbf42389787$var$startOfYear(s+1)-$7c5f6fbf42389787$var$startOfYear(s)}function $7c5f6fbf42389787$var$getYearType(s){let j=$7c5f6fbf42389787$var$getDaysInYear(s);switch(j>380&&(j-=30),j){case 353:return 0;case 354:return 1;case 355:return 2}}function $7c5f6fbf42389787$var$getDaysInMonth(s,j){if(j>=6&&!$7c5f6fbf42389787$var$isLeapYear(s)&&j++,j===4||j===7||j===9||j===11||j===13)return 29;let et=$7c5f6fbf42389787$var$getYearType(s);return j===2?et===2?30:29:j===3?et===0?29:30:j===6?$7c5f6fbf42389787$var$isLeapYear(s)?30:0:30}class $7c5f6fbf42389787$export$ca405048b8fb5af{fromJulianDay(j){let et=j-$7c5f6fbf42389787$var$HEBREW_EPOCH,tt=et*$7c5f6fbf42389787$var$DAY_PARTS/$7c5f6fbf42389787$var$MONTH_PARTS,rt=Math.floor((19*tt+234)/235)+1,nt=$7c5f6fbf42389787$var$startOfYear(rt),at=Math.floor(et-nt);for(;at<1;)rt--,nt=$7c5f6fbf42389787$var$startOfYear(rt),at=Math.floor(et-nt);let it=1,ot=0;for(;ot<at;)ot+=$7c5f6fbf42389787$var$getDaysInMonth(rt,it),it++;it--,ot-=$7c5f6fbf42389787$var$getDaysInMonth(rt,it);let st=at-ot;return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this,rt,it,st)}toJulianDay(j){let et=$7c5f6fbf42389787$var$startOfYear(j.year);for(let tt=1;tt<j.month;tt++)et+=$7c5f6fbf42389787$var$getDaysInMonth(j.year,tt);return et+j.day+$7c5f6fbf42389787$var$HEBREW_EPOCH}getDaysInMonth(j){return $7c5f6fbf42389787$var$getDaysInMonth(j.year,j.month)}getMonthsInYear(j){return $7c5f6fbf42389787$var$isLeapYear(j.year)?13:12}getDaysInYear(j){return $7c5f6fbf42389787$var$getDaysInYear(j.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(j,et){et.year!==j.year&&($7c5f6fbf42389787$var$isLeapYear(et.year)&&!$7c5f6fbf42389787$var$isLeapYear(j.year)&&et.month>6?j.month--:!$7c5f6fbf42389787$var$isLeapYear(et.year)&&$7c5f6fbf42389787$var$isLeapYear(j.year)&&et.month>6&&j.month++)}constructor(){this.identifier="hebrew"}}const $b956b2d7a6cf451f$var$ETHIOPIC_EPOCH=1723856,$b956b2d7a6cf451f$var$COPTIC_EPOCH=1824665,$b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA=5500;function $b956b2d7a6cf451f$var$ceToJulianDay(s,j,et,tt){return s+365*j+Math.floor(j/4)+30*(et-1)+tt-1}function $b956b2d7a6cf451f$var$julianDayToCE(s,j){let et=Math.floor(4*(j-s)/1461),tt=1+Math.floor((j-$b956b2d7a6cf451f$var$ceToJulianDay(s,et,1,1))/30),rt=j+1-$b956b2d7a6cf451f$var$ceToJulianDay(s,et,tt,1);return[et,tt,rt]}function $b956b2d7a6cf451f$var$getLeapDay(s){return Math.floor(s%4/3)}function $b956b2d7a6cf451f$var$getDaysInMonth(s,j){return j%13!==0?30:$b956b2d7a6cf451f$var$getLeapDay(s)+5}class $b956b2d7a6cf451f$export$26ba6eab5e20cd7d{fromJulianDay(j){let[et,tt,rt]=$b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH,j),nt="AM";return et<=0&&(nt="AA",et+=$b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA),new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this,nt,et,tt,rt)}toJulianDay(j){let et=j.year;return j.era==="AA"&&(et-=$b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA),$b956b2d7a6cf451f$var$ceToJulianDay($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH,et,j.month,j.day)}getDaysInMonth(j){return $b956b2d7a6cf451f$var$getDaysInMonth(j.year,j.month)}getMonthsInYear(){return 13}getDaysInYear(j){return 365+$b956b2d7a6cf451f$var$getLeapDay(j.year)}getYearsInEra(j){return j.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class $b956b2d7a6cf451f$export$d72e0c37005a4914 extends $b956b2d7a6cf451f$export$26ba6eab5e20cd7d{fromJulianDay(j){let[et,tt,rt]=$b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$ETHIOPIC_EPOCH,j);return et+=$b956b2d7a6cf451f$var$AMETE_MIHRET_DELTA,new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this,"AA",et,tt,rt)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...j){super(...j),this.identifier="ethioaa"}}class $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1 extends $b956b2d7a6cf451f$export$26ba6eab5e20cd7d{fromJulianDay(j){let[et,tt,rt]=$b956b2d7a6cf451f$var$julianDayToCE($b956b2d7a6cf451f$var$COPTIC_EPOCH,j),nt="CE";return et<=0&&(nt="BCE",et=1-et),new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this,nt,et,tt,rt)}toJulianDay(j){let et=j.year;return j.era==="BCE"&&(et=1-et),$b956b2d7a6cf451f$var$ceToJulianDay($b956b2d7a6cf451f$var$COPTIC_EPOCH,et,j.month,j.day)}getDaysInMonth(j){let et=j.year;return j.era==="BCE"&&(et=1-et),$b956b2d7a6cf451f$var$getDaysInMonth(et,j.month)}isInverseEra(j){return j.era==="BCE"}balanceDate(j){j.year<=0&&(j.era=j.era==="BCE"?"CE":"BCE",j.year=1-j.year)}getEras(){return["BCE","CE"]}getYearsInEra(j){return j.era==="BCE"?9999:9715}constructor(...j){super(...j),this.identifier="coptic"}}function $64244302c3013299$export$dd0bbc9b26defe37(s){switch(s){case"buddhist":return new $8d73d47422ca7302$export$42d20a78301dee44;case"ethiopic":return new $b956b2d7a6cf451f$export$26ba6eab5e20cd7d;case"ethioaa":return new $b956b2d7a6cf451f$export$d72e0c37005a4914;case"coptic":return new $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1;case"hebrew":return new $7c5f6fbf42389787$export$ca405048b8fb5af;case"indian":return new $82c358003bdda0a8$export$39f31c639fa15726;case"islamic-civil":return new $f2f3e0e3a817edbd$export$2066795aadd37bfc;case"islamic-tbla":return new $f2f3e0e3a817edbd$export$37f0887f2f9d22f7;case"islamic-umalqura":return new $f2f3e0e3a817edbd$export$5baab4758c231076;case"japanese":return new $62225008020f0a13$export$b746ab2b60cdffbf;case"persian":return new $f3ed2e4472ae7e25$export$37fccdbfd14c5939;case"roc":return new $5f31bd6f0c8940b2$export$65e01080afcb0799;case"gregory":default:return new $3b62074eb05584b2$export$80ee6245ec4f29ec}}let $fb18d541ea1ad717$var$formatterCache=new Map;class $fb18d541ea1ad717$export$ad991b66133851cf{format(j){return this.formatter.format(j)}formatToParts(j){return this.formatter.formatToParts(j)}formatRange(j,et){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(j,et);if(et<j)throw new RangeError("End date must be >= start date");return`${this.formatter.format(j)} – ${this.formatter.format(et)}`}formatRangeToParts(j,et){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(j,et);if(et<j)throw new RangeError("End date must be >= start date");let tt=this.formatter.formatToParts(j),rt=this.formatter.formatToParts(et);return[...tt.map(nt=>({...nt,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...rt.map(nt=>({...nt,source:"endRange"}))]}resolvedOptions(){let j=this.formatter.resolvedOptions();return $fb18d541ea1ad717$var$hasBuggyResolvedHourCycle()&&(this.resolvedHourCycle||(this.resolvedHourCycle=$fb18d541ea1ad717$var$getResolvedHourCycle(j.locale,this.options)),j.hourCycle=this.resolvedHourCycle,j.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),j.calendar==="ethiopic-amete-alem"&&(j.calendar="ethioaa"),j}constructor(j,et={}){this.formatter=$fb18d541ea1ad717$var$getCachedDateFormatter(j,et),this.options=et}}const $fb18d541ea1ad717$var$hour12Preferences={true:{ja:"h11"},false:{}};function $fb18d541ea1ad717$var$getCachedDateFormatter(s,j={}){if(typeof j.hour12=="boolean"&&$fb18d541ea1ad717$var$hasBuggyHour12Behavior()){j={...j};let rt=$fb18d541ea1ad717$var$hour12Preferences[String(j.hour12)][s.split("-")[0]],nt=j.hour12?"h12":"h23";j.hourCycle=rt!=null?rt:nt,delete j.hour12}let et=s+(j?Object.entries(j).sort((rt,nt)=>rt[0]<nt[0]?-1:1).join():"");if($fb18d541ea1ad717$var$formatterCache.has(et))return $fb18d541ea1ad717$var$formatterCache.get(et);let tt=new Intl.DateTimeFormat(s,j);return $fb18d541ea1ad717$var$formatterCache.set(et,tt),tt}let $fb18d541ea1ad717$var$_hasBuggyHour12Behavior=null;function $fb18d541ea1ad717$var$hasBuggyHour12Behavior(){return $fb18d541ea1ad717$var$_hasBuggyHour12Behavior==null&&($fb18d541ea1ad717$var$_hasBuggyHour12Behavior=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),$fb18d541ea1ad717$var$_hasBuggyHour12Behavior}let $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle=null;function $fb18d541ea1ad717$var$hasBuggyResolvedHourCycle(){return $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle==null&&($fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),$fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle}function $fb18d541ea1ad717$var$getResolvedHourCycle(s,j){if(!j.timeStyle&&!j.hour)return;s=s.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),s+=(s.includes("-u-")?"":"-u")+"-nu-latn";let et=$fb18d541ea1ad717$var$getCachedDateFormatter(s,{...j,timeZone:void 0}),tt=parseInt(et.formatToParts(new Date(2020,2,3,0)).find(nt=>nt.type==="hour").value,10),rt=parseInt(et.formatToParts(new Date(2020,2,3,23)).find(nt=>nt.type==="hour").value,10);if(tt===0&&rt===23)return"h23";if(tt===24&&rt===23)return"h24";if(tt===0&&rt===11)return"h11";if(tt===12&&rt===11)return"h12";throw new Error("Unexpected hour cycle result")}function $458b0a5536c1a7cf$export$40bfa8c7b0832715(s,j,et){let[tt,rt]=reactExports.useState(s||j),nt=reactExports.useRef(s!==void 0),at=s!==void 0;reactExports.useEffect(()=>{let st=nt.current;st!==at&&console.warn(`WARN: A component changed from ${st?"controlled":"uncontrolled"} to ${at?"controlled":"uncontrolled"}.`),nt.current=at},[at]);let it=at?s:tt,ot=reactExports.useCallback((st,...lt)=>{let ct=(ut,...dt)=>{et&&(Object.is(it,ut)||et(ut,...dt)),at||(it=ut)};typeof st=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),rt((dt,...ft)=>{let ht=st(at?it:dt,...ft);return ct(ht,...lt),at?dt:ht})):(at||rt(st),ct(st,...lt))},[at,it,et]);return[it,ot]}function $9446cca9a3875146$export$7d15b64cf5a3a4c4(s,j=-1/0,et=1/0){return Math.min(Math.max(s,j),et)}function $f62d864046160412$export$eac50920cf2fd59a(s,j,et){return j!=null&&s.compare(j)<0||et!=null&&s.compare(et)>0}function $f62d864046160412$export$f4a51ff076cc9a09(s,j,et,tt,rt){let nt={};for(let it in j)nt[it]=Math.floor(j[it]/2),nt[it]>0&&j[it]%2===0&&nt[it]--;let at=$f62d864046160412$export$144a00ba6044eb9(s,j,et).subtract(nt);return $f62d864046160412$export$5bb865b12696a77d(s,at,j,et,tt,rt)}function $f62d864046160412$export$144a00ba6044eb9(s,j,et,tt,rt){let nt=s;return j.years?nt=$14e0f24ef4ac5c92$export$f91e89d3d0406102(s):j.months?nt=$14e0f24ef4ac5c92$export$a5a3b454ada2268e(s):j.weeks&&(nt=$14e0f24ef4ac5c92$export$42c81a444fbfb5d4(s,et)),$f62d864046160412$export$5bb865b12696a77d(s,nt,j,et,tt,rt)}function $f62d864046160412$export$530edbfc915b2b04(s,j,et,tt,rt){let nt={...j};j.days?nt.days--:j.weeks?nt.weeks--:j.months?nt.months--:j.years&&nt.years--;let at=$f62d864046160412$export$144a00ba6044eb9(s,j,et).subtract(nt);return $f62d864046160412$export$5bb865b12696a77d(s,at,j,et,tt,rt)}function $f62d864046160412$export$5bb865b12696a77d(s,j,et,tt,rt,nt){return rt&&s.compare(rt)>=0&&(j=$14e0f24ef4ac5c92$export$a75f2bff57811055(j,$f62d864046160412$export$144a00ba6044eb9($11d87f3f76e88657$export$93522d1a439f3617(rt),et,tt))),nt&&s.compare(nt)<=0&&(j=$14e0f24ef4ac5c92$export$5c333a116e949cdd(j,$f62d864046160412$export$530edbfc915b2b04($11d87f3f76e88657$export$93522d1a439f3617(nt),et,tt))),j}function $f62d864046160412$export$4f5203c0d889109e(s,j,et){return j&&(s=$14e0f24ef4ac5c92$export$a75f2bff57811055(s,$11d87f3f76e88657$export$93522d1a439f3617(j))),et&&(s=$14e0f24ef4ac5c92$export$5c333a116e949cdd(s,$11d87f3f76e88657$export$93522d1a439f3617(et))),s}function $f62d864046160412$export$a1d3911297b952d7(s,j,et){if(!et)return s;for(;s.compare(j)>=0&&et(s);)s=s.subtract({days:1});if(s.compare(j)>=0)return s}function $131cf43a05231e1e$export$6d095e787d2b5e1f(s){let j=reactExports.useMemo(()=>new $fb18d541ea1ad717$export$ad991b66133851cf(s.locale),[s.locale]),et=reactExports.useMemo(()=>j.resolvedOptions(),[j]),{locale:tt,createCalendar:rt,visibleDuration:nt={months:1},minValue:at,maxValue:it,selectionAlignment:ot,isDateUnavailable:st,pageBehavior:lt="visible"}=s,ct=reactExports.useMemo(()=>rt(et.calendar),[rt,et.calendar]),[ut,dt]=$458b0a5536c1a7cf$export$40bfa8c7b0832715(s.value,s.defaultValue,s.onChange),ft=reactExports.useMemo(()=>ut?$11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$93522d1a439f3617(ut),ct):null,[ut,ct]),ht=reactExports.useMemo(()=>ut&&"timeZone"in ut?ut.timeZone:et.timeZone,[ut,et.timeZone]),mt=reactExports.useMemo(()=>s.focusedValue?$f62d864046160412$export$4f5203c0d889109e($11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$93522d1a439f3617(s.focusedValue),ct),at,it):void 0,[s.focusedValue,ct,at,it]),vt=reactExports.useMemo(()=>$f62d864046160412$export$4f5203c0d889109e(s.defaultFocusedValue?$11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$93522d1a439f3617(s.defaultFocusedValue),ct):ft||$11d87f3f76e88657$export$b4a036af3fc0b032($14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(ht),ct),at,it),[s.defaultFocusedValue,ft,ht,ct,at,it]),[pt,gt]=$458b0a5536c1a7cf$export$40bfa8c7b0832715(mt,vt,s.onFocusChange),[yt,$t]=reactExports.useState(()=>{switch(ot){case"start":return $f62d864046160412$export$144a00ba6044eb9(pt,nt,tt,at,it);case"end":return $f62d864046160412$export$530edbfc915b2b04(pt,nt,tt,at,it);case"center":default:return $f62d864046160412$export$f4a51ff076cc9a09(pt,nt,tt,at,it)}}),[xt,Ct]=reactExports.useState(s.autoFocus||!1),bt=reactExports.useMemo(()=>{let Dt={...nt};return Dt.days?Dt.days--:Dt.days=-1,yt.add(Dt)},[yt,nt]),[St,_t]=reactExports.useState(ct.identifier);if(ct.identifier!==St){let Dt=$11d87f3f76e88657$export$b4a036af3fc0b032(pt,ct);$t($f62d864046160412$export$f4a51ff076cc9a09(Dt,nt,tt,at,it)),gt(Dt),_t(ct.identifier)}$f62d864046160412$export$eac50920cf2fd59a(pt,at,it)?gt($f62d864046160412$export$4f5203c0d889109e(pt,at,it)):pt.compare(yt)<0?$t($f62d864046160412$export$530edbfc915b2b04(pt,nt,tt,at,it)):pt.compare(bt)>0&&$t($f62d864046160412$export$144a00ba6044eb9(pt,nt,tt,at,it));function wt(Dt){Dt=$f62d864046160412$export$4f5203c0d889109e(Dt,at,it),gt(Dt)}function Rt(Dt){if(!s.isDisabled&&!s.isReadOnly){if(Dt=$f62d864046160412$export$4f5203c0d889109e(Dt,at,it),Dt=$f62d864046160412$export$a1d3911297b952d7(Dt,yt,st),!Dt)return;Dt=$11d87f3f76e88657$export$b4a036af3fc0b032(Dt,(ut==null?void 0:ut.calendar)||new $3b62074eb05584b2$export$80ee6245ec4f29ec),ut&&"hour"in ut?dt(ut.set(Dt)):dt(Dt)}}let Pt=reactExports.useMemo(()=>ft?st&&st(ft)?!0:$f62d864046160412$export$eac50920cf2fd59a(ft,at,it):!1,[ft,st,at,it]),Et=s.isInvalid||s.validationState==="invalid"||Pt,Ot=Et?"invalid":null,Mt=reactExports.useMemo(()=>lt==="visible"?nt:$131cf43a05231e1e$var$unitDuration(nt),[lt,nt]);return{isDisabled:s.isDisabled,isReadOnly:s.isReadOnly,value:ft,setValue:Rt,visibleRange:{start:yt,end:bt},minValue:at,maxValue:it,focusedDate:pt,timeZone:ht,validationState:Ot,isValueInvalid:Et,setFocusedDate(Dt){wt(Dt),Ct(!0)},focusNextDay(){wt(pt.add({days:1}))},focusPreviousDay(){wt(pt.subtract({days:1}))},focusNextRow(){nt.days?this.focusNextPage():(nt.weeks||nt.months||nt.years)&&wt(pt.add({weeks:1}))},focusPreviousRow(){nt.days?this.focusPreviousPage():(nt.weeks||nt.months||nt.years)&&wt(pt.subtract({weeks:1}))},focusNextPage(){let Dt=yt.add(Mt);gt($f62d864046160412$export$4f5203c0d889109e(pt.add(Mt),at,it)),$t($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(pt,Dt,Mt,tt,at,it),Mt,tt))},focusPreviousPage(){let Dt=yt.subtract(Mt);gt($f62d864046160412$export$4f5203c0d889109e(pt.subtract(Mt),at,it)),$t($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(pt,Dt,Mt,tt,at,it),Mt,tt))},focusSectionStart(){nt.days?wt(yt):nt.weeks?wt($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(pt,tt)):(nt.months||nt.years)&&wt($14e0f24ef4ac5c92$export$a5a3b454ada2268e(pt))},focusSectionEnd(){nt.days?wt(bt):nt.weeks?wt($14e0f24ef4ac5c92$export$ef8b6d9133084f4e(pt,tt)):(nt.months||nt.years)&&wt($14e0f24ef4ac5c92$export$a2258d9c4118825c(pt))},focusNextSection(Dt){if(!Dt&&!nt.days){wt(pt.add($131cf43a05231e1e$var$unitDuration(nt)));return}nt.days?this.focusNextPage():nt.weeks?wt(pt.add({months:1})):(nt.months||nt.years)&&wt(pt.add({years:1}))},focusPreviousSection(Dt){if(!Dt&&!nt.days){wt(pt.subtract($131cf43a05231e1e$var$unitDuration(nt)));return}nt.days?this.focusPreviousPage():nt.weeks?wt(pt.subtract({months:1})):(nt.months||nt.years)&&wt(pt.subtract({years:1}))},selectFocusedDate(){Rt(pt)},selectDate(Dt){Rt(Dt)},isFocused:xt,setFocused:Ct,isInvalid(Dt){return $f62d864046160412$export$eac50920cf2fd59a(Dt,at,it)},isSelected(Dt){return ft!=null&&$14e0f24ef4ac5c92$export$ea39ec197993aef0(Dt,ft)&&!this.isCellDisabled(Dt)&&!this.isCellUnavailable(Dt)},isCellFocused(Dt){return xt&&pt&&$14e0f24ef4ac5c92$export$ea39ec197993aef0(Dt,pt)},isCellDisabled(Dt){return s.isDisabled||Dt.compare(yt)<0||Dt.compare(bt)>0||this.isInvalid(Dt,at,it)},isCellUnavailable(Dt){return s.isDateUnavailable&&s.isDateUnavailable(Dt)},isPreviousVisibleRangeInvalid(){let Dt=yt.subtract({days:1});return $14e0f24ef4ac5c92$export$ea39ec197993aef0(Dt,yt)||this.isInvalid(Dt,at,it)},isNextVisibleRangeInvalid(){let Dt=bt.add({days:1});return $14e0f24ef4ac5c92$export$ea39ec197993aef0(Dt,bt)||this.isInvalid(Dt,at,it)},getDatesInWeek(Dt,At=yt){let Nt=At.add({weeks:Dt}),kt=[];Nt=$14e0f24ef4ac5c92$export$42c81a444fbfb5d4(Nt,tt);let It=$14e0f24ef4ac5c92$export$2061056d06d7cdf7(Nt,tt);for(let Tt=0;Tt<It;Tt++)kt.push(null);for(;kt.length<7;){kt.push(Nt);let Tt=Nt.add({days:1});if($14e0f24ef4ac5c92$export$ea39ec197993aef0(Nt,Tt))break;Nt=Tt}for(;kt.length<7;)kt.push(null);return kt}}}function $131cf43a05231e1e$var$unitDuration(s){let j={...s};for(let et in s)j[et]=1;return j}const $e5be200c675c3b3a$export$aca958c65c314e6c={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},$e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE={...$e5be200c675c3b3a$export$aca958c65c314e6c,customError:!0,valid:!1},$e5be200c675c3b3a$export$dad6ae84456c676a={isInvalid:!1,validationDetails:$e5be200c675c3b3a$export$aca958c65c314e6c,validationErrors:[]},$e5be200c675c3b3a$export$571b5131b7e65c11=reactExports.createContext({}),$e5be200c675c3b3a$export$a763b9476acd3eb="__formValidationState"+Date.now();function $e5be200c675c3b3a$export$fc1a364ae1f3ff10(s){if(s[$e5be200c675c3b3a$export$a763b9476acd3eb]){let{realtimeValidation:j,displayValidation:et,updateValidation:tt,resetValidation:rt,commitValidation:nt}=s[$e5be200c675c3b3a$export$a763b9476acd3eb];return{realtimeValidation:j,displayValidation:et,updateValidation:tt,resetValidation:rt,commitValidation:nt}}return $e5be200c675c3b3a$var$useFormValidationStateImpl(s)}function $e5be200c675c3b3a$var$useFormValidationStateImpl(s){let{isInvalid:j,validationState:et,name:tt,value:rt,builtinValidation:nt,validate:at,validationBehavior:it="aria"}=s;et&&(j||(j=et==="invalid"));let ot=j?{isInvalid:!0,validationErrors:[],validationDetails:$e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE}:null,st=reactExports.useMemo(()=>$e5be200c675c3b3a$var$getValidationResult($e5be200c675c3b3a$var$runValidate(at,rt)),[at,rt]);nt!=null&&nt.validationDetails.valid&&(nt=null);let lt=reactExports.useContext($e5be200c675c3b3a$export$571b5131b7e65c11),ct=reactExports.useMemo(()=>tt?Array.isArray(tt)?tt.flatMap(_t=>$e5be200c675c3b3a$var$asArray(lt[_t])):$e5be200c675c3b3a$var$asArray(lt[tt]):[],[lt,tt]),[ut,dt]=reactExports.useState(lt),[ft,ht]=reactExports.useState(!1);lt!==ut&&(dt(lt),ht(!1));let mt=reactExports.useMemo(()=>$e5be200c675c3b3a$var$getValidationResult(ft?[]:ct),[ft,ct]),vt=reactExports.useRef($e5be200c675c3b3a$export$dad6ae84456c676a),[pt,gt]=reactExports.useState($e5be200c675c3b3a$export$dad6ae84456c676a),yt=reactExports.useRef($e5be200c675c3b3a$export$dad6ae84456c676a),$t=()=>{if(!xt)return;Ct(!1);let _t=st||nt||vt.current;$e5be200c675c3b3a$var$isEqualValidation(_t,yt.current)||(yt.current=_t,gt(_t))},[xt,Ct]=reactExports.useState(!1);return reactExports.useEffect($t),{realtimeValidation:ot||mt||st||nt||$e5be200c675c3b3a$export$dad6ae84456c676a,displayValidation:it==="native"?ot||mt||pt:ot||mt||st||nt||pt,updateValidation(_t){it==="aria"&&!$e5be200c675c3b3a$var$isEqualValidation(pt,_t)?gt(_t):vt.current=_t},resetValidation(){let _t=$e5be200c675c3b3a$export$dad6ae84456c676a;$e5be200c675c3b3a$var$isEqualValidation(_t,yt.current)||(yt.current=_t,gt(_t)),it==="native"&&Ct(!1),ht(!0)},commitValidation(){it==="native"&&Ct(!0),ht(!0)}}}function $e5be200c675c3b3a$var$asArray(s){return s?Array.isArray(s)?s:[s]:[]}function $e5be200c675c3b3a$var$runValidate(s,j){if(typeof s=="function"){let et=s(j);if(et&&typeof et!="boolean")return $e5be200c675c3b3a$var$asArray(et)}return[]}function $e5be200c675c3b3a$var$getValidationResult(s){return s.length?{isInvalid:!0,validationErrors:s,validationDetails:$e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE}:null}function $e5be200c675c3b3a$var$isEqualValidation(s,j){return s===j?!0:s&&j&&s.isInvalid===j.isInvalid&&s.validationErrors.length===j.validationErrors.length&&s.validationErrors.every((et,tt)=>et===j.validationErrors[tt])&&Object.entries(s.validationDetails).every(([et,tt])=>j.validationDetails[et]===tt)}function $e5be200c675c3b3a$export$75ee7c75d68f5b0e(...s){let j=new Set,et=!1,tt={...$e5be200c675c3b3a$export$aca958c65c314e6c};for(let at of s){var rt,nt;for(let it of at.validationErrors)j.add(it);et||(et=at.isInvalid);for(let it in tt)(rt=tt)[nt=it]||(rt[nt]=at.validationDetails[it])}return tt.valid=!et,{isInvalid:et,validationErrors:[...j],validationDetails:tt}}function $c1d7fb2ec91bae71$var$Item(s){return null}$c1d7fb2ec91bae71$var$Item.getCollectionNode=function*(j,et){let{childItems:tt,title:rt,children:nt}=j,at=j.title||j.children,it=j.textValue||(typeof at=="string"?at:"")||j["aria-label"]||"";!it&&!(et!=null&&et.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:j,rendered:at,textValue:it,"aria-label":j["aria-label"],hasChildNodes:$c1d7fb2ec91bae71$var$hasChildItems(j),*childNodes(){if(tt)for(let ot of tt)yield{type:"item",value:ot};else if(rt){let ot=[];React.Children.forEach(nt,st=>{ot.push({type:"item",element:st})}),yield*ot}}}};function $c1d7fb2ec91bae71$var$hasChildItems(s){return s.hasChildItems!=null?s.hasChildItems:!!(s.childItems||s.title&&React.Children.count(s.children)>0)}let $c1d7fb2ec91bae71$export$6d08773d2e66f8f2=$c1d7fb2ec91bae71$var$Item;class $eb2240fc39a57fa5$export$bf788dd355e3a401{build(j,et){return this.context=et,$eb2240fc39a57fa5$var$iterable(()=>this.iterateCollection(j))}*iterateCollection(j){let{children:et,items:tt}=j;if(typeof et=="function"){if(!tt)throw new Error("props.children was a function but props.items is missing");for(let rt of j.items)yield*this.getFullNode({value:rt},{renderer:et})}else{let rt=[];React.Children.forEach(et,at=>{rt.push(at)});let nt=0;for(let at of rt){let it=this.getFullNode({element:at,index:nt},{});for(let ot of it)nt++,yield ot}}}getKey(j,et,tt,rt){if(j.key!=null)return j.key;if(et.type==="cell"&&et.key!=null)return`${rt}${et.key}`;let nt=et.value;if(nt!=null){var at;let it=(at=nt.key)!==null&&at!==void 0?at:nt.id;if(it==null)throw new Error("No key found for item");return it}return rt?`${rt}.${et.index}`:`$.${et.index}`}getChildState(j,et){return{renderer:et.renderer||j.renderer}}*getFullNode(j,et,tt,rt){let nt=j.element;if(!nt&&j.value&&et&&et.renderer){let ot=this.cache.get(j.value);if(ot&&(!ot.shouldInvalidate||!ot.shouldInvalidate(this.context))){ot.index=j.index,ot.parentKey=rt?rt.key:null,yield ot;return}nt=et.renderer(j.value)}if(React.isValidElement(nt)){let ot=nt.type;if(typeof ot!="function"&&typeof ot.getCollectionNode!="function"){let ut=typeof nt.type=="function"?nt.type.name:nt.type;throw new Error(`Unknown element <${ut}> in collection.`)}let st=ot.getCollectionNode(nt.props,this.context),lt=j.index,ct=st.next();for(;!ct.done&&ct.value;){let ut=ct.value;j.index=lt;let dt=ut.key;dt||(dt=ut.element?null:this.getKey(nt,j,et,tt));let ht=[...this.getFullNode({...ut,key:dt,index:lt,wrapper:$eb2240fc39a57fa5$var$compose(j.wrapper,ut.wrapper)},this.getChildState(et,ut),tt?`${tt}${nt.key}`:nt.key,rt)];for(let mt of ht){if(mt.value=ut.value||j.value,mt.value&&this.cache.set(mt.value,mt),j.type&&mt.type!==j.type)throw new Error(`Unsupported type <${$eb2240fc39a57fa5$var$capitalize(mt.type)}> in <${$eb2240fc39a57fa5$var$capitalize(rt.type)}>. Only <${$eb2240fc39a57fa5$var$capitalize(j.type)}> is supported.`);lt++,yield mt}ct=st.next(ht)}return}if(j.key==null)return;let at=this,it={type:j.type,props:j.props,key:j.key,parentKey:rt?rt.key:null,value:j.value,level:rt?rt.level+1:0,index:j.index,rendered:j.rendered,textValue:j.textValue,"aria-label":j["aria-label"],wrapper:j.wrapper,shouldInvalidate:j.shouldInvalidate,hasChildNodes:j.hasChildNodes,childNodes:$eb2240fc39a57fa5$var$iterable(function*(){if(!j.hasChildNodes)return;let ot=0;for(let st of j.childNodes()){st.key!=null&&(st.key=`${it.key}${st.key}`),st.index=ot;let lt=at.getFullNode(st,at.getChildState(et,st),it.key,it);for(let ct of lt)ot++,yield ct}})};yield it}constructor(){this.cache=new WeakMap}}function $eb2240fc39a57fa5$var$iterable(s){let j=[],et=null;return{*[Symbol.iterator](){for(let tt of j)yield tt;et||(et=s());for(let tt of et)j.push(tt),yield tt}}}function $eb2240fc39a57fa5$var$compose(s,j){if(s&&j)return et=>s(j(et));if(s)return s;if(j)return j}function $eb2240fc39a57fa5$var$capitalize(s){return s[0].toUpperCase()+s.slice(1)}function $7613b1592d41b092$export$6cd28814d92fa9c9(s,j,et){let tt=reactExports.useMemo(()=>new $eb2240fc39a57fa5$export$bf788dd355e3a401,[]),{children:rt,items:nt,collection:at}=s;return reactExports.useMemo(()=>{if(at)return at;let ot=tt.build({children:rt,items:nt},et);return j(ot)},[tt,rt,nt,at,et,j])}function $c5a24bc478652b5f$export$1005530eda016c13(s,j){return typeof j.getChildren=="function"?j.getChildren(s.key):s.childNodes}function $c5a24bc478652b5f$export$fbdeaa6a76694f71(s){return $c5a24bc478652b5f$export$5f3398f8733f90e2(s,0)}function $c5a24bc478652b5f$export$5f3398f8733f90e2(s,j){if(j<0)return;let et=0;for(let tt of s){if(et===j)return tt;et++}}function $c5a24bc478652b5f$export$8c434b3a7a4dad6(s,j,et){if(j.parentKey===et.parentKey)return j.index-et.index;let tt=[...$c5a24bc478652b5f$var$getAncestors(s,j),j],rt=[...$c5a24bc478652b5f$var$getAncestors(s,et),et],nt=tt.slice(0,rt.length).findIndex((at,it)=>at!==rt[it]);return nt!==-1?(j=tt[nt],et=rt[nt],j.index-et.index):tt.findIndex(at=>at===et)>=0?1:(rt.findIndex(at=>at===j)>=0,-1)}function $c5a24bc478652b5f$var$getAncestors(s,j){let et=[];for(;(j==null?void 0:j.parentKey)!=null;)j=s.getItem(j.parentKey),et.unshift(j);return et}class $e40ea825a81a3709$export$52baac22726c72bf extends Set{constructor(j,et,tt){super(j),j instanceof $e40ea825a81a3709$export$52baac22726c72bf?(this.anchorKey=et||j.anchorKey,this.currentKey=tt||j.currentKey):(this.anchorKey=et,this.currentKey=tt)}}function $7af3f5b51489e0b5$var$equalSets(s,j){if(s.size!==j.size)return!1;for(let et of s)if(!j.has(et))return!1;return!0}function $7af3f5b51489e0b5$export$253fe78d46329472(s){let{selectionMode:j="none",disallowEmptySelection:et,allowDuplicateSelectionEvents:tt,selectionBehavior:rt="toggle",disabledBehavior:nt="all"}=s,at=reactExports.useRef(!1),[,it]=reactExports.useState(!1),ot=reactExports.useRef(null),st=reactExports.useRef(null),[,lt]=reactExports.useState(null),ct=reactExports.useMemo(()=>$7af3f5b51489e0b5$var$convertSelection(s.selectedKeys),[s.selectedKeys]),ut=reactExports.useMemo(()=>$7af3f5b51489e0b5$var$convertSelection(s.defaultSelectedKeys,new $e40ea825a81a3709$export$52baac22726c72bf),[s.defaultSelectedKeys]),[dt,ft]=$458b0a5536c1a7cf$export$40bfa8c7b0832715(ct,ut,s.onSelectionChange),ht=reactExports.useMemo(()=>s.disabledKeys?new Set(s.disabledKeys):new Set,[s.disabledKeys]),[mt,vt]=reactExports.useState(rt);rt==="replace"&&mt==="toggle"&&typeof dt=="object"&&dt.size===0&&vt("replace");let pt=reactExports.useRef(rt);return reactExports.useEffect(()=>{rt!==pt.current&&(vt(rt),pt.current=rt)},[rt]),{selectionMode:j,disallowEmptySelection:et,selectionBehavior:mt,setSelectionBehavior:vt,get isFocused(){return at.current},setFocused(gt){at.current=gt,it(gt)},get focusedKey(){return ot.current},get childFocusStrategy(){return st.current},setFocusedKey(gt,yt="first"){ot.current=gt,st.current=yt,lt(gt)},selectedKeys:dt,setSelectedKeys(gt){(tt||!$7af3f5b51489e0b5$var$equalSets(gt,dt))&&ft(gt)},disabledKeys:ht,disabledBehavior:nt}}function $7af3f5b51489e0b5$var$convertSelection(s,j){return s?s==="all"?"all":new $e40ea825a81a3709$export$52baac22726c72bf(s):j}class $d496c0a20b6e58ec$export$6c8a5aaad13c9852{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(j){this.state.setSelectionBehavior(j)}get isFocused(){return this.state.isFocused}setFocused(j){this.state.setFocused(j)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(j,et){(j==null||this.collection.getItem(j))&&this.state.setFocusedKey(j,et)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(j){return this.state.selectionMode==="none"?!1:(j=this.getKey(j),this.state.selectedKeys==="all"?this.canSelectItem(j):this.state.selectedKeys.has(j))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let j=this.getSelectAllKeys(),et=this.state.selectedKeys;return this._isSelectAll=j.every(tt=>et.has(tt)),this._isSelectAll}get firstSelectedKey(){let j=null;for(let et of this.state.selectedKeys){let tt=this.collection.getItem(et);(!j||tt&&$c5a24bc478652b5f$export$8c434b3a7a4dad6(this.collection,tt,j)<0)&&(j=tt)}return j==null?void 0:j.key}get lastSelectedKey(){let j=null;for(let et of this.state.selectedKeys){let tt=this.collection.getItem(et);(!j||tt&&$c5a24bc478652b5f$export$8c434b3a7a4dad6(this.collection,tt,j)>0)&&(j=tt)}return j==null?void 0:j.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(j){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(j);return}j=this.getKey(j);let et;if(this.state.selectedKeys==="all")et=new $e40ea825a81a3709$export$52baac22726c72bf([j],j,j);else{let tt=this.state.selectedKeys,rt=tt.anchorKey||j;et=new $e40ea825a81a3709$export$52baac22726c72bf(tt,rt,j);for(let nt of this.getKeyRange(rt,tt.currentKey||j))et.delete(nt);for(let nt of this.getKeyRange(j,rt))this.canSelectItem(nt)&&et.add(nt)}this.state.setSelectedKeys(et)}getKeyRange(j,et){let tt=this.collection.getItem(j),rt=this.collection.getItem(et);return tt&&rt?$c5a24bc478652b5f$export$8c434b3a7a4dad6(this.collection,tt,rt)<=0?this.getKeyRangeInternal(j,et):this.getKeyRangeInternal(et,j):[]}getKeyRangeInternal(j,et){let tt=[],rt=j;for(;rt;){let nt=this.collection.getItem(rt);if((nt&&nt.type==="item"||nt.type==="cell"&&this.allowsCellSelection)&&tt.push(rt),rt===et)return tt;rt=this.collection.getKeyAfter(rt)}return[]}getKey(j){let et=this.collection.getItem(j);if(!et||et.type==="cell"&&this.allowsCellSelection)return j;for(;et.type!=="item"&&et.parentKey!=null;)et=this.collection.getItem(et.parentKey);return!et||et.type!=="item"?null:et.key}toggleSelection(j){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(j)){this.replaceSelection(j);return}if(j=this.getKey(j),j==null)return;let et=new $e40ea825a81a3709$export$52baac22726c72bf(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);et.has(j)?et.delete(j):this.canSelectItem(j)&&(et.add(j),et.anchorKey=j,et.currentKey=j),!(this.disallowEmptySelection&&et.size===0)&&this.state.setSelectedKeys(et)}replaceSelection(j){if(this.selectionMode==="none"||(j=this.getKey(j),j==null))return;let et=this.canSelectItem(j)?new $e40ea825a81a3709$export$52baac22726c72bf([j],j,j):new $e40ea825a81a3709$export$52baac22726c72bf;this.state.setSelectedKeys(et)}setSelectedKeys(j){if(this.selectionMode==="none")return;let et=new $e40ea825a81a3709$export$52baac22726c72bf;for(let tt of j)if(tt=this.getKey(tt),tt!=null&&(et.add(tt),this.selectionMode==="single"))break;this.state.setSelectedKeys(et)}getSelectAllKeys(){let j=[],et=tt=>{for(;tt;){if(this.canSelectItem(tt)){let rt=this.collection.getItem(tt);rt.type==="item"&&j.push(tt),rt.hasChildNodes&&(this.allowsCellSelection||rt.type!=="item")&&et($c5a24bc478652b5f$export$fbdeaa6a76694f71($c5a24bc478652b5f$export$1005530eda016c13(rt,this.collection)).key)}tt=this.collection.getKeyAfter(tt)}};return et(this.collection.getFirstKey()),j}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new $e40ea825a81a3709$export$52baac22726c72bf)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(j,et){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(j)&&!this.disallowEmptySelection?this.toggleSelection(j):this.replaceSelection(j):this.selectionBehavior==="toggle"||et&&(et.pointerType==="touch"||et.pointerType==="virtual")?this.toggleSelection(j):this.replaceSelection(j))}isSelectionEqual(j){if(j===this.state.selectedKeys)return!0;let et=this.selectedKeys;if(j.size!==et.size)return!1;for(let tt of j)if(!et.has(tt))return!1;for(let tt of et)if(!j.has(tt))return!1;return!0}canSelectItem(j){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(j))return!1;let et=this.collection.getItem(j);return!(!et||et.type==="cell"&&!this.allowsCellSelection)}isDisabled(j){return this.state.disabledKeys.has(j)&&this.state.disabledBehavior==="all"}isLink(j){var et,tt;return!!(!((tt=this.collection.getItem(j))===null||tt===void 0||(et=tt.props)===null||et===void 0)&&et.href)}constructor(j,et,tt){this.collection=j,this.state=et;var rt;this.allowsCellSelection=(rt=tt==null?void 0:tt.allowsCellSelection)!==null&&rt!==void 0?rt:!1,this._isSelectAll=null}}class $a02d57049d202695$export$d085fb9e920b5ca7{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(j){let et=this.keyMap.get(j);return et?et.prevKey:null}getKeyAfter(j){let et=this.keyMap.get(j);return et?et.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(j){return this.keyMap.get(j)}at(j){const et=[...this.getKeys()];return this.getItem(et[j])}getChildren(j){let et=this.keyMap.get(j);return(et==null?void 0:et.childNodes)||[]}constructor(j){this.keyMap=new Map,this.iterable=j;let et=nt=>{if(this.keyMap.set(nt.key,nt),nt.childNodes&&nt.type==="section")for(let at of nt.childNodes)et(at)};for(let nt of j)et(nt);let tt,rt=0;for(let[nt,at]of this.keyMap)tt?(tt.nextKey=nt,at.prevKey=tt.key):(this.firstKey=nt,at.prevKey=void 0),at.type==="item"&&(at.index=rt++),tt=at,tt.nextKey=void 0;this.lastKey=tt==null?void 0:tt.key}}function $e72dd72e1c76a225$export$2f645645f7bca764(s){let{filter:j}=s,et=$7af3f5b51489e0b5$export$253fe78d46329472(s),tt=reactExports.useMemo(()=>s.disabledKeys?new Set(s.disabledKeys):new Set,[s.disabledKeys]),rt=reactExports.useCallback(st=>j?new $a02d57049d202695$export$d085fb9e920b5ca7(j(st)):new $a02d57049d202695$export$d085fb9e920b5ca7(st),[j]),nt=reactExports.useMemo(()=>({suppressTextValueWarning:s.suppressTextValueWarning}),[s.suppressTextValueWarning]),at=$7613b1592d41b092$export$6cd28814d92fa9c9(s,rt,nt),it=reactExports.useMemo(()=>new $d496c0a20b6e58ec$export$6c8a5aaad13c9852(at,et),[at,et]);const ot=reactExports.useRef(null);return reactExports.useEffect(()=>{if(et.focusedKey!=null&&!at.getItem(et.focusedKey)){const st=ot.current.getItem(et.focusedKey),lt=[...ot.current.getKeys()].map(ht=>{const mt=ot.current.getItem(ht);return mt.type==="item"?mt:null}).filter(ht=>ht!==null),ct=[...at.getKeys()].map(ht=>{const mt=at.getItem(ht);return mt.type==="item"?mt:null}).filter(ht=>ht!==null),ut=lt.length-ct.length;let dt=Math.min(ut>1?Math.max(st.index-ut+1,0):st.index,ct.length-1),ft;for(;dt>=0;){if(!it.isDisabled(ct[dt].key)){ft=ct[dt];break}dt<ct.length-1?dt++:(dt>st.index&&(dt=st.index),dt--)}et.setFocusedKey(ft?ft.key:null)}ot.current=at},[at,it,et,et.focusedKey]),{collection:at,disabledKeys:tt,selectionManager:it}}function $fc909762b330b746$export$61c6a8c84e605fb6(s){let[j,et]=$458b0a5536c1a7cf$export$40bfa8c7b0832715(s.isOpen,s.defaultOpen||!1,s.onOpenChange);const tt=reactExports.useCallback(()=>{et(!0)},[et]),rt=reactExports.useCallback(()=>{et(!1)},[et]),nt=reactExports.useCallback(()=>{et(!j)},[et,j]);return{isOpen:j,setOpen:et,open:tt,close:rt,toggle:nt}}var $b3427c06585c22a0$exports={};$b3427c06585c22a0$exports={rangeOverflow:s=>`يجب أن تكون القيمة ${s.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:s=>`يجب أن تكون القيمة ${s.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var $d282528f459122b9$exports={};$d282528f459122b9$exports={rangeOverflow:s=>`Стойността трябва да е ${s.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:s=>`Стойността трябва да е ${s.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var $2d5eecd634a9ca45$exports={};$2d5eecd634a9ca45$exports={rangeOverflow:s=>`Hodnota musí být ${s.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:s=>`Hodnota musí být ${s.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var $c8e2288226c24a67$exports={};$c8e2288226c24a67$exports={rangeOverflow:s=>`Værdien skal være ${s.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:s=>`Værdien skal være ${s.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var $6f5745e389c346d7$exports={};$6f5745e389c346d7$exports={rangeOverflow:s=>`Der Wert muss ${s.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:s=>`Der Wert muss ${s.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var $8c882ccf4300d1da$exports={};$8c882ccf4300d1da$exports={rangeOverflow:s=>`Η τιμή πρέπει να είναι ${s.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:s=>`Η τιμή πρέπει να είναι ${s.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var $22195056771860be$exports={};$22195056771860be$exports={rangeUnderflow:s=>`Value must be ${s.minValue} or later.`,rangeOverflow:s=>`Value must be ${s.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var $cedfa43b4e2a5906$exports={};$cedfa43b4e2a5906$exports={rangeOverflow:s=>`El valor debe ser ${s.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:s=>`El valor debe ser ${s.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var $eeeaa8daee3601c7$exports={};$eeeaa8daee3601c7$exports={rangeOverflow:s=>`Väärtus peab olema ${s.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:s=>`Väärtus peab olema ${s.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var $35e0614a49b3bb40$exports={};$35e0614a49b3bb40$exports={rangeOverflow:s=>`Arvon on oltava ${s.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:s=>`Arvon on oltava ${s.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var $929bc63f7705a78f$exports={};$929bc63f7705a78f$exports={rangeOverflow:s=>`La valeur doit être ${s.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:s=>`La valeur doit être ${s.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var $9a28d073b034d183$exports={};$9a28d073b034d183$exports={rangeOverflow:s=>`הערך חייב להיות ${s.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:s=>`הערך חייב להיות ${s.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var $7743e79780ebcca3$exports={};$7743e79780ebcca3$exports={rangeOverflow:s=>`Vrijednost mora biti ${s.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:s=>`Vrijednost mora biti ${s.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var $3351817a04898858$exports={};$3351817a04898858$exports={rangeOverflow:s=>`Az értéknek ${s.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:s=>`Az értéknek ${s.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var $4120bdb1d03484db$exports={};$4120bdb1d03484db$exports={rangeOverflow:s=>`Il valore deve essere ${s.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:s=>`Il valore deve essere ${s.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var $65e5e1569f34ea4f$exports={};$65e5e1569f34ea4f$exports={rangeOverflow:s=>`値は ${s.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:s=>`値は ${s.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var $d34552a7550967e7$exports={};$d34552a7550967e7$exports={rangeOverflow:s=>`값은 ${s.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:s=>`값은 ${s.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var $8f855bffe63f6eca$exports={};$8f855bffe63f6eca$exports={rangeOverflow:s=>`Reikšmė turi būti ${s.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:s=>`Reikšmė turi būti ${s.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var $ce40f46d09034645$exports={};$ce40f46d09034645$exports={rangeOverflow:s=>`Vērtībai ir jābūt ${s.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:s=>`Vērtībai ir jābūt ${s.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var $dd1a9a73340c793e$exports={};$dd1a9a73340c793e$exports={rangeOverflow:s=>`Verdien må være ${s.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:s=>`Verdien må være ${s.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var $4ee1fb3f0cbe6f59$exports={};$4ee1fb3f0cbe6f59$exports={rangeOverflow:s=>`Waarde moet ${s.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:s=>`Waarde moet ${s.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var $c85829aebb0bc94b$exports={};$c85829aebb0bc94b$exports={rangeOverflow:s=>`Wartość musi mieć wartość ${s.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:s=>`Wartość musi mieć wartość ${s.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var $27f5cd2291ca8a02$exports={};$27f5cd2291ca8a02$exports={rangeOverflow:s=>`O valor deve ser ${s.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:s=>`O valor deve ser ${s.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var $e046fdccd69bea8e$exports={};$e046fdccd69bea8e$exports={rangeOverflow:s=>`O valor tem de ser ${s.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:s=>`O valor tem de ser ${s.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var $fa5f88e804986547$exports={};$fa5f88e804986547$exports={rangeOverflow:s=>`Valoarea trebuie să fie ${s.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:s=>`Valoarea trebuie să fie ${s.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var $28e4714602d1b568$exports={};$28e4714602d1b568$exports={rangeOverflow:s=>`Значение должно быть не позже ${s.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:s=>`Значение должно быть не раньше ${s.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var $4e3bc8cf783ad569$exports={};$4e3bc8cf783ad569$exports={rangeOverflow:s=>`Hodnota musí byť ${s.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:s=>`Hodnota musí byť ${s.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var $bee07513333bdc15$exports={};$bee07513333bdc15$exports={rangeOverflow:s=>`Vrednost mora biti ${s.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:s=>`Vrednost mora biti ${s.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var $7ed9c6fad16a15ec$exports={};$7ed9c6fad16a15ec$exports={rangeOverflow:s=>`Vrednost mora da bude ${s.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:s=>`Vrednost mora da bude ${s.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var $8bef6d5a236de86c$exports={};$8bef6d5a236de86c$exports={rangeOverflow:s=>`Värdet måste vara ${s.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:s=>`Värdet måste vara ${s.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var $098b9a2d2340cfc5$exports={};$098b9a2d2340cfc5$exports={rangeOverflow:s=>`Değer, ${s.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:s=>`Değer, ${s.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var $54a862ea7fad7419$exports={};$54a862ea7fad7419$exports={rangeOverflow:s=>`Значення має бути не пізніше ${s.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:s=>`Значення має бути не раніше ${s.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var $e6cc491d590dfda5$exports={};$e6cc491d590dfda5$exports={rangeOverflow:s=>`值必须是 ${s.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:s=>`值必须是 ${s.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var $9aebf53181a474bd$exports={};$9aebf53181a474bd$exports={rangeOverflow:s=>`值必須是 ${s.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:s=>`值必須是 ${s.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};const $5b160d28a433310d$var$localeSymbol=Symbol.for("react-aria.i18n.locale"),$5b160d28a433310d$var$stringsSymbol=Symbol.for("react-aria.i18n.strings");let $5b160d28a433310d$var$cachedGlobalStrings;class $5b160d28a433310d$export$c17fa47878dc55b6{getStringForLocale(j,et){let rt=this.getStringsForLocale(et)[j];if(!rt)throw new Error(`Could not find intl message ${j} in ${et} locale`);return rt}getStringsForLocale(j){let et=this.strings[j];return et||(et=$5b160d28a433310d$var$getStringsForLocale(j,this.strings,this.defaultLocale),this.strings[j]=et),et}static getGlobalDictionaryForPackage(j){if(typeof window=="undefined")return null;let et=window[$5b160d28a433310d$var$localeSymbol];if($5b160d28a433310d$var$cachedGlobalStrings===void 0){let rt=window[$5b160d28a433310d$var$stringsSymbol];if(!rt)return null;$5b160d28a433310d$var$cachedGlobalStrings={};for(let nt in rt)$5b160d28a433310d$var$cachedGlobalStrings[nt]=new $5b160d28a433310d$export$c17fa47878dc55b6({[et]:rt[nt]},et)}let tt=$5b160d28a433310d$var$cachedGlobalStrings==null?void 0:$5b160d28a433310d$var$cachedGlobalStrings[j];if(!tt)throw new Error(`Strings for package "${j}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return tt}constructor(j,et="en-US"){this.strings={...j},this.defaultLocale=et}}function $5b160d28a433310d$var$getStringsForLocale(s,j,et="en-US"){if(j[s])return j[s];let tt=$5b160d28a433310d$var$getLanguage(s);if(j[tt])return j[tt];for(let rt in j)if(rt.startsWith(tt+"-"))return j[rt];return j[et]}function $5b160d28a433310d$var$getLanguage(s){return Intl.Locale?new Intl.Locale(s).language:s.split("-")[0]}const $6db58dc88e78b024$var$pluralRulesCache=new Map,$6db58dc88e78b024$var$numberFormatCache=new Map;class $6db58dc88e78b024$export$2f817fcdc4b89ae0{format(j,et){let tt=this.strings.getStringForLocale(j,this.locale);return typeof tt=="function"?tt(et,this):tt}plural(j,et,tt="cardinal"){let rt=et["="+j];if(rt)return typeof rt=="function"?rt():rt;let nt=this.locale+":"+tt,at=$6db58dc88e78b024$var$pluralRulesCache.get(nt);at||(at=new Intl.PluralRules(this.locale,{type:tt}),$6db58dc88e78b024$var$pluralRulesCache.set(nt,at));let it=at.select(j);return rt=et[it]||et.other,typeof rt=="function"?rt():rt}number(j){let et=$6db58dc88e78b024$var$numberFormatCache.get(this.locale);return et||(et=new Intl.NumberFormat(this.locale),$6db58dc88e78b024$var$numberFormatCache.set(this.locale,et)),et.format(j)}select(j,et){let tt=j[et]||j.other;return typeof tt=="function"?tt():tt}constructor(j,et){this.locale=j,this.strings=et}}function $parcel$interopDefault$4(s){return s&&s.__esModule?s.default:s}var $452ac34de8c2444e$exports={};$452ac34de8c2444e$exports={"ar-AE":$b3427c06585c22a0$exports,"bg-BG":$d282528f459122b9$exports,"cs-CZ":$2d5eecd634a9ca45$exports,"da-DK":$c8e2288226c24a67$exports,"de-DE":$6f5745e389c346d7$exports,"el-GR":$8c882ccf4300d1da$exports,"en-US":$22195056771860be$exports,"es-ES":$cedfa43b4e2a5906$exports,"et-EE":$eeeaa8daee3601c7$exports,"fi-FI":$35e0614a49b3bb40$exports,"fr-FR":$929bc63f7705a78f$exports,"he-IL":$9a28d073b034d183$exports,"hr-HR":$7743e79780ebcca3$exports,"hu-HU":$3351817a04898858$exports,"it-IT":$4120bdb1d03484db$exports,"ja-JP":$65e5e1569f34ea4f$exports,"ko-KR":$d34552a7550967e7$exports,"lt-LT":$8f855bffe63f6eca$exports,"lv-LV":$ce40f46d09034645$exports,"nb-NO":$dd1a9a73340c793e$exports,"nl-NL":$4ee1fb3f0cbe6f59$exports,"pl-PL":$c85829aebb0bc94b$exports,"pt-BR":$27f5cd2291ca8a02$exports,"pt-PT":$e046fdccd69bea8e$exports,"ro-RO":$fa5f88e804986547$exports,"ru-RU":$28e4714602d1b568$exports,"sk-SK":$4e3bc8cf783ad569$exports,"sl-SI":$bee07513333bdc15$exports,"sr-SP":$7ed9c6fad16a15ec$exports,"sv-SE":$8bef6d5a236de86c$exports,"tr-TR":$098b9a2d2340cfc5$exports,"uk-UA":$54a862ea7fad7419$exports,"zh-CN":$e6cc491d590dfda5$exports,"zh-TW":$9aebf53181a474bd$exports};const $35a22f14a1f04b11$var$dictionary=new $5b160d28a433310d$export$c17fa47878dc55b6($parcel$interopDefault$4($452ac34de8c2444e$exports));function $35a22f14a1f04b11$var$getLocale(){return typeof navigator!="undefined"&&(navigator.language||navigator.userLanguage)||"en-US"}function $35a22f14a1f04b11$export$f18627323ab57ac0(s,j,et,tt,rt){let nt=s!=null&&et!=null&&s.compare(et)>0,at=s!=null&&j!=null&&s.compare(j)<0,it=s!=null&&(tt==null?void 0:tt(s))||!1,ot=nt||at||it,st=[];if(ot){let lt=$35a22f14a1f04b11$var$getLocale(),ct=$5b160d28a433310d$export$c17fa47878dc55b6.getGlobalDictionaryForPackage("@react-stately/datepicker")||$35a22f14a1f04b11$var$dictionary,ut=new $6db58dc88e78b024$export$2f817fcdc4b89ae0(lt,ct),dt=new $fb18d541ea1ad717$export$ad991b66133851cf(lt,$35a22f14a1f04b11$export$7e319ea407e63bc0({},rt)),ft=dt.resolvedOptions().timeZone;at&&st.push(ut.format("rangeUnderflow",{minValue:dt.format(j.toDate(ft))})),nt&&st.push(ut.format("rangeOverflow",{maxValue:dt.format(et.toDate(ft))})),it&&st.push(ut.format("unavailableDate"))}return{isInvalid:ot,validationErrors:st,validationDetails:{badInput:it,customError:!1,patternMismatch:!1,rangeOverflow:nt,rangeUnderflow:at,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!ot}}}function $35a22f14a1f04b11$export$80ff8fc0ae339c13(s,j,et,tt,rt){let nt=$35a22f14a1f04b11$export$f18627323ab57ac0(s==null?void 0:s.start,j,et,tt,rt),at=$35a22f14a1f04b11$export$f18627323ab57ac0(s==null?void 0:s.end,j,et,tt,rt),it=$e5be200c675c3b3a$export$75ee7c75d68f5b0e(nt,at);return s.end!=null&&s.start!=null&&s.end.compare(s.start)<0&&(it=$e5be200c675c3b3a$export$75ee7c75d68f5b0e(it,{isInvalid:!0,validationErrors:[$35a22f14a1f04b11$var$dictionary.getStringForLocale("rangeReversed",$35a22f14a1f04b11$var$getLocale())],validationDetails:{...$e5be200c675c3b3a$export$aca958c65c314e6c,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})),it}const $35a22f14a1f04b11$var$DEFAULT_FIELD_OPTIONS={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},$35a22f14a1f04b11$var$TWO_DIGIT_FIELD_OPTIONS={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function $35a22f14a1f04b11$export$7e319ea407e63bc0(s,j){s={...j.shouldForceLeadingZeros?$35a22f14a1f04b11$var$TWO_DIGIT_FIELD_OPTIONS:$35a22f14a1f04b11$var$DEFAULT_FIELD_OPTIONS,...s};let tt=j.granularity||"minute",rt=Object.keys(s);var nt;let at=rt.indexOf((nt=j.maxGranularity)!==null&&nt!==void 0?nt:"year");at<0&&(at=0);let it=rt.indexOf(tt);if(it<0&&(it=2),at>it)throw new Error("maxGranularity must be greater than granularity");let ot=rt.slice(at,it+1).reduce((lt,ct)=>(lt[ct]=s[ct],lt),{});return j.hourCycle!=null&&(ot.hour12=j.hourCycle===12),ot.timeZone=j.timeZone||"UTC",(tt==="hour"||tt==="minute"||tt==="second")&&j.timeZone&&!j.hideTimeZone&&(ot.timeZoneName="short"),j.showEra&&at===0&&(ot.era="short"),ot}function $35a22f14a1f04b11$export$c5221a78ef73c5e9(s){return s&&"hour"in s?s:new $35ea8db9cb2ccb90$export$680ea196effce5f}function $35a22f14a1f04b11$export$61a490a80c552550(s,j){if(s===null)return null;if(s)return $11d87f3f76e88657$export$b4a036af3fc0b032(s,j)}function $35a22f14a1f04b11$export$66aa2b09de4b1ea5(s,j,et,tt){if(s)return $35a22f14a1f04b11$export$61a490a80c552550(s,et);let rt=$11d87f3f76e88657$export$b4a036af3fc0b032($14e0f24ef4ac5c92$export$461939dd4422153(tt).set({hour:0,minute:0,second:0,millisecond:0}),et);return j==="year"||j==="month"||j==="day"?$11d87f3f76e88657$export$93522d1a439f3617(rt):tt?rt:$11d87f3f76e88657$export$b21e0b124e224484(rt)}function $35a22f14a1f04b11$export$2440da353cedad43(s,j){let et=s&&"timeZone"in s?s.timeZone:void 0,tt=s&&"minute"in s?"minute":"day";if(s&&j&&!(j in s))throw new Error("Invalid granularity "+j+" for value "+s.toString());let[rt,nt]=reactExports.useState([tt,et]);s&&(rt[0]!==tt||rt[1]!==et)&&nt([tt,et]),j||(j=s?tt:rt[0]);let at=s?et:rt[1];return[j,at]}function $ab5bf3f618090389$export$87194bb378cc3ac2(s){let j=$fc909762b330b746$export$61c6a8c84e605fb6(s),[et,tt]=$458b0a5536c1a7cf$export$40bfa8c7b0832715(s.value,s.defaultValue||null,s.onChange),rt=et||s.placeholderValue,[nt,at]=$35a22f14a1f04b11$export$2440da353cedad43(rt,s.granularity),it=et!=null?et.toDate(at!=null?at:"UTC"):null,ot=nt==="hour"||nt==="minute"||nt==="second";var st;let lt=(st=s.shouldCloseOnSelect)!==null&&st!==void 0?st:!0,[ct,ut]=reactExports.useState(null),[dt,ft]=reactExports.useState(null);if(et&&(ct=et,"hour"in et&&(dt=et)),rt&&!(nt in rt))throw new Error("Invalid granularity "+nt+" for value "+rt.toString());let ht=(et==null?void 0:et.calendar.identifier)==="gregory"&&et.era==="BC",mt=reactExports.useMemo(()=>({granularity:nt,timeZone:at,hideTimeZone:s.hideTimeZone,hourCycle:s.hourCycle,shouldForceLeadingZeros:s.shouldForceLeadingZeros,showEra:ht}),[nt,s.hourCycle,s.shouldForceLeadingZeros,at,s.hideTimeZone,ht]),{minValue:vt,maxValue:pt,isDateUnavailable:gt}=s,yt=reactExports.useMemo(()=>$35a22f14a1f04b11$export$f18627323ab57ac0(et,vt,pt,gt,mt),[et,vt,pt,gt,mt]),$t=$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...s,value:et,builtinValidation:yt}),xt=$t.displayValidation.isInvalid,Ct=s.validationState||(xt?"invalid":null),bt=(wt,Rt)=>{tt("timeZone"in Rt?Rt.set($11d87f3f76e88657$export$93522d1a439f3617(wt)):$11d87f3f76e88657$export$b21e0b124e224484(wt,Rt)),ut(null),ft(null),$t.commitValidation()};return{...$t,value:et,setValue:tt,dateValue:ct,timeValue:dt,setDateValue:wt=>{let Rt=typeof lt=="function"?lt():lt;ot?dt||Rt?bt(wt,dt||$35a22f14a1f04b11$export$c5221a78ef73c5e9(s.placeholderValue)):ut(wt):(tt(wt),$t.commitValidation()),Rt&&j.setOpen(!1)},setTimeValue:wt=>{ct&&wt?bt(ct,wt):ft(wt)},granularity:nt,hasTime:ot,...j,setOpen(wt){!wt&&!et&&ct&&ot&&bt(ct,dt||$35a22f14a1f04b11$export$c5221a78ef73c5e9(s.placeholderValue)),j.setOpen(wt)},validationState:Ct,isInvalid:xt,formatValue(wt,Rt){if(!it)return"";let Pt=$35a22f14a1f04b11$export$7e319ea407e63bc0(Rt,mt);return new $fb18d541ea1ad717$export$ad991b66133851cf(wt,Pt).format(it)}}}const $3e3ed55ab2966714$var$placeholders=new $5b160d28a433310d$export$c17fa47878dc55b6({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function $3e3ed55ab2966714$export$d3f5c5e0a5023fa0(s,j,et){return s==="era"||s==="dayPeriod"?j:s==="year"||s==="month"||s==="day"?$3e3ed55ab2966714$var$placeholders.getStringForLocale(s,et):"––"}const $3c0fc76039f1c516$var$EDITABLE_SEGMENTS={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},$3c0fc76039f1c516$var$PAGE_STEP={year:5,month:2,day:7,hour:2,minute:15,second:15},$3c0fc76039f1c516$var$TYPE_MAPPING={dayperiod:"dayPeriod"};function $3c0fc76039f1c516$export$60e84778edff6d26(s){let{locale:j,createCalendar:et,hideTimeZone:tt,isDisabled:rt,isReadOnly:nt,isRequired:at,minValue:it,maxValue:ot,isDateUnavailable:st}=s,lt=s.value||s.defaultValue||s.placeholderValue,[ct,ut]=$35a22f14a1f04b11$export$2440da353cedad43(lt,s.granularity),dt=ut||"UTC";if(lt&&!(ct in lt))throw new Error("Invalid granularity "+ct+" for value "+lt.toString());let ft=reactExports.useMemo(()=>new $fb18d541ea1ad717$export$ad991b66133851cf(j),[j]),ht=reactExports.useMemo(()=>et(ft.resolvedOptions().calendar),[et,ft]),[mt,vt]=$458b0a5536c1a7cf$export$40bfa8c7b0832715(s.value,s.defaultValue,s.onChange),pt=reactExports.useMemo(()=>$35a22f14a1f04b11$export$61a490a80c552550(mt,ht),[mt,ht]),[gt,yt]=reactExports.useState(()=>$35a22f14a1f04b11$export$66aa2b09de4b1ea5(s.placeholderValue,ct,ht,ut)),$t=pt||gt,xt=ht.identifier==="gregory"&&$t.era==="BC",Ct=reactExports.useMemo(()=>{var Ft;return{granularity:ct,maxGranularity:(Ft=s.maxGranularity)!==null&&Ft!==void 0?Ft:"year",timeZone:ut,hideTimeZone:tt,hourCycle:s.hourCycle,showEra:xt,shouldForceLeadingZeros:s.shouldForceLeadingZeros}},[s.maxGranularity,ct,s.hourCycle,s.shouldForceLeadingZeros,ut,tt,xt]),bt=reactExports.useMemo(()=>$35a22f14a1f04b11$export$7e319ea407e63bc0({},Ct),[Ct]),St=reactExports.useMemo(()=>new $fb18d541ea1ad717$export$ad991b66133851cf(j,bt),[j,bt]),_t=reactExports.useMemo(()=>St.resolvedOptions(),[St]),wt=reactExports.useMemo(()=>St.formatToParts(new Date).filter(Ft=>$3c0fc76039f1c516$var$EDITABLE_SEGMENTS[Ft.type]).reduce((Ft,Ut)=>(Ft[Ut.type]=!0,Ft),{}),[St]),[Rt,Pt]=reactExports.useState(()=>s.value||s.defaultValue?{...wt}:{}),Et=reactExports.useRef(),Ot=reactExports.useRef(ht.identifier);reactExports.useEffect(()=>{ht.identifier!==Ot.current&&(Ot.current=ht.identifier,yt(Ft=>Object.keys(Rt).length>0?$11d87f3f76e88657$export$b4a036af3fc0b032(Ft,ht):$35a22f14a1f04b11$export$66aa2b09de4b1ea5(s.placeholderValue,ct,ht,ut)))},[ht,ct,Rt,ut,s.placeholderValue]),mt&&Object.keys(Rt).length<Object.keys(wt).length&&(Rt={...wt},Pt(Rt)),mt==null&&Object.keys(Rt).length===Object.keys(wt).length&&(Rt={},Pt(Rt),yt($35a22f14a1f04b11$export$66aa2b09de4b1ea5(s.placeholderValue,ct,ht,ut)));let Mt=pt&&Object.keys(Rt).length>=Object.keys(wt).length?pt:gt,Dt=Ft=>{if(s.isDisabled||s.isReadOnly)return;let Ut=Object.keys(Rt),Vt=Object.keys(wt);Ft==null?(vt(null),yt($35a22f14a1f04b11$export$66aa2b09de4b1ea5(s.placeholderValue,ct,ht,ut)),Pt({})):Ut.length>=Vt.length||Ut.length===Vt.length-1&&wt.dayPeriod&&!Rt.dayPeriod&&Et.current!=="dayPeriod"?(Ft=$11d87f3f76e88657$export$b4a036af3fc0b032(Ft,(lt==null?void 0:lt.calendar)||new $3b62074eb05584b2$export$80ee6245ec4f29ec),vt(Ft)):yt(Ft),Et.current=null},At=reactExports.useMemo(()=>Mt.toDate(dt),[Mt,dt]),Nt=reactExports.useMemo(()=>St.formatToParts(At).map(Ft=>{let Ut=$3c0fc76039f1c516$var$EDITABLE_SEGMENTS[Ft.type];Ft.type==="era"&&ht.getEras().length===1&&(Ut=!1);let Vt=$3c0fc76039f1c516$var$EDITABLE_SEGMENTS[Ft.type]&&!Rt[Ft.type],Ht=$3c0fc76039f1c516$var$EDITABLE_SEGMENTS[Ft.type]?$3e3ed55ab2966714$export$d3f5c5e0a5023fa0(Ft.type,Ft.value,j):null;return{type:$3c0fc76039f1c516$var$TYPE_MAPPING[Ft.type]||Ft.type,text:Vt?Ht:Ft.value,...$3c0fc76039f1c516$var$getSegmentLimits(Mt,Ft.type,_t),isPlaceholder:Vt,placeholder:Ht,isEditable:Ut}}),[At,Rt,St,_t,Mt,ht,j]);wt.era&&Rt.year&&!Rt.era?(Rt.era=!0,Pt({...Rt})):!wt.era&&Rt.era&&(delete Rt.era,Pt({...Rt}));let kt=Ft=>{Rt[Ft]=!0,Ft==="year"&&wt.era&&(Rt.era=!0),Pt({...Rt})},It=(Ft,Ut)=>{if(Rt[Ft])Dt($3c0fc76039f1c516$var$addSegment(Mt,Ft,Ut,_t));else{kt(Ft);let Vt=Object.keys(Rt),Ht=Object.keys(wt);(Vt.length>=Ht.length||Vt.length===Ht.length-1&&wt.dayPeriod&&!Rt.dayPeriod)&&Dt(Mt)}},Tt=reactExports.useMemo(()=>$35a22f14a1f04b11$export$f18627323ab57ac0(mt,it,ot,st,Ct),[mt,it,ot,st,Ct]),jt=$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...s,value:mt,builtinValidation:Tt}),Bt=jt.displayValidation.isInvalid,qt=s.validationState||(Bt?"invalid":null);var Lt;return{...jt,value:pt,dateValue:At,calendar:ht,setValue:Dt,segments:Nt,dateFormatter:St,validationState:qt,isInvalid:Bt,granularity:ct,maxGranularity:(Lt=s.maxGranularity)!==null&&Lt!==void 0?Lt:"year",isDisabled:rt,isReadOnly:nt,isRequired:at,increment(Ft){It(Ft,1)},decrement(Ft){It(Ft,-1)},incrementPage(Ft){It(Ft,$3c0fc76039f1c516$var$PAGE_STEP[Ft]||1)},decrementPage(Ft){It(Ft,-($3c0fc76039f1c516$var$PAGE_STEP[Ft]||1))},setSegment(Ft,Ut){kt(Ft),Dt($3c0fc76039f1c516$var$setSegment(Mt,Ft,Ut,_t))},confirmPlaceholder(){if(s.isDisabled||s.isReadOnly)return;let Ft=Object.keys(Rt),Ut=Object.keys(wt);Ft.length===Ut.length-1&&wt.dayPeriod&&!Rt.dayPeriod&&(Rt={...wt},Pt(Rt),Dt(Mt.copy()))},clearSegment(Ft){delete Rt[Ft],Et.current=Ft,Pt({...Rt});let Ut=$35a22f14a1f04b11$export$66aa2b09de4b1ea5(s.placeholderValue,ct,ht,ut),Vt=Mt;if(Ft==="dayPeriod"&&"hour"in Mt&&"hour"in Ut){let Ht=Mt.hour>=12,Wt=Ut.hour>=12;Ht&&!Wt?Vt=Mt.set({hour:Mt.hour-12}):!Ht&&Wt&&(Vt=Mt.set({hour:Mt.hour+12}))}else Ft in Mt&&(Vt=Mt.set({[Ft]:Ut[Ft]}));vt(null),Dt(Vt)},formatValue(Ft){if(!pt)return"";let Ut=$35a22f14a1f04b11$export$7e319ea407e63bc0(Ft,Ct);return new $fb18d541ea1ad717$export$ad991b66133851cf(j,Ut).format(At)}}}function $3c0fc76039f1c516$var$getSegmentLimits(s,j,et){switch(j){case"era":{let tt=s.calendar.getEras();return{value:tt.indexOf(s.era),minValue:0,maxValue:tt.length-1}}case"year":return{value:s.year,minValue:1,maxValue:s.calendar.getYearsInEra(s)};case"month":return{value:s.month,minValue:$14e0f24ef4ac5c92$export$5412ac11713b72ad(s),maxValue:s.calendar.getMonthsInYear(s)};case"day":return{value:s.day,minValue:$14e0f24ef4ac5c92$export$b2f4953d301981d5(s),maxValue:s.calendar.getDaysInMonth(s)}}if("hour"in s)switch(j){case"dayPeriod":return{value:s.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(et.hour12){let tt=s.hour>=12;return{value:s.hour,minValue:tt?12:0,maxValue:tt?23:11}}return{value:s.hour,minValue:0,maxValue:23};case"minute":return{value:s.minute,minValue:0,maxValue:59};case"second":return{value:s.second,minValue:0,maxValue:59}}return{}}function $3c0fc76039f1c516$var$addSegment(s,j,et,tt){switch(j){case"era":case"year":case"month":case"day":return s.cycle(j,et,{round:j==="year"})}if("hour"in s)switch(j){case"dayPeriod":{let rt=s.hour,nt=rt>=12;return s.set({hour:nt?rt-12:rt+12})}case"hour":case"minute":case"second":return s.cycle(j,et,{round:j!=="hour",hourCycle:tt.hour12?12:24})}}function $3c0fc76039f1c516$var$setSegment(s,j,et,tt){switch(j){case"day":case"month":case"year":case"era":return s.set({[j]:et})}if("hour"in s)switch(j){case"dayPeriod":{let rt=s.hour,nt=rt>=12;return et>=12===nt?s:s.set({hour:nt?rt-12:rt+12})}case"hour":if(tt.hour12){let nt=s.hour>=12;!nt&&et===12&&(et=0),nt&&et<12&&(et+=12)}case"minute":case"second":return s.set({[j]:et})}}function $93c38a5e28be6249$export$e50a61c1de9f574(s){var j,et;let tt=$fc909762b330b746$export$61c6a8c84e605fb6(s),[rt,nt]=$458b0a5536c1a7cf$export$40bfa8c7b0832715(s.value,s.defaultValue||null,s.onChange),[at,it]=reactExports.useState(()=>rt||{start:null,end:null});rt==null&&at.start&&at.end&&(at={start:null,end:null},it(at));let ot=rt||at,st=Mt=>{it(Mt||{start:null,end:null}),Mt!=null&&Mt.start&&Mt.end?nt(Mt):nt(null)},lt=(ot==null?void 0:ot.start)||(ot==null?void 0:ot.end)||s.placeholderValue,[ct,ut]=$35a22f14a1f04b11$export$2440da353cedad43(lt,s.granularity),dt=ct==="hour"||ct==="minute"||ct==="second";var ft;let ht=(ft=s.shouldCloseOnSelect)!==null&&ft!==void 0?ft:!0,[mt,vt]=reactExports.useState(null),[pt,gt]=reactExports.useState(null);ot&&ot.start&&ot.end&&(mt=ot,"hour"in ot.start&&(pt=ot));let yt=(Mt,Dt)=>{st({start:"timeZone"in Dt.start?Dt.start.set($11d87f3f76e88657$export$93522d1a439f3617(Mt.start)):$11d87f3f76e88657$export$b21e0b124e224484(Mt.start,Dt.start),end:"timeZone"in Dt.end?Dt.end.set($11d87f3f76e88657$export$93522d1a439f3617(Mt.end)):$11d87f3f76e88657$export$b21e0b124e224484(Mt.end,Dt.end)}),vt(null),gt(null),Pt.commitValidation()},$t=Mt=>{let Dt=typeof ht=="function"?ht():ht;dt?Dt||Mt.start&&Mt.end&&(pt!=null&&pt.start)&&(pt!=null&&pt.end)?yt(Mt,{start:(pt==null?void 0:pt.start)||$35a22f14a1f04b11$export$c5221a78ef73c5e9(s.placeholderValue),end:(pt==null?void 0:pt.end)||$35a22f14a1f04b11$export$c5221a78ef73c5e9(s.placeholderValue)}):vt(Mt):Mt.start&&Mt.end?(st(Mt),Pt.commitValidation()):vt(Mt),Dt&&tt.setOpen(!1)},xt=Mt=>{mt!=null&&mt.start&&(mt!=null&&mt.end)&&Mt.start&&Mt.end?yt(mt,Mt):gt(Mt)},Ct=(ot==null||(j=ot.start)===null||j===void 0?void 0:j.calendar.identifier)==="gregory"&&ot.start.era==="BC"||(ot==null||(et=ot.end)===null||et===void 0?void 0:et.calendar.identifier)==="gregory"&&ot.end.era==="BC",bt=reactExports.useMemo(()=>({granularity:ct,timeZone:ut,hideTimeZone:s.hideTimeZone,hourCycle:s.hourCycle,shouldForceLeadingZeros:s.shouldForceLeadingZeros,showEra:Ct}),[ct,s.hourCycle,s.shouldForceLeadingZeros,ut,s.hideTimeZone,Ct]),{minValue:St,maxValue:_t,isDateUnavailable:wt}=s,Rt=reactExports.useMemo(()=>$35a22f14a1f04b11$export$80ff8fc0ae339c13(ot,St,_t,wt,bt),[ot,St,_t,wt,bt]),Pt=$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...s,value:rt,name:reactExports.useMemo(()=>[s.startName,s.endName],[s.startName,s.endName]),builtinValidation:Rt}),Et=Pt.displayValidation.isInvalid,Ot=s.validationState||(Et?"invalid":null);return{...Pt,value:ot,setValue:st,dateRange:mt,timeRange:pt,granularity:ct,hasTime:dt,setDate(Mt,Dt){$t({...mt,[Mt]:Dt})},setTime(Mt,Dt){xt({...pt,[Mt]:Dt})},setDateTime(Mt,Dt){st({...ot,[Mt]:Dt})},setDateRange:$t,setTimeRange:xt,...tt,setOpen(Mt){!Mt&&!(ot!=null&&ot.start&&(ot!=null&&ot.end))&&(mt!=null&&mt.start)&&(mt!=null&&mt.end)&&dt&&yt(mt,{start:(pt==null?void 0:pt.start)||$35a22f14a1f04b11$export$c5221a78ef73c5e9(s.placeholderValue),end:(pt==null?void 0:pt.end)||$35a22f14a1f04b11$export$c5221a78ef73c5e9(s.placeholderValue)}),tt.setOpen(Mt)},validationState:Ot,isInvalid:Et,formatValue(Mt,Dt){if(!ot||!ot.start||!ot.end)return null;let At="timeZone"in ot.start?ot.start.timeZone:void 0,Nt=s.granularity||(ot.start&&"minute"in ot.start?"minute":"day"),kt="timeZone"in ot.end?ot.end.timeZone:void 0,It=s.granularity||(ot.end&&"minute"in ot.end?"minute":"day"),Tt=$35a22f14a1f04b11$export$7e319ea407e63bc0(Dt,{granularity:Nt,timeZone:At,hideTimeZone:s.hideTimeZone,hourCycle:s.hourCycle,showEra:ot.start.calendar.identifier==="gregory"&&ot.start.era==="BC"||ot.end.calendar.identifier==="gregory"&&ot.end.era==="BC"}),jt=ot.start.toDate(At||"UTC"),Bt=ot.end.toDate(kt||"UTC"),qt=new $fb18d541ea1ad717$export$ad991b66133851cf(Mt,Tt),Lt;if(At===kt&&Nt===It&&ot.start.compare(ot.end)!==0){try{let Ft=qt.formatRangeToParts(jt,Bt),Ut=-1;for(let Wt=0;Wt<Ft.length;Wt++){let zt=Ft[Wt];if(zt.source==="shared"&&zt.type==="literal")Ut=Wt;else if(zt.source==="endRange")break}let Vt="",Ht="";for(let Wt=0;Wt<Ft.length;Wt++)Wt<Ut?Vt+=Ft[Wt].value:Wt>Ut&&(Ht+=Ft[Wt].value);return{start:Vt,end:Ht}}catch(Ft){}Lt=qt}else{let Ft=$35a22f14a1f04b11$export$7e319ea407e63bc0(Dt,{granularity:It,timeZone:kt,hideTimeZone:s.hideTimeZone,hourCycle:s.hourCycle});Lt=new $fb18d541ea1ad717$export$ad991b66133851cf(Mt,Ft)}return{start:qt.format(jt),end:Lt.format(Bt)}}}}function $eff5d8ee529ac4bb$export$fd53cef0cc796101(s){let{placeholderValue:j=new $35ea8db9cb2ccb90$export$680ea196effce5f,minValue:et,maxValue:tt,granularity:rt,validate:nt}=s,[at,it]=$458b0a5536c1a7cf$export$40bfa8c7b0832715(s.value,s.defaultValue,s.onChange),ot=at||j,st=ot&&"day"in ot?ot:void 0,lt=s.defaultValue&&"timeZone"in s.defaultValue?s.defaultValue.timeZone:void 0,ct=reactExports.useMemo(()=>{let pt=ot&&"timeZone"in ot?ot.timeZone:void 0;return(pt||lt)&&j?$11d87f3f76e88657$export$84c95a83c799e074($eff5d8ee529ac4bb$var$convertValue(j),pt||lt):$eff5d8ee529ac4bb$var$convertValue(j)},[j,ot,lt]),ut=reactExports.useMemo(()=>$eff5d8ee529ac4bb$var$convertValue(et,st),[et,st]),dt=reactExports.useMemo(()=>$eff5d8ee529ac4bb$var$convertValue(tt,st),[tt,st]),ft=reactExports.useMemo(()=>at&&"day"in at?$11d87f3f76e88657$export$d33f79e3ffc3dc83(at):at,[at]),ht=reactExports.useMemo(()=>at==null?null:$eff5d8ee529ac4bb$var$convertValue(at),[at]);return{...$3c0fc76039f1c516$export$60e84778edff6d26({...s,value:ht,defaultValue:void 0,minValue:ut,maxValue:dt,onChange:pt=>{it(st||lt?pt:pt&&$11d87f3f76e88657$export$d33f79e3ffc3dc83(pt))},granularity:rt||"minute",maxGranularity:"hour",placeholderValue:ct,createCalendar:()=>new $3b62074eb05584b2$export$80ee6245ec4f29ec,validate:reactExports.useCallback(()=>nt==null?void 0:nt(at),[nt,at])}),timeValue:ft}}function $eff5d8ee529ac4bb$var$convertValue(s,j=$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3($14e0f24ef4ac5c92$export$aa8b41735afcabd2())){return s?"day"in s?s:$11d87f3f76e88657$export$b21e0b124e224484(j,s):null}let $488c6ddbf4ef74c2$var$formatterCache=new Map,$488c6ddbf4ef74c2$var$supportsSignDisplay=!1;try{$488c6ddbf4ef74c2$var$supportsSignDisplay=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch(s){}let $488c6ddbf4ef74c2$var$supportsUnit=!1;try{$488c6ddbf4ef74c2$var$supportsUnit=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch(s){}const $488c6ddbf4ef74c2$var$UNITS={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5{format(j){let et="";if(!$488c6ddbf4ef74c2$var$supportsSignDisplay&&this.options.signDisplay!=null?et=$488c6ddbf4ef74c2$export$711b50b3c525e0f2(this.numberFormatter,this.options.signDisplay,j):et=this.numberFormatter.format(j),this.options.style==="unit"&&!$488c6ddbf4ef74c2$var$supportsUnit){var tt;let{unit:rt,unitDisplay:nt="short",locale:at}=this.resolvedOptions();if(!rt)return et;let it=(tt=$488c6ddbf4ef74c2$var$UNITS[rt])===null||tt===void 0?void 0:tt[nt];et+=it[at]||it.default}return et}formatToParts(j){return this.numberFormatter.formatToParts(j)}formatRange(j,et){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(j,et);if(et<j)throw new RangeError("End date must be >= start date");return`${this.format(j)} – ${this.format(et)}`}formatRangeToParts(j,et){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(j,et);if(et<j)throw new RangeError("End date must be >= start date");let tt=this.numberFormatter.formatToParts(j),rt=this.numberFormatter.formatToParts(et);return[...tt.map(nt=>({...nt,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...rt.map(nt=>({...nt,source:"endRange"}))]}resolvedOptions(){let j=this.numberFormatter.resolvedOptions();return!$488c6ddbf4ef74c2$var$supportsSignDisplay&&this.options.signDisplay!=null&&(j={...j,signDisplay:this.options.signDisplay}),!$488c6ddbf4ef74c2$var$supportsUnit&&this.options.style==="unit"&&(j={...j,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),j}constructor(j,et={}){this.numberFormatter=$488c6ddbf4ef74c2$var$getCachedNumberFormatter(j,et),this.options=et}}function $488c6ddbf4ef74c2$var$getCachedNumberFormatter(s,j={}){let{numberingSystem:et}=j;if(et&&s.includes("-nu-")&&(s.includes("-u-")||(s+="-u-"),s+=`-nu-${et}`),j.style==="unit"&&!$488c6ddbf4ef74c2$var$supportsUnit){var tt;let{unit:at,unitDisplay:it="short"}=j;if(!at)throw new Error('unit option must be provided with style: "unit"');if(!(!((tt=$488c6ddbf4ef74c2$var$UNITS[at])===null||tt===void 0)&&tt[it]))throw new Error(`Unsupported unit ${at} with unitDisplay = ${it}`);j={...j,style:"decimal"}}let rt=s+(j?Object.entries(j).sort((at,it)=>at[0]<it[0]?-1:1).join():"");if($488c6ddbf4ef74c2$var$formatterCache.has(rt))return $488c6ddbf4ef74c2$var$formatterCache.get(rt);let nt=new Intl.NumberFormat(s,j);return $488c6ddbf4ef74c2$var$formatterCache.set(rt,nt),nt}function $488c6ddbf4ef74c2$export$711b50b3c525e0f2(s,j,et){if(j==="auto")return s.format(et);if(j==="never")return s.format(Math.abs(et));{let tt=!1;if(j==="always"?tt=et>0||Object.is(et,0):j==="exceptZero"&&(Object.is(et,-0)||Object.is(et,0)?et=Math.abs(et):tt=et>0),tt){let rt=s.format(-et),nt=s.format(et),at=rt.replace(nt,"").replace(/\u200e|\u061C/,"");return[...at].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),rt.replace(nt,"!!!").replace(at,"+").replace("!!!",nt)}else return s.format(et)}}const $6c7bd7858deea686$var$CURRENCY_SIGN_REGEX=new RegExp("^.*\\(.*\\).*$"),$6c7bd7858deea686$var$NUMBERING_SYSTEMS=["latn","arab","hanidec"];class $6c7bd7858deea686$export$cd11ab140839f11d{parse(j){return $6c7bd7858deea686$var$getNumberParserImpl(this.locale,this.options,j).parse(j)}isValidPartialNumber(j,et,tt){return $6c7bd7858deea686$var$getNumberParserImpl(this.locale,this.options,j).isValidPartialNumber(j,et,tt)}getNumberingSystem(j){return $6c7bd7858deea686$var$getNumberParserImpl(this.locale,this.options,j).options.numberingSystem}constructor(j,et={}){this.locale=j,this.options=et}}const $6c7bd7858deea686$var$numberParserCache=new Map;function $6c7bd7858deea686$var$getNumberParserImpl(s,j,et){let tt=$6c7bd7858deea686$var$getCachedNumberParser(s,j);if(!s.includes("-nu-")&&!tt.isValidPartialNumber(et)){for(let rt of $6c7bd7858deea686$var$NUMBERING_SYSTEMS)if(rt!==tt.options.numberingSystem){let nt=$6c7bd7858deea686$var$getCachedNumberParser(s+(s.includes("-u-")?"-nu-":"-u-nu-")+rt,j);if(nt.isValidPartialNumber(et))return nt}}return tt}function $6c7bd7858deea686$var$getCachedNumberParser(s,j){let et=s+(j?Object.entries(j).sort((rt,nt)=>rt[0]<nt[0]?-1:1).join():""),tt=$6c7bd7858deea686$var$numberParserCache.get(et);return tt||(tt=new $6c7bd7858deea686$var$NumberParserImpl(s,j),$6c7bd7858deea686$var$numberParserCache.set(et,tt)),tt}class $6c7bd7858deea686$var$NumberParserImpl{parse(j){let et=this.sanitize(j);if(this.symbols.group&&(et=$6c7bd7858deea686$var$replaceAll(et,this.symbols.group,"")),this.symbols.decimal&&(et=et.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(et=et.replace(this.symbols.minusSign,"-")),et=et.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let rt=et.indexOf("-");et=et.replace("-","");let nt=et.indexOf(".");nt===-1&&(nt=et.length),et=et.replace(".",""),nt-2===0?et=`0.${et}`:nt-2===-1?et=`0.0${et}`:nt-2===-2?et="0.00":et=`${et.slice(0,nt-2)}.${et.slice(nt-2)}`,rt>-1&&(et=`-${et}`)}let tt=et?+et:NaN;if(isNaN(tt))return NaN;if(this.options.style==="percent"){let rt={...this.options,style:"decimal",minimumFractionDigits:Math.min(this.options.minimumFractionDigits+2,20),maximumFractionDigits:Math.min(this.options.maximumFractionDigits+2,20)};return new $6c7bd7858deea686$export$cd11ab140839f11d(this.locale,rt).parse(new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(this.locale,rt).format(tt))}return this.options.currencySign==="accounting"&&$6c7bd7858deea686$var$CURRENCY_SIGN_REGEX.test(j)&&(tt=-1*tt),tt}sanitize(j){return j=j.replace(this.symbols.literals,""),this.symbols.minusSign&&(j=j.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(j=j.replace(",",this.symbols.decimal),j=j.replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(j=$6c7bd7858deea686$var$replaceAll(j,".",this.symbols.group))),this.options.locale==="fr-FR"&&(j=$6c7bd7858deea686$var$replaceAll(j,".",String.fromCharCode(8239))),j}isValidPartialNumber(j,et=-1/0,tt=1/0){return j=this.sanitize(j),this.symbols.minusSign&&j.startsWith(this.symbols.minusSign)&&et<0?j=j.slice(this.symbols.minusSign.length):this.symbols.plusSign&&j.startsWith(this.symbols.plusSign)&&tt>0&&(j=j.slice(this.symbols.plusSign.length)),this.symbols.group&&j.startsWith(this.symbols.group)||this.symbols.decimal&&j.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(j=$6c7bd7858deea686$var$replaceAll(j,this.symbols.group,"")),j=j.replace(this.symbols.numeral,""),this.symbols.decimal&&(j=j.replace(this.symbols.decimal,"")),j.length===0)}constructor(j,et={}){this.locale=j,this.formatter=new Intl.NumberFormat(j,et),this.options=this.formatter.resolvedOptions(),this.symbols=$6c7bd7858deea686$var$getSymbols(j,this.formatter,this.options,et);var tt,rt;this.options.style==="percent"&&(((tt=this.options.minimumFractionDigits)!==null&&tt!==void 0?tt:0)>18||((rt=this.options.maximumFractionDigits)!==null&&rt!==void 0?rt:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const $6c7bd7858deea686$var$nonLiteralParts=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),$6c7bd7858deea686$var$pluralNumbers=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function $6c7bd7858deea686$var$getSymbols(s,j,et,tt){var rt,nt,at,it;let ot=new Intl.NumberFormat(s,{...et,minimumSignificantDigits:1,maximumSignificantDigits:21}),st=ot.formatToParts(-10000.111),lt=ot.formatToParts(10000.111),ct=$6c7bd7858deea686$var$pluralNumbers.map(_t=>ot.formatToParts(_t));var ut;let dt=(ut=(rt=st.find(_t=>_t.type==="minusSign"))===null||rt===void 0?void 0:rt.value)!==null&&ut!==void 0?ut:"-",ft=(nt=lt.find(_t=>_t.type==="plusSign"))===null||nt===void 0?void 0:nt.value;!ft&&((tt==null?void 0:tt.signDisplay)==="exceptZero"||(tt==null?void 0:tt.signDisplay)==="always")&&(ft="+");let mt=(at=new Intl.NumberFormat(s,{...et,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(_t=>_t.type==="decimal"))===null||at===void 0?void 0:at.value,vt=(it=st.find(_t=>_t.type==="group"))===null||it===void 0?void 0:it.value,pt=st.filter(_t=>!$6c7bd7858deea686$var$nonLiteralParts.has(_t.type)).map(_t=>$6c7bd7858deea686$var$escapeRegex(_t.value)),gt=ct.flatMap(_t=>_t.filter(wt=>!$6c7bd7858deea686$var$nonLiteralParts.has(wt.type)).map(wt=>$6c7bd7858deea686$var$escapeRegex(wt.value))),yt=[...new Set([...pt,...gt])].sort((_t,wt)=>wt.length-_t.length),$t=yt.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${yt.join("|")}|[\\p{White_Space}]`,"gu"),xt=[...new Intl.NumberFormat(et.locale,{useGrouping:!1}).format(9876543210)].reverse(),Ct=new Map(xt.map((_t,wt)=>[_t,wt])),bt=new RegExp(`[${xt.join("")}]`,"g");return{minusSign:dt,plusSign:ft,decimal:mt,group:vt,literals:$t,numeral:bt,index:_t=>String(Ct.get(_t))}}function $6c7bd7858deea686$var$replaceAll(s,j,et){return s.replaceAll?s.replaceAll(j,et):s.split(j).join(et)}function $6c7bd7858deea686$var$escapeRegex(s){return s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const $8796f90736e175cb$var$TOOLTIP_DELAY=1500,$8796f90736e175cb$var$TOOLTIP_COOLDOWN=500;let $8796f90736e175cb$var$tooltips={},$8796f90736e175cb$var$tooltipId=0,$8796f90736e175cb$var$globalWarmedUp=!1,$8796f90736e175cb$var$globalWarmUpTimeout=null,$8796f90736e175cb$var$globalCooldownTimeout=null;function $8796f90736e175cb$export$4d40659c25ecb50b(s={}){let{delay:j=$8796f90736e175cb$var$TOOLTIP_DELAY,closeDelay:et=$8796f90736e175cb$var$TOOLTIP_COOLDOWN}=s,{isOpen:tt,open:rt,close:nt}=$fc909762b330b746$export$61c6a8c84e605fb6(s),at=reactExports.useMemo(()=>`${++$8796f90736e175cb$var$tooltipId}`,[]),it=reactExports.useRef(),ot=()=>{$8796f90736e175cb$var$tooltips[at]=ct},st=()=>{for(let dt in $8796f90736e175cb$var$tooltips)dt!==at&&($8796f90736e175cb$var$tooltips[dt](!0),delete $8796f90736e175cb$var$tooltips[dt])},lt=()=>{clearTimeout(it.current),it.current=null,st(),ot(),$8796f90736e175cb$var$globalWarmedUp=!0,rt(),$8796f90736e175cb$var$globalWarmUpTimeout&&(clearTimeout($8796f90736e175cb$var$globalWarmUpTimeout),$8796f90736e175cb$var$globalWarmUpTimeout=null),$8796f90736e175cb$var$globalCooldownTimeout&&(clearTimeout($8796f90736e175cb$var$globalCooldownTimeout),$8796f90736e175cb$var$globalCooldownTimeout=null)},ct=dt=>{dt||et<=0?(clearTimeout(it.current),it.current=null,nt()):it.current||(it.current=setTimeout(()=>{it.current=null,nt()},et)),$8796f90736e175cb$var$globalWarmUpTimeout&&(clearTimeout($8796f90736e175cb$var$globalWarmUpTimeout),$8796f90736e175cb$var$globalWarmUpTimeout=null),$8796f90736e175cb$var$globalWarmedUp&&($8796f90736e175cb$var$globalCooldownTimeout&&clearTimeout($8796f90736e175cb$var$globalCooldownTimeout),$8796f90736e175cb$var$globalCooldownTimeout=setTimeout(()=>{delete $8796f90736e175cb$var$tooltips[at],$8796f90736e175cb$var$globalCooldownTimeout=null,$8796f90736e175cb$var$globalWarmedUp=!1},Math.max($8796f90736e175cb$var$TOOLTIP_COOLDOWN,et)))},ut=()=>{st(),ot(),!tt&&!$8796f90736e175cb$var$globalWarmUpTimeout&&!$8796f90736e175cb$var$globalWarmedUp?$8796f90736e175cb$var$globalWarmUpTimeout=setTimeout(()=>{$8796f90736e175cb$var$globalWarmUpTimeout=null,$8796f90736e175cb$var$globalWarmedUp=!0,lt()},j):tt||lt()};return reactExports.useEffect(()=>()=>{clearTimeout(it.current),$8796f90736e175cb$var$tooltips[at]&&delete $8796f90736e175cb$var$tooltips[at]},[at]),{isOpen:tt,open:dt=>{!dt&&j>0&&!it.current?ut():lt()},close:ct}}/**
|
|
484
484
|
* @license MIT
|
|
485
485
|
* author: Cube Dev Team
|
|
486
|
-
* @cube-dev/ui-kit v0.
|
|
486
|
+
* @cube-dev/ui-kit v0.31.2
|
|
487
487
|
* Released under the MIT license.
|
|
488
488
|
*/const BlockElement=tasty({styles:{display:"block"}}),Block=reactExports.forwardRef(function(j,et){const tt=extractStyles(j,CONTAINER_STYLES);return jsx(BlockElement,{...filterBaseProps(j,{eventProps:!0}),ref:et,styles:tt})});function r$2(s){var j,et,tt="";if(typeof s=="string"||typeof s=="number")tt+=s;else if(typeof s=="object")if(Array.isArray(s)){var rt=s.length;for(j=0;j<rt;j++)s[j]&&(et=r$2(s[j]))&&(tt&&(tt+=" "),tt+=et)}else for(et in s)s[et]&&(tt&&(tt+=" "),tt+=et);return tt}function clsx(){for(var s,j,et=0,tt="",rt=arguments.length;et<rt;et++)(s=arguments[et])&&(j=r$2(s))&&(tt&&(tt+=" "),tt+=j);return tt}const $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c=typeof document!="undefined"?React.useLayoutEffect:()=>{};function $8ae05eaa5c114e9c$export$7f54fc3180508a52(s){const j=reactExports.useRef(null);return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{j.current=s},[s]),reactExports.useCallback((...et)=>{const tt=j.current;return tt(...et)},[])}function $1dbecbe27a04f9af$export$14d238f342723f25(s){let[j,et]=reactExports.useState(s),tt=reactExports.useRef(null),rt=$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{let at=tt.current.next();if(at.done){tt.current=null;return}j===at.value?rt():et(at.value)});$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{tt.current&&rt()});let nt=$8ae05eaa5c114e9c$export$7f54fc3180508a52(at=>{tt.current=at(j),rt()});return[j,nt]}let $bdb11010cef70236$var$canUseDOM=!!(typeof window!="undefined"&&window.document&&window.document.createElement),$bdb11010cef70236$var$idsUpdaterMap=new Map;function $bdb11010cef70236$export$f680877a34711e37(s){let[j,et]=reactExports.useState(s),tt=reactExports.useRef(null),rt=$b5e257d569688ac6$export$619500959fc48b26(j),nt=reactExports.useCallback(at=>{tt.current=at},[]);return $bdb11010cef70236$var$canUseDOM&&$bdb11010cef70236$var$idsUpdaterMap.set(rt,nt),$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{let at=rt;return()=>{$bdb11010cef70236$var$idsUpdaterMap.delete(at)}},[rt]),reactExports.useEffect(()=>{let at=tt.current;at&&(tt.current=null,et(at))}),rt}function $bdb11010cef70236$export$cd8c9cb68f842629(s,j){if(s===j)return s;let et=$bdb11010cef70236$var$idsUpdaterMap.get(s);if(et)return et(j),j;let tt=$bdb11010cef70236$var$idsUpdaterMap.get(j);return tt?(tt(s),s):j}function $bdb11010cef70236$export$b4cc09c592e8fdb8(s=[]){let j=$bdb11010cef70236$export$f680877a34711e37(),[et,tt]=$1dbecbe27a04f9af$export$14d238f342723f25(j),rt=reactExports.useCallback(()=>{tt(function*(){yield j,yield document.getElementById(j)?j:void 0})},[j,tt]);return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(rt,[j,rt,...s]),et}function $ff5963eb1fccf552$export$e08e3b67e392101e(...s){return(...j)=>{for(let et of s)typeof et=="function"&&et(...j)}}const $431fbd86ca7dc216$export$b204af158042fbac=s=>{var j;return(j=s==null?void 0:s.ownerDocument)!==null&&j!==void 0?j:document},$431fbd86ca7dc216$export$f21a1ffae260145a=s=>s&&"window"in s&&s.window===s?s:$431fbd86ca7dc216$export$b204af158042fbac(s).defaultView||window;function $3ef42575df84b30b$export$9d1611c77c2fe928(...s){let j={...s[0]};for(let et=1;et<s.length;et++){let tt=s[et];for(let rt in tt){let nt=j[rt],at=tt[rt];typeof nt=="function"&&typeof at=="function"&&rt[0]==="o"&&rt[1]==="n"&&rt.charCodeAt(2)>=65&&rt.charCodeAt(2)<=90?j[rt]=$ff5963eb1fccf552$export$e08e3b67e392101e(nt,at):(rt==="className"||rt==="UNSAFE_className")&&typeof nt=="string"&&typeof at=="string"?j[rt]=clsx(nt,at):rt==="id"&&nt&&at?j.id=$bdb11010cef70236$export$cd8c9cb68f842629(nt,at):j[rt]=at!==void 0?at:nt}}return j}function $5dc95899b306f630$export$c9058316764c140e(...s){return s.length===1?s[0]:j=>{for(let et of s)typeof et=="function"?et(j):et!=null&&(et.current=j)}}const $65484d02dcb7eb3e$var$DOMPropNames=new Set(["id"]),$65484d02dcb7eb3e$var$labelablePropNames=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),$65484d02dcb7eb3e$var$linkPropNames=new Set(["href","target","rel","download","ping","referrerPolicy"]),$65484d02dcb7eb3e$var$propRe=/^(data-.*)$/;function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(s,j={}){let{labelable:et,isLink:tt,propNames:rt}=j,nt={};for(const at in s)Object.prototype.hasOwnProperty.call(s,at)&&($65484d02dcb7eb3e$var$DOMPropNames.has(at)||et&&$65484d02dcb7eb3e$var$labelablePropNames.has(at)||tt&&$65484d02dcb7eb3e$var$linkPropNames.has(at)||rt!=null&&rt.has(at)||$65484d02dcb7eb3e$var$propRe.test(at))&&(nt[at]=s[at]);return nt}function $7215afc6de606d6b$export$de79e2c695e052f3(s){if($7215afc6de606d6b$var$supportsPreventScroll())s.focus({preventScroll:!0});else{let j=$7215afc6de606d6b$var$getScrollableElements(s);s.focus(),$7215afc6de606d6b$var$restoreScrollPosition(j)}}let $7215afc6de606d6b$var$supportsPreventScrollCached=null;function $7215afc6de606d6b$var$supportsPreventScroll(){if($7215afc6de606d6b$var$supportsPreventScrollCached==null){$7215afc6de606d6b$var$supportsPreventScrollCached=!1;try{var s=document.createElement("div");s.focus({get preventScroll(){return $7215afc6de606d6b$var$supportsPreventScrollCached=!0,!0}})}catch(j){}}return $7215afc6de606d6b$var$supportsPreventScrollCached}function $7215afc6de606d6b$var$getScrollableElements(s){for(var j=s.parentNode,et=[],tt=document.scrollingElement||document.documentElement;j instanceof HTMLElement&&j!==tt;)(j.offsetHeight<j.scrollHeight||j.offsetWidth<j.scrollWidth)&&et.push({element:j,scrollTop:j.scrollTop,scrollLeft:j.scrollLeft}),j=j.parentNode;return tt instanceof HTMLElement&&et.push({element:tt,scrollTop:tt.scrollTop,scrollLeft:tt.scrollLeft}),et}function $7215afc6de606d6b$var$restoreScrollPosition(s){for(let{element:j,scrollTop:et,scrollLeft:tt}of s)j.scrollTop=et,j.scrollLeft=tt}function $c87311424ea30a05$var$testUserAgent(s){var j;return typeof window=="undefined"||window.navigator==null?!1:((j=window.navigator.userAgentData)===null||j===void 0?void 0:j.brands.some(et=>s.test(et.brand)))||s.test(window.navigator.userAgent)}function $c87311424ea30a05$var$testPlatform(s){var j;return typeof window!="undefined"&&window.navigator!=null?s.test(((j=window.navigator.userAgentData)===null||j===void 0?void 0:j.platform)||window.navigator.platform):!1}function $c87311424ea30a05$export$9ac100e40613ea10(){return $c87311424ea30a05$var$testPlatform(/^Mac/i)}function $c87311424ea30a05$export$186c6964ca17d99(){return $c87311424ea30a05$var$testPlatform(/^iPhone/i)}function $c87311424ea30a05$export$7bef049ce92e4224(){return $c87311424ea30a05$var$testPlatform(/^iPad/i)||$c87311424ea30a05$export$9ac100e40613ea10()&&navigator.maxTouchPoints>1}function $c87311424ea30a05$export$fedb369cb70207f1(){return $c87311424ea30a05$export$186c6964ca17d99()||$c87311424ea30a05$export$7bef049ce92e4224()}function $c87311424ea30a05$export$e1865c3bedcd822b(){return $c87311424ea30a05$export$9ac100e40613ea10()||$c87311424ea30a05$export$fedb369cb70207f1()}function $c87311424ea30a05$export$78551043582a6a98(){return $c87311424ea30a05$var$testUserAgent(/AppleWebKit/i)&&!$c87311424ea30a05$export$6446a186d09e379e()}function $c87311424ea30a05$export$6446a186d09e379e(){return $c87311424ea30a05$var$testUserAgent(/Chrome/i)}function $c87311424ea30a05$export$a11b0059900ceec8(){return $c87311424ea30a05$var$testUserAgent(/Android/i)}function $c87311424ea30a05$export$b7d78993b74f766d(){return $c87311424ea30a05$var$testUserAgent(/Firefox/i)}const $ea8dcbcb9ea1b556$var$RouterContext=reactExports.createContext({isNative:!0,open:$ea8dcbcb9ea1b556$var$openSyntheticLink});function $ea8dcbcb9ea1b556$export$9a302a45f65d0572(){return reactExports.useContext($ea8dcbcb9ea1b556$var$RouterContext)}function $ea8dcbcb9ea1b556$export$95185d699e05d4d7(s,j,et=!0){var tt,rt;let{metaKey:nt,ctrlKey:at,altKey:it,shiftKey:ot}=j;$c87311424ea30a05$export$b7d78993b74f766d()&&(!((rt=window.event)===null||rt===void 0||(tt=rt.type)===null||tt===void 0)&&tt.startsWith("key"))&&s.target==="_blank"&&($c87311424ea30a05$export$9ac100e40613ea10()?nt=!0:at=!0);let st=$c87311424ea30a05$export$78551043582a6a98()&&$c87311424ea30a05$export$9ac100e40613ea10()&&!$c87311424ea30a05$export$7bef049ce92e4224()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:nt,ctrlKey:at,altKey:it,shiftKey:ot}):new MouseEvent("click",{metaKey:nt,ctrlKey:at,altKey:it,shiftKey:ot,bubbles:!0,cancelable:!0});$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening=et,$7215afc6de606d6b$export$de79e2c695e052f3(s),s.dispatchEvent(st),$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening=!1}$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening=!1;function $ea8dcbcb9ea1b556$var$getSyntheticLink(s,j){if(s instanceof HTMLAnchorElement)j(s);else if(s.hasAttribute("data-href")){let et=document.createElement("a");et.href=s.getAttribute("data-href"),s.hasAttribute("data-target")&&(et.target=s.getAttribute("data-target")),s.hasAttribute("data-rel")&&(et.rel=s.getAttribute("data-rel")),s.hasAttribute("data-download")&&(et.download=s.getAttribute("data-download")),s.hasAttribute("data-ping")&&(et.ping=s.getAttribute("data-ping")),s.hasAttribute("data-referrer-policy")&&(et.referrerPolicy=s.getAttribute("data-referrer-policy")),s.appendChild(et),j(et),s.removeChild(et)}}function $ea8dcbcb9ea1b556$var$openSyntheticLink(s,j){$ea8dcbcb9ea1b556$var$getSyntheticLink(s,et=>$ea8dcbcb9ea1b556$export$95185d699e05d4d7(et,j))}let $bbed8b41f857bcc0$var$transitionsByElement=new Map,$bbed8b41f857bcc0$var$transitionCallbacks=new Set;function $bbed8b41f857bcc0$var$setupGlobalEvents(){if(typeof window=="undefined")return;let s=et=>{let tt=$bbed8b41f857bcc0$var$transitionsByElement.get(et.target);tt||(tt=new Set,$bbed8b41f857bcc0$var$transitionsByElement.set(et.target,tt),et.target.addEventListener("transitioncancel",j)),tt.add(et.propertyName)},j=et=>{let tt=$bbed8b41f857bcc0$var$transitionsByElement.get(et.target);if(tt&&(tt.delete(et.propertyName),tt.size===0&&(et.target.removeEventListener("transitioncancel",j),$bbed8b41f857bcc0$var$transitionsByElement.delete(et.target)),$bbed8b41f857bcc0$var$transitionsByElement.size===0)){for(let rt of $bbed8b41f857bcc0$var$transitionCallbacks)rt();$bbed8b41f857bcc0$var$transitionCallbacks.clear()}};document.body.addEventListener("transitionrun",s),document.body.addEventListener("transitionend",j)}typeof document!="undefined"&&(document.readyState!=="loading"?$bbed8b41f857bcc0$var$setupGlobalEvents():document.addEventListener("DOMContentLoaded",$bbed8b41f857bcc0$var$setupGlobalEvents));function $bbed8b41f857bcc0$export$24490316f764c430(s){requestAnimationFrame(()=>{$bbed8b41f857bcc0$var$transitionsByElement.size===0?s():$bbed8b41f857bcc0$var$transitionCallbacks.add(s)})}function $03deb23ff14920c4$export$4eaf04e54aa8eed6(){let s=reactExports.useRef(new Map),j=reactExports.useCallback((rt,nt,at,it)=>{let ot=it!=null&&it.once?(...st)=>{s.current.delete(at),at(...st)}:at;s.current.set(at,{type:nt,eventTarget:rt,fn:ot,options:it}),rt.addEventListener(nt,at,it)},[]),et=reactExports.useCallback((rt,nt,at,it)=>{var ot;let st=((ot=s.current.get(at))===null||ot===void 0?void 0:ot.fn)||at;rt.removeEventListener(nt,st,it),s.current.delete(at)},[]),tt=reactExports.useCallback(()=>{s.current.forEach((rt,nt)=>{et(rt.eventTarget,rt.type,nt,rt.options)})},[et]);return reactExports.useEffect(()=>tt,[tt]),{addGlobalListener:j,removeGlobalListener:et,removeAllGlobalListeners:tt}}function $313b98861ee5dd6c$export$d6875122194c7b44(s,j){let{id:et,"aria-label":tt,"aria-labelledby":rt}=s;return et=$bdb11010cef70236$export$f680877a34711e37(et),rt&&tt?rt=[...new Set([et,...rt.trim().split(/\s+/)])].join(" "):rt&&(rt=rt.trim().split(/\s+/).join(" ")),!tt&&!rt&&j&&(tt=j),{id:et,"aria-label":tt,"aria-labelledby":rt}}function $df56164dff5785e2$export$4338b53315abf666(s){const j=reactExports.useRef();return reactExports.useMemo(()=>({get current(){return j.current},set current(et){j.current=et,typeof s=="function"?s(et):s&&(s.current=et)}}),[s])}function $4f58c5f72bcf79f7$export$496315a1608d9602(s,j){const et=reactExports.useRef(!0),tt=reactExports.useRef(null);reactExports.useEffect(()=>(et.current=!0,()=>{et.current=!1}),[]),reactExports.useEffect(()=>{et.current?et.current=!1:(!tt.current||j.some((rt,nt)=>!Object.is(rt,tt[nt])))&&s(),tt.current=j},j)}function $9daab02d461809db$var$hasResizeObserver(){return typeof window.ResizeObserver!="undefined"}function $9daab02d461809db$export$683480f191c0e3ea(s){const{ref:j,onResize:et}=s;reactExports.useEffect(()=>{let tt=j==null?void 0:j.current;if(tt)if($9daab02d461809db$var$hasResizeObserver()){const rt=new window.ResizeObserver(nt=>{nt.length&&et()});return rt.observe(tt),()=>{tt&&rt.unobserve(tt)}}else return window.addEventListener("resize",et,!1),()=>{window.removeEventListener("resize",et,!1)}},[et,j])}function $e7801be82b4b2a53$export$4debdb1a3f0fa79e(s,j){$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(s&&s.ref&&j)return s.ref.current=j.current,()=>{s.ref.current=null}})}function $62d8ded9296f3872$export$cfa2225e87938781(s,j){for($62d8ded9296f3872$export$2bb74740c4e19def(s,j)&&(s=s.parentElement);s&&!$62d8ded9296f3872$export$2bb74740c4e19def(s,j);)s=s.parentElement;return s||document.scrollingElement||document.documentElement}function $62d8ded9296f3872$export$2bb74740c4e19def(s,j){let et=window.getComputedStyle(s),tt=/(auto|scroll)/.test(et.overflow+et.overflowX+et.overflowY);return tt&&j&&(tt=s.scrollHeight!==s.clientHeight||s.scrollWidth!==s.clientWidth),tt}let $ef06256079686ba0$var$descriptionId=0;const $ef06256079686ba0$var$descriptionNodes=new Map;function $ef06256079686ba0$export$f8aeda7b10753fa1(s){let[j,et]=reactExports.useState(void 0);return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!s)return;let tt=$ef06256079686ba0$var$descriptionNodes.get(s);if(tt)et(tt.element.id);else{let rt=`react-aria-description-${$ef06256079686ba0$var$descriptionId++}`;et(rt);let nt=document.createElement("div");nt.id=rt,nt.style.display="none",nt.textContent=s,document.body.appendChild(nt),tt={refCount:0,element:nt},$ef06256079686ba0$var$descriptionNodes.set(s,tt)}return tt.refCount++,()=>{--tt.refCount===0&&(tt.element.remove(),$ef06256079686ba0$var$descriptionNodes.delete(s))}},[s]),{"aria-describedby":s?j:void 0}}function $e9faafb641e167db$export$90fc3a17d93f704c(s,j,et,tt){let rt=$8ae05eaa5c114e9c$export$7f54fc3180508a52(et),nt=et==null;reactExports.useEffect(()=>{if(nt)return;let at=s.current;return at.addEventListener(j,rt,tt),()=>{at.removeEventListener(j,rt,tt)}},[s,j,tt,nt,rt])}function $2f04cbc44ee30ce0$export$53a0910f038337bd(s,j){let et=$2f04cbc44ee30ce0$var$relativeOffset(s,j,"left"),tt=$2f04cbc44ee30ce0$var$relativeOffset(s,j,"top"),rt=j.offsetWidth,nt=j.offsetHeight,at=s.scrollLeft,it=s.scrollTop,{borderTopWidth:ot,borderLeftWidth:st}=getComputedStyle(s),lt=s.scrollLeft+parseInt(st,10),ct=s.scrollTop+parseInt(ot,10),ut=lt+s.clientWidth,dt=ct+s.clientHeight;et<=at?at=et-parseInt(st,10):et+rt>ut&&(at+=et+rt-ut),tt<=ct?it=tt-parseInt(ot,10):tt+nt>dt&&(it+=tt+nt-dt),s.scrollLeft=at,s.scrollTop=it}function $2f04cbc44ee30ce0$var$relativeOffset(s,j,et){const tt=et==="left"?"offsetLeft":"offsetTop";let rt=0;for(;j.offsetParent&&(rt+=j[tt],j.offsetParent!==s);){if(j.offsetParent.contains(s)){rt-=s[tt];break}j=j.offsetParent}return rt}function $2f04cbc44ee30ce0$export$c826860796309d1b(s,j){if(document.contains(s)){let at=document.scrollingElement||document.documentElement;if(window.getComputedStyle(at).overflow==="hidden"){let ot=$62d8ded9296f3872$export$cfa2225e87938781(s);for(;s&&ot&&s!==at&&ot!==at;)$2f04cbc44ee30ce0$export$53a0910f038337bd(ot,s),s=ot,ot=$62d8ded9296f3872$export$cfa2225e87938781(s)}else{var et;let{left:ot,top:st}=s.getBoundingClientRect();s==null||(et=s.scrollIntoView)===null||et===void 0||et.call(s,{block:"nearest"});let{left:lt,top:ct}=s.getBoundingClientRect();if(Math.abs(ot-lt)>1||Math.abs(st-ct)>1){var tt,rt,nt;j==null||(rt=j.containingElement)===null||rt===void 0||(tt=rt.scrollIntoView)===null||tt===void 0||tt.call(rt,{block:"center",inline:"center"}),(nt=s.scrollIntoView)===null||nt===void 0||nt.call(s,{block:"nearest"})}}}}function $6a7db85432448f7f$export$60278871457622de(s){return s.mozInputSource===0&&s.isTrusted?!0:$c87311424ea30a05$export$a11b0059900ceec8()&&s.pointerType?s.type==="click"&&s.buttons===1:s.detail===0&&!s.pointerType}function $6a7db85432448f7f$export$29bf1b5f2c56cf63(s){return!$c87311424ea30a05$export$a11b0059900ceec8()&&s.width===0&&s.height===0||s.width===1&&s.height===1&&s.pressure===0&&s.detail===0&&s.pointerType==="mouse"}function $5a387cc49350e6db$export$722debc0e56fea39(s,j){let et=reactExports.useRef(null);return s&&et.current&&j(s,et.current)&&(s=et.current),et.current=s,s}function $99facab73266f662$export$5add1d006293d136(s,j,et){let tt=reactExports.useRef(j),rt=$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{et&&et(tt.current)});reactExports.useEffect(()=>{var nt;let at=s==null||(nt=s.current)===null||nt===void 0?void 0:nt.form;return at==null||at.addEventListener("reset",rt),()=>{at==null||at.removeEventListener("reset",rt)}},[s,rt])}function _class_apply_descriptor_get(s,j){return j.get?j.get.call(s):j.value}function _class_extract_field_descriptor(s,j,et){if(!j.has(s))throw new TypeError("attempted to "+et+" private field on non-instance");return j.get(s)}function _class_private_field_get(s,j){var et=_class_extract_field_descriptor(s,j,"get");return _class_apply_descriptor_get(s,et)}function _class_apply_descriptor_set(s,j,et){if(j.set)j.set.call(s,et);else{if(!j.writable)throw new TypeError("attempted to set read only private field");j.value=et}}function _class_private_field_set(s,j,et){var tt=_class_extract_field_descriptor(s,j,"set");return _class_apply_descriptor_set(s,tt,et),et}let $14c0b72509d70225$var$state="default",$14c0b72509d70225$var$savedUserSelect="",$14c0b72509d70225$var$modifiedElementMap=new WeakMap;function $14c0b72509d70225$export$16a4697467175487(s){if($c87311424ea30a05$export$fedb369cb70207f1()){if($14c0b72509d70225$var$state==="default"){const j=$431fbd86ca7dc216$export$b204af158042fbac(s);$14c0b72509d70225$var$savedUserSelect=j.documentElement.style.webkitUserSelect,j.documentElement.style.webkitUserSelect="none"}$14c0b72509d70225$var$state="disabled"}else(s instanceof HTMLElement||s instanceof SVGElement)&&($14c0b72509d70225$var$modifiedElementMap.set(s,s.style.userSelect),s.style.userSelect="none")}function $14c0b72509d70225$export$b0d6fa1ab32e3295(s){if($c87311424ea30a05$export$fedb369cb70207f1()){if($14c0b72509d70225$var$state!=="disabled")return;$14c0b72509d70225$var$state="restoring",setTimeout(()=>{$bbed8b41f857bcc0$export$24490316f764c430(()=>{if($14c0b72509d70225$var$state==="restoring"){const j=$431fbd86ca7dc216$export$b204af158042fbac(s);j.documentElement.style.webkitUserSelect==="none"&&(j.documentElement.style.webkitUserSelect=$14c0b72509d70225$var$savedUserSelect||""),$14c0b72509d70225$var$savedUserSelect="",$14c0b72509d70225$var$state="default"}})},300)}else if((s instanceof HTMLElement||s instanceof SVGElement)&&s&&$14c0b72509d70225$var$modifiedElementMap.has(s)){let j=$14c0b72509d70225$var$modifiedElementMap.get(s);s.style.userSelect==="none"&&(s.style.userSelect=j),s.getAttribute("style")===""&&s.removeAttribute("style"),$14c0b72509d70225$var$modifiedElementMap.delete(s)}}const $ae1eeba8b9eafd08$export$5165eccb35aaadb5=React.createContext({register:()=>{}});$ae1eeba8b9eafd08$export$5165eccb35aaadb5.displayName="PressResponderContext";function $f6c31cce2adf654f$var$usePressResponderContext(s){let j=reactExports.useContext($ae1eeba8b9eafd08$export$5165eccb35aaadb5);if(j){let{register:et,...tt}=j;s=$3ef42575df84b30b$export$9d1611c77c2fe928(tt,s),et()}return $e7801be82b4b2a53$export$4debdb1a3f0fa79e(j,s.ref),s}var $f6c31cce2adf654f$var$_shouldStopPropagation=new WeakMap;class $f6c31cce2adf654f$var$PressEvent{continuePropagation(){_class_private_field_set(this,$f6c31cce2adf654f$var$_shouldStopPropagation,!1)}get shouldStopPropagation(){return _class_private_field_get(this,$f6c31cce2adf654f$var$_shouldStopPropagation)}constructor(j,et,tt){_class_private_field_init(this,$f6c31cce2adf654f$var$_shouldStopPropagation,{writable:!0,value:void 0}),_class_private_field_set(this,$f6c31cce2adf654f$var$_shouldStopPropagation,!0),this.type=j,this.pointerType=et,this.target=tt.currentTarget,this.shiftKey=tt.shiftKey,this.metaKey=tt.metaKey,this.ctrlKey=tt.ctrlKey,this.altKey=tt.altKey}}const $f6c31cce2adf654f$var$LINK_CLICKED=Symbol("linkClicked");function $f6c31cce2adf654f$export$45712eceda6fad21(s){let{onPress:j,onPressChange:et,onPressStart:tt,onPressEnd:rt,onPressUp:nt,isDisabled:at,isPressed:it,preventFocusOnPress:ot,shouldCancelOnPointerExit:st,allowTextSelectionOnPress:lt,ref:ct,...ut}=$f6c31cce2adf654f$var$usePressResponderContext(s),[dt,ft]=reactExports.useState(!1),ht=reactExports.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:mt,removeAllGlobalListeners:vt}=$03deb23ff14920c4$export$4eaf04e54aa8eed6(),pt=$8ae05eaa5c114e9c$export$7f54fc3180508a52((bt,St)=>{let _t=ht.current;if(at||_t.didFirePressStart)return!1;let wt=!0;if(_t.isTriggeringEvent=!0,tt){let Rt=new $f6c31cce2adf654f$var$PressEvent("pressstart",St,bt);tt(Rt),wt=Rt.shouldStopPropagation}return et&&et(!0),_t.isTriggeringEvent=!1,_t.didFirePressStart=!0,ft(!0),wt}),gt=$8ae05eaa5c114e9c$export$7f54fc3180508a52((bt,St,_t=!0)=>{let wt=ht.current;if(!wt.didFirePressStart)return!1;wt.ignoreClickAfterPress=!0,wt.didFirePressStart=!1,wt.isTriggeringEvent=!0;let Rt=!0;if(rt){let Pt=new $f6c31cce2adf654f$var$PressEvent("pressend",St,bt);rt(Pt),Rt=Pt.shouldStopPropagation}if(et&&et(!1),ft(!1),j&&_t&&!at){let Pt=new $f6c31cce2adf654f$var$PressEvent("press",St,bt);j(Pt),Rt&&(Rt=Pt.shouldStopPropagation)}return wt.isTriggeringEvent=!1,Rt}),yt=$8ae05eaa5c114e9c$export$7f54fc3180508a52((bt,St)=>{let _t=ht.current;if(at)return!1;if(nt){_t.isTriggeringEvent=!0;let wt=new $f6c31cce2adf654f$var$PressEvent("pressup",St,bt);return nt(wt),_t.isTriggeringEvent=!1,wt.shouldStopPropagation}return!0}),$t=$8ae05eaa5c114e9c$export$7f54fc3180508a52(bt=>{let St=ht.current;St.isPressed&&St.target&&(St.isOverTarget&&St.pointerType!=null&>($f6c31cce2adf654f$var$createEvent(St.target,bt),St.pointerType,!1),St.isPressed=!1,St.isOverTarget=!1,St.activePointerId=null,St.pointerType=null,vt(),lt||$14c0b72509d70225$export$b0d6fa1ab32e3295(St.target))}),xt=$8ae05eaa5c114e9c$export$7f54fc3180508a52(bt=>{st&&$t(bt)}),Ct=reactExports.useMemo(()=>{let bt=ht.current,St={onKeyDown(wt){if($f6c31cce2adf654f$var$isValidKeyboardEvent(wt.nativeEvent,wt.currentTarget)&&wt.currentTarget.contains(wt.target)){var Rt;$f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(wt.target,wt.key)&&wt.preventDefault();let Pt=!0;!bt.isPressed&&!wt.repeat&&(bt.target=wt.currentTarget,bt.isPressed=!0,Pt=pt(wt,"keyboard"),mt($431fbd86ca7dc216$export$b204af158042fbac(wt.currentTarget),"keyup",_t,!1)),Pt&&wt.stopPropagation(),wt.metaKey&&$c87311424ea30a05$export$9ac100e40613ea10()&&((Rt=bt.metaKeyEvents)===null||Rt===void 0||Rt.set(wt.key,wt.nativeEvent))}else wt.key==="Meta"&&(bt.metaKeyEvents=new Map)},onKeyUp(wt){$f6c31cce2adf654f$var$isValidKeyboardEvent(wt.nativeEvent,wt.currentTarget)&&!wt.repeat&&wt.currentTarget.contains(wt.target)&&bt.target&&yt($f6c31cce2adf654f$var$createEvent(bt.target,wt),"keyboard")},onClick(wt){if(!(wt&&!wt.currentTarget.contains(wt.target))&&wt&&wt.button===0&&!bt.isTriggeringEvent&&!$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening){let Rt=!0;if(at&&wt.preventDefault(),!bt.ignoreClickAfterPress&&!bt.ignoreEmulatedMouseEvents&&!bt.isPressed&&(bt.pointerType==="virtual"||$6a7db85432448f7f$export$60278871457622de(wt.nativeEvent))){!at&&!ot&&$7215afc6de606d6b$export$de79e2c695e052f3(wt.currentTarget);let Pt=pt(wt,"virtual"),Et=yt(wt,"virtual"),Ot=gt(wt,"virtual");Rt=Pt&&Et&&Ot}bt.ignoreEmulatedMouseEvents=!1,bt.ignoreClickAfterPress=!1,Rt&&wt.stopPropagation()}}},_t=wt=>{var Rt;if(bt.isPressed&&bt.target&&$f6c31cce2adf654f$var$isValidKeyboardEvent(wt,bt.target)){var Pt;$f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(wt.target,wt.key)&&wt.preventDefault();let Ot=wt.target,Mt=gt($f6c31cce2adf654f$var$createEvent(bt.target,wt),"keyboard",bt.target.contains(Ot));vt(),Mt&&wt.stopPropagation(),wt.key!=="Enter"&&$f6c31cce2adf654f$var$isHTMLAnchorLink(bt.target)&&bt.target.contains(Ot)&&!wt[$f6c31cce2adf654f$var$LINK_CLICKED]&&(wt[$f6c31cce2adf654f$var$LINK_CLICKED]=!0,$ea8dcbcb9ea1b556$export$95185d699e05d4d7(bt.target,wt,!1)),bt.isPressed=!1,(Pt=bt.metaKeyEvents)===null||Pt===void 0||Pt.delete(wt.key)}else if(wt.key==="Meta"&&(!((Rt=bt.metaKeyEvents)===null||Rt===void 0)&&Rt.size)){var Et;let Ot=bt.metaKeyEvents;bt.metaKeyEvents=void 0;for(let Mt of Ot.values())(Et=bt.target)===null||Et===void 0||Et.dispatchEvent(new KeyboardEvent("keyup",Mt))}};if(typeof PointerEvent!="undefined"){St.onPointerDown=Et=>{if(Et.button!==0||!Et.currentTarget.contains(Et.target))return;if($6a7db85432448f7f$export$29bf1b5f2c56cf63(Et.nativeEvent)){bt.pointerType="virtual";return}$f6c31cce2adf654f$var$shouldPreventDefault(Et.currentTarget)&&Et.preventDefault(),bt.pointerType=Et.pointerType;let Ot=!0;bt.isPressed||(bt.isPressed=!0,bt.isOverTarget=!0,bt.activePointerId=Et.pointerId,bt.target=Et.currentTarget,!at&&!ot&&$7215afc6de606d6b$export$de79e2c695e052f3(Et.currentTarget),lt||$14c0b72509d70225$export$16a4697467175487(bt.target),Ot=pt(Et,bt.pointerType),mt($431fbd86ca7dc216$export$b204af158042fbac(Et.currentTarget),"pointermove",wt,!1),mt($431fbd86ca7dc216$export$b204af158042fbac(Et.currentTarget),"pointerup",Rt,!1),mt($431fbd86ca7dc216$export$b204af158042fbac(Et.currentTarget),"pointercancel",Pt,!1)),Ot&&Et.stopPropagation()},St.onMouseDown=Et=>{Et.currentTarget.contains(Et.target)&&Et.button===0&&($f6c31cce2adf654f$var$shouldPreventDefault(Et.currentTarget)&&Et.preventDefault(),Et.stopPropagation())},St.onPointerUp=Et=>{!Et.currentTarget.contains(Et.target)||bt.pointerType==="virtual"||Et.button===0&&$f6c31cce2adf654f$var$isOverTarget(Et,Et.currentTarget)&&yt(Et,bt.pointerType||Et.pointerType)};let wt=Et=>{Et.pointerId===bt.activePointerId&&(bt.target&&$f6c31cce2adf654f$var$isOverTarget(Et,bt.target)?!bt.isOverTarget&&bt.pointerType!=null&&(bt.isOverTarget=!0,pt($f6c31cce2adf654f$var$createEvent(bt.target,Et),bt.pointerType)):bt.target&&bt.isOverTarget&&bt.pointerType!=null&&(bt.isOverTarget=!1,gt($f6c31cce2adf654f$var$createEvent(bt.target,Et),bt.pointerType,!1),xt(Et)))},Rt=Et=>{Et.pointerId===bt.activePointerId&&bt.isPressed&&Et.button===0&&bt.target&&($f6c31cce2adf654f$var$isOverTarget(Et,bt.target)&&bt.pointerType!=null?gt($f6c31cce2adf654f$var$createEvent(bt.target,Et),bt.pointerType):bt.isOverTarget&&bt.pointerType!=null&>($f6c31cce2adf654f$var$createEvent(bt.target,Et),bt.pointerType,!1),bt.isPressed=!1,bt.isOverTarget=!1,bt.activePointerId=null,bt.pointerType=null,vt(),lt||$14c0b72509d70225$export$b0d6fa1ab32e3295(bt.target))},Pt=Et=>{$t(Et)};St.onDragStart=Et=>{Et.currentTarget.contains(Et.target)&&$t(Et)}}else{St.onMouseDown=Pt=>{if(Pt.button!==0||!Pt.currentTarget.contains(Pt.target))return;if($f6c31cce2adf654f$var$shouldPreventDefault(Pt.currentTarget)&&Pt.preventDefault(),bt.ignoreEmulatedMouseEvents){Pt.stopPropagation();return}bt.isPressed=!0,bt.isOverTarget=!0,bt.target=Pt.currentTarget,bt.pointerType=$6a7db85432448f7f$export$60278871457622de(Pt.nativeEvent)?"virtual":"mouse",!at&&!ot&&$7215afc6de606d6b$export$de79e2c695e052f3(Pt.currentTarget),pt(Pt,bt.pointerType)&&Pt.stopPropagation(),mt($431fbd86ca7dc216$export$b204af158042fbac(Pt.currentTarget),"mouseup",wt,!1)},St.onMouseEnter=Pt=>{if(!Pt.currentTarget.contains(Pt.target))return;let Et=!0;bt.isPressed&&!bt.ignoreEmulatedMouseEvents&&bt.pointerType!=null&&(bt.isOverTarget=!0,Et=pt(Pt,bt.pointerType)),Et&&Pt.stopPropagation()},St.onMouseLeave=Pt=>{if(!Pt.currentTarget.contains(Pt.target))return;let Et=!0;bt.isPressed&&!bt.ignoreEmulatedMouseEvents&&bt.pointerType!=null&&(bt.isOverTarget=!1,Et=gt(Pt,bt.pointerType,!1),xt(Pt)),Et&&Pt.stopPropagation()},St.onMouseUp=Pt=>{Pt.currentTarget.contains(Pt.target)&&!bt.ignoreEmulatedMouseEvents&&Pt.button===0&&yt(Pt,bt.pointerType||"mouse")};let wt=Pt=>{if(Pt.button===0){if(bt.isPressed=!1,vt(),bt.ignoreEmulatedMouseEvents){bt.ignoreEmulatedMouseEvents=!1;return}bt.target&&$f6c31cce2adf654f$var$isOverTarget(Pt,bt.target)&&bt.pointerType!=null?gt($f6c31cce2adf654f$var$createEvent(bt.target,Pt),bt.pointerType):bt.target&&bt.isOverTarget&&bt.pointerType!=null&>($f6c31cce2adf654f$var$createEvent(bt.target,Pt),bt.pointerType,!1),bt.isOverTarget=!1}};St.onTouchStart=Pt=>{if(!Pt.currentTarget.contains(Pt.target))return;let Et=$f6c31cce2adf654f$var$getTouchFromEvent(Pt.nativeEvent);if(!Et)return;bt.activePointerId=Et.identifier,bt.ignoreEmulatedMouseEvents=!0,bt.isOverTarget=!0,bt.isPressed=!0,bt.target=Pt.currentTarget,bt.pointerType="touch",!at&&!ot&&$7215afc6de606d6b$export$de79e2c695e052f3(Pt.currentTarget),lt||$14c0b72509d70225$export$16a4697467175487(bt.target),pt(Pt,bt.pointerType)&&Pt.stopPropagation(),mt($431fbd86ca7dc216$export$f21a1ffae260145a(Pt.currentTarget),"scroll",Rt,!0)},St.onTouchMove=Pt=>{if(!Pt.currentTarget.contains(Pt.target))return;if(!bt.isPressed){Pt.stopPropagation();return}let Et=$f6c31cce2adf654f$var$getTouchById(Pt.nativeEvent,bt.activePointerId),Ot=!0;Et&&$f6c31cce2adf654f$var$isOverTarget(Et,Pt.currentTarget)?!bt.isOverTarget&&bt.pointerType!=null&&(bt.isOverTarget=!0,Ot=pt(Pt,bt.pointerType)):bt.isOverTarget&&bt.pointerType!=null&&(bt.isOverTarget=!1,Ot=gt(Pt,bt.pointerType,!1),xt(Pt)),Ot&&Pt.stopPropagation()},St.onTouchEnd=Pt=>{if(!Pt.currentTarget.contains(Pt.target))return;if(!bt.isPressed){Pt.stopPropagation();return}let Et=$f6c31cce2adf654f$var$getTouchById(Pt.nativeEvent,bt.activePointerId),Ot=!0;Et&&$f6c31cce2adf654f$var$isOverTarget(Et,Pt.currentTarget)&&bt.pointerType!=null?(yt(Pt,bt.pointerType),Ot=gt(Pt,bt.pointerType)):bt.isOverTarget&&bt.pointerType!=null&&(Ot=gt(Pt,bt.pointerType,!1)),Ot&&Pt.stopPropagation(),bt.isPressed=!1,bt.activePointerId=null,bt.isOverTarget=!1,bt.ignoreEmulatedMouseEvents=!0,bt.target&&!lt&&$14c0b72509d70225$export$b0d6fa1ab32e3295(bt.target),vt()},St.onTouchCancel=Pt=>{Pt.currentTarget.contains(Pt.target)&&(Pt.stopPropagation(),bt.isPressed&&$t(Pt))};let Rt=Pt=>{bt.isPressed&&Pt.target.contains(bt.target)&&$t({currentTarget:bt.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};St.onDragStart=Pt=>{Pt.currentTarget.contains(Pt.target)&&$t(Pt)}}return St},[mt,at,ot,vt,lt,$t,xt,gt,pt,yt]);return reactExports.useEffect(()=>()=>{var bt;lt||$14c0b72509d70225$export$b0d6fa1ab32e3295((bt=ht.current.target)!==null&&bt!==void 0?bt:void 0)},[lt]),{isPressed:it||dt,pressProps:$3ef42575df84b30b$export$9d1611c77c2fe928(ut,Ct)}}function $f6c31cce2adf654f$var$isHTMLAnchorLink(s){return s.tagName==="A"&&s.hasAttribute("href")}function $f6c31cce2adf654f$var$isValidKeyboardEvent(s,j){const{key:et,code:tt}=s,rt=j,nt=rt.getAttribute("role");return(et==="Enter"||et===" "||et==="Spacebar"||tt==="Space")&&!(rt instanceof $431fbd86ca7dc216$export$f21a1ffae260145a(rt).HTMLInputElement&&!$f6c31cce2adf654f$var$isValidInputKey(rt,et)||rt instanceof $431fbd86ca7dc216$export$f21a1ffae260145a(rt).HTMLTextAreaElement||rt.isContentEditable)&&!((nt==="link"||!nt&&$f6c31cce2adf654f$var$isHTMLAnchorLink(rt))&&et!=="Enter")}function $f6c31cce2adf654f$var$getTouchFromEvent(s){const{targetTouches:j}=s;return j.length>0?j[0]:null}function $f6c31cce2adf654f$var$getTouchById(s,j){const et=s.changedTouches;for(let tt=0;tt<et.length;tt++){const rt=et[tt];if(rt.identifier===j)return rt}return null}function $f6c31cce2adf654f$var$createEvent(s,j){return{currentTarget:s,shiftKey:j.shiftKey,ctrlKey:j.ctrlKey,metaKey:j.metaKey,altKey:j.altKey}}function $f6c31cce2adf654f$var$getPointClientRect(s){let j=0,et=0;return s.width!==void 0?j=s.width/2:s.radiusX!==void 0&&(j=s.radiusX),s.height!==void 0?et=s.height/2:s.radiusY!==void 0&&(et=s.radiusY),{top:s.clientY-et,right:s.clientX+j,bottom:s.clientY+et,left:s.clientX-j}}function $f6c31cce2adf654f$var$areRectanglesOverlapping(s,j){return!(s.left>j.right||j.left>s.right||s.top>j.bottom||j.top>s.bottom)}function $f6c31cce2adf654f$var$isOverTarget(s,j){let et=j.getBoundingClientRect(),tt=$f6c31cce2adf654f$var$getPointClientRect(s);return $f6c31cce2adf654f$var$areRectanglesOverlapping(et,tt)}function $f6c31cce2adf654f$var$shouldPreventDefault(s){return!(s instanceof HTMLElement)||!s.hasAttribute("draggable")}function $f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(s,j){return s instanceof HTMLInputElement?!$f6c31cce2adf654f$var$isValidInputKey(s,j):s instanceof HTMLButtonElement?s.type!=="submit"&&s.type!=="reset":!$f6c31cce2adf654f$var$isHTMLAnchorLink(s)}const $f6c31cce2adf654f$var$nonTextInputTypes=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function $f6c31cce2adf654f$var$isValidInputKey(s,j){return s.type==="checkbox"||s.type==="radio"?j===" ":$f6c31cce2adf654f$var$nonTextInputTypes.has(s.type)}const $f1ab8c75478c6f73$export$3351871ee4b288b8=React.forwardRef(({children:s,...j},et)=>{let tt=reactExports.useRef(!1),rt=reactExports.useContext($ae1eeba8b9eafd08$export$5165eccb35aaadb5);et=$df56164dff5785e2$export$4338b53315abf666(et||(rt==null?void 0:rt.ref));let nt=$3ef42575df84b30b$export$9d1611c77c2fe928(rt||{},{...j,ref:et,register(){tt.current=!0,rt&&rt.register()}});return $e7801be82b4b2a53$export$4debdb1a3f0fa79e(rt,et),reactExports.useEffect(()=>{tt.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),tt.current=!0)},[]),React.createElement($ae1eeba8b9eafd08$export$5165eccb35aaadb5.Provider,{value:nt},s)});class $8a9cb279dc87e130$export$905e7fc544a71f36{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(j,et){this.nativeEvent=et,this.target=et.target,this.currentTarget=et.currentTarget,this.relatedTarget=et.relatedTarget,this.bubbles=et.bubbles,this.cancelable=et.cancelable,this.defaultPrevented=et.defaultPrevented,this.eventPhase=et.eventPhase,this.isTrusted=et.isTrusted,this.timeStamp=et.timeStamp,this.type=j}}function $8a9cb279dc87e130$export$715c682d09d639cc(s){let j=reactExports.useRef({isFocused:!1,observer:null});$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{const tt=j.current;return()=>{tt.observer&&(tt.observer.disconnect(),tt.observer=null)}},[]);let et=$8ae05eaa5c114e9c$export$7f54fc3180508a52(tt=>{s==null||s(tt)});return reactExports.useCallback(tt=>{if(tt.target instanceof HTMLButtonElement||tt.target instanceof HTMLInputElement||tt.target instanceof HTMLTextAreaElement||tt.target instanceof HTMLSelectElement){j.current.isFocused=!0;let rt=tt.target,nt=at=>{j.current.isFocused=!1,rt.disabled&&et(new $8a9cb279dc87e130$export$905e7fc544a71f36("blur",at)),j.current.observer&&(j.current.observer.disconnect(),j.current.observer=null)};rt.addEventListener("focusout",nt,{once:!0}),j.current.observer=new MutationObserver(()=>{if(j.current.isFocused&&rt.disabled){var at;(at=j.current.observer)===null||at===void 0||at.disconnect();let it=rt===document.activeElement?null:document.activeElement;rt.dispatchEvent(new FocusEvent("blur",{relatedTarget:it})),rt.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:it}))}}),j.current.observer.observe(rt,{attributes:!0,attributeFilter:["disabled"]})}},[et])}function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(s){let{isDisabled:j,onFocus:et,onBlur:tt,onFocusChange:rt}=s;const nt=reactExports.useCallback(ot=>{if(ot.target===ot.currentTarget)return tt&&tt(ot),rt&&rt(!1),!0},[tt,rt]),at=$8a9cb279dc87e130$export$715c682d09d639cc(nt),it=reactExports.useCallback(ot=>{ot.target===ot.currentTarget&&document.activeElement===ot.target&&(et&&et(ot),rt&&rt(!0),at(ot))},[rt,et,at]);return{focusProps:{onFocus:!j&&(et||rt||tt)?it:void 0,onBlur:!j&&(tt||rt)?nt:void 0}}}let $507fabe10e71c6fb$var$currentModality=null,$507fabe10e71c6fb$var$changeHandlers=new Set,$507fabe10e71c6fb$var$hasSetupGlobalListeners=!1,$507fabe10e71c6fb$var$hasEventBeforeFocus=!1,$507fabe10e71c6fb$var$hasBlurredWindowRecently=!1;const $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS={Tab:!0,Escape:!0};function $507fabe10e71c6fb$var$triggerChangeHandlers(s,j){for(let et of $507fabe10e71c6fb$var$changeHandlers)et(s,j)}function $507fabe10e71c6fb$var$isValidKey(s){return!(s.metaKey||!$c87311424ea30a05$export$9ac100e40613ea10()&&s.altKey||s.ctrlKey||s.key==="Control"||s.key==="Shift"||s.key==="Meta")}function $507fabe10e71c6fb$var$handleKeyboardEvent(s){$507fabe10e71c6fb$var$hasEventBeforeFocus=!0,$507fabe10e71c6fb$var$isValidKey(s)&&($507fabe10e71c6fb$var$currentModality="keyboard",$507fabe10e71c6fb$var$triggerChangeHandlers("keyboard",s))}function $507fabe10e71c6fb$var$handlePointerEvent(s){$507fabe10e71c6fb$var$currentModality="pointer",(s.type==="mousedown"||s.type==="pointerdown")&&($507fabe10e71c6fb$var$hasEventBeforeFocus=!0,$507fabe10e71c6fb$var$triggerChangeHandlers("pointer",s))}function $507fabe10e71c6fb$var$handleClickEvent(s){$6a7db85432448f7f$export$60278871457622de(s)&&($507fabe10e71c6fb$var$hasEventBeforeFocus=!0,$507fabe10e71c6fb$var$currentModality="virtual")}function $507fabe10e71c6fb$var$handleFocusEvent(s){s.target===window||s.target===document||(!$507fabe10e71c6fb$var$hasEventBeforeFocus&&!$507fabe10e71c6fb$var$hasBlurredWindowRecently&&($507fabe10e71c6fb$var$currentModality="virtual",$507fabe10e71c6fb$var$triggerChangeHandlers("virtual",s)),$507fabe10e71c6fb$var$hasEventBeforeFocus=!1,$507fabe10e71c6fb$var$hasBlurredWindowRecently=!1)}function $507fabe10e71c6fb$var$handleWindowBlur(){$507fabe10e71c6fb$var$hasEventBeforeFocus=!1,$507fabe10e71c6fb$var$hasBlurredWindowRecently=!0}function $507fabe10e71c6fb$var$setupGlobalFocusEvents(){if(typeof window=="undefined"||$507fabe10e71c6fb$var$hasSetupGlobalListeners)return;let s=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){$507fabe10e71c6fb$var$hasEventBeforeFocus=!0,s.apply(this,arguments)},document.addEventListener("keydown",$507fabe10e71c6fb$var$handleKeyboardEvent,!0),document.addEventListener("keyup",$507fabe10e71c6fb$var$handleKeyboardEvent,!0),document.addEventListener("click",$507fabe10e71c6fb$var$handleClickEvent,!0),window.addEventListener("focus",$507fabe10e71c6fb$var$handleFocusEvent,!0),window.addEventListener("blur",$507fabe10e71c6fb$var$handleWindowBlur,!1),typeof PointerEvent!="undefined"?(document.addEventListener("pointerdown",$507fabe10e71c6fb$var$handlePointerEvent,!0),document.addEventListener("pointermove",$507fabe10e71c6fb$var$handlePointerEvent,!0),document.addEventListener("pointerup",$507fabe10e71c6fb$var$handlePointerEvent,!0)):(document.addEventListener("mousedown",$507fabe10e71c6fb$var$handlePointerEvent,!0),document.addEventListener("mousemove",$507fabe10e71c6fb$var$handlePointerEvent,!0),document.addEventListener("mouseup",$507fabe10e71c6fb$var$handlePointerEvent,!0)),$507fabe10e71c6fb$var$hasSetupGlobalListeners=!0}typeof document!="undefined"&&(document.readyState!=="loading"?$507fabe10e71c6fb$var$setupGlobalFocusEvents():document.addEventListener("DOMContentLoaded",$507fabe10e71c6fb$var$setupGlobalFocusEvents));function $507fabe10e71c6fb$export$b9b3dfddab17db27(){return $507fabe10e71c6fb$var$currentModality!=="pointer"}function $507fabe10e71c6fb$export$630ff653c5ada6a9(){return $507fabe10e71c6fb$var$currentModality}function $507fabe10e71c6fb$export$8397ddfc504fdb9a(s){$507fabe10e71c6fb$var$currentModality=s,$507fabe10e71c6fb$var$triggerChangeHandlers(s,null)}const $507fabe10e71c6fb$var$nonTextInputTypes=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function $507fabe10e71c6fb$var$isKeyboardFocusEvent(s,j,et){var tt;return s=s||(et==null?void 0:et.target)instanceof HTMLInputElement&&!$507fabe10e71c6fb$var$nonTextInputTypes.has(et==null||(tt=et.target)===null||tt===void 0?void 0:tt.type)||(et==null?void 0:et.target)instanceof HTMLTextAreaElement||(et==null?void 0:et.target)instanceof HTMLElement&&(et==null?void 0:et.target.isContentEditable),!(s&&j==="keyboard"&&et instanceof KeyboardEvent&&!$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[et.key])}function $507fabe10e71c6fb$export$ffd9e5021c1fb2d6(s={}){let{isTextInput:j,autoFocus:et}=s,[tt,rt]=reactExports.useState(et||$507fabe10e71c6fb$export$b9b3dfddab17db27());return $507fabe10e71c6fb$export$ec71b4b83ac08ec3(nt=>{rt(nt)},[j],{isTextInput:j}),{isFocusVisible:tt}}function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(s,j,et){$507fabe10e71c6fb$var$setupGlobalFocusEvents(),reactExports.useEffect(()=>{let tt=(rt,nt)=>{$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(et!=null&&et.isTextInput),rt,nt)&&s($507fabe10e71c6fb$export$b9b3dfddab17db27())};return $507fabe10e71c6fb$var$changeHandlers.add(tt),()=>{$507fabe10e71c6fb$var$changeHandlers.delete(tt)}},j)}function $9ab94262bd0047c7$export$420e68273165f4ec(s){let{isDisabled:j,onBlurWithin:et,onFocusWithin:tt,onFocusWithinChange:rt}=s,nt=reactExports.useRef({isFocusWithin:!1}),at=reactExports.useCallback(st=>{nt.current.isFocusWithin&&!st.currentTarget.contains(st.relatedTarget)&&(nt.current.isFocusWithin=!1,et&&et(st),rt&&rt(!1))},[et,rt,nt]),it=$8a9cb279dc87e130$export$715c682d09d639cc(at),ot=reactExports.useCallback(st=>{!nt.current.isFocusWithin&&document.activeElement===st.target&&(tt&&tt(st),rt&&rt(!0),nt.current.isFocusWithin=!0,it(st))},[tt,rt,it]);return j?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:ot,onBlur:at}}}let $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents=!1,$6179b936705e76d3$var$hoverCount=0;function $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents(){$6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents=!0,setTimeout(()=>{$6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents=!1},50)}function $6179b936705e76d3$var$handleGlobalPointerEvent(s){s.pointerType==="touch"&&$6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents()}function $6179b936705e76d3$var$setupGlobalTouchEvents(){if(typeof document!="undefined")return typeof PointerEvent!="undefined"?document.addEventListener("pointerup",$6179b936705e76d3$var$handleGlobalPointerEvent):document.addEventListener("touchend",$6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents),$6179b936705e76d3$var$hoverCount++,()=>{$6179b936705e76d3$var$hoverCount--,!($6179b936705e76d3$var$hoverCount>0)&&(typeof PointerEvent!="undefined"?document.removeEventListener("pointerup",$6179b936705e76d3$var$handleGlobalPointerEvent):document.removeEventListener("touchend",$6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents))}}function $6179b936705e76d3$export$ae780daf29e6d456(s){let{onHoverStart:j,onHoverChange:et,onHoverEnd:tt,isDisabled:rt}=s,[nt,at]=reactExports.useState(!1),it=reactExports.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;reactExports.useEffect($6179b936705e76d3$var$setupGlobalTouchEvents,[]);let{hoverProps:ot,triggerHoverEnd:st}=reactExports.useMemo(()=>{let lt=(dt,ft)=>{if(it.pointerType=ft,rt||ft==="touch"||it.isHovered||!dt.currentTarget.contains(dt.target))return;it.isHovered=!0;let ht=dt.currentTarget;it.target=ht,j&&j({type:"hoverstart",target:ht,pointerType:ft}),et&&et(!0),at(!0)},ct=(dt,ft)=>{if(it.pointerType="",it.target=null,ft==="touch"||!it.isHovered)return;it.isHovered=!1;let ht=dt.currentTarget;tt&&tt({type:"hoverend",target:ht,pointerType:ft}),et&&et(!1),at(!1)},ut={};return typeof PointerEvent!="undefined"?(ut.onPointerEnter=dt=>{$6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents&&dt.pointerType==="mouse"||lt(dt,dt.pointerType)},ut.onPointerLeave=dt=>{!rt&&dt.currentTarget.contains(dt.target)&&ct(dt,dt.pointerType)}):(ut.onTouchStart=()=>{it.ignoreEmulatedMouseEvents=!0},ut.onMouseEnter=dt=>{!it.ignoreEmulatedMouseEvents&&!$6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents&<(dt,"mouse"),it.ignoreEmulatedMouseEvents=!1},ut.onMouseLeave=dt=>{!rt&&dt.currentTarget.contains(dt.target)&&ct(dt,"mouse")}),{hoverProps:ut,triggerHoverEnd:ct}},[j,et,tt,rt,it]);return reactExports.useEffect(()=>{rt&&st({currentTarget:it.target},it.pointerType)},[rt]),{hoverProps:ot,isHovered:nt}}function $e0b6e0b68ec7f50f$export$872b660ac5a1ff98(s){let{ref:j,onInteractOutside:et,isDisabled:tt,onInteractOutsideStart:rt}=s,nt=reactExports.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),at=$8ae05eaa5c114e9c$export$7f54fc3180508a52(ot=>{et&&$e0b6e0b68ec7f50f$var$isValidEvent(ot,j)&&(rt&&rt(ot),nt.current.isPointerDown=!0)}),it=$8ae05eaa5c114e9c$export$7f54fc3180508a52(ot=>{et&&et(ot)});reactExports.useEffect(()=>{let ot=nt.current;if(tt)return;const st=j.current,lt=$431fbd86ca7dc216$export$b204af158042fbac(st);if(typeof PointerEvent!="undefined"){let ct=ut=>{ot.isPointerDown&&$e0b6e0b68ec7f50f$var$isValidEvent(ut,j)&&it(ut),ot.isPointerDown=!1};return lt.addEventListener("pointerdown",at,!0),lt.addEventListener("pointerup",ct,!0),()=>{lt.removeEventListener("pointerdown",at,!0),lt.removeEventListener("pointerup",ct,!0)}}else{let ct=dt=>{ot.ignoreEmulatedMouseEvents?ot.ignoreEmulatedMouseEvents=!1:ot.isPointerDown&&$e0b6e0b68ec7f50f$var$isValidEvent(dt,j)&&it(dt),ot.isPointerDown=!1},ut=dt=>{ot.ignoreEmulatedMouseEvents=!0,ot.isPointerDown&&$e0b6e0b68ec7f50f$var$isValidEvent(dt,j)&&it(dt),ot.isPointerDown=!1};return lt.addEventListener("mousedown",at,!0),lt.addEventListener("mouseup",ct,!0),lt.addEventListener("touchstart",at,!0),lt.addEventListener("touchend",ut,!0),()=>{lt.removeEventListener("mousedown",at,!0),lt.removeEventListener("mouseup",ct,!0),lt.removeEventListener("touchstart",at,!0),lt.removeEventListener("touchend",ut,!0)}}},[j,tt,at,it])}function $e0b6e0b68ec7f50f$var$isValidEvent(s,j){if(s.button>0)return!1;if(s.target){const et=s.target.ownerDocument;if(!et||!et.documentElement.contains(s.target)||s.target.closest("[data-react-aria-top-layer]"))return!1}return j.current&&!j.current.contains(s.target)}function $93925083ecbb358c$export$48d1ea6320830260(s){if(!s)return;let j=!0;return et=>{let tt={...et,preventDefault(){et.preventDefault()},isDefaultPrevented(){return et.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){j=!1}};s(tt),j&&et.stopPropagation()}}function $46d819fcbaf35654$export$8f71654801c2f7cd(s){return{keyboardProps:s.isDisabled?{}:{onKeyDown:$93925083ecbb358c$export$48d1ea6320830260(s.onKeyDown),onKeyUp:$93925083ecbb358c$export$48d1ea6320830260(s.onKeyUp)}}}const $8a26561d2877236e$var$DEFAULT_THRESHOLD=500;function $8a26561d2877236e$export$c24ed0104d07eab9(s){let{isDisabled:j,onLongPressStart:et,onLongPressEnd:tt,onLongPress:rt,threshold:nt=$8a26561d2877236e$var$DEFAULT_THRESHOLD,accessibilityDescription:at}=s;const it=reactExports.useRef();let{addGlobalListener:ot,removeGlobalListener:st}=$03deb23ff14920c4$export$4eaf04e54aa8eed6(),{pressProps:lt}=$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:j,onPressStart(ut){if(ut.continuePropagation(),(ut.pointerType==="mouse"||ut.pointerType==="touch")&&(et&&et({...ut,type:"longpressstart"}),it.current=setTimeout(()=>{ut.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),rt&&rt({...ut,type:"longpress"}),it.current=void 0},nt),ut.pointerType==="touch")){let dt=ft=>{ft.preventDefault()};ot(ut.target,"contextmenu",dt,{once:!0}),ot(window,"pointerup",()=>{setTimeout(()=>{st(ut.target,"contextmenu",dt)},30)},{once:!0})}},onPressEnd(ut){it.current&&clearTimeout(it.current),tt&&(ut.pointerType==="mouse"||ut.pointerType==="touch")&&tt({...ut,type:"longpressend"})}}),ct=$ef06256079686ba0$export$f8aeda7b10753fa1(rt&&!j?at:void 0);return{longPressProps:$3ef42575df84b30b$export$9d1611c77c2fe928(lt,ct)}}function $6a99195332edec8b$export$80f3e147d781571c(s){const j=$431fbd86ca7dc216$export$b204af158042fbac(s);if($507fabe10e71c6fb$export$630ff653c5ada6a9()==="virtual"){let et=j.activeElement;$bbed8b41f857bcc0$export$24490316f764c430(()=>{j.activeElement===et&&s.isConnected&&$7215afc6de606d6b$export$de79e2c695e052f3(s)})}else $7215afc6de606d6b$export$de79e2c695e052f3(s)}function $645f2e67b85a24c9$var$isStyleVisible(s){const j=$431fbd86ca7dc216$export$f21a1ffae260145a(s);if(!(s instanceof j.HTMLElement)&&!(s instanceof j.SVGElement))return!1;let{display:et,visibility:tt}=s.style,rt=et!=="none"&&tt!=="hidden"&&tt!=="collapse";if(rt){const{getComputedStyle:nt}=s.ownerDocument.defaultView;let{display:at,visibility:it}=nt(s);rt=at!=="none"&&it!=="hidden"&&it!=="collapse"}return rt}function $645f2e67b85a24c9$var$isAttributeVisible(s,j){return!s.hasAttribute("hidden")&&(s.nodeName==="DETAILS"&&j&&j.nodeName!=="SUMMARY"?s.hasAttribute("open"):!0)}function $645f2e67b85a24c9$export$e989c0fffaa6b27a(s,j){return s.nodeName!=="#comment"&&$645f2e67b85a24c9$var$isStyleVisible(s)&&$645f2e67b85a24c9$var$isAttributeVisible(s,j)&&(!s.parentElement||$645f2e67b85a24c9$export$e989c0fffaa6b27a(s.parentElement,s))}let $9bf71ea28793e738$var$activeScope=null;const $9bf71ea28793e738$var$focusableElements=["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]"],$9bf71ea28793e738$var$FOCUSABLE_ELEMENT_SELECTOR=$9bf71ea28793e738$var$focusableElements.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";$9bf71ea28793e738$var$focusableElements.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const $9bf71ea28793e738$var$TABBABLE_ELEMENT_SELECTOR=$9bf71ea28793e738$var$focusableElements.join(':not([hidden]):not([tabindex="-1"]),');function $9bf71ea28793e738$var$isElementInScope(s,j){return!s||!j?!1:j.some(et=>et.contains(s))}function $9bf71ea28793e738$var$isElementInChildScope(s,j=null){if(s instanceof Element&&s.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:et}of $9bf71ea28793e738$export$d06fae2ee68b101e.traverse($9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(j)))if(et&&$9bf71ea28793e738$var$isElementInScope(s,et.current))return!0;return!1}function $9bf71ea28793e738$export$1258395f99bf9cbf(s){return $9bf71ea28793e738$var$isElementInChildScope(s,$9bf71ea28793e738$var$activeScope)}function $9bf71ea28793e738$var$focusElement(s,j=!1){if(s!=null&&!j)try{$6a99195332edec8b$export$80f3e147d781571c(s)}catch(et){}else if(s!=null)try{s.focus()}catch(et){}}function $9bf71ea28793e738$export$2d6ec8fc375ceafa(s,j,et){let tt=j!=null&&j.tabbable?$9bf71ea28793e738$var$TABBABLE_ELEMENT_SELECTOR:$9bf71ea28793e738$var$FOCUSABLE_ELEMENT_SELECTOR,rt=$431fbd86ca7dc216$export$b204af158042fbac(s).createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode(nt){var at;return!(j==null||(at=j.from)===null||at===void 0)&&at.contains(nt)?NodeFilter.FILTER_REJECT:nt.matches(tt)&&$645f2e67b85a24c9$export$e989c0fffaa6b27a(nt)&&(!et||$9bf71ea28793e738$var$isElementInScope(nt,et))&&(!(j!=null&&j.accept)||j.accept(nt))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return j!=null&&j.from&&(rt.currentNode=j.from),rt}function $9bf71ea28793e738$export$c5251b9e124bf29(s,j={}){return{focusNext(et={}){let tt=s.current;if(!tt)return null;let{from:rt,tabbable:nt=j.tabbable,wrap:at=j.wrap,accept:it=j.accept}=et,ot=rt||$431fbd86ca7dc216$export$b204af158042fbac(tt).activeElement,st=$9bf71ea28793e738$export$2d6ec8fc375ceafa(tt,{tabbable:nt,accept:it});tt.contains(ot)&&(st.currentNode=ot);let lt=st.nextNode();return!lt&&at&&(st.currentNode=tt,lt=st.nextNode()),lt&&$9bf71ea28793e738$var$focusElement(lt,!0),lt},focusPrevious(et=j){let tt=s.current;if(!tt)return null;let{from:rt,tabbable:nt=j.tabbable,wrap:at=j.wrap,accept:it=j.accept}=et,ot=rt||$431fbd86ca7dc216$export$b204af158042fbac(tt).activeElement,st=$9bf71ea28793e738$export$2d6ec8fc375ceafa(tt,{tabbable:nt,accept:it});if(tt.contains(ot))st.currentNode=ot;else{let ct=$9bf71ea28793e738$var$last(st);return ct&&$9bf71ea28793e738$var$focusElement(ct,!0),ct!=null?ct:null}let lt=st.previousNode();if(!lt&&at){st.currentNode=tt;let ct=$9bf71ea28793e738$var$last(st);if(!ct)return null;lt=ct}return lt&&$9bf71ea28793e738$var$focusElement(lt,!0),lt!=null?lt:null},focusFirst(et=j){let tt=s.current;if(!tt)return null;let{tabbable:rt=j.tabbable,accept:nt=j.accept}=et,it=$9bf71ea28793e738$export$2d6ec8fc375ceafa(tt,{tabbable:rt,accept:nt}).nextNode();return it&&$9bf71ea28793e738$var$focusElement(it,!0),it},focusLast(et=j){let tt=s.current;if(!tt)return null;let{tabbable:rt=j.tabbable,accept:nt=j.accept}=et,at=$9bf71ea28793e738$export$2d6ec8fc375ceafa(tt,{tabbable:rt,accept:nt}),it=$9bf71ea28793e738$var$last(at);return it&&$9bf71ea28793e738$var$focusElement(it,!0),it!=null?it:null}}}function $9bf71ea28793e738$var$last(s){let j,et;do et=s.lastChild(),et&&(j=et);while(et);return j}class $9bf71ea28793e738$var$Tree{get size(){return this.fastMap.size}getTreeNode(j){return this.fastMap.get(j)}addTreeNode(j,et,tt){let rt=this.fastMap.get(et!=null?et:null);if(!rt)return;let nt=new $9bf71ea28793e738$var$TreeNode({scopeRef:j});rt.addChild(nt),nt.parent=rt,this.fastMap.set(j,nt),tt&&(nt.nodeToRestore=tt)}addNode(j){this.fastMap.set(j.scopeRef,j)}removeTreeNode(j){if(j===null)return;let et=this.fastMap.get(j);if(!et)return;let tt=et.parent;for(let nt of this.traverse())nt!==et&&et.nodeToRestore&&nt.nodeToRestore&&et.scopeRef&&et.scopeRef.current&&$9bf71ea28793e738$var$isElementInScope(nt.nodeToRestore,et.scopeRef.current)&&(nt.nodeToRestore=et.nodeToRestore);let rt=et.children;tt&&(tt.removeChild(et),rt.size>0&&rt.forEach(nt=>tt&&tt.addChild(nt))),this.fastMap.delete(et.scopeRef)}*traverse(j=this.root){if(j.scopeRef!=null&&(yield j),j.children.size>0)for(let et of j.children)yield*this.traverse(et)}clone(){var j;let et=new $9bf71ea28793e738$var$Tree;var tt;for(let rt of this.traverse())et.addTreeNode(rt.scopeRef,(tt=(j=rt.parent)===null||j===void 0?void 0:j.scopeRef)!==null&&tt!==void 0?tt:null,rt.nodeToRestore);return et}constructor(){this.fastMap=new Map,this.root=new $9bf71ea28793e738$var$TreeNode({scopeRef:null}),this.fastMap.set(null,this.root)}}class $9bf71ea28793e738$var$TreeNode{addChild(j){this.children.add(j),j.parent=this}removeChild(j){this.children.delete(j),j.parent=void 0}constructor(j){this.children=new Set,this.contain=!1,this.scopeRef=j.scopeRef}}let $9bf71ea28793e738$export$d06fae2ee68b101e=new $9bf71ea28793e738$var$Tree;function $f7dceffc5ad7768b$export$4e328f61c538687f(s={}){let{autoFocus:j=!1,isTextInput:et,within:tt}=s,rt=reactExports.useRef({isFocused:!1,isFocusVisible:j||$507fabe10e71c6fb$export$b9b3dfddab17db27()}),[nt,at]=reactExports.useState(!1),[it,ot]=reactExports.useState(()=>rt.current.isFocused&&rt.current.isFocusVisible),st=reactExports.useCallback(()=>ot(rt.current.isFocused&&rt.current.isFocusVisible),[]),lt=reactExports.useCallback(dt=>{rt.current.isFocused=dt,at(dt),st()},[st]);$507fabe10e71c6fb$export$ec71b4b83ac08ec3(dt=>{rt.current.isFocusVisible=dt,st()},[],{isTextInput:et});let{focusProps:ct}=$a1ea59d68270f0dd$export$f8168d8dd8fd66e6({isDisabled:tt,onFocusChange:lt}),{focusWithinProps:ut}=$9ab94262bd0047c7$export$420e68273165f4ec({isDisabled:!tt,onFocusWithinChange:lt});return{isFocused:nt,isFocusVisible:it,focusProps:tt?ut:ct}}let $e6afbd83fe6ebbd2$var$FocusableContext=React.createContext(null);function $e6afbd83fe6ebbd2$var$useFocusableContext(s){let j=reactExports.useContext($e6afbd83fe6ebbd2$var$FocusableContext)||{};$e7801be82b4b2a53$export$4debdb1a3f0fa79e(j,s);let{ref:et,...tt}=j;return tt}function $e6afbd83fe6ebbd2$var$FocusableProvider(s,j){let{children:et,...tt}=s,rt=$df56164dff5785e2$export$4338b53315abf666(j),nt={...tt,ref:rt};return React.createElement($e6afbd83fe6ebbd2$var$FocusableContext.Provider,{value:nt},et)}let $e6afbd83fe6ebbd2$export$13f3202a3e5ddd5=React.forwardRef($e6afbd83fe6ebbd2$var$FocusableProvider);function $e6afbd83fe6ebbd2$export$4c014de7c8940b4c(s,j){let{focusProps:et}=$a1ea59d68270f0dd$export$f8168d8dd8fd66e6(s),{keyboardProps:tt}=$46d819fcbaf35654$export$8f71654801c2f7cd(s),rt=$3ef42575df84b30b$export$9d1611c77c2fe928(et,tt),nt=$e6afbd83fe6ebbd2$var$useFocusableContext(j),at=s.isDisabled?{}:nt,it=reactExports.useRef(s.autoFocus);return reactExports.useEffect(()=>{it.current&&j.current&&$6a99195332edec8b$export$80f3e147d781571c(j.current),it.current=!1},[j]),{focusableProps:$3ef42575df84b30b$export$9d1611c77c2fe928({...rt,tabIndex:s.excludeFromTabOrder&&!s.isDisabled?-1:void 0},at)}}const $148a7a147e38ea7f$var$RTL_SCRIPTS=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),$148a7a147e38ea7f$var$RTL_LANGS=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function $148a7a147e38ea7f$export$702d680b21cbd764(s){if(Intl.Locale){let et=new Intl.Locale(s).maximize(),tt=typeof et.getTextInfo=="function"?et.getTextInfo():et.textInfo;if(tt)return tt.direction==="rtl";if(et.script)return $148a7a147e38ea7f$var$RTL_SCRIPTS.has(et.script)}let j=s.split("-")[0];return $148a7a147e38ea7f$var$RTL_LANGS.has(j)}const $1e5a04cdaf7d1af8$var$localeSymbol=Symbol.for("react-aria.i18n.locale");function $1e5a04cdaf7d1af8$export$f09106e7c6677ec5(){let s=typeof window!="undefined"&&window[$1e5a04cdaf7d1af8$var$localeSymbol]||typeof navigator!="undefined"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([s])}catch(j){s="en-US"}return{locale:s,direction:$148a7a147e38ea7f$export$702d680b21cbd764(s)?"rtl":"ltr"}}let $1e5a04cdaf7d1af8$var$currentLocale=$1e5a04cdaf7d1af8$export$f09106e7c6677ec5(),$1e5a04cdaf7d1af8$var$listeners=new Set;function $1e5a04cdaf7d1af8$var$updateLocale(){$1e5a04cdaf7d1af8$var$currentLocale=$1e5a04cdaf7d1af8$export$f09106e7c6677ec5();for(let s of $1e5a04cdaf7d1af8$var$listeners)s($1e5a04cdaf7d1af8$var$currentLocale)}function $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a(){let s=$b5e257d569688ac6$export$535bd6ca7f90a273(),[j,et]=reactExports.useState($1e5a04cdaf7d1af8$var$currentLocale);return reactExports.useEffect(()=>($1e5a04cdaf7d1af8$var$listeners.size===0&&window.addEventListener("languagechange",$1e5a04cdaf7d1af8$var$updateLocale),$1e5a04cdaf7d1af8$var$listeners.add(et),()=>{$1e5a04cdaf7d1af8$var$listeners.delete(et),$1e5a04cdaf7d1af8$var$listeners.size===0&&window.removeEventListener("languagechange",$1e5a04cdaf7d1af8$var$updateLocale)}),[]),s?{locale:"en-US",direction:"ltr"}:j}const $18f2051aff69b9bf$var$I18nContext=React.createContext(null);function $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(){let s=$1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a();return reactExports.useContext($18f2051aff69b9bf$var$I18nContext)||s}const $fca6afa0e843324b$var$cache=new WeakMap;function $fca6afa0e843324b$var$getCachedDictionary(s){let j=$fca6afa0e843324b$var$cache.get(s);return j||(j=new $5b160d28a433310d$export$c17fa47878dc55b6(s),$fca6afa0e843324b$var$cache.set(s,j)),j}function $fca6afa0e843324b$export$87b761675e8eaa10(s,j){return j&&$5b160d28a433310d$export$c17fa47878dc55b6.getGlobalDictionaryForPackage(j)||$fca6afa0e843324b$var$getCachedDictionary(s)}function $fca6afa0e843324b$export$f12b703ca79dfbb1(s,j){let{locale:et}=$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),tt=$fca6afa0e843324b$export$87b761675e8eaa10(s,j);return reactExports.useMemo(()=>new $6db58dc88e78b024$export$2f817fcdc4b89ae0(et,tt),[et,tt])}function $896ba0a80a8f4d36$export$85fd5fdf27bacc79(s){s=$5a387cc49350e6db$export$722debc0e56fea39(s!=null?s:{},$896ba0a80a8f4d36$var$isEqual);let{locale:j}=$18f2051aff69b9bf$export$43bb16f9c6d9e3f7();return reactExports.useMemo(()=>new $fb18d541ea1ad717$export$ad991b66133851cf(j,s),[j,s])}function $896ba0a80a8f4d36$var$isEqual(s,j){if(s===j)return!0;let et=Object.keys(s),tt=Object.keys(j);if(et.length!==tt.length)return!1;for(let rt of et)if(j[rt]!==s[rt])return!1;return!0}let $325a3faab7a68acd$var$cache=new Map;function $325a3faab7a68acd$export$a16aca283550c30d(s){let{locale:j}=$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),et=j+(s?Object.entries(s).sort((rt,nt)=>rt[0]<nt[0]?-1:1).join():"");if($325a3faab7a68acd$var$cache.has(et))return $325a3faab7a68acd$var$cache.get(et);let tt=new Intl.Collator(j,s);return $325a3faab7a68acd$var$cache.set(et,tt),tt}function $bb77f239b46e8c72$export$3274cf84b703fff(s){let j=$325a3faab7a68acd$export$a16aca283550c30d({usage:"search",...s}),et=reactExports.useCallback((nt,at)=>at.length===0?!0:(nt=nt.normalize("NFC"),at=at.normalize("NFC"),j.compare(nt.slice(0,at.length),at)===0),[j]),tt=reactExports.useCallback((nt,at)=>at.length===0?!0:(nt=nt.normalize("NFC"),at=at.normalize("NFC"),j.compare(nt.slice(-at.length),at)===0),[j]),rt=reactExports.useCallback((nt,at)=>{if(at.length===0)return!0;nt=nt.normalize("NFC"),at=at.normalize("NFC");let it=0,ot=at.length;for(;it+ot<=nt.length;it++){let st=nt.slice(it,it+ot);if(j.compare(at,st)===0)return!0}return!1},[j]);return reactExports.useMemo(()=>({startsWith:et,endsWith:tt,contains:rt}),[et,tt,rt])}var extendStatics=function(s,j){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(et,tt){et.__proto__=tt}||function(et,tt){for(var rt in tt)Object.prototype.hasOwnProperty.call(tt,rt)&&(et[rt]=tt[rt])},extendStatics(s,j)};function __extends(s,j){if(typeof j!="function"&&j!==null)throw new TypeError("Class extends value "+String(j)+" is not a constructor or null");extendStatics(s,j);function et(){this.constructor=s}s.prototype=j===null?Object.create(j):(et.prototype=j.prototype,new et)}var __assign$5=function(){return __assign$5=Object.assign||function(j){for(var et,tt=1,rt=arguments.length;tt<rt;tt++){et=arguments[tt];for(var nt in et)Object.prototype.hasOwnProperty.call(et,nt)&&(j[nt]=et[nt])}return j},__assign$5.apply(this,arguments)};function __rest(s,j){var et={};for(var tt in s)Object.prototype.hasOwnProperty.call(s,tt)&&j.indexOf(tt)<0&&(et[tt]=s[tt]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,tt=Object.getOwnPropertySymbols(s);rt<tt.length;rt++)j.indexOf(tt[rt])<0&&Object.prototype.propertyIsEnumerable.call(s,tt[rt])&&(et[tt[rt]]=s[tt[rt]]);return et}function __spreadArray(s,j,et){if(et||arguments.length===2)for(var tt=0,rt=j.length,nt;tt<rt;tt++)(nt||!(tt in j))&&(nt||(nt=Array.prototype.slice.call(j,0,tt)),nt[tt]=j[tt]);return s.concat(nt||Array.prototype.slice.call(j))}typeof SuppressedError=="function"&&SuppressedError;var ErrorKind;(function(s){s[s.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",s[s.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",s[s.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",s[s.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",s[s.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",s[s.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",s[s.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",s[s.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",s[s.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",s[s.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",s[s.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",s[s.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",s[s.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",s[s.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",s[s.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",s[s.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",s[s.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",s[s.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",s[s.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",s[s.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",s[s.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",s[s.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",s[s.INVALID_TAG=23]="INVALID_TAG",s[s.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",s[s.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",s[s.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ErrorKind||(ErrorKind={}));var TYPE;(function(s){s[s.literal=0]="literal",s[s.argument=1]="argument",s[s.number=2]="number",s[s.date=3]="date",s[s.time=4]="time",s[s.select=5]="select",s[s.plural=6]="plural",s[s.pound=7]="pound",s[s.tag=8]="tag"})(TYPE||(TYPE={}));var SKELETON_TYPE;(function(s){s[s.number=0]="number",s[s.dateTime=1]="dateTime"})(SKELETON_TYPE||(SKELETON_TYPE={}));function isLiteralElement(s){return s.type===TYPE.literal}function isArgumentElement(s){return s.type===TYPE.argument}function isNumberElement(s){return s.type===TYPE.number}function isDateElement(s){return s.type===TYPE.date}function isTimeElement(s){return s.type===TYPE.time}function isSelectElement(s){return s.type===TYPE.select}function isPluralElement(s){return s.type===TYPE.plural}function isPoundElement(s){return s.type===TYPE.pound}function isTagElement(s){return s.type===TYPE.tag}function isNumberSkeleton(s){return!!(s&&typeof s=="object"&&s.type===SKELETON_TYPE.number)}function isDateTimeSkeleton(s){return!!(s&&typeof s=="object"&&s.type===SKELETON_TYPE.dateTime)}var SPACE_SEPARATOR_REGEX=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,DATE_TIME_REGEX=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function parseDateTimeSkeleton(s){var j={};return s.replace(DATE_TIME_REGEX,function(et){var tt=et.length;switch(et[0]){case"G":j.era=tt===4?"long":tt===5?"narrow":"short";break;case"y":j.year=tt===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":j.month=["numeric","2-digit","short","long","narrow"][tt-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":j.day=["numeric","2-digit"][tt-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":j.weekday=tt===4?"long":tt===5?"narrow":"short";break;case"e":if(tt<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");j.weekday=["short","long","narrow","short"][tt-4];break;case"c":if(tt<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");j.weekday=["short","long","narrow","short"][tt-4];break;case"a":j.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":j.hourCycle="h12",j.hour=["numeric","2-digit"][tt-1];break;case"H":j.hourCycle="h23",j.hour=["numeric","2-digit"][tt-1];break;case"K":j.hourCycle="h11",j.hour=["numeric","2-digit"][tt-1];break;case"k":j.hourCycle="h24",j.hour=["numeric","2-digit"][tt-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":j.minute=["numeric","2-digit"][tt-1];break;case"s":j.second=["numeric","2-digit"][tt-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":j.timeZoneName=tt<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),j}var WHITE_SPACE_REGEX=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function parseNumberSkeletonFromString(s){if(s.length===0)throw new Error("Number skeleton cannot be empty");for(var j=s.split(WHITE_SPACE_REGEX).filter(function(ut){return ut.length>0}),et=[],tt=0,rt=j;tt<rt.length;tt++){var nt=rt[tt],at=nt.split("/");if(at.length===0)throw new Error("Invalid number skeleton");for(var it=at[0],ot=at.slice(1),st=0,lt=ot;st<lt.length;st++){var ct=lt[st];if(ct.length===0)throw new Error("Invalid number skeleton")}et.push({stem:it,options:ot})}return et}function icuUnitToEcma(s){return s.replace(/^(.*?)-/,"")}var FRACTION_PRECISION_REGEX=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,SIGNIFICANT_PRECISION_REGEX=/^(@+)?(\+|#+)?[rs]?$/g,INTEGER_WIDTH_REGEX=/(\*)(0+)|(#+)(0+)|(0+)/g,CONCISE_INTEGER_WIDTH_REGEX=/^(0+)$/;function parseSignificantPrecision(s){var j={};return s[s.length-1]==="r"?j.roundingPriority="morePrecision":s[s.length-1]==="s"&&(j.roundingPriority="lessPrecision"),s.replace(SIGNIFICANT_PRECISION_REGEX,function(et,tt,rt){return typeof rt!="string"?(j.minimumSignificantDigits=tt.length,j.maximumSignificantDigits=tt.length):rt==="+"?j.minimumSignificantDigits=tt.length:tt[0]==="#"?j.maximumSignificantDigits=tt.length:(j.minimumSignificantDigits=tt.length,j.maximumSignificantDigits=tt.length+(typeof rt=="string"?rt.length:0)),""}),j}function parseSign(s){switch(s){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function parseConciseScientificAndEngineeringStem(s){var j;if(s[0]==="E"&&s[1]==="E"?(j={notation:"engineering"},s=s.slice(2)):s[0]==="E"&&(j={notation:"scientific"},s=s.slice(1)),j){var et=s.slice(0,2);if(et==="+!"?(j.signDisplay="always",s=s.slice(2)):et==="+?"&&(j.signDisplay="exceptZero",s=s.slice(2)),!CONCISE_INTEGER_WIDTH_REGEX.test(s))throw new Error("Malformed concise eng/scientific notation");j.minimumIntegerDigits=s.length}return j}function parseNotationOptions(s){var j={},et=parseSign(s);return et||j}function parseNumberSkeleton(s){for(var j={},et=0,tt=s;et<tt.length;et++){var rt=tt[et];switch(rt.stem){case"percent":case"%":j.style="percent";continue;case"%x100":j.style="percent",j.scale=100;continue;case"currency":j.style="currency",j.currency=rt.options[0];continue;case"group-off":case",_":j.useGrouping=!1;continue;case"precision-integer":case".":j.maximumFractionDigits=0;continue;case"measure-unit":case"unit":j.style="unit",j.unit=icuUnitToEcma(rt.options[0]);continue;case"compact-short":case"K":j.notation="compact",j.compactDisplay="short";continue;case"compact-long":case"KK":j.notation="compact",j.compactDisplay="long";continue;case"scientific":j=__assign$5(__assign$5(__assign$5({},j),{notation:"scientific"}),rt.options.reduce(function(ot,st){return __assign$5(__assign$5({},ot),parseNotationOptions(st))},{}));continue;case"engineering":j=__assign$5(__assign$5(__assign$5({},j),{notation:"engineering"}),rt.options.reduce(function(ot,st){return __assign$5(__assign$5({},ot),parseNotationOptions(st))},{}));continue;case"notation-simple":j.notation="standard";continue;case"unit-width-narrow":j.currencyDisplay="narrowSymbol",j.unitDisplay="narrow";continue;case"unit-width-short":j.currencyDisplay="code",j.unitDisplay="short";continue;case"unit-width-full-name":j.currencyDisplay="name",j.unitDisplay="long";continue;case"unit-width-iso-code":j.currencyDisplay="symbol";continue;case"scale":j.scale=parseFloat(rt.options[0]);continue;case"rounding-mode-floor":j.roundingMode="floor";continue;case"rounding-mode-ceiling":j.roundingMode="ceil";continue;case"rounding-mode-down":j.roundingMode="trunc";continue;case"rounding-mode-up":j.roundingMode="expand";continue;case"rounding-mode-half-even":j.roundingMode="halfEven";continue;case"rounding-mode-half-down":j.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":j.roundingMode="halfExpand";continue;case"integer-width":if(rt.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");rt.options[0].replace(INTEGER_WIDTH_REGEX,function(ot,st,lt,ct,ut,dt){if(st)j.minimumIntegerDigits=lt.length;else{if(ct&&ut)throw new Error("We currently do not support maximum integer digits");if(dt)throw new Error("We currently do not support exact integer digits")}return""});continue}if(CONCISE_INTEGER_WIDTH_REGEX.test(rt.stem)){j.minimumIntegerDigits=rt.stem.length;continue}if(FRACTION_PRECISION_REGEX.test(rt.stem)){if(rt.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");rt.stem.replace(FRACTION_PRECISION_REGEX,function(ot,st,lt,ct,ut,dt){return lt==="*"?j.minimumFractionDigits=st.length:ct&&ct[0]==="#"?j.maximumFractionDigits=ct.length:ut&&dt?(j.minimumFractionDigits=ut.length,j.maximumFractionDigits=ut.length+dt.length):(j.minimumFractionDigits=st.length,j.maximumFractionDigits=st.length),""});var nt=rt.options[0];nt==="w"?j=__assign$5(__assign$5({},j),{trailingZeroDisplay:"stripIfInteger"}):nt&&(j=__assign$5(__assign$5({},j),parseSignificantPrecision(nt)));continue}if(SIGNIFICANT_PRECISION_REGEX.test(rt.stem)){j=__assign$5(__assign$5({},j),parseSignificantPrecision(rt.stem));continue}var at=parseSign(rt.stem);at&&(j=__assign$5(__assign$5({},j),at));var it=parseConciseScientificAndEngineeringStem(rt.stem);it&&(j=__assign$5(__assign$5({},j),it))}return j}var timeData={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function getBestPattern(s,j){for(var et="",tt=0;tt<s.length;tt++){var rt=s.charAt(tt);if(rt==="j"){for(var nt=0;tt+1<s.length&&s.charAt(tt+1)===rt;)nt++,tt++;var at=1+(nt&1),it=nt<2?1:3+(nt>>1),ot="a",st=getDefaultHourSymbolFromLocale(j);for((st=="H"||st=="k")&&(it=0);it-- >0;)et+=ot;for(;at-- >0;)et=st+et}else rt==="J"?et+="H":et+=rt}return et}function getDefaultHourSymbolFromLocale(s){var j=s.hourCycle;if(j===void 0&&s.hourCycles&&s.hourCycles.length&&(j=s.hourCycles[0]),j)switch(j){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var et=s.language,tt;et!=="root"&&(tt=s.maximize().region);var rt=timeData[tt||""]||timeData[et||""]||timeData["".concat(et,"-001")]||timeData["001"];return rt[0]}var _a,SPACE_SEPARATOR_START_REGEX=new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source,"*")),SPACE_SEPARATOR_END_REGEX=new RegExp("".concat(SPACE_SEPARATOR_REGEX.source,"*$"));function createLocation(s,j){return{start:s,end:j}}var hasNativeStartsWith=!!String.prototype.startsWith&&"_a".startsWith("a",1),hasNativeFromCodePoint=!!String.fromCodePoint,hasNativeFromEntries=!!Object.fromEntries,hasNativeCodePointAt=!!String.prototype.codePointAt,hasTrimStart=!!String.prototype.trimStart,hasTrimEnd=!!String.prototype.trimEnd,hasNativeIsSafeInteger=!!Number.isSafeInteger,isSafeInteger=hasNativeIsSafeInteger?Number.isSafeInteger:function(s){return typeof s=="number"&&isFinite(s)&&Math.floor(s)===s&&Math.abs(s)<=9007199254740991},REGEX_SUPPORTS_U_AND_Y=!0;try{var re=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");REGEX_SUPPORTS_U_AND_Y=((_a=re.exec("a"))===null||_a===void 0?void 0:_a[0])==="a"}catch(s){REGEX_SUPPORTS_U_AND_Y=!1}var startsWith=hasNativeStartsWith?function(j,et,tt){return j.startsWith(et,tt)}:function(j,et,tt){return j.slice(tt,tt+et.length)===et},fromCodePoint=hasNativeFromCodePoint?String.fromCodePoint:function(){for(var j=[],et=0;et<arguments.length;et++)j[et]=arguments[et];for(var tt="",rt=j.length,nt=0,at;rt>nt;){if(at=j[nt++],at>1114111)throw RangeError(at+" is not a valid code point");tt+=at<65536?String.fromCharCode(at):String.fromCharCode(((at-=65536)>>10)+55296,at%1024+56320)}return tt},fromEntries=hasNativeFromEntries?Object.fromEntries:function(j){for(var et={},tt=0,rt=j;tt<rt.length;tt++){var nt=rt[tt],at=nt[0],it=nt[1];et[at]=it}return et},codePointAt$1=hasNativeCodePointAt?function(j,et){return j.codePointAt(et)}:function(j,et){var tt=j.length;if(!(et<0||et>=tt)){var rt=j.charCodeAt(et),nt;return rt<55296||rt>56319||et+1===tt||(nt=j.charCodeAt(et+1))<56320||nt>57343?rt:(rt-55296<<10)+(nt-56320)+65536}},trimStart=hasTrimStart?function(j){return j.trimStart()}:function(j){return j.replace(SPACE_SEPARATOR_START_REGEX,"")},trimEnd=hasTrimEnd?function(j){return j.trimEnd()}:function(j){return j.replace(SPACE_SEPARATOR_END_REGEX,"")};function RE(s,j){return new RegExp(s,j)}var matchIdentifierAtIndex;if(REGEX_SUPPORTS_U_AND_Y){var IDENTIFIER_PREFIX_RE_1=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");matchIdentifierAtIndex=function(j,et){var tt;IDENTIFIER_PREFIX_RE_1.lastIndex=et;var rt=IDENTIFIER_PREFIX_RE_1.exec(j);return(tt=rt[1])!==null&&tt!==void 0?tt:""}}else matchIdentifierAtIndex=function(j,et){for(var tt=[];;){var rt=codePointAt$1(j,et);if(rt===void 0||_isWhiteSpace(rt)||_isPatternSyntax(rt))break;tt.push(rt),et+=rt>=65536?2:1}return fromCodePoint.apply(void 0,tt)};var Parser=function(){function s(j,et){et===void 0&&(et={}),this.message=j,this.position={offset:0,line:1,column:1},this.ignoreTag=!!et.ignoreTag,this.locale=et.locale,this.requiresOtherClause=!!et.requiresOtherClause,this.shouldParseSkeletons=!!et.shouldParseSkeletons}return s.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},s.prototype.parseMessage=function(j,et,tt){for(var rt=[];!this.isEOF();){var nt=this.char();if(nt===123){var at=this.parseArgument(j,tt);if(at.err)return at;rt.push(at.val)}else{if(nt===125&&j>0)break;if(nt===35&&(et==="plural"||et==="selectordinal")){var it=this.clonePosition();this.bump(),rt.push({type:TYPE.pound,location:createLocation(it,this.clonePosition())})}else if(nt===60&&!this.ignoreTag&&this.peek()===47){if(tt)break;return this.error(ErrorKind.UNMATCHED_CLOSING_TAG,createLocation(this.clonePosition(),this.clonePosition()))}else if(nt===60&&!this.ignoreTag&&_isAlpha(this.peek()||0)){var at=this.parseTag(j,et);if(at.err)return at;rt.push(at.val)}else{var at=this.parseLiteral(j,et);if(at.err)return at;rt.push(at.val)}}}return{val:rt,err:null}},s.prototype.parseTag=function(j,et){var tt=this.clonePosition();this.bump();var rt=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:TYPE.literal,value:"<".concat(rt,"/>"),location:createLocation(tt,this.clonePosition())},err:null};if(this.bumpIf(">")){var nt=this.parseMessage(j+1,et,!0);if(nt.err)return nt;var at=nt.val,it=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!_isAlpha(this.char()))return this.error(ErrorKind.INVALID_TAG,createLocation(it,this.clonePosition()));var ot=this.clonePosition(),st=this.parseTagName();return rt!==st?this.error(ErrorKind.UNMATCHED_CLOSING_TAG,createLocation(ot,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:TYPE.tag,value:rt,children:at,location:createLocation(tt,this.clonePosition())},err:null}:this.error(ErrorKind.INVALID_TAG,createLocation(it,this.clonePosition())))}else return this.error(ErrorKind.UNCLOSED_TAG,createLocation(tt,this.clonePosition()))}else return this.error(ErrorKind.INVALID_TAG,createLocation(tt,this.clonePosition()))},s.prototype.parseTagName=function(){var j=this.offset();for(this.bump();!this.isEOF()&&_isPotentialElementNameChar(this.char());)this.bump();return this.message.slice(j,this.offset())},s.prototype.parseLiteral=function(j,et){for(var tt=this.clonePosition(),rt="";;){var nt=this.tryParseQuote(et);if(nt){rt+=nt;continue}var at=this.tryParseUnquoted(j,et);if(at){rt+=at;continue}var it=this.tryParseLeftAngleBracket();if(it){rt+=it;continue}break}var ot=createLocation(tt,this.clonePosition());return{val:{type:TYPE.literal,value:rt,location:ot},err:null}},s.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!_isAlphaOrSlash(this.peek()||0))?(this.bump(),"<"):null},s.prototype.tryParseQuote=function(j){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(j==="plural"||j==="selectordinal")break;return null;default:return null}this.bump();var et=[this.char()];for(this.bump();!this.isEOF();){var tt=this.char();if(tt===39)if(this.peek()===39)et.push(39),this.bump();else{this.bump();break}else et.push(tt);this.bump()}return fromCodePoint.apply(void 0,et)},s.prototype.tryParseUnquoted=function(j,et){if(this.isEOF())return null;var tt=this.char();return tt===60||tt===123||tt===35&&(et==="plural"||et==="selectordinal")||tt===125&&j>0?null:(this.bump(),fromCodePoint(tt))},s.prototype.parseArgument=function(j,et){var tt=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(tt,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ErrorKind.EMPTY_ARGUMENT,createLocation(tt,this.clonePosition()));var rt=this.parseIdentifierIfPossible().value;if(!rt)return this.error(ErrorKind.MALFORMED_ARGUMENT,createLocation(tt,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(tt,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:TYPE.argument,value:rt,location:createLocation(tt,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(tt,this.clonePosition())):this.parseArgumentOptions(j,et,rt,tt);default:return this.error(ErrorKind.MALFORMED_ARGUMENT,createLocation(tt,this.clonePosition()))}},s.prototype.parseIdentifierIfPossible=function(){var j=this.clonePosition(),et=this.offset(),tt=matchIdentifierAtIndex(this.message,et),rt=et+tt.length;this.bumpTo(rt);var nt=this.clonePosition(),at=createLocation(j,nt);return{value:tt,location:at}},s.prototype.parseArgumentOptions=function(j,et,tt,rt){var nt,at=this.clonePosition(),it=this.parseIdentifierIfPossible().value,ot=this.clonePosition();switch(it){case"":return this.error(ErrorKind.EXPECT_ARGUMENT_TYPE,createLocation(at,ot));case"number":case"date":case"time":{this.bumpSpace();var st=null;if(this.bumpIf(",")){this.bumpSpace();var lt=this.clonePosition(),ct=this.parseSimpleArgStyleIfPossible();if(ct.err)return ct;var ut=trimEnd(ct.val);if(ut.length===0)return this.error(ErrorKind.EXPECT_ARGUMENT_STYLE,createLocation(this.clonePosition(),this.clonePosition()));var dt=createLocation(lt,this.clonePosition());st={style:ut,styleLocation:dt}}var ft=this.tryParseArgumentClose(rt);if(ft.err)return ft;var ht=createLocation(rt,this.clonePosition());if(st&&startsWith(st==null?void 0:st.style,"::",0)){var mt=trimStart(st.style.slice(2));if(it==="number"){var ct=this.parseNumberSkeletonFromString(mt,st.styleLocation);return ct.err?ct:{val:{type:TYPE.number,value:tt,location:ht,style:ct.val},err:null}}else{if(mt.length===0)return this.error(ErrorKind.EXPECT_DATE_TIME_SKELETON,ht);var vt=mt;this.locale&&(vt=getBestPattern(mt,this.locale));var ut={type:SKELETON_TYPE.dateTime,pattern:vt,location:st.styleLocation,parsedOptions:this.shouldParseSkeletons?parseDateTimeSkeleton(vt):{}},pt=it==="date"?TYPE.date:TYPE.time;return{val:{type:pt,value:tt,location:ht,style:ut},err:null}}}return{val:{type:it==="number"?TYPE.number:it==="date"?TYPE.date:TYPE.time,value:tt,location:ht,style:(nt=st==null?void 0:st.style)!==null&&nt!==void 0?nt:null},err:null}}case"plural":case"selectordinal":case"select":{var gt=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS,createLocation(gt,__assign$5({},gt)));this.bumpSpace();var yt=this.parseIdentifierIfPossible(),$t=0;if(it!=="select"&&yt.value==="offset"){if(!this.bumpIf(":"))return this.error(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,createLocation(this.clonePosition(),this.clonePosition()));this.bumpSpace();var ct=this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(ct.err)return ct;this.bumpSpace(),yt=this.parseIdentifierIfPossible(),$t=ct.val}var xt=this.tryParsePluralOrSelectOptions(j,it,et,yt);if(xt.err)return xt;var ft=this.tryParseArgumentClose(rt);if(ft.err)return ft;var Ct=createLocation(rt,this.clonePosition());return it==="select"?{val:{type:TYPE.select,value:tt,options:fromEntries(xt.val),location:Ct},err:null}:{val:{type:TYPE.plural,value:tt,options:fromEntries(xt.val),offset:$t,pluralType:it==="plural"?"cardinal":"ordinal",location:Ct},err:null}}default:return this.error(ErrorKind.INVALID_ARGUMENT_TYPE,createLocation(at,ot))}},s.prototype.tryParseArgumentClose=function(j){return this.isEOF()||this.char()!==125?this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(j,this.clonePosition())):(this.bump(),{val:!0,err:null})},s.prototype.parseSimpleArgStyleIfPossible=function(){for(var j=0,et=this.clonePosition();!this.isEOF();){var tt=this.char();switch(tt){case 39:{this.bump();var rt=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,createLocation(rt,this.clonePosition()));this.bump();break}case 123:{j+=1,this.bump();break}case 125:{if(j>0)j-=1;else return{val:this.message.slice(et.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(et.offset,this.offset()),err:null}},s.prototype.parseNumberSkeletonFromString=function(j,et){var tt=[];try{tt=parseNumberSkeletonFromString(j)}catch(rt){return this.error(ErrorKind.INVALID_NUMBER_SKELETON,et)}return{val:{type:SKELETON_TYPE.number,tokens:tt,location:et,parsedOptions:this.shouldParseSkeletons?parseNumberSkeleton(tt):{}},err:null}},s.prototype.tryParsePluralOrSelectOptions=function(j,et,tt,rt){for(var nt,at=!1,it=[],ot=new Set,st=rt.value,lt=rt.location;;){if(st.length===0){var ct=this.clonePosition();if(et!=="select"&&this.bumpIf("=")){var ut=this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);if(ut.err)return ut;lt=createLocation(ct,this.clonePosition()),st=this.message.slice(ct.offset,this.offset())}else break}if(ot.has(st))return this.error(et==="select"?ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,lt);st==="other"&&(at=!0),this.bumpSpace();var dt=this.clonePosition();if(!this.bumpIf("{"))return this.error(et==="select"?ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,createLocation(this.clonePosition(),this.clonePosition()));var ft=this.parseMessage(j+1,et,tt);if(ft.err)return ft;var ht=this.tryParseArgumentClose(dt);if(ht.err)return ht;it.push([st,{value:ft.val,location:createLocation(dt,this.clonePosition())}]),ot.add(st),this.bumpSpace(),nt=this.parseIdentifierIfPossible(),st=nt.value,lt=nt.location}return it.length===0?this.error(et==="select"?ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR:ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,createLocation(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!at?this.error(ErrorKind.MISSING_OTHER_CLAUSE,createLocation(this.clonePosition(),this.clonePosition())):{val:it,err:null}},s.prototype.tryParseDecimalInteger=function(j,et){var tt=1,rt=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(tt=-1);for(var nt=!1,at=0;!this.isEOF();){var it=this.char();if(it>=48&&it<=57)nt=!0,at=at*10+(it-48),this.bump();else break}var ot=createLocation(rt,this.clonePosition());return nt?(at*=tt,isSafeInteger(at)?{val:at,err:null}:this.error(et,ot)):this.error(j,ot)},s.prototype.offset=function(){return this.position.offset},s.prototype.isEOF=function(){return this.offset()===this.message.length},s.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},s.prototype.char=function(){var j=this.position.offset;if(j>=this.message.length)throw Error("out of bound");var et=codePointAt$1(this.message,j);if(et===void 0)throw Error("Offset ".concat(j," is at invalid UTF-16 code unit boundary"));return et},s.prototype.error=function(j,et){return{val:null,err:{kind:j,message:this.message,location:et}}},s.prototype.bump=function(){if(!this.isEOF()){var j=this.char();j===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=j<65536?1:2)}},s.prototype.bumpIf=function(j){if(startsWith(this.message,j,this.offset())){for(var et=0;et<j.length;et++)this.bump();return!0}return!1},s.prototype.bumpUntil=function(j){var et=this.offset(),tt=this.message.indexOf(j,et);return tt>=0?(this.bumpTo(tt),!0):(this.bumpTo(this.message.length),!1)},s.prototype.bumpTo=function(j){if(this.offset()>j)throw Error("targetOffset ".concat(j," must be greater than or equal to the current offset ").concat(this.offset()));for(j=Math.min(j,this.message.length);;){var et=this.offset();if(et===j)break;if(et>j)throw Error("targetOffset ".concat(j," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},s.prototype.bumpSpace=function(){for(;!this.isEOF()&&_isWhiteSpace(this.char());)this.bump()},s.prototype.peek=function(){if(this.isEOF())return null;var j=this.char(),et=this.offset(),tt=this.message.charCodeAt(et+(j>=65536?2:1));return tt!=null?tt:null},s}();function _isAlpha(s){return s>=97&&s<=122||s>=65&&s<=90}function _isAlphaOrSlash(s){return _isAlpha(s)||s===47}function _isPotentialElementNameChar(s){return s===45||s===46||s>=48&&s<=57||s===95||s>=97&&s<=122||s>=65&&s<=90||s==183||s>=192&&s<=214||s>=216&&s<=246||s>=248&&s<=893||s>=895&&s<=8191||s>=8204&&s<=8205||s>=8255&&s<=8256||s>=8304&&s<=8591||s>=11264&&s<=12271||s>=12289&&s<=55295||s>=63744&&s<=64975||s>=65008&&s<=65533||s>=65536&&s<=983039}function _isWhiteSpace(s){return s>=9&&s<=13||s===32||s===133||s>=8206&&s<=8207||s===8232||s===8233}function _isPatternSyntax(s){return s>=33&&s<=35||s===36||s>=37&&s<=39||s===40||s===41||s===42||s===43||s===44||s===45||s>=46&&s<=47||s>=58&&s<=59||s>=60&&s<=62||s>=63&&s<=64||s===91||s===92||s===93||s===94||s===96||s===123||s===124||s===125||s===126||s===161||s>=162&&s<=165||s===166||s===167||s===169||s===171||s===172||s===174||s===176||s===177||s===182||s===187||s===191||s===215||s===247||s>=8208&&s<=8213||s>=8214&&s<=8215||s===8216||s===8217||s===8218||s>=8219&&s<=8220||s===8221||s===8222||s===8223||s>=8224&&s<=8231||s>=8240&&s<=8248||s===8249||s===8250||s>=8251&&s<=8254||s>=8257&&s<=8259||s===8260||s===8261||s===8262||s>=8263&&s<=8273||s===8274||s===8275||s>=8277&&s<=8286||s>=8592&&s<=8596||s>=8597&&s<=8601||s>=8602&&s<=8603||s>=8604&&s<=8607||s===8608||s>=8609&&s<=8610||s===8611||s>=8612&&s<=8613||s===8614||s>=8615&&s<=8621||s===8622||s>=8623&&s<=8653||s>=8654&&s<=8655||s>=8656&&s<=8657||s===8658||s===8659||s===8660||s>=8661&&s<=8691||s>=8692&&s<=8959||s>=8960&&s<=8967||s===8968||s===8969||s===8970||s===8971||s>=8972&&s<=8991||s>=8992&&s<=8993||s>=8994&&s<=9e3||s===9001||s===9002||s>=9003&&s<=9083||s===9084||s>=9085&&s<=9114||s>=9115&&s<=9139||s>=9140&&s<=9179||s>=9180&&s<=9185||s>=9186&&s<=9254||s>=9255&&s<=9279||s>=9280&&s<=9290||s>=9291&&s<=9311||s>=9472&&s<=9654||s===9655||s>=9656&&s<=9664||s===9665||s>=9666&&s<=9719||s>=9720&&s<=9727||s>=9728&&s<=9838||s===9839||s>=9840&&s<=10087||s===10088||s===10089||s===10090||s===10091||s===10092||s===10093||s===10094||s===10095||s===10096||s===10097||s===10098||s===10099||s===10100||s===10101||s>=10132&&s<=10175||s>=10176&&s<=10180||s===10181||s===10182||s>=10183&&s<=10213||s===10214||s===10215||s===10216||s===10217||s===10218||s===10219||s===10220||s===10221||s===10222||s===10223||s>=10224&&s<=10239||s>=10240&&s<=10495||s>=10496&&s<=10626||s===10627||s===10628||s===10629||s===10630||s===10631||s===10632||s===10633||s===10634||s===10635||s===10636||s===10637||s===10638||s===10639||s===10640||s===10641||s===10642||s===10643||s===10644||s===10645||s===10646||s===10647||s===10648||s>=10649&&s<=10711||s===10712||s===10713||s===10714||s===10715||s>=10716&&s<=10747||s===10748||s===10749||s>=10750&&s<=11007||s>=11008&&s<=11055||s>=11056&&s<=11076||s>=11077&&s<=11078||s>=11079&&s<=11084||s>=11085&&s<=11123||s>=11124&&s<=11125||s>=11126&&s<=11157||s===11158||s>=11159&&s<=11263||s>=11776&&s<=11777||s===11778||s===11779||s===11780||s===11781||s>=11782&&s<=11784||s===11785||s===11786||s===11787||s===11788||s===11789||s>=11790&&s<=11798||s===11799||s>=11800&&s<=11801||s===11802||s===11803||s===11804||s===11805||s>=11806&&s<=11807||s===11808||s===11809||s===11810||s===11811||s===11812||s===11813||s===11814||s===11815||s===11816||s===11817||s>=11818&&s<=11822||s===11823||s>=11824&&s<=11833||s>=11834&&s<=11835||s>=11836&&s<=11839||s===11840||s===11841||s===11842||s>=11843&&s<=11855||s>=11856&&s<=11857||s===11858||s>=11859&&s<=11903||s>=12289&&s<=12291||s===12296||s===12297||s===12298||s===12299||s===12300||s===12301||s===12302||s===12303||s===12304||s===12305||s>=12306&&s<=12307||s===12308||s===12309||s===12310||s===12311||s===12312||s===12313||s===12314||s===12315||s===12316||s===12317||s>=12318&&s<=12319||s===12320||s===12336||s===64830||s===64831||s>=65093&&s<=65094}function pruneLocation(s){s.forEach(function(j){if(delete j.location,isSelectElement(j)||isPluralElement(j))for(var et in j.options)delete j.options[et].location,pruneLocation(j.options[et].value);else isNumberElement(j)&&isNumberSkeleton(j.style)||(isDateElement(j)||isTimeElement(j))&&isDateTimeSkeleton(j.style)?delete j.style.location:isTagElement(j)&&pruneLocation(j.children)})}function parse$1(s,j){j===void 0&&(j={}),j=__assign$5({shouldParseSkeletons:!0,requiresOtherClause:!0},j);var et=new Parser(s,j).parse();if(et.err){var tt=SyntaxError(ErrorKind[et.err.kind]);throw tt.location=et.err.location,tt.originalMessage=et.err.message,tt}return j!=null&&j.captureLocation||pruneLocation(et.val),et.val}function memoize(s,j){var et=j&&j.cache?j.cache:cacheDefault,tt=j&&j.serializer?j.serializer:serializerDefault,rt=j&&j.strategy?j.strategy:strategyDefault;return rt(s,{cache:et,serializer:tt})}function isPrimitive(s){return s==null||typeof s=="number"||typeof s=="boolean"}function monadic(s,j,et,tt){var rt=isPrimitive(tt)?tt:et(tt),nt=j.get(rt);return typeof nt=="undefined"&&(nt=s.call(this,tt),j.set(rt,nt)),nt}function variadic(s,j,et){var tt=Array.prototype.slice.call(arguments,3),rt=et(tt),nt=j.get(rt);return typeof nt=="undefined"&&(nt=s.apply(this,tt),j.set(rt,nt)),nt}function assemble(s,j,et,tt,rt){return et.bind(j,s,tt,rt)}function strategyDefault(s,j){var et=s.length===1?monadic:variadic;return assemble(s,this,et,j.cache.create(),j.serializer)}function strategyVariadic(s,j){return assemble(s,this,variadic,j.cache.create(),j.serializer)}function strategyMonadic(s,j){return assemble(s,this,monadic,j.cache.create(),j.serializer)}var serializerDefault=function(){return JSON.stringify(arguments)};function ObjectWithoutPrototypeCache(){this.cache=Object.create(null)}ObjectWithoutPrototypeCache.prototype.get=function(s){return this.cache[s]};ObjectWithoutPrototypeCache.prototype.set=function(s,j){this.cache[s]=j};var cacheDefault={create:function(){return new ObjectWithoutPrototypeCache}},strategies={variadic:strategyVariadic,monadic:strategyMonadic},ErrorCode;(function(s){s.MISSING_VALUE="MISSING_VALUE",s.INVALID_VALUE="INVALID_VALUE",s.MISSING_INTL_API="MISSING_INTL_API"})(ErrorCode||(ErrorCode={}));var FormatError=function(s){__extends(j,s);function j(et,tt,rt){var nt=s.call(this,et)||this;return nt.code=tt,nt.originalMessage=rt,nt}return j.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},j}(Error),InvalidValueError=function(s){__extends(j,s);function j(et,tt,rt,nt){return s.call(this,'Invalid values for "'.concat(et,'": "').concat(tt,'". Options are "').concat(Object.keys(rt).join('", "'),'"'),ErrorCode.INVALID_VALUE,nt)||this}return j}(FormatError),InvalidValueTypeError=function(s){__extends(j,s);function j(et,tt,rt){return s.call(this,'Value for "'.concat(et,'" must be of type ').concat(tt),ErrorCode.INVALID_VALUE,rt)||this}return j}(FormatError),MissingValueError=function(s){__extends(j,s);function j(et,tt){return s.call(this,'The intl string context variable "'.concat(et,'" was not provided to the string "').concat(tt,'"'),ErrorCode.MISSING_VALUE,tt)||this}return j}(FormatError),PART_TYPE;(function(s){s[s.literal=0]="literal",s[s.object=1]="object"})(PART_TYPE||(PART_TYPE={}));function mergeLiteral(s){return s.length<2?s:s.reduce(function(j,et){var tt=j[j.length-1];return!tt||tt.type!==PART_TYPE.literal||et.type!==PART_TYPE.literal?j.push(et):tt.value+=et.value,j},[])}function isFormatXMLElementFn(s){return typeof s=="function"}function formatToParts(s,j,et,tt,rt,nt,at){if(s.length===1&&isLiteralElement(s[0]))return[{type:PART_TYPE.literal,value:s[0].value}];for(var it=[],ot=0,st=s;ot<st.length;ot++){var lt=st[ot];if(isLiteralElement(lt)){it.push({type:PART_TYPE.literal,value:lt.value});continue}if(isPoundElement(lt)){typeof nt=="number"&&it.push({type:PART_TYPE.literal,value:et.getNumberFormat(j).format(nt)});continue}var ct=lt.value;if(!(rt&&ct in rt))throw new MissingValueError(ct,at);var ut=rt[ct];if(isArgumentElement(lt)){(!ut||typeof ut=="string"||typeof ut=="number")&&(ut=typeof ut=="string"||typeof ut=="number"?String(ut):""),it.push({type:typeof ut=="string"?PART_TYPE.literal:PART_TYPE.object,value:ut});continue}if(isDateElement(lt)){var dt=typeof lt.style=="string"?tt.date[lt.style]:isDateTimeSkeleton(lt.style)?lt.style.parsedOptions:void 0;it.push({type:PART_TYPE.literal,value:et.getDateTimeFormat(j,dt).format(ut)});continue}if(isTimeElement(lt)){var dt=typeof lt.style=="string"?tt.time[lt.style]:isDateTimeSkeleton(lt.style)?lt.style.parsedOptions:tt.time.medium;it.push({type:PART_TYPE.literal,value:et.getDateTimeFormat(j,dt).format(ut)});continue}if(isNumberElement(lt)){var dt=typeof lt.style=="string"?tt.number[lt.style]:isNumberSkeleton(lt.style)?lt.style.parsedOptions:void 0;dt&&dt.scale&&(ut=ut*(dt.scale||1)),it.push({type:PART_TYPE.literal,value:et.getNumberFormat(j,dt).format(ut)});continue}if(isTagElement(lt)){var ft=lt.children,ht=lt.value,mt=rt[ht];if(!isFormatXMLElementFn(mt))throw new InvalidValueTypeError(ht,"function",at);var vt=formatToParts(ft,j,et,tt,rt,nt),pt=mt(vt.map(function($t){return $t.value}));Array.isArray(pt)||(pt=[pt]),it.push.apply(it,pt.map(function($t){return{type:typeof $t=="string"?PART_TYPE.literal:PART_TYPE.object,value:$t}}))}if(isSelectElement(lt)){var gt=lt.options[ut]||lt.options.other;if(!gt)throw new InvalidValueError(lt.value,ut,Object.keys(lt.options),at);it.push.apply(it,formatToParts(gt.value,j,et,tt,rt));continue}if(isPluralElement(lt)){var gt=lt.options["=".concat(ut)];if(!gt){if(!Intl.PluralRules)throw new FormatError(`Intl.PluralRules is not available in this environment.
|
|
489
489
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
490
490
|
`,ErrorCode.MISSING_INTL_API,at);var yt=et.getPluralRules(j,{type:lt.pluralType}).select(ut-(lt.offset||0));gt=lt.options[yt]||lt.options.other}if(!gt)throw new InvalidValueError(lt.value,ut,Object.keys(lt.options),at);it.push.apply(it,formatToParts(gt.value,j,et,tt,rt,ut-(lt.offset||0)));continue}}return mergeLiteral(it)}function mergeConfig(s,j){return j?__assign$5(__assign$5(__assign$5({},s||{}),j||{}),Object.keys(s).reduce(function(et,tt){return et[tt]=__assign$5(__assign$5({},s[tt]),j[tt]||{}),et},{})):s}function mergeConfigs(s,j){return j?Object.keys(s).reduce(function(et,tt){return et[tt]=mergeConfig(s[tt],j[tt]),et},__assign$5({},s)):s}function createFastMemoizeCache(s){return{create:function(){return{get:function(j){return s[j]},set:function(j,et){s[j]=et}}}}}function createDefaultFormatters(s){return s===void 0&&(s={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:memoize(function(){for(var j,et=[],tt=0;tt<arguments.length;tt++)et[tt]=arguments[tt];return new((j=Intl.NumberFormat).bind.apply(j,__spreadArray([void 0],et,!1)))},{cache:createFastMemoizeCache(s.number),strategy:strategies.variadic}),getDateTimeFormat:memoize(function(){for(var j,et=[],tt=0;tt<arguments.length;tt++)et[tt]=arguments[tt];return new((j=Intl.DateTimeFormat).bind.apply(j,__spreadArray([void 0],et,!1)))},{cache:createFastMemoizeCache(s.dateTime),strategy:strategies.variadic}),getPluralRules:memoize(function(){for(var j,et=[],tt=0;tt<arguments.length;tt++)et[tt]=arguments[tt];return new((j=Intl.PluralRules).bind.apply(j,__spreadArray([void 0],et,!1)))},{cache:createFastMemoizeCache(s.pluralRules),strategy:strategies.variadic})}}var IntlMessageFormat=function(){function s(j,et,tt,rt){var nt=this;if(et===void 0&&(et=s.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(ot){var st=nt.formatToParts(ot);if(st.length===1)return st[0].value;var lt=st.reduce(function(ct,ut){return!ct.length||ut.type!==PART_TYPE.literal||typeof ct[ct.length-1]!="string"?ct.push(ut.value):ct[ct.length-1]+=ut.value,ct},[]);return lt.length<=1?lt[0]||"":lt},this.formatToParts=function(ot){return formatToParts(nt.ast,nt.locales,nt.formatters,nt.formats,ot,void 0,nt.message)},this.resolvedOptions=function(){var ot;return{locale:((ot=nt.resolvedLocale)===null||ot===void 0?void 0:ot.toString())||Intl.NumberFormat.supportedLocalesOf(nt.locales)[0]}},this.getAst=function(){return nt.ast},this.locales=et,this.resolvedLocale=s.resolveLocale(et),typeof j=="string"){if(this.message=j,!s.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var at=rt||{};at.formatters;var it=__rest(at,["formatters"]);this.ast=s.__parse(j,__assign$5(__assign$5({},it),{locale:this.resolvedLocale}))}else this.ast=j;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=mergeConfigs(s.formats,tt),this.formatters=rt&&rt.formatters||createDefaultFormatters(this.formatterCache)}return Object.defineProperty(s,"defaultLocale",{get:function(){return s.memoizedDefaultLocale||(s.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),s.memoizedDefaultLocale},enumerable:!1,configurable:!0}),s.memoizedDefaultLocale=null,s.resolveLocale=function(j){if(typeof Intl.Locale!="undefined"){var et=Intl.NumberFormat.supportedLocalesOf(j);return et.length>0?new Intl.Locale(et[0]):new Intl.Locale(typeof j=="string"?j:j[0])}},s.__parse=parse$1,s.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},s}();class $d6fd23bc337660df$export$64839e615120df17{getStringForLocale(j,et){let tt=this.messages[et];tt||(tt=$d6fd23bc337660df$var$getStringsForLocale(et,this.messages,this.defaultLocale),this.messages[et]=tt);let rt=tt[j];if(!rt)throw new Error(`Could not find intl message ${j} in ${et} locale`);return rt}constructor(j,et="en-US"){this.messages={...j},this.defaultLocale=et}}function $d6fd23bc337660df$var$getStringsForLocale(s,j,et="en-US"){if(j[s])return j[s];let tt=$d6fd23bc337660df$var$getLanguage(s);if(j[tt])return j[tt];for(let rt in j)if(rt.startsWith(tt+"-"))return j[rt];return j[et]}function $d6fd23bc337660df$var$getLanguage(s){return Intl.Locale?new Intl.Locale(s).language:s.split("-")[0]}class $972eb555d604f491$export$526ebc05ff964723{format(j,et){let tt=this.cache[j];if(!tt){let nt=this.messages.getStringForLocale(j,this.locale);if(!nt)throw new Error(`Could not find intl message ${j} in ${this.locale} locale`);tt=new IntlMessageFormat(nt,this.locale),this.cache[j]=tt}let rt;return et&&(rt=Object.keys(et).reduce((nt,at)=>(nt[at]=et[at]==null?!1:et[at],nt),{})),tt.format(rt)}constructor(j,et){this.locale=j,this.messages=et,this.cache={}}}const cache=new WeakMap;function getCachedDictionary(s){let j=cache.get(s);return j||(j=new $d6fd23bc337660df$export$64839e615120df17(s),cache.set(s,j)),j}function useMessageFormatter(s){let{locale:j}=$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),et=reactExports.useMemo(()=>getCachedDictionary(s),[s]),tt=reactExports.useMemo(()=>new $972eb555d604f491$export$526ebc05ff964723(j,et),[j,et]);return reactExports.useCallback((rt,nt)=>tt.format(rt,nt),[tt])}function $701a24aa0da5b062$export$ea18c227d4417cc3(s,j){let{elementType:et="button",isDisabled:tt,onPress:rt,onPressStart:nt,onPressEnd:at,onPressUp:it,onPressChange:ot,preventFocusOnPress:st,allowFocusWhenDisabled:lt,onClick:ct,href:ut,target:dt,rel:ft,type:ht="button"}=s,mt;et==="button"?mt={type:ht,disabled:tt}:mt={role:"button",tabIndex:tt?void 0:0,href:et==="a"&&tt?void 0:ut,target:et==="a"?dt:void 0,type:et==="input"?ht:void 0,disabled:et==="input"?tt:void 0,"aria-disabled":!tt||et==="input"?void 0:tt,rel:et==="a"?ft:void 0};let{pressProps:vt,isPressed:pt}=$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:nt,onPressEnd:at,onPressChange:ot,onPress:rt,onPressUp:it,isDisabled:tt,preventFocusOnPress:st,ref:j}),{focusableProps:gt}=$e6afbd83fe6ebbd2$export$4c014de7c8940b4c(s,j);lt&&(gt.tabIndex=tt?-1:gt.tabIndex);let yt=$3ef42575df84b30b$export$9d1611c77c2fe928(gt,vt,$65484d02dcb7eb3e$export$457c3d6518dd4c6f(s,{labelable:!0}));return{isPressed:pt,buttonProps:$3ef42575df84b30b$export$9d1611c77c2fe928(mt,yt,{"aria-haspopup":s["aria-haspopup"],"aria-expanded":s["aria-expanded"],"aria-controls":s["aria-controls"],"aria-pressed":s["aria-pressed"],onClick:$t=>{ct&&(ct($t),console.warn("onClick is deprecated, please use onPress"))}})}}var $39324ace0d945f59$exports={};$39324ace0d945f59$exports={dateRange:s=>`${s.startDate} إلى ${s.endDate}`,dateSelected:s=>`${s.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:s=>`تاريخ محدد: ${s.date}`,selectedRangeDescription:s=>`المدى الزمني المحدد: ${s.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:s=>`اليوم، ${s.date}`,todayDateSelected:s=>`اليوم، ${s.date} محدد`};var $1830a539e98c7baf$exports={};$1830a539e98c7baf$exports={dateRange:s=>`${s.startDate} до ${s.endDate}`,dateSelected:s=>`Избрано е ${s.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:s=>`Избрана дата: ${s.date}`,selectedRangeDescription:s=>`Избран диапазон: ${s.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:s=>`Днес, ${s.date}`,todayDateSelected:s=>`Днес, ${s.date} са избрани`};var $f4b92528965aab97$exports={};$f4b92528965aab97$exports={dateRange:s=>`${s.startDate} až ${s.endDate}`,dateSelected:s=>`Vybráno ${s.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:s=>`Vybrané datum: ${s.date}`,selectedRangeDescription:s=>`Vybrané období: ${s.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:s=>`Dnes, ${s.date}`,todayDateSelected:s=>`Dnes, vybráno ${s.date}`};var $1cd578ef0547c8f1$exports={};$1cd578ef0547c8f1$exports={dateRange:s=>`${s.startDate} til ${s.endDate}`,dateSelected:s=>`${s.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:s=>`Valgt dato: ${s.date}`,selectedRangeDescription:s=>`Valgt interval: ${s.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:s=>`I dag, ${s.date}`,todayDateSelected:s=>`I dag, ${s.date} valgt`};var $db55a8973925d619$exports={};$db55a8973925d619$exports={dateRange:s=>`${s.startDate} bis ${s.endDate}`,dateSelected:s=>`${s.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:s=>`Ausgewähltes Datum: ${s.date}`,selectedRangeDescription:s=>`Ausgewählter Bereich: ${s.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:s=>`Heute, ${s.date}`,todayDateSelected:s=>`Heute, ${s.date} ausgewählt`};var $ec6937d58566d443$exports={};$ec6937d58566d443$exports={dateRange:s=>`${s.startDate} έως ${s.endDate}`,dateSelected:s=>`Επιλέχθηκε ${s.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:s=>`Επιλεγμένη ημερομηνία: ${s.date}`,selectedRangeDescription:s=>`Επιλεγμένο εύρος: ${s.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:s=>`Σήμερα, ${s.date}`,todayDateSelected:s=>`Σήμερα, επιλέχτηκε ${s.date}`};var $1f5cea0742dc284a$exports={};$1f5cea0742dc284a$exports={previous:"Previous",next:"Next",selectedDateDescription:s=>`Selected Date: ${s.date}`,selectedRangeDescription:s=>`Selected Range: ${s.dateRange}`,todayDate:s=>`Today, ${s.date}`,todayDateSelected:s=>`Today, ${s.date} selected`,dateSelected:s=>`${s.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:s=>`${s.startDate} to ${s.endDate}`};var $2ca7ea366384817b$exports={};$2ca7ea366384817b$exports={dateRange:s=>`${s.startDate} a ${s.endDate}`,dateSelected:s=>`${s.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:s=>`Fecha seleccionada: ${s.date}`,selectedRangeDescription:s=>`Intervalo seleccionado: ${s.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:s=>`Hoy, ${s.date}`,todayDateSelected:s=>`Hoy, ${s.date} seleccionado`};var $97874a7fe9cd091f$exports={};$97874a7fe9cd091f$exports={dateRange:s=>`${s.startDate} kuni ${s.endDate}`,dateSelected:s=>`${s.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:s=>`Valitud kuupäev: ${s.date}`,selectedRangeDescription:s=>`Valitud vahemik: ${s.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:s=>`Täna, ${s.date}`,todayDateSelected:s=>`Täna, ${s.date} valitud`};var $5d376b7fce1a45b2$exports={};$5d376b7fce1a45b2$exports={dateRange:s=>`${s.startDate} – ${s.endDate}`,dateSelected:s=>`${s.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:s=>`Valittu päivämäärä: ${s.date}`,selectedRangeDescription:s=>`Valittu aikaväli: ${s.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:s=>`Tänään, ${s.date}`,todayDateSelected:s=>`Tänään, ${s.date} valittu`};var $3bf722b362aaf54d$exports={};$3bf722b362aaf54d$exports={dateRange:s=>`${s.startDate} à ${s.endDate}`,dateSelected:s=>`${s.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:s=>`Date sélectionnée : ${s.date}`,selectedRangeDescription:s=>`Plage sélectionnée : ${s.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:s=>`Aujourd'hui, ${s.date}`,todayDateSelected:s=>`Aujourd’hui, ${s.date} sélectionné`};var $38c43f8322316031$exports={};$38c43f8322316031$exports={dateRange:s=>`${s.startDate} עד ${s.endDate}`,dateSelected:s=>`${s.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:s=>`תאריך נבחר: ${s.date}`,selectedRangeDescription:s=>`טווח נבחר: ${s.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:s=>`היום, ${s.date}`,todayDateSelected:s=>`היום, ${s.date} נבחר`};var $c90e0f32b44630bf$exports={};$c90e0f32b44630bf$exports={dateRange:s=>`${s.startDate} do ${s.endDate}`,dateSelected:s=>`${s.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:s=>`Odabrani datum: ${s.date}`,selectedRangeDescription:s=>`Odabrani raspon: ${s.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:s=>`Danas, ${s.date}`,todayDateSelected:s=>`Danas, odabran ${s.date}`};var $715875e6e7a338f4$exports={};$715875e6e7a338f4$exports={dateRange:s=>`${s.startDate}–${s.endDate}`,dateSelected:s=>`${s.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:s=>`Kijelölt dátum: ${s.date}`,selectedRangeDescription:s=>`Kijelölt tartomány: ${s.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:s=>`Ma, ${s.date}`,todayDateSelected:s=>`Ma, ${s.date} kijelölve`};var $37d77c66e34daccf$exports={};$37d77c66e34daccf$exports={dateRange:s=>`Da ${s.startDate} a ${s.endDate}`,dateSelected:s=>`${s.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:s=>`Data selezionata: ${s.date}`,selectedRangeDescription:s=>`Intervallo selezionato: ${s.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:s=>`Oggi, ${s.date}`,todayDateSelected:s=>`Oggi, ${s.date} selezionata`};var $542f39aee29303c3$exports={};$542f39aee29303c3$exports={dateRange:s=>`${s.startDate} から ${s.endDate}`,dateSelected:s=>`${s.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:s=>`選択した日付 : ${s.date}`,selectedRangeDescription:s=>`選択範囲 : ${s.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:s=>`本日、${s.date}`,todayDateSelected:s=>`本日、${s.date} を選択`};var $22a5f0623ea73e4f$exports={};$22a5f0623ea73e4f$exports={dateRange:s=>`${s.startDate} ~ ${s.endDate}`,dateSelected:s=>`${s.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:s=>`선택 일자: ${s.date}`,selectedRangeDescription:s=>`선택 범위: ${s.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:s=>`오늘, ${s.date}`,todayDateSelected:s=>`오늘, ${s.date} 선택됨`};var $522380d13d62cba0$exports={};$522380d13d62cba0$exports={dateRange:s=>`Nuo ${s.startDate} iki ${s.endDate}`,dateSelected:s=>`Pasirinkta ${s.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:s=>`Pasirinkta data: ${s.date}`,selectedRangeDescription:s=>`Pasirinktas intervalas: ${s.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:s=>`Šiandien, ${s.date}`,todayDateSelected:s=>`Šiandien, pasirinkta ${s.date}`};var $8a7bc830b2fe6485$exports={};$8a7bc830b2fe6485$exports={dateRange:s=>`No ${s.startDate} līdz ${s.endDate}`,dateSelected:s=>`Atlasīts: ${s.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:s=>`Atlasītais datums: ${s.date}`,selectedRangeDescription:s=>`Atlasītais diapazons: ${s.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:s=>`Šodien, ${s.date}`,todayDateSelected:s=>`Atlasīta šodiena, ${s.date}`};var $9fac9c044470683b$exports={};$9fac9c044470683b$exports={dateRange:s=>`${s.startDate} til ${s.endDate}`,dateSelected:s=>`${s.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:s=>`Valgt dato: ${s.date}`,selectedRangeDescription:s=>`Valgt område: ${s.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:s=>`I dag, ${s.date}`,todayDateSelected:s=>`I dag, ${s.date} valgt`};var $b127d3569efb1449$exports={};$b127d3569efb1449$exports={dateRange:s=>`${s.startDate} tot ${s.endDate}`,dateSelected:s=>`${s.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:s=>`Geselecteerde datum: ${s.date}`,selectedRangeDescription:s=>`Geselecteerd bereik: ${s.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:s=>`Vandaag, ${s.date}`,todayDateSelected:s=>`Vandaag, ${s.date} geselecteerd`};var $51404a4090633490$exports={};$51404a4090633490$exports={dateRange:s=>`${s.startDate} do ${s.endDate}`,dateSelected:s=>`Wybrano ${s.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:s=>`Wybrana data: ${s.date}`,selectedRangeDescription:s=>`Wybrany zakres: ${s.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:s=>`Dzisiaj, ${s.date}`,todayDateSelected:s=>`Dzisiaj wybrano ${s.date}`};var $e5e6a3fe3b4527df$exports={};$e5e6a3fe3b4527df$exports={dateRange:s=>`${s.startDate} a ${s.endDate}`,dateSelected:s=>`${s.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:s=>`Data selecionada: ${s.date}`,selectedRangeDescription:s=>`Intervalo selecionado: ${s.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:s=>`Hoje, ${s.date}`,todayDateSelected:s=>`Hoje, ${s.date} selecionado`};var $c519dcadcbb1ee47$exports={};$c519dcadcbb1ee47$exports={dateRange:s=>`${s.startDate} a ${s.endDate}`,dateSelected:s=>`${s.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:s=>`Data selecionada: ${s.date}`,selectedRangeDescription:s=>`Intervalo selecionado: ${s.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:s=>`Hoje, ${s.date}`,todayDateSelected:s=>`Hoje, ${s.date} selecionado`};var $e5aa0186ca7889c6$exports={};$e5aa0186ca7889c6$exports={dateRange:s=>`De la ${s.startDate} până la ${s.endDate}`,dateSelected:s=>`${s.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:s=>`Dată selectată: ${s.date}`,selectedRangeDescription:s=>`Interval selectat: ${s.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:s=>`Astăzi, ${s.date}`,todayDateSelected:s=>`Azi, ${s.date} selectată`};var $5b907f5fa3eee652$exports={};$5b907f5fa3eee652$exports={dateRange:s=>`С ${s.startDate} по ${s.endDate}`,dateSelected:s=>`Выбрано ${s.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:s=>`Выбранная дата: ${s.date}`,selectedRangeDescription:s=>`Выбранный диапазон: ${s.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:s=>`Сегодня, ${s.date}`,todayDateSelected:s=>`Сегодня, выбрано ${s.date}`};var $1b4c51359c99cf79$exports={};$1b4c51359c99cf79$exports={dateRange:s=>`Od ${s.startDate} do ${s.endDate}`,dateSelected:s=>`Vybratý dátum ${s.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:s=>`Vybratý dátum: ${s.date}`,selectedRangeDescription:s=>`Vybratý rozsah: ${s.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:s=>`Dnes ${s.date}`,todayDateSelected:s=>`Vybratý dnešný dátum ${s.date}`};var $02e4e6a4608cc6f3$exports={};$02e4e6a4608cc6f3$exports={dateRange:s=>`${s.startDate} do ${s.endDate}`,dateSelected:s=>`${s.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:s=>`Izbrani datum: ${s.date}`,selectedRangeDescription:s=>`Izbrano območje: ${s.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:s=>`Danes, ${s.date}`,todayDateSelected:s=>`Danes, ${s.date} izbrano`};var $6dd2fbaad93b6878$exports={};$6dd2fbaad93b6878$exports={dateRange:s=>`${s.startDate} do ${s.endDate}`,dateSelected:s=>`${s.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:s=>`Izabrani datum: ${s.date}`,selectedRangeDescription:s=>`Izabrani period: ${s.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:s=>`Danas, ${s.date}`,todayDateSelected:s=>`Danas, izabran ${s.date}`};var $33ea59bfe6e804e0$exports={};$33ea59bfe6e804e0$exports={dateRange:s=>`${s.startDate} till ${s.endDate}`,dateSelected:s=>`${s.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:s=>`Valt datum: ${s.date}`,selectedRangeDescription:s=>`Valt intervall: ${s.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:s=>`Idag, ${s.date}`,todayDateSelected:s=>`Idag, ${s.date} har valts`};var $4603b0d0246969b2$exports={};$4603b0d0246969b2$exports={dateRange:s=>`${s.startDate} - ${s.endDate}`,dateSelected:s=>`${s.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:s=>`Seçilen Tarih: ${s.date}`,selectedRangeDescription:s=>`Seçilen Aralık: ${s.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:s=>`Bugün, ${s.date}`,todayDateSelected:s=>`Bugün, ${s.date} seçildi`};var $82649816f530bb1b$exports={};$82649816f530bb1b$exports={dateRange:s=>`${s.startDate} — ${s.endDate}`,dateSelected:s=>`Вибрано ${s.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:s=>`Вибрана дата: ${s.date}`,selectedRangeDescription:s=>`Вибраний діапазон: ${s.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:s=>`Сьогодні, ${s.date}`,todayDateSelected:s=>`Сьогодні, вибрано ${s.date}`};var $628e140a43dfb330$exports={};$628e140a43dfb330$exports={dateRange:s=>`${s.startDate} 至 ${s.endDate}`,dateSelected:s=>`已选择 ${s.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:s=>`选定的日期:${s.date}`,selectedRangeDescription:s=>`选定的范围:${s.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:s=>`今天,即 ${s.date}`,todayDateSelected:s=>`已选择今天,即 ${s.date}`};var $745937250cd4679c$exports={};$745937250cd4679c$exports={dateRange:s=>`${s.startDate} 至 ${s.endDate}`,dateSelected:s=>`已選取 ${s.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:s=>`選定的日期:${s.date}`,selectedRangeDescription:s=>`選定的範圍:${s.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:s=>`今天,${s.date}`,todayDateSelected:s=>`已選取今天,${s.date}`};const $319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY=7e3;let $319e236875307eab$var$liveAnnouncer=null;function $319e236875307eab$export$a9b970dcc4ae71a9(s,j="assertive",et=$319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY){$319e236875307eab$var$liveAnnouncer||($319e236875307eab$var$liveAnnouncer=new $319e236875307eab$var$LiveAnnouncer),$319e236875307eab$var$liveAnnouncer.announce(s,j,et)}function $319e236875307eab$export$d10ae4f68404609a(s){$319e236875307eab$var$liveAnnouncer&&$319e236875307eab$var$liveAnnouncer.clear(s)}class $319e236875307eab$var$LiveAnnouncer{createLog(j){let et=document.createElement("div");return et.setAttribute("role","log"),et.setAttribute("aria-live",j),et.setAttribute("aria-relevant","additions"),et}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(j,et="assertive",tt=$319e236875307eab$var$LIVEREGION_TIMEOUT_DELAY){if(!this.node)return;let rt=document.createElement("div");rt.textContent=j,et==="assertive"?this.assertiveLog.appendChild(rt):this.politeLog.appendChild(rt),j!==""&&setTimeout(()=>{rt.remove()},tt)}clear(j){this.node&&((!j||j==="assertive")&&(this.assertiveLog.innerHTML=""),(!j||j==="polite")&&(this.politeLog.innerHTML=""))}constructor(){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)}}function $parcel$interopDefault$3(s){return s&&s.__esModule?s.default:s}var $3904726b442bd9b2$exports={};$3904726b442bd9b2$exports={"ar-AE":$39324ace0d945f59$exports,"bg-BG":$1830a539e98c7baf$exports,"cs-CZ":$f4b92528965aab97$exports,"da-DK":$1cd578ef0547c8f1$exports,"de-DE":$db55a8973925d619$exports,"el-GR":$ec6937d58566d443$exports,"en-US":$1f5cea0742dc284a$exports,"es-ES":$2ca7ea366384817b$exports,"et-EE":$97874a7fe9cd091f$exports,"fi-FI":$5d376b7fce1a45b2$exports,"fr-FR":$3bf722b362aaf54d$exports,"he-IL":$38c43f8322316031$exports,"hr-HR":$c90e0f32b44630bf$exports,"hu-HU":$715875e6e7a338f4$exports,"it-IT":$37d77c66e34daccf$exports,"ja-JP":$542f39aee29303c3$exports,"ko-KR":$22a5f0623ea73e4f$exports,"lt-LT":$522380d13d62cba0$exports,"lv-LV":$8a7bc830b2fe6485$exports,"nb-NO":$9fac9c044470683b$exports,"nl-NL":$b127d3569efb1449$exports,"pl-PL":$51404a4090633490$exports,"pt-BR":$e5e6a3fe3b4527df$exports,"pt-PT":$c519dcadcbb1ee47$exports,"ro-RO":$e5aa0186ca7889c6$exports,"ru-RU":$5b907f5fa3eee652$exports,"sk-SK":$1b4c51359c99cf79$exports,"sl-SI":$02e4e6a4608cc6f3$exports,"sr-SP":$6dd2fbaad93b6878$exports,"sv-SE":$33ea59bfe6e804e0$exports,"tr-TR":$4603b0d0246969b2$exports,"uk-UA":$82649816f530bb1b$exports,"zh-CN":$628e140a43dfb330$exports,"zh-TW":$745937250cd4679c$exports};const $a074e1e2d0f0a665$export$653eddfc964b0f8a=new WeakMap;function $a074e1e2d0f0a665$export$134cbb7fb09a9522(s){return(s==null?void 0:s.calendar.identifier)==="gregory"&&s.era==="BC"?"short":void 0}function $a074e1e2d0f0a665$export$b6df97c887c38e1a(s){let j=$fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault$3($3904726b442bd9b2$exports),"@react-aria/calendar"),et,tt;"highlightedRange"in s?{start:et,end:tt}=s.highlightedRange||{}:et=tt=s.value;let rt=$896ba0a80a8f4d36$export$85fd5fdf27bacc79({weekday:"long",month:"long",year:"numeric",day:"numeric",era:$a074e1e2d0f0a665$export$134cbb7fb09a9522(et)||$a074e1e2d0f0a665$export$134cbb7fb09a9522(tt),timeZone:s.timeZone}),nt="anchorDate"in s?s.anchorDate:null;return reactExports.useMemo(()=>{if(!nt&&et&&tt)if($14e0f24ef4ac5c92$export$ea39ec197993aef0(et,tt)){let at=rt.format(et.toDate(s.timeZone));return j.format("selectedDateDescription",{date:at})}else{let at=$a074e1e2d0f0a665$var$formatRange(rt,j,et,tt,s.timeZone);return j.format("selectedRangeDescription",{dateRange:at})}return""},[et,tt,nt,s.timeZone,j,rt])}function $a074e1e2d0f0a665$export$31afe65d91ef6e8(s,j,et,tt){let rt=$fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault$3($3904726b442bd9b2$exports),"@react-aria/calendar"),nt=$a074e1e2d0f0a665$export$134cbb7fb09a9522(s)||$a074e1e2d0f0a665$export$134cbb7fb09a9522(j),at=$896ba0a80a8f4d36$export$85fd5fdf27bacc79({month:"long",year:"numeric",era:nt,calendar:s.calendar.identifier,timeZone:et}),it=$896ba0a80a8f4d36$export$85fd5fdf27bacc79({month:"long",year:"numeric",day:"numeric",era:nt,calendar:s.calendar.identifier,timeZone:et});return reactExports.useMemo(()=>{if($14e0f24ef4ac5c92$export$ea39ec197993aef0(s,$14e0f24ef4ac5c92$export$a5a3b454ada2268e(s))){if($14e0f24ef4ac5c92$export$ea39ec197993aef0(j,$14e0f24ef4ac5c92$export$a2258d9c4118825c(s)))return at.format(s.toDate(et));if($14e0f24ef4ac5c92$export$ea39ec197993aef0(j,$14e0f24ef4ac5c92$export$a2258d9c4118825c(j)))return tt?$a074e1e2d0f0a665$var$formatRange(at,rt,s,j,et):at.formatRange(s.toDate(et),j.toDate(et))}return tt?$a074e1e2d0f0a665$var$formatRange(it,rt,s,j,et):it.formatRange(s.toDate(et),j.toDate(et))},[s,j,at,it,rt,et,tt])}function $a074e1e2d0f0a665$var$formatRange(s,j,et,tt,rt){let nt=s.formatRangeToParts(et.toDate(rt),tt.toDate(rt)),at=-1;for(let st=0;st<nt.length;st++){let lt=nt[st];if(lt.source==="shared"&<.type==="literal")at=st;else if(lt.source==="endRange")break}let it="",ot="";for(let st=0;st<nt.length;st++)st<at?it+=nt[st].value:st>at&&(ot+=nt[st].value);return j.format("dateRange",{startDate:it,endDate:ot})}function $c4acc1de3ab169cf$export$d652b3ea2d672d5b(s,j){let et=$fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault$3($3904726b442bd9b2$exports),"@react-aria/calendar"),tt=$65484d02dcb7eb3e$export$457c3d6518dd4c6f(s),rt=$a074e1e2d0f0a665$export$31afe65d91ef6e8(j.visibleRange.start,j.visibleRange.end,j.timeZone,!1),nt=$a074e1e2d0f0a665$export$31afe65d91ef6e8(j.visibleRange.start,j.visibleRange.end,j.timeZone,!0);$4f58c5f72bcf79f7$export$496315a1608d9602(()=>{j.isFocused||$319e236875307eab$export$a9b970dcc4ae71a9(nt)},[nt]);let at=$a074e1e2d0f0a665$export$b6df97c887c38e1a(j);$4f58c5f72bcf79f7$export$496315a1608d9602(()=>{at&&$319e236875307eab$export$a9b970dcc4ae71a9(at,"polite",4e3)},[at]);let it=$bdb11010cef70236$export$b4cc09c592e8fdb8([!!s.errorMessage,s.isInvalid,s.validationState]);$a074e1e2d0f0a665$export$653eddfc964b0f8a.set(j,{ariaLabel:s["aria-label"],ariaLabelledBy:s["aria-labelledby"],errorMessageId:it,selectedDateDescription:at});let[ot,st]=reactExports.useState(!1),lt=s.isDisabled||j.isNextVisibleRangeInvalid();lt&&ot&&(st(!1),j.setFocused(!0));let[ct,ut]=reactExports.useState(!1),dt=s.isDisabled||j.isPreviousVisibleRangeInvalid();dt&&ct&&(ut(!1),j.setFocused(!0));let ft=$313b98861ee5dd6c$export$d6875122194c7b44({id:s.id,"aria-label":[s["aria-label"],nt].filter(Boolean).join(", "),"aria-labelledby":s["aria-labelledby"]});return{calendarProps:$3ef42575df84b30b$export$9d1611c77c2fe928(tt,ft,{role:"application","aria-describedby":s["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>j.focusNextPage(),"aria-label":et.format("next"),isDisabled:lt,onFocusChange:st},prevButtonProps:{onPress:()=>j.focusPreviousPage(),"aria-label":et.format("previous"),isDisabled:dt,onFocusChange:ut},errorMessageProps:{id:it},title:rt}}function $9942cad8a072a530$export$3ee915f8151bd4f1(s,j){return $c4acc1de3ab169cf$export$d652b3ea2d672d5b(s,j)}function $e3031d1f8c9d64eb$export$cb95147730a423f5(s,j){let{startDate:et=j.visibleRange.start,endDate:tt=j.visibleRange.end}=s,{direction:rt}=$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),nt=dt=>{switch(dt.key){case"Enter":case" ":dt.preventDefault(),j.selectFocusedDate();break;case"PageUp":dt.preventDefault(),dt.stopPropagation(),j.focusPreviousSection(dt.shiftKey);break;case"PageDown":dt.preventDefault(),dt.stopPropagation(),j.focusNextSection(dt.shiftKey);break;case"End":dt.preventDefault(),dt.stopPropagation(),j.focusSectionEnd();break;case"Home":dt.preventDefault(),dt.stopPropagation(),j.focusSectionStart();break;case"ArrowLeft":dt.preventDefault(),dt.stopPropagation(),rt==="rtl"?j.focusNextDay():j.focusPreviousDay();break;case"ArrowUp":dt.preventDefault(),dt.stopPropagation(),j.focusPreviousRow();break;case"ArrowRight":dt.preventDefault(),dt.stopPropagation(),rt==="rtl"?j.focusPreviousDay():j.focusNextDay();break;case"ArrowDown":dt.preventDefault(),dt.stopPropagation(),j.focusNextRow();break;case"Escape":"setAnchorDate"in j&&(dt.preventDefault(),j.setAnchorDate(null));break}},at=$a074e1e2d0f0a665$export$31afe65d91ef6e8(et,tt,j.timeZone,!0),{ariaLabel:it,ariaLabelledBy:ot}=$a074e1e2d0f0a665$export$653eddfc964b0f8a.get(j),st=$313b98861ee5dd6c$export$d6875122194c7b44({"aria-label":[it,at].filter(Boolean).join(", "),"aria-labelledby":ot}),lt=$896ba0a80a8f4d36$export$85fd5fdf27bacc79({weekday:s.weekdayStyle||"narrow",timeZone:j.timeZone}),{locale:ct}=$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),ut=reactExports.useMemo(()=>{let dt=$14e0f24ef4ac5c92$export$42c81a444fbfb5d4($14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(j.timeZone),ct);return[...new Array(7).keys()].map(ft=>{let mt=dt.add({days:ft}).toDate(j.timeZone);return lt.format(mt)})},[ct,j.timeZone,lt]);return{gridProps:$3ef42575df84b30b$export$9d1611c77c2fe928(st,{role:"grid","aria-readonly":j.isReadOnly||null,"aria-disabled":j.isDisabled||null,"aria-multiselectable":"highlightedRange"in j||void 0,onKeyDown:nt,onFocus:()=>j.setFocused(!0),onBlur:()=>j.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:ut}}function $36a0ac60f04457c5$export$136073280381448e(s,j,et){let{date:tt,isDisabled:rt}=s,{errorMessageId:nt,selectedDateDescription:at}=$a074e1e2d0f0a665$export$653eddfc964b0f8a.get(j),it=$fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault$3($3904726b442bd9b2$exports),"@react-aria/calendar"),ot=$896ba0a80a8f4d36$export$85fd5fdf27bacc79({weekday:"long",day:"numeric",month:"long",year:"numeric",era:$a074e1e2d0f0a665$export$134cbb7fb09a9522(tt),timeZone:j.timeZone}),st=j.isSelected(tt),lt=j.isCellFocused(tt);rt=rt||j.isCellDisabled(tt);let ct=j.isCellUnavailable(tt),ut=!rt&&!ct,dt=j.isValueInvalid&&("highlightedRange"in j?!j.anchorDate&&j.highlightedRange&&tt.compare(j.highlightedRange.start)>=0&&tt.compare(j.highlightedRange.end)<=0:j.value&&$14e0f24ef4ac5c92$export$ea39ec197993aef0(j.value,tt));dt&&(st=!0),tt=$5a387cc49350e6db$export$722debc0e56fea39(tt,$14e0f24ef4ac5c92$export$91b62ebf2ba703ee);let ft=reactExports.useMemo(()=>tt.toDate(j.timeZone),[tt,j.timeZone]),ht=$14e0f24ef4ac5c92$export$629b0a497aa65267(tt,j.timeZone),mt=reactExports.useMemo(()=>{let wt="";return"highlightedRange"in j&&j.value&&!j.anchorDate&&($14e0f24ef4ac5c92$export$ea39ec197993aef0(tt,j.value.start)||$14e0f24ef4ac5c92$export$ea39ec197993aef0(tt,j.value.end))&&(wt=at+", "),wt+=ot.format(ft),ht?wt=it.format(st?"todayDateSelected":"todayDate",{date:wt}):st&&(wt=it.format("dateSelected",{date:wt})),j.minValue&&$14e0f24ef4ac5c92$export$ea39ec197993aef0(tt,j.minValue)?wt+=", "+it.format("minimumDate"):j.maxValue&&$14e0f24ef4ac5c92$export$ea39ec197993aef0(tt,j.maxValue)&&(wt+=", "+it.format("maximumDate")),wt},[ot,ft,it,st,ht,tt,j,at]),vt="";"anchorDate"in j&<&&!j.isReadOnly&&ut&&(j.anchorDate?vt=it.format("finishRangeSelectionPrompt"):vt=it.format("startRangeSelectionPrompt"));let pt=$ef06256079686ba0$export$f8aeda7b10753fa1(vt),gt=reactExports.useRef(!1),yt=reactExports.useRef(!1),$t=reactExports.useRef(null),{pressProps:xt,isPressed:Ct}=$f6c31cce2adf654f$export$45712eceda6fad21({shouldCancelOnPointerExit:"anchorDate"in j&&!!j.anchorDate,preventFocusOnPress:!0,isDisabled:!ut||j.isReadOnly,onPressStart(wt){if(j.isReadOnly){j.setFocusedDate(tt);return}if("highlightedRange"in j&&!j.anchorDate&&(wt.pointerType==="mouse"||wt.pointerType==="touch")){if(j.highlightedRange&&!dt){if($14e0f24ef4ac5c92$export$ea39ec197993aef0(tt,j.highlightedRange.start)){j.setAnchorDate(j.highlightedRange.end),j.setFocusedDate(tt),j.setDragging(!0),yt.current=!0;return}else if($14e0f24ef4ac5c92$export$ea39ec197993aef0(tt,j.highlightedRange.end)){j.setAnchorDate(j.highlightedRange.start),j.setFocusedDate(tt),j.setDragging(!0),yt.current=!0;return}}let Rt=()=>{j.setDragging(!0),$t.current=null,j.selectDate(tt),j.setFocusedDate(tt),gt.current=!0};wt.pointerType==="touch"?$t.current=setTimeout(Rt,200):Rt()}},onPressEnd(){yt.current=!1,gt.current=!1,clearTimeout($t.current),$t.current=null},onPress(){!("anchorDate"in j)&&!j.isReadOnly&&(j.selectDate(tt),j.setFocusedDate(tt))},onPressUp(wt){if(!j.isReadOnly&&("anchorDate"in j&&$t.current&&(j.selectDate(tt),j.setFocusedDate(tt)),"anchorDate"in j))if(yt.current)j.setAnchorDate(tt);else if(j.anchorDate&&!gt.current)j.selectDate(tt),j.setFocusedDate(tt);else if(wt.pointerType==="keyboard"&&!j.anchorDate){j.selectDate(tt);let Rt=tt.add({days:1});j.isInvalid(Rt)&&(Rt=tt.subtract({days:1})),j.isInvalid(Rt)||j.setFocusedDate(Rt)}else wt.pointerType==="virtual"&&(j.selectDate(tt),j.setFocusedDate(tt))}}),bt=null;rt||(bt=$14e0f24ef4ac5c92$export$ea39ec197993aef0(tt,j.focusedDate)?0:-1),reactExports.useEffect(()=>{lt&&et.current&&($7215afc6de606d6b$export$de79e2c695e052f3(et.current),$507fabe10e71c6fb$export$630ff653c5ada6a9()!=="pointer"&&document.activeElement===et.current&&$2f04cbc44ee30ce0$export$c826860796309d1b(et.current,{containingElement:$62d8ded9296f3872$export$cfa2225e87938781(et.current)}))},[lt,et]);let St=$896ba0a80a8f4d36$export$85fd5fdf27bacc79({day:"numeric",timeZone:j.timeZone,calendar:tt.calendar.identifier}),_t=reactExports.useMemo(()=>St.formatToParts(ft).find(wt=>wt.type==="day").value,[St,ft]);return{cellProps:{role:"gridcell","aria-disabled":!ut||null,"aria-selected":st||null,"aria-invalid":dt||null},buttonProps:$3ef42575df84b30b$export$9d1611c77c2fe928(xt,{onFocus(){rt||j.setFocusedDate(tt)},tabIndex:bt,role:"button","aria-disabled":!ut||null,"aria-label":mt,"aria-invalid":dt||null,"aria-describedby":[dt?nt:null,pt["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(wt){"highlightDate"in j&&(wt.pointerType!=="touch"||j.isDragging)&&ut&&j.highlightDate(tt)},onPointerDown(wt){"releasePointerCapture"in wt.target&&wt.target.releasePointerCapture(wt.pointerId)},onContextMenu(wt){wt.preventDefault()}}),isPressed:Ct,isFocused:lt,isSelected:st,isDisabled:rt,isUnavailable:ct,isOutsideVisibleRange:tt.compare(j.visibleRange.start)<0||tt.compare(j.visibleRange.end)>0,isInvalid:dt,formattedDate:_t}}function $e93e671b31057976$export$b8473d3665f3a75a(s,j,et){let{validationBehavior:tt,focus:rt}=s;$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(tt==="native"&&(et!=null&&et.current)){let ot=j.realtimeValidation.isInvalid?j.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";et.current.setCustomValidity(ot),et.current.hasAttribute("title")||(et.current.title=""),j.realtimeValidation.isInvalid||j.updateValidation($e93e671b31057976$var$getNativeValidity(et.current))}});let nt=$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{j.resetValidation()}),at=$8ae05eaa5c114e9c$export$7f54fc3180508a52(ot=>{var st;j.displayValidation.isInvalid||j.commitValidation();let lt=et==null||(st=et.current)===null||st===void 0?void 0:st.form;if(!ot.defaultPrevented&&et&<&&$e93e671b31057976$var$getFirstInvalidInput(lt)===et.current){var ct;rt?rt():(ct=et.current)===null||ct===void 0||ct.focus(),$507fabe10e71c6fb$export$8397ddfc504fdb9a("keyboard")}ot.preventDefault()}),it=$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{j.commitValidation()});reactExports.useEffect(()=>{let ot=et==null?void 0:et.current;if(!ot)return;let st=ot.form;return ot.addEventListener("invalid",at),ot.addEventListener("change",it),st==null||st.addEventListener("reset",nt),()=>{ot.removeEventListener("invalid",at),ot.removeEventListener("change",it),st==null||st.removeEventListener("reset",nt)}},[et,at,it,nt,tt])}function $e93e671b31057976$var$getValidity(s){let j=s.validity;return{badInput:j.badInput,customError:j.customError,patternMismatch:j.patternMismatch,rangeOverflow:j.rangeOverflow,rangeUnderflow:j.rangeUnderflow,stepMismatch:j.stepMismatch,tooLong:j.tooLong,tooShort:j.tooShort,typeMismatch:j.typeMismatch,valueMissing:j.valueMissing,valid:j.valid}}function $e93e671b31057976$var$getNativeValidity(s){return{isInvalid:!s.validity.valid,validationDetails:$e93e671b31057976$var$getValidity(s),validationErrors:s.validationMessage?[s.validationMessage]:[]}}function $e93e671b31057976$var$getFirstInvalidInput(s){for(let j=0;j<s.elements.length;j++){let et=s.elements[j];if(!et.validity.valid)return et}return null}function $d191a55c9702f145$export$8467354a121f1b9f(s){let{id:j,label:et,"aria-labelledby":tt,"aria-label":rt,labelElementType:nt="label"}=s;j=$bdb11010cef70236$export$f680877a34711e37(j);let at=$bdb11010cef70236$export$f680877a34711e37(),it={};et?(tt=tt?`${at} ${tt}`:at,it={id:at,htmlFor:nt==="label"?j:void 0}):!tt&&!rt&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let ot=$313b98861ee5dd6c$export$d6875122194c7b44({id:j,"aria-label":rt,"aria-labelledby":tt});return{labelProps:it,fieldProps:ot}}function $2baaea4c71418dea$export$294aa081a6c6f55d(s){let{description:j,errorMessage:et,isInvalid:tt,validationState:rt}=s,{labelProps:nt,fieldProps:at}=$d191a55c9702f145$export$8467354a121f1b9f(s),it=$bdb11010cef70236$export$b4cc09c592e8fdb8([!!j,!!et,tt,rt]),ot=$bdb11010cef70236$export$b4cc09c592e8fdb8([!!j,!!et,tt,rt]);return at=$3ef42575df84b30b$export$9d1611c77c2fe928(at,{"aria-describedby":[it,ot,s["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:nt,fieldProps:at,descriptionProps:{id:it},errorMessageProps:{id:ot}}}var $773d5888b972f1cf$exports={};$773d5888b972f1cf$exports={dismiss:"تجاهل"};var $d11f19852b941573$exports={};$d11f19852b941573$exports={dismiss:"Отхвърляне"};var $b983974c2ee1efb3$exports={};$b983974c2ee1efb3$exports={dismiss:"Odstranit"};var $5809cc9d4e92de73$exports={};$5809cc9d4e92de73$exports={dismiss:"Luk"};var $c68c2e4fc74398d1$exports={};$c68c2e4fc74398d1$exports={dismiss:"Schließen"};var $0898b4c153db2b77$exports={};$0898b4c153db2b77$exports={dismiss:"Απόρριψη"};var $6d74810286a15183$exports={};$6d74810286a15183$exports={dismiss:"Dismiss"};var $309d73dc65f78055$exports={};$309d73dc65f78055$exports={dismiss:"Descartar"};var $44ad94f7205cf593$exports={};$44ad94f7205cf593$exports={dismiss:"Lõpeta"};var $7c28f5687f0779a9$exports={};$7c28f5687f0779a9$exports={dismiss:"Hylkää"};var $e6d75df4b68bd73a$exports={};$e6d75df4b68bd73a$exports={dismiss:"Rejeter"};var $87505c9dab186d0f$exports={};$87505c9dab186d0f$exports={dismiss:"התעלם"};var $553439c3ffb3e492$exports={};$553439c3ffb3e492$exports={dismiss:"Odbaci"};var $74cf411061b983a2$exports={};$74cf411061b983a2$exports={dismiss:"Elutasítás"};var $e933f298574dc435$exports={};$e933f298574dc435$exports={dismiss:"Ignora"};var $ac91fc9fe02f71f6$exports={};$ac91fc9fe02f71f6$exports={dismiss:"閉じる"};var $52b96f86422025af$exports={};$52b96f86422025af$exports={dismiss:"무시"};var $c0d724c3e51dafa6$exports={};$c0d724c3e51dafa6$exports={dismiss:"Atmesti"};var $c92899672a3fe72e$exports={};$c92899672a3fe72e$exports={dismiss:"Nerādīt"};var $9f576b39d8e7a9d6$exports={};$9f576b39d8e7a9d6$exports={dismiss:"Lukk"};var $9d025808aeec81a7$exports={};$9d025808aeec81a7$exports={dismiss:"Negeren"};var $fce709921e2c0fa6$exports={};$fce709921e2c0fa6$exports={dismiss:"Zignoruj"};var $2599cf0c4ab37f59$exports={};$2599cf0c4ab37f59$exports={dismiss:"Descartar"};var $3c220ae7ef8a35fd$exports={};$3c220ae7ef8a35fd$exports={dismiss:"Dispensar"};var $93562b5094072f54$exports={};$93562b5094072f54$exports={dismiss:"Revocare"};var $cd9e2abd0d06c7b4$exports={};$cd9e2abd0d06c7b4$exports={dismiss:"Пропустить"};var $45375701f409adf1$exports={};$45375701f409adf1$exports={dismiss:"Zrušiť"};var $27fab53a576de9dd$exports={};$27fab53a576de9dd$exports={dismiss:"Opusti"};var $4438748d9952e7c7$exports={};$4438748d9952e7c7$exports={dismiss:"Odbaci"};var $0936d7347ef4da4c$exports={};$0936d7347ef4da4c$exports={dismiss:"Avvisa"};var $29700c92185d38f8$exports={};$29700c92185d38f8$exports={dismiss:"Kapat"};var $662ccaf2be4c25b3$exports={};$662ccaf2be4c25b3$exports={dismiss:"Скасувати"};var $d80a27deda7cdb3c$exports={};$d80a27deda7cdb3c$exports={dismiss:"取消"};var $2b2734393847c884$exports={};$2b2734393847c884$exports={dismiss:"關閉"};const $5c3e21d68f1c4674$var$styles={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"};function $5c3e21d68f1c4674$export$a966af930f325cab(s={}){let{style:j,isFocusable:et}=s,[tt,rt]=reactExports.useState(!1),{focusWithinProps:nt}=$9ab94262bd0047c7$export$420e68273165f4ec({isDisabled:!et,onFocusWithinChange:it=>rt(it)}),at=reactExports.useMemo(()=>tt?j:j?{...$5c3e21d68f1c4674$var$styles,...j}:$5c3e21d68f1c4674$var$styles,[tt]);return{visuallyHiddenProps:{...nt,style:at}}}function $5c3e21d68f1c4674$export$439d29a4e110a164(s){let{children:j,elementType:et="div",isFocusable:tt,style:rt,...nt}=s,{visuallyHiddenProps:at}=$5c3e21d68f1c4674$export$a966af930f325cab(s);return React.createElement(et,$3ef42575df84b30b$export$9d1611c77c2fe928(nt,at),j)}function $parcel$interopDefault$2(s){return s&&s.__esModule?s.default:s}const $edcf132a9284368a$var$AXIS={top:"top",bottom:"top",left:"left",right:"left"},$edcf132a9284368a$var$FLIPPED_DIRECTION={top:"bottom",bottom:"top",left:"right",right:"left"},$edcf132a9284368a$var$CROSS_AXIS={top:"left",left:"top"},$edcf132a9284368a$var$AXIS_SIZE={top:"height",left:"width"},$edcf132a9284368a$var$TOTAL_SIZE={width:"totalWidth",height:"totalHeight"},$edcf132a9284368a$var$PARSED_PLACEMENT_CACHE={};let $edcf132a9284368a$var$visualViewport=typeof document!="undefined"&&window.visualViewport;function $edcf132a9284368a$var$getContainerDimensions(s){let j=0,et=0,tt=0,rt=0,nt=0,at=0,it={};if(s.tagName==="BODY"){let lt=document.documentElement;tt=lt.clientWidth,rt=lt.clientHeight;var ot;j=(ot=$edcf132a9284368a$var$visualViewport==null?void 0:$edcf132a9284368a$var$visualViewport.width)!==null&&ot!==void 0?ot:tt;var st;et=(st=$edcf132a9284368a$var$visualViewport==null?void 0:$edcf132a9284368a$var$visualViewport.height)!==null&&st!==void 0?st:rt,it.top=lt.scrollTop||s.scrollTop,it.left=lt.scrollLeft||s.scrollLeft}else({width:j,height:et,top:nt,left:at}=$edcf132a9284368a$var$getOffset(s)),it.top=s.scrollTop,it.left=s.scrollLeft,tt=j,rt=et;return{width:j,height:et,totalWidth:tt,totalHeight:rt,scroll:it,top:nt,left:at}}function $edcf132a9284368a$var$getScroll(s){return{top:s.scrollTop,left:s.scrollLeft,width:s.scrollWidth,height:s.scrollHeight}}function $edcf132a9284368a$var$getDelta(s,j,et,tt,rt,nt){let at=rt.scroll[s],it=tt[$edcf132a9284368a$var$AXIS_SIZE[s]],ot=j-nt-at,st=j+nt-at+et;return ot<0?-ot:st>it?Math.max(it-st,-ot):0}function $edcf132a9284368a$var$getMargins(s){let j=window.getComputedStyle(s);return{top:parseInt(j.marginTop,10)||0,bottom:parseInt(j.marginBottom,10)||0,left:parseInt(j.marginLeft,10)||0,right:parseInt(j.marginRight,10)||0}}function $edcf132a9284368a$var$parsePlacement(s){if($edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[s])return $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[s];let[j,et]=s.split(" "),tt=$edcf132a9284368a$var$AXIS[j]||"right",rt=$edcf132a9284368a$var$CROSS_AXIS[tt];$edcf132a9284368a$var$AXIS[et]||(et="center");let nt=$edcf132a9284368a$var$AXIS_SIZE[tt],at=$edcf132a9284368a$var$AXIS_SIZE[rt];return $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[s]={placement:j,crossPlacement:et,axis:tt,crossAxis:rt,size:nt,crossSize:at},$edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[s]}function $edcf132a9284368a$var$computePosition(s,j,et,tt,rt,nt,at,it,ot,st){let{placement:lt,crossPlacement:ct,axis:ut,crossAxis:dt,size:ft,crossSize:ht}=tt,mt={};mt[dt]=s[dt],ct==="center"?mt[dt]+=(s[ht]-et[ht])/2:ct!==dt&&(mt[dt]+=s[ht]-et[ht]),mt[dt]+=nt;const vt=s[dt]-et[ht]+ot+st,pt=s[dt]+s[ht]-ot-st;if(mt[dt]=$9446cca9a3875146$export$7d15b64cf5a3a4c4(mt[dt],vt,pt),lt===ut){const gt=it?at[ft]:j[$edcf132a9284368a$var$TOTAL_SIZE[ft]];mt[$edcf132a9284368a$var$FLIPPED_DIRECTION[ut]]=Math.floor(gt-s[ut]+rt)}else mt[ut]=Math.floor(s[ut]+s[ft]+rt);return mt}function $edcf132a9284368a$var$getMaxHeight(s,j,et,tt,rt,nt){return s.top!=null?Math.max(0,j.height+j.top+j.scroll.top-(et.top+s.top)-(rt.top+rt.bottom+nt)):Math.max(0,tt.top+et.top-(j.top+j.scroll.top)-(rt.top+rt.bottom+nt))}function $edcf132a9284368a$var$getAvailableSpace(s,j,et,tt,rt,nt){let{placement:at,axis:it,size:ot}=nt;return at===it?Math.max(0,et[it]-s[it]-s.scroll[it]+j[it]-tt[it]-tt[$edcf132a9284368a$var$FLIPPED_DIRECTION[it]]-rt):Math.max(0,s[ot]+s[it]+s.scroll[it]-j[it]-et[it]-et[ot]-tt[it]-tt[$edcf132a9284368a$var$FLIPPED_DIRECTION[it]]-rt)}function $edcf132a9284368a$export$6839422d1f33cee9(s,j,et,tt,rt,nt,at,it,ot,st,lt,ct,ut,dt,ft,ht){let mt=$edcf132a9284368a$var$parsePlacement(s),{size:vt,crossAxis:pt,crossSize:gt,placement:yt,crossPlacement:$t}=mt,xt=$edcf132a9284368a$var$computePosition(j,it,et,mt,lt,ct,st,ut,ft,ht),Ct=lt,bt=$edcf132a9284368a$var$getAvailableSpace(it,st,j,rt,nt+lt,mt);if(at&&tt[vt]>bt){let At=$edcf132a9284368a$var$parsePlacement(`${$edcf132a9284368a$var$FLIPPED_DIRECTION[yt]} ${$t}`),Nt=$edcf132a9284368a$var$computePosition(j,it,et,At,lt,ct,st,ut,ft,ht);$edcf132a9284368a$var$getAvailableSpace(it,st,j,rt,nt+lt,At)>bt&&(mt=At,xt=Nt,Ct=lt)}let St=$edcf132a9284368a$var$getDelta(pt,xt[pt],et[gt],it,ot,nt);xt[pt]+=St;let _t=$edcf132a9284368a$var$getMaxHeight(xt,it,st,j,rt,nt);dt&&dt<_t&&(_t=dt),et.height=Math.min(et.height,_t),xt=$edcf132a9284368a$var$computePosition(j,it,et,mt,Ct,ct,st,ut,ft,ht),St=$edcf132a9284368a$var$getDelta(pt,xt[pt],et[gt],it,ot,nt),xt[pt]+=St;let wt={},Rt=j[pt]+.5*j[gt]-et[pt];const Pt=ft/2+ht,Et=et[gt]-ft/2-ht,Ot=j[pt]-et[pt]+ft/2,Mt=j[pt]+j[gt]-et[pt]-ft/2,Dt=$9446cca9a3875146$export$7d15b64cf5a3a4c4(Rt,Ot,Mt);return wt[pt]=$9446cca9a3875146$export$7d15b64cf5a3a4c4(Dt,Pt,Et),{position:xt,maxHeight:_t,arrowOffsetLeft:wt.left,arrowOffsetTop:wt.top,placement:mt.placement}}function $edcf132a9284368a$export$b3ceb0cbf1056d98(s){let{placement:j,targetNode:et,overlayNode:tt,scrollNode:rt,padding:nt,shouldFlip:at,boundaryElement:it,offset:ot,crossOffset:st,maxHeight:lt,arrowSize:ct=0,arrowBoundaryOffset:ut=0}=s,dt=tt instanceof HTMLElement?$edcf132a9284368a$var$getContainingBlock(tt):document.documentElement,ft=dt===document.documentElement;const ht=window.getComputedStyle(dt).position;let mt=!!ht&&ht!=="static",vt=ft?$edcf132a9284368a$var$getOffset(et):$edcf132a9284368a$var$getPosition(et,dt);if(!ft){let{marginTop:bt,marginLeft:St}=window.getComputedStyle(et);vt.top+=parseInt(bt,10)||0,vt.left+=parseInt(St,10)||0}let pt=$edcf132a9284368a$var$getOffset(tt),gt=$edcf132a9284368a$var$getMargins(tt);pt.width+=gt.left+gt.right,pt.height+=gt.top+gt.bottom;let yt=$edcf132a9284368a$var$getScroll(rt),$t=$edcf132a9284368a$var$getContainerDimensions(it),xt=$edcf132a9284368a$var$getContainerDimensions(dt),Ct=it.tagName==="BODY"?$edcf132a9284368a$var$getOffset(dt):$edcf132a9284368a$var$getPosition(dt,it);return $edcf132a9284368a$export$6839422d1f33cee9(j,vt,pt,yt,gt,nt,at,$t,xt,Ct,ot,st,mt,lt,ct,ut)}function $edcf132a9284368a$var$getOffset(s){let{top:j,left:et,width:tt,height:rt}=s.getBoundingClientRect(),{scrollTop:nt,scrollLeft:at,clientTop:it,clientLeft:ot}=document.documentElement;return{top:j+nt-it,left:et+at-ot,width:tt,height:rt}}function $edcf132a9284368a$var$getPosition(s,j){let et=window.getComputedStyle(s),tt;if(et.position==="fixed"){let{top:rt,left:nt,width:at,height:it}=s.getBoundingClientRect();tt={top:rt,left:nt,width:at,height:it}}else{tt=$edcf132a9284368a$var$getOffset(s);let rt=$edcf132a9284368a$var$getOffset(j),nt=window.getComputedStyle(j);rt.top+=(parseInt(nt.borderTopWidth,10)||0)-j.scrollTop,rt.left+=(parseInt(nt.borderLeftWidth,10)||0)-j.scrollLeft,tt.top-=rt.top,tt.left-=rt.left}return tt.top-=parseInt(et.marginTop,10)||0,tt.left-=parseInt(et.marginLeft,10)||0,tt}function $edcf132a9284368a$var$getContainingBlock(s){let j=s.offsetParent;if(j&&j===document.body&&window.getComputedStyle(j).position==="static"&&!$edcf132a9284368a$var$isContainingBlock(j)&&(j=document.documentElement),j==null)for(j=s.parentElement;j&&!$edcf132a9284368a$var$isContainingBlock(j);)j=j.parentElement;return j||document.documentElement}function $edcf132a9284368a$var$isContainingBlock(s){let j=window.getComputedStyle(s);return j.transform!=="none"||/transform|perspective/.test(j.willChange)||j.filter!=="none"||j.contain==="paint"||"backdropFilter"in j&&j.backdropFilter!=="none"||"WebkitBackdropFilter"in j&&j.WebkitBackdropFilter!=="none"}const $dd149f63282afbbf$export$f6211563215e3b37=new WeakMap;function $dd149f63282afbbf$export$18fc8428861184da(s){let{triggerRef:j,isOpen:et,onClose:tt}=s;reactExports.useEffect(()=>{if(!et||tt===null)return;let rt=nt=>{let at=nt.target;if(!j.current||at instanceof Node&&!at.contains(j.current))return;let it=tt||$dd149f63282afbbf$export$f6211563215e3b37.get(j.current);it&&it()};return window.addEventListener("scroll",rt,!0),()=>{window.removeEventListener("scroll",rt,!0)}},[et,tt,j])}let $2a41e45df1593e64$var$visualViewport=typeof document!="undefined"&&window.visualViewport;function $2a41e45df1593e64$export$d39e1813b3bdd0e1(s){let{direction:j}=$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{arrowSize:et=0,targetRef:tt,overlayRef:rt,scrollRef:nt=rt,placement:at="bottom",containerPadding:it=12,shouldFlip:ot=!0,boundaryElement:st=typeof document!="undefined"?document.body:null,offset:lt=0,crossOffset:ct=0,shouldUpdatePosition:ut=!0,isOpen:dt=!0,onClose:ft,maxHeight:ht,arrowBoundaryOffset:mt=0}=s,[vt,pt]=reactExports.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),gt=[ut,at,rt.current,tt.current,nt.current,it,ot,st,lt,ct,dt,j,ht,mt,et],yt=reactExports.useCallback(()=>{if(ut===!1||!dt||!rt.current||!tt.current||!nt.current||!st)return;let Ct=$edcf132a9284368a$export$b3ceb0cbf1056d98({placement:$2a41e45df1593e64$var$translateRTL(at,j),overlayNode:rt.current,targetNode:tt.current,scrollNode:nt.current,padding:it,shouldFlip:ot,boundaryElement:st,offset:lt,crossOffset:ct,maxHeight:ht,arrowSize:et,arrowBoundaryOffset:mt});Object.keys(Ct.position).forEach(bt=>rt.current.style[bt]=Ct.position[bt]+"px"),rt.current.style.maxHeight=Ct.maxHeight!=null?Ct.maxHeight+"px":void 0,pt(Ct)},gt);$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(yt,gt),$2a41e45df1593e64$var$useResize(yt),$9daab02d461809db$export$683480f191c0e3ea({ref:rt,onResize:yt});let $t=reactExports.useRef(!1);$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{let Ct,bt=()=>{$t.current=!0,clearTimeout(Ct),Ct=setTimeout(()=>{$t.current=!1},500),yt()};return $2a41e45df1593e64$var$visualViewport==null||$2a41e45df1593e64$var$visualViewport.addEventListener("resize",bt),$2a41e45df1593e64$var$visualViewport==null||$2a41e45df1593e64$var$visualViewport.addEventListener("scroll",bt),()=>{$2a41e45df1593e64$var$visualViewport==null||$2a41e45df1593e64$var$visualViewport.removeEventListener("resize",bt),$2a41e45df1593e64$var$visualViewport==null||$2a41e45df1593e64$var$visualViewport.removeEventListener("scroll",bt)}},[yt]);let xt=reactExports.useCallback(()=>{$t.current||ft()},[ft,$t]);return $dd149f63282afbbf$export$18fc8428861184da({triggerRef:tt,isOpen:dt,onClose:ft&&xt}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...vt.position,maxHeight:vt.maxHeight}},placement:vt.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:vt.arrowOffsetLeft,top:vt.arrowOffsetTop}},updatePosition:yt}}function $2a41e45df1593e64$var$useResize(s){$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>(window.addEventListener("resize",s,!1),()=>{window.removeEventListener("resize",s,!1)}),[s])}function $2a41e45df1593e64$var$translateRTL(s,j){return j==="rtl"?s.replace("start","right").replace("end","left"):s.replace("start","left").replace("end","right")}const $a11501f3d1d39e6c$var$visibleOverlays=[];function $a11501f3d1d39e6c$export$ea8f71083e90600f(s,j){let{onClose:et,shouldCloseOnBlur:tt,isOpen:rt,isDismissable:nt=!1,isKeyboardDismissDisabled:at=!1,shouldCloseOnInteractOutside:it}=s;reactExports.useEffect(()=>(rt&&$a11501f3d1d39e6c$var$visibleOverlays.push(j),()=>{let ft=$a11501f3d1d39e6c$var$visibleOverlays.indexOf(j);ft>=0&&$a11501f3d1d39e6c$var$visibleOverlays.splice(ft,1)}),[rt,j]);let ot=()=>{$a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length-1]===j&&et&&et()},st=ft=>{(!it||it(ft.target))&&$a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length-1]===j&&(ft.stopPropagation(),ft.preventDefault())},lt=ft=>{(!it||it(ft.target))&&($a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length-1]===j&&(ft.stopPropagation(),ft.preventDefault()),ot())},ct=ft=>{ft.key==="Escape"&&!at&&(ft.stopPropagation(),ft.preventDefault(),ot())};$e0b6e0b68ec7f50f$export$872b660ac5a1ff98({ref:j,onInteractOutside:nt&&rt?lt:null,onInteractOutsideStart:st});let{focusWithinProps:ut}=$9ab94262bd0047c7$export$420e68273165f4ec({isDisabled:!tt,onBlurWithin:ft=>{!ft.relatedTarget||$9bf71ea28793e738$export$1258395f99bf9cbf(ft.relatedTarget)||(!it||it(ft.relatedTarget))&&et()}}),dt=ft=>{ft.target===ft.currentTarget&&ft.preventDefault()};return{overlayProps:{onKeyDown:ct,...ut},underlayProps:{onPointerDown:dt}}}function $628037886ba31236$export$f9d5c8beee7d008d(s,j,et){let{type:tt}=s,{isOpen:rt}=j;reactExports.useEffect(()=>{et&&et.current&&$dd149f63282afbbf$export$f6211563215e3b37.set(et.current,j.close)});let nt;tt==="menu"?nt=!0:tt==="listbox"&&(nt="listbox");let at=$bdb11010cef70236$export$f680877a34711e37();return{triggerProps:{"aria-haspopup":nt,"aria-expanded":rt,"aria-controls":rt?at:null,onPress:j.toggle},overlayProps:{id:at}}}const $49c51c25361d4cd2$var$visualViewport=typeof document!="undefined"&&window.visualViewport,$49c51c25361d4cd2$var$nonTextInputTypes=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let $49c51c25361d4cd2$var$preventScrollCount=0,$49c51c25361d4cd2$var$restore;function $49c51c25361d4cd2$export$ee0f7cc6afcd1c18(s={}){let{isDisabled:j}=s;$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!j)return $49c51c25361d4cd2$var$preventScrollCount++,$49c51c25361d4cd2$var$preventScrollCount===1&&($c87311424ea30a05$export$fedb369cb70207f1()?$49c51c25361d4cd2$var$restore=$49c51c25361d4cd2$var$preventScrollMobileSafari():$49c51c25361d4cd2$var$restore=$49c51c25361d4cd2$var$preventScrollStandard()),()=>{$49c51c25361d4cd2$var$preventScrollCount--,$49c51c25361d4cd2$var$preventScrollCount===0&&$49c51c25361d4cd2$var$restore()}},[j])}function $49c51c25361d4cd2$var$preventScrollStandard(){return $ff5963eb1fccf552$export$e08e3b67e392101e($49c51c25361d4cd2$var$setStyle(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),$49c51c25361d4cd2$var$setStyle(document.documentElement,"overflow","hidden"))}function $49c51c25361d4cd2$var$preventScrollMobileSafari(){let s,j,et=st=>{s=$62d8ded9296f3872$export$cfa2225e87938781(st.target,!0),!(s===document.documentElement&&s===document.body)&&s instanceof HTMLElement&&window.getComputedStyle(s).overscrollBehavior==="auto"&&(j=$49c51c25361d4cd2$var$setStyle(s,"overscrollBehavior","contain"))},tt=st=>{if(!s||s===document.documentElement||s===document.body){st.preventDefault();return}s.scrollHeight===s.clientHeight&&s.scrollWidth===s.clientWidth&&st.preventDefault()},rt=st=>{let lt=st.target;$49c51c25361d4cd2$var$willOpenKeyboard(lt)&<!==document.activeElement&&(st.preventDefault(),it(),lt.style.transform="translateY(-2000px)",lt.focus(),requestAnimationFrame(()=>{lt.style.transform=""})),j&&j()},nt=st=>{let lt=st.target;$49c51c25361d4cd2$var$willOpenKeyboard(lt)&&(it(),lt.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{lt.style.transform="",$49c51c25361d4cd2$var$visualViewport&&($49c51c25361d4cd2$var$visualViewport.height<window.innerHeight?requestAnimationFrame(()=>{$49c51c25361d4cd2$var$scrollIntoView(lt)}):$49c51c25361d4cd2$var$visualViewport.addEventListener("resize",()=>$49c51c25361d4cd2$var$scrollIntoView(lt),{once:!0}))}))},at=null,it=()=>{if(at)return;let st=()=>{window.scrollTo(0,0)},lt=window.pageXOffset,ct=window.pageYOffset;at=$ff5963eb1fccf552$export$e08e3b67e392101e($49c51c25361d4cd2$var$addEvent(window,"scroll",st),$49c51c25361d4cd2$var$setStyle(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),$49c51c25361d4cd2$var$setStyle(document.documentElement,"overflow","hidden"),$49c51c25361d4cd2$var$setStyle(document.body,"marginTop",`-${ct}px`),()=>{window.scrollTo(lt,ct)}),window.scrollTo(0,0)},ot=$ff5963eb1fccf552$export$e08e3b67e392101e($49c51c25361d4cd2$var$addEvent(document,"touchstart",et,{passive:!1,capture:!0}),$49c51c25361d4cd2$var$addEvent(document,"touchmove",tt,{passive:!1,capture:!0}),$49c51c25361d4cd2$var$addEvent(document,"touchend",rt,{passive:!1,capture:!0}),$49c51c25361d4cd2$var$addEvent(document,"focus",nt,!0));return()=>{j==null||j(),at==null||at(),ot()}}function $49c51c25361d4cd2$var$setStyle(s,j,et){let tt=s.style[j];return s.style[j]=et,()=>{s.style[j]=tt}}function $49c51c25361d4cd2$var$addEvent(s,j,et,tt){return s.addEventListener(j,et,tt),()=>{s.removeEventListener(j,et,tt)}}function $49c51c25361d4cd2$var$scrollIntoView(s){let j=document.scrollingElement||document.documentElement;for(;s&&s!==j;){let et=$62d8ded9296f3872$export$cfa2225e87938781(s);if(et!==document.documentElement&&et!==document.body&&et!==s){let tt=et.getBoundingClientRect().top,rt=s.getBoundingClientRect().top;rt>tt+s.clientHeight&&(et.scrollTop+=rt-tt)}s=et.parentElement}}function $49c51c25361d4cd2$var$willOpenKeyboard(s){return s instanceof HTMLInputElement&&!$49c51c25361d4cd2$var$nonTextInputTypes.has(s.type)||s instanceof HTMLTextAreaElement||s instanceof HTMLElement&&s.isContentEditable}const $f57aed4a881a3485$var$Context=React.createContext(null);function $f57aed4a881a3485$export$178405afcd8c5eb(s){let{children:j}=s,et=reactExports.useContext($f57aed4a881a3485$var$Context),[tt,rt]=reactExports.useState(0),nt=reactExports.useMemo(()=>({parent:et,modalCount:tt,addModal(){rt(at=>at+1),et&&et.addModal()},removeModal(){rt(at=>at-1),et&&et.removeModal()}}),[et,tt]);return React.createElement($f57aed4a881a3485$var$Context.Provider,{value:nt},j)}function $f57aed4a881a3485$export$33ffd74ebf07f060(s){let j=reactExports.useContext($f57aed4a881a3485$var$Context);if(!j)throw new Error("Modal is not contained within a provider");return reactExports.useEffect(()=>{if(!(s!=null&&s.isDisabled||!j||!j.parent))return j.parent.addModal(),()=>{j&&j.parent&&j.parent.removeModal()}},[j,j.parent,s==null?void 0:s.isDisabled]),{modalProps:{"data-ismodal":!(s!=null&&s.isDisabled)}}}var $a2f21f5f14f60553$exports={};$a2f21f5f14f60553$exports={"ar-AE":$773d5888b972f1cf$exports,"bg-BG":$d11f19852b941573$exports,"cs-CZ":$b983974c2ee1efb3$exports,"da-DK":$5809cc9d4e92de73$exports,"de-DE":$c68c2e4fc74398d1$exports,"el-GR":$0898b4c153db2b77$exports,"en-US":$6d74810286a15183$exports,"es-ES":$309d73dc65f78055$exports,"et-EE":$44ad94f7205cf593$exports,"fi-FI":$7c28f5687f0779a9$exports,"fr-FR":$e6d75df4b68bd73a$exports,"he-IL":$87505c9dab186d0f$exports,"hr-HR":$553439c3ffb3e492$exports,"hu-HU":$74cf411061b983a2$exports,"it-IT":$e933f298574dc435$exports,"ja-JP":$ac91fc9fe02f71f6$exports,"ko-KR":$52b96f86422025af$exports,"lt-LT":$c0d724c3e51dafa6$exports,"lv-LV":$c92899672a3fe72e$exports,"nb-NO":$9f576b39d8e7a9d6$exports,"nl-NL":$9d025808aeec81a7$exports,"pl-PL":$fce709921e2c0fa6$exports,"pt-BR":$2599cf0c4ab37f59$exports,"pt-PT":$3c220ae7ef8a35fd$exports,"ro-RO":$93562b5094072f54$exports,"ru-RU":$cd9e2abd0d06c7b4$exports,"sk-SK":$45375701f409adf1$exports,"sl-SI":$27fab53a576de9dd$exports,"sr-SP":$4438748d9952e7c7$exports,"sv-SE":$0936d7347ef4da4c$exports,"tr-TR":$29700c92185d38f8$exports,"uk-UA":$662ccaf2be4c25b3$exports,"zh-CN":$d80a27deda7cdb3c$exports,"zh-TW":$2b2734393847c884$exports};function $86ea4cb521eb2e37$export$2317d149ed6f78c4(s){let{onDismiss:j,...et}=s,tt=$fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault$2($a2f21f5f14f60553$exports),"@react-aria/overlays"),rt=$313b98861ee5dd6c$export$d6875122194c7b44(et,tt.format("dismiss")),nt=()=>{j&&j()};return React.createElement($5c3e21d68f1c4674$export$439d29a4e110a164,null,React.createElement("button",{...rt,tabIndex:-1,onClick:nt,style:{width:1,height:1}}))}const $337b884510726a0d$export$a2200b96afd16271=React.createContext(null);function $337b884510726a0d$export$14c98a7594375490(){let s=reactExports.useContext($337b884510726a0d$export$a2200b96afd16271),j=s==null?void 0:s.setContain;$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{j==null||j(!0)},[j])}function $feb5ffebff200149$export$d3e3bd3e26688c04(s){return $c87311424ea30a05$export$e1865c3bedcd822b()?s.altKey:s.ctrlKey}function $feb5ffebff200149$export$16792effe837dba3(s){return $c87311424ea30a05$export$9ac100e40613ea10()?s.metaKey:s.ctrlKey}const $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS=1e3;function $fb3050f43d946246$export$e32c88dfddc6e1d8(s){let{keyboardDelegate:j,selectionManager:et,onTypeSelect:tt}=s,rt=reactExports.useRef({search:"",timeout:null}).current,nt=at=>{let it=$fb3050f43d946246$var$getStringForKey(at.key);if(!it||at.ctrlKey||at.metaKey||!at.currentTarget.contains(at.target))return;it===" "&&rt.search.trim().length>0&&(at.preventDefault(),"continuePropagation"in at||at.stopPropagation()),rt.search+=it;let ot=j.getKeyForSearch(rt.search,et.focusedKey);ot==null&&(ot=j.getKeyForSearch(rt.search)),ot!=null&&(et.setFocusedKey(ot),tt&&tt(ot)),clearTimeout(rt.timeout),rt.timeout=setTimeout(()=>{rt.search=""},$fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS)};return{typeSelectProps:{onKeyDownCapture:j.getKeyForSearch?nt:null}}}function $fb3050f43d946246$var$getStringForKey(s){return s.length===1||!/^[A-Z]/i.test(s)?s:""}function $ae20dd8cbca75726$export$d6daf82dcd84e87c(s){let{selectionManager:j,keyboardDelegate:et,ref:tt,autoFocus:rt=!1,shouldFocusWrap:nt=!1,disallowEmptySelection:at=!1,disallowSelectAll:it=!1,selectOnFocus:ot=j.selectionBehavior==="replace",disallowTypeAhead:st=!1,shouldUseVirtualFocus:lt,allowsTabNavigation:ct=!1,isVirtualized:ut,scrollRef:dt=tt,linkBehavior:ft="action"}=s,{direction:ht}=$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),mt=$ea8dcbcb9ea1b556$export$9a302a45f65d0572(),vt=_t=>{if(_t.altKey&&_t.key==="Tab"&&_t.preventDefault(),!tt.current.contains(_t.target))return;const wt=(kt,It)=>{if(kt!=null){if(j.isLink(kt)&&ft==="selection"&&ot&&!$feb5ffebff200149$export$d3e3bd3e26688c04(_t)){reactDomExports.flushSync(()=>{j.setFocusedKey(kt,It)});let Tt=dt.current.querySelector(`[data-key="${CSS.escape(kt.toString())}"]`);mt.open(Tt,_t);return}if(j.setFocusedKey(kt,It),j.isLink(kt)&&ft==="override")return;_t.shiftKey&&j.selectionMode==="multiple"?j.extendSelection(kt):ot&&!$feb5ffebff200149$export$d3e3bd3e26688c04(_t)&&j.replaceSelection(kt)}};switch(_t.key){case"ArrowDown":if(et.getKeyBelow){var Rt,Pt;_t.preventDefault();let kt=j.focusedKey!=null?et.getKeyBelow(j.focusedKey):(Rt=et.getFirstKey)===null||Rt===void 0?void 0:Rt.call(et);kt==null&&nt&&(kt=(Pt=et.getFirstKey)===null||Pt===void 0?void 0:Pt.call(et,j.focusedKey)),wt(kt)}break;case"ArrowUp":if(et.getKeyAbove){var Et,Ot;_t.preventDefault();let kt=j.focusedKey!=null?et.getKeyAbove(j.focusedKey):(Et=et.getLastKey)===null||Et===void 0?void 0:Et.call(et);kt==null&&nt&&(kt=(Ot=et.getLastKey)===null||Ot===void 0?void 0:Ot.call(et,j.focusedKey)),wt(kt)}break;case"ArrowLeft":if(et.getKeyLeftOf){var Mt,Dt;_t.preventDefault();let kt=et.getKeyLeftOf(j.focusedKey);kt==null&&nt&&(kt=ht==="rtl"?(Mt=et.getFirstKey)===null||Mt===void 0?void 0:Mt.call(et,j.focusedKey):(Dt=et.getLastKey)===null||Dt===void 0?void 0:Dt.call(et,j.focusedKey)),wt(kt,ht==="rtl"?"first":"last")}break;case"ArrowRight":if(et.getKeyRightOf){var At,Nt;_t.preventDefault();let kt=et.getKeyRightOf(j.focusedKey);kt==null&&nt&&(kt=ht==="rtl"?(At=et.getLastKey)===null||At===void 0?void 0:At.call(et,j.focusedKey):(Nt=et.getFirstKey)===null||Nt===void 0?void 0:Nt.call(et,j.focusedKey)),wt(kt,ht==="rtl"?"last":"first")}break;case"Home":if(et.getFirstKey){_t.preventDefault();let kt=et.getFirstKey(j.focusedKey,$feb5ffebff200149$export$16792effe837dba3(_t));j.setFocusedKey(kt),$feb5ffebff200149$export$16792effe837dba3(_t)&&_t.shiftKey&&j.selectionMode==="multiple"?j.extendSelection(kt):ot&&j.replaceSelection(kt)}break;case"End":if(et.getLastKey){_t.preventDefault();let kt=et.getLastKey(j.focusedKey,$feb5ffebff200149$export$16792effe837dba3(_t));j.setFocusedKey(kt),$feb5ffebff200149$export$16792effe837dba3(_t)&&_t.shiftKey&&j.selectionMode==="multiple"?j.extendSelection(kt):ot&&j.replaceSelection(kt)}break;case"PageDown":if(et.getKeyPageBelow){_t.preventDefault();let kt=et.getKeyPageBelow(j.focusedKey);wt(kt)}break;case"PageUp":if(et.getKeyPageAbove){_t.preventDefault();let kt=et.getKeyPageAbove(j.focusedKey);wt(kt)}break;case"a":$feb5ffebff200149$export$16792effe837dba3(_t)&&j.selectionMode==="multiple"&&it!==!0&&(_t.preventDefault(),j.selectAll());break;case"Escape":_t.preventDefault(),at||j.clearSelection();break;case"Tab":if(!ct){if(_t.shiftKey)tt.current.focus();else{let kt=$9bf71ea28793e738$export$2d6ec8fc375ceafa(tt.current,{tabbable:!0}),It,Tt;do Tt=kt.lastChild(),Tt&&(It=Tt);while(Tt);It&&!It.contains(document.activeElement)&&$7215afc6de606d6b$export$de79e2c695e052f3(It)}break}}},pt=reactExports.useRef({top:0,left:0});$e9faafb641e167db$export$90fc3a17d93f704c(dt,"scroll",ut?null:()=>{pt.current={top:dt.current.scrollTop,left:dt.current.scrollLeft}});let gt=_t=>{if(j.isFocused){_t.currentTarget.contains(_t.target)||j.setFocused(!1);return}if(_t.currentTarget.contains(_t.target)){if(j.setFocused(!0),j.focusedKey==null){let Pt=Ot=>{Ot!=null&&(j.setFocusedKey(Ot),ot&&j.replaceSelection(Ot))},Et=_t.relatedTarget;var wt,Rt;Et&&_t.currentTarget.compareDocumentPosition(Et)&Node.DOCUMENT_POSITION_FOLLOWING?Pt((wt=j.lastSelectedKey)!==null&&wt!==void 0?wt:et.getLastKey()):Pt((Rt=j.firstSelectedKey)!==null&&Rt!==void 0?Rt:et.getFirstKey())}else ut||(dt.current.scrollTop=pt.current.top,dt.current.scrollLeft=pt.current.left);if(!ut&&j.focusedKey!=null){let Pt=dt.current.querySelector(`[data-key="${CSS.escape(j.focusedKey.toString())}"]`);Pt&&(Pt.contains(document.activeElement)||$7215afc6de606d6b$export$de79e2c695e052f3(Pt),$507fabe10e71c6fb$export$630ff653c5ada6a9()==="keyboard"&&$2f04cbc44ee30ce0$export$c826860796309d1b(Pt,{containingElement:tt.current}))}}},yt=_t=>{_t.currentTarget.contains(_t.relatedTarget)||j.setFocused(!1)};const $t=reactExports.useRef(rt);reactExports.useEffect(()=>{if($t.current){let _t=null;rt==="first"&&(_t=et.getFirstKey()),rt==="last"&&(_t=et.getLastKey());let wt=j.selectedKeys;if(wt.size){for(let Rt of wt)if(j.canSelectItem(Rt)){_t=Rt;break}}j.setFocused(!0),j.setFocusedKey(_t),_t==null&&!lt&&$6a99195332edec8b$export$80f3e147d781571c(tt.current)}},[]);let xt=reactExports.useRef(j.focusedKey);reactExports.useEffect(()=>{let _t=$507fabe10e71c6fb$export$630ff653c5ada6a9();if(j.isFocused&&j.focusedKey!=null&&(dt!=null&&dt.current)){let wt=dt.current.querySelector(`[data-key="${CSS.escape(j.focusedKey.toString())}"]`);wt&&(_t==="keyboard"||$t.current)&&(ut||$2f04cbc44ee30ce0$export$53a0910f038337bd(dt.current,wt),$2f04cbc44ee30ce0$export$c826860796309d1b(wt,{containingElement:tt.current}))}j.isFocused&&j.focusedKey==null&&xt.current!=null&&$6a99195332edec8b$export$80f3e147d781571c(tt.current),xt.current=j.focusedKey,$t.current=!1},[ut,dt,j.focusedKey,j.isFocused,tt]);let Ct={onKeyDown:vt,onFocus:gt,onBlur:yt,onMouseDown(_t){dt.current===_t.target&&_t.preventDefault()}},{typeSelectProps:bt}=$fb3050f43d946246$export$e32c88dfddc6e1d8({keyboardDelegate:et,selectionManager:j});st||(Ct=$3ef42575df84b30b$export$9d1611c77c2fe928(bt,Ct));let St;return lt||(St=j.focusedKey==null?0:-1),{collectionProps:{...Ct,tabIndex:St}}}function $880e95eb8b93ba9a$export$ecf600387e221c37(s){let{selectionManager:j,key:et,ref:tt,shouldSelectOnPressUp:rt,shouldUseVirtualFocus:nt,focus:at,isDisabled:it,onAction:ot,allowsDifferentPressOrigin:st,linkBehavior:lt="action"}=s,ct=$ea8dcbcb9ea1b556$export$9a302a45f65d0572(),ut=Dt=>{if(Dt.pointerType==="keyboard"&&$feb5ffebff200149$export$d3e3bd3e26688c04(Dt))j.toggleSelection(et);else{if(j.selectionMode==="none")return;if(j.isLink(et)){if(lt==="selection"){ct.open(tt.current,Dt),j.setSelectedKeys(j.selectedKeys);return}else if(lt==="override"||lt==="none")return}j.selectionMode==="single"?j.isSelected(et)&&!j.disallowEmptySelection?j.toggleSelection(et):j.replaceSelection(et):Dt&&Dt.shiftKey?j.extendSelection(et):j.selectionBehavior==="toggle"||Dt&&($feb5ffebff200149$export$16792effe837dba3(Dt)||Dt.pointerType==="touch"||Dt.pointerType==="virtual")?j.toggleSelection(et):j.replaceSelection(et)}};reactExports.useEffect(()=>{et===j.focusedKey&&j.isFocused&&!nt&&(at?at():document.activeElement!==tt.current&&$6a99195332edec8b$export$80f3e147d781571c(tt.current))},[tt,et,j.focusedKey,j.childFocusStrategy,j.isFocused,nt]),it=it||j.isDisabled(et);let dt={};!nt&&!it?dt={tabIndex:et===j.focusedKey?0:-1,onFocus(Dt){Dt.target===tt.current&&j.setFocusedKey(et)}}:it&&(dt.onMouseDown=Dt=>{Dt.preventDefault()});let ft=j.isLink(et)&<==="override",ht=j.isLink(et)&<!=="selection"&<!=="none",mt=!it&&j.canSelectItem(et)&&!ft,vt=(ot||ht)&&!it,pt=vt&&(j.selectionBehavior==="replace"?!mt:!mt||j.isEmpty),gt=vt&&mt&&j.selectionBehavior==="replace",yt=pt||gt,$t=reactExports.useRef(null),xt=yt&&mt,Ct=reactExports.useRef(!1),bt=reactExports.useRef(!1),St=Dt=>{ot&&ot(),ht&&ct.open(tt.current,Dt)},_t={};rt?(_t.onPressStart=Dt=>{$t.current=Dt.pointerType,Ct.current=xt,Dt.pointerType==="keyboard"&&(!yt||$880e95eb8b93ba9a$var$isSelectionKey())&&ut(Dt)},st?(_t.onPressUp=pt?null:Dt=>{Dt.pointerType!=="keyboard"&&mt&&ut(Dt)},_t.onPress=pt?St:null):_t.onPress=Dt=>{if(pt||gt&&Dt.pointerType!=="mouse"){if(Dt.pointerType==="keyboard"&&!$880e95eb8b93ba9a$var$isActionKey())return;St(Dt)}else Dt.pointerType!=="keyboard"&&mt&&ut(Dt)}):(_t.onPressStart=Dt=>{$t.current=Dt.pointerType,Ct.current=xt,bt.current=pt,mt&&(Dt.pointerType==="mouse"&&!pt||Dt.pointerType==="keyboard"&&(!vt||$880e95eb8b93ba9a$var$isSelectionKey()))&&ut(Dt)},_t.onPress=Dt=>{(Dt.pointerType==="touch"||Dt.pointerType==="pen"||Dt.pointerType==="virtual"||Dt.pointerType==="keyboard"&&yt&&$880e95eb8b93ba9a$var$isActionKey()||Dt.pointerType==="mouse"&&bt.current)&&(yt?St(Dt):mt&&ut(Dt))}),dt["data-key"]=et,_t.preventFocusOnPress=nt;let{pressProps:wt,isPressed:Rt}=$f6c31cce2adf654f$export$45712eceda6fad21(_t),Pt=gt?Dt=>{$t.current==="mouse"&&(Dt.stopPropagation(),Dt.preventDefault(),St(Dt))}:void 0,{longPressProps:Et}=$8a26561d2877236e$export$c24ed0104d07eab9({isDisabled:!xt,onLongPress(Dt){Dt.pointerType==="touch"&&(ut(Dt),j.setSelectionBehavior("toggle"))}}),Ot=Dt=>{$t.current==="touch"&&Ct.current&&Dt.preventDefault()},Mt=j.isLink(et)?Dt=>{$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening||Dt.preventDefault()}:void 0;return{itemProps:$3ef42575df84b30b$export$9d1611c77c2fe928(dt,mt||pt?wt:{},xt?Et:{},{onDoubleClick:Pt,onDragStartCapture:Ot,onClick:Mt}),isPressed:Rt,isSelected:j.isSelected(et),isFocused:j.isFocused&&j.focusedKey===et,isDisabled:it,allowsSelection:mt,hasAction:yt}}function $880e95eb8b93ba9a$var$isActionKey(){let s=window.event;return(s==null?void 0:s.key)==="Enter"}function $880e95eb8b93ba9a$var$isSelectionKey(){let s=window.event;return(s==null?void 0:s.key)===" "||(s==null?void 0:s.code)==="Space"}class $2a25aae57d74318e$export$a05409b8bb224a5a{getNextKey(j){for(j=this.collection.getKeyAfter(j);j!=null;){if(this.collection.getItem(j).type==="item"&&!this.disabledKeys.has(j))return j;j=this.collection.getKeyAfter(j)}return null}getPreviousKey(j){for(j=this.collection.getKeyBefore(j);j!=null;){if(this.collection.getItem(j).type==="item"&&!this.disabledKeys.has(j))return j;j=this.collection.getKeyBefore(j)}return null}findKey(j,et,tt){let rt=this.getItem(j);if(!rt)return null;let nt=rt.getBoundingClientRect();do j=et(j),rt=this.getItem(j);while(rt&&tt(nt,rt.getBoundingClientRect()));return j}isSameRow(j,et){return j.top===et.top||j.left!==et.left}isSameColumn(j,et){return j.left===et.left||j.top!==et.top}getKeyBelow(j){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(j,et=>this.getNextKey(et),this.isSameRow):this.getNextKey(j)}getKeyAbove(j){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(j,et=>this.getPreviousKey(et),this.isSameRow):this.getPreviousKey(j)}getNextColumn(j,et){return et?this.getPreviousKey(j):this.getNextKey(j)}getKeyRightOf(j){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(j,this.direction==="rtl"):this.findKey(j,et=>this.getNextColumn(et,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(j,this.direction==="rtl"):null}getKeyLeftOf(j){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(j,this.direction==="ltr"):this.findKey(j,et=>this.getNextColumn(et,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(j,this.direction==="ltr"):null}getFirstKey(){let j=this.collection.getFirstKey();for(;j!=null;){if(this.collection.getItem(j).type==="item"&&!this.disabledKeys.has(j))return j;j=this.collection.getKeyAfter(j)}return null}getLastKey(){let j=this.collection.getLastKey();for(;j!=null;){if(this.collection.getItem(j).type==="item"&&!this.disabledKeys.has(j))return j;j=this.collection.getKeyBefore(j)}return null}getItem(j){return this.ref.current.querySelector(`[data-key="${CSS.escape(j.toString())}"]`)}getKeyPageAbove(j){let et=this.ref.current,tt=this.getItem(j);if(!tt)return null;if(!$62d8ded9296f3872$export$2bb74740c4e19def(et))return this.getFirstKey();let rt=et.getBoundingClientRect(),nt=tt.getBoundingClientRect();if(this.orientation==="horizontal"){let at=rt.x-et.scrollLeft,it=Math.max(0,nt.x-at+nt.width-rt.width);for(;tt&&nt.x-at>it;)j=this.getKeyAbove(j),tt=j==null?null:this.getItem(j),nt=tt==null?void 0:tt.getBoundingClientRect()}else{let at=rt.y-et.scrollTop,it=Math.max(0,nt.y-at+nt.height-rt.height);for(;tt&&nt.y-at>it;)j=this.getKeyAbove(j),tt=j==null?null:this.getItem(j),nt=tt==null?void 0:tt.getBoundingClientRect()}return j!=null?j:this.getFirstKey()}getKeyPageBelow(j){let et=this.ref.current,tt=this.getItem(j);if(!tt)return null;if(!$62d8ded9296f3872$export$2bb74740c4e19def(et))return this.getLastKey();let rt=et.getBoundingClientRect(),nt=tt.getBoundingClientRect();if(this.orientation==="horizontal"){let at=rt.x-et.scrollLeft,it=Math.min(et.scrollWidth,nt.x-at-nt.width+rt.width);for(;tt&&nt.x-at<it;)j=this.getKeyBelow(j),tt=j==null?null:this.getItem(j),nt=tt==null?void 0:tt.getBoundingClientRect()}else{let at=rt.y-et.scrollTop,it=Math.min(et.scrollHeight,nt.y-at-nt.height+rt.height);for(;tt&&nt.y-at<it;)j=this.getKeyBelow(j),tt=j==null?null:this.getItem(j),nt=tt==null?void 0:tt.getBoundingClientRect()}return j!=null?j:this.getLastKey()}getKeyForSearch(j,et){if(!this.collator)return null;let tt=this.collection,rt=et||this.getFirstKey();for(;rt!=null;){let nt=tt.getItem(rt),at=nt.textValue.slice(0,j.length);if(nt.textValue&&this.collator.compare(at,j)===0)return rt;rt=this.getKeyBelow(rt)}return null}constructor(...j){if(j.length===1){let et=j[0];this.collection=et.collection,this.ref=et.ref,this.collator=et.collator,this.disabledKeys=et.disabledKeys||new Set,this.orientation=et.orientation,this.direction=et.direction,this.layout=et.layout||"stack"}else this.collection=j[0],this.disabledKeys=j[1],this.ref=j[2],this.collator=j[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function $982254629710d113$export$b95089534ab7c1fd(s){let{selectionManager:j,collection:et,disabledKeys:tt,ref:rt,keyboardDelegate:nt}=s,at=$325a3faab7a68acd$export$a16aca283550c30d({usage:"search",sensitivity:"base"}),it=j.disabledBehavior,ot=reactExports.useMemo(()=>nt||new $2a25aae57d74318e$export$a05409b8bb224a5a(et,it==="selection"?new Set:tt,rt,at),[nt,et,tt,rt,at,it]),{collectionProps:st}=$ae20dd8cbca75726$export$d6daf82dcd84e87c({...s,ref:rt,selectionManager:j,keyboardDelegate:ot});return{listProps:st}}var $f23889fffbde9058$exports={};$f23889fffbde9058$exports={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:s=>`تاريخ محدد: ${s.date}`,selectedRangeDescription:s=>`المدى الزمني المحدد: ${s.startDate} إلى ${s.endDate}`,selectedTimeDescription:s=>`الوقت المحدد: ${s.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var $09d9badaa8903929$exports={};$09d9badaa8903929$exports={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:s=>`Избрана дата: ${s.date}`,selectedRangeDescription:s=>`Избран диапазон: ${s.startDate} до ${s.endDate}`,selectedTimeDescription:s=>`Избрано време: ${s.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var $151b77e0fd711730$exports={};$151b77e0fd711730$exports={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:s=>`Vybrané datum: ${s.date}`,selectedRangeDescription:s=>`Vybrané období: ${s.startDate} až ${s.endDate}`,selectedTimeDescription:s=>`Vybraný čas: ${s.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var $61915aa8630b90a2$exports={};$61915aa8630b90a2$exports={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:s=>`Valgt dato: ${s.date}`,selectedRangeDescription:s=>`Valgt interval: ${s.startDate} til ${s.endDate}`,selectedTimeDescription:s=>`Valgt tidspunkt: ${s.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var $35cea00159787840$exports={};$35cea00159787840$exports={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:s=>`Ausgewähltes Datum: ${s.date}`,selectedRangeDescription:s=>`Ausgewählter Bereich: ${s.startDate} bis ${s.endDate}`,selectedTimeDescription:s=>`Ausgewählte Zeit: ${s.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var $518b4e82b9eacafd$exports={};$518b4e82b9eacafd$exports={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:s=>`Επιλεγμένη ημερομηνία: ${s.date}`,selectedRangeDescription:s=>`Επιλεγμένο εύρος: ${s.startDate} έως ${s.endDate}`,selectedTimeDescription:s=>`Επιλεγμένη ώρα: ${s.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var $1c2b297f7e2cf474$exports={};$1c2b297f7e2cf474$exports={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:s=>`Selected Date: ${s.date}`,selectedRangeDescription:s=>`Selected Range: ${s.startDate} to ${s.endDate}`,selectedTimeDescription:s=>`Selected Time: ${s.time}`};var $07f628a707cf9b18$exports={};$07f628a707cf9b18$exports={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:s=>`Fecha seleccionada: ${s.date}`,selectedRangeDescription:s=>`Rango seleccionado: ${s.startDate} a ${s.endDate}`,selectedTimeDescription:s=>`Hora seleccionada: ${s.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var $db553ffe17c7f4db$exports={};$db553ffe17c7f4db$exports={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:s=>`Valitud kuupäev: ${s.date}`,selectedRangeDescription:s=>`Valitud vahemik: ${s.startDate} kuni ${s.endDate}`,selectedTimeDescription:s=>`Valitud aeg: ${s.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var $4afcfe00cd703f83$exports={};$4afcfe00cd703f83$exports={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:s=>`Valittu päivämäärä: ${s.date}`,selectedRangeDescription:s=>`Valittu aikaväli: ${s.startDate} – ${s.endDate}`,selectedTimeDescription:s=>`Valittu aika: ${s.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var $1d2645d18d4c5be0$exports={};$1d2645d18d4c5be0$exports={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:s=>`Date sélectionnée : ${s.date}`,selectedRangeDescription:s=>`Plage sélectionnée : ${s.startDate} au ${s.endDate}`,selectedTimeDescription:s=>`Heure choisie : ${s.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var $64cb6a9be1f6fa48$exports={};$64cb6a9be1f6fa48$exports={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:s=>`תאריך נבחר: ${s.date}`,selectedRangeDescription:s=>`טווח נבחר: ${s.startDate} עד ${s.endDate}`,selectedTimeDescription:s=>`זמן נבחר: ${s.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var $2a1ef2e8050be27a$exports={};$2a1ef2e8050be27a$exports={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:s=>`Odabrani datum: ${s.date}`,selectedRangeDescription:s=>`Odabrani raspon: ${s.startDate} do ${s.endDate}`,selectedTimeDescription:s=>`Odabrano vrijeme: ${s.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var $ad429dca102acd0e$exports={};$ad429dca102acd0e$exports={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:s=>`Kijelölt dátum: ${s.date}`,selectedRangeDescription:s=>`Kijelölt tartomány: ${s.startDate}–${s.endDate}`,selectedTimeDescription:s=>`Kijelölt idő: ${s.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var $6e68cb5d1cb97bd2$exports={};$6e68cb5d1cb97bd2$exports={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:s=>`Data selezionata: ${s.date}`,selectedRangeDescription:s=>`Intervallo selezionato: da ${s.startDate} a ${s.endDate}`,selectedTimeDescription:s=>`Ora selezionata: ${s.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var $a82ee9af063ee069$exports={};$a82ee9af063ee069$exports={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:s=>`選択した日付 : ${s.date}`,selectedRangeDescription:s=>`選択範囲 : ${s.startDate} から ${s.endDate}`,selectedTimeDescription:s=>`選択した時間 : ${s.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var $67e9091dbf37d4eb$exports={};$67e9091dbf37d4eb$exports={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:s=>`선택 일자: ${s.date}`,selectedRangeDescription:s=>`선택 범위: ${s.startDate} ~ ${s.endDate}`,selectedTimeDescription:s=>`선택 시간: ${s.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var $75834f9729f653d1$exports={};$75834f9729f653d1$exports={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:s=>`Pasirinkta data: ${s.date}`,selectedRangeDescription:s=>`Pasirinktas intervalas: nuo ${s.startDate} iki ${s.endDate}`,selectedTimeDescription:s=>`Pasirinktas laikas: ${s.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var $a2df2c2520b4a7f0$exports={};$a2df2c2520b4a7f0$exports={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:s=>`Atlasītais datums: ${s.date}`,selectedRangeDescription:s=>`Atlasītais diapazons: no ${s.startDate} līdz ${s.endDate}`,selectedTimeDescription:s=>`Atlasītais laiks: ${s.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var $aedcd71db4933ed5$exports={};$aedcd71db4933ed5$exports={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:s=>`Valgt dato: ${s.date}`,selectedRangeDescription:s=>`Valgt område: ${s.startDate} til ${s.endDate}`,selectedTimeDescription:s=>`Valgt tid: ${s.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var $3b2df9e54353046c$exports={};$3b2df9e54353046c$exports={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:s=>`Geselecteerde datum: ${s.date}`,selectedRangeDescription:s=>`Geselecteerd bereik: ${s.startDate} tot ${s.endDate}`,selectedTimeDescription:s=>`Geselecteerde tijd: ${s.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var $c03fe977fcfafe93$exports={};$c03fe977fcfafe93$exports={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:s=>`Wybrana data: ${s.date}`,selectedRangeDescription:s=>`Wybrany zakres: ${s.startDate} do ${s.endDate}`,selectedTimeDescription:s=>`Wybrany czas: ${s.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var $569f006fc292345f$exports={};$569f006fc292345f$exports={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:s=>`Data selecionada: ${s.date}`,selectedRangeDescription:s=>`Intervalo selecionado: ${s.startDate} a ${s.endDate}`,selectedTimeDescription:s=>`Hora selecionada: ${s.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var $7c2494e14452f2dd$exports={};$7c2494e14452f2dd$exports={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:s=>`Data selecionada: ${s.date}`,selectedRangeDescription:s=>`Intervalo selecionado: ${s.startDate} a ${s.endDate}`,selectedTimeDescription:s=>`Hora selecionada: ${s.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var $eb82ef981b5592bf$exports={};$eb82ef981b5592bf$exports={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:s=>`Dată selectată: ${s.date}`,selectedRangeDescription:s=>`Interval selectat: de la ${s.startDate} până la ${s.endDate}`,selectedTimeDescription:s=>`Ora selectată: ${s.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var $6efa0e119f396950$exports={};$6efa0e119f396950$exports={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:s=>`Выбранная дата: ${s.date}`,selectedRangeDescription:s=>`Выбранный диапазон: с ${s.startDate} по ${s.endDate}`,selectedTimeDescription:s=>`Выбранное время: ${s.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var $7f5e57085d7f5049$exports={};$7f5e57085d7f5049$exports={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:s=>`Vybratý dátum: ${s.date}`,selectedRangeDescription:s=>`Vybratý rozsah: od ${s.startDate} do ${s.endDate}`,selectedTimeDescription:s=>`Vybratý čas: ${s.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var $578ee7c11dcdde7a$exports={};$578ee7c11dcdde7a$exports={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:s=>`Izbrani datum: ${s.date}`,selectedRangeDescription:s=>`Izbrano območje: ${s.startDate} do ${s.endDate}`,selectedTimeDescription:s=>`Izbrani čas: ${s.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var $bbc3fd6cd0bc9d50$exports={};$bbc3fd6cd0bc9d50$exports={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:s=>`Izabrani datum: ${s.date}`,selectedRangeDescription:s=>`Izabrani opseg: od ${s.startDate} do ${s.endDate}`,selectedTimeDescription:s=>`Izabrano vreme: ${s.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var $0b04512118591d2a$exports={};$0b04512118591d2a$exports={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:s=>`Valt datum: ${s.date}`,selectedRangeDescription:s=>`Valt intervall: ${s.startDate} till ${s.endDate}`,selectedTimeDescription:s=>`Vald tid: ${s.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var $3a49d121fe4c9e1d$exports={};$3a49d121fe4c9e1d$exports={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:s=>`Seçilen Tarih: ${s.date}`,selectedRangeDescription:s=>`Seçilen Aralık: ${s.startDate} - ${s.endDate}`,selectedTimeDescription:s=>`Seçilen Zaman: ${s.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var $5ba21dbb8914919d$exports={};$5ba21dbb8914919d$exports={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:s=>`Вибрана дата: ${s.date}`,selectedRangeDescription:s=>`Вибраний діапазон: ${s.startDate} — ${s.endDate}`,selectedTimeDescription:s=>`Вибраний час: ${s.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var $51078838e1b16cd7$exports={};$51078838e1b16cd7$exports={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:s=>`选定的日期:${s.date}`,selectedRangeDescription:s=>`选定的范围:${s.startDate} 至 ${s.endDate}`,selectedTimeDescription:s=>`选定的时间:${s.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var $33fab8219207655a$exports={};$33fab8219207655a$exports={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:s=>`選定的日期:${s.date}`,selectedRangeDescription:s=>`選定的範圍:${s.startDate} 至 ${s.endDate}`,selectedTimeDescription:s=>`選定的時間:${s.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var $ed6aae4e5f766f1e$exports={};$ed6aae4e5f766f1e$exports={Empty:"فارغ"};var $38854e2b175151fa$exports={};$38854e2b175151fa$exports={Empty:"Изпразни"};var $15b25ab20f3945b2$exports={};$15b25ab20f3945b2$exports={Empty:"Prázdné"};var $692a4298b6b649a2$exports={};$692a4298b6b649a2$exports={Empty:"Tom"};var $1c6e1539193f1243$exports={};$1c6e1539193f1243$exports={Empty:"Leer"};var $1e8678632c464b6d$exports={};$1e8678632c464b6d$exports={Empty:"Άδειο"};var $4adc85d9bf5b9eed$exports={};$4adc85d9bf5b9eed$exports={Empty:"Empty"};var $41c4b2bb61dafbca$exports={};$41c4b2bb61dafbca$exports={Empty:"Vacío"};var $405f8b24f5dd2a60$exports={};$405f8b24f5dd2a60$exports={Empty:"Tühjenda"};var $7efe3ed02b9b9dd4$exports={};$7efe3ed02b9b9dd4$exports={Empty:"Tyhjä"};var $99fc4c101d92daf3$exports={};$99fc4c101d92daf3$exports={Empty:"Vide"};var $f9e155e6e8cacaa2$exports={};$f9e155e6e8cacaa2$exports={Empty:"ריק"};var $c31b5e8e9a249fd5$exports={};$c31b5e8e9a249fd5$exports={Empty:"Prazno"};var $9c5435bc17499bd9$exports={};$9c5435bc17499bd9$exports={Empty:"Üres"};var $6d1fc8e84d8165e1$exports={};$6d1fc8e84d8165e1$exports={Empty:"Vuoto"};var $46ea6b3641b83e71$exports={};$46ea6b3641b83e71$exports={Empty:"空"};var $0e3cc9a288289dc5$exports={};$0e3cc9a288289dc5$exports={Empty:"비어 있음"};var $4ff2bb25c0089ffb$exports={};$4ff2bb25c0089ffb$exports={Empty:"Tuščias"};var $6cf33cd4c010a2fb$exports={};$6cf33cd4c010a2fb$exports={Empty:"Tukšs"};var $5a9f8486f8b8837e$exports={};$5a9f8486f8b8837e$exports={Empty:"Tom"};var $583f94d807f6ecea$exports={};$583f94d807f6ecea$exports={Empty:"Leeg"};var $cc4dcfeea2b4050d$exports={};$cc4dcfeea2b4050d$exports={Empty:"Pusty"};var $68ac2954d56e12b4$exports={};$68ac2954d56e12b4$exports={Empty:"Vazio"};var $fdb0616f309780b0$exports={};$fdb0616f309780b0$exports={Empty:"Vazio"};var $fe1eccf4ee1d6f52$exports={};$fe1eccf4ee1d6f52$exports={Empty:"Gol"};var $a38b6c4e18725976$exports={};$a38b6c4e18725976$exports={Empty:"Не заполнено"};var $6c14ae2b766b652c$exports={};$6c14ae2b766b652c$exports={Empty:"Prázdne"};var $8f1c9692e16dc5eb$exports={};$8f1c9692e16dc5eb$exports={Empty:"Prazen"};var $d2aa7abea627cafa$exports={};$d2aa7abea627cafa$exports={Empty:"Prazno"};var $676b82e4b56408e6$exports={};$676b82e4b56408e6$exports={Empty:"Tomt"};var $14c9042552d7ce08$exports={};$14c9042552d7ce08$exports={Empty:"Boş"};var $393254ebcb66c9f5$exports={};$393254ebcb66c9f5$exports={Empty:"Пусто"};var $d49d621f310cf6ce$exports={};$d49d621f310cf6ce$exports={Empty:"空"};var $94b60c866ca5dfe6$exports={};$94b60c866ca5dfe6$exports={Empty:"空白"};function $parcel$interopDefault$1(s){return s&&s.__esModule?s.default:s}var $a99895ee3dc79e61$exports={};$a99895ee3dc79e61$exports={"ar-AE":$ed6aae4e5f766f1e$exports,"bg-BG":$38854e2b175151fa$exports,"cs-CZ":$15b25ab20f3945b2$exports,"da-DK":$692a4298b6b649a2$exports,"de-DE":$1c6e1539193f1243$exports,"el-GR":$1e8678632c464b6d$exports,"en-US":$4adc85d9bf5b9eed$exports,"es-ES":$41c4b2bb61dafbca$exports,"et-EE":$405f8b24f5dd2a60$exports,"fi-FI":$7efe3ed02b9b9dd4$exports,"fr-FR":$99fc4c101d92daf3$exports,"he-IL":$f9e155e6e8cacaa2$exports,"hr-HR":$c31b5e8e9a249fd5$exports,"hu-HU":$9c5435bc17499bd9$exports,"it-IT":$6d1fc8e84d8165e1$exports,"ja-JP":$46ea6b3641b83e71$exports,"ko-KR":$0e3cc9a288289dc5$exports,"lt-LT":$4ff2bb25c0089ffb$exports,"lv-LV":$6cf33cd4c010a2fb$exports,"nb-NO":$5a9f8486f8b8837e$exports,"nl-NL":$583f94d807f6ecea$exports,"pl-PL":$cc4dcfeea2b4050d$exports,"pt-BR":$68ac2954d56e12b4$exports,"pt-PT":$fdb0616f309780b0$exports,"ro-RO":$fe1eccf4ee1d6f52$exports,"ru-RU":$a38b6c4e18725976$exports,"sk-SK":$6c14ae2b766b652c$exports,"sl-SI":$8f1c9692e16dc5eb$exports,"sr-SP":$d2aa7abea627cafa$exports,"sv-SE":$676b82e4b56408e6$exports,"tr-TR":$14c9042552d7ce08$exports,"uk-UA":$393254ebcb66c9f5$exports,"zh-CN":$d49d621f310cf6ce$exports,"zh-TW":$94b60c866ca5dfe6$exports};function $d2e8511e6f209edf$export$e908e06f4b8e3402(s){const j=reactExports.useRef();let{value:et,textValue:tt,minValue:rt,maxValue:nt,isDisabled:at,isReadOnly:it,isRequired:ot,onIncrement:st,onIncrementPage:lt,onDecrement:ct,onDecrementPage:ut,onDecrementToMin:dt,onIncrementToMax:ft}=s;const ht=$fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault$1($a99895ee3dc79e61$exports),"@react-aria/spinbutton"),mt=()=>clearTimeout(j.current);reactExports.useEffect(()=>()=>mt(),[]);let vt=_t=>{if(!(_t.ctrlKey||_t.metaKey||_t.shiftKey||_t.altKey||it))switch(_t.key){case"PageUp":if(lt){_t.preventDefault(),lt();break}case"ArrowUp":case"Up":st&&(_t.preventDefault(),st());break;case"PageDown":if(ut){_t.preventDefault(),ut();break}case"ArrowDown":case"Down":ct&&(_t.preventDefault(),ct());break;case"Home":dt&&(_t.preventDefault(),dt());break;case"End":ft&&(_t.preventDefault(),ft());break}},pt=reactExports.useRef(!1),gt=()=>{pt.current=!0},yt=()=>{pt.current=!1};tt=tt===""?ht.format("Empty"):(tt||`${et}`).replace("-","−"),reactExports.useEffect(()=>{pt.current&&($319e236875307eab$export$d10ae4f68404609a("assertive"),$319e236875307eab$export$a9b970dcc4ae71a9(tt,"assertive"))},[tt]);const $t=$8ae05eaa5c114e9c$export$7f54fc3180508a52(_t=>{mt(),st(),j.current=window.setTimeout(()=>{(isNaN(nt)||isNaN(et)||et<nt)&&$t(60)},_t)}),xt=$8ae05eaa5c114e9c$export$7f54fc3180508a52(_t=>{mt(),ct(),j.current=window.setTimeout(()=>{(isNaN(rt)||isNaN(et)||et>rt)&&xt(60)},_t)});let Ct=_t=>{_t.preventDefault()},{addGlobalListener:bt,removeAllGlobalListeners:St}=$03deb23ff14920c4$export$4eaf04e54aa8eed6();return{spinButtonProps:{role:"spinbutton","aria-valuenow":isNaN(et)?null:et,"aria-valuetext":tt,"aria-valuemin":rt,"aria-valuemax":nt,"aria-disabled":at||null,"aria-readonly":it||null,"aria-required":ot||null,onKeyDown:vt,onFocus:gt,onBlur:yt},incrementButtonProps:{onPressStart:()=>{$t(400),bt(window,"contextmenu",Ct)},onPressEnd:()=>{mt(),St()},onFocus:gt,onBlur:yt},decrementButtonProps:{onPressStart:()=>{xt(400),bt(window,"contextmenu",Ct)},onPressEnd:()=>{mt(),St()},onFocus:gt,onBlur:yt}}}function $parcel$interopDefault(s){return s&&s.__esModule?s.default:s}var $dfb4eba373ed9493$exports={};$dfb4eba373ed9493$exports={"ar-AE":$f23889fffbde9058$exports,"bg-BG":$09d9badaa8903929$exports,"cs-CZ":$151b77e0fd711730$exports,"da-DK":$61915aa8630b90a2$exports,"de-DE":$35cea00159787840$exports,"el-GR":$518b4e82b9eacafd$exports,"en-US":$1c2b297f7e2cf474$exports,"es-ES":$07f628a707cf9b18$exports,"et-EE":$db553ffe17c7f4db$exports,"fi-FI":$4afcfe00cd703f83$exports,"fr-FR":$1d2645d18d4c5be0$exports,"he-IL":$64cb6a9be1f6fa48$exports,"hr-HR":$2a1ef2e8050be27a$exports,"hu-HU":$ad429dca102acd0e$exports,"it-IT":$6e68cb5d1cb97bd2$exports,"ja-JP":$a82ee9af063ee069$exports,"ko-KR":$67e9091dbf37d4eb$exports,"lt-LT":$75834f9729f653d1$exports,"lv-LV":$a2df2c2520b4a7f0$exports,"nb-NO":$aedcd71db4933ed5$exports,"nl-NL":$3b2df9e54353046c$exports,"pl-PL":$c03fe977fcfafe93$exports,"pt-BR":$569f006fc292345f$exports,"pt-PT":$7c2494e14452f2dd$exports,"ro-RO":$eb82ef981b5592bf$exports,"ru-RU":$6efa0e119f396950$exports,"sk-SK":$7f5e57085d7f5049$exports,"sl-SI":$578ee7c11dcdde7a$exports,"sr-SP":$bbc3fd6cd0bc9d50$exports,"sv-SE":$0b04512118591d2a$exports,"tr-TR":$3a49d121fe4c9e1d$exports,"uk-UA":$5ba21dbb8914919d$exports,"zh-CN":$51078838e1b16cd7$exports,"zh-TW":$33fab8219207655a$exports};function $3dfb0f96be0d6a08$export$4a931266a3838b86(s,j,et){let{direction:tt}=$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),rt=reactExports.useMemo(()=>$9bf71ea28793e738$export$c5251b9e124bf29(j),[j]),nt=ot=>{if(ot.currentTarget.contains(ot.target)&&(ot.altKey&&(ot.key==="ArrowDown"||ot.key==="ArrowUp")&&"setOpen"in s&&(ot.preventDefault(),ot.stopPropagation(),s.setOpen(!0)),!et))switch(ot.key){case"ArrowLeft":ot.preventDefault(),ot.stopPropagation(),tt==="rtl"?rt.focusNext():rt.focusPrevious();break;case"ArrowRight":ot.preventDefault(),ot.stopPropagation(),tt==="rtl"?rt.focusPrevious():rt.focusNext();break}},at=()=>{var ot;let st=(ot=window.event)===null||ot===void 0?void 0:ot.target,lt=$9bf71ea28793e738$export$2d6ec8fc375ceafa(j.current,{tabbable:!0});if(st&&(lt.currentNode=st,st=lt.previousNode()),!st){let ct;do ct=lt.lastChild(),ct&&(st=ct);while(ct)}for(;st!=null&&st.hasAttribute("data-placeholder");){let ct=lt.previousNode();if(ct&&ct.hasAttribute("data-placeholder"))st=ct;else break}st&&st.focus()},{pressProps:it}=$f6c31cce2adf654f$export$45712eceda6fad21({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(ot){ot.pointerType==="mouse"&&at()},onPress(ot){ot.pointerType!=="mouse"&&at()}});return $3ef42575df84b30b$export$9d1611c77c2fe928(it,{onKeyDown:nt})}const $16f0b7bb276bc17e$export$653eddfc964b0f8a=new WeakMap,$16f0b7bb276bc17e$export$300019f83c56d282="__role_"+Date.now(),$16f0b7bb276bc17e$export$7b3062cd49e80452="__focusManager_"+Date.now();function $16f0b7bb276bc17e$export$5591b0b878c1a989(s,j,et){var tt;let{isInvalid:rt,validationErrors:nt,validationDetails:at}=j.displayValidation,{labelProps:it,fieldProps:ot,descriptionProps:st,errorMessageProps:lt}=$2baaea4c71418dea$export$294aa081a6c6f55d({...s,labelElementType:"span",isInvalid:rt,errorMessage:s.errorMessage||nt}),ct=reactExports.useRef(null),{focusWithinProps:ut}=$9ab94262bd0047c7$export$420e68273165f4ec({...s,onFocusWithin(_t){var wt;ct.current=j.value,(wt=s.onFocus)===null||wt===void 0||wt.call(s,_t)},onBlurWithin:_t=>{var wt;j.confirmPlaceholder(),j.value!==ct.current&&j.commitValidation(),(wt=s.onBlur)===null||wt===void 0||wt.call(s,_t)},onFocusWithinChange:s.onFocusChange}),dt=$fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($dfb4eba373ed9493$exports),"@react-aria/datepicker"),ft=j.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",ht=j.maxGranularity==="hour"?"time":"date",mt=j.value?dt.format(ft,{[ht]:j.formatValue({month:"long"})}):"",vt=$ef06256079686ba0$export$f8aeda7b10753fa1(mt),pt=s[$16f0b7bb276bc17e$export$300019f83c56d282]==="presentation"?ot["aria-describedby"]:[vt["aria-describedby"],ot["aria-describedby"]].filter(Boolean).join(" ")||void 0,gt=s[$16f0b7bb276bc17e$export$7b3062cd49e80452],yt=reactExports.useMemo(()=>gt||$9bf71ea28793e738$export$c5251b9e124bf29(et),[gt,et]),$t=$3dfb0f96be0d6a08$export$4a931266a3838b86(j,et,s[$16f0b7bb276bc17e$export$300019f83c56d282]==="presentation");$16f0b7bb276bc17e$export$653eddfc964b0f8a.set(j,{ariaLabel:s["aria-label"],ariaLabelledBy:[it.id,s["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:pt,focusManager:yt});let xt=reactExports.useRef(s.autoFocus),Ct;s[$16f0b7bb276bc17e$export$300019f83c56d282]==="presentation"?Ct={role:"presentation"}:Ct=$3ef42575df84b30b$export$9d1611c77c2fe928(ot,{role:"group","aria-disabled":s.isDisabled||void 0,"aria-describedby":pt}),reactExports.useEffect(()=>{xt.current&&yt.focusFirst(),xt.current=!1},[yt]),$99facab73266f662$export$5add1d006293d136(s.inputRef,j.value,j.setValue),$e93e671b31057976$export$b8473d3665f3a75a({...s,focus(){yt.focusFirst()}},j,s.inputRef);let bt={type:"hidden",name:s.name,value:((tt=j.value)===null||tt===void 0?void 0:tt.toString())||""};s.validationBehavior==="native"&&(bt.type="text",bt.hidden=!0,bt.required=s.isRequired,bt.onChange=()=>{});let St=$65484d02dcb7eb3e$export$457c3d6518dd4c6f(s);return{labelProps:{...it,onClick:()=>{yt.focusFirst()}},fieldProps:$3ef42575df84b30b$export$9d1611c77c2fe928(St,Ct,$t,ut,{onKeyDown(_t){s.onKeyDown&&s.onKeyDown(_t)},onKeyUp(_t){s.onKeyUp&&s.onKeyUp(_t)}}),inputProps:bt,descriptionProps:st,errorMessageProps:lt,isInvalid:rt,validationErrors:nt,validationDetails:at}}function $16f0b7bb276bc17e$export$4c842f6a241dc825(s,j,et){var tt;let rt=$16f0b7bb276bc17e$export$5591b0b878c1a989(s,j,et);return rt.inputProps.value=((tt=j.timeValue)===null||tt===void 0?void 0:tt.toString())||"",rt}function $6057a3d2a53a12fd$export$42df105a73306d51(s,j,et){let tt=$bdb11010cef70236$export$f680877a34711e37(),rt=$bdb11010cef70236$export$f680877a34711e37(),nt=$bdb11010cef70236$export$f680877a34711e37(),at=$fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($dfb4eba373ed9493$exports),"@react-aria/datepicker"),{isInvalid:it,validationErrors:ot,validationDetails:st}=j.displayValidation,{labelProps:lt,fieldProps:ct,descriptionProps:ut,errorMessageProps:dt}=$2baaea4c71418dea$export$294aa081a6c6f55d({...s,labelElementType:"span",isInvalid:it,errorMessage:s.errorMessage||ot}),ft=$3dfb0f96be0d6a08$export$4a931266a3838b86(j,et),ht=ct["aria-labelledby"]||ct.id,{locale:mt}=$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),vt=j.formatValue(mt,{month:"long"}),pt=vt?at.format("selectedDateDescription",{date:vt}):"",gt=$ef06256079686ba0$export$f8aeda7b10753fa1(pt),yt=[gt["aria-describedby"],ct["aria-describedby"]].filter(Boolean).join(" ")||void 0,$t=$65484d02dcb7eb3e$export$457c3d6518dd4c6f(s),xt=reactExports.useMemo(()=>$9bf71ea28793e738$export$c5251b9e124bf29(et),[et]),{focusWithinProps:Ct}=$9ab94262bd0047c7$export$420e68273165f4ec({...s,isDisabled:j.isOpen,onBlurWithin:s.onBlur,onFocusWithin:s.onFocus,onFocusWithinChange:s.onFocusChange});return{groupProps:$3ef42575df84b30b$export$9d1611c77c2fe928($t,ft,ct,gt,Ct,{role:"group","aria-disabled":s.isDisabled||null,"aria-labelledby":ht,"aria-describedby":yt,onKeyDown(bt){j.isOpen||s.onKeyDown&&s.onKeyDown(bt)},onKeyUp(bt){j.isOpen||s.onKeyUp&&s.onKeyUp(bt)}}),labelProps:{...lt,onClick:()=>{xt.focusFirst()}},fieldProps:{...ct,id:nt,[$16f0b7bb276bc17e$export$300019f83c56d282]:"presentation","aria-describedby":yt,value:j.value,onChange:j.setValue,placeholderValue:s.placeholderValue,hideTimeZone:s.hideTimeZone,hourCycle:s.hourCycle,shouldForceLeadingZeros:s.shouldForceLeadingZeros,granularity:s.granularity,isDisabled:s.isDisabled,isReadOnly:s.isReadOnly,isRequired:s.isRequired,validationBehavior:s.validationBehavior,[$e5be200c675c3b3a$export$a763b9476acd3eb]:j,autoFocus:s.autoFocus,name:s.name},descriptionProps:ut,errorMessageProps:dt,buttonProps:{...gt,id:tt,"aria-haspopup":"dialog","aria-label":at.format("calendar"),"aria-labelledby":`${tt} ${ht}`,"aria-describedby":yt,"aria-expanded":j.isOpen,isDisabled:s.isDisabled||s.isReadOnly,onPress:()=>j.setOpen(!0)},dialogProps:{id:rt,"aria-labelledby":`${tt} ${ht}`},calendarProps:{autoFocus:!0,value:j.dateValue,onChange:j.setDateValue,minValue:s.minValue,maxValue:s.maxValue,isDisabled:s.isDisabled,isReadOnly:s.isReadOnly,isDateUnavailable:s.isDateUnavailable,defaultFocusedValue:j.dateValue?void 0:s.placeholderValue,isInvalid:j.isInvalid,errorMessage:typeof s.errorMessage=="function"?s.errorMessage(j.displayValidation):s.errorMessage||j.displayValidation.validationErrors.join(" ")},isInvalid:it,validationErrors:ot,validationDetails:st}}function $3aeceb3a64eb8358$export$d42c60378c8168f8(){let{locale:s}=$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),j=$fca6afa0e843324b$export$87b761675e8eaa10($parcel$interopDefault($dfb4eba373ed9493$exports),"@react-aria/datepicker");return reactExports.useMemo(()=>{try{return new Intl.DisplayNames(s,{type:"dateTimeField"})}catch(et){return new $3aeceb3a64eb8358$var$DisplayNamesPolyfill(s,j)}},[s,j])}class $3aeceb3a64eb8358$var$DisplayNamesPolyfill{of(j){return this.dictionary.getStringForLocale(j,this.locale)}constructor(j,et){this.locale=j,this.dictionary=et}}function $32489daedd52963e$export$1315d136e6f7581(s,j,et){let tt=reactExports.useRef(""),{locale:rt}=$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),nt=$3aeceb3a64eb8358$export$d42c60378c8168f8(),{ariaLabel:at,ariaLabelledBy:it,ariaDescribedBy:ot,focusManager:st}=$16f0b7bb276bc17e$export$653eddfc964b0f8a.get(j),lt=s.isPlaceholder?"":s.text,ct=reactExports.useMemo(()=>j.dateFormatter.resolvedOptions(),[j.dateFormatter]),ut=$896ba0a80a8f4d36$export$85fd5fdf27bacc79({month:"long",timeZone:ct.timeZone}),dt=$896ba0a80a8f4d36$export$85fd5fdf27bacc79({hour:"numeric",hour12:ct.hour12,timeZone:ct.timeZone});if(s.type==="month"&&!s.isPlaceholder){let Dt=ut.format(j.dateValue);lt=Dt!==lt?`${lt} – ${Dt}`:Dt}else s.type==="hour"&&!s.isPlaceholder&&(lt=dt.format(j.dateValue));let{spinButtonProps:ft}=$d2e8511e6f209edf$export$e908e06f4b8e3402({value:s.value,textValue:lt,minValue:s.minValue,maxValue:s.maxValue,isDisabled:j.isDisabled,isReadOnly:j.isReadOnly||!s.isEditable,isRequired:j.isRequired,onIncrement:()=>{tt.current="",j.increment(s.type)},onDecrement:()=>{tt.current="",j.decrement(s.type)},onIncrementPage:()=>{tt.current="",j.incrementPage(s.type)},onDecrementPage:()=>{tt.current="",j.decrementPage(s.type)},onIncrementToMax:()=>{tt.current="",j.setSegment(s.type,s.maxValue)},onDecrementToMin:()=>{tt.current="",j.setSegment(s.type,s.minValue)}}),ht=reactExports.useMemo(()=>new $6c7bd7858deea686$export$cd11ab140839f11d(rt,{maximumFractionDigits:0}),[rt]),mt=()=>{if(ht.isValidPartialNumber(s.text)&&!j.isReadOnly&&!s.isPlaceholder){let Dt=s.text.slice(0,-1),At=ht.parse(Dt);Dt.length===0||At===0?j.clearSegment(s.type):j.setSegment(s.type,At),tt.current=Dt}else s.type==="dayPeriod"&&j.clearSegment(s.type)},vt=Dt=>{if(Dt.key==="a"&&($c87311424ea30a05$export$9ac100e40613ea10()?Dt.metaKey:Dt.ctrlKey)&&Dt.preventDefault(),!(Dt.ctrlKey||Dt.metaKey||Dt.shiftKey||Dt.altKey))switch(Dt.key){case"Backspace":case"Delete":Dt.preventDefault(),Dt.stopPropagation(),mt();break}},{startsWith:pt}=$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),gt=$896ba0a80a8f4d36$export$85fd5fdf27bacc79({hour:"numeric",hour12:!0}),yt=reactExports.useMemo(()=>{let Dt=new Date;return Dt.setHours(0),gt.formatToParts(Dt).find(At=>At.type==="dayPeriod").value},[gt]),$t=reactExports.useMemo(()=>{let Dt=new Date;return Dt.setHours(12),gt.formatToParts(Dt).find(At=>At.type==="dayPeriod").value},[gt]),xt=$896ba0a80a8f4d36$export$85fd5fdf27bacc79({year:"numeric",era:"narrow",timeZone:"UTC"}),Ct=reactExports.useMemo(()=>{if(s.type!=="era")return[];let Dt=$11d87f3f76e88657$export$b4a036af3fc0b032(new $35ea8db9cb2ccb90$export$99faa760c7908e4f(1,1,1),j.calendar),At=j.calendar.getEras().map(kt=>{let It=Dt.set({year:1,month:1,day:1,era:kt}).toDate("UTC"),jt=xt.formatToParts(It).find(Bt=>Bt.type==="era").value;return{era:kt,formatted:jt}}),Nt=$32489daedd52963e$var$commonPrefixLength(At.map(kt=>kt.formatted));if(Nt)for(let kt of At)kt.formatted=kt.formatted.slice(Nt);return At},[xt,j.calendar,s.type]),bt=Dt=>{if(j.isDisabled||j.isReadOnly)return;let At=tt.current+Dt;switch(s.type){case"dayPeriod":if(pt(yt,Dt))j.setSegment("dayPeriod",0);else if(pt($t,Dt))j.setSegment("dayPeriod",12);else break;st.focusNext();break;case"era":{let Nt=Ct.find(kt=>pt(kt.formatted,Dt));Nt&&(j.setSegment("era",Nt.era),st.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!ht.isValidPartialNumber(At))return;let Nt=ht.parse(At),kt=Nt,It=s.minValue===0;if(s.type==="hour"&&j.dateFormatter.resolvedOptions().hour12){switch(j.dateFormatter.resolvedOptions().hourCycle){case"h11":Nt>11&&(kt=ht.parse(Dt));break;case"h12":It=!1,Nt>12&&(kt=ht.parse(Dt));break}s.value>=12&&Nt>1&&(Nt+=12)}else Nt>s.maxValue&&(kt=ht.parse(Dt));if(isNaN(Nt))return;let Tt=kt!==0||It;Tt&&j.setSegment(s.type,kt),+(Nt+"0")>s.maxValue||At.length>=String(s.maxValue).length?(tt.current="",Tt&&st.focusNext()):tt.current=At;break}}},St=()=>{tt.current="",$2f04cbc44ee30ce0$export$c826860796309d1b(et.current,{containingElement:$62d8ded9296f3872$export$cfa2225e87938781(et.current)}),window.getSelection().collapse(et.current)},_t=reactExports.useRef("");$e9faafb641e167db$export$90fc3a17d93f704c(et,"beforeinput",Dt=>{switch(Dt.preventDefault(),Dt.inputType){case"deleteContentBackward":case"deleteContentForward":ht.isValidPartialNumber(s.text)&&!j.isReadOnly&&mt();break;case"insertCompositionText":_t.current=et.current.textContent,et.current.textContent=et.current.textContent;break;default:Dt.data!=null&&bt(Dt.data);break}}),$e9faafb641e167db$export$90fc3a17d93f704c(et,"input",Dt=>{let{inputType:At,data:Nt}=Dt;switch(At){case"insertCompositionText":et.current.textContent=_t.current,(pt(yt,Nt)||pt($t,Nt))&&bt(Nt);break}}),$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{let Dt=et.current;return()=>{document.activeElement===Dt&&(st.focusPrevious()||st.focusNext())}},[et,st]);let wt=$c87311424ea30a05$export$fedb369cb70207f1()||s.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},Rt=reactExports.useMemo(()=>j.segments.find(Dt=>Dt.isEditable),[j.segments]);s!==Rt&&!j.isInvalid&&(ot=void 0);let Pt=$bdb11010cef70236$export$f680877a34711e37(),Et=!j.isDisabled&&!j.isReadOnly&&s.isEditable,Ot=s.type==="literal"?"":nt.of(s.type),Mt=$313b98861ee5dd6c$export$d6875122194c7b44({"aria-label":`${Ot}${at?`, ${at}`:""}${it?", ":""}`,"aria-labelledby":it});return s.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:$3ef42575df84b30b$export$9d1611c77c2fe928(ft,Mt,{id:Pt,...wt,"aria-invalid":j.isInvalid?"true":void 0,"aria-describedby":ot,"aria-readonly":j.isReadOnly||!s.isEditable?"true":void 0,"data-placeholder":s.isPlaceholder||void 0,contentEditable:Et,suppressContentEditableWarning:Et,spellCheck:Et?"false":void 0,autoCapitalize:Et?"off":void 0,autoCorrect:Et?"off":void 0,[parseInt(React.version,10)>=17?"enterKeyHint":"enterkeyhint"]:Et?"next":void 0,inputMode:j.isDisabled||s.type==="dayPeriod"||s.type==="era"||!Et?void 0:"numeric",tabIndex:j.isDisabled?void 0:0,onKeyDown:vt,onFocus:St,style:{caretColor:"transparent"},onPointerDown(Dt){Dt.stopPropagation()},onMouseDown(Dt){Dt.stopPropagation()}})}}function $32489daedd52963e$var$commonPrefixLength(s){s.sort();let j=s[0],et=s[s.length-1];for(let tt=0;tt<j.length;tt++)if(j[tt]!==et[tt])return tt;return 0}function $887cac91b7cc8801$export$12fd5f0e9f4bb192(s,j,et){var tt,rt;let nt=$fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($dfb4eba373ed9493$exports),"@react-aria/datepicker"),{isInvalid:at,validationErrors:it,validationDetails:ot}=j.displayValidation,{labelProps:st,fieldProps:lt,descriptionProps:ct,errorMessageProps:ut}=$2baaea4c71418dea$export$294aa081a6c6f55d({...s,labelElementType:"span",isInvalid:at,errorMessage:s.errorMessage||it}),dt=lt["aria-labelledby"]||lt.id,{locale:ft}=$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),ht=j.formatValue(ft,{month:"long"}),mt=ht?nt.format("selectedRangeDescription",{startDate:ht.start,endDate:ht.end}):"",vt=$ef06256079686ba0$export$f8aeda7b10753fa1(mt),pt={"aria-label":nt.format("startDate"),"aria-labelledby":dt},gt={"aria-label":nt.format("endDate"),"aria-labelledby":dt},yt=$bdb11010cef70236$export$f680877a34711e37(),$t=$bdb11010cef70236$export$f680877a34711e37(),xt=$3dfb0f96be0d6a08$export$4a931266a3838b86(j,et),Ct=[vt["aria-describedby"],lt["aria-describedby"]].filter(Boolean).join(" ")||void 0,bt=reactExports.useMemo(()=>$9bf71ea28793e738$export$c5251b9e124bf29(et,{accept:Et=>Et.id!==yt}),[et,yt]),St={[$16f0b7bb276bc17e$export$7b3062cd49e80452]:bt,[$16f0b7bb276bc17e$export$300019f83c56d282]:"presentation","aria-describedby":Ct,placeholderValue:s.placeholderValue,hideTimeZone:s.hideTimeZone,hourCycle:s.hourCycle,granularity:s.granularity,shouldForceLeadingZeros:s.shouldForceLeadingZeros,isDisabled:s.isDisabled,isReadOnly:s.isReadOnly,isRequired:s.isRequired,validationBehavior:s.validationBehavior},_t=$65484d02dcb7eb3e$export$457c3d6518dd4c6f(s),{focusWithinProps:wt}=$9ab94262bd0047c7$export$420e68273165f4ec({...s,isDisabled:j.isOpen,onBlurWithin:s.onBlur,onFocusWithin:s.onFocus,onFocusWithinChange:s.onFocusChange}),Rt=reactExports.useRef($e5be200c675c3b3a$export$dad6ae84456c676a),Pt=reactExports.useRef($e5be200c675c3b3a$export$dad6ae84456c676a);return{groupProps:$3ef42575df84b30b$export$9d1611c77c2fe928(_t,xt,lt,vt,wt,{role:"group","aria-disabled":s.isDisabled||null,"aria-describedby":Ct,onKeyDown(Et){j.isOpen||s.onKeyDown&&s.onKeyDown(Et)},onKeyUp(Et){j.isOpen||s.onKeyUp&&s.onKeyUp(Et)}}),labelProps:{...st,onClick:()=>{bt.focusFirst()}},buttonProps:{...vt,id:yt,"aria-haspopup":"dialog","aria-label":nt.format("calendar"),"aria-labelledby":`${yt} ${dt}`,"aria-describedby":Ct,"aria-expanded":j.isOpen,isDisabled:s.isDisabled||s.isReadOnly,onPress:()=>j.setOpen(!0)},dialogProps:{id:$t,"aria-labelledby":`${yt} ${dt}`},startFieldProps:{...pt,...St,value:(tt=j.value)===null||tt===void 0?void 0:tt.start,onChange:Et=>j.setDateTime("start",Et),autoFocus:s.autoFocus,name:s.startName,[$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:j.realtimeValidation,displayValidation:j.displayValidation,updateValidation(Et){Rt.current=Et,j.updateValidation($e5be200c675c3b3a$export$75ee7c75d68f5b0e(Et,Pt.current))},resetValidation:j.resetValidation,commitValidation:j.commitValidation}},endFieldProps:{...gt,...St,value:(rt=j.value)===null||rt===void 0?void 0:rt.end,onChange:Et=>j.setDateTime("end",Et),name:s.endName,[$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:j.realtimeValidation,displayValidation:j.displayValidation,updateValidation(Et){Pt.current=Et,j.updateValidation($e5be200c675c3b3a$export$75ee7c75d68f5b0e(Rt.current,Et))},resetValidation:j.resetValidation,commitValidation:j.commitValidation}},descriptionProps:ct,errorMessageProps:ut,calendarProps:{autoFocus:!0,value:j.dateRange,onChange:j.setDateRange,minValue:s.minValue,maxValue:s.maxValue,isDisabled:s.isDisabled,isReadOnly:s.isReadOnly,isDateUnavailable:s.isDateUnavailable,allowsNonContiguousRanges:s.allowsNonContiguousRanges,defaultFocusedValue:j.dateRange?void 0:s.placeholderValue,isInvalid:j.isInvalid,errorMessage:typeof s.errorMessage=="function"?s.errorMessage(j.displayValidation):s.errorMessage||j.displayValidation.validationErrors.join(" ")},isInvalid:at,validationErrors:it,validationDetails:ot}}function $40df3f8667284809$export$d55e7ee900f34e93(s,j){let{role:et="dialog"}=s,tt=$bdb11010cef70236$export$b4cc09c592e8fdb8();tt=s["aria-label"]?void 0:tt;let rt=reactExports.useRef(!1);return reactExports.useEffect(()=>{if(j.current&&!j.current.contains(document.activeElement)){$6a99195332edec8b$export$80f3e147d781571c(j.current);let nt=setTimeout(()=>{document.activeElement===j.current&&(rt.current=!0,j.current&&(j.current.blur(),$6a99195332edec8b$export$80f3e147d781571c(j.current)),rt.current=!1)},500);return()=>{clearTimeout(nt)}}},[j]),$337b884510726a0d$export$14c98a7594375490(),{dialogProps:{...$65484d02dcb7eb3e$export$457c3d6518dd4c6f(s,{labelable:!0}),role:et,tabIndex:-1,"aria-labelledby":s["aria-labelledby"]||tt,onBlur:nt=>{rt.current&&nt.stopPropagation()}},titleProps:{id:tt}}}function $326e436e94273fe1$export$1c4b08e0eca38426(s,j){let et=$65484d02dcb7eb3e$export$457c3d6518dd4c6f(s,{labelable:!0}),{hoverProps:tt}=$6179b936705e76d3$export$ae780daf29e6d456({onHoverStart:()=>j==null?void 0:j.open(!0),onHoverEnd:()=>j==null?void 0:j.close()});return{tooltipProps:$3ef42575df84b30b$export$9d1611c77c2fe928(et,tt,{role:"tooltip"})}}function $4e1b34546679e357$export$a6da6c504e4bba8b(s,j,et){let{isDisabled:tt,trigger:rt}=s,nt=$bdb11010cef70236$export$f680877a34711e37(),at=reactExports.useRef(!1),it=reactExports.useRef(!1),ot=()=>{(at.current||it.current)&&j.open(it.current)},st=vt=>{!at.current&&!it.current&&j.close(vt)};reactExports.useEffect(()=>{let vt=pt=>{et&&et.current&&pt.key==="Escape"&&(pt.stopPropagation(),j.close(!0))};if(j.isOpen)return document.addEventListener("keydown",vt,!0),()=>{document.removeEventListener("keydown",vt,!0)}},[et,j]);let lt=()=>{rt!=="focus"&&($507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?at.current=!0:at.current=!1,ot())},ct=()=>{rt!=="focus"&&(it.current=!1,at.current=!1,st())},ut=()=>{it.current=!1,at.current=!1,st(!0)},dt=()=>{$507fabe10e71c6fb$export$b9b3dfddab17db27()&&(it.current=!0,ot())},ft=()=>{it.current=!1,at.current=!1,st(!0)},{hoverProps:ht}=$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:tt,onHoverStart:lt,onHoverEnd:ct}),{focusableProps:mt}=$e6afbd83fe6ebbd2$export$4c014de7c8940b4c({isDisabled:tt,onFocus:dt,onBlur:ft},et);return{triggerProps:{"aria-describedby":j.isOpen?nt:void 0,...$3ef42575df84b30b$export$9d1611c77c2fe928(mt,ht,{onPointerDown:ut,onKeyDown:ut})},tooltipProps:{id:nt}}}function $3df547e395c4522f$export$32d5543ab307c01(s){let j=typeof window!="undefined"&&typeof window.matchMedia=="function",[et,tt]=reactExports.useState(()=>j?window.matchMedia(s).matches:!1);return reactExports.useEffect(()=>{if(!j)return;let nt=window.matchMedia(s),at=it=>{tt(it.matches)};return nt.addListener(at),()=>{nt.removeListener(at)}},[j,s]),$b5e257d569688ac6$export$535bd6ca7f90a273()?!1:et}function $98e5a8ae0e6415af$export$a5795cc979dfae80(s){return{UNSAFE_getDOMNode(){return s.current}}}function $98e5a8ae0e6415af$export$79d69eee6ae4b329(s,j=s){return{...$98e5a8ae0e6415af$export$a5795cc979dfae80(s),focus(){j.current&&j.current.focus()}}}function $98e5a8ae0e6415af$export$c2c55ef9111cafd8(s){let j=reactExports.useRef(null);return reactExports.useImperativeHandle(s,()=>$98e5a8ae0e6415af$export$a5795cc979dfae80(j)),j}function $98e5a8ae0e6415af$export$96a734597687c040(s,j){let et=reactExports.useRef(null);return reactExports.useImperativeHandle(s,()=>$98e5a8ae0e6415af$export$79d69eee6ae4b329(et,j)),et}const $1051245f87c5981d$var$Context=React.createContext(null);$1051245f87c5981d$var$Context.displayName="BreakpointContext";/**
|
|
491
491
|
* @license MIT
|
|
492
492
|
* author: Cube Dev Team
|
|
493
|
-
* @cube-dev/ui-kit v0.
|
|
493
|
+
* @cube-dev/ui-kit v0.31.2
|
|
494
494
|
* Released under the MIT license.
|
|
495
495
|
*/function useFocus({isDisabled:s},j=!1){reactExports.useEffect(()=>{tt(!1)},[s]);let[et,tt]=reactExports.useState(!1),{isFocusVisible:rt}=$507fabe10e71c6fb$export$ffd9e5021c1fb2d6({}),{focusProps:nt}=$a1ea59d68270f0dd$export$f8168d8dd8fd66e6({isDisabled:s,onFocusChange:tt});return{focusProps:nt,isFocused:et&&(j?rt:!0)}}/**
|
|
496
496
|
* @license MIT
|
|
497
497
|
* author: Cube Dev Team
|
|
498
|
-
* @cube-dev/ui-kit v0.
|
|
498
|
+
* @cube-dev/ui-kit v0.31.2
|
|
499
499
|
* Released under the MIT license.
|
|
500
500
|
*/const DEFAULT_STYLES$1={display:"inline-grid",position:"relative",opacity:{"":1,"[disabled]":.4},transition:"theme"},STYLE_PROPS$1=[...CONTAINER_STYLES,...TEXT_STYLES];function ActiveZone({as:s,label:j,onClick:et,...tt},rt){const nt=tt.isDisabled,at=extractStyles(tt,STYLE_PROPS$1,DEFAULT_STYLES$1),it=$98e5a8ae0e6415af$export$96a734597687c040(rt);let{hoverProps:ot,isHovered:st}=$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:nt}),{focusProps:lt,isFocused:ct}=useFocus({isDisabled:nt}),{focusableProps:ut}=$e6afbd83fe6ebbd2$export$4c014de7c8940b4c(tt,it);return jsx(Element$1,{"data-is-hovered":st&&!nt?"":null,"data-is-focused":ct&&!nt?"":null,"data-is-disabled":nt||null,"aria-label":j,...mergeProps(ot,lt,ut,{onClick:et},filterBaseProps(tt,{eventProps:!0})),ref:it,tabIndex:tt.excludeFromTabOrder||nt?-1:0,as:s,styles:at})}const _ActiveZone=reactExports.forwardRef(ActiveZone);var IconContext=reactExports.createContext({});const Context$2=IconContext;function bound01(s,j){isOnePointZero(s)&&(s="100%");var et=isPercentage(s);return s=j===360?s:Math.min(j,Math.max(0,parseFloat(s))),et&&(s=parseInt(String(s*j),10)/100),Math.abs(s-j)<1e-6?1:(j===360?s=(s<0?s%j+j:s%j)/parseFloat(String(j)):s=s%j/parseFloat(String(j)),s)}function isOnePointZero(s){return typeof s=="string"&&s.indexOf(".")!==-1&&parseFloat(s)===1}function isPercentage(s){return typeof s=="string"&&s.indexOf("%")!==-1}function boundAlpha(s){return s=parseFloat(s),(isNaN(s)||s<0||s>1)&&(s=1),s}function convertToPercentage(s){return s<=1?"".concat(Number(s)*100,"%"):s}function pad2(s){return s.length===1?"0"+s:String(s)}function rgbToRgb(s,j,et){return{r:bound01(s,255)*255,g:bound01(j,255)*255,b:bound01(et,255)*255}}function hue2rgb(s,j,et){return et<0&&(et+=1),et>1&&(et-=1),et<1/6?s+(j-s)*(6*et):et<1/2?j:et<2/3?s+(j-s)*(2/3-et)*6:s}function hslToRgb(s,j,et){var tt,rt,nt;if(s=bound01(s,360),j=bound01(j,100),et=bound01(et,100),j===0)rt=et,nt=et,tt=et;else{var at=et<.5?et*(1+j):et+j-et*j,it=2*et-at;tt=hue2rgb(it,at,s+1/3),rt=hue2rgb(it,at,s),nt=hue2rgb(it,at,s-1/3)}return{r:tt*255,g:rt*255,b:nt*255}}function rgbToHsv(s,j,et){s=bound01(s,255),j=bound01(j,255),et=bound01(et,255);var tt=Math.max(s,j,et),rt=Math.min(s,j,et),nt=0,at=tt,it=tt-rt,ot=tt===0?0:it/tt;if(tt===rt)nt=0;else{switch(tt){case s:nt=(j-et)/it+(j<et?6:0);break;case j:nt=(et-s)/it+2;break;case et:nt=(s-j)/it+4;break}nt/=6}return{h:nt,s:ot,v:at}}function hsvToRgb(s,j,et){s=bound01(s,360)*6,j=bound01(j,100),et=bound01(et,100);var tt=Math.floor(s),rt=s-tt,nt=et*(1-j),at=et*(1-rt*j),it=et*(1-(1-rt)*j),ot=tt%6,st=[et,at,nt,nt,it,et][ot],lt=[it,et,et,at,nt,nt][ot],ct=[nt,nt,it,et,et,at][ot];return{r:st*255,g:lt*255,b:ct*255}}function rgbToHex(s,j,et,tt){var rt=[pad2(Math.round(s).toString(16)),pad2(Math.round(j).toString(16)),pad2(Math.round(et).toString(16))];return tt&&rt[0].startsWith(rt[0].charAt(1))&&rt[1].startsWith(rt[1].charAt(1))&&rt[2].startsWith(rt[2].charAt(1))?rt[0].charAt(0)+rt[1].charAt(0)+rt[2].charAt(0):rt.join("")}function convertHexToDecimal(s){return parseIntFromHex(s)/255}function parseIntFromHex(s){return parseInt(s,16)}var names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function inputToRGB(s){var j={r:0,g:0,b:0},et=1,tt=null,rt=null,nt=null,at=!1,it=!1;return typeof s=="string"&&(s=stringInputToObject(s)),typeof s=="object"&&(isValidCSSUnit(s.r)&&isValidCSSUnit(s.g)&&isValidCSSUnit(s.b)?(j=rgbToRgb(s.r,s.g,s.b),at=!0,it=String(s.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(s.h)&&isValidCSSUnit(s.s)&&isValidCSSUnit(s.v)?(tt=convertToPercentage(s.s),rt=convertToPercentage(s.v),j=hsvToRgb(s.h,tt,rt),at=!0,it="hsv"):isValidCSSUnit(s.h)&&isValidCSSUnit(s.s)&&isValidCSSUnit(s.l)&&(tt=convertToPercentage(s.s),nt=convertToPercentage(s.l),j=hslToRgb(s.h,tt,nt),at=!0,it="hsl"),Object.prototype.hasOwnProperty.call(s,"a")&&(et=s.a)),et=boundAlpha(et),{ok:at,format:s.format||it,r:Math.min(255,Math.max(j.r,0)),g:Math.min(255,Math.max(j.g,0)),b:Math.min(255,Math.max(j.b,0)),a:et}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject(s){if(s=s.trim().toLowerCase(),s.length===0)return!1;var j=!1;if(names[s])s=names[s],j=!0;else if(s==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var et=matchers.rgb.exec(s);return et?{r:et[1],g:et[2],b:et[3]}:(et=matchers.rgba.exec(s),et?{r:et[1],g:et[2],b:et[3],a:et[4]}:(et=matchers.hsl.exec(s),et?{h:et[1],s:et[2],l:et[3]}:(et=matchers.hsla.exec(s),et?{h:et[1],s:et[2],l:et[3],a:et[4]}:(et=matchers.hsv.exec(s),et?{h:et[1],s:et[2],v:et[3]}:(et=matchers.hsva.exec(s),et?{h:et[1],s:et[2],v:et[3],a:et[4]}:(et=matchers.hex8.exec(s),et?{r:parseIntFromHex(et[1]),g:parseIntFromHex(et[2]),b:parseIntFromHex(et[3]),a:convertHexToDecimal(et[4]),format:j?"name":"hex8"}:(et=matchers.hex6.exec(s),et?{r:parseIntFromHex(et[1]),g:parseIntFromHex(et[2]),b:parseIntFromHex(et[3]),format:j?"name":"hex"}:(et=matchers.hex4.exec(s),et?{r:parseIntFromHex(et[1]+et[1]),g:parseIntFromHex(et[2]+et[2]),b:parseIntFromHex(et[3]+et[3]),a:convertHexToDecimal(et[4]+et[4]),format:j?"name":"hex8"}:(et=matchers.hex3.exec(s),et?{r:parseIntFromHex(et[1]+et[1]),g:parseIntFromHex(et[2]+et[2]),b:parseIntFromHex(et[3]+et[3]),format:j?"name":"hex"}:!1)))))))))}function isValidCSSUnit(s){return!!matchers.CSS_UNIT.exec(String(s))}var hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function toHsv(s){var j=s.r,et=s.g,tt=s.b,rt=rgbToHsv(j,et,tt);return{h:rt.h*360,s:rt.s,v:rt.v}}function toHex(s){var j=s.r,et=s.g,tt=s.b;return"#".concat(rgbToHex(j,et,tt,!1))}function mix(s,j,et){var tt=et/100,rt={r:(j.r-s.r)*tt+s.r,g:(j.g-s.g)*tt+s.g,b:(j.b-s.b)*tt+s.b};return rt}function getHue(s,j,et){var tt;return Math.round(s.h)>=60&&Math.round(s.h)<=240?tt=et?Math.round(s.h)-hueStep*j:Math.round(s.h)+hueStep*j:tt=et?Math.round(s.h)+hueStep*j:Math.round(s.h)-hueStep*j,tt<0?tt+=360:tt>=360&&(tt-=360),tt}function getSaturation(s,j,et){if(s.h===0&&s.s===0)return s.s;var tt;return et?tt=s.s-saturationStep*j:j===darkColorCount?tt=s.s+saturationStep:tt=s.s+saturationStep2*j,tt>1&&(tt=1),et&&j===lightColorCount&&tt>.1&&(tt=.1),tt<.06&&(tt=.06),Number(tt.toFixed(2))}function getValue$1(s,j,et){var tt;return et?tt=s.v+brightnessStep1*j:tt=s.v-brightnessStep2*j,tt>1&&(tt=1),Number(tt.toFixed(2))}function generate$1(s){for(var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},et=[],tt=inputToRGB(s),rt=lightColorCount;rt>0;rt-=1){var nt=toHsv(tt),at=toHex(inputToRGB({h:getHue(nt,rt,!0),s:getSaturation(nt,rt,!0),v:getValue$1(nt,rt,!0)}));et.push(at)}et.push(toHex(tt));for(var it=1;it<=darkColorCount;it+=1){var ot=toHsv(tt),st=toHex(inputToRGB({h:getHue(ot,it),s:getSaturation(ot,it),v:getValue$1(ot,it)}));et.push(st)}return j.theme==="dark"?darkColorMap.map(function(lt){var ct=lt.index,ut=lt.opacity,dt=toHex(mix(inputToRGB(j.backgroundColor||"#141414"),inputToRGB(et[ct]),ut*100));return dt}):et}var presetPrimaryColors={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},presetPalettes={},presetDarkPalettes={};Object.keys(presetPrimaryColors).forEach(function(s){presetPalettes[s]=generate$1(presetPrimaryColors[s]),presetPalettes[s].primary=presetPalettes[s][5],presetDarkPalettes[s]=generate$1(presetPrimaryColors[s],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[s].primary=presetDarkPalettes[s][5]});var blue=presetPalettes.blue;function canUseDom$1(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function contains$2(s,j){if(!s)return!1;if(s.contains)return s.contains(j);for(var et=j;et;){if(et===s)return!0;et=et.parentNode}return!1}var APPEND_ORDER="data-rc-order",APPEND_PRIORITY="data-rc-priority",MARK_KEY="rc-util-key",containerCache=new Map;function getMark(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},j=s.mark;return j?j.startsWith("data-")?j:"data-".concat(j):MARK_KEY}function getContainer(s){if(s.attachTo)return s.attachTo;var j=document.querySelector("head");return j||document.body}function getOrder(s){return s==="queue"?"prependQueue":s?"prepend":"append"}function findStyles(s){return Array.from((containerCache.get(s)||s).children).filter(function(j){return j.tagName==="STYLE"})}function injectCSS(s){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!canUseDom$1())return null;var et=j.csp,tt=j.prepend,rt=j.priority,nt=rt===void 0?0:rt,at=getOrder(tt),it=at==="prependQueue",ot=document.createElement("style");ot.setAttribute(APPEND_ORDER,at),it&&nt&&ot.setAttribute(APPEND_PRIORITY,"".concat(nt)),et!=null&&et.nonce&&(ot.nonce=et==null?void 0:et.nonce),ot.innerHTML=s;var st=getContainer(j),lt=st.firstChild;if(tt){if(it){var ct=findStyles(st).filter(function(ut){if(!["prepend","prependQueue"].includes(ut.getAttribute(APPEND_ORDER)))return!1;var dt=Number(ut.getAttribute(APPEND_PRIORITY)||0);return nt>=dt});if(ct.length)return st.insertBefore(ot,ct[ct.length-1].nextSibling),ot}st.insertBefore(ot,lt)}else st.appendChild(ot);return ot}function findExistNode(s){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},et=getContainer(j);return findStyles(et).find(function(tt){return tt.getAttribute(getMark(j))===s})}function syncRealContainer(s,j){var et=containerCache.get(s);if(!et||!contains$2(document,et)){var tt=injectCSS("",j),rt=tt.parentNode;containerCache.set(s,rt),s.removeChild(tt)}}function updateCSS(s,j){var et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},tt=getContainer(et);syncRealContainer(tt,et);var rt=findExistNode(j,et);if(rt){var nt,at;if((nt=et.csp)!==null&&nt!==void 0&&nt.nonce&&rt.nonce!==((at=et.csp)===null||at===void 0?void 0:at.nonce)){var it;rt.nonce=(it=et.csp)===null||it===void 0?void 0:it.nonce}return rt.innerHTML!==s&&(rt.innerHTML=s),rt}var ot=injectCSS(s,et);return ot.setAttribute(getMark(et),j),ot}function getRoot(s){var j;return s==null||(j=s.getRootNode)===null||j===void 0?void 0:j.call(s)}function inShadow(s){return getRoot(s)instanceof ShadowRoot}function getShadowRoot(s){return inShadow(s)?getRoot(s):null}var warned={},preMessage=function(j){};function warning$2(s,j){}function note(s,j){}function resetWarned(){warned={}}function call(s,j,et){!j&&!warned[et]&&(s(!1,et),warned[et]=!0)}function warningOnce(s,j){call(warning$2,s,j)}function noteOnce(s,j){call(note,s,j)}warningOnce.preMessage=preMessage;warningOnce.resetWarned=resetWarned;warningOnce.noteOnce=noteOnce;function camelCase$1(s){return s.replace(/-(.)/g,function(j,et){return et.toUpperCase()})}function warning$1(s,j){warningOnce(s,"[@ant-design/icons] ".concat(j))}function isIconDefinition(s){return _typeof$4(s)==="object"&&typeof s.name=="string"&&typeof s.theme=="string"&&(_typeof$4(s.icon)==="object"||typeof s.icon=="function")}function normalizeAttrs(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(s).reduce(function(j,et){var tt=s[et];switch(et){case"class":j.className=tt,delete j.class;break;default:delete j[et],j[camelCase$1(et)]=tt}return j},{})}function generate(s,j,et){return et?React.createElement(s.tag,_objectSpread2$1(_objectSpread2$1({key:j},normalizeAttrs(s.attrs)),et),(s.children||[]).map(function(tt,rt){return generate(tt,"".concat(j,"-").concat(s.tag,"-").concat(rt))})):React.createElement(s.tag,_objectSpread2$1({key:j},normalizeAttrs(s.attrs)),(s.children||[]).map(function(tt,rt){return generate(tt,"".concat(j,"-").concat(s.tag,"-").concat(rt))}))}function getSecondaryColor(s){return generate$1(s)[0]}function normalizeTwoToneColors(s){return s?Array.isArray(s)?s:[s]:[]}var iconStyles=`
|
|
501
501
|
.anticon {
|
|
@@ -554,97 +554,97 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
554
554
|
`,useInsertStyles=function(j){var et=reactExports.useContext(Context$2),tt=et.csp,rt=et.prefixCls,nt=iconStyles;rt&&(nt=nt.replace(/anticon/g,rt)),reactExports.useEffect(function(){var at=j.current,it=getShadowRoot(at);updateCSS(nt,"@ant-design-icons",{prepend:!0,csp:tt,attachTo:it})},[])},_excluded$5=["icon","className","onClick","style","primaryColor","secondaryColor"],twoToneColorPalette={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors(s){var j=s.primaryColor,et=s.secondaryColor;twoToneColorPalette.primaryColor=j,twoToneColorPalette.secondaryColor=et||getSecondaryColor(j),twoToneColorPalette.calculated=!!et}function getTwoToneColors(){return _objectSpread2$1({},twoToneColorPalette)}var IconBase$1=function(j){var et=j.icon,tt=j.className,rt=j.onClick,nt=j.style,at=j.primaryColor,it=j.secondaryColor,ot=_objectWithoutProperties$1(j,_excluded$5),st=reactExports.useRef(),lt=twoToneColorPalette;if(at&&(lt={primaryColor:at,secondaryColor:it||getSecondaryColor(at)}),useInsertStyles(st),warning$1(isIconDefinition(et),"icon should be icon definiton, but got ".concat(et)),!isIconDefinition(et))return null;var ct=et;return ct&&typeof ct.icon=="function"&&(ct=_objectSpread2$1(_objectSpread2$1({},ct),{},{icon:ct.icon(lt.primaryColor,lt.secondaryColor)})),generate(ct.icon,"svg-".concat(ct.name),_objectSpread2$1(_objectSpread2$1({className:tt,onClick:rt,style:nt,"data-icon":ct.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},ot),{},{ref:st}))};IconBase$1.displayName="IconReact";IconBase$1.getTwoToneColors=getTwoToneColors;IconBase$1.setTwoToneColors=setTwoToneColors;const ReactIcon=IconBase$1;function setTwoToneColor(s){var j=normalizeTwoToneColors(s),et=_slicedToArray$3(j,2),tt=et[0],rt=et[1];return ReactIcon.setTwoToneColors({primaryColor:tt,secondaryColor:rt})}function getTwoToneColor(){var s=ReactIcon.getTwoToneColors();return s.calculated?[s.primaryColor,s.secondaryColor]:s.primaryColor}var _excluded$4=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];setTwoToneColor(blue.primary);var Icon$2=reactExports.forwardRef(function(s,j){var et=s.className,tt=s.icon,rt=s.spin,nt=s.rotate,at=s.tabIndex,it=s.onClick,ot=s.twoToneColor,st=_objectWithoutProperties$1(s,_excluded$4),lt=reactExports.useContext(Context$2),ct=lt.prefixCls,ut=ct===void 0?"anticon":ct,dt=lt.rootClassName,ft=classNames(dt,ut,_defineProperty$4(_defineProperty$4({},"".concat(ut,"-").concat(tt.name),!!tt.name),"".concat(ut,"-spin"),!!rt||tt.name==="loading"),et),ht=at;ht===void 0&&it&&(ht=-1);var mt=nt?{msTransform:"rotate(".concat(nt,"deg)"),transform:"rotate(".concat(nt,"deg)")}:void 0,vt=normalizeTwoToneColors(ot),pt=_slicedToArray$3(vt,2),gt=pt[0],yt=pt[1];return jsx("span",{role:"img","aria-label":tt.name,...st,ref:j,tabIndex:ht,onClick:it,className:ft,children:jsx(ReactIcon,{icon:tt,primaryColor:gt,secondaryColor:yt,style:mt})})});Icon$2.displayName="AntdIcon";Icon$2.getTwoToneColor=getTwoToneColor;Icon$2.setTwoToneColor=setTwoToneColor;const AntdIcon$1=Icon$2;var CalendarOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const CalendarOutlinedSvg=CalendarOutlined$2;var CalendarOutlined=function(j,et){return jsx(AntdIcon$1,{...j,ref:et,icon:CalendarOutlinedSvg})};const CalendarOutlined$1=reactExports.forwardRef(CalendarOutlined);var CheckOutlined$5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const CheckOutlinedSvg=CheckOutlined$5;var CheckOutlined$3=function(j,et){return jsx(AntdIcon$1,{...j,ref:et,icon:CheckOutlinedSvg})};const CheckOutlined$4=reactExports.forwardRef(CheckOutlined$3);var CloseOutlined$5={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const CloseOutlinedSvg=CloseOutlined$5;var CloseOutlined$3=function(j,et){return jsx(AntdIcon$1,{...j,ref:et,icon:CloseOutlinedSvg})};const CloseOutlined$4=reactExports.forwardRef(CloseOutlined$3);var InfoCircleOutlined$5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const InfoCircleOutlinedSvg=InfoCircleOutlined$5;var InfoCircleOutlined$3=function(j,et){return jsx(AntdIcon$1,{...j,ref:et,icon:InfoCircleOutlinedSvg})};const InfoCircleOutlined$4=reactExports.forwardRef(InfoCircleOutlined$3);var LeftOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const LeftOutlinedSvg=LeftOutlined$2;var LeftOutlined=function(j,et){return jsx(AntdIcon$1,{...j,ref:et,icon:LeftOutlinedSvg})};const LeftOutlined$1=reactExports.forwardRef(LeftOutlined);var LoadingOutlined$5={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const LoadingOutlinedSvg=LoadingOutlined$5;var LoadingOutlined$3=function(j,et){return jsx(AntdIcon$1,{...j,ref:et,icon:LoadingOutlinedSvg})};const LoadingOutlined$4=reactExports.forwardRef(LoadingOutlined$3);var RightOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const RightOutlinedSvg=RightOutlined$2;var RightOutlined=function(j,et){return jsx(AntdIcon$1,{...j,ref:et,icon:RightOutlinedSvg})};const RightOutlined$1=reactExports.forwardRef(RightOutlined);var WarningOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"};const WarningOutlinedSvg=WarningOutlined$2;var WarningOutlined=function(j,et){return jsx(AntdIcon$1,{...j,ref:et,icon:WarningOutlinedSvg})};const WarningOutlined$1=reactExports.forwardRef(WarningOutlined);/**
|
|
555
555
|
* @license MIT
|
|
556
556
|
* author: Cube Dev Team
|
|
557
|
-
* @cube-dev/ui-kit v0.
|
|
557
|
+
* @cube-dev/ui-kit v0.31.2
|
|
558
558
|
* Released under the MIT license.
|
|
559
559
|
*/const PREFIX="CubeUIKit",devMode=!1;function warn(...s){devMode&&console.warn(`${PREFIX}:`,...s)}function deprecationWarning(s,{property:j,name:et,betterAlternative:tt,reason:rt}){}/**
|
|
560
560
|
* @license MIT
|
|
561
561
|
* author: Cube Dev Team
|
|
562
|
-
* @cube-dev/ui-kit v0.
|
|
562
|
+
* @cube-dev/ui-kit v0.31.2
|
|
563
563
|
* Released under the MIT license.
|
|
564
564
|
*/const UIKitContext=reactExports.createContext({});function Provider$1(s){let{breakpoints:j,children:et,insideForm:tt,isDisabled:rt,isReadOnly:nt,isRequired:at,validationState:it,router:ot,root:st,ref:lt}=s;const ct=reactExports.useContext(UIKitContext);j&&(et=jsx(BreakpointsProvider,{value:j,children:et}));const ut=reactExports.useMemo(()=>({ref:lt,breakpoints:j,insideForm:tt,isDisabled:rt,isReadOnly:nt,isRequired:at,validationState:it,router:ot,root:st}),[lt,j,tt,rt,nt,at,it,ot,st]),dt=reactExports.useMemo(()=>{let ft=Object.assign({},ct);return Object.keys(ut).forEach(ht=>{ut[ht]!=null&&(ft[ht]=ut[ht])}),ft},[ct,ut]);return jsx(UIKitContext.Provider,{value:dt,children:et})}function useProviderProps(s){return{...reactExports.useContext(UIKitContext),...s}}/**
|
|
565
565
|
* @license MIT
|
|
566
566
|
* author: Cube Dev Team
|
|
567
|
-
* @cube-dev/ui-kit v0.
|
|
567
|
+
* @cube-dev/ui-kit v0.31.2
|
|
568
568
|
* Released under the MIT license.
|
|
569
569
|
*/const TrackingContext=reactExports.createContext({event(){}});function TrackingProvider({children:s,event:j}){const et=reactExports.useMemo(()=>({event:j}),[j]);return j?jsx(TrackingContext.Provider,{value:et,children:s}):jsx(Fragment,{children:s})}function useTracking(){return reactExports.useContext(TrackingContext)}/**
|
|
570
570
|
* @license MIT
|
|
571
571
|
* author: Cube Dev Team
|
|
572
|
-
* @cube-dev/ui-kit v0.
|
|
572
|
+
* @cube-dev/ui-kit v0.31.2
|
|
573
573
|
* Released under the MIT license.
|
|
574
574
|
*/function useDeprecationWarning(...s){const j=React.useRef(!1);reactExports.useEffect(()=>{j.current||(j.current=!0,deprecationWarning(...s))},[s[0]])}/**
|
|
575
575
|
* @license MIT
|
|
576
576
|
* author: Cube Dev Team
|
|
577
|
-
* @cube-dev/ui-kit v0.
|
|
577
|
+
* @cube-dev/ui-kit v0.31.2
|
|
578
578
|
* Released under the MIT license.
|
|
579
579
|
*/function useSyncRef(s){const j=reactExports.useRef(s);return useLayoutEffect(()=>{j.current=s}),j}/**
|
|
580
580
|
* @license MIT
|
|
581
581
|
* author: Cube Dev Team
|
|
582
|
-
* @cube-dev/ui-kit v0.
|
|
582
|
+
* @cube-dev/ui-kit v0.31.2
|
|
583
583
|
* Released under the MIT license.
|
|
584
584
|
*/function useEvent(s){const j=useSyncRef(s);return reactExports.useCallback((...et)=>j.current(...et),[])}/**
|
|
585
585
|
* @license MIT
|
|
586
586
|
* author: Cube Dev Team
|
|
587
|
-
* @cube-dev/ui-kit v0.
|
|
587
|
+
* @cube-dev/ui-kit v0.31.2
|
|
588
588
|
* Released under the MIT license.
|
|
589
589
|
*/function useChainedCallback(...s){return useEvent((...j)=>{s.forEach(et=>{typeof et=="function"&&et(...j)})})}/**
|
|
590
590
|
* @license MIT
|
|
591
591
|
* author: Cube Dev Team
|
|
592
|
-
* @cube-dev/ui-kit v0.
|
|
592
|
+
* @cube-dev/ui-kit v0.31.2
|
|
593
593
|
* Released under the MIT license.
|
|
594
594
|
*/class Timer{get status(){return this._status}set status(j){this._status=j}constructor(j,et){this.timerId=null,this.startTime=null,this._status="stopped",this.callback=j,this.delay=et,this.remaining=et,this.resume()}reset(){this.clear(),this.remaining=this.delay,this.status="stopped"}pause(){this.timerId===null||this.startTime===null||(this.clear(),this.remaining-=Date.now()-this.startTime,this.status="paused")}resume(){this.timerId===null&&(this.startTime=Date.now(),this.clear(),this.timerId=setTimeout(()=>{this.reset(),this.callback()},this.remaining),this.status="running")}clear(){this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}}/**
|
|
595
595
|
* @license MIT
|
|
596
596
|
* author: Cube Dev Team
|
|
597
|
-
* @cube-dev/ui-kit v0.
|
|
597
|
+
* @cube-dev/ui-kit v0.31.2
|
|
598
598
|
* Released under the MIT license.
|
|
599
599
|
*/function useTimer(s={}){const{callback:j,delay:et,isDisabled:tt,timer:rt=null}=s,nt=useEvent(()=>j==null?void 0:j()),[at,it]=reactExports.useState(()=>rt||(typeof et=="number"?new Timer(nt,et):null));return tt?at==null||at.reset():at==null||at.resume(),reactExports.useEffect(()=>(it(rt),()=>at==null?void 0:at.reset()),[rt]),reactExports.useEffect(()=>{if(!rt)return typeof et=="number"&&it(new Timer(nt,et)),()=>at==null?void 0:at.reset()},[et,rt]),reactExports.useEffect(()=>()=>at==null?void 0:at.reset(),[at]),{timer:at}}/**
|
|
600
600
|
* @license MIT
|
|
601
601
|
* author: Cube Dev Team
|
|
602
|
-
* @cube-dev/ui-kit v0.
|
|
602
|
+
* @cube-dev/ui-kit v0.31.2
|
|
603
603
|
* Released under the MIT license.
|
|
604
604
|
*/function useIsFirstRender(){const s=reactExports.useRef(!0);return s.current?(s.current=!1,!0):s.current}/**
|
|
605
605
|
* @license MIT
|
|
606
606
|
* author: Cube Dev Team
|
|
607
|
-
* @cube-dev/ui-kit v0.
|
|
607
|
+
* @cube-dev/ui-kit v0.31.2
|
|
608
608
|
* Released under the MIT license.
|
|
609
609
|
*/const LINK_PRESS_EVENT="Link Press",BUTTON_PRESS_EVENT="Button Press",FILTER_OPTIONS={propNames:new Set(["onMouseEnter","onMouseLeave"])};function openLink(s,j){const et=document.createElement("a");et.href=s,j&&(et.target=j===!0?"_blank":j),document.body.appendChild(et),et.click(),document.body.removeChild(et)}function parseTo(s){const j=s&&typeof s=="string"&&s.startsWith("!"),et=s&&typeof s=="string"&&s.startsWith("@"),tt=s&&typeof s=="string"?j||et?s.slice(1):s:void 0;return{newTab:j,nativeRoute:et,href:tt}}function performClickHandler(s,{router:j,to:et,onPress:tt,tracking:rt}){const{newTab:nt,nativeRoute:at,href:it}=parseTo(et),ot=s.target,st=ot==null?void 0:ot.getAttribute("data-qa");if(tt==null||tt(s),!et){rt.event(BUTTON_PRESS_EVENT,{qa:st},ot);return}if(s.shiftKey||s.metaKey||nt){openLink(it,!0),rt.event(LINK_PRESS_EVENT,{qa:st,href:it,type:"tab"},ot);return}if(at)openLink(it||window.location.href),rt.event(LINK_PRESS_EVENT,{qa:st,href:it,type:"native"},ot);else if(it&&it.startsWith("#")){const lt=it.slice(1),ct=document.getElementById(lt);if(rt.event(LINK_PRESS_EVENT,{qa:st,href:it,type:"hash",target:lt},ct),ct){ct.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"});return}}j?(rt.event(LINK_PRESS_EVENT,{qa:st,href:it,type:"router"},ot),j.push(it)):it&&(rt.event(LINK_PRESS_EVENT,{qa:st,href:it,type:"native"},ot),window.location.href=it)}const useAction=function({to:j,as:et,htmlType:tt,label:rt,mods:nt,onPress:at,...it},ot){et=j?"a":et||"button";const st=useTracking(),lt=reactExports.useContext(UIKitContext).router,ct=it.isDisabled,{newTab:ut,href:dt}=parseTo(j),ft=ut?"_blank":void 0,ht=$98e5a8ae0e6415af$export$96a734597687c040(ot),mt=useEvent(bt=>{performClickHandler(bt,{router:lt,to:j,onPress:at,tracking:st})});let{buttonProps:vt,isPressed:pt}=$701a24aa0da5b062$export$ea18c227d4417cc3({"aria-label":rt,...it,onPress:mt},ht),{hoverProps:gt,isHovered:yt}=$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:ct}),{focusProps:$t,isFocused:xt}=useFocus({isDisabled:ct},!0);const Ct=j?{onClick(bt){bt.preventDefault()}}:{};return{actionProps:{mods:{hovered:yt&&!ct,pressed:pt&&!ct,focused:xt&&!ct,disabled:ct,...nt},...mergeProps(vt,gt,$t,Ct,filterBaseProps(it,FILTER_OPTIONS)),ref:ht,type:tt||"button",rel:et==="a"&&ut?'rel="noopener noreferrer"':void 0,as:et,isDisabled:ct,target:ft,href:dt}}};/**
|
|
610
610
|
* @license MIT
|
|
611
611
|
* author: Cube Dev Team
|
|
612
|
-
* @cube-dev/ui-kit v0.
|
|
612
|
+
* @cube-dev/ui-kit v0.31.2
|
|
613
613
|
* Released under the MIT license.
|
|
614
614
|
*/const STYLE_PROPS=[...CONTAINER_STYLES,...TEXT_STYLES],DEFAULT_BUTTON_STYLES={display:"inline-grid",placeItems:"center stretch",placeContent:"center",position:"relative",margin:0,outline:{"":"#purple-03.0",focused:"#purple-03"},cursor:"pointer",gap:"1x",flow:"column",preset:{"":"t3m",'[data-size="large"]':"t2m"},textDecoration:"none",transition:"theme",reset:"button",padding:{"":"(1.25x - 1bw) (2x - 1bw)",'[data-size="small"]':"(.75x - 1bw) (1.5x - 1bw)",'[data-size="medium"]':"(1.25x - 1bw) (2x - 1bw)",'[data-size="large"]':"1.5x (2.5x - 1bw)",'single-icon-only | [data-type="link"]':0},width:{"":"initial",'[data-size="small"] & single-icon-only':"4x 4x",'[data-size="medium"] & single-icon-only':"5x 5x",'[data-size="large"] & single-icon-only':"6x 6x"},height:{"":"initial",'[data-size="small"] & single-icon-only':"4x 4x",'[data-size="medium"] & single-icon-only':"5x 5x",'[data-size="large"] & single-icon-only':"6x 6x"},whiteSpace:"nowrap",radius:{"":!0,'[data-type="link"] & !focused':0},"& .anticon":{transition:"display .2s steps(1, start), margin .2s linear, opacity .2s linear"},ButtonIcon:{display:"grid",fontSize:"@icon-size"}},ButtonElement=tasty({qa:"Button",styles:DEFAULT_BUTTON_STYLES,variants:{default:{shadow:{"":!1,'[data-type="link"]':"0 @border-width 0 0 #purple.20",'[data-type="link"] & (pressed | hovered | [disabled])':"0 0 0 0 #purple.20"},outline:{"":"0 #purple-03.0",focused:"@outline-width #purple-03"},border:{"":"#clear",'[data-type="primary"] & pressed':"#purple-text",'[data-type="secondary"] & pressed':"#purple.3",'[data-type="outline"]':"#purple.3",'[data-type="outline"] & [disabled]':"#dark.12",'([data-type="clear"] | [data-type="outline"]) & pressed':"#purple-text.10",'[data-type="link"]':"0"},fill:{"":"#clear",'[data-type="primary"]':"#purple",'[data-type="primary"] & pressed':"#purple",'[data-type="primary"] & hovered':"#purple-text",'[data-type="secondary"]':"#purple.10",'[data-type="secondary"] & hovered':"#purple.16",'[data-type="secondary"] & pressed':"#purple-text.10",'[data-type="neutral"]':"#dark.0",'[data-type="neutral"] & hovered':"#dark.04",'[data-type="neutral"] & pressed':"#dark.05",'[disabled] & ![data-type="link"]':"#dark.04",'([data-type="clear"] | [data-type="outline"])':"#purple.0",'([data-type="clear"] | [data-type="outline"]) & hovered':"#purple.16",'([data-type="clear"] | [data-type="outline"]) & pressed':"#purple.10",'([data-type="clear"] | [data-type="outline"]) & [disabled]':"#purple.0"},color:{"":"#white",'[data-type="secondary"]':"#purple",'[data-type="clear"] | [data-type="outline"] | [data-type="link"]':"#purple-text",'[data-type="link"] & pressed':"#purple",'[data-type="neutral"]':"#dark.75",'[data-type="neutral"] & hovered':"#dark.75",'[data-type="neutral"] & pressed':"#purple","[disabled]":"#dark.30"}},danger:{shadow:{"":!1,'[data-type="link"]':"0 @border-width 0 0 #danger.20",'[data-type="link"] & (pressed | hovered | [disabled])':"0 0 0 0 #danger.20"},outline:{"":"0 #danger.0",focused:"@outline-width #danger.50"},border:{"":"#clear",'[data-type="primary"] & pressed':"#danger-text",'[data-type="secondary"] & pressed':"#danger.3",'[data-type="outline"]':"#danger-text.3",'([data-type="clear"] | [data-type="outline"]) & pressed':"#danger-text.10",'[data-type="outline"] & pressed':"#danger.3",'[data-type="link"]':"#clear"},fill:{"":"#clear",'[data-type="primary"]':"#danger",'[data-type="primary"] & hovered':"#danger-text",'[data-type="primary"] & pressed':"#danger",'[data-type="secondary"]':"#danger.05",'[data-type="secondary"] & hovered':"#danger.1",'[data-type="secondary"] & pressed':"#danger.05",'[data-type="neutral"]':"#dark.0",'[data-type="neutral"] & hovered':"#dark.04",'[data-type="neutral"] & pressed':"#dark.05",'[disabled] & ![data-type="link"]':"#dark.04",'[data-type="clear"] | [data-type="outline"]':"#danger.0",'([data-type="clear"] | [data-type="outline"]) & hovered':"#danger.1",'([data-type="clear"] | [data-type="outline"]) & pressed':"#danger.05",'([data-type="clear"] | [data-type="outline"]) & [disabled]':"#danger.0"},color:{"":"#white",'[data-type="neutral"]':"#dark.75",'[data-type="neutral"] & hovered':"#dark.75",'[data-type="secondary"]':"#danger",'[data-type="clear"] | [data-type="outline"] | [data-type="link"]':"#danger-text",'[data-type="link"] & pressed':"#danger",'[data-type="neutral"] & pressed':"#danger","[disabled]":"#dark.30"}},special:{shadow:{"":!1,'[data-type="link"]':"0 @border-width 0 0 #white.44",'[data-type="link"] & (pressed | hovered | [disabled])':"0 0 0 0 #white.44"},outline:{"":"0 #white.0",focused:"@outline-width #white.44",'([data-type="primary"] | [data-type="clear"])':"0 #dark-03.80",'([data-type="primary"] | [data-type="clear"]) & focused':"@outline-width #purple-03.80"},border:{"":"#clear",'[data-type="primary"] & pressed':"#purple-03",'[data-type="secondary"] & pressed':"#white.44",'[data-type="outline"] & !pressed':"#white.44"},fill:{"":"#clear",'[data-type="primary"]':"#purple",'[data-type="primary"] & pressed':"#purple",'[data-type="primary"] & hovered':"#purple-text",'[data-type="secondary"]':"#white.12",'[data-type="clear"]':"#white",'[data-type="clear"] & hovered':"#white.94",'[data-type="clear"] & pressed':"#white",'[disabled] & ![data-type="link"]':"#white.12",'([data-type="neutral"] | [data-type="outline"])':"#white.0",'([data-type="neutral"] | [data-type="outline"] | [data-type="secondary"]) & hovered':"#white.18",'([data-type="neutral"] | [data-type="outline"] | [data-type="secondary"]) & pressed':"#white.12",'([data-type="clear"] | [data-type="outline"]) & [disabled]':"#white.0"},color:{"":"#white",'[data-type="clear"]':"#purple","[disabled]":"#white.30"}}}}),Button$1=reactExports.forwardRef(function(j,et){var yt;let{type:tt,size:rt,label:nt,children:at,theme:it="default",icon:ot,rightIcon:st,mods:lt,...ct}=j;const ut=ct.isDisabled||ct.isLoading,dt=ct.isLoading,ft=ct.isSelected;if(at=at||ot||st?at:nt,!at){const $t=(yt=nt!=null?nt:ct["aria-label"])!=null?yt:ct["aria-labelledby"];$t||(nt="Unnamed")}ot&&(ot=reactExports.cloneElement(ot,{"data-element":"ButtonIcon"})),st&&(st=reactExports.cloneElement(st,{"data-element":"ButtonIcon"}));const ht=!!((ot&&!st||st&&!ot)&&!at),mt=reactExports.useMemo(()=>({loading:dt,selected:ft,"single-icon-only":ht,...lt}),[lt,ut,dt,ft,ht]),{actionProps:vt}=useAction({...j,isDisabled:ut,mods:mt,...nt?{label:nt}:{}},et),pt=extractStyles(ct,STYLE_PROPS),gt=vt.isDisabled;return delete vt.isDisabled,jsxs(ButtonElement,{...vt,disabled:gt,variant:it,"data-theme":it,"data-type":tt!=null?tt:"secondary","data-size":rt!=null?rt:"medium",styles:pt,children:[ot||dt?dt?jsx(LoadingOutlined$4,{"data-element":"ButtonIcon"}):ot:null,at,st]})});/**
|
|
615
615
|
* @license MIT
|
|
616
616
|
* author: Cube Dev Team
|
|
617
|
-
* @cube-dev/ui-kit v0.
|
|
617
|
+
* @cube-dev/ui-kit v0.31.2
|
|
618
618
|
* Released under the MIT license.
|
|
619
619
|
*/function timeout(s=30){return new Promise(j=>{setTimeout(j,s)})}var validUrl$1={exports:{}};(function(s){(function(j){j.exports.is_uri=tt,j.exports.is_http_uri=rt,j.exports.is_https_uri=nt,j.exports.is_web_uri=at,j.exports.isUri=tt,j.exports.isHttpUri=rt,j.exports.isHttpsUri=nt,j.exports.isWebUri=at;var et=function(it){var ot=it.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/);return ot};function tt(it){if(it&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(it)&&!/%[^0-9a-f]/i.test(it)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(it)){var ot=[],st="",lt="",ct="",ut="",dt="",ft="";if(ot=et(it),st=ot[1],lt=ot[2],ct=ot[3],ut=ot[4],dt=ot[5],!!(st&&st.length&&ct.length>=0)){if(lt&<.length){if(!(ct.length===0||/^\//.test(ct)))return}else if(/^\/\//.test(ct))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(st.toLowerCase()))return ft+=st+":",lt&<.length&&(ft+="//"+lt),ft+=ct,ut&&ut.length&&(ft+="?"+ut),dt&&dt.length&&(ft+="#"+dt),ft}}}function rt(it,ot){if(tt(it)){var st=[],lt="",ct="",ut="",dt="",ft="",ht="",mt="";if(st=et(it),lt=st[1],ct=st[2],ut=st[3],ft=st[4],ht=st[5],!!lt){if(ot){if(lt.toLowerCase()!="https")return}else if(lt.toLowerCase()!="http")return;if(ct)return/:(\d+)$/.test(ct)&&(dt=ct.match(/:(\d+)$/)[0],ct=ct.replace(/:\d+$/,"")),mt+=lt+":",mt+="//"+ct,dt&&(mt+=dt),mt+=ut,ft&&ft.length&&(mt+="?"+ft),ht&&ht.length&&(mt+="#"+ht),mt}}}function nt(it){return rt(it,!0)}function at(it){return rt(it)||nt(it)}})(s)})(validUrl$1);var validUrlExports=validUrl$1.exports;const validUrl=getDefaultExportFromCjs(validUrlExports);var tester=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/,validate$1=function(s){if(!s||s.length>254)return!1;var j=tester.test(s);if(!j)return!1;var et=s.split("@");if(et[0].length>64)return!1;var tt=et[1].split(".");return!tt.some(function(rt){return rt.length>63})};/**
|
|
620
620
|
* @license MIT
|
|
621
621
|
* author: Cube Dev Team
|
|
622
|
-
* @cube-dev/ui-kit v0.
|
|
622
|
+
* @cube-dev/ui-kit v0.31.2
|
|
623
623
|
* Released under the MIT license.
|
|
624
624
|
*/const TYPE_CHECKERS={string(s){return typeof s=="string"},number(s){return typeof s=="number"},boolean(s){return typeof s=="boolean"},method(s){return typeof s=="function"},regexp(s){return s instanceof RegExp},integer(s){return typeof s=="number"&&s===parseInt(String(s),10)},array(s){return Array.isArray(s)},object(s){return typeof s=="object"&&!Array.isArray(s)},date(s){return s instanceof Date},url(s){return typeof s=="string"&&validUrl.isUri(s)},hex(s){return typeof s=="string"&&s.match(/^#([0-9a-f]{3}|[0-9a-f]{6})$/)},email(s){return validate$1(s)},any(s){return!0}},TYPE_LIST=Object.keys(TYPE_CHECKERS),VALIDATORS={async required(s){return Array.isArray(s)?s.length?Promise.resolve():Promise.reject():s||s===0?Promise.resolve():Promise.reject()},async whitespace(s){return typeof s!="string"||s.trim()?Promise.resolve():Promise.reject()},async pattern(s,j){const et=j.pattern;return typeof s!="string"||s.match(et)?Promise.resolve():Promise.reject()},async enum(s,j){const et=j.enum||[];return!s&&s!==0||et.includes(s)?Promise.resolve():Promise.reject()},async len(s,j){const et=j.len;return typeof s=="number"?s===et?Promise.resolve():Promise.reject():!s||!("length"in s)||s.length===et?Promise.resolve():Promise.reject()},async max(s,j){const et=j.max;return typeof s=="number"?s<=et?Promise.resolve():Promise.reject():!s||typeof s!="string"&&!Array.isArray(s)||s.length<=et?Promise.resolve():Promise.reject()},async min(s,j){const et=j.min;return typeof s=="number"?s>=et?Promise.resolve():Promise.reject():!s||typeof s!="string"&&!Array.isArray(s)||s.length>=et?Promise.resolve():Promise.reject()},async validator(s,j){return j.validator(j,s)},async type(s,j){const et=j.type;return TYPE_LIST.includes(et)?TYPE_CHECKERS[et](s)?Promise.resolve():Promise.reject():Promise.resolve()}},VALIDATOR_NAMES=Object.keys(VALIDATORS);async function applyRule(s,j,et){typeof j=="function"&&(j=j(et)),typeof j.transform=="function"&&(s=j.transform(s));for(let tt of VALIDATOR_NAMES){if(!(tt in j))continue;const rt=VALIDATORS[tt];await rt(s,j)}}async function applyRules(s,j,et=0){const{value:tt,rules:rt}=s;if(!(!rt||!rt.length))for(let nt of rt){if(s.validationId&&et!==s.validationId)return;await applyRule(tt,nt,j).catch(at=>{throw at instanceof Error&&(at=(at==null?void 0:at.message)||nt.message),at||nt.message})}}const delayValidationRule=(s=500)=>{let j,et;return{async validator(){return clearTimeout(j),et&&et(),new Promise(tt=>{et=tt,j=setTimeout(()=>{tt()},s)})}}};/**
|
|
625
625
|
* @license MIT
|
|
626
626
|
* author: Cube Dev Team
|
|
627
|
-
* @cube-dev/ui-kit v0.
|
|
627
|
+
* @cube-dev/ui-kit v0.31.2
|
|
628
628
|
* Released under the MIT license.
|
|
629
629
|
*/function setValue(s,j,et){let tt=j.split("."),rt=s;for(;tt.length-1;){let nt=tt.shift();nt in rt||(rt[nt]={}),rt=rt[nt]}rt[tt[0]]=et}function isEqual$3(s,j){return JSON.stringify(s)===JSON.stringify(j)}class CubeFormInstance{constructor(j=()=>{}){this.forceReRender=()=>{},this.initialFields={},this.fields={},this.ref={},this.isSubmitting=!1,this.submitError=null,this.onValuesChange=()=>{},this.onSubmit=()=>{},this.setFieldsValue=(et,tt,rt,nt=!1,at=!1)=>{let it=!1;Object.keys(et).forEach(ot=>{let st=this.fields[ot];if(!st&&nt&&(this.createField(ot,rt),st=this.fields[ot]),!st||isEqual$3(st.value,et[ot])){st&&tt===!1&&(st.errors=[]);return}it=!0,at||(st.value=et[ot]),st.inputValue=et[ot],tt===!0?st.touched=tt:tt===!1&&(st.touched=!1,st.errors=[])}),it&&!rt&&(tt&&!at&&(this.onValuesChange&&this.onValuesChange(this.getFormData()),this.submitError=null),this.forceReRender())},this.forceReRender=j,this.getFieldValue=this.getFieldValue.bind(this),this.getFieldsValue=this.getFieldsValue.bind(this),this.setFieldValue=this.setFieldValue.bind(this),this.getFieldError=this.getFieldError.bind(this),this.getFieldInstance=this.getFieldInstance.bind(this),this.setInitialFieldsValue=this.setInitialFieldsValue.bind(this),this.resetFields=this.resetFields.bind(this),this.validateField=this.validateField.bind(this),this.validateFields=this.validateFields.bind(this),this.isFieldValid=this.isFieldValid.bind(this),this.createField=this.createField.bind(this),this.isFieldInvalid=this.isFieldInvalid.bind(this),this.isFieldTouched=this.isFieldTouched.bind(this),this.setFields=this.setFields.bind(this)}async submit(){var j;return(j=this.onSubmit)==null?void 0:j.call(this,this.getFormData())}getFieldValue(j){var et;return(et=this.fields[j])==null?void 0:et.value}getFieldsValue(){return Object.values(this.fields).reduce((j,et)=>(et&&j&&(j[et.name]=et.value),j),{})}getFormData(){const j=this.getFieldsValue();return Object.keys(j).reduce((et,tt)=>(setValue(et,tt,j[tt]),tt.includes(".")&&delete et[tt],et),{})}setFieldValue(j,et,tt=!1,rt=!1,nt=!1){const at=this.fields[j];!at||isEqual$3(et,nt?at.inputValue:at.value)||(nt||(at.value=et,at.status=void 0),at.inputValue=et,tt&&(at.touched=tt),rt||(at.errors=[]),tt&&!nt&&(this.onValuesChange&&this.onValuesChange(this.getFormData()),this.submitError=null),rt||this.forceReRender())}getFieldInstance(j){return this.fields[j]}setInitialFieldsValue(j){var et;this.initialFields=(et=dotize.convert(j))!=null?et:{}}updateInitialFieldsValue(j){this.initialFields={...this.initialFields,...dotize.convert(j)}}resetFields(j,et){const tt=this.getFieldsValue(),rt=Object.keys({...tt,...this.initialFields}),at=(j?rt.filter(it=>j.includes(it)):rt).reduce((it,ot)=>(ot in this.initialFields?it[ot]=this.initialFields[ot]:it[ot]=void 0,it),{});this.setFieldsValue(at,!1,et,!0)}async validateField(j){const et=this.getFieldInstance(j);if(!et||!et.rules||et.status==="valid")return Promise.resolve();if(et.status==="invalid")return Promise.reject(et.errors[0]);et.validating=!0,et.validationId?et.validationId++:et.validationId=1;const tt=et.validationId;return applyRules(et,this,tt).then(()=>{et.validationId===tt&&(et.validating=!1,(!et.errors||et.errors.length)&&(et.errors=[]),et.status="valid",this.forceReRender())}).catch(rt=>(et.validationId===tt&&(et.errors=[rt],et.validating=!1,et.status="invalid",this.forceReRender()),Promise.reject([rt])))}validateFields(j){const et=j||Object.keys(this.fields),tt=[];return Promise.allSettled(et.map(rt=>this.validateField(rt).catch(nt=>(tt.push({name:rt,errors:nt}),Promise.reject())))).then(()=>tt.length?Promise.reject(tt):this.getFormData())}isFieldValid(j){const et=this.getFieldInstance(j);return et?!et.errors.length:!0}isFieldInvalid(j){const et=this.getFieldInstance(j);return et?!!et.errors.length:!1}isFieldTouched(j){const et=this.getFieldInstance(j);return et?!!et.touched:!1}getFieldError(j){const et=this.getFieldInstance(j);return et?et.errors||[]:[]}createField(j,et){return j?(this.fields[j]||(this.fields[j]=this._createField(j)),et||this.forceReRender(),this.fields[j]):this._createField(j)}removeField(j,et){this.fields[j]&&delete this.fields[j],et||this.forceReRender()}setFields(j){j.forEach(({name:et,value:tt,errors:rt})=>{this.fields[et]=this._createField(et,{value:tt,errors:rt})}),this.forceReRender()}setSubmitting(j){this.isSubmitting!==j&&(this.isSubmitting=j,this.forceReRender())}_createField(j,et){var rt;let tt={name:j,validating:!1,touched:!1,errors:[],validationId:0,...et,status:(rt=et==null?void 0:et.errors)!=null&&rt.length?"invalid":void 0};return tt&&(tt.inputValue=tt.value),tt}}function useForm(s,j,et={}){const{onSubmit:tt,onValuesChange:rt}=et,nt=reactExports.useRef(),[,at]=reactExports.useState({});if(!nt.current){if(s)nt.current=s;else{const it=()=>{at({})};s=nt.current=new CubeFormInstance(it)}s.ref=j}return tt&&(nt.current.onSubmit=tt),rt&&(nt.current.onValuesChange=rt),[nt.current]}/**
|
|
630
630
|
* @license MIT
|
|
631
631
|
* author: Cube Dev Team
|
|
632
|
-
* @cube-dev/ui-kit v0.
|
|
632
|
+
* @cube-dev/ui-kit v0.31.2
|
|
633
633
|
* Released under the MIT license.
|
|
634
634
|
*/const FormContext=reactExports.createContext({}),FormElement=tasty({as:"form",qa:"Form",styles:{display:{"":"block",horizontal:"flex"},flow:{"":"column",horizontal:"row"},placeItems:{"":"initial",horizontal:"center"},gap:"2x","@label-width":"25x"}});function useFormProps(s){return{...reactExports.useContext(FormContext),...s}}const formPropNames=new Set(["action","autoComplete","encType","method","target"]);function Form(s,j){s=useProviderProps(s);let{qa:et,name:tt,children:rt,labelPosition:nt,orientation:at,isRequired:it,necessityIndicator:ot,isDisabled:st,isReadOnly:lt,validationState:ct,labelStyles:ut,validateTrigger:dt,showValid:ft,defaultValues:ht,onValuesChange:mt,requiredMark:vt=!0,form:pt,labelWidth:gt,onSubmit:yt,onSubmitFailed:$t,...xt}=s;const Ct=reactExports.useRef(!0),bt=at==="horizontal";at||(at="vertical"),nt||(nt=bt?"side":"top"),gt||(gt=bt?"auto":void 0),j=useCombinedRefs(j);let St;(yt||$t)&&!xt.action&&(St=async Pt=>{if(Pt&&(Pt!=null&&Pt.preventDefault)&&(Pt&&(Pt!=null&&Pt.preventDefault)&&(Pt==null||Pt.preventDefault()),Pt&&(Pt!=null&&Pt.stopPropagation)&&(Pt==null||Pt.stopPropagation()),Pt.nativeEvent)){const Et=Pt.nativeEvent;if(Et.submitter&&Et.submitter.getAttribute("type")!=="submit")return}if(!(!pt||pt.isSubmitting)){pt.submitError=null,pt.setSubmitting(!0);try{try{await pt.validateFields()}catch(Et){pt==null||pt.setSubmitting(!1);return}await timeout(),await(yt==null?void 0:yt(pt.getFormData()))}catch(Et){if(await timeout(),pt.submitError=Et,$t==null||$t(Et),Et instanceof Error)throw Et}finally{pt==null||pt.setSubmitting(!1)}}}),[pt]=useForm(pt,j&&j.current,{onSubmit:St,onValuesChange:mt});let _t=extractStyles(xt,CONTAINER_STYLES);gt&&(_t["@label-width"]=gt);let wt=$98e5a8ae0e6415af$export$c2c55ef9111cafd8(j),Rt={labelPosition:nt,labelStyles:ut,orientation:at,necessityIndicator:ot,validateTrigger:dt,requiredMark:vt,showValid:ft,form:pt,submitError:pt.submitError,idPrefix:tt};return Ct.current&&pt&&ht&&(pt.setInitialFieldsValue(ht),pt.resetFields(void 0,!0),Ct.current=!1),reactExports.useEffect(()=>{ht&&(pt==null||pt.setInitialFieldsValue(ht))},[ht]),jsx(FormElement,{...filterBaseProps(xt,{propNames:formPropNames}),ref:wt,noValidate:!0,styles:_t,mods:{"has-sider":nt==="side",horizontal:bt},onSubmit:St,children:jsx(FormContext.Provider,{value:Rt,children:jsx(Provider$1,{insideForm:!0,isDisabled:st,isReadOnly:lt,isRequired:it,validationState:ct,children:rt})})})}const _Form=reactExports.forwardRef(Form);/**
|
|
635
635
|
* @license MIT
|
|
636
636
|
* author: Cube Dev Team
|
|
637
|
-
* @cube-dev/ui-kit v0.
|
|
637
|
+
* @cube-dev/ui-kit v0.31.2
|
|
638
638
|
* Released under the MIT license.
|
|
639
639
|
*/const SpaceElement=tasty({styles:{display:"flex",gap:!0,flow:{"":"row",vertical:"column"},placeItems:{"":"center stretch",vertical:"stretch"}}}),Space=reactExports.forwardRef(function(j,et){const{mods:tt,direction:rt,...nt}=j,at=extractStyles(nt,CONTAINER_STYLES);return jsx(SpaceElement,{...filterBaseProps(nt,{eventProps:!0}),ref:et,mods:{vertical:rt==="vertical"||nt.flow==="column",...tt},styles:at})});/**
|
|
640
640
|
* @license MIT
|
|
641
641
|
* author: Cube Dev Team
|
|
642
|
-
* @cube-dev/ui-kit v0.
|
|
642
|
+
* @cube-dev/ui-kit v0.31.2
|
|
643
643
|
* Released under the MIT license.
|
|
644
644
|
*/const ButtonGroupElement=tasty(Space,{qa:"ButtonGroup",styles:{gridArea:"buttonGroup"}}),ButtonGroup=reactExports.forwardRef(function(j,et){return jsx(ButtonGroupElement,{ref:et,...useSlotProps(j,"buttonGroup")})});/**
|
|
645
645
|
* @license MIT
|
|
646
646
|
* author: Cube Dev Team
|
|
647
|
-
* @cube-dev/ui-kit v0.
|
|
647
|
+
* @cube-dev/ui-kit v0.31.2
|
|
648
648
|
* Released under the MIT license.
|
|
649
649
|
*/const Button=Object.assign(Button$1,{Group:ButtonGroup});var prism={exports:{}};(function(s){var j=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
650
650
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
@@ -657,37 +657,37 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
657
657
|
`),mt.hasAttribute("data-start")||mt.setAttribute("data-start",String(St+1))}vt.textContent=xt,et.highlightElement(vt)},function(xt){mt.setAttribute(it,lt),vt.textContent=xt})}}),et.plugins.fileHighlight={highlight:function(mt){for(var vt=(mt||document).querySelectorAll(ct),pt=0,gt;gt=vt[pt++];)et.highlightElement(gt)}};var ft=!1;et.fileHighlight=function(){ft||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),ft=!0),et.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(prism);var prismExports=prism.exports;const Prism=getDefaultExportFromCjs(prismExports);function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(s){for(var j=1;j<arguments.length;j++){var et=arguments[j];for(var tt in et)Object.prototype.hasOwnProperty.call(et,tt)&&(s[tt]=et[tt])}return s},_extends$2.apply(this,arguments)}function _objectWithoutPropertiesLoose$1(s,j){if(s==null)return{};var et={},tt=Object.keys(s),rt,nt;for(nt=0;nt<tt.length;nt++)rt=tt[nt],!(j.indexOf(rt)>=0)&&(et[rt]=s[rt]);return et}function _setPrototypeOf(s,j){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(tt,rt){return tt.__proto__=rt,tt},_setPrototypeOf(s,j)}function _inheritsLoose(s,j){s.prototype=Object.create(j.prototype),s.prototype.constructor=s,_setPrototypeOf(s,j)}function hasClass(s,j){return s.classList?!!j&&s.classList.contains(j):(" "+(s.className.baseVal||s.className)+" ").indexOf(" "+j+" ")!==-1}function addClass(s,j){s.classList?s.classList.add(j):hasClass(s,j)||(typeof s.className=="string"?s.className=s.className+" "+j:s.setAttribute("class",(s.className&&s.className.baseVal||"")+" "+j))}function replaceClassName(s,j){return s.replace(new RegExp("(^|\\s)"+j+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function removeClass$1(s,j){s.classList?s.classList.remove(j):typeof s.className=="string"?s.className=replaceClassName(s.className,j):s.setAttribute("class",replaceClassName(s.className&&s.className.baseVal||"",j))}const config$1={disabled:!1},TransitionGroupContext=React.createContext(null);var forceReflow=function(j){return j.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition$1=function(s){_inheritsLoose(j,s);function j(tt,rt){var nt;nt=s.call(this,tt,rt)||this;var at=rt,it=at&&!at.isMounting?tt.enter:tt.appear,ot;return nt.appearStatus=null,tt.in?it?(ot=EXITED,nt.appearStatus=ENTERING):ot=ENTERED:tt.unmountOnExit||tt.mountOnEnter?ot=UNMOUNTED:ot=EXITED,nt.state={status:ot},nt.nextCallback=null,nt}j.getDerivedStateFromProps=function(rt,nt){var at=rt.in;return at&&nt.status===UNMOUNTED?{status:EXITED}:null};var et=j.prototype;return et.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},et.componentDidUpdate=function(rt){var nt=null;if(rt!==this.props){var at=this.state.status;this.props.in?at!==ENTERING&&at!==ENTERED&&(nt=ENTERING):(at===ENTERING||at===ENTERED)&&(nt=EXITING)}this.updateStatus(!1,nt)},et.componentWillUnmount=function(){this.cancelNextCallback()},et.getTimeouts=function(){var rt=this.props.timeout,nt,at,it;return nt=at=it=rt,rt!=null&&typeof rt!="number"&&(nt=rt.exit,at=rt.enter,it=rt.appear!==void 0?rt.appear:at),{exit:nt,enter:at,appear:it}},et.updateStatus=function(rt,nt){if(rt===void 0&&(rt=!1),nt!==null)if(this.cancelNextCallback(),nt===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var at=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);at&&forceReflow(at)}this.performEnter(rt)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},et.performEnter=function(rt){var nt=this,at=this.props.enter,it=this.context?this.context.isMounting:rt,ot=this.props.nodeRef?[it]:[ReactDOM.findDOMNode(this),it],st=ot[0],lt=ot[1],ct=this.getTimeouts(),ut=it?ct.appear:ct.enter;if(!rt&&!at||config$1.disabled){this.safeSetState({status:ENTERED},function(){nt.props.onEntered(st)});return}this.props.onEnter(st,lt),this.safeSetState({status:ENTERING},function(){nt.props.onEntering(st,lt),nt.onTransitionEnd(ut,function(){nt.safeSetState({status:ENTERED},function(){nt.props.onEntered(st,lt)})})})},et.performExit=function(){var rt=this,nt=this.props.exit,at=this.getTimeouts(),it=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!nt||config$1.disabled){this.safeSetState({status:EXITED},function(){rt.props.onExited(it)});return}this.props.onExit(it),this.safeSetState({status:EXITING},function(){rt.props.onExiting(it),rt.onTransitionEnd(at.exit,function(){rt.safeSetState({status:EXITED},function(){rt.props.onExited(it)})})})},et.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},et.safeSetState=function(rt,nt){nt=this.setNextCallback(nt),this.setState(rt,nt)},et.setNextCallback=function(rt){var nt=this,at=!0;return this.nextCallback=function(it){at&&(at=!1,nt.nextCallback=null,rt(it))},this.nextCallback.cancel=function(){at=!1},this.nextCallback},et.onTransitionEnd=function(rt,nt){this.setNextCallback(nt);var at=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),it=rt==null&&!this.props.addEndListener;if(!at||it){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var ot=this.props.nodeRef?[this.nextCallback]:[at,this.nextCallback],st=ot[0],lt=ot[1];this.props.addEndListener(st,lt)}rt!=null&&setTimeout(this.nextCallback,rt)},et.render=function(){var rt=this.state.status;if(rt===UNMOUNTED)return null;var nt=this.props,at=nt.children;nt.in,nt.mountOnEnter,nt.unmountOnExit,nt.appear,nt.enter,nt.exit,nt.timeout,nt.addEndListener,nt.onEnter,nt.onEntering,nt.onEntered,nt.onExit,nt.onExiting,nt.onExited,nt.nodeRef;var it=_objectWithoutPropertiesLoose$1(nt,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return jsx(TransitionGroupContext.Provider,{value:null,children:typeof at=="function"?at(rt,it):React.cloneElement(React.Children.only(at),it)})},j}(React.Component);Transition$1.contextType=TransitionGroupContext;Transition$1.propTypes={};function noop$3(){}Transition$1.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$3,onEntering:noop$3,onEntered:noop$3,onExit:noop$3,onExiting:noop$3,onExited:noop$3};Transition$1.UNMOUNTED=UNMOUNTED;Transition$1.EXITED=EXITED;Transition$1.ENTERING=ENTERING;Transition$1.ENTERED=ENTERED;Transition$1.EXITING=EXITING;const Transition$2=Transition$1;var _addClass=function(j,et){return j&&et&&et.split(" ").forEach(function(tt){return addClass(j,tt)})},removeClass=function(j,et){return j&&et&&et.split(" ").forEach(function(tt){return removeClass$1(j,tt)})},CSSTransition=function(s){_inheritsLoose(j,s);function j(){for(var tt,rt=arguments.length,nt=new Array(rt),at=0;at<rt;at++)nt[at]=arguments[at];return tt=s.call.apply(s,[this].concat(nt))||this,tt.appliedClasses={appear:{},enter:{},exit:{}},tt.onEnter=function(it,ot){var st=tt.resolveArguments(it,ot),lt=st[0],ct=st[1];tt.removeClasses(lt,"exit"),tt.addClass(lt,ct?"appear":"enter","base"),tt.props.onEnter&&tt.props.onEnter(it,ot)},tt.onEntering=function(it,ot){var st=tt.resolveArguments(it,ot),lt=st[0],ct=st[1],ut=ct?"appear":"enter";tt.addClass(lt,ut,"active"),tt.props.onEntering&&tt.props.onEntering(it,ot)},tt.onEntered=function(it,ot){var st=tt.resolveArguments(it,ot),lt=st[0],ct=st[1],ut=ct?"appear":"enter";tt.removeClasses(lt,ut),tt.addClass(lt,ut,"done"),tt.props.onEntered&&tt.props.onEntered(it,ot)},tt.onExit=function(it){var ot=tt.resolveArguments(it),st=ot[0];tt.removeClasses(st,"appear"),tt.removeClasses(st,"enter"),tt.addClass(st,"exit","base"),tt.props.onExit&&tt.props.onExit(it)},tt.onExiting=function(it){var ot=tt.resolveArguments(it),st=ot[0];tt.addClass(st,"exit","active"),tt.props.onExiting&&tt.props.onExiting(it)},tt.onExited=function(it){var ot=tt.resolveArguments(it),st=ot[0];tt.removeClasses(st,"exit"),tt.addClass(st,"exit","done"),tt.props.onExited&&tt.props.onExited(it)},tt.resolveArguments=function(it,ot){return tt.props.nodeRef?[tt.props.nodeRef.current,it]:[it,ot]},tt.getClassNames=function(it){var ot=tt.props.classNames,st=typeof ot=="string",lt=st&&ot?ot+"-":"",ct=st?""+lt+it:ot[it],ut=st?ct+"-active":ot[it+"Active"],dt=st?ct+"-done":ot[it+"Done"];return{baseClassName:ct,activeClassName:ut,doneClassName:dt}},tt}var et=j.prototype;return et.addClass=function(rt,nt,at){var it=this.getClassNames(nt)[at+"ClassName"],ot=this.getClassNames("enter"),st=ot.doneClassName;nt==="appear"&&at==="done"&&st&&(it+=" "+st),at==="active"&&rt&&forceReflow(rt),it&&(this.appliedClasses[nt][at]=it,_addClass(rt,it))},et.removeClasses=function(rt,nt){var at=this.appliedClasses[nt],it=at.base,ot=at.active,st=at.done;this.appliedClasses[nt]={},it&&removeClass(rt,it),ot&&removeClass(rt,ot),st&&removeClass(rt,st)},et.render=function(){var rt=this.props;rt.classNames;var nt=_objectWithoutPropertiesLoose$1(rt,["classNames"]);return jsx(Transition$2,{...nt,onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited})},j}(React.Component);CSSTransition.defaultProps={classNames:""};CSSTransition.propTypes={};const CSSTransition$1=CSSTransition;function _assertThisInitialized(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function getChildMapping(s,j){var et=function(nt){return j&&reactExports.isValidElement(nt)?j(nt):nt},tt=Object.create(null);return s&&reactExports.Children.map(s,function(rt){return rt}).forEach(function(rt){tt[rt.key]=et(rt)}),tt}function mergeChildMappings(s,j){s=s||{},j=j||{};function et(lt){return lt in j?j[lt]:s[lt]}var tt=Object.create(null),rt=[];for(var nt in s)nt in j?rt.length&&(tt[nt]=rt,rt=[]):rt.push(nt);var at,it={};for(var ot in j){if(tt[ot])for(at=0;at<tt[ot].length;at++){var st=tt[ot][at];it[tt[ot][at]]=et(st)}it[ot]=et(ot)}for(at=0;at<rt.length;at++)it[rt[at]]=et(rt[at]);return it}function getProp(s,j,et){return et[j]!=null?et[j]:s.props[j]}function getInitialChildMapping(s,j){return getChildMapping(s.children,function(et){return reactExports.cloneElement(et,{onExited:j.bind(null,et),in:!0,appear:getProp(et,"appear",s),enter:getProp(et,"enter",s),exit:getProp(et,"exit",s)})})}function getNextChildMapping(s,j,et){var tt=getChildMapping(s.children),rt=mergeChildMappings(j,tt);return Object.keys(rt).forEach(function(nt){var at=rt[nt];if(reactExports.isValidElement(at)){var it=nt in j,ot=nt in tt,st=j[nt],lt=reactExports.isValidElement(st)&&!st.props.in;ot&&(!it||lt)?rt[nt]=reactExports.cloneElement(at,{onExited:et.bind(null,at),in:!0,exit:getProp(at,"exit",s),enter:getProp(at,"enter",s)}):!ot&&it&&!lt?rt[nt]=reactExports.cloneElement(at,{in:!1}):ot&&it&&reactExports.isValidElement(st)&&(rt[nt]=reactExports.cloneElement(at,{onExited:et.bind(null,at),in:st.props.in,exit:getProp(at,"exit",s),enter:getProp(at,"enter",s)}))}}),rt}var values$1=Object.values||function(s){return Object.keys(s).map(function(j){return s[j]})},defaultProps$1={component:"div",childFactory:function(j){return j}},TransitionGroup=function(s){_inheritsLoose(j,s);function j(tt,rt){var nt;nt=s.call(this,tt,rt)||this;var at=nt.handleExited.bind(_assertThisInitialized(nt));return nt.state={contextValue:{isMounting:!0},handleExited:at,firstRender:!0},nt}var et=j.prototype;return et.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},et.componentWillUnmount=function(){this.mounted=!1},j.getDerivedStateFromProps=function(rt,nt){var at=nt.children,it=nt.handleExited,ot=nt.firstRender;return{children:ot?getInitialChildMapping(rt,it):getNextChildMapping(rt,at,it),firstRender:!1}},et.handleExited=function(rt,nt){var at=getChildMapping(this.props.children);rt.key in at||(rt.props.onExited&&rt.props.onExited(nt),this.mounted&&this.setState(function(it){var ot=_extends$2({},it.children);return delete ot[rt.key],{children:ot}}))},et.render=function(){var rt=this.props,nt=rt.component,at=rt.childFactory,it=_objectWithoutPropertiesLoose$1(rt,["component","childFactory"]),ot=this.state.contextValue,st=values$1(this.state.children).map(at);return delete it.appear,delete it.enter,delete it.exit,nt===null?jsx(TransitionGroupContext.Provider,{value:ot,children:st}):jsx(TransitionGroupContext.Provider,{value:ot,children:jsx(nt,{...it,children:st})})},j}(React.Component);TransitionGroup.propTypes={};TransitionGroup.defaultProps=defaultProps$1;const TransitionGroup$1=TransitionGroup;/**
|
|
658
658
|
* @license MIT
|
|
659
659
|
* author: Cube Dev Team
|
|
660
|
-
* @cube-dev/ui-kit v0.
|
|
660
|
+
* @cube-dev/ui-kit v0.31.2
|
|
661
661
|
* Released under the MIT license.
|
|
662
662
|
*/const PortalContext=reactExports.createContext(null);function usePortalContext(){return{root:reactExports.useContext(PortalContext)}}const PortalProvider=PortalContext.Provider;var isProduction=!0,prefix$2="Invariant failed";function invariant$1(s,j){if(!s){if(isProduction)throw new Error(prefix$2);var et=typeof j=="function"?j():j,tt=et?"".concat(prefix$2,": ").concat(et):prefix$2;throw new Error(tt)}}/**
|
|
663
663
|
* @license MIT
|
|
664
664
|
* author: Cube Dev Team
|
|
665
|
-
* @cube-dev/ui-kit v0.
|
|
665
|
+
* @cube-dev/ui-kit v0.31.2
|
|
666
666
|
* Released under the MIT license.
|
|
667
667
|
*/function usePortal(s){const{children:j,isDisabled:et=!1,root:tt=null,onMount:rt}=s,nt=reactExports.useRef(rt),at=usePortalContext(),[it,ot]=reactExports.useState(null);return nt.current=rt,reactExports.useEffect(()=>{var st,lt;if(!et){const ct=at.root,ut=(st=tt==null?void 0:tt.current)!=null?st:null,dt=(lt=ct==null?void 0:ct.current)!=null?lt:null;invariant$1(!(ct===null&&ut===null),"Before using Portal, you need to specify a root, where the component should be mounted or put the component under the <Root /> component"),ot(ut!=null?ut:dt)}},[tt,at.root,et]),reactExports.useEffect(()=>{var st;(et||it)&&((st=nt.current)==null||st.call(nt))},[et,it]),{isDisabled:et,children:j,mountRoot:it}}/**
|
|
668
668
|
* @license MIT
|
|
669
669
|
* author: Cube Dev Team
|
|
670
|
-
* @cube-dev/ui-kit v0.
|
|
670
|
+
* @cube-dev/ui-kit v0.31.2
|
|
671
671
|
* Released under the MIT license.
|
|
672
672
|
*/function Portal(s){const{children:j,mountRoot:et,isDisabled:tt}=usePortal(s);return tt?jsx(Fragment,{children:j}):et?ReactDOM.createPortal(j,et):null}/**
|
|
673
673
|
* @license MIT
|
|
674
674
|
* author: Cube Dev Team
|
|
675
|
-
* @cube-dev/ui-kit v0.
|
|
675
|
+
* @cube-dev/ui-kit v0.31.2
|
|
676
676
|
* Released under the MIT license.
|
|
677
677
|
*/function OverlayWrapper({isOpen:s,placement:j,minOffset:et,minScale:tt,children:rt,container:nt=null}){const at=reactExports.useRef(nt);typeof et=="number"&&(et=`${et}px`);const it=jsx(CSSTransition$1,{unmountOnExit:!0,in:s,timeout:180,classNames:"cube-overlay-transition",children:jsx(Fragment,{children:rt})});return jsx(Portal,{root:at,children:it})}/**
|
|
678
678
|
* @license MIT
|
|
679
679
|
* author: Cube Dev Team
|
|
680
|
-
* @cube-dev/ui-kit v0.
|
|
680
|
+
* @cube-dev/ui-kit v0.31.2
|
|
681
681
|
* Released under the MIT license.
|
|
682
682
|
*/const TooltipContext=React.createContext({});/**
|
|
683
683
|
* @license MIT
|
|
684
684
|
* author: Cube Dev Team
|
|
685
|
-
* @cube-dev/ui-kit v0.
|
|
685
|
+
* @cube-dev/ui-kit v0.31.2
|
|
686
686
|
* Released under the MIT license.
|
|
687
687
|
*/const DEFAULT_OFFSET=8,DEFAULT_CROSS_OFFSET=0;function TooltipTrigger$1(s){let{children:j,activeWrap:et,crossOffset:tt=DEFAULT_CROSS_OFFSET,isDisabled:rt,isMaterial:nt,offset:at=DEFAULT_OFFSET,trigger:it,delay:ot=250,isOpen:st,onOpenChange:lt,defaultOpen:ct}=s,[ut,dt]=reactExports.Children.toArray(j),ft=$8796f90736e175cb$export$4d40659c25ecb50b({delay:ot,...s}),ht=reactExports.useRef(null),mt=reactExports.useRef(null),{triggerProps:vt,tooltipProps:pt}=$4e1b34546679e357$export$a6da6c504e4bba8b({isDisabled:rt,trigger:it,delay:ot,isOpen:st,onOpenChange:lt,defaultOpen:ct},ft,ht),{overlayProps:gt,arrowProps:yt,placement:$t}=$2a41e45df1593e64$export$d39e1813b3bdd0e1({placement:s.placement||"top",targetRef:ht,overlayRef:mt,offset:at,crossOffset:tt,isOpen:ft.isOpen});if(!et&&typeof ut=="string")return console.warn("CubeUIKit: Tooltips are only supported on elements that are both focusable and hoverable. To solve this issue you can: 1) Use active element as a trigger (`Button`, `Link`, etc); 2) Use `activeWrap` attribute to automatically wrap the content; 3) Use `ActiveZone` component to manually wrap the content."),jsx(Block,{children:ut});function xt(Ct){var bt;(bt=Ct==null?void 0:Ct.currentTarget)==null||bt.parentNode.click()}return jsxs($e6afbd83fe6ebbd2$export$13f3202a3e5ddd5,{...vt,ref:ht,children:[et?jsx(_ActiveZone,{onClick:xt,children:ut}):ut,jsx(TooltipContext.Provider,{value:{state:ft,placement:$t,ref:mt,overlayProps:gt,arrowProps:yt,minOffset:"var(--gap)",minScale:"1",isMaterial:nt,...pt},children:jsx(OverlayWrapper,{isOpen:ft.isOpen,placement:s.placement||"top",children:dt})})]})}let _TooltipTrigger=TooltipTrigger$1;/**
|
|
688
688
|
* @license MIT
|
|
689
689
|
* author: Cube Dev Team
|
|
690
|
-
* @cube-dev/ui-kit v0.
|
|
690
|
+
* @cube-dev/ui-kit v0.31.2
|
|
691
691
|
* Released under the MIT license.
|
|
692
692
|
*/const DIRECTION_MAP={initial:"top center",top:"bottom center",right:"center left",left:"center right",bottom:"top center"},TRANSLATE_MAP={initial:"translate(0px, calc(-1 * var(--overlay-offset)))",top:"translate(0px, calc(1 * var(--overlay-offset)))",right:"translate(calc(-1 * var(--overlay-offset)), 0px)",left:"translate(calc(1 * var(--overlay-offset)), 0px)",bottom:"translate(0px, calc(-1 * var(--overlay-offset)))"},getOverlayTransitionCSS=({suffix:s="",placement:j="initial",minScale:et=.8,minOffset:tt="8px"}={})=>`
|
|
693
693
|
&${s} {
|
|
@@ -729,74 +729,74 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
729
729
|
`;/**
|
|
730
730
|
* @license MIT
|
|
731
731
|
* author: Cube Dev Team
|
|
732
|
-
* @cube-dev/ui-kit v0.
|
|
732
|
+
* @cube-dev/ui-kit v0.31.2
|
|
733
733
|
* Released under the MIT license.
|
|
734
734
|
*/const TooltipElement=tasty({styles:{display:"block",fill:"#dark.85",color:"#white",width:"initial 36x max-content",radius:!0,padding:".75x 1x",preset:"t3",backdropFilter:"blur(.5x)",whiteSpace:"pre-line",pointerEvents:{"":"none",material:"auto"}}}),TooltipTipElement=tasty({styles:{position:"absolute",width:"1px",height:"1px",border:".5x #clear",borderTop:".5x solid #dark.85",borderBottom:"0",top:{"":"initial",'[data-placement="left"] | [data-placement="right"]':"50%",'[data-placement="top"]':"100%"},left:{"":"initial",'[data-placement="top"] | [data-placement="bottom"]':"50%",'[data-placement="left"]':"100%"},right:{"":"initial",'[data-placement="right"]':"100%"},bottom:{"":"initial",'[data-placement="bottom"]':"100%"},transform:{"":"translate((-.375x - 1px), 0)",'[data-placement="bottom"]':"translate((-.375x - 1px), 0) rotate(180deg)",'[data-placement="left"]':"translate(-.375x, -.25x) rotate(270deg)",'[data-placement="right"]':"translate(.375x, -.25x) rotate(90deg)"}}}),StyledTooltipElement=styled(TooltipElement)`
|
|
735
735
|
${s=>getOverlayTransitionCSS({placement:s==null?void 0:s["data-position"],minOffset:s==null?void 0:s["data-min-offset"],minScale:s==null?void 0:s["data-min-scale"]})}
|
|
736
736
|
`;function Tooltip(s,j){let{ref:et,arrowProps:tt,state:rt,overlayProps:nt,minOffset:at,minScale:it,...ot}=reactExports.useContext(TooltipContext),st=reactExports.useRef(null);const lt=et!=null?et:st;s=mergeProps(s,ot);let{placement:ct="top",isOpen:ut,tipStyles:dt,showIcon:ft,isMaterial:ht,...mt}=s;const vt=extractStyles(mt,CONTAINER_STYLES);let{tooltipProps:pt}=$326e436e94273fe1$export$1c4b08e0eca38426(s,rt);return reactExports.useImperativeHandle(j,()=>$98e5a8ae0e6415af$export$a5795cc979dfae80(lt)),typeof at=="number"&&(at=`${at}px`),typeof it=="number"&&(it=String(it)),jsxs(StyledTooltipElement,{...pt,...nt,ref:et,styles:vt,mods:{open:ut,material:ht},"data-min-offset":at,"data-min-scale":it,"data-placement":ct,children:[s.children,jsx(TooltipTipElement,{"data-placement":ct,styles:dt,...tt})]})}let _Tooltip=reactExports.forwardRef(Tooltip);/**
|
|
737
737
|
* @license MIT
|
|
738
738
|
* author: Cube Dev Team
|
|
739
|
-
* @cube-dev/ui-kit v0.
|
|
739
|
+
* @cube-dev/ui-kit v0.31.2
|
|
740
740
|
* Released under the MIT license.
|
|
741
741
|
*/function useNotificationsList(s){const{ref:j,children:et,items:tt}=s,rt=$e72dd72e1c76a225$export$2f645645f7bca764({selectionMode:"none",children:et,items:tt,suppressTextValueWarning:!0}),{listProps:nt}=$982254629710d113$export$b95089534ab7c1fd({ref:j,allowsTabNavigation:!0,...rt});return{listProps:nt,state:rt}}/**
|
|
742
742
|
* @license MIT
|
|
743
743
|
* author: Cube Dev Team
|
|
744
|
-
* @cube-dev/ui-kit v0.
|
|
744
|
+
* @cube-dev/ui-kit v0.31.2
|
|
745
745
|
* Released under the MIT license.
|
|
746
746
|
*/function useNotificationListItem(s){const{ref:j,key:et,state:{selectionManager:tt}}=s;return $880e95eb8b93ba9a$export$ecf600387e221c37({ref:j,key:et,selectionManager:tt})}/**
|
|
747
747
|
* @license MIT
|
|
748
748
|
* author: Cube Dev Team
|
|
749
|
-
* @cube-dev/ui-kit v0.
|
|
749
|
+
* @cube-dev/ui-kit v0.31.2
|
|
750
750
|
* Released under the MIT license.
|
|
751
751
|
*/function Danger(){return jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M13.58 15.5H2.42a2.4 2.4 0 0 1-2.1-1.21 2.4 2.4 0 0 1 0-2.42l5.59-9.66A2.4 2.4 0 0 1 8 1c.87 0 1.66.45 2.1 1.2l5.57 9.67a2.4 2.4 0 0 1 0 2.42 2.4 2.4 0 0 1-2.09 1.2ZM8 2.6a.8.8 0 0 0-.7.4l-5.58 9.67a.8.8 0 0 0 0 .8c.07.12.28.4.7.4h11.16a.8.8 0 0 0 .7-.4.8.8 0 0 0 0-.8L8.7 3a.8.8 0 0 0-.7-.4Zm0 9.67a.8.8 0 1 1 0-1.62.8.8 0 1 1 0 1.62Zm0-3.23a.8.8 0 0 1-.8-.8V6.64a.8.8 0 1 1 1.6 0v1.6a.8.8 0 0 1-.8.81Z"}),jsx("path",{d:"M7.2 6.8a.8.8 0 1 1 1.6 0v2.4a.8.8 0 0 1-1.6 0V6.8Z"})]})}/**
|
|
752
752
|
* @license MIT
|
|
753
753
|
* author: Cube Dev Team
|
|
754
|
-
* @cube-dev/ui-kit v0.
|
|
754
|
+
* @cube-dev/ui-kit v0.31.2
|
|
755
755
|
* Released under the MIT license.
|
|
756
756
|
*/function Attention(){return jsx("svg",{fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M7.94 11.04c-.82 0-1.49.67-1.49 1.49.08 1.96 2.9 1.96 2.97 0 0-.82-.67-1.49-1.48-1.49ZM9.42 2.68a1.93 1.93 0 0 0-3.39 1.58l.9 5.13c.2 1.12 1.8 1.12 2.02 0l.9-5.13c.1-.56-.06-1.14-.43-1.58Z"})})}/**
|
|
757
757
|
* @license MIT
|
|
758
758
|
* author: Cube Dev Team
|
|
759
|
-
* @cube-dev/ui-kit v0.
|
|
759
|
+
* @cube-dev/ui-kit v0.31.2
|
|
760
760
|
* Released under the MIT license.
|
|
761
761
|
*/function Success(){return jsx("svg",{fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"m13.67 5.88-5.8 5.8a1.1 1.1 0 0 1-1.55 0l-3-3a1.1 1.1 0 0 1 1.56-1.55l2.21 2.21 5.03-5.02a1.1 1.1 0 0 1 1.55 1.56Z"})})}/**
|
|
762
762
|
* @license MIT
|
|
763
763
|
* author: Cube Dev Team
|
|
764
|
-
* @cube-dev/ui-kit v0.
|
|
764
|
+
* @cube-dev/ui-kit v0.31.2
|
|
765
765
|
* Released under the MIT license.
|
|
766
766
|
*/function Cross(){return jsx("svg",{viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"m9.1 8 4.67-4.67a.78.78 0 1 0-1.1-1.1L8 6.9 3.33 2.23a.78.78 0 1 0-1.1 1.1L6.9 8l-4.67 4.67a.78.78 0 1 0 1.1 1.1L8 9.1l4.67 4.67a.78.78 0 0 0 1.1 0c.3-.3.3-.8 0-1.1L9.1 8Z"})})}/**
|
|
767
767
|
* @license MIT
|
|
768
768
|
* author: Cube Dev Team
|
|
769
|
-
* @cube-dev/ui-kit v0.
|
|
769
|
+
* @cube-dev/ui-kit v0.31.2
|
|
770
770
|
* Released under the MIT license.
|
|
771
771
|
*/const IconContainer=tasty({styles:{boxSizing:"border-box",display:"flex",alignSelf:"start",gridArea:"icon",minHeight:"3x",placeContent:"center"}}),IconPreset=tasty({styles:{boxSizing:"border-box",display:"flex",fill:{"":"#note-bg",attention:"#note-bg",success:"#success-bg",danger:"#danger-bg"},color:{"":"#note-text",attention:"#note-text",success:"#success-text",danger:"#danger-text"},borderRadius:"0.5x",width:"3x",height:"3x",padding:"0.5x",alignItems:"center",justifyContent:"center","& svg":{width:"100%",height:"100%"}}}),NotificationIcon=reactExports.memo(function(j){const{icon:et,type:tt}=j;return jsx(IconContainer,{children:et||jsx(IconPreset,{mods:{attention:tt==="attention",success:tt==="success",danger:tt==="danger"},children:iconsByType[tt]})})}),iconsByType={attention:jsx(Attention,{}),success:jsx(Success,{}),danger:jsx(Danger,{})};/**
|
|
772
772
|
* @license MIT
|
|
773
773
|
* author: Cube Dev Team
|
|
774
|
-
* @cube-dev/ui-kit v0.
|
|
774
|
+
* @cube-dev/ui-kit v0.31.2
|
|
775
775
|
* Released under the MIT license.
|
|
776
776
|
*/const Header$3=tasty(Title$2,{as:"div",preset:"h6",styles:{gridArea:"header",cursor:"default","&:not(:empty)":{margin:"0.25x 0 0.5x"}}}),NotificationHeader=reactExports.memo(function(j){const{header:et,...tt}=j;return jsx(Header$3,{...tt,children:et})});/**
|
|
777
777
|
* @license MIT
|
|
778
778
|
* author: Cube Dev Team
|
|
779
|
-
* @cube-dev/ui-kit v0.
|
|
779
|
+
* @cube-dev/ui-kit v0.31.2
|
|
780
780
|
* Released under the MIT license.
|
|
781
781
|
*/const Description=tasty(Paragraph$5,{as:"p",preset:"t4",styles:{gridArea:"description",display:"-webkit-box","-webkit-line-clamp":3,"-webkit-box-orient":"vertical",overflow:"hidden"}}),NotificationDescription=reactExports.memo(function(j){const{description:et,...tt}=j;return jsx(Description,{...mergeProps(tt,{onPointerDown:rt=>rt.stopPropagation(),onMouseDown:rt=>rt.stopPropagation()}),children:et})});var reactKeyedFlattenChildren={};Object.defineProperty(reactKeyedFlattenChildren,"__esModule",{value:!0});var react_1=reactExports,react_is_1=reactIsExports$2;function flattenChildren(s,j,et){return j===void 0&&(j=0),et===void 0&&(et=[]),react_1.Children.toArray(s).reduce(function(tt,rt,nt){return react_is_1.isFragment(rt)?tt.push.apply(tt,flattenChildren(rt.props.children,j+1,et.concat(rt.key||nt))):react_1.isValidElement(rt)?tt.push(react_1.cloneElement(rt,{key:et.concat(String(rt.key)).join(".")})):(typeof rt=="string"||typeof rt=="number")&&tt.push(rt),tt},[])}var _default$3=reactKeyedFlattenChildren.default=flattenChildren;/**
|
|
782
782
|
* @license MIT
|
|
783
783
|
* author: Cube Dev Team
|
|
784
|
-
* @cube-dev/ui-kit v0.
|
|
784
|
+
* @cube-dev/ui-kit v0.31.2
|
|
785
785
|
* Released under the MIT license.
|
|
786
786
|
*/const FooterArea=tasty(ButtonGroup,{styles:{gridArea:"footer",gap:"1x 2x",flow:"row wrap","&:not(:empty)":{margin:{"":"0.5x top","has-description":"1x top"}}}}),NotificationFooter=reactExports.memo(function(j){const{actions:et,onClose:tt,onDismiss:rt,hasDescription:nt}=j;return jsx(FooterArea,{mods:{"has-description":nt},children:_default$3(typeof et=="function"?et({onClose:tt,onDismiss:rt}):et).filter(at=>reactIsExports$1.isElement(at)).map((at,it)=>{var lt;const{props:ot}=at,st=it===0?"primary":"secondary";return React.cloneElement(at,{...ot,type:(lt=ot.type)!=null?lt:st},ot.children)})})});/**
|
|
787
787
|
* @license MIT
|
|
788
788
|
* author: Cube Dev Team
|
|
789
|
-
* @cube-dev/ui-kit v0.
|
|
789
|
+
* @cube-dev/ui-kit v0.31.2
|
|
790
790
|
* Released under the MIT license.
|
|
791
791
|
*/const CloseButton=tasty(Button,{icon:jsx(Cross,{}),label:"Close the notification",qa:"NotificationCloseButton",type:"neutral",size:"small",styles:{gridArea:"close",display:"flex",padding:"1x"}}),NotificationCloseButton=reactExports.memo(function(j){const{onPress:et}=j;return jsx(CloseButton,{onPress:et})});/**
|
|
792
792
|
* @license MIT
|
|
793
793
|
* author: Cube Dev Team
|
|
794
|
-
* @cube-dev/ui-kit v0.
|
|
794
|
+
* @cube-dev/ui-kit v0.31.2
|
|
795
795
|
* Released under the MIT license.
|
|
796
796
|
*/const NotificationContext=reactExports.createContext(null);function NotificationProvider(s){const{children:j,...et}=s;return jsx(NotificationContext.Provider,{value:et,children:j})}/**
|
|
797
797
|
* @license MIT
|
|
798
798
|
* author: Cube Dev Team
|
|
799
|
-
* @cube-dev/ui-kit v0.
|
|
799
|
+
* @cube-dev/ui-kit v0.31.2
|
|
800
800
|
* Released under the MIT license.
|
|
801
801
|
*/const NotificationContainer$1=tasty({styles:{boxSizing:"border-box",position:"relative",display:"grid",width:"100%",padding:"0.5x 0.5x 1.5x 1.5x",gridAreas:`
|
|
802
802
|
". . . . close"
|
|
@@ -806,12 +806,12 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
806
806
|
`,gridColumns:"min-content 1x minmax(0, auto) 1x minmax(0, min-content)",gridRows:"1x minmax(0, auto) minmax(0, auto) minmax(0, auto)",fill:"#white",boxShadow:{"":"0 0 0 4bw #purple-04.0 inset",focused:"0 0 0 4bw #purple-04 inset"}}}),NotificationView=reactExports.forwardRef(function(j,et){const{onClose:tt,actions:rt,header:nt,icon:at,description:it,id:ot,styles:st,type:lt="attention",isDismissible:ct=!0,duration:ut=null,attributes:dt={},qa:ft="notification",timer:ht,onDismiss:mt}=j,vt=useId(),pt=useId(),gt=useEvent(()=>{tt==null||tt()}),yt=useEvent(()=>{ct&&(mt==null||mt())}),{hoverProps:$t,isHovered:xt}=$6179b936705e76d3$export$ae780daf29e6d456({}),{isFocusVisible:Ct,focusProps:bt}=$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0});return useTimer({timer:ht,delay:ut,callback:yt,isDisabled:Ct||xt||!ct}),jsx(ClearSlots,{children:jsx(NotificationProvider,{onClose:tt,children:jsxs(NotificationContainer$1,{...mergeProps(dt,$t,bt),ref:et,styles:st,"data-id":ot,"data-qa":ft,"aria-labelledby":vt,"aria-describedby":pt,mods:{focused:Ct,"is-dismissible":ct},children:[jsx(NotificationIcon,{icon:at,type:lt}),jsx(NotificationHeader,{header:nt,id:vt}),it&&jsx(NotificationDescription,{description:it,id:pt}),jsx(NotificationFooter,{hasDescription:!!it,actions:rt,onClose:gt,onDismiss:yt}),ct&&jsx(NotificationCloseButton,{onPress:yt})]})})})});/**
|
|
807
807
|
* @license MIT
|
|
808
808
|
* author: Cube Dev Team
|
|
809
|
-
* @cube-dev/ui-kit v0.
|
|
809
|
+
* @cube-dev/ui-kit v0.31.2
|
|
810
810
|
* Released under the MIT license.
|
|
811
811
|
*/const NotificationContainer=tasty({styles:{overflow:"hidden",radius:"0.5x",boxShadow:"0 0.5x 2x #shadow",pointerEvents:"auto"}}),FloatingNotification=reactExports.memo(function(j){const{item:et,state:tt,onRemoveNotification:rt,id:nt,isDisabledTimer:at,onDismissNotification:it}=j,{props:ot,key:st}=et,lt=reactExports.useRef(null),ct=useChainedCallback(()=>rt(nt),ot.onClose),ut=useChainedCallback(()=>it(nt),()=>rt(nt),ot.onDismiss),dt=useEvent(({key:mt})=>{if(ot.isDismissible===!1)return;["Delete","Backspace","Escape"].includes(mt)&&ut()}),{itemProps:ft}=useNotificationListItem({key:st,ref:lt,state:tt}),{timer:ht}=useTimer({callback:ut,delay:ot.duration,isDisabled:at});return jsx(NotificationContainer,{children:jsx(NotificationView,{ref:lt,...ot,timer:ht,attributes:{...ft,onKeyDown:dt,role:"status","aria-atomic":"true"},qa:"FloatingNotification",onDismiss:ut,onClose:ct})})});/**
|
|
812
812
|
* @license MIT
|
|
813
813
|
* author: Cube Dev Team
|
|
814
|
-
* @cube-dev/ui-kit v0.
|
|
814
|
+
* @cube-dev/ui-kit v0.31.2
|
|
815
815
|
* Released under the MIT license.
|
|
816
816
|
*/const CSS_TRANSITION_CLASS_NAME="cube-notifications-css-transition",TRANSITION_TIMEOUT=250;function TransitionComponent(s){const{children:j,...et}=s,tt=reactExports.useRef(null),rt=reactExports.useCallback(()=>{tt.current&&tt.current.style.setProperty("--__notification-size__",`${tt.current.scrollHeight}px`)},[]);return jsx(CSSTransition$1,{unmountOnExit:!0,mountOnEnter:!0,timeout:TRANSITION_TIMEOUT,classNames:CSS_TRANSITION_CLASS_NAME,onEnter:rt,onExit:rt,...et,children:jsx(Transition,{ref:tt,children:j})})}const Transition=styled.div`
|
|
817
817
|
transition-property: height, opacity, margin-top, margin-bottom;
|
|
@@ -844,137 +844,137 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
844
844
|
`;/**
|
|
845
845
|
* @license MIT
|
|
846
846
|
* author: Cube Dev Team
|
|
847
|
-
* @cube-dev/ui-kit v0.
|
|
847
|
+
* @cube-dev/ui-kit v0.31.2
|
|
848
848
|
* Released under the MIT license.
|
|
849
849
|
*/const NotificationsContainer=tasty({styles:{boxSizing:"border-box",position:"fixed",bottom:"env(safe-area-inset-bottom, 0)",right:"env(safe-area-inset-right, 0)",display:"flex",flexDirection:"column-reverse",width:"auto 100% 50x",height:"100dvh max",padding:"2x",gap:"1x",zIndex:2147483647,overflow:"hidden",isolation:"isolate",pointerEvents:"none"}});function NotificationsBar(s){const{items:j,children:et,onRemoveNotification:tt,onDismissNotification:rt,limit:nt=5}=s,at=reactExports.useRef(null),[it,ot]=reactExports.useState(nt+1),st=reactExports.useRef(),{listProps:lt,state:ct}=useNotificationsList({items:j,children:et,ref:at}),{hoverProps:ut,isHovered:dt}=$6179b936705e76d3$export$ae780daf29e6d456({}),{focusProps:ft,isFocusVisible:ht}=$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),mt=useEvent($t=>{var bt,St,_t;const xt=(St=(bt=ct.collection.getKeyBefore($t.toString()))!=null?bt:ct.collection.getKeyAfter($t.toString()))!=null?St:ct.collection.getLastKey(),Ct=(_t=at.current)==null?void 0:_t.querySelector(`[data-id="${xt}"]`);Ct&&$6a99195332edec8b$export$80f3e147d781571c(Ct)}),vt=useChainedCallback(tt,mt);let pt=[...ct.collection].reverse();const gt=pt.length,yt=pt.findIndex($t=>$t.props.id===st.current);return yt!==-1&&(pt=pt.slice(0,yt)),reactExports.useLayoutEffect(()=>{ot(nt+1)},[gt]),reactExports.useLayoutEffect(()=>{it>nt&&ot(nt)},[it]),pt.slice(it).forEach($t=>{st.current=$t.props.id}),reactExports.useEffect(()=>{var $t,xt;if(st.current){rt(st.current),tt(st.current);const Ct=pt.find(bt=>bt.props.id===st.current);(xt=Ct==null?void 0:($t=Ct.props).onDismiss)==null||xt.call($t)}},[st.current]),jsx(NotificationsContainer,{ref:at,qa:"NotificationsBar",role:"region","aria-live":"polite",...mergeProps(lt,ut,ft),children:jsx(TransitionGroup$1,{enter:!0,exit:!0,component:null,children:pt.slice(0,it).map($t=>jsx(TransitionComponent,{children:jsx(FloatingNotification,{isDisabledTimer:dt||ht,id:$t.props.id,item:$t,state:ct,onRemoveNotification:vt,onDismissNotification:rt})},$t.props.id))})})}NotificationsBar.Item=$c1d7fb2ec91bae71$export$6d08773d2e66f8f2;/**
|
|
850
850
|
* @license MIT
|
|
851
851
|
* author: Cube Dev Team
|
|
852
|
-
* @cube-dev/ui-kit v0.
|
|
852
|
+
* @cube-dev/ui-kit v0.31.2
|
|
853
853
|
* Released under the MIT license.
|
|
854
854
|
*/const DISMISS_EVENT_NAME="cube:notification:dismiss";function useNotifications(s){const j=reactExports.useMemo(()=>new Date().getTime(),[]),et=reactExports.useRef(0),tt=reactExports.useRef([]),[rt,nt]=reactExports.useState(new Map),at=Object.assign(useEvent(ut=>{const dt=et.current++,{id:ft=`${j}_${dt}`,duration:ht,isDismissible:mt=!0,...vt}=ut;return nt(pt=>{const gt=new Map(pt);return gt.set(ft,{id:ft,isDismissible:mt,duration:ht!=null?ht:mt?5e3:null,...vt}),gt}),{id:ft,remove:()=>ot(ft),update:pt=>it(ft,pt)}}),{success:ut=>at({type:"success",...ut}),danger:ut=>at({type:"danger",...ut}),attention:ut=>at({type:"attention",...ut})}),it=useEvent((ut,dt)=>{nt(ft=>{const ht=ft.get(ut);if(ht){const mt=new Map(ft);return mt.set(ut,{...ht,...dt}),mt}return ft})}),ot=useEvent(ut=>{nt(dt=>{if(dt.has(ut)){const ft=new Map(dt);return ft.delete(ut),ft}return dt})}),st=useEvent(ut=>{var ft;const dt=rt.get(ut);dt!=null&&(dt==null?void 0:dt.putNotificationInDropdownOnDismiss)!==!1&&((ft=s==null?void 0:s.current)==null||ft.dispatchEvent(new CustomEvent(DISMISS_EVENT_NAME,{detail:dt})))}),lt=useEvent(ut=>{var ht;const dt=mt=>ut(mt.detail),ft=()=>{var mt;return(mt=s==null?void 0:s.current)==null?void 0:mt.removeEventListener(DISMISS_EVENT_NAME,dt)};return tt.current.push(ft),(ht=s==null?void 0:s.current)==null||ht.addEventListener(DISMISS_EVENT_NAME,dt),ft});return reactExports.useEffect(()=>()=>tt.current.forEach(ut=>ut()),[]),{api:reactExports.useMemo(()=>({notify:at,update:it,remove:ot}),[]),notifications:reactExports.useMemo(()=>[...rt.values()],[rt]),onDismissNotification:st,addOnDismissListener:lt}}/**
|
|
855
855
|
* @license MIT
|
|
856
856
|
* author: Cube Dev Team
|
|
857
|
-
* @cube-dev/ui-kit v0.
|
|
857
|
+
* @cube-dev/ui-kit v0.31.2
|
|
858
858
|
* Released under the MIT license.
|
|
859
859
|
*/const NotificationsContext=reactExports.createContext(null);function NotificationsProvider(s){const{children:j,rootRef:et}=s,{notifications:tt,api:rt,addOnDismissListener:nt,onDismissNotification:at}=useNotifications(et),it=reactExports.useMemo(()=>({api:rt,addOnDismissListener:nt}),[]);return jsxs(NotificationsContext.Provider,{value:it,children:[jsx(Portal,{children:jsx(NotificationsBar,{items:tt,onRemoveNotification:rt.remove,onDismissNotification:at,children:ot=>jsx(NotificationsBar.Item,{...ot},ot.id)})}),j]})}/**
|
|
860
860
|
* @license MIT
|
|
861
861
|
* author: Cube Dev Team
|
|
862
|
-
* @cube-dev/ui-kit v0.
|
|
862
|
+
* @cube-dev/ui-kit v0.31.2
|
|
863
863
|
* Released under the MIT license.
|
|
864
864
|
*/const UnderlayElement=tasty({qa:"Underlay",styles:{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:9,transitionDelay:"0ms",opacity:{"":0,open:.9999},pointerEvents:{"":"none",open:"auto"},fill:"#dark.30",overflow:"hidden",transition:"transform .25s ease-in-out, opacity .25s linear, visibility 0ms linear"}});function Underlay({isOpen:s,transitionState:j,...et},tt){return jsx(UnderlayElement,{ref:tt,mods:{open:s},...et})}let _Underlay=reactExports.forwardRef(Underlay);/**
|
|
865
865
|
* @license MIT
|
|
866
866
|
* author: Cube Dev Team
|
|
867
|
-
* @cube-dev/ui-kit v0.
|
|
867
|
+
* @cube-dev/ui-kit v0.31.2
|
|
868
868
|
* Released under the MIT license.
|
|
869
869
|
*/const OPEN_STATES={entering:!1,entered:!0},OpenTransitionContext=reactExports.createContext(null);function useOpenTransitionContext(){return reactExports.useContext(OpenTransitionContext)}function OpenTransition(s){return jsx(Transition$2,{timeout:{enter:0,exit:350},...s,children:j=>jsx(OpenTransitionContext.Provider,{value:{transitionState:j},children:reactExports.Children.map(s.children,et=>et&&reactExports.cloneElement(et,{isOpen:!!OPEN_STATES[j],transitionState:j}))})})}/**
|
|
870
870
|
* @license MIT
|
|
871
871
|
* author: Cube Dev Team
|
|
872
|
-
* @cube-dev/ui-kit v0.
|
|
872
|
+
* @cube-dev/ui-kit v0.31.2
|
|
873
873
|
* Released under the MIT license.
|
|
874
874
|
*/function Overlay(s,j){let{children:et,isOpen:tt,container:rt=null,onEnter:nt,onEntering:at,onEntered:it,onExit:ot,onExiting:st,onExited:lt,hideOnClose:ct=!1}=s,[ut,dt]=reactExports.useState(!tt),{root:ft}=useProviderProps({}),ht=reactExports.useCallback(()=>{dt(!1),it==null||it()},[it]),mt=reactExports.useCallback(()=>{dt(!0),lt==null||lt()},[lt]);if(!(tt||!ut)&&!ct)return null;let pt=jsx(Provider$1,{ref:j,children:jsx(OpenTransition,{appear:!0,in:tt,onExit:ot,onExiting:st,onExited:mt,onEnter:nt,onEntering:at,onEntered:ht,children:et})});return reactDomExports.createPortal(pt,rt||ft||document.body)}let _Overlay=reactExports.forwardRef(Overlay);/**
|
|
875
875
|
* @license MIT
|
|
876
876
|
* author: Cube Dev Team
|
|
877
|
-
* @cube-dev/ui-kit v0.
|
|
877
|
+
* @cube-dev/ui-kit v0.31.2
|
|
878
878
|
* Released under the MIT license.
|
|
879
879
|
*/const OVERLAY_WRAPPER_STYLES={position:"fixed",display:"grid",left:0,top:0,placeItems:{"":"center",'[data-type="fullscreen"]':"center",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"stretch"},boxSizing:"border-box",width:"100vw",height:"100dvh",pointerEvents:"none",zIndex:10,transition:{"":"visibility .5s steps(2, start)",open:"visibility 0s linear"}},ModalWrapperElement=tasty({qa:"ModalWrapper",styles:OVERLAY_WRAPPER_STYLES}),ModalElement=tasty({styles:{display:{"":"none","entering | entered":"grid",exiting:"grid",exited:"none"},zIndex:10,height:{"":"max 90dvh",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"100dvh 100dvh",'[data-type="fullscreen"]':"90dvh 90dvh",'[data-type="fullscreenTakeover"]':"100dvh 100dvh"},width:{width:"288px 90vw"},pointerEvents:"none",transition:"opacity .25s linear, transform .25s ease-in-out",transform:{"":"initial",'[data-type="modal"] & !open':"translate(0, -3x) scale(1, 1)",'[data-type^="fullscreen"] & !open':"translate(0, 0) scale(1.02, 1.02)"},opacity:{"":0,open:.9999}}});function Modal(s,j){let{qa:et,children:tt,onClose:rt,type:nt,styles:at,...it}=s,ot=$98e5a8ae0e6415af$export$c2c55ef9111cafd8(j),{overlayProps:st,underlayProps:lt}=$a11501f3d1d39e6c$export$ea8f71083e90600f({...s},ot);return jsxs(_Overlay,{...it,children:[nt!=="fullscreenTakeover"&&jsx(_Underlay,{...lt}),jsx(ModalWrapper,{ref:ot,qa:et,type:nt,overlayProps:st,styles:at,onClose:rt,children:tt})]})}let ModalWrapper=reactExports.forwardRef(function(j,et){let{qa:tt,children:rt,isOpen:nt,type:at,placement:it,styles:ot,overlayProps:st,transitionState:lt,...ct}=j;$49c51c25361d4cd2$export$ee0f7cc6afcd1c18({isDisabled:lt!=="entered"});let{modalProps:ut}=$f57aed4a881a3485$export$33ffd74ebf07f060({isDisabled:lt!=="entered"});return jsx(ModalWrapperElement,{"data-type":at,"data-placement":it,children:jsx(ModalElement,{qa:tt||"Modal",styles:ot,mods:{open:nt,entering:lt==="entering",exiting:lt==="exiting",exited:lt==="exited",entered:lt==="entered"},"data-type":at,"data-placement":it,...mergeProps(ct,st,ut),ref:et,children:rt})})}),_Modal=reactExports.forwardRef(Modal);/**
|
|
880
880
|
* @license MIT
|
|
881
881
|
* author: Cube Dev Team
|
|
882
|
-
* @cube-dev/ui-kit v0.
|
|
882
|
+
* @cube-dev/ui-kit v0.31.2
|
|
883
883
|
* Released under the MIT license.
|
|
884
884
|
*/const DialogContext=reactExports.createContext({});function useDialogContext(){const s=reactExports.useContext(DialogContext);return invariant$1(s!==null,""),s}/**
|
|
885
885
|
* @license MIT
|
|
886
886
|
* author: Cube Dev Team
|
|
887
|
-
* @cube-dev/ui-kit v0.
|
|
887
|
+
* @cube-dev/ui-kit v0.31.2
|
|
888
888
|
* Released under the MIT license.
|
|
889
889
|
*/function DialogContainer(s){const{children:j,type:et="modal",onDismiss:tt,isDismissable:rt,isKeyboardDismissDisabled:nt,isOpen:at}=s,it=reactExports.Children.toArray(j);if(it.length>1)throw new Error("Only a single child can be passed to DialogContainer.");const ot=reactExports.useRef(),st=reactExports.isValidElement(it[0])?it[0]:null;st&&(ot.current=st);const lt=typeof at!="boolean"?!!st:at,ct={type:et,onClose:tt,isDismissable:rt};return jsx(_Modal,{isOpen:lt,type:et,isDismissable:rt,isKeyboardDismissDisabled:nt,onClose:rt?tt:void 0,children:jsx(DialogContext.Provider,{value:ct,children:st})})}/**
|
|
890
890
|
* @license MIT
|
|
891
891
|
* author: Cube Dev Team
|
|
892
|
-
* @cube-dev/ui-kit v0.
|
|
892
|
+
* @cube-dev/ui-kit v0.31.2
|
|
893
893
|
* Released under the MIT license.
|
|
894
894
|
*/function TooltipProvider(s){const[j,et]=reactExports.useState(!1),{title:tt,children:rt,tooltipStyles:nt,width:at,...it}=s;return reactExports.useEffect(()=>{et(!0)},[]),j?jsxs(_TooltipTrigger,{...it,children:[rt,jsx(_Tooltip,{styles:nt,...at?{width:at}:null,children:tt})]}):jsx(Fragment,{children:rt})}let _TooltipProvider=TooltipProvider;/**
|
|
895
895
|
* @license MIT
|
|
896
896
|
* author: Cube Dev Team
|
|
897
|
-
* @cube-dev/ui-kit v0.
|
|
897
|
+
* @cube-dev/ui-kit v0.31.2
|
|
898
898
|
* Released under the MIT license.
|
|
899
899
|
*/const FlexElement=tasty({styles:{display:"flex",flow:"row"}}),Flex$1=reactExports.forwardRef(function(j,et){const tt=extractStyles(j,CONTAINER_STYLES);return jsx(FlexElement,{...filterBaseProps(j,{eventProps:!0}),ref:et,styles:tt})});/**
|
|
900
900
|
* @license MIT
|
|
901
901
|
* author: Cube Dev Team
|
|
902
|
-
* @cube-dev/ui-kit v0.
|
|
902
|
+
* @cube-dev/ui-kit v0.31.2
|
|
903
903
|
* Released under the MIT license.
|
|
904
904
|
*/const REQUIRED_ICON=jsx("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 125",style:{enableBackground:"new 0 0 100 100",width:".8em",height:".8em",transform:"rotate(-5deg)"},children:jsx("switch",{children:jsx("g",{children:jsx("polygon",{fill:"currentColor",points:"97.5,47.5 90.5,26.1 61.3,35.6 61.3,4.8 38.7,4.8 38.7,35.6 9.5,26.1 2.5,47.5 31.8,57 13.7,82 31.9,95.2 50,70.3 68.1,95.2 86.3,82 68.2,57"})})})}),INTL_MESSAGES={"(required)":"(required)","(optional)":"(optional)"},LABEL_STYLES={display:"block",preset:"h6",color:{"":"#dark",invalid:"#danger-text"},whiteSpace:"nowrap",width:{"":"initial",side:"@(label-width, initial)"}},LabelElement=tasty({as:"label",qa:"Label",styles:LABEL_STYLES});function Label$1(s,j){s=useProviderProps(s);let{as:et,qa:tt,children:rt,labelPosition:nt="top",isRequired:at,necessityIndicator:it=at!=null?"icon":null,includeNecessityIndicatorInAccessibilityName:ot=!1,htmlFor:st,isDisabled:lt,validationState:ct,for:ut,onClick:dt,...ft}=s,ht=$98e5a8ae0e6415af$export$c2c55ef9111cafd8(j);const mt=extractStyles(ft,CONTAINER_STYLES);let vt=yt=>INTL_MESSAGES[yt],pt=vt(at?"(required)":"(optional)"),gt=jsx("span",{"aria-label":ot?vt("(required)"):void 0,children:REQUIRED_ICON});return jsx(LabelElement,{...filterBaseProps(ft),ref:ht,styles:mt,htmlFor:ut||st,mods:{side:nt==="side",disabled:lt,invalid:ct==="invalid",valid:ct==="valid"},onClick:dt,children:typeof rt!="string"?rt:jsxs(Fragment,{children:[rt,(it==="label"||it==="icon"&&at)&&" ",it==="label"&&jsx("span",{"aria-hidden":ot?void 0:at,children:pt}),it==="icon"&&at&>]})})}let _Label=reactExports.forwardRef(Label$1);/**
|
|
905
905
|
* @license MIT
|
|
906
906
|
* author: Cube Dev Team
|
|
907
|
-
* @cube-dev/ui-kit v0.
|
|
907
|
+
* @cube-dev/ui-kit v0.31.2
|
|
908
908
|
* Released under the MIT license.
|
|
909
909
|
*/const FieldElement=tasty({qa:"Field",styles:{display:"grid",gridColumns:{"":"minmax(0, 1fr)","has-sider":"@(full-label-width, auto) minmax(0, 1fr)"},gap:0,placeItems:"baseline stretch","@full-label-width":"(@label-width + 1x)",LabelArea:{display:"block",width:{"":"initial","has-sider":"@label-width"},margin:{"":"1x bottom","has-sider":"1x right",":empty":"0"}},InputArea:{display:"block",flow:"column",gridColumn:{"":"initial","has-sider":2}}}}),MessageElement=tasty({qa:"Field_Message",styles:{preset:"t3",color:{"":"#dark.75",invalid:"#danger-text",valid:"#success-text",disabled:"#dark.40"},textAlign:"left",userSelect:"none"}}),FieldWrapper=reactExports.forwardRef(function(j,et){const{as:tt,labelPosition:rt="top",label:nt,extra:at,styles:it,isRequired:ot,isDisabled:st,labelStyles:lt,necessityIndicator:ct,labelProps:ut,fieldProps:dt,message:ft,messageStyles:ht,description:mt,Component:vt,validationState:pt,requiredMark:gt=!0,tooltip:yt,isHidden:$t,labelSuffix:xt,children:Ct}=j,bt=nt?jsx(_Label,{as:tt==="label"?"div":"label",styles:lt,labelPosition:rt,isRequired:gt?ot:!1,isDisabled:st,necessityIndicator:ct,validationState:pt,"aria-label":nt,...ut,children:jsxs(Flex$1,{placeContent:"baseline space-between",width:"100%",children:[jsxs(Space,{placeItems:"center",gap:"0.25x",children:[jsx("div",{children:nt}),yt?jsx(_TooltipProvider,{activeWrap:!0,title:yt,width:"initial max-content 40x",children:jsx(InfoCircleOutlined$4,{style:{color:"var(--purple-text-color)",margin:"0 4px"}})}):null,jsx("div",{children:xt})]}),at&&jsx(Text$7,{preset:"t3",children:at})]})}):null;let St=mt?jsx("div",{"data-element":"Description",children:wrapNodeIfPlain(mt,()=>jsx(Paragraph$5,{children:mt}))}):null;const _t={"has-sider":rt==="side","has-description":!!mt,invalid:pt==="invalid",valid:pt==="valid"};return jsxs(Fragment,{children:[jsxs(FieldElement,{ref:et,as:tt!=null?tt:"div",mods:_t,isHidden:$t,styles:it,...dt,children:[bt||St?jsxs("div",{"data-element":"LabelArea",children:[bt,St]}):null,jsxs("div",{"data-element":"InputArea",children:[vt,ft&&!st&&jsx(MessageElement,{mods:_t,styles:ht,role:pt==="invalid"?"alert":void 0,children:ft})]})]}),Ct]})});/**
|
|
910
910
|
* @license MIT
|
|
911
911
|
* author: Cube Dev Team
|
|
912
|
-
* @cube-dev/ui-kit v0.
|
|
912
|
+
* @cube-dev/ui-kit v0.31.2
|
|
913
913
|
* Released under the MIT license.
|
|
914
914
|
*/const ID_MAP={};function createId(s){if(!s)return;ID_MAP[s]||(ID_MAP[s]=[]);let j=0,et;do et=j?`${s}_${j}`:s,j++;while(ID_MAP[s].includes(et));return ID_MAP[s].push(et),et}function removeId(s,j){ID_MAP[s]&&(ID_MAP[s]=ID_MAP[s].filter(et=>et!==j))}function useField(s,j){var Ct;s=useFormProps(s);let{defaultValue:et,id:tt,idPrefix:rt,name:nt,form:at,rules:it,message:ot,validateTrigger:st=j.defaultValidationTrigger,validationState:lt,validationDelay:ct,showValid:ut,shouldUpdate:dt}=s;it&&it.length&&ct&&it.unshift(delayValidationRule(ct));const ft=!nt,ht=nt!=null?nt:"",mt=useIsFirstRender();let[vt,pt]=reactExports.useState(tt||(rt?`${rt}_${ht}`:ht));reactExports.useEffect(()=>{let bt;return!tt&&!ft&&(bt=createId(vt),pt(bt)),()=>{tt||removeId(rt?`${rt}_${ht}`:ht,bt),ht&&at&&at.removeField(ht)}},[]);let gt=at==null?void 0:at.getFieldInstance(ht);gt&&(gt.rules=it);let yt=it&&!!it.find(bt=>bt.required);reactExports.useEffect(()=>{at&&(gt?at.forceReRender():at.createField(ht))},[gt]),at&&(mt&&(gt||(gt=at.createField(ht,!0)),(gt==null?void 0:gt.value)==null&&et!=null&&(at.setFieldValue(ht,et,!1,!0),at.updateInitialFieldsValue({[ht]:et}),gt=at==null?void 0:at.getFieldInstance(ht))),!(gt!=null&>.touched)&&et!=null&&at.setFieldValue(ht,et,!1,!0));const $t=useEvent((bt,St)=>{if(!at)return;const _t=at.getFieldInstance(ht);if(dt){const wt=at.getFieldsValue();if(typeof dt=="boolean"?!dt:!dt(wt,{...wt,[ht]:bt}))return}at.setFieldValue(ht,bt,!St,!1,St),!St&&(st==="onChange"||_t&&_t.errors&&_t.errors.length)&&at.validateField(ht).catch(()=>{})}),xt=useEvent(()=>{st==="onBlur"&&setTimeout(()=>{at==null||at.validateField(ht).catch(()=>{})})});return reactExports.useMemo(()=>{var bt,St;return{id:vt,name:ht,value:gt==null?void 0:gt.inputValue,validateTrigger:st,form:at,field:gt,nonInput:ft,validationState:lt!=null?lt:(bt=gt==null?void 0:gt.errors)!=null&&bt.length?"invalid":ut&&(gt==null?void 0:gt.status)==="valid"?"valid":void 0,...yt&&{isRequired:yt},message:ot!=null?ot:(gt==null?void 0:gt.status)==="invalid"&&((St=gt==null?void 0:gt.errors)==null?void 0:St[0]),onBlur:xt,onChange:$t}},[at,gt,(Ct=gt==null?void 0:gt.errors)==null?void 0:Ct.length,gt==null?void 0:gt.status,gt==null?void 0:gt.inputValue,vt,ht,yt,xt,$t,st,lt,ut,ft])}/**
|
|
915
915
|
* @license MIT
|
|
916
916
|
* author: Cube Dev Team
|
|
917
|
-
* @cube-dev/ui-kit v0.
|
|
917
|
+
* @cube-dev/ui-kit v0.31.2
|
|
918
918
|
* Released under the MIT license.
|
|
919
919
|
*/function useFieldProps(s,j={}){var ut,dt;const et=reactExports.useRef((ut=j.unsafe__isDisabled)!=null?ut:!1),{valuePropsMapper:tt=({value:ft,onChange:ht})=>({value:ft!=null?ft:null,onChange:ht}),defaultValidationTrigger:rt="onBlur"}=j,nt=useInsideLegacyField();if(s.rules&&!s.name&&warn('The "rules" prop is not suitable for fields that are not part of a form. Use "name" prop to link the field to a form.'),nt||et.current===!0||s.name==null)return s;const at=useField(s,{defaultValidationTrigger:j.defaultValidationTrigger}),it=(at==null?void 0:at.form)==null;s.rules&&it&&warn(`The "rules" prop is not supported for fields that are not part of a form. The "${s.name}" field is placed outside the form.`);const ot=useChainedCallback(at==null?void 0:at.onBlur,"onBlur"in s?s.onBlur:void 0),st=useEvent((ft,ht)=>{var mt,vt;return(vt=at==null?void 0:at.onChange)==null?void 0:vt.call(at,ft,ht,(mt=at==null?void 0:at.validateTrigger)!=null?mt:rt)}),lt=it?{}:tt({value:at.value,onChange:st});if(nt&&!it){const ft=it?[]:Object.keys(lt).filter(ht=>ht.startsWith("on"));for(const ht of ft)ht in s&&warn(`The "${ht}" listener is not supported for input "${s.name}" that is linked to a form via a <Field> component. Remove the <Field> component and move its properties to the input itself.`)}const ct=it?s:mergeProps(s,at,lt,{validateTrigger:(dt=at.validateTrigger)!=null?dt:rt,onBlur:ot});return ct.id&&(ct.labelProps||(ct.labelProps={}),ct.labelProps.for=ct.id),ct}/**
|
|
920
920
|
* @license MIT
|
|
921
921
|
* author: Cube Dev Team
|
|
922
|
-
* @cube-dev/ui-kit v0.
|
|
922
|
+
* @cube-dev/ui-kit v0.31.2
|
|
923
923
|
* Released under the MIT license.
|
|
924
924
|
*/function getDefaultValidateTrigger(s){return s=s||"",s==="Number"||s.includes("Text")?"onBlur":"onChange"}function getValueProps(s,j,et,tt){return s=s||"",s==="Number"?{value:j!=null?j:null,onChange:et}:s==="Text"?{value:typeof j=="string"||typeof j=="number"?String(j):"",onChange:et}:s==="Checkbox"?{isSelected:j!=null?j:!1,isIndeterminate:!1,onChange:et}:s==="CheckboxGroup"?{value:j!=null?j:[],onChange:et}:s==="RangeSlider"?{value:j!=null?j:void 0,onChange:et}:s==="ComboBox"?{inputValue:j!=null?j:"",onInputChange:rt=>et(rt,!tt),onSelectionChange:et}:s==="Select"?{selectedKey:j!=null?j:null,onSelectionChange:et}:{value:j!=null?j:null,onChange:et}}function Field$1(s){var Et,Ot,Mt;const j=useFormProps(s);let{children:et,form:tt,label:rt,extra:nt,necessityLabel:at,necessityIndicator:it,description:ot,tooltip:st,isHidden:lt,isDisabled:ct,isLoading:ut,styles:dt,labelProps:ft,labelPosition:ht="top",labelStyles:mt,labelSuffix:vt}=j;typeof et=="function"&&(et=et(tt));let pt=et==null?null:reactExports.Children.only(et);const gt=(Ot=(Et=pt==null?void 0:pt.type)==null?void 0:Et.cubeInputType)!=null?Ot:"Text",yt=useField(j,{defaultValidationTrigger:getDefaultValidateTrigger(gt)}),{validationState:$t,message:xt,isRequired:Ct,name:bt,id:St}=yt;if(!pt)return null;if(St&&(ft||(ft={}),ft.for=St),yt.nonInput)return jsx(LegacyFieldProvider,{children:jsx(FieldWrapper,{isHidden:lt,isDisabled:ct,validationState:yt.validationState,necessityIndicator:it,necessityLabel:at,isRequired:Ct,label:rt,labelProps:ft,extra:nt,tooltip:st,message:xt,description:ot,Component:pt,styles:dt,labelPosition:ht,labelStyles:mt,labelSuffix:vt})});if(!tt)return warn("Form Field requires declared form instance if field name is specified"),null;if(!yt.field)return jsx(LegacyFieldProvider,{children:reactExports.cloneElement(pt,mergeProps(pt.props,{...getValueProps(gt),label:bt,name:bt,id:St}))});const _t={id:St,name:bt,onBlur:yt.onBlur};it!=null&&(_t.necessityIndicator=it),at&&(_t.necessityLabel=at),$t&&(_t.validationState=$t),Ct&&(_t.isRequired=Ct),rt&&(_t.label=rt),nt&&(_t.extra=nt),st&&(_t.tooltip=st),xt&&(_t.message=xt),lt!=null&&(_t.isHidden=lt),ct!=null&&(_t.isDisabled=ct),ut!=null&&(_t.isLoading=ut),Object.assign(_t,getValueProps(gt,(Mt=yt.field)==null?void 0:Mt.inputValue,yt.onChange,pt.props.allowsCustomValue));const{onChange:wt,onSelectionChange:Rt,...Pt}=pt.props;return jsx(LegacyFieldProvider,{children:reactExports.cloneElement(pt,mergeProps(Pt,_t,wt?{onChange:yt.onChange}:{},Rt?{onSelectionChange:yt.onChange}:{}))})}const LegacyFieldContext=reactExports.createContext({insideLegacyField:!1});function LegacyFieldProvider(s){const j=reactExports.useMemo(()=>({insideLegacyField:!0}),[]);return jsx(LegacyFieldContext.Provider,{value:j,children:s.children})}function useInsideLegacyField(){const{insideLegacyField:s=!1}=reactExports.useContext(LegacyFieldContext);return s}/**
|
|
925
925
|
* @license MIT
|
|
926
926
|
* author: Cube Dev Team
|
|
927
|
-
* @cube-dev/ui-kit v0.
|
|
927
|
+
* @cube-dev/ui-kit v0.31.2
|
|
928
928
|
* Released under the MIT license.
|
|
929
929
|
*/const THEMES={success:{fill:"#success-bg",color:"#success-text",border:"#success.40"},danger:{fill:"#danger-bg",color:"#danger-text",border:"#danger.40"},note:{fill:"#note-bg",color:"#note-text",border:"#note.40"},disabled:{fill:"#dark.10",color:"#dark.40",border:"#dark.20"}};/**
|
|
930
930
|
* @license MIT
|
|
931
931
|
* author: Cube Dev Team
|
|
932
|
-
* @cube-dev/ui-kit v0.
|
|
932
|
+
* @cube-dev/ui-kit v0.31.2
|
|
933
933
|
* Released under the MIT license.
|
|
934
934
|
*/const STYLE_LIST$4=[...CONTAINER_STYLES,...TEXT_STYLES];function useAlert(s){var at;const{type:j,isDisabled:et=!1,theme:tt}=s,rt=extractStyles(s,STYLE_LIST$4);useDeprecationWarning(typeof j=="undefined",{property:"type",name:"Alert",betterAlternative:"theme"});const nt=et?"disabled":(at=tt!=null?tt:j)!=null?at:"note";return{styles:rt,theme:nt,filteredProps:filterBaseProps(s,{eventProps:!0})}}/**
|
|
935
935
|
* @license MIT
|
|
936
936
|
* author: Cube Dev Team
|
|
937
|
-
* @cube-dev/ui-kit v0.
|
|
937
|
+
* @cube-dev/ui-kit v0.31.2
|
|
938
938
|
* Released under the MIT license.
|
|
939
939
|
*/const AlertElement=tasty({name:"Alert",role:"alert",qa:"Alert",styles:{display:"block",flow:"column",radius:"1r",padding:"1.5x",preset:"t3",color:{"":"#dark",'[data-type="disabled"]':THEMES.disabled.color},fill:{"":"#clear",...Object.keys(THEMES).reduce((s,j)=>(s[`[data-type="${j}"]`]=THEMES[j].fill,s),{})},border:{"":"#clear",...Object.keys(THEMES).reduce((s,j)=>(s[`[data-type="${j}"]`]=THEMES[j].border,s),{})}}}),Alert$1=reactExports.forwardRef(function(j,et){const{styles:tt,theme:rt,filteredProps:nt}=useAlert(j);return jsx(AlertElement,{...nt,ref:et,"data-type":rt,styles:tt})});/**
|
|
940
940
|
* @license MIT
|
|
941
941
|
* author: Cube Dev Team
|
|
942
|
-
* @cube-dev/ui-kit v0.
|
|
942
|
+
* @cube-dev/ui-kit v0.31.2
|
|
943
943
|
* Released under the MIT license.
|
|
944
944
|
*/const SubmitError=function(j){let{submitError:et}=reactExports.useContext(FormContext);return et?(!reactExports.isValidElement(et)&&typeof et!="string"&&(et="Internal error"),jsx(Alert$1,{theme:"danger",...j,children:et})):null};/**
|
|
945
945
|
* @license MIT
|
|
946
946
|
* author: Cube Dev Team
|
|
947
|
-
* @cube-dev/ui-kit v0.
|
|
947
|
+
* @cube-dev/ui-kit v0.31.2
|
|
948
948
|
* Released under the MIT license.
|
|
949
949
|
*/Object.assign(_Form,{Item:Field$1,useForm,SubmitError});/**
|
|
950
950
|
* @license MIT
|
|
951
951
|
* author: Cube Dev Team
|
|
952
|
-
* @cube-dev/ui-kit v0.
|
|
952
|
+
* @cube-dev/ui-kit v0.31.2
|
|
953
953
|
* Released under the MIT license.
|
|
954
954
|
*/function wrapWithField(s,j,et){let{label:tt,extra:rt,labelPosition:nt="top",labelStyles:at,isRequired:it,necessityIndicator:ot,necessityLabel:st,validationState:lt,message:ct,description:ut,isDisabled:dt,labelProps:ft,requiredMark:ht=!0,tooltip:mt,isHidden:vt,labelSuffix:pt,styles:gt,children:yt}=et;return jsx(FieldWrapper,{labelPosition:nt,label:tt,extra:rt,styles:gt,isRequired:it,labelStyles:at,necessityIndicator:ot,necessityLabel:st,labelProps:ft,isDisabled:dt,validationState:lt,message:ct,description:ut,requiredMark:ht,tooltip:mt,isHidden:vt,labelSuffix:pt,children:yt,Component:s,ref:j})}/**
|
|
955
955
|
* @license MIT
|
|
956
956
|
* author: Cube Dev Team
|
|
957
|
-
* @cube-dev/ui-kit v0.
|
|
957
|
+
* @cube-dev/ui-kit v0.31.2
|
|
958
958
|
* Released under the MIT license.
|
|
959
959
|
*/const InvalidIcon=jsx(WarningOutlined$1,{"data-element":"ValidationIcon",style:{color:"var(--danger-color)"}});/**
|
|
960
960
|
* @license MIT
|
|
961
961
|
* author: Cube Dev Team
|
|
962
|
-
* @cube-dev/ui-kit v0.
|
|
962
|
+
* @cube-dev/ui-kit v0.31.2
|
|
963
963
|
* Released under the MIT license.
|
|
964
964
|
*/const ValidIcon=jsx(CheckOutlined$4,{"data-element":"ValidationIcon",style:{color:"var(--success-color)"}});/**
|
|
965
965
|
* @license MIT
|
|
966
966
|
* author: Cube Dev Team
|
|
967
|
-
* @cube-dev/ui-kit v0.
|
|
967
|
+
* @cube-dev/ui-kit v0.31.2
|
|
968
968
|
* Released under the MIT license.
|
|
969
969
|
*/const ADD_STYLES={display:"grid",placeContent:"stretch",placeItems:"center",flow:"column",gap:0,cursor:"inherit",opacity:{"":1,disabled:"@disabled-opacity"}},INPUT_WRAPPER_STYLES={display:"grid",position:"relative",gridAreas:'"prefix input suffix"',gridColumns:"auto 1fr auto",placeItems:"stretch",fill:{"":"#white",disabled:"#dark.04"},border:{"":!0,focused:!0,valid:"#success-text.50",invalid:"#danger-text.50",disabled:!0},outline:{"":"#purple-03.0",focused:"#purple-03","invalid & focused":"#danger.50","valid & focused":"#success.50"},radius:!0,cursor:"text",color:{"":"#dark.85",focused:"#dark.85",invalid:"#danger-text",disabled:"#dark.30"},zIndex:{"":"initial",focused:1},boxSizing:"border-box",transition:"theme",backgroundClip:"content-box",Prefix:{...ADD_STYLES,gridArea:"prefix"},Suffix:{...ADD_STYLES,gridArea:"suffix"},State:{display:"flex"},InputIcon:{display:"grid",placeItems:"center",width:"min 4x",color:"inherit",fontSize:"@icon-size"},ValidationIcon:{display:"grid",placeItems:"center",width:{"":"min 4x",suffix:"min 3x"},fontSize:"@icon-size"}},InputWrapperElement=tasty({styles:INPUT_WRAPPER_STYLES}),STYLE_LIST$3=[...POSITION_STYLES,...DIMENSION_STYLES],INPUT_STYLE_PROPS_LIST=[...BLOCK_STYLES,"resize"],DEFAULT_INPUT_STYLES={display:"block",gridArea:"input",width:"initial 100% 100%",height:"initial initial initial",color:"inherit",fill:"#clear",border:0,transition:"theme",radius:!0,padding:"@vertical-padding @right-padding @vertical-padding @left-padding",textAlign:"left",reset:"input",preset:"t3",flexGrow:1,margin:0,resize:"none",boxSizing:"border-box",userSelect:"auto","@vertical-padding":{"":"(1.25x - 1bw)",'[data-size="small"]':"(.75x - 1bw)"},"@left-padding":{"":"(1.5x - 1bw)",prefix:"0"},"@right-padding":{"":"(1.5x - 1bw)",suffix:"0"}},InputElement=tasty({qa:"Input",styles:DEFAULT_INPUT_STYLES});function TextInputBase(s,j){var Ft;s=useProviderProps(s),s=useFormProps(s),s=useFieldProps(s,{defaultValidationTrigger:"onBlur",valuePropsMapper:({value:Ut,onChange:Vt})=>({value:typeof Ut=="string"||typeof Ut=="number"?String(Ut):"",onChange:Vt})});let{qa:et,mods:tt,validationState:rt,prefix:nt,isDisabled:at,multiLine:it,autoFocus:ot,inputProps:st,wrapperProps:lt,inputRef:ct,isLoading:ut,loadingIndicator:dt,value:ft,inputStyles:ht={},wrapperStyles:mt={},suffix:vt,suffixPosition:pt="before",wrapperRef:gt,tooltip:yt,rows:$t=1,size:xt,icon:Ct,maxLength:bt,minLength:St,..._t}=s,wt=extractStyles(_t,STYLE_LIST$3),Rt=_t.type;ht=extractStyles(_t,INPUT_STYLE_PROPS_LIST,ht);let Pt=it?"textarea":"input",{isFocused:Et,focusProps:Ot}=useFocus({isDisabled:at}),{hoverProps:Mt,isHovered:Dt}=$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:at}),At=reactExports.useRef(null),Nt=reactExports.useRef(null);ct=ct||Nt,reactExports.useImperativeHandle(j,()=>({...$98e5a8ae0e6415af$export$79d69eee6ae4b329(At,ct),select(){ct!=null&&ct.current&&ct.current.select()},getInputElement(){return ct==null?void 0:ct.current}}));let kt=rt==="invalid",It=kt?InvalidIcon:ValidIcon,Tt=reactExports.cloneElement(It);st!=null&&st.placeholder||(st||(st={}),st.placeholder=" "),Ct&&(Ct=jsx("div",{"data-element":"InputIcon",children:Ct}),nt?nt=jsxs(Fragment,{children:[Ct,nt]}):nt=Ct);const jt=reactExports.useMemo(()=>({invalid:kt,valid:rt==="valid",loadable:!!dt,focused:Et,hovered:Dt,disabled:at,multiline:it,prefix:!!nt,suffix:!!vt,...tt}),[tt,kt,rt,dt,Et,at,Dt,it,nt,vt]),qt=((Ft=ct==null?void 0:ct.current)==null?void 0:Ft.value)&&it&&Rt==="password"?{fontFamily:"text-security-disc",WebkitTextSecurity:"disc"}:{},Lt=jsxs(InputWrapperElement,{ref:gt,qa:et||"TextInput",mods:jt,"data-size":xt,styles:mt,...lt,children:[jsx(InputElement,{as:Pt,...mergeProps(st,Ot,Mt),ref:ct,rows:it?$t:void 0,mods:jt,style:qt,autoFocus:ot,"data-size":xt,styles:ht,disabled:!!at,maxLength:bt,minLength:St}),nt?jsx("div",{"data-element":"Prefix",children:nt}):null,rt&&!ut||ut||vt?jsxs("div",{"data-element":"Suffix",children:[pt==="before"?vt:null,rt&&!ut||ut?jsxs("div",{"data-element":"State",children:[rt&&!ut?Tt:null,ut&&jsx(LoadingOutlined$4,{"data-element":"InputIcon"})]}):null,pt==="after"?vt:null]}):null]});return wrapWithField(Lt,At,{...s,styles:wt})}reactExports.forwardRef(TextInputBase);/**
|
|
970
970
|
* @license MIT
|
|
971
971
|
* author: Cube Dev Team
|
|
972
|
-
* @cube-dev/ui-kit v0.
|
|
972
|
+
* @cube-dev/ui-kit v0.31.2
|
|
973
973
|
* Released under the MIT license.
|
|
974
974
|
*/const STYLE_LIST$2=[...CONTAINER_STYLES,...TEXT_STYLES],ContentElement=tasty({qa:"Content",as:"section",styles:{gridArea:"content",preset:"p3",color:"#dark.75",display:"block",flow:"column",gap:"2x",overflow:"auto",styledScrollbar:!0}}),Content$2=reactExports.forwardRef(function(j,et){j=useSlotProps(j,"content");const tt=extractStyles(j,STYLE_LIST$2);return jsx(ContentElement,{...filterBaseProps(j,{eventProps:!0}),ref:et,styles:tt})});/**
|
|
975
975
|
* @license MIT
|
|
976
976
|
* author: Cube Dev Team
|
|
977
|
-
* @cube-dev/ui-kit v0.
|
|
977
|
+
* @cube-dev/ui-kit v0.31.2
|
|
978
978
|
* Released under the MIT license.
|
|
979
979
|
*/const STYLE_LIST$1=[...CONTAINER_STYLES,...TEXT_STYLES],HeaderElement=tasty({qa:"Header",as:"header",styles:{display:"block",gridArea:"header",flow:"column"}}),Header$2=reactExports.forwardRef(function(j,et){j=useSlotProps(j,"header");const tt=extractStyles(j,STYLE_LIST$1);return jsx(HeaderElement,{...filterBaseProps(j,{eventProps:!0}),ref:et,styles:tt})});function _objectWithoutPropertiesLoose(s,j){if(s==null)return{};var et={},tt=Object.keys(s),rt,nt;for(nt=0;nt<tt.length;nt++)rt=tt[nt],!(j.indexOf(rt)>=0)&&(et[rt]=s[rt]);return et}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(s){for(var j=1;j<arguments.length;j++){var et=arguments[j];for(var tt in et)Object.prototype.hasOwnProperty.call(et,tt)&&(s[tt]=et[tt])}return s},_extends$1.apply(this,arguments)}var FOCUS_GROUP="data-focus-lock",FOCUS_DISABLED="data-focus-lock-disabled",FOCUS_ALLOW="data-no-focus-lock",FOCUS_AUTO="data-autofocus-inside",FOCUS_NO_AUTOFOCUS="data-no-autofocus";function assignRef(s,j){return typeof s=="function"?s(j):s&&(s.current=j),s}function useCallbackRef(s,j){var et=reactExports.useState(function(){return{value:s,callback:j,facade:{get current(){return et.value},set current(tt){var rt=et.value;rt!==tt&&(et.value=tt,et.callback(tt,rt))}}}})[0];return et.callback=j,et.facade}var currentValues=new WeakMap;function useMergeRefs(s,j){var et=useCallbackRef(j||null,function(tt){return s.forEach(function(rt){return assignRef(rt,tt)})});return reactExports.useLayoutEffect(function(){var tt=currentValues.get(et);if(tt){var rt=new Set(tt),nt=new Set(s),at=et.current;rt.forEach(function(it){nt.has(it)||assignRef(it,null)}),nt.forEach(function(it){rt.has(it)||assignRef(it,at)})}currentValues.set(et,s)},[s]),et}var hiddenGuard={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};/*! *****************************************************************************
|
|
980
980
|
Copyright (c) Microsoft Corporation.
|
|
@@ -992,34 +992,34 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
992
992
|
***************************************************************************** */var __assign$4=function(){return __assign$4=Object.assign||function(j){for(var et,tt=1,rt=arguments.length;tt<rt;tt++){et=arguments[tt];for(var nt in et)Object.prototype.hasOwnProperty.call(et,nt)&&(j[nt]=et[nt])}return j},__assign$4.apply(this,arguments)};function ItoI(s){return s}function innerCreateMedium(s,j){j===void 0&&(j=ItoI);var et=[],tt=!1,rt={read:function(){if(tt)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return et.length?et[et.length-1]:s},useMedium:function(nt){var at=j(nt,tt);return et.push(at),function(){et=et.filter(function(it){return it!==at})}},assignSyncMedium:function(nt){for(tt=!0;et.length;){var at=et;et=[],at.forEach(nt)}et={push:function(it){return nt(it)},filter:function(){return et}}},assignMedium:function(nt){tt=!0;var at=[];if(et.length){var it=et;et=[],it.forEach(nt),at=et}var ot=function(){var lt=at;at=[],lt.forEach(nt)},st=function(){return Promise.resolve().then(ot)};st(),et={push:function(lt){at.push(lt),st()},filter:function(lt){return at=at.filter(lt),et}}}};return rt}function createMedium(s,j){return j===void 0&&(j=ItoI),innerCreateMedium(s,j)}function createSidecarMedium(s){s===void 0&&(s={});var j=innerCreateMedium(null);return j.options=__assign$4({async:!0,ssr:!1},s),j}var mediumFocus=createMedium({},function(s){var j=s.target,et=s.currentTarget;return{target:j,currentTarget:et}}),mediumBlur=createMedium(),mediumEffect=createMedium(),mediumSidecar=createSidecarMedium({async:!0}),emptyArray=[],FocusLock$1=reactExports.forwardRef(function(j,et){var tt,rt=reactExports.useState(),nt=rt[0],at=rt[1],it=reactExports.useRef(),ot=reactExports.useRef(!1),st=reactExports.useRef(null),lt=j.children,ct=j.disabled,ut=ct===void 0?!1:ct,dt=j.noFocusGuards,ft=dt===void 0?!1:dt,ht=j.persistentFocus,mt=ht===void 0?!1:ht,vt=j.crossFrame,pt=vt===void 0?!0:vt,gt=j.autoFocus,yt=gt===void 0?!0:gt;j.allowTextSelection;var $t=j.group,xt=j.className,Ct=j.whiteList,bt=j.hasPositiveIndices,St=j.shards,_t=St===void 0?emptyArray:St,wt=j.as,Rt=wt===void 0?"div":wt,Pt=j.lockProps,Et=Pt===void 0?{}:Pt,Ot=j.sideCar,Mt=j.returnFocus,Dt=Mt===void 0?!1:Mt,At=j.focusOptions,Nt=j.onActivation,kt=j.onDeactivation,It=reactExports.useState({}),Tt=It[0],jt=reactExports.useCallback(function(){st.current=st.current||document&&document.activeElement,it.current&&Nt&&Nt(it.current),ot.current=!0},[Nt]),Bt=reactExports.useCallback(function(){ot.current=!1,kt&&kt(it.current)},[kt]);reactExports.useEffect(function(){ut||(st.current=null)},[]);var qt=reactExports.useCallback(function(Xt){var Jt=st.current;if(Jt&&Jt.focus){var Gt=typeof Dt=="function"?Dt(Jt):Dt;if(Gt){var Yt=typeof Gt=="object"?Gt:void 0;st.current=null,Xt?Promise.resolve().then(function(){return Jt.focus(Yt)}):Jt.focus(Yt)}}},[Dt]),Lt=reactExports.useCallback(function(Xt){ot.current&&mediumFocus.useMedium(Xt)},[]),Ft=mediumBlur.useMedium,Ut=reactExports.useCallback(function(Xt){it.current!==Xt&&(it.current=Xt,at(Xt))},[]),Vt=_extends$1((tt={},tt[FOCUS_DISABLED]=ut&&"disabled",tt[FOCUS_GROUP]=$t,tt),Et),Ht=ft!==!0,Wt=Ht&&ft!=="tail",zt=useMergeRefs([et,Ut]);return jsxs(Fragment,{children:[Ht&&[jsx("div",{"data-focus-guard":!0,tabIndex:ut?-1:0,style:hiddenGuard},"guard-first"),bt?jsx("div",{"data-focus-guard":!0,tabIndex:ut?-1:1,style:hiddenGuard},"guard-nearest"):null],!ut&&jsx(Ot,{id:Tt,sideCar:mediumSidecar,observed:nt,disabled:ut,persistentFocus:mt,crossFrame:pt,autoFocus:yt,whiteList:Ct,shards:_t,onActivation:jt,onDeactivation:Bt,returnFocus:qt,focusOptions:At}),jsx(Rt,{ref:zt,...Vt,className:xt,onBlur:Ft,onFocus:Lt,children:lt}),Wt&&jsx("div",{"data-focus-guard":!0,tabIndex:ut?-1:0,style:hiddenGuard})]})});FocusLock$1.propTypes={};const FocusLockUI=FocusLock$1;function withSideEffect(s,j){function et(tt){return tt.displayName||tt.name||"Component"}return function(rt){var nt=[],at;function it(){at=s(nt.map(function(st){return st.props})),j(at)}var ot=function(st){_inheritsLoose$2(lt,st);function lt(){return st.apply(this,arguments)||this}lt.peek=function(){return at};var ct=lt.prototype;return ct.componentDidMount=function(){nt.push(this),it()},ct.componentDidUpdate=function(){it()},ct.componentWillUnmount=function(){var dt=nt.indexOf(this);nt.splice(dt,1),it()},ct.render=function(){return jsx(rt,{...this.props})},lt}(reactExports.PureComponent);return _defineProperty$4(ot,"displayName","SideEffect("+et(rt)+")"),ot}}var toArray$3=function(s){for(var j=Array(s.length),et=0;et<s.length;++et)j[et]=s[et];return j},asArray=function(s){return Array.isArray(s)?s:[s]},getFirst=function(s){return Array.isArray(s)?s[0]:s},isElementHidden=function(s){if(s.nodeType!==Node.ELEMENT_NODE)return!1;var j=window.getComputedStyle(s,null);return!j||!j.getPropertyValue?!1:j.getPropertyValue("display")==="none"||j.getPropertyValue("visibility")==="hidden"},getParentNode=function(s){return s.parentNode&&s.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?s.parentNode.host:s.parentNode},isTopNode=function(s){return s===document||s&&s.nodeType===Node.DOCUMENT_NODE},isVisibleUncached=function(s,j){return!s||isTopNode(s)||!isElementHidden(s)&&j(getParentNode(s))},isVisibleCached=function(s,j){var et=s.get(j);if(et!==void 0)return et;var tt=isVisibleUncached(j,isVisibleCached.bind(void 0,s));return s.set(j,tt),tt},isAutoFocusAllowedUncached=function(s,j){return s&&!isTopNode(s)?isAutoFocusAllowed(s)?j(getParentNode(s)):!1:!0},isAutoFocusAllowedCached=function(s,j){var et=s.get(j);if(et!==void 0)return et;var tt=isAutoFocusAllowedUncached(j,isAutoFocusAllowedCached.bind(void 0,s));return s.set(j,tt),tt},getDataset=function(s){return s.dataset},isHTMLButtonElement=function(s){return s.tagName==="BUTTON"},isHTMLInputElement=function(s){return s.tagName==="INPUT"},isRadioElement=function(s){return isHTMLInputElement(s)&&s.type==="radio"},notHiddenInput=function(s){return!((isHTMLInputElement(s)||isHTMLButtonElement(s))&&(s.type==="hidden"||s.disabled))},isAutoFocusAllowed=function(s){var j=s.getAttribute(FOCUS_NO_AUTOFOCUS);return![!0,"true",""].includes(j)},isGuard=function(s){var j;return!!(s&&(!((j=getDataset(s))===null||j===void 0)&&j.focusGuard))},isNotAGuard=function(s){return!isGuard(s)},isDefined=function(s){return!!s},tabSort=function(s,j){var et=s.tabIndex-j.tabIndex,tt=s.index-j.index;if(et){if(!s.tabIndex)return 1;if(!j.tabIndex)return-1}return et||tt},orderByTabIndex=function(s,j,et){return toArray$3(s).map(function(tt,rt){return{node:tt,index:rt,tabIndex:et&&tt.tabIndex===-1?(tt.dataset||{}).focusGuard?0:-1:tt.tabIndex}}).filter(function(tt){return!j||tt.tabIndex>=0}).sort(tabSort)},tabbables=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],queryTabbables=tabbables.join(","),queryGuardTabbables="".concat(queryTabbables,", [data-focus-guard]"),getFocusablesWithShadowDom=function(s,j){return toArray$3((s.shadowRoot||s).children).reduce(function(et,tt){return et.concat(tt.matches(j?queryGuardTabbables:queryTabbables)?[tt]:[],getFocusablesWithShadowDom(tt))},[])},getFocusablesWithIFrame=function(s,j){var et;return s instanceof HTMLIFrameElement&&(!((et=s.contentDocument)===null||et===void 0)&&et.body)?getFocusables([s.contentDocument.body],j):[s]},getFocusables=function(s,j){return s.reduce(function(et,tt){var rt,nt=getFocusablesWithShadowDom(tt,j),at=(rt=[]).concat.apply(rt,nt.map(function(it){return getFocusablesWithIFrame(it,j)}));return et.concat(at,tt.parentNode?toArray$3(tt.parentNode.querySelectorAll(queryTabbables)).filter(function(it){return it===tt}):[])},[])},getParentAutofocusables=function(s){var j=s.querySelectorAll("[".concat(FOCUS_AUTO,"]"));return toArray$3(j).map(function(et){return getFocusables([et])}).reduce(function(et,tt){return et.concat(tt)},[])},filterFocusable=function(s,j){return toArray$3(s).filter(function(et){return isVisibleCached(j,et)}).filter(function(et){return notHiddenInput(et)})},filterAutoFocusable=function(s,j){return j===void 0&&(j=new Map),toArray$3(s).filter(function(et){return isAutoFocusAllowedCached(j,et)})},getTabbableNodes=function(s,j,et){return orderByTabIndex(filterFocusable(getFocusables(s,et),j),!0,et)},getFocusableNodes=function(s,j){return orderByTabIndex(filterFocusable(getFocusables(s),j),!1)},parentAutofocusables=function(s,j){return filterFocusable(getParentAutofocusables(s),j)},contains$1=function(s,j){return s.shadowRoot?contains$1(s.shadowRoot,j):Object.getPrototypeOf(s).contains!==void 0&&Object.getPrototypeOf(s).contains.call(s,j)?!0:toArray$3(s.children).some(function(et){var tt;if(et instanceof HTMLIFrameElement){var rt=(tt=et.contentDocument)===null||tt===void 0?void 0:tt.body;return rt?contains$1(rt,j):!1}return contains$1(et,j)})},filterNested=function(s){for(var j=new Set,et=s.length,tt=0;tt<et;tt+=1)for(var rt=tt+1;rt<et;rt+=1){var nt=s[tt].compareDocumentPosition(s[rt]);(nt&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&j.add(rt),(nt&Node.DOCUMENT_POSITION_CONTAINS)>0&&j.add(tt)}return s.filter(function(at,it){return!j.has(it)})},getTopParent=function(s){return s.parentNode?getTopParent(s.parentNode):s},getAllAffectedNodes=function(s){var j=asArray(s);return j.filter(Boolean).reduce(function(et,tt){var rt=tt.getAttribute(FOCUS_GROUP);return et.push.apply(et,rt?filterNested(toArray$3(getTopParent(tt).querySelectorAll("[".concat(FOCUS_GROUP,'="').concat(rt,'"]:not([').concat(FOCUS_DISABLED,'="disabled"])')))):[tt]),et},[])},safeProbe=function(s){try{return s()}catch(j){return}},getActiveElement=function(s){if(s===void 0&&(s=document),!(!s||!s.activeElement)){var j=s.activeElement;return j.shadowRoot?getActiveElement(j.shadowRoot):j instanceof HTMLIFrameElement&&safeProbe(function(){return j.contentWindow.document})?getActiveElement(j.contentWindow.document):j}},focusInFrame=function(s,j){return s===j},focusInsideIframe=function(s,j){return!!toArray$3(s.querySelectorAll("iframe")).some(function(et){return focusInFrame(et,j)})},focusInside=function(s,j){return j===void 0&&(j=getActiveElement(getFirst(s).ownerDocument)),!j||j.dataset&&j.dataset.focusGuard?!1:getAllAffectedNodes(s).some(function(et){return contains$1(et,j)||focusInsideIframe(et,j)})},focusIsHidden=function(s){s===void 0&&(s=document);var j=getActiveElement(s);return j?toArray$3(s.querySelectorAll("[".concat(FOCUS_ALLOW,"]"))).some(function(et){return contains$1(et,j)}):!1},findSelectedRadio=function(s,j){return j.filter(isRadioElement).filter(function(et){return et.name===s.name}).filter(function(et){return et.checked})[0]||s},correctNode=function(s,j){return isRadioElement(s)&&s.name?findSelectedRadio(s,j):s},correctNodes=function(s){var j=new Set;return s.forEach(function(et){return j.add(correctNode(et,s))}),s.filter(function(et){return j.has(et)})},pickFirstFocus=function(s){return s[0]&&s.length>1?correctNode(s[0],s):s[0]},pickFocusable=function(s,j){return s.length>1?s.indexOf(correctNode(s[j],s)):j},NEW_FOCUS="NEW_FOCUS",newFocus=function(s,j,et,tt){var rt=s.length,nt=s[0],at=s[rt-1],it=isGuard(et);if(!(et&&s.indexOf(et)>=0)){var ot=et!==void 0?j.indexOf(et):-1,st=tt?j.indexOf(tt):ot,lt=tt?s.indexOf(tt):-1,ct=ot-st,ut=j.indexOf(nt),dt=j.indexOf(at),ft=correctNodes(j),ht=et!==void 0?ft.indexOf(et):-1,mt=ht-(tt?ft.indexOf(tt):ot),vt=pickFocusable(s,0),pt=pickFocusable(s,rt-1);if(ot===-1||lt===-1)return NEW_FOCUS;if(!ct&<>=0)return lt;if(ot<=ut&&it&&Math.abs(ct)>1)return pt;if(ot>=dt&&it&&Math.abs(ct)>1)return vt;if(ct&&Math.abs(mt)>1)return lt;if(ot<=ut)return pt;if(ot>dt)return vt;if(ct)return Math.abs(ct)>1?lt:(rt+lt+ct)%rt}},findAutoFocused=function(s){return function(j){var et,tt=(et=getDataset(j))===null||et===void 0?void 0:et.autofocus;return j.autofocus||tt!==void 0&&tt!=="false"||s.indexOf(j)>=0}},pickAutofocus=function(s,j,et){var tt=s.map(function(nt){var at=nt.node;return at}),rt=filterAutoFocusable(tt.filter(findAutoFocused(et)));return rt&&rt.length?pickFirstFocus(rt):pickFirstFocus(filterAutoFocusable(j))},getParents=function(s,j){return j===void 0&&(j=[]),j.push(s),s.parentNode&&getParents(s.parentNode.host||s.parentNode,j),j},getCommonParent=function(s,j){for(var et=getParents(s),tt=getParents(j),rt=0;rt<et.length;rt+=1){var nt=et[rt];if(tt.indexOf(nt)>=0)return nt}return!1},getTopCommonParent=function(s,j,et){var tt=asArray(s),rt=asArray(j),nt=tt[0],at=!1;return rt.filter(Boolean).forEach(function(it){at=getCommonParent(at||it,it)||at,et.filter(Boolean).forEach(function(ot){var st=getCommonParent(nt,ot);st&&(!at||contains$1(st,at)?at=st:at=getCommonParent(st,at))})}),at},allParentAutofocusables=function(s,j){return s.reduce(function(et,tt){return et.concat(parentAutofocusables(tt,j))},[])},reorderNodes=function(s,j){var et=new Map;return j.forEach(function(tt){return et.set(tt.node,tt)}),s.map(function(tt){return et.get(tt)}).filter(isDefined)},focusSolver=function(s,j){var et=getActiveElement(asArray(s).length>0?document:getFirst(s).ownerDocument),tt=getAllAffectedNodes(s).filter(isNotAGuard),rt=getTopCommonParent(et||s,s,tt),nt=new Map,at=getFocusableNodes(tt,nt),it=getTabbableNodes(tt,nt).filter(function(dt){var ft=dt.node;return isNotAGuard(ft)});if(!(!it[0]&&(it=at,!it[0]))){var ot=getFocusableNodes([rt],nt).map(function(dt){var ft=dt.node;return ft}),st=reorderNodes(ot,it),lt=st.map(function(dt){var ft=dt.node;return ft}),ct=newFocus(lt,ot,et,j);if(ct===NEW_FOCUS){var ut=pickAutofocus(at,lt,allParentAutofocusables(tt,nt));if(ut)return{node:ut};console.warn("focus-lock: cannot find any node to move focus into");return}return ct===void 0?ct:st[ct]}},expandFocusableNodes=function(s){var j=getAllAffectedNodes(s).filter(isNotAGuard),et=getTopCommonParent(s,s,j),tt=new Map,rt=getTabbableNodes([et],tt,!0),nt=getTabbableNodes(j,tt).filter(function(at){var it=at.node;return isNotAGuard(it)}).map(function(at){var it=at.node;return it});return rt.map(function(at){var it=at.node,ot=at.index;return{node:it,index:ot,lockItem:nt.indexOf(it)>=0,guard:isGuard(it)}})},focusOn=function(s,j){"focus"in s&&s.focus(j),"contentWindow"in s&&s.contentWindow&&s.contentWindow.focus()},guardCount=0,lockDisabled=!1,moveFocusInside=function(s,j,et){et===void 0&&(et={});var tt=focusSolver(s,j);if(!lockDisabled&&tt){if(guardCount>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),lockDisabled=!0,setTimeout(function(){lockDisabled=!1},1);return}guardCount++,focusOn(tt.node,et.focusOptions),guardCount--}};function deferAction(s){setTimeout(s,1)}var focusOnBody=function(){return document&&document.activeElement===document.body},isFreeFocus=function(){return focusOnBody()||focusIsHidden()},lastActiveTrap=null,lastActiveFocus=null,lastPortaledElement=null,focusWasOutsideWindow=!1,defaultWhitelist=function(){return!0},focusWhitelisted=function(j){return(lastActiveTrap.whiteList||defaultWhitelist)(j)},recordPortal=function(j,et){lastPortaledElement={observerNode:j,portaledElement:et}},focusIsPortaledPair=function(j){return lastPortaledElement&&lastPortaledElement.portaledElement===j};function autoGuard(s,j,et,tt){var rt=null,nt=s;do{var at=tt[nt];if(at.guard)at.node.dataset.focusAutoGuard&&(rt=at);else if(at.lockItem){if(nt!==s)return;rt=null}else break}while((nt+=et)!==j);rt&&(rt.node.tabIndex=0)}var extractRef=function(j){return j&&"current"in j?j.current:j},focusWasOutside=function(j){return j?!!focusWasOutsideWindow:focusWasOutsideWindow==="meanwhile"},checkInHost=function s(j,et,tt){return et&&(et.host===j&&(!et.activeElement||tt.contains(et.activeElement))||et.parentNode&&s(j,et.parentNode,tt))},withinHost=function(j,et){return et.some(function(tt){return checkInHost(j,tt,tt)})},activateTrap=function(){var j=!1;if(lastActiveTrap){var et=lastActiveTrap,tt=et.observed,rt=et.persistentFocus,nt=et.autoFocus,at=et.shards,it=et.crossFrame,ot=et.focusOptions,st=tt||lastPortaledElement&&lastPortaledElement.portaledElement,lt=document&&document.activeElement;if(st){var ct=[st].concat(at.map(extractRef).filter(Boolean));if((!lt||focusWhitelisted(lt))&&(rt||focusWasOutside(it)||!isFreeFocus()||!lastActiveFocus&&nt)&&(st&&!(focusInside(ct)||lt&&withinHost(lt,ct)||focusIsPortaledPair(lt))&&(document&&!lastActiveFocus&<&&!nt?(lt.blur&<.blur(),document.body.focus()):(j=moveFocusInside(ct,lastActiveFocus,{focusOptions:ot}),lastPortaledElement={})),focusWasOutsideWindow=!1,lastActiveFocus=document&&document.activeElement),document){var ut=document&&document.activeElement,dt=expandFocusableNodes(ct),ft=dt.map(function(ht){var mt=ht.node;return mt}).indexOf(ut);ft>-1&&(dt.filter(function(ht){var mt=ht.guard,vt=ht.node;return mt&&vt.dataset.focusAutoGuard}).forEach(function(ht){var mt=ht.node;return mt.removeAttribute("tabIndex")}),autoGuard(ft,dt.length,1,dt),autoGuard(ft,-1,-1,dt))}}}return j},onTrap=function(j){activateTrap()&&j&&(j.stopPropagation(),j.preventDefault())},onBlur=function(){return deferAction(activateTrap)},onFocus=function(j){var et=j.target,tt=j.currentTarget;tt.contains(et)||recordPortal(tt,et)},FocusWatcher=function(){return null},onWindowBlur=function(){focusWasOutsideWindow="just",deferAction(function(){focusWasOutsideWindow="meanwhile"})},attachHandler=function(){document.addEventListener("focusin",onTrap),document.addEventListener("focusout",onBlur),window.addEventListener("blur",onWindowBlur)},detachHandler=function(){document.removeEventListener("focusin",onTrap),document.removeEventListener("focusout",onBlur),window.removeEventListener("blur",onWindowBlur)};function reducePropsToState(s){return s.filter(function(j){var et=j.disabled;return!et})}function handleStateChangeOnClient(s){var j=s.slice(-1)[0];j&&!lastActiveTrap&&attachHandler();var et=lastActiveTrap,tt=et&&j&&j.id===et.id;lastActiveTrap=j,et&&!tt&&(et.onDeactivation(),s.filter(function(rt){var nt=rt.id;return nt===et.id}).length||et.returnFocus(!j)),j?(lastActiveFocus=null,(!tt||et.observed!==j.observed)&&j.onActivation(),activateTrap(),deferAction(activateTrap)):(detachHandler(),lastActiveFocus=null)}mediumFocus.assignSyncMedium(onFocus);mediumBlur.assignMedium(onBlur);mediumEffect.assignMedium(function(s){return s({moveFocusInside,focusInside})});const FocusTrap=withSideEffect(reducePropsToState,handleStateChangeOnClient)(FocusWatcher);var FocusLockCombination=reactExports.forwardRef(function(j,et){return jsx(FocusLockUI,{sideCar:FocusTrap,ref:et,...j})}),_ref=FocusLockUI.propTypes||{};_ref.sideCar;_objectWithoutPropertiesLoose(_ref,["sideCar"]);FocusLockCombination.propTypes={};const FocusLock=FocusLockCombination;/**
|
|
993
993
|
* @license MIT
|
|
994
994
|
* author: Cube Dev Team
|
|
995
|
-
* @cube-dev/ui-kit v0.
|
|
995
|
+
* @cube-dev/ui-kit v0.31.2
|
|
996
996
|
* Released under the MIT license.
|
|
997
997
|
*/const STYLES_LIST=[...BASE_STYLES,...DIMENSION_STYLES,...BLOCK_STYLES],DialogElement=tasty({as:"section",styles:{pointerEvents:"auto",position:"relative",display:"flex",placeItems:"stretch",placeContent:"stretch",width:{"":"288px @dialog-size 90vw",'[data-type="fullscreen"]':"90vw 90vw",'[data-type="fullscreenTakeover"]':"100vw 100vw",'[data-type="panel"]':"100vw 100vw"},height:{"":"max 90vh",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"max 100vh"},gap:0,flow:"column",radius:{"":"2r",'[data-type="tray"]':"2r top",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"0r"},fill:"#white",shadow:{"":"0 20px 30px #shadow",'[data-type="popover"]':"0px 4px 16px #shadow"},top:{"":!1,'[data-type="modal"]':"((50vh - 50%) / -3)"},placeSelf:"stretch","@dialog-heading-padding-v":{"":"2x",'[data-type="popover"]':"1x"},"@dialog-content-padding-v":{"":"3x",'[data-type="popover"]':"2x"},"@dialog-padding-h":{"":"3x",'[data-type="popover"]':"2x"},"@dialog-footer-v":{"":"2x",'[data-type="popover"]':"1x"},"@dialog-content-gap":"3x"}}),StyledFocusLock=styled(FocusLock)`
|
|
998
998
|
display: contents;
|
|
999
999
|
`,CLOSE_BUTTON_STYLES={display:"flex",position:"absolute",top:"1x",right:"1x",width:"5x",height:"5x",placeContent:"center"},sizeMap={S:"small",M:"medium",L:"large"},sizePxMap={small:360,medium:479,large:798},intlMessages={"en-US":{dismiss:"Dismiss",alert:"Alert"}},Dialog=reactExports.forwardRef(function(j,et){const tt=useOpenTransitionContext(),rt=(tt==null?void 0:tt.transitionState)==="entered";return jsx(StyledFocusLock,{returnFocus:!0,disabled:!rt,children:jsx(DialogContent,{...j,ref:et},"content")})}),DialogContent=reactExports.forwardRef(function(j,et){let{type:tt="modal",...rt}=useDialogContext(),{qa:nt,children:at,size:it="S",isDismissable:ot=rt.isDismissable,onDismiss:st=rt.onClose,closeIcon:lt,closeButtonStyles:ct,...ut}=j;it=sizeMap[it.toUpperCase()]||it;const dt=extractStyles(ut,STYLES_LIST);let ft=useMessageFormatter(intlMessages),ht=$98e5a8ae0e6415af$export$c2c55ef9111cafd8(et),{dialogProps:mt,titleProps:vt}=$40df3f8667284809$export$d55e7ee900f34e93(mergeProps(rt,j),ht),pt;(tt==="popover"||tt==="tray")&&(pt=jsx($86ea4cb521eb2e37$export$2317d149ed6f78c4,{onDismiss:st}));let gt={heading:{level:2,preset:"h4",...vt},content:{styles:{flexGrow:1,padding:"@dialog-content-padding-v @dialog-padding-h",gap:"@dialog-content-gap",height:{"":"max (100% - (2 * @dialog-content-padding-v))",":last-child":"max (100% - @dialog-content-padding-v)"}}},header:{ellipsis:!0,styles:{display:"flex",flow:"row",gap:"1x",placeItems:"baseline stretch",placeContent:"space-between",padding:`@dialog-heading-padding-v ${ot?"(@dialog-padding-h + 4x)":"@dialog-padding-h"} @dialog-heading-padding-v @dialog-padding-h`,border:"bottom"}},footer:{styles:{display:"flex",gap:"1x",flow:"row",placeItems:"baseline stretch",placeContent:"space-between",padding:"@dialog-footer-v @dialog-padding-h"}}};return jsxs(DialogElement,{ref:ht,"data-id":"Dialog","data-qa":nt||"Dialog",styles:dt,as:"section",...mt,mods:{dismissable:ot},style:{"--dialog-size":`${sizePxMap[it]||288}px`},"data-type":tt,"data-size":it,children:[pt,jsxs(SlotProvider,{slots:gt,children:[ot&&jsx(Button,{qa:"ModalCloseButton",type:"neutral",styles:CLOSE_BUTTON_STYLES,icon:lt||jsx(CloseOutlined$4,{}),label:ft("dismiss"),onPress:()=>st&&st()}),at]})]})});/**
|
|
1000
1000
|
* @license MIT
|
|
1001
1001
|
* author: Cube Dev Team
|
|
1002
|
-
* @cube-dev/ui-kit v0.
|
|
1002
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1003
1003
|
* Released under the MIT license.
|
|
1004
1004
|
*/const TrayWrapperElement=tasty({qa:"TrayWrapper",styles:{...OVERLAY_WRAPPER_STYLES,placeContent:"end center",placeItems:"end center"}}),TrayElement=tasty({styles:{display:{"":"none","entering | entered":"initial",exiting:"initial",exited:"none"},zIndex:10,height:"max 90dvh",width:"288px 90vw",pointerEvents:"auto",transition:"transform .25s ease-in-out, opacity .25s linear, visibility 0ms linear",opacity:{"":0,open:".9999"}}});function Tray(s,j){let{qa:et,children:tt,onClose:rt,isFixedHeight:nt,isNonModal:at,styles:it,...ot}=s,st=$98e5a8ae0e6415af$export$c2c55ef9111cafd8(j),{overlayProps:lt,underlayProps:ct}=$a11501f3d1d39e6c$export$ea8f71083e90600f({...s,isDismissable:!0},st);return jsxs(_Overlay,{...ot,children:[jsx(_Underlay,{...ct}),jsx(TrayWrapper,{ref:st,qa:et,overlayProps:lt,isFixedHeight:nt,isNonModal:at,styles:it,onClose:rt,children:tt})]})}let TrayWrapper=reactExports.forwardRef(function(j,et){let{qa:tt,children:rt,isOpen:nt,styles:at,isFixedHeight:it,isNonModal:ot,overlayProps:st,transitionState:lt,...ct}=j;$49c51c25361d4cd2$export$ee0f7cc6afcd1c18();let{modalProps:ut}=$f57aed4a881a3485$export$33ffd74ebf07f060({isDisabled:ot}),dt=mergeProps(ct,st);return jsx(TrayWrapperElement,{mods:{open:nt},children:jsx(TrayElement,{qa:tt||"Tray",styles:at,mods:{open:nt,entering:lt==="entering",exiting:lt==="exiting",exited:lt==="exited",entered:lt==="entered","fixed-height":it},...dt,...ut,ref:et,children:rt})})}),_Tray=reactExports.forwardRef(Tray);/**
|
|
1005
1005
|
* @license MIT
|
|
1006
1006
|
* author: Cube Dev Team
|
|
1007
|
-
* @cube-dev/ui-kit v0.
|
|
1007
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1008
1008
|
* Released under the MIT license.
|
|
1009
1009
|
*/const PopoverElement=tasty({role:"presentation",styles:{display:{"":"none","entering | entered":"initial",exiting:"initial",exited:"none"},pointerEvents:"auto",position:"absolute",transition:"opacity .120s linear, visibility 0ms linear, transform .120s ease-in-out",transform:{"":"scale(1, .9)",open:"initial"},opacity:{"":0,open:".9999"},transformOrigin:{"":"top center",'[data-placement="top"]':"bottom center"}}});function Popover(s,j){let{qa:et,style:tt,styles:rt,children:nt,placement:at,arrowProps:it,onClose:ot,shouldCloseOnBlur:st,isKeyboardDismissDisabled:lt,isNonModal:ct,isDismissable:ut=!0,updatePosition:dt,shouldCloseOnInteractOutside:ft,...ht}=s;return jsx(_Overlay,{...ht,children:jsx(PopoverWrapper,{ref:j,qa:et,style:tt,styles:rt,placement:at,arrowProps:it,shouldCloseOnBlur:st,isKeyboardDismissDisabled:lt,isNonModal:ct,isDismissable:ut,updatePosition:dt,shouldCloseOnInteractOutside:ft,onClose:ot,children:nt})})}const PopoverWrapper=reactExports.forwardRef(function(j,et){let{qa:tt,children:rt,placement:nt="bottom",arrowProps:at,isOpen:it,style:ot,styles:st,shouldCloseOnBlur:lt,isKeyboardDismissDisabled:ct,isNonModal:ut,isDismissable:dt,updatePosition:ft,transitionState:ht,...mt}=j,{overlayProps:vt}=$a11501f3d1d39e6c$export$ea8f71083e90600f({...j,isDismissable:dt&&it},et),{modalProps:pt}=$f57aed4a881a3485$export$33ffd74ebf07f060({isDisabled:ut});return reactExports.useEffect(()=>{ht==="entered"&&(ft==null||ft())},[ft,ht]),jsx(PopoverElement,{qa:tt||"Popover",...mergeProps(mt,vt,pt),ref:et,styles:st,mods:{open:it,entering:ht==="entering",exiting:ht==="exiting",exited:ht==="exited",entered:ht==="entered"},"data-placement":nt,style:ot,children:rt})});let _Popover=reactExports.forwardRef(Popover);/**
|
|
1010
1010
|
* @license MIT
|
|
1011
1011
|
* author: Cube Dev Team
|
|
1012
|
-
* @cube-dev/ui-kit v0.
|
|
1012
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1013
1013
|
* Released under the MIT license.
|
|
1014
1014
|
*/function DialogTrigger(s){let{children:j,type:et="modal",mobileType:tt=et==="popover"?"modal":et,hideArrow:rt,targetRef:nt,onDismiss:at,isDismissable:it=!0,isKeyboardDismissDisabled:ot,styles:st,mobileViewport:lt=700,hideOnClose:ct,shouldCloseOnInteractOutside:ut,...dt}=s;if(!Array.isArray(j)||j.length>2)throw new Error("DialogTrigger must have exactly 2 children");let[ft,ht]=j;$3df547e395c4522f$export$32d5543ab307c01(`(max-width: ${lt}px)`)&&(et!=="modal"&&tt==="modal"&&(it=!0),et=tt);let vt=$fc909762b330b746$export$61c6a8c84e605fb6(s),pt=reactExports.useRef(!1),gt=reactExports.useRef(!1),yt=()=>gt.current=!0,$t=()=>gt.current=!1;pt.current=vt.isOpen,reactExports.useEffect(()=>()=>{(pt.current||gt.current)&&et!=="popover"&&et!=="tray"&&console.warn("CubeUIKit: A DialogTrigger unmounted while open. This is likely due to being placed within a trigger that unmounts or inside a conditional. Consider using a DialogContainer instead.")},[]);function xt(bt){it&&(at&&at(bt),vt.close())}return et==="popover"?jsx(PopoverTrigger,{...dt,hideOnClose:ct,state:vt,targetRef:nt,trigger:ft,content:ht,isKeyboardDismissDisabled:ot,hideArrow:rt,shouldCloseOnInteractOutside:ut,onClose:xt}):jsx(DialogTriggerBase,{type:et,state:vt,isDismissable:it,trigger:ft,overlay:(()=>{switch(et){case"panel":case"fullscreen":case"fullscreenTakeover":case"modal":return jsx(_Modal,{hideOnClose:ct,isOpen:vt.isOpen,isDismissable:it,type:et,isKeyboardDismissDisabled:ot,styles:st,shouldCloseOnInteractOutside:ut,onClose:xt,onExiting:yt,onExited:$t,children:typeof ht=="function"?ht(vt.close):ht});case"tray":return jsx(_Tray,{hideOnClose:ct,isOpen:vt.isOpen,isKeyboardDismissDisabled:ot,styles:st,onClose:xt,children:typeof ht=="function"?ht(vt.close):ht})}})(),onClose:xt})}let _DialogTrigger=DialogTrigger;function PopoverTrigger(s){let{state:j,targetRef:et,trigger:tt,content:rt,hideArrow:nt,onClose:at,isKeyboardDismissDisabled:it,hideOnClose:ot,shouldCloseOnInteractOutside:st,keepOpenOnScroll:lt,...ct}=s,ut=reactExports.useRef(null),dt=reactExports.useRef(null),{overlayProps:ft,placement:ht,arrowProps:mt,updatePosition:vt}=$2a41e45df1593e64$export$d39e1813b3bdd0e1({targetRef:et||ut,overlayRef:dt,placement:ct.placement,containerPadding:ct.containerPadding,offset:ct.offset||8,crossOffset:ct.crossOffset,shouldFlip:ct.shouldFlip,isOpen:j.isOpen}),pt=j;lt&&(pt={...j,close:vt});let{triggerProps:gt,overlayProps:yt}=$628037886ba31236$export$f9d5c8beee7d008d({type:"dialog"},pt,ut),$t={...gt,ref:et?void 0:ut},xt=jsx(_Popover,{ref:dt,hideOnClose:ot,isOpen:j.isOpen,style:ft.style,placement:ht,arrowProps:mt,isKeyboardDismissDisabled:it,hideArrow:nt,updatePosition:vt,shouldCloseOnInteractOutside:st,onClose:at,children:typeof rt=="function"?rt(j.close):rt});return jsx(DialogTriggerBase,{type:"popover",state:j,triggerProps:$t,dialogProps:yt,trigger:tt,overlay:xt,onClose:at})}function DialogTriggerBase(s){let{type:j,state:et,onClose:tt,isDismissable:rt,dialogProps:nt={},triggerProps:at={},overlay:it,trigger:ot}=s,st={type:j,onClose:tt,isDismissable:rt,...nt};return jsxs(reactExports.Fragment,{children:[jsx($f1ab8c75478c6f73$export$3351871ee4b288b8,{...at,isPressed:et.isOpen&&j!=="modal"&&j!=="fullscreen"&&j!=="fullscreenTakeover",onPress:et.toggle,children:ot}),jsx(DialogContext.Provider,{value:st,children:it})]})}/**
|
|
1015
1015
|
* @license MIT
|
|
1016
1016
|
* author: Cube Dev Team
|
|
1017
|
-
* @cube-dev/ui-kit v0.
|
|
1017
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1018
1018
|
* Released under the MIT license.
|
|
1019
1019
|
*/const colors$3={pink:"255, 100, 146","pink-02":"255, 131, 168",purple:"122, 119, 255","purple-text":"102, 93, 232","purple-01":"122, 119, 255","purple-02":"149, 146, 255","purple-03":"175, 173, 255","purple-04":"202, 201, 255",text:"91, 92, 125",dark:"20, 20, 70","dark-01":"20, 20, 70","dark-02":"67, 67, 107","dark-03":"114, 114, 144","dark-04":"161, 161, 181","dark-05":"213, 213, 226","grey-light":"248, 248, 249",light:"246, 246, 248",white:"255, 255, 255",black:"0, 0, 0","danger-text":"227, 0, 42",danger:"255, 55, 73","light-grey":"248, 248, 249",success:"49, 195, 124","success-text":"48, 166, 102",note:"251, 188, 5",warning:"224, 86, 43"};function color$2(s,j=1){return`rgba(${colors$3[s]}, ${j})`}const TOKENS={"font-size":"14px","line-height":"20px","input-font-size":"14px","input-line-height":"20px","input-letter-spacing":"0.02em","disabled-opacity":".4",gap:"8px","outline-width":"calc(1rem / 16 * 3)","border-width":"1px",radius:"4px","leaf-sharp-radius":"0px",transition:"80ms","clear-color":"transparent","border-color":color$2("dark",.1),"shadow-color":color$2("dark-03",.1),"draft-color":color$2("dark",.2),"minor-color":color$2("dark",.65),"success-bg-color":"rgba(41, 190, 110, .1)","note-bg-color":color$2("note",.1),"note-text-color":color$2("note",1),"danger-bg-color":color$2("danger",.05),"danger-bg-hover-color":color$2("danger",.1),"primary-1":color$2("purple",.9),"primary-2":color$2("purple",.8),"primary-3":color$2("purple",.7),"primary-4":color$2("purple",.6),"primary-5":color$2("purple",.5),"primary-6":color$2("purple",.4),"primary-7":color$2("purple",.3),"primary-8":color$2("purple",.2),"primary-9":color$2("purple",.1),"primary-10":color$2("purple",0),"dark-75-color":color$2("dark",.75),"primary-color":color$2("purple"),"pink-8-color":color$2("pink",.2),"pink-9-color":color$2("pink",.1),"disabled-color":color$2("dark-01",.25),"disabled-text-color":color$2("dark-01",.25),"disabled-bg":color$2("dark-05",.2),"disabled-bg-color":color$2("dark-05",.2),"max-content-width":"1440px","topbar-height":"48px","devmodebar-height":"54px","sidebar-width":"200px","border-radius-base":"4px","text-font-size":"14px","text-line-height":"20px","text-letter-spacing":"0","h1-font-size":"36px","h1-line-height":"44px","h1-letter-spacing":"-0.01em","h1-font-weight":"700","h2-font-size":"24px","h2-line-height":"36px","h2-letter-spacing":"0em","h2-font-weight":"700","h3-font-size":"20px","h3-line-height":"28px","h3-letter-spacing":"0em","h3-font-weight":"700","h4-font-size":"18px","h4-line-height":"24px","h4-letter-spacing":"0","h4-font-weight":"700","h5-font-size":"16px","h5-line-height":"22px","h5-letter-spacing":"0","h5-font-weight":"700","h5-icon-size":"18px","h6-font-size":"14px","h6-line-height":"20px","h6-letter-spacing":"0.01em","h6-font-weight":"600","h6-icon-size":"16px","t1-font-size":"18px","t1-line-height":"24px","t1-letter-spacing":"0","t1-font-weight":"400","t1-icon-size":"20px","t2-font-size":"16px","t2-line-height":"22px","t2-letter-spacing":"0","t2-font-weight":"400","t2-icon-size":"18px","t2m-font-size":"16px","t2m-line-height":"22px","t2m-letter-spacing":"0","t2m-font-weight":"500","t2m-icon-size":"18px","t3-font-size":"14px","t3-line-height":"20px","t3-letter-spacing":"0","t3-font-weight":"400","t3-icon-size":"16px","t3m-font-size":"14px","t3m-line-height":"20px","t3m-letter-spacing":"0","t3m-font-weight":"500","t3m-icon-size":"16px","t4-font-size":"12px","t4-line-height":"18px","t4-letter-spacing":"0","t4-font-weight":"500","t4-icon-size":"14px","t4m-font-size":"12px","t4m-line-height":"18px","t4m-letter-spacing":"0","t4m-font-weight":"600","t4m-icon-size":"14px","p1-font-size":"18px","p1-line-height":"28px","p1-letter-spacing":"0","p1-font-weight":"400","p1-icon-size":"20px","p2-font-size":"16px","p2-line-height":"24px","p2-letter-spacing":"0","p2-font-weight":"400","p2-icon-size":"18px","p3-font-size":"14px","p3-line-height":"22px","p3-letter-spacing":"0","p3-font-weight":"400","p3-icon-size":"16px","p4-font-size":"12px","p4-line-height":"20px","p4-letter-spacing":"0","p4-font-weight":"500","p4-icon-size":"14px","c1-font-size":"14px","c1-line-height":"20px","c1-letter-spacing":"0","c1-font-weight":"500","c1-text-transform":"uppercase","c1-icon-size":"16px","c2-font-size":"12px","c2-line-height":"18px","c2-letter-spacing":"0.01em","c2-font-weight":"500","c2-text-transform":"uppercase","c2-icon-size":"14px","tag-font-size":"12px","tag-line-height":"18px","tag-letter-spacing":"0.01em","tag-font-weight":"600","tag-icon-size":"14px","strong-font-size":"inherit","strong-line-height":"inherit","strong-letter-spacing":"inherit","strong-font-family":"inherit","strong-font-style":"inherit","strong-font-weight":"var(--bold-font-weight, var(--default-bold-font-weight, 700))","em-font-size":"inherit","em-line-height":"inherit","em-letter-spacing":"inherit","em-font-family":"inherit","em-font-style":"italic","em-font-weight":"inherit","default-font-size":"var(--t3-font-size)","default-line-height":"var(--t3-line-height)","default-letter-spacing":"var(--t3-letter-spacing)","default-font-weight":"var(--t3-font-weight)","default-bold-font-weight":"700","default-icon-size":"inherit","scrollbar-width":"1.5x","scrollbar-outline-width":"1ow","scrollbar-radius":"1.5r","scrollbar-thumb-color":"rgba(var(--text-color-rgb), .5)","scrollbar-outline-color":"var(--clear-color)","scrollbar-bg-color":"var(--grey-light-color)","scrollbar-corner-color":"var(--clear-color)"};Object.keys(colors$3).forEach(s=>{TOKENS[`${s}-color`]=color$2(s),TOKENS[`${s}-color-rgb`]=colors$3[s]});/**
|
|
1020
1020
|
* @license MIT
|
|
1021
1021
|
* author: Cube Dev Team
|
|
1022
|
-
* @cube-dev/ui-kit v0.
|
|
1022
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1023
1023
|
* Released under the MIT license.
|
|
1024
1024
|
*/const BODY_STYLES={"overscroll-behavior-y":"none","background-color":"white !important","font-family":"var(--font)","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale",margin:"0",padding:"0",color:"rgba(20, 20, 70, .75)","font-size":"14px","line-height":"20px","letter-spacing":"0.02em","font-weight":"400"},fontsProvider=({publicUrl:s="",fontDisplay:j="swap"})=>`
|
|
1025
1025
|
@font-face {
|
|
@@ -1322,97 +1322,97 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
1322
1322
|
`,GlobalStyles$1=s=>{const j={};return Object.entries(s).forEach(([et,tt])=>{tt!==void 0&&(j[`$${et}`]=tt)}),jsx(GlobalStylesElement,{...j})};/**
|
|
1323
1323
|
* @license MIT
|
|
1324
1324
|
* author: Cube Dev Team
|
|
1325
|
-
* @cube-dev/ui-kit v0.
|
|
1325
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1326
1326
|
* Released under the MIT license.
|
|
1327
1327
|
*/const STYLE_LIST=[...CONTAINER_STYLES,...TEXT_STYLES],FooterElement=tasty({qa:"Footer","data-id":"Footer",styles:{gridArea:"footer",display:"block",flow:"column"}}),Footer=reactExports.forwardRef(function(j,et){j=useSlotProps(j,"footer");const tt=extractStyles(j,STYLE_LIST);return jsx(FooterElement,{...filterBaseProps(j,{eventProps:!0}),ref:et,styles:tt})});/**
|
|
1328
1328
|
* @license MIT
|
|
1329
1329
|
* author: Cube Dev Team
|
|
1330
|
-
* @cube-dev/ui-kit v0.
|
|
1330
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1331
1331
|
* Released under the MIT license.
|
|
1332
1332
|
*/const DEFAULT_CONFIRM_PROPS={label:"Ok",type:"primary"},DEFAULT_CANCEL_PROPS={label:"Cancel"};function AlertDialog(s,j){const{onClose:et}=useDialogContext(),{danger:tt,actions:rt,title:nt,styles:at,noActions:it,content:ot,...st}=s;let{confirm:lt,secondary:ct,cancel:ut}=rt!=null?rt:{};return lt=lt!==!1?{...DEFAULT_CONFIRM_PROPS,...typeof lt=="object"?lt:null}:void 0,ut=ut?{...DEFAULT_CANCEL_PROPS,...typeof ut=="object"?ut:null}:void 0,jsxs(Dialog,{ref:j,role:"alertdialog",isDismissable:!1,...st,children:[nt?jsx(Header$2,{children:jsx(Title$2,{children:nt})}):null,ot?jsx(Content$2,{children:typeof ot=="string"?jsx(Paragraph$5,{children:ot}):ot}):null,it?null:jsx(Footer,{children:jsxs(ButtonGroup,{align:"end",children:[jsx(Button,{autoFocus:!0,theme:tt?"danger":void 0,...lt,onPress:dt=>{var ft;return chain$2((ft=lt==null?void 0:lt.onPress)==null?void 0:ft.call(lt,dt),et==null?void 0:et("confirm"))}}),ct&&jsx(Button,{...ct,onPress:dt=>{var ft;return chain$2((ft=ct==null?void 0:ct.onPress)==null?void 0:ft.call(ct,dt),et==null?void 0:et("secondary"))}}),ut&&jsx(Button,{...ut,onPress:dt=>{var ft;return chain$2((ft=ut==null?void 0:ut.onPress)==null?void 0:ft.call(ut,dt),et==null?void 0:et("cancel"))}})]})})]})}const _AlertDialog=reactExports.forwardRef(AlertDialog);/**
|
|
1333
1333
|
* @license MIT
|
|
1334
1334
|
* author: Cube Dev Team
|
|
1335
|
-
* @cube-dev/ui-kit v0.
|
|
1335
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1336
1336
|
* Released under the MIT license.
|
|
1337
1337
|
*/const PORTAL_KEY="AlertDialogZone";function AlertDialogZone(s){const{openedDialog:j}=s;if(j===null)return jsx(Portal,{},PORTAL_KEY);const{type:et,isDismissable:tt=!0,actions:rt,onDismiss:nt,content:at,...it}=j.props,{resolve:ot,reject:st,isVisible:lt,dialogType:ct}=j.meta,ut=(()=>{const dt=(ft,ht)=>{if(typeof ft=="undefined")return;if(typeof ft=="boolean")return ft?{onPress:()=>ot(ht)}:!1;const mt=ft.onPress;return{...ft,onPress:vt=>{mt==null||mt(vt),ot(ht)}}};return typeof rt=="undefined"?{}:{confirm:dt(rt.confirm,"confirm"),secondary:dt(rt.secondary,"secondary"),cancel:dt(rt.cancel,"cancel")}})();return jsx(Portal,{children:jsx(DialogContainer,{isOpen:lt,isDismissable:tt,type:et,onDismiss:nt,children:jsx(_AlertDialog,{noActions:ct==="form",actions:ut,isHidden:!lt,content:typeof at=="function"?at({resolve:ot,reject:st}):at,...it})})},PORTAL_KEY)}/**
|
|
1338
1338
|
* @license MIT
|
|
1339
1339
|
* author: Cube Dev Team
|
|
1340
|
-
* @cube-dev/ui-kit v0.
|
|
1340
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1341
1341
|
* Released under the MIT license.
|
|
1342
1342
|
*/const DialogApiContext=reactExports.createContext(null);function AlertDialogApiProvider(s){const[j,et]=reactExports.useState(null),tt=reactExports.useRef(0),rt=reactExports.useMemo(()=>({open:(nt,at={})=>{const{onDismiss:it,...ot}=nt,{cancelToken:st}=at,lt=++tt.current,ct={props:null,meta:{id:lt,isClosed:!1,isVisible:!0}},ut=()=>{var dt;ct.meta.isClosed||(ct.meta.isClosed=!0,(dt=at.cancelToken)==null||dt.removeEventListener("abort",ut),et(ft=>(ft==null?void 0:ft.meta.id)!==lt?ft:{props:ft.props,meta:{...ft.meta,isVisible:!1}}),setTimeout(()=>et(ft=>(ft==null?void 0:ft.meta.id)!==lt?ft:null),300))};return st!=null&&st.aborted?new Promise(()=>{}):(st==null||st.addEventListener("abort",ut,{once:!0}),ct.meta.promise=new Promise((dt,ft)=>{ct.meta.resolve=ht=>{ut(),dt(ht)},ct.meta.reject=ht=>{ut(),ft(ht)}}),ct.props={...ot,onDismiss:dt=>{it==null||it(dt),ct.meta.reject(void 0)}},et(dt=>dt!==null?(ct.meta.reject(new Error("Another dialog is already opened. It's a bad practice to open more than one <AlertDialog /> at the same time")),dt):ct),ct.meta.promise)}}),[]);return jsxs(DialogApiContext.Provider,{value:rt,children:[jsx(AlertDialogZone,{openedDialog:j}),s.children]})}/**
|
|
1343
1343
|
* @license MIT
|
|
1344
1344
|
* author: Cube Dev Team
|
|
1345
|
-
* @cube-dev/ui-kit v0.
|
|
1345
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1346
1346
|
* Released under the MIT license.
|
|
1347
1347
|
*/const RootElement=tasty({id:"cube-ui-kit-root",className:"root"}),DEFAULT_STYLES={display:"block",preset:"t3",...Object.keys(TOKENS).reduce((s,j)=>(s[`@${j}`]=TOKENS[j],s),{})},STYLES=[...BASE_STYLES,...BLOCK_STYLES],IS_DVH_SUPPORTED=typeof CSS!="undefined"&&typeof(CSS==null?void 0:CSS.supports)=="function"?CSS.supports("height: 100dvh"):!1;function Root(s){let{children:j,bodyStyles:et,fontDisplay:tt="swap",fonts:rt,publicUrl:nt,router:at,font:it,monospaceFont:ot,applyLegacyTokens:st,tracking:lt,...ct}=s;const ut=reactExports.useRef(null),[dt,ft]=reactExports.useState();let ht=useViewportSize({isDisabled:IS_DVH_SUPPORTED}),[mt,vt]=reactExports.useState(IS_DVH_SUPPORTED?void 0:ht.height),pt=reactExports.useRef();reactExports.useEffect(()=>{IS_DVH_SUPPORTED&&typeof window!="undefined"||(pt.current&&clearTimeout(pt.current),ht.height<(mt||0)&&ht.height<window.innerHeight?pt.current=setTimeout(()=>{vt(ht.height)},500):vt(ht.height))},[mt,ht.height]),reactExports.useEffect(()=>{dt||ft(ut==null?void 0:ut.current)},[]);const gt=extractStyles(ct,STYLES,DEFAULT_STYLES);return jsx(Provider$1,{router:at,root:dt,children:jsx(TrackingProvider,{event:lt==null?void 0:lt.event,children:jsx(le,{children:jsxs(RootElement,{ref:ut,"data-font-display":tt,...filterBaseProps(ct,{eventProps:!0}),styles:gt,style:{"--cube-dynamic-viewport-height":mt?mt+"px":"100dvh"},children:[jsx(GlobalStyles$1,{bodyStyles:et,applyLegacyTokens:st,publicUrl:nt,fonts:rt,font:it,monospaceFont:ot,fontDisplay:tt}),jsx($f57aed4a881a3485$export$178405afcd8c5eb,{children:jsx(PortalProvider,{value:ut,children:jsx(NotificationsProvider,{rootRef:ut,children:jsx(AlertDialogApiProvider,{children:j})})})})]})})})})}const scriptRel="modulepreload",assetsURL=function(s){return"/"+s},seen={},__vitePreload=function(j,et,tt){if(!et||et.length===0)return j();const rt=document.getElementsByTagName("link");return Promise.all(et.map(nt=>{if(nt=assetsURL(nt),nt in seen)return;seen[nt]=!0;const at=nt.endsWith(".css"),it=at?'[rel="stylesheet"]':"";if(!!tt)for(let lt=rt.length-1;lt>=0;lt--){const ct=rt[lt];if(ct.href===nt&&(!at||ct.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${nt}"]${it}`))return;const st=document.createElement("link");if(st.rel=at?"stylesheet":scriptRel,at||(st.as="script",st.crossOrigin=""),st.href=nt,document.head.appendChild(st),at)return new Promise((lt,ct)=>{st.addEventListener("load",lt),st.addEventListener("error",()=>ct(new Error(`Unable to preload CSS for ${nt}`)))})})).then(()=>j()).catch(nt=>{const at=new Event("vite:preloadError",{cancelable:!0});if(at.payload=nt,window.dispatchEvent(at),!at.defaultPrevented)throw nt})};/**
|
|
1348
1348
|
* @license MIT
|
|
1349
1349
|
* author: Cube Dev Team
|
|
1350
|
-
* @cube-dev/ui-kit v0.
|
|
1350
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1351
1351
|
* Released under the MIT license.
|
|
1352
1352
|
*/const DateInputWrapperElement=tasty({qa:"DateInputWrapper",role:"presentation",styles:{...INPUT_WRAPPER_STYLES,display:"flex"}}),DateInputElement$1=tasty({role:"presentation",styles:{...DEFAULT_INPUT_STYLES,display:"flex",flow:"row",placeItems:"center start"}});function DateInputBase(s,j){let et=reactExports.useRef(null),{isDisabled:tt,inputStyles:rt,children:nt,fieldProps:at,style:it,disableFocusRing:ot,autoFocus:st,validationState:lt,isLoading:ct,size:ut="medium"}=s,dt=extractStyles(s,CONTAINER_STYLES),{focusProps:ft,isFocused:ht}=$f7dceffc5ad7768b$export$4e328f61c538687f({isTextInput:!0,within:!0,autoFocus:st}),mt=lt==="invalid",vt=mt?InvalidIcon:ValidIcon,pt=reactExports.cloneElement(vt);return jsxs(DateInputWrapperElement,{styles:dt,"data-size":ut,mods:{disabled:tt,focused:ht&&!ot,invalid:mt},...mergeProps(at!=null?at:{},ft),style:it,children:[jsx("div",{"data-element":"Contents",role:"presentation",children:jsx(DateInputElement$1,{ref:$5dc95899b306f630$export$c9058316764c140e(j,et),"data-size":ut,role:"presentation",styles:rt,children:nt})}),lt&&!ct?pt:void 0]})}const _DateInputBase=React.forwardRef(DateInputBase);/**
|
|
1353
1353
|
* @license MIT
|
|
1354
1354
|
* author: Cube Dev Team
|
|
1355
|
-
* @cube-dev/ui-kit v0.
|
|
1355
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1356
1356
|
* Released under the MIT license.
|
|
1357
1357
|
*/const LiteralSegmentElement=tasty({qa:"LiteralSegment",as:"span","aria-hidden":"true",styles:{}}),EditableSegmentElement=tasty({qa:"EditableSegment",styles:{padding:"0 1bw",fontVariantNumeric:"tabular-nums lining-nums",textAlign:"right",font:"monospace",color:{"":"inherit",":focus":"#white"},fill:{"":"#clear",":focus":"#purple"},radius:".5r",Placeholder:{opacity:"#disabled-opacity"}}});function DatePickerSegment({segment:s,state:j,...et}){switch(s.type){case"literal":return jsx(LiteralSegment,{segment:s});default:return jsx(EditableSegment,{segment:s,state:j,...et})}}function LiteralSegment({segment:s}){return jsx(LiteralSegmentElement,{"data-type":s.type==="literal"?void 0:s.type,children:s.text})}function EditableSegment({segment:s,state:j}){let et=reactExports.useRef(null),{segmentProps:tt}=$32489daedd52963e$export$1315d136e6f7581(s,j,et);return jsx(EditableSegmentElement,{...tt,ref:et,mods:{placeholder:s.isPlaceholder,"read-only":!s.isEditable},style:{...tt.style,minWidth:s.maxValue!=null?`calc(${String(s.maxValue).length+"ch"})`:void 0},"data-testid":s.type,children:s.isPlaceholder?jsx("span",{"data-element":"Placeholder","aria-hidden":"true",children:s.placeholder}):s.text})}/**
|
|
1358
1358
|
* @license MIT
|
|
1359
1359
|
* author: Cube Dev Team
|
|
1360
|
-
* @cube-dev/ui-kit v0.
|
|
1360
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1361
1361
|
* Released under the MIT license.
|
|
1362
1362
|
*/function useFocusManagerRef(s){let j=reactExports.useRef();return reactExports.useImperativeHandle(s,()=>({...$98e5a8ae0e6415af$export$a5795cc979dfae80(j),focus(){$9bf71ea28793e738$export$c5251b9e124bf29(j).focusFirst({tabbable:!0})}})),j}function formatSegments(s){s=JSON.parse(JSON.stringify(s)),s.forEach(rt=>{rt.type==="literal"&&(rt.text==="/"&&(rt.text="-"),rt.text===", "&&(rt.text=" "))});const j=s.find(rt=>rt.type==="year");j&&(s.splice(s.indexOf(j),1),s.unshift(j));const et=s.find(rt=>rt.type==="month");et&&(s.splice(s.indexOf(et),1),s.splice(2,0,et));const tt=s.find(rt=>rt.type==="day");return tt&&(s.splice(s.indexOf(tt),1),s.splice(4,0,tt)),s}/**
|
|
1363
1363
|
* @license MIT
|
|
1364
1364
|
* author: Cube Dev Team
|
|
1365
|
-
* @cube-dev/ui-kit v0.
|
|
1365
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1366
1366
|
* Released under the MIT license.
|
|
1367
1367
|
*/const DEFAULT_DATE_PROPS={granularity:"day",hideTimeZone:!0,hourCycle:24,shouldForceLeadingZeros:!0},DEFAULT_TIME_PROPS={hideTimeZone:!0,hourCycle:24,shouldForceLeadingZeros:!0};/**
|
|
1368
1368
|
* @license MIT
|
|
1369
1369
|
* author: Cube Dev Team
|
|
1370
|
-
* @cube-dev/ui-kit v0.
|
|
1370
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1371
1371
|
* Released under the MIT license.
|
|
1372
1372
|
*/function TimeInput(s,j){s=useProviderProps(s),s=useFormProps(s),s=useFieldProps(s,{defaultValidationTrigger:"onBlur"}),s=Object.assign({},DEFAULT_TIME_PROPS,s);let et=extractStyles(s,CONTAINER_STYLES),{inputStyles:tt,wrapperStyles:rt,autoFocus:nt,isDisabled:at,isReadOnly:it,isRequired:ot,validationState:st,size:lt="medium"}=s,ct=useFocusManagerRef(j),ut=$eff5d8ee529ac4bb$export$fd53cef0cc796101({...s,locale:"en-US"}),dt=reactExports.useRef(null),{labelProps:ft,fieldProps:ht}=$16f0b7bb276bc17e$export$4c842f6a241dc825(s,ut,dt);const mt=jsx(_DateInputBase,{ref:dt,size:lt,fieldProps:ht,isDisabled:at,autoFocus:nt,inputStyles:tt,styles:rt,validationState:st,children:ut.segments.map((vt,pt)=>jsx(DatePickerSegment,{segment:vt,state:ut,isDisabled:at,isReadOnly:it,isRequired:ot},pt))});return wrapWithField(mt,ct,{...s,styles:et,labelProps:ft})}const _TimeInput=reactExports.forwardRef(TimeInput);/**
|
|
1373
1373
|
* @license MIT
|
|
1374
1374
|
* author: Cube Dev Team
|
|
1375
|
-
* @cube-dev/ui-kit v0.
|
|
1375
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1376
1376
|
* Released under the MIT license.
|
|
1377
1377
|
*/function parseAbsoluteDate(s){if(!(!s||typeof s=="string"&&s.trim()==="")){if(s instanceof Date)return $fae977aafc393c5c$export$5adfdab05168c219(s.toISOString(),"UTC");try{$fae977aafc393c5c$export$5adfdab05168c219(s,"UTC")}catch(j){if(Number.isNaN(Date.parse(s))){console.error("Invalid date format",s);return}else return $fae977aafc393c5c$export$5adfdab05168c219(new Date(s).toISOString(),"UTC")}}}/**
|
|
1378
1378
|
* @license MIT
|
|
1379
1379
|
* author: Cube Dev Team
|
|
1380
|
-
* @cube-dev/ui-kit v0.
|
|
1380
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1381
1381
|
* Released under the MIT license.
|
|
1382
1382
|
*/const CalendarCellElement=tasty({as:"td",styles:{preset:"t3m",margin:0,padding:"1bw right bottom"}}),CalendarButtonElement=tasty({styles:{display:"grid",placeItems:"center",width:"3.5x",height:"3.5x",fill:{"":"#purple.0",":hover":"#purple.16",pressed:"#purple.10",selected:"#purple","selected & :hover":"#purple-text","selected & pressed":"#purple","disabled | unavailable":"#purple.0"},color:{"":"#dark",selected:"#white","disabled | unavailable":"#dark.30"},outline:{"":"(1ow - 1bw) #purple-03.0",focused:"(1ow - 1bw) #purple-03"},shadow:{"":"0 0 0 1bw #purple-03.0 inset",focused:"0 0 0 1bw #purple-03 inset"},radius:!0,cursor:"pointer"}});function CalendarCell({state:s,selectedRange:j,date:et}){let tt=reactExports.useRef(null),{cellProps:rt,buttonProps:nt,isSelected:at,isPressed:it,isFocused:ot,isInvalid:st,isOutsideVisibleRange:lt,isDisabled:ct,isUnavailable:ut,formattedDate:dt}=$36a0ac60f04457c5$export$136073280381448e({date:et},s,tt);const ft=j?et.compare(j.start)>=0&&et.compare(j.end)<=0:at;return jsx(CalendarCellElement,{...rt,children:jsx(CalendarButtonElement,{...nt,ref:tt,hidden:lt,mods:{selected:ft,pressed:it,focused:ot,invalid:st,disabled:ct,unavailable:ut},children:dt})})}/**
|
|
1383
1383
|
* @license MIT
|
|
1384
1384
|
* author: Cube Dev Team
|
|
1385
|
-
* @cube-dev/ui-kit v0.
|
|
1385
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1386
1386
|
* Released under the MIT license.
|
|
1387
1387
|
*/const TableElement=tasty({as:"table",styles:{borderCollapse:"collapse"}});function CalendarGrid({state:s,...j}){let{locale:et}=$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{gridProps:tt,headerProps:rt,weekDays:nt}=$e3031d1f8c9d64eb$export$cb95147730a423f5(j,s),at=$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(s.visibleRange.start,et);return jsxs(TableElement,{...tt,children:[jsx("thead",{"data-element":"Head",...rt,children:jsx("tr",{"data-element":"HeadRow",children:nt.map((it,ot)=>jsx("th",{children:it},ot))})}),jsx("tbody",{"data-element":"Body",children:[...new Array(at).keys()].map(it=>jsx("tr",{"data-element":"Row",children:s.getDatesInWeek(it).map((ot,st)=>ot?jsx(CalendarCell,{state:s,date:ot,selectedRange:j.selectedRange},st):jsx("td",{},st))},it))})]})}/**
|
|
1388
1388
|
* @license MIT
|
|
1389
1389
|
* author: Cube Dev Team
|
|
1390
|
-
* @cube-dev/ui-kit v0.
|
|
1390
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1391
1391
|
* Released under the MIT license.
|
|
1392
1392
|
*/const CalendarElement=tasty({styles:{padding:"1x",gap:"1x"}}),CalendarHeaderElement=tasty({styles:{display:"flex",placeContent:"center space-between",placeItems:"center",gap:"1.5x"}});function Calendar(s,j){s=useProviderProps(s);let{locale:et}=$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),tt=$131cf43a05231e1e$export$6d095e787d2b5e1f({...s,locale:et,createCalendar:$64244302c3013299$export$dd0bbc9b26defe37}),rt=reactExports.useRef(null);reactExports.useImperativeHandle(j,()=>({...$98e5a8ae0e6415af$export$a5795cc979dfae80(rt),focus(){tt.setFocused(!0)}}));let{calendarProps:nt,prevButtonProps:at,nextButtonProps:it,title:ot}=$9942cad8a072a530$export$3ee915f8151bd4f1(s,tt);return jsxs(CalendarElement,{...nt,children:[jsxs(CalendarHeaderElement,{children:[jsx(Title$2,{level:6,preset:"h6",children:ot}),jsxs(Button.Group,{gap:".5x",children:[jsx(Button,{size:"small",...at,icon:jsx(LeftOutlined$1,{})}),jsx(Button,{size:"small",...it,icon:jsx(RightOutlined$1,{})})]})]}),jsx(CalendarGrid,{state:tt,selectedRange:s.selectedRange})]})}const _Calendar=reactExports.forwardRef(Calendar);/**
|
|
1393
1393
|
* @license MIT
|
|
1394
1394
|
* author: Cube Dev Team
|
|
1395
|
-
* @cube-dev/ui-kit v0.
|
|
1395
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1396
1396
|
* Released under the MIT license.
|
|
1397
1397
|
*/const DateInputElement=tasty({role:"presentation",styles:{display:"flex",flow:"row",placeItems:"center start"}});function DatePickerInput(s){let{isDisabled:j,isReadOnly:et,isRequired:tt,useLocale:rt}=s,nt=reactExports.useRef(null),{locale:at}=$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),it=$3c0fc76039f1c516$export$60e84778edff6d26({...s,locale:rt?at:"en-US",createCalendar:$64244302c3013299$export$dd0bbc9b26defe37});rt==null&&(it.segments=formatSegments(it.segments));const ot=$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithinChange:lt=>{var ct,ut;lt?(ct=s.onFocus)==null||ct.call(s):(ut=s.onBlur)==null||ut.call(s)}});let{fieldProps:st}=$16f0b7bb276bc17e$export$5591b0b878c1a989(s,it,nt);return jsx(DateInputElement,{ref:nt,...mergeProps(st,ot),children:it.segments.map((lt,ct)=>jsx(DatePickerSegment,{segment:lt,state:it,isDisabled:j,isReadOnly:et,isRequired:tt},ct))})}/**
|
|
1398
1398
|
* @license MIT
|
|
1399
1399
|
* author: Cube Dev Team
|
|
1400
|
-
* @cube-dev/ui-kit v0.
|
|
1400
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1401
1401
|
* Released under the MIT license.
|
|
1402
1402
|
*/const DatePickerButton=tasty(Button,{icon:jsx(CalendarOutlined$1,{}),styles:{radius:"1r right",border:"top right bottom",backgroundClip:"content-box"}});/**
|
|
1403
1403
|
* @license MIT
|
|
1404
1404
|
* author: Cube Dev Team
|
|
1405
|
-
* @cube-dev/ui-kit v0.
|
|
1405
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1406
1406
|
* Released under the MIT license.
|
|
1407
1407
|
*/const dateMessages={time:"Time",startTime:"Start time",endTime:"End time"};/**
|
|
1408
1408
|
* @license MIT
|
|
1409
1409
|
* author: Cube Dev Team
|
|
1410
|
-
* @cube-dev/ui-kit v0.
|
|
1410
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1411
1411
|
* Released under the MIT license.
|
|
1412
1412
|
*/const DatePickerElement=tasty(Space,{styles:{gap:0,outline:{"":"#purple-03.0",focused:"#purple-03"},radius:!0}});/**
|
|
1413
1413
|
* @license MIT
|
|
1414
1414
|
* author: Cube Dev Team
|
|
1415
|
-
* @cube-dev/ui-kit v0.
|
|
1415
|
+
* @cube-dev/ui-kit v0.31.2
|
|
1416
1416
|
* Released under the MIT license.
|
|
1417
1417
|
*/const DateRangeDash=tasty({"aria-hidden":"true","data-qa":"DateRangeDash",children:"––",styles:{padding:"0 .5x"}});function DateRangeSeparatedPicker(s,j){var Mt,Dt,At,Nt,kt,It,Tt,jt,Bt,qt;s=useProviderProps(s),s=useFormProps(s),s=useFieldProps(s,{defaultValidationTrigger:"onBlur"}),s=Object.assign({},DEFAULT_DATE_PROPS,s);let et=extractStyles(s,CONTAINER_STYLES),{size:tt,placeholderValue:rt,isDisabled:nt,validationState:at,useLocale:it,autoFocus:ot}=s,st=reactExports.useRef(null),lt=$93c38a5e28be6249$export$e50a61c1de9f574({...s}),ct=$ab5bf3f618090389$export$87194bb378cc3ac2({...s,onChange:null,value:(Mt=lt.value)==null?void 0:Mt.start}),ut=$ab5bf3f618090389$export$87194bb378cc3ac2({...s,onChange:null,value:(Dt=lt.value)==null?void 0:Dt.end}),dt=$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0,isTextInput:!0,autoFocus:ot}),ft=$f7dceffc5ad7768b$export$4e328f61c538687f({within:!1,isTextInput:!1,autoFocus:ot}),ht=$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0,isTextInput:!0,autoFocus:ot}),mt=$f7dceffc5ad7768b$export$4e328f61c538687f({within:!1,isTextInput:!1,autoFocus:ot}),vt=useFocusManagerRef(j),{groupProps:pt,labelProps:gt,startFieldProps:yt,endFieldProps:$t}=$887cac91b7cc8801$export$12fd5f0e9f4bb192(s,lt,st),xt=$6057a3d2a53a12fd$export$42df105a73306d51(s,ct,st),Ct=$6057a3d2a53a12fd$export$42df105a73306d51(s,ut,st),bt=rt,St=bt&&"hour"in bt?bt:void 0,_t=s.minValue&&"hour"in s.minValue?s.minValue:void 0,wt=s.maxValue&&"hour"in s.maxValue?s.maxValue:void 0,Rt=lt.granularity==="hour"||lt.granularity==="minute"||lt.granularity==="second"?lt.granularity:null,Pt=!!Rt;function Et(Lt,Ft){if(Ft==="start"){const Ut={...lt.value,start:Lt};Ut.start&&Ut.end&&Ut.end.compare(Ut.start)<0&&(Ut.end=Ut.start),lt.setValue(Ut),xt.calendarProps.onChange(Lt),ct.setOpen(!1)}else{const Ut={...lt.value,end:Lt};Ut.start&&Ut.end&&Ut.end.compare(Ut.start)<0&&(Ut.start=Ut.end),lt.setValue(Ut),Ct.calendarProps.onChange(Lt),ut.setOpen(!1)}}const Ot=jsxs(DatePickerElement,{ref:st,styles:s.wrapperStyles,children:[jsxs(DatePickerElement,{...dt.focusProps,mods:{focused:dt.isFocused},children:[jsx(_DateInputBase,{disableFocusRing:!0,isDisabled:nt,validationState:at,size:tt,styles:{radius:"left",border:"top left bottom"},children:jsx(DatePickerInput,{useLocale:it,...yt})}),jsxs(_DialogTrigger,{hideArrow:!0,type:"popover",mobileType:"tray",placement:"bottom right",targetRef:st,isOpen:ct.isOpen,shouldFlip:s.shouldFlip,onOpenChange:ct.setOpen,children:[jsx(DatePickerButton,{size:tt,...mergeProps(xt.buttonProps,ft.focusProps),isDisabled:nt}),jsxs(Dialog,{...xt.dialogProps,width:"max-content",children:[jsx(_Calendar,{...xt.calendarProps,defaultFocusedValue:((At=lt.value)==null?void 0:At.start)||((Nt=lt.value)==null?void 0:Nt.end)||void 0,selectedRange:(kt=lt.value)!=null&&kt.start&&((It=lt.value)!=null&&It.end)?lt.value:void 0,onChange:Lt=>Et(Lt,"start")}),Pt&&jsx(_TimeInput,{padding:"1x",label:dateMessages.time,value:ct.timeValue,placeholderValue:St,granularity:Rt,minValue:_t,maxValue:wt,hourCycle:s.hourCycle,hideTimeZone:s.hideTimeZone,onChange:ct.setTimeValue})]})]})]}),jsx(DateRangeDash,{}),jsxs(DatePickerElement,{...ht.focusProps,mods:{focused:ht.isFocused},children:[jsx(_DateInputBase,{disableFocusRing:!0,isDisabled:nt,validationState:at,size:tt,radius:"left",border:"top left bottom",children:jsx(DatePickerInput,{useLocale:it,...$t})}),jsxs(_DialogTrigger,{hideArrow:!0,type:"popover",mobileType:"tray",placement:"bottom right",targetRef:st,isOpen:ut.isOpen,shouldFlip:s.shouldFlip,onOpenChange:ut.setOpen,children:[jsx(DatePickerButton,{"aria-label":"Show calendar for the end date",size:tt,...mergeProps(mt.focusProps,Ct.buttonProps),isDisabled:nt}),jsxs(Dialog,{...Ct.dialogProps,width:"max-content",children:[jsx(_Calendar,{...Ct.calendarProps,defaultFocusedValue:((Tt=lt.value)==null?void 0:Tt.end)||((jt=lt.value)==null?void 0:jt.start)||void 0,selectedRange:(Bt=lt.value)!=null&&Bt.start&&((qt=lt.value)!=null&&qt.end)?lt.value:void 0,onChange:Lt=>{Et(Lt,"end")}}),Pt&&jsx(_TimeInput,{padding:"1x",label:dateMessages.time,value:ut.timeValue,placeholderValue:St,granularity:Rt,minValue:_t,maxValue:wt,hourCycle:s.hourCycle,hideTimeZone:s.hideTimeZone,onChange:ut.setTimeValue})]})]})]})]});return wrapWithField(Ot,vt,{...s,styles:et,labelProps:mergeProps(s.labelProps,gt),fieldProps:pt})}const _DateRangeSeparatedPicker=reactExports.forwardRef(DateRangeSeparatedPicker),TYPES={error:{border:"#FFCCC7",background:"rgb(255, 100, 109, 0.05)",color:"#EF404A"},warning:{border:"#FFE58F",background:"#FFFBE6"},info:{border:"#91D5FF",background:"#E6F7FF"},success:{border:"#B7EB8F",background:"#F6FFED"}},Alert=styled(Alert$3)`
|
|
1418
1418
|
&& {
|
|
@@ -2558,7 +2558,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
2558
2558
|
& .ant-tabs-extra-content {
|
|
2559
2559
|
margin-left: 32px;
|
|
2560
2560
|
}
|
|
2561
|
-
`;function QueryTabs({query:s,children:j,sidebar:et=null,onTabChange:tt}){const{setChartRendererReady:rt,setQueryStatus:nt,setQueryError:at,setResultSetExists:it,setQueryLoading:ot,setBuildInProgress:st,setSlowQuery:lt,setSlowQueryFromCache:ct,setQueryRequestId:ut}=useChartRendererStateMethods(),[dt,ft]=reactExports.useState(),[ht,mt]=reactExports.useState(""),[vt,pt]=reactExports.useState(!1),[gt,yt]=useLocalStorage("queryTabs",{activeId:"1",tabs:[{id:"1",query:s||{}}]}),[$t,xt]=reactExports.useState({});reactExports.useEffect(()=>{window.__cubejsPlayground={...window.__cubejsPlayground,forQuery(Et){return{onChartRendererReady(){rt(Et,!0)},onQueryStart:()=>{ot(Et,!0)},onQueryLoad:({resultSet:Ot,error:Mt})=>{var At;let Dt;if(Ot){const{loadResponse:Nt}=Ot.serialize(),{requestId:kt,external:It,dbType:Tt,extDbType:jt,usedPreAggregations:Bt={}}=Nt.results[0]||{};kt&&ut(Et,kt),ct(Et,!!Nt.slowQuery),Nt.slowQuery&<(Et,!1),it(Et,!0),Dt=Object.keys(Bt).length>0,event(Dt?"load_request_success_aggregated:frontend":"load_request_success:frontend",{dbType:Tt,...Dt?{external:It}:null,...It?{extDbType:jt}:null});const qt=Ot.serialize(),[Lt]=qt.loadResponse.results,Ft=(At=Object.values(Lt.usedPreAggregations||{})[0])==null?void 0:At.type,Ut=Lt.transformedQuery;nt(Et,{resultSet:Ot,error:Mt,isAggregated:Dt,preAggregationType:Ft,transformedQuery:Ut,extDbType:jt,external:It})}Mt&&(nt(Et,null),at(Et,Mt)),(Ot||Mt)&&ot(Et,!1)},onQueryProgress:Ot=>{var Dt,At;st(Et,!!((Dt=Ot==null?void 0:Ot.stage)!=null&&Dt.stage.includes("pre-aggregation")));const Mt=((At=Ot==null?void 0:Ot.stage)==null?void 0:At.stage.includes("Executing query"))&&(Ot.stage.timeElapsed||0)>=5e3;lt(Et,Mt),Mt&&ct(Et,!1)},onQueryDrilldown:(Ot,Mt)=>{xt({query:Ot,pivotConfig:Mt})}}}}},[]),reactExports.useEffect(()=>{if(vt)return;const Et=gt.tabs.find(Ot=>Ot.id===gt.activeId);if(s&&!equals(validateQuery(Et==null?void 0:Et.query),validateQuery(s))){const Ot=St();yt({activeId:Ot,tabs:[...gt.tabs,{id:Ot,query:s}]})}pt(!0)},[vt]),reactExports.useEffect(()=>{if(vt&>.activeId){const Et=gt.tabs.find(Ot=>Ot.id===gt.activeId);Et&&(tt==null||tt(Et))}},[vt,gt.activeId]);const{activeId:Ct,tabs:bt}=gt;function St(){const Et=bt.map(({id:Ot})=>Ot);for(let Ot=1;Ot<=bt.length+1;Ot++)if(!Et.includes(Ot.toString()))return Ot.toString();return(bt.length+1).toString()}function _t(Et){yt({...gt,tabs:bt.map(Ot=>Ct===Ot.id?{...Ot,...Et}:Ot)})}function wt(Et,Ot){yt({...gt,tabs:bt.map(Mt=>Et===Mt.id?{...Mt,name:Ot}:Mt)})}function Rt(Et){yt({activeId:Et,tabs:bt})}function Pt(){xt({})}return!vt||!gt.activeId?null:jsx(StyledTabs,{"data-testid":"query-tabs",activeKey:Ct,type:"editable-card",tabBarExtraContent:{right:et},hideAdd:!1,onChange:Rt,onEdit:Et=>{if(typeof Et=="string"){let Ot=Number.MAX_VALUE;const Mt=bt.filter(({id:Dt},At)=>(Dt===Et&&(Ot=At),Dt!==Et));yt({activeId:Mt[Math.min(Ot,Mt.length-1)].id,tabs:Mt})}else{const Ot=St();yt({activeId:Ot,tabs:[...bt,{id:Ot,query:{}}]})}},children:bt.map(Et=>jsxs(TabPane,{"data-testid":`query-tab-${Et.id}`,closable:bt.length>1,tab:dt===Et.id?jsx(Input$2,{autoFocus:!0,size:"small",value:ht,onKeyDown:Ot=>{Ot.key==="Enter"&&(ft(void 0),ht.trim()&&(wt(Et.id,ht.trim()),mt(""))),Ot.stopPropagation()},onChange:Ot=>mt(Ot.target.value),onBlur:()=>{ht.trim()&&(wt(Et.id,ht.trim()),mt("")),ft(void 0)}}):jsx("span",{style:{userSelect:"none"},onDoubleClick:()=>{mt(Et.name||`Query ${Et.id}`),ft(Et.id)},children:Et.name?Et.name:`Query ${Et.id}`}),children:[j(Et,_t),$t.query?jsx(DrilldownModal,{query:$t.query,pivotConfig:$t.pivotConfig,onClose:Pt}):null]},Et.id))})}var define={},lzString={exports:{}};lzString.exports;(function(s){var j=function(){var et=String.fromCharCode,tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",rt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",nt={};function at(ot,st){if(!nt[ot]){nt[ot]={};for(var lt=0;lt<ot.length;lt++)nt[ot][ot.charAt(lt)]=lt}return nt[ot][st]}var it={compressToBase64:function(ot){if(ot==null)return"";var st=it._compress(ot,6,function(lt){return tt.charAt(lt)});switch(st.length%4){default:case 0:return st;case 1:return st+"===";case 2:return st+"==";case 3:return st+"="}},decompressFromBase64:function(ot){return ot==null?"":ot==""?null:it._decompress(ot.length,32,function(st){return at(tt,ot.charAt(st))})},compressToUTF16:function(ot){return ot==null?"":it._compress(ot,15,function(st){return et(st+32)})+" "},decompressFromUTF16:function(ot){return ot==null?"":ot==""?null:it._decompress(ot.length,16384,function(st){return ot.charCodeAt(st)-32})},compressToUint8Array:function(ot){for(var st=it.compress(ot),lt=new Uint8Array(st.length*2),ct=0,ut=st.length;ct<ut;ct++){var dt=st.charCodeAt(ct);lt[ct*2]=dt>>>8,lt[ct*2+1]=dt%256}return lt},decompressFromUint8Array:function(ot){if(ot==null)return it.decompress(ot);for(var st=new Array(ot.length/2),lt=0,ct=st.length;lt<ct;lt++)st[lt]=ot[lt*2]*256+ot[lt*2+1];var ut=[];return st.forEach(function(dt){ut.push(et(dt))}),it.decompress(ut.join(""))},compressToEncodedURIComponent:function(ot){return ot==null?"":it._compress(ot,6,function(st){return rt.charAt(st)})},decompressFromEncodedURIComponent:function(ot){return ot==null?"":ot==""?null:(ot=ot.replace(/ /g,"+"),it._decompress(ot.length,32,function(st){return at(rt,ot.charAt(st))}))},compress:function(ot){return it._compress(ot,16,function(st){return et(st)})},_compress:function(ot,st,lt){if(ot==null)return"";var ct,ut,dt={},ft={},ht="",mt="",vt="",pt=2,gt=3,yt=2,$t=[],xt=0,Ct=0,bt;for(bt=0;bt<ot.length;bt+=1)if(ht=ot.charAt(bt),Object.prototype.hasOwnProperty.call(dt,ht)||(dt[ht]=gt++,ft[ht]=!0),mt=vt+ht,Object.prototype.hasOwnProperty.call(dt,mt))vt=mt;else{if(Object.prototype.hasOwnProperty.call(ft,vt)){if(vt.charCodeAt(0)<256){for(ct=0;ct<yt;ct++)xt=xt<<1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++;for(ut=vt.charCodeAt(0),ct=0;ct<8;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1}else{for(ut=1,ct=0;ct<yt;ct++)xt=xt<<1|ut,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=0;for(ut=vt.charCodeAt(0),ct=0;ct<16;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1}pt--,pt==0&&(pt=Math.pow(2,yt),yt++),delete ft[vt]}else for(ut=dt[vt],ct=0;ct<yt;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1;pt--,pt==0&&(pt=Math.pow(2,yt),yt++),dt[mt]=gt++,vt=String(ht)}if(vt!==""){if(Object.prototype.hasOwnProperty.call(ft,vt)){if(vt.charCodeAt(0)<256){for(ct=0;ct<yt;ct++)xt=xt<<1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++;for(ut=vt.charCodeAt(0),ct=0;ct<8;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1}else{for(ut=1,ct=0;ct<yt;ct++)xt=xt<<1|ut,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=0;for(ut=vt.charCodeAt(0),ct=0;ct<16;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1}pt--,pt==0&&(pt=Math.pow(2,yt),yt++),delete ft[vt]}else for(ut=dt[vt],ct=0;ct<yt;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1;pt--,pt==0&&(pt=Math.pow(2,yt),yt++)}for(ut=2,ct=0;ct<yt;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1;for(;;)if(xt=xt<<1,Ct==st-1){$t.push(lt(xt));break}else Ct++;return $t.join("")},decompress:function(ot){return ot==null?"":ot==""?null:it._decompress(ot.length,32768,function(st){return ot.charCodeAt(st)})},_decompress:function(ot,st,lt){var ct=[],ut=4,dt=4,ft=3,ht="",mt=[],vt,pt,gt,yt,$t,xt,Ct,bt={val:lt(0),position:st,index:1};for(vt=0;vt<3;vt+=1)ct[vt]=vt;for(gt=0,$t=Math.pow(2,2),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;switch(gt){case 0:for(gt=0,$t=Math.pow(2,8),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;Ct=et(gt);break;case 1:for(gt=0,$t=Math.pow(2,16),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;Ct=et(gt);break;case 2:return""}for(ct[3]=Ct,pt=Ct,mt.push(Ct);;){if(bt.index>ot)return"";for(gt=0,$t=Math.pow(2,ft),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;switch(Ct=gt){case 0:for(gt=0,$t=Math.pow(2,8),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;ct[dt++]=et(gt),Ct=dt-1,ut--;break;case 1:for(gt=0,$t=Math.pow(2,16),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;ct[dt++]=et(gt),Ct=dt-1,ut--;break;case 2:return mt.join("")}if(ut==0&&(ut=Math.pow(2,ft),ft++),ct[Ct])ht=ct[Ct];else if(Ct===dt)ht=pt+pt.charAt(0);else return null;mt.push(ht),ct[dt++]=pt+ht.charAt(0),ut--,pt=ht,ut==0&&(ut=Math.pow(2,ft),ft++)}}};return it}();s!=null&&(s.exports=j)})(lzString);var lzStringExports=lzString.exports;Object.defineProperty(define,"__esModule",{value:!0});var getParameters_1=define.getParameters=void 0,LZString=lzStringExports;function compress(s){return LZString.compressToBase64(s).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function getParameters(s){return compress(JSON.stringify(s))}getParameters_1=define.getParameters=getParameters;function handleChunkLoadError(s){if(!s.message.includes("Failed to fetch dynamically"))throw s;const j=Number(localStorage.getItem("lastLocationReload")||"0");Date.now()-Number(j)>=6e4&&(window.location.reload(),localStorage.setItem("lastLocationReload",Date.now().toString()))}function loadable(s,j){const et=reactExports.lazy(async()=>{try{return await s()}catch(tt){handleChunkLoadError(tt)}return{default:()=>reactExports.createElement("div",null,null)}});return et.loaded=!1,et.load=async(tt,rt)=>{if(et.loaded){rt==null||rt();return}tt==null||tt();try{await s()}catch(nt){handleChunkLoadError(nt)}tt==null||tt(),et.loaded=!0,rt==null||rt()},j&&setTimeout(()=>{et.loaded||et.load()},j),et}const GraphQLIcon=()=>jsx(Icon$1,{component:()=>jsx("svg",{version:"1.1",height:"1em",width:"1em",x:"0px",y:"0px",viewBox:"0 0 400 400",enableBackground:"new 0 0 400 400",fill:"currentColor",children:jsxs("g",{children:[jsx("rect",{x:"122",y:"-0.4",transform:"matrix(-0.866 -0.5 0.5 -0.866 163.3196 363.3136)",width:"16.6",height:"320.3"}),jsx("rect",{x:"39.8",y:"272.2",width:"320.3",height:"16.6"}),jsx("rect",{x:"37.9",y:"312.2",transform:"matrix(-0.866 -0.5 0.5 -0.866 83.0693 663.3409)",width:"185",height:"16.6"}),jsx("rect",{x:"177.1",y:"71.1",transform:"matrix(-0.866 -0.5 0.5 -0.866 463.3409 283.0693)",width:"185",height:"16.6"}),jsx("rect",{x:"122.1",y:"-13",transform:"matrix(-0.5 -0.866 0.866 -0.5 126.7903 232.1221)",width:"16.6",height:"185"}),jsx("rect",{x:"109.6",y:"151.6",transform:"matrix(-0.5 -0.866 0.866 -0.5 266.0828 473.3766)",width:"320.3",height:"16.6"}),jsx("rect",{x:"52.5",y:"107.5",width:"16.6",height:"185"}),jsx("rect",{x:"330.9",y:"107.5",width:"16.6",height:"185"}),jsx("rect",{x:"262.4",y:"240.1",transform:"matrix(-0.5 -0.866 0.866 -0.5 126.7953 714.2875)",width:"14.5",height:"160.9"}),jsx("path",{d:"M369.5,297.9c-9.6,16.7-31,22.4-47.7,12.8c-16.7-9.6-22.4-31-12.8-47.7c9.6-16.7,31-22.4,47.7-12.8 C373.5,259.9,379.2,281.2,369.5,297.9"}),jsx("path",{d:"M90.9,137c-9.6,16.7-31,22.4-47.7,12.8c-16.7-9.6-22.4-31-12.8-47.7c9.6-16.7,31-22.4,47.7-12.8 C94.8,99,100.5,120.3,90.9,137"}),jsx("path",{d:"M30.5,297.9c-9.6-16.7-3.9-38,12.8-47.7c16.7-9.6,38-3.9,47.7,12.8c9.6,16.7,3.9,38-12.8,47.7 C61.4,320.3,40.1,314.6,30.5,297.9"}),jsx("path",{d:"M309.1,137c-9.6-16.7-3.9-38,12.8-47.7c16.7-9.6,38-3.9,47.7,12.8c9.6,16.7,3.9,38-12.8,47.7 C340.1,159.4,318.7,153.7,309.1,137"}),jsx("path",{d:"M200,395.8c-19.3,0-34.9-15.6-34.9-34.9c0-19.3,15.6-34.9,34.9-34.9c19.3,0,34.9,15.6,34.9,34.9 C234.9,380.1,219.3,395.8,200,395.8"}),jsx("path",{d:"M200,74c-19.3,0-34.9-15.6-34.9-34.9c0-19.3,15.6-34.9,34.9-34.9c19.3,0,34.9,15.6,34.9,34.9 C234.9,58.4,219.3,74,200,74"})]})})}),GraphiQLSandbox=loadable(()=>__vitePreload(()=>import("./GraphiQLSandbox-7cd5c7a2.js").then(s=>s.cz),["assets/GraphiQLSandbox-7cd5c7a2.js","assets/GraphiQLSandbox-8134e867.css"])),SqlQueryTab=loadable(()=>__vitePreload(()=>import("./SqlQueryTab-b38898ba.js"),["assets/SqlQueryTab-b38898ba.js","assets/sqlFormatter-f7d64f52.js"])),CachePane=loadable(()=>__vitePreload(()=>import("./CachePane-38601448.js"),["assets/CachePane-38601448.js","assets/sqlFormatter-f7d64f52.js"])),frameworkToTemplate={react:"create-react-app",angular:"angular-cli",vue:"vue-cli"},StyledCard$1=styled(StyledCard$2)`
|
|
2561
|
+
`;function QueryTabs({query:s,children:j,sidebar:et=null,onTabChange:tt}){const{setChartRendererReady:rt,setQueryStatus:nt,setQueryError:at,setResultSetExists:it,setQueryLoading:ot,setBuildInProgress:st,setSlowQuery:lt,setSlowQueryFromCache:ct,setQueryRequestId:ut}=useChartRendererStateMethods(),[dt,ft]=reactExports.useState(),[ht,mt]=reactExports.useState(""),[vt,pt]=reactExports.useState(!1),[gt,yt]=useLocalStorage("queryTabs",{activeId:"1",tabs:[{id:"1",query:s||{}}]}),[$t,xt]=reactExports.useState({});reactExports.useEffect(()=>{window.__cubejsPlayground={...window.__cubejsPlayground,forQuery(Et){return{onChartRendererReady(){rt(Et,!0)},onQueryStart:()=>{ot(Et,!0)},onQueryLoad:({resultSet:Ot,error:Mt})=>{var At;let Dt;if(Ot){const{loadResponse:Nt}=Ot.serialize(),{requestId:kt,external:It,dbType:Tt,extDbType:jt,usedPreAggregations:Bt={}}=Nt.results[0]||{};kt&&ut(Et,kt),ct(Et,!!Nt.slowQuery),Nt.slowQuery&<(Et,!1),it(Et,!0),Dt=Object.keys(Bt).length>0,event(Dt?"load_request_success_aggregated:frontend":"load_request_success:frontend",{dbType:Tt,...Dt?{external:It}:null,...It?{extDbType:jt}:null});const qt=Ot.serialize(),[Lt]=qt.loadResponse.results,Ft=(At=Object.values(Lt.usedPreAggregations||{})[0])==null?void 0:At.type,Ut=Lt.transformedQuery;nt(Et,{resultSet:Ot,error:Mt,isAggregated:Dt,preAggregationType:Ft,transformedQuery:Ut,extDbType:jt,external:It})}Mt&&(nt(Et,null),at(Et,Mt)),(Ot||Mt)&&ot(Et,!1)},onQueryProgress:Ot=>{var Dt,At;st(Et,!!((Dt=Ot==null?void 0:Ot.stage)!=null&&Dt.stage.includes("pre-aggregation")));const Mt=((At=Ot==null?void 0:Ot.stage)==null?void 0:At.stage.includes("Executing query"))&&(Ot.stage.timeElapsed||0)>=5e3;lt(Et,Mt),Mt&&ct(Et,!1)},onQueryDrilldown:(Ot,Mt)=>{xt({query:Ot,pivotConfig:Mt})}}}}},[]),reactExports.useEffect(()=>{if(vt)return;const Et=gt.tabs.find(Ot=>Ot.id===gt.activeId);if(s&&!equals(validateQuery(Et==null?void 0:Et.query),validateQuery(s))){const Ot=St();yt({activeId:Ot,tabs:[...gt.tabs,{id:Ot,query:s}]})}pt(!0)},[vt]),reactExports.useEffect(()=>{if(vt&>.activeId){const Et=gt.tabs.find(Ot=>Ot.id===gt.activeId);Et&&(tt==null||tt(Et))}},[vt,gt.activeId]);const{activeId:Ct,tabs:bt}=gt;function St(){const Et=bt.map(({id:Ot})=>Ot);for(let Ot=1;Ot<=bt.length+1;Ot++)if(!Et.includes(Ot.toString()))return Ot.toString();return(bt.length+1).toString()}function _t(Et){yt({...gt,tabs:bt.map(Ot=>Ct===Ot.id?{...Ot,...Et}:Ot)})}function wt(Et,Ot){yt({...gt,tabs:bt.map(Mt=>Et===Mt.id?{...Mt,name:Ot}:Mt)})}function Rt(Et){yt({activeId:Et,tabs:bt})}function Pt(){xt({})}return!vt||!gt.activeId?null:jsx(StyledTabs,{"data-testid":"query-tabs",activeKey:Ct,type:"editable-card",tabBarExtraContent:{right:et},hideAdd:!1,onChange:Rt,onEdit:Et=>{if(typeof Et=="string"){let Ot=Number.MAX_VALUE;const Mt=bt.filter(({id:Dt},At)=>(Dt===Et&&(Ot=At),Dt!==Et));yt({activeId:Mt[Math.min(Ot,Mt.length-1)].id,tabs:Mt})}else{const Ot=St();yt({activeId:Ot,tabs:[...bt,{id:Ot,query:{}}]})}},children:bt.map(Et=>jsxs(TabPane,{"data-testid":`query-tab-${Et.id}`,closable:bt.length>1,tab:dt===Et.id?jsx(Input$2,{autoFocus:!0,size:"small",value:ht,onKeyDown:Ot=>{Ot.key==="Enter"&&(ft(void 0),ht.trim()&&(wt(Et.id,ht.trim()),mt(""))),Ot.stopPropagation()},onChange:Ot=>mt(Ot.target.value),onBlur:()=>{ht.trim()&&(wt(Et.id,ht.trim()),mt("")),ft(void 0)}}):jsx("span",{style:{userSelect:"none"},onDoubleClick:()=>{mt(Et.name||`Query ${Et.id}`),ft(Et.id)},children:Et.name?Et.name:`Query ${Et.id}`}),children:[j(Et,_t),$t.query?jsx(DrilldownModal,{query:$t.query,pivotConfig:$t.pivotConfig,onClose:Pt}):null]},Et.id))})}var define={},lzString={exports:{}};lzString.exports;(function(s){var j=function(){var et=String.fromCharCode,tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",rt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",nt={};function at(ot,st){if(!nt[ot]){nt[ot]={};for(var lt=0;lt<ot.length;lt++)nt[ot][ot.charAt(lt)]=lt}return nt[ot][st]}var it={compressToBase64:function(ot){if(ot==null)return"";var st=it._compress(ot,6,function(lt){return tt.charAt(lt)});switch(st.length%4){default:case 0:return st;case 1:return st+"===";case 2:return st+"==";case 3:return st+"="}},decompressFromBase64:function(ot){return ot==null?"":ot==""?null:it._decompress(ot.length,32,function(st){return at(tt,ot.charAt(st))})},compressToUTF16:function(ot){return ot==null?"":it._compress(ot,15,function(st){return et(st+32)})+" "},decompressFromUTF16:function(ot){return ot==null?"":ot==""?null:it._decompress(ot.length,16384,function(st){return ot.charCodeAt(st)-32})},compressToUint8Array:function(ot){for(var st=it.compress(ot),lt=new Uint8Array(st.length*2),ct=0,ut=st.length;ct<ut;ct++){var dt=st.charCodeAt(ct);lt[ct*2]=dt>>>8,lt[ct*2+1]=dt%256}return lt},decompressFromUint8Array:function(ot){if(ot==null)return it.decompress(ot);for(var st=new Array(ot.length/2),lt=0,ct=st.length;lt<ct;lt++)st[lt]=ot[lt*2]*256+ot[lt*2+1];var ut=[];return st.forEach(function(dt){ut.push(et(dt))}),it.decompress(ut.join(""))},compressToEncodedURIComponent:function(ot){return ot==null?"":it._compress(ot,6,function(st){return rt.charAt(st)})},decompressFromEncodedURIComponent:function(ot){return ot==null?"":ot==""?null:(ot=ot.replace(/ /g,"+"),it._decompress(ot.length,32,function(st){return at(rt,ot.charAt(st))}))},compress:function(ot){return it._compress(ot,16,function(st){return et(st)})},_compress:function(ot,st,lt){if(ot==null)return"";var ct,ut,dt={},ft={},ht="",mt="",vt="",pt=2,gt=3,yt=2,$t=[],xt=0,Ct=0,bt;for(bt=0;bt<ot.length;bt+=1)if(ht=ot.charAt(bt),Object.prototype.hasOwnProperty.call(dt,ht)||(dt[ht]=gt++,ft[ht]=!0),mt=vt+ht,Object.prototype.hasOwnProperty.call(dt,mt))vt=mt;else{if(Object.prototype.hasOwnProperty.call(ft,vt)){if(vt.charCodeAt(0)<256){for(ct=0;ct<yt;ct++)xt=xt<<1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++;for(ut=vt.charCodeAt(0),ct=0;ct<8;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1}else{for(ut=1,ct=0;ct<yt;ct++)xt=xt<<1|ut,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=0;for(ut=vt.charCodeAt(0),ct=0;ct<16;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1}pt--,pt==0&&(pt=Math.pow(2,yt),yt++),delete ft[vt]}else for(ut=dt[vt],ct=0;ct<yt;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1;pt--,pt==0&&(pt=Math.pow(2,yt),yt++),dt[mt]=gt++,vt=String(ht)}if(vt!==""){if(Object.prototype.hasOwnProperty.call(ft,vt)){if(vt.charCodeAt(0)<256){for(ct=0;ct<yt;ct++)xt=xt<<1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++;for(ut=vt.charCodeAt(0),ct=0;ct<8;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1}else{for(ut=1,ct=0;ct<yt;ct++)xt=xt<<1|ut,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=0;for(ut=vt.charCodeAt(0),ct=0;ct<16;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1}pt--,pt==0&&(pt=Math.pow(2,yt),yt++),delete ft[vt]}else for(ut=dt[vt],ct=0;ct<yt;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1;pt--,pt==0&&(pt=Math.pow(2,yt),yt++)}for(ut=2,ct=0;ct<yt;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1;for(;;)if(xt=xt<<1,Ct==st-1){$t.push(lt(xt));break}else Ct++;return $t.join("")},decompress:function(ot){return ot==null?"":ot==""?null:it._decompress(ot.length,32768,function(st){return ot.charCodeAt(st)})},_decompress:function(ot,st,lt){var ct=[],ut=4,dt=4,ft=3,ht="",mt=[],vt,pt,gt,yt,$t,xt,Ct,bt={val:lt(0),position:st,index:1};for(vt=0;vt<3;vt+=1)ct[vt]=vt;for(gt=0,$t=Math.pow(2,2),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;switch(gt){case 0:for(gt=0,$t=Math.pow(2,8),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;Ct=et(gt);break;case 1:for(gt=0,$t=Math.pow(2,16),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;Ct=et(gt);break;case 2:return""}for(ct[3]=Ct,pt=Ct,mt.push(Ct);;){if(bt.index>ot)return"";for(gt=0,$t=Math.pow(2,ft),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;switch(Ct=gt){case 0:for(gt=0,$t=Math.pow(2,8),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;ct[dt++]=et(gt),Ct=dt-1,ut--;break;case 1:for(gt=0,$t=Math.pow(2,16),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;ct[dt++]=et(gt),Ct=dt-1,ut--;break;case 2:return mt.join("")}if(ut==0&&(ut=Math.pow(2,ft),ft++),ct[Ct])ht=ct[Ct];else if(Ct===dt)ht=pt+pt.charAt(0);else return null;mt.push(ht),ct[dt++]=pt+ht.charAt(0),ut--,pt=ht,ut==0&&(ut=Math.pow(2,ft),ft++)}}};return it}();s!=null&&(s.exports=j)})(lzString);var lzStringExports=lzString.exports;Object.defineProperty(define,"__esModule",{value:!0});var getParameters_1=define.getParameters=void 0,LZString=lzStringExports;function compress(s){return LZString.compressToBase64(s).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function getParameters(s){return compress(JSON.stringify(s))}getParameters_1=define.getParameters=getParameters;function handleChunkLoadError(s){if(!s.message.includes("Failed to fetch dynamically"))throw s;const j=Number(localStorage.getItem("lastLocationReload")||"0");Date.now()-Number(j)>=6e4&&(window.location.reload(),localStorage.setItem("lastLocationReload",Date.now().toString()))}function loadable(s,j){const et=reactExports.lazy(async()=>{try{return await s()}catch(tt){handleChunkLoadError(tt)}return{default:()=>reactExports.createElement("div",null,null)}});return et.loaded=!1,et.load=async(tt,rt)=>{if(et.loaded){rt==null||rt();return}tt==null||tt();try{await s()}catch(nt){handleChunkLoadError(nt)}tt==null||tt(),et.loaded=!0,rt==null||rt()},j&&setTimeout(()=>{et.loaded||et.load()},j),et}const GraphQLIcon=()=>jsx(Icon$1,{component:()=>jsx("svg",{version:"1.1",height:"1em",width:"1em",x:"0px",y:"0px",viewBox:"0 0 400 400",enableBackground:"new 0 0 400 400",fill:"currentColor",children:jsxs("g",{children:[jsx("rect",{x:"122",y:"-0.4",transform:"matrix(-0.866 -0.5 0.5 -0.866 163.3196 363.3136)",width:"16.6",height:"320.3"}),jsx("rect",{x:"39.8",y:"272.2",width:"320.3",height:"16.6"}),jsx("rect",{x:"37.9",y:"312.2",transform:"matrix(-0.866 -0.5 0.5 -0.866 83.0693 663.3409)",width:"185",height:"16.6"}),jsx("rect",{x:"177.1",y:"71.1",transform:"matrix(-0.866 -0.5 0.5 -0.866 463.3409 283.0693)",width:"185",height:"16.6"}),jsx("rect",{x:"122.1",y:"-13",transform:"matrix(-0.5 -0.866 0.866 -0.5 126.7903 232.1221)",width:"16.6",height:"185"}),jsx("rect",{x:"109.6",y:"151.6",transform:"matrix(-0.5 -0.866 0.866 -0.5 266.0828 473.3766)",width:"320.3",height:"16.6"}),jsx("rect",{x:"52.5",y:"107.5",width:"16.6",height:"185"}),jsx("rect",{x:"330.9",y:"107.5",width:"16.6",height:"185"}),jsx("rect",{x:"262.4",y:"240.1",transform:"matrix(-0.5 -0.866 0.866 -0.5 126.7953 714.2875)",width:"14.5",height:"160.9"}),jsx("path",{d:"M369.5,297.9c-9.6,16.7-31,22.4-47.7,12.8c-16.7-9.6-22.4-31-12.8-47.7c9.6-16.7,31-22.4,47.7-12.8 C373.5,259.9,379.2,281.2,369.5,297.9"}),jsx("path",{d:"M90.9,137c-9.6,16.7-31,22.4-47.7,12.8c-16.7-9.6-22.4-31-12.8-47.7c9.6-16.7,31-22.4,47.7-12.8 C94.8,99,100.5,120.3,90.9,137"}),jsx("path",{d:"M30.5,297.9c-9.6-16.7-3.9-38,12.8-47.7c16.7-9.6,38-3.9,47.7,12.8c9.6,16.7,3.9,38-12.8,47.7 C61.4,320.3,40.1,314.6,30.5,297.9"}),jsx("path",{d:"M309.1,137c-9.6-16.7-3.9-38,12.8-47.7c16.7-9.6,38-3.9,47.7,12.8c9.6,16.7,3.9,38-12.8,47.7 C340.1,159.4,318.7,153.7,309.1,137"}),jsx("path",{d:"M200,395.8c-19.3,0-34.9-15.6-34.9-34.9c0-19.3,15.6-34.9,34.9-34.9c19.3,0,34.9,15.6,34.9,34.9 C234.9,380.1,219.3,395.8,200,395.8"}),jsx("path",{d:"M200,74c-19.3,0-34.9-15.6-34.9-34.9c0-19.3,15.6-34.9,34.9-34.9c19.3,0,34.9,15.6,34.9,34.9 C234.9,58.4,219.3,74,200,74"})]})})}),GraphiQLSandbox=loadable(()=>__vitePreload(()=>import("./GraphiQLSandbox-3f652d13.js").then(s=>s.cz),["assets/GraphiQLSandbox-3f652d13.js","assets/GraphiQLSandbox-8134e867.css"])),SqlQueryTab=loadable(()=>__vitePreload(()=>import("./SqlQueryTab-a59c6cc6.js"),["assets/SqlQueryTab-a59c6cc6.js","assets/sqlFormatter-f7d64f52.js"])),CachePane=loadable(()=>__vitePreload(()=>import("./CachePane-3f7fb11b.js"),["assets/CachePane-3f7fb11b.js","assets/sqlFormatter-f7d64f52.js"])),frameworkToTemplate={react:"create-react-app",angular:"angular-cli",vue:"vue-cli"},StyledCard$1=styled(StyledCard$2)`
|
|
2562
2562
|
min-height: 420px;
|
|
2563
2563
|
|
|
2564
2564
|
.ant-card-head {
|