xmlui 0.9.82 → 0.9.83
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/dist/lib/{index-z40PVcrw.mjs → index-aMRikNoc.mjs} +34 -16
- package/dist/lib/{initMock-BPsXM5rg.mjs → initMock-CYGUM37_.mjs} +1 -1
- package/dist/lib/xmlui.mjs +1 -1
- package/dist/metadata/{collectedComponentMetadata-DMqRnWLT.mjs → collectedComponentMetadata-BD1Fa8Cz.mjs} +34 -16
- package/dist/metadata/{initMock-qDOHn1cO.mjs → initMock-CzVkUblk.mjs} +1 -1
- package/dist/metadata/xmlui-metadata.mjs +1 -1
- package/dist/metadata/xmlui-metadata.umd.js +3 -3
- package/dist/scripts/package.json +1 -1
- package/dist/scripts/src/components/Bookmark/Bookmark.js +5 -0
- package/dist/scripts/src/components/Bookmark/BookmarkNative.js +11 -1
- package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +3 -1
- package/dist/scripts/src/components-core/rendering/AppContent.js +8 -3
- package/dist/standalone/xmlui-standalone.umd.js +8 -8
- package/package.json +1 -1
|
@@ -69,7 +69,7 @@ Error generating stack: `+U.message+`
|
|
|
69
69
|
`+e.slice(o,i),o=i+1),a=l;return s+=`
|
|
70
70
|
`,e.length-o>t&&a>o?s+=e.slice(o,a)+`
|
|
71
71
|
`+e.slice(a+1):s+=e.slice(o),s.slice(1)}function OIe(e){for(var t="",r=0,n,o=0;o<e.length;r>=65536?o+=2:o++)r=Dx(e,o),n=Di[r],!n&&$x(r)?(t+=e[o],r>=65536&&(t+=e[o+1])):t+=n||yIe(r);return t}function IIe(e,t,r){var n="",o=e.tag,i,a,l;for(i=0,a=r.length;i<a;i+=1)l=r[i],e.replacer&&(l=e.replacer.call(r,String(i),l)),(sd(e,t,l,!1,!1)||typeof l>"u"&&sd(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=o,e.dump="["+n+"]"}function jU(e,t,r,n){var o="",i=e.tag,a,l,s;for(a=0,l=r.length;a<l;a+=1)s=r[a],e.replacer&&(s=e.replacer.call(r,String(a),s)),(sd(e,t+1,s,!0,!0,!1,!0)||typeof s>"u"&&sd(e,t+1,null,!0,!0,!1,!0))&&((!n||o!=="")&&(o+=eR(e,t)),e.dump&&Hx===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=i,e.dump=o||"[]"}function RIe(e,t,r){var n="",o=e.tag,i=Object.keys(r),a,l,s,u,c;for(a=0,l=i.length;a<l;a+=1)c="",n!==""&&(c+=", "),e.condenseFlow&&(c+='"'),s=i[a],u=r[s],e.replacer&&(u=e.replacer.call(r,s,u)),sd(e,t,s,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),sd(e,t,u,!1,!1)&&(c+=e.dump,n+=c));e.tag=o,e.dump="{"+n+"}"}function PIe(e,t,r,n){var o="",i=e.tag,a=Object.keys(r),l,s,u,c,d,f;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new ia("sortKeys must be a boolean or a function");for(l=0,s=a.length;l<s;l+=1)f="",(!n||o!=="")&&(f+=eR(e,t)),u=a[l],c=r[u],e.replacer&&(c=e.replacer.call(r,u,c)),sd(e,t+1,u,!0,!0,!0)&&(d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,d&&(e.dump&&Hx===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,d&&(f+=eR(e,t)),sd(e,t+1,c,!0,d)&&(e.dump&&Hx===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,o+=f));e.tag=i,e.dump=o||"{}"}function MU(e,t,r){var n,o,i,a,l,s;for(o=r?e.explicitTypes:e.implicitTypes,i=0,a=o.length;i<a;i+=1)if(l=o[i],(l.instanceOf||l.predicate)&&(!l.instanceOf||typeof t=="object"&&t instanceof l.instanceOf)&&(!l.predicate||l.predicate(t))){if(r?l.multi&&l.representName?e.tag=l.representName(t):e.tag=l.tag:e.tag="?",l.represent){if(s=e.styleMap[l.tag]||l.defaultStyle,CU.call(l.represent)==="[object Function]")n=l.represent(t,s);else if(kU.call(l.represent,s))n=l.represent[s](t,s);else throw new ia("!<"+l.tag+'> tag resolver accepts not "'+s+'" style');e.dump=n}return!0}return!1}function sd(e,t,r,n,o,i,a){e.tag=null,e.dump=r,MU(e,r,!1)||MU(e,r,!0);var l=CU.call(e.dump),s=n,u;n&&(n=e.flowLevel<0||e.flowLevel>t);var c=l==="[object Object]"||l==="[object Array]",d,f;if(c&&(d=e.duplicates.indexOf(r),f=d!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(o=!1),f&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&f&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),l==="[object Object]")n&&Object.keys(e.dump).length!==0?(PIe(e,t,e.dump,o),f&&(e.dump="&ref_"+d+e.dump)):(RIe(e,t,e.dump),f&&(e.dump="&ref_"+d+" "+e.dump));else if(l==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&t>0?jU(e,t-1,e.dump,o):jU(e,t,e.dump,o),f&&(e.dump="&ref_"+d+e.dump)):(IIe(e,t,e.dump),f&&(e.dump="&ref_"+d+" "+e.dump));else if(l==="[object String]")e.tag!=="?"&&EIe(e,e.dump,t,i,s);else{if(l==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new ia("unacceptable kind of an object to dump "+l)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function LIe(e,t){var r=[],n=[],o,i;for(rR(e,r,n),o=0,i=n.length;o<i;o+=1)t.duplicates.push(r[n[o]]);t.usedDuplicates=new Array(i)}function rR(e,t,r){var n,o,i;if(e!==null&&typeof e=="object")if(o=t.indexOf(e),o!==-1)r.indexOf(o)===-1&&r.push(o);else if(t.push(e),Array.isArray(e))for(o=0,i=e.length;o<i;o+=1)rR(e[o],t,r);else for(n=Object.keys(e),o=0,i=n.length;o<i;o+=1)rR(e[n[o]],t,r)}function HIe(e,t){t=t||{};var r=new CIe(t);r.noRefs||LIe(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),sd(r,0,n,!0,!0)?r.dump+`
|
|
72
|
-
`:""}var NIe=HIe,$Ie={dump:NIe};function nR(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var DIe=Si,BIe=FV,jIe=qV,MIe=QV,zIe=ZV,FIe=YI,WIe=wU.load,VIe=wU.loadAll,UIe=$Ie.dump,qIe=ia,GIe={binary:nU,float:XV,map:UV,null:GV,pairs:iU,set:aU,timestamp:tU,bool:YV,int:KV,merge:rU,omap:oU,seq:VV,str:WV},YIe=nR("safeLoad","load"),KIe=nR("safeLoadAll","loadAll"),XIe=nR("safeDump","dump"),zU={Type:DIe,Schema:BIe,FAILSAFE_SCHEMA:jIe,JSON_SCHEMA:MIe,CORE_SCHEMA:zIe,DEFAULT_SCHEMA:FIe,load:WIe,loadAll:VIe,dump:UIe,YAMLException:qIe,types:GIe,safeLoad:YIe,safeLoadAll:KIe,safeDump:XIe};class Bx{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const r={listener:t};return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const jx=typeof window>"u"||"Deno"in window;function ns(){}function QIe(e,t){return typeof e=="function"?e(t):e}function oR(e){return typeof e=="number"&&e>=0&&e!==1/0}function FU(e,t){return Math.max(e+(t||0)-Date.now(),0)}function wv(e,t,r){return V_(e)?typeof t=="function"?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Pf(e,t,r){return V_(e)?[{...t,queryKey:e},r]:[e||{},t]}function WU(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:l}=e;if(V_(a)){if(n){if(t.queryHash!==iR(a,t.options))return!1}else if(!W_(t.queryKey,a))return!1}if(r!=="all"){const s=t.isActive();if(r==="active"&&!s||r==="inactive"&&s)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function VU(e,t){const{exact:r,fetching:n,predicate:o,mutationKey:i}=e;if(V_(i)){if(!t.options.mutationKey)return!1;if(r){if(jp(t.options.mutationKey)!==jp(i))return!1}else if(!W_(t.options.mutationKey,i))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function iR(e,t){return((t==null?void 0:t.queryKeyHashFn)||jp)(e)}function jp(e){return JSON.stringify(e,(t,r)=>lR(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function W_(e,t){return UU(e,t)}function UU(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!UU(e[r],t[r])):!1}function qU(e,t){if(e===t)return e;const r=GU(e)&&GU(t);if(r||lR(e)&&lR(t)){const n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),i=o.length,a=r?[]:{};let l=0;for(let s=0;s<i;s++){const u=r?s:o[s];a[u]=qU(e[u],t[u]),a[u]===e[u]&&l++}return n===i&&l===n?e:a}return t}function aR(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function GU(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function lR(e){if(!YU(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!YU(r)||!r.hasOwnProperty("isPrototypeOf"))}function YU(e){return Object.prototype.toString.call(e)==="[object Object]"}function V_(e){return Array.isArray(e)}function KU(e){return new Promise(t=>{setTimeout(t,e)})}function XU(e){KU(0).then(e)}function ZIe(){if(typeof AbortController=="function")return new AbortController}function sR(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?qU(e,t):t}class JIe extends Bx{constructor(){super(),this.setup=t=>{if(!jx&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),()=>{window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const U_=new JIe,QU=["online","offline"];class eRe extends Bx{constructor(){super(),this.setup=t=>{if(!jx&&window.addEventListener){const r=()=>t();return QU.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{QU.forEach(n=>{window.removeEventListener(n,r)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const q_=new eRe;function tRe(e){return Math.min(1e3*2**e,3e4)}function G_(e){return(e??"online")==="online"?q_.isOnline():!0}class ZU{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Y_(e){return e instanceof ZU}function JU(e){let t=!1,r=0,n=!1,o,i,a;const l=new Promise((b,y)=>{i=b,a=y}),s=b=>{n||(p(new ZU(b)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!U_.isFocused()||e.networkMode!=="always"&&!q_.isOnline(),f=b=>{n||(n=!0,e.onSuccess==null||e.onSuccess(b),o==null||o(),i(b))},p=b=>{n||(n=!0,e.onError==null||e.onError(b),o==null||o(),a(b))},h=()=>new Promise(b=>{o=y=>{const w=n||!d();return w&&b(y),w},e.onPause==null||e.onPause()}).then(()=>{o=void 0,n||e.onContinue==null||e.onContinue()}),v=()=>{if(n)return;let b;try{b=e.fn()}catch(y){b=Promise.reject(y)}Promise.resolve(b).then(f).catch(y=>{var w,k;if(n)return;const E=(w=e.retry)!=null?w:3,_=(k=e.retryDelay)!=null?k:tRe,S=typeof _=="function"?_(r,y):_,A=E===!0||typeof E=="number"&&r<E||typeof E=="function"&&E(r,y);if(t||!A){p(y);return}r++,e.onFail==null||e.onFail(r,y),KU(S).then(()=>{if(d())return h()}).then(()=>{t?p(y):v()})})};return G_(e.networkMode)?v():h().then(v),{promise:l,cancel:s,continue:()=>(o==null?void 0:o())?l:Promise.resolve(),cancelRetry:u,continueRetry:c}}const uR=console;function rRe(){let e=[],t=0,r=c=>{c()},n=c=>{c()};const o=c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},i=c=>{t?e.push(c):XU(()=>{r(c)})},a=c=>(...d)=>{i(()=>{c(...d)})},l=()=>{const c=e;e=[],c.length&&XU(()=>{n(()=>{c.forEach(d=>{r(d)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{n=c}}}const _o=rRe();class eq{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),oR(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(jx?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class nRe extends eq{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||uR,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||oRe(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,r){const n=sR(this.state.data,t,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){this.dispatch({type:"setState",state:t,setStateOptions:r})}cancel(t){var r;const n=this.promise;return(r=this.retryer)==null||r.cancel(t),n?n.then(ns).catch(ns):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!FU(this.state.dataUpdatedAt,t)}onFocus(){var t;const r=this.observers.find(n=>n.shouldFetchOnWindowFocus());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const r=this.observers.find(n=>n.shouldFetchOnReconnect());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,r){var n,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&r!=null&&r.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(h=>h.options.queryFn);p&&this.setOptions(p.options)}const a=ZIe(),l={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(l);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(l)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(s(c),(n=this.options.behavior)==null||n.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=c.fetchOptions)==null?void 0:o.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const f=p=>{if(Y_(p)&&p.silent||this.dispatch({type:"error",error:p}),!Y_(p)){var h,v,b,y;(h=(v=this.cache.config).onError)==null||h.call(v,p,this),(b=(y=this.cache.config).onSettled)==null||b.call(y,this.state.data,p,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=JU({fn:c.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:p=>{var h,v,b,y;if(typeof p>"u"){f(new Error(this.queryHash+" data is undefined"));return}this.setData(p),(h=(v=this.cache.config).onSuccess)==null||h.call(v,p,this),(b=(y=this.cache.config).onSettled)==null||b.call(y,p,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:f,onFail:(p,h)=>{this.dispatch({type:"failed",failureCount:p,error:h})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const r=n=>{var o,i;switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:G_(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return Y_(a)&&a.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),_o.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function oRe(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t<"u",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}class iRe extends Bx{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,r,n){var o;const i=r.queryKey,a=(o=r.queryHash)!=null?o:iR(i,r);let l=this.get(a);return l||(l=new nRe({cache:this,logger:t.getLogger(),queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const r=this.queriesMap[t.queryHash];r&&(t.destroy(),this.queries=this.queries.filter(n=>n!==t),r===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){_o.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=Pf(t,r);return typeof n.exact>"u"&&(n.exact=!0),this.queries.find(o=>WU(n,o))}findAll(t,r){const[n]=Pf(t,r);return Object.keys(n).length>0?this.queries.filter(o=>WU(n,o)):this.queries}notify(t){_o.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){_o.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){_o.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}var aRe={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_USED_COMPONENTS_TableEditor:"false",VITE_XMLUI_VERSION:"0.9.82 (built 7/22/2025)"};class lRe extends eq{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||uR,this.observers=[],this.state=t.state||sRe(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(r=>r!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,r;return(t=(r=this.retryer)==null?void 0:r.continue())!=null?t:this.execute()}async execute(){const t=()=>{var A;return this.retryer=JU({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(O,I)=>{this.dispatch({type:"failed",failureCount:O,error:I})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(A=this.options.retry)!=null?A:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},r=this.state.status==="loading";try{var n,o,i,a,l,s,u,c;if(!r){var d,f,p,h;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(f=this.mutationCache.config).onMutate)==null?void 0:d.call(f,this.state.variables,this));const O=await((p=(h=this.options).onMutate)==null?void 0:p.call(h,this.state.variables));O!==this.state.context&&this.dispatch({type:"loading",context:O,variables:this.state.variables})}const A=await t();return await((n=(o=this.mutationCache.config).onSuccess)==null?void 0:n.call(o,A,this.state.variables,this.state.context,this)),await((i=(a=this.options).onSuccess)==null?void 0:i.call(a,A,this.state.variables,this.state.context)),await((l=(s=this.mutationCache.config).onSettled)==null?void 0:l.call(s,A,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,A,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:A}),A}catch(A){try{var v,b,y,w,k,E,_,S;throw await((v=(b=this.mutationCache.config).onError)==null?void 0:v.call(b,A,this.state.variables,this.state.context,this)),aRe.NODE_ENV,await((y=(w=this.options).onError)==null?void 0:y.call(w,A,this.state.variables,this.state.context)),await((k=(E=this.mutationCache.config).onSettled)==null?void 0:k.call(E,void 0,A,this.state.variables,this.state.context,this)),await((_=(S=this.options).onSettled)==null?void 0:_.call(S,void 0,A,this.state.variables,this.state.context)),A}finally{this.dispatch({type:"error",error:A})}}}dispatch(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"loading":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!G_(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...n,...t.state}}};this.state=r(this.state),_o.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function sRe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class uRe extends Bx{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const o=new lRe({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(r),state:n,defaultOptions:r.mutationKey?t.getMutationDefaults(r.mutationKey):void 0});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(r=>r!==t),this.notify({type:"removed",mutation:t})}clear(){_o.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(r=>VU(t,r))}findAll(t){return this.mutations.filter(r=>VU(t,r))}notify(t){_o.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const r=this.mutations.filter(n=>n.state.isPaused);return _o.batch(()=>r.reduce((n,o)=>n.then(()=>o.continue().catch(ns)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function cR(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,o,i,a;const l=(t=e.fetchOptions)==null||(r=t.meta)==null?void 0:r.refetchPage,s=(n=e.fetchOptions)==null||(o=n.meta)==null?void 0:o.fetchMore,u=s==null?void 0:s.pageParam,c=(s==null?void 0:s.direction)==="forward",d=(s==null?void 0:s.direction)==="backward",f=((i=e.state.data)==null?void 0:i.pages)||[],p=((a=e.state.data)==null?void 0:a.pageParams)||[];let h=p,v=!1;const b=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>{var A;if((A=e.signal)!=null&&A.aborted)v=!0;else{var O;(O=e.signal)==null||O.addEventListener("abort",()=>{v=!0})}return e.signal}})},y=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),w=(S,A,O,I)=>(h=I?[A,...h]:[...h,A],I?[O,...S]:[...S,O]),k=(S,A,O,I)=>{if(v)return Promise.reject("Cancelled");if(typeof O>"u"&&!A&&S.length)return Promise.resolve(S);const L={queryKey:e.queryKey,pageParam:O,meta:e.options.meta};b(L);const P=y(L);return Promise.resolve(P).then(j=>w(S,O,j,I))};let E;if(!f.length)E=k([]);else if(c){const S=typeof u<"u",A=S?u:dR(e.options,f);E=k(f,S,A)}else if(d){const S=typeof u<"u",A=S?u:tq(e.options,f);E=k(f,S,A,!0)}else{h=[];const S=typeof e.options.getNextPageParam>"u";E=(l&&f[0]?l(f[0],0,f):!0)?k([],S,p[0]):Promise.resolve(w([],p[0],f[0]));for(let O=1;O<f.length;O++)E=E.then(I=>{if(l&&f[O]?l(f[O],O,f):!0){const P=S?p[O]:dR(e.options,I);return k(I,S,P)}return Promise.resolve(w(I,p[O],f[O]))})}return E.then(S=>({pages:S,pageParams:h}))}}}}function dR(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function tq(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function cRe(e,t){if(e.getNextPageParam&&Array.isArray(t)){const r=dR(e,t);return typeof r<"u"&&r!==null&&r!==!1}}function dRe(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const r=tq(e,t);return typeof r<"u"&&r!==null&&r!==!1}}class fRe{constructor(t={}){this.queryCache=t.queryCache||new iRe,this.mutationCache=t.mutationCache||new uRe,this.logger=t.logger||uR,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=U_.subscribe(()=>{U_.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=q_.subscribe(()=>{q_.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,r;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(r=this.unsubscribeOnline)==null||r.call(this),this.unsubscribeOnline=void 0)}isFetching(t,r){const[n]=Pf(t,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state.data}ensureQueryData(t,r,n){const o=wv(t,r,n),i=this.getQueryData(o.queryKey);return i?Promise.resolve(i):this.fetchQuery(o)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:r,state:n})=>{const o=n.data;return[r,o]})}setQueryData(t,r,n){const o=this.queryCache.find(t),i=o==null?void 0:o.state.data,a=QIe(r,i);if(typeof a>"u")return;const l=wv(t),s=this.defaultQueryOptions(l);return this.queryCache.build(this,s).setData(a,{...n,manual:!0})}setQueriesData(t,r,n){return _o.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,r,n)]))}getQueryState(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state}removeQueries(t,r){const[n]=Pf(t,r),o=this.queryCache;_o.batch(()=>{o.findAll(n).forEach(i=>{o.remove(i)})})}resetQueries(t,r,n){const[o,i]=Pf(t,r,n),a=this.queryCache,l={type:"active",...o};return _o.batch(()=>(a.findAll(o).forEach(s=>{s.reset()}),this.refetchQueries(l,i)))}cancelQueries(t,r,n){const[o,i={}]=Pf(t,r,n);typeof i.revert>"u"&&(i.revert=!0);const a=_o.batch(()=>this.queryCache.findAll(o).map(l=>l.cancel(i)));return Promise.all(a).then(ns).catch(ns)}invalidateQueries(t,r,n){const[o,i]=Pf(t,r,n);return _o.batch(()=>{var a,l;if(this.queryCache.findAll(o).forEach(u=>{u.invalidate()}),o.refetchType==="none")return Promise.resolve();const s={...o,type:(a=(l=o.refetchType)!=null?l:o.type)!=null?a:"active"};return this.refetchQueries(s,i)})}refetchQueries(t,r,n){const[o,i]=Pf(t,r,n),a=_o.batch(()=>this.queryCache.findAll(o).filter(s=>!s.isDisabled()).map(s=>{var u;return s.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:o.refetchPage}})}));let l=Promise.all(a).then(ns);return i!=null&&i.throwOnError||(l=l.catch(ns)),l}fetchQuery(t,r,n){const o=wv(t,r,n),i=this.defaultQueryOptions(o);typeof i.retry>"u"&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(t,r,n){return this.fetchQuery(t,r,n).then(ns).catch(ns)}fetchInfiniteQuery(t,r,n){const o=wv(t,r,n);return o.behavior=cR(),this.fetchQuery(o)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(ns).catch(ns)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,r){const n=this.queryDefaults.find(o=>jp(t)===jp(o.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>W_(t,n.queryKey));return r==null?void 0:r.defaultOptions}setMutationDefaults(t,r){const n=this.mutationDefaults.find(o=>jp(t)===jp(o.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>W_(t,n.mutationKey));return r==null?void 0:r.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const r={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!r.queryHash&&r.queryKey&&(r.queryHash=iR(r.queryKey,r)),typeof r.refetchOnReconnect>"u"&&(r.refetchOnReconnect=r.networkMode!=="always"),typeof r.useErrorBoundary>"u"&&(r.useErrorBoundary=!!r.suspense),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class rq extends Bx{constructor(t,r){super(),this.client=t,this.options=r,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(r)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),nq(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return fR(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return fR(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,r){const n=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),aR(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&oq(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(r),i&&(this.currentQuery!==o||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();i&&(this.currentQuery!==o||this.options.enabled!==n.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(t){const r=this.client.getQueryCache().build(this.client,t),n=this.createResult(r,t);return pRe(this,n,t)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),t[n])})}),r}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...r}={}){return this.fetch({...r,meta:{refetchPage:t}})}fetchOptimistic(t){const r=this.client.defaultQueryOptions(t),n=this.client.getQueryCache().build(this.client,r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){var r;return this.executeFetch({...t,cancelRefetch:(r=t.cancelRefetch)!=null?r:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let r=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(ns)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),jx||this.currentResult.isStale||!oR(this.options.staleTime))return;const r=FU(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},r)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(jx||this.options.enabled===!1||!oR(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||U_.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,r){const n=this.currentQuery,o=this.options,i=this.currentResult,a=this.currentResultState,l=this.currentResultOptions,s=t!==n,u=s?t.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:d}=t;let{dataUpdatedAt:f,error:p,errorUpdatedAt:h,fetchStatus:v,status:b}=d,y=!1,w=!1,k;if(r._optimisticResults){const O=this.hasListeners(),I=!O&&nq(t,r),L=O&&oq(t,n,r,o);(I||L)&&(v=G_(t.options.networkMode)?"fetching":"paused",f||(b="loading")),r._optimisticResults==="isRestoring"&&(v="idle")}if(r.keepPreviousData&&!d.dataUpdatedAt&&c!=null&&c.isSuccess&&b!=="error")k=c.data,f=c.dataUpdatedAt,b=c.status,y=!0;else if(r.select&&typeof d.data<"u")if(i&&d.data===(a==null?void 0:a.data)&&r.select===this.selectFn)k=this.selectResult;else try{this.selectFn=r.select,k=r.select(d.data),k=sR(i==null?void 0:i.data,k,r),this.selectResult=k,this.selectError=null}catch(O){this.selectError=O}else k=d.data;if(typeof r.placeholderData<"u"&&typeof k>"u"&&b==="loading"){let O;if(i!=null&&i.isPlaceholderData&&r.placeholderData===(l==null?void 0:l.placeholderData))O=i.data;else if(O=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof O<"u")try{O=r.select(O),this.selectError=null}catch(I){this.selectError=I}typeof O<"u"&&(b="success",k=sR(i==null?void 0:i.data,O,r),w=!0)}this.selectError&&(p=this.selectError,k=this.selectResult,h=Date.now(),b="error");const E=v==="fetching",_=b==="loading",S=b==="error";return{status:b,fetchStatus:v,isLoading:_,isSuccess:b==="success",isError:S,isInitialLoading:_&&E,data:k,dataUpdatedAt:f,error:p,errorUpdatedAt:h,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:E,isRefetching:E&&!_,isLoadingError:S&&d.dataUpdatedAt===0,isPaused:v==="paused",isPlaceholderData:w,isPreviousData:y,isRefetchError:S&&d.dataUpdatedAt!==0,isStale:mR(t,r),refetch:this.refetch,remove:this.remove}}updateResult(t){const r=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,aR(n,r))return;this.currentResult=n;const o={cache:!0},i=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,l=typeof a=="function"?a():a;if(l==="all"||!l&&!this.trackedProps.size)return!0;const s=new Set(l??this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(u=>{const c=u;return this.currentResult[c]!==r[c]&&s.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),this.notify({...o,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const r=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const r={};t.type==="success"?r.onSuccess=!t.manual:t.type==="error"&&!Y_(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){_o.batch(()=>{if(t.onSuccess){var r,n,o,i;(r=(n=this.options).onSuccess)==null||r.call(n,this.currentResult.data),(o=(i=this.options).onSettled)==null||o.call(i,this.currentResult.data,null)}else if(t.onError){var a,l,s,u;(a=(l=this.options).onError)==null||a.call(l,this.currentResult.error),(s=(u=this.options).onSettled)==null||s.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function mRe(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function nq(e,t){return mRe(e,t)||e.state.dataUpdatedAt>0&&fR(e,t,t.refetchOnMount)}function fR(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&mR(e,t)}return!1}function oq(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&mR(e,r)}function mR(e,t){return e.isStaleByTime(t.staleTime)}function pRe(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!aR(e.getCurrentResult(),t)}class hRe extends rq{constructor(t,r){super(t,r)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,r){super.setOptions({...t,behavior:cR()},r)}getOptimisticResult(t){return t.behavior=cR(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...r}={}){return this.fetch({...r,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...r}={}){return this.fetch({...r,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,r){var n,o,i,a,l,s;const{state:u}=t,c=super.createResult(t,r),{isFetching:d,isRefetching:f}=c,p=d&&((n=u.fetchMeta)==null||(o=n.fetchMore)==null?void 0:o.direction)==="forward",h=d&&((i=u.fetchMeta)==null||(a=i.fetchMore)==null?void 0:a.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:cRe(r,(l=u.data)==null?void 0:l.pages),hasPreviousPage:dRe(r,(s=u.data)==null?void 0:s.pages),isFetchingNextPage:p,isFetchingPreviousPage:h,isRefetching:f&&!p&&!h}}}var iq={exports:{}},pR={};/**
|
|
72
|
+
`:""}var NIe=HIe,$Ie={dump:NIe};function nR(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var DIe=Si,BIe=FV,jIe=qV,MIe=QV,zIe=ZV,FIe=YI,WIe=wU.load,VIe=wU.loadAll,UIe=$Ie.dump,qIe=ia,GIe={binary:nU,float:XV,map:UV,null:GV,pairs:iU,set:aU,timestamp:tU,bool:YV,int:KV,merge:rU,omap:oU,seq:VV,str:WV},YIe=nR("safeLoad","load"),KIe=nR("safeLoadAll","loadAll"),XIe=nR("safeDump","dump"),zU={Type:DIe,Schema:BIe,FAILSAFE_SCHEMA:jIe,JSON_SCHEMA:MIe,CORE_SCHEMA:zIe,DEFAULT_SCHEMA:FIe,load:WIe,loadAll:VIe,dump:UIe,YAMLException:qIe,types:GIe,safeLoad:YIe,safeLoadAll:KIe,safeDump:XIe};class Bx{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const r={listener:t};return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const jx=typeof window>"u"||"Deno"in window;function ns(){}function QIe(e,t){return typeof e=="function"?e(t):e}function oR(e){return typeof e=="number"&&e>=0&&e!==1/0}function FU(e,t){return Math.max(e+(t||0)-Date.now(),0)}function wv(e,t,r){return V_(e)?typeof t=="function"?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Pf(e,t,r){return V_(e)?[{...t,queryKey:e},r]:[e||{},t]}function WU(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:l}=e;if(V_(a)){if(n){if(t.queryHash!==iR(a,t.options))return!1}else if(!W_(t.queryKey,a))return!1}if(r!=="all"){const s=t.isActive();if(r==="active"&&!s||r==="inactive"&&s)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function VU(e,t){const{exact:r,fetching:n,predicate:o,mutationKey:i}=e;if(V_(i)){if(!t.options.mutationKey)return!1;if(r){if(jp(t.options.mutationKey)!==jp(i))return!1}else if(!W_(t.options.mutationKey,i))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function iR(e,t){return((t==null?void 0:t.queryKeyHashFn)||jp)(e)}function jp(e){return JSON.stringify(e,(t,r)=>lR(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function W_(e,t){return UU(e,t)}function UU(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!UU(e[r],t[r])):!1}function qU(e,t){if(e===t)return e;const r=GU(e)&&GU(t);if(r||lR(e)&&lR(t)){const n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),i=o.length,a=r?[]:{};let l=0;for(let s=0;s<i;s++){const u=r?s:o[s];a[u]=qU(e[u],t[u]),a[u]===e[u]&&l++}return n===i&&l===n?e:a}return t}function aR(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function GU(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function lR(e){if(!YU(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!YU(r)||!r.hasOwnProperty("isPrototypeOf"))}function YU(e){return Object.prototype.toString.call(e)==="[object Object]"}function V_(e){return Array.isArray(e)}function KU(e){return new Promise(t=>{setTimeout(t,e)})}function XU(e){KU(0).then(e)}function ZIe(){if(typeof AbortController=="function")return new AbortController}function sR(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?qU(e,t):t}class JIe extends Bx{constructor(){super(),this.setup=t=>{if(!jx&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),()=>{window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const U_=new JIe,QU=["online","offline"];class eRe extends Bx{constructor(){super(),this.setup=t=>{if(!jx&&window.addEventListener){const r=()=>t();return QU.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{QU.forEach(n=>{window.removeEventListener(n,r)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const q_=new eRe;function tRe(e){return Math.min(1e3*2**e,3e4)}function G_(e){return(e??"online")==="online"?q_.isOnline():!0}class ZU{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Y_(e){return e instanceof ZU}function JU(e){let t=!1,r=0,n=!1,o,i,a;const l=new Promise((b,y)=>{i=b,a=y}),s=b=>{n||(p(new ZU(b)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!U_.isFocused()||e.networkMode!=="always"&&!q_.isOnline(),f=b=>{n||(n=!0,e.onSuccess==null||e.onSuccess(b),o==null||o(),i(b))},p=b=>{n||(n=!0,e.onError==null||e.onError(b),o==null||o(),a(b))},h=()=>new Promise(b=>{o=y=>{const w=n||!d();return w&&b(y),w},e.onPause==null||e.onPause()}).then(()=>{o=void 0,n||e.onContinue==null||e.onContinue()}),v=()=>{if(n)return;let b;try{b=e.fn()}catch(y){b=Promise.reject(y)}Promise.resolve(b).then(f).catch(y=>{var w,k;if(n)return;const E=(w=e.retry)!=null?w:3,_=(k=e.retryDelay)!=null?k:tRe,S=typeof _=="function"?_(r,y):_,A=E===!0||typeof E=="number"&&r<E||typeof E=="function"&&E(r,y);if(t||!A){p(y);return}r++,e.onFail==null||e.onFail(r,y),KU(S).then(()=>{if(d())return h()}).then(()=>{t?p(y):v()})})};return G_(e.networkMode)?v():h().then(v),{promise:l,cancel:s,continue:()=>(o==null?void 0:o())?l:Promise.resolve(),cancelRetry:u,continueRetry:c}}const uR=console;function rRe(){let e=[],t=0,r=c=>{c()},n=c=>{c()};const o=c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},i=c=>{t?e.push(c):XU(()=>{r(c)})},a=c=>(...d)=>{i(()=>{c(...d)})},l=()=>{const c=e;e=[],c.length&&XU(()=>{n(()=>{c.forEach(d=>{r(d)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{n=c}}}const _o=rRe();class eq{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),oR(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(jx?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class nRe extends eq{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||uR,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||oRe(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,r){const n=sR(this.state.data,t,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){this.dispatch({type:"setState",state:t,setStateOptions:r})}cancel(t){var r;const n=this.promise;return(r=this.retryer)==null||r.cancel(t),n?n.then(ns).catch(ns):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!FU(this.state.dataUpdatedAt,t)}onFocus(){var t;const r=this.observers.find(n=>n.shouldFetchOnWindowFocus());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const r=this.observers.find(n=>n.shouldFetchOnReconnect());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,r){var n,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&r!=null&&r.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(h=>h.options.queryFn);p&&this.setOptions(p.options)}const a=ZIe(),l={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(l);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(l)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(s(c),(n=this.options.behavior)==null||n.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=c.fetchOptions)==null?void 0:o.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const f=p=>{if(Y_(p)&&p.silent||this.dispatch({type:"error",error:p}),!Y_(p)){var h,v,b,y;(h=(v=this.cache.config).onError)==null||h.call(v,p,this),(b=(y=this.cache.config).onSettled)==null||b.call(y,this.state.data,p,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=JU({fn:c.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:p=>{var h,v,b,y;if(typeof p>"u"){f(new Error(this.queryHash+" data is undefined"));return}this.setData(p),(h=(v=this.cache.config).onSuccess)==null||h.call(v,p,this),(b=(y=this.cache.config).onSettled)==null||b.call(y,p,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:f,onFail:(p,h)=>{this.dispatch({type:"failed",failureCount:p,error:h})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const r=n=>{var o,i;switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:G_(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return Y_(a)&&a.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),_o.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function oRe(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t<"u",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}class iRe extends Bx{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,r,n){var o;const i=r.queryKey,a=(o=r.queryHash)!=null?o:iR(i,r);let l=this.get(a);return l||(l=new nRe({cache:this,logger:t.getLogger(),queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const r=this.queriesMap[t.queryHash];r&&(t.destroy(),this.queries=this.queries.filter(n=>n!==t),r===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){_o.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=Pf(t,r);return typeof n.exact>"u"&&(n.exact=!0),this.queries.find(o=>WU(n,o))}findAll(t,r){const[n]=Pf(t,r);return Object.keys(n).length>0?this.queries.filter(o=>WU(n,o)):this.queries}notify(t){_o.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){_o.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){_o.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}var aRe={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_USED_COMPONENTS_TableEditor:"false",VITE_XMLUI_VERSION:"0.9.83 (built 7/22/2025)"};class lRe extends eq{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||uR,this.observers=[],this.state=t.state||sRe(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(r=>r!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,r;return(t=(r=this.retryer)==null?void 0:r.continue())!=null?t:this.execute()}async execute(){const t=()=>{var A;return this.retryer=JU({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(O,I)=>{this.dispatch({type:"failed",failureCount:O,error:I})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(A=this.options.retry)!=null?A:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},r=this.state.status==="loading";try{var n,o,i,a,l,s,u,c;if(!r){var d,f,p,h;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(f=this.mutationCache.config).onMutate)==null?void 0:d.call(f,this.state.variables,this));const O=await((p=(h=this.options).onMutate)==null?void 0:p.call(h,this.state.variables));O!==this.state.context&&this.dispatch({type:"loading",context:O,variables:this.state.variables})}const A=await t();return await((n=(o=this.mutationCache.config).onSuccess)==null?void 0:n.call(o,A,this.state.variables,this.state.context,this)),await((i=(a=this.options).onSuccess)==null?void 0:i.call(a,A,this.state.variables,this.state.context)),await((l=(s=this.mutationCache.config).onSettled)==null?void 0:l.call(s,A,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,A,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:A}),A}catch(A){try{var v,b,y,w,k,E,_,S;throw await((v=(b=this.mutationCache.config).onError)==null?void 0:v.call(b,A,this.state.variables,this.state.context,this)),aRe.NODE_ENV,await((y=(w=this.options).onError)==null?void 0:y.call(w,A,this.state.variables,this.state.context)),await((k=(E=this.mutationCache.config).onSettled)==null?void 0:k.call(E,void 0,A,this.state.variables,this.state.context,this)),await((_=(S=this.options).onSettled)==null?void 0:_.call(S,void 0,A,this.state.variables,this.state.context)),A}finally{this.dispatch({type:"error",error:A})}}}dispatch(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"loading":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!G_(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...n,...t.state}}};this.state=r(this.state),_o.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function sRe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class uRe extends Bx{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const o=new lRe({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(r),state:n,defaultOptions:r.mutationKey?t.getMutationDefaults(r.mutationKey):void 0});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(r=>r!==t),this.notify({type:"removed",mutation:t})}clear(){_o.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(r=>VU(t,r))}findAll(t){return this.mutations.filter(r=>VU(t,r))}notify(t){_o.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const r=this.mutations.filter(n=>n.state.isPaused);return _o.batch(()=>r.reduce((n,o)=>n.then(()=>o.continue().catch(ns)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function cR(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,o,i,a;const l=(t=e.fetchOptions)==null||(r=t.meta)==null?void 0:r.refetchPage,s=(n=e.fetchOptions)==null||(o=n.meta)==null?void 0:o.fetchMore,u=s==null?void 0:s.pageParam,c=(s==null?void 0:s.direction)==="forward",d=(s==null?void 0:s.direction)==="backward",f=((i=e.state.data)==null?void 0:i.pages)||[],p=((a=e.state.data)==null?void 0:a.pageParams)||[];let h=p,v=!1;const b=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>{var A;if((A=e.signal)!=null&&A.aborted)v=!0;else{var O;(O=e.signal)==null||O.addEventListener("abort",()=>{v=!0})}return e.signal}})},y=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),w=(S,A,O,I)=>(h=I?[A,...h]:[...h,A],I?[O,...S]:[...S,O]),k=(S,A,O,I)=>{if(v)return Promise.reject("Cancelled");if(typeof O>"u"&&!A&&S.length)return Promise.resolve(S);const L={queryKey:e.queryKey,pageParam:O,meta:e.options.meta};b(L);const P=y(L);return Promise.resolve(P).then(j=>w(S,O,j,I))};let E;if(!f.length)E=k([]);else if(c){const S=typeof u<"u",A=S?u:dR(e.options,f);E=k(f,S,A)}else if(d){const S=typeof u<"u",A=S?u:tq(e.options,f);E=k(f,S,A,!0)}else{h=[];const S=typeof e.options.getNextPageParam>"u";E=(l&&f[0]?l(f[0],0,f):!0)?k([],S,p[0]):Promise.resolve(w([],p[0],f[0]));for(let O=1;O<f.length;O++)E=E.then(I=>{if(l&&f[O]?l(f[O],O,f):!0){const P=S?p[O]:dR(e.options,I);return k(I,S,P)}return Promise.resolve(w(I,p[O],f[O]))})}return E.then(S=>({pages:S,pageParams:h}))}}}}function dR(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function tq(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function cRe(e,t){if(e.getNextPageParam&&Array.isArray(t)){const r=dR(e,t);return typeof r<"u"&&r!==null&&r!==!1}}function dRe(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const r=tq(e,t);return typeof r<"u"&&r!==null&&r!==!1}}class fRe{constructor(t={}){this.queryCache=t.queryCache||new iRe,this.mutationCache=t.mutationCache||new uRe,this.logger=t.logger||uR,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=U_.subscribe(()=>{U_.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=q_.subscribe(()=>{q_.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,r;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(r=this.unsubscribeOnline)==null||r.call(this),this.unsubscribeOnline=void 0)}isFetching(t,r){const[n]=Pf(t,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state.data}ensureQueryData(t,r,n){const o=wv(t,r,n),i=this.getQueryData(o.queryKey);return i?Promise.resolve(i):this.fetchQuery(o)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:r,state:n})=>{const o=n.data;return[r,o]})}setQueryData(t,r,n){const o=this.queryCache.find(t),i=o==null?void 0:o.state.data,a=QIe(r,i);if(typeof a>"u")return;const l=wv(t),s=this.defaultQueryOptions(l);return this.queryCache.build(this,s).setData(a,{...n,manual:!0})}setQueriesData(t,r,n){return _o.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,r,n)]))}getQueryState(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state}removeQueries(t,r){const[n]=Pf(t,r),o=this.queryCache;_o.batch(()=>{o.findAll(n).forEach(i=>{o.remove(i)})})}resetQueries(t,r,n){const[o,i]=Pf(t,r,n),a=this.queryCache,l={type:"active",...o};return _o.batch(()=>(a.findAll(o).forEach(s=>{s.reset()}),this.refetchQueries(l,i)))}cancelQueries(t,r,n){const[o,i={}]=Pf(t,r,n);typeof i.revert>"u"&&(i.revert=!0);const a=_o.batch(()=>this.queryCache.findAll(o).map(l=>l.cancel(i)));return Promise.all(a).then(ns).catch(ns)}invalidateQueries(t,r,n){const[o,i]=Pf(t,r,n);return _o.batch(()=>{var a,l;if(this.queryCache.findAll(o).forEach(u=>{u.invalidate()}),o.refetchType==="none")return Promise.resolve();const s={...o,type:(a=(l=o.refetchType)!=null?l:o.type)!=null?a:"active"};return this.refetchQueries(s,i)})}refetchQueries(t,r,n){const[o,i]=Pf(t,r,n),a=_o.batch(()=>this.queryCache.findAll(o).filter(s=>!s.isDisabled()).map(s=>{var u;return s.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:o.refetchPage}})}));let l=Promise.all(a).then(ns);return i!=null&&i.throwOnError||(l=l.catch(ns)),l}fetchQuery(t,r,n){const o=wv(t,r,n),i=this.defaultQueryOptions(o);typeof i.retry>"u"&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(t,r,n){return this.fetchQuery(t,r,n).then(ns).catch(ns)}fetchInfiniteQuery(t,r,n){const o=wv(t,r,n);return o.behavior=cR(),this.fetchQuery(o)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(ns).catch(ns)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,r){const n=this.queryDefaults.find(o=>jp(t)===jp(o.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>W_(t,n.queryKey));return r==null?void 0:r.defaultOptions}setMutationDefaults(t,r){const n=this.mutationDefaults.find(o=>jp(t)===jp(o.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>W_(t,n.mutationKey));return r==null?void 0:r.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const r={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!r.queryHash&&r.queryKey&&(r.queryHash=iR(r.queryKey,r)),typeof r.refetchOnReconnect>"u"&&(r.refetchOnReconnect=r.networkMode!=="always"),typeof r.useErrorBoundary>"u"&&(r.useErrorBoundary=!!r.suspense),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class rq extends Bx{constructor(t,r){super(),this.client=t,this.options=r,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(r)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),nq(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return fR(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return fR(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,r){const n=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),aR(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&oq(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(r),i&&(this.currentQuery!==o||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();i&&(this.currentQuery!==o||this.options.enabled!==n.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(t){const r=this.client.getQueryCache().build(this.client,t),n=this.createResult(r,t);return pRe(this,n,t)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),t[n])})}),r}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...r}={}){return this.fetch({...r,meta:{refetchPage:t}})}fetchOptimistic(t){const r=this.client.defaultQueryOptions(t),n=this.client.getQueryCache().build(this.client,r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){var r;return this.executeFetch({...t,cancelRefetch:(r=t.cancelRefetch)!=null?r:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let r=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(ns)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),jx||this.currentResult.isStale||!oR(this.options.staleTime))return;const r=FU(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},r)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(jx||this.options.enabled===!1||!oR(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||U_.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,r){const n=this.currentQuery,o=this.options,i=this.currentResult,a=this.currentResultState,l=this.currentResultOptions,s=t!==n,u=s?t.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:d}=t;let{dataUpdatedAt:f,error:p,errorUpdatedAt:h,fetchStatus:v,status:b}=d,y=!1,w=!1,k;if(r._optimisticResults){const O=this.hasListeners(),I=!O&&nq(t,r),L=O&&oq(t,n,r,o);(I||L)&&(v=G_(t.options.networkMode)?"fetching":"paused",f||(b="loading")),r._optimisticResults==="isRestoring"&&(v="idle")}if(r.keepPreviousData&&!d.dataUpdatedAt&&c!=null&&c.isSuccess&&b!=="error")k=c.data,f=c.dataUpdatedAt,b=c.status,y=!0;else if(r.select&&typeof d.data<"u")if(i&&d.data===(a==null?void 0:a.data)&&r.select===this.selectFn)k=this.selectResult;else try{this.selectFn=r.select,k=r.select(d.data),k=sR(i==null?void 0:i.data,k,r),this.selectResult=k,this.selectError=null}catch(O){this.selectError=O}else k=d.data;if(typeof r.placeholderData<"u"&&typeof k>"u"&&b==="loading"){let O;if(i!=null&&i.isPlaceholderData&&r.placeholderData===(l==null?void 0:l.placeholderData))O=i.data;else if(O=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof O<"u")try{O=r.select(O),this.selectError=null}catch(I){this.selectError=I}typeof O<"u"&&(b="success",k=sR(i==null?void 0:i.data,O,r),w=!0)}this.selectError&&(p=this.selectError,k=this.selectResult,h=Date.now(),b="error");const E=v==="fetching",_=b==="loading",S=b==="error";return{status:b,fetchStatus:v,isLoading:_,isSuccess:b==="success",isError:S,isInitialLoading:_&&E,data:k,dataUpdatedAt:f,error:p,errorUpdatedAt:h,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:E,isRefetching:E&&!_,isLoadingError:S&&d.dataUpdatedAt===0,isPaused:v==="paused",isPlaceholderData:w,isPreviousData:y,isRefetchError:S&&d.dataUpdatedAt!==0,isStale:mR(t,r),refetch:this.refetch,remove:this.remove}}updateResult(t){const r=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,aR(n,r))return;this.currentResult=n;const o={cache:!0},i=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,l=typeof a=="function"?a():a;if(l==="all"||!l&&!this.trackedProps.size)return!0;const s=new Set(l??this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(u=>{const c=u;return this.currentResult[c]!==r[c]&&s.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),this.notify({...o,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const r=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const r={};t.type==="success"?r.onSuccess=!t.manual:t.type==="error"&&!Y_(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){_o.batch(()=>{if(t.onSuccess){var r,n,o,i;(r=(n=this.options).onSuccess)==null||r.call(n,this.currentResult.data),(o=(i=this.options).onSettled)==null||o.call(i,this.currentResult.data,null)}else if(t.onError){var a,l,s,u;(a=(l=this.options).onError)==null||a.call(l,this.currentResult.error),(s=(u=this.options).onSettled)==null||s.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function mRe(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function nq(e,t){return mRe(e,t)||e.state.dataUpdatedAt>0&&fR(e,t,t.refetchOnMount)}function fR(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&mR(e,t)}return!1}function oq(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&mR(e,r)}function mR(e,t){return e.isStaleByTime(t.staleTime)}function pRe(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!aR(e.getCurrentResult(),t)}class hRe extends rq{constructor(t,r){super(t,r)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,r){super.setOptions({...t,behavior:cR()},r)}getOptimisticResult(t){return t.behavior=cR(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...r}={}){return this.fetch({...r,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...r}={}){return this.fetch({...r,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,r){var n,o,i,a,l,s;const{state:u}=t,c=super.createResult(t,r),{isFetching:d,isRefetching:f}=c,p=d&&((n=u.fetchMeta)==null||(o=n.fetchMore)==null?void 0:o.direction)==="forward",h=d&&((i=u.fetchMeta)==null||(a=i.fetchMore)==null?void 0:a.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:cRe(r,(l=u.data)==null?void 0:l.pages),hasPreviousPage:dRe(r,(s=u.data)==null?void 0:s.pages),isFetchingNextPage:p,isFetchingPreviousPage:h,isRefetching:f&&!p&&!h}}}var iq={exports:{}},pR={};/**
|
|
73
73
|
* @license React
|
|
74
74
|
* use-sync-external-store-shim.production.js
|
|
75
75
|
*
|
|
@@ -222,7 +222,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
222
222
|
*/function Cee(e,t){return e?mXe(e)?m.createElement(e,t):e:null}function mXe(e){return pXe(e)||typeof e=="function"||hXe(e)}function pXe(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function hXe(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function gXe(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=m.useState(()=>({current:uXe(t)})),[n,o]=m.useState(()=>r.current.initialState);return r.current.setOptions(i=>({...i,...e,state:{...n,...e.state},onStateChange:a=>{o(a),e.onStateChange==null||e.onStateChange(a)}})),r.current}function Ib(e,t,r){let n=r.initialDeps??[],o;return()=>{var i,a,l,s;let u;r.key&&((i=r.debug)!=null&&i.call(r))&&(u=Date.now());const c=e();if(!(c.length!==n.length||c.some((p,h)=>n[h]!==p)))return o;n=c;let f;if(r.key&&((a=r.debug)!=null&&a.call(r))&&(f=Date.now()),o=t(...c),r.key&&((l=r.debug)!=null&&l.call(r))){const p=Math.round((Date.now()-u)*100)/100,h=Math.round((Date.now()-f)*100)/100,v=h/16,b=(y,w)=>{for(y=String(y);y.length<w;)y=" "+y;return y};console.info(`%c⏱ ${b(h,5)} /${b(p,5)} ms`,`
|
|
223
223
|
font-size: .6rem;
|
|
224
224
|
font-weight: bold;
|
|
225
|
-
color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,r==null?void 0:r.key)}return(s=r==null?void 0:r.onChange)==null||s.call(r,o),o}}function UL(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const vXe=(e,t)=>Math.abs(e-t)<1,bXe=(e,t,r)=>{let n;return function(...o){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,o),r)}};var aw={NODE_ENV:"production"};const xXe=e=>e,yXe=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let o=t;o<=r;o++)n.push(o);return n},wXe=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const o=a=>{const{width:l,height:s}=a;t({width:Math.round(l),height:Math.round(s)})};if(o(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const i=new n.ResizeObserver(a=>{const l=a[0];if(l!=null&&l.borderBoxSize){const s=l.borderBoxSize[0];if(s){o({width:s.inlineSize,height:s.blockSize});return}}o(r.getBoundingClientRect())});return i.observe(r,{box:"border-box"}),()=>{i.unobserve(r)}},kee={passive:!0},CXe=typeof window>"u"?!0:"onscrollend"in window,kXe=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let o=0;const i=CXe?()=>{}:bXe(n,()=>{t(o,!1)},e.options.isScrollingResetDelay),a=u=>()=>{const{horizontal:c,isRtl:d}=e.options;o=c?r.scrollLeft*(d&&-1||1):r.scrollTop,i(),t(o,u)},l=a(!0),s=a(!1);return s(),r.addEventListener("scroll",l,kee),r.addEventListener("scrollend",s,kee),()=>{r.removeEventListener("scroll",l),r.removeEventListener("scrollend",s)}},_Xe=(e,t,r)=>{if(t!=null&&t.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},TXe=(e,{adjustments:t=0,behavior:r},n)=>{var o,i;const a=e+t;(i=(o=n.scrollElement)==null?void 0:o.scrollTo)==null||i.call(o,{[n.options.horizontal?"left":"top"]:a,behavior:r})};class SXe{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(o=>{o.forEach(i=>{this._measureElement(i.target,i)})}));return{disconnect:()=>{var o;(o=n())==null||o.disconnect(),r=null},observe:o=>{var i;return(i=n())==null?void 0:i.observe(o,{box:"border-box"})},unobserve:o=>{var i;return(i=n())==null?void 0:i.unobserve(o)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,o])=>{typeof o>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:xXe,rangeExtractor:yXe,onChange:()=>{},measureElement:_Xe,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,...r}},this.notify=r=>{var n,o;(o=(n=this.options).onChange)==null||o.call(n,this,r)},this.maybeNotify=Ib(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:aw.NODE_ENV!=="production",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=i,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,n)=>{const o=new Map,i=new Map;for(let a=n-1;a>=0;a--){const l=r[a];if(o.has(l.lane))continue;const s=i.get(l.lane);if(s==null||l.end>s.end?i.set(l.lane,l):l.end<s.end&&o.set(l.lane,!0),o.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((a,l)=>a.end===l.end?a.index-l.index:a.end-l.end)[0]:void 0},this.getMeasurementOptions=Ib(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(r,n,o,i,a)=>(this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:o,getItemKey:i,enabled:a}),{key:!1}),this.getMeasurements=Ib(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:o,getItemKey:i,enabled:a},l)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const s=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,s);for(let c=s;c<r;c++){const d=i(c),f=this.options.lanes===1?u[c-1]:this.getFurthestMeasurement(u,c),p=f?f.end+this.options.gap:n+o,h=l.get(d),v=typeof h=="number"?h:this.options.estimateSize(c),b=p+v,y=f?f.lane:c%this.options.lanes;u[c]={index:c,start:p,size:v,end:b,key:d,lane:y}}return this.measurementsCache=u,u},{key:aw.NODE_ENV!=="production",debug:()=>this.options.debug}),this.calculateRange=Ib(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(r,n,o)=>this.range=r.length>0&&n>0?EXe({measurements:r,outerSize:n,scrollOffset:o}):null,{key:aw.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getIndexes=Ib(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(r,n,o,i)=>n===null?[]:r({startIndex:n.startIndex,endIndex:n.endIndex,overscan:o,count:i}),{key:aw.NODE_ENV!=="production",debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,o=r.getAttribute(n);return o?parseInt(o,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(r,n)=>{const o=this.indexFromElement(r),i=this.measurementsCache[o];if(!i)return;const a=i.key,l=this.elementsCache.get(a);l!==r&&(l&&this.observer.unobserve(l),this.observer.observe(r),this.elementsCache.set(a,r)),r.isConnected&&this.resizeItem(o,this.options.measureElement(r,n,this))},this.resizeItem=(r,n)=>{const o=this.measurementsCache[r];if(!o)return;const i=this.itemSizeCache.get(o.key)??o.size,a=n-i;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,a,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,n)),this.notify(!1))},this.measureElement=r=>{if(!r){this.elementsCache.forEach((n,o)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(o))});return}this._measureElement(r,void 0)},this.getVirtualItems=Ib(()=>[this.getIndexes(),this.getMeasurements()],(r,n)=>{const o=[];for(let i=0,a=r.length;i<a;i++){const l=r[i],s=n[l];o.push(s)}return o},{key:aw.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return UL(n[_ee(0,n.length-1,o=>UL(n[o]).start,r)])},this.getOffsetForAlignment=(r,n)=>{const o=this.getSize(),i=this.getScrollOffset();n==="auto"&&(r<=i?n="start":r>=i+o?n="end":n="start"),n==="start"?r=r:n==="end"?r=r-o:n==="center"&&(r=r-o/2);const a=this.options.horizontal?"scrollWidth":"scrollHeight",s=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[a]:this.scrollElement[a]:0)-o;return Math.max(Math.min(s,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const o=this.measurementsCache[r];if(!o)return;const i=this.getSize(),a=this.getScrollOffset();if(n==="auto")if(o.end>=a+i-this.options.scrollPaddingEnd)n="end";else if(o.start<=a+this.options.scrollPaddingStart)n="start";else return[a,n];const l=n==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(l,n),n]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(r,{align:n="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(r,n),{adjustments:void 0,behavior:o})},this.scrollToIndex=(r,{align:n="auto",behavior:o}={})=>{r=Math.max(0,Math.min(r,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const i=this.getOffsetForIndex(r,n);if(!i)return;const[a,l]=i;this._scrollToOffset(a,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(r))){const[u]=UL(this.getOffsetForIndex(r,l));vXe(u,this.getScrollOffset())||this.scrollToIndex(r,{align:l,behavior:o})}else this.scrollToIndex(r,{align:l,behavior:o})}))},this.scrollBy=(r,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+r,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let o;return n.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((r=n[n.length-1])==null?void 0:r.end)??0:Math.max(...n.slice(-this.options.lanes).map(i=>i.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:n,behavior:o})=>{this.options.scrollToFn(r,{behavior:o,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const _ee=(e,t,r,n)=>{for(;e<=t;){const o=(e+t)/2|0,i=r(o);if(i<n)e=o+1;else if(i>n)t=o-1;else return o}return e>0?e-1:0};function EXe({measurements:e,outerSize:t,scrollOffset:r}){const n=e.length-1,i=_ee(0,n,l=>e[l].start,r);let a=i;for(;a<n&&e[a].end<r+t;)a++;return{startIndex:i,endIndex:a}}const AXe=typeof document<"u"?m.useLayoutEffect:m.useEffect;function OXe(e){const t=m.useReducer(()=>({}),{})[1],r={...e,onChange:(o,i)=>{var a;i?Fn.flushSync(t):t(),(a=e.onChange)==null||a.call(e,o,i)}},[n]=m.useState(()=>new SXe(r));return n.setOptions(r),m.useEffect(()=>n._didMount(),[]),AXe(()=>n._willUpdate()),n}function IXe(e){return OXe({observeElementRect:wXe,observeElementOffset:kXe,scrollToFn:TXe,...e})}const Rb={};function qL(e){if(Rb[e]!==void 0)return Rb[e];const t=e.split(/-[A-Z]+/);if(t.length!==2)return Rb[e]=null,Rb[e];const r=t[0],n=r.split(":"),o=n[n.length-1],i=n.length>1?n.slice(0,n.length-1):[],a=e.substring(r.length+1),[l,...s]=a.split("-"),u=a.substring(l.length).split("--"),c=[],d=[];return u.forEach(f=>{!f.includes("-")&&f?c.push(f):f.split("-").forEach(p=>{p&&d.push(p)})}),Rb[e]={classes:i,attribute:o,component:l,traits:d,states:c},Rb[e]}function Tee(e=[]){const t=[];for(let r=1;r<=e.length;r++)for(let n=0;n<=e.length-r;n++)t.push(e.slice(n,n+r));return t.sort((r,n)=>n.length-r.length)}function RXe(e,t=[]){const r=qL(e);if(!r)return;const n=Tee(r.states),o=Tee(r.traits),i=[];o.forEach(d=>{let f="";d.forEach(p=>{f=`${f}-${p}`}),i.push(f)}),i.push("");const a=[];n.forEach(d=>{let f="";d.forEach(p=>{f=`${f}--${p}`}),a.push(f)}),a.push("");const l=[r.component,...r.classes],s=[];a.forEach(d=>{i.forEach(f=>{l.forEach(p=>{s.push(`${r.attribute}-${p}${f}${d}`)})})});let u;for(let d=t.length-1;d>=0;d--){const f=t[d];let p=s.find(h=>f[h]!==void 0);if(p){u=p;break}}return{forValue:s[0],matchedValue:u,from:s}}const PXe="xmlui",LXe=/(\$[a-zA-Z][a-zA-Z0-9-_]*)/g,HXe=/^(true|false)$/,GL=/^\d*\*$/,NXe={cssProps:{},issues:new Set};function See(e=rr,t){const r={cssProps:{},issues:new Set};w(t)&&(r.cssProps.flexShrink=0),h("width");const n=v(r.cssProps.width,t);n!==null&&(r.cssProps.flex=n,r.cssProps.flexShrink=1),h("minWidth"),h("maxWidth"),h("height");const o=b(r.cssProps.height,t);o!==null&&(r.cssProps.flex=o,r.cssProps.flexShrink=1),h("minHeight"),h("maxHeight"),h("top"),h("right"),h("bottom"),h("left"),h("gap"),h("padding");const i=p("paddingHorizontal");i&&(r.cssProps.paddingLeft=i,r.cssProps.paddingRight=i),h("paddingRight"),h("paddingLeft");const a=p("paddingVertical");a&&(r.cssProps.paddingTop=a,r.cssProps.paddingBottom=a),h("paddingTop"),h("paddingBottom"),h("margin");const l=p("marginHorizontal");l&&(r.cssProps.marginLeft=l,r.cssProps.marginRight=l),h("marginRight"),h("marginLeft");const s=p("marginVertical");s&&(r.cssProps.marginTop=s,r.cssProps.marginBottom=s),h("marginTop"),h("marginBottom"),h("border");const u=p("borderHorizontal");u&&(r.cssProps.borderLeft=u,r.cssProps.borderRight=u),h("borderRight"),h("borderLeft");const c=p("borderVertical");c&&(r.cssProps.borderTop=c,r.cssProps.borderBottom=c),h("borderTop"),h("borderBottom"),h("borderColor"),h("borderStyle"),h("borderWidth"),h("borderRadius"),h("radiusTopLeft","borderTopLeftRadius"),h("radiusTopRight","borderTopRightRadius"),h("radiusBottomLeft","borderBottomLeftRadius"),h("radiusBottomRight","borderBottomRightRadius"),h("color"),h("fontFamily"),h("fontSize"),h("fontWeight"),h("fontStyle"),h("fontVariant"),h("lineBreak"),h("textDecoration"),h("textDecorationLine"),h("textDecorationColor"),h("textDecorationStyle"),h("textDecorationThickness"),h("textIndent"),h("textShadow"),h("textUnderlineOffset"),h("userSelect"),h("letterSpacing"),h("textTransform"),h("lineHeight"),h("textAlign"),h("textAlignLast"),h("textWrap"),h("wordBreak"),h("wordSpacing"),h("wordWrap"),h("writingMode"),h("backgroundColor"),h("background"),h("boxShadow"),h("direction"),h("overflowX"),h("overflowY"),h("zIndex"),h("opacity"),h("zoom"),h("cursor"),h("whiteSpace"),h("outline"),h("outlineWidth"),h("outlineColor"),h("outlineStyle"),h("outlineOffset");const d=p("wrapContent");d&&(r.cssProps.flexWrap=d==="true"?"wrap":"nowrap"),h("canShrink","flexShrink");const f=p("canShrink");if(f&&(r.cssProps.flexShrink=f==="true"?1:0),qp(r.cssProps)&&qp(r.issues))return NXe;return r;function p(k){var S,A;const E=_();if(((S=t==null?void 0:t.mediaSize)==null?void 0:S.sizeIndex)!==void 0){const O=(A=t.mediaSize)==null?void 0:A.sizeIndex,I=_("xs"),L=_("sm"),P=_("md"),H=_("lg"),j=_("xl"),W=_("xxl");let B;switch(O){case 0:B=I??L??P;break;case 1:B=L??P;break;case 2:B=P;break;case 3:B=H;break;case 4:B=j??H;break;case 5:B=W??j??H;break}return B??E}return E;function _(O=""){const I=O?`${k}-${O}`:k;let L=e[I];if(L==null)return;typeof L=="string"?L=L.trim():L=L.toString();const P=L?L.replace(LXe,j=>Ol(j.trim())):void 0;if(L!==P)return P;const H=$Xe[k];if(!H||H.length===0)return P;for(const j of H)if(j.test(P))return P;return r.issues.add(I),P}}function h(k,E=""){const _=p(k);_&&(r.cssProps[E||k]=_)}function v(k,E){return k&&w(E)==="horizontal"&&GL.test(k.toString())?y(k.toString()):null}function b(k,E){return k&&w(E)==="vertical"&&GL.test(k.toString())?y(k.toString()):null}function y(k){if(GL.test(k)){const E=k.slice(0,-1);return E===""?1:parseInt(E,10)}return null}function w(k){if(!k)return;let E=(k==null?void 0:k.type)==="Stack"&&(k==null?void 0:k.orientation);return E==null?void 0:E.toString()}}function Ol(e){return`var(--${PXe}-${e.substring(1)})`}const $Xe={width:[],minWidth:[],maxWidth:[],height:[],minHeight:[],maxHeight:[],gap:[],top:[],right:[],bottom:[],left:[],border:[],borderTop:[],borderRight:[],borderBottom:[],borderLeft:[],borderColor:[],borderStyle:[],borderWidth:[],borderHorizontal:[],borderVertical:[],borderRadius:[],radiusTopLeft:[],radiusTopRight:[],radiusBottomLeft:[],radiusBottomRight:[],padding:[],paddingHorizontal:[],paddingVertical:[],paddingTop:[],paddingRight:[],paddingBottom:[],paddingLeft:[],margin:[],marginHorizontal:[],marginVertical:[],marginTop:[],marginRight:[],marginBottom:[],marginLeft:[],backgroundColor:[],background:[],boxShadow:[],direction:[],overflowX:[],overflowY:[],zIndex:[],opacity:[],color:[],fontFamily:[],fontSize:[],fontWeight:[],fontStyle:[HXe],fontVariant:[],lineBreak:[],textDecoration:[],userSelect:[],letterSpacing:[],textTransform:[],lineHeight:[],textAlign:[],textWrap:[],textAlignLast:[],textIndent:[],textShadow:[],wordBreak:[],wordSpacing:[],wordWrap:[],writingMode:[],wrapContent:[],canShrink:[],cursor:[],zoom:[],whiteSpace:[],textDecorationLine:[],textDecorationColor:[],textDecorationStyle:[],textDecorationThickness:[],textUnderlineOffset:[],outline:[],outlineWidth:[],outlineColor:[],outlineStyle:[],outlineOffset:[],transition:[]};function YL(e){return typeof e=="string"&&(e==null?void 0:e.startsWith("$"))}function KL(e,t={}){let r=e;YL(e)&&(r=e.substring(1));const n=t[r];return typeof n=="string"&&YL(n)?KL(n,t):n}function DXe(e){if(!e)return{};const t=lw(e);return{...kh("color-primary",t),...kh("color-secondary",t),...kh("color-info",t),...kh("color-success",t),...kh("color-warn",t),...kh("color-danger",t),...kh("color-surface",t,{distributeEven:!0})}}function BXe(e){if(!e)return{};const r=lw(e)["space-base"];if(!r||typeof r!="string")return{};let n=r.trim();n.startsWith(".")&&(n=`0${n}`);const o=parseFloat(n);let i=n.replace(o+"","")||"px";if(Number.isNaN(o))return{};const a=[0,.5,1,1.5,2,2.5,3,3.5,4,5,6,7,8,9,10,11,12,14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96],l={};return a.forEach(s=>{l[`space-${(s+"").replace(".","_")}`]=`${s*o}${i}`}),l}function jXe(e){if(!e)return{};const r=lw(e).fontSize;if(!r||typeof r!="string")return{};let n=r.trim();n.startsWith(".")&&(n=`0${n}`);const o=parseFloat(n);let i=n.replace(o+"","")||"px";if(Number.isNaN(o))return{};const a={};return a["fontSize-large"]=`${1.5*o}${i}`,a["fontSize-medium"]=`${1.25*o}${i}`,a["fontSize-semimedium"]=`${1.125*o}${i}`,a["fontSize-normal"]=r,a["fontSize-small"]=`${.875*o}${i}`,a["fontSize-code"]=`${.85*o}${i}`,a["fontSize-smaller"]=`${.75*o}${i}`,a["fontSize-tiny"]=`${.625*o}${i}`,a}function MXe(e){if(!e)return{};const r=lw(e)["fontSize-Text"];if(!r||typeof r!="string")return{};const n={};return n["fontSize-Text-keyboard"]=`calc(${Ol("$fontSize-Text")} * 0.875)`,n["fontSize-Text-sample"]=`calc(${Ol("$fontSize-Text")} * 0.875)`,n["fontSize-Text-sup"]=`calc(${Ol("$fontSize-Text")} * 0.625)`,n["fontSize-Text-sub"]=`calc(${Ol("$fontSize-Text")} * 0.625)`,n["fontSize-Text-title"]=`calc(${Ol("$fontSize-Text")} * 1.5)`,n["fontSize-Text-subtitle"]=`calc(${Ol("$fontSize-Text")} * 1.25)`,n["fontSize-Text-small"]=`calc(${Ol("$fontSize-Text")} * 0.875)`,n["fontSize-Text-placeholder"]=`calc(${Ol("$fontSize-Text")} * 0.875)`,n["fontSize-Text-paragraph"]=Ol("$fontSize-Text"),n["fontSize-Text-subheading"]=`calc(${Ol("$fontSize-Text")} * 0.625)`,n["fontSize-Text-tableheading"]=`calc(${Ol("$fontSize-Text")} * 0.625)`,n["fontSize-Text-secondary"]=`calc(${Ol("$fontSize-Text")} * 0.875)`,n}function zXe(e){if(!e)return{};const t=lw(e),r=["primary","secondary","attention"];let n={};return r.forEach(o=>{const i=QL(XL(t,`color-Button-${o}-solid`),s=>({[`backgroundColor-Button-${o}-solid`]:s.base,[`backgroundColor-Button-${o}-solid--hover`]:s.tone1,[`backgroundColor-Button-${o}-solid--active`]:s.tone2,[`borderColor-Button-${o}-solid`]:s.base,[`borderColor-Button-${o}-solid--hover`]:s.base,[`borderColor-Button-${o}-solid--active`]:s.base,[`textColor-Button-${o}-solid`]:s.tone3,[`textColor-Button-${o}-solid--hover`]:s.tone3,[`textColor-Button-${o}-solid--active`]:s.tone3})),a=QL(XL(t,`color-Button-${o}-outlined`),s=>({[`backgroundColor-Button-${o}-outlined--hover`]:s.alpha1,[`backgroundColor-Button-${o}-outlined--active`]:s.alpha2,[`borderColor-Button-${o}-outlined`]:s.base,[`borderColor-Button-${o}-outlined--hover`]:s.tone1,[`borderColor-Button-${o}-outlined--active`]:s.tone2,[`textColor-Button-${o}-outlined`]:s.base,[`textColor-Button-${o}-outlined--hover`]:s.tone1,[`textColor-Button-${o}-outlined--active`]:s.tone2})),l=QL(XL(t,`color-Button-${o}-ghost`),s=>({[`backgroundColor-Button-${o}-ghost--active`]:s.alpha2,[`backgroundColor-Button-${o}-ghost--hover`]:s.alpha1,[`textColor-Button-${o}-ghost`]:s.base,[`textColor-Button-${o}-ghost--hover`]:s.tone1,[`textColor-Button-${o}-ghost--active`]:s.tone2}));n={...n,...i,...a,...l}}),n}const FXe=/^padding-(?!(?:horizontal|vertical|left|right|top|bottom)-)(.+)$/,WXe=/^paddingHorizontal-(.+)$/,VXe=/^paddingVertical-(.+)$/;function Eee(e){if(!e)return{};const t={...e};return Object.entries(e).forEach(([r,n])=>{var o,i,a,l,s,u,c,d,f,p,h,v,b,y,w,k,E,_,S,A;if(n==null){delete t[r];return}let O=WXe.exec(r);if(O){const j=O[1];t[o=`paddingLeft-${j}`]??(t[o]=n),t[i=`paddingRight-${j}`]??(t[i]=n)}if(O=VXe.exec(r),O){const j=O[1];t[a=`paddingTop-${j}`]??(t[a]=n),t[l=`paddingBottom-${j}`]??(t[l]=n)}if(O=FXe.exec(r),!O)return;const I=O[1],L=e[`paddingHorizontal-${I}`],P=e[`paddingVertical-${I}`],H=n.trim().replace(/ +/g," ").split(" ");switch(H.length){case 1:t[s=`paddingTop-${I}`]??(t[s]=P??H[0]),t[u=`paddingRight-${I}`]??(t[u]=L??H[0]),t[c=`paddingBottom-${I}`]??(t[c]=P??H[0]),t[d=`paddingLeft-${I}`]??(t[d]=L??H[0]);break;case 2:t[f=`paddingTop-${I}`]??(t[f]=P??H[0]),t[p=`paddingRight-${I}`]??(t[p]=L??H[1]),t[h=`paddingBottom-${I}`]??(t[h]=P??H[0]),t[v=`paddingLeft-${I}`]??(t[v]=L??H[1]);break;case 3:t[b=`paddingTop-${I}`]??(t[b]=P??H[0]),t[y=`paddingRight-${I}`]??(t[y]=L??H[1]),t[w=`paddingBottom-${I}`]??(t[w]=P??H[2]),t[k=`paddingLeft-${I}`]??(t[k]=L??H[1]);break;case 4:t[E=`paddingTop-${I}`]??(t[E]=P??H[0]),t[_=`paddingRight-${I}`]??(t[_]=L??H[1]),t[S=`paddingBottom-${I}`]??(t[S]=P??H[2]),t[A=`paddingLeft-${I}`]??(t[A]=L??H[3]);break;default:return}}),t}const UXe=/^border-(.+)$/,qXe=/^borderWidth-(.+)$/,GXe=/^borderHorizontalWidth-(.+)$/,YXe=/^borderVerticalWidth-(.+)$/,KXe=/^borderStyle-(.+)$/,XXe=/^borderHorizontalStyle-(.+)$/,QXe=/^borderVerticalStyle-(.+)$/,ZXe=/^borderLeft-(.+)$/,JXe=/^borderRight-(.+)$/,eQe=/^borderTop-(.+)$/,tQe=/^borderBottom-(.+)$/,rQe=/^borderHorizontal-(.+)$/,nQe=/^borderVertical-(.+)$/,oQe=/^borderColor-(.+)$/,iQe=/^borderHorizontalColor-(.+)$/,aQe=/^borderVerticalColor-(.+)$/;function Aee(e){if(!e)return{};const t={...e};return Object.entries(e).forEach(([n,o])=>{var i,a,l;let s=UXe.exec(n);if(s){const u=s[1];t[`borderLeft-${u}`]=o,t[`borderRight-${u}`]=o,t[`borderTop-${u}`]=o,t[`borderBottom-${u}`]=o;const c=r(o);t[i=`borderWidth-${u}`]??(t[i]=c.thickness),t[a=`borderStyle-${u}`]??(t[a]=c.style),t[l=`borderColor-${u}`]??(t[l]=c.color)}if(s=qXe.exec(n),s){const u=s[1];t[`borderLeftWidth-${u}`]=o,t[`borderRightWidth-${u}`]=o,t[`borderTopWidth-${u}`]=o,t[`borderBottomWidth-${u}`]=o}if(s=KXe.exec(n),s){const u=s[1];t[`borderLeftStyle-${u}`]=o,t[`borderRightStyle-${u}`]=o,t[`borderTopStyle-${u}`]=o,t[`borderBottomStyle-${u}`]=o}if(s=oQe.exec(n),s){const u=s[1];t[`borderLeftColor-${u}`]=o,t[`borderRightColor-${u}`]=o,t[`borderTopColor-${u}`]=o,t[`borderBottomColor-${u}`]=o}if(s=rQe.exec(n),s){const u=s[1];t[`borderLeft-${u}`]=o,t[`borderRight-${u}`]=o;const c=r(o);c.thickness&&(t[`borderLeftWidth-${u}`]=c.thickness,t[`borderRightWidth-${u}`]=c.thickness),c.style&&(t[`borderLeftStyle-${u}`]=c.style,t[`borderRightStyle-${u}`]=c.style),c.color&&(t[`borderLeftColor-${u}`]=c.color,t[`borderRightColor-${u}`]=c.color)}if(s=nQe.exec(n),s){const u=s[1];t[`borderTop-${u}`]=o,t[`borderBottom-${u}`]=o;const c=r(o);c.thickness&&(t[`borderTopWidth-${u}`]=c.thickness,t[`borderBottomWidth-${u}`]=c.thickness),c.style&&(t[`borderTopStyle-${u}`]=c.style,t[`borderBottomStyle-${u}`]=c.style),c.color&&(t[`borderTopColor-${u}`]=c.color,t[`borderBottomColor-${u}`]=c.color)}if(s=ZXe.exec(n),s){const u=s[1],c=r(o);c.thickness&&!e[`borderLeftWidth-${u}`]&&(t[`borderLeftWidth-${u}`]=c.thickness),c.style&&!e[`borderLeftStyle-${u}`]&&(t[`borderLeftStyle-${u}`]=c.style),c.color&&!e[`borderLeftColor-${u}`]&&(t[`borderLeftColor-${u}`]=c.color)}if(s=JXe.exec(n),s){const u=s[1],c=r(o);c.thickness&&(t[`borderRightWidth-${u}`]=c.thickness),c.style&&(t[`borderRightStyle-${u}`]=c.style),c.color&&(t[`borderRightColor-${u}`]=c.color)}if(s=eQe.exec(n),s){const u=s[1],c=r(o);c.thickness&&(t[`borderTopWidth-${u}`]=c.thickness),c.style&&(t[`borderTopStyle-${u}`]=c.style),c.color&&(t[`borderTopColor-${u}`]=c.color)}if(s=tQe.exec(n),s){const u=s[1],c=r(o);c.thickness&&(t[`borderBottomWidth-${u}`]=c.thickness),c.style&&(t[`borderBottomStyle-${u}`]=c.style),c.color&&(t[`borderBottomColor-${u}`]=c.color)}if(s=GXe.exec(n),s){const u=s[1];t[`borderLeftWidth-${u}`]=o,t[`borderRightWidth-${u}`]=o}if(s=YXe.exec(n),s){const u=s[1];t[`borderTopWidth-${u}`]=o,t[`borderBottomWidth-${u}`]=o}if(s=XXe.exec(n),s){const u=s[1];t[`borderLeftStyle-${u}`]=o,t[`borderRightStyle-${u}`]=o}if(s=QXe.exec(n),s){const u=s[1];t[`borderTopStyle-${u}`]=o,t[`borderBottomStyle-${u}`]=o}if(s=iQe.exec(n),s){const u=s[1];t[`borderLeftColor-${u}`]=o,t[`borderRightColor-${u}`]=o}if(s=aQe.exec(n),s){const u=s[1];t[`borderTopColor-${u}`]=o,t[`borderBottomColor-${u}`]=o}}),t;function r(n){var o,i,a;try{const s=new SK(n).parseBorder(),u={style:s.styleValue,thickness:s.widthValue!==void 0?`${s.widthValue}${s.widthUnit??"px"}`:void 0,color:s.color===void 0?void 0:typeof s.color=="string"?s.color:s.color.toString()};if(s.themeId1&&s.themeId2&&s.themeId3)return{thickness:s.themeId1.id,style:s.themeId2.id,color:s.themeId3.id};if(s.themeId1&&s.themeId2)return u.thickness?{thickness:u.thickness,style:s.themeId1.id,color:s.themeId2.id}:u.style?{thickness:s.themeId1.id,style:u.style,color:s.themeId2.id}:{thickness:s.themeId1.id,style:s.themeId2.id,color:u.color};if(s.themeId1){if(u.thickness&&u.style)return{thickness:u.thickness,style:u.style,color:s.themeId1.id};if(u.thickness&&u.color)return{thickness:u.thickness,style:s.themeId1.id,color:u.color};if(u.style&&u.color)return{thickness:s.themeId1.id,style:u.style,color:u.color}}return{thickness:(o=u.thickness)==null?void 0:o.trim(),style:(i=u.style)==null?void 0:i.trim(),color:(a=u.color)==null?void 0:a.trim()}}catch{return{thickness:void 0,style:void 0,color:void 0}}}}function XL(e,t){if(e[t])return e[t];const r=qL(t);if(!r)return null;let n=null,o=null;return Object.keys(e).forEach(i=>{const a=qL(i);if(!(!a||a.component!==r.component||a.attribute!==r.attribute)&&!a.states.length&&a.traits.every(l=>r.traits.includes(l))&&(!n||n.traits.length<=a.traits.length)){n=a,o=i;return}}),o?e[o]:null}function lw(e){const t={};return Object.keys(e).forEach(r=>{t[r]=KL(r,e)}),t}function kh(e,t,r={distributeEven:!1}){try{const{distributeEven:n}=r,o=t[e];if(!o||typeof o!="string")return{};const i=qv(o);let a,l,s,u,c,d,f,p,h,v,b,y,w;if(n)a=i.lightness(100),l=i.lightness(98),s=i.lightness(95),u=i.lightness(83),c=i.lightness(75),d=i.lightness(63),f=i.lightness(52),p=i.lightness(40),h=i.lightness(32),v=i.lightness(27),b=i.lightness(16),y=i.lightness(13),w=i.lightness(9);else{const k=i.hsl().l(),E=k/5,_=(100-k)/5;a=i.lightness(100),l=i.lightness(k+_*4.5),s=i.lightness(k+_*4),u=i.lightness(k+_*3),c=i.lightness(k+_*2),d=i.lightness(k+_*1),f=i.lightness(k),p=i.lightness(k-E*1),h=i.lightness(k-E*2),v=i.lightness(k-E*3),b=i.lightness(k-E*4),y=i.lightness(k-E*4.5),w=i.lightness(k-E*5)}return{[`const-${e}-0`]:a.toString(),[`const-${e}-50`]:l.toString(),[`const-${e}-100`]:s.toString(),[`const-${e}-200`]:u.toString(),[`const-${e}-300`]:c.toString(),[`const-${e}-400`]:d.toString(),[`const-${e}-500`]:f.toString(),[`const-${e}-600`]:p.toString(),[`const-${e}-700`]:h.toString(),[`const-${e}-800`]:v.toString(),[`const-${e}-900`]:b.toString(),[`const-${e}-950`]:y.toString(),[`const-${e}-1000`]:w.toString()}}catch{return console.error("Error generating base tones for color:",e),{}}}function QL(e,t){const r=lQe(e);return r?t(r):{}}function lQe(e){if(!e||typeof e!="string"||e.startsWith("$"))return null;const t=qv(e);let r,n,o;t.isLight()?(r=t.darken(.2).toString(),n=t.darken(.1).toString(),o=t.darken(.95).toString()):(r=t.lighten(.2).toString(),n=t.lighten(.1).toString(),o=t.lighten(.95).toString());const i=t.alpha(.1).toString(),a=t.alpha(.2).toString();return{base:e,tone1:r,tone2:n,tone3:o,alpha1:i,alpha2:a}}const yc={themeVars:`'{"Input:borderRadius-Checkbox-default": "var(--xmlui-borderRadius-Checkbox-default)", "Input:borderColor-Checkbox-default": "var(--xmlui-borderColor-Checkbox-default)", "Input:backgroundColor-Checkbox-default": "var(--xmlui-backgroundColor-Checkbox-default)", "Input:outlineWidth-Checkbox-default--focus": "var(--xmlui-outlineWidth-Checkbox-default--focus)", "Input:outlineColor-Checkbox-default--focus": "var(--xmlui-outlineColor-Checkbox-default--focus)", "Input:outlineStyle-Checkbox-default--focus": "var(--xmlui-outlineStyle-Checkbox-default--focus)", "Input:outlineOffset-Checkbox-default--focus": "var(--xmlui-outlineOffset-Checkbox-default--focus)", "Input:borderColor-Checkbox-default--hover": "var(--xmlui-borderColor-Checkbox-default--hover)", "Input:backgroundColor-Checkbox--disabled": "var(--xmlui-backgroundColor-Checkbox--disabled)", "Input:borderColor-Checkbox--disabled": "var(--xmlui-borderColor-Checkbox--disabled)", "Input:borderRadius-Checkbox-error": "var(--xmlui-borderRadius-Checkbox-error)", "Input:borderColor-Checkbox-error": "var(--xmlui-borderColor-Checkbox-error)", "Input:backgroundColor-Checkbox-error": "var(--xmlui-backgroundColor-Checkbox-error)", "Input:outlineWidth-Checkbox-error--focus": "var(--xmlui-outlineWidth-Checkbox-error--focus)", "Input:outlineColor-Checkbox-error--focus": "var(--xmlui-outlineColor-Checkbox-error--focus)", "Input:outlineStyle-Checkbox-error--focus": "var(--xmlui-outlineStyle-Checkbox-error--focus)", "Input:outlineOffset-Checkbox-error--focus": "var(--xmlui-outlineOffset-Checkbox-error--focus)", "Input:borderRadius-Checkbox-warning": "var(--xmlui-borderRadius-Checkbox-warning)", "Input:borderColor-Checkbox-warning": "var(--xmlui-borderColor-Checkbox-warning)", "Input:backgroundColor-Checkbox-warning": "var(--xmlui-backgroundColor-Checkbox-warning)", "Input:outlineWidth-Checkbox-warning--focus": "var(--xmlui-outlineWidth-Checkbox-warning--focus)", "Input:outlineColor-Checkbox-warning--focus": "var(--xmlui-outlineColor-Checkbox-warning--focus)", "Input:outlineStyle-Checkbox-warning--focus": "var(--xmlui-outlineStyle-Checkbox-warning--focus)", "Input:outlineOffset-Checkbox-warning--focus": "var(--xmlui-outlineOffset-Checkbox-warning--focus)", "Input:borderRadius-Checkbox-success": "var(--xmlui-borderRadius-Checkbox-success)", "Input:borderColor-Checkbox-success": "var(--xmlui-borderColor-Checkbox-success)", "Input:backgroundColor-Checkbox-success": "var(--xmlui-backgroundColor-Checkbox-success)", "Input:outlineWidth-Checkbox-success--focus": "var(--xmlui-outlineWidth-Checkbox-success--focus)", "Input:outlineColor-Checkbox-success--focus": "var(--xmlui-outlineColor-Checkbox-success--focus)", "Input:outlineStyle-Checkbox-success--focus": "var(--xmlui-outlineStyle-Checkbox-success--focus)", "Input:outlineOffset-Checkbox-success--focus": "var(--xmlui-outlineOffset-Checkbox-success--focus)", "backgroundColor-indicator-Checkbox": "var(--xmlui-backgroundColor-indicator-Checkbox)", "Input:borderColor-checked-Checkbox": "var(--xmlui-borderColor-checked-Checkbox)", "Input:backgroundColor-checked-Checkbox": "var(--xmlui-backgroundColor-checked-Checkbox)", "Input:borderColor-checked-Checkbox-error": "var(--xmlui-borderColor-checked-Checkbox-error)", "Input:backgroundColor-checked-Checkbox-error": "var(--xmlui-backgroundColor-checked-Checkbox-error)", "Input:borderColor-checked-Checkbox-warning": "var(--xmlui-borderColor-checked-Checkbox-warning)", "Input:backgroundColor-checked-Checkbox-warning": "var(--xmlui-backgroundColor-checked-Checkbox-warning)", "Input:borderColor-checked-Checkbox-success": "var(--xmlui-borderColor-checked-Checkbox-success)", "Input:backgroundColor-checked-Checkbox-success": "var(--xmlui-backgroundColor-checked-Checkbox-success)", "Input:backgroundColor-Switch": "var(--xmlui-backgroundColor-Switch)", "Input:borderColor-Switch": "var(--xmlui-borderColor-Switch)", "backgroundColor-indicator-Switch": "var(--xmlui-backgroundColor-indicator-Switch)", "backgroundColor-checked-Switch": "var(--xmlui-backgroundColor-checked-Switch)", "backgroundColor-indicator-checked-Switch": "var(--xmlui-backgroundColor-indicator-checked-Switch)", "Input:borderColor-Switch-default--hover": "var(--xmlui-borderColor-Switch-default--hover)", "Input:backgroundColor-Switch--disabled": "var(--xmlui-backgroundColor-Switch--disabled)", "Input:borderColor-Switch--disabled": "var(--xmlui-borderColor-Switch--disabled)", "Input:borderColor-checked-Switch": "var(--xmlui-borderColor-checked-Switch)", "Input:backgroundColor-checked-Switch": "var(--xmlui-backgroundColor-checked-Switch)", "Input:borderColor-checked-Switch-error": "var(--xmlui-borderColor-checked-Switch-error)", "Input:backgroundColor-checked-Switch-error": "var(--xmlui-backgroundColor-checked-Switch-error)", "Input:borderColor-checked-Switch-warning": "var(--xmlui-borderColor-checked-Switch-warning)", "Input:backgroundColor-checked-Switch-warning": "var(--xmlui-backgroundColor-checked-Switch-warning)", "Input:borderColor-checked-Switch-success": "var(--xmlui-borderColor-checked-Switch-success)", "Input:backgroundColor-checked-Switch-success": "var(--xmlui-backgroundColor-checked-Switch-success)", "Input:outlineWidth-Switch--focus": "var(--xmlui-outlineWidth-Switch--focus)", "Input:outlineColor-Switch--focus": "var(--xmlui-outlineColor-Switch--focus)", "Input:outlineStyle-Switch--focus": "var(--xmlui-outlineStyle-Switch--focus)", "Input:outlineOffset-Switch--focus": "var(--xmlui-outlineOffset-Switch--focus)", "backgroundColor-Switch-indicator--disabled": "var(--xmlui-backgroundColor-Switch-indicator--disabled)", "Input:borderColor-Switch-error": "var(--xmlui-borderColor-Switch-error)", "Input:borderColor-Switch-warning": "var(--xmlui-borderColor-Switch-warning)", "Input:borderColor-Switch-success": "var(--xmlui-borderColor-Switch-success)"}'`,resetAppearance:"_resetAppearance_ga4w0_13",label:"_label_ga4w0_21",inputContainer:"_inputContainer_ga4w0_25",checkbox:"_checkbox_ga4w0_33",error:"_error_ga4w0_62",warning:"_warning_ga4w0_73",valid:"_valid_ga4w0_84",switch:"_switch_ga4w0_144"},Il={initialValue:!1,value:!1,enabled:!0,validationStatus:"none",indeterminate:!1},am=m.forwardRef(function({id:t,initialValue:r=Il.initialValue,value:n=Il.value,enabled:o=Il.enabled,style:i,readOnly:a,validationStatus:l=Il.validationStatus,updateState:s=bt,onDidChange:u=bt,onFocus:c=bt,onBlur:d=bt,variant:f="checkbox",indeterminate:p=Il.indeterminate,className:h,label:v,labelPosition:b="end",labelWidth:y,labelBreak:w,required:k,registerComponentApi:E,inputRenderer:_},S){const A=m.useId(),O=t||A,I=Z.useRef(null);m.useEffect(()=>{s({value:r},{initial:!0})},[r,s]);const L=m.useCallback(z=>{var F;((F=I.current)==null?void 0:F.checked)!==z&&(s({value:z}),u(z))},[u,s]),P=m.useCallback(z=>{a||(s({value:z.target.checked}),u(z.target.checked))},[u,a,s]),H=m.useCallback(()=>{c==null||c()},[c]),j=m.useCallback(()=>{d==null||d()},[d]);m.useEffect(()=>{typeof p=="boolean"&&I.current&&(I.current.indeterminate=p)},[p]);const W=m.useCallback(()=>{var z;(z=I.current)==null||z.focus()},[]),B=zt(z=>{L(z)});m.useEffect(()=>{E==null||E({focus:W,setValue:B})},[W,E,B]);const G=m.useMemo(()=>C.jsx("input",{id:O,ref:I,type:"checkbox",role:f,checked:n,disabled:!o,required:k,readOnly:a,"aria-readonly":a,"aria-checked":n,onChange:P,onFocus:H,onBlur:j,className:ze(yc.resetAppearance,h,{[yc.checkbox]:f==="checkbox",[yc.switch]:f==="switch",[yc.error]:l==="error",[yc.warning]:l==="warning",[yc.valid]:l==="valid"})}),[O,h,o,j,H,P,a,k,l,n,f]);return C.jsx(la,{ref:S,id:O,label:v,style:i,labelPosition:b,labelWidth:y,labelBreak:w,required:k,enabled:o,isInputTemplateUsed:!!_,shrinkToLabel:!0,labelStyle:{pointerEvents:a?"none":void 0},children:_?C.jsxs("label",{className:yc.label,children:[C.jsx("div",{className:yc.inputContainer,children:G}),_({$checked:n,$setChecked:B})]}):G})});function sQe({items:e=Ar,visibleItems:t=e,rowsSelectable:r,enableMultiRowSelection:n,rowDisabledPredicate:o,onSelectionDidChange:i}){const[a,l]=m.useState(-1),[s,u]=m.useState(null),{selectedItems:c,setSelectedRowIds:d,refreshSelection:f,idKey:p}=ree(),h=m.useMemo(()=>t.map(P=>P[p]),[p,t]);m.useEffect(()=>{f(r?e:Ar)},[f,e,r]);const v=vd(n);m.useEffect(()=>{v&&!n&&c.length>1&&d([c[0][p]])},[n,p,v,c,d]),m.useEffect(()=>{r&&a!==-1&&!h[a]&&h[0]&&l(0)},[a,r,l,h]);const b=zt((P,H={})=>{if(!r)return;const j=h[P],{shiftKey:W,metaKey:B,ctrlKey:G}=H,z=!n||!W&&!B&&!G;let F,V=[...c.map(N=>N[p])];if(z)F={from:j,to:j},V=[j];else if(W){let N,Y,q,M;if(s){let ee=h.indexOf(s.from),ae=h.indexOf(s.to),oe=Math.min(ee,ae),ue=Math.max(ee,ae);const le=h.slice(oe,ue+1);V=V.filter(J=>!le.includes(J)),q=s.from,M=j;let pe=h.indexOf(q),fe=h.indexOf(M);N=Math.min(pe,fe),Y=Math.max(pe,fe)}else q=j,M=j,N=P,Y=P;const K=h.slice(N,Y+1);V=m$e(V,K),F={from:q,to:M}}else F={from:j,to:j},B||G?V.includes(j)?V=V.filter(N=>N!==j):V.push(j):V=[j];l(P),d(eY(V)),u(F)}),y=zt((P,H)=>{if(!r)return;const j=h.indexOf(P[p]);b(j,H)}),w=zt(P=>{if(r){if(P.key==="ArrowDown"){P.preventDefault();let H=Math.min(t.length-1,a+1);a!==t.length-1&&b(H,P)}if(P.key==="PageDown"){P.preventDefault();const H=Math.min(t.length-1,a+8);b(H,P)}if(P.key==="ArrowUp"){P.preventDefault();let H=Math.max(0,a-1);a>=0&&b(H,P)}if(P.key==="PageUp"){P.preventDefault();const H=Math.max(0,a-8);b(H,P)}}});m.useEffect(()=>{i==null||i(c)},[c,i]);const k=zt(P=>{r&&(!n&&P||d(P?e.filter(H=>o?!o(H):!0).map(H=>H[p]):[]))}),E=m.useMemo(()=>{let P={};return c.forEach(H=>{P[H[p]]=!0}),P},[p,c]),_=m.useCallback(()=>c,[c]),S=m.useCallback(()=>c.map(P=>P[p]),[p,c]),A=m.useCallback(()=>{k(!1)},[k]),O=m.useCallback(()=>{k(!0)},[k]),I=m.useCallback(P=>{if(!r)return;let H=Array.isArray(P)?P:[P];H.length>1&&!n&&(H=[H[0]]),d(H)},[n,r,d]),L=m.useMemo(()=>({getSelectedItems:_,getSelectedIds:S,clearSelection:A,selectAll:O,selectId:I}),[A,S,_,O,I]);return{onKeyDown:w,focusedIndex:a,toggleRowIndex:b,toggleRow:y,checkAllRows:k,selectedRowIdMap:E,selectedItems:c,idKey:p,selectionApi:L}}function uQe(e){return!1}const cQe=42,Oee=e=>{const t=e.getIsPinned();return{left:t==="left"?`${e.getStart("left")}px`:void 0,right:t==="right"?`${e.getAfter("right")}px`:void 0,opacity:t?.95:void 0,position:t?"sticky":"relative",backgroundColor:t?"inherit":void 0,zIndex:t?1:void 0}},dQe=m.forwardRef(({data:e=zi.data,columns:t=zi.columns,isPaginated:r=zi.isPaginated,loading:n=zi.loading,headerHeight:o,rowsSelectable:i=zi.rowsSelectable,enableMultiRowSelection:a=zi.enableMultiRowSelection,pageSizes:l=zi.pageSizes,rowDisabledPredicate:s=uQe,sortBy:u,sortingDirection:c=zi.sortingDirection,iconSortAsc:d,iconSortDesc:f,iconNoSort:p,sortingDidChange:h,willSort:v,style:b,noDataRenderer:y,autoFocus:w=zi.autoFocus,hideHeader:k=zi.hideHeader,hideNoDataView:E=zi.hideNoDataView,alwaysShowSelectionHeader:_=zi.alwaysShowSelectionHeader,registerComponentApi:S,onSelectionDidChange:A,noBottomBorder:O=zi.noBottomBorder},I)=>{var hn,zo,Ir,At;const{getThemeVar:L}=zr(),P=Array.isArray(e)?e:Ar,H=m.useRef(null),j=I?Un(H,I):H,W=m.useRef(null),B=m.useRef(null),G=u!==void 0,z=m.useMemo(()=>t||(P.length?Object.keys(P[0]).map(it=>({header:it,accessorKey:it})):Ar),[t,P]);m.useEffect(()=>{w&&H.current.focus()},[w]);const[F,V]=m.useState(Ar),{toggleRow:N,checkAllRows:Y,focusedIndex:q,onKeyDown:M,selectedRowIdMap:K,idKey:ee,selectionApi:ae}=sQe({items:P,visibleItems:F,rowsSelectable:i,enableMultiRowSelection:a,rowDisabledPredicate:s,onSelectionDidChange:A}),oe=m.useMemo(()=>P.map((it,nt)=>({...it,order:nt+1})),[P]),[ue,le]=m.useState(u),[pe,fe]=m.useState(c);m.useLayoutEffect(()=>{le(u)},[u]),m.useLayoutEffect(()=>{fe(c)},[c]);const J=m.useMemo(()=>!ue||G?oe:ZG(oe,ue,pe==="ascending"?"asc":"desc"),[ue,pe,oe,G]),X=m.useCallback(async it=>{let nt="ascending",lt=it;ue===it&&(pe==="ascending"?nt="descending":lt=void 0),await(v==null?void 0:v(lt,nt))!==!1&&(fe(nt),le(lt),h==null||h(lt,nt))},[ue,v,h,pe]),te=m.useMemo(()=>z.map((it,nt)=>{const{width:lt,starSizedWidth:ct}=Cr(it.width,!0,"width"),{width:Rr}=Cr(it.minWidth,!1,"minWidth"),{width:fr}=Cr(it.maxWidth,!1,"maxWidth");return{...it,header:it.header??it.accessorKey??" ",id:"col_"+nt,size:lt,minSize:Rr,maxSize:fr,enableResizing:it.canResize,enableSorting:it.canSort&&!!it.accessorKey,enablePinning:it.pinTo!==void 0,meta:{starSizedWidth:ct,pinTo:it.pinTo,style:it.style,accessorKey:it.accessorKey,cellRenderer:it.cellRenderer}};function Cr(Gr,ur,il){let td,Ks;const Oa=YL(Gr)?L(Gr):Gr;if(typeof Oa=="number")Ks=Oa;else if(typeof Oa=="string"){const Xu=Oa.match(/^\s*\*\s*$/);if(ur&&Xu)td="1*";else{const IO=Oa.match(/^\s*(\d+)\s*\*\s*$/);if(ur&&IO)td=IO[1]+"*";else{const bp=Oa.match(/^\s*(\d+)\s*(px)?\s*$/);if(bp)Ks=Number(bp[1]);else throw new Error(`Invalid TableColumnDef '${il}' value: ${Oa}`)}}}return Ks===void 0&&td===void 0&&ur&&(td="1*"),{width:Ks,starSizedWidth:td}}}),[L,z]),ie=m.useMemo(()=>i?[{id:"select",size:cQe,enableResizing:!1,enablePinning:!0,meta:{pinTo:"left"},header:({table:nt})=>a?C.jsx(am,{className:ze(Vr.checkBoxWrapper,{[Vr.showInHeader]:_}),value:nt.getIsAllRowsSelected(),indeterminate:nt.getIsSomeRowsSelected(),onDidChange:()=>{const lt=nt.getRowModel().rows.every(ct=>s(ct.original)||ct.getIsSelected());Y(!lt)}}):null,cell:({row:nt})=>C.jsx(am,{className:Vr.checkBoxWrapper,value:nt.getIsSelected(),indeterminate:nt.getIsSomeSelected(),onDidChange:()=>{N(nt.original,{metaKey:!0})}})},...te]:te,[i,te,a,_,Y,N]),[de,be]=m.useState({pageSize:r?l[0]:Number.MAX_VALUE,pageIndex:0}),xe=vd(r);m.useEffect(()=>{!xe&&r&&be(it=>({...it,pageSize:l[0]})),xe&&!r&&be(it=>({pageIndex:0,pageSize:Number.MAX_VALUE}))},[r,l,xe]);const[Ie,Ne]=m.useState({}),Se=m.useMemo(()=>{const it=[],nt=[];return ie.forEach(lt=>{var ct,Rr;((ct=lt.meta)==null?void 0:ct.pinTo)==="right"&&nt.push(lt.id),((Rr=lt.meta)==null?void 0:Rr.pinTo)==="left"&&it.push(lt.id)}),{left:it,right:nt}},[ie]),_e=gXe({columns:ie,data:J,getCoreRowModel:cXe(),getPaginationRowModel:r?fXe():void 0,enableRowSelection:i,enableMultiRowSelection:a,columnResizeMode:"onChange",getRowId:m.useCallback(it=>it[ee]+"",[ee]),state:m.useMemo(()=>({pagination:de,rowSelection:K,columnSizing:Ie,columnPinning:Se}),[Se,Ie,de,K]),onColumnSizingChange:Ne,onPaginationChange:be}),Ve=_e.getRowModel().rows;m.useEffect(()=>{V(Ve.map(it=>it.original))},[Ve]);const Ee=m.useContext(dc),je=Ee&&(b==null?void 0:b.maxHeight)===void 0&&(b==null?void 0:b.height)===void 0&&(b==null?void 0:b.flex)===void 0,Ce=eK(je,H,Ee),Te=IXe({count:Ve.length,getScrollElement:m.useCallback(()=>je&&(Ee!=null&&Ee.current)?Ee==null?void 0:Ee.current:H.current,[Ee,je]),scrollMargin:Ce,estimateSize:m.useCallback(()=>B.current||30,[]),overscan:5}),He=Te.getVirtualItems().length>0&&((zo=(hn=Te.getVirtualItems())==null?void 0:hn[0])==null?void 0:zo.start)-Ce||0,st=Te.getVirtualItems().length>0?Te.getTotalSize()-(((At=(Ir=Te.getVirtualItems())==null?void 0:Ir[Te.getVirtualItems().length-1])==null?void 0:At.end)-Ce||0):0,ut=P.length!==0,It=m.useRef({}),sr=m.useCallback(it=>{It.current[it]=!0},[]),tr=zt(()=>{if(!W.current)return;let it=W.current.clientWidth-1;const nt={},lt=[],ct={};_e.getAllColumns().forEach(fr=>{var ii,Cr;if(fr.columnDef.size!==void 0||It.current[fr.id])it-=Ie[fr.id]||fr.columnDef.size||0;else{lt.push(fr);let Gr;(ii=fr.columnDef.meta)!=null&&ii.starSizedWidth?Gr=Number((Cr=fr.columnDef.meta)==null?void 0:Cr.starSizedWidth.replace("*","").trim())||1:Gr=1,ct[fr.id]=Gr}});const Rr=Object.values(ct).reduce((fr,ii)=>fr+ii,0);lt.forEach(fr=>{nt[fr.id]=Math.floor(it*(ct[fr.id]/Rr))}),Fn.flushSync(()=>{Ne(fr=>({...fr,...nt}))})});return YT(W,tr),Sn(()=>{queueMicrotask(()=>{tr()})},[tr,z]),Sn(()=>{S(ae)},[S,ae]),C.jsxs("div",{className:ze(Vr.wrapper,{[Vr.noScroll]:je}),tabIndex:-1,onKeyDown:M,ref:j,style:b,children:[C.jsxs("table",{className:Vr.table,ref:W,style:{borderRight:"1px solid transparent"},children:[!k&&C.jsx("thead",{style:{height:o},className:Vr.headerWrapper,children:_e.getHeaderGroups().map((it,nt)=>C.jsx("tr",{className:ze(Vr.headerRow,{[Vr.allSelected]:_e.getIsAllRowsSelected()}),children:it.headers.map((lt,ct)=>{var Cr,Gr,ur;const{width:Rr,...fr}=((Cr=lt.column.columnDef.meta)==null?void 0:Cr.style)||{},ii=lt.getSize();return C.jsxs("th",{className:Vr.columnCell,colSpan:lt.colSpan,style:{position:"relative",width:ii,...Oee(lt.column)},children:[C.jsx(fQe,{hasSorting:lt.column.columnDef.enableSorting&&!!((Gr=lt.column.columnDef.meta)!=null&&Gr.accessorKey),updateSorting:()=>{var il;return X((il=lt.column.columnDef.meta)==null?void 0:il.accessorKey)},children:C.jsxs("div",{className:Vr.headerContent,style:fr,children:[Cee(lt.column.columnDef.header,lt.getContext()),lt.column.columnDef.enableSorting&&C.jsx("span",{style:{display:"inline-flex",maxWidth:16},children:C.jsx(mQe,{iconSortAsc:d,iconSortDesc:f,iconNoSort:p,direction:((ur=lt.column.columnDef.meta)==null?void 0:ur.accessorKey)===ue?pe:void 0})})]})}),lt.column.getCanResize()&&C.jsx("div",{onDoubleClick:()=>{It.current[lt.column.id]=!1,lt.column.columnDef.size!==void 0?lt.column.resetSize():tr()},onMouseDown:il=>{sr(lt.column.id),lt.getResizeHandler()(il)},onTouchStart:il=>{sr(lt.column.id),lt.getResizeHandler()(il)},className:ze(Vr.resizer,{[Vr.isResizing]:lt.column.getIsResizing()})})]},`${lt.id}-${ct}`)})},`${it.id}-${nt}`))}),ut&&C.jsxs("tbody",{className:Vr.tableBody,children:[He>0&&C.jsx("tr",{children:C.jsx("td",{style:{height:`${He}px`}})}),Te.getVirtualItems().map(it=>{const nt=it.index,lt=Ve[nt];return C.jsx("tr",{"data-index":nt,className:ze(Vr.row,{[Vr.selected]:lt.getIsSelected(),[Vr.focused]:q===nt,[Vr.disabled]:s(lt.original),[Vr.noBottomBorder]:O}),ref:ct=>{ct&&B.current===null&&(B.current=Math.round(ct.getBoundingClientRect().height)),Te.measureElement(ct)},onClick:ct=>{ct.defaultPrevented||ct.target.tagName.toLowerCase()==="input"||N(lt.original,ct)},children:lt.getVisibleCells().map((ct,Rr)=>{var Cr,Gr;const fr=(Gr=(Cr=ct.column.columnDef)==null?void 0:Cr.meta)==null?void 0:Gr.cellRenderer,ii=ct.column.getSize();return C.jsx("td",{className:Vr.cell,style:{width:ii,...Oee(ct.column)},children:C.jsx("div",{className:Vr.cellContent,children:fr?fr(ct.row.original,nt,Rr,ct==null?void 0:ct.getValue()):Cee(ct.column.columnDef.cell,ct.getContext())})},`${ct.id}-${Rr}`)})},`${lt.id}-${nt}`)}),st>0&&C.jsx("tr",{children:C.jsx("td",{style:{height:`${st}px`}})})]})]}),n&&!ut&&C.jsx("div",{className:Vr.loadingWrapper,children:C.jsx(my,{})}),!E&&!n&&!ut&&(y?y():C.jsx("div",{className:Vr.noRows,children:"No data available"})),r&&ut&&Ve.length>0&&de&&C.jsxs("div",{className:Vr.pagination,children:[C.jsx("div",{style:{flex:1},children:C.jsxs("span",{className:Vr.paginationLabel,children:["Showing ",Ve[0].original.order," to ",Ve[Ve.length-1].original.order," of"," ",P.length," entries"]})}),l.length>1&&C.jsxs("div",{children:[C.jsx("span",{className:Vr.paginationLabel,children:"Rows per page"}),C.jsx("select",{className:Vr.paginationSelect,value:de.pageSize,onChange:it=>{_e.setPageSize(Number(it.target.value))},children:l.map(it=>C.jsx("option",{value:it,children:it},it))})]}),C.jsxs("div",{className:Vr.paginationButtons,children:[C.jsx(cn,{onClick:()=>_e.setPageIndex(0),disabled:!_e.getCanPreviousPage(),type:"button",variant:"ghost",children:C.jsx(mKe,{})}),C.jsx(cn,{onClick:()=>_e.previousPage(),disabled:!_e.getCanPreviousPage(),type:"button",variant:"ghost",children:C.jsx(aee,{})}),C.jsx(cn,{onClick:()=>_e.nextPage(),disabled:!_e.getCanNextPage(),type:"button",variant:"ghost",children:C.jsx(lee,{})}),C.jsx(cn,{onClick:()=>_e.setPageIndex(_e.getPageCount()-1),disabled:!_e.getCanNextPage(),type:"button",variant:"ghost",children:C.jsx(pKe,{})})]})]})]})});function fQe({hasSorting:e,updateSorting:t,children:r}){return e?C.jsx("button",{className:Vr.clickableHeader,onClick:t,children:r}):C.jsx(C.Fragment,{children:r})}function mQe({direction:e,iconSortAsc:t="sortasc:Table",iconSortDesc:r="sortdesc:Table",iconNoSort:n="nosort:Table"}){return e==="ascending"?C.jsx(xt,{name:t,fallback:"sortasc",size:"12"}):e==="descending"?C.jsx(xt,{name:r,fallback:"sortdesc",size:"12"}):n!=="-"?C.jsx(xt,{name:n,fallback:"nosort",size:"12"}):C.jsx(xt,{name:n,size:"12"})}const zi={data:Ar,columns:Ar,isPaginated:!1,loading:!1,rowsSelectable:!1,enableMultiRowSelection:!0,pageSizes:[10],sortingDirection:"ascending",autoFocus:!1,hideHeader:!1,hideNoDataView:!1,alwaysShowSelectionHeader:!1,noBottomBorder:!1},Hr="Table",Iee={status:"stable",description:"`Table` presents structured data for viewing, sorting, selection, and interaction.",props:{items:Vn("You can use `items` as an alias for the `data` property. When you bind the table to a data source (e.g. an API endpoint), the `data` acts as the property that accepts a URL to fetch information from an API. When both `items` and `data` are used, `items` has priority."),data:re("The component receives data via this property. The `data` property is a list of items that the `Table` can display."),isPaginated:{description:`This property adds pagination controls to the \`${Hr}\`.`,valueType:"boolean",defaultValue:zi.isPaginated},loading:re("This boolean property indicates if the component is fetching (or processing) data. This property is useful when data is loaded conditionally or receiving it takes some time."),headerHeight:re("This optional property is used to specify the height of the table header."),rowsSelectable:re("Indicates whether the rows are selectable (`true`) or not (`false`)."),pageSizes:{description:"This property holds an array of page sizes (numbers) the user can select for pagination. If this property is not defined, the component allows only a page size of 10 items."},rowDisabledPredicate:re("This property defines a predicate function with a return value that determines if the row should be disabled. The function retrieves the item to display and should return a Boolean-like value."),noDataTemplate:xr("A property to customize what to display if the table does not contain any data."),sortBy:re("This property is used to determine which data property to sort by. If not defined, the data is not sorted"),sortDirection:re("This property determines the sort order to be `ascending` or `descending`. This property only works if the [`sortBy`](#sortby) property is also set. By default ascending order is used."),autoFocus:Bi(),hideHeader:{description:"Set the header visibility using this property. Set it to `true` to hide the header.",valueType:"boolean",defaultValue:zi.hideHeader},iconNoSort:re(`Allows setting an alternate icon displayed in the ${Hr} column header when sorting is enabled, but the column remains unsorted. You can change the default icon for all ${Hr} instances with the "icon.nosort:Table" declaration in the app configuration file.`),iconSortAsc:re(`Allows setting an alernate icon displayed in the ${Hr} column header when sorting is enabled, and the column is sorted in ascending order. You can change the default icon for all ${Hr} instances with the "icon.sortasc:Table" declaration in the app configuration file.`),iconSortDesc:re(`Allows setting an alternate icon displayed in the ${Hr} column header when sorting is enabled, and the column is sorted in descending order. You can change the default icon for all ${Hr} instances with the "icon.sortdesc:Table" declaration in the app configuration file.`),enableMultiRowSelection:{description:"This boolean property indicates whether you can select multiple rows in the table. This property only has an effect when the rowsSelectable property is set. Setting it to `false` limits selection to a single row.",valueType:"boolean",defaultValue:zi.enableMultiRowSelection},alwaysShowSelectionHeader:{description:"This property indicates when the row selection header is displayed. When the value is `true,` the selection header is always visible. Otherwise, it is displayed only when hovered.",valueType:"boolean",defaultValue:!1},noBottomBorder:{description:"This property indicates whether the table should have a bottom border. When set to `true`, the table does not have a bottom border. Otherwise, it has a bottom border.",valueType:"boolean",defaultValue:!1}},events:{sortingDidChange:re("This event is fired when the table data sorting has changed. It has two arguments: the column's name and the sort direction. When the column name is empty, the table displays the data list as it received it."),willSort:re("This event is fired before the table data is sorted. It has two arguments: the column's name and the sort direction. When the method returns a literal `false` value (and not any other falsy one), the method indicates that the sorting should be aborted."),selectionDidChange:re("This event is triggered when the table's current selection (the rows selected) changes. Its parameter is an array of the selected table row items. ")},apis:{clearSelection:re("This method clears the list of currently selected table rows."),getSelectedItems:re("This method returns the list of currently selected table rows items."),getSelectedIds:re("This method returns the list of currently selected table rows IDs."),selectAll:re("This method selects all the rows in the table. This method has no effect if the rowsSelectable property is set to `false`."),selectId:re("This method selects the row with the specified ID. This method has no effect if the `rowsSelectable` property is set to `false`. The method argument can be a single id or an array of them.")},themeVars:Ze(Vr.themeVars),defaultThemeVars:{[`padding-heading-${Hr}`]:"$space-2 $space-0 $space-2 $space-2",[`padding-cell-${Hr}`]:"$space-2 $space-0 $space-2 $space-2",[`paddingHorizontal-cell-first-${Hr}`]:"$space-5",[`paddingHorizontal-cell-last-${Hr}`]:"$space-0",[`border-cell-${Hr}`]:"1px solid $borderColor",[`outlineWidth-heading-${Hr}--focus`]:"$outlineWidth--focus",[`outlineStyle-heading-${Hr}--focus`]:"$outlineStyle--focus",[`outlineOffset-heading-${Hr}--focus`]:"$outlineOffset--focus",[`fontSize-heading-${Hr}`]:"$fontSize-tiny",[`fontWeight-heading-${Hr}`]:"$fontWeight-bold",[`textTransform-heading-${Hr}`]:"uppercase",[`fontSize-row-${Hr}`]:"$fontSize-small",[`backgroundColor-selected-${Hr}--hover`]:`$backgroundColor-row-${Hr}--hover`,[`backgroundColor-pagination-${Hr}`]:`$backgroundColor-${Hr}`,[`outlineColor-heading-${Hr}--focus`]:"$outlineColor--focus",[`textColor-pagination-${Hr}`]:"$color-secondary",[`backgroundColor-row-${Hr}--hover`]:"$color-primary-50",[`backgroundColor-selected-${Hr}`]:"$color-primary-100",[`backgroundColor-heading-${Hr}--hover`]:"$color-surface-200",[`backgroundColor-heading-${Hr}--active`]:"$color-surface-300",[`backgroundColor-heading-${Hr}`]:"$color-surface-100",[`textColor-heading-${Hr}`]:"$color-surface-500"}},pQe=m.forwardRef(({extractValue:e,node:t,renderChild:r,lookupEventHandler:n,lookupSyncCallback:o,layoutCss:i,registerComponentApi:a},l)=>{var _,S,A,O,I,L;const s=e(t.props.items)||e(t.props.data),[u,c]=m.useState(Ar),[d,f]=m.useState(rr),p=m.useRef([]),[h,v]=m.useState(0),b=m.useMemo(()=>({registerColumn:(P,H)=>{c(fl(j=>{j.findIndex(B=>B===H)<0&&j.push(H)})),f(fl(j=>{j[H]=P}))},unRegisterColumn:P=>{c(fl(H=>H.filter(j=>j!==P))),f(fl(H=>{delete H[P]}))}}),[]),y=m.useMemo(()=>({registerColumn:(P,H)=>{p.current.find(j=>j===H)||(v(j=>j+1),p.current.push(H))},unRegisterColumn:P=>{p.current.find(H=>H===P)&&(p.current=p.current.filter(H=>H!==P),v(H=>H+1))}}),[]),w=m.useMemo(()=>u.map(P=>d[P]),[u,d]),k=ree(),E=C.jsxs(C.Fragment,{children:[C.jsx(AL.Provider,{value:b,children:r(t.children)},h),C.jsx(AL.Provider,{value:y,children:r(t.children)}),C.jsx(dQe,{ref:l,data:s,columns:w,pageSizes:e(t.props.pageSizes),rowsSelectable:e.asOptionalBoolean(t.props.rowsSelectable),registerComponentApi:a,noDataRenderer:t.props.noDataTemplate&&(()=>r(t.props.noDataTemplate)),hideNoDataView:t.props.noDataTemplate===null||t.props.noDataTemplate==="",loading:e.asOptionalBoolean(t.props.loading),isPaginated:e.asOptionalBoolean((_=t.props)==null?void 0:_.isPaginated),headerHeight:e.asSize(t.props.headerHeight),rowDisabledPredicate:o(t.props.rowDisabledPredicate),sortBy:e((S=t.props)==null?void 0:S.sortBy),sortingDirection:e((A=t.props)==null?void 0:A.sortDirection),iconSortAsc:e.asOptionalString((O=t.props)==null?void 0:O.iconSortAsc),iconSortDesc:e.asOptionalString((I=t.props)==null?void 0:I.iconSortDesc),iconNoSort:e.asOptionalString((L=t.props)==null?void 0:L.iconNoSort),sortingDidChange:n("sortingDidChange"),onSelectionDidChange:n("selectionDidChange"),willSort:n("willSort"),style:i,uid:t.uid,autoFocus:e.asOptionalBoolean(t.props.autoFocus),hideHeader:e.asOptionalBoolean(t.props.hideHeader),enableMultiRowSelection:e.asOptionalBoolean(t.props.enableMultiRowSelection),alwaysShowSelectionHeader:e.asOptionalBoolean(t.props.alwaysShowSelectionHeader),noBottomBorder:e.asOptionalBoolean(t.props.noBottomBorder)})]});return k===null?C.jsx(iKe,{children:E}):E}),hQe=we(Hr,Iee,({extractValue:e,node:t,renderChild:r,lookupEventHandler:n,lookupSyncCallback:o,layoutCss:i,registerComponentApi:a})=>C.jsx(pQe,{node:t,extractValue:e,lookupEventHandler:n,lookupSyncCallback:o,layoutCss:i,renderChild:r,registerComponentApi:a})),ZL={themeVars:'"[]"',wrapper:"_wrapper_1c2sc_13",sentinel:"_sentinel_1c2sc_17"};var O3={},I3={},Pb={};Object.defineProperty(Pb,"__esModule",{value:!0}),Pb.unlisten=Pb.listen=void 0;const sw=[],R3=[];function gQe(e){return{el:e,callbacks:{},realCallbacks:{},realListenersCnt:0}}function vQe(e,t,r){if(e.callbacks[t]){e.callbacks[t].indexOf(r)===-1&&e.callbacks[t].push(r);return}e.callbacks[t]=[r],e.realCallbacks[t]=n=>{for(let o=0,i=e.callbacks[t].length;o<i;o+=1)e.callbacks[t][o](n)},e.el.addEventListener(t,e.realCallbacks[t]),e.realListenersCnt+=1}function bQe(e,t,r){if(!e.callbacks[t])return;const n=e.callbacks[t].indexOf(r);n!==-1&&(e.callbacks[t].splice(n,1),!(e.callbacks[t].length>0)&&(e.el.removeEventListener(t,e.realCallbacks[t]),delete e.callbacks[t],delete e.realCallbacks[t],e.realListenersCnt-=1))}function xQe(e,t,r){let n=sw.indexOf(e);n===-1&&(n=sw.length,sw.push(e),R3.push(gQe(e)));const o=R3[n];vQe(o,t,r)}function yQe(e,t,r){const n=sw.indexOf(e);if(n===-1)return;const o=R3[n];bQe(o,t,r),!(o.realListenersCnt>0)&&(sw.splice(n,1),R3.splice(n,1))}function wQe(e,t,r){for(let n=0,o=t.length;n<o;n+=1)xQe(e,t[n],r)}Pb.listen=wQe;function CQe(e,t,r){for(let n=0,o=t.length;n<o;n+=1)yQe(e,t[n],r)}Pb.unlisten=CQe;var JL={};Object.defineProperty(JL,"__esModule",{value:!0});const uw={};typeof document<"u"&&(uw.body=document.body,uw.window=window,uw.document=document);const Ree=(()=>{if(typeof document<"u"&&document.body){const e=document.body;return typeof e.matches=="function"?"matches":typeof e.webkitMatchesSelector=="function"?"webkitMatchesSelector":typeof e.mozMatchesSelector=="function"?"mozMatchesSelector":typeof e.msMatchesSelector=="function"?"msMatchesSelector":typeof e.oMatchesSelector=="function"?"oMatchesSelector":null}return null})();function kQe(e,t){if(!e)return null;if(uw.hasOwnProperty(e))return uw[e];if(e[0]==="#")return document.getElementById(e.slice(1));if(Ree===null)return null;let r=t;for(;r=r.parentElement;)if(r[Ree](e))return r||null;return null}JL.default=kQe;var eH={};Object.defineProperty(eH,"__esModule",{value:!0});function _Qe(e){do{const t=window.getComputedStyle(e);if(t.transform!=="none"||t.webkitTransform!=="none")return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}eH.default=_Qe;var lm={};Object.defineProperty(lm,"__esModule",{value:!0}),lm.isIntersecting=lm.getRect=lm.infiniteRect=void 0,lm.infiniteRect={top:-1/0,bottom:1/0,height:1/0,left:-1/0,right:1/0,width:1/0};function TQe(e){return e&&"getBoundingClientRect"in e&&typeof e.getBoundingClientRect=="function"?e.getBoundingClientRect():e===window||e===document?{top:0,left:0,bottom:window.innerHeight,height:window.innerHeight,width:window.innerWidth,right:window.innerWidth}:{top:0,left:0,right:0,bottom:0,width:0,height:0}}lm.getRect=TQe;function SQe(e,t,r,n){const o=e.top+r,i=e.bottom+n;return o>=t.top&&o<=t.bottom||i>=t.top&&i<=t.bottom||i>=t.bottom&&o<=t.top}lm.isIntersecting=SQe;var Pee=jr&&jr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(I3,"__esModule",{value:!0});const EQe=m,cw=Pb,Lee=Pee(JL),AQe=Pee(eH),dw=lm,OQe=(e,t)=>{const{bottomOffset:r,hideOnBoundaryHit:n}=t,{top:o,height:i,width:a,boundaryBottom:l}=e;return n||o+i+r<l?{top:`${o}px`,width:`${a}px`,position:"fixed"}:!n&&l>0?{top:`${l-i-r}px`,width:`${a}px`,position:"fixed"}:{width:`${a}px`,bottom:`${r}px`,position:"absolute"}},IQe=(e,t)=>{const{bottomOffset:r,hideOnBoundaryHit:n}=t,{bottom:o,height:i,width:a,boundaryTop:l}=e;return n||o-i-r>l?{width:`${a}px`,top:`${o-i}px`,position:"fixed"}:{width:`${a}px`,top:`${r}px`,position:"absolute"}},RQe=(e,t,r)=>(e==="top"?OQe:IQe)(r,t),PQe=(e,t)=>{const r=e.wrapperStyles,n=t.wrapperStyles;if(e.isFixed!==t.isFixed||e.height!==t.height||!r&&n||r&&!n)return!1;if(!n)return!0;for(const o in r)if(r.hasOwnProperty(o)&&r[o]!==n[o])return!1;return!0};class Hee extends EQe.Component{constructor(){super(...arguments),this.holderEl=null,this.wrapperEl=null,this.el=null,this.scrollEl=null,this.boundaryEl=null,this.disabled=!1,this.checkPositionIntervalId=null,this.lastMinHeight=null,this.state={isFixed:!1,wrapperStyles:void 0,holderStyles:void 0,height:0},this.holderRef=t=>{t!==this.holderEl&&(this.holderEl=t)},this.wrapperRef=t=>{t!==this.wrapperEl&&(this.wrapperEl=t,this.updateScrollEl(),this.updateBoundaryEl())},this.checkPosition=()=>{const{holderEl:t,wrapperEl:r,boundaryEl:n,scrollEl:o,disabled:i}=this;if(!o||!t||!r){console.error("Missing required elements:",{scrollEl:o,holderEl:t,wrapperEl:r});return}const{mode:a,onFixedToggle:l,offsetTransforms:s,isIOSFixEnabled:u,dontUpdateHolderHeightWhenSticky:c}=this.props;if(i){this.state.isFixed&&this.setState({isFixed:!1,wrapperStyles:{}});return}if(!t.getBoundingClientRect||!r.getBoundingClientRect)return;const d=t.getBoundingClientRect(),f=r.getBoundingClientRect(),p=n?(0,dw.getRect)(n):dw.infiniteRect,h=(0,dw.getRect)(o),v=this.isFixed(d,f,p,h);let b=null;if(s&&v&&o instanceof HTMLElement){const E=(0,AQe.default)(o);E&&(b=(0,dw.getRect)(E))}const y=this.state.isFixed&&c&&this.lastMinHeight?this.lastMinHeight:f.height;this.lastMinHeight=y;const w=u?{transform:"translateZ(0)",WebkitTransform:"translateZ(0)"}:void 0,k={isFixed:v,height:f.height,holderStyles:{minHeight:`${y}px`},wrapperStyles:v?Object.assign(Object.assign({},w),RQe(a,this.props,{boundaryTop:a==="bottom"?p.top:0,boundaryBottom:a==="top"?p.bottom:0,top:a==="top"?h.top-(b?b.top:0):0,bottom:a==="bottom"?h.bottom-(b?b.bottom:0):0,width:d.width,height:f.height})):w};v!==this.state.isFixed&&l&&typeof l=="function"&&l(v),PQe(this.state,k)||this.setState(k)}}isFixed(t,r,n,o){const{hideOnBoundaryHit:i,bottomOffset:a,topOffset:l,mode:s}=this.props;if(this.disabled||i&&n&&!(0,dw.isIntersecting)(n,o,l,a))return!1;const u=i?r.height+a:0;return s==="top"?t.top+l<o.top&&o.top+u<=n.bottom:t.bottom-l>o.bottom&&o.bottom-u>=n.top}updateScrollEl(){if(!this.wrapperEl)return;this.scrollEl&&((0,cw.unlisten)(this.scrollEl,["scroll"],this.checkPosition),this.scrollEl=null);const{scrollElement:t}=this.props;typeof t=="string"?this.scrollEl=(0,Lee.default)(t,this.wrapperEl):this.scrollEl=t,this.scrollEl?(0,cw.listen)(this.scrollEl,["scroll"],this.checkPosition):console.error("Cannot find scrollElement "+(typeof t=="string"?t:"unknown"))}updateBoundaryEl(){if(!this.wrapperEl)return;const{boundaryElement:t}=this.props;this.boundaryEl=(0,Lee.default)(t,this.wrapperEl),(this.boundaryEl===window||this.boundaryEl===document)&&(this.boundaryEl=null)}initialize(){const{positionRecheckInterval:t,disabled:r}=this.props;this.disabled=r,(0,cw.listen)(window,["scroll","resize","pageshow","load"],this.checkPosition),this.checkPosition(),t&&(this.checkPositionIntervalId=setInterval(this.checkPosition,t))}componentDidUpdate({scrollElement:t,boundaryElement:r,disabled:n}){(t!==this.props.scrollElement||this.scrollEl===null)&&this.updateScrollEl(),(r!==this.props.boundaryElement||this.boundaryEl===null)&&this.updateBoundaryEl(),n!==this.props.disabled&&(this.disabled=this.props.disabled,this.checkPosition())}componentDidMount(){this.initialize(),this.wrapperEl===null&&console.error("Wrapper element is missing, please make sure that you have assigned refs correctly")}componentWillUnmount(){this.scrollEl&&(0,cw.unlisten)(this.scrollEl,["scroll"],this.checkPosition),(0,cw.unlisten)(window,["scroll","resize","pageshow","load"],this.checkPosition),this.boundaryEl=null,this.scrollEl=null,this.checkPositionIntervalId&&clearInterval(this.checkPositionIntervalId)}render(){const{holderRef:t,wrapperRef:r}=this,{isFixed:n,wrapperStyles:o,holderStyles:i}=this.state;return this.props.children({holderRef:t,wrapperRef:r,isFixed:n,wrapperStyles:o,holderStyles:i})}}Hee.defaultProps={mode:"top",topOffset:0,bottomOffset:0,isIOSFixEnabled:!0,offsetTransforms:!0,disabled:!1,onFixedToggle:void 0,boundaryElement:void 0,hideOnBoundaryHit:!0,scrollElement:"window",dontUpdateHolderHeightWhenSticky:!1},I3.default=Hee;var Nee={};(function(e){var t=jr&&jr.__rest||function(a,l){var s={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&l.indexOf(u)<0&&(s[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,u=Object.getOwnPropertySymbols(a);c<u.length;c++)l.indexOf(u[c])<0&&Object.prototype.propertyIsEnumerable.call(a,u[c])&&(s[u[c]]=a[u[c]]);return s},r=jr&&jr.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultProps=void 0;const n=r(m),o=r(I3);e.defaultProps=Object.assign(Object.assign({},o.default.defaultProps),{stickyClassName:"sticky",wrapperClassName:"",stickyStyle:{}});function i(a){const l=Object.assign(Object.assign({},e.defaultProps),a),{mode:s,onFixedToggle:u,hideOnBoundaryHit:c,offsetTransforms:d,disabled:f,boundaryElement:p,scrollElement:h,bottomOffset:v,topOffset:b,positionRecheckInterval:y,children:w,isIOSFixEnabled:k,dontUpdateHolderHeightWhenSticky:E,wrapperClassName:_,stickyClassName:S,stickyStyle:A}=l,O=t(l,["mode","onFixedToggle","hideOnBoundaryHit","offsetTransforms","disabled","boundaryElement","scrollElement","bottomOffset","topOffset","positionRecheckInterval","children","isIOSFixEnabled","dontUpdateHolderHeightWhenSticky","wrapperClassName","stickyClassName","stickyStyle"]);return n.default.createElement(o.default,{mode:s,onFixedToggle:u,hideOnBoundaryHit:c,offsetTransforms:d,disabled:f,boundaryElement:p,scrollElement:h,bottomOffset:v,topOffset:b,positionRecheckInterval:y,isIOSFixEnabled:k,dontUpdateHolderHeightWhenSticky:E},({isFixed:I,wrapperStyles:L,wrapperRef:P,holderStyles:H,holderRef:j})=>n.default.createElement("div",Object.assign({},O,{ref:j,style:H}),n.default.createElement("div",Object.assign({},O,{className:`${_} ${I?S:""}`,style:I?Object.assign(Object.assign({},L),A):L,ref:P}),w)))}e.default=i})(Nee);var $ee=jr&&jr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(O3,"__esModule",{value:!0});var Dee=O3.RenderPropSticky=void 0;const LQe=$ee(I3);Dee=O3.RenderPropSticky=LQe.default;const HQe=$ee(Nee);O3.default=HQe.default;const Bee={to:"top"};function NQe({children:e,uid:t,layout:r,to:n=Bee.to}){const o=m.useRef(null),[i,a]=m.useState(null),[l,s]=m.useState(!1),u=ZY(o.current),c=lje(u);m.useEffect(()=>{i&&document.documentElement.style.setProperty("--xmlui-scroll-margin-top",i.clientHeight+"px")},[u,i]);const d=ze(ZL.wrapper),f={backgroundColor:c,...r},p="";return C.jsxs(C.Fragment,{children:[!!u&&C.jsx(Dee,{mode:n,onFixedToggle:s,scrollElement:u,children:({isFixed:h,wrapperStyles:v,wrapperRef:b,holderStyles:y,holderRef:w})=>C.jsx("div",{ref:w,style:y,children:C.jsx("div",{className:`${d} ${h?p:""}`,style:h?{...v,...f}:v,ref:b,children:C.jsx("div",{ref:a,children:e})})})}),C.jsx("div",{style:{display:"none"},ref:o,className:n==="top"?ZL.sentinel:""})]})}const jee="StickyBox",Mee={status:"stable",description:"`StickyBox` remains fixed at the top or bottom of the screen as the user scrolls.",props:{to:{description:"This property determines whether the StickyBox should be anchored to the `top` or `bottom`.",availableValues:["top","bottom"],valueType:"string",defaultValue:Bee.to}},themeVars:Ze(ZL.themeVars),defaultThemeVars:{[`backgroundColor-${jee}`]:"$backgroundColor"}},$Qe=we(jee,Mee,({node:e,renderChild:t,extractValue:r,layoutCss:n})=>{var o;return C.jsx(NQe,{uid:e.uid,layout:n,to:r((o=e.props)==null?void 0:o.to),children:t(e.children)})}),tH={themeVars:`'{"border-Badge": "var(--xmlui-border-Badge)", "borderHorizontal-Badge": "var(--xmlui-borderHorizontal-Badge, var(--xmlui-border-Badge))", "borderVertical-Badge": "var(--xmlui-borderVertical-Badge, var(--xmlui-border-Badge))", "borderLeft-Badge": "var(--xmlui-borderLeft-Badge, var(--xmlui-borderHorizontal-Badge, var(--xmlui-border-Badge)))", "borderRight-Badge": "var(--xmlui-borderRight-Badge, var(--xmlui-borderHorizontal-Badge, var(--xmlui-border-Badge)))", "borderTop-Badge": "var(--xmlui-borderTop-Badge, var(--xmlui-borderVertical-Badge, var(--xmlui-border-Badge)))", "borderBottom-Badge": "var(--xmlui-borderBottom-Badge, var(--xmlui-borderVertical-Badge, var(--xmlui-border-Badge)))", "borderWidth-Badge": "var(--xmlui-borderWidth-Badge)", "borderHorizontalWidth-Badge": "var(--xmlui-borderHorizontalWidth-Badge, var(--xmlui-borderWidth-Badge))", "borderLeftWidth-Badge": "var(--xmlui-borderLeftWidth-Badge, var(--xmlui-borderHorizontalWidth-Badge, var(--xmlui-borderWidth-Badge)))", "borderRightWidth-Badge": "var(--xmlui-borderRightWidth-Badge, var(--xmlui-borderHorizontalWidth-Badge, var(--xmlui-borderWidth-Badge)))", "borderVerticalWidth-Badge": "var(--xmlui-borderVerticalWidth-Badge, var(--xmlui-borderWidth-Badge))", "borderTopWidth-Badge": "var(--xmlui-borderTopWidth-Badge, var(--xmlui-borderVerticalWidth-Badge, var(--xmlui-borderWidth-Badge)))", "borderBottomWidth-Badge": "var(--xmlui-borderBottomWidth-Badge, var(--xmlui-borderVerticalWidth-Badge, var(--xmlui-borderWidth-Badge)))", "borderStyle-Badge": "var(--xmlui-borderStyle-Badge)", "borderHorizontalStyle-Badge": "var(--xmlui-borderHorizontalStyle-Badge, var(--xmlui-borderStyle-Badge))", "borderLeftStyle-Badge": "var(--xmlui-borderLeftStyle-Badge, var(--xmlui-borderHorizontalStyle-Badge, var(--xmlui-borderStyle-Badge)))", "borderRightStyle-Badge": "var(--xmlui-borderRightStyle-Badge, var(--xmlui-borderHorizontalStyle-Badge, var(--xmlui-borderStyle-Badge)))", "borderVerticalStyle-Badge": "var(--xmlui-borderVerticalStyle-Badge, var(--xmlui-borderStyle-Badge))", "borderTopStyle-Badge": "var(--xmlui-borderTopStyle-Badge, var(--xmlui-borderVerticalStyle-Badge, var(--xmlui-borderStyle-Badge)))", "borderBottomStyle-Badge": "var(--xmlui-borderBottomStyle-Badge, var(--xmlui-borderVerticalStyle-Badge, var(--xmlui-borderStyle-Badge)))", "borderColor-Badge": "var(--xmlui-borderColor-Badge)", "borderHorizontalColor-Badge": "var(--xmlui-borderHorizontalColor-Badge, var(--xmlui-borderColor-Badge))", "borderLeftColor-Badge": "var(--xmlui-borderLeftColor-Badge, var(--xmlui-borderHorizontalColor-Badge, var(--xmlui-borderColor-Badge)))", "borderRightColor-Badge": "var(--xmlui-borderRightColor-Badge, var(--xmlui-borderHorizontalColor-Badge, var(--xmlui-borderColor-Badge)))", "borderVerticalColor-Badge": "var(--xmlui-borderVerticalColor-Badge, var(--xmlui-borderColor-Badge))", "borderTopColor-Badge": "var(--xmlui-borderTopColor-Badge, var(--xmlui-borderVerticalColor-Badge, var(--xmlui-borderColor-Badge)))", "borderBottomColor-Badge": "var(--xmlui-borderBottomColor-Badge, var(--xmlui-borderVerticalColor-Badge, var(--xmlui-borderColor-Badge)))", "borderStartStartRadius-Badge": "var(--xmlui-borderStartStartRadius-Badge, var(--xmlui-borderRadius-Badge))", "borderStartEndRadius-Badge": "var(--xmlui-borderStartEndRadius-Badge, var(--xmlui-borderRadius-Badge))", "borderEndStartRadius-Badge": "var(--xmlui-borderEndStartRadius-Badge, var(--xmlui-borderRadius-Badge))", "borderEndEndRadius-Badge": "var(--xmlui-borderEndEndRadius-Badge, var(--xmlui-borderRadius-Badge))", "padding-Badge": "var(--xmlui-padding-Badge)", "paddingHorizontal-Badge": "var(--xmlui-paddingHorizontal-Badge, var(--xmlui-padding-Badge))", "paddingVertical-Badge": "var(--xmlui-paddingVertical-Badge, var(--xmlui-padding-Badge))", "paddingLeft-Badge": "var(--xmlui-paddingLeft-Badge, var(--xmlui-paddingHorizontal-Badge, var(--xmlui-padding-Badge)))", "paddingRight-Badge": "var(--xmlui-paddingRight-Badge, var(--xmlui-paddingHorizontal-Badge, var(--xmlui-padding-Badge)))", "paddingTop-Badge": "var(--xmlui-paddingTop-Badge, var(--xmlui-paddingVertical-Badge, var(--xmlui-padding-Badge)))", "paddingBottom-Badge": "var(--xmlui-paddingBottom-Badge, var(--xmlui-paddingVertical-Badge, var(--xmlui-padding-Badge)))", "textColor-Badge": "var(--xmlui-textColor-Badge)", "fontFamily-Badge": "var(--xmlui-fontFamily-Badge)", "fontSize-Badge": "var(--xmlui-fontSize-Badge)", "fontStyle-Badge": "var(--xmlui-fontStyle-Badge)", "fontVariant-Badge": "var(--xmlui-fontVariant-Badge)", "fontWeight-Badge": "var(--xmlui-fontWeight-Badge)", "fontStretch-Badge": "var(--xmlui-fontStretch-Badge)", "textDecorationLine-Badge": "var(--xmlui-textDecorationLine-Badge)", "textDecorationColor-Badge": "var(--xmlui-textDecorationColor-Badge)", "textDecorationStyle-Badge": "var(--xmlui-textDecorationStyle-Badge)", "textDecorationThickness-Badge": "var(--xmlui-textDecorationThickness-Badge)", "textUnderlineOffset-Badge": "var(--xmlui-textUnderlineOffset-Badge)", "lineHeight-Badge": "var(--xmlui-lineHeight-Badge)", "backgroundColor-Badge": "var(--xmlui-backgroundColor-Badge)", "textTransform-Badge": "var(--xmlui-textTransform-Badge)", "letterSpacing-Badge": "var(--xmlui-letterSpacing-Badge)", "wordSpacing-Badge": "var(--xmlui-wordSpacing-Badge)", "textShadow-Badge": "var(--xmlui-textShadow-Badge)", "textIndent-Badge": "var(--xmlui-textIndent-Badge)", "textAlign-Badge": "var(--xmlui-textAlign-Badge)", "textAlignLast-Badge": "var(--xmlui-textAlignLast-Badge)", "wordBreak-Badge": "var(--xmlui-wordBreak-Badge)", "wordWrap-Badge": "var(--xmlui-wordWrap-Badge)", "direction-Badge": "var(--xmlui-direction-Badge)", "writingMode-Badge": "var(--xmlui-writingMode-Badge)", "lineBreak-Badge": "var(--xmlui-lineBreak-Badge)", "border-Badge-pill": "var(--xmlui-border-Badge-pill)", "borderHorizontal-Badge-pill": "var(--xmlui-borderHorizontal-Badge-pill, var(--xmlui-border-Badge-pill))", "borderVertical-Badge-pill": "var(--xmlui-borderVertical-Badge-pill, var(--xmlui-border-Badge-pill))", "borderLeft-Badge-pill": "var(--xmlui-borderLeft-Badge-pill, var(--xmlui-borderHorizontal-Badge-pill, var(--xmlui-border-Badge-pill)))", "borderRight-Badge-pill": "var(--xmlui-borderRight-Badge-pill, var(--xmlui-borderHorizontal-Badge-pill, var(--xmlui-border-Badge-pill)))", "borderTop-Badge-pill": "var(--xmlui-borderTop-Badge-pill, var(--xmlui-borderVertical-Badge-pill, var(--xmlui-border-Badge-pill)))", "borderBottom-Badge-pill": "var(--xmlui-borderBottom-Badge-pill, var(--xmlui-borderVertical-Badge-pill, var(--xmlui-border-Badge-pill)))", "borderWidth-Badge-pill": "var(--xmlui-borderWidth-Badge-pill)", "borderHorizontalWidth-Badge-pill": "var(--xmlui-borderHorizontalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill))", "borderLeftWidth-Badge-pill": "var(--xmlui-borderLeftWidth-Badge-pill, var(--xmlui-borderHorizontalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill)))", "borderRightWidth-Badge-pill": "var(--xmlui-borderRightWidth-Badge-pill, var(--xmlui-borderHorizontalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill)))", "borderVerticalWidth-Badge-pill": "var(--xmlui-borderVerticalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill))", "borderTopWidth-Badge-pill": "var(--xmlui-borderTopWidth-Badge-pill, var(--xmlui-borderVerticalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill)))", "borderBottomWidth-Badge-pill": "var(--xmlui-borderBottomWidth-Badge-pill, var(--xmlui-borderVerticalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill)))", "borderStyle-Badge-pill": "var(--xmlui-borderStyle-Badge-pill)", "borderHorizontalStyle-Badge-pill": "var(--xmlui-borderHorizontalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill))", "borderLeftStyle-Badge-pill": "var(--xmlui-borderLeftStyle-Badge-pill, var(--xmlui-borderHorizontalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill)))", "borderRightStyle-Badge-pill": "var(--xmlui-borderRightStyle-Badge-pill, var(--xmlui-borderHorizontalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill)))", "borderVerticalStyle-Badge-pill": "var(--xmlui-borderVerticalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill))", "borderTopStyle-Badge-pill": "var(--xmlui-borderTopStyle-Badge-pill, var(--xmlui-borderVerticalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill)))", "borderBottomStyle-Badge-pill": "var(--xmlui-borderBottomStyle-Badge-pill, var(--xmlui-borderVerticalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill)))", "borderColor-Badge-pill": "var(--xmlui-borderColor-Badge-pill)", "borderHorizontalColor-Badge-pill": "var(--xmlui-borderHorizontalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill))", "borderLeftColor-Badge-pill": "var(--xmlui-borderLeftColor-Badge-pill, var(--xmlui-borderHorizontalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill)))", "borderRightColor-Badge-pill": "var(--xmlui-borderRightColor-Badge-pill, var(--xmlui-borderHorizontalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill)))", "borderVerticalColor-Badge-pill": "var(--xmlui-borderVerticalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill))", "borderTopColor-Badge-pill": "var(--xmlui-borderTopColor-Badge-pill, var(--xmlui-borderVerticalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill)))", "borderBottomColor-Badge-pill": "var(--xmlui-borderBottomColor-Badge-pill, var(--xmlui-borderVerticalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill)))", "borderStartStartRadius-Badge-pill": "var(--xmlui-borderStartStartRadius-Badge-pill, var(--xmlui-borderRadius-Badge-pill))", "borderStartEndRadius-Badge-pill": "var(--xmlui-borderStartEndRadius-Badge-pill, var(--xmlui-borderRadius-Badge-pill))", "borderEndStartRadius-Badge-pill": "var(--xmlui-borderEndStartRadius-Badge-pill, var(--xmlui-borderRadius-Badge-pill))", "borderEndEndRadius-Badge-pill": "var(--xmlui-borderEndEndRadius-Badge-pill, var(--xmlui-borderRadius-Badge-pill))", "padding-Badge-pill": "var(--xmlui-padding-Badge-pill)", "paddingHorizontal-Badge-pill": "var(--xmlui-paddingHorizontal-Badge-pill, var(--xmlui-padding-Badge-pill))", "paddingVertical-Badge-pill": "var(--xmlui-paddingVertical-Badge-pill, var(--xmlui-padding-Badge-pill))", "paddingLeft-Badge-pill": "var(--xmlui-paddingLeft-Badge-pill, var(--xmlui-paddingHorizontal-Badge-pill, var(--xmlui-padding-Badge-pill)))", "paddingRight-Badge-pill": "var(--xmlui-paddingRight-Badge-pill, var(--xmlui-paddingHorizontal-Badge-pill, var(--xmlui-padding-Badge-pill)))", "paddingTop-Badge-pill": "var(--xmlui-paddingTop-Badge-pill, var(--xmlui-paddingVertical-Badge-pill, var(--xmlui-padding-Badge-pill)))", "paddingBottom-Badge-pill": "var(--xmlui-paddingBottom-Badge-pill, var(--xmlui-paddingVertical-Badge-pill, var(--xmlui-padding-Badge-pill)))", "textColor-Badge-pill": "var(--xmlui-textColor-Badge-pill)", "fontFamily-Badge-pill": "var(--xmlui-fontFamily-Badge-pill)", "fontSize-Badge-pill": "var(--xmlui-fontSize-Badge-pill)", "fontStyle-Badge-pill": "var(--xmlui-fontStyle-Badge-pill)", "fontVariant-Badge-pill": "var(--xmlui-fontVariant-Badge-pill)", "fontWeight-Badge-pill": "var(--xmlui-fontWeight-Badge-pill)", "fontStretch-Badge-pill": "var(--xmlui-fontStretch-Badge-pill)", "textDecorationLine-Badge-pill": "var(--xmlui-textDecorationLine-Badge-pill)", "textDecorationColor-Badge-pill": "var(--xmlui-textDecorationColor-Badge-pill)", "textDecorationStyle-Badge-pill": "var(--xmlui-textDecorationStyle-Badge-pill)", "textDecorationThickness-Badge-pill": "var(--xmlui-textDecorationThickness-Badge-pill)", "textUnderlineOffset-Badge-pill": "var(--xmlui-textUnderlineOffset-Badge-pill)", "lineHeight-Badge-pill": "var(--xmlui-lineHeight-Badge-pill)", "backgroundColor-Badge-pill": "var(--xmlui-backgroundColor-Badge-pill)", "textTransform-Badge-pill": "var(--xmlui-textTransform-Badge-pill)", "letterSpacing-Badge-pill": "var(--xmlui-letterSpacing-Badge-pill)", "wordSpacing-Badge-pill": "var(--xmlui-wordSpacing-Badge-pill)", "textShadow-Badge-pill": "var(--xmlui-textShadow-Badge-pill)", "textIndent-Badge-pill": "var(--xmlui-textIndent-Badge-pill)", "textAlign-Badge-pill": "var(--xmlui-textAlign-Badge-pill)", "textAlignLast-Badge-pill": "var(--xmlui-textAlignLast-Badge-pill)", "wordBreak-Badge-pill": "var(--xmlui-wordBreak-Badge-pill)", "wordWrap-Badge-pill": "var(--xmlui-wordWrap-Badge-pill)", "direction-Badge-pill": "var(--xmlui-direction-Badge-pill)", "writingMode-Badge-pill": "var(--xmlui-writingMode-Badge-pill)", "lineBreak-Badge-pill": "var(--xmlui-lineBreak-Badge-pill)"}'`,badge:"_badge_9anto_13",pill:"_pill_9anto_74"},DQe=["badge","pill"];function BQe(e){return typeof e=="object"&&e!==null&&"label"in e&&"background"in e&&typeof e.label=="string"&&typeof e.background=="string"}const zee={variant:"badge"},jQe=m.forwardRef(function({children:t,color:r,variant:n=zee.variant,style:o},i){return C.jsx("div",{ref:i,className:ze({[tH.badge]:n==="badge",[tH.pill]:n==="pill"}),style:{...r?typeof r=="string"?{backgroundColor:r}:{backgroundColor:r.background,color:r.label}:{},...o},children:t})}),wc="Badge",Fee={status:"stable",description:"`Badge` displays small text labels with colored backgrounds, commonly used for status indicators, categories, tags, and counts. It supports dynamic color mapping based on content values, useful for status systems and data categorization.",props:{value:{description:"The text that the component displays. If this is not defined, the component renders its children as the content of the badge. If neither text nor any child is defined, the component renders a single frame for the badge with a non-breakable space.",type:"string",isRequired:!0},variant:{description:"Modifies the shape of the component. Comes in the regular `badge` variant or the `pill` variant with fully rounded corners.",type:"string",availableValues:DQe,defaultValue:zee.variant},colorMap:{description:`The \`${wc}\` component supports the mapping of a list of colors using the \`value\` prop as the key. If this property is not set, no color mapping is used.`},themeColor:Vn("(**NOT IMPLEMENTED YET**) The theme color of the component."),indicatorText:Vn("(**NOT IMPLEMENTED YET**) This property defines the text to display in the indicator. If it is not defined or empty, no indicator is displayed unless the `forceIndicator` property is set."),forceIndicator:Vn("(**NOT IMPLEMENTED YET**) This property forces the display of the indicator, even if the `indicatorText` property is not defined or empty."),indicatorThemeColor:Vn("(**NOT IMPLEMENTED YET**) The theme color of the indicator."),indicatorPosition:Vn("(**NOT IMPLEMENTED YET**) The position of the indicator.")},events:{},themeVars:Ze(tH.themeVars),defaultThemeVars:{[`padding-${wc}`]:"$space-0_5 $space-2",[`border-${wc}`]:"0px solid $borderColor",[`padding-${wc}-pill`]:"$space-0_5 $space-2",[`borderRadius-${wc}`]:"4px",[`fontSize-${wc}`]:"0.8em",[`fontSize-${wc}-pill`]:"0.8em",[`backgroundColor-${wc}`]:"rgb(from $color-secondary-500 r g b / 0.6)",[`textColor-${wc}`]:"$const-color-surface-0"}},MQe=we(wc,Fee,({node:e,extractValue:t,renderChild:r,layoutCss:n})=>{var l;const o=t.asDisplayText(e.props.value),i=t((l=e.props)==null?void 0:l.colorMap);let a;if(i&&o){const s=i[o];typeof s=="string"?a=rH(s):BQe(s)&&(a={label:rH(s.label),background:rH(s.background)})}return C.jsx(jQe,{variant:t(e.props.variant),color:a,style:n,children:o||e.children&&r(e.children)||" "})});function rH(e){return e.startsWith("$")?py(e):e}const fw={themeVars:`'{"border-Avatar": "var(--xmlui-border-Avatar)", "borderHorizontal-Avatar": "var(--xmlui-borderHorizontal-Avatar, var(--xmlui-border-Avatar))", "borderVertical-Avatar": "var(--xmlui-borderVertical-Avatar, var(--xmlui-border-Avatar))", "borderLeft-Avatar": "var(--xmlui-borderLeft-Avatar, var(--xmlui-borderHorizontal-Avatar, var(--xmlui-border-Avatar)))", "borderRight-Avatar": "var(--xmlui-borderRight-Avatar, var(--xmlui-borderHorizontal-Avatar, var(--xmlui-border-Avatar)))", "borderTop-Avatar": "var(--xmlui-borderTop-Avatar, var(--xmlui-borderVertical-Avatar, var(--xmlui-border-Avatar)))", "borderBottom-Avatar": "var(--xmlui-borderBottom-Avatar, var(--xmlui-borderVertical-Avatar, var(--xmlui-border-Avatar)))", "borderWidth-Avatar": "var(--xmlui-borderWidth-Avatar)", "borderHorizontalWidth-Avatar": "var(--xmlui-borderHorizontalWidth-Avatar, var(--xmlui-borderWidth-Avatar))", "borderLeftWidth-Avatar": "var(--xmlui-borderLeftWidth-Avatar, var(--xmlui-borderHorizontalWidth-Avatar, var(--xmlui-borderWidth-Avatar)))", "borderRightWidth-Avatar": "var(--xmlui-borderRightWidth-Avatar, var(--xmlui-borderHorizontalWidth-Avatar, var(--xmlui-borderWidth-Avatar)))", "borderVerticalWidth-Avatar": "var(--xmlui-borderVerticalWidth-Avatar, var(--xmlui-borderWidth-Avatar))", "borderTopWidth-Avatar": "var(--xmlui-borderTopWidth-Avatar, var(--xmlui-borderVerticalWidth-Avatar, var(--xmlui-borderWidth-Avatar)))", "borderBottomWidth-Avatar": "var(--xmlui-borderBottomWidth-Avatar, var(--xmlui-borderVerticalWidth-Avatar, var(--xmlui-borderWidth-Avatar)))", "borderStyle-Avatar": "var(--xmlui-borderStyle-Avatar)", "borderHorizontalStyle-Avatar": "var(--xmlui-borderHorizontalStyle-Avatar, var(--xmlui-borderStyle-Avatar))", "borderLeftStyle-Avatar": "var(--xmlui-borderLeftStyle-Avatar, var(--xmlui-borderHorizontalStyle-Avatar, var(--xmlui-borderStyle-Avatar)))", "borderRightStyle-Avatar": "var(--xmlui-borderRightStyle-Avatar, var(--xmlui-borderHorizontalStyle-Avatar, var(--xmlui-borderStyle-Avatar)))", "borderVerticalStyle-Avatar": "var(--xmlui-borderVerticalStyle-Avatar, var(--xmlui-borderStyle-Avatar))", "borderTopStyle-Avatar": "var(--xmlui-borderTopStyle-Avatar, var(--xmlui-borderVerticalStyle-Avatar, var(--xmlui-borderStyle-Avatar)))", "borderBottomStyle-Avatar": "var(--xmlui-borderBottomStyle-Avatar, var(--xmlui-borderVerticalStyle-Avatar, var(--xmlui-borderStyle-Avatar)))", "borderColor-Avatar": "var(--xmlui-borderColor-Avatar)", "borderHorizontalColor-Avatar": "var(--xmlui-borderHorizontalColor-Avatar, var(--xmlui-borderColor-Avatar))", "borderLeftColor-Avatar": "var(--xmlui-borderLeftColor-Avatar, var(--xmlui-borderHorizontalColor-Avatar, var(--xmlui-borderColor-Avatar)))", "borderRightColor-Avatar": "var(--xmlui-borderRightColor-Avatar, var(--xmlui-borderHorizontalColor-Avatar, var(--xmlui-borderColor-Avatar)))", "borderVerticalColor-Avatar": "var(--xmlui-borderVerticalColor-Avatar, var(--xmlui-borderColor-Avatar))", "borderTopColor-Avatar": "var(--xmlui-borderTopColor-Avatar, var(--xmlui-borderVerticalColor-Avatar, var(--xmlui-borderColor-Avatar)))", "borderBottomColor-Avatar": "var(--xmlui-borderBottomColor-Avatar, var(--xmlui-borderVerticalColor-Avatar, var(--xmlui-borderColor-Avatar)))", "borderStartStartRadius-Avatar": "var(--xmlui-borderStartStartRadius-Avatar, var(--xmlui-borderRadius-Avatar))", "borderStartEndRadius-Avatar": "var(--xmlui-borderStartEndRadius-Avatar, var(--xmlui-borderRadius-Avatar))", "borderEndStartRadius-Avatar": "var(--xmlui-borderEndStartRadius-Avatar, var(--xmlui-borderRadius-Avatar))", "borderEndEndRadius-Avatar": "var(--xmlui-borderEndEndRadius-Avatar, var(--xmlui-borderRadius-Avatar))", "backgroundColor-Avatar": "var(--xmlui-backgroundColor-Avatar)", "boxShadow-Avatar": "var(--xmlui-boxShadow-Avatar)", "textColor-Avatar": "var(--xmlui-textColor-Avatar)", "fontWeight-Avatar": "var(--xmlui-fontWeight-Avatar)"}'`,container:"_container_gnyw6_13",xs:"_xs_gnyw6_48",sm:"_sm_gnyw6_55",md:"_md_gnyw6_62",lg:"_lg_gnyw6_69",clickable:"_clickable_gnyw6_76"},Wee={size:"sm"},Vee=m.memo(m.forwardRef(function({size:t=Wee.size,url:r,name:n,style:o,onClick:i,...a},l){const s=m.useMemo(()=>zQe(n??null),[n]),u=f=>{i&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),i(f))},c=ze(fw.container,fw[t]||fw.sm,{[fw.clickable]:!!i}),d=n?`Avatar of ${n}`:"Avatar";return r?C.jsx("img",{...a,ref:l,src:r,alt:d,className:c,style:o,onClick:i,onKeyDown:u,tabIndex:i?0:void 0}):C.jsx("div",{...a,ref:l,className:c,style:o,onClick:i,onKeyDown:u,role:"img","aria-label":d,tabIndex:i?0:void 0,children:s||C.jsx("span",{"aria-hidden":"true"})})}));function zQe(e){return e?e.trim().split(" ").filter(r=>!!r.trim().length).map(r=>r[0].toUpperCase()).slice(0,3).join(""):null}const Cc="Avatar",Uee={status:"stable",description:"`Avatar` displays a user or entity's profile picture as a circular image, with automatic fallback to initials when no image is provided. It's commonly used in headers, user lists, comments, and anywhere you need to represent a person or organization.",props:{size:{description:`This property defines the display size of the ${Cc}.`,availableValues:BT,valueType:"string",defaultValue:Wee.size},name:{description:`This property sets the name value the ${Cc} uses to display initials. If neither this property nor \`url\` is defined, an empty avatar is displayed.`,valueType:"string"},url:{description:`This property specifies the URL of the image to display in the ${Cc}. If neither this property nor \`name\` is defined, an empty avatar is displayed.`,valueType:"string"}},events:{click:re("This event is triggered when the avatar is clicked.")},themeVars:Ze(fw.themeVars),defaultThemeVars:{[`borderRadius-${Cc}`]:"4px",[`boxShadow-${Cc}`]:"inset 0 0 0 1px rgba(4,32,69,0.1)",[`textColor-${Cc}`]:"$textColor-secondary",[`fontWeight-${Cc}`]:"$fontWeight-bold",[`border-${Cc}`]:"0px solid $color-surface-400A80",[`backgroundColor-${Cc}`]:"$color-surface-100"}},FQe=we(Cc,Uee,({node:e,extractValue:t,lookupEventHandler:r,layoutCss:n,extractResourceUrl:o})=>{var i;return C.jsx(Vee,{size:(i=e.props)==null?void 0:i.size,url:o(e.props.url),name:t(e.props.name),style:n,onClick:r("click")})}),P3={themeVars:`'{"backgroundColor-ContentSeparator": "var(--xmlui-backgroundColor-ContentSeparator)", "size-ContentSeparator": "var(--xmlui-size-ContentSeparator)"}'`,separator:"_separator_1o93m_13",horizontal:"_horizontal_1o93m_16",vertical:"_vertical_1o93m_20"},qee={orientation:"horizontal"},WQe=({orientation:e=qee.orientation,size:t,style:r})=>C.jsx("div",{className:ze(P3.separator,{[P3.horizontal]:e==="horizontal",[P3.vertical]:e==="vertical"}),style:{height:e==="horizontal"?t:void 0,width:e==="horizontal"?"100%":t,...r}}),nH="ContentSeparator",Gee={status:"stable",description:"`ContentSeparator` creates visual dividers between content sections using horizontal or vertical lines. It's essential for improving readability by breaking up dense content, separating list items, or creating clear boundaries between different UI sections.",props:{size:{description:"This property defines the component's height (if the `orientation` is horizontal) or the width (if the `orientation` is vertical). If not defined, the component uses the entire available width or height.",valueType:"any"},orientation:{description:"Sets the main axis of the component",availableValues:jT,defaultValue:qee.orientation,valueType:"string"}},themeVars:Ze(P3.themeVars),defaultThemeVars:{[`backgroundColor-${nH}`]:"$color-surface-200",[`size-${nH}`]:"1px",light:{},dark:{}}},VQe=we(nH,Gee,({node:e,layoutCss:t,extractValue:r})=>C.jsx(WQe,{orientation:r(e.props.orientation),size:r.asSize(e.props.size),style:t})),_h={themeVars:`'{"padding-Card": "var(--xmlui-padding-Card)", "paddingHorizontal-Card": "var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card))", "paddingVertical-Card": "var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card))", "paddingLeft-Card": "var(--xmlui-paddingLeft-Card, var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card)))", "paddingRight-Card": "var(--xmlui-paddingRight-Card, var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card)))", "paddingTop-Card": "var(--xmlui-paddingTop-Card, var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card)))", "paddingBottom-Card": "var(--xmlui-paddingBottom-Card, var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card)))", "border-Card": "var(--xmlui-border-Card)", "borderHorizontal-Card": "var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card))", "borderVertical-Card": "var(--xmlui-borderVertical-Card, var(--xmlui-border-Card))", "borderLeft-Card": "var(--xmlui-borderLeft-Card, var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card)))", "borderRight-Card": "var(--xmlui-borderRight-Card, var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card)))", "borderTop-Card": "var(--xmlui-borderTop-Card, var(--xmlui-borderVertical-Card, var(--xmlui-border-Card)))", "borderBottom-Card": "var(--xmlui-borderBottom-Card, var(--xmlui-borderVertical-Card, var(--xmlui-border-Card)))", "borderWidth-Card": "var(--xmlui-borderWidth-Card)", "borderHorizontalWidth-Card": "var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card))", "borderLeftWidth-Card": "var(--xmlui-borderLeftWidth-Card, var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderRightWidth-Card": "var(--xmlui-borderRightWidth-Card, var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderVerticalWidth-Card": "var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card))", "borderTopWidth-Card": "var(--xmlui-borderTopWidth-Card, var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderBottomWidth-Card": "var(--xmlui-borderBottomWidth-Card, var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderStyle-Card": "var(--xmlui-borderStyle-Card)", "borderHorizontalStyle-Card": "var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card))", "borderLeftStyle-Card": "var(--xmlui-borderLeftStyle-Card, var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderRightStyle-Card": "var(--xmlui-borderRightStyle-Card, var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderVerticalStyle-Card": "var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card))", "borderTopStyle-Card": "var(--xmlui-borderTopStyle-Card, var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderBottomStyle-Card": "var(--xmlui-borderBottomStyle-Card, var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderColor-Card": "var(--xmlui-borderColor-Card)", "borderHorizontalColor-Card": "var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card))", "borderLeftColor-Card": "var(--xmlui-borderLeftColor-Card, var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card)))", "borderRightColor-Card": "var(--xmlui-borderRightColor-Card, var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card)))", "borderVerticalColor-Card": "var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card))", "borderTopColor-Card": "var(--xmlui-borderTopColor-Card, var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card)))", "borderBottomColor-Card": "var(--xmlui-borderBottomColor-Card, var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card)))", "borderStartStartRadius-Card": "var(--xmlui-borderStartStartRadius-Card, var(--xmlui-borderRadius-Card))", "borderStartEndRadius-Card": "var(--xmlui-borderStartEndRadius-Card, var(--xmlui-borderRadius-Card))", "borderEndStartRadius-Card": "var(--xmlui-borderEndStartRadius-Card, var(--xmlui-borderRadius-Card))", "borderEndEndRadius-Card": "var(--xmlui-borderEndEndRadius-Card, var(--xmlui-borderRadius-Card))", "boxShadow-Card": "var(--xmlui-boxShadow-Card)", "backgroundColor-Card": "var(--xmlui-backgroundColor-Card)", "borderRadius-Card": "var(--xmlui-borderRadius-Card)", "gap-Card": "var(--xmlui-gap-Card)", "gap-title-Card": "var(--xmlui-gap-title-Card)", "gap-avatar-Card": "var(--xmlui-gap-avatar-Card)", "horizontalAlignment-title-Card": "var(--xmlui-horizontalAlignment-title-Card)", "verticalAlignment-title-Card": "var(--xmlui-verticalAlignment-title-Card)"}'`,wrapper:"_wrapper_zx7g9_13",avatarWrapper:"_avatarWrapper_zx7g9_46",titleWrapper:"_titleWrapper_zx7g9_53",horizontal:"_horizontal_zx7g9_61",vertical:"_vertical_zx7g9_65",isClickable:"_isClickable_zx7g9_68"},L3={orientation:"vertical",showAvatar:!1},Yee=m.forwardRef(function({children:t,orientation:r=L3.orientation,style:n,title:o,subtitle:i,linkTo:a,avatarUrl:l,showAvatar:s=!!l||L3.showAvatar,avatarSize:u,onClick:c},d){const f={level:"h2",maxLines:1};return C.jsxs("div",{ref:d,className:ze(_h.wrapper,{[_h.isClickable]:!!c,[_h.vertical]:r==="vertical",[_h.horizontal]:r==="horizontal"}),style:n,onClick:c,children:[[o,i,l,s].some(Boolean)&&C.jsxs("div",{className:_h.avatarWrapper,children:[s&&C.jsx(Vee,{url:l,name:o,size:u}),C.jsxs("div",{className:_h.titleWrapper,children:[a?o?C.jsx(Dy,{to:a+"",children:C.jsx(gc,{...f,children:o})}):null:o?C.jsx(gc,{...f,children:o}):null,i!==void 0&&C.jsx(C.Fragment,{children:C.jsx(yr,{variant:"secondary",children:i})})]})]}),t]})}),Xo="Card",Kee={status:"stable",description:"`Card` is a versatile container that groups related content with a visual boundary, typically featuring background color, padding, borders, and rounded corners. It's ideal for organizing information, creating sections, and establishing visual hierarchy in your interface.",props:{avatarUrl:{description:`The url for an avarar image. If not specified, but [\`showAvatar\`](#showAvatar) is true, ${Xo} will show the first letters of the [\`title\`](#title).`,type:"string"},showAvatar:{description:"Indicates whether the avatar should be displayed",valueType:"boolean",defaultValue:L3.showAvatar},avatarSize:{description:"This prop sets the size of the avatar. The default value is `sm`.",availableValues:["xs","sm","md","lg"],valueType:"string"},title:{description:"This prop sets the pre-styled title. If the property is not set, no title is displayed in the Card.",valueType:"string"},subtitle:{description:"This prop sets the pre-styled subtitle. If the property is not set, no subtitle is displayed in the Card.",valueType:"string"},linkTo:{description:"This optional property wraps the title in a `Link` component that is clickable to navigate.",valueType:"string"},orientation:{description:`An optional property that governs the ${Xo}'s orientation (whether the ${Xo} lays out its children in a row or a column). If the orientation is set to \`horizontal\`, the ${Xo} will display its children in a row, except for its [\`title\`](#title) and [\`subtitle\`](#subtitle).`,availableValues:jT,valueType:"string",defaultValue:L3.orientation}},events:{click:Xp(Xo)},themeVars:Ze(_h.themeVars),defaultThemeVars:{[`padding-${Xo}`]:"$space-4",[`border-${Xo}`]:"1px solid $borderColor",[`borderRadius-${Xo}`]:"$borderRadius",[`boxShadow-${Xo}`]:"none",[`backgroundColor-${Xo}`]:"$color-surface-raised",[`gap-${Xo}`]:"var(--stack-gap-default)",[`gap-title-${Xo}`]:"$gap-none",[`gap-avatar-${Xo}`]:"$gap-normal",[`verticalAlignment-title-${Xo}`]:"center"},themeVarDescriptions:{[`gap-${Xo}`]:"The gap between the component's children.",[`gap-title-${Xo}`]:"The gap between the title and the subtitle",[`gap-avatar-${Xo}`]:"The gap between the avatar and the title panel",[`horizontalAlignment-title-${Xo}`]:"The horizontal alignment of panel with the title and subtitle",[`verticalAlignment-title-${Xo}`]:"The vertical alignment of the title and subtitle to the avatar"}},UQe=we("Card",Kee,({node:e,extractValue:t,renderChild:r,layoutCss:n})=>C.jsx(Yee,{style:n,title:t.asOptionalString(e.props.title),linkTo:t.asOptionalString(e.props.linkTo),subtitle:t.asOptionalString(e.props.subtitle),avatarUrl:t.asOptionalString(e.props.avatarUrl),showAvatar:t.asOptionalBoolean(e.props.showAvatar),avatarSize:t.asOptionalString(e.props.avatarSize),orientation:t.asOptionalString(e.props.orientation),children:r(e.children,{type:"Stack",orientation:"vertical"})})),sm={themeVars:'"[]"',outer:"_outer_aarhe_13",flowContainer:"_flowContainer_aarhe_17",horizontal:"_horizontal_aarhe_21",flowItem:"_flowItem_aarhe_24",break:"_break_aarhe_47",forceBreak:"_forceBreak_aarhe_47",starSized:"_starSized_aarhe_47"},oH={},Xee=m.createContext({rowGap:0,columnGap:0,setNumberOfChildren:Lf}),Qee=({force:e})=>C.jsx("div",{className:ze(sm.break,{[sm.forceBreak]:e})}),qQe=m.forwardRef(function({children:t,forceBreak:r,...n},o){const{rowGap:i,columnGap:a,setNumberOfChildren:l}=m.useContext(Xee),{mediaSize:s}=Eo();Sn(()=>(l(O=>O+1),()=>{l(O=>O-1)}),[l]);const{activeTheme:u,root:c}=zr(),d=n.width||"100%",f=n.minWidth||void 0,p=n.maxWidth||void 0,{width:h=d,minWidth:v,maxWidth:b,flex:y}=m.useMemo(()=>See({width:d,maxWidth:p,minWidth:f},{type:"Stack",orientation:"horizontal"}).cssProps||{},[p,f,d]),w=m.useMemo(()=>{if(h&&typeof h=="string"&&h.startsWith("var(")){if(!oH[h]){const O=h.substring(4,h.length-1),I=getComputedStyle(c||document.body).getPropertyValue(O);oH[h]=I||d}return oH[h]}return h||d},[d,c,h]),k=typeof w=="string"&&w.endsWith("%"),E=Wze(a);let _;if(k){const O=parseFloat(w);if(s.sizeIndex<=1){let I=O*4;I>50?_="100%":_=`min(${I}%, 100%)`}else if(s.sizeIndex<=2){let I=O*3;I>=50&&I<=75?_="50%":I>75?_="100%":_=`min(${I}%, 100%)`}else _=`min(${h}, 100%)`}else _=`min(calc(${h} + ${E}), 100%)`;const S={minWidth:v,maxWidth:b,width:_,paddingBottom:i,flex:y},A=y!==void 0;return A&&(S.width="100%",S.minWidth=v||"1px"),C.jsxs(C.Fragment,{children:[C.jsx("div",{style:{...S,paddingRight:E},className:ze(sm.flowItem,{[sm.starSized]:A}),ref:o,children:t}),A&&C.jsx(Qee,{})]})}),Zee={columnGap:"$gap-normal",rowGap:"$gap-normal"},GQe=m.forwardRef(function({style:t,columnGap:r=0,rowGap:n=0,children:o},i){const[a,l]=m.useState(0),s=a===1?0:r,u=yX(n),c=yX(s),d=m.useMemo(()=>({marginRight:`calc(-1 * ${c})`,marginBottom:`calc(-1 * ${u})`}),[c,u]),f=m.useMemo(()=>({rowGap:u,columnGap:c,setNumberOfChildren:l}),[c,u]);return C.jsx(Xee.Provider,{value:f,children:C.jsx("div",{style:t,ref:i,children:C.jsx("div",{className:sm.outer,children:C.jsx("div",{className:ze(sm.flowContainer,sm.horizontal),style:d,children:o})})})})}),iH="FlowLayout",Jee={status:"stable",description:"`FlowLayout` positions content in rows with automatic wrapping. When items exceed the available horizontal space, they automatically wrap to a new line.",props:{gap:{description:`This property defines the gap between items in the same row and between rows. The ${iH} component creates a new row when an item is about to overflow the current row.`,type:"string",defaultValue:"$gap-normal"},columnGap:{description:"The `columnGap` property specifies the space between items in a single row; it overrides the `gap` value.",defaultValue:Zee.columnGap},rowGap:{description:`The \`rowGap\` property specifies the space between the ${iH} rows; it overrides the \`gap\` value.`,defaultValue:Zee.rowGap}},themeVars:Ze(sm.themeVars)},YQe=we(iH,Jee,({node:e,renderChild:t,layoutCss:r,extractValue:n})=>{var a,l;if(!vP(e.children))throw new Ux;const o=n.asSize((a=e.props)==null?void 0:a.columnGap)||r.gap||n.asSize("$space-4"),i=n.asSize((l=e.props)==null?void 0:l.rowGap)||r.gap||n.asSize("$space-4");return C.jsx(GQe,{style:r,columnGap:o,rowGap:i,children:t(e.children,{wrapChild:({node:s,extractValue:u},c,d)=>{var v,b,y;if(d!=null&&d.opaque)return c;if(s.type==="SpaceFiller")return C.jsx(Qee,{force:!0});const f=u((v=s.props)==null?void 0:v.width),p=u((b=s.props)==null?void 0:b.minWidth),h=u((y=s.props)==null?void 0:y.maxWidth);return C.jsx(qQe,{width:f,minWidth:p,maxWidth:h,forceBreak:s.type==="SpaceFiller",children:c})}})})}),xu={themeVars:`'{"padding-ModalDialog": "var(--xmlui-padding-ModalDialog)", "paddingHorizontal-ModalDialog": "var(--xmlui-paddingHorizontal-ModalDialog, var(--xmlui-padding-ModalDialog))", "paddingVertical-ModalDialog": "var(--xmlui-paddingVertical-ModalDialog, var(--xmlui-padding-ModalDialog))", "paddingLeft-ModalDialog": "var(--xmlui-paddingLeft-ModalDialog, var(--xmlui-paddingHorizontal-ModalDialog, var(--xmlui-padding-ModalDialog)))", "paddingRight-ModalDialog": "var(--xmlui-paddingRight-ModalDialog, var(--xmlui-paddingHorizontal-ModalDialog, var(--xmlui-padding-ModalDialog)))", "paddingTop-ModalDialog": "var(--xmlui-paddingTop-ModalDialog, var(--xmlui-paddingVertical-ModalDialog, var(--xmlui-padding-ModalDialog)))", "paddingBottom-ModalDialog": "var(--xmlui-paddingBottom-ModalDialog, var(--xmlui-paddingVertical-ModalDialog, var(--xmlui-padding-ModalDialog)))", "padding-overlay-ModalDialog": "var(--xmlui-padding-overlay-ModalDialog)", "paddingHorizontal-overlay-ModalDialog": "var(--xmlui-paddingHorizontal-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog))", "paddingVertical-overlay-ModalDialog": "var(--xmlui-paddingVertical-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog))", "paddingLeft-overlay-ModalDialog": "var(--xmlui-paddingLeft-overlay-ModalDialog, var(--xmlui-paddingHorizontal-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "paddingRight-overlay-ModalDialog": "var(--xmlui-paddingRight-overlay-ModalDialog, var(--xmlui-paddingHorizontal-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "paddingTop-overlay-ModalDialog": "var(--xmlui-paddingTop-overlay-ModalDialog, var(--xmlui-paddingVertical-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "paddingBottom-overlay-ModalDialog": "var(--xmlui-paddingBottom-overlay-ModalDialog, var(--xmlui-paddingVertical-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "Dialog:backgroundColor-ModalDialog": "var(--xmlui-backgroundColor-ModalDialog)", "Dialog:backgroundColor-overlay-ModalDialog": "var(--xmlui-backgroundColor-overlay-ModalDialog)", "Dialog:borderRadius-ModalDialog": "var(--xmlui-borderRadius-ModalDialog)", "Dialog:fontFamily-ModalDialog": "var(--xmlui-fontFamily-ModalDialog)", "Dialog:textColor-ModalDialog": "var(--xmlui-textColor-ModalDialog)", "Dialog:minWidth-ModalDialog": "var(--xmlui-minWidth-ModalDialog)", "Dialog:maxWidth-ModalDialog": "var(--xmlui-maxWidth-ModalDialog)", "Dialog:marginBottom-title-ModalDialog": "var(--xmlui-marginBottom-title-ModalDialog)"}'`,overlay:"_overlay_1svyq_13",fullScreen:"_fullScreen_1svyq_22",content:"_content_1svyq_28",overlayBg:"_overlayBg_1svyq_37",nested:"_nested_1svyq_43",dialogTitle:"_dialogTitle_1svyq_81",innerContent:"_innerContent_1svyq_87",closeButton:"_closeButton_1svyq_114"};function aH(e,t){return{[`paddingLeft-${e}`]:(t==null?void 0:t.left)??`$paddingHorizontal-${e}`,[`paddingRight-${e}`]:(t==null?void 0:t.right)??`$paddingHorizontal-${e}`,[`paddingTop-${e}`]:(t==null?void 0:t.top)??`$paddingVertical-${e}`,[`paddingBottom-${e}`]:(t==null?void 0:t.bottom)??`$paddingVertical-${e}`,[`paddingHorizontal-${e}`]:(t==null?void 0:t.horizontal)??"",[`paddingVertical-${e}`]:(t==null?void 0:t.vertical)??"",[`padding-${e}`]:(t==null?void 0:t.all)??`$paddingTop-${e} $paddingRight-${e} $paddingBottom-${e} $paddingLeft-${e}`}}const ete=Z.createContext(null),KQe=()=>{const e=m.useId(),{registerForm:t,unRegisterForm:r,requestClose:n,amITheSingleForm:o}=m.useContext(ete)||{};return m.useEffect(()=>{if(t)return t(e),()=>{r==null||r(e)}},[e,t,r]),m.useCallback(()=>{if(n&&o(e))return n()},[o,e,n])},H3={fullScreen:!1,closeButtonVisible:!0},tte=Z.forwardRef(({isInitiallyOpen:e,onOpen:t,onClose:r,registerComponentApi:n,renderDialog:o},i)=>{const a=nte(e,t,r),{doOpen:l,doClose:s,isOpen:u,openParams:c}=a;return m.useEffect(()=>{n==null||n({open:l,close:s})},[s,l,n]),u?C.jsx(rte.Provider,{value:a,children:o({openParams:c,ref:i})}):null});tte.displayName="ModalDialogFrame";const rte=Z.createContext(null);function nte(e,t,r){const[n,o]=m.useState(e),i=m.useRef(!1),[a,l]=m.useState(null),s=zt((...c)=>{l(c),t==null||t(),o(!0)}),u=zt(async()=>{if(!i.current)try{if(i.current=!0,await(r==null?void 0:r())===!1)return}finally{i.current=!1}o(!1)});return m.useMemo(()=>({isOpen:n,doClose:u,doOpen:s,openParams:a}),[u,s,n,a])}function XQe(e=!0,t,r){const n=m.useContext(rte),o=nte(e,t,r);return n||o}const N3=Z.forwardRef(({children:e,style:t,isInitiallyOpen:r,fullScreen:n=H3.fullScreen,title:o,closeButtonVisible:i=H3.closeButtonVisible,onOpen:a,onClose:l},s)=>{const{root:u}=zr(),c=(u==null?void 0:u.getRootNode())instanceof ShadowRoot,d=m.useRef(null),f=s?Un(s,d):d,{isOpen:p,doClose:h,doOpen:v}=XQe(r,a,l);m.useEffect(()=>{var k;p&&((k=d.current)==null||k.focus())},[p]),m.useEffect(()=>{if(p){const k=setTimeout(()=>{document.body.style.pointerEvents=""},0);return()=>clearTimeout(k)}else document.body.style.pointerEvents="auto"},[p]);const b=m.useRef(new Set),y=m.useMemo(()=>({registerForm:k=>{b.current.add(k)},unRegisterForm:k=>{b.current.delete(k)},amITheSingleForm:k=>b.current.size===1&&b.current.has(k),requestClose:()=>h()}),[h]);if(!u)return null;const w=C.jsxs(kS,{className:ze(xu.content),onPointerDownOutside:k=>{k.target instanceof Element&&k.target.closest("._debug-inspect-button")!==null&&k.preventDefault()},ref:f,style:{...t,gap:void 0},children:[!!o&&C.jsx(S9,{style:{marginTop:0},children:C.jsx("header",{id:"dialogTitle",className:xu.dialogTitle,children:o})}),C.jsx("div",{className:xu.innerContent,style:{gap:t==null?void 0:t.gap},children:C.jsx(ete.Provider,{value:y,children:e})}),i&&C.jsx(sQ,{asChild:!0,children:C.jsx(cn,{variant:"ghost",themeColor:"secondary",className:xu.closeButton,"aria-label":"Close",icon:C.jsx(xt,{name:"close",size:"sm"}),orientation:"vertical"})})]});return C.jsx(_9,{open:p,onOpenChange:k=>k?v():h(),children:C.jsxs(T9,{container:u,children:[c&&C.jsx("div",{className:ze(xu.overlayBg,xu.nested,{[xu.fullScreen]:n}),children:w}),!c&&C.jsxs(C.Fragment,{children:[C.jsx("div",{className:ze(xu.overlayBg)}),C.jsx(CS,{className:ze(xu.overlay,{[xu.fullScreen]:n}),children:w})]})]})})});N3.displayName="ModalDialog";const ys="ModalDialog",ote={status:"stable",description:"`ModalDialog` creates overlay dialogs that appear on top of the main interface, ideal for forms, confirmations, detailed views, or any content that requires focused user attention. Dialogs are programmatically opened using the `open()` method and can receive parameters for dynamic content.",props:{fullScreen:{description:"Toggles whether the dialog encompasses the whole UI (`true`) or not and has a minimum width and height (`false`).",valueType:"boolean",defaultValue:H3.fullScreen},title:re("Provides a prestyled heading to display the intent of the dialog."),closeButtonVisible:{description:"Shows (`true`) or hides (`false`) the visibility of the close button on the dialog.",valueType:"boolean",defaultValue:H3.closeButtonVisible}},events:{open:re(`This event is fired when the \`${ys}\` is opened either via a \`when\` or an imperative API call (\`open()\`).`),close:re(`This event is fired when the close button is pressed or the user clicks outside the \`${ys}\`.`)},apis:{close:re(`This method is used to close the \`${ys}\`. Invoke it using \`modalId.close()\` where \`modalId\` refers to a \`ModalDialog\` component.`),open:re("This method imperatively opens the modal dialog. You can pass an arbitrary number of parameters to the method. In the `ModalDialog` instance, you can access those with the `$paramq` and `$params` context values.")},contextVars:{$param:re("First parameter passed to the `open()` method"),$params:re("Array of all parameters passed to `open()` method (access with `$params[0]`, `$params[1]`, etc.)")},themeVars:Ze(xu.themeVars),defaultThemeVars:{...aH(ys,{all:"$space-7"}),[`backgroundColor-${ys}`]:"$backgroundColor-primary",[`backgroundColor-overlay-${ys}`]:"$backgroundColor-overlay",[`textColor-${ys}`]:"$textColor-primary",[`borderRadius-${ys}`]:"$borderRadius",[`fontFamily-${ys}`]:"$fontFamily",[`maxWidth-${ys}`]:"450px",[`marginBottom-title-${ys}`]:"0"}},QQe=we(ys,ote,({node:e,extractValue:t,layoutCss:r,renderChild:n,lookupEventHandler:o,registerComponentApi:i,layoutContext:a})=>{var l,s;return a!=null&&a._insideModalFrame?C.jsx(N3,{style:r,fullScreen:t((l=e.props)==null?void 0:l.fullScreen),title:t((s=e.props)==null?void 0:s.title),closeButtonVisible:t.asOptionalBoolean(e.props.closeButtonVisible),children:n(e.children,{type:"Stack"})}):C.jsx(tte,{isInitiallyOpen:e.when!==void 0,registerComponentApi:i,onClose:o("close"),onOpen:o("open"),renderDialog:({openParams:u,ref:c})=>C.jsx(Oi,{node:e,renderChild:n,layoutContext:{_insideModalFrame:!0},contextVars:{$param:u==null?void 0:u[0],$params:u}})})}),lH={themeVars:`'{"padding-NoResult": "var(--xmlui-padding-NoResult)", "paddingHorizontal-NoResult": "var(--xmlui-paddingHorizontal-NoResult, var(--xmlui-padding-NoResult))", "paddingVertical-NoResult": "var(--xmlui-paddingVertical-NoResult, var(--xmlui-padding-NoResult))", "paddingLeft-NoResult": "var(--xmlui-paddingLeft-NoResult, var(--xmlui-paddingHorizontal-NoResult, var(--xmlui-padding-NoResult)))", "paddingRight-NoResult": "var(--xmlui-paddingRight-NoResult, var(--xmlui-paddingHorizontal-NoResult, var(--xmlui-padding-NoResult)))", "paddingTop-NoResult": "var(--xmlui-paddingTop-NoResult, var(--xmlui-paddingVertical-NoResult, var(--xmlui-padding-NoResult)))", "paddingBottom-NoResult": "var(--xmlui-paddingBottom-NoResult, var(--xmlui-paddingVertical-NoResult, var(--xmlui-padding-NoResult)))", "border-NoResult": "var(--xmlui-border-NoResult)", "borderHorizontal-NoResult": "var(--xmlui-borderHorizontal-NoResult, var(--xmlui-border-NoResult))", "borderVertical-NoResult": "var(--xmlui-borderVertical-NoResult, var(--xmlui-border-NoResult))", "borderLeft-NoResult": "var(--xmlui-borderLeft-NoResult, var(--xmlui-borderHorizontal-NoResult, var(--xmlui-border-NoResult)))", "borderRight-NoResult": "var(--xmlui-borderRight-NoResult, var(--xmlui-borderHorizontal-NoResult, var(--xmlui-border-NoResult)))", "borderTop-NoResult": "var(--xmlui-borderTop-NoResult, var(--xmlui-borderVertical-NoResult, var(--xmlui-border-NoResult)))", "borderBottom-NoResult": "var(--xmlui-borderBottom-NoResult, var(--xmlui-borderVertical-NoResult, var(--xmlui-border-NoResult)))", "borderWidth-NoResult": "var(--xmlui-borderWidth-NoResult)", "borderHorizontalWidth-NoResult": "var(--xmlui-borderHorizontalWidth-NoResult, var(--xmlui-borderWidth-NoResult))", "borderLeftWidth-NoResult": "var(--xmlui-borderLeftWidth-NoResult, var(--xmlui-borderHorizontalWidth-NoResult, var(--xmlui-borderWidth-NoResult)))", "borderRightWidth-NoResult": "var(--xmlui-borderRightWidth-NoResult, var(--xmlui-borderHorizontalWidth-NoResult, var(--xmlui-borderWidth-NoResult)))", "borderVerticalWidth-NoResult": "var(--xmlui-borderVerticalWidth-NoResult, var(--xmlui-borderWidth-NoResult))", "borderTopWidth-NoResult": "var(--xmlui-borderTopWidth-NoResult, var(--xmlui-borderVerticalWidth-NoResult, var(--xmlui-borderWidth-NoResult)))", "borderBottomWidth-NoResult": "var(--xmlui-borderBottomWidth-NoResult, var(--xmlui-borderVerticalWidth-NoResult, var(--xmlui-borderWidth-NoResult)))", "borderStyle-NoResult": "var(--xmlui-borderStyle-NoResult)", "borderHorizontalStyle-NoResult": "var(--xmlui-borderHorizontalStyle-NoResult, var(--xmlui-borderStyle-NoResult))", "borderLeftStyle-NoResult": "var(--xmlui-borderLeftStyle-NoResult, var(--xmlui-borderHorizontalStyle-NoResult, var(--xmlui-borderStyle-NoResult)))", "borderRightStyle-NoResult": "var(--xmlui-borderRightStyle-NoResult, var(--xmlui-borderHorizontalStyle-NoResult, var(--xmlui-borderStyle-NoResult)))", "borderVerticalStyle-NoResult": "var(--xmlui-borderVerticalStyle-NoResult, var(--xmlui-borderStyle-NoResult))", "borderTopStyle-NoResult": "var(--xmlui-borderTopStyle-NoResult, var(--xmlui-borderVerticalStyle-NoResult, var(--xmlui-borderStyle-NoResult)))", "borderBottomStyle-NoResult": "var(--xmlui-borderBottomStyle-NoResult, var(--xmlui-borderVerticalStyle-NoResult, var(--xmlui-borderStyle-NoResult)))", "borderColor-NoResult": "var(--xmlui-borderColor-NoResult)", "borderHorizontalColor-NoResult": "var(--xmlui-borderHorizontalColor-NoResult, var(--xmlui-borderColor-NoResult))", "borderLeftColor-NoResult": "var(--xmlui-borderLeftColor-NoResult, var(--xmlui-borderHorizontalColor-NoResult, var(--xmlui-borderColor-NoResult)))", "borderRightColor-NoResult": "var(--xmlui-borderRightColor-NoResult, var(--xmlui-borderHorizontalColor-NoResult, var(--xmlui-borderColor-NoResult)))", "borderVerticalColor-NoResult": "var(--xmlui-borderVerticalColor-NoResult, var(--xmlui-borderColor-NoResult))", "borderTopColor-NoResult": "var(--xmlui-borderTopColor-NoResult, var(--xmlui-borderVerticalColor-NoResult, var(--xmlui-borderColor-NoResult)))", "borderBottomColor-NoResult": "var(--xmlui-borderBottomColor-NoResult, var(--xmlui-borderVerticalColor-NoResult, var(--xmlui-borderColor-NoResult)))", "borderStartStartRadius-NoResult": "var(--xmlui-borderStartStartRadius-NoResult, var(--xmlui-borderRadius-NoResult))", "borderStartEndRadius-NoResult": "var(--xmlui-borderStartEndRadius-NoResult, var(--xmlui-borderRadius-NoResult))", "borderEndStartRadius-NoResult": "var(--xmlui-borderEndStartRadius-NoResult, var(--xmlui-borderRadius-NoResult))", "borderEndEndRadius-NoResult": "var(--xmlui-borderEndEndRadius-NoResult, var(--xmlui-borderRadius-NoResult))", "gap-icon-NoResult": "var(--xmlui-gap-icon-NoResult)", "size-icon-NoResult": "var(--xmlui-size-icon-NoResult)"}'`,wrapper:"_wrapper_1vx80_13",icon:"_icon_1vx80_45"},$3={hideIcon:!1,icon:"noresult"},ZQe=m.forwardRef(function({label:t,icon:r=$3.icon,hideIcon:n=$3.hideIcon,style:o},i){return C.jsxs("div",{className:lH.wrapper,style:o,ref:i,children:[!n&&C.jsx(xt,{name:r,className:lH.icon}),t]})}),mw="NoResult",ite={status:"stable",description:"`NoResult` displays a visual indication that a query or search returned nothing.",props:{label:io(),icon:{description:"This property defines the icon to display with the component.",valueType:"string",defaultValue:$3.icon},hideIcon:{description:"This boolean property indicates if the icon should be hidden.",valueType:"boolean",defaultValue:$3.hideIcon}},themeVars:Ze(lH.themeVars),defaultThemeVars:{[`border-${mw}`]:"0px solid $borderColor",[`paddingVertical-${mw}`]:"$space-2",[`gap-icon-${mw}`]:"$space-2",[`size-icon-${mw}`]:"$space-8",light:{},dark:{}}},JQe=we(mw,ite,({node:e,extractValue:t,layoutCss:r})=>C.jsx(ZQe,{label:t.asDisplayText(e.props.label||e.children||"No results found"),icon:e.props.icon,hideIcon:t.asOptionalBoolean(e.props.hideIcon),style:r})),sH={themeVars:`'{"backgroundColor-FileUploadDropZone": "var(--xmlui-backgroundColor-FileUploadDropZone)", "textColor-FileUploadDropZone": "var(--xmlui-textColor-FileUploadDropZone)", "backgroundColor-dropping-FileUploadDropZone": "var(--xmlui-backgroundColor-dropping-FileUploadDropZone)", "opacity-dropping-FileUploadDropZone": "var(--xmlui-opacity-dropping-FileUploadDropZone)"}'`,wrapper:"_wrapper_15hp1_13",dropPlaceholder:"_dropPlaceholder_15hp1_21"};var eZe=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function pw(e,t){var r=tZe(e);if(typeof r.path!="string"){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof t=="string"?t:typeof n=="string"&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function tZe(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var n=t.split(".").pop().toLowerCase(),o=eZe.get(n);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var rZe=[".DS_Store","Thumbs.db"];function nZe(e){return nb(this,void 0,void 0,function(){return ob(this,function(t){return D3(e)&&oZe(e.dataTransfer)?[2,sZe(e.dataTransfer,e.type)]:iZe(e)?[2,aZe(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,lZe(e)]:[2,[]]})})}function oZe(e){return D3(e)}function iZe(e){return D3(e)&&D3(e.target)}function D3(e){return typeof e=="object"&&e!==null}function aZe(e){return uH(e.target.files).map(function(t){return pw(t)})}function lZe(e){return nb(this,void 0,void 0,function(){var t;return ob(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(n){return n.getFile()}))];case 1:return t=r.sent(),[2,t.map(function(n){return pw(n)})]}})})}function sZe(e,t){return nb(this,void 0,void 0,function(){var r,n;return ob(this,function(o){switch(o.label){case 0:return e.items?(r=uH(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map(uZe))]):[3,2];case 1:return n=o.sent(),[2,ate(lte(n))];case 2:return[2,ate(uH(e.files).map(function(i){return pw(i)}))]}})})}function ate(e){return e.filter(function(t){return rZe.indexOf(t.name)===-1})}function uH(e){if(e===null)return[];for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function uZe(e){if(typeof e.webkitGetAsEntry!="function")return ste(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?ute(t):ste(e)}function lte(e){return e.reduce(function(t,r){return ib(ib([],DX(t),!1),DX(Array.isArray(r)?lte(r):[r]),!1)},[])}function ste(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var r=pw(t);return Promise.resolve(r)}function cZe(e){return nb(this,void 0,void 0,function(){return ob(this,function(t){return[2,e.isDirectory?ute(e):dZe(e)]})})}function ute(e){var t=e.createReader();return new Promise(function(r,n){var o=[];function i(){var a=this;t.readEntries(function(l){return nb(a,void 0,void 0,function(){var s,u,c;return ob(this,function(d){switch(d.label){case 0:if(l.length)return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return s=d.sent(),r(s),[3,4];case 3:return u=d.sent(),n(u),[3,4];case 4:return[3,6];case 5:c=Promise.all(l.map(cZe)),o.push(c),i(),d.label=6;case 6:return[2]}})})},function(l){n(l)})}i()})}function dZe(e){return nb(this,void 0,void 0,function(){return ob(this,function(t){return[2,new Promise(function(r,n){e.file(function(o){var i=pw(o,e.fullPath);r(i)},function(o){n(o)})})]})})}var fZe=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(",");if(r.length===0)return!0;var n=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return r.some(function(a){var l=a.trim().toLowerCase();return l.charAt(0)==="."?n.toLowerCase().endsWith(l):l.endsWith("/*")?i===l.replace(/\/.*$/,""):o===l})}return!0};function cte(e){return hZe(e)||pZe(e)||pte(e)||mZe()}function mZe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
225
|
+
color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,r==null?void 0:r.key)}return(s=r==null?void 0:r.onChange)==null||s.call(r,o),o}}function UL(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const vXe=(e,t)=>Math.abs(e-t)<1,bXe=(e,t,r)=>{let n;return function(...o){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,o),r)}};var aw={NODE_ENV:"production"};const xXe=e=>e,yXe=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let o=t;o<=r;o++)n.push(o);return n},wXe=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const o=a=>{const{width:l,height:s}=a;t({width:Math.round(l),height:Math.round(s)})};if(o(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const i=new n.ResizeObserver(a=>{const l=a[0];if(l!=null&&l.borderBoxSize){const s=l.borderBoxSize[0];if(s){o({width:s.inlineSize,height:s.blockSize});return}}o(r.getBoundingClientRect())});return i.observe(r,{box:"border-box"}),()=>{i.unobserve(r)}},kee={passive:!0},CXe=typeof window>"u"?!0:"onscrollend"in window,kXe=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let o=0;const i=CXe?()=>{}:bXe(n,()=>{t(o,!1)},e.options.isScrollingResetDelay),a=u=>()=>{const{horizontal:c,isRtl:d}=e.options;o=c?r.scrollLeft*(d&&-1||1):r.scrollTop,i(),t(o,u)},l=a(!0),s=a(!1);return s(),r.addEventListener("scroll",l,kee),r.addEventListener("scrollend",s,kee),()=>{r.removeEventListener("scroll",l),r.removeEventListener("scrollend",s)}},_Xe=(e,t,r)=>{if(t!=null&&t.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},TXe=(e,{adjustments:t=0,behavior:r},n)=>{var o,i;const a=e+t;(i=(o=n.scrollElement)==null?void 0:o.scrollTo)==null||i.call(o,{[n.options.horizontal?"left":"top"]:a,behavior:r})};class SXe{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(o=>{o.forEach(i=>{this._measureElement(i.target,i)})}));return{disconnect:()=>{var o;(o=n())==null||o.disconnect(),r=null},observe:o=>{var i;return(i=n())==null?void 0:i.observe(o,{box:"border-box"})},unobserve:o=>{var i;return(i=n())==null?void 0:i.unobserve(o)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,o])=>{typeof o>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:xXe,rangeExtractor:yXe,onChange:()=>{},measureElement:_Xe,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,...r}},this.notify=r=>{var n,o;(o=(n=this.options).onChange)==null||o.call(n,this,r)},this.maybeNotify=Ib(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:aw.NODE_ENV!=="production",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=i,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,n)=>{const o=new Map,i=new Map;for(let a=n-1;a>=0;a--){const l=r[a];if(o.has(l.lane))continue;const s=i.get(l.lane);if(s==null||l.end>s.end?i.set(l.lane,l):l.end<s.end&&o.set(l.lane,!0),o.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((a,l)=>a.end===l.end?a.index-l.index:a.end-l.end)[0]:void 0},this.getMeasurementOptions=Ib(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(r,n,o,i,a)=>(this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:o,getItemKey:i,enabled:a}),{key:!1}),this.getMeasurements=Ib(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:o,getItemKey:i,enabled:a},l)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const s=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,s);for(let c=s;c<r;c++){const d=i(c),f=this.options.lanes===1?u[c-1]:this.getFurthestMeasurement(u,c),p=f?f.end+this.options.gap:n+o,h=l.get(d),v=typeof h=="number"?h:this.options.estimateSize(c),b=p+v,y=f?f.lane:c%this.options.lanes;u[c]={index:c,start:p,size:v,end:b,key:d,lane:y}}return this.measurementsCache=u,u},{key:aw.NODE_ENV!=="production",debug:()=>this.options.debug}),this.calculateRange=Ib(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(r,n,o)=>this.range=r.length>0&&n>0?EXe({measurements:r,outerSize:n,scrollOffset:o}):null,{key:aw.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getIndexes=Ib(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(r,n,o,i)=>n===null?[]:r({startIndex:n.startIndex,endIndex:n.endIndex,overscan:o,count:i}),{key:aw.NODE_ENV!=="production",debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,o=r.getAttribute(n);return o?parseInt(o,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(r,n)=>{const o=this.indexFromElement(r),i=this.measurementsCache[o];if(!i)return;const a=i.key,l=this.elementsCache.get(a);l!==r&&(l&&this.observer.unobserve(l),this.observer.observe(r),this.elementsCache.set(a,r)),r.isConnected&&this.resizeItem(o,this.options.measureElement(r,n,this))},this.resizeItem=(r,n)=>{const o=this.measurementsCache[r];if(!o)return;const i=this.itemSizeCache.get(o.key)??o.size,a=n-i;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,a,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,n)),this.notify(!1))},this.measureElement=r=>{if(!r){this.elementsCache.forEach((n,o)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(o))});return}this._measureElement(r,void 0)},this.getVirtualItems=Ib(()=>[this.getIndexes(),this.getMeasurements()],(r,n)=>{const o=[];for(let i=0,a=r.length;i<a;i++){const l=r[i],s=n[l];o.push(s)}return o},{key:aw.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return UL(n[_ee(0,n.length-1,o=>UL(n[o]).start,r)])},this.getOffsetForAlignment=(r,n)=>{const o=this.getSize(),i=this.getScrollOffset();n==="auto"&&(r<=i?n="start":r>=i+o?n="end":n="start"),n==="start"?r=r:n==="end"?r=r-o:n==="center"&&(r=r-o/2);const a=this.options.horizontal?"scrollWidth":"scrollHeight",s=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[a]:this.scrollElement[a]:0)-o;return Math.max(Math.min(s,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const o=this.measurementsCache[r];if(!o)return;const i=this.getSize(),a=this.getScrollOffset();if(n==="auto")if(o.end>=a+i-this.options.scrollPaddingEnd)n="end";else if(o.start<=a+this.options.scrollPaddingStart)n="start";else return[a,n];const l=n==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(l,n),n]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(r,{align:n="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(r,n),{adjustments:void 0,behavior:o})},this.scrollToIndex=(r,{align:n="auto",behavior:o}={})=>{r=Math.max(0,Math.min(r,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const i=this.getOffsetForIndex(r,n);if(!i)return;const[a,l]=i;this._scrollToOffset(a,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(r))){const[u]=UL(this.getOffsetForIndex(r,l));vXe(u,this.getScrollOffset())||this.scrollToIndex(r,{align:l,behavior:o})}else this.scrollToIndex(r,{align:l,behavior:o})}))},this.scrollBy=(r,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+r,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let o;return n.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((r=n[n.length-1])==null?void 0:r.end)??0:Math.max(...n.slice(-this.options.lanes).map(i=>i.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:n,behavior:o})=>{this.options.scrollToFn(r,{behavior:o,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const _ee=(e,t,r,n)=>{for(;e<=t;){const o=(e+t)/2|0,i=r(o);if(i<n)e=o+1;else if(i>n)t=o-1;else return o}return e>0?e-1:0};function EXe({measurements:e,outerSize:t,scrollOffset:r}){const n=e.length-1,i=_ee(0,n,l=>e[l].start,r);let a=i;for(;a<n&&e[a].end<r+t;)a++;return{startIndex:i,endIndex:a}}const AXe=typeof document<"u"?m.useLayoutEffect:m.useEffect;function OXe(e){const t=m.useReducer(()=>({}),{})[1],r={...e,onChange:(o,i)=>{var a;i?Fn.flushSync(t):t(),(a=e.onChange)==null||a.call(e,o,i)}},[n]=m.useState(()=>new SXe(r));return n.setOptions(r),m.useEffect(()=>n._didMount(),[]),AXe(()=>n._willUpdate()),n}function IXe(e){return OXe({observeElementRect:wXe,observeElementOffset:kXe,scrollToFn:TXe,...e})}const Rb={};function qL(e){if(Rb[e]!==void 0)return Rb[e];const t=e.split(/-[A-Z]+/);if(t.length!==2)return Rb[e]=null,Rb[e];const r=t[0],n=r.split(":"),o=n[n.length-1],i=n.length>1?n.slice(0,n.length-1):[],a=e.substring(r.length+1),[l,...s]=a.split("-"),u=a.substring(l.length).split("--"),c=[],d=[];return u.forEach(f=>{!f.includes("-")&&f?c.push(f):f.split("-").forEach(p=>{p&&d.push(p)})}),Rb[e]={classes:i,attribute:o,component:l,traits:d,states:c},Rb[e]}function Tee(e=[]){const t=[];for(let r=1;r<=e.length;r++)for(let n=0;n<=e.length-r;n++)t.push(e.slice(n,n+r));return t.sort((r,n)=>n.length-r.length)}function RXe(e,t=[]){const r=qL(e);if(!r)return;const n=Tee(r.states),o=Tee(r.traits),i=[];o.forEach(d=>{let f="";d.forEach(p=>{f=`${f}-${p}`}),i.push(f)}),i.push("");const a=[];n.forEach(d=>{let f="";d.forEach(p=>{f=`${f}--${p}`}),a.push(f)}),a.push("");const l=[r.component,...r.classes],s=[];a.forEach(d=>{i.forEach(f=>{l.forEach(p=>{s.push(`${r.attribute}-${p}${f}${d}`)})})});let u;for(let d=t.length-1;d>=0;d--){const f=t[d];let p=s.find(h=>f[h]!==void 0);if(p){u=p;break}}return{forValue:s[0],matchedValue:u,from:s}}const PXe="xmlui",LXe=/(\$[a-zA-Z][a-zA-Z0-9-_]*)/g,HXe=/^(true|false)$/,GL=/^\d*\*$/,NXe={cssProps:{},issues:new Set};function See(e=rr,t){const r={cssProps:{},issues:new Set};w(t)&&(r.cssProps.flexShrink=0),h("width");const n=v(r.cssProps.width,t);n!==null&&(r.cssProps.flex=n,r.cssProps.flexShrink=1),h("minWidth"),h("maxWidth"),h("height");const o=b(r.cssProps.height,t);o!==null&&(r.cssProps.flex=o,r.cssProps.flexShrink=1),h("minHeight"),h("maxHeight"),h("top"),h("right"),h("bottom"),h("left"),h("gap"),h("padding");const i=p("paddingHorizontal");i&&(r.cssProps.paddingLeft=i,r.cssProps.paddingRight=i),h("paddingRight"),h("paddingLeft");const a=p("paddingVertical");a&&(r.cssProps.paddingTop=a,r.cssProps.paddingBottom=a),h("paddingTop"),h("paddingBottom"),h("margin");const l=p("marginHorizontal");l&&(r.cssProps.marginLeft=l,r.cssProps.marginRight=l),h("marginRight"),h("marginLeft");const s=p("marginVertical");s&&(r.cssProps.marginTop=s,r.cssProps.marginBottom=s),h("marginTop"),h("marginBottom"),h("border");const u=p("borderHorizontal");u&&(r.cssProps.borderLeft=u,r.cssProps.borderRight=u),h("borderRight"),h("borderLeft");const c=p("borderVertical");c&&(r.cssProps.borderTop=c,r.cssProps.borderBottom=c),h("borderTop"),h("borderBottom"),h("borderColor"),h("borderStyle"),h("borderWidth"),h("borderRadius"),h("radiusTopLeft","borderTopLeftRadius"),h("radiusTopRight","borderTopRightRadius"),h("radiusBottomLeft","borderBottomLeftRadius"),h("radiusBottomRight","borderBottomRightRadius"),h("color"),h("fontFamily"),h("fontSize"),h("fontWeight"),h("fontStyle"),h("fontVariant"),h("lineBreak"),h("textDecoration"),h("textDecorationLine"),h("textDecorationColor"),h("textDecorationStyle"),h("textDecorationThickness"),h("textIndent"),h("textShadow"),h("textUnderlineOffset"),h("userSelect"),h("letterSpacing"),h("textTransform"),h("lineHeight"),h("textAlign"),h("textAlignLast"),h("textWrap"),h("wordBreak"),h("wordSpacing"),h("wordWrap"),h("writingMode"),h("backgroundColor"),h("background"),h("boxShadow"),h("direction"),h("overflowX"),h("overflowY"),h("zIndex"),h("opacity"),h("zoom"),h("cursor"),h("whiteSpace"),h("outline"),h("outlineWidth"),h("outlineColor"),h("outlineStyle"),h("outlineOffset");const d=p("wrapContent");d&&(r.cssProps.flexWrap=d==="true"?"wrap":"nowrap"),h("canShrink","flexShrink");const f=p("canShrink");if(f&&(r.cssProps.flexShrink=f==="true"?1:0),qp(r.cssProps)&&qp(r.issues))return NXe;return r;function p(k){var S,A;const E=_();if(((S=t==null?void 0:t.mediaSize)==null?void 0:S.sizeIndex)!==void 0){const O=(A=t.mediaSize)==null?void 0:A.sizeIndex,I=_("xs"),L=_("sm"),P=_("md"),H=_("lg"),j=_("xl"),W=_("xxl");let B;switch(O){case 0:B=I??L??P;break;case 1:B=L??P;break;case 2:B=P;break;case 3:B=H;break;case 4:B=j??H;break;case 5:B=W??j??H;break}return B??E}return E;function _(O=""){const I=O?`${k}-${O}`:k;let L=e[I];if(L==null)return;typeof L=="string"?L=L.trim():L=L.toString();const P=L?L.replace(LXe,j=>Ol(j.trim())):void 0;if(L!==P)return P;const H=$Xe[k];if(!H||H.length===0)return P;for(const j of H)if(j.test(P))return P;return r.issues.add(I),P}}function h(k,E=""){const _=p(k);_&&(r.cssProps[E||k]=_)}function v(k,E){return k&&w(E)==="horizontal"&&GL.test(k.toString())?y(k.toString()):null}function b(k,E){return k&&w(E)==="vertical"&&GL.test(k.toString())?y(k.toString()):null}function y(k){if(GL.test(k)){const E=k.slice(0,-1);return E===""?1:parseInt(E,10)}return null}function w(k){if(!k)return;let E=(k==null?void 0:k.type)==="Stack"&&(k==null?void 0:k.orientation);return E==null?void 0:E.toString()}}function Ol(e){return`var(--${PXe}-${e.substring(1)})`}const $Xe={width:[],minWidth:[],maxWidth:[],height:[],minHeight:[],maxHeight:[],gap:[],top:[],right:[],bottom:[],left:[],border:[],borderTop:[],borderRight:[],borderBottom:[],borderLeft:[],borderColor:[],borderStyle:[],borderWidth:[],borderHorizontal:[],borderVertical:[],borderRadius:[],radiusTopLeft:[],radiusTopRight:[],radiusBottomLeft:[],radiusBottomRight:[],padding:[],paddingHorizontal:[],paddingVertical:[],paddingTop:[],paddingRight:[],paddingBottom:[],paddingLeft:[],margin:[],marginHorizontal:[],marginVertical:[],marginTop:[],marginRight:[],marginBottom:[],marginLeft:[],backgroundColor:[],background:[],boxShadow:[],direction:[],overflowX:[],overflowY:[],zIndex:[],opacity:[],color:[],fontFamily:[],fontSize:[],fontWeight:[],fontStyle:[HXe],fontVariant:[],lineBreak:[],textDecoration:[],userSelect:[],letterSpacing:[],textTransform:[],lineHeight:[],textAlign:[],textWrap:[],textAlignLast:[],textIndent:[],textShadow:[],wordBreak:[],wordSpacing:[],wordWrap:[],writingMode:[],wrapContent:[],canShrink:[],cursor:[],zoom:[],whiteSpace:[],textDecorationLine:[],textDecorationColor:[],textDecorationStyle:[],textDecorationThickness:[],textUnderlineOffset:[],outline:[],outlineWidth:[],outlineColor:[],outlineStyle:[],outlineOffset:[],transition:[]};function YL(e){return typeof e=="string"&&(e==null?void 0:e.startsWith("$"))}function KL(e,t={}){let r=e;YL(e)&&(r=e.substring(1));const n=t[r];return typeof n=="string"&&YL(n)?KL(n,t):n}function DXe(e){if(!e)return{};const t=lw(e);return{...kh("color-primary",t),...kh("color-secondary",t),...kh("color-info",t),...kh("color-success",t),...kh("color-warn",t),...kh("color-danger",t),...kh("color-surface",t,{distributeEven:!0})}}function BXe(e){if(!e)return{};const r=lw(e)["space-base"];if(!r||typeof r!="string")return{};let n=r.trim();n.startsWith(".")&&(n=`0${n}`);const o=parseFloat(n);let i=n.replace(o+"","")||"px";if(Number.isNaN(o))return{};const a=[0,.5,1,1.5,2,2.5,3,3.5,4,5,6,7,8,9,10,11,12,14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96],l={};return a.forEach(s=>{l[`space-${(s+"").replace(".","_")}`]=`${s*o}${i}`}),l}function jXe(e){if(!e)return{};const r=lw(e).fontSize;if(!r||typeof r!="string")return{};let n=r.trim();n.startsWith(".")&&(n=`0${n}`);const o=parseFloat(n);let i=n.replace(o+"","")||"px";if(Number.isNaN(o))return{};const a={};return a["fontSize-large"]=`${1.5*o}${i}`,a["fontSize-medium"]=`${1.25*o}${i}`,a["fontSize-semimedium"]=`${1.125*o}${i}`,a["fontSize-normal"]=r,a["fontSize-small"]=`${.875*o}${i}`,a["fontSize-code"]=`${.85*o}${i}`,a["fontSize-smaller"]=`${.75*o}${i}`,a["fontSize-tiny"]=`${.625*o}${i}`,a}function MXe(e){if(!e)return{};const r=lw(e)["fontSize-Text"];if(!r||typeof r!="string")return{};const n={};return n["fontSize-Text-keyboard"]=`calc(${Ol("$fontSize-Text")} * 0.875)`,n["fontSize-Text-sample"]=`calc(${Ol("$fontSize-Text")} * 0.875)`,n["fontSize-Text-sup"]=`calc(${Ol("$fontSize-Text")} * 0.625)`,n["fontSize-Text-sub"]=`calc(${Ol("$fontSize-Text")} * 0.625)`,n["fontSize-Text-title"]=`calc(${Ol("$fontSize-Text")} * 1.5)`,n["fontSize-Text-subtitle"]=`calc(${Ol("$fontSize-Text")} * 1.25)`,n["fontSize-Text-small"]=`calc(${Ol("$fontSize-Text")} * 0.875)`,n["fontSize-Text-placeholder"]=`calc(${Ol("$fontSize-Text")} * 0.875)`,n["fontSize-Text-paragraph"]=Ol("$fontSize-Text"),n["fontSize-Text-subheading"]=`calc(${Ol("$fontSize-Text")} * 0.625)`,n["fontSize-Text-tableheading"]=`calc(${Ol("$fontSize-Text")} * 0.625)`,n["fontSize-Text-secondary"]=`calc(${Ol("$fontSize-Text")} * 0.875)`,n}function zXe(e){if(!e)return{};const t=lw(e),r=["primary","secondary","attention"];let n={};return r.forEach(o=>{const i=QL(XL(t,`color-Button-${o}-solid`),s=>({[`backgroundColor-Button-${o}-solid`]:s.base,[`backgroundColor-Button-${o}-solid--hover`]:s.tone1,[`backgroundColor-Button-${o}-solid--active`]:s.tone2,[`borderColor-Button-${o}-solid`]:s.base,[`borderColor-Button-${o}-solid--hover`]:s.base,[`borderColor-Button-${o}-solid--active`]:s.base,[`textColor-Button-${o}-solid`]:s.tone3,[`textColor-Button-${o}-solid--hover`]:s.tone3,[`textColor-Button-${o}-solid--active`]:s.tone3})),a=QL(XL(t,`color-Button-${o}-outlined`),s=>({[`backgroundColor-Button-${o}-outlined--hover`]:s.alpha1,[`backgroundColor-Button-${o}-outlined--active`]:s.alpha2,[`borderColor-Button-${o}-outlined`]:s.base,[`borderColor-Button-${o}-outlined--hover`]:s.tone1,[`borderColor-Button-${o}-outlined--active`]:s.tone2,[`textColor-Button-${o}-outlined`]:s.base,[`textColor-Button-${o}-outlined--hover`]:s.tone1,[`textColor-Button-${o}-outlined--active`]:s.tone2})),l=QL(XL(t,`color-Button-${o}-ghost`),s=>({[`backgroundColor-Button-${o}-ghost--active`]:s.alpha2,[`backgroundColor-Button-${o}-ghost--hover`]:s.alpha1,[`textColor-Button-${o}-ghost`]:s.base,[`textColor-Button-${o}-ghost--hover`]:s.tone1,[`textColor-Button-${o}-ghost--active`]:s.tone2}));n={...n,...i,...a,...l}}),n}const FXe=/^padding-(?!(?:horizontal|vertical|left|right|top|bottom)-)(.+)$/,WXe=/^paddingHorizontal-(.+)$/,VXe=/^paddingVertical-(.+)$/;function Eee(e){if(!e)return{};const t={...e};return Object.entries(e).forEach(([r,n])=>{var o,i,a,l,s,u,c,d,f,p,h,v,b,y,w,k,E,_,S,A;if(n==null){delete t[r];return}let O=WXe.exec(r);if(O){const j=O[1];t[o=`paddingLeft-${j}`]??(t[o]=n),t[i=`paddingRight-${j}`]??(t[i]=n)}if(O=VXe.exec(r),O){const j=O[1];t[a=`paddingTop-${j}`]??(t[a]=n),t[l=`paddingBottom-${j}`]??(t[l]=n)}if(O=FXe.exec(r),!O)return;const I=O[1],L=e[`paddingHorizontal-${I}`],P=e[`paddingVertical-${I}`],H=n.trim().replace(/ +/g," ").split(" ");switch(H.length){case 1:t[s=`paddingTop-${I}`]??(t[s]=P??H[0]),t[u=`paddingRight-${I}`]??(t[u]=L??H[0]),t[c=`paddingBottom-${I}`]??(t[c]=P??H[0]),t[d=`paddingLeft-${I}`]??(t[d]=L??H[0]);break;case 2:t[f=`paddingTop-${I}`]??(t[f]=P??H[0]),t[p=`paddingRight-${I}`]??(t[p]=L??H[1]),t[h=`paddingBottom-${I}`]??(t[h]=P??H[0]),t[v=`paddingLeft-${I}`]??(t[v]=L??H[1]);break;case 3:t[b=`paddingTop-${I}`]??(t[b]=P??H[0]),t[y=`paddingRight-${I}`]??(t[y]=L??H[1]),t[w=`paddingBottom-${I}`]??(t[w]=P??H[2]),t[k=`paddingLeft-${I}`]??(t[k]=L??H[1]);break;case 4:t[E=`paddingTop-${I}`]??(t[E]=P??H[0]),t[_=`paddingRight-${I}`]??(t[_]=L??H[1]),t[S=`paddingBottom-${I}`]??(t[S]=P??H[2]),t[A=`paddingLeft-${I}`]??(t[A]=L??H[3]);break;default:return}}),t}const UXe=/^border-(.+)$/,qXe=/^borderWidth-(.+)$/,GXe=/^borderHorizontalWidth-(.+)$/,YXe=/^borderVerticalWidth-(.+)$/,KXe=/^borderStyle-(.+)$/,XXe=/^borderHorizontalStyle-(.+)$/,QXe=/^borderVerticalStyle-(.+)$/,ZXe=/^borderLeft-(.+)$/,JXe=/^borderRight-(.+)$/,eQe=/^borderTop-(.+)$/,tQe=/^borderBottom-(.+)$/,rQe=/^borderHorizontal-(.+)$/,nQe=/^borderVertical-(.+)$/,oQe=/^borderColor-(.+)$/,iQe=/^borderHorizontalColor-(.+)$/,aQe=/^borderVerticalColor-(.+)$/;function Aee(e){if(!e)return{};const t={...e};return Object.entries(e).forEach(([n,o])=>{var i,a,l;let s=UXe.exec(n);if(s){const u=s[1];t[`borderLeft-${u}`]=o,t[`borderRight-${u}`]=o,t[`borderTop-${u}`]=o,t[`borderBottom-${u}`]=o;const c=r(o);t[i=`borderWidth-${u}`]??(t[i]=c.thickness),t[a=`borderStyle-${u}`]??(t[a]=c.style),t[l=`borderColor-${u}`]??(t[l]=c.color)}if(s=qXe.exec(n),s){const u=s[1];t[`borderLeftWidth-${u}`]=o,t[`borderRightWidth-${u}`]=o,t[`borderTopWidth-${u}`]=o,t[`borderBottomWidth-${u}`]=o}if(s=KXe.exec(n),s){const u=s[1];t[`borderLeftStyle-${u}`]=o,t[`borderRightStyle-${u}`]=o,t[`borderTopStyle-${u}`]=o,t[`borderBottomStyle-${u}`]=o}if(s=oQe.exec(n),s){const u=s[1];t[`borderLeftColor-${u}`]=o,t[`borderRightColor-${u}`]=o,t[`borderTopColor-${u}`]=o,t[`borderBottomColor-${u}`]=o}if(s=rQe.exec(n),s){const u=s[1];t[`borderLeft-${u}`]=o,t[`borderRight-${u}`]=o;const c=r(o);c.thickness&&(t[`borderLeftWidth-${u}`]=c.thickness,t[`borderRightWidth-${u}`]=c.thickness),c.style&&(t[`borderLeftStyle-${u}`]=c.style,t[`borderRightStyle-${u}`]=c.style),c.color&&(t[`borderLeftColor-${u}`]=c.color,t[`borderRightColor-${u}`]=c.color)}if(s=nQe.exec(n),s){const u=s[1];t[`borderTop-${u}`]=o,t[`borderBottom-${u}`]=o;const c=r(o);c.thickness&&(t[`borderTopWidth-${u}`]=c.thickness,t[`borderBottomWidth-${u}`]=c.thickness),c.style&&(t[`borderTopStyle-${u}`]=c.style,t[`borderBottomStyle-${u}`]=c.style),c.color&&(t[`borderTopColor-${u}`]=c.color,t[`borderBottomColor-${u}`]=c.color)}if(s=ZXe.exec(n),s){const u=s[1],c=r(o);c.thickness&&!e[`borderLeftWidth-${u}`]&&(t[`borderLeftWidth-${u}`]=c.thickness),c.style&&!e[`borderLeftStyle-${u}`]&&(t[`borderLeftStyle-${u}`]=c.style),c.color&&!e[`borderLeftColor-${u}`]&&(t[`borderLeftColor-${u}`]=c.color)}if(s=JXe.exec(n),s){const u=s[1],c=r(o);c.thickness&&(t[`borderRightWidth-${u}`]=c.thickness),c.style&&(t[`borderRightStyle-${u}`]=c.style),c.color&&(t[`borderRightColor-${u}`]=c.color)}if(s=eQe.exec(n),s){const u=s[1],c=r(o);c.thickness&&(t[`borderTopWidth-${u}`]=c.thickness),c.style&&(t[`borderTopStyle-${u}`]=c.style),c.color&&(t[`borderTopColor-${u}`]=c.color)}if(s=tQe.exec(n),s){const u=s[1],c=r(o);c.thickness&&(t[`borderBottomWidth-${u}`]=c.thickness),c.style&&(t[`borderBottomStyle-${u}`]=c.style),c.color&&(t[`borderBottomColor-${u}`]=c.color)}if(s=GXe.exec(n),s){const u=s[1];t[`borderLeftWidth-${u}`]=o,t[`borderRightWidth-${u}`]=o}if(s=YXe.exec(n),s){const u=s[1];t[`borderTopWidth-${u}`]=o,t[`borderBottomWidth-${u}`]=o}if(s=XXe.exec(n),s){const u=s[1];t[`borderLeftStyle-${u}`]=o,t[`borderRightStyle-${u}`]=o}if(s=QXe.exec(n),s){const u=s[1];t[`borderTopStyle-${u}`]=o,t[`borderBottomStyle-${u}`]=o}if(s=iQe.exec(n),s){const u=s[1];t[`borderLeftColor-${u}`]=o,t[`borderRightColor-${u}`]=o}if(s=aQe.exec(n),s){const u=s[1];t[`borderTopColor-${u}`]=o,t[`borderBottomColor-${u}`]=o}}),t;function r(n){var o,i,a;try{const s=new SK(n).parseBorder(),u={style:s.styleValue,thickness:s.widthValue!==void 0?`${s.widthValue}${s.widthUnit??"px"}`:void 0,color:s.color===void 0?void 0:typeof s.color=="string"?s.color:s.color.toString()};if(s.themeId1&&s.themeId2&&s.themeId3)return{thickness:s.themeId1.id,style:s.themeId2.id,color:s.themeId3.id};if(s.themeId1&&s.themeId2)return u.thickness?{thickness:u.thickness,style:s.themeId1.id,color:s.themeId2.id}:u.style?{thickness:s.themeId1.id,style:u.style,color:s.themeId2.id}:{thickness:s.themeId1.id,style:s.themeId2.id,color:u.color};if(s.themeId1){if(u.thickness&&u.style)return{thickness:u.thickness,style:u.style,color:s.themeId1.id};if(u.thickness&&u.color)return{thickness:u.thickness,style:s.themeId1.id,color:u.color};if(u.style&&u.color)return{thickness:s.themeId1.id,style:u.style,color:u.color}}return{thickness:(o=u.thickness)==null?void 0:o.trim(),style:(i=u.style)==null?void 0:i.trim(),color:(a=u.color)==null?void 0:a.trim()}}catch{return{thickness:void 0,style:void 0,color:void 0}}}}function XL(e,t){if(e[t])return e[t];const r=qL(t);if(!r)return null;let n=null,o=null;return Object.keys(e).forEach(i=>{const a=qL(i);if(!(!a||a.component!==r.component||a.attribute!==r.attribute)&&!a.states.length&&a.traits.every(l=>r.traits.includes(l))&&(!n||n.traits.length<=a.traits.length)){n=a,o=i;return}}),o?e[o]:null}function lw(e){const t={};return Object.keys(e).forEach(r=>{t[r]=KL(r,e)}),t}function kh(e,t,r={distributeEven:!1}){try{const{distributeEven:n}=r,o=t[e];if(!o||typeof o!="string")return{};const i=qv(o);let a,l,s,u,c,d,f,p,h,v,b,y,w;if(n)a=i.lightness(100),l=i.lightness(98),s=i.lightness(95),u=i.lightness(83),c=i.lightness(75),d=i.lightness(63),f=i.lightness(52),p=i.lightness(40),h=i.lightness(32),v=i.lightness(27),b=i.lightness(16),y=i.lightness(13),w=i.lightness(9);else{const k=i.hsl().l(),E=k/5,_=(100-k)/5;a=i.lightness(100),l=i.lightness(k+_*4.5),s=i.lightness(k+_*4),u=i.lightness(k+_*3),c=i.lightness(k+_*2),d=i.lightness(k+_*1),f=i.lightness(k),p=i.lightness(k-E*1),h=i.lightness(k-E*2),v=i.lightness(k-E*3),b=i.lightness(k-E*4),y=i.lightness(k-E*4.5),w=i.lightness(k-E*5)}return{[`const-${e}-0`]:a.toString(),[`const-${e}-50`]:l.toString(),[`const-${e}-100`]:s.toString(),[`const-${e}-200`]:u.toString(),[`const-${e}-300`]:c.toString(),[`const-${e}-400`]:d.toString(),[`const-${e}-500`]:f.toString(),[`const-${e}-600`]:p.toString(),[`const-${e}-700`]:h.toString(),[`const-${e}-800`]:v.toString(),[`const-${e}-900`]:b.toString(),[`const-${e}-950`]:y.toString(),[`const-${e}-1000`]:w.toString()}}catch{return console.error("Error generating base tones for color:",e),{}}}function QL(e,t){const r=lQe(e);return r?t(r):{}}function lQe(e){if(!e||typeof e!="string"||e.startsWith("$"))return null;const t=qv(e);let r,n,o;t.isLight()?(r=t.darken(.2).toString(),n=t.darken(.1).toString(),o=t.darken(.95).toString()):(r=t.lighten(.2).toString(),n=t.lighten(.1).toString(),o=t.lighten(.95).toString());const i=t.alpha(.1).toString(),a=t.alpha(.2).toString();return{base:e,tone1:r,tone2:n,tone3:o,alpha1:i,alpha2:a}}const yc={themeVars:`'{"Input:borderRadius-Checkbox-default": "var(--xmlui-borderRadius-Checkbox-default)", "Input:borderColor-Checkbox-default": "var(--xmlui-borderColor-Checkbox-default)", "Input:backgroundColor-Checkbox-default": "var(--xmlui-backgroundColor-Checkbox-default)", "Input:outlineWidth-Checkbox-default--focus": "var(--xmlui-outlineWidth-Checkbox-default--focus)", "Input:outlineColor-Checkbox-default--focus": "var(--xmlui-outlineColor-Checkbox-default--focus)", "Input:outlineStyle-Checkbox-default--focus": "var(--xmlui-outlineStyle-Checkbox-default--focus)", "Input:outlineOffset-Checkbox-default--focus": "var(--xmlui-outlineOffset-Checkbox-default--focus)", "Input:borderColor-Checkbox-default--hover": "var(--xmlui-borderColor-Checkbox-default--hover)", "Input:backgroundColor-Checkbox--disabled": "var(--xmlui-backgroundColor-Checkbox--disabled)", "Input:borderColor-Checkbox--disabled": "var(--xmlui-borderColor-Checkbox--disabled)", "Input:borderRadius-Checkbox-error": "var(--xmlui-borderRadius-Checkbox-error)", "Input:borderColor-Checkbox-error": "var(--xmlui-borderColor-Checkbox-error)", "Input:backgroundColor-Checkbox-error": "var(--xmlui-backgroundColor-Checkbox-error)", "Input:outlineWidth-Checkbox-error--focus": "var(--xmlui-outlineWidth-Checkbox-error--focus)", "Input:outlineColor-Checkbox-error--focus": "var(--xmlui-outlineColor-Checkbox-error--focus)", "Input:outlineStyle-Checkbox-error--focus": "var(--xmlui-outlineStyle-Checkbox-error--focus)", "Input:outlineOffset-Checkbox-error--focus": "var(--xmlui-outlineOffset-Checkbox-error--focus)", "Input:borderRadius-Checkbox-warning": "var(--xmlui-borderRadius-Checkbox-warning)", "Input:borderColor-Checkbox-warning": "var(--xmlui-borderColor-Checkbox-warning)", "Input:backgroundColor-Checkbox-warning": "var(--xmlui-backgroundColor-Checkbox-warning)", "Input:outlineWidth-Checkbox-warning--focus": "var(--xmlui-outlineWidth-Checkbox-warning--focus)", "Input:outlineColor-Checkbox-warning--focus": "var(--xmlui-outlineColor-Checkbox-warning--focus)", "Input:outlineStyle-Checkbox-warning--focus": "var(--xmlui-outlineStyle-Checkbox-warning--focus)", "Input:outlineOffset-Checkbox-warning--focus": "var(--xmlui-outlineOffset-Checkbox-warning--focus)", "Input:borderRadius-Checkbox-success": "var(--xmlui-borderRadius-Checkbox-success)", "Input:borderColor-Checkbox-success": "var(--xmlui-borderColor-Checkbox-success)", "Input:backgroundColor-Checkbox-success": "var(--xmlui-backgroundColor-Checkbox-success)", "Input:outlineWidth-Checkbox-success--focus": "var(--xmlui-outlineWidth-Checkbox-success--focus)", "Input:outlineColor-Checkbox-success--focus": "var(--xmlui-outlineColor-Checkbox-success--focus)", "Input:outlineStyle-Checkbox-success--focus": "var(--xmlui-outlineStyle-Checkbox-success--focus)", "Input:outlineOffset-Checkbox-success--focus": "var(--xmlui-outlineOffset-Checkbox-success--focus)", "backgroundColor-indicator-Checkbox": "var(--xmlui-backgroundColor-indicator-Checkbox)", "Input:borderColor-checked-Checkbox": "var(--xmlui-borderColor-checked-Checkbox)", "Input:backgroundColor-checked-Checkbox": "var(--xmlui-backgroundColor-checked-Checkbox)", "Input:borderColor-checked-Checkbox-error": "var(--xmlui-borderColor-checked-Checkbox-error)", "Input:backgroundColor-checked-Checkbox-error": "var(--xmlui-backgroundColor-checked-Checkbox-error)", "Input:borderColor-checked-Checkbox-warning": "var(--xmlui-borderColor-checked-Checkbox-warning)", "Input:backgroundColor-checked-Checkbox-warning": "var(--xmlui-backgroundColor-checked-Checkbox-warning)", "Input:borderColor-checked-Checkbox-success": "var(--xmlui-borderColor-checked-Checkbox-success)", "Input:backgroundColor-checked-Checkbox-success": "var(--xmlui-backgroundColor-checked-Checkbox-success)", "Input:backgroundColor-Switch": "var(--xmlui-backgroundColor-Switch)", "Input:borderColor-Switch": "var(--xmlui-borderColor-Switch)", "backgroundColor-indicator-Switch": "var(--xmlui-backgroundColor-indicator-Switch)", "backgroundColor-checked-Switch": "var(--xmlui-backgroundColor-checked-Switch)", "backgroundColor-indicator-checked-Switch": "var(--xmlui-backgroundColor-indicator-checked-Switch)", "Input:borderColor-Switch-default--hover": "var(--xmlui-borderColor-Switch-default--hover)", "Input:backgroundColor-Switch--disabled": "var(--xmlui-backgroundColor-Switch--disabled)", "Input:borderColor-Switch--disabled": "var(--xmlui-borderColor-Switch--disabled)", "Input:borderColor-checked-Switch": "var(--xmlui-borderColor-checked-Switch)", "Input:backgroundColor-checked-Switch": "var(--xmlui-backgroundColor-checked-Switch)", "Input:borderColor-checked-Switch-error": "var(--xmlui-borderColor-checked-Switch-error)", "Input:backgroundColor-checked-Switch-error": "var(--xmlui-backgroundColor-checked-Switch-error)", "Input:borderColor-checked-Switch-warning": "var(--xmlui-borderColor-checked-Switch-warning)", "Input:backgroundColor-checked-Switch-warning": "var(--xmlui-backgroundColor-checked-Switch-warning)", "Input:borderColor-checked-Switch-success": "var(--xmlui-borderColor-checked-Switch-success)", "Input:backgroundColor-checked-Switch-success": "var(--xmlui-backgroundColor-checked-Switch-success)", "Input:outlineWidth-Switch--focus": "var(--xmlui-outlineWidth-Switch--focus)", "Input:outlineColor-Switch--focus": "var(--xmlui-outlineColor-Switch--focus)", "Input:outlineStyle-Switch--focus": "var(--xmlui-outlineStyle-Switch--focus)", "Input:outlineOffset-Switch--focus": "var(--xmlui-outlineOffset-Switch--focus)", "backgroundColor-Switch-indicator--disabled": "var(--xmlui-backgroundColor-Switch-indicator--disabled)", "Input:borderColor-Switch-error": "var(--xmlui-borderColor-Switch-error)", "Input:borderColor-Switch-warning": "var(--xmlui-borderColor-Switch-warning)", "Input:borderColor-Switch-success": "var(--xmlui-borderColor-Switch-success)"}'`,resetAppearance:"_resetAppearance_ga4w0_13",label:"_label_ga4w0_21",inputContainer:"_inputContainer_ga4w0_25",checkbox:"_checkbox_ga4w0_33",error:"_error_ga4w0_62",warning:"_warning_ga4w0_73",valid:"_valid_ga4w0_84",switch:"_switch_ga4w0_144"},Il={initialValue:!1,value:!1,enabled:!0,validationStatus:"none",indeterminate:!1},am=m.forwardRef(function({id:t,initialValue:r=Il.initialValue,value:n=Il.value,enabled:o=Il.enabled,style:i,readOnly:a,validationStatus:l=Il.validationStatus,updateState:s=bt,onDidChange:u=bt,onFocus:c=bt,onBlur:d=bt,variant:f="checkbox",indeterminate:p=Il.indeterminate,className:h,label:v,labelPosition:b="end",labelWidth:y,labelBreak:w,required:k,registerComponentApi:E,inputRenderer:_},S){const A=m.useId(),O=t||A,I=Z.useRef(null);m.useEffect(()=>{s({value:r},{initial:!0})},[r,s]);const L=m.useCallback(z=>{var F;((F=I.current)==null?void 0:F.checked)!==z&&(s({value:z}),u(z))},[u,s]),P=m.useCallback(z=>{a||(s({value:z.target.checked}),u(z.target.checked))},[u,a,s]),H=m.useCallback(()=>{c==null||c()},[c]),j=m.useCallback(()=>{d==null||d()},[d]);m.useEffect(()=>{typeof p=="boolean"&&I.current&&(I.current.indeterminate=p)},[p]);const W=m.useCallback(()=>{var z;(z=I.current)==null||z.focus()},[]),B=zt(z=>{L(z)});m.useEffect(()=>{E==null||E({focus:W,setValue:B})},[W,E,B]);const G=m.useMemo(()=>C.jsx("input",{id:O,ref:I,type:"checkbox",role:f,checked:n,disabled:!o,required:k,readOnly:a,"aria-readonly":a,"aria-checked":n,onChange:P,onFocus:H,onBlur:j,className:ze(yc.resetAppearance,h,{[yc.checkbox]:f==="checkbox",[yc.switch]:f==="switch",[yc.error]:l==="error",[yc.warning]:l==="warning",[yc.valid]:l==="valid"})}),[O,h,o,j,H,P,a,k,l,n,f]);return C.jsx(la,{ref:S,id:O,label:v,style:i,labelPosition:b,labelWidth:y,labelBreak:w,required:k,enabled:o,isInputTemplateUsed:!!_,shrinkToLabel:!0,labelStyle:{pointerEvents:a?"none":void 0},children:_?C.jsxs("label",{className:yc.label,children:[C.jsx("div",{className:yc.inputContainer,children:G}),_({$checked:n,$setChecked:B})]}):G})});function sQe({items:e=Ar,visibleItems:t=e,rowsSelectable:r,enableMultiRowSelection:n,rowDisabledPredicate:o,onSelectionDidChange:i}){const[a,l]=m.useState(-1),[s,u]=m.useState(null),{selectedItems:c,setSelectedRowIds:d,refreshSelection:f,idKey:p}=ree(),h=m.useMemo(()=>t.map(P=>P[p]),[p,t]);m.useEffect(()=>{f(r?e:Ar)},[f,e,r]);const v=vd(n);m.useEffect(()=>{v&&!n&&c.length>1&&d([c[0][p]])},[n,p,v,c,d]),m.useEffect(()=>{r&&a!==-1&&!h[a]&&h[0]&&l(0)},[a,r,l,h]);const b=zt((P,H={})=>{if(!r)return;const j=h[P],{shiftKey:W,metaKey:B,ctrlKey:G}=H,z=!n||!W&&!B&&!G;let F,V=[...c.map(N=>N[p])];if(z)F={from:j,to:j},V=[j];else if(W){let N,Y,q,M;if(s){let ee=h.indexOf(s.from),ae=h.indexOf(s.to),oe=Math.min(ee,ae),ue=Math.max(ee,ae);const le=h.slice(oe,ue+1);V=V.filter(J=>!le.includes(J)),q=s.from,M=j;let pe=h.indexOf(q),fe=h.indexOf(M);N=Math.min(pe,fe),Y=Math.max(pe,fe)}else q=j,M=j,N=P,Y=P;const K=h.slice(N,Y+1);V=m$e(V,K),F={from:q,to:M}}else F={from:j,to:j},B||G?V.includes(j)?V=V.filter(N=>N!==j):V.push(j):V=[j];l(P),d(eY(V)),u(F)}),y=zt((P,H)=>{if(!r)return;const j=h.indexOf(P[p]);b(j,H)}),w=zt(P=>{if(r){if(P.key==="ArrowDown"){P.preventDefault();let H=Math.min(t.length-1,a+1);a!==t.length-1&&b(H,P)}if(P.key==="PageDown"){P.preventDefault();const H=Math.min(t.length-1,a+8);b(H,P)}if(P.key==="ArrowUp"){P.preventDefault();let H=Math.max(0,a-1);a>=0&&b(H,P)}if(P.key==="PageUp"){P.preventDefault();const H=Math.max(0,a-8);b(H,P)}}});m.useEffect(()=>{i==null||i(c)},[c,i]);const k=zt(P=>{r&&(!n&&P||d(P?e.filter(H=>o?!o(H):!0).map(H=>H[p]):[]))}),E=m.useMemo(()=>{let P={};return c.forEach(H=>{P[H[p]]=!0}),P},[p,c]),_=m.useCallback(()=>c,[c]),S=m.useCallback(()=>c.map(P=>P[p]),[p,c]),A=m.useCallback(()=>{k(!1)},[k]),O=m.useCallback(()=>{k(!0)},[k]),I=m.useCallback(P=>{if(!r)return;let H=Array.isArray(P)?P:[P];H.length>1&&!n&&(H=[H[0]]),d(H)},[n,r,d]),L=m.useMemo(()=>({getSelectedItems:_,getSelectedIds:S,clearSelection:A,selectAll:O,selectId:I}),[A,S,_,O,I]);return{onKeyDown:w,focusedIndex:a,toggleRowIndex:b,toggleRow:y,checkAllRows:k,selectedRowIdMap:E,selectedItems:c,idKey:p,selectionApi:L}}function uQe(e){return!1}const cQe=42,Oee=e=>{const t=e.getIsPinned();return{left:t==="left"?`${e.getStart("left")}px`:void 0,right:t==="right"?`${e.getAfter("right")}px`:void 0,opacity:t?.95:void 0,position:t?"sticky":"relative",backgroundColor:t?"inherit":void 0,zIndex:t?1:void 0}},dQe=m.forwardRef(({data:e=zi.data,columns:t=zi.columns,isPaginated:r=zi.isPaginated,loading:n=zi.loading,headerHeight:o,rowsSelectable:i=zi.rowsSelectable,enableMultiRowSelection:a=zi.enableMultiRowSelection,pageSizes:l=zi.pageSizes,rowDisabledPredicate:s=uQe,sortBy:u,sortingDirection:c=zi.sortingDirection,iconSortAsc:d,iconSortDesc:f,iconNoSort:p,sortingDidChange:h,willSort:v,style:b,noDataRenderer:y,autoFocus:w=zi.autoFocus,hideHeader:k=zi.hideHeader,hideNoDataView:E=zi.hideNoDataView,alwaysShowSelectionHeader:_=zi.alwaysShowSelectionHeader,registerComponentApi:S,onSelectionDidChange:A,noBottomBorder:O=zi.noBottomBorder},I)=>{var hn,zo,Ir,At;const{getThemeVar:L}=zr(),P=Array.isArray(e)?e:Ar,H=m.useRef(null),j=I?Un(H,I):H,W=m.useRef(null),B=m.useRef(null),G=u!==void 0,z=m.useMemo(()=>t||(P.length?Object.keys(P[0]).map(it=>({header:it,accessorKey:it})):Ar),[t,P]);m.useEffect(()=>{w&&H.current.focus()},[w]);const[F,V]=m.useState(Ar),{toggleRow:N,checkAllRows:Y,focusedIndex:q,onKeyDown:M,selectedRowIdMap:K,idKey:ee,selectionApi:ae}=sQe({items:P,visibleItems:F,rowsSelectable:i,enableMultiRowSelection:a,rowDisabledPredicate:s,onSelectionDidChange:A}),oe=m.useMemo(()=>P.map((it,nt)=>({...it,order:nt+1})),[P]),[ue,le]=m.useState(u),[pe,fe]=m.useState(c);m.useLayoutEffect(()=>{le(u)},[u]),m.useLayoutEffect(()=>{fe(c)},[c]);const J=m.useMemo(()=>!ue||G?oe:ZG(oe,ue,pe==="ascending"?"asc":"desc"),[ue,pe,oe,G]),X=m.useCallback(async it=>{let nt="ascending",lt=it;ue===it&&(pe==="ascending"?nt="descending":lt=void 0),await(v==null?void 0:v(lt,nt))!==!1&&(fe(nt),le(lt),h==null||h(lt,nt))},[ue,v,h,pe]),te=m.useMemo(()=>z.map((it,nt)=>{const{width:lt,starSizedWidth:ct}=Cr(it.width,!0,"width"),{width:Rr}=Cr(it.minWidth,!1,"minWidth"),{width:fr}=Cr(it.maxWidth,!1,"maxWidth");return{...it,header:it.header??it.accessorKey??" ",id:"col_"+nt,size:lt,minSize:Rr,maxSize:fr,enableResizing:it.canResize,enableSorting:it.canSort&&!!it.accessorKey,enablePinning:it.pinTo!==void 0,meta:{starSizedWidth:ct,pinTo:it.pinTo,style:it.style,accessorKey:it.accessorKey,cellRenderer:it.cellRenderer}};function Cr(Gr,ur,il){let td,Ks;const Oa=YL(Gr)?L(Gr):Gr;if(typeof Oa=="number")Ks=Oa;else if(typeof Oa=="string"){const Xu=Oa.match(/^\s*\*\s*$/);if(ur&&Xu)td="1*";else{const IO=Oa.match(/^\s*(\d+)\s*\*\s*$/);if(ur&&IO)td=IO[1]+"*";else{const bp=Oa.match(/^\s*(\d+)\s*(px)?\s*$/);if(bp)Ks=Number(bp[1]);else throw new Error(`Invalid TableColumnDef '${il}' value: ${Oa}`)}}}return Ks===void 0&&td===void 0&&ur&&(td="1*"),{width:Ks,starSizedWidth:td}}}),[L,z]),ie=m.useMemo(()=>i?[{id:"select",size:cQe,enableResizing:!1,enablePinning:!0,meta:{pinTo:"left"},header:({table:nt})=>a?C.jsx(am,{className:ze(Vr.checkBoxWrapper,{[Vr.showInHeader]:_}),value:nt.getIsAllRowsSelected(),indeterminate:nt.getIsSomeRowsSelected(),onDidChange:()=>{const lt=nt.getRowModel().rows.every(ct=>s(ct.original)||ct.getIsSelected());Y(!lt)}}):null,cell:({row:nt})=>C.jsx(am,{className:Vr.checkBoxWrapper,value:nt.getIsSelected(),indeterminate:nt.getIsSomeSelected(),onDidChange:()=>{N(nt.original,{metaKey:!0})}})},...te]:te,[i,te,a,_,Y,N]),[de,be]=m.useState({pageSize:r?l[0]:Number.MAX_VALUE,pageIndex:0}),xe=vd(r);m.useEffect(()=>{!xe&&r&&be(it=>({...it,pageSize:l[0]})),xe&&!r&&be(it=>({pageIndex:0,pageSize:Number.MAX_VALUE}))},[r,l,xe]);const[Ie,Ne]=m.useState({}),Se=m.useMemo(()=>{const it=[],nt=[];return ie.forEach(lt=>{var ct,Rr;((ct=lt.meta)==null?void 0:ct.pinTo)==="right"&&nt.push(lt.id),((Rr=lt.meta)==null?void 0:Rr.pinTo)==="left"&&it.push(lt.id)}),{left:it,right:nt}},[ie]),_e=gXe({columns:ie,data:J,getCoreRowModel:cXe(),getPaginationRowModel:r?fXe():void 0,enableRowSelection:i,enableMultiRowSelection:a,columnResizeMode:"onChange",getRowId:m.useCallback(it=>it[ee]+"",[ee]),state:m.useMemo(()=>({pagination:de,rowSelection:K,columnSizing:Ie,columnPinning:Se}),[Se,Ie,de,K]),onColumnSizingChange:Ne,onPaginationChange:be}),Ve=_e.getRowModel().rows;m.useEffect(()=>{V(Ve.map(it=>it.original))},[Ve]);const Ee=m.useContext(dc),je=Ee&&(b==null?void 0:b.maxHeight)===void 0&&(b==null?void 0:b.height)===void 0&&(b==null?void 0:b.flex)===void 0,Ce=eK(je,H,Ee),Te=IXe({count:Ve.length,getScrollElement:m.useCallback(()=>je&&(Ee!=null&&Ee.current)?Ee==null?void 0:Ee.current:H.current,[Ee,je]),scrollMargin:Ce,estimateSize:m.useCallback(()=>B.current||30,[]),overscan:5}),He=Te.getVirtualItems().length>0&&((zo=(hn=Te.getVirtualItems())==null?void 0:hn[0])==null?void 0:zo.start)-Ce||0,st=Te.getVirtualItems().length>0?Te.getTotalSize()-(((At=(Ir=Te.getVirtualItems())==null?void 0:Ir[Te.getVirtualItems().length-1])==null?void 0:At.end)-Ce||0):0,ut=P.length!==0,It=m.useRef({}),sr=m.useCallback(it=>{It.current[it]=!0},[]),tr=zt(()=>{if(!W.current)return;let it=W.current.clientWidth-1;const nt={},lt=[],ct={};_e.getAllColumns().forEach(fr=>{var ii,Cr;if(fr.columnDef.size!==void 0||It.current[fr.id])it-=Ie[fr.id]||fr.columnDef.size||0;else{lt.push(fr);let Gr;(ii=fr.columnDef.meta)!=null&&ii.starSizedWidth?Gr=Number((Cr=fr.columnDef.meta)==null?void 0:Cr.starSizedWidth.replace("*","").trim())||1:Gr=1,ct[fr.id]=Gr}});const Rr=Object.values(ct).reduce((fr,ii)=>fr+ii,0);lt.forEach(fr=>{nt[fr.id]=Math.floor(it*(ct[fr.id]/Rr))}),Fn.flushSync(()=>{Ne(fr=>({...fr,...nt}))})});return YT(W,tr),Sn(()=>{queueMicrotask(()=>{tr()})},[tr,z]),Sn(()=>{S(ae)},[S,ae]),C.jsxs("div",{className:ze(Vr.wrapper,{[Vr.noScroll]:je}),tabIndex:-1,onKeyDown:M,ref:j,style:b,children:[C.jsxs("table",{className:Vr.table,ref:W,style:{borderRight:"1px solid transparent"},children:[!k&&C.jsx("thead",{style:{height:o},className:Vr.headerWrapper,children:_e.getHeaderGroups().map((it,nt)=>C.jsx("tr",{className:ze(Vr.headerRow,{[Vr.allSelected]:_e.getIsAllRowsSelected()}),children:it.headers.map((lt,ct)=>{var Cr,Gr,ur;const{width:Rr,...fr}=((Cr=lt.column.columnDef.meta)==null?void 0:Cr.style)||{},ii=lt.getSize();return C.jsxs("th",{className:Vr.columnCell,colSpan:lt.colSpan,style:{position:"relative",width:ii,...Oee(lt.column)},children:[C.jsx(fQe,{hasSorting:lt.column.columnDef.enableSorting&&!!((Gr=lt.column.columnDef.meta)!=null&&Gr.accessorKey),updateSorting:()=>{var il;return X((il=lt.column.columnDef.meta)==null?void 0:il.accessorKey)},children:C.jsxs("div",{className:Vr.headerContent,style:fr,children:[Cee(lt.column.columnDef.header,lt.getContext()),lt.column.columnDef.enableSorting&&C.jsx("span",{style:{display:"inline-flex",maxWidth:16},children:C.jsx(mQe,{iconSortAsc:d,iconSortDesc:f,iconNoSort:p,direction:((ur=lt.column.columnDef.meta)==null?void 0:ur.accessorKey)===ue?pe:void 0})})]})}),lt.column.getCanResize()&&C.jsx("div",{onDoubleClick:()=>{It.current[lt.column.id]=!1,lt.column.columnDef.size!==void 0?lt.column.resetSize():tr()},onMouseDown:il=>{sr(lt.column.id),lt.getResizeHandler()(il)},onTouchStart:il=>{sr(lt.column.id),lt.getResizeHandler()(il)},className:ze(Vr.resizer,{[Vr.isResizing]:lt.column.getIsResizing()})})]},`${lt.id}-${ct}`)})},`${it.id}-${nt}`))}),ut&&C.jsxs("tbody",{className:Vr.tableBody,children:[He>0&&C.jsx("tr",{children:C.jsx("td",{style:{height:`${He}px`}})}),Te.getVirtualItems().map(it=>{const nt=it.index,lt=Ve[nt];return C.jsx("tr",{"data-index":nt,className:ze(Vr.row,{[Vr.selected]:lt.getIsSelected(),[Vr.focused]:q===nt,[Vr.disabled]:s(lt.original),[Vr.noBottomBorder]:O}),ref:ct=>{ct&&B.current===null&&(B.current=Math.round(ct.getBoundingClientRect().height)),Te.measureElement(ct)},onClick:ct=>{ct.defaultPrevented||ct.target.tagName.toLowerCase()==="input"||N(lt.original,ct)},children:lt.getVisibleCells().map((ct,Rr)=>{var Cr,Gr;const fr=(Gr=(Cr=ct.column.columnDef)==null?void 0:Cr.meta)==null?void 0:Gr.cellRenderer,ii=ct.column.getSize();return C.jsx("td",{className:Vr.cell,style:{width:ii,...Oee(ct.column)},children:C.jsx("div",{className:Vr.cellContent,children:fr?fr(ct.row.original,nt,Rr,ct==null?void 0:ct.getValue()):Cee(ct.column.columnDef.cell,ct.getContext())})},`${ct.id}-${Rr}`)})},`${lt.id}-${nt}`)}),st>0&&C.jsx("tr",{children:C.jsx("td",{style:{height:`${st}px`}})})]})]}),n&&!ut&&C.jsx("div",{className:Vr.loadingWrapper,children:C.jsx(my,{})}),!E&&!n&&!ut&&(y?y():C.jsx("div",{className:Vr.noRows,children:"No data available"})),r&&ut&&Ve.length>0&&de&&C.jsxs("div",{className:Vr.pagination,children:[C.jsx("div",{style:{flex:1},children:C.jsxs("span",{className:Vr.paginationLabel,children:["Showing ",Ve[0].original.order," to ",Ve[Ve.length-1].original.order," of"," ",P.length," entries"]})}),l.length>1&&C.jsxs("div",{children:[C.jsx("span",{className:Vr.paginationLabel,children:"Rows per page"}),C.jsx("select",{className:Vr.paginationSelect,value:de.pageSize,onChange:it=>{_e.setPageSize(Number(it.target.value))},children:l.map(it=>C.jsx("option",{value:it,children:it},it))})]}),C.jsxs("div",{className:Vr.paginationButtons,children:[C.jsx(cn,{onClick:()=>_e.setPageIndex(0),disabled:!_e.getCanPreviousPage(),type:"button",variant:"ghost",children:C.jsx(mKe,{})}),C.jsx(cn,{onClick:()=>_e.previousPage(),disabled:!_e.getCanPreviousPage(),type:"button",variant:"ghost",children:C.jsx(aee,{})}),C.jsx(cn,{onClick:()=>_e.nextPage(),disabled:!_e.getCanNextPage(),type:"button",variant:"ghost",children:C.jsx(lee,{})}),C.jsx(cn,{onClick:()=>_e.setPageIndex(_e.getPageCount()-1),disabled:!_e.getCanNextPage(),type:"button",variant:"ghost",children:C.jsx(pKe,{})})]})]})]})});function fQe({hasSorting:e,updateSorting:t,children:r}){return e?C.jsx("button",{className:Vr.clickableHeader,onClick:t,children:r}):C.jsx(C.Fragment,{children:r})}function mQe({direction:e,iconSortAsc:t="sortasc:Table",iconSortDesc:r="sortdesc:Table",iconNoSort:n="nosort:Table"}){return e==="ascending"?C.jsx(xt,{name:t,fallback:"sortasc",size:"12"}):e==="descending"?C.jsx(xt,{name:r,fallback:"sortdesc",size:"12"}):n!=="-"?C.jsx(xt,{name:n,fallback:"nosort",size:"12"}):C.jsx(xt,{name:n,size:"12"})}const zi={data:Ar,columns:Ar,isPaginated:!1,loading:!1,rowsSelectable:!1,enableMultiRowSelection:!0,pageSizes:[10],sortingDirection:"ascending",autoFocus:!1,hideHeader:!1,hideNoDataView:!1,alwaysShowSelectionHeader:!1,noBottomBorder:!1},Hr="Table",Iee={status:"stable",description:"`Table` presents structured data for viewing, sorting, selection, and interaction.",props:{items:Vn("You can use `items` as an alias for the `data` property. When you bind the table to a data source (e.g. an API endpoint), the `data` acts as the property that accepts a URL to fetch information from an API. When both `items` and `data` are used, `items` has priority."),data:re("The component receives data via this property. The `data` property is a list of items that the `Table` can display."),isPaginated:{description:`This property adds pagination controls to the \`${Hr}\`.`,valueType:"boolean",defaultValue:zi.isPaginated},loading:re("This boolean property indicates if the component is fetching (or processing) data. This property is useful when data is loaded conditionally or receiving it takes some time."),headerHeight:re("This optional property is used to specify the height of the table header."),rowsSelectable:re("Indicates whether the rows are selectable (`true`) or not (`false`)."),pageSizes:{description:"This property holds an array of page sizes (numbers) the user can select for pagination. If this property is not defined, the component allows only a page size of 10 items."},rowDisabledPredicate:re("This property defines a predicate function with a return value that determines if the row should be disabled. The function retrieves the item to display and should return a Boolean-like value."),noDataTemplate:xr("A property to customize what to display if the table does not contain any data."),sortBy:re("This property is used to determine which data property to sort by. If not defined, the data is not sorted"),sortDirection:re("This property determines the sort order to be `ascending` or `descending`. This property only works if the [`sortBy`](#sortby) property is also set. By default ascending order is used."),autoFocus:Bi(),hideHeader:{description:"Set the header visibility using this property. Set it to `true` to hide the header.",valueType:"boolean",defaultValue:zi.hideHeader},iconNoSort:re(`Allows setting an alternate icon displayed in the ${Hr} column header when sorting is enabled, but the column remains unsorted. You can change the default icon for all ${Hr} instances with the "icon.nosort:Table" declaration in the app configuration file.`),iconSortAsc:re(`Allows setting an alernate icon displayed in the ${Hr} column header when sorting is enabled, and the column is sorted in ascending order. You can change the default icon for all ${Hr} instances with the "icon.sortasc:Table" declaration in the app configuration file.`),iconSortDesc:re(`Allows setting an alternate icon displayed in the ${Hr} column header when sorting is enabled, and the column is sorted in descending order. You can change the default icon for all ${Hr} instances with the "icon.sortdesc:Table" declaration in the app configuration file.`),enableMultiRowSelection:{description:"This boolean property indicates whether you can select multiple rows in the table. This property only has an effect when the rowsSelectable property is set. Setting it to `false` limits selection to a single row.",valueType:"boolean",defaultValue:zi.enableMultiRowSelection},alwaysShowSelectionHeader:{description:"This property indicates when the row selection header is displayed. When the value is `true,` the selection header is always visible. Otherwise, it is displayed only when hovered.",valueType:"boolean",defaultValue:!1},noBottomBorder:{description:"This property indicates whether the table should have a bottom border. When set to `true`, the table does not have a bottom border. Otherwise, it has a bottom border.",valueType:"boolean",defaultValue:!1}},events:{sortingDidChange:re("This event is fired when the table data sorting has changed. It has two arguments: the column's name and the sort direction. When the column name is empty, the table displays the data list as it received it."),willSort:re("This event is fired before the table data is sorted. It has two arguments: the column's name and the sort direction. When the method returns a literal `false` value (and not any other falsy one), the method indicates that the sorting should be aborted."),selectionDidChange:re("This event is triggered when the table's current selection (the rows selected) changes. Its parameter is an array of the selected table row items. ")},apis:{clearSelection:re("This method clears the list of currently selected table rows."),getSelectedItems:re("This method returns the list of currently selected table rows items."),getSelectedIds:re("This method returns the list of currently selected table rows IDs."),selectAll:re("This method selects all the rows in the table. This method has no effect if the rowsSelectable property is set to `false`."),selectId:re("This method selects the row with the specified ID. This method has no effect if the `rowsSelectable` property is set to `false`. The method argument can be a single id or an array of them.")},themeVars:Ze(Vr.themeVars),defaultThemeVars:{[`padding-heading-${Hr}`]:"$space-2 $space-0 $space-2 $space-2",[`padding-cell-${Hr}`]:"$space-2 $space-0 $space-2 $space-2",[`paddingHorizontal-cell-first-${Hr}`]:"$space-5",[`paddingHorizontal-cell-last-${Hr}`]:"$space-0",[`border-cell-${Hr}`]:"1px solid $borderColor",[`outlineWidth-heading-${Hr}--focus`]:"$outlineWidth--focus",[`outlineStyle-heading-${Hr}--focus`]:"$outlineStyle--focus",[`outlineOffset-heading-${Hr}--focus`]:"$outlineOffset--focus",[`fontSize-heading-${Hr}`]:"$fontSize-tiny",[`fontWeight-heading-${Hr}`]:"$fontWeight-bold",[`textTransform-heading-${Hr}`]:"uppercase",[`fontSize-row-${Hr}`]:"$fontSize-small",[`backgroundColor-selected-${Hr}--hover`]:`$backgroundColor-row-${Hr}--hover`,[`backgroundColor-pagination-${Hr}`]:`$backgroundColor-${Hr}`,[`outlineColor-heading-${Hr}--focus`]:"$outlineColor--focus",[`textColor-pagination-${Hr}`]:"$color-secondary",[`backgroundColor-row-${Hr}--hover`]:"$color-primary-50",[`backgroundColor-selected-${Hr}`]:"$color-primary-100",[`backgroundColor-heading-${Hr}--hover`]:"$color-surface-200",[`backgroundColor-heading-${Hr}--active`]:"$color-surface-300",[`backgroundColor-heading-${Hr}`]:"$color-surface-100",[`textColor-heading-${Hr}`]:"$color-surface-500"}},pQe=m.forwardRef(({extractValue:e,node:t,renderChild:r,lookupEventHandler:n,lookupSyncCallback:o,layoutCss:i,registerComponentApi:a},l)=>{var _,S,A,O,I,L;const s=e(t.props.items)||e(t.props.data),[u,c]=m.useState(Ar),[d,f]=m.useState(rr),p=m.useRef([]),[h,v]=m.useState(0),b=m.useMemo(()=>({registerColumn:(P,H)=>{c(fl(j=>{j.findIndex(B=>B===H)<0&&j.push(H)})),f(fl(j=>{j[H]=P}))},unRegisterColumn:P=>{c(fl(H=>H.filter(j=>j!==P))),f(fl(H=>{delete H[P]}))}}),[]),y=m.useMemo(()=>({registerColumn:(P,H)=>{p.current.find(j=>j===H)||(v(j=>j+1),p.current.push(H))},unRegisterColumn:P=>{p.current.find(H=>H===P)&&(p.current=p.current.filter(H=>H!==P),v(H=>H+1))}}),[]),w=m.useMemo(()=>u.map(P=>d[P]),[u,d]),k=ree(),E=C.jsxs(C.Fragment,{children:[C.jsx(AL.Provider,{value:b,children:r(t.children)},h),C.jsx(AL.Provider,{value:y,children:r(t.children)}),C.jsx(dQe,{ref:l,data:s,columns:w,pageSizes:e(t.props.pageSizes),rowsSelectable:e.asOptionalBoolean(t.props.rowsSelectable),registerComponentApi:a,noDataRenderer:t.props.noDataTemplate&&(()=>r(t.props.noDataTemplate)),hideNoDataView:t.props.noDataTemplate===null||t.props.noDataTemplate==="",loading:e.asOptionalBoolean(t.props.loading),isPaginated:e.asOptionalBoolean((_=t.props)==null?void 0:_.isPaginated),headerHeight:e.asSize(t.props.headerHeight),rowDisabledPredicate:o(t.props.rowDisabledPredicate),sortBy:e((S=t.props)==null?void 0:S.sortBy),sortingDirection:e((A=t.props)==null?void 0:A.sortDirection),iconSortAsc:e.asOptionalString((O=t.props)==null?void 0:O.iconSortAsc),iconSortDesc:e.asOptionalString((I=t.props)==null?void 0:I.iconSortDesc),iconNoSort:e.asOptionalString((L=t.props)==null?void 0:L.iconNoSort),sortingDidChange:n("sortingDidChange"),onSelectionDidChange:n("selectionDidChange"),willSort:n("willSort"),style:i,uid:t.uid,autoFocus:e.asOptionalBoolean(t.props.autoFocus),hideHeader:e.asOptionalBoolean(t.props.hideHeader),enableMultiRowSelection:e.asOptionalBoolean(t.props.enableMultiRowSelection),alwaysShowSelectionHeader:e.asOptionalBoolean(t.props.alwaysShowSelectionHeader),noBottomBorder:e.asOptionalBoolean(t.props.noBottomBorder)})]});return k===null?C.jsx(iKe,{children:E}):E}),hQe=we(Hr,Iee,({extractValue:e,node:t,renderChild:r,lookupEventHandler:n,lookupSyncCallback:o,layoutCss:i,registerComponentApi:a})=>C.jsx(pQe,{node:t,extractValue:e,lookupEventHandler:n,lookupSyncCallback:o,layoutCss:i,renderChild:r,registerComponentApi:a})),ZL={themeVars:'"[]"',wrapper:"_wrapper_1c2sc_13",sentinel:"_sentinel_1c2sc_17"};var O3={},I3={},Pb={};Object.defineProperty(Pb,"__esModule",{value:!0}),Pb.unlisten=Pb.listen=void 0;const sw=[],R3=[];function gQe(e){return{el:e,callbacks:{},realCallbacks:{},realListenersCnt:0}}function vQe(e,t,r){if(e.callbacks[t]){e.callbacks[t].indexOf(r)===-1&&e.callbacks[t].push(r);return}e.callbacks[t]=[r],e.realCallbacks[t]=n=>{for(let o=0,i=e.callbacks[t].length;o<i;o+=1)e.callbacks[t][o](n)},e.el.addEventListener(t,e.realCallbacks[t]),e.realListenersCnt+=1}function bQe(e,t,r){if(!e.callbacks[t])return;const n=e.callbacks[t].indexOf(r);n!==-1&&(e.callbacks[t].splice(n,1),!(e.callbacks[t].length>0)&&(e.el.removeEventListener(t,e.realCallbacks[t]),delete e.callbacks[t],delete e.realCallbacks[t],e.realListenersCnt-=1))}function xQe(e,t,r){let n=sw.indexOf(e);n===-1&&(n=sw.length,sw.push(e),R3.push(gQe(e)));const o=R3[n];vQe(o,t,r)}function yQe(e,t,r){const n=sw.indexOf(e);if(n===-1)return;const o=R3[n];bQe(o,t,r),!(o.realListenersCnt>0)&&(sw.splice(n,1),R3.splice(n,1))}function wQe(e,t,r){for(let n=0,o=t.length;n<o;n+=1)xQe(e,t[n],r)}Pb.listen=wQe;function CQe(e,t,r){for(let n=0,o=t.length;n<o;n+=1)yQe(e,t[n],r)}Pb.unlisten=CQe;var JL={};Object.defineProperty(JL,"__esModule",{value:!0});const uw={};typeof document<"u"&&(uw.body=document.body,uw.window=window,uw.document=document);const Ree=(()=>{if(typeof document<"u"&&document.body){const e=document.body;return typeof e.matches=="function"?"matches":typeof e.webkitMatchesSelector=="function"?"webkitMatchesSelector":typeof e.mozMatchesSelector=="function"?"mozMatchesSelector":typeof e.msMatchesSelector=="function"?"msMatchesSelector":typeof e.oMatchesSelector=="function"?"oMatchesSelector":null}return null})();function kQe(e,t){if(!e)return null;if(uw.hasOwnProperty(e))return uw[e];if(e[0]==="#")return document.getElementById(e.slice(1));if(Ree===null)return null;let r=t;for(;r=r.parentElement;)if(r[Ree](e))return r||null;return null}JL.default=kQe;var eH={};Object.defineProperty(eH,"__esModule",{value:!0});function _Qe(e){do{const t=window.getComputedStyle(e);if(t.transform!=="none"||t.webkitTransform!=="none")return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}eH.default=_Qe;var lm={};Object.defineProperty(lm,"__esModule",{value:!0}),lm.isIntersecting=lm.getRect=lm.infiniteRect=void 0,lm.infiniteRect={top:-1/0,bottom:1/0,height:1/0,left:-1/0,right:1/0,width:1/0};function TQe(e){return e&&"getBoundingClientRect"in e&&typeof e.getBoundingClientRect=="function"?e.getBoundingClientRect():e===window||e===document?{top:0,left:0,bottom:window.innerHeight,height:window.innerHeight,width:window.innerWidth,right:window.innerWidth}:{top:0,left:0,right:0,bottom:0,width:0,height:0}}lm.getRect=TQe;function SQe(e,t,r,n){const o=e.top+r,i=e.bottom+n;return o>=t.top&&o<=t.bottom||i>=t.top&&i<=t.bottom||i>=t.bottom&&o<=t.top}lm.isIntersecting=SQe;var Pee=jr&&jr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(I3,"__esModule",{value:!0});const EQe=m,cw=Pb,Lee=Pee(JL),AQe=Pee(eH),dw=lm,OQe=(e,t)=>{const{bottomOffset:r,hideOnBoundaryHit:n}=t,{top:o,height:i,width:a,boundaryBottom:l}=e;return n||o+i+r<l?{top:`${o}px`,width:`${a}px`,position:"fixed"}:!n&&l>0?{top:`${l-i-r}px`,width:`${a}px`,position:"fixed"}:{width:`${a}px`,bottom:`${r}px`,position:"absolute"}},IQe=(e,t)=>{const{bottomOffset:r,hideOnBoundaryHit:n}=t,{bottom:o,height:i,width:a,boundaryTop:l}=e;return n||o-i-r>l?{width:`${a}px`,top:`${o-i}px`,position:"fixed"}:{width:`${a}px`,top:`${r}px`,position:"absolute"}},RQe=(e,t,r)=>(e==="top"?OQe:IQe)(r,t),PQe=(e,t)=>{const r=e.wrapperStyles,n=t.wrapperStyles;if(e.isFixed!==t.isFixed||e.height!==t.height||!r&&n||r&&!n)return!1;if(!n)return!0;for(const o in r)if(r.hasOwnProperty(o)&&r[o]!==n[o])return!1;return!0};class Hee extends EQe.Component{constructor(){super(...arguments),this.holderEl=null,this.wrapperEl=null,this.el=null,this.scrollEl=null,this.boundaryEl=null,this.disabled=!1,this.checkPositionIntervalId=null,this.lastMinHeight=null,this.state={isFixed:!1,wrapperStyles:void 0,holderStyles:void 0,height:0},this.holderRef=t=>{t!==this.holderEl&&(this.holderEl=t)},this.wrapperRef=t=>{t!==this.wrapperEl&&(this.wrapperEl=t,this.updateScrollEl(),this.updateBoundaryEl())},this.checkPosition=()=>{const{holderEl:t,wrapperEl:r,boundaryEl:n,scrollEl:o,disabled:i}=this;if(!o||!t||!r){console.error("Missing required elements:",{scrollEl:o,holderEl:t,wrapperEl:r});return}const{mode:a,onFixedToggle:l,offsetTransforms:s,isIOSFixEnabled:u,dontUpdateHolderHeightWhenSticky:c}=this.props;if(i){this.state.isFixed&&this.setState({isFixed:!1,wrapperStyles:{}});return}if(!t.getBoundingClientRect||!r.getBoundingClientRect)return;const d=t.getBoundingClientRect(),f=r.getBoundingClientRect(),p=n?(0,dw.getRect)(n):dw.infiniteRect,h=(0,dw.getRect)(o),v=this.isFixed(d,f,p,h);let b=null;if(s&&v&&o instanceof HTMLElement){const E=(0,AQe.default)(o);E&&(b=(0,dw.getRect)(E))}const y=this.state.isFixed&&c&&this.lastMinHeight?this.lastMinHeight:f.height;this.lastMinHeight=y;const w=u?{transform:"translateZ(0)",WebkitTransform:"translateZ(0)"}:void 0,k={isFixed:v,height:f.height,holderStyles:{minHeight:`${y}px`},wrapperStyles:v?Object.assign(Object.assign({},w),RQe(a,this.props,{boundaryTop:a==="bottom"?p.top:0,boundaryBottom:a==="top"?p.bottom:0,top:a==="top"?h.top-(b?b.top:0):0,bottom:a==="bottom"?h.bottom-(b?b.bottom:0):0,width:d.width,height:f.height})):w};v!==this.state.isFixed&&l&&typeof l=="function"&&l(v),PQe(this.state,k)||this.setState(k)}}isFixed(t,r,n,o){const{hideOnBoundaryHit:i,bottomOffset:a,topOffset:l,mode:s}=this.props;if(this.disabled||i&&n&&!(0,dw.isIntersecting)(n,o,l,a))return!1;const u=i?r.height+a:0;return s==="top"?t.top+l<o.top&&o.top+u<=n.bottom:t.bottom-l>o.bottom&&o.bottom-u>=n.top}updateScrollEl(){if(!this.wrapperEl)return;this.scrollEl&&((0,cw.unlisten)(this.scrollEl,["scroll"],this.checkPosition),this.scrollEl=null);const{scrollElement:t}=this.props;typeof t=="string"?this.scrollEl=(0,Lee.default)(t,this.wrapperEl):this.scrollEl=t,this.scrollEl?(0,cw.listen)(this.scrollEl,["scroll"],this.checkPosition):console.error("Cannot find scrollElement "+(typeof t=="string"?t:"unknown"))}updateBoundaryEl(){if(!this.wrapperEl)return;const{boundaryElement:t}=this.props;this.boundaryEl=(0,Lee.default)(t,this.wrapperEl),(this.boundaryEl===window||this.boundaryEl===document)&&(this.boundaryEl=null)}initialize(){const{positionRecheckInterval:t,disabled:r}=this.props;this.disabled=r,(0,cw.listen)(window,["scroll","resize","pageshow","load"],this.checkPosition),this.checkPosition(),t&&(this.checkPositionIntervalId=setInterval(this.checkPosition,t))}componentDidUpdate({scrollElement:t,boundaryElement:r,disabled:n}){(t!==this.props.scrollElement||this.scrollEl===null)&&this.updateScrollEl(),(r!==this.props.boundaryElement||this.boundaryEl===null)&&this.updateBoundaryEl(),n!==this.props.disabled&&(this.disabled=this.props.disabled,this.checkPosition())}componentDidMount(){this.initialize(),this.wrapperEl===null&&console.error("Wrapper element is missing, please make sure that you have assigned refs correctly")}componentWillUnmount(){this.scrollEl&&(0,cw.unlisten)(this.scrollEl,["scroll"],this.checkPosition),(0,cw.unlisten)(window,["scroll","resize","pageshow","load"],this.checkPosition),this.boundaryEl=null,this.scrollEl=null,this.checkPositionIntervalId&&clearInterval(this.checkPositionIntervalId)}render(){const{holderRef:t,wrapperRef:r}=this,{isFixed:n,wrapperStyles:o,holderStyles:i}=this.state;return this.props.children({holderRef:t,wrapperRef:r,isFixed:n,wrapperStyles:o,holderStyles:i})}}Hee.defaultProps={mode:"top",topOffset:0,bottomOffset:0,isIOSFixEnabled:!0,offsetTransforms:!0,disabled:!1,onFixedToggle:void 0,boundaryElement:void 0,hideOnBoundaryHit:!0,scrollElement:"window",dontUpdateHolderHeightWhenSticky:!1},I3.default=Hee;var Nee={};(function(e){var t=jr&&jr.__rest||function(a,l){var s={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&l.indexOf(u)<0&&(s[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,u=Object.getOwnPropertySymbols(a);c<u.length;c++)l.indexOf(u[c])<0&&Object.prototype.propertyIsEnumerable.call(a,u[c])&&(s[u[c]]=a[u[c]]);return s},r=jr&&jr.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultProps=void 0;const n=r(m),o=r(I3);e.defaultProps=Object.assign(Object.assign({},o.default.defaultProps),{stickyClassName:"sticky",wrapperClassName:"",stickyStyle:{}});function i(a){const l=Object.assign(Object.assign({},e.defaultProps),a),{mode:s,onFixedToggle:u,hideOnBoundaryHit:c,offsetTransforms:d,disabled:f,boundaryElement:p,scrollElement:h,bottomOffset:v,topOffset:b,positionRecheckInterval:y,children:w,isIOSFixEnabled:k,dontUpdateHolderHeightWhenSticky:E,wrapperClassName:_,stickyClassName:S,stickyStyle:A}=l,O=t(l,["mode","onFixedToggle","hideOnBoundaryHit","offsetTransforms","disabled","boundaryElement","scrollElement","bottomOffset","topOffset","positionRecheckInterval","children","isIOSFixEnabled","dontUpdateHolderHeightWhenSticky","wrapperClassName","stickyClassName","stickyStyle"]);return n.default.createElement(o.default,{mode:s,onFixedToggle:u,hideOnBoundaryHit:c,offsetTransforms:d,disabled:f,boundaryElement:p,scrollElement:h,bottomOffset:v,topOffset:b,positionRecheckInterval:y,isIOSFixEnabled:k,dontUpdateHolderHeightWhenSticky:E},({isFixed:I,wrapperStyles:L,wrapperRef:P,holderStyles:H,holderRef:j})=>n.default.createElement("div",Object.assign({},O,{ref:j,style:H}),n.default.createElement("div",Object.assign({},O,{className:`${_} ${I?S:""}`,style:I?Object.assign(Object.assign({},L),A):L,ref:P}),w)))}e.default=i})(Nee);var $ee=jr&&jr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(O3,"__esModule",{value:!0});var Dee=O3.RenderPropSticky=void 0;const LQe=$ee(I3);Dee=O3.RenderPropSticky=LQe.default;const HQe=$ee(Nee);O3.default=HQe.default;const Bee={to:"top"};function NQe({children:e,uid:t,layout:r,to:n=Bee.to}){const o=m.useRef(null),[i,a]=m.useState(null),[l,s]=m.useState(!1),u=ZY(o.current),c=lje(u);m.useEffect(()=>{i&&document.documentElement.style.setProperty("--xmlui-scroll-margin-top",i.clientHeight+"px")},[u,i]);const d=ze(ZL.wrapper),f={backgroundColor:c,...r},p="";return C.jsxs(C.Fragment,{children:[!!u&&C.jsx(Dee,{mode:n,onFixedToggle:s,scrollElement:u,children:({isFixed:h,wrapperStyles:v,wrapperRef:b,holderStyles:y,holderRef:w})=>C.jsx("div",{ref:w,style:y,children:C.jsx("div",{className:`${d} ${h?p:""}`,style:h?{...v,...f}:v,ref:b,children:C.jsx("div",{ref:a,children:e})})})}),C.jsx("div",{style:{display:"none"},ref:o,className:n==="top"?ZL.sentinel:""})]})}const jee="StickyBox",Mee={status:"stable",description:"`StickyBox` remains fixed at the top or bottom of the screen as the user scrolls.",props:{to:{description:"This property determines whether the StickyBox should be anchored to the `top` or `bottom`.",availableValues:["top","bottom"],valueType:"string",defaultValue:Bee.to}},themeVars:Ze(ZL.themeVars),defaultThemeVars:{[`backgroundColor-${jee}`]:"$backgroundColor"}},$Qe=we(jee,Mee,({node:e,renderChild:t,extractValue:r,layoutCss:n})=>{var o;return C.jsx(NQe,{uid:e.uid,layout:n,to:r((o=e.props)==null?void 0:o.to),children:t(e.children)})}),tH={themeVars:`'{"border-Badge": "var(--xmlui-border-Badge)", "borderHorizontal-Badge": "var(--xmlui-borderHorizontal-Badge, var(--xmlui-border-Badge))", "borderVertical-Badge": "var(--xmlui-borderVertical-Badge, var(--xmlui-border-Badge))", "borderLeft-Badge": "var(--xmlui-borderLeft-Badge, var(--xmlui-borderHorizontal-Badge, var(--xmlui-border-Badge)))", "borderRight-Badge": "var(--xmlui-borderRight-Badge, var(--xmlui-borderHorizontal-Badge, var(--xmlui-border-Badge)))", "borderTop-Badge": "var(--xmlui-borderTop-Badge, var(--xmlui-borderVertical-Badge, var(--xmlui-border-Badge)))", "borderBottom-Badge": "var(--xmlui-borderBottom-Badge, var(--xmlui-borderVertical-Badge, var(--xmlui-border-Badge)))", "borderWidth-Badge": "var(--xmlui-borderWidth-Badge)", "borderHorizontalWidth-Badge": "var(--xmlui-borderHorizontalWidth-Badge, var(--xmlui-borderWidth-Badge))", "borderLeftWidth-Badge": "var(--xmlui-borderLeftWidth-Badge, var(--xmlui-borderHorizontalWidth-Badge, var(--xmlui-borderWidth-Badge)))", "borderRightWidth-Badge": "var(--xmlui-borderRightWidth-Badge, var(--xmlui-borderHorizontalWidth-Badge, var(--xmlui-borderWidth-Badge)))", "borderVerticalWidth-Badge": "var(--xmlui-borderVerticalWidth-Badge, var(--xmlui-borderWidth-Badge))", "borderTopWidth-Badge": "var(--xmlui-borderTopWidth-Badge, var(--xmlui-borderVerticalWidth-Badge, var(--xmlui-borderWidth-Badge)))", "borderBottomWidth-Badge": "var(--xmlui-borderBottomWidth-Badge, var(--xmlui-borderVerticalWidth-Badge, var(--xmlui-borderWidth-Badge)))", "borderStyle-Badge": "var(--xmlui-borderStyle-Badge)", "borderHorizontalStyle-Badge": "var(--xmlui-borderHorizontalStyle-Badge, var(--xmlui-borderStyle-Badge))", "borderLeftStyle-Badge": "var(--xmlui-borderLeftStyle-Badge, var(--xmlui-borderHorizontalStyle-Badge, var(--xmlui-borderStyle-Badge)))", "borderRightStyle-Badge": "var(--xmlui-borderRightStyle-Badge, var(--xmlui-borderHorizontalStyle-Badge, var(--xmlui-borderStyle-Badge)))", "borderVerticalStyle-Badge": "var(--xmlui-borderVerticalStyle-Badge, var(--xmlui-borderStyle-Badge))", "borderTopStyle-Badge": "var(--xmlui-borderTopStyle-Badge, var(--xmlui-borderVerticalStyle-Badge, var(--xmlui-borderStyle-Badge)))", "borderBottomStyle-Badge": "var(--xmlui-borderBottomStyle-Badge, var(--xmlui-borderVerticalStyle-Badge, var(--xmlui-borderStyle-Badge)))", "borderColor-Badge": "var(--xmlui-borderColor-Badge)", "borderHorizontalColor-Badge": "var(--xmlui-borderHorizontalColor-Badge, var(--xmlui-borderColor-Badge))", "borderLeftColor-Badge": "var(--xmlui-borderLeftColor-Badge, var(--xmlui-borderHorizontalColor-Badge, var(--xmlui-borderColor-Badge)))", "borderRightColor-Badge": "var(--xmlui-borderRightColor-Badge, var(--xmlui-borderHorizontalColor-Badge, var(--xmlui-borderColor-Badge)))", "borderVerticalColor-Badge": "var(--xmlui-borderVerticalColor-Badge, var(--xmlui-borderColor-Badge))", "borderTopColor-Badge": "var(--xmlui-borderTopColor-Badge, var(--xmlui-borderVerticalColor-Badge, var(--xmlui-borderColor-Badge)))", "borderBottomColor-Badge": "var(--xmlui-borderBottomColor-Badge, var(--xmlui-borderVerticalColor-Badge, var(--xmlui-borderColor-Badge)))", "borderStartStartRadius-Badge": "var(--xmlui-borderStartStartRadius-Badge, var(--xmlui-borderRadius-Badge))", "borderStartEndRadius-Badge": "var(--xmlui-borderStartEndRadius-Badge, var(--xmlui-borderRadius-Badge))", "borderEndStartRadius-Badge": "var(--xmlui-borderEndStartRadius-Badge, var(--xmlui-borderRadius-Badge))", "borderEndEndRadius-Badge": "var(--xmlui-borderEndEndRadius-Badge, var(--xmlui-borderRadius-Badge))", "padding-Badge": "var(--xmlui-padding-Badge)", "paddingHorizontal-Badge": "var(--xmlui-paddingHorizontal-Badge, var(--xmlui-padding-Badge))", "paddingVertical-Badge": "var(--xmlui-paddingVertical-Badge, var(--xmlui-padding-Badge))", "paddingLeft-Badge": "var(--xmlui-paddingLeft-Badge, var(--xmlui-paddingHorizontal-Badge, var(--xmlui-padding-Badge)))", "paddingRight-Badge": "var(--xmlui-paddingRight-Badge, var(--xmlui-paddingHorizontal-Badge, var(--xmlui-padding-Badge)))", "paddingTop-Badge": "var(--xmlui-paddingTop-Badge, var(--xmlui-paddingVertical-Badge, var(--xmlui-padding-Badge)))", "paddingBottom-Badge": "var(--xmlui-paddingBottom-Badge, var(--xmlui-paddingVertical-Badge, var(--xmlui-padding-Badge)))", "textColor-Badge": "var(--xmlui-textColor-Badge)", "fontFamily-Badge": "var(--xmlui-fontFamily-Badge)", "fontSize-Badge": "var(--xmlui-fontSize-Badge)", "fontStyle-Badge": "var(--xmlui-fontStyle-Badge)", "fontVariant-Badge": "var(--xmlui-fontVariant-Badge)", "fontWeight-Badge": "var(--xmlui-fontWeight-Badge)", "fontStretch-Badge": "var(--xmlui-fontStretch-Badge)", "textDecorationLine-Badge": "var(--xmlui-textDecorationLine-Badge)", "textDecorationColor-Badge": "var(--xmlui-textDecorationColor-Badge)", "textDecorationStyle-Badge": "var(--xmlui-textDecorationStyle-Badge)", "textDecorationThickness-Badge": "var(--xmlui-textDecorationThickness-Badge)", "textUnderlineOffset-Badge": "var(--xmlui-textUnderlineOffset-Badge)", "lineHeight-Badge": "var(--xmlui-lineHeight-Badge)", "backgroundColor-Badge": "var(--xmlui-backgroundColor-Badge)", "textTransform-Badge": "var(--xmlui-textTransform-Badge)", "letterSpacing-Badge": "var(--xmlui-letterSpacing-Badge)", "wordSpacing-Badge": "var(--xmlui-wordSpacing-Badge)", "textShadow-Badge": "var(--xmlui-textShadow-Badge)", "textIndent-Badge": "var(--xmlui-textIndent-Badge)", "textAlign-Badge": "var(--xmlui-textAlign-Badge)", "textAlignLast-Badge": "var(--xmlui-textAlignLast-Badge)", "wordBreak-Badge": "var(--xmlui-wordBreak-Badge)", "wordWrap-Badge": "var(--xmlui-wordWrap-Badge)", "direction-Badge": "var(--xmlui-direction-Badge)", "writingMode-Badge": "var(--xmlui-writingMode-Badge)", "lineBreak-Badge": "var(--xmlui-lineBreak-Badge)", "border-Badge-pill": "var(--xmlui-border-Badge-pill)", "borderHorizontal-Badge-pill": "var(--xmlui-borderHorizontal-Badge-pill, var(--xmlui-border-Badge-pill))", "borderVertical-Badge-pill": "var(--xmlui-borderVertical-Badge-pill, var(--xmlui-border-Badge-pill))", "borderLeft-Badge-pill": "var(--xmlui-borderLeft-Badge-pill, var(--xmlui-borderHorizontal-Badge-pill, var(--xmlui-border-Badge-pill)))", "borderRight-Badge-pill": "var(--xmlui-borderRight-Badge-pill, var(--xmlui-borderHorizontal-Badge-pill, var(--xmlui-border-Badge-pill)))", "borderTop-Badge-pill": "var(--xmlui-borderTop-Badge-pill, var(--xmlui-borderVertical-Badge-pill, var(--xmlui-border-Badge-pill)))", "borderBottom-Badge-pill": "var(--xmlui-borderBottom-Badge-pill, var(--xmlui-borderVertical-Badge-pill, var(--xmlui-border-Badge-pill)))", "borderWidth-Badge-pill": "var(--xmlui-borderWidth-Badge-pill)", "borderHorizontalWidth-Badge-pill": "var(--xmlui-borderHorizontalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill))", "borderLeftWidth-Badge-pill": "var(--xmlui-borderLeftWidth-Badge-pill, var(--xmlui-borderHorizontalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill)))", "borderRightWidth-Badge-pill": "var(--xmlui-borderRightWidth-Badge-pill, var(--xmlui-borderHorizontalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill)))", "borderVerticalWidth-Badge-pill": "var(--xmlui-borderVerticalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill))", "borderTopWidth-Badge-pill": "var(--xmlui-borderTopWidth-Badge-pill, var(--xmlui-borderVerticalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill)))", "borderBottomWidth-Badge-pill": "var(--xmlui-borderBottomWidth-Badge-pill, var(--xmlui-borderVerticalWidth-Badge-pill, var(--xmlui-borderWidth-Badge-pill)))", "borderStyle-Badge-pill": "var(--xmlui-borderStyle-Badge-pill)", "borderHorizontalStyle-Badge-pill": "var(--xmlui-borderHorizontalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill))", "borderLeftStyle-Badge-pill": "var(--xmlui-borderLeftStyle-Badge-pill, var(--xmlui-borderHorizontalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill)))", "borderRightStyle-Badge-pill": "var(--xmlui-borderRightStyle-Badge-pill, var(--xmlui-borderHorizontalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill)))", "borderVerticalStyle-Badge-pill": "var(--xmlui-borderVerticalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill))", "borderTopStyle-Badge-pill": "var(--xmlui-borderTopStyle-Badge-pill, var(--xmlui-borderVerticalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill)))", "borderBottomStyle-Badge-pill": "var(--xmlui-borderBottomStyle-Badge-pill, var(--xmlui-borderVerticalStyle-Badge-pill, var(--xmlui-borderStyle-Badge-pill)))", "borderColor-Badge-pill": "var(--xmlui-borderColor-Badge-pill)", "borderHorizontalColor-Badge-pill": "var(--xmlui-borderHorizontalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill))", "borderLeftColor-Badge-pill": "var(--xmlui-borderLeftColor-Badge-pill, var(--xmlui-borderHorizontalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill)))", "borderRightColor-Badge-pill": "var(--xmlui-borderRightColor-Badge-pill, var(--xmlui-borderHorizontalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill)))", "borderVerticalColor-Badge-pill": "var(--xmlui-borderVerticalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill))", "borderTopColor-Badge-pill": "var(--xmlui-borderTopColor-Badge-pill, var(--xmlui-borderVerticalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill)))", "borderBottomColor-Badge-pill": "var(--xmlui-borderBottomColor-Badge-pill, var(--xmlui-borderVerticalColor-Badge-pill, var(--xmlui-borderColor-Badge-pill)))", "borderStartStartRadius-Badge-pill": "var(--xmlui-borderStartStartRadius-Badge-pill, var(--xmlui-borderRadius-Badge-pill))", "borderStartEndRadius-Badge-pill": "var(--xmlui-borderStartEndRadius-Badge-pill, var(--xmlui-borderRadius-Badge-pill))", "borderEndStartRadius-Badge-pill": "var(--xmlui-borderEndStartRadius-Badge-pill, var(--xmlui-borderRadius-Badge-pill))", "borderEndEndRadius-Badge-pill": "var(--xmlui-borderEndEndRadius-Badge-pill, var(--xmlui-borderRadius-Badge-pill))", "padding-Badge-pill": "var(--xmlui-padding-Badge-pill)", "paddingHorizontal-Badge-pill": "var(--xmlui-paddingHorizontal-Badge-pill, var(--xmlui-padding-Badge-pill))", "paddingVertical-Badge-pill": "var(--xmlui-paddingVertical-Badge-pill, var(--xmlui-padding-Badge-pill))", "paddingLeft-Badge-pill": "var(--xmlui-paddingLeft-Badge-pill, var(--xmlui-paddingHorizontal-Badge-pill, var(--xmlui-padding-Badge-pill)))", "paddingRight-Badge-pill": "var(--xmlui-paddingRight-Badge-pill, var(--xmlui-paddingHorizontal-Badge-pill, var(--xmlui-padding-Badge-pill)))", "paddingTop-Badge-pill": "var(--xmlui-paddingTop-Badge-pill, var(--xmlui-paddingVertical-Badge-pill, var(--xmlui-padding-Badge-pill)))", "paddingBottom-Badge-pill": "var(--xmlui-paddingBottom-Badge-pill, var(--xmlui-paddingVertical-Badge-pill, var(--xmlui-padding-Badge-pill)))", "textColor-Badge-pill": "var(--xmlui-textColor-Badge-pill)", "fontFamily-Badge-pill": "var(--xmlui-fontFamily-Badge-pill)", "fontSize-Badge-pill": "var(--xmlui-fontSize-Badge-pill)", "fontStyle-Badge-pill": "var(--xmlui-fontStyle-Badge-pill)", "fontVariant-Badge-pill": "var(--xmlui-fontVariant-Badge-pill)", "fontWeight-Badge-pill": "var(--xmlui-fontWeight-Badge-pill)", "fontStretch-Badge-pill": "var(--xmlui-fontStretch-Badge-pill)", "textDecorationLine-Badge-pill": "var(--xmlui-textDecorationLine-Badge-pill)", "textDecorationColor-Badge-pill": "var(--xmlui-textDecorationColor-Badge-pill)", "textDecorationStyle-Badge-pill": "var(--xmlui-textDecorationStyle-Badge-pill)", "textDecorationThickness-Badge-pill": "var(--xmlui-textDecorationThickness-Badge-pill)", "textUnderlineOffset-Badge-pill": "var(--xmlui-textUnderlineOffset-Badge-pill)", "lineHeight-Badge-pill": "var(--xmlui-lineHeight-Badge-pill)", "backgroundColor-Badge-pill": "var(--xmlui-backgroundColor-Badge-pill)", "textTransform-Badge-pill": "var(--xmlui-textTransform-Badge-pill)", "letterSpacing-Badge-pill": "var(--xmlui-letterSpacing-Badge-pill)", "wordSpacing-Badge-pill": "var(--xmlui-wordSpacing-Badge-pill)", "textShadow-Badge-pill": "var(--xmlui-textShadow-Badge-pill)", "textIndent-Badge-pill": "var(--xmlui-textIndent-Badge-pill)", "textAlign-Badge-pill": "var(--xmlui-textAlign-Badge-pill)", "textAlignLast-Badge-pill": "var(--xmlui-textAlignLast-Badge-pill)", "wordBreak-Badge-pill": "var(--xmlui-wordBreak-Badge-pill)", "wordWrap-Badge-pill": "var(--xmlui-wordWrap-Badge-pill)", "direction-Badge-pill": "var(--xmlui-direction-Badge-pill)", "writingMode-Badge-pill": "var(--xmlui-writingMode-Badge-pill)", "lineBreak-Badge-pill": "var(--xmlui-lineBreak-Badge-pill)"}'`,badge:"_badge_9anto_13",pill:"_pill_9anto_74"},DQe=["badge","pill"];function BQe(e){return typeof e=="object"&&e!==null&&"label"in e&&"background"in e&&typeof e.label=="string"&&typeof e.background=="string"}const zee={variant:"badge"},jQe=m.forwardRef(function({children:t,color:r,variant:n=zee.variant,style:o},i){return C.jsx("div",{ref:i,className:ze({[tH.badge]:n==="badge",[tH.pill]:n==="pill"}),style:{...r?typeof r=="string"?{backgroundColor:r}:{backgroundColor:r.background,color:r.label}:{},...o},children:t})}),wc="Badge",Fee={status:"stable",description:"`Badge` displays small text labels with colored backgrounds, commonly used for status indicators, categories, tags, and counts. It supports dynamic color mapping based on content values, useful for status systems and data categorization.",props:{value:{description:"The text that the component displays. If this is not defined, the component renders its children as the content of the badge. If neither text nor any child is defined, the component renders a single frame for the badge with a non-breakable space.",type:"string",isRequired:!0},variant:{description:"Modifies the shape of the component. Comes in the regular `badge` variant or the `pill` variant with fully rounded corners.",type:"string",availableValues:DQe,defaultValue:zee.variant},colorMap:{description:`The \`${wc}\` component supports the mapping of a list of colors using the \`value\` prop as the key. If this property is not set, no color mapping is used.`},themeColor:Vn("(**NOT IMPLEMENTED YET**) The theme color of the component."),indicatorText:Vn("(**NOT IMPLEMENTED YET**) This property defines the text to display in the indicator. If it is not defined or empty, no indicator is displayed unless the `forceIndicator` property is set."),forceIndicator:Vn("(**NOT IMPLEMENTED YET**) This property forces the display of the indicator, even if the `indicatorText` property is not defined or empty."),indicatorThemeColor:Vn("(**NOT IMPLEMENTED YET**) The theme color of the indicator."),indicatorPosition:Vn("(**NOT IMPLEMENTED YET**) The position of the indicator.")},events:{},themeVars:Ze(tH.themeVars),defaultThemeVars:{[`padding-${wc}`]:"$space-0_5 $space-2",[`border-${wc}`]:"0px solid $borderColor",[`padding-${wc}-pill`]:"$space-0_5 $space-2",[`borderRadius-${wc}`]:"4px",[`fontSize-${wc}`]:"0.8em",[`fontSize-${wc}-pill`]:"0.8em",[`backgroundColor-${wc}`]:"rgb(from $color-secondary-500 r g b / 0.6)",[`textColor-${wc}`]:"$const-color-surface-0"}},MQe=we(wc,Fee,({node:e,extractValue:t,renderChild:r,layoutCss:n})=>{var l;const o=t.asDisplayText(e.props.value),i=t((l=e.props)==null?void 0:l.colorMap);let a;if(i&&o){const s=i[o];typeof s=="string"?a=rH(s):BQe(s)&&(a={label:rH(s.label),background:rH(s.background)})}return C.jsx(jQe,{variant:t(e.props.variant),color:a,style:n,children:o||e.children&&r(e.children)||" "})});function rH(e){return e.startsWith("$")?py(e):e}const fw={themeVars:`'{"border-Avatar": "var(--xmlui-border-Avatar)", "borderHorizontal-Avatar": "var(--xmlui-borderHorizontal-Avatar, var(--xmlui-border-Avatar))", "borderVertical-Avatar": "var(--xmlui-borderVertical-Avatar, var(--xmlui-border-Avatar))", "borderLeft-Avatar": "var(--xmlui-borderLeft-Avatar, var(--xmlui-borderHorizontal-Avatar, var(--xmlui-border-Avatar)))", "borderRight-Avatar": "var(--xmlui-borderRight-Avatar, var(--xmlui-borderHorizontal-Avatar, var(--xmlui-border-Avatar)))", "borderTop-Avatar": "var(--xmlui-borderTop-Avatar, var(--xmlui-borderVertical-Avatar, var(--xmlui-border-Avatar)))", "borderBottom-Avatar": "var(--xmlui-borderBottom-Avatar, var(--xmlui-borderVertical-Avatar, var(--xmlui-border-Avatar)))", "borderWidth-Avatar": "var(--xmlui-borderWidth-Avatar)", "borderHorizontalWidth-Avatar": "var(--xmlui-borderHorizontalWidth-Avatar, var(--xmlui-borderWidth-Avatar))", "borderLeftWidth-Avatar": "var(--xmlui-borderLeftWidth-Avatar, var(--xmlui-borderHorizontalWidth-Avatar, var(--xmlui-borderWidth-Avatar)))", "borderRightWidth-Avatar": "var(--xmlui-borderRightWidth-Avatar, var(--xmlui-borderHorizontalWidth-Avatar, var(--xmlui-borderWidth-Avatar)))", "borderVerticalWidth-Avatar": "var(--xmlui-borderVerticalWidth-Avatar, var(--xmlui-borderWidth-Avatar))", "borderTopWidth-Avatar": "var(--xmlui-borderTopWidth-Avatar, var(--xmlui-borderVerticalWidth-Avatar, var(--xmlui-borderWidth-Avatar)))", "borderBottomWidth-Avatar": "var(--xmlui-borderBottomWidth-Avatar, var(--xmlui-borderVerticalWidth-Avatar, var(--xmlui-borderWidth-Avatar)))", "borderStyle-Avatar": "var(--xmlui-borderStyle-Avatar)", "borderHorizontalStyle-Avatar": "var(--xmlui-borderHorizontalStyle-Avatar, var(--xmlui-borderStyle-Avatar))", "borderLeftStyle-Avatar": "var(--xmlui-borderLeftStyle-Avatar, var(--xmlui-borderHorizontalStyle-Avatar, var(--xmlui-borderStyle-Avatar)))", "borderRightStyle-Avatar": "var(--xmlui-borderRightStyle-Avatar, var(--xmlui-borderHorizontalStyle-Avatar, var(--xmlui-borderStyle-Avatar)))", "borderVerticalStyle-Avatar": "var(--xmlui-borderVerticalStyle-Avatar, var(--xmlui-borderStyle-Avatar))", "borderTopStyle-Avatar": "var(--xmlui-borderTopStyle-Avatar, var(--xmlui-borderVerticalStyle-Avatar, var(--xmlui-borderStyle-Avatar)))", "borderBottomStyle-Avatar": "var(--xmlui-borderBottomStyle-Avatar, var(--xmlui-borderVerticalStyle-Avatar, var(--xmlui-borderStyle-Avatar)))", "borderColor-Avatar": "var(--xmlui-borderColor-Avatar)", "borderHorizontalColor-Avatar": "var(--xmlui-borderHorizontalColor-Avatar, var(--xmlui-borderColor-Avatar))", "borderLeftColor-Avatar": "var(--xmlui-borderLeftColor-Avatar, var(--xmlui-borderHorizontalColor-Avatar, var(--xmlui-borderColor-Avatar)))", "borderRightColor-Avatar": "var(--xmlui-borderRightColor-Avatar, var(--xmlui-borderHorizontalColor-Avatar, var(--xmlui-borderColor-Avatar)))", "borderVerticalColor-Avatar": "var(--xmlui-borderVerticalColor-Avatar, var(--xmlui-borderColor-Avatar))", "borderTopColor-Avatar": "var(--xmlui-borderTopColor-Avatar, var(--xmlui-borderVerticalColor-Avatar, var(--xmlui-borderColor-Avatar)))", "borderBottomColor-Avatar": "var(--xmlui-borderBottomColor-Avatar, var(--xmlui-borderVerticalColor-Avatar, var(--xmlui-borderColor-Avatar)))", "borderStartStartRadius-Avatar": "var(--xmlui-borderStartStartRadius-Avatar, var(--xmlui-borderRadius-Avatar))", "borderStartEndRadius-Avatar": "var(--xmlui-borderStartEndRadius-Avatar, var(--xmlui-borderRadius-Avatar))", "borderEndStartRadius-Avatar": "var(--xmlui-borderEndStartRadius-Avatar, var(--xmlui-borderRadius-Avatar))", "borderEndEndRadius-Avatar": "var(--xmlui-borderEndEndRadius-Avatar, var(--xmlui-borderRadius-Avatar))", "backgroundColor-Avatar": "var(--xmlui-backgroundColor-Avatar)", "boxShadow-Avatar": "var(--xmlui-boxShadow-Avatar)", "textColor-Avatar": "var(--xmlui-textColor-Avatar)", "fontWeight-Avatar": "var(--xmlui-fontWeight-Avatar)"}'`,container:"_container_gnyw6_13",xs:"_xs_gnyw6_48",sm:"_sm_gnyw6_55",md:"_md_gnyw6_62",lg:"_lg_gnyw6_69",clickable:"_clickable_gnyw6_76"},Wee={size:"sm"},Vee=m.memo(m.forwardRef(function({size:t=Wee.size,url:r,name:n,style:o,onClick:i,...a},l){const s=m.useMemo(()=>zQe(n??null),[n]),u=f=>{i&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),i(f))},c=ze(fw.container,fw[t]||fw.sm,{[fw.clickable]:!!i}),d=n?`Avatar of ${n}`:"Avatar";return r?C.jsx("img",{...a,ref:l,src:r,alt:d,className:c,style:o,onClick:i,onKeyDown:u,tabIndex:i?0:void 0}):C.jsx("div",{...a,ref:l,className:c,style:o,onClick:i,onKeyDown:u,role:"img","aria-label":d,tabIndex:i?0:void 0,children:s||C.jsx("span",{"aria-hidden":"true"})})}));function zQe(e){return e?e.trim().split(" ").filter(r=>!!r.trim().length).map(r=>r[0].toUpperCase()).slice(0,3).join(""):null}const Cc="Avatar",Uee={status:"stable",description:"`Avatar` displays a user or entity's profile picture as a circular image, with automatic fallback to initials when no image is provided. It's commonly used in headers, user lists, comments, and anywhere you need to represent a person or organization.",props:{size:{description:`This property defines the display size of the ${Cc}.`,availableValues:BT,valueType:"string",defaultValue:Wee.size},name:{description:`This property sets the name value the ${Cc} uses to display initials. If neither this property nor \`url\` is defined, an empty avatar is displayed.`,valueType:"string"},url:{description:`This property specifies the URL of the image to display in the ${Cc}. If neither this property nor \`name\` is defined, an empty avatar is displayed.`,valueType:"string"}},events:{click:re("This event is triggered when the avatar is clicked.")},themeVars:Ze(fw.themeVars),defaultThemeVars:{[`borderRadius-${Cc}`]:"4px",[`boxShadow-${Cc}`]:"inset 0 0 0 1px rgba(4,32,69,0.1)",[`textColor-${Cc}`]:"$textColor-secondary",[`fontWeight-${Cc}`]:"$fontWeight-bold",[`border-${Cc}`]:"0px solid $color-surface-400A80",[`backgroundColor-${Cc}`]:"$color-surface-100"}},FQe=we(Cc,Uee,({node:e,extractValue:t,lookupEventHandler:r,layoutCss:n,extractResourceUrl:o})=>{var i;return C.jsx(Vee,{size:(i=e.props)==null?void 0:i.size,url:o(e.props.url),name:t(e.props.name),style:n,onClick:r("click")})}),P3={themeVars:`'{"backgroundColor-ContentSeparator": "var(--xmlui-backgroundColor-ContentSeparator)", "size-ContentSeparator": "var(--xmlui-size-ContentSeparator)"}'`,separator:"_separator_1o93m_13",horizontal:"_horizontal_1o93m_16",vertical:"_vertical_1o93m_20"},qee={orientation:"horizontal"},WQe=({orientation:e=qee.orientation,size:t,style:r})=>C.jsx("div",{className:ze(P3.separator,{[P3.horizontal]:e==="horizontal",[P3.vertical]:e==="vertical"}),style:{height:e==="horizontal"?t:void 0,width:e==="horizontal"?"100%":t,...r}}),nH="ContentSeparator",Gee={status:"stable",description:"`ContentSeparator` creates visual dividers between content sections using horizontal or vertical lines. It's essential for improving readability by breaking up dense content, separating list items, or creating clear boundaries between different UI sections.",props:{size:{description:"This property defines the component's height (if the `orientation` is horizontal) or the width (if the `orientation` is vertical). If not defined, the component uses the entire available width or height.",valueType:"any"},orientation:{description:"Sets the main axis of the component",availableValues:jT,defaultValue:qee.orientation,valueType:"string"}},themeVars:Ze(P3.themeVars),defaultThemeVars:{[`backgroundColor-${nH}`]:"$color-surface-200",[`size-${nH}`]:"1px",light:{},dark:{}}},VQe=we(nH,Gee,({node:e,layoutCss:t,extractValue:r})=>C.jsx(WQe,{orientation:r(e.props.orientation),size:r.asSize(e.props.size),style:t})),_h={themeVars:`'{"padding-Card": "var(--xmlui-padding-Card)", "paddingHorizontal-Card": "var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card))", "paddingVertical-Card": "var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card))", "paddingLeft-Card": "var(--xmlui-paddingLeft-Card, var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card)))", "paddingRight-Card": "var(--xmlui-paddingRight-Card, var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card)))", "paddingTop-Card": "var(--xmlui-paddingTop-Card, var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card)))", "paddingBottom-Card": "var(--xmlui-paddingBottom-Card, var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card)))", "border-Card": "var(--xmlui-border-Card)", "borderHorizontal-Card": "var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card))", "borderVertical-Card": "var(--xmlui-borderVertical-Card, var(--xmlui-border-Card))", "borderLeft-Card": "var(--xmlui-borderLeft-Card, var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card)))", "borderRight-Card": "var(--xmlui-borderRight-Card, var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card)))", "borderTop-Card": "var(--xmlui-borderTop-Card, var(--xmlui-borderVertical-Card, var(--xmlui-border-Card)))", "borderBottom-Card": "var(--xmlui-borderBottom-Card, var(--xmlui-borderVertical-Card, var(--xmlui-border-Card)))", "borderWidth-Card": "var(--xmlui-borderWidth-Card)", "borderHorizontalWidth-Card": "var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card))", "borderLeftWidth-Card": "var(--xmlui-borderLeftWidth-Card, var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderRightWidth-Card": "var(--xmlui-borderRightWidth-Card, var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderVerticalWidth-Card": "var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card))", "borderTopWidth-Card": "var(--xmlui-borderTopWidth-Card, var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderBottomWidth-Card": "var(--xmlui-borderBottomWidth-Card, var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderStyle-Card": "var(--xmlui-borderStyle-Card)", "borderHorizontalStyle-Card": "var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card))", "borderLeftStyle-Card": "var(--xmlui-borderLeftStyle-Card, var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderRightStyle-Card": "var(--xmlui-borderRightStyle-Card, var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderVerticalStyle-Card": "var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card))", "borderTopStyle-Card": "var(--xmlui-borderTopStyle-Card, var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderBottomStyle-Card": "var(--xmlui-borderBottomStyle-Card, var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderColor-Card": "var(--xmlui-borderColor-Card)", "borderHorizontalColor-Card": "var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card))", "borderLeftColor-Card": "var(--xmlui-borderLeftColor-Card, var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card)))", "borderRightColor-Card": "var(--xmlui-borderRightColor-Card, var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card)))", "borderVerticalColor-Card": "var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card))", "borderTopColor-Card": "var(--xmlui-borderTopColor-Card, var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card)))", "borderBottomColor-Card": "var(--xmlui-borderBottomColor-Card, var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card)))", "borderStartStartRadius-Card": "var(--xmlui-borderStartStartRadius-Card, var(--xmlui-borderRadius-Card))", "borderStartEndRadius-Card": "var(--xmlui-borderStartEndRadius-Card, var(--xmlui-borderRadius-Card))", "borderEndStartRadius-Card": "var(--xmlui-borderEndStartRadius-Card, var(--xmlui-borderRadius-Card))", "borderEndEndRadius-Card": "var(--xmlui-borderEndEndRadius-Card, var(--xmlui-borderRadius-Card))", "boxShadow-Card": "var(--xmlui-boxShadow-Card)", "backgroundColor-Card": "var(--xmlui-backgroundColor-Card)", "borderRadius-Card": "var(--xmlui-borderRadius-Card)", "gap-Card": "var(--xmlui-gap-Card)", "gap-title-Card": "var(--xmlui-gap-title-Card)", "gap-avatar-Card": "var(--xmlui-gap-avatar-Card)", "horizontalAlignment-title-Card": "var(--xmlui-horizontalAlignment-title-Card)", "verticalAlignment-title-Card": "var(--xmlui-verticalAlignment-title-Card)"}'`,wrapper:"_wrapper_zx7g9_13",avatarWrapper:"_avatarWrapper_zx7g9_46",titleWrapper:"_titleWrapper_zx7g9_53",horizontal:"_horizontal_zx7g9_61",vertical:"_vertical_zx7g9_65",isClickable:"_isClickable_zx7g9_68"},L3={orientation:"vertical",showAvatar:!1},Yee=m.forwardRef(function({children:t,orientation:r=L3.orientation,style:n,title:o,subtitle:i,linkTo:a,avatarUrl:l,showAvatar:s=!!l||L3.showAvatar,avatarSize:u,onClick:c},d){const f={level:"h2",maxLines:1};return C.jsxs("div",{ref:d,className:ze(_h.wrapper,{[_h.isClickable]:!!c,[_h.vertical]:r==="vertical",[_h.horizontal]:r==="horizontal"}),style:n,onClick:c,children:[[o,i,l,s].some(Boolean)&&C.jsxs("div",{className:_h.avatarWrapper,children:[s&&C.jsx(Vee,{url:l,name:o,size:u}),C.jsxs("div",{className:_h.titleWrapper,children:[a?o?C.jsx(Dy,{to:a+"",children:C.jsx(gc,{...f,children:o})}):null:o?C.jsx(gc,{...f,children:o}):null,i!==void 0&&C.jsx(C.Fragment,{children:C.jsx(yr,{variant:"secondary",children:i})})]})]}),t]})}),Xo="Card",Kee={status:"stable",description:"`Card` is a versatile container that groups related content with a visual boundary, typically featuring background color, padding, borders, and rounded corners. It's ideal for organizing information, creating sections, and establishing visual hierarchy in your interface.",props:{avatarUrl:{description:`The url for an avarar image. If not specified, but [\`showAvatar\`](#showAvatar) is true, ${Xo} will show the first letters of the [\`title\`](#title).`,type:"string"},showAvatar:{description:"Indicates whether the avatar should be displayed",valueType:"boolean",defaultValue:L3.showAvatar},avatarSize:{description:"This prop sets the size of the avatar. The default value is `sm`.",availableValues:["xs","sm","md","lg"],valueType:"string"},title:{description:"This prop sets the pre-styled title. If the property is not set, no title is displayed in the Card.",valueType:"string"},subtitle:{description:"This prop sets the pre-styled subtitle. If the property is not set, no subtitle is displayed in the Card.",valueType:"string"},linkTo:{description:"This optional property wraps the title in a `Link` component that is clickable to navigate.",valueType:"string"},orientation:{description:`An optional property that governs the ${Xo}'s orientation (whether the ${Xo} lays out its children in a row or a column). If the orientation is set to \`horizontal\`, the ${Xo} will display its children in a row, except for its [\`title\`](#title) and [\`subtitle\`](#subtitle).`,availableValues:jT,valueType:"string",defaultValue:L3.orientation}},events:{click:Xp(Xo)},themeVars:Ze(_h.themeVars),defaultThemeVars:{[`padding-${Xo}`]:"$space-4",[`border-${Xo}`]:"1px solid $borderColor",[`borderRadius-${Xo}`]:"$borderRadius",[`boxShadow-${Xo}`]:"none",[`backgroundColor-${Xo}`]:"$color-surface-raised",[`gap-${Xo}`]:"var(--stack-gap-default)",[`gap-title-${Xo}`]:"$gap-none",[`gap-avatar-${Xo}`]:"$gap-normal",[`verticalAlignment-title-${Xo}`]:"center"},themeVarDescriptions:{[`gap-${Xo}`]:"The gap between the component's children.",[`gap-title-${Xo}`]:"The gap between the title and the subtitle",[`gap-avatar-${Xo}`]:"The gap between the avatar and the title panel",[`horizontalAlignment-title-${Xo}`]:"The horizontal alignment of panel with the title and subtitle",[`verticalAlignment-title-${Xo}`]:"The vertical alignment of the title and subtitle to the avatar"}},UQe=we("Card",Kee,({node:e,extractValue:t,renderChild:r,layoutCss:n})=>C.jsx(Yee,{style:n,title:t.asOptionalString(e.props.title),linkTo:t.asOptionalString(e.props.linkTo),subtitle:t.asOptionalString(e.props.subtitle),avatarUrl:t.asOptionalString(e.props.avatarUrl),showAvatar:t.asOptionalBoolean(e.props.showAvatar),avatarSize:t.asOptionalString(e.props.avatarSize),orientation:t.asOptionalString(e.props.orientation),children:r(e.children,{type:"Stack",orientation:"vertical"})})),sm={themeVars:'"[]"',outer:"_outer_aarhe_13",flowContainer:"_flowContainer_aarhe_17",horizontal:"_horizontal_aarhe_21",flowItem:"_flowItem_aarhe_24",break:"_break_aarhe_47",forceBreak:"_forceBreak_aarhe_47",starSized:"_starSized_aarhe_47"},oH={},Xee=m.createContext({rowGap:0,columnGap:0,setNumberOfChildren:Lf}),Qee=({force:e})=>C.jsx("div",{className:ze(sm.break,{[sm.forceBreak]:e})}),qQe=m.forwardRef(function({children:t,forceBreak:r,...n},o){const{rowGap:i,columnGap:a,setNumberOfChildren:l}=m.useContext(Xee),{mediaSize:s}=Eo();Sn(()=>(l(O=>O+1),()=>{l(O=>O-1)}),[l]);const{activeTheme:u,root:c}=zr(),d=n.width||"100%",f=n.minWidth||void 0,p=n.maxWidth||void 0,{width:h=d,minWidth:v,maxWidth:b,flex:y}=m.useMemo(()=>See({width:d,maxWidth:p,minWidth:f},{type:"Stack",orientation:"horizontal"}).cssProps||{},[p,f,d]),w=m.useMemo(()=>{if(h&&typeof h=="string"&&h.startsWith("var(")){if(!oH[h]){const O=h.substring(4,h.length-1),I=getComputedStyle(c||document.body).getPropertyValue(O);oH[h]=I||d}return oH[h]}return h||d},[d,c,h]),k=typeof w=="string"&&w.endsWith("%"),E=Wze(a);let _;if(k){const O=parseFloat(w);if(s.sizeIndex<=1){let I=O*4;I>50?_="100%":_=`min(${I}%, 100%)`}else if(s.sizeIndex<=2){let I=O*3;I>=50&&I<=75?_="50%":I>75?_="100%":_=`min(${I}%, 100%)`}else _=`min(${h}, 100%)`}else _=`min(calc(${h} + ${E}), 100%)`;const S={minWidth:v,maxWidth:b,width:_,paddingBottom:i,flex:y},A=y!==void 0;return A&&(S.width="100%",S.minWidth=v||"1px"),C.jsxs(C.Fragment,{children:[C.jsx("div",{style:{...S,paddingRight:E},className:ze(sm.flowItem,{[sm.starSized]:A}),ref:o,children:t}),A&&C.jsx(Qee,{})]})}),Zee={columnGap:"$gap-normal",rowGap:"$gap-normal"},GQe=m.forwardRef(function({style:t,columnGap:r=0,rowGap:n=0,children:o},i){const[a,l]=m.useState(0),s=a===1?0:r,u=yX(n),c=yX(s),d=m.useMemo(()=>({marginRight:`calc(-1 * ${c})`,marginBottom:`calc(-1 * ${u})`}),[c,u]),f=m.useMemo(()=>({rowGap:u,columnGap:c,setNumberOfChildren:l}),[c,u]);return C.jsx(Xee.Provider,{value:f,children:C.jsx("div",{style:t,ref:i,children:C.jsx("div",{className:sm.outer,children:C.jsx("div",{className:ze(sm.flowContainer,sm.horizontal),style:d,children:o})})})})}),iH="FlowLayout",Jee={status:"stable",description:"`FlowLayout` positions content in rows with automatic wrapping. When items exceed the available horizontal space, they automatically wrap to a new line.",props:{gap:{description:`This property defines the gap between items in the same row and between rows. The ${iH} component creates a new row when an item is about to overflow the current row.`,type:"string",defaultValue:"$gap-normal"},columnGap:{description:"The `columnGap` property specifies the space between items in a single row; it overrides the `gap` value.",defaultValue:Zee.columnGap},rowGap:{description:`The \`rowGap\` property specifies the space between the ${iH} rows; it overrides the \`gap\` value.`,defaultValue:Zee.rowGap}},themeVars:Ze(sm.themeVars)},YQe=we(iH,Jee,({node:e,renderChild:t,layoutCss:r,extractValue:n})=>{var a,l;if(!vP(e.children))throw new Ux;const o=n.asSize((a=e.props)==null?void 0:a.columnGap)||r.gap||n.asSize("$space-4"),i=n.asSize((l=e.props)==null?void 0:l.rowGap)||r.gap||n.asSize("$space-4");return C.jsx(GQe,{style:r,columnGap:o,rowGap:i,children:t(e.children,{wrapChild:({node:s,extractValue:u},c,d)=>{var v,b,y;if(d!=null&&d.opaque)return c;if(s.type==="SpaceFiller")return C.jsx(Qee,{force:!0});const f=u((v=s.props)==null?void 0:v.width),p=u((b=s.props)==null?void 0:b.minWidth),h=u((y=s.props)==null?void 0:y.maxWidth);return C.jsx(qQe,{width:f,minWidth:p,maxWidth:h,forceBreak:s.type==="SpaceFiller",children:c})}})})}),xu={themeVars:`'{"padding-ModalDialog": "var(--xmlui-padding-ModalDialog)", "paddingHorizontal-ModalDialog": "var(--xmlui-paddingHorizontal-ModalDialog, var(--xmlui-padding-ModalDialog))", "paddingVertical-ModalDialog": "var(--xmlui-paddingVertical-ModalDialog, var(--xmlui-padding-ModalDialog))", "paddingLeft-ModalDialog": "var(--xmlui-paddingLeft-ModalDialog, var(--xmlui-paddingHorizontal-ModalDialog, var(--xmlui-padding-ModalDialog)))", "paddingRight-ModalDialog": "var(--xmlui-paddingRight-ModalDialog, var(--xmlui-paddingHorizontal-ModalDialog, var(--xmlui-padding-ModalDialog)))", "paddingTop-ModalDialog": "var(--xmlui-paddingTop-ModalDialog, var(--xmlui-paddingVertical-ModalDialog, var(--xmlui-padding-ModalDialog)))", "paddingBottom-ModalDialog": "var(--xmlui-paddingBottom-ModalDialog, var(--xmlui-paddingVertical-ModalDialog, var(--xmlui-padding-ModalDialog)))", "padding-overlay-ModalDialog": "var(--xmlui-padding-overlay-ModalDialog)", "paddingHorizontal-overlay-ModalDialog": "var(--xmlui-paddingHorizontal-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog))", "paddingVertical-overlay-ModalDialog": "var(--xmlui-paddingVertical-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog))", "paddingLeft-overlay-ModalDialog": "var(--xmlui-paddingLeft-overlay-ModalDialog, var(--xmlui-paddingHorizontal-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "paddingRight-overlay-ModalDialog": "var(--xmlui-paddingRight-overlay-ModalDialog, var(--xmlui-paddingHorizontal-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "paddingTop-overlay-ModalDialog": "var(--xmlui-paddingTop-overlay-ModalDialog, var(--xmlui-paddingVertical-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "paddingBottom-overlay-ModalDialog": "var(--xmlui-paddingBottom-overlay-ModalDialog, var(--xmlui-paddingVertical-overlay-ModalDialog, var(--xmlui-padding-overlay-ModalDialog)))", "Dialog:backgroundColor-ModalDialog": "var(--xmlui-backgroundColor-ModalDialog)", "Dialog:backgroundColor-overlay-ModalDialog": "var(--xmlui-backgroundColor-overlay-ModalDialog)", "Dialog:borderRadius-ModalDialog": "var(--xmlui-borderRadius-ModalDialog)", "Dialog:fontFamily-ModalDialog": "var(--xmlui-fontFamily-ModalDialog)", "Dialog:textColor-ModalDialog": "var(--xmlui-textColor-ModalDialog)", "Dialog:minWidth-ModalDialog": "var(--xmlui-minWidth-ModalDialog)", "Dialog:maxWidth-ModalDialog": "var(--xmlui-maxWidth-ModalDialog)", "Dialog:marginBottom-title-ModalDialog": "var(--xmlui-marginBottom-title-ModalDialog)"}'`,overlay:"_overlay_1svyq_13",fullScreen:"_fullScreen_1svyq_22",content:"_content_1svyq_28",overlayBg:"_overlayBg_1svyq_37",nested:"_nested_1svyq_43",dialogTitle:"_dialogTitle_1svyq_81",innerContent:"_innerContent_1svyq_87",closeButton:"_closeButton_1svyq_114"};function aH(e,t){return{[`paddingLeft-${e}`]:(t==null?void 0:t.left)??`$paddingHorizontal-${e}`,[`paddingRight-${e}`]:(t==null?void 0:t.right)??`$paddingHorizontal-${e}`,[`paddingTop-${e}`]:(t==null?void 0:t.top)??`$paddingVertical-${e}`,[`paddingBottom-${e}`]:(t==null?void 0:t.bottom)??`$paddingVertical-${e}`,[`paddingHorizontal-${e}`]:(t==null?void 0:t.horizontal)??"",[`paddingVertical-${e}`]:(t==null?void 0:t.vertical)??"",[`padding-${e}`]:(t==null?void 0:t.all)??`$paddingTop-${e} $paddingRight-${e} $paddingBottom-${e} $paddingLeft-${e}`}}const ete=Z.createContext(null),KQe=()=>{const e=m.useId(),{registerForm:t,unRegisterForm:r,requestClose:n,amITheSingleForm:o}=m.useContext(ete)||{};return m.useEffect(()=>{if(t)return t(e),()=>{r==null||r(e)}},[e,t,r]),m.useCallback(()=>{if(n&&o(e))return n()},[o,e,n])},H3={fullScreen:!1,closeButtonVisible:!0},tte=Z.forwardRef(({isInitiallyOpen:e,onOpen:t,onClose:r,registerComponentApi:n,renderDialog:o},i)=>{const a=nte(e,t,r),{doOpen:l,doClose:s,isOpen:u,openParams:c}=a;return m.useEffect(()=>{n==null||n({open:l,close:s})},[s,l,n]),u?C.jsx(rte.Provider,{value:a,children:o({openParams:c,ref:i})}):null});tte.displayName="ModalDialogFrame";const rte=Z.createContext(null);function nte(e,t,r){const[n,o]=m.useState(e),i=m.useRef(!1),[a,l]=m.useState(null),s=zt((...c)=>{l(c),t==null||t(),o(!0)}),u=zt(async()=>{if(!i.current)try{if(i.current=!0,await(r==null?void 0:r())===!1)return}finally{i.current=!1}o(!1)});return m.useMemo(()=>({isOpen:n,doClose:u,doOpen:s,openParams:a}),[u,s,n,a])}function XQe(e=!0,t,r){const n=m.useContext(rte),o=nte(e,t,r);return n||o}const N3=Z.forwardRef(({children:e,style:t,isInitiallyOpen:r,fullScreen:n=H3.fullScreen,title:o,closeButtonVisible:i=H3.closeButtonVisible,onOpen:a,onClose:l},s)=>{const{root:u}=zr(),c=typeof ShadowRoot<"u"&&(u==null?void 0:u.getRootNode())instanceof ShadowRoot,d=m.useRef(null),f=s?Un(s,d):d,{isOpen:p,doClose:h,doOpen:v}=XQe(r,a,l);m.useEffect(()=>{var k;p&&((k=d.current)==null||k.focus())},[p]),m.useEffect(()=>{if(p){const k=setTimeout(()=>{document.body.style.pointerEvents=""},0);return()=>clearTimeout(k)}else document.body.style.pointerEvents="auto"},[p]);const b=m.useRef(new Set),y=m.useMemo(()=>({registerForm:k=>{b.current.add(k)},unRegisterForm:k=>{b.current.delete(k)},amITheSingleForm:k=>b.current.size===1&&b.current.has(k),requestClose:()=>h()}),[h]);if(!u)return null;const w=C.jsxs(kS,{className:ze(xu.content),onPointerDownOutside:k=>{k.target instanceof Element&&k.target.closest("._debug-inspect-button")!==null&&k.preventDefault()},ref:f,style:{...t,gap:void 0},children:[!!o&&C.jsx(S9,{style:{marginTop:0},children:C.jsx("header",{id:"dialogTitle",className:xu.dialogTitle,children:o})}),C.jsx("div",{className:xu.innerContent,style:{gap:t==null?void 0:t.gap},children:C.jsx(ete.Provider,{value:y,children:e})}),i&&C.jsx(sQ,{asChild:!0,children:C.jsx(cn,{variant:"ghost",themeColor:"secondary",className:xu.closeButton,"aria-label":"Close",icon:C.jsx(xt,{name:"close",size:"sm"}),orientation:"vertical"})})]});return C.jsx(_9,{open:p,onOpenChange:k=>k?v():h(),children:C.jsxs(T9,{container:u,children:[c&&C.jsx("div",{className:ze(xu.overlayBg,xu.nested,{[xu.fullScreen]:n}),children:w}),!c&&C.jsxs(C.Fragment,{children:[C.jsx("div",{className:ze(xu.overlayBg)}),C.jsx(CS,{className:ze(xu.overlay,{[xu.fullScreen]:n}),children:w})]})]})})});N3.displayName="ModalDialog";const ys="ModalDialog",ote={status:"stable",description:"`ModalDialog` creates overlay dialogs that appear on top of the main interface, ideal for forms, confirmations, detailed views, or any content that requires focused user attention. Dialogs are programmatically opened using the `open()` method and can receive parameters for dynamic content.",props:{fullScreen:{description:"Toggles whether the dialog encompasses the whole UI (`true`) or not and has a minimum width and height (`false`).",valueType:"boolean",defaultValue:H3.fullScreen},title:re("Provides a prestyled heading to display the intent of the dialog."),closeButtonVisible:{description:"Shows (`true`) or hides (`false`) the visibility of the close button on the dialog.",valueType:"boolean",defaultValue:H3.closeButtonVisible}},events:{open:re(`This event is fired when the \`${ys}\` is opened either via a \`when\` or an imperative API call (\`open()\`).`),close:re(`This event is fired when the close button is pressed or the user clicks outside the \`${ys}\`.`)},apis:{close:re(`This method is used to close the \`${ys}\`. Invoke it using \`modalId.close()\` where \`modalId\` refers to a \`ModalDialog\` component.`),open:re("This method imperatively opens the modal dialog. You can pass an arbitrary number of parameters to the method. In the `ModalDialog` instance, you can access those with the `$paramq` and `$params` context values.")},contextVars:{$param:re("First parameter passed to the `open()` method"),$params:re("Array of all parameters passed to `open()` method (access with `$params[0]`, `$params[1]`, etc.)")},themeVars:Ze(xu.themeVars),defaultThemeVars:{...aH(ys,{all:"$space-7"}),[`backgroundColor-${ys}`]:"$backgroundColor-primary",[`backgroundColor-overlay-${ys}`]:"$backgroundColor-overlay",[`textColor-${ys}`]:"$textColor-primary",[`borderRadius-${ys}`]:"$borderRadius",[`fontFamily-${ys}`]:"$fontFamily",[`maxWidth-${ys}`]:"450px",[`marginBottom-title-${ys}`]:"0"}},QQe=we(ys,ote,({node:e,extractValue:t,layoutCss:r,renderChild:n,lookupEventHandler:o,registerComponentApi:i,layoutContext:a})=>{var l,s;return a!=null&&a._insideModalFrame?C.jsx(N3,{style:r,fullScreen:t((l=e.props)==null?void 0:l.fullScreen),title:t((s=e.props)==null?void 0:s.title),closeButtonVisible:t.asOptionalBoolean(e.props.closeButtonVisible),children:n(e.children,{type:"Stack"})}):C.jsx(tte,{isInitiallyOpen:e.when!==void 0,registerComponentApi:i,onClose:o("close"),onOpen:o("open"),renderDialog:({openParams:u,ref:c})=>C.jsx(Oi,{node:e,renderChild:n,layoutContext:{_insideModalFrame:!0},contextVars:{$param:u==null?void 0:u[0],$params:u}})})}),lH={themeVars:`'{"padding-NoResult": "var(--xmlui-padding-NoResult)", "paddingHorizontal-NoResult": "var(--xmlui-paddingHorizontal-NoResult, var(--xmlui-padding-NoResult))", "paddingVertical-NoResult": "var(--xmlui-paddingVertical-NoResult, var(--xmlui-padding-NoResult))", "paddingLeft-NoResult": "var(--xmlui-paddingLeft-NoResult, var(--xmlui-paddingHorizontal-NoResult, var(--xmlui-padding-NoResult)))", "paddingRight-NoResult": "var(--xmlui-paddingRight-NoResult, var(--xmlui-paddingHorizontal-NoResult, var(--xmlui-padding-NoResult)))", "paddingTop-NoResult": "var(--xmlui-paddingTop-NoResult, var(--xmlui-paddingVertical-NoResult, var(--xmlui-padding-NoResult)))", "paddingBottom-NoResult": "var(--xmlui-paddingBottom-NoResult, var(--xmlui-paddingVertical-NoResult, var(--xmlui-padding-NoResult)))", "border-NoResult": "var(--xmlui-border-NoResult)", "borderHorizontal-NoResult": "var(--xmlui-borderHorizontal-NoResult, var(--xmlui-border-NoResult))", "borderVertical-NoResult": "var(--xmlui-borderVertical-NoResult, var(--xmlui-border-NoResult))", "borderLeft-NoResult": "var(--xmlui-borderLeft-NoResult, var(--xmlui-borderHorizontal-NoResult, var(--xmlui-border-NoResult)))", "borderRight-NoResult": "var(--xmlui-borderRight-NoResult, var(--xmlui-borderHorizontal-NoResult, var(--xmlui-border-NoResult)))", "borderTop-NoResult": "var(--xmlui-borderTop-NoResult, var(--xmlui-borderVertical-NoResult, var(--xmlui-border-NoResult)))", "borderBottom-NoResult": "var(--xmlui-borderBottom-NoResult, var(--xmlui-borderVertical-NoResult, var(--xmlui-border-NoResult)))", "borderWidth-NoResult": "var(--xmlui-borderWidth-NoResult)", "borderHorizontalWidth-NoResult": "var(--xmlui-borderHorizontalWidth-NoResult, var(--xmlui-borderWidth-NoResult))", "borderLeftWidth-NoResult": "var(--xmlui-borderLeftWidth-NoResult, var(--xmlui-borderHorizontalWidth-NoResult, var(--xmlui-borderWidth-NoResult)))", "borderRightWidth-NoResult": "var(--xmlui-borderRightWidth-NoResult, var(--xmlui-borderHorizontalWidth-NoResult, var(--xmlui-borderWidth-NoResult)))", "borderVerticalWidth-NoResult": "var(--xmlui-borderVerticalWidth-NoResult, var(--xmlui-borderWidth-NoResult))", "borderTopWidth-NoResult": "var(--xmlui-borderTopWidth-NoResult, var(--xmlui-borderVerticalWidth-NoResult, var(--xmlui-borderWidth-NoResult)))", "borderBottomWidth-NoResult": "var(--xmlui-borderBottomWidth-NoResult, var(--xmlui-borderVerticalWidth-NoResult, var(--xmlui-borderWidth-NoResult)))", "borderStyle-NoResult": "var(--xmlui-borderStyle-NoResult)", "borderHorizontalStyle-NoResult": "var(--xmlui-borderHorizontalStyle-NoResult, var(--xmlui-borderStyle-NoResult))", "borderLeftStyle-NoResult": "var(--xmlui-borderLeftStyle-NoResult, var(--xmlui-borderHorizontalStyle-NoResult, var(--xmlui-borderStyle-NoResult)))", "borderRightStyle-NoResult": "var(--xmlui-borderRightStyle-NoResult, var(--xmlui-borderHorizontalStyle-NoResult, var(--xmlui-borderStyle-NoResult)))", "borderVerticalStyle-NoResult": "var(--xmlui-borderVerticalStyle-NoResult, var(--xmlui-borderStyle-NoResult))", "borderTopStyle-NoResult": "var(--xmlui-borderTopStyle-NoResult, var(--xmlui-borderVerticalStyle-NoResult, var(--xmlui-borderStyle-NoResult)))", "borderBottomStyle-NoResult": "var(--xmlui-borderBottomStyle-NoResult, var(--xmlui-borderVerticalStyle-NoResult, var(--xmlui-borderStyle-NoResult)))", "borderColor-NoResult": "var(--xmlui-borderColor-NoResult)", "borderHorizontalColor-NoResult": "var(--xmlui-borderHorizontalColor-NoResult, var(--xmlui-borderColor-NoResult))", "borderLeftColor-NoResult": "var(--xmlui-borderLeftColor-NoResult, var(--xmlui-borderHorizontalColor-NoResult, var(--xmlui-borderColor-NoResult)))", "borderRightColor-NoResult": "var(--xmlui-borderRightColor-NoResult, var(--xmlui-borderHorizontalColor-NoResult, var(--xmlui-borderColor-NoResult)))", "borderVerticalColor-NoResult": "var(--xmlui-borderVerticalColor-NoResult, var(--xmlui-borderColor-NoResult))", "borderTopColor-NoResult": "var(--xmlui-borderTopColor-NoResult, var(--xmlui-borderVerticalColor-NoResult, var(--xmlui-borderColor-NoResult)))", "borderBottomColor-NoResult": "var(--xmlui-borderBottomColor-NoResult, var(--xmlui-borderVerticalColor-NoResult, var(--xmlui-borderColor-NoResult)))", "borderStartStartRadius-NoResult": "var(--xmlui-borderStartStartRadius-NoResult, var(--xmlui-borderRadius-NoResult))", "borderStartEndRadius-NoResult": "var(--xmlui-borderStartEndRadius-NoResult, var(--xmlui-borderRadius-NoResult))", "borderEndStartRadius-NoResult": "var(--xmlui-borderEndStartRadius-NoResult, var(--xmlui-borderRadius-NoResult))", "borderEndEndRadius-NoResult": "var(--xmlui-borderEndEndRadius-NoResult, var(--xmlui-borderRadius-NoResult))", "gap-icon-NoResult": "var(--xmlui-gap-icon-NoResult)", "size-icon-NoResult": "var(--xmlui-size-icon-NoResult)"}'`,wrapper:"_wrapper_1vx80_13",icon:"_icon_1vx80_45"},$3={hideIcon:!1,icon:"noresult"},ZQe=m.forwardRef(function({label:t,icon:r=$3.icon,hideIcon:n=$3.hideIcon,style:o},i){return C.jsxs("div",{className:lH.wrapper,style:o,ref:i,children:[!n&&C.jsx(xt,{name:r,className:lH.icon}),t]})}),mw="NoResult",ite={status:"stable",description:"`NoResult` displays a visual indication that a query or search returned nothing.",props:{label:io(),icon:{description:"This property defines the icon to display with the component.",valueType:"string",defaultValue:$3.icon},hideIcon:{description:"This boolean property indicates if the icon should be hidden.",valueType:"boolean",defaultValue:$3.hideIcon}},themeVars:Ze(lH.themeVars),defaultThemeVars:{[`border-${mw}`]:"0px solid $borderColor",[`paddingVertical-${mw}`]:"$space-2",[`gap-icon-${mw}`]:"$space-2",[`size-icon-${mw}`]:"$space-8",light:{},dark:{}}},JQe=we(mw,ite,({node:e,extractValue:t,layoutCss:r})=>C.jsx(ZQe,{label:t.asDisplayText(e.props.label||e.children||"No results found"),icon:e.props.icon,hideIcon:t.asOptionalBoolean(e.props.hideIcon),style:r})),sH={themeVars:`'{"backgroundColor-FileUploadDropZone": "var(--xmlui-backgroundColor-FileUploadDropZone)", "textColor-FileUploadDropZone": "var(--xmlui-textColor-FileUploadDropZone)", "backgroundColor-dropping-FileUploadDropZone": "var(--xmlui-backgroundColor-dropping-FileUploadDropZone)", "opacity-dropping-FileUploadDropZone": "var(--xmlui-opacity-dropping-FileUploadDropZone)"}'`,wrapper:"_wrapper_15hp1_13",dropPlaceholder:"_dropPlaceholder_15hp1_21"};var eZe=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function pw(e,t){var r=tZe(e);if(typeof r.path!="string"){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof t=="string"?t:typeof n=="string"&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function tZe(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var n=t.split(".").pop().toLowerCase(),o=eZe.get(n);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var rZe=[".DS_Store","Thumbs.db"];function nZe(e){return nb(this,void 0,void 0,function(){return ob(this,function(t){return D3(e)&&oZe(e.dataTransfer)?[2,sZe(e.dataTransfer,e.type)]:iZe(e)?[2,aZe(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,lZe(e)]:[2,[]]})})}function oZe(e){return D3(e)}function iZe(e){return D3(e)&&D3(e.target)}function D3(e){return typeof e=="object"&&e!==null}function aZe(e){return uH(e.target.files).map(function(t){return pw(t)})}function lZe(e){return nb(this,void 0,void 0,function(){var t;return ob(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(n){return n.getFile()}))];case 1:return t=r.sent(),[2,t.map(function(n){return pw(n)})]}})})}function sZe(e,t){return nb(this,void 0,void 0,function(){var r,n;return ob(this,function(o){switch(o.label){case 0:return e.items?(r=uH(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map(uZe))]):[3,2];case 1:return n=o.sent(),[2,ate(lte(n))];case 2:return[2,ate(uH(e.files).map(function(i){return pw(i)}))]}})})}function ate(e){return e.filter(function(t){return rZe.indexOf(t.name)===-1})}function uH(e){if(e===null)return[];for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function uZe(e){if(typeof e.webkitGetAsEntry!="function")return ste(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?ute(t):ste(e)}function lte(e){return e.reduce(function(t,r){return ib(ib([],DX(t),!1),DX(Array.isArray(r)?lte(r):[r]),!1)},[])}function ste(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var r=pw(t);return Promise.resolve(r)}function cZe(e){return nb(this,void 0,void 0,function(){return ob(this,function(t){return[2,e.isDirectory?ute(e):dZe(e)]})})}function ute(e){var t=e.createReader();return new Promise(function(r,n){var o=[];function i(){var a=this;t.readEntries(function(l){return nb(a,void 0,void 0,function(){var s,u,c;return ob(this,function(d){switch(d.label){case 0:if(l.length)return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return s=d.sent(),r(s),[3,4];case 3:return u=d.sent(),n(u),[3,4];case 4:return[3,6];case 5:c=Promise.all(l.map(cZe)),o.push(c),i(),d.label=6;case 6:return[2]}})})},function(l){n(l)})}i()})}function dZe(e){return nb(this,void 0,void 0,function(){return ob(this,function(t){return[2,new Promise(function(r,n){e.file(function(o){var i=pw(o,e.fullPath);r(i)},function(o){n(o)})})]})})}var fZe=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(",");if(r.length===0)return!0;var n=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return r.some(function(a){var l=a.trim().toLowerCase();return l.charAt(0)==="."?n.toLowerCase().endsWith(l):l.endsWith("/*")?i===l.replace(/\/.*$/,""):o===l})}return!0};function cte(e){return hZe(e)||pZe(e)||pte(e)||mZe()}function mZe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
226
226
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pZe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hZe(e){if(Array.isArray(e))return cH(e)}function dte(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function fte(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dte(Object(r),!0).forEach(function(n){mte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dte(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mte(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hw(e,t){return bZe(e)||vZe(e,t)||pte(e,t)||gZe()}function gZe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
227
227
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pte(e,t){if(e){if(typeof e=="string")return cH(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cH(e,t)}}function cH(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function vZe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,i=!1,a,l;try{for(r=r.call(e);!(o=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));o=!0);}catch(s){i=!0,l=s}finally{try{!o&&r.return!=null&&r.return()}finally{if(i)throw l}}return n}}function bZe(e){if(Array.isArray(e))return e}var hte="file-invalid-type",gte="file-too-large",vte="file-too-small",bte="too-many-files",xZe={FileInvalidType:hte,FileTooLarge:gte,FileTooSmall:vte,TooManyFiles:bte},yZe=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var r=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:hte,message:"File type must be ".concat(r)}},xte=function(t){return{code:gte,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},yte=function(t){return{code:vte,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},wZe={code:bte,message:"Too many files"};function wte(e,t){var r=e.type==="application/x-moz-file"||fZe(e,t);return[r,r?null:yZe(t)]}function Cte(e,t,r){if(Th(e.size))if(Th(t)&&Th(r)){if(e.size>r)return[!1,xte(r)];if(e.size<t)return[!1,yte(t)]}else{if(Th(t)&&e.size<t)return[!1,yte(t)];if(Th(r)&&e.size>r)return[!1,xte(r)]}return[!0,null]}function Th(e){return e!=null}function CZe(e){var t=e.files,r=e.accept,n=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,l=e.validator;return!i&&t.length>1||i&&a>=1&&t.length>a?!1:t.every(function(s){var u=wte(s,r),c=hw(u,1),d=c[0],f=Cte(s,n,o),p=hw(f,1),h=p[0],v=l?l(s):null;return d&&h&&!v})}function B3(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function j3(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function kte(e){e.preventDefault()}function kZe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function _Ze(e){return e.indexOf("Edge/")!==-1}function TZe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return kZe(e)||_Ze(e)}function kc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return t.some(function(l){return!B3(n)&&l&&l.apply(void 0,[n].concat(i)),B3(n)})}}function SZe(){return"showOpenFilePicker"in window}function EZe(e){if(Th(e)){var t=Object.entries(e).filter(function(r){var n=hw(r,2),o=n[0],i=n[1],a=!0;return _te(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(i)||!i.every(Tte))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(r,n){var o=hw(n,2),i=o[0],a=o[1];return fte(fte({},r),{},mte({},i,a))},{});return[{description:"Files",accept:t}]}return e}function AZe(e){if(Th(e))return Object.entries(e).reduce(function(t,r){var n=hw(r,2),o=n[0],i=n[1];return[].concat(cte(t),[o],cte(i))},[]).filter(function(t){return _te(t)||Tte(t)}).join(",")}function OZe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function IZe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function _te(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function Tte(e){return/^.*\.[\w]+$/.test(e)}var RZe=["children"],PZe=["open"],LZe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],HZe=["refKey","onChange","onClick"];function NZe(e){return BZe(e)||DZe(e)||Ste(e)||$Ze()}function $Ze(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
228
228
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DZe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BZe(e){if(Array.isArray(e))return fH(e)}function dH(e,t){return zZe(e)||MZe(e,t)||Ste(e,t)||jZe()}function jZe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
@@ -542,7 +542,7 @@ License: MIT
|
|
|
542
542
|
`&&(L=`
|
|
543
543
|
`);var V=0,N=!1;this.parse=function(Y,q,M){if(typeof Y!="string")throw new Error("Input must be a string");var K=Y.length,ee=I.length,ae=L.length,oe=P.length,ue=A(H),le=[],pe=[],fe=[],J=V=0;if(!Y)return Ee();if(W||W!==!1&&Y.indexOf(z)===-1){for(var X=Y.split(L),te=0;te<X.length;te++){if(fe=X[te],V+=fe.length,te!==X.length-1)V+=L.length;else if(M)return Ee();if(!P||fe.substring(0,oe)!==P){if(ue){if(le=[],Ne(fe.split(I)),je(),N)return Ee()}else Ne(fe.split(I));if(j&&j<=te)return le=le.slice(0,j),Ee(!0)}}return Ee()}for(var ie=Y.indexOf(I,V),de=Y.indexOf(L,V),be=new RegExp(b(F)+b(z),"g"),xe=Y.indexOf(z,V);;)if(Y[V]===z)for(xe=V,V++;;){if((xe=Y.indexOf(z,xe+1))===-1)return M||pe.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:le.length,index:V}),_e();if(xe===K-1)return _e(Y.substring(V,xe).replace(be,z));if(z===F&&Y[xe+1]===F)xe++;else if(z===F||xe===0||Y[xe-1]!==F){ie!==-1&&ie<xe+1&&(ie=Y.indexOf(I,xe+1));var Ie=Se((de=de!==-1&&de<xe+1?Y.indexOf(L,xe+1):de)===-1?ie:Math.min(ie,de));if(Y.substr(xe+1+Ie,ee)===I){fe.push(Y.substring(V,xe).replace(be,z)),Y[V=xe+1+Ie+ee]!==z&&(xe=Y.indexOf(z,V)),ie=Y.indexOf(I,V),de=Y.indexOf(L,V);break}if(Ie=Se(de),Y.substring(xe+1+Ie,xe+1+Ie+ae)===L){if(fe.push(Y.substring(V,xe).replace(be,z)),Ve(xe+1+Ie+ae),ie=Y.indexOf(I,V),xe=Y.indexOf(z,V),ue&&(je(),N))return Ee();if(j&&le.length>=j)return Ee(!0);break}pe.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:le.length,index:V}),xe++}}else if(P&&fe.length===0&&Y.substring(V,V+oe)===P){if(de===-1)return Ee();V=de+ae,de=Y.indexOf(L,V),ie=Y.indexOf(I,V)}else if(ie!==-1&&(ie<de||de===-1))fe.push(Y.substring(V,ie)),V=ie+ee,ie=Y.indexOf(I,V);else{if(de===-1)break;if(fe.push(Y.substring(V,de)),Ve(de+ae),ue&&(je(),N))return Ee();if(j&&le.length>=j)return Ee(!0)}return _e();function Ne(Ce){le.push(Ce),J=V}function Se(Ce){var Te=0;return Te=Ce!==-1&&(Ce=Y.substring(xe+1,Ce))&&Ce.trim()===""?Ce.length:Te}function _e(Ce){return M||(Ce===void 0&&(Ce=Y.substring(V)),fe.push(Ce),V=K,Ne(fe),ue&&je()),Ee()}function Ve(Ce){V=Ce,Ne(fe),fe=[],de=Y.indexOf(L,V)}function Ee(Ce){if(O.header&&!q&&le.length&&!G){var Te=le[0],He={},st=new Set(Te);let ut=!1;for(let It=0;It<Te.length;It++){let sr=Te[It];if(He[sr=A(O.transformHeader)?O.transformHeader(sr,It):sr]){let tr,hn=He[sr];for(;tr=sr+"_"+hn,hn++,st.has(tr););st.add(tr),Te[It]=tr,He[sr]++,ut=!0,(B=B===null?{}:B)[tr]=sr}else He[sr]=1,Te[It]=sr;st.add(sr)}ut&&console.warn("Duplicate headers found and renamed."),G=!0}return{data:le,errors:pe,meta:{delimiter:I,linebreak:L,aborted:N,truncated:!!Ce,cursor:J+(q||0),renamedHeaders:B}}}function je(){H(Ee()),le=[],pe=[]}},this.abort=function(){N=!0},this.getCharIndex=function(){return V}}function w(O){var I=O.data,L=l[I.workerId],P=!1;if(I.error)L.userError(I.error,I.file);else if(I.results&&I.results.data){var H={abort:function(){P=!0,k(I.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:E,resume:E};if(A(L.userStep)){for(var j=0;j<I.results.data.length&&(L.userStep({data:I.results.data[j],errors:I.results.errors,meta:I.results.meta},H),!P);j++);delete I.results}else A(L.userChunk)&&(L.userChunk(I.results,H,I.file),delete I.results)}I.finished&&!P&&k(I.workerId,I.results)}function k(O,I){var L=l[O];A(L.userComplete)&&L.userComplete(I),L.terminate(),delete l[O]}function E(){throw new Error("Not implemented.")}function _(O){if(typeof O!="object"||O===null)return O;var I,L=Array.isArray(O)?[]:{};for(I in O)L[I]=_(O[I]);return L}function S(O,I){return function(){O.apply(I,arguments)}}function A(O){return typeof O=="function"}return u.parse=function(O,I){var L=(I=I||{}).dynamicTyping||!1;if(A(L)&&(I.dynamicTypingFunction=L,L={}),I.dynamicTyping=L,I.transform=!!A(I.transform)&&I.transform,!I.worker||!u.WORKERS_SUPPORTED)return L=null,u.NODE_STREAM_INPUT,typeof O=="string"?(O=(P=>P.charCodeAt(0)!==65279?P:P.slice(1))(O),L=new(I.download?d:p)(I)):O.readable===!0&&A(O.read)&&A(O.on)?L=new h(I):(n.File&&O instanceof File||O instanceof Object)&&(L=new f(I)),L.stream(O);(L=(()=>{var P;return!!u.WORKERS_SUPPORTED&&(P=(()=>{var H=n.URL||n.webkitURL||null,j=r.toString();return u.BLOB_URL||(u.BLOB_URL=H.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",j,")();"],{type:"text/javascript"})))})(),(P=new n.Worker(P)).onmessage=w,P.id=s++,l[P.id]=P)})()).userStep=I.step,L.userChunk=I.chunk,L.userComplete=I.complete,L.userError=I.error,I.step=A(I.step),I.chunk=A(I.chunk),I.complete=A(I.complete),I.error=A(I.error),delete I.worker,L.postMessage({input:O,config:I,workerId:L.id})},u.unparse=function(O,I){var L=!1,P=!0,H=",",j=`\r
|
|
544
544
|
`,W='"',B=W+W,G=!1,z=null,F=!1,V=((()=>{if(typeof I=="object"){if(typeof I.delimiter!="string"||u.BAD_DELIMITERS.filter(function(q){return I.delimiter.indexOf(q)!==-1}).length||(H=I.delimiter),typeof I.quotes!="boolean"&&typeof I.quotes!="function"&&!Array.isArray(I.quotes)||(L=I.quotes),typeof I.skipEmptyLines!="boolean"&&typeof I.skipEmptyLines!="string"||(G=I.skipEmptyLines),typeof I.newline=="string"&&(j=I.newline),typeof I.quoteChar=="string"&&(W=I.quoteChar),typeof I.header=="boolean"&&(P=I.header),Array.isArray(I.columns)){if(I.columns.length===0)throw new Error("Option columns is empty");z=I.columns}I.escapeChar!==void 0&&(B=I.escapeChar+W),I.escapeFormulae instanceof RegExp?F=I.escapeFormulae:typeof I.escapeFormulae=="boolean"&&I.escapeFormulae&&(F=/^[=+\-@\t\r].*$/)}})(),new RegExp(b(W),"g"));if(typeof O=="string"&&(O=JSON.parse(O)),Array.isArray(O)){if(!O.length||Array.isArray(O[0]))return N(null,O,G);if(typeof O[0]=="object")return N(z||Object.keys(O[0]),O,G)}else if(typeof O=="object")return typeof O.data=="string"&&(O.data=JSON.parse(O.data)),Array.isArray(O.data)&&(O.fields||(O.fields=O.meta&&O.meta.fields||z),O.fields||(O.fields=Array.isArray(O.data[0])?O.fields:typeof O.data[0]=="object"?Object.keys(O.data[0]):[]),Array.isArray(O.data[0])||typeof O.data[0]=="object"||(O.data=[O.data])),N(O.fields||[],O.data||[],G);throw new Error("Unable to serialize unrecognized input");function N(q,M,K){var ee="",ae=(typeof q=="string"&&(q=JSON.parse(q)),typeof M=="string"&&(M=JSON.parse(M)),Array.isArray(q)&&0<q.length),oe=!Array.isArray(M[0]);if(ae&&P){for(var ue=0;ue<q.length;ue++)0<ue&&(ee+=H),ee+=Y(q[ue],ue);0<M.length&&(ee+=j)}for(var le=0;le<M.length;le++){var pe=(ae?q:M[le]).length,fe=!1,J=ae?Object.keys(M[le]).length===0:M[le].length===0;if(K&&!ae&&(fe=K==="greedy"?M[le].join("").trim()==="":M[le].length===1&&M[le][0].length===0),K==="greedy"&&ae){for(var X=[],te=0;te<pe;te++){var ie=oe?q[te]:te;X.push(M[le][ie])}fe=X.join("").trim()===""}if(!fe){for(var de=0;de<pe;de++){0<de&&!J&&(ee+=H);var be=ae&&oe?q[de]:de;ee+=Y(M[le][be],de)}le<M.length-1&&(!K||0<pe&&!J)&&(ee+=j)}}return ee}function Y(q,M){var K,ee;return q==null?"":q.constructor===Date?JSON.stringify(q).slice(1,25):(ee=!1,F&&typeof q=="string"&&F.test(q)&&(q="'"+q,ee=!0),K=q.toString().replace(V,B),(ee=ee||L===!0||typeof L=="function"&&L(q,M)||Array.isArray(L)&&L[M]||((ae,oe)=>{for(var ue=0;ue<oe.length;ue++)if(-1<ae.indexOf(oe[ue]))return!0;return!1})(K,u.BAD_DELIMITERS)||-1<K.indexOf(H)||K.charAt(0)===" "||K.charAt(K.length-1)===" ")?W+K+W:K)}},u.RECORD_SEP="",u.UNIT_SEP="",u.BYTE_ORDER_MARK="\uFEFF",u.BAD_DELIMITERS=["\r",`
|
|
545
|
-
`,'"',u.BYTE_ORDER_MARK],u.WORKERS_SUPPORTED=!i&&!!n.Worker,u.NODE_STREAM_INPUT=1,u.LocalChunkSize=10485760,u.RemoteChunkSize=5242880,u.DefaultDelimiter=",",u.Parser=y,u.ParserHandle=v,u.NetworkStreamer=d,u.FileStreamer=f,u.StringStreamer=p,u.ReadableStreamStreamer=h,n.jQuery&&((o=n.jQuery).fn.parse=function(O){var I=O.config||{},L=[];return this.each(function(j){if(!(o(this).prop("tagName").toUpperCase()==="INPUT"&&o(this).attr("type").toLowerCase()==="file"&&n.FileReader)||!this.files||this.files.length===0)return!0;for(var W=0;W<this.files.length;W++)L.push({file:this.files[W],inputElem:this,instanceConfig:o.extend({},I)})}),P(),this;function P(){if(L.length===0)A(O.complete)&&O.complete();else{var j,W,B,G,z=L[0];if(A(O.before)){var F=O.before(z.file,z.inputElem);if(typeof F=="object"){if(F.action==="abort")return j="AbortError",W=z.file,B=z.inputElem,G=F.reason,void(A(O.error)&&O.error({name:j},W,B,G));if(F.action==="skip")return void H();typeof F.config=="object"&&(z.instanceConfig=o.extend(z.instanceConfig,F.config))}else if(F==="skip")return void H()}var V=z.instanceConfig.complete;z.instanceConfig.complete=function(N){A(V)&&V(N,z.file,z.inputElem),H()},u.parse(z.file,z.instanceConfig)}}function H(){L.splice(0,1),P()}}),a&&(n.onmessage=function(O){O=O.data,u.WORKER_ID===void 0&&O&&(u.WORKER_ID=O.workerId),typeof O.input=="string"?n.postMessage({workerId:u.WORKER_ID,results:u.parse(O.input,O.config),finished:!0}):(n.File&&O.input instanceof File||O.input instanceof Object)&&(O=u.parse(O.input,O.config))&&n.postMessage({workerId:u.WORKER_ID,results:O,finished:!0})}),(d.prototype=Object.create(c.prototype)).constructor=d,(f.prototype=Object.create(c.prototype)).constructor=f,(p.prototype=Object.create(p.prototype)).constructor=p,(h.prototype=Object.create(c.prototype)).constructor=h,u})})(Npe);var iSt=Npe.exports;const aSt=$i(iSt);function lSt({state:e,loader:t,loaderFn:r,queryId:n,registerComponentApi:o,pollIntervalInSeconds:i,onLoaded:a,loaderInProgressChanged:l,loaderIsRefetchingChanged:s,loaderLoaded:u,loaderError:c,transformResult:d,structuralSharing:f=!0}){const{uid:p}=t,h=Eo(),v=m.useMemo(()=>n||[p,$t(e,t.props,h)],[h,t.props,n,e,p]),b=m.useRef(v),y=m.useCallback(Y=>{let q;const M=t.props.prevPageSelector;if(M&&(q=$t({$response:Y.filter(K=>!K._optimisticValue)},M.startsWith("{")?M:`{$response.${M}}`)),!!q)return{prevPageParam:q}},[t.props.prevPageSelector]),w=m.useCallback(Y=>{let q;const M=t.props.nextPageSelector;if(M&&(q=$t({$response:Y},M.startsWith("{")?M:`{$response.${M}}`)),!!q)return{nextPageParam:q}},[t.props.nextPageSelector]),{data:k,status:E,error:_,hasNextPage:S,isFetchingNextPage:A,hasPreviousPage:O,isFetchingPreviousPage:I,isFetching:L,refetch:P,fetchPreviousPage:H,fetchNextPage:j,isRefetching:W}=HRe({queryKey:v,queryFn:m.useCallback(async({signal:Y,pageParam:q})=>await r(Y,q),[r]),structuralSharing:f,select:m.useCallback(Y=>{let q=[];Y&&(q=Y.pages.flatMap(K=>K));const M=t.props.resultSelector;return M&&(q=$t({$response:q},M.startsWith("{")?M:`{$response.${M}}`)),d?d(q):q},[t.props.resultSelector,d]),getPreviousPageParam:t.props.prevPageSelector===void 0?void 0:y,getNextPageParam:t.props.nextPageSelector===void 0?void 0:w});m.useEffect(()=>{const Y=b.current;return()=>{var q,M;(q=h.queryClient)==null||q.cancelQueries(Y),(M=h.queryClient)==null||M.setQueryData(Y,K=>K&&fl(K,ee=>{ee.pages=ee.pages.length?[ee.pages[ee.pages.length-1]]:[],ee.pageParams=[]})),u(void 0,void 0)}},[h.queryClient,u,p]);const B=vd(k),G=vd(_);m.useLayoutEffect(()=>{l(L)},[L,l]),m.useLayoutEffect(()=>{s(W)},[W,s]);const z=m.useMemo(()=>({hasPrevPage:O,isFetchingPrevPage:I,hasNextPage:S,isFetchingNextPage:A}),[S,O,A,I]),F=vd(z);m.useLayoutEffect(()=>{E==="success"&&(B!==k||F!==z)?(u(k,z),setTimeout(()=>{a==null||a(k,W)},0)):E==="error"&&G!==_&&c(_)},[k,_,c,u,a,z,B,G,F,E]),m.useEffect(()=>{let Y;return i&&(Y=setInterval(()=>{P()},i*1e3)),()=>{Y&&clearInterval(Y)}},[i,P]);const V=m.useCallback(()=>H(),[H]),N=m.useCallback(()=>j(),[j]);return m.useEffect(()=>{o({fetchPrevPage:V,fetchNextPage:N,refetch:async Y=>{P(Y)},update:async Y=>{var oe,ue;const q=(oe=h.queryClient)==null?void 0:oe.getQueryData(n);if(!q)return;const M=q.pages.flatMap(le=>le),K=Tv(q),ee=[];for(let le=0;le<K.pages.length;le++){const pe=K.pages[le];await Y(pe),ee.push(...pe)}if(ee.length!==M.length)throw new Error("Use this method for update only. If you want to add or delete, call the addItem/deleteItem method.");const ae=Sv(K);(ue=h.queryClient)==null||ue.setQueryData(n,ae)},addItem:async(Y,q)=>{var ae,oe;const M=(ae=h.queryClient)==null?void 0:ae.getQueryData(n),K=Tv(M);if(q===void 0)K.pages[K.pages.length-1].push(Y);else throw new Error("not implemented");const ee=Sv(K);(oe=h.queryClient)==null||oe.setQueryData(n,ee)},getItems:()=>k,deleteItem:async Y=>{throw new Error("not implemented")}})},[h.queryClient,V,k,t.uid,n,v,P,o,N]),null}function sSt({loader:e,state:t,registerComponentApi:r,onLoaded:n,onError:o,loaderInProgressChanged:i,loaderIsRefetchingChanged:a,loaderLoaded:l,loaderError:s,transformResult:u,structuralSharing:c=!0}){const d=Eo(),f=$t(t,e.props.url,d),p=m.useMemo(()=>$t(t,e.props.queryParams,d),[d,e.props.queryParams,t]),h=qo(p),v=m.useMemo(()=>$t(t,e.props.body,d),[d,e.props.body,t]),b=qo(v),y=m.useMemo(()=>$t(t,e.props.rawBody,d),[d,e.props.rawBody,t]),w=qo(y),E=m.useMemo(()=>e.props.prevPageSelector&&e.props.nextPageSelector?"BIDIRECTIONAL":e.props.prevPageSelector?"BACKWARD":e.props.nextPageSelector?"FORWARD":null,[e.props.nextPageSelector,e.props.prevPageSelector])!==null,{apiInstance:_}=O2(),S=m.useMemo(()=>new zw(d,_),[_,d]),A=m.useCallback(async(B,G)=>{if(e.props.dataType==="csv")try{const z=$t(t,e.props.method,d)||"GET",F=$t(t,e.props.headers,d)||{},V={method:z,headers:F};B&&(V.signal=B),w&&(V.body=w);const N=await fetch(f,V);if(!N.ok)throw new Error(`Failed to fetch CSV: ${N.status} ${N.statusText}`);const Y=await N.text();return new Promise((q,M)=>{aSt.parse(Y,{header:!0,skipEmptyLines:!0,complete:K=>{if(K.errors&&K.errors.length){console.warn("CSV parsing warnings:",K.errors);const ee=K.errors.filter(()=>!0);if(ee.length){M(new Error(`CSV parsing error: ${ee[0].message}`));return}}q(K.data)},error:K=>{M(K)}})})}catch(z){throw console.error("Error loading CSV:",z),z}else if(e.props.dataType==="sql")try{let z="",F=[];if(b&&typeof b=="object")z=b.sql||"",F=b.params||[];else if(w)try{const ae=JSON.parse(w);z=ae.sql||"",F=ae.params||[]}catch{z=w}if(!z)throw new Error("SQL query is required for SQL data type");const V=f||"/query",N=$t(t,e.props.method,d)||"POST",Y=$t(t,e.props.headers,d)||{"Content-Type":"application/json"},q=JSON.stringify({sql:z,params:F}),M={method:N,headers:Y,body:q};B&&(M.signal=B);const K=await fetch(V,M);if(!K.ok)throw console.error("[SQL DataLoader] Failed response:",K.status,K.statusText),new Error(`Failed to execute SQL query: ${K.status} ${K.statusText}`);const ee=await K.json();if(ee&&typeof ee=="object"){if(ee.rows)return ee.rows;if(ee.results)return ee.results}return ee}catch(z){throw console.error("Error executing SQL query:",z),z}else return await S.execute({abortSignal:B,operation:e.props,params:{...t,$pageParams:G},resolveBindingExpressions:!0})},[S,e.props,t,f,b,w,d]),O=m.useMemo(()=>new Rpe(f,h,d==null?void 0:d.appGlobals.apiUrl,b,w).asKey(),[d==null?void 0:d.appGlobals.apiUrl,h,f,b,w]),I=m.useRef({state:t,appContext:d});I.current={state:t,appContext:d};const L=m.useRef(void 0),P=m.useCallback(B=>{i(B);const G=$t(I.current.state,e.props.inProgressNotificationMessage,I.current.appContext);B&&G?(L.current&&go.dismiss(L.current),L.current=go.loading(G)):L.current&&go.dismiss(L.current)},[e.props.inProgressNotificationMessage,i,e.props.dataType]),H=m.useCallback((B,G)=>{l(B,G);const z=$t({...I.current.state,$result:B},e.props.completedNotificationMessage,I.current.appContext);z?go.success(z,{id:L.current}):L.current&&go.dismiss(L.current)},[e.props.completedNotificationMessage,l,e.props.dataType]),j=m.useCallback(async B=>{if(s(B),o&&await o(B)===!1){L.current&&go.dismiss(L.current);return}const G=$t({...I.current.state,$error:B==null?void 0:B.toString()},e.props.errorNotificationMessage,I.current.appContext);G?go.error(G,{id:L.current}):L.current&&go.dismiss(L.current),G===void 0&&d.signError(B)},[d,e.props.errorNotificationMessage,s,o]),W=$t(t,e.props.pollIntervalInSeconds,d);return E?C.jsx(lSt,{queryId:O,state:t,loader:e,loaderInProgressChanged:P,loaderIsRefetchingChanged:a,loaderLoaded:H,loaderError:j,loaderFn:A,registerComponentApi:r,pollIntervalInSeconds:W,onLoaded:n,transformResult:u,structuralSharing:c},O==null?void 0:O.join("")):C.jsx(U6,{queryId:O,state:t,loader:e,loaderInProgressChanged:P,loaderIsRefetchingChanged:a,loaderLoaded:H,loaderError:j,loaderFn:A,pollIntervalInSeconds:W,registerComponentApi:r,onLoaded:n,transformResult:u,structuralSharing:c},O==null?void 0:O.join(""))}const uSt={status:"stable",description:"This component manages data fetching from a web API",props:{method:re("The HTTP method to use"),url:re("The URL to fetch data from"),rawBody:re("The raw body of the request"),body:re("The body of the request to be sent as JSON"),queryParams:re("Query parameters to send with the request"),headers:re("Headers to send with the request"),pollIntervalInSeconds:re("The interval in seconds to poll the API for refreshing data"),resultSelector:re("An expression to extract the result from the response"),prevPageSelector:re("An expression to extract the previous page parameter from the response"),nextPageSelector:re("An expression to extract the next page parameter from the response"),inProgressNotificationMessage:re("The message to show when the loader is in progress"),completedNotificationMessage:re("The message to show when the loader completes"),errorNotificationMessage:re("The message to show when an error occurs"),transformResult:re("Function for transforming the datasource result"),dataType:re("Type of data to fetch (default: json, or csv, or sql)"),structuralSharing:re("Whether to use structural sharing for the data")},events:{loaded:re("Event to trigger when the data is loaded"),error:re("This event fires when an error occurs while fetching data")}};function cSt(e){const{indexing:t}=ZE();return t?null:C.jsx(sSt,{...e})}const dSt=rT("DataLoader",({loader:e,state:t,loaderLoaded:r,loaderInProgressChanged:n,loaderIsRefetchingChanged:o,loaderError:i,registerComponentApi:a,lookupAction:l,lookupSyncCallback:s,extractValue:u})=>{var c,d,f;if(!((c=e.props)!=null&&c.url)||!e.props.url.trim())throw new Error("You must specify a non-empty (not whitespace-only) 'url' property for DataSource");return C.jsx(cSt,{loader:e,state:t,loaderInProgressChanged:n,loaderIsRefetchingChanged:o,loaderLoaded:r,loaderError:i,registerComponentApi:a,transformResult:s(e.props.transformResult),onLoaded:l((d=e.events)==null?void 0:d.loaded,{eventName:"loaded"}),onError:l((f=e.events)==null?void 0:f.error,{eventName:"error"}),structuralSharing:u.asOptionalBoolean(e.props.structuralSharing)})},uSt),Za="DatePicker",$pe={status:"experimental",description:"`DatePicker` provides an interactive calendar interface for selecting single dates or date ranges, with customizable formatting and validation options. It displays a text input that opens a calendar popup when clicked, offering both keyboard and mouse interaction.",props:{placeholder:Df(),initialValue:Ba(),autoFocus:Bi(),readOnly:gl(),enabled:So(ma.enabled),validationStatus:vl(ma.validationStatus),label:io(),labelPosition:$a("top"),labelWidth:Da(Za),labelBreak:hl(Za),mode:{description:"The mode of the datepicker (single or range)",valueType:"string",availableValues:Xst,defaultValue:ma.mode},dateFormat:{description:"The format of the date displayed in the input field",valueType:"string",defaultValue:ma.dateFormat,availableValues:EE},showWeekNumber:{description:"Whether to show the week number in the calendar",valueType:"boolean",defaultValue:ma.showWeekNumber},weekStartsOn:{description:"The first day of the week. 0 is Sunday, 1 is Monday, etc.",valueType:"number",defaultValue:ma.weekStartsOn,availableValues:[{value:Sm.Sunday,description:"Sunday"},{value:Sm.Monday,description:"Monday"},{value:Sm.Tuesday,description:"Tuesday"},{value:Sm.Wednesday,description:"Wednesday"},{value:Sm.Thursday,description:"Thursday"},{value:Sm.Friday,description:"Friday"},{value:Sm.Saturday,description:"Saturday"}]},minValue:{description:"The optional start date of the selectable date range. If not defined, the range allows any dates in the past.",valueType:"string"},maxValue:{description:"The optional end date of the selectable date range. If not defined, the range allows any future dates.",valueType:"string"},disabledDates:{description:"An optional array of dates that are disabled",valueType:"any"},inline:{description:"Whether to display the datepicker inline",valueType:"boolean",defaultValue:ma.inline},startText:zT(),startIcon:FT(),endText:WT(),endIcon:VT()},events:{didChange:Ei(Za),gotFocus:Ha(Za),lostFocus:Na(Za)},apis:{focus:au(Za),value:re("You can query the component's value. If no value is set, it will retrieve `undefined`."),setValue:us()},themeVars:Ze(Wa.themeVars),defaultThemeVars:{[`boxShadow-menu-${Za}`]:"$boxShadow-md",[`borderRadius-menu-${Za}`]:"$borderRadius",[`textColor-value-${Za}`]:"$textColor-primary",[`borderColor-selectedItem-${Za}`]:"$color-primary-200",[`backgroundColor-menu-${Za}`]:"$color-surface-50",[`backgroundColor-item-${Za}--hover`]:"$color-surface-100",[`backgroundColor-item-${Za}--active`]:"$color-surface-200"}},fSt=we(Za,$pe,({node:e,state:t,updateState:r,extractValue:n,layoutCss:o,lookupEventHandler:i,registerComponentApi:a})=>{var l;return C.jsx(Mae,{id:e.uid,style:o,mode:n((l=e.props)==null?void 0:l.mode),value:t==null?void 0:t.value,initialValue:n(e.props.initialValue),enabled:n.asOptionalBoolean(e.props.enabled),placeholder:n.asOptionalString(e.props.placeholder),validationStatus:n(e.props.validationStatus),updateState:r,onDidChange:i("didChange"),onFocus:i("gotFocus"),onBlur:i("lostFocus"),registerComponentApi:a,dateFormat:n(e.props.dateFormat),showWeekNumber:n.asOptionalBoolean(e.props.showWeekNumber),weekStartsOn:n(e.props.weekStartsOn),minValue:n(e.props.minValue),maxValue:n(e.props.maxValue),disabledDates:n(e.props.disabledDates),inline:n.asOptionalBoolean(e.props.inline),startText:n.asOptionalString(e.props.startText),startIcon:n.asOptionalString(e.props.startIcon),endText:n.asOptionalString(e.props.endText),endIcon:n.asOptionalString(e.props.endIcon),readOnly:n.asOptionalBoolean(e.props.readOnly),autoFocus:n.asOptionalBoolean(e.props.autoFocus),label:n(e.props.label),labelPosition:n(e.props.labelPosition),labelWidth:n(e.props.labelWidth),labelBreak:n.asOptionalBoolean(e.props.labelBreak)})}),mSt="Redirect",Dpe={status:"stable",description:"`Redirect` immediately redirects the browser to the URL in its `to` property when it gets visible (its `when` property gets `true`). It works only within [App](/components/App), not externally.",props:{to:{description:"This property defines the URL to which this component is about to redirect requests.",defaultValue:{to:""}.to}}},pSt=we(mSt,Dpe,({node:e,extractValue:t})=>C.jsx(UK,{to:oS(t(e.props.to))})),ig={themeVars:`'{"padding-trigger-Tabs": "var(--xmlui-padding-trigger-Tabs)", "paddingHorizontal-trigger-Tabs": "var(--xmlui-paddingHorizontal-trigger-Tabs, var(--xmlui-padding-trigger-Tabs))", "paddingVertical-trigger-Tabs": "var(--xmlui-paddingVertical-trigger-Tabs, var(--xmlui-padding-trigger-Tabs))", "paddingLeft-trigger-Tabs": "var(--xmlui-paddingLeft-trigger-Tabs, var(--xmlui-paddingHorizontal-trigger-Tabs, var(--xmlui-padding-trigger-Tabs)))", "paddingRight-trigger-Tabs": "var(--xmlui-paddingRight-trigger-Tabs, var(--xmlui-paddingHorizontal-trigger-Tabs, var(--xmlui-padding-trigger-Tabs)))", "paddingTop-trigger-Tabs": "var(--xmlui-paddingTop-trigger-Tabs, var(--xmlui-paddingVertical-trigger-Tabs, var(--xmlui-padding-trigger-Tabs)))", "paddingBottom-trigger-Tabs": "var(--xmlui-paddingBottom-trigger-Tabs, var(--xmlui-paddingVertical-trigger-Tabs, var(--xmlui-padding-trigger-Tabs)))", "backgroundColor-Tabs": "var(--xmlui-backgroundColor-Tabs)", "borderColor-Tabs": "var(--xmlui-borderColor-Tabs)", "borderWidth-Tabs": "var(--xmlui-borderWidth-Tabs)", "borderColor-active-Tabs": "var(--xmlui-borderColor-active-Tabs)", "backgroundColor-trigger-Tabs": "var(--xmlui-backgroundColor-trigger-Tabs)", "borderRadius-trigger-Tabs": "var(--xmlui-borderRadius-trigger-Tabs)", "border-trigger-Tabs": "var(--xmlui-border-trigger-Tabs)", "textColor-trigger-Tabs": "var(--xmlui-textColor-trigger-Tabs)", "backgroundColor-trigger-Tabs--hover": "var(--xmlui-backgroundColor-trigger-Tabs--hover)", "backgroundColor-trigger-Tabs--active": "var(--xmlui-backgroundColor-trigger-Tabs--active)", "backgroundColor-list-Tabs": "var(--xmlui-backgroundColor-list-Tabs)", "borderRadius-list-Tabs": "var(--xmlui-borderRadius-list-Tabs)", "border-list-Tabs": "var(--xmlui-border-list-Tabs)"}'`,tabs:"_tabs_1ggvi_13",filler:"_filler_1ggvi_26",tabTrigger:"_tabTrigger_1ggvi_40",distributeEvenly:"_distributeEvenly_1ggvi_57",tabsList:"_tabsList_1ggvi_89",tabsContent:"_tabsContent_1ggvi_111"};function Ud(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function bD(e,t=[]){let r=[];function n(i,a){const l=m.createContext(a),s=r.length;r=[...r,a];function u(d){const{scope:f,children:p,...h}=d,v=(f==null?void 0:f[e][s])||l,b=m.useMemo(()=>h,Object.values(h));return C.jsx(v.Provider,{value:b,children:p})}function c(d,f){const p=(f==null?void 0:f[e][s])||l,h=m.useContext(p);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}const o=()=>{const i=r.map(a=>m.createContext(a));return function(l){const s=(l==null?void 0:l[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[n,hSt(o,...t)]}function hSt(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=n.reduce((l,{useScope:s,scopeName:u})=>{const d=s(i)[`__scope${u}`];return{...l,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function gSt(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Bpe(...e){return t=>e.forEach(r=>gSt(r,t))}function q6(...e){return m.useCallback(Bpe(...e),e)}var G6=m.forwardRef((e,t)=>{const{children:r,...n}=e,o=m.Children.toArray(r),i=o.find(bSt);if(i){const a=i.props.children,l=o.map(s=>s===i?m.Children.count(a)>1?m.Children.only(null):m.isValidElement(a)?a.props.children:null:s);return C.jsx(xD,{...n,ref:t,children:m.isValidElement(a)?m.cloneElement(a,void 0,l):null})}return C.jsx(xD,{...n,ref:t,children:r})});G6.displayName="Slot";var xD=m.forwardRef((e,t)=>{const{children:r,...n}=e;if(m.isValidElement(r)){const o=ySt(r);return m.cloneElement(r,{...xSt(n,r.props),ref:t?Bpe(t,o):o})}return m.Children.count(r)>1?m.Children.only(null):null});xD.displayName="SlotClone";var vSt=({children:e})=>C.jsx(C.Fragment,{children:e});function bSt(e){return m.isValidElement(e)&&e.type===vSt}function xSt(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{i(...l),o(...l)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function ySt(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function wSt(e){const t=e+"CollectionProvider",[r,n]=bD(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:h,children:v}=p,b=Z.useRef(null),y=Z.useRef(new Map).current;return C.jsx(o,{scope:h,itemMap:y,collectionRef:b,children:v})};a.displayName=t;const l=e+"CollectionSlot",s=Z.forwardRef((p,h)=>{const{scope:v,children:b}=p,y=i(l,v),w=q6(h,y.collectionRef);return C.jsx(G6,{ref:w,children:b})});s.displayName=l;const u=e+"CollectionItemSlot",c="data-radix-collection-item",d=Z.forwardRef((p,h)=>{const{scope:v,children:b,...y}=p,w=Z.useRef(null),k=q6(h,w),E=i(u,v);return Z.useEffect(()=>(E.itemMap.set(w,{ref:w,...y}),()=>void E.itemMap.delete(w))),C.jsx(G6,{[c]:"",ref:k,children:b})});d.displayName=u;function f(p){const h=i(e+"CollectionConsumer",p);return Z.useCallback(()=>{const b=h.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${c}]`));return Array.from(h.itemMap.values()).sort((E,_)=>y.indexOf(E.ref.current)-y.indexOf(_.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:a,Slot:s,ItemSlot:d},f,n]}var yD=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},CSt=ld.useId||(()=>{}),kSt=0;function jpe(e){const[t,r]=m.useState(CSt());return yD(()=>{r(n=>n??String(kSt++))},[e]),e||(t?`radix-${t}`:"")}var _St=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],D0=_St.reduce((e,t)=>{const r=m.forwardRef((n,o)=>{const{asChild:i,...a}=n,l=i?G6:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(l,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function wD(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Mpe({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=TSt({defaultProp:t,onChange:r}),i=e!==void 0,a=i?e:n,l=wD(r),s=m.useCallback(u=>{if(i){const d=typeof u=="function"?u(e):u;d!==e&&l(d)}else o(u)},[i,e,o,l]);return[a,s]}function TSt({defaultProp:e,onChange:t}){const r=m.useState(e),[n]=r,o=m.useRef(n),i=wD(t);return m.useEffect(()=>{o.current!==n&&(i(n),o.current=n)},[n,o,i]),r}var SSt=m.createContext(void 0);function zpe(e){const t=m.useContext(SSt);return e||t||"ltr"}var CD="rovingFocusGroup.onEntryFocus",ESt={bubbles:!1,cancelable:!0},Y6="RovingFocusGroup",[kD,Fpe,ASt]=wSt(Y6),[OSt,Wpe]=bD(Y6,[ASt]),[ISt,RSt]=OSt(Y6),Vpe=m.forwardRef((e,t)=>C.jsx(kD.Provider,{scope:e.__scopeRovingFocusGroup,children:C.jsx(kD.Slot,{scope:e.__scopeRovingFocusGroup,children:C.jsx(PSt,{...e,ref:t})})}));Vpe.displayName=Y6;var PSt=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...d}=e,f=m.useRef(null),p=q6(t,f),h=zpe(i),[v=null,b]=Mpe({prop:a,defaultProp:l,onChange:s}),[y,w]=m.useState(!1),k=wD(u),E=Fpe(r),_=m.useRef(!1),[S,A]=m.useState(0);return m.useEffect(()=>{const O=f.current;if(O)return O.addEventListener(CD,k),()=>O.removeEventListener(CD,k)},[k]),C.jsx(ISt,{scope:r,orientation:n,dir:h,loop:o,currentTabStopId:v,onItemFocus:m.useCallback(O=>b(O),[b]),onItemShiftTab:m.useCallback(()=>w(!0),[]),onFocusableItemAdd:m.useCallback(()=>A(O=>O+1),[]),onFocusableItemRemove:m.useCallback(()=>A(O=>O-1),[]),children:C.jsx(D0.div,{tabIndex:y||S===0?-1:0,"data-orientation":n,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:Ud(e.onMouseDown,()=>{_.current=!0}),onFocus:Ud(e.onFocus,O=>{const I=!_.current;if(O.target===O.currentTarget&&I&&!y){const L=new CustomEvent(CD,ESt);if(O.currentTarget.dispatchEvent(L),!L.defaultPrevented){const P=E().filter(G=>G.focusable),H=P.find(G=>G.active),j=P.find(G=>G.id===v),B=[H,j,...P].filter(Boolean).map(G=>G.ref.current);Gpe(B,c)}}_.current=!1}),onBlur:Ud(e.onBlur,()=>w(!1))})})}),Upe="RovingFocusGroupItem",qpe=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:i,...a}=e,l=jpe(),s=i||l,u=RSt(Upe,r),c=u.currentTabStopId===s,d=Fpe(r),{onFocusableItemAdd:f,onFocusableItemRemove:p}=u;return m.useEffect(()=>{if(n)return f(),()=>p()},[n,f,p]),C.jsx(kD.ItemSlot,{scope:r,id:s,focusable:n,active:o,children:C.jsx(D0.span,{tabIndex:c?0:-1,"data-orientation":u.orientation,...a,ref:t,onMouseDown:Ud(e.onMouseDown,h=>{n?u.onItemFocus(s):h.preventDefault()}),onFocus:Ud(e.onFocus,()=>u.onItemFocus(s)),onKeyDown:Ud(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){u.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const v=NSt(h,u.orientation,u.dir);if(v!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let y=d().filter(w=>w.focusable).map(w=>w.ref.current);if(v==="last")y.reverse();else if(v==="prev"||v==="next"){v==="prev"&&y.reverse();const w=y.indexOf(h.currentTarget);y=u.loop?$St(y,w+1):y.slice(w+1)}setTimeout(()=>Gpe(y))}})})})});qpe.displayName=Upe;var LSt={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function HSt(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function NSt(e,t,r){const n=HSt(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return LSt[n]}function Gpe(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function $St(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var DSt=Vpe,BSt=qpe;function jSt(e,t){return m.useReducer((r,n)=>t[r][n]??r,e)}var Ype=e=>{const{present:t,children:r}=e,n=MSt(t),o=typeof r=="function"?r({present:n.isPresent}):m.Children.only(r),i=q6(n.ref,zSt(o));return typeof r=="function"||n.isPresent?m.cloneElement(o,{ref:i}):null};Ype.displayName="Presence";function MSt(e){const[t,r]=m.useState(),n=m.useRef({}),o=m.useRef(e),i=m.useRef("none"),a=e?"mounted":"unmounted",[l,s]=jSt(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=K6(n.current);i.current=l==="mounted"?u:"none"},[l]),yD(()=>{const u=n.current,c=o.current;if(c!==e){const f=i.current,p=K6(u);e?s("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(c&&f!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),yD(()=>{if(t){const u=d=>{const p=K6(n.current).includes(d.animationName);d.target===t&&p&&Fn.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===t&&(i.current=K6(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:m.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function K6(e){return(e==null?void 0:e.animationName)||"none"}function zSt(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var _D="Tabs",[FSt,ohr]=bD(_D,[Wpe]),Kpe=Wpe(),[WSt,TD]=FSt(_D),Xpe=m.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:s="automatic",...u}=e,c=zpe(l),[d,f]=Mpe({prop:n,onChange:o,defaultProp:i});return C.jsx(WSt,{scope:r,baseId:jpe(),value:d,onValueChange:f,orientation:a,dir:c,activationMode:s,children:C.jsx(D0.div,{dir:c,"data-orientation":a,...u,ref:t})})});Xpe.displayName=_D;var Qpe="TabsList",Zpe=m.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,i=TD(Qpe,r),a=Kpe(r);return C.jsx(DSt,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:n,children:C.jsx(D0.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});Zpe.displayName=Qpe;var Jpe="TabsTrigger",ehe=m.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...i}=e,a=TD(Jpe,r),l=Kpe(r),s=nhe(a.baseId,n),u=ohe(a.baseId,n),c=n===a.value;return C.jsx(BSt,{asChild:!0,...l,focusable:!o,active:c,children:C.jsx(D0.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s,...i,ref:t,onMouseDown:Ud(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?a.onValueChange(n):d.preventDefault()}),onKeyDown:Ud(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&a.onValueChange(n)}),onFocus:Ud(e.onFocus,()=>{const d=a.activationMode!=="manual";!c&&!o&&d&&a.onValueChange(n)})})})});ehe.displayName=Jpe;var the="TabsContent",rhe=m.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:i,...a}=e,l=TD(the,r),s=nhe(l.baseId,n),u=ohe(l.baseId,n),c=n===l.value,d=m.useRef(c);return m.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),C.jsx(Ype,{present:o||c,children:({present:f})=>C.jsx(D0.div,{"data-state":c?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":s,hidden:!f,id:u,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&i})})});rhe.displayName=the;function nhe(e,t){return`${e}-trigger-${t}`}function ohe(e,t){return`${e}-content-${t}`}var VSt=Xpe,USt=Zpe,ihe=ehe,qSt=rhe;const ahe=m.createContext({register:e=>{},unRegister:e=>{},activeTabId:""});function GSt(){const[e,t]=m.useState(Ar),[r,n]=m.useState(""),o=m.useMemo(()=>({register:i=>{t(fl(a=>{const l=a.findIndex(s=>s.id===i.id);l<0?a.push(i):a[l]=i}))},unRegister:i=>{t(fl(a=>a.filter(l=>l.id!==i)))},activeTabId:r,setActiveTabId:n}),[r]);return{tabItems:e,tabContextValue:o}}function YSt(){return m.useContext(ahe)}const X6={activeTab:0,orientation:"horizontal",distributeEvenly:!1},lhe=m.forwardRef(function({activeTab:t=X6.activeTab,orientation:r=X6.orientation,tabRenderer:n,style:o,children:i,registerComponentApi:a,className:l,distributeEvenly:s=X6.distributeEvenly},u){const{tabItems:c,tabContextValue:d}=GSt(),[f,p]=m.useState(t),h=m.useMemo(()=>{var b;return(b=c[f])==null?void 0:b.id},[f,c]);m.useEffect(()=>{d.setActiveTabId(h)},[h,d]),m.useEffect(()=>{t!==void 0&&p(()=>{const b=c.length-1,y=t-1;return y<0?0:y>b?b:y})},[t,c.length]);const v=zt(()=>{p(b=>{const y=c.length-1;return b>=y?0:b+1})});return m.useEffect(()=>{a==null||a({next:v})},[v,a]),C.jsx(ahe.Provider,{value:d,children:C.jsxs(VSt,{ref:u,className:ze(ig.tabs,l),value:`${h}`,onValueChange:b=>{const y=c.findIndex(w=>w.id===b);y!==f&&(d.setActiveTabId(b),p(y))},orientation:r,style:o,children:[C.jsxs(USt,{className:ig.tabsList,children:[c.map(b=>n?C.jsx(ihe,{value:b.id,asChild:!0,children:n({label:b.label,isActive:b.id===h})},b.id):C.jsx(ihe,{className:ze(ig.tabTrigger,{[ig.distributeEvenly]:s}),value:b.id,children:b.label},b.id)),!s&&!n&&C.jsx("div",{className:ig.filler,"data-orientation":r})]}),i]})})}),ag="Tabs",she={status:"experimental",description:"`Tabs` enables users to switch among content panels using clickable tab headers. It provides an efficient way to present multiple related sections in a single interface area, with each tab containing distinct content defined by [TabItem](/components/TabItem) components.",props:{activeTab:re("This property indicates the index of the active tab. The indexing starts from 0, representing the starting (leftmost) tab. If not set, the first tab is selected by default."),orientation:{description:"This property indicates the orientation of the component. In horizontal orientation, the tab sections are laid out on the left side of the content panel, while in vertical orientation, the buttons are at the top.",availableValues:["horizontal","vertical"],defaultValue:X6.orientation,valueType:"string"},tabTemplate:{...xr("This property declares the template for the clickable tab area."),isInternal:!0}},apis:{next:re("This method selects the next tab.")},themeVars:Ze(ig.themeVars),defaultThemeVars:{[`borderStyle-${ag}`]:"solid",[`borderColor-${ag}`]:"$borderColor",[`borderColor-active-${ag}`]:"$color-primary",[`borderWidth-${ag}`]:"2px",[`backgroundColor-trigger-${ag}--hover`]:"$color-surface-100",[`padding-trigger-${ag}`]:"$space-4"}},KSt=we(ag,she,({extractValue:e,node:t,renderChild:r,layoutCss:n,registerComponentApi:o})=>{var i,a,l;return C.jsx(lhe,{style:n,tabRenderer:(i=t==null?void 0:t.props)!=null&&i.tabTemplate?s=>C.jsx(Oi,{node:t.props.tabTemplate,item:s,renderChild:r}):void 0,activeTab:e((a=t.props)==null?void 0:a.activeTab),orientation:e((l=t.props)==null?void 0:l.orientation),registerComponentApi:o,children:r(t.children)})}),XSt={anchorRef:"_anchorRef_1d4md_1"},Q6={level:1,omitFromToc:!1},QSt=({uid:e,level:t=Q6.level,children:r,title:n,omitFromToc:o=Q6.omitFromToc})=>{const i=m.useRef(null),a=m.useContext(t3),l=a==null?void 0:a.registerHeading,s=a==null?void 0:a.hasTableOfContents;return m.useLayoutEffect(()=>{var u,c,d;if(s&&i.current&&e&&!o)return l==null?void 0:l({id:e,level:t,text:n||((d=(c=(u=i.current)==null?void 0:u.textContent)==null?void 0:c.trim())==null?void 0:d.replace(/#$/,""))||e,anchor:i.current})},[e,s,l,t,n,o]),C.jsx("span",{ref:i,id:e,"data-anchor":!0,className:XSt.anchorRef,children:r})},ZSt="Bookmark",uhe={status:"stable",description:"As its name suggests, this component places a bookmark into its parent component's view. The component has an `id` that you can use in links to navigate (scroll to) the bookmark's location.",opaque:!0,props:{uid:{description:"The unique identifier of the bookmark. You can use this identifier in links to navigate to this component's location. If this identifier is not set, you cannot programmatically visit this bookmark.",valueType:"string"},level:{description:"The level of the bookmark. The level is used to determine the bookmark's position in the table of contents.",valueType:"number",defaultValue:Q6.level},title:{description:"Defines the text to display the bookmark in the table of contents. If this property is empty, the text falls back to the value of `id`.",valueType:"string"},omitFromToc:{description:"If true, this bookmark will be excluded from the table of contents.",valueType:"boolean",defaultValue:Q6.omitFromToc}}},JSt=we(ZSt,uhe,e=>{const{node:t,renderChild:r,extractValue:n,layoutContext:o}=e;return C.jsx(QSt,{uid:n(t.uid),level:n(t.props.level),title:n(t.props.title),omitFromToc:n.asOptionalBoolean(t.props.omitFromToc),children:r(t.children,o)})}),che=R9(null);function SD(e){return Sy(che,e)}const dhe={bucket:"default"};function e3t({bucket:e=dhe.bucket,updateState:t,initialValue:r,registerComponentApi:n}){const o=SD(l=>l.registerAppState),i=SD(l=>l.update);Sn(()=>{r!==void 0&&o(e,r)},[e,r,o]);const a=SD(l=>l.appState[e]);return Sn(()=>{t({value:a})},[t,a]),Sn(()=>{n({update:l=>i(e,l)})},[e,n,i]),null}const H2="AppState",fhe={status:"stable",description:"`AppState` is an invisible component that provides global state management across your entire application. Unlike component variables that are scoped locally, AppState allows any component to access and update shared state without prop drilling.",props:{bucket:{description:`This property is the identifier of the bucket to which the \`${H2}\` instance is bound. Multiple \`${H2}\` instances with the same bucket will share the same state object: any of them updating the state will cause the other instances to view the new, updated state.`,valueType:"string",defaultValue:dhe.bucket},initialValue:{description:`This property contains the initial state value. Though you can use multiple \`${H2}\`component instances for the same bucket with their \`initialValue\` set, it may result in faulty app logic. When xmlui instantiates an \`${H2}\` with an explicit initial value, that value is immediately set. Multiple initial values may result in undesired initialization. By default, the bucked's initial state is undefined.`}},apis:{update:re("This method updates the application state object bound to the `AppState` instance. The function's single argument is an object that specifies the new state value.")},nonVisual:!0},t3t=we(H2,fhe,({node:e,extractValue:t,updateState:r,registerComponentApi:n})=>C.jsx(e3t,{bucket:t(e.props.bucket),initialValue:t(e.props.initialValue),updateState:r,registerComponentApi:n})),Ps={themeVars:`'{"backgroundColor-TableOfContents": "var(--xmlui-backgroundColor-TableOfContents)", "width-TableOfContents": "var(--xmlui-width-TableOfContents)", "height-TableOfContents": "var(--xmlui-height-TableOfContents)", "border-TableOfContents": "var(--xmlui-border-TableOfContents)", "borderHorizontal-TableOfContents": "var(--xmlui-borderHorizontal-TableOfContents, var(--xmlui-border-TableOfContents))", "borderVertical-TableOfContents": "var(--xmlui-borderVertical-TableOfContents, var(--xmlui-border-TableOfContents))", "borderLeft-TableOfContents": "var(--xmlui-borderLeft-TableOfContents, var(--xmlui-borderHorizontal-TableOfContents, var(--xmlui-border-TableOfContents)))", "borderRight-TableOfContents": "var(--xmlui-borderRight-TableOfContents, var(--xmlui-borderHorizontal-TableOfContents, var(--xmlui-border-TableOfContents)))", "borderTop-TableOfContents": "var(--xmlui-borderTop-TableOfContents, var(--xmlui-borderVertical-TableOfContents, var(--xmlui-border-TableOfContents)))", "borderBottom-TableOfContents": "var(--xmlui-borderBottom-TableOfContents, var(--xmlui-borderVertical-TableOfContents, var(--xmlui-border-TableOfContents)))", "borderWidth-TableOfContents": "var(--xmlui-borderWidth-TableOfContents)", "borderHorizontalWidth-TableOfContents": "var(--xmlui-borderHorizontalWidth-TableOfContents, var(--xmlui-borderWidth-TableOfContents))", "borderLeftWidth-TableOfContents": "var(--xmlui-borderLeftWidth-TableOfContents, var(--xmlui-borderHorizontalWidth-TableOfContents, var(--xmlui-borderWidth-TableOfContents)))", "borderRightWidth-TableOfContents": "var(--xmlui-borderRightWidth-TableOfContents, var(--xmlui-borderHorizontalWidth-TableOfContents, var(--xmlui-borderWidth-TableOfContents)))", "borderVerticalWidth-TableOfContents": "var(--xmlui-borderVerticalWidth-TableOfContents, var(--xmlui-borderWidth-TableOfContents))", "borderTopWidth-TableOfContents": "var(--xmlui-borderTopWidth-TableOfContents, var(--xmlui-borderVerticalWidth-TableOfContents, var(--xmlui-borderWidth-TableOfContents)))", "borderBottomWidth-TableOfContents": "var(--xmlui-borderBottomWidth-TableOfContents, var(--xmlui-borderVerticalWidth-TableOfContents, var(--xmlui-borderWidth-TableOfContents)))", "borderStyle-TableOfContents": "var(--xmlui-borderStyle-TableOfContents)", "borderHorizontalStyle-TableOfContents": "var(--xmlui-borderHorizontalStyle-TableOfContents, var(--xmlui-borderStyle-TableOfContents))", "borderLeftStyle-TableOfContents": "var(--xmlui-borderLeftStyle-TableOfContents, var(--xmlui-borderHorizontalStyle-TableOfContents, var(--xmlui-borderStyle-TableOfContents)))", "borderRightStyle-TableOfContents": "var(--xmlui-borderRightStyle-TableOfContents, var(--xmlui-borderHorizontalStyle-TableOfContents, var(--xmlui-borderStyle-TableOfContents)))", "borderVerticalStyle-TableOfContents": "var(--xmlui-borderVerticalStyle-TableOfContents, var(--xmlui-borderStyle-TableOfContents))", "borderTopStyle-TableOfContents": "var(--xmlui-borderTopStyle-TableOfContents, var(--xmlui-borderVerticalStyle-TableOfContents, var(--xmlui-borderStyle-TableOfContents)))", "borderBottomStyle-TableOfContents": "var(--xmlui-borderBottomStyle-TableOfContents, var(--xmlui-borderVerticalStyle-TableOfContents, var(--xmlui-borderStyle-TableOfContents)))", "borderColor-TableOfContents": "var(--xmlui-borderColor-TableOfContents)", "borderHorizontalColor-TableOfContents": "var(--xmlui-borderHorizontalColor-TableOfContents, var(--xmlui-borderColor-TableOfContents))", "borderLeftColor-TableOfContents": "var(--xmlui-borderLeftColor-TableOfContents, var(--xmlui-borderHorizontalColor-TableOfContents, var(--xmlui-borderColor-TableOfContents)))", "borderRightColor-TableOfContents": "var(--xmlui-borderRightColor-TableOfContents, var(--xmlui-borderHorizontalColor-TableOfContents, var(--xmlui-borderColor-TableOfContents)))", "borderVerticalColor-TableOfContents": "var(--xmlui-borderVerticalColor-TableOfContents, var(--xmlui-borderColor-TableOfContents))", "borderTopColor-TableOfContents": "var(--xmlui-borderTopColor-TableOfContents, var(--xmlui-borderVerticalColor-TableOfContents, var(--xmlui-borderColor-TableOfContents)))", "borderBottomColor-TableOfContents": "var(--xmlui-borderBottomColor-TableOfContents, var(--xmlui-borderVerticalColor-TableOfContents, var(--xmlui-borderColor-TableOfContents)))", "borderStartStartRadius-TableOfContents": "var(--xmlui-borderStartStartRadius-TableOfContents, var(--xmlui-borderRadius-TableOfContents))", "borderStartEndRadius-TableOfContents": "var(--xmlui-borderStartEndRadius-TableOfContents, var(--xmlui-borderRadius-TableOfContents))", "borderEndStartRadius-TableOfContents": "var(--xmlui-borderEndStartRadius-TableOfContents, var(--xmlui-borderRadius-TableOfContents))", "borderEndEndRadius-TableOfContents": "var(--xmlui-borderEndEndRadius-TableOfContents, var(--xmlui-borderRadius-TableOfContents))", "padding-TableOfContents": "var(--xmlui-padding-TableOfContents)", "paddingHorizontal-TableOfContents": "var(--xmlui-paddingHorizontal-TableOfContents, var(--xmlui-padding-TableOfContents))", "paddingVertical-TableOfContents": "var(--xmlui-paddingVertical-TableOfContents, var(--xmlui-padding-TableOfContents))", "paddingLeft-TableOfContents": "var(--xmlui-paddingLeft-TableOfContents, var(--xmlui-paddingHorizontal-TableOfContents, var(--xmlui-padding-TableOfContents)))", "paddingRight-TableOfContents": "var(--xmlui-paddingRight-TableOfContents, var(--xmlui-paddingHorizontal-TableOfContents, var(--xmlui-padding-TableOfContents)))", "paddingTop-TableOfContents": "var(--xmlui-paddingTop-TableOfContents, var(--xmlui-paddingVertical-TableOfContents, var(--xmlui-padding-TableOfContents)))", "paddingBottom-TableOfContents": "var(--xmlui-paddingBottom-TableOfContents, var(--xmlui-paddingVertical-TableOfContents, var(--xmlui-padding-TableOfContents)))", "textColor-TableOfContentsItem": "var(--xmlui-textColor-TableOfContentsItem)", "fontFamily-TableOfContentsItem": "var(--xmlui-fontFamily-TableOfContentsItem)", "fontSize-TableOfContentsItem": "var(--xmlui-fontSize-TableOfContentsItem)", "fontStyle-TableOfContentsItem": "var(--xmlui-fontStyle-TableOfContentsItem)", "fontVariant-TableOfContentsItem": "var(--xmlui-fontVariant-TableOfContentsItem)", "fontWeight-TableOfContentsItem": "var(--xmlui-fontWeight-TableOfContentsItem)", "fontStretch-TableOfContentsItem": "var(--xmlui-fontStretch-TableOfContentsItem)", "textDecorationLine-TableOfContentsItem": "var(--xmlui-textDecorationLine-TableOfContentsItem)", "textDecorationColor-TableOfContentsItem": "var(--xmlui-textDecorationColor-TableOfContentsItem)", "textDecorationStyle-TableOfContentsItem": "var(--xmlui-textDecorationStyle-TableOfContentsItem)", "textDecorationThickness-TableOfContentsItem": "var(--xmlui-textDecorationThickness-TableOfContentsItem)", "textUnderlineOffset-TableOfContentsItem": "var(--xmlui-textUnderlineOffset-TableOfContentsItem)", "lineHeight-TableOfContentsItem": "var(--xmlui-lineHeight-TableOfContentsItem)", "backgroundColor-TableOfContentsItem": "var(--xmlui-backgroundColor-TableOfContentsItem)", "textTransform-TableOfContentsItem": "var(--xmlui-textTransform-TableOfContentsItem)", "letterSpacing-TableOfContentsItem": "var(--xmlui-letterSpacing-TableOfContentsItem)", "wordSpacing-TableOfContentsItem": "var(--xmlui-wordSpacing-TableOfContentsItem)", "textShadow-TableOfContentsItem": "var(--xmlui-textShadow-TableOfContentsItem)", "textIndent-TableOfContentsItem": "var(--xmlui-textIndent-TableOfContentsItem)", "textAlign-TableOfContentsItem": "var(--xmlui-textAlign-TableOfContentsItem)", "textAlignLast-TableOfContentsItem": "var(--xmlui-textAlignLast-TableOfContentsItem)", "wordBreak-TableOfContentsItem": "var(--xmlui-wordBreak-TableOfContentsItem)", "wordWrap-TableOfContentsItem": "var(--xmlui-wordWrap-TableOfContentsItem)", "direction-TableOfContentsItem": "var(--xmlui-direction-TableOfContentsItem)", "writingMode-TableOfContentsItem": "var(--xmlui-writingMode-TableOfContentsItem)", "lineBreak-TableOfContentsItem": "var(--xmlui-lineBreak-TableOfContentsItem)", "border-TableOfContentsItem": "var(--xmlui-border-TableOfContentsItem)", "borderHorizontal-TableOfContentsItem": "var(--xmlui-borderHorizontal-TableOfContentsItem, var(--xmlui-border-TableOfContentsItem))", "borderVertical-TableOfContentsItem": "var(--xmlui-borderVertical-TableOfContentsItem, var(--xmlui-border-TableOfContentsItem))", "borderLeft-TableOfContentsItem": "var(--xmlui-borderLeft-TableOfContentsItem, var(--xmlui-borderHorizontal-TableOfContentsItem, var(--xmlui-border-TableOfContentsItem)))", "borderRight-TableOfContentsItem": "var(--xmlui-borderRight-TableOfContentsItem, var(--xmlui-borderHorizontal-TableOfContentsItem, var(--xmlui-border-TableOfContentsItem)))", "borderTop-TableOfContentsItem": "var(--xmlui-borderTop-TableOfContentsItem, var(--xmlui-borderVertical-TableOfContentsItem, var(--xmlui-border-TableOfContentsItem)))", "borderBottom-TableOfContentsItem": "var(--xmlui-borderBottom-TableOfContentsItem, var(--xmlui-borderVertical-TableOfContentsItem, var(--xmlui-border-TableOfContentsItem)))", "borderWidth-TableOfContentsItem": "var(--xmlui-borderWidth-TableOfContentsItem)", "borderHorizontalWidth-TableOfContentsItem": "var(--xmlui-borderHorizontalWidth-TableOfContentsItem, var(--xmlui-borderWidth-TableOfContentsItem))", "borderLeftWidth-TableOfContentsItem": "var(--xmlui-borderLeftWidth-TableOfContentsItem, var(--xmlui-borderHorizontalWidth-TableOfContentsItem, var(--xmlui-borderWidth-TableOfContentsItem)))", "borderRightWidth-TableOfContentsItem": "var(--xmlui-borderRightWidth-TableOfContentsItem, var(--xmlui-borderHorizontalWidth-TableOfContentsItem, var(--xmlui-borderWidth-TableOfContentsItem)))", "borderVerticalWidth-TableOfContentsItem": "var(--xmlui-borderVerticalWidth-TableOfContentsItem, var(--xmlui-borderWidth-TableOfContentsItem))", "borderTopWidth-TableOfContentsItem": "var(--xmlui-borderTopWidth-TableOfContentsItem, var(--xmlui-borderVerticalWidth-TableOfContentsItem, var(--xmlui-borderWidth-TableOfContentsItem)))", "borderBottomWidth-TableOfContentsItem": "var(--xmlui-borderBottomWidth-TableOfContentsItem, var(--xmlui-borderVerticalWidth-TableOfContentsItem, var(--xmlui-borderWidth-TableOfContentsItem)))", "borderStyle-TableOfContentsItem": "var(--xmlui-borderStyle-TableOfContentsItem)", "borderHorizontalStyle-TableOfContentsItem": "var(--xmlui-borderHorizontalStyle-TableOfContentsItem, var(--xmlui-borderStyle-TableOfContentsItem))", "borderLeftStyle-TableOfContentsItem": "var(--xmlui-borderLeftStyle-TableOfContentsItem, var(--xmlui-borderHorizontalStyle-TableOfContentsItem, var(--xmlui-borderStyle-TableOfContentsItem)))", "borderRightStyle-TableOfContentsItem": "var(--xmlui-borderRightStyle-TableOfContentsItem, var(--xmlui-borderHorizontalStyle-TableOfContentsItem, var(--xmlui-borderStyle-TableOfContentsItem)))", "borderVerticalStyle-TableOfContentsItem": "var(--xmlui-borderVerticalStyle-TableOfContentsItem, var(--xmlui-borderStyle-TableOfContentsItem))", "borderTopStyle-TableOfContentsItem": "var(--xmlui-borderTopStyle-TableOfContentsItem, var(--xmlui-borderVerticalStyle-TableOfContentsItem, var(--xmlui-borderStyle-TableOfContentsItem)))", "borderBottomStyle-TableOfContentsItem": "var(--xmlui-borderBottomStyle-TableOfContentsItem, var(--xmlui-borderVerticalStyle-TableOfContentsItem, var(--xmlui-borderStyle-TableOfContentsItem)))", "borderColor-TableOfContentsItem": "var(--xmlui-borderColor-TableOfContentsItem)", "borderHorizontalColor-TableOfContentsItem": "var(--xmlui-borderHorizontalColor-TableOfContentsItem, var(--xmlui-borderColor-TableOfContentsItem))", "borderLeftColor-TableOfContentsItem": "var(--xmlui-borderLeftColor-TableOfContentsItem, var(--xmlui-borderHorizontalColor-TableOfContentsItem, var(--xmlui-borderColor-TableOfContentsItem)))", "borderRightColor-TableOfContentsItem": "var(--xmlui-borderRightColor-TableOfContentsItem, var(--xmlui-borderHorizontalColor-TableOfContentsItem, var(--xmlui-borderColor-TableOfContentsItem)))", "borderVerticalColor-TableOfContentsItem": "var(--xmlui-borderVerticalColor-TableOfContentsItem, var(--xmlui-borderColor-TableOfContentsItem))", "borderTopColor-TableOfContentsItem": "var(--xmlui-borderTopColor-TableOfContentsItem, var(--xmlui-borderVerticalColor-TableOfContentsItem, var(--xmlui-borderColor-TableOfContentsItem)))", "borderBottomColor-TableOfContentsItem": "var(--xmlui-borderBottomColor-TableOfContentsItem, var(--xmlui-borderVerticalColor-TableOfContentsItem, var(--xmlui-borderColor-TableOfContentsItem)))", "borderStartStartRadius-TableOfContentsItem": "var(--xmlui-borderStartStartRadius-TableOfContentsItem, var(--xmlui-borderRadius-TableOfContentsItem))", "borderStartEndRadius-TableOfContentsItem": "var(--xmlui-borderStartEndRadius-TableOfContentsItem, var(--xmlui-borderRadius-TableOfContentsItem))", "borderEndStartRadius-TableOfContentsItem": "var(--xmlui-borderEndStartRadius-TableOfContentsItem, var(--xmlui-borderRadius-TableOfContentsItem))", "borderEndEndRadius-TableOfContentsItem": "var(--xmlui-borderEndEndRadius-TableOfContentsItem, var(--xmlui-borderRadius-TableOfContentsItem))", "border-TableOfContentsItem--hover": "var(--xmlui-border-TableOfContentsItem--hover)", "borderHorizontal-TableOfContentsItem--hover": "var(--xmlui-borderHorizontal-TableOfContentsItem--hover, var(--xmlui-border-TableOfContentsItem--hover))", "borderVertical-TableOfContentsItem--hover": "var(--xmlui-borderVertical-TableOfContentsItem--hover, var(--xmlui-border-TableOfContentsItem--hover))", "borderLeft-TableOfContentsItem--hover": "var(--xmlui-borderLeft-TableOfContentsItem--hover, var(--xmlui-borderHorizontal-TableOfContentsItem--hover, var(--xmlui-border-TableOfContentsItem--hover)))", "borderRight-TableOfContentsItem--hover": "var(--xmlui-borderRight-TableOfContentsItem--hover, var(--xmlui-borderHorizontal-TableOfContentsItem--hover, var(--xmlui-border-TableOfContentsItem--hover)))", "borderTop-TableOfContentsItem--hover": "var(--xmlui-borderTop-TableOfContentsItem--hover, var(--xmlui-borderVertical-TableOfContentsItem--hover, var(--xmlui-border-TableOfContentsItem--hover)))", "borderBottom-TableOfContentsItem--hover": "var(--xmlui-borderBottom-TableOfContentsItem--hover, var(--xmlui-borderVertical-TableOfContentsItem--hover, var(--xmlui-border-TableOfContentsItem--hover)))", "borderWidth-TableOfContentsItem--hover": "var(--xmlui-borderWidth-TableOfContentsItem--hover)", "borderHorizontalWidth-TableOfContentsItem--hover": "var(--xmlui-borderHorizontalWidth-TableOfContentsItem--hover, var(--xmlui-borderWidth-TableOfContentsItem--hover))", "borderLeftWidth-TableOfContentsItem--hover": "var(--xmlui-borderLeftWidth-TableOfContentsItem--hover, var(--xmlui-borderHorizontalWidth-TableOfContentsItem--hover, var(--xmlui-borderWidth-TableOfContentsItem--hover)))", "borderRightWidth-TableOfContentsItem--hover": "var(--xmlui-borderRightWidth-TableOfContentsItem--hover, var(--xmlui-borderHorizontalWidth-TableOfContentsItem--hover, var(--xmlui-borderWidth-TableOfContentsItem--hover)))", "borderVerticalWidth-TableOfContentsItem--hover": "var(--xmlui-borderVerticalWidth-TableOfContentsItem--hover, var(--xmlui-borderWidth-TableOfContentsItem--hover))", "borderTopWidth-TableOfContentsItem--hover": "var(--xmlui-borderTopWidth-TableOfContentsItem--hover, var(--xmlui-borderVerticalWidth-TableOfContentsItem--hover, var(--xmlui-borderWidth-TableOfContentsItem--hover)))", "borderBottomWidth-TableOfContentsItem--hover": "var(--xmlui-borderBottomWidth-TableOfContentsItem--hover, var(--xmlui-borderVerticalWidth-TableOfContentsItem--hover, var(--xmlui-borderWidth-TableOfContentsItem--hover)))", "borderStyle-TableOfContentsItem--hover": "var(--xmlui-borderStyle-TableOfContentsItem--hover)", "borderHorizontalStyle-TableOfContentsItem--hover": "var(--xmlui-borderHorizontalStyle-TableOfContentsItem--hover, var(--xmlui-borderStyle-TableOfContentsItem--hover))", "borderLeftStyle-TableOfContentsItem--hover": "var(--xmlui-borderLeftStyle-TableOfContentsItem--hover, var(--xmlui-borderHorizontalStyle-TableOfContentsItem--hover, var(--xmlui-borderStyle-TableOfContentsItem--hover)))", "borderRightStyle-TableOfContentsItem--hover": "var(--xmlui-borderRightStyle-TableOfContentsItem--hover, var(--xmlui-borderHorizontalStyle-TableOfContentsItem--hover, var(--xmlui-borderStyle-TableOfContentsItem--hover)))", "borderVerticalStyle-TableOfContentsItem--hover": "var(--xmlui-borderVerticalStyle-TableOfContentsItem--hover, var(--xmlui-borderStyle-TableOfContentsItem--hover))", "borderTopStyle-TableOfContentsItem--hover": "var(--xmlui-borderTopStyle-TableOfContentsItem--hover, var(--xmlui-borderVerticalStyle-TableOfContentsItem--hover, var(--xmlui-borderStyle-TableOfContentsItem--hover)))", "borderBottomStyle-TableOfContentsItem--hover": "var(--xmlui-borderBottomStyle-TableOfContentsItem--hover, var(--xmlui-borderVerticalStyle-TableOfContentsItem--hover, var(--xmlui-borderStyle-TableOfContentsItem--hover)))", "borderColor-TableOfContentsItem--hover": "var(--xmlui-borderColor-TableOfContentsItem--hover)", "borderHorizontalColor-TableOfContentsItem--hover": "var(--xmlui-borderHorizontalColor-TableOfContentsItem--hover, var(--xmlui-borderColor-TableOfContentsItem--hover))", "borderLeftColor-TableOfContentsItem--hover": "var(--xmlui-borderLeftColor-TableOfContentsItem--hover, var(--xmlui-borderHorizontalColor-TableOfContentsItem--hover, var(--xmlui-borderColor-TableOfContentsItem--hover)))", "borderRightColor-TableOfContentsItem--hover": "var(--xmlui-borderRightColor-TableOfContentsItem--hover, var(--xmlui-borderHorizontalColor-TableOfContentsItem--hover, var(--xmlui-borderColor-TableOfContentsItem--hover)))", "borderVerticalColor-TableOfContentsItem--hover": "var(--xmlui-borderVerticalColor-TableOfContentsItem--hover, var(--xmlui-borderColor-TableOfContentsItem--hover))", "borderTopColor-TableOfContentsItem--hover": "var(--xmlui-borderTopColor-TableOfContentsItem--hover, var(--xmlui-borderVerticalColor-TableOfContentsItem--hover, var(--xmlui-borderColor-TableOfContentsItem--hover)))", "borderBottomColor-TableOfContentsItem--hover": "var(--xmlui-borderBottomColor-TableOfContentsItem--hover, var(--xmlui-borderVerticalColor-TableOfContentsItem--hover, var(--xmlui-borderColor-TableOfContentsItem--hover)))", "borderStartStartRadius-TableOfContentsItem--hover": "var(--xmlui-borderStartStartRadius-TableOfContentsItem--hover, var(--xmlui-borderRadius-TableOfContentsItem--hover))", "borderStartEndRadius-TableOfContentsItem--hover": "var(--xmlui-borderStartEndRadius-TableOfContentsItem--hover, var(--xmlui-borderRadius-TableOfContentsItem--hover))", "borderEndStartRadius-TableOfContentsItem--hover": "var(--xmlui-borderEndStartRadius-TableOfContentsItem--hover, var(--xmlui-borderRadius-TableOfContentsItem--hover))", "borderEndEndRadius-TableOfContentsItem--hover": "var(--xmlui-borderEndEndRadius-TableOfContentsItem--hover, var(--xmlui-borderRadius-TableOfContentsItem--hover))", "border-TableOfContentsItem--active": "var(--xmlui-border-TableOfContentsItem--active)", "borderHorizontal-TableOfContentsItem--active": "var(--xmlui-borderHorizontal-TableOfContentsItem--active, var(--xmlui-border-TableOfContentsItem--active))", "borderVertical-TableOfContentsItem--active": "var(--xmlui-borderVertical-TableOfContentsItem--active, var(--xmlui-border-TableOfContentsItem--active))", "borderLeft-TableOfContentsItem--active": "var(--xmlui-borderLeft-TableOfContentsItem--active, var(--xmlui-borderHorizontal-TableOfContentsItem--active, var(--xmlui-border-TableOfContentsItem--active)))", "borderRight-TableOfContentsItem--active": "var(--xmlui-borderRight-TableOfContentsItem--active, var(--xmlui-borderHorizontal-TableOfContentsItem--active, var(--xmlui-border-TableOfContentsItem--active)))", "borderTop-TableOfContentsItem--active": "var(--xmlui-borderTop-TableOfContentsItem--active, var(--xmlui-borderVertical-TableOfContentsItem--active, var(--xmlui-border-TableOfContentsItem--active)))", "borderBottom-TableOfContentsItem--active": "var(--xmlui-borderBottom-TableOfContentsItem--active, var(--xmlui-borderVertical-TableOfContentsItem--active, var(--xmlui-border-TableOfContentsItem--active)))", "borderWidth-TableOfContentsItem--active": "var(--xmlui-borderWidth-TableOfContentsItem--active)", "borderHorizontalWidth-TableOfContentsItem--active": "var(--xmlui-borderHorizontalWidth-TableOfContentsItem--active, var(--xmlui-borderWidth-TableOfContentsItem--active))", "borderLeftWidth-TableOfContentsItem--active": "var(--xmlui-borderLeftWidth-TableOfContentsItem--active, var(--xmlui-borderHorizontalWidth-TableOfContentsItem--active, var(--xmlui-borderWidth-TableOfContentsItem--active)))", "borderRightWidth-TableOfContentsItem--active": "var(--xmlui-borderRightWidth-TableOfContentsItem--active, var(--xmlui-borderHorizontalWidth-TableOfContentsItem--active, var(--xmlui-borderWidth-TableOfContentsItem--active)))", "borderVerticalWidth-TableOfContentsItem--active": "var(--xmlui-borderVerticalWidth-TableOfContentsItem--active, var(--xmlui-borderWidth-TableOfContentsItem--active))", "borderTopWidth-TableOfContentsItem--active": "var(--xmlui-borderTopWidth-TableOfContentsItem--active, var(--xmlui-borderVerticalWidth-TableOfContentsItem--active, var(--xmlui-borderWidth-TableOfContentsItem--active)))", "borderBottomWidth-TableOfContentsItem--active": "var(--xmlui-borderBottomWidth-TableOfContentsItem--active, var(--xmlui-borderVerticalWidth-TableOfContentsItem--active, var(--xmlui-borderWidth-TableOfContentsItem--active)))", "borderStyle-TableOfContentsItem--active": "var(--xmlui-borderStyle-TableOfContentsItem--active)", "borderHorizontalStyle-TableOfContentsItem--active": "var(--xmlui-borderHorizontalStyle-TableOfContentsItem--active, var(--xmlui-borderStyle-TableOfContentsItem--active))", "borderLeftStyle-TableOfContentsItem--active": "var(--xmlui-borderLeftStyle-TableOfContentsItem--active, var(--xmlui-borderHorizontalStyle-TableOfContentsItem--active, var(--xmlui-borderStyle-TableOfContentsItem--active)))", "borderRightStyle-TableOfContentsItem--active": "var(--xmlui-borderRightStyle-TableOfContentsItem--active, var(--xmlui-borderHorizontalStyle-TableOfContentsItem--active, var(--xmlui-borderStyle-TableOfContentsItem--active)))", "borderVerticalStyle-TableOfContentsItem--active": "var(--xmlui-borderVerticalStyle-TableOfContentsItem--active, var(--xmlui-borderStyle-TableOfContentsItem--active))", "borderTopStyle-TableOfContentsItem--active": "var(--xmlui-borderTopStyle-TableOfContentsItem--active, var(--xmlui-borderVerticalStyle-TableOfContentsItem--active, var(--xmlui-borderStyle-TableOfContentsItem--active)))", "borderBottomStyle-TableOfContentsItem--active": "var(--xmlui-borderBottomStyle-TableOfContentsItem--active, var(--xmlui-borderVerticalStyle-TableOfContentsItem--active, var(--xmlui-borderStyle-TableOfContentsItem--active)))", "borderColor-TableOfContentsItem--active": "var(--xmlui-borderColor-TableOfContentsItem--active)", "borderHorizontalColor-TableOfContentsItem--active": "var(--xmlui-borderHorizontalColor-TableOfContentsItem--active, var(--xmlui-borderColor-TableOfContentsItem--active))", "borderLeftColor-TableOfContentsItem--active": "var(--xmlui-borderLeftColor-TableOfContentsItem--active, var(--xmlui-borderHorizontalColor-TableOfContentsItem--active, var(--xmlui-borderColor-TableOfContentsItem--active)))", "borderRightColor-TableOfContentsItem--active": "var(--xmlui-borderRightColor-TableOfContentsItem--active, var(--xmlui-borderHorizontalColor-TableOfContentsItem--active, var(--xmlui-borderColor-TableOfContentsItem--active)))", "borderVerticalColor-TableOfContentsItem--active": "var(--xmlui-borderVerticalColor-TableOfContentsItem--active, var(--xmlui-borderColor-TableOfContentsItem--active))", "borderTopColor-TableOfContentsItem--active": "var(--xmlui-borderTopColor-TableOfContentsItem--active, var(--xmlui-borderVerticalColor-TableOfContentsItem--active, var(--xmlui-borderColor-TableOfContentsItem--active)))", "borderBottomColor-TableOfContentsItem--active": "var(--xmlui-borderBottomColor-TableOfContentsItem--active, var(--xmlui-borderVerticalColor-TableOfContentsItem--active, var(--xmlui-borderColor-TableOfContentsItem--active)))", "borderStartStartRadius-TableOfContentsItem--active": "var(--xmlui-borderStartStartRadius-TableOfContentsItem--active, var(--xmlui-borderRadius-TableOfContentsItem--active))", "borderStartEndRadius-TableOfContentsItem--active": "var(--xmlui-borderStartEndRadius-TableOfContentsItem--active, var(--xmlui-borderRadius-TableOfContentsItem--active))", "borderEndStartRadius-TableOfContentsItem--active": "var(--xmlui-borderEndStartRadius-TableOfContentsItem--active, var(--xmlui-borderRadius-TableOfContentsItem--active))", "borderEndEndRadius-TableOfContentsItem--active": "var(--xmlui-borderEndEndRadius-TableOfContentsItem--active, var(--xmlui-borderRadius-TableOfContentsItem--active))", "padding-TableOfContentsItem": "var(--xmlui-padding-TableOfContentsItem)", "paddingHorizontal-TableOfContentsItem": "var(--xmlui-paddingHorizontal-TableOfContentsItem, var(--xmlui-padding-TableOfContentsItem))", "paddingVertical-TableOfContentsItem": "var(--xmlui-paddingVertical-TableOfContentsItem, var(--xmlui-padding-TableOfContentsItem))", "paddingLeft-TableOfContentsItem": "var(--xmlui-paddingLeft-TableOfContentsItem, var(--xmlui-paddingHorizontal-TableOfContentsItem, var(--xmlui-padding-TableOfContentsItem)))", "paddingRight-TableOfContentsItem": "var(--xmlui-paddingRight-TableOfContentsItem, var(--xmlui-paddingHorizontal-TableOfContentsItem, var(--xmlui-padding-TableOfContentsItem)))", "paddingTop-TableOfContentsItem": "var(--xmlui-paddingTop-TableOfContentsItem, var(--xmlui-paddingVertical-TableOfContentsItem, var(--xmlui-padding-TableOfContentsItem)))", "paddingBottom-TableOfContentsItem": "var(--xmlui-paddingBottom-TableOfContentsItem, var(--xmlui-paddingVertical-TableOfContentsItem, var(--xmlui-padding-TableOfContentsItem)))", "padding-TableOfContentsItem-level-1": "var(--xmlui-padding-TableOfContentsItem-level-1)", "paddingHorizontal-TableOfContentsItem-level-1": "var(--xmlui-paddingHorizontal-TableOfContentsItem-level-1, var(--xmlui-padding-TableOfContentsItem-level-1))", "paddingVertical-TableOfContentsItem-level-1": "var(--xmlui-paddingVertical-TableOfContentsItem-level-1, var(--xmlui-padding-TableOfContentsItem-level-1))", "paddingLeft-TableOfContentsItem-level-1": "var(--xmlui-paddingLeft-TableOfContentsItem-level-1, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-1, var(--xmlui-padding-TableOfContentsItem-level-1)))", "paddingRight-TableOfContentsItem-level-1": "var(--xmlui-paddingRight-TableOfContentsItem-level-1, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-1, var(--xmlui-padding-TableOfContentsItem-level-1)))", "paddingTop-TableOfContentsItem-level-1": "var(--xmlui-paddingTop-TableOfContentsItem-level-1, var(--xmlui-paddingVertical-TableOfContentsItem-level-1, var(--xmlui-padding-TableOfContentsItem-level-1)))", "paddingBottom-TableOfContentsItem-level-1": "var(--xmlui-paddingBottom-TableOfContentsItem-level-1, var(--xmlui-paddingVertical-TableOfContentsItem-level-1, var(--xmlui-padding-TableOfContentsItem-level-1)))", "textColor-TableOfContentsItem-level-1": "var(--xmlui-textColor-TableOfContentsItem-level-1)", "fontFamily-TableOfContentsItem-level-1": "var(--xmlui-fontFamily-TableOfContentsItem-level-1)", "fontSize-TableOfContentsItem-level-1": "var(--xmlui-fontSize-TableOfContentsItem-level-1)", "fontStyle-TableOfContentsItem-level-1": "var(--xmlui-fontStyle-TableOfContentsItem-level-1)", "fontVariant-TableOfContentsItem-level-1": "var(--xmlui-fontVariant-TableOfContentsItem-level-1)", "fontWeight-TableOfContentsItem-level-1": "var(--xmlui-fontWeight-TableOfContentsItem-level-1)", "fontStretch-TableOfContentsItem-level-1": "var(--xmlui-fontStretch-TableOfContentsItem-level-1)", "textDecorationLine-TableOfContentsItem-level-1": "var(--xmlui-textDecorationLine-TableOfContentsItem-level-1)", "textDecorationColor-TableOfContentsItem-level-1": "var(--xmlui-textDecorationColor-TableOfContentsItem-level-1)", "textDecorationStyle-TableOfContentsItem-level-1": "var(--xmlui-textDecorationStyle-TableOfContentsItem-level-1)", "textDecorationThickness-TableOfContentsItem-level-1": "var(--xmlui-textDecorationThickness-TableOfContentsItem-level-1)", "textUnderlineOffset-TableOfContentsItem-level-1": "var(--xmlui-textUnderlineOffset-TableOfContentsItem-level-1)", "lineHeight-TableOfContentsItem-level-1": "var(--xmlui-lineHeight-TableOfContentsItem-level-1)", "backgroundColor-TableOfContentsItem-level-1": "var(--xmlui-backgroundColor-TableOfContentsItem-level-1)", "textTransform-TableOfContentsItem-level-1": "var(--xmlui-textTransform-TableOfContentsItem-level-1)", "letterSpacing-TableOfContentsItem-level-1": "var(--xmlui-letterSpacing-TableOfContentsItem-level-1)", "wordSpacing-TableOfContentsItem-level-1": "var(--xmlui-wordSpacing-TableOfContentsItem-level-1)", "textShadow-TableOfContentsItem-level-1": "var(--xmlui-textShadow-TableOfContentsItem-level-1)", "textIndent-TableOfContentsItem-level-1": "var(--xmlui-textIndent-TableOfContentsItem-level-1)", "textAlign-TableOfContentsItem-level-1": "var(--xmlui-textAlign-TableOfContentsItem-level-1)", "textAlignLast-TableOfContentsItem-level-1": "var(--xmlui-textAlignLast-TableOfContentsItem-level-1)", "wordBreak-TableOfContentsItem-level-1": "var(--xmlui-wordBreak-TableOfContentsItem-level-1)", "wordWrap-TableOfContentsItem-level-1": "var(--xmlui-wordWrap-TableOfContentsItem-level-1)", "direction-TableOfContentsItem-level-1": "var(--xmlui-direction-TableOfContentsItem-level-1)", "writingMode-TableOfContentsItem-level-1": "var(--xmlui-writingMode-TableOfContentsItem-level-1)", "lineBreak-TableOfContentsItem-level-1": "var(--xmlui-lineBreak-TableOfContentsItem-level-1)", "padding-TableOfContentsItem-level-2": "var(--xmlui-padding-TableOfContentsItem-level-2)", "paddingHorizontal-TableOfContentsItem-level-2": "var(--xmlui-paddingHorizontal-TableOfContentsItem-level-2, var(--xmlui-padding-TableOfContentsItem-level-2))", "paddingVertical-TableOfContentsItem-level-2": "var(--xmlui-paddingVertical-TableOfContentsItem-level-2, var(--xmlui-padding-TableOfContentsItem-level-2))", "paddingLeft-TableOfContentsItem-level-2": "var(--xmlui-paddingLeft-TableOfContentsItem-level-2, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-2, var(--xmlui-padding-TableOfContentsItem-level-2)))", "paddingRight-TableOfContentsItem-level-2": "var(--xmlui-paddingRight-TableOfContentsItem-level-2, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-2, var(--xmlui-padding-TableOfContentsItem-level-2)))", "paddingTop-TableOfContentsItem-level-2": "var(--xmlui-paddingTop-TableOfContentsItem-level-2, var(--xmlui-paddingVertical-TableOfContentsItem-level-2, var(--xmlui-padding-TableOfContentsItem-level-2)))", "paddingBottom-TableOfContentsItem-level-2": "var(--xmlui-paddingBottom-TableOfContentsItem-level-2, var(--xmlui-paddingVertical-TableOfContentsItem-level-2, var(--xmlui-padding-TableOfContentsItem-level-2)))", "textColor-TableOfContentsItem-level-2": "var(--xmlui-textColor-TableOfContentsItem-level-2)", "fontFamily-TableOfContentsItem-level-2": "var(--xmlui-fontFamily-TableOfContentsItem-level-2)", "fontSize-TableOfContentsItem-level-2": "var(--xmlui-fontSize-TableOfContentsItem-level-2)", "fontStyle-TableOfContentsItem-level-2": "var(--xmlui-fontStyle-TableOfContentsItem-level-2)", "fontVariant-TableOfContentsItem-level-2": "var(--xmlui-fontVariant-TableOfContentsItem-level-2)", "fontWeight-TableOfContentsItem-level-2": "var(--xmlui-fontWeight-TableOfContentsItem-level-2)", "fontStretch-TableOfContentsItem-level-2": "var(--xmlui-fontStretch-TableOfContentsItem-level-2)", "textDecorationLine-TableOfContentsItem-level-2": "var(--xmlui-textDecorationLine-TableOfContentsItem-level-2)", "textDecorationColor-TableOfContentsItem-level-2": "var(--xmlui-textDecorationColor-TableOfContentsItem-level-2)", "textDecorationStyle-TableOfContentsItem-level-2": "var(--xmlui-textDecorationStyle-TableOfContentsItem-level-2)", "textDecorationThickness-TableOfContentsItem-level-2": "var(--xmlui-textDecorationThickness-TableOfContentsItem-level-2)", "textUnderlineOffset-TableOfContentsItem-level-2": "var(--xmlui-textUnderlineOffset-TableOfContentsItem-level-2)", "lineHeight-TableOfContentsItem-level-2": "var(--xmlui-lineHeight-TableOfContentsItem-level-2)", "backgroundColor-TableOfContentsItem-level-2": "var(--xmlui-backgroundColor-TableOfContentsItem-level-2)", "textTransform-TableOfContentsItem-level-2": "var(--xmlui-textTransform-TableOfContentsItem-level-2)", "letterSpacing-TableOfContentsItem-level-2": "var(--xmlui-letterSpacing-TableOfContentsItem-level-2)", "wordSpacing-TableOfContentsItem-level-2": "var(--xmlui-wordSpacing-TableOfContentsItem-level-2)", "textShadow-TableOfContentsItem-level-2": "var(--xmlui-textShadow-TableOfContentsItem-level-2)", "textIndent-TableOfContentsItem-level-2": "var(--xmlui-textIndent-TableOfContentsItem-level-2)", "textAlign-TableOfContentsItem-level-2": "var(--xmlui-textAlign-TableOfContentsItem-level-2)", "textAlignLast-TableOfContentsItem-level-2": "var(--xmlui-textAlignLast-TableOfContentsItem-level-2)", "wordBreak-TableOfContentsItem-level-2": "var(--xmlui-wordBreak-TableOfContentsItem-level-2)", "wordWrap-TableOfContentsItem-level-2": "var(--xmlui-wordWrap-TableOfContentsItem-level-2)", "direction-TableOfContentsItem-level-2": "var(--xmlui-direction-TableOfContentsItem-level-2)", "writingMode-TableOfContentsItem-level-2": "var(--xmlui-writingMode-TableOfContentsItem-level-2)", "lineBreak-TableOfContentsItem-level-2": "var(--xmlui-lineBreak-TableOfContentsItem-level-2)", "padding-TableOfContentsItem-level-3": "var(--xmlui-padding-TableOfContentsItem-level-3)", "paddingHorizontal-TableOfContentsItem-level-3": "var(--xmlui-paddingHorizontal-TableOfContentsItem-level-3, var(--xmlui-padding-TableOfContentsItem-level-3))", "paddingVertical-TableOfContentsItem-level-3": "var(--xmlui-paddingVertical-TableOfContentsItem-level-3, var(--xmlui-padding-TableOfContentsItem-level-3))", "paddingLeft-TableOfContentsItem-level-3": "var(--xmlui-paddingLeft-TableOfContentsItem-level-3, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-3, var(--xmlui-padding-TableOfContentsItem-level-3)))", "paddingRight-TableOfContentsItem-level-3": "var(--xmlui-paddingRight-TableOfContentsItem-level-3, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-3, var(--xmlui-padding-TableOfContentsItem-level-3)))", "paddingTop-TableOfContentsItem-level-3": "var(--xmlui-paddingTop-TableOfContentsItem-level-3, var(--xmlui-paddingVertical-TableOfContentsItem-level-3, var(--xmlui-padding-TableOfContentsItem-level-3)))", "paddingBottom-TableOfContentsItem-level-3": "var(--xmlui-paddingBottom-TableOfContentsItem-level-3, var(--xmlui-paddingVertical-TableOfContentsItem-level-3, var(--xmlui-padding-TableOfContentsItem-level-3)))", "textColor-TableOfContentsItem-level-3": "var(--xmlui-textColor-TableOfContentsItem-level-3)", "fontFamily-TableOfContentsItem-level-3": "var(--xmlui-fontFamily-TableOfContentsItem-level-3)", "fontSize-TableOfContentsItem-level-3": "var(--xmlui-fontSize-TableOfContentsItem-level-3)", "fontStyle-TableOfContentsItem-level-3": "var(--xmlui-fontStyle-TableOfContentsItem-level-3)", "fontVariant-TableOfContentsItem-level-3": "var(--xmlui-fontVariant-TableOfContentsItem-level-3)", "fontWeight-TableOfContentsItem-level-3": "var(--xmlui-fontWeight-TableOfContentsItem-level-3)", "fontStretch-TableOfContentsItem-level-3": "var(--xmlui-fontStretch-TableOfContentsItem-level-3)", "textDecorationLine-TableOfContentsItem-level-3": "var(--xmlui-textDecorationLine-TableOfContentsItem-level-3)", "textDecorationColor-TableOfContentsItem-level-3": "var(--xmlui-textDecorationColor-TableOfContentsItem-level-3)", "textDecorationStyle-TableOfContentsItem-level-3": "var(--xmlui-textDecorationStyle-TableOfContentsItem-level-3)", "textDecorationThickness-TableOfContentsItem-level-3": "var(--xmlui-textDecorationThickness-TableOfContentsItem-level-3)", "textUnderlineOffset-TableOfContentsItem-level-3": "var(--xmlui-textUnderlineOffset-TableOfContentsItem-level-3)", "lineHeight-TableOfContentsItem-level-3": "var(--xmlui-lineHeight-TableOfContentsItem-level-3)", "backgroundColor-TableOfContentsItem-level-3": "var(--xmlui-backgroundColor-TableOfContentsItem-level-3)", "textTransform-TableOfContentsItem-level-3": "var(--xmlui-textTransform-TableOfContentsItem-level-3)", "letterSpacing-TableOfContentsItem-level-3": "var(--xmlui-letterSpacing-TableOfContentsItem-level-3)", "wordSpacing-TableOfContentsItem-level-3": "var(--xmlui-wordSpacing-TableOfContentsItem-level-3)", "textShadow-TableOfContentsItem-level-3": "var(--xmlui-textShadow-TableOfContentsItem-level-3)", "textIndent-TableOfContentsItem-level-3": "var(--xmlui-textIndent-TableOfContentsItem-level-3)", "textAlign-TableOfContentsItem-level-3": "var(--xmlui-textAlign-TableOfContentsItem-level-3)", "textAlignLast-TableOfContentsItem-level-3": "var(--xmlui-textAlignLast-TableOfContentsItem-level-3)", "wordBreak-TableOfContentsItem-level-3": "var(--xmlui-wordBreak-TableOfContentsItem-level-3)", "wordWrap-TableOfContentsItem-level-3": "var(--xmlui-wordWrap-TableOfContentsItem-level-3)", "direction-TableOfContentsItem-level-3": "var(--xmlui-direction-TableOfContentsItem-level-3)", "writingMode-TableOfContentsItem-level-3": "var(--xmlui-writingMode-TableOfContentsItem-level-3)", "lineBreak-TableOfContentsItem-level-3": "var(--xmlui-lineBreak-TableOfContentsItem-level-3)", "padding-TableOfContentsItem-level-4": "var(--xmlui-padding-TableOfContentsItem-level-4)", "paddingHorizontal-TableOfContentsItem-level-4": "var(--xmlui-paddingHorizontal-TableOfContentsItem-level-4, var(--xmlui-padding-TableOfContentsItem-level-4))", "paddingVertical-TableOfContentsItem-level-4": "var(--xmlui-paddingVertical-TableOfContentsItem-level-4, var(--xmlui-padding-TableOfContentsItem-level-4))", "paddingLeft-TableOfContentsItem-level-4": "var(--xmlui-paddingLeft-TableOfContentsItem-level-4, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-4, var(--xmlui-padding-TableOfContentsItem-level-4)))", "paddingRight-TableOfContentsItem-level-4": "var(--xmlui-paddingRight-TableOfContentsItem-level-4, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-4, var(--xmlui-padding-TableOfContentsItem-level-4)))", "paddingTop-TableOfContentsItem-level-4": "var(--xmlui-paddingTop-TableOfContentsItem-level-4, var(--xmlui-paddingVertical-TableOfContentsItem-level-4, var(--xmlui-padding-TableOfContentsItem-level-4)))", "paddingBottom-TableOfContentsItem-level-4": "var(--xmlui-paddingBottom-TableOfContentsItem-level-4, var(--xmlui-paddingVertical-TableOfContentsItem-level-4, var(--xmlui-padding-TableOfContentsItem-level-4)))", "textColor-TableOfContentsItem-level-4": "var(--xmlui-textColor-TableOfContentsItem-level-4)", "fontFamily-TableOfContentsItem-level-4": "var(--xmlui-fontFamily-TableOfContentsItem-level-4)", "fontSize-TableOfContentsItem-level-4": "var(--xmlui-fontSize-TableOfContentsItem-level-4)", "fontStyle-TableOfContentsItem-level-4": "var(--xmlui-fontStyle-TableOfContentsItem-level-4)", "fontVariant-TableOfContentsItem-level-4": "var(--xmlui-fontVariant-TableOfContentsItem-level-4)", "fontWeight-TableOfContentsItem-level-4": "var(--xmlui-fontWeight-TableOfContentsItem-level-4)", "fontStretch-TableOfContentsItem-level-4": "var(--xmlui-fontStretch-TableOfContentsItem-level-4)", "textDecorationLine-TableOfContentsItem-level-4": "var(--xmlui-textDecorationLine-TableOfContentsItem-level-4)", "textDecorationColor-TableOfContentsItem-level-4": "var(--xmlui-textDecorationColor-TableOfContentsItem-level-4)", "textDecorationStyle-TableOfContentsItem-level-4": "var(--xmlui-textDecorationStyle-TableOfContentsItem-level-4)", "textDecorationThickness-TableOfContentsItem-level-4": "var(--xmlui-textDecorationThickness-TableOfContentsItem-level-4)", "textUnderlineOffset-TableOfContentsItem-level-4": "var(--xmlui-textUnderlineOffset-TableOfContentsItem-level-4)", "lineHeight-TableOfContentsItem-level-4": "var(--xmlui-lineHeight-TableOfContentsItem-level-4)", "backgroundColor-TableOfContentsItem-level-4": "var(--xmlui-backgroundColor-TableOfContentsItem-level-4)", "textTransform-TableOfContentsItem-level-4": "var(--xmlui-textTransform-TableOfContentsItem-level-4)", "letterSpacing-TableOfContentsItem-level-4": "var(--xmlui-letterSpacing-TableOfContentsItem-level-4)", "wordSpacing-TableOfContentsItem-level-4": "var(--xmlui-wordSpacing-TableOfContentsItem-level-4)", "textShadow-TableOfContentsItem-level-4": "var(--xmlui-textShadow-TableOfContentsItem-level-4)", "textIndent-TableOfContentsItem-level-4": "var(--xmlui-textIndent-TableOfContentsItem-level-4)", "textAlign-TableOfContentsItem-level-4": "var(--xmlui-textAlign-TableOfContentsItem-level-4)", "textAlignLast-TableOfContentsItem-level-4": "var(--xmlui-textAlignLast-TableOfContentsItem-level-4)", "wordBreak-TableOfContentsItem-level-4": "var(--xmlui-wordBreak-TableOfContentsItem-level-4)", "wordWrap-TableOfContentsItem-level-4": "var(--xmlui-wordWrap-TableOfContentsItem-level-4)", "direction-TableOfContentsItem-level-4": "var(--xmlui-direction-TableOfContentsItem-level-4)", "writingMode-TableOfContentsItem-level-4": "var(--xmlui-writingMode-TableOfContentsItem-level-4)", "lineBreak-TableOfContentsItem-level-4": "var(--xmlui-lineBreak-TableOfContentsItem-level-4)", "padding-TableOfContentsItem-level-5": "var(--xmlui-padding-TableOfContentsItem-level-5)", "paddingHorizontal-TableOfContentsItem-level-5": "var(--xmlui-paddingHorizontal-TableOfContentsItem-level-5, var(--xmlui-padding-TableOfContentsItem-level-5))", "paddingVertical-TableOfContentsItem-level-5": "var(--xmlui-paddingVertical-TableOfContentsItem-level-5, var(--xmlui-padding-TableOfContentsItem-level-5))", "paddingLeft-TableOfContentsItem-level-5": "var(--xmlui-paddingLeft-TableOfContentsItem-level-5, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-5, var(--xmlui-padding-TableOfContentsItem-level-5)))", "paddingRight-TableOfContentsItem-level-5": "var(--xmlui-paddingRight-TableOfContentsItem-level-5, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-5, var(--xmlui-padding-TableOfContentsItem-level-5)))", "paddingTop-TableOfContentsItem-level-5": "var(--xmlui-paddingTop-TableOfContentsItem-level-5, var(--xmlui-paddingVertical-TableOfContentsItem-level-5, var(--xmlui-padding-TableOfContentsItem-level-5)))", "paddingBottom-TableOfContentsItem-level-5": "var(--xmlui-paddingBottom-TableOfContentsItem-level-5, var(--xmlui-paddingVertical-TableOfContentsItem-level-5, var(--xmlui-padding-TableOfContentsItem-level-5)))", "textColor-TableOfContentsItem-level-5": "var(--xmlui-textColor-TableOfContentsItem-level-5)", "fontFamily-TableOfContentsItem-level-5": "var(--xmlui-fontFamily-TableOfContentsItem-level-5)", "fontSize-TableOfContentsItem-level-5": "var(--xmlui-fontSize-TableOfContentsItem-level-5)", "fontStyle-TableOfContentsItem-level-5": "var(--xmlui-fontStyle-TableOfContentsItem-level-5)", "fontVariant-TableOfContentsItem-level-5": "var(--xmlui-fontVariant-TableOfContentsItem-level-5)", "fontWeight-TableOfContentsItem-level-5": "var(--xmlui-fontWeight-TableOfContentsItem-level-5)", "fontStretch-TableOfContentsItem-level-5": "var(--xmlui-fontStretch-TableOfContentsItem-level-5)", "textDecorationLine-TableOfContentsItem-level-5": "var(--xmlui-textDecorationLine-TableOfContentsItem-level-5)", "textDecorationColor-TableOfContentsItem-level-5": "var(--xmlui-textDecorationColor-TableOfContentsItem-level-5)", "textDecorationStyle-TableOfContentsItem-level-5": "var(--xmlui-textDecorationStyle-TableOfContentsItem-level-5)", "textDecorationThickness-TableOfContentsItem-level-5": "var(--xmlui-textDecorationThickness-TableOfContentsItem-level-5)", "textUnderlineOffset-TableOfContentsItem-level-5": "var(--xmlui-textUnderlineOffset-TableOfContentsItem-level-5)", "lineHeight-TableOfContentsItem-level-5": "var(--xmlui-lineHeight-TableOfContentsItem-level-5)", "backgroundColor-TableOfContentsItem-level-5": "var(--xmlui-backgroundColor-TableOfContentsItem-level-5)", "textTransform-TableOfContentsItem-level-5": "var(--xmlui-textTransform-TableOfContentsItem-level-5)", "letterSpacing-TableOfContentsItem-level-5": "var(--xmlui-letterSpacing-TableOfContentsItem-level-5)", "wordSpacing-TableOfContentsItem-level-5": "var(--xmlui-wordSpacing-TableOfContentsItem-level-5)", "textShadow-TableOfContentsItem-level-5": "var(--xmlui-textShadow-TableOfContentsItem-level-5)", "textIndent-TableOfContentsItem-level-5": "var(--xmlui-textIndent-TableOfContentsItem-level-5)", "textAlign-TableOfContentsItem-level-5": "var(--xmlui-textAlign-TableOfContentsItem-level-5)", "textAlignLast-TableOfContentsItem-level-5": "var(--xmlui-textAlignLast-TableOfContentsItem-level-5)", "wordBreak-TableOfContentsItem-level-5": "var(--xmlui-wordBreak-TableOfContentsItem-level-5)", "wordWrap-TableOfContentsItem-level-5": "var(--xmlui-wordWrap-TableOfContentsItem-level-5)", "direction-TableOfContentsItem-level-5": "var(--xmlui-direction-TableOfContentsItem-level-5)", "writingMode-TableOfContentsItem-level-5": "var(--xmlui-writingMode-TableOfContentsItem-level-5)", "lineBreak-TableOfContentsItem-level-5": "var(--xmlui-lineBreak-TableOfContentsItem-level-5)", "padding-TableOfContentsItem-level-6": "var(--xmlui-padding-TableOfContentsItem-level-6)", "paddingHorizontal-TableOfContentsItem-level-6": "var(--xmlui-paddingHorizontal-TableOfContentsItem-level-6, var(--xmlui-padding-TableOfContentsItem-level-6))", "paddingVertical-TableOfContentsItem-level-6": "var(--xmlui-paddingVertical-TableOfContentsItem-level-6, var(--xmlui-padding-TableOfContentsItem-level-6))", "paddingLeft-TableOfContentsItem-level-6": "var(--xmlui-paddingLeft-TableOfContentsItem-level-6, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-6, var(--xmlui-padding-TableOfContentsItem-level-6)))", "paddingRight-TableOfContentsItem-level-6": "var(--xmlui-paddingRight-TableOfContentsItem-level-6, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-6, var(--xmlui-padding-TableOfContentsItem-level-6)))", "paddingTop-TableOfContentsItem-level-6": "var(--xmlui-paddingTop-TableOfContentsItem-level-6, var(--xmlui-paddingVertical-TableOfContentsItem-level-6, var(--xmlui-padding-TableOfContentsItem-level-6)))", "paddingBottom-TableOfContentsItem-level-6": "var(--xmlui-paddingBottom-TableOfContentsItem-level-6, var(--xmlui-paddingVertical-TableOfContentsItem-level-6, var(--xmlui-padding-TableOfContentsItem-level-6)))", "textColor-TableOfContentsItem-level-6": "var(--xmlui-textColor-TableOfContentsItem-level-6)", "fontFamily-TableOfContentsItem-level-6": "var(--xmlui-fontFamily-TableOfContentsItem-level-6)", "fontSize-TableOfContentsItem-level-6": "var(--xmlui-fontSize-TableOfContentsItem-level-6)", "fontStyle-TableOfContentsItem-level-6": "var(--xmlui-fontStyle-TableOfContentsItem-level-6)", "fontVariant-TableOfContentsItem-level-6": "var(--xmlui-fontVariant-TableOfContentsItem-level-6)", "fontWeight-TableOfContentsItem-level-6": "var(--xmlui-fontWeight-TableOfContentsItem-level-6)", "fontStretch-TableOfContentsItem-level-6": "var(--xmlui-fontStretch-TableOfContentsItem-level-6)", "textDecorationLine-TableOfContentsItem-level-6": "var(--xmlui-textDecorationLine-TableOfContentsItem-level-6)", "textDecorationColor-TableOfContentsItem-level-6": "var(--xmlui-textDecorationColor-TableOfContentsItem-level-6)", "textDecorationStyle-TableOfContentsItem-level-6": "var(--xmlui-textDecorationStyle-TableOfContentsItem-level-6)", "textDecorationThickness-TableOfContentsItem-level-6": "var(--xmlui-textDecorationThickness-TableOfContentsItem-level-6)", "textUnderlineOffset-TableOfContentsItem-level-6": "var(--xmlui-textUnderlineOffset-TableOfContentsItem-level-6)", "lineHeight-TableOfContentsItem-level-6": "var(--xmlui-lineHeight-TableOfContentsItem-level-6)", "backgroundColor-TableOfContentsItem-level-6": "var(--xmlui-backgroundColor-TableOfContentsItem-level-6)", "textTransform-TableOfContentsItem-level-6": "var(--xmlui-textTransform-TableOfContentsItem-level-6)", "letterSpacing-TableOfContentsItem-level-6": "var(--xmlui-letterSpacing-TableOfContentsItem-level-6)", "wordSpacing-TableOfContentsItem-level-6": "var(--xmlui-wordSpacing-TableOfContentsItem-level-6)", "textShadow-TableOfContentsItem-level-6": "var(--xmlui-textShadow-TableOfContentsItem-level-6)", "textIndent-TableOfContentsItem-level-6": "var(--xmlui-textIndent-TableOfContentsItem-level-6)", "textAlign-TableOfContentsItem-level-6": "var(--xmlui-textAlign-TableOfContentsItem-level-6)", "textAlignLast-TableOfContentsItem-level-6": "var(--xmlui-textAlignLast-TableOfContentsItem-level-6)", "wordBreak-TableOfContentsItem-level-6": "var(--xmlui-wordBreak-TableOfContentsItem-level-6)", "wordWrap-TableOfContentsItem-level-6": "var(--xmlui-wordWrap-TableOfContentsItem-level-6)", "direction-TableOfContentsItem-level-6": "var(--xmlui-direction-TableOfContentsItem-level-6)", "writingMode-TableOfContentsItem-level-6": "var(--xmlui-writingMode-TableOfContentsItem-level-6)", "lineBreak-TableOfContentsItem-level-6": "var(--xmlui-lineBreak-TableOfContentsItem-level-6)", "marginTop-TableOfContents": "var(--xmlui-marginTop-TableOfContents)", "marginBottom-TableOfContents": "var(--xmlui-marginBottom-TableOfContents)", "backgroundColor-TableOfContentsItem--hover": "var(--xmlui-backgroundColor-TableOfContentsItem--hover)", "fontWeight-TableOfContentsItem--hover": "var(--xmlui-fontWeight-TableOfContentsItem--hover)", "textColor-TableOfContentsItem--hover": "var(--xmlui-textColor-TableOfContentsItem--hover)", "fontWeight-TableOfContentsItem-level-1--hover": "var(--xmlui-fontWeight-TableOfContentsItem-level-1--hover)", "fontWeight-TableOfContentsItem-level-2--hover": "var(--xmlui-fontWeight-TableOfContentsItem-level-2--hover)", "fontWeight-TableOfContentsItem-level-3--hover": "var(--xmlui-fontWeight-TableOfContentsItem-level-3--hover)", "fontWeight-TableOfContentsItem-level-4--hover": "var(--xmlui-fontWeight-TableOfContentsItem-level-4--hover)", "fontWeight-TableOfContentsItem-level-5--hover": "var(--xmlui-fontWeight-TableOfContentsItem-level-5--hover)", "fontWeight-TableOfContentsItem-level-6--hover": "var(--xmlui-fontWeight-TableOfContentsItem-level-6--hover)", "backgroundColor-TableOfContentsItem--active": "var(--xmlui-backgroundColor-TableOfContentsItem--active)", "color-TableOfContentsItem--active": "var(--xmlui-color-TableOfContentsItem--active)", "fontWeight-TableOfContentsItem--active": "var(--xmlui-fontWeight-TableOfContentsItem--active)", "fontWeight-TableOfContentsItem-level-1--active": "var(--xmlui-fontWeight-TableOfContentsItem-level-1--active)", "fontWeight-TableOfContentsItem-level-2--active": "var(--xmlui-fontWeight-TableOfContentsItem-level-2--active)", "fontWeight-TableOfContentsItem-level-3--active": "var(--xmlui-fontWeight-TableOfContentsItem-level-3--active)", "fontWeight-TableOfContentsItem-level-4--active": "var(--xmlui-fontWeight-TableOfContentsItem-level-4--active)", "fontWeight-TableOfContentsItem-level-5--active": "var(--xmlui-fontWeight-TableOfContentsItem-level-5--active)", "fontWeight-TableOfContentsItem-level-6--active": "var(--xmlui-fontWeight-TableOfContentsItem-level-6--active)"}'`,nav:"_nav_ptcge_13",list:"_list_ptcge_57",listItem:"_listItem_ptcge_62",link:"_link_ptcge_85",head_1:"_head_1_ptcge_120",head_2:"_head_2_ptcge_152",head_3:"_head_3_ptcge_184",head_4:"_head_4_ptcge_216",head_5:"_head_5_ptcge_248",head_6:"_head_6_ptcge_280",active:"_active_ptcge_357"},mhe=e=>typeof e=="object"&&e!=null&&e.nodeType===1,phe=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Z6=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return phe(r.overflowY,t)||phe(r.overflowX,t)||(n=>{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)})(e)}return!1},J6=(e,t,r,n,o,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=r||a>=t&&l>=r?i-e-n:a>t&&l<r||i<e&&l>r?a-t+o:0,r3t=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},hhe=(e,t)=>{var r,n,o,i;if(typeof document>"u")return[];const{scrollMode:a,block:l,inline:s,boundary:u,skipOverflowHiddenElements:c}=t,d=typeof u=="function"?u:G=>G!==u;if(!mhe(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;mhe(h)&&d(h);){if(h=r3t(h),h===f){p.push(h);break}h!=null&&h===document.body&&Z6(h)&&!Z6(document.documentElement)||h!=null&&Z6(h,c)&&p.push(h)}const v=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,b=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:y,scrollY:w}=window,{height:k,width:E,top:_,right:S,bottom:A,left:O}=e.getBoundingClientRect(),{top:I,right:L,bottom:P,left:H}=(G=>{const z=window.getComputedStyle(G);return{top:parseFloat(z.scrollMarginTop)||0,right:parseFloat(z.scrollMarginRight)||0,bottom:parseFloat(z.scrollMarginBottom)||0,left:parseFloat(z.scrollMarginLeft)||0}})(e);let j=l==="start"||l==="nearest"?_-I:l==="end"?A+P:_+k/2-I+P,W=s==="center"?O+E/2-H+L:s==="end"?S+L:O-H;const B=[];for(let G=0;G<p.length;G++){const z=p[G],{height:F,width:V,top:N,right:Y,bottom:q,left:M}=z.getBoundingClientRect();if(a==="if-needed"&&_>=0&&O>=0&&A<=b&&S<=v&&(z===f&&!Z6(z)||_>=N&&A<=q&&O>=M&&S<=Y))return B;const K=getComputedStyle(z),ee=parseInt(K.borderLeftWidth,10),ae=parseInt(K.borderTopWidth,10),oe=parseInt(K.borderRightWidth,10),ue=parseInt(K.borderBottomWidth,10);let le=0,pe=0;const fe="offsetWidth"in z?z.offsetWidth-z.clientWidth-ee-oe:0,J="offsetHeight"in z?z.offsetHeight-z.clientHeight-ae-ue:0,X="offsetWidth"in z?z.offsetWidth===0?0:V/z.offsetWidth:0,te="offsetHeight"in z?z.offsetHeight===0?0:F/z.offsetHeight:0;if(f===z)le=l==="start"?j:l==="end"?j-b:l==="nearest"?J6(w,w+b,b,ae,ue,w+j,w+j+k,k):j-b/2,pe=s==="start"?W:s==="center"?W-v/2:s==="end"?W-v:J6(y,y+v,v,ee,oe,y+W,y+W+E,E),le=Math.max(0,le+w),pe=Math.max(0,pe+y);else{le=l==="start"?j-N-ae:l==="end"?j-q+ue+J:l==="nearest"?J6(N,q,F,ae,ue+J,j,j+k,k):j-(N+F/2)+J/2,pe=s==="start"?W-M-ee:s==="center"?W-(M+V/2)+fe/2:s==="end"?W-Y+oe+fe:J6(M,Y,V,ee,oe+fe,W,W+E,E);const{scrollLeft:ie,scrollTop:de}=z;le=te===0?0:Math.max(0,Math.min(de+le/te,z.scrollHeight-F/te+J)),pe=X===0?0:Math.max(0,Math.min(ie+pe/X,z.scrollWidth-V/X+fe)),j+=de-le,W+=ie-pe}B.push({el:z,top:le,left:pe})}return B},n3t=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function o3t(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const r=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(hhe(e,t));const n=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of hhe(e,n3t(t))){const l=i-r.top+r.bottom,s=a-r.left+r.right;o.scroll({top:l,left:s,behavior:n})}}const N2={smoothScrolling:!1,maxHeadingLevel:6,omitH1:!1},i3t=m.forwardRef(function({style:t,smoothScrolling:r=N2.smoothScrolling,maxHeadingLevel:n=N2.maxHeadingLevel,omitH1:o=N2.omitH1},i){const a=m.useRef(null),{headings:l,scrollToAnchor:s,subscribeToActiveAnchorChange:u,activeAnchorId:c}=gGe(),[d,f]=m.useState(c);Sn(()=>u(h=>{const v=l.find(b=>b.id===h);(v==null?void 0:v.level)<=n&&f(h)}),[l,n,u]);const p=i?Un(a,i):a;return m.useEffect(()=>{if(d&&(a!=null&&a.current)){const h=a.current.querySelector(`#${d}`);h&&o3t(h,{block:"center",inline:"center",behavior:"smooth",scrollMode:"always",boundary:a.current})}},[d,l]),C.jsx("div",{className:Ps.nav,ref:p,style:t,children:C.jsx("ul",{className:Ps.list,children:l.map(h=>h.level<=n&&(!o||h.level!==1)?C.jsx("li",{className:ze(Ps.listItem,{[Ps.active]:h.id===d}),children:C.jsx(WP,{className:ze(Ps.link,{[Ps.head_1]:h.level===1,[Ps.head_2]:h.level===2,[Ps.head_3]:h.level===3,[Ps.head_4]:h.level===4,[Ps.head_5]:h.level===5,[Ps.head_6]:h.level===6}),to:`#${h.id}`,onClick:v=>{!v.ctrlKey&&!v.metaKey&&!v.metaKey&&v.preventDefault(),s(h.id,r)},id:h.id,children:h.text})},h.id):null)})})}),ghe="TableOfContents",vi="TableOfContentsItem",vhe={status:"stable",description:"`TableOfContents` component collects [Heading](/components/Heading) and [Bookmark](/components/Bookmark) within the current page and displays them in a navigable tree.",props:{smoothScrolling:{description:"This property indicates that smooth scrolling is used while scrolling the selected table of contents items into view.",valueType:"boolean",defaultValue:N2.smoothScrolling},maxHeadingLevel:{description:"Defines the maximum heading level (1 to 6) to include in the table of contents. For example, if it is 2, then `H1` and `H2` are displayed, but lower levels (`H3` to `H6`) are not.",valueType:"number",defaultValue:N2.maxHeadingLevel},omitH1:{description:"If true, the `H1` heading is not included in the table of contents. This is useful when the `H1` is used for the page title and you want to avoid duplication.",valueType:"boolean",defaultValue:!1}},themeVars:Ze(Ps.themeVars),defaultThemeVars:{[`padding-${ghe}`]:"$space-2",[`textColor-${vi}`]:"$color-secondary-500",[`textColor-${vi}--hover`]:"$textColor-primary",[`fontSize-${vi}`]:"$fontSize-small",[`wordWrap-${vi}`]:"break-word",[`paddingVertical-${vi}`]:"$space-1",[`paddingLeft-${vi}`]:"$space-1",[`paddingLeft-${vi}-level-2`]:"$space-3",[`paddingLeft-${vi}-level-3`]:"$space-5",[`paddingLeft-${vi}-level-4`]:"$space-6",[`paddingLeft-${vi}-level-5`]:"$space-6",[`paddingLeft-${vi}-level-6`]:"$space-6",[`fontWeight-${vi}`]:"$fontWeight-bold",[`fontWeight-${vi}-level-3`]:"normal",[`fontWeight-${vi}-level-4`]:"normal",[`fontWeight-${vi}-level-5`]:"normal",[`fontWeight-${vi}-level-6`]:"normal",[`fontStyle-${vi}-level-6`]:"italic",[`color-${vi}--active`]:"$color-primary-500"}};function a3t(e){const{indexing:t}=ZE();return t?null:C.jsx(i3t,{...e})}const l3t=we(ghe,vhe,({layoutCss:e,node:t,extractValue:r})=>{var n,o,i;return C.jsx(a3t,{style:e,smoothScrolling:r.asOptionalBoolean((n=t.props)==null?void 0:n.smoothScrolling),maxHeadingLevel:r.asOptionalNumber((o=t.props)==null?void 0:o.maxHeadingLevel),omitH1:r.asOptionalBoolean((i=t.props)==null?void 0:i.omitH1)})}),qd={themeVars:`'{"border-Accordion": "var(--xmlui-border-Accordion)", "borderHorizontal-Accordion": "var(--xmlui-borderHorizontal-Accordion, var(--xmlui-border-Accordion))", "borderVertical-Accordion": "var(--xmlui-borderVertical-Accordion, var(--xmlui-border-Accordion))", "borderLeft-Accordion": "var(--xmlui-borderLeft-Accordion, var(--xmlui-borderHorizontal-Accordion, var(--xmlui-border-Accordion)))", "borderRight-Accordion": "var(--xmlui-borderRight-Accordion, var(--xmlui-borderHorizontal-Accordion, var(--xmlui-border-Accordion)))", "borderTop-Accordion": "var(--xmlui-borderTop-Accordion, var(--xmlui-borderVertical-Accordion, var(--xmlui-border-Accordion)))", "borderBottom-Accordion": "var(--xmlui-borderBottom-Accordion, var(--xmlui-borderVertical-Accordion, var(--xmlui-border-Accordion)))", "borderWidth-Accordion": "var(--xmlui-borderWidth-Accordion)", "borderHorizontalWidth-Accordion": "var(--xmlui-borderHorizontalWidth-Accordion, var(--xmlui-borderWidth-Accordion))", "borderLeftWidth-Accordion": "var(--xmlui-borderLeftWidth-Accordion, var(--xmlui-borderHorizontalWidth-Accordion, var(--xmlui-borderWidth-Accordion)))", "borderRightWidth-Accordion": "var(--xmlui-borderRightWidth-Accordion, var(--xmlui-borderHorizontalWidth-Accordion, var(--xmlui-borderWidth-Accordion)))", "borderVerticalWidth-Accordion": "var(--xmlui-borderVerticalWidth-Accordion, var(--xmlui-borderWidth-Accordion))", "borderTopWidth-Accordion": "var(--xmlui-borderTopWidth-Accordion, var(--xmlui-borderVerticalWidth-Accordion, var(--xmlui-borderWidth-Accordion)))", "borderBottomWidth-Accordion": "var(--xmlui-borderBottomWidth-Accordion, var(--xmlui-borderVerticalWidth-Accordion, var(--xmlui-borderWidth-Accordion)))", "borderStyle-Accordion": "var(--xmlui-borderStyle-Accordion)", "borderHorizontalStyle-Accordion": "var(--xmlui-borderHorizontalStyle-Accordion, var(--xmlui-borderStyle-Accordion))", "borderLeftStyle-Accordion": "var(--xmlui-borderLeftStyle-Accordion, var(--xmlui-borderHorizontalStyle-Accordion, var(--xmlui-borderStyle-Accordion)))", "borderRightStyle-Accordion": "var(--xmlui-borderRightStyle-Accordion, var(--xmlui-borderHorizontalStyle-Accordion, var(--xmlui-borderStyle-Accordion)))", "borderVerticalStyle-Accordion": "var(--xmlui-borderVerticalStyle-Accordion, var(--xmlui-borderStyle-Accordion))", "borderTopStyle-Accordion": "var(--xmlui-borderTopStyle-Accordion, var(--xmlui-borderVerticalStyle-Accordion, var(--xmlui-borderStyle-Accordion)))", "borderBottomStyle-Accordion": "var(--xmlui-borderBottomStyle-Accordion, var(--xmlui-borderVerticalStyle-Accordion, var(--xmlui-borderStyle-Accordion)))", "borderColor-Accordion": "var(--xmlui-borderColor-Accordion)", "borderHorizontalColor-Accordion": "var(--xmlui-borderHorizontalColor-Accordion, var(--xmlui-borderColor-Accordion))", "borderLeftColor-Accordion": "var(--xmlui-borderLeftColor-Accordion, var(--xmlui-borderHorizontalColor-Accordion, var(--xmlui-borderColor-Accordion)))", "borderRightColor-Accordion": "var(--xmlui-borderRightColor-Accordion, var(--xmlui-borderHorizontalColor-Accordion, var(--xmlui-borderColor-Accordion)))", "borderVerticalColor-Accordion": "var(--xmlui-borderVerticalColor-Accordion, var(--xmlui-borderColor-Accordion))", "borderTopColor-Accordion": "var(--xmlui-borderTopColor-Accordion, var(--xmlui-borderVerticalColor-Accordion, var(--xmlui-borderColor-Accordion)))", "borderBottomColor-Accordion": "var(--xmlui-borderBottomColor-Accordion, var(--xmlui-borderVerticalColor-Accordion, var(--xmlui-borderColor-Accordion)))", "borderStartStartRadius-Accordion": "var(--xmlui-borderStartStartRadius-Accordion, var(--xmlui-borderRadius-Accordion))", "borderStartEndRadius-Accordion": "var(--xmlui-borderStartEndRadius-Accordion, var(--xmlui-borderRadius-Accordion))", "borderEndStartRadius-Accordion": "var(--xmlui-borderEndStartRadius-Accordion, var(--xmlui-borderRadius-Accordion))", "borderEndEndRadius-Accordion": "var(--xmlui-borderEndEndRadius-Accordion, var(--xmlui-borderRadius-Accordion))", "padding-Accordion": "var(--xmlui-padding-Accordion)", "paddingHorizontal-Accordion": "var(--xmlui-paddingHorizontal-Accordion, var(--xmlui-padding-Accordion))", "paddingVertical-Accordion": "var(--xmlui-paddingVertical-Accordion, var(--xmlui-padding-Accordion))", "paddingLeft-Accordion": "var(--xmlui-paddingLeft-Accordion, var(--xmlui-paddingHorizontal-Accordion, var(--xmlui-padding-Accordion)))", "paddingRight-Accordion": "var(--xmlui-paddingRight-Accordion, var(--xmlui-paddingHorizontal-Accordion, var(--xmlui-padding-Accordion)))", "paddingTop-Accordion": "var(--xmlui-paddingTop-Accordion, var(--xmlui-paddingVertical-Accordion, var(--xmlui-padding-Accordion)))", "paddingBottom-Accordion": "var(--xmlui-paddingBottom-Accordion, var(--xmlui-paddingVertical-Accordion, var(--xmlui-padding-Accordion)))", "borderRadius-Accordion": "var(--xmlui-borderRadius-Accordion)", "verticalAlignment-header-Accordion": "var(--xmlui-verticalAlignment-header-Accordion)", "fontSize-header-Accordion": "var(--xmlui-fontSize-header-Accordion)", "fontWeight-header-Accordion": "var(--xmlui-fontWeight-header-Accordion)", "fontStyle-header-Accordion": "var(--xmlui-fontStyle-header-Accordion)", "paddingVertical-header-Accordion": "var(--xmlui-paddingVertical-header-Accordion)", "paddingHorizontal-header-Accordion": "var(--xmlui-paddingHorizontal-header-Accordion)", "backgroundColor-header-Accordion": "var(--xmlui-backgroundColor-header-Accordion)", "color-header-Accordion": "var(--xmlui-color-header-Accordion)", "backgroundColor-header-Accordion-hover": "var(--xmlui-backgroundColor-header-Accordion-hover)", "color-content-Accordion": "var(--xmlui-color-content-Accordion)", "backgroundColor-content-Accordion": "var(--xmlui-backgroundColor-content-Accordion)", "width-icon-Accordion": "var(--xmlui-width-icon-Accordion)", "height-icon-Accordion": "var(--xmlui-height-icon-Accordion)", "color-icon-Accordion": "var(--xmlui-color-icon-Accordion)"}'`,root:"_root_n4tjx_13",item:"_item_n4tjx_44",header:"_header_n4tjx_63",trigger:"_trigger_n4tjx_68",triggerStart:"_triggerStart_n4tjx_86",contentWrapper:"_contentWrapper_n4tjx_90",content:"_content_n4tjx_90",chevron:"_chevron_n4tjx_106"};function s3t(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function u3t(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var ED="Collapsible",[c3t,bhe]=Cu(ED),[d3t,AD]=c3t(ED),xhe=m.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:i,onOpenChange:a,...l}=e,[s=!1,u]=gm({prop:n,defaultProp:o,onChange:a});return C.jsx(d3t,{scope:r,disabled:i,contentId:Fi(),open:s,onOpenToggle:m.useCallback(()=>u(c=>!c),[u]),children:C.jsx(Ot.div,{"data-state":ID(s),"data-disabled":i?"":void 0,...l,ref:t})})});xhe.displayName=ED;var yhe="CollapsibleTrigger",whe=m.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=AD(yhe,r);return C.jsx(Ot.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":ID(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:u3t(e.onClick,o.onOpenToggle)})});whe.displayName=yhe;var OD="CollapsibleContent",Che=m.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=AD(OD,e.__scopeCollapsible);return C.jsx($h,{present:r||o.open,children:({present:i})=>C.jsx(f3t,{...n,ref:t,present:i})})});Che.displayName=OD;var f3t=m.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...i}=e,a=AD(OD,r),[l,s]=m.useState(n),u=m.useRef(null),c=Qt(t,u),d=m.useRef(0),f=d.current,p=m.useRef(0),h=p.current,v=a.open||l,b=m.useRef(v),y=m.useRef(void 0);return m.useEffect(()=>{const w=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(w)},[]),Qr(()=>{const w=u.current;if(w){y.current=y.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const k=w.getBoundingClientRect();d.current=k.height,p.current=k.width,b.current||(w.style.transitionDuration=y.current.transitionDuration,w.style.animationName=y.current.animationName),s(n)}},[a.open,n]),C.jsx(Ot.div,{"data-state":ID(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!v,...i,ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:v&&o})});function ID(e){return e?"open":"closed"}var m3t=xhe,p3t=whe,h3t=Che,Gd="Accordion",g3t=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[RD,v3t,b3t]=$H(Gd),[e4,Ehr]=Cu(Gd,[b3t,bhe]),PD=bhe(),khe=Z.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,i=n;return C.jsx(RD.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?C.jsx(C3t,{...i,ref:t}):C.jsx(w3t,{...o,ref:t})})});khe.displayName=Gd;var[_he,x3t]=e4(Gd),[The,y3t]=e4(Gd,{collapsible:!1}),w3t=Z.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[l,s]=gm({prop:r,defaultProp:n,onChange:o});return C.jsx(_he,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:Z.useCallback(()=>i&&s(""),[i,s]),children:C.jsx(The,{scope:e.__scopeAccordion,collapsible:i,children:C.jsx(She,{...a,ref:t})})})}),C3t=Z.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...i}=e,[a=[],l]=gm({prop:r,defaultProp:n,onChange:o}),s=Z.useCallback(c=>l((d=[])=>[...d,c]),[l]),u=Z.useCallback(c=>l((d=[])=>d.filter(f=>f!==c)),[l]);return C.jsx(_he,{scope:e.__scopeAccordion,value:a,onItemOpen:s,onItemClose:u,children:C.jsx(The,{scope:e.__scopeAccordion,collapsible:!0,children:C.jsx(She,{...i,ref:t})})})}),[k3t,t4]=e4(Gd),She=Z.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:i="vertical",...a}=e,l=Z.useRef(null),s=Qt(l,t),u=v3t(r),d=DH(o)==="ltr",f=s3t(e.onKeyDown,p=>{var O;if(!g3t.includes(p.key))return;const h=p.target,v=u().filter(I=>{var L;return!((L=I.ref.current)!=null&&L.disabled)}),b=v.findIndex(I=>I.ref.current===h),y=v.length;if(b===-1)return;p.preventDefault();let w=b;const k=0,E=y-1,_=()=>{w=b+1,w>E&&(w=k)},S=()=>{w=b-1,w<k&&(w=E)};switch(p.key){case"Home":w=k;break;case"End":w=E;break;case"ArrowRight":i==="horizontal"&&(d?_():S());break;case"ArrowDown":i==="vertical"&&_();break;case"ArrowLeft":i==="horizontal"&&(d?S():_());break;case"ArrowUp":i==="vertical"&&S();break}const A=w%y;(O=v[A].ref.current)==null||O.focus()});return C.jsx(k3t,{scope:r,disabled:n,direction:o,orientation:i,children:C.jsx(RD.Slot,{scope:r,children:C.jsx(Ot.div,{...a,"data-orientation":i,ref:s,onKeyDown:n?void 0:f})})})}),r4="AccordionItem",[_3t,LD]=e4(r4),Ehe=Z.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,i=t4(r4,r),a=x3t(r4,r),l=PD(r),s=Fi(),u=n&&a.value.includes(n)||!1,c=i.disabled||e.disabled;return C.jsx(_3t,{scope:r,open:u,disabled:c,triggerId:s,children:C.jsx(m3t,{"data-orientation":i.orientation,"data-state":Lhe(u),...l,...o,ref:t,disabled:c,open:u,onOpenChange:d=>{d?a.onItemOpen(n):a.onItemClose(n)}})})});Ehe.displayName=r4;var Ahe="AccordionHeader",Ohe=Z.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=t4(Gd,r),i=LD(Ahe,r);return C.jsx(Ot.h3,{"data-orientation":o.orientation,"data-state":Lhe(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});Ohe.displayName=Ahe;var HD="AccordionTrigger",Ihe=Z.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=t4(Gd,r),i=LD(HD,r),a=y3t(HD,r),l=PD(r);return C.jsx(RD.ItemSlot,{scope:r,children:C.jsx(p3t,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...l,...n,ref:t})})});Ihe.displayName=HD;var Rhe="AccordionContent",Phe=Z.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=t4(Gd,r),i=LD(Rhe,r),a=PD(r);return C.jsx(h3t,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Phe.displayName=Rhe;function Lhe(e){return e?"open":"closed"}var T3t=khe,S3t=Ehe,E3t=Ohe,A3t=Ihe,O3t=Phe;const Hhe=m.createContext({expandedItems:null,rotateExpanded:null,expandItem:bt,register:bt,unRegister:bt,hideIcon:null,expandedIcon:null,collapsedIcon:null,triggerPosition:null});function I3t(){return m.useContext(Hhe)}const Fm={hideIcon:!1,collapsedIcon:"chevrondown",triggerPosition:"end",rotateExpanded:"180deg"},R3t=m.forwardRef(function({style:t,children:r,hideIcon:n=Fm.hideIcon,expandedIcon:o,collapsedIcon:i=Fm.collapsedIcon,triggerPosition:a=Fm.triggerPosition,onDisplayDidChange:l=bt,registerComponentApi:s,rotateExpanded:u=Fm.rotateExpanded},c){const[d,f]=m.useState([]),[p,h]=m.useState(new Set),v=m.useCallback(A=>{f(O=>O.filter(I=>I!==`${A}`))},[f]),b=m.useCallback(A=>{d.includes(`${A}`)||f(O=>[...O,`${A}`])},[f,d]),y=m.useCallback(A=>{d.includes(`${A}`)?v(A):b(A)},[v,b,d]),w=m.useCallback(A=>{h(O=>(O.add(A),O))},[h]),k=m.useCallback(A=>{h(O=>(O.delete(A),O))},[h]),E=m.useCallback(A=>{if(p.has(`trigger_${A}`)){const O=document.getElementById(`trigger_${A}`);O&&O.focus()}},[p]),_=m.useCallback(A=>d.includes(`${A}`),[d]);m.useEffect(()=>{s==null||s({expanded:_,expand:b,collapse:v,toggle:y,focus:E})},[s,b,v,y,E,_]);const S=m.useMemo(()=>({register:w,unRegister:k,expandItem:b,expandedItems:d,hideIcon:n,expandedIcon:o,collapsedIcon:i,triggerPosition:a,rotateExpanded:u}),[w,k,d,n,o,i,a,b,u]);return m.useEffect(()=>{l==null||l(d)},[d,l]),C.jsx(Hhe.Provider,{value:S,children:C.jsx(T3t,{style:t,ref:c,value:d,type:"multiple",className:qd.root,onValueChange:A=>f(A),children:r})})}),Xn="Accordion",Nhe={status:"in progress",description:`(**NOT IMPLEMENTED YET**) The \`${Xn}\` component is a collapsible container that toggles the display of content sections. It helps organize information by expanding or collapsing it based on user interaction.`,props:{triggerPosition:{description:"This property indicates the position where the trigger icon should be displayed. The `start` value signs the trigger is before the header text (template), and `end` indicates that it follows the header.",defaultValue:Fm.triggerPosition,valueType:"string",availableValues:v7e},collapsedIcon:{description:"This property is the name of the icon that is displayed when the accordion is collapsed. This property is the name of the icon that is displayed when the accordion is expanded. If not provided, a chevron-down icon is used.",valueType:"string",defaultValue:Fm.collapsedIcon},expandedIcon:{description:"This property is the name of the icon that is displayed when the accordion is expanded. If not provided, a chevron-up icon is used.",valueType:"string"},hideIcon:{description:"This property indicates that the trigger icon is not displayed (`true`).",defaultValue:Fm.hideIcon,valueType:"boolean"},rotateExpanded:{description:"This optional property defines the rotation angle of the expanded icon (relative to the collapsed icon).",valueType:"string",defaultValue:Fm.rotateExpanded}},events:{displayDidChange:Ei(Xn)},apis:{expanded:_7e(Xn),expand:T7e(Xn),collapse:S7e(Xn),toggle:{description:`This method toggles the state of the ${Xn} between expanded and collapsed.`},focus:au(Xn)},themeVars:Ze(qd.themeVars),defaultThemeVars:{[`paddingHorizontal-header-${Xn}`]:"$space-3",[`paddingVertical-header-${Xn}`]:"$space-3",[`verticalAlignment-header-${Xn}`]:"center",[`fontSize-header-${Xn}`]:"$fontSize-normal",[`fontWeight-header-${Xn}`]:"$fontWeight-normal",[`fontFamily-header-${Xn}`]:"$fontFamily",[`border-${Xn}`]:"0px solid $borderColor",[`width-icon-${Xn}`]:"",[`height-icon-${Xn}`]:"",[`backgroundColor-header-${Xn}`]:"$color-primary-500",[`backgroundColor-header-${Xn}-hover`]:"$color-primary-400",[`color-header-${Xn}`]:"$color-surface-50",[`color-content-${Xn}`]:"$textColor-primary",[`backgroundColor-content-${Xn}`]:"transparent",[`color-icon-${Xn}`]:"$color-surface-50"}},P3t=we(Xn,Nhe,({node:e,renderChild:t,extractValue:r,lookupEventHandler:n,registerComponentApi:o,layoutCss:i})=>{var a;return C.jsx(R3t,{style:i,triggerPosition:r((a=e.props)==null?void 0:a.triggerPosition),collapsedIcon:r(e.props.collapsedIcon),expandedIcon:r(e.props.expandedIcon),hideIcon:r.asOptionalBoolean(e.props.hideIcon),rotateExpanded:r(e.props.rotateExpanded),onDisplayDidChange:n("displayDidChange"),registerComponentApi:o,children:t(e.children)})}),$he=m.forwardRef(function({children:t,label:r,style:n},o){const i=m.useId(),{register:a,unRegister:l,activeTabId:s}=YSt();return m.useEffect(()=>{a({label:r,id:i})},[i,r,a]),m.useEffect(()=>()=>{l(i)},[i,l]),s!==i?null:C.jsx(qSt,{value:i,className:ig.tabsContent,ref:o,style:n,children:t},i)}),L3t="TabItem",Dhe={status:"stable",description:"`TabItem` defines individual tabs within a [Tabs](/components/Tabs) component, providing both the tab header label and the content that displays when the tab is selected. As a non-visual structural component, it serves as a container that organizes content into distinct, switchable sections.",docFolder:"Tabs",props:{label:io()}},H3t=we(L3t,Dhe,e=>{const{node:t,renderChild:r,extractValue:n}=e;return C.jsx($he,{label:n(t.props.label),children:r(t.children)})});function N3t(e){return C.jsx("div",{children:e})}const ND={initiallyExpanded:!1,headerRenderer:N3t},$3t=m.forwardRef(function({id:t,header:r,headerRenderer:n=ND.headerRenderer,content:o,initiallyExpanded:i=ND.initiallyExpanded,style:a},l){const s=m.useId(),u=m.useMemo(()=>t?`${t}`:s,[t,s]),c=m.useMemo(()=>`trigger_${u}`,[u]),{rotateExpanded:d,expandedItems:f,hideIcon:p,expandedIcon:h,collapsedIcon:v,triggerPosition:b,expandItem:y,register:w,unRegister:k}=I3t(),E=m.useMemo(()=>f.includes(u),[u,f]),[_,S]=m.useState(!1);return m.useEffect(()=>{_||(S(!0),i&&y(u))},[y,u,i,_]),m.useEffect(()=>{w(c)},[w,c]),m.useEffect(()=>()=>{k(c)},[c,k]),C.jsxs(S3t,{value:u,className:qd.item,ref:l,style:a,children:[C.jsx(E3t,{className:qd.header,children:C.jsxs(A3t,{id:`trigger_${u}`,className:ze(qd.trigger,{[qd.triggerStart]:b==="start"}),children:[n(r),!p&&C.jsx("span",{style:{transform:E&&!h?`rotate(${d})`:"rotate(0deg)",transition:"transform 300ms cubic-bezier(0.87, 0, 0.13, 1)"},children:C.jsx(xt,{name:E&&h||v,className:qd.chevron})})]})}),C.jsx(O3t,{className:qd.contentWrapper,children:C.jsx("div",{className:qd.content,children:o})})]},u)}),n4="AccordionItem",D3t={status:"in progress",description:`\`${n4}\` is a non-visual component describing a tab. Tabs component may use nested ${n4} instances from which the user can select.`,props:{header:{description:"This property declares the text used in the component's header. If not provided, the header will be empty.",valueType:"string"},headerTemplate:xr("This property describes the template to use as the component's header."),initiallyExpanded:{description:`This property indicates if the ${n4} is expanded (\`true\`) or collapsed (\`false\`).`,valueType:"boolean",defaultValue:ND.initiallyExpanded}}},B3t=we(n4,D3t,e=>{const{node:t,renderChild:r,extractValue:n,layoutCss:o}=e;return C.jsx($3t,{style:o,id:n(t.uid),header:n(t.props.header),initiallyExpanded:n.asOptionalBoolean(t.props.initiallyExpanded),headerRenderer:t.props.headerTemplate?i=>C.jsx(Oi,{node:t.props.headerTemplate??{type:"Fragment"},item:i,renderChild:r}):void 0,content:r(t.children)})}),tn="Slider",Bhe={status:"stable",description:"`Slider` provides an interactive control for selecting numeric values within a defined range, supporting both single value selection and range selection with multiple thumbs. It offers precise control through customizable steps and visual feedback with formatted value display.",props:{initialValue:Ba(),label:io(),labelPosition:$a("top"),labelWidth:Da(tn),labelBreak:hl(tn),minValue:{description:"This property specifies the minimum value of the allowed input range.",valueType:"number",defaultValue:ha.min},maxValue:{description:"This property specifies the maximum value of the allowed input range.",valueType:"number",defaultValue:ha.max},step:{description:"This property defines the increment value for the slider, determining the allowed intervals between selectable values.",defaultValue:ha.step},minStepsBetweenThumbs:re("This property sets the minimum number of steps required between multiple thumbs on the slider, ensuring they maintain a specified distance.",void 0,"number",ha.minStepsBetweenThumbs),enabled:So(),autoFocus:Bi(),required:bl(),readOnly:gl(),validationStatus:{...vl(),defaultValue:ha.validationStatus},rangeStyle:re("This optional property allows you to apply custom styles to the range element of the slider."),thumbStyle:re("This optional property allows you to apply custom styles to the thumb elements of the slider."),showValues:{description:"This property controls whether the slider shows the current values of the thumbs.",valueType:"boolean",defaultValue:ha.showValues},valueFormat:{description:"This property allows you to customize how the values are displayed.",valueType:"any",defaultValue:"(value) => value.toString()"}},events:{didChange:Ei(tn),gotFocus:Ha(tn),lostFocus:Na(tn)},apis:{focus:au(tn),value:Fv(),setValue:us()},themeVars:Ze(pa.themeVars),defaultThemeVars:{[`backgroundColor-track-${tn}`]:"$color-surface-200",[`backgroundColor-range-${tn}`]:"$color-primary",[`borderWidth-thumb-${tn}`]:"2px",[`borderStyle-thumb-${tn}`]:"solid",[`borderColor-thumb-${tn}`]:"$color-surface-50",[`backgroundColor-thumb-${tn}`]:"$color-primary",[`boxShadow-thumb-${tn}`]:"$boxShadow-md",[`boxShadow-thumb-${tn}--hover`]:"$boxShadow-lg",[`boxShadow-thumb-${tn}--focus`]:"$boxShadow-xl",[`borderRadius-${tn}-default`]:"$borderRadius",[`borderColor-${tn}-default`]:"transparent",[`borderWidth-${tn}-default`]:"0",[`borderStyle-${tn}-default`]:"solid",[`boxShadow-${tn}-default`]:"none",light:{[`backgroundColor-track-${tn}--disabled`]:"$color-surface-300",[`backgroundColor-range-${tn}--disabled`]:"$color-surface-400",[`backgroundColor-thumb-${tn}`]:"$color-primary-500",[`borderColor-thumb-${tn}`]:"$color-surface-50"},dark:{[`backgroundColor-track-${tn}--disabled`]:"$color-surface-600",[`backgroundColor-range-${tn}--disabled`]:"$color-surface-800",[`backgroundColor-thumb-${tn}`]:"$color-primary-400",[`borderColor-thumb-${tn}`]:"$color-surface-950"}}},j3t=we(tn,Bhe,({node:e,extractValue:t,lookupEventHandler:r,lookupSyncCallback:n,layoutCss:o,updateState:i,state:a,registerComponentApi:l})=>{var s,u,c,d,f,p,h,v,b;return C.jsx(X8,{validationStatus:t(e.props.validationStatus),minStepsBetweenThumbs:t((s=e.props)==null?void 0:s.minStepsBetweenThumbs),value:a.value,initialValue:t(e.props.initialValue),updateState:i,onDidChange:r("didChange"),onFocus:r("gotFocus"),onBlur:r("lostFocus"),registerComponentApi:l,style:o,step:t((u=e.props)==null?void 0:u.step),min:t((c=e.props)==null?void 0:c.minValue),max:t((d=e.props)==null?void 0:d.maxValue),enabled:t.asOptionalBoolean((f=e.props)==null?void 0:f.enabled),autoFocus:t.asOptionalBoolean(e.props.autoFocus),readOnly:t.asOptionalBoolean(e.props.readOnly),label:t.asOptionalString(e.props.label),labelPosition:t(e.props.labelPosition),labelWidth:t.asOptionalString(e.props.labelWidth),labelBreak:t.asOptionalBoolean(e.props.labelBreak),required:t.asOptionalBoolean(e.props.required),rangeStyle:t((p=e.props)==null?void 0:p.rangeStyle),thumbStyle:t((h=e.props)==null?void 0:h.thumbStyle),showValues:t.asOptionalBoolean((v=e.props)==null?void 0:v.showValues),valueFormat:n((b=e.props)==null?void 0:b.valueFormat)})}),ya={themeVars:`'{"width-Carousel": "var(--xmlui-width-Carousel)", "height-Carousel": "var(--xmlui-height-Carousel)", "height-control-Carousel": "var(--xmlui-height-control-Carousel)", "width-control-Carousel": "var(--xmlui-width-control-Carousel)", "textColor-control-Carousel": "var(--xmlui-textColor-control-Carousel)", "backgroundColor-control-Carousel": "var(--xmlui-backgroundColor-control-Carousel)", "borderRadius-control-Carousel": "var(--xmlui-borderRadius-control-Carousel)", "backgroundColor-control-hover-Carousel": "var(--xmlui-backgroundColor-control-hover-Carousel)", "textColor-control-hover-Carousel": "var(--xmlui-textColor-control-hover-Carousel)", "backgroundColor-control-active-Carousel": "var(--xmlui-backgroundColor-control-active-Carousel)", "textColor-control-active-Carousel": "var(--xmlui-textColor-control-active-Carousel)", "textColor-control-disabled-Carousel": "var(--xmlui-textColor-control-disabled-Carousel)", "backgroundColor-control-disabled-Carousel": "var(--xmlui-backgroundColor-control-disabled-Carousel)", "width-indicator-Carousel": "var(--xmlui-width-indicator-Carousel)", "height-indicator-Carousel": "var(--xmlui-height-indicator-Carousel)", "textColor-indicator-Carousel": "var(--xmlui-textColor-indicator-Carousel)", "backgroundColor-indicator-Carousel": "var(--xmlui-backgroundColor-indicator-Carousel)", "backgroundColor-indicator-hover-Carousel": "var(--xmlui-backgroundColor-indicator-hover-Carousel)", "textColor-indicator-hover-Carousel": "var(--xmlui-textColor-indicator-hover-Carousel)", "backgroundColor-indicator-active-Carousel": "var(--xmlui-backgroundColor-indicator-active-Carousel)", "textColor-indicator-active-Carousel": "var(--xmlui-textColor-indicator-active-Carousel)"}'`,carousel:"_carousel_1jsvj_13",innerWrapper:"_innerWrapper_1jsvj_22",carouselContentWrapper:"_carouselContentWrapper_1jsvj_30",carouselContent:"_carouselContent_1jsvj_30",vertical:"_vertical_1jsvj_40",carouselItem:"_carouselItem_1jsvj_44",controls:"_controls_1jsvj_51",controlButton:"_controlButton_1jsvj_60",indicators:"_indicators_1jsvj_87",indicator:"_indicator_1jsvj_87",active:"_active_1jsvj_107"};function M3t(e){return Object.prototype.toString.call(e)==="[object Object]"}function jhe(e){return M3t(e)||Array.isArray(e)}function z3t(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function $D(e,t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==i?!1:r.every(a=>{const l=e[a],s=t[a];return typeof l=="function"?`${l}`==`${s}`:!jhe(l)||!jhe(s)?l===s:$D(l,s)})}function Mhe(e){return e.concat().sort((t,r)=>t.name>r.name?1:-1).map(t=>t.options)}function F3t(e,t){if(e.length!==t.length)return!1;const r=Mhe(e),n=Mhe(t);return r.every((o,i)=>{const a=n[i];return $D(o,a)})}function DD(e){return typeof e=="number"}function BD(e){return typeof e=="string"}function o4(e){return typeof e=="boolean"}function zhe(e){return Object.prototype.toString.call(e)==="[object Object]"}function Qn(e){return Math.abs(e)}function jD(e){return Math.sign(e)}function $2(e,t){return Qn(e-t)}function W3t(e,t){if(e===0||t===0||Qn(e)<=Qn(t))return 0;const r=$2(Qn(e),Qn(t));return Qn(r/e)}function V3t(e){return Math.round(e*100)/100}function D2(e){return j2(e).map(Number)}function $u(e){return e[B2(e)]}function B2(e){return Math.max(0,e.length-1)}function MD(e,t){return t===B2(e)}function Fhe(e,t=0){return Array.from(Array(e),(r,n)=>t+n)}function j2(e){return Object.keys(e)}function Whe(e,t){return[e,t].reduce((r,n)=>(j2(n).forEach(o=>{const i=r[o],a=n[o],l=zhe(i)&&zhe(a);r[o]=l?Whe(i,a):a}),r),{})}function zD(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function U3t(e,t){const r={start:n,center:o,end:i};function n(){return 0}function o(s){return i(s)/2}function i(s){return t-s}function a(s,u){return BD(e)?r[e](s):e(t,s,u)}return{measure:a}}function M2(){let e=[];function t(o,i,a,l={passive:!0}){let s;if("addEventListener"in o)o.addEventListener(i,a,l),s=()=>o.removeEventListener(i,a,l);else{const u=o;u.addListener(a),s=()=>u.removeListener(a)}return e.push(s),n}function r(){e=e.filter(o=>o())}const n={add:t,clear:r};return n}function q3t(e,t,r,n){const o=M2(),i=1e3/60;let a=null,l=0,s=0;function u(){o.add(e,"visibilitychange",()=>{e.hidden&&h()})}function c(){p(),o.clear()}function d(b){if(!s)return;a||(a=b,r(),r());const y=b-a;for(a=b,l+=y;l>=i;)r(),l-=i;const w=l/i;n(w),s&&(s=t.requestAnimationFrame(d))}function f(){s||(s=t.requestAnimationFrame(d))}function p(){t.cancelAnimationFrame(s),a=null,l=0,s=0}function h(){a=null,l=0}return{init:u,destroy:c,start:f,stop:p,update:r,render:n}}function G3t(e,t){const r=t==="rtl",n=e==="y",o=n?"y":"x",i=n?"x":"y",a=!n&&r?-1:1,l=c(),s=d();function u(h){const{height:v,width:b}=h;return n?v:b}function c(){return n?"top":r?"right":"left"}function d(){return n?"bottom":r?"left":"right"}function f(h){return h*a}return{scroll:o,cross:i,startEdge:l,endEdge:s,measureSize:u,direction:f}}function lg(e=0,t=0){const r=Qn(e-t);function n(u){return u<e}function o(u){return u>t}function i(u){return n(u)||o(u)}function a(u){return i(u)?n(u)?e:t:u}function l(u){return r?u-r*Math.ceil((u-t)/r):u}return{length:r,max:t,min:e,constrain:a,reachedAny:i,reachedMax:o,reachedMin:n,removeOffset:l}}function Vhe(e,t,r){const{constrain:n}=lg(0,e),o=e+1;let i=a(t);function a(f){return r?Qn((o+f)%o):n(f)}function l(){return i}function s(f){return i=a(f),d}function u(f){return c().set(l()+f)}function c(){return Vhe(e,l(),r)}const d={get:l,set:s,add:u,clone:c};return d}function Y3t(e,t,r,n,o,i,a,l,s,u,c,d,f,p,h,v,b,y,w){const{cross:k,direction:E}=e,_=["INPUT","SELECT","TEXTAREA"],S={passive:!1},A=M2(),O=M2(),I=lg(50,225).constrain(p.measure(20)),L={mouse:300,touch:400},P={mouse:500,touch:600},H=h?43:25;let j=!1,W=0,B=0,G=!1,z=!1,F=!1,V=!1;function N(J){if(!w)return;function X(ie){(o4(w)||w(J,ie))&&ae(ie)}const te=t;A.add(te,"dragstart",ie=>ie.preventDefault(),S).add(te,"touchmove",()=>{},S).add(te,"touchend",()=>{}).add(te,"touchstart",X).add(te,"mousedown",X).add(te,"touchcancel",ue).add(te,"contextmenu",ue).add(te,"click",le,!0)}function Y(){A.clear(),O.clear()}function q(){const J=V?r:t;O.add(J,"touchmove",oe,S).add(J,"touchend",ue).add(J,"mousemove",oe,S).add(J,"mouseup",ue)}function M(J){const X=J.nodeName||"";return _.includes(X)}function K(){return(h?P:L)[V?"mouse":"touch"]}function ee(J,X){const te=d.add(jD(J)*-1),ie=c.byDistance(J,!h).distance;return h||Qn(J)<I?ie:b&&X?ie*.5:c.byIndex(te.get(),0).distance}function ae(J){const X=zD(J,n);V=X,F=h&&X&&!J.buttons&&j,j=$2(o.get(),a.get())>=2,!(X&&J.button!==0)&&(M(J.target)||(G=!0,i.pointerDown(J),u.useFriction(0).useDuration(0),o.set(a),q(),W=i.readPoint(J),B=i.readPoint(J,k),f.emit("pointerDown")))}function oe(J){if(!zD(J,n)&&J.touches.length>=2)return ue(J);const te=i.readPoint(J),ie=i.readPoint(J,k),de=$2(te,W),be=$2(ie,B);if(!z&&!V&&(!J.cancelable||(z=de>be,!z)))return ue(J);const xe=i.pointerMove(J);de>v&&(F=!0),u.useFriction(.3).useDuration(.75),l.start(),o.add(E(xe)),J.preventDefault()}function ue(J){const te=c.byDistance(0,!1).index!==d.get(),ie=i.pointerUp(J)*K(),de=ee(E(ie),te),be=W3t(ie,de),xe=H-10*be,Ie=y+be/50;z=!1,G=!1,O.clear(),u.useDuration(xe).useFriction(Ie),s.distance(de,!h),V=!1,f.emit("pointerUp")}function le(J){F&&(J.stopPropagation(),J.preventDefault(),F=!1)}function pe(){return G}return{init:N,destroy:Y,pointerDown:pe}}function K3t(e,t){let n,o;function i(d){return d.timeStamp}function a(d,f){const h=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(zD(d,t)?d:d.touches[0])[h]}function l(d){return n=d,o=d,a(d)}function s(d){const f=a(d)-a(o),p=i(d)-i(n)>170;return o=d,p&&(n=d),f}function u(d){if(!n||!o)return 0;const f=a(o)-a(n),p=i(d)-i(n),h=i(d)-i(o)>170,v=f/p;return p&&!h&&Qn(v)>.1?v:0}return{pointerDown:l,pointerMove:s,pointerUp:u,readPoint:a}}function X3t(){function e(r){const{offsetTop:n,offsetLeft:o,offsetWidth:i,offsetHeight:a}=r;return{top:n,right:o+i,bottom:n+a,left:o,width:i,height:a}}return{measure:e}}function Q3t(e){function t(n){return e*(n/100)}return{measure:t}}function Z3t(e,t,r,n,o,i,a){const l=[e].concat(n);let s,u,c=[],d=!1;function f(b){return o.measureSize(a.measure(b))}function p(b){if(!i)return;u=f(e),c=n.map(f);function y(w){for(const k of w){if(d)return;const E=k.target===e,_=n.indexOf(k.target),S=E?u:c[_],A=f(E?e:n[_]);if(Qn(A-S)>=.5){b.reInit(),t.emit("resize");break}}}s=new ResizeObserver(w=>{(o4(i)||i(b,w))&&y(w)}),r.requestAnimationFrame(()=>{l.forEach(w=>s.observe(w))})}function h(){d=!0,s&&s.disconnect()}return{init:p,destroy:h}}function J3t(e,t,r,n,o,i){let a=0,l=0,s=o,u=i,c=e.get(),d=0;function f(){const S=n.get()-e.get(),A=!s;let O=0;return A?(a=0,r.set(n),e.set(n),O=S):(r.set(e),a+=S/s,a*=u,c+=a,e.add(a),O=c-d),l=jD(O),d=c,_}function p(){const S=n.get()-t.get();return Qn(S)<.001}function h(){return s}function v(){return l}function b(){return a}function y(){return k(o)}function w(){return E(i)}function k(S){return s=S,_}function E(S){return u=S,_}const _={direction:v,duration:h,velocity:b,seek:f,settled:p,useBaseFriction:w,useBaseDuration:y,useFriction:E,useDuration:k};return _}function eEt(e,t,r,n,o){const i=o.measure(10),a=o.measure(50),l=lg(.1,.99);let s=!1;function u(){return!(s||!e.reachedAny(r.get())||!e.reachedAny(t.get()))}function c(p){if(!u())return;const h=e.reachedMin(t.get())?"min":"max",v=Qn(e[h]-t.get()),b=r.get()-t.get(),y=l.constrain(v/a);r.subtract(b*y),!p&&Qn(b)<i&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())}function d(p){s=!p}return{shouldConstrain:u,constrain:c,toggleActive:d}}function tEt(e,t,r,n,o){const i=lg(-t+e,0),a=d(),l=c(),s=f();function u(h,v){return $2(h,v)<=1}function c(){const h=a[0],v=$u(a),b=a.lastIndexOf(h),y=a.indexOf(v)+1;return lg(b,y)}function d(){return r.map((h,v)=>{const{min:b,max:y}=i,w=i.constrain(h),k=!v,E=MD(r,v);return k?y:E||u(b,w)?b:u(y,w)?y:w}).map(h=>parseFloat(h.toFixed(3)))}function f(){if(t<=e+o)return[i.max];if(n==="keepSnaps")return a;const{min:h,max:v}=l;return a.slice(h,v)}return{snapsContained:s,scrollContainLimit:l}}function rEt(e,t,r){const n=t[0],o=r?n-e:$u(t);return{limit:lg(o,n)}}function nEt(e,t,r,n){const i=t.min+.1,a=t.max+.1,{reachedMin:l,reachedMax:s}=lg(i,a);function u(f){return f===1?s(r.get()):f===-1?l(r.get()):!1}function c(f){if(!u(f))return;const p=e*(f*-1);n.forEach(h=>h.add(p))}return{loop:c}}function oEt(e){const{max:t,length:r}=e;function n(i){const a=i-t;return r?a/-r:0}return{get:n}}function iEt(e,t,r,n,o){const{startEdge:i,endEdge:a}=e,{groupSlides:l}=o,s=d().map(t.measure),u=f(),c=p();function d(){return l(n).map(v=>$u(v)[a]-v[0][i]).map(Qn)}function f(){return n.map(v=>r[i]-v[i]).map(v=>-Qn(v))}function p(){return l(u).map(v=>v[0]).map((v,b)=>v+s[b])}return{snaps:u,snapsAligned:c}}function aEt(e,t,r,n,o,i){const{groupSlides:a}=o,{min:l,max:s}=n,u=c();function c(){const f=a(i),p=!e||t==="keepSnaps";return r.length===1?[i]:p?f:f.slice(l,s).map((h,v,b)=>{const y=!v,w=MD(b,v);if(y){const k=$u(b[0])+1;return Fhe(k)}if(w){const k=B2(i)-$u(b)[0]+1;return Fhe(k,$u(b)[0])}return h})}return{slideRegistry:u}}function lEt(e,t,r,n,o){const{reachedAny:i,removeOffset:a,constrain:l}=n;function s(h){return h.concat().sort((v,b)=>Qn(v)-Qn(b))[0]}function u(h){const v=e?a(h):l(h),b=t.map((w,k)=>({diff:c(w-v,0),index:k})).sort((w,k)=>Qn(w.diff)-Qn(k.diff)),{index:y}=b[0];return{index:y,distance:v}}function c(h,v){const b=[h,h+r,h-r];if(!e)return h;if(!v)return s(b);const y=b.filter(w=>jD(w)===v);return y.length?s(y):$u(b)-r}function d(h,v){const b=t[h]-o.get(),y=c(b,v);return{index:h,distance:y}}function f(h,v){const b=o.get()+h,{index:y,distance:w}=u(b),k=!e&&i(b);if(!v||k)return{index:y,distance:h};const E=t[y]-w,_=h+c(E,0);return{index:y,distance:_}}return{byDistance:f,byIndex:d,shortcut:c}}function sEt(e,t,r,n,o,i,a){function l(d){const f=d.distance,p=d.index!==t.get();i.add(f),f&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),p&&(r.set(t.get()),t.set(d.index),a.emit("select"))}function s(d,f){const p=o.byDistance(d,f);l(p)}function u(d,f){const p=t.clone().set(d),h=o.byIndex(p.get(),f);l(h)}return{distance:s,index:u}}function uEt(e,t,r,n,o,i,a,l){const s={passive:!0,capture:!0};let u=0;function c(p){if(!l)return;function h(v){if(new Date().getTime()-u>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;const w=r.findIndex(k=>k.includes(v));DD(w)&&(o.useDuration(0),n.index(w,0),a.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((v,b)=>{i.add(v,"focus",y=>{(o4(l)||l(p,y))&&h(b)},s)})}function d(p){p.code==="Tab"&&(u=new Date().getTime())}return{init:c}}function z2(e){let t=e;function r(){return t}function n(s){t=a(s)}function o(s){t+=a(s)}function i(s){t-=a(s)}function a(s){return DD(s)?s:s.get()}return{get:r,set:n,add:o,subtract:i}}function Uhe(e,t){const r=e.scroll==="x"?a:l,n=t.style;let o=null,i=!1;function a(f){return`translate3d(${f}px,0px,0px)`}function l(f){return`translate3d(0px,${f}px,0px)`}function s(f){if(i)return;const p=V3t(e.direction(f));p!==o&&(n.transform=r(p),o=p)}function u(f){i=!f}function c(){i||(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:c,to:s,toggleActive:u}}function cEt(e,t,r,n,o,i,a,l,s){const c=D2(o),d=D2(o).reverse(),f=y().concat(w());function p(A,O){return A.reduce((I,L)=>I-o[L],O)}function h(A,O){return A.reduce((I,L)=>p(I,O)>0?I.concat([L]):I,[])}function v(A){return i.map((O,I)=>({start:O-n[I]+.5+A,end:O+t-.5+A}))}function b(A,O,I){const L=v(O);return A.map(P=>{const H=I?0:-r,j=I?r:0,W=I?"end":"start",B=L[P][W];return{index:P,loopPoint:B,slideLocation:z2(-1),translate:Uhe(e,s[P]),target:()=>l.get()>B?H:j}})}function y(){const A=a[0],O=h(d,A);return b(O,r,!1)}function w(){const A=t-a[0]-1,O=h(c,A);return b(O,-r,!0)}function k(){return f.every(({index:A})=>{const O=c.filter(I=>I!==A);return p(O,t)<=.1})}function E(){f.forEach(A=>{const{target:O,translate:I,slideLocation:L}=A,P=O();P!==L.get()&&(I.to(P),L.set(P))})}function _(){f.forEach(A=>A.translate.clear())}return{canLoop:k,clear:_,loop:E,loopPoints:f}}function dEt(e,t,r){let n,o=!1;function i(s){if(!r)return;function u(c){for(const d of c)if(d.type==="childList"){s.reInit(),t.emit("slidesChanged");break}}n=new MutationObserver(c=>{o||(o4(r)||r(s,c))&&u(c)}),n.observe(e,{childList:!0})}function a(){n&&n.disconnect(),o=!0}return{init:i,destroy:a}}function fEt(e,t,r,n){const o={};let i=null,a=null,l,s=!1;function u(){l=new IntersectionObserver(h=>{s||(h.forEach(v=>{const b=t.indexOf(v.target);o[b]=v}),i=null,a=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:n}),t.forEach(h=>l.observe(h))}function c(){l&&l.disconnect(),s=!0}function d(h){return j2(o).reduce((v,b)=>{const y=parseInt(b),{isIntersecting:w}=o[y];return(h&&w||!h&&!w)&&v.push(y),v},[])}function f(h=!0){if(h&&i)return i;if(!h&&a)return a;const v=d(h);return h&&(i=v),h||(a=v),v}return{init:u,destroy:c,get:f}}function mEt(e,t,r,n,o,i){const{measureSize:a,startEdge:l,endEdge:s}=e,u=r[0]&&o,c=h(),d=v(),f=r.map(a),p=b();function h(){if(!u)return 0;const w=r[0];return Qn(t[l]-w[l])}function v(){if(!u)return 0;const w=i.getComputedStyle($u(n));return parseFloat(w.getPropertyValue(`margin-${s}`))}function b(){return r.map((w,k,E)=>{const _=!k,S=MD(E,k);return _?f[k]+c:S?f[k]+d:E[k+1][l]-w[l]}).map(Qn)}return{slideSizes:f,slideSizesWithGaps:p,startGap:c,endGap:d}}function pEt(e,t,r,n,o,i,a,l,s){const{startEdge:u,endEdge:c,direction:d}=e,f=DD(r);function p(y,w){return D2(y).filter(k=>k%w===0).map(k=>y.slice(k,k+w))}function h(y){return y.length?D2(y).reduce((w,k,E)=>{const _=$u(w)||0,S=_===0,A=k===B2(y),O=o[u]-i[_][u],I=o[u]-i[k][c],L=!n&&S?d(a):0,P=!n&&A?d(l):0,H=Qn(I-P-(O+L));return E&&H>t+s&&w.push(k),A&&w.push(y.length),w},[]).map((w,k,E)=>{const _=Math.max(E[k-1]||0);return y.slice(_,w)}):[]}function v(y){return f?p(y,r):h(y)}return{groupSlides:v}}function hEt(e,t,r,n,o,i,a){const{align:l,axis:s,direction:u,startIndex:c,loop:d,duration:f,dragFree:p,dragThreshold:h,inViewThreshold:v,slidesToScroll:b,skipSnaps:y,containScroll:w,watchResize:k,watchSlides:E,watchDrag:_,watchFocus:S}=i,A=2,O=X3t(),I=O.measure(t),L=r.map(O.measure),P=G3t(s,u),H=P.measureSize(I),j=Q3t(H),W=U3t(l,H),B=!d&&!!w,G=d||!!w,{slideSizes:z,slideSizesWithGaps:F,startGap:V,endGap:N}=mEt(P,I,L,r,G,o),Y=pEt(P,H,b,d,I,L,V,N,A),{snaps:q,snapsAligned:M}=iEt(P,W,I,L,Y),K=-$u(q)+$u(F),{snapsContained:ee,scrollContainLimit:ae}=tEt(H,K,M,w,A),oe=B?ee:M,{limit:ue}=rEt(K,oe,d),le=Vhe(B2(oe),c,d),pe=le.clone(),fe=D2(r),J=({dragHandler:ut,scrollBody:It,scrollBounds:sr,options:{loop:tr}})=>{tr||sr.constrain(ut.pointerDown()),It.seek()},X=({scrollBody:ut,translate:It,location:sr,offsetLocation:tr,previousLocation:hn,scrollLooper:zo,slideLooper:Ir,dragHandler:At,animation:it,eventHandler:nt,scrollBounds:lt,options:{loop:ct}},Rr)=>{const fr=ut.settled(),ii=!lt.shouldConstrain(),Cr=ct?fr:fr&&ii,Gr=Cr&&!At.pointerDown();Gr&&it.stop();const ur=sr.get()*Rr+hn.get()*(1-Rr);tr.set(ur),ct&&(zo.loop(ut.direction()),Ir.loop()),It.to(tr.get()),Gr&&nt.emit("settle"),Cr||nt.emit("scroll")},te=q3t(n,o,()=>J(st),ut=>X(st,ut)),ie=.68,de=oe[le.get()],be=z2(de),xe=z2(de),Ie=z2(de),Ne=z2(de),Se=J3t(be,Ie,xe,Ne,f,ie),_e=lEt(d,oe,K,ue,Ne),Ve=sEt(te,le,pe,Se,_e,Ne,a),Ee=oEt(ue),je=M2(),Ce=fEt(t,r,a,v),{slideRegistry:Te}=aEt(B,w,oe,ae,Y,fe),He=uEt(e,r,Te,Ve,Se,je,a,S),st={ownerDocument:n,ownerWindow:o,eventHandler:a,containerRect:I,slideRects:L,animation:te,axis:P,dragHandler:Y3t(P,e,n,o,Ne,K3t(P,o),be,te,Ve,Se,_e,le,a,j,p,h,y,ie,_),eventStore:je,percentOfView:j,index:le,indexPrevious:pe,limit:ue,location:be,offsetLocation:Ie,previousLocation:xe,options:i,resizeHandler:Z3t(t,a,o,r,P,k,O),scrollBody:Se,scrollBounds:eEt(ue,Ie,Ne,Se,j),scrollLooper:nEt(K,ue,Ie,[be,Ie,xe,Ne]),scrollProgress:Ee,scrollSnapList:oe.map(Ee.get),scrollSnaps:oe,scrollTarget:_e,scrollTo:Ve,slideLooper:cEt(P,H,K,z,F,q,oe,Ie,r),slideFocus:He,slidesHandler:dEt(t,a,E),slidesInView:Ce,slideIndexes:fe,slideRegistry:Te,slidesToScroll:Y,target:Ne,translate:Uhe(P,t)};return st}function gEt(){let e={},t;function r(u){t=u}function n(u){return e[u]||[]}function o(u){return n(u).forEach(c=>c(t,u)),s}function i(u,c){return e[u]=n(u).concat([c]),s}function a(u,c){return e[u]=n(u).filter(d=>d!==c),s}function l(){e={}}const s={init:r,emit:o,off:a,on:i,clear:l};return s}const vEt={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function bEt(e){function t(i,a){return Whe(i,a||{})}function r(i){const a=i.breakpoints||{},l=j2(a).filter(s=>e.matchMedia(s).matches).map(s=>a[s]).reduce((s,u)=>t(s,u),{});return t(i,l)}function n(i){return i.map(a=>j2(a.breakpoints||{})).reduce((a,l)=>a.concat(l),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:r,optionsMediaQueries:n}}function xEt(e){let t=[];function r(i,a){return t=a.filter(({options:l})=>e.optionsAtMedia(l).active!==!1),t.forEach(l=>l.init(i,e)),a.reduce((l,s)=>Object.assign(l,{[s.name]:s}),{})}function n(){t=t.filter(i=>i.destroy())}return{init:r,destroy:n}}function i4(e,t,r){const n=e.ownerDocument,o=n.defaultView,i=bEt(o),a=xEt(i),l=M2(),s=gEt(),{mergeOptions:u,optionsAtMedia:c,optionsMediaQueries:d}=i,{on:f,off:p,emit:h}=s,v=P;let b=!1,y,w=u(vEt,i4.globalOptions),k=u(w),E=[],_,S,A;function O(){const{container:fe,slides:J}=k;S=(BD(fe)?e.querySelector(fe):fe)||e.children[0];const te=BD(J)?S.querySelectorAll(J):J;A=[].slice.call(te||S.children)}function I(fe){const J=hEt(e,S,A,n,o,fe,s);if(fe.loop&&!J.slideLooper.canLoop()){const X=Object.assign({},fe,{loop:!1});return I(X)}return J}function L(fe,J){b||(w=u(w,fe),k=c(w),E=J||E,O(),y=I(k),d([w,...E.map(({options:X})=>X)]).forEach(X=>l.add(X,"change",P)),k.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(pe),y.eventHandler.init(pe),y.resizeHandler.init(pe),y.slidesHandler.init(pe),y.options.loop&&y.slideLooper.loop(),S.offsetParent&&A.length&&y.dragHandler.init(pe),_=a.init(pe,E)))}function P(fe,J){const X=Y();H(),L(u({startIndex:X},fe),J),s.emit("reInit")}function H(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),a.destroy(),l.clear()}function j(){b||(b=!0,l.clear(),H(),s.emit("destroy"),s.clear())}function W(fe,J,X){!k.active||b||(y.scrollBody.useBaseFriction().useDuration(J===!0?0:k.duration),y.scrollTo.index(fe,X||0))}function B(fe){const J=y.index.add(1).get();W(J,fe,-1)}function G(fe){const J=y.index.add(-1).get();W(J,fe,1)}function z(){return y.index.add(1).get()!==Y()}function F(){return y.index.add(-1).get()!==Y()}function V(){return y.scrollSnapList}function N(){return y.scrollProgress.get(y.offsetLocation.get())}function Y(){return y.index.get()}function q(){return y.indexPrevious.get()}function M(){return y.slidesInView.get()}function K(){return y.slidesInView.get(!1)}function ee(){return _}function ae(){return y}function oe(){return e}function ue(){return S}function le(){return A}const pe={canScrollNext:z,canScrollPrev:F,containerNode:ue,internalEngine:ae,destroy:j,off:p,on:f,emit:h,plugins:ee,previousScrollSnap:q,reInit:v,rootNode:oe,scrollNext:B,scrollPrev:G,scrollProgress:N,scrollSnapList:V,scrollTo:W,selectedScrollSnap:Y,slideNodes:le,slidesInView:M,slidesNotInView:K};return L(t,r),setTimeout(()=>s.emit("init"),0),pe}i4.globalOptions=void 0;function FD(e={},t=[]){const r=m.useRef(e),n=m.useRef(t),[o,i]=m.useState(),[a,l]=m.useState(),s=m.useCallback(()=>{o&&o.reInit(r.current,n.current)},[o]);return m.useEffect(()=>{$D(r.current,e)||(r.current=e,s())},[e,s]),m.useEffect(()=>{F3t(n.current,t)||(n.current=t,s())},[t,s]),m.useEffect(()=>{if(z3t()&&a){i4.globalOptions=FD.globalOptions;const u=i4(a,r.current,n.current);return i(u),()=>u.destroy()}else i(void 0)},[a,i]),[l,o]}FD.globalOptions=void 0;const yEt={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function wEt(e,t){const r=e.scrollSnapList();return typeof t=="number"?r.map(()=>t):t(r,e)}function CEt(e,t){const r=e.rootNode();return t&&t(r)||r}function WD(e={}){let t,r,n,o,i=null,a=0,l=!1,s=!1,u=!1,c=!1;function d(W,B){r=W;const{mergeOptions:G,optionsAtMedia:z}=B,F=G(yEt,WD.globalOptions),V=G(F,e);if(t=z(V),r.scrollSnapList().length<=1)return;c=t.jump,n=!1,o=wEt(r,t.delay);const{eventStore:N,ownerDocument:Y}=r.internalEngine(),q=!!r.internalEngine().options.watchDrag,M=CEt(r,t.rootNode);N.add(Y,"visibilitychange",y),q&&r.on("pointerDown",k),q&&!t.stopOnInteraction&&r.on("pointerUp",E),t.stopOnMouseEnter&&N.add(M,"mouseenter",_),t.stopOnMouseEnter&&!t.stopOnInteraction&&N.add(M,"mouseleave",S),t.stopOnFocusIn&&r.on("slideFocusStart",b),t.stopOnFocusIn&&!t.stopOnInteraction&&N.add(r.containerNode(),"focusout",v),t.playOnInit&&v()}function f(){r.off("pointerDown",k).off("pointerUp",E).off("slideFocusStart",b),b(),n=!0,l=!1}function p(){const{ownerWindow:W}=r.internalEngine();W.clearTimeout(a),a=W.setTimeout(P,o[r.selectedScrollSnap()]),i=new Date().getTime(),r.emit("autoplay:timerset")}function h(){const{ownerWindow:W}=r.internalEngine();W.clearTimeout(a),a=0,i=null,r.emit("autoplay:timerstopped")}function v(){if(!n){if(w()){u=!0;return}l||r.emit("autoplay:play"),p(),l=!0}}function b(){n||(l&&r.emit("autoplay:stop"),h(),l=!1)}function y(){if(w())return u=l,b();u&&v()}function w(){const{ownerDocument:W}=r.internalEngine();return W.visibilityState==="hidden"}function k(){s||b()}function E(){s||v()}function _(){s=!0,b()}function S(){s=!1,v()}function A(W){typeof W<"u"&&(c=W),v()}function O(){l&&b()}function I(){l&&v()}function L(){return l}function P(){const{index:W}=r.internalEngine(),B=W.clone().add(1).get(),G=r.scrollSnapList().length-1,z=t.stopOnLastSnap&&B===G;if(r.canScrollNext()?r.scrollNext(c):r.scrollTo(0,c),r.emit("autoplay:select"),z)return b();v()}function H(){if(!i)return null;const W=o[r.selectedScrollSnap()],B=new Date().getTime()-i;return W-B}return{name:"autoplay",options:e,init:d,destroy:f,play:A,stop:O,reset:I,isPlaying:L,timeUntilNext:H}}WD.globalOptions=void 0;const qhe=m.createContext({register:e=>{},unRegister:e=>{}}),kEt=()=>{const e=m.useContext(qhe);if(!e)throw new Error("useCarousel must be used within a Carousel");return e};function _Et(){const[e,t]=m.useState([]),r=m.useMemo(()=>({register:n=>{t(fl(o=>{const i=o.findIndex(a=>a.id===n.id);i<0?o.push(n):o[i]=n}))},unRegister:n=>{t(fl(o=>o.filter(i=>i.id!==n)))}}),[t]);return{carouselItems:e,carouselContextValue:r}}const bi={orientation:"horizontal",indicators:!0,autoplay:!1,controls:!0,loop:!1,startIndex:0,transitionDuration:25,autoplayInterval:5e3,stopAutoplayOnInteraction:!0},TEt=m.forwardRef(function({orientation:t=bi.orientation,children:r,style:n,indicators:o=bi.indicators,onDisplayDidChange:i=bt,autoplay:a=bi.autoplay,controls:l=bi.controls,loop:s=bi.loop,startIndex:u=bi.startIndex,prevIcon:c,nextIcon:d,transitionDuration:f=bi.transitionDuration,autoplayInterval:p=bi.autoplayInterval,stopAutoplayOnInteraction:h=bi.stopAutoplayOnInteraction,registerComponentApi:v},b){const y=m.useRef(null),[w,k]=m.useState(0),[E,_]=m.useState([]),[S,A]=m.useState(!1),{carouselContextValue:O,carouselItems:I}=_Et(),L=b?Un(y,b):y,[P,H]=FD({axis:t==="horizontal"?"x":"y",loop:s,startIndex:u,duration:f},E),j=c||t==="horizontal"?"arrowleft":"arrowup",W=d||t==="horizontal"?"arrowright":"arrowdown";m.useEffect(()=>{a&&_([WD({delay:p,stopOnInteraction:h})])},[p,a,h]);const B=m.useCallback(()=>{var oe;const ee=(oe=H==null?void 0:H.plugins())==null?void 0:oe.autoplay;if(!ee)return;(ee.isPlaying()?ee.stop:ee.play)()},[H]);m.useEffect(()=>{var ae;const ee=(ae=H==null?void 0:H.plugins())==null?void 0:ae.autoplay;ee&&(A(ee.isPlaying()),H.on("autoplay:play",()=>A(!0)).on("autoplay:stop",()=>A(!1)).on("reInit",()=>A(ee.isPlaying())))},[H]);const G=m.useCallback(ee=>{H==null||H.scrollTo(ee)},[H]),[z,F]=m.useState(!1),[V,N]=m.useState(!1),Y=m.useCallback(ee=>{if(!ee)return;const ae=ee.selectedScrollSnap();i(ae),k(ae),F(ee.canScrollPrev()),N(ee.canScrollNext())},[i]),q=m.useCallback(()=>{H&&(H==null||H.scrollPrev())},[H]),M=m.useCallback(()=>{H==null||H.scrollNext()},[H]),K=m.useCallback(ee=>{t==="horizontal"?ee.key==="ArrowLeft"?(ee.preventDefault(),q()):ee.key==="ArrowRight"&&(ee.preventDefault(),M()):ee.key==="ArrowUp"?(ee.preventDefault(),q()):ee.key==="ArrowDown"&&(ee.preventDefault(),M())},[t,q,M]);return m.useEffect(()=>{v==null||v({scrollTo:G,scrollPrev:q,scrollNext:M,canScrollPrev:()=>z,canScrollNext:()=>V})},[v,G,q,M,z,V]),m.useEffect(()=>{if(H)return Y(H),H.on("init",Y),H.on("reInit",Y),H.on("select",Y),()=>{H==null||H.off("select",Y)}},[H,Y]),m.useEffect(()=>{y!=null&&y.current&&y.current.addEventListener("keydown",K)},[L,K]),C.jsx(qhe.Provider,{value:O,children:C.jsxs("div",{style:n,ref:L,className:ze(ya.carousel),role:"region",tabIndex:-1,"aria-roledescription":"carousel",children:[C.jsx("div",{ref:P,className:ya.carouselContentWrapper,children:C.jsx("div",{className:ze(ya.carouselContent,{[ya.horizontal]:t==="horizontal",[ya.vertical]:t==="vertical"}),children:r})}),l&&C.jsxs("div",{className:ya.controls,children:[a&&C.jsx("button",{className:ya.controlButton,onClick:B,children:S?C.jsx(xt,{name:"pause"}):C.jsx(xt,{name:"play"})}),C.jsx("button",{className:ya.controlButton,disabled:!z,onClick:q,children:C.jsx(xt,{name:j})}),C.jsx("button",{className:ya.controlButton,onClick:M,disabled:!V,children:C.jsx(xt,{name:W})})]}),o&&C.jsx("div",{className:ya.indicators,children:I.map((ee,ae)=>C.jsx("button",{type:"button",onClick:()=>G(ae),className:ze(ya.indicator,{[ya.active]:ae===w}),"aria-current":ae===w},ae))})]})})}),Bn="Carousel",Ghe={status:"in progress",description:"This component displays a slideshow by cycling through elements (images, text, or custom slides) like a carousel.",props:{orientation:{description:"This property indicates the orientation of the carousel. The `horizontal` value indicates that the carousel moves horizontally, and the `vertical` value indicates that the carousel moves vertically.",availableValues:jT,valueType:"string",defaultValue:bi.orientation},indicators:{description:"This property indicates whether the carousel displays the indicators.",valueType:"boolean",defaultValue:bi.indicators},controls:{description:"This property indicates whether the carousel displays the controls.",valueType:"boolean",defaultValue:bi.controls},autoplay:{description:"This property indicates whether the carousel automatically scrolls.",valueType:"boolean",defaultValue:bi.autoplay},loop:{description:"This property indicates whether the carousel loops.",valueType:"boolean",defaultValue:bi.loop},startIndex:{description:"This property indicates the index of the first slide to display.",valueType:"number",defaultValue:bi.startIndex},transitionDuration:{description:"This property indicates the duration of the transition between slides.",valueType:"number",defaultValue:bi.transitionDuration},autoplayInterval:{description:"This property specifies the interval between autoplay transitions.",valueType:"number",defaultValue:bi.autoplayInterval},stopAutoplayOnInteraction:{description:"This property indicates whether autoplay stops on interaction.",valueType:"boolean",defaultValue:bi.stopAutoplayOnInteraction},prevIcon:{description:"This property specifies the icon to display for the previous control.",valueType:"string"},nextIcon:{description:"This property specifies the icon to display for the next control.",valueType:"string"},keyboard:{description:"This property indicates whether the carousel responds to keyboard events.",valueType:"boolean"}},events:{displayDidChange:Ei(Bn)},apis:{canScrollPrev:re("This method returns `true` if the carousel can scroll to the previous slide."),canScrollNext:re("This method returns `true` if the carousel can scroll to the next slide."),scrollTo:re("This method scrolls the carousel to the specified slide index."),scrollPrev:re("This method scrolls the carousel to the previous slide."),scrollNext:re("This method scrolls the carousel to the next slide.")},themeVars:Ze(ya.themeVars),themeVarDescriptions:{[`width-indicator-${Bn}`]:"Sets the width of the indicator."},defaultThemeVars:{[`backgroundColor-control-${Bn}`]:"$color-primary",[`textColor-control-${Bn}`]:"$textColor",[`backgroundColor-control-hover-${Bn}`]:"$color-primary",[`textColor-control-hover-${Bn}`]:"$textColor",[`backgroundColor-control-active-${Bn}`]:"$color-primary",[`backgroundColor-control-disabled-${Bn}`]:"$color-surface-200",[`textColor-control-disabled-${Bn}`]:"$textColor-disabled",[`textColor-control-active-${Bn}`]:"$color-primary",[`backgroundColor-indicator-${Bn}`]:"$color-surface-200",[`backgroundColor-indicator-active-${Bn}`]:"$color-primary",[`textColor-indicator-${Bn}`]:"$color-primary",[`textColor-indicator-active-${Bn}`]:"$color-primary",[`backgroundColor-indicator-hover-${Bn}`]:"$color-surface-200",[`textColor-indicator-hover-${Bn}`]:"$color-primary",[`width-indicator-${Bn}`]:"25px",[`height-indicator-${Bn}`]:"6px",[`height-control-${Bn}`]:"36px",[`width-control-${Bn}`]:"36px",[`borderRadius-control-${Bn}`]:"50%",[`height-${Bn}`]:"100%",[`width-${Bn}`]:"100%"}},SEt=we(Bn,Ghe,({node:e,renderChild:t,layoutCss:r,extractValue:n,lookupEventHandler:o,registerComponentApi:i})=>{var a,l,s,u,c,d,f,p,h,v,b,y;return C.jsx(TEt,{style:r,stopAutoplayOnInteraction:n.asOptionalBoolean((a=e.props)==null?void 0:a.stopAutoplayOnInteraction),autoplayInterval:n.asOptionalNumber((l=e.props)==null?void 0:l.autoplayInterval),transitionDuration:n.asOptionalNumber((s=e.props)==null?void 0:s.transitionDuration),indicators:n.asOptionalBoolean((u=e.props)==null?void 0:u.indicators),controls:n.asOptionalBoolean((c=e.props)==null?void 0:c.controls),orientation:n((d=e.props)==null?void 0:d.orientation),onDisplayDidChange:o("displayDidChange"),autoplay:n.asOptionalBoolean((f=e.props)==null?void 0:f.autoplay),registerComponentApi:i,loop:n.asOptionalBoolean((p=e.props)==null?void 0:p.loop),startIndex:n.asOptionalNumber((h=e.props)==null?void 0:h.startIndex),prevIcon:n((v=e.props)==null?void 0:v.prevIcon),nextIcon:n((b=e.props)==null?void 0:b.nextIcon),keyboard:n.asOptionalBoolean((y=e.props)==null?void 0:y.keyboard),children:t(e.children)})}),EEt=m.forwardRef(function({children:t,style:r},n){const o=m.useId(),{register:i,unRegister:a}=kEt();return m.useEffect(()=>{i({id:o})},[o,t,r,i,n]),m.useEffect(()=>()=>{a(o)},[o,a]),C.jsx("div",{role:"group","aria-roledescription":"slide",className:ze(ya.carouselItem),children:C.jsx("div",{className:ya.innerWrapper,ref:n,style:r,children:t})},o)}),AEt="CarouselItem",OEt={status:"in progress"},IEt=we(AEt,OEt,e=>{const{node:t,renderChild:r}=e;return C.jsx(EEt,{children:r(t.children)})}),REt={breakout:"_breakout_ovaa2_1"},PEt=({children:e})=>C.jsx("div",{className:REt.breakout,children:e}),Yhe="Breakout",Khe={status:"stable",description:`The \`${Yhe}\` component creates a breakout section. It allows its child to occupy the entire width of the UI even if the app or the parent container constrains the maximum content width.`},LEt=we(Yhe,Khe,({node:e,renderChild:t})=>C.jsx(PEt,{children:t(e.children)})),a4="ToneChangerButton",F2={lightToDarkIcon:"lightToDark:ToneChangerButton",darkToLightIcon:"darkToLight:ToneChangerButton",onClick:Lf},Xhe={status:"stable",description:"`ToneChangerButton` enables the user to switch between light and dark modes.",props:{lightToDarkIcon:{description:`The icon displayed when the theme is in light mode and will switch to dark. You can change the default icon for all ${a4} instances with the "icon.lightToDark:ToneChangerButton" declaration in the app configuration file.`,defaultValue:F2.lightToDarkIcon},darkToLightIcon:{description:`The icon displayed when the theme is in dark mode and will switch to light. You can change the default icon for all ${a4} instances with the "icon.darkToLight:ToneChangerButton" declaration in the app configuration file.`,defaultValue:F2.darkToLightIcon}},events:{click:Xp(a4)}};function Qhe({lightToDarkIcon:e=F2.lightToDarkIcon,darkToLightIcon:t=F2.darkToLightIcon,onClick:r=F2.onClick}){const{activeThemeTone:n,setActiveThemeTone:o}=Wv(),i=n==="light"?e:t,a=n==="light"?"lightToDark":"darkToLight";return C.jsx(cn,{variant:"ghost",style:{flexShrink:0},icon:C.jsx(xt,{name:i,fallback:a}),onClick:()=>{n==="light"?(o("dark"),r==null||r("dark")):(o("light"),r==null||r("light"))}})}const HEt=we(a4,Xhe,({node:e,extractValue:t,lookupEventHandler:r})=>C.jsx(Qhe,{onClick:r("click"),lightToDarkIcon:t.asOptionalString(e.props.lightToDarkIcon),darkToLightIcon:t.asOptionalString(e.props.darkToLightIcon)})),sg={themeVars:`'{"borderColor-ToneSwitch": "var(--xmlui-borderColor-ToneSwitch)", "borderColor-ToneSwitch--hover": "var(--xmlui-borderColor-ToneSwitch--hover)", "backgroundColor-ToneSwitch-light": "var(--xmlui-backgroundColor-ToneSwitch-light)", "color-ToneSwitch-light": "var(--xmlui-color-ToneSwitch-light)", "backgroundColor-ToneSwitch-dark": "var(--xmlui-backgroundColor-ToneSwitch-dark)", "color-ToneSwitch-dark": "var(--xmlui-color-ToneSwitch-dark)"}'`,iconSwitch:"_iconSwitch_11f3w_13",iconThumb:"_iconThumb_11f3w_30",light:"_light_11f3w_43",dark:"_dark_11f3w_47",icon:"_icon_11f3w_13"},NEt="sun",$Et="moon";function DEt({iconLight:e=NEt,iconDark:t=$Et}){const{activeThemeTone:r,setActiveThemeTone:n}=Wv(),o=i=>{n(i?"dark":"light")};return C.jsx("div",{style:{width:"fit-content",display:"inline-block"},className:"toneSwitchContainer",children:C.jsx(am,{value:r==="dark",onDidChange:o,variant:"switch",style:{width:"fit-content"},inputRenderer:i=>C.jsx("div",{className:ze(sg.iconSwitch,{[sg.light]:!i.$checked,[sg.dark]:i.$checked}),children:C.jsx("div",{className:sg.iconThumb,children:i.$checked?C.jsx(xt,{name:t,fallback:"moon",className:sg.icon}):C.jsx(xt,{name:e,fallback:"sun",className:sg.icon})})})})})}const Du="ToneSwitch",Zhe={status:"stable",description:"`ToneSwitch` enables the user to switch between light and dark modes using a switch control.",props:{iconLight:{type:"string",description:"Icon to display for light mode",defaultValue:"sun"},iconDark:{type:"string",description:"Icon to display for dark mode",defaultValue:"moon"}},themeVars:Ze(sg.themeVars),limitThemeVarsToComponent:!0,defaultThemeVars:{[`backgroundColor-${Du}-light`]:"$color-surface-200",[`color-${Du}-light`]:"$color-text-primary",[`backgroundColor-${Du}-dark`]:"$color-primary-500",[`color-${Du}-dark`]:"$color-surface-0",[`borderColor-${Du}`]:"$color-surface-200",[`borderColor-${Du}--hover`]:"$color-surface-300",dark:{[`backgroundColor-${Du}-light`]:"$color-surface-700",[`color-${Du}-light`]:"$color-text-primary",[`borderColor-${Du}`]:"$color-surface-600",[`borderColor-${Du}--hover`]:"$color-surface-500"}}},BEt=we(Du,Zhe,({node:e,extractValue:t})=>C.jsx(DEt,{iconLight:t(e.props.iconLight),iconDark:t(e.props.iconDark)})),jEt={method:"get"};function MEt({registerComponentApi:e,node:t,uid:r}){const n=zt(async(o,...i)=>{var l,s,u,c;const a=i[1];return await Hpe(o,{...t.props,body:t.props.body||(a!=null&&a.passAsDefaultBody?i[0]:void 0),uid:r,params:{$param:i[0],$params:i},onError:(l=t.events)==null?void 0:l.error,onProgress:(s=t.events)==null?void 0:s.progress,onBeforeRequest:(u=t.events)==null?void 0:u.beforeRequest,onSuccess:(c=t.events)==null?void 0:c.success},{resolveBindingExpressions:!0})});return m.useEffect(()=>{e({execute:n,_SUPPORT_IMPLICIT_CONTEXT:!0})},[n,e]),null}const l4="APICall",Jhe={status:"stable",description:"`APICall` creates, updates or deletes data on the backend, versus [`DataSource`](/components/DataSource) which fetches data. Unlike DataSource, APICall doesn't automatically execute - you must trigger it manually with the `execute()` method, typically from form submissions or button clicks.",props:{method:{description:"The method of data manipulation can be done via setting this property.",valueType:"string",availableValues:$Y,defaultValue:jEt.method},url:{description:"Use this property to set the URL to which data will be sent. If not provided, an empty URL is used.",isRequired:!0,valueType:"string"},rawBody:{description:"This optional property sets the request body to the value provided here without any conversion. Use the * `body` property if you want the object sent in JSON. When you define `body` and `rawBody`, the latest one prevails.",valueType:"string"},body:{description:"This optional property sets the request body. Use to pass an object that will be serialized as a JSON string. If you have an object that is already serialized as a JSON string, use `rawBody` instead.",valueType:"string"},queryParams:{description:"This optional property sets the query parameters for the request. The object you pass here will be serialized to a query string and appended to the request URL. You can specify key and value pairs where the key is the name of a particular query parameter and the value is that parameter's value."},headers:{description:"You can optionally define request header values as key-value pairs, where the key is the ID of the particular header and the value is that header's corresponding value."},confirmTitle:{description:`This optional string sets the title in the confirmation dialog that is displayed before the \`${l4}\` is executed.`,valueType:"string"},confirmMessage:{description:`This optional string sets the message in the confirmation dialog that is displayed before the \`${l4}\` is executed.`,valueType:"string"},confirmButtonLabel:{description:`This optional string property enables the customization of the submit button in the confirmation dialog that is displayed before the \`${l4}\` is executed.`,valueType:"string"},inProgressNotificationMessage:{description:"This property customizes the message that is displayed in a toast while the API operation is in progress. If not defined, no progress message is displayed.",valueType:"string"},errorNotificationMessage:{description:"This property defines the message to display automatically when the operation results in an error. You can use the `$error` context value in an expression to refer to the original error message.",valueType:"string"},completedNotificationMessage:{description:"This property defines the message to display automatically when the operation has been completed. When this property is not defined, the completion does not display any message.",valueType:"string"},payloadType:Vn(),invalidates:Vn(),updates:Vn(),optimisticValue:Vn(),getOptimisticValue:Vn()},events:{beforeRequest:{description:"This event fires before the request is sent. Returning an explicit boolean`false` value will prevent the request from being sent."},success:{description:"This event fires when a request results in a success."},error:{description:"This event fires when a request results in an error."},progress:Vn()},contextVars:{$param:{description:"The first parameter passed to `execute()` method"},$params:{description:"Array of all parameters passed to `execute()` method (access with `$params[0]`, `$params[1]`, etc.)"},$result:{description:"Response data (available in `completedNotificationMessage` and `success` event)"},$error:{description:"Error details (available in `errorNotificationMessage` and `error` event)"}},apis:{execute:{description:"This method triggers the invocation of the API. You can pass an arbitrary number of parameters to the method. In the `APICall` instance, you can access those with the `$param` and `$params` context values."}}},zEt=we(l4,Jhe,({node:e,registerComponentApi:t,uid:r,extractValue:n})=>C.jsx(MEt,{registerComponentApi:t,node:e,uid:r})),FEt={enabled:!0},ege=m.memo(e=>{const t=git();return t?C.jsx(t,{...e}):null});ege.displayName="OptionNative";const WEt="Option",tge={status:"stable",description:"`Option` defines selectable items for choice-based components, providing both the underlying value and display text for selection interfaces. It serves as a non-visual data structure that describes individual choices within [Select](/components/Select), [AutoComplete](/components/AutoComplete), and other selection components.",props:{label:re("This property defines the text to display for the option. If `label` is not defined, `Option` will use the `value` as the label."),value:re("This property defines the value of the option. If `value` is not defined, `Option` will use the `label` as the value. If neither is defined, the option is not displayed."),enabled:{description:"This boolean property indicates whether the option is enabled or disabled.",valueType:"boolean",defaultValue:FEt.enabled},optionTemplate:re("This property is used to define a custom option template")},childrenAsTemplate:"optionTemplate"},VEt=we(WEt,tge,({node:e,extractValue:t,layoutCss:r,renderChild:n,layoutContext:o})=>{const i=e.props.optionTemplate,a=t.asOptionalString(e.props.label)||t(e.props.value),l=t.asOptionalString(e.props.value)||t(e.props.label);return a===void 0?null:C.jsx(ege,{optionRenderer:i?s=>C.jsx(Oi,{node:i,renderChild:n,contextVars:s,layoutContext:o}):void 0,label:a,value:l,enabled:t.asOptionalBoolean(e.props.enabled),style:r})}),Zn="AutoComplete",rge={status:"experimental",description:"`AutoComplete` is a searchable dropdown input that allows users to type and filter through options, with support for single or multiple selections. Unlike a basic [`Select`](/components/Select), it provides type-ahead functionality and can allow users to create new options.",props:{placeholder:Df(),initialValue:Ba(),maxLength:sy(),autoFocus:{...Bi(),defaultValue:Io.autoFocus},required:{...bl(),defaultValue:Io.required},readOnly:{...gl(),defaultValue:Io.readOnly},enabled:{...So(),defaultValue:Io.enabled},creatable:re("This property allows the user to create new items that are not present in the list of options.",null,"boolean",Io.creatable),validationStatus:{...vl(),defaultValue:Io.validationStatus},label:io(),labelPosition:{...$a(),defaultValue:Io.labelPosition},labelWidth:Da(Zn),labelBreak:hl(Zn),dropdownHeight:re("This property sets the height of the dropdown list."),multi:{...BY(),defaultValue:Io.multi},optionTemplate:xr("This property enables the customization of list items. To access the attributes of a list item use the `$item` context variable."),emptyListTemplate:xr("This property defines the template to display when the list of options is empty.")},events:{gotFocus:Ha(Zn),lostFocus:Na(Zn),didChange:Ei(Zn)},apis:{focus:au(Zn),value:re("You can query the component's value. If no value is set, it will retrieve `undefined`."),setValue:us()},contextVars:{$item:re("This context value represents an item when you define an option item template. Use `$item.value` and `$item.label` to refer to the value and label of the particular option.")},themeVars:Ze(mi.themeVars),defaultThemeVars:{[`backgroundColor-menu-${Zn}`]:"$backgroundColor-primary",[`boxShadow-menu-${Zn}`]:"$boxShadow-md",[`borderRadius-menu-${Zn}`]:"$borderRadius",[`borderWidth-menu-${Zn}`]:"1px",[`borderColor-menu-${Zn}`]:"$borderColor",[`backgroundColor-item-${Zn}`]:"$backgroundColor-dropdown-item",[`backgroundColor-item-${Zn}--hover`]:"$backgroundColor-dropdown-item--active",[`backgroundColor-item-${Zn}--active`]:"$backgroundColor-dropdown-item--active","minHeight-Input":"39px",[`backgroundColor-${Zn}-badge`]:"$color-primary-500",[`fontSize-${Zn}-badge`]:"$fontSize-small",[`paddingHorizontal-${Zn}-badge`]:"$space-2",[`paddingVertical-${Zn}-badge`]:"$space-1",[`backgroundColor-${Zn}-badge--hover`]:"$color-primary-400",[`backgroundColor-${Zn}-badge--active`]:"$color-primary-500",[`textColor-item-${Zn}--disabled`]:"$color-surface-200",[`textColor-${Zn}-badge`]:"$const-color-surface-50"}},UEt=we(Zn,rge,({node:e,state:t,updateState:r,extractValue:n,renderChild:o,lookupEventHandler:i,layoutCss:a,registerComponentApi:l})=>C.jsx(Kae,{multi:n.asOptionalBoolean(e.props.multi),style:a,updateState:r,initialValue:n(e.props.initialValue),value:t==null?void 0:t.value,creatable:n.asOptionalBoolean(e.props.creatable),label:n(e.props.label),labelPosition:n(e.props.labelPosition),labelWidth:n(e.props.labelWidth),labelBreak:n.asOptionalBoolean(e.props.labelBreak),autoFocus:n.asOptionalBoolean(e.props.autoFocus),enabled:n.asOptionalBoolean(e.props.enabled),placeholder:n.asOptionalString(e.props.placeholder),validationStatus:n(e.props.validationStatus),onDidChange:i("didChange"),onFocus:i("gotFocus"),onBlur:i("lostFocus"),registerComponentApi:l,emptyListTemplate:o(e.props.emptyListTemplate),dropdownHeight:n(e.props.dropdownHeight),readOnly:n.asOptionalBoolean(e.props.readOnly),optionRenderer:e.props.optionTemplate?s=>C.jsx(Oi,{node:e.props.optionTemplate,item:s,renderChild:o}):void 0,children:o(e.children)})),s4={themeVars:'"[]"',backdropContainer:"_backdropContainer_18iuc_13",backdrop:"_backdrop_18iuc_13",overlay:"_overlay_18iuc_26"},u4={backgroundColor:"black",opacity:"0.1"},qEt=m.forwardRef(function({style:t,children:r,overlayTemplate:n,backgroundColor:o=u4.backgroundColor,opacity:i=u4.opacity},a){const l={...t,width:void 0};return C.jsxs("div",{className:s4.backdropContainer,style:{width:t.width??"fit-content"},ref:a,children:[r,C.jsx("div",{className:s4.backdrop,style:{...l,backgroundColor:o,opacity:i}}),n&&C.jsx("div",{className:s4.overlay,children:n})]})}),nge="Backdrop",oge={status:"stable",description:`The \`${nge}\` component is a semi-transparent overlay that appears on top of its child component to obscure or highlight the content behind it.`,props:{overlayTemplate:xr("This property defines the component template for an optional overlay to display over the component."),backgroundColor:{description:"The background color of the backdrop.",valueType:"string",defaultValue:u4.backgroundColor},opacity:{description:"The opacity of the backdrop.",valueType:"string",defaultValue:u4.opacity}},themeVars:Ze(s4.themeVars)},GEt=we(nge,oge,({node:e,extractValue:t,renderChild:r,layoutCss:n})=>{var o;return C.jsx(qEt,{style:n,overlayTemplate:r((o=e.props)==null?void 0:o.overlayTemplate),backgroundColor:t.asOptionalString(e.props.backgroundColor),opacity:t.asString(e.props.opacity),children:r(e.children)})}),ige={status:"deprecated",description:"This component renders an HTML `a` tag.",isHtmlTag:!0,props:{href:re("Specifies the URL of the page the link goes to"),target:re("Specifies where to open the linked document"),rel:re("Specifies the relationship between the current document and the linked document"),download:re("Indicates that the target will be downloaded when a user clicks on the hyperlink"),hreflang:re("Specifies the language of the linked document"),type:re("Specifies the MIME type of the linked document"),ping:re("Specifies a space-separated list of URLs to be notified if the user follows the hyperlink"),referrerPolicy:re("Specifies the referrer policy for the element"),disabled:re("Specifies that the link should be disabled")}},age=we("a",ige,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{disabled:a}=i.asOptionalBoolean("disabled"),{href:l,...s}=i.asRest();return C.jsx(Dy,{to:l,disabled:a??!1,style:o,...s,children:t(e.children)})}),YEt={status:"deprecated",description:"This component renders an HTML `abbr` tag.",isHtmlTag:!0},lge=we("abbr",YEt,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"abbr",children:t(e.children)})}),sge={status:"deprecated",description:"This component renders an HTML `address` tag.",isHtmlTag:!0},uge=we("address",sge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("address",{style:o,...a,children:t(e.children)})}),cge={status:"deprecated",description:"This component renders an HTML `area` tag.",isHtmlTag:!0,props:{alt:re("Specifies an alternate text for the area"),coords:re("Specifies the coordinates of the area"),download:re("Indicates that the target will be downloaded when a user clicks on the area"),href:re("Specifies the URL of the linked document"),hrefLang:re("Specifies the language of the linked document"),referrerPolicy:re("Specifies the referrer policy for the area"),rel:re("Specifies the relationship between the current document and the linked document"),shape:re("Specifies the shape of the area"),target:re("Specifies where to open the linked document"),media:re("Specifies a media query for the linked resource")}},dge=we("area",cge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("area",{style:o,...a,children:t(e.children)})}),fge={status:"deprecated",description:"This component renders an HTML `article` tag.",isHtmlTag:!0},mge=we("article",fge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("article",{style:o,...a,children:t(e.children)})}),pge={status:"deprecated",description:"This component renders an HTML `aside` tag.",isHtmlTag:!0},hge=we("aside",pge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("aside",{style:o,...a,children:t(e.children)})}),gge={status:"deprecated",description:"This component renders an HTML `audio` tag.",isHtmlTag:!0,props:{autoPlay:re("Specifies that the audio will start playing as soon as it is ready"),controls:re("Specifies that audio controls should be displayed"),crossOrigin:re("Specifies how the element handles cross-origin requests"),loop:re("Specifies that the audio will start over again every time it is finished"),muted:re("Specifies that the audio output should be muted"),preload:re("Specifies if and how the author thinks the audio should be loaded when the page loads"),src:re("Specifies the URL of the audio file")}},vge=we("audio",gge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{autoPlay:a,controls:l,loop:s,muted:u}=i.asOptionalBoolean("autoPlay","controls","loop","muted"),c=i.asRest();return C.jsx("audio",{style:o,autoPlay:a??!1,controls:l??!1,loop:s??!1,muted:u??!1,...c,children:t(e.children)})}),bge={status:"deprecated",description:"This component renders an HTML `b` tag.",isHtmlTag:!0},xge=we("b",bge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("b",{style:o,...a,children:t(e.children)})}),yge={status:"deprecated",description:"This component renders an HTML `bdi` tag.",isHtmlTag:!0},wge=we("bdi",yge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("bdi",{style:o,...a,children:t(e.children)})}),Cge={status:"deprecated",description:"This component renders an HTML `bdo` tag.",isHtmlTag:!0,props:{dir:re("Specifies the text direction override")}},kge=we("bdo",Cge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("bdo",{style:o,...a,children:t(e.children)})}),_ge={status:"deprecated",description:"This component renders an HTML `blockquote` tag.",isHtmlTag:!0,props:{cite:re("Specifies the source of the quotation")}},Tge=we("blockquote",_ge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("blockquote",{style:o,...a,children:t(e.children)})}),Sge={status:"deprecated",description:"This component renders an HTML `br` tag.",isHtmlTag:!0},Ege=we("br",Sge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("br",{style:o,...a,children:t(e.children)})}),Age={status:"deprecated",description:"This component renders an HTML `button` tag.",isHtmlTag:!0,props:{autoFocus:re("Specifies that the button should automatically get focus when the page loads"),disabled:re("Specifies that the button should be disabled"),form:re("Specifies the form the button belongs to"),formAction:re("Specifies the URL of a file that processes the information submitted by the button"),formEncType:re("Specifies how the form-data should be encoded when submitting it to the server"),formMethod:re("Specifies the HTTP method to use when sending form-data"),formNoValidate:re("Specifies that the form should not be validated when submitted"),formTarget:re("Specifies where to display the response after submitting the form"),name:re("Specifies a name for the button"),type:re("Specifies the type of the button"),value:re("Specifies the value associated with the button")}},Oge=we("button",Age,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{autoFocus:a,disabled:l,formNoValidate:s}=i.asOptionalBoolean("autoFocus","disabled","formNoValidate"),u=i.asRest();return C.jsx("button",{style:o,autoFocus:a??!1,disabled:l??!1,formNoValidate:s??!1,...u,children:t(e.children)})}),Ige={status:"deprecated",description:"This component renders an HTML `canvas` tag.",isHtmlTag:!0,props:{width:re("Specifies the width of the canvas"),height:re("Specifies the height of the canvas")}},Rge=we("canvas",Ige,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),a=i.asOptionalNumber("width","height"),l=i.asRest();return C.jsx("canvas",{style:o,...a,...l,children:t(e.children)})}),Pge={status:"deprecated",description:"This component renders an HTML `caption` tag.",isHtmlTag:!0},Lge=we("caption",Pge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("caption",{style:o,...a,children:t(e.children)})}),Hge={status:"deprecated",description:"This component renders an HTML `cite` tag.",isHtmlTag:!0},Nge=we("cite",Hge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"cite",children:t(e.children)})}),c4={status:"deprecated",description:"This component renders an HTML `code` tag.",isHtmlTag:!0},$ge=we("code",c4,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"code",children:t(e.children)})}),Dge={status:"deprecated",description:"This component renders an HTML `col` tag.",isHtmlTag:!0,props:{span:re("Specifies the number of columns a `col` element should span")}},Bge=we("col",Dge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{span:a}=i.asOptionalNumber("span"),l=i.asRest();return C.jsx("col",{style:o,span:a,...l,children:t(e.children)})}),jge={status:"deprecated",description:"This component renders an HTML `colgroup` tag.",isHtmlTag:!0,props:{span:re("Specifies the number of columns in a `colgroup`")}},Mge=we("colgroup",jge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{span:a}=i.asOptionalNumber("span"),l=i.asRest();return C.jsx("colgroup",{style:o,span:a,...l,children:t(e.children)})}),zge={status:"deprecated",description:"This component renders an HTML `data` tag.",isHtmlTag:!0,props:{value:re("Specifies the machine-readable value of the element")}},Fge=we("data",zge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("data",{style:o,...a,children:t(e.children)})}),Wge={status:"deprecated",description:"This component renders an HTML `datalist` tag.",isHtmlTag:!0},Vge=we("datalist",Wge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("datalist",{style:o,...a,children:t(e.children)})}),Uge={status:"deprecated",description:"This component renders an HTML `dd` tag.",isHtmlTag:!0},qge=we("dd",Uge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("dd",{style:o,...a,children:t(e.children)})}),Gge={status:"deprecated",description:"This component renders an HTML `del` tag.",isHtmlTag:!0,props:{cite:re("Specifies the source of the quotation"),dateTime:re("Specifies the date and time of the edit")}},Yge=we("del",Gge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"deleted",children:t(e.children)})}),Kge={status:"deprecated",description:"This component renders an HTML `details` tag.",isHtmlTag:!0,props:{open:re("Specifies that the details are visible (open)")},themeVars:Ze(er.themeVarsDetails),defaultThemeVars:{"marginTop-HtmlDetails":"1rem","marginBottom-HtmlDetails":"1rem"}},Xge=we("details",Kge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{open:a}=i.asOptionalBoolean("open"),l=i.asRest();return C.jsx("details",{style:o,className:er.htmlDetails,open:a??!1,...l,children:t(e.children)})}),Qge={status:"deprecated",description:"This component renders an HTML `dfn` tag.",isHtmlTag:!0},Zge=we("dfn",Qge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("dfn",{style:o,...a,children:t(e.children)})}),Jge={status:"deprecated",description:"This component renders an HTML `dialog` tag.",isHtmlTag:!0,props:{open:re("Specifies that the dialog is open")}},eve=we("dialog",Jge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{open:a}=i.asOptionalBoolean("open"),l=i.asRest();return C.jsx("dialog",{style:o,open:a??!1,...l,children:t(e.children)})}),tve={status:"deprecated",description:"This component renders an HTML `div` tag.",isHtmlTag:!0},rve=we("div",tve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("div",{style:o,...a,children:t(e.children)})}),nve={status:"deprecated",description:"This component renders an HTML `dl` tag.",isHtmlTag:!0},ove=we("dl",nve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("dl",{style:o,...a,children:t(e.children)})}),ive={status:"deprecated",description:"This component renders an HTML `dt` tag.",isHtmlTag:!0},ave=we("dt",ive,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("dt",{style:o,...a,children:t(e.children)})}),VD={status:"deprecated",description:"This component renders an HTML `em` tag.",isHtmlTag:!0},lve=we("em",VD,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"em",children:t(e.children)})}),sve={status:"deprecated",description:"This component renders an HTML `embed` tag.",isHtmlTag:!0,props:{src:re("Specifies the URL of the resource"),type:re("Specifies the type of the resource"),width:re("Specifies the width of the embed"),height:re("Specifies the height of the embed")}},uve=we("embed",sve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{src:a}=i.asUrlResource("src"),l=i.asRest();return C.jsx("embed",{style:o,src:a,...l,children:t(e.children)})}),cve={status:"deprecated",description:"This component renders an HTML `fieldset` tag.",isHtmlTag:!0,props:{disabled:re("Specifies that the fieldset should be disabled"),form:re("Specifies the form the fieldset belongs to"),name:re("Specifies a name for the fieldset")}},dve=we("fieldset",cve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{disabled:a}=i.asOptionalBoolean("disabled"),l=i.asRest();return C.jsx("fieldset",{style:o,disabled:a??!1,...l,children:t(e.children)})}),fve={status:"deprecated",description:"This component renders an HTML `figcaption` tag.",isHtmlTag:!0},mve=we("figcaption",fve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("figcaption",{style:o,...a,children:t(e.children)})}),pve={status:"deprecated",description:"This component renders an HTML `figure` tag.",isHtmlTag:!0},hve=we("figure",pve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("figure",{style:o,...a,children:t(e.children)})}),gve={status:"deprecated",description:"This component renders an HTML `footer` tag.",isHtmlTag:!0},vve=we("footer",gve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("footer",{style:o,...a,children:t(e.children)})}),bve={status:"deprecated",description:"This component renders an HTML `form` tag.",isHtmlTag:!0,props:{acceptCharset:re("Specifies the character encodings that are to be used for the form submission"),action:re("Specifies where to send the form-data when a form is submitted"),autoComplete:re("Specifies whether a form should have auto-completion"),encType:re("Specifies how the form-data should be encoded when submitting it to the server"),method:re("Specifies the HTTP method to use when sending form-data"),name:re("Specifies the name of the form"),noValidate:re("Specifies that the form should not be validated when submitted"),target:re("Specifies where to display the response after submitting the form")}},xve=we("form",bve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{noValidate:a}=i.asOptionalBoolean("noValidate"),l=i.asRest();return C.jsx("form",{style:o,noValidate:a??!1,...l,children:t(e.children)})}),yve={status:"deprecated",description:"This component renders an HTML `h1` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsHeading),defaultThemeVars:{"marginTop-HtmlHeading":"1rem","marginBottom-HtmlHeading":".5rem"}},wve=we("h1",yve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(gc,{style:o,className:er.htmlHeading,...a,level:"h1",children:t(e.children)})}),Cve={status:"deprecated",description:"This component renders an HTML `h2` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsHeading),defaultThemeVars:{"marginTop-HtmlHeading":"1rem","marginBottom-HtmlHeading":".5rem"}},kve=we("h2",Cve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(gc,{style:o,className:er.htmlHeading,...a,level:"h2",children:t(e.children)})}),_ve={status:"deprecated",description:"This component renders an HTML `h3` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsHeading),defaultThemeVars:{"marginTop-HtmlHeading":"1rem","marginBottom-HtmlHeading":".5rem"}},Tve=we("h3",_ve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(gc,{style:o,className:er.htmlHeading,...a,level:"h3",children:t(e.children)})}),Sve={status:"deprecated",description:"This component renders an HTML `h4` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsHeading),defaultThemeVars:{"marginTop-HtmlHeading":"1rem","marginBottom-HtmlHeading":".5rem"}},Eve=we("h4",Sve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(gc,{style:o,className:er.htmlHeading,...a,level:"h4",children:t(e.children)})}),Ave={status:"deprecated",description:"This component renders an HTML `h5` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsHeading),defaultThemeVars:{"marginTop-HtmlHeading":"1rem","marginBottom-HtmlHeading":".5rem"}},Ove=we("h5",Ave,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(gc,{style:o,className:er.htmlHeading,...a,level:"h5",children:t(e.children)})}),Ive={status:"deprecated",description:"This component renders an HTML `h6` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsHeading),defaultThemeVars:{"marginTop-HtmlHeading":"1rem","marginBottom-HtmlHeading":".5rem"}},Rve=we("h6",Ive,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(gc,{style:o,className:er.htmlHeading,...a,level:"h6",children:t(e.children)})}),Pve={status:"deprecated",description:"This component renders an HTML `header` tag.",isHtmlTag:!0},Lve=we("header",Pve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("header",{style:o,...a,children:t(e.children)})}),Hve={status:"deprecated",description:"This component renders an HTML `hr` tag.",isHtmlTag:!0},Nve=we("hr",Hve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("hr",{style:o,...a,children:t(e.children)})}),$ve={status:"deprecated",description:"This component renders an HTML `i` tag.",isHtmlTag:!0},Dve=we("i",$ve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("i",{style:o,...a,children:t(e.children)})}),Bve={status:"deprecated",description:"This component renders an HTML `iframe` tag.",isHtmlTag:!0,props:{src:re("Specifies the URL of the page to embed"),srcDoc:re("Specifies the HTML content of the page to embed"),name:re("Specifies the name of the iframe"),sandbox:re("Specifies a set of extra restrictions for the content in the iframe"),allow:re("Specifies a feature policy for the iframe"),allowFullScreen:re("Specifies that the iframe can be displayed in full-screen mode"),width:re("Specifies the width of the iframe"),height:re("Specifies the height of the iframe"),loading:re("Specifies the loading behavior of the iframe"),referrerPolicy:re("Specifies the referrer policy for the iframe")}},jve=we("iframe",Bve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{src:a}=i.asUrlResource("src"),{allowFullScreen:l}=i.asOptionalBoolean("allowFullScreen"),s=i.asRest();return C.jsx("iframe",{style:o,src:a,allowFullScreen:l??!1,...s,children:t(e.children)})}),Mve={status:"deprecated",description:"This component renders an HTML `img` tag.",isHtmlTag:!0,props:{alt:re("Specifies an alternate text for an image"),height:re("Specifies the height of an image"),src:re("Specifies the path to the image"),width:re("Specifies the width of an image"),useMap:re("Specifies an image as a client-side image map"),loading:re("Specifies the loading behavior of the image"),referrerPolicy:re("Specifies the referrer policy for the image"),sizes:re("Specifies image sizes for different page layouts")}},zve=we("img",Mve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{src:a}=i.asUrlResource("src"),l=i.asRest();return C.jsx("img",{style:o,src:a,...l,children:t(e.children)})}),Fve={status:"deprecated",description:"This component renders an HTML `input` tag.",isHtmlTag:!0,props:{type:re("Specifies the type of input"),value:re("Specifies the value of the input"),placeholder:re("Specifies a short hint that describes the expected value of the input"),autoFocus:re("Specifies that the input should automatically get focus when the page loads"),checked:re("Specifies that the input should be pre-selected"),disabled:re("Specifies that the input should be disabled"),form:re("Specifies the form the input belongs to"),name:re("Specifies the name of the input"),list:re("Specifies the id of a datalist element that contains pre-defined options for the input"),max:re("Specifies the maximum value for an input"),maxLength:re("Specifies the maximum number of characters allowed in an input"),min:re("Specifies the minimum value for an input"),minLength:re("Specifies the minimum number of characters allowed in an input"),multiple:re("Specifies that a user can enter more than one value"),pattern:re("Specifies a regular expression that an input's value is checked against"),readOnly:re("Specifies that the input is read-only"),required:re("Specifies that the input is required"),size:re("Specifies the width, in characters, of an input"),step:re("Specifies the legal number intervals for an input")}},Wve=we("input",Fve,({node:e,extractValue:t,extractResourceUrl:r,layoutCss:n})=>{const o=new qe(t,r,n,e.props),{autoFocus:i,checked:a,disabled:l,readOnly:s,required:u,multiple:c}=o.asOptionalBoolean("autoFocus","checked","disabled","readOnly","required","multiple"),d=o.asOptionalNumber("maxLength","minLength","size"),f=o.asRest();return C.jsx("input",{style:n,autoFocus:i??!1,checked:a??!1,disabled:l??!1,multiple:c??!1,readOnly:s??!1,required:u??!1,...d,...f})}),Vve={status:"deprecated",description:"This component renders an HTML `ins` tag.",isHtmlTag:!0,props:{cite:re("Specifies the source URL for the inserted text"),dateTime:re("Specifies the date and time when the text was inserted")}},Uve=we("ins",Vve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"inserted",children:t(e.children)})}),qve={status:"deprecated",description:"This component renders an HTML `kbd` tag.",isHtmlTag:!0},Gve=we("kbd",qve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"keyboard",children:t(e.children)})}),Yve={status:"deprecated",description:"This component renders an HTML `label` tag.",isHtmlTag:!0,props:{htmlFor:re("Specifies which form element a label is bound to")}},Kve=we("label",Yve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("label",{style:o,...a,children:t(e.children)})}),Xve={status:"deprecated",description:"This component renders an HTML `legend` tag.",isHtmlTag:!0},Qve=we("legend",Xve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("legend",{style:o,...a,children:t(e.children)})}),Zve={status:"deprecated",description:"This component renders an HTML `li` tag.",isHtmlTag:!0,props:{value:re("Specifies the value of the list item (if the parent is an ordered list)")},defaultThemeVars:{"marginLeft-HtmlLi":"$space-6","paddingLeft-HtmlLi":"$space-1"}},Jve=we("li",Zve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{value:a}=i.asOptionalNumber("value"),l=i.asRest();return C.jsx("li",{style:o,value:a,...l,children:t(e.children)})}),ebe={status:"deprecated",description:"This component renders an HTML `main` tag.",isHtmlTag:!0},tbe=we("main",ebe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("main",{style:o,...a,children:t(e.children)})}),rbe={status:"deprecated",description:"This component renders an HTML `map` tag.",isHtmlTag:!0,props:{name:re("Specifies the name of the map")}},nbe=we("map",rbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("map",{style:o,...a,children:t(e.children)})}),obe={status:"deprecated",description:"This component renders an HTML `mark` tag.",isHtmlTag:!0},ibe=we("mark",obe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"marked",children:t(e.children)})}),abe={status:"deprecated",description:"This component renders an HTML `menu` tag.",isHtmlTag:!0,props:{type:re("Specifies the type of the menu")}},lbe=we("menu",abe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("menu",{style:o,...a,children:t(e.children)})}),sbe={status:"deprecated",description:"This component renders an HTML `meter` tag.",isHtmlTag:!0,props:{min:re("Specifies the minimum value"),max:re("Specifies the maximum value"),low:re("Specifies the lower bound of the high value"),high:re("Specifies the upper bound of the low value"),optimum:re("Specifies the optimal value"),value:re("Specifies the current value")}},ube=we("meter",sbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),a=i.asOptionalNumber("value","min","max","low","high","optimum"),l=i.asRest();return C.jsx("meter",{style:o,...a,...l,children:t(e.children)})}),cbe={status:"deprecated",description:"This component renders an HTML `nav` tag.",isHtmlTag:!0},dbe=we("nav",cbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("nav",{style:o,...a,children:t(e.children)})}),fbe={status:"deprecated",description:"This component renders an HTML `object` tag.",isHtmlTag:!0,props:{data:re("Specifies the URL of the resource"),type:re("Specifies the MIME type of the resource"),name:re("Specifies the name of the object"),form:re("Specifies the form the object belongs to"),width:re("Specifies the width of the object"),height:re("Specifies the height of the object")}},mbe=we("object",fbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("object",{style:o,...a,children:t(e.children)})}),pbe={status:"deprecated",description:"This component renders an HTML `ol` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsList),defaultThemeVars:{"marginTop-HtmlOl":"$space-5","marginBottom-HtmlOl":"$space-5"}},hbe=we("ol",pbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("ol",{style:o,className:er.htmlOl,...a,children:t(e.children)})}),gbe={status:"deprecated",description:"This component renders an HTML `optgroup` tag.",isHtmlTag:!0,props:{label:re("Specifies the label for the option group"),disabled:re("Specifies that the option group is disabled")}},vbe=we("optgroup",gbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{disabled:a}=i.asOptionalBoolean("disabled"),l=i.asRest();return C.jsx("optgroup",{style:o,disabled:a??!1,...l,children:t(e.children)})}),bbe={status:"deprecated",description:"This component renders an HTML `option` tag.",isHtmlTag:!0,props:{disabled:re("Specifies that the option should be disabled"),label:re("Specifies the label of the option"),selected:re("Specifies that the option should be pre-selected"),value:re("Specifies the value of the option")}},xbe=we("option",bbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{disabled:a,selected:l}=i.asOptionalBoolean("disabled","selected"),s=i.asRest();return C.jsx("option",{style:o,disabled:a??!1,selected:l??!1,...s,children:t(e.children)})}),ybe={status:"deprecated",description:"This component renders an HTML `output` tag.",isHtmlTag:!0,props:{form:re("Specifies the form element that the output is associated with"),htmlFor:re("Specifies the IDs of the elements that this output is related to"),name:re("Specifies the name of the output")}},wbe=we("output",ybe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("output",{style:o,...a,children:t(e.children)})}),Cbe={status:"deprecated",description:"This component renders an HTML `p` tag.",isHtmlTag:!0},kbe=we("p",Cbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"paragraph",children:t(e.children)})}),_be={status:"deprecated",description:"This component renders an HTML `param` tag.",isHtmlTag:!0,props:{name:re("Specifies the name of the parameter"),value:re("Specifies the value of the parameter")}},Tbe=we("param",_be,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("param",{style:o,...a,children:t(e.children)})}),Sbe={status:"deprecated",description:"This component renders an HTML `picture` tag.",isHtmlTag:!0},Ebe=we("picture",Sbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("picture",{style:o,...a,children:t(e.children)})}),Abe={status:"deprecated",description:"This component renders an HTML `pre` tag.",isHtmlTag:!0},Obe=we("pre",Abe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"codefence",children:t(e.children)})}),Ibe={status:"deprecated",description:"This component renders an HTML `progress` tag.",isHtmlTag:!0,props:{max:re("Specifies the maximum value of the progress element"),value:re("Specifies the current value of the progress element")}},Rbe=we("progress",Ibe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),a=i.asOptionalNumber("max","value"),l=i.asRest();return C.jsx("progress",{style:o,...a,...l,children:t(e.children)})}),Pbe={status:"deprecated",description:"This component renders an HTML `q` tag.",isHtmlTag:!0,props:{cite:re("Specifies the source URL of the quotation")}},Lbe=we("q",Pbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("q",{style:o,...a,children:t(e.children)})}),Hbe={status:"deprecated",description:"This component renders an HTML `rp` tag.",isHtmlTag:!0},Nbe=we("rp",Hbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("rp",{style:o,...a,children:t(e.children)})}),$be={status:"deprecated",description:"This component renders an HTML `rt` tag.",isHtmlTag:!0},Dbe=we("rt",$be,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("rt",{style:o,...a,children:t(e.children)})}),Bbe={status:"deprecated",description:"This component renders an HTML `ruby` tag.",isHtmlTag:!0},jbe=we("ruby",Bbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("ruby",{style:o,...a,children:t(e.children)})}),Mbe={status:"deprecated",description:"This component renders an HTML `s` tag.",isHtmlTag:!0},zbe=we("s",Mbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("s",{style:o,...a,children:t(e.children)})}),Fbe={status:"deprecated",description:"This component renders an HTML `samp` tag.",isHtmlTag:!0},Wbe=we("samp",Fbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"sample",children:t(e.children)})}),Vbe={status:"deprecated",description:"This component renders an HTML `section` tag.",isHtmlTag:!0},Ube=we("section",Vbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("section",{style:o,...a,children:t(e.children)})}),qbe={status:"deprecated",description:"This component renders an HTML `select` tag.",isHtmlTag:!0,props:{autoFocus:re("Specifies that the select should automatically get focus when the page loads"),disabled:re("Specifies that the select should be disabled"),form:re("Specifies the form the select belongs to"),multiple:re("Specifies that multiple options can be selected at once"),name:re("Specifies the name of the select"),required:re("Specifies that the select is required"),size:re("Specifies the number of visible options in the select")}},Gbe=we("select",qbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{autoFocus:a,disabled:l,multiple:s,required:u}=i.asOptionalBoolean("autoFocus","disabled","multiple","required"),{size:c}=i.asOptionalNumber("size"),d=i.asRest();return C.jsx("select",{style:o,autoFocus:a??!1,disabled:l??!1,multiple:s??!1,required:u??!1,size:c,...d,children:t(e.children)})}),Ybe={status:"deprecated",description:"This component renders an HTML `small` tag.",isHtmlTag:!0},Kbe=we("small",Ybe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"small",children:t(e.children)})}),Xbe={status:"deprecated",description:"This component renders an HTML `source` tag.",isHtmlTag:!0,props:{src:re("Specifies the URL of the media file"),type:re("Specifies the type of the media file"),media:re("Specifies a media query for the media file"),srcSet:re("Specifies the source set for responsive images"),sizes:re("Specifies the sizes attribute for responsive images")}},Qbe=we("source",Xbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{src:a}=i.asUrlResource("src"),l=i.asRest();return C.jsx("source",{style:o,src:a,...l,children:t(e.children)})}),Zbe={status:"deprecated",description:"This component renders an HTML `span` tag.",isHtmlTag:!0},Jbe=we("span",Zbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("span",{style:o,...a,children:t(e.children)})}),e0e={status:"deprecated",description:"This component renders an HTML `strong` tag.",isHtmlTag:!0},t0e=we("strong",e0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"strong",children:t(e.children)})}),r0e={status:"deprecated",description:"This component renders an HTML `sub` tag.",isHtmlTag:!0},n0e=we("sub",r0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"sub",children:t(e.children)})}),o0e={status:"deprecated",description:"This component renders an HTML `summary` tag.",isHtmlTag:!0},i0e=we("summary",o0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("summary",{style:o,...a,children:t(e.children)})}),a0e={status:"deprecated",description:"This component renders an HTML `sup` tag.",isHtmlTag:!0},l0e=we("sup",a0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"sup",children:t(e.children)})}),s0e={status:"deprecated",description:"This component renders an HTML `table` tag.",isHtmlTag:!0,props:{border:re("Specifies the width of the border around the table"),cellPadding:re("Specifies the space between the cell content and its borders"),cellSpacing:re("Specifies the space between cells"),summary:re("Provides a summary of the table's purpose and structure"),width:re("Specifies the width of the table"),align:re("Specifies the alignment of the table"),frame:re("Specifies which parts of the table frame to render"),rules:re("Specifies which rules to draw between cells")},themeVars:Ze(er.themeVarsTable),defaultThemeVars:{"backgroundColor-HtmlTable":"$backgroundColor","border-HtmlTable":"1px solid $borderColor","marginBottom-HtmlTable":"$space-4","marginTop-HtmlTable":"$space-4"}},u0e=we("table",s0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("table",{style:o,className:er.htmlTable,...a,children:t(e.children)})}),c0e={status:"deprecated",description:"This component renders an HTML `tbody` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsTbody)},d0e=we("tbody",c0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("tbody",{style:o,className:er.htmlTbody,...a,children:t(e.children)})}),f0e={status:"deprecated",description:"This component renders an HTML `td` tag.",isHtmlTag:!0,props:{align:re("Specifies the horizontal alignment of the content in the cell"),colSpan:re("Specifies the number of columns a cell should span"),headers:re("Specifies a list of header cells the current cell is related to"),rowSpan:re("Specifies the number of rows a cell should span"),valign:re("Specifies the vertical alignment of the content in the cell"),scope:re("Specifies whether a cell is a header for a column, row, or group of columns or rows"),abbr:re("Specifies an abbreviated version of the content in the cell"),height:re("Specifies the height of the cell"),width:re("Specifies the width of the cell")},themeVars:Ze(er.themeVarsTd),defaultThemeVars:{"padding-HtmlTd":"$space-2","borderBottom-HtmlTd":"1px solid $borderColor"}},m0e=we("td",f0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("td",{style:o,className:er.htmlTd,...a,children:t(e.children)})}),p0e={status:"deprecated",description:"This component renders an HTML `template` tag.",isHtmlTag:!0},h0e=we("template",p0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("template",{style:o,...a,children:t(e.children)})}),g0e={status:"deprecated",description:"This component renders an HTML `textarea` tag.",isHtmlTag:!0,props:{autoFocus:re("Specifies that the textarea should automatically get focus when the page loads"),cols:re("Specifies the visible width of the text area in average character widths"),dirName:re("Specifies the text directionality"),disabled:re("Specifies that the textarea should be disabled"),form:re("Specifies the form the textarea belongs to"),maxLength:re("Specifies the maximum number of characters allowed in the textarea"),minLength:re("Specifies the minimum number of characters allowed in the textarea"),name:re("Specifies the name of the textarea"),placeholder:re("Specifies a short hint that describes the expected value"),readOnly:re("Specifies that the textarea is read-only"),required:re("Specifies that the textarea is required"),rows:re("Specifies the visible number of lines in the textarea"),value:re("Specifies the current value of the textarea"),wrap:re("Specifies how the text in a textarea is to be wrapped when submitted")}},v0e=we("textarea",g0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{autoFocus:a,disabled:l,readOnly:s,required:u}=i.asOptionalBoolean("autoFocus","disabled","readOnly","required"),c=i.asOptionalNumber("cols","rows","maxLength","minLength"),d=i.asRest();return C.jsx("textarea",{style:o,autoFocus:a??!1,disabled:l??!1,readOnly:s??!1,required:u??!1,...c,...d,children:t(e.children)})}),b0e={status:"deprecated",description:"This component renders an HTML `tfoot` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsTfoot)},x0e=we("tfoot",b0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("tfoot",{style:o,className:er.htmlTfoot,...a,children:t(e.children)})}),y0e={status:"deprecated",description:"This component renders an HTML `th` tag.",isHtmlTag:!0,props:{abbr:re("Specifies an abbreviated version of the content in the header cell"),align:re("Specifies the horizontal alignment of the content in the header cell"),colSpan:re("Specifies the number of columns a header cell should span"),headers:re("Specifies a list of header cells the current header cell is related to"),rowSpan:re("Specifies the number of rows a header cell should span"),scope:re("Specifies whether a header cell is a header for a column, row, or group of columns or rows")},themeVars:Ze(er.themeVarsTh),defaultThemeVars:{"padding-HtmlTh":"$space-2","fontSize-HtmlTh":"$fontSize-tiny","fontWeight-HtmlTh":"$fontWeight-bold"}},w0e=we("th",y0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("th",{style:o,className:er.htmlTh,...a,children:t(e.children)})}),C0e={status:"deprecated",description:"This component renders an HTML `thead` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsThead),defaultThemeVars:{"textTransform-HtmlThead":"uppercase","backgroundColor-HtmlThead":"$color-surface-100","textColor-HtmlThead":"$color-surface-500"}},k0e=we("thead",C0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("thead",{style:o,className:er.htmlThead,...a,children:t(e.children)})}),_0e={status:"deprecated",description:"This component renders an HTML `time` tag.",isHtmlTag:!0,props:{dateTime:re("Specifies the date and time in a machine-readable format")}},T0e=we("time",_0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("time",{style:o,...a,children:t(e.children)})}),S0e={status:"deprecated",description:"This component renders an HTML `tr` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsTr),defaultThemeVars:{"fontSize-HtmlTr":"$fontSize-small","backgroundColor-row-HtmlTr":"inherit"}},E0e=we("tr",S0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("tr",{style:o,className:er.htmlTr,...a,children:t(e.children)})}),A0e={status:"deprecated",description:"This component renders an HTML `track` tag.",isHtmlTag:!0,props:{default:re("Specifies that the track is to be enabled if no other track is more suitable"),kind:re("Specifies the kind of text track"),label:re("Specifies the title of the text track"),src:re("Specifies the URL of the track file"),srcLang:re("Specifies the language of the track text data")}},O0e=we("track",A0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{src:a}=i.asUrlResource("src"),{default:l}=i.asOptionalBoolean("default"),s=i.asRest();return C.jsx("track",{style:o,default:l??!1,src:a,...s,children:t(e.children)})}),I0e={status:"deprecated",description:"This component renders an HTML `u` tag.",isHtmlTag:!0},R0e=we("u",I0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("u",{style:o,...a,children:t(e.children)})}),P0e={status:"deprecated",description:"This component renders an HTML `ul` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsList),defaultThemeVars:{"marginTop-HtmlUl":"$space-5","marginBottom-HtmlUl":"$space-5"}},L0e=we("ul",P0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("ul",{style:o,className:er.htmlUl,...a,children:t(e.children)})}),KEt={status:"deprecated",description:"This component renders an HTML `var` tag.",isHtmlTag:!0},H0e=we("var",c4,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"var",children:t(e.children)})}),N0e={status:"deprecated",description:"This component renders an HTML `video` tag.",isHtmlTag:!0,props:{autoPlay:re("Specifies that the video will start playing as soon as it is ready"),controls:re("Specifies that video controls should be displayed"),height:re("Specifies the height of the video player"),loop:re("Specifies that the video will start over again when finished"),muted:re("Specifies that the video output should be muted"),poster:re("Specifies an image to be shown while the video is downloading"),preload:re("Specifies if and how the author thinks the video should be loaded when the page loads"),src:re("Specifies the URL of the video file"),width:re("Specifies the width of the video player")},themeVars:Ze(er.themeVarsVideo),defaultThemeVars:{"marginTop-HtmlVideo":"1rem","marginBottom-HtmlVideo":"1rem"}},$0e=we("video",N0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{src:a}=i.asUrlResource("src"),{autoPlay:l,controls:s,loop:u,muted:c}=i.asOptionalBoolean("autoPlay","controls","loop","muted"),d=i.asRest();return C.jsx("video",{style:o,src:a,autoPlay:l??!1,controls:s??!1,loop:u??!1,muted:c??!1,...d,children:t(e.children)})}),D0e={status:"deprecated",description:"This component renders an HTML `wbr` tag.",isHtmlTag:!0},B0e=we("wbr",D0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("wbr",{style:o,...a,children:t(e.children)})}),B0="ColorPicker",j0e={status:"stable",description:"`ColorPicker` enables users to choose colors by specifying RGB, HSL, or HEX values.",props:{initialValue:Ba(),label:io(),labelPosition:$a(),labelWidth:Da(B0),labelBreak:hl(B0),enabled:So(),autoFocus:Bi(),required:bl(),readOnly:gl(),validationStatus:vl(jw.validationStatus)},events:{didChange:Ei(B0),gotFocus:Ha(B0),lostFocus:Na(B0)},apis:{focus:au(B0),value:Fv(),setValue:us()},themeVars:Ze(i0.themeVars)},XEt=we("ColorPicker",j0e,({node:e,extractValue:t,layoutCss:r,state:n,lookupEventHandler:o,registerComponentApi:i,updateState:a})=>{var u,c,d,f,p,h,v,b;const l=t.asOptionalBoolean((u=e.props)==null?void 0:u.enabled,!0),s=t.asOptionalBoolean((c=e.props)==null?void 0:c.readOnly,!1);return C.jsx(Q8,{validationStatus:t(e.props.validationStatus),value:n.value,initialValue:t(e.props.initialValue),updateState:a,onDidChange:o("didChange"),onFocus:o("gotFocus"),onBlur:o("lostFocus"),registerComponentApi:i,style:r,required:t.asOptionalBoolean((d=e.props)==null?void 0:d.required),enabled:l&&!s,autoFocus:t.asOptionalBoolean((f=e.props)==null?void 0:f.autoFocus),label:t((p=e.props)==null?void 0:p.label),labelPosition:t((h=e.props)==null?void 0:h.labelPosition),labelBreak:t((v=e.props)==null?void 0:v.labelBreak),labelWidth:t((b=e.props)==null?void 0:b.labelWidth)})}),UD="RadioItem",QEt={status:"experimental",description:`The \`${UD}\` component is a radio button that is part of a group of radio buttons.`,props:{checked:{description:"This property specifies whether the radio button is checked.",defaultValue:Jb.checked},value:{description:"This property specifies the value of the radio button.",defaultValue:Jb.value}},events:{didChange:Ei(UD)}},ZEt=we(UD,QEt,({node:e,extractValue:t,lookupEventHandler:r})=>C.jsx(Xit,{checked:t(e.props.checked),value:t(e.props.value),onDidChange:r("didChange")}));var M0e=function(t){return t.reduce(function(r,n){var o=n[0],i=n[1];return r[o]=i,r},{})},z0e=typeof window<"u"&&window.document&&window.document.createElement?m.useLayoutEffect:m.useEffect,Ja="top",Ls="bottom",Hs="right",el="left",qD="auto",W2=[Ja,Ls,Hs,el],j0="start",V2="end",JEt="clippingParents",F0e="viewport",U2="popper",e6t="reference",W0e=W2.reduce(function(e,t){return e.concat([t+"-"+j0,t+"-"+V2])},[]),V0e=[].concat(W2,[qD]).reduce(function(e,t){return e.concat([t,t+"-"+j0,t+"-"+V2])},[]),t6t="beforeRead",r6t="read",n6t="afterRead",o6t="beforeMain",i6t="main",a6t="afterMain",l6t="beforeWrite",s6t="write",u6t="afterWrite",c6t=[t6t,r6t,n6t,o6t,i6t,a6t,l6t,s6t,u6t];function $c(e){return e?(e.nodeName||"").toLowerCase():null}function Ns(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ug(e){var t=Ns(e).Element;return e instanceof t||e instanceof Element}function $s(e){var t=Ns(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function GD(e){if(typeof ShadowRoot>"u")return!1;var t=Ns(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function d6t(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!$s(i)||!$c(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(a){var l=o[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function f6t(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=a.reduce(function(s,u){return s[u]="",s},{});!$s(o)||!$c(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(s){o.removeAttribute(s)}))})}}const m6t={name:"applyStyles",enabled:!0,phase:"write",fn:d6t,effect:f6t,requires:["computeStyles"]};function Dc(e){return e.split("-")[0]}var cg=Math.max,d4=Math.min,M0=Math.round;function YD(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function U0e(){return!/^((?!chrome|android).)*safari/i.test(YD())}function z0(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&$s(e)&&(o=e.offsetWidth>0&&M0(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&M0(n.height)/e.offsetHeight||1);var a=ug(e)?Ns(e):window,l=a.visualViewport,s=!U0e()&&r,u=(n.left+(s&&l?l.offsetLeft:0))/o,c=(n.top+(s&&l?l.offsetTop:0))/i,d=n.width/o,f=n.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function KD(e){var t=z0(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function q0e(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&GD(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Yd(e){return Ns(e).getComputedStyle(e)}function p6t(e){return["table","td","th"].indexOf($c(e))>=0}function Wm(e){return((ug(e)?e.ownerDocument:e.document)||window.document).documentElement}function f4(e){return $c(e)==="html"?e:e.assignedSlot||e.parentNode||(GD(e)?e.host:null)||Wm(e)}function G0e(e){return!$s(e)||Yd(e).position==="fixed"?null:e.offsetParent}function h6t(e){var t=/firefox/i.test(YD()),r=/Trident/i.test(YD());if(r&&$s(e)){var n=Yd(e);if(n.position==="fixed")return null}var o=f4(e);for(GD(o)&&(o=o.host);$s(o)&&["html","body"].indexOf($c(o))<0;){var i=Yd(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function q2(e){for(var t=Ns(e),r=G0e(e);r&&p6t(r)&&Yd(r).position==="static";)r=G0e(r);return r&&($c(r)==="html"||$c(r)==="body"&&Yd(r).position==="static")?t:r||h6t(e)||t}function XD(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function G2(e,t,r){return cg(e,d4(t,r))}function g6t(e,t,r){var n=G2(e,t,r);return n>r?r:n}function Y0e(){return{top:0,right:0,bottom:0,left:0}}function K0e(e){return Object.assign({},Y0e(),e)}function X0e(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var v6t=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,K0e(typeof t!="number"?t:X0e(t,W2))};function b6t(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,l=Dc(r.placement),s=XD(l),u=[el,Hs].indexOf(l)>=0,c=u?"height":"width";if(!(!i||!a)){var d=v6t(o.padding,r),f=KD(i),p=s==="y"?Ja:el,h=s==="y"?Ls:Hs,v=r.rects.reference[c]+r.rects.reference[s]-a[s]-r.rects.popper[c],b=a[s]-r.rects.reference[s],y=q2(i),w=y?s==="y"?y.clientHeight||0:y.clientWidth||0:0,k=v/2-b/2,E=d[p],_=w-f[c]-d[h],S=w/2-f[c]/2+k,A=G2(E,S,_),O=s;r.modifiersData[n]=(t={},t[O]=A,t.centerOffset=A-S,t)}}function x6t(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||q0e(t.elements.popper,o)&&(t.elements.arrow=o))}const y6t={name:"arrow",enabled:!0,phase:"main",fn:b6t,effect:x6t,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function F0(e){return e.split("-")[1]}var w6t={top:"auto",right:"auto",bottom:"auto",left:"auto"};function C6t(e){var t=e.x,r=e.y,n=window,o=n.devicePixelRatio||1;return{x:M0(t*o)/o||0,y:M0(r*o)/o||0}}function Q0e(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=f===void 0?0:f,h=a.y,v=h===void 0?0:h,b=typeof c=="function"?c({x:p,y:v}):{x:p,y:v};p=b.x,v=b.y;var y=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),k=el,E=Ja,_=window;if(u){var S=q2(r),A="clientHeight",O="clientWidth";if(S===Ns(r)&&(S=Wm(r),Yd(S).position!=="static"&&l==="absolute"&&(A="scrollHeight",O="scrollWidth")),S=S,o===Ja||(o===el||o===Hs)&&i===V2){E=Ls;var I=d&&S===_&&_.visualViewport?_.visualViewport.height:S[A];v-=I-n.height,v*=s?1:-1}if(o===el||(o===Ja||o===Ls)&&i===V2){k=Hs;var L=d&&S===_&&_.visualViewport?_.visualViewport.width:S[O];p-=L-n.width,p*=s?1:-1}}var P=Object.assign({position:l},u&&w6t),H=c===!0?C6t({x:p,y:v}):{x:p,y:v};if(p=H.x,v=H.y,s){var j;return Object.assign({},P,(j={},j[E]=w?"0":"",j[k]=y?"0":"",j.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",j))}return Object.assign({},P,(t={},t[E]=w?v+"px":"",t[k]=y?p+"px":"",t.transform="",t))}function k6t(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,a=i===void 0?!0:i,l=r.roundOffsets,s=l===void 0?!0:l,u={placement:Dc(t.placement),variation:F0(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Q0e(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Q0e(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const _6t={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:k6t,data:{}};var m4={passive:!0};function T6t(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,a=n.resize,l=a===void 0?!0:a,s=Ns(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",r.update,m4)}),l&&s.addEventListener("resize",r.update,m4),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",r.update,m4)}),l&&s.removeEventListener("resize",r.update,m4)}}const S6t={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:T6t,data:{}};var E6t={left:"right",right:"left",bottom:"top",top:"bottom"};function p4(e){return e.replace(/left|right|bottom|top/g,function(t){return E6t[t]})}var A6t={start:"end",end:"start"};function Z0e(e){return e.replace(/start|end/g,function(t){return A6t[t]})}function QD(e){var t=Ns(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function ZD(e){return z0(Wm(e)).left+QD(e).scrollLeft}function O6t(e,t){var r=Ns(e),n=Wm(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var u=U0e();(u||!u&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+ZD(e),y:s}}function I6t(e){var t,r=Wm(e),n=QD(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=cg(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=cg(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+ZD(e),s=-n.scrollTop;return Yd(o||r).direction==="rtl"&&(l+=cg(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}function JD(e){var t=Yd(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function J0e(e){return["html","body","#document"].indexOf($c(e))>=0?e.ownerDocument.body:$s(e)&&JD(e)?e:J0e(f4(e))}function Y2(e,t){var r;t===void 0&&(t=[]);var n=J0e(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=Ns(n),a=o?[i].concat(i.visualViewport||[],JD(n)?n:[]):n,l=t.concat(a);return o?l:l.concat(Y2(f4(a)))}function eB(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function R6t(e,t){var r=z0(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function e1e(e,t,r){return t===F0e?eB(O6t(e,r)):ug(t)?R6t(t,r):eB(I6t(Wm(e)))}function P6t(e){var t=Y2(f4(e)),r=["absolute","fixed"].indexOf(Yd(e).position)>=0,n=r&&$s(e)?q2(e):e;return ug(n)?t.filter(function(o){return ug(o)&&q0e(o,n)&&$c(o)!=="body"}):[]}function L6t(e,t,r,n){var o=t==="clippingParents"?P6t(e):[].concat(t),i=[].concat(o,[r]),a=i[0],l=i.reduce(function(s,u){var c=e1e(e,u,n);return s.top=cg(c.top,s.top),s.right=d4(c.right,s.right),s.bottom=d4(c.bottom,s.bottom),s.left=cg(c.left,s.left),s},e1e(e,a,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function t1e(e){var t=e.reference,r=e.element,n=e.placement,o=n?Dc(n):null,i=n?F0(n):null,a=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,s;switch(o){case Ja:s={x:a,y:t.y-r.height};break;case Ls:s={x:a,y:t.y+t.height};break;case Hs:s={x:t.x+t.width,y:l};break;case el:s={x:t.x-r.width,y:l};break;default:s={x:t.x,y:t.y}}var u=o?XD(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case j0:s[u]=s[u]-(t[c]/2-r[c]/2);break;case V2:s[u]=s[u]+(t[c]/2-r[c]/2);break}}return s}function K2(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,a=i===void 0?e.strategy:i,l=r.boundary,s=l===void 0?JEt:l,u=r.rootBoundary,c=u===void 0?F0e:u,d=r.elementContext,f=d===void 0?U2:d,p=r.altBoundary,h=p===void 0?!1:p,v=r.padding,b=v===void 0?0:v,y=K0e(typeof b!="number"?b:X0e(b,W2)),w=f===U2?e6t:U2,k=e.rects.popper,E=e.elements[h?w:f],_=L6t(ug(E)?E:E.contextElement||Wm(e.elements.popper),s,c,a),S=z0(e.elements.reference),A=t1e({reference:S,element:k,placement:o}),O=eB(Object.assign({},k,A)),I=f===U2?O:S,L={top:_.top-I.top+y.top,bottom:I.bottom-_.bottom+y.bottom,left:_.left-I.left+y.left,right:I.right-_.right+y.right},P=e.modifiersData.offset;if(f===U2&&P){var H=P[o];Object.keys(L).forEach(function(j){var W=[Hs,Ls].indexOf(j)>=0?1:-1,B=[Ja,Ls].indexOf(j)>=0?"y":"x";L[j]+=H[B]*W})}return L}function H6t(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,u=s===void 0?V0e:s,c=F0(n),d=c?l?W0e:W0e.filter(function(h){return F0(h)===c}):W2,f=d.filter(function(h){return u.indexOf(h)>=0});f.length===0&&(f=d);var p=f.reduce(function(h,v){return h[v]=K2(e,{placement:v,boundary:o,rootBoundary:i,padding:a})[Dc(v)],h},{});return Object.keys(p).sort(function(h,v){return p[h]-p[v]})}function N6t(e){if(Dc(e)===qD)return[];var t=p4(e);return[Z0e(e),t,Z0e(t)]}function $6t(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,l=a===void 0?!0:a,s=r.fallbackPlacements,u=r.padding,c=r.boundary,d=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,h=p===void 0?!0:p,v=r.allowedAutoPlacements,b=t.options.placement,y=Dc(b),w=y===b,k=s||(w||!h?[p4(b)]:N6t(b)),E=[b].concat(k).reduce(function(K,ee){return K.concat(Dc(ee)===qD?H6t(t,{placement:ee,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:v}):ee)},[]),_=t.rects.reference,S=t.rects.popper,A=new Map,O=!0,I=E[0],L=0;L<E.length;L++){var P=E[L],H=Dc(P),j=F0(P)===j0,W=[Ja,Ls].indexOf(H)>=0,B=W?"width":"height",G=K2(t,{placement:P,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),z=W?j?Hs:el:j?Ls:Ja;_[B]>S[B]&&(z=p4(z));var F=p4(z),V=[];if(i&&V.push(G[H]<=0),l&&V.push(G[z]<=0,G[F]<=0),V.every(function(K){return K})){I=P,O=!1;break}A.set(P,V)}if(O)for(var N=h?3:1,Y=function(ee){var ae=E.find(function(oe){var ue=A.get(oe);if(ue)return ue.slice(0,ee).every(function(le){return le})});if(ae)return I=ae,"break"},q=N;q>0;q--){var M=Y(q);if(M==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}const D6t={name:"flip",enabled:!0,phase:"main",fn:$6t,requiresIfExists:["offset"],data:{_skip:!1}};function r1e(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function n1e(e){return[Ja,Hs,Ls,el].some(function(t){return e[t]>=0})}function B6t(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=K2(t,{elementContext:"reference"}),l=K2(t,{altBoundary:!0}),s=r1e(a,n),u=r1e(l,o,i),c=n1e(s),d=n1e(u);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const j6t={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:B6t};function M6t(e,t,r){var n=Dc(e),o=[el,Ja].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[el,Hs].indexOf(n)>=0?{x:l,y:a}:{x:a,y:l}}function z6t(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=V0e.reduce(function(c,d){return c[d]=M6t(d,t.rects,i),c},{}),l=a[t.placement],s=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}const F6t={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:z6t};function W6t(e){var t=e.state,r=e.name;t.modifiersData[r]=t1e({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const V6t={name:"popperOffsets",enabled:!0,phase:"read",fn:W6t,data:{}};function U6t(e){return e==="x"?"y":"x"}function q6t(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,l=a===void 0?!1:a,s=r.boundary,u=r.rootBoundary,c=r.altBoundary,d=r.padding,f=r.tether,p=f===void 0?!0:f,h=r.tetherOffset,v=h===void 0?0:h,b=K2(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),y=Dc(t.placement),w=F0(t.placement),k=!w,E=XD(y),_=U6t(E),S=t.modifiersData.popperOffsets,A=t.rects.reference,O=t.rects.popper,I=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,L=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(S){if(i){var j,W=E==="y"?Ja:el,B=E==="y"?Ls:Hs,G=E==="y"?"height":"width",z=S[E],F=z+b[W],V=z-b[B],N=p?-O[G]/2:0,Y=w===j0?A[G]:O[G],q=w===j0?-O[G]:-A[G],M=t.elements.arrow,K=p&&M?KD(M):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Y0e(),ae=ee[W],oe=ee[B],ue=G2(0,A[G],K[G]),le=k?A[G]/2-N-ue-ae-L.mainAxis:Y-ue-ae-L.mainAxis,pe=k?-A[G]/2+N+ue+oe+L.mainAxis:q+ue+oe+L.mainAxis,fe=t.elements.arrow&&q2(t.elements.arrow),J=fe?E==="y"?fe.clientTop||0:fe.clientLeft||0:0,X=(j=P==null?void 0:P[E])!=null?j:0,te=z+le-X-J,ie=z+pe-X,de=G2(p?d4(F,te):F,z,p?cg(V,ie):V);S[E]=de,H[E]=de-z}if(l){var be,xe=E==="x"?Ja:el,Ie=E==="x"?Ls:Hs,Ne=S[_],Se=_==="y"?"height":"width",_e=Ne+b[xe],Ve=Ne-b[Ie],Ee=[Ja,el].indexOf(y)!==-1,je=(be=P==null?void 0:P[_])!=null?be:0,Ce=Ee?_e:Ne-A[Se]-O[Se]-je+L.altAxis,Te=Ee?Ne+A[Se]+O[Se]-je-L.altAxis:Ve,He=p&&Ee?g6t(Ce,Ne,Te):G2(p?Ce:_e,Ne,p?Te:Ve);S[_]=He,H[_]=He-Ne}t.modifiersData[n]=H}}const G6t={name:"preventOverflow",enabled:!0,phase:"main",fn:q6t,requiresIfExists:["offset"]};function Y6t(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function K6t(e){return e===Ns(e)||!$s(e)?QD(e):Y6t(e)}function X6t(e){var t=e.getBoundingClientRect(),r=M0(t.width)/e.offsetWidth||1,n=M0(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Q6t(e,t,r){r===void 0&&(r=!1);var n=$s(t),o=$s(t)&&X6t(t),i=Wm(t),a=z0(e,o,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&(($c(t)!=="body"||JD(i))&&(l=K6t(t)),$s(t)?(s=z0(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=ZD(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function Z6t(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!r.has(l)){var s=t.get(l);s&&o(s)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function J6t(e){var t=Z6t(e);return c6t.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function e4t(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function t4t(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var o1e={placement:"bottom",modifiers:[],strategy:"absolute"};function i1e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function r4t(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?o1e:o;return function(l,s,u){u===void 0&&(u=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},o1e,i),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},d=[],f=!1,p={state:c,setOptions:function(y){var w=typeof y=="function"?y(c.options):y;v(),c.options=Object.assign({},i,c.options,w),c.scrollParents={reference:ug(l)?Y2(l):l.contextElement?Y2(l.contextElement):[],popper:Y2(s)};var k=J6t(t4t([].concat(n,c.options.modifiers)));return c.orderedModifiers=k.filter(function(E){return E.enabled}),h(),p.update()},forceUpdate:function(){if(!f){var y=c.elements,w=y.reference,k=y.popper;if(i1e(w,k)){c.rects={reference:Q6t(w,q2(k),c.options.strategy==="fixed"),popper:KD(k)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(L){return c.modifiersData[L.name]=Object.assign({},L.data)});for(var E=0;E<c.orderedModifiers.length;E++){if(c.reset===!0){c.reset=!1,E=-1;continue}var _=c.orderedModifiers[E],S=_.fn,A=_.options,O=A===void 0?{}:A,I=_.name;typeof S=="function"&&(c=S({state:c,options:O,name:I,instance:p})||c)}}}},update:e4t(function(){return new Promise(function(b){p.forceUpdate(),b(c)})}),destroy:function(){v(),f=!0}};if(!i1e(l,s))return p;p.setOptions(u).then(function(b){!f&&u.onFirstUpdate&&u.onFirstUpdate(b)});function h(){c.orderedModifiers.forEach(function(b){var y=b.name,w=b.options,k=w===void 0?{}:w,E=b.effect;if(typeof E=="function"){var _=E({state:c,name:y,instance:p,options:k}),S=function(){};d.push(_||S)}})}function v(){d.forEach(function(b){return b()}),d=[]}return p}}var n4t=[S6t,V6t,_6t,m6t,F6t,D6t,G6t,y6t,j6t],o4t=r4t({defaultModifiers:n4t}),i4t=[],a4t=function(t,r,n){n===void 0&&(n={});var o=m.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||i4t},a=m.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=a[0],s=a[1],u=m.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(p){var h=p.state,v=Object.keys(h.elements);Fn.flushSync(function(){s({styles:M0e(v.map(function(b){return[b,h.styles[b]||{}]})),attributes:M0e(v.map(function(b){return[b,h.attributes[b]]}))})})},requires:["computeStyles"]}},[]),c=m.useMemo(function(){var f={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return sX(o.current,f)?o.current||f:(o.current=f,f)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),d=m.useRef();return z0e(function(){d.current&&d.current.setOptions(c)},[c]),z0e(function(){if(!(t==null||r==null)){var f=n.createPopper||o4t,p=f(t,r,c);return d.current=p,function(){p.destroy(),d.current=null}}},[t,r,n.createPopper]),{state:d.current?d.current.state:null,styles:l.styles,attributes:l.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}};const Vm={wrapper:"_wrapper_1r5nz_13",inspectableNode:"_inspectableNode_1r5nz_28",inspectOverlay:"_inspectOverlay_1r5nz_38",inspectedNode:"_inspectedNode_1r5nz_54"};var l4t={};const h4=m.createContext(null);function s4t({children:e,sources:t,projectCompilation:r,mockApi:n}){const[o,i]=m.useState({}),[a,l]=m.useState(null),[s,u]=m.useState(!1),[c,d]=m.useState(!1),[f,p]=m.useState({x:0,y:0}),h=m.useMemo(()=>({sources:t,attach:(v,b,y)=>{i(w=>({...w,[y]:{node:v,uid:b,inspectId:y,key:0}}))},refresh:v=>{i(b=>({...b,[v]:{...b[v],key:b[v].key+1}}))},detach:(v,b)=>{i(y=>{const w={...y};return delete w[b],w})},inspectedNode:a,setIsOpen:u,isOpen:s,devToolsEnabled:s,projectCompilation:r,setInspectMode:d,inspectMode:c,mockApi:n,clickPosition:f}),[t,a,s,f,u,r,c,n]);return C.jsxs(h4.Provider,{value:h,children:[e,l4t.VITE_USER_COMPONENTS_Inspect!=="false"&&o&&Object.values(o).map(v=>C.jsx(u4t,{inspectedNode:a,setShowCode:u,setClickPosition:p,inspectId:v.inspectId,node:v.node,setInspectedNode:l,inspectMode:c},v.inspectId+NaN+v.key))]})}function u4t({inspectId:e,node:t,inspectedNode:r,setInspectedNode:n,setShowCode:o,inspectMode:i,setClickPosition:a}){const{root:l}=zr(),[s,u]=m.useState(null),[c,d]=m.useState(null),{styles:f,attributes:p}=a4t(s,c,{placement:"top-end",modifiers:[{name:"offset",options:{offset:[-4,-18]}},{name:"flip",enabled:!1}]}),[h,v]=m.useState(!1),b=m.useRef(null),y=m.useRef(!1);return m.useEffect(()=>{s&&((r==null?void 0:r.inspectId)===e?s.classList.add(Vm.inspectedNode):s.classList.remove(Vm.inspectedNode))},[e,r,s]),m.useEffect(()=>{o(!!r)},[r]),m.useEffect(()=>{const w=document.querySelector(`[data-inspectId="${e}"]`);if(!w)return;if(u(w),i){w.classList.add(Vm.inspectableNode);const _=document.createElement("div");_.classList.add(Vm.inspectOverlay),w.appendChild(_),_.addEventListener("click",()=>{n(S=>(S==null?void 0:S.inspectId)===e?null:{...t,inspectId:e})})}if(!i){w.classList.remove(Vm.inspectableNode),n(null),o(!1);const _=w.querySelector(`.${Vm.inspectOverlay}`);_&&_.remove(),w.classList.remove(Vm.inspectedNode)}function k(){b.current&&clearTimeout(b.current),v(!0)}function E(){b.current&&clearTimeout(b.current),!y.current&&(b.current=window.setTimeout(()=>{v(!1)},100))}return w.addEventListener("mouseenter",k),w.addEventListener("mouseleave",E),()=>{w.removeEventListener("mouseenter",k),w.removeEventListener("mouseleave",E)}},[e,t,i,o]),C.jsx(C.Fragment,{children:i?null:h&&!!l&&Fn.createPortal(C.jsx(cn,{variant:"outlined",className:ze(Vm.wrapper,"_debug-inspect-button"),ref:w=>d(w),style:{...f.popper,padding:0},...p.popper,onMouseEnter:()=>{y.current=!0,b.current&&(clearTimeout(b.current),b.current=null)},onMouseLeave:()=>{y.current=!1,v(!1)},onClick:()=>{n(t),o(!0),a({x:(c==null?void 0:c.getBoundingClientRect().left)||0,y:(c==null?void 0:c.getBoundingClientRect().top)||0})},children:"Show code"}),l)})}function a1e(){const e=m.useContext(h4);if(!e)throw new Error("useDevTools must be used within an InspectorProvider");return{projectCompilation:e.projectCompilation,inspectedNode:e.inspectedNode,sources:e.sources,isOpen:e.isOpen,setIsOpen:e.setIsOpen,devToolsEnabled:e.devToolsEnabled,mockApi:e.mockApi,clickPosition:e.clickPosition}}function c4t(){const e=m.useContext(h4);return{setInspectMode:e==null?void 0:e.setInspectMode,inspectMode:e==null?void 0:e.inspectMode}}function d4t(e,t){var l;const r=m.useContext(h4),n=(l=e.props)==null?void 0:l.inspect,o=n===!0||n==="true",i=m.useId(),a=m.useCallback(()=>{r==null||r.refresh(i)},[r,i]);return m.useEffect(()=>(o&&(r==null||r.attach(e,t,i)),()=>{r==null||r.detach(t,i)}),[r,i,e,o,t]),o&&r?{refreshInspection:a,inspectId:i}:{}}const tB={themeVars:'"[]"',icon:"_icon_4o8rs_13",inspectButton:"_inspectButton_4o8rs_17"};function f4t(e){return Qe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M181.66,146.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32Zm-72-24a8,8,0,0,0-11.32,0l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L91.31,152l18.35-18.34A8,8,0,0,0,109.66,122.34ZM216,88V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm40,136V96H152a8,8,0,0,1-8-8V40H56V216H200Z"}}]})(e)}const m4t="InspectButton",p4t={status:"experimental",description:"This component displays a button that can turn the inspection mode of a running XMLUI app on or off.",props:{},themeVars:Ze(tB.themeVars)};function h4t({children:e,style:t}){const{setInspectMode:r,inspectMode:n}=c4t();return C.jsxs(cn,{style:t,className:tB.inspectButton,themeColor:n?"primary":"secondary",variant:n?"solid":"outlined",onClick:()=>{r(o=>!o)},children:[C.jsx(f4t,{className:tB.icon}),e]})}const g4t=we(m4t,p4t,({renderChild:e,node:t,layoutCss:r})=>C.jsx(h4t,{style:r,children:e(t.children)})),g4={allowPlaygroundPopup:!0,withFrame:!0,components:Ar},Or="NestedApp",v4t={status:"stable",description:`The ${Or} component allows you to nest an entire xmlui app into another one.
|
|
545
|
+
`,'"',u.BYTE_ORDER_MARK],u.WORKERS_SUPPORTED=!i&&!!n.Worker,u.NODE_STREAM_INPUT=1,u.LocalChunkSize=10485760,u.RemoteChunkSize=5242880,u.DefaultDelimiter=",",u.Parser=y,u.ParserHandle=v,u.NetworkStreamer=d,u.FileStreamer=f,u.StringStreamer=p,u.ReadableStreamStreamer=h,n.jQuery&&((o=n.jQuery).fn.parse=function(O){var I=O.config||{},L=[];return this.each(function(j){if(!(o(this).prop("tagName").toUpperCase()==="INPUT"&&o(this).attr("type").toLowerCase()==="file"&&n.FileReader)||!this.files||this.files.length===0)return!0;for(var W=0;W<this.files.length;W++)L.push({file:this.files[W],inputElem:this,instanceConfig:o.extend({},I)})}),P(),this;function P(){if(L.length===0)A(O.complete)&&O.complete();else{var j,W,B,G,z=L[0];if(A(O.before)){var F=O.before(z.file,z.inputElem);if(typeof F=="object"){if(F.action==="abort")return j="AbortError",W=z.file,B=z.inputElem,G=F.reason,void(A(O.error)&&O.error({name:j},W,B,G));if(F.action==="skip")return void H();typeof F.config=="object"&&(z.instanceConfig=o.extend(z.instanceConfig,F.config))}else if(F==="skip")return void H()}var V=z.instanceConfig.complete;z.instanceConfig.complete=function(N){A(V)&&V(N,z.file,z.inputElem),H()},u.parse(z.file,z.instanceConfig)}}function H(){L.splice(0,1),P()}}),a&&(n.onmessage=function(O){O=O.data,u.WORKER_ID===void 0&&O&&(u.WORKER_ID=O.workerId),typeof O.input=="string"?n.postMessage({workerId:u.WORKER_ID,results:u.parse(O.input,O.config),finished:!0}):(n.File&&O.input instanceof File||O.input instanceof Object)&&(O=u.parse(O.input,O.config))&&n.postMessage({workerId:u.WORKER_ID,results:O,finished:!0})}),(d.prototype=Object.create(c.prototype)).constructor=d,(f.prototype=Object.create(c.prototype)).constructor=f,(p.prototype=Object.create(p.prototype)).constructor=p,(h.prototype=Object.create(c.prototype)).constructor=h,u})})(Npe);var iSt=Npe.exports;const aSt=$i(iSt);function lSt({state:e,loader:t,loaderFn:r,queryId:n,registerComponentApi:o,pollIntervalInSeconds:i,onLoaded:a,loaderInProgressChanged:l,loaderIsRefetchingChanged:s,loaderLoaded:u,loaderError:c,transformResult:d,structuralSharing:f=!0}){const{uid:p}=t,h=Eo(),v=m.useMemo(()=>n||[p,$t(e,t.props,h)],[h,t.props,n,e,p]),b=m.useRef(v),y=m.useCallback(Y=>{let q;const M=t.props.prevPageSelector;if(M&&(q=$t({$response:Y.filter(K=>!K._optimisticValue)},M.startsWith("{")?M:`{$response.${M}}`)),!!q)return{prevPageParam:q}},[t.props.prevPageSelector]),w=m.useCallback(Y=>{let q;const M=t.props.nextPageSelector;if(M&&(q=$t({$response:Y},M.startsWith("{")?M:`{$response.${M}}`)),!!q)return{nextPageParam:q}},[t.props.nextPageSelector]),{data:k,status:E,error:_,hasNextPage:S,isFetchingNextPage:A,hasPreviousPage:O,isFetchingPreviousPage:I,isFetching:L,refetch:P,fetchPreviousPage:H,fetchNextPage:j,isRefetching:W}=HRe({queryKey:v,queryFn:m.useCallback(async({signal:Y,pageParam:q})=>await r(Y,q),[r]),structuralSharing:f,select:m.useCallback(Y=>{let q=[];Y&&(q=Y.pages.flatMap(K=>K));const M=t.props.resultSelector;return M&&(q=$t({$response:q},M.startsWith("{")?M:`{$response.${M}}`)),d?d(q):q},[t.props.resultSelector,d]),getPreviousPageParam:t.props.prevPageSelector===void 0?void 0:y,getNextPageParam:t.props.nextPageSelector===void 0?void 0:w});m.useEffect(()=>{const Y=b.current;return()=>{var q,M;(q=h.queryClient)==null||q.cancelQueries(Y),(M=h.queryClient)==null||M.setQueryData(Y,K=>K&&fl(K,ee=>{ee.pages=ee.pages.length?[ee.pages[ee.pages.length-1]]:[],ee.pageParams=[]})),u(void 0,void 0)}},[h.queryClient,u,p]);const B=vd(k),G=vd(_);m.useLayoutEffect(()=>{l(L)},[L,l]),m.useLayoutEffect(()=>{s(W)},[W,s]);const z=m.useMemo(()=>({hasPrevPage:O,isFetchingPrevPage:I,hasNextPage:S,isFetchingNextPage:A}),[S,O,A,I]),F=vd(z);m.useLayoutEffect(()=>{E==="success"&&(B!==k||F!==z)?(u(k,z),setTimeout(()=>{a==null||a(k,W)},0)):E==="error"&&G!==_&&c(_)},[k,_,c,u,a,z,B,G,F,E]),m.useEffect(()=>{let Y;return i&&(Y=setInterval(()=>{P()},i*1e3)),()=>{Y&&clearInterval(Y)}},[i,P]);const V=m.useCallback(()=>H(),[H]),N=m.useCallback(()=>j(),[j]);return m.useEffect(()=>{o({fetchPrevPage:V,fetchNextPage:N,refetch:async Y=>{P(Y)},update:async Y=>{var oe,ue;const q=(oe=h.queryClient)==null?void 0:oe.getQueryData(n);if(!q)return;const M=q.pages.flatMap(le=>le),K=Tv(q),ee=[];for(let le=0;le<K.pages.length;le++){const pe=K.pages[le];await Y(pe),ee.push(...pe)}if(ee.length!==M.length)throw new Error("Use this method for update only. If you want to add or delete, call the addItem/deleteItem method.");const ae=Sv(K);(ue=h.queryClient)==null||ue.setQueryData(n,ae)},addItem:async(Y,q)=>{var ae,oe;const M=(ae=h.queryClient)==null?void 0:ae.getQueryData(n),K=Tv(M);if(q===void 0)K.pages[K.pages.length-1].push(Y);else throw new Error("not implemented");const ee=Sv(K);(oe=h.queryClient)==null||oe.setQueryData(n,ee)},getItems:()=>k,deleteItem:async Y=>{throw new Error("not implemented")}})},[h.queryClient,V,k,t.uid,n,v,P,o,N]),null}function sSt({loader:e,state:t,registerComponentApi:r,onLoaded:n,onError:o,loaderInProgressChanged:i,loaderIsRefetchingChanged:a,loaderLoaded:l,loaderError:s,transformResult:u,structuralSharing:c=!0}){const d=Eo(),f=$t(t,e.props.url,d),p=m.useMemo(()=>$t(t,e.props.queryParams,d),[d,e.props.queryParams,t]),h=qo(p),v=m.useMemo(()=>$t(t,e.props.body,d),[d,e.props.body,t]),b=qo(v),y=m.useMemo(()=>$t(t,e.props.rawBody,d),[d,e.props.rawBody,t]),w=qo(y),E=m.useMemo(()=>e.props.prevPageSelector&&e.props.nextPageSelector?"BIDIRECTIONAL":e.props.prevPageSelector?"BACKWARD":e.props.nextPageSelector?"FORWARD":null,[e.props.nextPageSelector,e.props.prevPageSelector])!==null,{apiInstance:_}=O2(),S=m.useMemo(()=>new zw(d,_),[_,d]),A=m.useCallback(async(B,G)=>{if(e.props.dataType==="csv")try{const z=$t(t,e.props.method,d)||"GET",F=$t(t,e.props.headers,d)||{},V={method:z,headers:F};B&&(V.signal=B),w&&(V.body=w);const N=await fetch(f,V);if(!N.ok)throw new Error(`Failed to fetch CSV: ${N.status} ${N.statusText}`);const Y=await N.text();return new Promise((q,M)=>{aSt.parse(Y,{header:!0,skipEmptyLines:!0,complete:K=>{if(K.errors&&K.errors.length){console.warn("CSV parsing warnings:",K.errors);const ee=K.errors.filter(()=>!0);if(ee.length){M(new Error(`CSV parsing error: ${ee[0].message}`));return}}q(K.data)},error:K=>{M(K)}})})}catch(z){throw console.error("Error loading CSV:",z),z}else if(e.props.dataType==="sql")try{let z="",F=[];if(b&&typeof b=="object")z=b.sql||"",F=b.params||[];else if(w)try{const ae=JSON.parse(w);z=ae.sql||"",F=ae.params||[]}catch{z=w}if(!z)throw new Error("SQL query is required for SQL data type");const V=f||"/query",N=$t(t,e.props.method,d)||"POST",Y=$t(t,e.props.headers,d)||{"Content-Type":"application/json"},q=JSON.stringify({sql:z,params:F}),M={method:N,headers:Y,body:q};B&&(M.signal=B);const K=await fetch(V,M);if(!K.ok)throw console.error("[SQL DataLoader] Failed response:",K.status,K.statusText),new Error(`Failed to execute SQL query: ${K.status} ${K.statusText}`);const ee=await K.json();if(ee&&typeof ee=="object"){if(ee.rows)return ee.rows;if(ee.results)return ee.results}return ee}catch(z){throw console.error("Error executing SQL query:",z),z}else return await S.execute({abortSignal:B,operation:e.props,params:{...t,$pageParams:G},resolveBindingExpressions:!0})},[S,e.props,t,f,b,w,d]),O=m.useMemo(()=>new Rpe(f,h,d==null?void 0:d.appGlobals.apiUrl,b,w).asKey(),[d==null?void 0:d.appGlobals.apiUrl,h,f,b,w]),I=m.useRef({state:t,appContext:d});I.current={state:t,appContext:d};const L=m.useRef(void 0),P=m.useCallback(B=>{i(B);const G=$t(I.current.state,e.props.inProgressNotificationMessage,I.current.appContext);B&&G?(L.current&&go.dismiss(L.current),L.current=go.loading(G)):L.current&&go.dismiss(L.current)},[e.props.inProgressNotificationMessage,i,e.props.dataType]),H=m.useCallback((B,G)=>{l(B,G);const z=$t({...I.current.state,$result:B},e.props.completedNotificationMessage,I.current.appContext);z?go.success(z,{id:L.current}):L.current&&go.dismiss(L.current)},[e.props.completedNotificationMessage,l,e.props.dataType]),j=m.useCallback(async B=>{if(s(B),o&&await o(B)===!1){L.current&&go.dismiss(L.current);return}const G=$t({...I.current.state,$error:B==null?void 0:B.toString()},e.props.errorNotificationMessage,I.current.appContext);G?go.error(G,{id:L.current}):L.current&&go.dismiss(L.current),G===void 0&&d.signError(B)},[d,e.props.errorNotificationMessage,s,o]),W=$t(t,e.props.pollIntervalInSeconds,d);return E?C.jsx(lSt,{queryId:O,state:t,loader:e,loaderInProgressChanged:P,loaderIsRefetchingChanged:a,loaderLoaded:H,loaderError:j,loaderFn:A,registerComponentApi:r,pollIntervalInSeconds:W,onLoaded:n,transformResult:u,structuralSharing:c},O==null?void 0:O.join("")):C.jsx(U6,{queryId:O,state:t,loader:e,loaderInProgressChanged:P,loaderIsRefetchingChanged:a,loaderLoaded:H,loaderError:j,loaderFn:A,pollIntervalInSeconds:W,registerComponentApi:r,onLoaded:n,transformResult:u,structuralSharing:c},O==null?void 0:O.join(""))}const uSt={status:"stable",description:"This component manages data fetching from a web API",props:{method:re("The HTTP method to use"),url:re("The URL to fetch data from"),rawBody:re("The raw body of the request"),body:re("The body of the request to be sent as JSON"),queryParams:re("Query parameters to send with the request"),headers:re("Headers to send with the request"),pollIntervalInSeconds:re("The interval in seconds to poll the API for refreshing data"),resultSelector:re("An expression to extract the result from the response"),prevPageSelector:re("An expression to extract the previous page parameter from the response"),nextPageSelector:re("An expression to extract the next page parameter from the response"),inProgressNotificationMessage:re("The message to show when the loader is in progress"),completedNotificationMessage:re("The message to show when the loader completes"),errorNotificationMessage:re("The message to show when an error occurs"),transformResult:re("Function for transforming the datasource result"),dataType:re("Type of data to fetch (default: json, or csv, or sql)"),structuralSharing:re("Whether to use structural sharing for the data")},events:{loaded:re("Event to trigger when the data is loaded"),error:re("This event fires when an error occurs while fetching data")}};function cSt(e){const{indexing:t}=ZE();return t?null:C.jsx(sSt,{...e})}const dSt=rT("DataLoader",({loader:e,state:t,loaderLoaded:r,loaderInProgressChanged:n,loaderIsRefetchingChanged:o,loaderError:i,registerComponentApi:a,lookupAction:l,lookupSyncCallback:s,extractValue:u})=>{var c,d,f;if(!((c=e.props)!=null&&c.url)||!e.props.url.trim())throw new Error("You must specify a non-empty (not whitespace-only) 'url' property for DataSource");return C.jsx(cSt,{loader:e,state:t,loaderInProgressChanged:n,loaderIsRefetchingChanged:o,loaderLoaded:r,loaderError:i,registerComponentApi:a,transformResult:s(e.props.transformResult),onLoaded:l((d=e.events)==null?void 0:d.loaded,{eventName:"loaded"}),onError:l((f=e.events)==null?void 0:f.error,{eventName:"error"}),structuralSharing:u.asOptionalBoolean(e.props.structuralSharing)})},uSt),Za="DatePicker",$pe={status:"experimental",description:"`DatePicker` provides an interactive calendar interface for selecting single dates or date ranges, with customizable formatting and validation options. It displays a text input that opens a calendar popup when clicked, offering both keyboard and mouse interaction.",props:{placeholder:Df(),initialValue:Ba(),autoFocus:Bi(),readOnly:gl(),enabled:So(ma.enabled),validationStatus:vl(ma.validationStatus),label:io(),labelPosition:$a("top"),labelWidth:Da(Za),labelBreak:hl(Za),mode:{description:"The mode of the datepicker (single or range)",valueType:"string",availableValues:Xst,defaultValue:ma.mode},dateFormat:{description:"The format of the date displayed in the input field",valueType:"string",defaultValue:ma.dateFormat,availableValues:EE},showWeekNumber:{description:"Whether to show the week number in the calendar",valueType:"boolean",defaultValue:ma.showWeekNumber},weekStartsOn:{description:"The first day of the week. 0 is Sunday, 1 is Monday, etc.",valueType:"number",defaultValue:ma.weekStartsOn,availableValues:[{value:Sm.Sunday,description:"Sunday"},{value:Sm.Monday,description:"Monday"},{value:Sm.Tuesday,description:"Tuesday"},{value:Sm.Wednesday,description:"Wednesday"},{value:Sm.Thursday,description:"Thursday"},{value:Sm.Friday,description:"Friday"},{value:Sm.Saturday,description:"Saturday"}]},minValue:{description:"The optional start date of the selectable date range. If not defined, the range allows any dates in the past.",valueType:"string"},maxValue:{description:"The optional end date of the selectable date range. If not defined, the range allows any future dates.",valueType:"string"},disabledDates:{description:"An optional array of dates that are disabled",valueType:"any"},inline:{description:"Whether to display the datepicker inline",valueType:"boolean",defaultValue:ma.inline},startText:zT(),startIcon:FT(),endText:WT(),endIcon:VT()},events:{didChange:Ei(Za),gotFocus:Ha(Za),lostFocus:Na(Za)},apis:{focus:au(Za),value:re("You can query the component's value. If no value is set, it will retrieve `undefined`."),setValue:us()},themeVars:Ze(Wa.themeVars),defaultThemeVars:{[`boxShadow-menu-${Za}`]:"$boxShadow-md",[`borderRadius-menu-${Za}`]:"$borderRadius",[`textColor-value-${Za}`]:"$textColor-primary",[`borderColor-selectedItem-${Za}`]:"$color-primary-200",[`backgroundColor-menu-${Za}`]:"$color-surface-50",[`backgroundColor-item-${Za}--hover`]:"$color-surface-100",[`backgroundColor-item-${Za}--active`]:"$color-surface-200"}},fSt=we(Za,$pe,({node:e,state:t,updateState:r,extractValue:n,layoutCss:o,lookupEventHandler:i,registerComponentApi:a})=>{var l;return C.jsx(Mae,{id:e.uid,style:o,mode:n((l=e.props)==null?void 0:l.mode),value:t==null?void 0:t.value,initialValue:n(e.props.initialValue),enabled:n.asOptionalBoolean(e.props.enabled),placeholder:n.asOptionalString(e.props.placeholder),validationStatus:n(e.props.validationStatus),updateState:r,onDidChange:i("didChange"),onFocus:i("gotFocus"),onBlur:i("lostFocus"),registerComponentApi:a,dateFormat:n(e.props.dateFormat),showWeekNumber:n.asOptionalBoolean(e.props.showWeekNumber),weekStartsOn:n(e.props.weekStartsOn),minValue:n(e.props.minValue),maxValue:n(e.props.maxValue),disabledDates:n(e.props.disabledDates),inline:n.asOptionalBoolean(e.props.inline),startText:n.asOptionalString(e.props.startText),startIcon:n.asOptionalString(e.props.startIcon),endText:n.asOptionalString(e.props.endText),endIcon:n.asOptionalString(e.props.endIcon),readOnly:n.asOptionalBoolean(e.props.readOnly),autoFocus:n.asOptionalBoolean(e.props.autoFocus),label:n(e.props.label),labelPosition:n(e.props.labelPosition),labelWidth:n(e.props.labelWidth),labelBreak:n.asOptionalBoolean(e.props.labelBreak)})}),mSt="Redirect",Dpe={status:"stable",description:"`Redirect` immediately redirects the browser to the URL in its `to` property when it gets visible (its `when` property gets `true`). It works only within [App](/components/App), not externally.",props:{to:{description:"This property defines the URL to which this component is about to redirect requests.",defaultValue:{to:""}.to}}},pSt=we(mSt,Dpe,({node:e,extractValue:t})=>C.jsx(UK,{to:oS(t(e.props.to))})),ig={themeVars:`'{"padding-trigger-Tabs": "var(--xmlui-padding-trigger-Tabs)", "paddingHorizontal-trigger-Tabs": "var(--xmlui-paddingHorizontal-trigger-Tabs, var(--xmlui-padding-trigger-Tabs))", "paddingVertical-trigger-Tabs": "var(--xmlui-paddingVertical-trigger-Tabs, var(--xmlui-padding-trigger-Tabs))", "paddingLeft-trigger-Tabs": "var(--xmlui-paddingLeft-trigger-Tabs, var(--xmlui-paddingHorizontal-trigger-Tabs, var(--xmlui-padding-trigger-Tabs)))", "paddingRight-trigger-Tabs": "var(--xmlui-paddingRight-trigger-Tabs, var(--xmlui-paddingHorizontal-trigger-Tabs, var(--xmlui-padding-trigger-Tabs)))", "paddingTop-trigger-Tabs": "var(--xmlui-paddingTop-trigger-Tabs, var(--xmlui-paddingVertical-trigger-Tabs, var(--xmlui-padding-trigger-Tabs)))", "paddingBottom-trigger-Tabs": "var(--xmlui-paddingBottom-trigger-Tabs, var(--xmlui-paddingVertical-trigger-Tabs, var(--xmlui-padding-trigger-Tabs)))", "backgroundColor-Tabs": "var(--xmlui-backgroundColor-Tabs)", "borderColor-Tabs": "var(--xmlui-borderColor-Tabs)", "borderWidth-Tabs": "var(--xmlui-borderWidth-Tabs)", "borderColor-active-Tabs": "var(--xmlui-borderColor-active-Tabs)", "backgroundColor-trigger-Tabs": "var(--xmlui-backgroundColor-trigger-Tabs)", "borderRadius-trigger-Tabs": "var(--xmlui-borderRadius-trigger-Tabs)", "border-trigger-Tabs": "var(--xmlui-border-trigger-Tabs)", "textColor-trigger-Tabs": "var(--xmlui-textColor-trigger-Tabs)", "backgroundColor-trigger-Tabs--hover": "var(--xmlui-backgroundColor-trigger-Tabs--hover)", "backgroundColor-trigger-Tabs--active": "var(--xmlui-backgroundColor-trigger-Tabs--active)", "backgroundColor-list-Tabs": "var(--xmlui-backgroundColor-list-Tabs)", "borderRadius-list-Tabs": "var(--xmlui-borderRadius-list-Tabs)", "border-list-Tabs": "var(--xmlui-border-list-Tabs)"}'`,tabs:"_tabs_1ggvi_13",filler:"_filler_1ggvi_26",tabTrigger:"_tabTrigger_1ggvi_40",distributeEvenly:"_distributeEvenly_1ggvi_57",tabsList:"_tabsList_1ggvi_89",tabsContent:"_tabsContent_1ggvi_111"};function Ud(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function bD(e,t=[]){let r=[];function n(i,a){const l=m.createContext(a),s=r.length;r=[...r,a];function u(d){const{scope:f,children:p,...h}=d,v=(f==null?void 0:f[e][s])||l,b=m.useMemo(()=>h,Object.values(h));return C.jsx(v.Provider,{value:b,children:p})}function c(d,f){const p=(f==null?void 0:f[e][s])||l,h=m.useContext(p);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}const o=()=>{const i=r.map(a=>m.createContext(a));return function(l){const s=(l==null?void 0:l[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return o.scopeName=e,[n,hSt(o,...t)]}function hSt(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=n.reduce((l,{useScope:s,scopeName:u})=>{const d=s(i)[`__scope${u}`];return{...l,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function gSt(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Bpe(...e){return t=>e.forEach(r=>gSt(r,t))}function q6(...e){return m.useCallback(Bpe(...e),e)}var G6=m.forwardRef((e,t)=>{const{children:r,...n}=e,o=m.Children.toArray(r),i=o.find(bSt);if(i){const a=i.props.children,l=o.map(s=>s===i?m.Children.count(a)>1?m.Children.only(null):m.isValidElement(a)?a.props.children:null:s);return C.jsx(xD,{...n,ref:t,children:m.isValidElement(a)?m.cloneElement(a,void 0,l):null})}return C.jsx(xD,{...n,ref:t,children:r})});G6.displayName="Slot";var xD=m.forwardRef((e,t)=>{const{children:r,...n}=e;if(m.isValidElement(r)){const o=ySt(r);return m.cloneElement(r,{...xSt(n,r.props),ref:t?Bpe(t,o):o})}return m.Children.count(r)>1?m.Children.only(null):null});xD.displayName="SlotClone";var vSt=({children:e})=>C.jsx(C.Fragment,{children:e});function bSt(e){return m.isValidElement(e)&&e.type===vSt}function xSt(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{i(...l),o(...l)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function ySt(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function wSt(e){const t=e+"CollectionProvider",[r,n]=bD(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:h,children:v}=p,b=Z.useRef(null),y=Z.useRef(new Map).current;return C.jsx(o,{scope:h,itemMap:y,collectionRef:b,children:v})};a.displayName=t;const l=e+"CollectionSlot",s=Z.forwardRef((p,h)=>{const{scope:v,children:b}=p,y=i(l,v),w=q6(h,y.collectionRef);return C.jsx(G6,{ref:w,children:b})});s.displayName=l;const u=e+"CollectionItemSlot",c="data-radix-collection-item",d=Z.forwardRef((p,h)=>{const{scope:v,children:b,...y}=p,w=Z.useRef(null),k=q6(h,w),E=i(u,v);return Z.useEffect(()=>(E.itemMap.set(w,{ref:w,...y}),()=>void E.itemMap.delete(w))),C.jsx(G6,{[c]:"",ref:k,children:b})});d.displayName=u;function f(p){const h=i(e+"CollectionConsumer",p);return Z.useCallback(()=>{const b=h.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${c}]`));return Array.from(h.itemMap.values()).sort((E,_)=>y.indexOf(E.ref.current)-y.indexOf(_.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:a,Slot:s,ItemSlot:d},f,n]}var yD=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},CSt=ld.useId||(()=>{}),kSt=0;function jpe(e){const[t,r]=m.useState(CSt());return yD(()=>{r(n=>n??String(kSt++))},[e]),e||(t?`radix-${t}`:"")}var _St=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],D0=_St.reduce((e,t)=>{const r=m.forwardRef((n,o)=>{const{asChild:i,...a}=n,l=i?G6:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(l,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function wD(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Mpe({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=TSt({defaultProp:t,onChange:r}),i=e!==void 0,a=i?e:n,l=wD(r),s=m.useCallback(u=>{if(i){const d=typeof u=="function"?u(e):u;d!==e&&l(d)}else o(u)},[i,e,o,l]);return[a,s]}function TSt({defaultProp:e,onChange:t}){const r=m.useState(e),[n]=r,o=m.useRef(n),i=wD(t);return m.useEffect(()=>{o.current!==n&&(i(n),o.current=n)},[n,o,i]),r}var SSt=m.createContext(void 0);function zpe(e){const t=m.useContext(SSt);return e||t||"ltr"}var CD="rovingFocusGroup.onEntryFocus",ESt={bubbles:!1,cancelable:!0},Y6="RovingFocusGroup",[kD,Fpe,ASt]=wSt(Y6),[OSt,Wpe]=bD(Y6,[ASt]),[ISt,RSt]=OSt(Y6),Vpe=m.forwardRef((e,t)=>C.jsx(kD.Provider,{scope:e.__scopeRovingFocusGroup,children:C.jsx(kD.Slot,{scope:e.__scopeRovingFocusGroup,children:C.jsx(PSt,{...e,ref:t})})}));Vpe.displayName=Y6;var PSt=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...d}=e,f=m.useRef(null),p=q6(t,f),h=zpe(i),[v=null,b]=Mpe({prop:a,defaultProp:l,onChange:s}),[y,w]=m.useState(!1),k=wD(u),E=Fpe(r),_=m.useRef(!1),[S,A]=m.useState(0);return m.useEffect(()=>{const O=f.current;if(O)return O.addEventListener(CD,k),()=>O.removeEventListener(CD,k)},[k]),C.jsx(ISt,{scope:r,orientation:n,dir:h,loop:o,currentTabStopId:v,onItemFocus:m.useCallback(O=>b(O),[b]),onItemShiftTab:m.useCallback(()=>w(!0),[]),onFocusableItemAdd:m.useCallback(()=>A(O=>O+1),[]),onFocusableItemRemove:m.useCallback(()=>A(O=>O-1),[]),children:C.jsx(D0.div,{tabIndex:y||S===0?-1:0,"data-orientation":n,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:Ud(e.onMouseDown,()=>{_.current=!0}),onFocus:Ud(e.onFocus,O=>{const I=!_.current;if(O.target===O.currentTarget&&I&&!y){const L=new CustomEvent(CD,ESt);if(O.currentTarget.dispatchEvent(L),!L.defaultPrevented){const P=E().filter(G=>G.focusable),H=P.find(G=>G.active),j=P.find(G=>G.id===v),B=[H,j,...P].filter(Boolean).map(G=>G.ref.current);Gpe(B,c)}}_.current=!1}),onBlur:Ud(e.onBlur,()=>w(!1))})})}),Upe="RovingFocusGroupItem",qpe=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:i,...a}=e,l=jpe(),s=i||l,u=RSt(Upe,r),c=u.currentTabStopId===s,d=Fpe(r),{onFocusableItemAdd:f,onFocusableItemRemove:p}=u;return m.useEffect(()=>{if(n)return f(),()=>p()},[n,f,p]),C.jsx(kD.ItemSlot,{scope:r,id:s,focusable:n,active:o,children:C.jsx(D0.span,{tabIndex:c?0:-1,"data-orientation":u.orientation,...a,ref:t,onMouseDown:Ud(e.onMouseDown,h=>{n?u.onItemFocus(s):h.preventDefault()}),onFocus:Ud(e.onFocus,()=>u.onItemFocus(s)),onKeyDown:Ud(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){u.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const v=NSt(h,u.orientation,u.dir);if(v!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let y=d().filter(w=>w.focusable).map(w=>w.ref.current);if(v==="last")y.reverse();else if(v==="prev"||v==="next"){v==="prev"&&y.reverse();const w=y.indexOf(h.currentTarget);y=u.loop?$St(y,w+1):y.slice(w+1)}setTimeout(()=>Gpe(y))}})})})});qpe.displayName=Upe;var LSt={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function HSt(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function NSt(e,t,r){const n=HSt(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return LSt[n]}function Gpe(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function $St(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var DSt=Vpe,BSt=qpe;function jSt(e,t){return m.useReducer((r,n)=>t[r][n]??r,e)}var Ype=e=>{const{present:t,children:r}=e,n=MSt(t),o=typeof r=="function"?r({present:n.isPresent}):m.Children.only(r),i=q6(n.ref,zSt(o));return typeof r=="function"||n.isPresent?m.cloneElement(o,{ref:i}):null};Ype.displayName="Presence";function MSt(e){const[t,r]=m.useState(),n=m.useRef({}),o=m.useRef(e),i=m.useRef("none"),a=e?"mounted":"unmounted",[l,s]=jSt(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=K6(n.current);i.current=l==="mounted"?u:"none"},[l]),yD(()=>{const u=n.current,c=o.current;if(c!==e){const f=i.current,p=K6(u);e?s("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(c&&f!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),yD(()=>{if(t){const u=d=>{const p=K6(n.current).includes(d.animationName);d.target===t&&p&&Fn.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===t&&(i.current=K6(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:m.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function K6(e){return(e==null?void 0:e.animationName)||"none"}function zSt(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var _D="Tabs",[FSt,ohr]=bD(_D,[Wpe]),Kpe=Wpe(),[WSt,TD]=FSt(_D),Xpe=m.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:s="automatic",...u}=e,c=zpe(l),[d,f]=Mpe({prop:n,onChange:o,defaultProp:i});return C.jsx(WSt,{scope:r,baseId:jpe(),value:d,onValueChange:f,orientation:a,dir:c,activationMode:s,children:C.jsx(D0.div,{dir:c,"data-orientation":a,...u,ref:t})})});Xpe.displayName=_D;var Qpe="TabsList",Zpe=m.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,i=TD(Qpe,r),a=Kpe(r);return C.jsx(DSt,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:n,children:C.jsx(D0.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});Zpe.displayName=Qpe;var Jpe="TabsTrigger",ehe=m.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...i}=e,a=TD(Jpe,r),l=Kpe(r),s=nhe(a.baseId,n),u=ohe(a.baseId,n),c=n===a.value;return C.jsx(BSt,{asChild:!0,...l,focusable:!o,active:c,children:C.jsx(D0.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s,...i,ref:t,onMouseDown:Ud(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?a.onValueChange(n):d.preventDefault()}),onKeyDown:Ud(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&a.onValueChange(n)}),onFocus:Ud(e.onFocus,()=>{const d=a.activationMode!=="manual";!c&&!o&&d&&a.onValueChange(n)})})})});ehe.displayName=Jpe;var the="TabsContent",rhe=m.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:i,...a}=e,l=TD(the,r),s=nhe(l.baseId,n),u=ohe(l.baseId,n),c=n===l.value,d=m.useRef(c);return m.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),C.jsx(Ype,{present:o||c,children:({present:f})=>C.jsx(D0.div,{"data-state":c?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":s,hidden:!f,id:u,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&i})})});rhe.displayName=the;function nhe(e,t){return`${e}-trigger-${t}`}function ohe(e,t){return`${e}-content-${t}`}var VSt=Xpe,USt=Zpe,ihe=ehe,qSt=rhe;const ahe=m.createContext({register:e=>{},unRegister:e=>{},activeTabId:""});function GSt(){const[e,t]=m.useState(Ar),[r,n]=m.useState(""),o=m.useMemo(()=>({register:i=>{t(fl(a=>{const l=a.findIndex(s=>s.id===i.id);l<0?a.push(i):a[l]=i}))},unRegister:i=>{t(fl(a=>a.filter(l=>l.id!==i)))},activeTabId:r,setActiveTabId:n}),[r]);return{tabItems:e,tabContextValue:o}}function YSt(){return m.useContext(ahe)}const X6={activeTab:0,orientation:"horizontal",distributeEvenly:!1},lhe=m.forwardRef(function({activeTab:t=X6.activeTab,orientation:r=X6.orientation,tabRenderer:n,style:o,children:i,registerComponentApi:a,className:l,distributeEvenly:s=X6.distributeEvenly},u){const{tabItems:c,tabContextValue:d}=GSt(),[f,p]=m.useState(t),h=m.useMemo(()=>{var b;return(b=c[f])==null?void 0:b.id},[f,c]);m.useEffect(()=>{d.setActiveTabId(h)},[h,d]),m.useEffect(()=>{t!==void 0&&p(()=>{const b=c.length-1,y=t-1;return y<0?0:y>b?b:y})},[t,c.length]);const v=zt(()=>{p(b=>{const y=c.length-1;return b>=y?0:b+1})});return m.useEffect(()=>{a==null||a({next:v})},[v,a]),C.jsx(ahe.Provider,{value:d,children:C.jsxs(VSt,{ref:u,className:ze(ig.tabs,l),value:`${h}`,onValueChange:b=>{const y=c.findIndex(w=>w.id===b);y!==f&&(d.setActiveTabId(b),p(y))},orientation:r,style:o,children:[C.jsxs(USt,{className:ig.tabsList,children:[c.map(b=>n?C.jsx(ihe,{value:b.id,asChild:!0,children:n({label:b.label,isActive:b.id===h})},b.id):C.jsx(ihe,{className:ze(ig.tabTrigger,{[ig.distributeEvenly]:s}),value:b.id,children:b.label},b.id)),!s&&!n&&C.jsx("div",{className:ig.filler,"data-orientation":r})]}),i]})})}),ag="Tabs",she={status:"experimental",description:"`Tabs` enables users to switch among content panels using clickable tab headers. It provides an efficient way to present multiple related sections in a single interface area, with each tab containing distinct content defined by [TabItem](/components/TabItem) components.",props:{activeTab:re("This property indicates the index of the active tab. The indexing starts from 0, representing the starting (leftmost) tab. If not set, the first tab is selected by default."),orientation:{description:"This property indicates the orientation of the component. In horizontal orientation, the tab sections are laid out on the left side of the content panel, while in vertical orientation, the buttons are at the top.",availableValues:["horizontal","vertical"],defaultValue:X6.orientation,valueType:"string"},tabTemplate:{...xr("This property declares the template for the clickable tab area."),isInternal:!0}},apis:{next:re("This method selects the next tab.")},themeVars:Ze(ig.themeVars),defaultThemeVars:{[`borderStyle-${ag}`]:"solid",[`borderColor-${ag}`]:"$borderColor",[`borderColor-active-${ag}`]:"$color-primary",[`borderWidth-${ag}`]:"2px",[`backgroundColor-trigger-${ag}--hover`]:"$color-surface-100",[`padding-trigger-${ag}`]:"$space-4"}},KSt=we(ag,she,({extractValue:e,node:t,renderChild:r,layoutCss:n,registerComponentApi:o})=>{var i,a,l;return C.jsx(lhe,{style:n,tabRenderer:(i=t==null?void 0:t.props)!=null&&i.tabTemplate?s=>C.jsx(Oi,{node:t.props.tabTemplate,item:s,renderChild:r}):void 0,activeTab:e((a=t.props)==null?void 0:a.activeTab),orientation:e((l=t.props)==null?void 0:l.orientation),registerComponentApi:o,children:r(t.children)})}),XSt={anchorRef:"_anchorRef_1d4md_1"},Q6={level:1,omitFromToc:!1},QSt=({uid:e,level:t=Q6.level,children:r,title:n,omitFromToc:o=Q6.omitFromToc,registerComponentApi:i})=>{const a=m.useRef(null),l=m.useContext(t3),s=l==null?void 0:l.registerHeading,u=l==null?void 0:l.hasTableOfContents,c=m.useCallback(d=>{a.current&&a.current.scrollIntoView({behavior:"smooth",block:"start",...d})},[]);return m.useEffect(()=>{i==null||i({scrollIntoView:c})},[i,c]),m.useLayoutEffect(()=>{var d,f,p;if(u&&a.current&&e&&!o)return s==null?void 0:s({id:e,level:t,text:n||((p=(f=(d=a.current)==null?void 0:d.textContent)==null?void 0:f.trim())==null?void 0:p.replace(/#$/,""))||e,anchor:a.current})},[e,u,s,t,n,o]),C.jsx("span",{ref:a,id:e,"data-anchor":!0,className:XSt.anchorRef,children:r})},ZSt="Bookmark",uhe={status:"stable",description:"As its name suggests, this component places a bookmark into its parent component's view. The component has an `id` that you can use in links to navigate (scroll to) the bookmark's location.",opaque:!0,props:{uid:{description:"The unique identifier of the bookmark. You can use this identifier in links to navigate to this component's location. If this identifier is not set, you cannot programmatically visit this bookmark.",valueType:"string"},level:{description:"The level of the bookmark. The level is used to determine the bookmark's position in the table of contents.",valueType:"number",defaultValue:Q6.level},title:{description:"Defines the text to display the bookmark in the table of contents. If this property is empty, the text falls back to the value of `id`.",valueType:"string"},omitFromToc:{description:"If true, this bookmark will be excluded from the table of contents.",valueType:"boolean",defaultValue:Q6.omitFromToc}},apis:{scrollIntoView:{description:"Scrolls the bookmark into view."}}},JSt=we(ZSt,uhe,e=>{const{node:t,renderChild:r,extractValue:n,layoutContext:o}=e;return C.jsx(QSt,{uid:n(t.uid),level:n(t.props.level),title:n(t.props.title),omitFromToc:n.asOptionalBoolean(t.props.omitFromToc),children:r(t.children,o)})}),che=R9(null);function SD(e){return Sy(che,e)}const dhe={bucket:"default"};function e3t({bucket:e=dhe.bucket,updateState:t,initialValue:r,registerComponentApi:n}){const o=SD(l=>l.registerAppState),i=SD(l=>l.update);Sn(()=>{r!==void 0&&o(e,r)},[e,r,o]);const a=SD(l=>l.appState[e]);return Sn(()=>{t({value:a})},[t,a]),Sn(()=>{n({update:l=>i(e,l)})},[e,n,i]),null}const H2="AppState",fhe={status:"stable",description:"`AppState` is an invisible component that provides global state management across your entire application. Unlike component variables that are scoped locally, AppState allows any component to access and update shared state without prop drilling.",props:{bucket:{description:`This property is the identifier of the bucket to which the \`${H2}\` instance is bound. Multiple \`${H2}\` instances with the same bucket will share the same state object: any of them updating the state will cause the other instances to view the new, updated state.`,valueType:"string",defaultValue:dhe.bucket},initialValue:{description:`This property contains the initial state value. Though you can use multiple \`${H2}\`component instances for the same bucket with their \`initialValue\` set, it may result in faulty app logic. When xmlui instantiates an \`${H2}\` with an explicit initial value, that value is immediately set. Multiple initial values may result in undesired initialization. By default, the bucked's initial state is undefined.`}},apis:{update:re("This method updates the application state object bound to the `AppState` instance. The function's single argument is an object that specifies the new state value.")},nonVisual:!0},t3t=we(H2,fhe,({node:e,extractValue:t,updateState:r,registerComponentApi:n})=>C.jsx(e3t,{bucket:t(e.props.bucket),initialValue:t(e.props.initialValue),updateState:r,registerComponentApi:n})),Ps={themeVars:`'{"backgroundColor-TableOfContents": "var(--xmlui-backgroundColor-TableOfContents)", "width-TableOfContents": "var(--xmlui-width-TableOfContents)", "height-TableOfContents": "var(--xmlui-height-TableOfContents)", "border-TableOfContents": "var(--xmlui-border-TableOfContents)", "borderHorizontal-TableOfContents": "var(--xmlui-borderHorizontal-TableOfContents, var(--xmlui-border-TableOfContents))", "borderVertical-TableOfContents": "var(--xmlui-borderVertical-TableOfContents, var(--xmlui-border-TableOfContents))", "borderLeft-TableOfContents": "var(--xmlui-borderLeft-TableOfContents, var(--xmlui-borderHorizontal-TableOfContents, var(--xmlui-border-TableOfContents)))", "borderRight-TableOfContents": "var(--xmlui-borderRight-TableOfContents, var(--xmlui-borderHorizontal-TableOfContents, var(--xmlui-border-TableOfContents)))", "borderTop-TableOfContents": "var(--xmlui-borderTop-TableOfContents, var(--xmlui-borderVertical-TableOfContents, var(--xmlui-border-TableOfContents)))", "borderBottom-TableOfContents": "var(--xmlui-borderBottom-TableOfContents, var(--xmlui-borderVertical-TableOfContents, var(--xmlui-border-TableOfContents)))", "borderWidth-TableOfContents": "var(--xmlui-borderWidth-TableOfContents)", "borderHorizontalWidth-TableOfContents": "var(--xmlui-borderHorizontalWidth-TableOfContents, var(--xmlui-borderWidth-TableOfContents))", "borderLeftWidth-TableOfContents": "var(--xmlui-borderLeftWidth-TableOfContents, var(--xmlui-borderHorizontalWidth-TableOfContents, var(--xmlui-borderWidth-TableOfContents)))", "borderRightWidth-TableOfContents": "var(--xmlui-borderRightWidth-TableOfContents, var(--xmlui-borderHorizontalWidth-TableOfContents, var(--xmlui-borderWidth-TableOfContents)))", "borderVerticalWidth-TableOfContents": "var(--xmlui-borderVerticalWidth-TableOfContents, var(--xmlui-borderWidth-TableOfContents))", "borderTopWidth-TableOfContents": "var(--xmlui-borderTopWidth-TableOfContents, var(--xmlui-borderVerticalWidth-TableOfContents, var(--xmlui-borderWidth-TableOfContents)))", "borderBottomWidth-TableOfContents": "var(--xmlui-borderBottomWidth-TableOfContents, var(--xmlui-borderVerticalWidth-TableOfContents, var(--xmlui-borderWidth-TableOfContents)))", "borderStyle-TableOfContents": "var(--xmlui-borderStyle-TableOfContents)", "borderHorizontalStyle-TableOfContents": "var(--xmlui-borderHorizontalStyle-TableOfContents, var(--xmlui-borderStyle-TableOfContents))", "borderLeftStyle-TableOfContents": "var(--xmlui-borderLeftStyle-TableOfContents, var(--xmlui-borderHorizontalStyle-TableOfContents, var(--xmlui-borderStyle-TableOfContents)))", "borderRightStyle-TableOfContents": "var(--xmlui-borderRightStyle-TableOfContents, var(--xmlui-borderHorizontalStyle-TableOfContents, var(--xmlui-borderStyle-TableOfContents)))", "borderVerticalStyle-TableOfContents": "var(--xmlui-borderVerticalStyle-TableOfContents, var(--xmlui-borderStyle-TableOfContents))", "borderTopStyle-TableOfContents": "var(--xmlui-borderTopStyle-TableOfContents, var(--xmlui-borderVerticalStyle-TableOfContents, var(--xmlui-borderStyle-TableOfContents)))", "borderBottomStyle-TableOfContents": "var(--xmlui-borderBottomStyle-TableOfContents, var(--xmlui-borderVerticalStyle-TableOfContents, var(--xmlui-borderStyle-TableOfContents)))", "borderColor-TableOfContents": "var(--xmlui-borderColor-TableOfContents)", "borderHorizontalColor-TableOfContents": "var(--xmlui-borderHorizontalColor-TableOfContents, var(--xmlui-borderColor-TableOfContents))", "borderLeftColor-TableOfContents": "var(--xmlui-borderLeftColor-TableOfContents, var(--xmlui-borderHorizontalColor-TableOfContents, var(--xmlui-borderColor-TableOfContents)))", "borderRightColor-TableOfContents": "var(--xmlui-borderRightColor-TableOfContents, var(--xmlui-borderHorizontalColor-TableOfContents, var(--xmlui-borderColor-TableOfContents)))", "borderVerticalColor-TableOfContents": "var(--xmlui-borderVerticalColor-TableOfContents, var(--xmlui-borderColor-TableOfContents))", "borderTopColor-TableOfContents": "var(--xmlui-borderTopColor-TableOfContents, var(--xmlui-borderVerticalColor-TableOfContents, var(--xmlui-borderColor-TableOfContents)))", "borderBottomColor-TableOfContents": "var(--xmlui-borderBottomColor-TableOfContents, var(--xmlui-borderVerticalColor-TableOfContents, var(--xmlui-borderColor-TableOfContents)))", "borderStartStartRadius-TableOfContents": "var(--xmlui-borderStartStartRadius-TableOfContents, var(--xmlui-borderRadius-TableOfContents))", "borderStartEndRadius-TableOfContents": "var(--xmlui-borderStartEndRadius-TableOfContents, var(--xmlui-borderRadius-TableOfContents))", "borderEndStartRadius-TableOfContents": "var(--xmlui-borderEndStartRadius-TableOfContents, var(--xmlui-borderRadius-TableOfContents))", "borderEndEndRadius-TableOfContents": "var(--xmlui-borderEndEndRadius-TableOfContents, var(--xmlui-borderRadius-TableOfContents))", "padding-TableOfContents": "var(--xmlui-padding-TableOfContents)", "paddingHorizontal-TableOfContents": "var(--xmlui-paddingHorizontal-TableOfContents, var(--xmlui-padding-TableOfContents))", "paddingVertical-TableOfContents": "var(--xmlui-paddingVertical-TableOfContents, var(--xmlui-padding-TableOfContents))", "paddingLeft-TableOfContents": "var(--xmlui-paddingLeft-TableOfContents, var(--xmlui-paddingHorizontal-TableOfContents, var(--xmlui-padding-TableOfContents)))", "paddingRight-TableOfContents": "var(--xmlui-paddingRight-TableOfContents, var(--xmlui-paddingHorizontal-TableOfContents, var(--xmlui-padding-TableOfContents)))", "paddingTop-TableOfContents": "var(--xmlui-paddingTop-TableOfContents, var(--xmlui-paddingVertical-TableOfContents, var(--xmlui-padding-TableOfContents)))", "paddingBottom-TableOfContents": "var(--xmlui-paddingBottom-TableOfContents, var(--xmlui-paddingVertical-TableOfContents, var(--xmlui-padding-TableOfContents)))", "textColor-TableOfContentsItem": "var(--xmlui-textColor-TableOfContentsItem)", "fontFamily-TableOfContentsItem": "var(--xmlui-fontFamily-TableOfContentsItem)", "fontSize-TableOfContentsItem": "var(--xmlui-fontSize-TableOfContentsItem)", "fontStyle-TableOfContentsItem": "var(--xmlui-fontStyle-TableOfContentsItem)", "fontVariant-TableOfContentsItem": "var(--xmlui-fontVariant-TableOfContentsItem)", "fontWeight-TableOfContentsItem": "var(--xmlui-fontWeight-TableOfContentsItem)", "fontStretch-TableOfContentsItem": "var(--xmlui-fontStretch-TableOfContentsItem)", "textDecorationLine-TableOfContentsItem": "var(--xmlui-textDecorationLine-TableOfContentsItem)", "textDecorationColor-TableOfContentsItem": "var(--xmlui-textDecorationColor-TableOfContentsItem)", "textDecorationStyle-TableOfContentsItem": "var(--xmlui-textDecorationStyle-TableOfContentsItem)", "textDecorationThickness-TableOfContentsItem": "var(--xmlui-textDecorationThickness-TableOfContentsItem)", "textUnderlineOffset-TableOfContentsItem": "var(--xmlui-textUnderlineOffset-TableOfContentsItem)", "lineHeight-TableOfContentsItem": "var(--xmlui-lineHeight-TableOfContentsItem)", "backgroundColor-TableOfContentsItem": "var(--xmlui-backgroundColor-TableOfContentsItem)", "textTransform-TableOfContentsItem": "var(--xmlui-textTransform-TableOfContentsItem)", "letterSpacing-TableOfContentsItem": "var(--xmlui-letterSpacing-TableOfContentsItem)", "wordSpacing-TableOfContentsItem": "var(--xmlui-wordSpacing-TableOfContentsItem)", "textShadow-TableOfContentsItem": "var(--xmlui-textShadow-TableOfContentsItem)", "textIndent-TableOfContentsItem": "var(--xmlui-textIndent-TableOfContentsItem)", "textAlign-TableOfContentsItem": "var(--xmlui-textAlign-TableOfContentsItem)", "textAlignLast-TableOfContentsItem": "var(--xmlui-textAlignLast-TableOfContentsItem)", "wordBreak-TableOfContentsItem": "var(--xmlui-wordBreak-TableOfContentsItem)", "wordWrap-TableOfContentsItem": "var(--xmlui-wordWrap-TableOfContentsItem)", "direction-TableOfContentsItem": "var(--xmlui-direction-TableOfContentsItem)", "writingMode-TableOfContentsItem": "var(--xmlui-writingMode-TableOfContentsItem)", "lineBreak-TableOfContentsItem": "var(--xmlui-lineBreak-TableOfContentsItem)", "border-TableOfContentsItem": "var(--xmlui-border-TableOfContentsItem)", "borderHorizontal-TableOfContentsItem": "var(--xmlui-borderHorizontal-TableOfContentsItem, var(--xmlui-border-TableOfContentsItem))", "borderVertical-TableOfContentsItem": "var(--xmlui-borderVertical-TableOfContentsItem, var(--xmlui-border-TableOfContentsItem))", "borderLeft-TableOfContentsItem": "var(--xmlui-borderLeft-TableOfContentsItem, var(--xmlui-borderHorizontal-TableOfContentsItem, var(--xmlui-border-TableOfContentsItem)))", "borderRight-TableOfContentsItem": "var(--xmlui-borderRight-TableOfContentsItem, var(--xmlui-borderHorizontal-TableOfContentsItem, var(--xmlui-border-TableOfContentsItem)))", "borderTop-TableOfContentsItem": "var(--xmlui-borderTop-TableOfContentsItem, var(--xmlui-borderVertical-TableOfContentsItem, var(--xmlui-border-TableOfContentsItem)))", "borderBottom-TableOfContentsItem": "var(--xmlui-borderBottom-TableOfContentsItem, var(--xmlui-borderVertical-TableOfContentsItem, var(--xmlui-border-TableOfContentsItem)))", "borderWidth-TableOfContentsItem": "var(--xmlui-borderWidth-TableOfContentsItem)", "borderHorizontalWidth-TableOfContentsItem": "var(--xmlui-borderHorizontalWidth-TableOfContentsItem, var(--xmlui-borderWidth-TableOfContentsItem))", "borderLeftWidth-TableOfContentsItem": "var(--xmlui-borderLeftWidth-TableOfContentsItem, var(--xmlui-borderHorizontalWidth-TableOfContentsItem, var(--xmlui-borderWidth-TableOfContentsItem)))", "borderRightWidth-TableOfContentsItem": "var(--xmlui-borderRightWidth-TableOfContentsItem, var(--xmlui-borderHorizontalWidth-TableOfContentsItem, var(--xmlui-borderWidth-TableOfContentsItem)))", "borderVerticalWidth-TableOfContentsItem": "var(--xmlui-borderVerticalWidth-TableOfContentsItem, var(--xmlui-borderWidth-TableOfContentsItem))", "borderTopWidth-TableOfContentsItem": "var(--xmlui-borderTopWidth-TableOfContentsItem, var(--xmlui-borderVerticalWidth-TableOfContentsItem, var(--xmlui-borderWidth-TableOfContentsItem)))", "borderBottomWidth-TableOfContentsItem": "var(--xmlui-borderBottomWidth-TableOfContentsItem, var(--xmlui-borderVerticalWidth-TableOfContentsItem, var(--xmlui-borderWidth-TableOfContentsItem)))", "borderStyle-TableOfContentsItem": "var(--xmlui-borderStyle-TableOfContentsItem)", "borderHorizontalStyle-TableOfContentsItem": "var(--xmlui-borderHorizontalStyle-TableOfContentsItem, var(--xmlui-borderStyle-TableOfContentsItem))", "borderLeftStyle-TableOfContentsItem": "var(--xmlui-borderLeftStyle-TableOfContentsItem, var(--xmlui-borderHorizontalStyle-TableOfContentsItem, var(--xmlui-borderStyle-TableOfContentsItem)))", "borderRightStyle-TableOfContentsItem": "var(--xmlui-borderRightStyle-TableOfContentsItem, var(--xmlui-borderHorizontalStyle-TableOfContentsItem, var(--xmlui-borderStyle-TableOfContentsItem)))", "borderVerticalStyle-TableOfContentsItem": "var(--xmlui-borderVerticalStyle-TableOfContentsItem, var(--xmlui-borderStyle-TableOfContentsItem))", "borderTopStyle-TableOfContentsItem": "var(--xmlui-borderTopStyle-TableOfContentsItem, var(--xmlui-borderVerticalStyle-TableOfContentsItem, var(--xmlui-borderStyle-TableOfContentsItem)))", "borderBottomStyle-TableOfContentsItem": "var(--xmlui-borderBottomStyle-TableOfContentsItem, var(--xmlui-borderVerticalStyle-TableOfContentsItem, var(--xmlui-borderStyle-TableOfContentsItem)))", "borderColor-TableOfContentsItem": "var(--xmlui-borderColor-TableOfContentsItem)", "borderHorizontalColor-TableOfContentsItem": "var(--xmlui-borderHorizontalColor-TableOfContentsItem, var(--xmlui-borderColor-TableOfContentsItem))", "borderLeftColor-TableOfContentsItem": "var(--xmlui-borderLeftColor-TableOfContentsItem, var(--xmlui-borderHorizontalColor-TableOfContentsItem, var(--xmlui-borderColor-TableOfContentsItem)))", "borderRightColor-TableOfContentsItem": "var(--xmlui-borderRightColor-TableOfContentsItem, var(--xmlui-borderHorizontalColor-TableOfContentsItem, var(--xmlui-borderColor-TableOfContentsItem)))", "borderVerticalColor-TableOfContentsItem": "var(--xmlui-borderVerticalColor-TableOfContentsItem, var(--xmlui-borderColor-TableOfContentsItem))", "borderTopColor-TableOfContentsItem": "var(--xmlui-borderTopColor-TableOfContentsItem, var(--xmlui-borderVerticalColor-TableOfContentsItem, var(--xmlui-borderColor-TableOfContentsItem)))", "borderBottomColor-TableOfContentsItem": "var(--xmlui-borderBottomColor-TableOfContentsItem, var(--xmlui-borderVerticalColor-TableOfContentsItem, var(--xmlui-borderColor-TableOfContentsItem)))", "borderStartStartRadius-TableOfContentsItem": "var(--xmlui-borderStartStartRadius-TableOfContentsItem, var(--xmlui-borderRadius-TableOfContentsItem))", "borderStartEndRadius-TableOfContentsItem": "var(--xmlui-borderStartEndRadius-TableOfContentsItem, var(--xmlui-borderRadius-TableOfContentsItem))", "borderEndStartRadius-TableOfContentsItem": "var(--xmlui-borderEndStartRadius-TableOfContentsItem, var(--xmlui-borderRadius-TableOfContentsItem))", "borderEndEndRadius-TableOfContentsItem": "var(--xmlui-borderEndEndRadius-TableOfContentsItem, var(--xmlui-borderRadius-TableOfContentsItem))", "border-TableOfContentsItem--hover": "var(--xmlui-border-TableOfContentsItem--hover)", "borderHorizontal-TableOfContentsItem--hover": "var(--xmlui-borderHorizontal-TableOfContentsItem--hover, var(--xmlui-border-TableOfContentsItem--hover))", "borderVertical-TableOfContentsItem--hover": "var(--xmlui-borderVertical-TableOfContentsItem--hover, var(--xmlui-border-TableOfContentsItem--hover))", "borderLeft-TableOfContentsItem--hover": "var(--xmlui-borderLeft-TableOfContentsItem--hover, var(--xmlui-borderHorizontal-TableOfContentsItem--hover, var(--xmlui-border-TableOfContentsItem--hover)))", "borderRight-TableOfContentsItem--hover": "var(--xmlui-borderRight-TableOfContentsItem--hover, var(--xmlui-borderHorizontal-TableOfContentsItem--hover, var(--xmlui-border-TableOfContentsItem--hover)))", "borderTop-TableOfContentsItem--hover": "var(--xmlui-borderTop-TableOfContentsItem--hover, var(--xmlui-borderVertical-TableOfContentsItem--hover, var(--xmlui-border-TableOfContentsItem--hover)))", "borderBottom-TableOfContentsItem--hover": "var(--xmlui-borderBottom-TableOfContentsItem--hover, var(--xmlui-borderVertical-TableOfContentsItem--hover, var(--xmlui-border-TableOfContentsItem--hover)))", "borderWidth-TableOfContentsItem--hover": "var(--xmlui-borderWidth-TableOfContentsItem--hover)", "borderHorizontalWidth-TableOfContentsItem--hover": "var(--xmlui-borderHorizontalWidth-TableOfContentsItem--hover, var(--xmlui-borderWidth-TableOfContentsItem--hover))", "borderLeftWidth-TableOfContentsItem--hover": "var(--xmlui-borderLeftWidth-TableOfContentsItem--hover, var(--xmlui-borderHorizontalWidth-TableOfContentsItem--hover, var(--xmlui-borderWidth-TableOfContentsItem--hover)))", "borderRightWidth-TableOfContentsItem--hover": "var(--xmlui-borderRightWidth-TableOfContentsItem--hover, var(--xmlui-borderHorizontalWidth-TableOfContentsItem--hover, var(--xmlui-borderWidth-TableOfContentsItem--hover)))", "borderVerticalWidth-TableOfContentsItem--hover": "var(--xmlui-borderVerticalWidth-TableOfContentsItem--hover, var(--xmlui-borderWidth-TableOfContentsItem--hover))", "borderTopWidth-TableOfContentsItem--hover": "var(--xmlui-borderTopWidth-TableOfContentsItem--hover, var(--xmlui-borderVerticalWidth-TableOfContentsItem--hover, var(--xmlui-borderWidth-TableOfContentsItem--hover)))", "borderBottomWidth-TableOfContentsItem--hover": "var(--xmlui-borderBottomWidth-TableOfContentsItem--hover, var(--xmlui-borderVerticalWidth-TableOfContentsItem--hover, var(--xmlui-borderWidth-TableOfContentsItem--hover)))", "borderStyle-TableOfContentsItem--hover": "var(--xmlui-borderStyle-TableOfContentsItem--hover)", "borderHorizontalStyle-TableOfContentsItem--hover": "var(--xmlui-borderHorizontalStyle-TableOfContentsItem--hover, var(--xmlui-borderStyle-TableOfContentsItem--hover))", "borderLeftStyle-TableOfContentsItem--hover": "var(--xmlui-borderLeftStyle-TableOfContentsItem--hover, var(--xmlui-borderHorizontalStyle-TableOfContentsItem--hover, var(--xmlui-borderStyle-TableOfContentsItem--hover)))", "borderRightStyle-TableOfContentsItem--hover": "var(--xmlui-borderRightStyle-TableOfContentsItem--hover, var(--xmlui-borderHorizontalStyle-TableOfContentsItem--hover, var(--xmlui-borderStyle-TableOfContentsItem--hover)))", "borderVerticalStyle-TableOfContentsItem--hover": "var(--xmlui-borderVerticalStyle-TableOfContentsItem--hover, var(--xmlui-borderStyle-TableOfContentsItem--hover))", "borderTopStyle-TableOfContentsItem--hover": "var(--xmlui-borderTopStyle-TableOfContentsItem--hover, var(--xmlui-borderVerticalStyle-TableOfContentsItem--hover, var(--xmlui-borderStyle-TableOfContentsItem--hover)))", "borderBottomStyle-TableOfContentsItem--hover": "var(--xmlui-borderBottomStyle-TableOfContentsItem--hover, var(--xmlui-borderVerticalStyle-TableOfContentsItem--hover, var(--xmlui-borderStyle-TableOfContentsItem--hover)))", "borderColor-TableOfContentsItem--hover": "var(--xmlui-borderColor-TableOfContentsItem--hover)", "borderHorizontalColor-TableOfContentsItem--hover": "var(--xmlui-borderHorizontalColor-TableOfContentsItem--hover, var(--xmlui-borderColor-TableOfContentsItem--hover))", "borderLeftColor-TableOfContentsItem--hover": "var(--xmlui-borderLeftColor-TableOfContentsItem--hover, var(--xmlui-borderHorizontalColor-TableOfContentsItem--hover, var(--xmlui-borderColor-TableOfContentsItem--hover)))", "borderRightColor-TableOfContentsItem--hover": "var(--xmlui-borderRightColor-TableOfContentsItem--hover, var(--xmlui-borderHorizontalColor-TableOfContentsItem--hover, var(--xmlui-borderColor-TableOfContentsItem--hover)))", "borderVerticalColor-TableOfContentsItem--hover": "var(--xmlui-borderVerticalColor-TableOfContentsItem--hover, var(--xmlui-borderColor-TableOfContentsItem--hover))", "borderTopColor-TableOfContentsItem--hover": "var(--xmlui-borderTopColor-TableOfContentsItem--hover, var(--xmlui-borderVerticalColor-TableOfContentsItem--hover, var(--xmlui-borderColor-TableOfContentsItem--hover)))", "borderBottomColor-TableOfContentsItem--hover": "var(--xmlui-borderBottomColor-TableOfContentsItem--hover, var(--xmlui-borderVerticalColor-TableOfContentsItem--hover, var(--xmlui-borderColor-TableOfContentsItem--hover)))", "borderStartStartRadius-TableOfContentsItem--hover": "var(--xmlui-borderStartStartRadius-TableOfContentsItem--hover, var(--xmlui-borderRadius-TableOfContentsItem--hover))", "borderStartEndRadius-TableOfContentsItem--hover": "var(--xmlui-borderStartEndRadius-TableOfContentsItem--hover, var(--xmlui-borderRadius-TableOfContentsItem--hover))", "borderEndStartRadius-TableOfContentsItem--hover": "var(--xmlui-borderEndStartRadius-TableOfContentsItem--hover, var(--xmlui-borderRadius-TableOfContentsItem--hover))", "borderEndEndRadius-TableOfContentsItem--hover": "var(--xmlui-borderEndEndRadius-TableOfContentsItem--hover, var(--xmlui-borderRadius-TableOfContentsItem--hover))", "border-TableOfContentsItem--active": "var(--xmlui-border-TableOfContentsItem--active)", "borderHorizontal-TableOfContentsItem--active": "var(--xmlui-borderHorizontal-TableOfContentsItem--active, var(--xmlui-border-TableOfContentsItem--active))", "borderVertical-TableOfContentsItem--active": "var(--xmlui-borderVertical-TableOfContentsItem--active, var(--xmlui-border-TableOfContentsItem--active))", "borderLeft-TableOfContentsItem--active": "var(--xmlui-borderLeft-TableOfContentsItem--active, var(--xmlui-borderHorizontal-TableOfContentsItem--active, var(--xmlui-border-TableOfContentsItem--active)))", "borderRight-TableOfContentsItem--active": "var(--xmlui-borderRight-TableOfContentsItem--active, var(--xmlui-borderHorizontal-TableOfContentsItem--active, var(--xmlui-border-TableOfContentsItem--active)))", "borderTop-TableOfContentsItem--active": "var(--xmlui-borderTop-TableOfContentsItem--active, var(--xmlui-borderVertical-TableOfContentsItem--active, var(--xmlui-border-TableOfContentsItem--active)))", "borderBottom-TableOfContentsItem--active": "var(--xmlui-borderBottom-TableOfContentsItem--active, var(--xmlui-borderVertical-TableOfContentsItem--active, var(--xmlui-border-TableOfContentsItem--active)))", "borderWidth-TableOfContentsItem--active": "var(--xmlui-borderWidth-TableOfContentsItem--active)", "borderHorizontalWidth-TableOfContentsItem--active": "var(--xmlui-borderHorizontalWidth-TableOfContentsItem--active, var(--xmlui-borderWidth-TableOfContentsItem--active))", "borderLeftWidth-TableOfContentsItem--active": "var(--xmlui-borderLeftWidth-TableOfContentsItem--active, var(--xmlui-borderHorizontalWidth-TableOfContentsItem--active, var(--xmlui-borderWidth-TableOfContentsItem--active)))", "borderRightWidth-TableOfContentsItem--active": "var(--xmlui-borderRightWidth-TableOfContentsItem--active, var(--xmlui-borderHorizontalWidth-TableOfContentsItem--active, var(--xmlui-borderWidth-TableOfContentsItem--active)))", "borderVerticalWidth-TableOfContentsItem--active": "var(--xmlui-borderVerticalWidth-TableOfContentsItem--active, var(--xmlui-borderWidth-TableOfContentsItem--active))", "borderTopWidth-TableOfContentsItem--active": "var(--xmlui-borderTopWidth-TableOfContentsItem--active, var(--xmlui-borderVerticalWidth-TableOfContentsItem--active, var(--xmlui-borderWidth-TableOfContentsItem--active)))", "borderBottomWidth-TableOfContentsItem--active": "var(--xmlui-borderBottomWidth-TableOfContentsItem--active, var(--xmlui-borderVerticalWidth-TableOfContentsItem--active, var(--xmlui-borderWidth-TableOfContentsItem--active)))", "borderStyle-TableOfContentsItem--active": "var(--xmlui-borderStyle-TableOfContentsItem--active)", "borderHorizontalStyle-TableOfContentsItem--active": "var(--xmlui-borderHorizontalStyle-TableOfContentsItem--active, var(--xmlui-borderStyle-TableOfContentsItem--active))", "borderLeftStyle-TableOfContentsItem--active": "var(--xmlui-borderLeftStyle-TableOfContentsItem--active, var(--xmlui-borderHorizontalStyle-TableOfContentsItem--active, var(--xmlui-borderStyle-TableOfContentsItem--active)))", "borderRightStyle-TableOfContentsItem--active": "var(--xmlui-borderRightStyle-TableOfContentsItem--active, var(--xmlui-borderHorizontalStyle-TableOfContentsItem--active, var(--xmlui-borderStyle-TableOfContentsItem--active)))", "borderVerticalStyle-TableOfContentsItem--active": "var(--xmlui-borderVerticalStyle-TableOfContentsItem--active, var(--xmlui-borderStyle-TableOfContentsItem--active))", "borderTopStyle-TableOfContentsItem--active": "var(--xmlui-borderTopStyle-TableOfContentsItem--active, var(--xmlui-borderVerticalStyle-TableOfContentsItem--active, var(--xmlui-borderStyle-TableOfContentsItem--active)))", "borderBottomStyle-TableOfContentsItem--active": "var(--xmlui-borderBottomStyle-TableOfContentsItem--active, var(--xmlui-borderVerticalStyle-TableOfContentsItem--active, var(--xmlui-borderStyle-TableOfContentsItem--active)))", "borderColor-TableOfContentsItem--active": "var(--xmlui-borderColor-TableOfContentsItem--active)", "borderHorizontalColor-TableOfContentsItem--active": "var(--xmlui-borderHorizontalColor-TableOfContentsItem--active, var(--xmlui-borderColor-TableOfContentsItem--active))", "borderLeftColor-TableOfContentsItem--active": "var(--xmlui-borderLeftColor-TableOfContentsItem--active, var(--xmlui-borderHorizontalColor-TableOfContentsItem--active, var(--xmlui-borderColor-TableOfContentsItem--active)))", "borderRightColor-TableOfContentsItem--active": "var(--xmlui-borderRightColor-TableOfContentsItem--active, var(--xmlui-borderHorizontalColor-TableOfContentsItem--active, var(--xmlui-borderColor-TableOfContentsItem--active)))", "borderVerticalColor-TableOfContentsItem--active": "var(--xmlui-borderVerticalColor-TableOfContentsItem--active, var(--xmlui-borderColor-TableOfContentsItem--active))", "borderTopColor-TableOfContentsItem--active": "var(--xmlui-borderTopColor-TableOfContentsItem--active, var(--xmlui-borderVerticalColor-TableOfContentsItem--active, var(--xmlui-borderColor-TableOfContentsItem--active)))", "borderBottomColor-TableOfContentsItem--active": "var(--xmlui-borderBottomColor-TableOfContentsItem--active, var(--xmlui-borderVerticalColor-TableOfContentsItem--active, var(--xmlui-borderColor-TableOfContentsItem--active)))", "borderStartStartRadius-TableOfContentsItem--active": "var(--xmlui-borderStartStartRadius-TableOfContentsItem--active, var(--xmlui-borderRadius-TableOfContentsItem--active))", "borderStartEndRadius-TableOfContentsItem--active": "var(--xmlui-borderStartEndRadius-TableOfContentsItem--active, var(--xmlui-borderRadius-TableOfContentsItem--active))", "borderEndStartRadius-TableOfContentsItem--active": "var(--xmlui-borderEndStartRadius-TableOfContentsItem--active, var(--xmlui-borderRadius-TableOfContentsItem--active))", "borderEndEndRadius-TableOfContentsItem--active": "var(--xmlui-borderEndEndRadius-TableOfContentsItem--active, var(--xmlui-borderRadius-TableOfContentsItem--active))", "padding-TableOfContentsItem": "var(--xmlui-padding-TableOfContentsItem)", "paddingHorizontal-TableOfContentsItem": "var(--xmlui-paddingHorizontal-TableOfContentsItem, var(--xmlui-padding-TableOfContentsItem))", "paddingVertical-TableOfContentsItem": "var(--xmlui-paddingVertical-TableOfContentsItem, var(--xmlui-padding-TableOfContentsItem))", "paddingLeft-TableOfContentsItem": "var(--xmlui-paddingLeft-TableOfContentsItem, var(--xmlui-paddingHorizontal-TableOfContentsItem, var(--xmlui-padding-TableOfContentsItem)))", "paddingRight-TableOfContentsItem": "var(--xmlui-paddingRight-TableOfContentsItem, var(--xmlui-paddingHorizontal-TableOfContentsItem, var(--xmlui-padding-TableOfContentsItem)))", "paddingTop-TableOfContentsItem": "var(--xmlui-paddingTop-TableOfContentsItem, var(--xmlui-paddingVertical-TableOfContentsItem, var(--xmlui-padding-TableOfContentsItem)))", "paddingBottom-TableOfContentsItem": "var(--xmlui-paddingBottom-TableOfContentsItem, var(--xmlui-paddingVertical-TableOfContentsItem, var(--xmlui-padding-TableOfContentsItem)))", "padding-TableOfContentsItem-level-1": "var(--xmlui-padding-TableOfContentsItem-level-1)", "paddingHorizontal-TableOfContentsItem-level-1": "var(--xmlui-paddingHorizontal-TableOfContentsItem-level-1, var(--xmlui-padding-TableOfContentsItem-level-1))", "paddingVertical-TableOfContentsItem-level-1": "var(--xmlui-paddingVertical-TableOfContentsItem-level-1, var(--xmlui-padding-TableOfContentsItem-level-1))", "paddingLeft-TableOfContentsItem-level-1": "var(--xmlui-paddingLeft-TableOfContentsItem-level-1, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-1, var(--xmlui-padding-TableOfContentsItem-level-1)))", "paddingRight-TableOfContentsItem-level-1": "var(--xmlui-paddingRight-TableOfContentsItem-level-1, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-1, var(--xmlui-padding-TableOfContentsItem-level-1)))", "paddingTop-TableOfContentsItem-level-1": "var(--xmlui-paddingTop-TableOfContentsItem-level-1, var(--xmlui-paddingVertical-TableOfContentsItem-level-1, var(--xmlui-padding-TableOfContentsItem-level-1)))", "paddingBottom-TableOfContentsItem-level-1": "var(--xmlui-paddingBottom-TableOfContentsItem-level-1, var(--xmlui-paddingVertical-TableOfContentsItem-level-1, var(--xmlui-padding-TableOfContentsItem-level-1)))", "textColor-TableOfContentsItem-level-1": "var(--xmlui-textColor-TableOfContentsItem-level-1)", "fontFamily-TableOfContentsItem-level-1": "var(--xmlui-fontFamily-TableOfContentsItem-level-1)", "fontSize-TableOfContentsItem-level-1": "var(--xmlui-fontSize-TableOfContentsItem-level-1)", "fontStyle-TableOfContentsItem-level-1": "var(--xmlui-fontStyle-TableOfContentsItem-level-1)", "fontVariant-TableOfContentsItem-level-1": "var(--xmlui-fontVariant-TableOfContentsItem-level-1)", "fontWeight-TableOfContentsItem-level-1": "var(--xmlui-fontWeight-TableOfContentsItem-level-1)", "fontStretch-TableOfContentsItem-level-1": "var(--xmlui-fontStretch-TableOfContentsItem-level-1)", "textDecorationLine-TableOfContentsItem-level-1": "var(--xmlui-textDecorationLine-TableOfContentsItem-level-1)", "textDecorationColor-TableOfContentsItem-level-1": "var(--xmlui-textDecorationColor-TableOfContentsItem-level-1)", "textDecorationStyle-TableOfContentsItem-level-1": "var(--xmlui-textDecorationStyle-TableOfContentsItem-level-1)", "textDecorationThickness-TableOfContentsItem-level-1": "var(--xmlui-textDecorationThickness-TableOfContentsItem-level-1)", "textUnderlineOffset-TableOfContentsItem-level-1": "var(--xmlui-textUnderlineOffset-TableOfContentsItem-level-1)", "lineHeight-TableOfContentsItem-level-1": "var(--xmlui-lineHeight-TableOfContentsItem-level-1)", "backgroundColor-TableOfContentsItem-level-1": "var(--xmlui-backgroundColor-TableOfContentsItem-level-1)", "textTransform-TableOfContentsItem-level-1": "var(--xmlui-textTransform-TableOfContentsItem-level-1)", "letterSpacing-TableOfContentsItem-level-1": "var(--xmlui-letterSpacing-TableOfContentsItem-level-1)", "wordSpacing-TableOfContentsItem-level-1": "var(--xmlui-wordSpacing-TableOfContentsItem-level-1)", "textShadow-TableOfContentsItem-level-1": "var(--xmlui-textShadow-TableOfContentsItem-level-1)", "textIndent-TableOfContentsItem-level-1": "var(--xmlui-textIndent-TableOfContentsItem-level-1)", "textAlign-TableOfContentsItem-level-1": "var(--xmlui-textAlign-TableOfContentsItem-level-1)", "textAlignLast-TableOfContentsItem-level-1": "var(--xmlui-textAlignLast-TableOfContentsItem-level-1)", "wordBreak-TableOfContentsItem-level-1": "var(--xmlui-wordBreak-TableOfContentsItem-level-1)", "wordWrap-TableOfContentsItem-level-1": "var(--xmlui-wordWrap-TableOfContentsItem-level-1)", "direction-TableOfContentsItem-level-1": "var(--xmlui-direction-TableOfContentsItem-level-1)", "writingMode-TableOfContentsItem-level-1": "var(--xmlui-writingMode-TableOfContentsItem-level-1)", "lineBreak-TableOfContentsItem-level-1": "var(--xmlui-lineBreak-TableOfContentsItem-level-1)", "padding-TableOfContentsItem-level-2": "var(--xmlui-padding-TableOfContentsItem-level-2)", "paddingHorizontal-TableOfContentsItem-level-2": "var(--xmlui-paddingHorizontal-TableOfContentsItem-level-2, var(--xmlui-padding-TableOfContentsItem-level-2))", "paddingVertical-TableOfContentsItem-level-2": "var(--xmlui-paddingVertical-TableOfContentsItem-level-2, var(--xmlui-padding-TableOfContentsItem-level-2))", "paddingLeft-TableOfContentsItem-level-2": "var(--xmlui-paddingLeft-TableOfContentsItem-level-2, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-2, var(--xmlui-padding-TableOfContentsItem-level-2)))", "paddingRight-TableOfContentsItem-level-2": "var(--xmlui-paddingRight-TableOfContentsItem-level-2, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-2, var(--xmlui-padding-TableOfContentsItem-level-2)))", "paddingTop-TableOfContentsItem-level-2": "var(--xmlui-paddingTop-TableOfContentsItem-level-2, var(--xmlui-paddingVertical-TableOfContentsItem-level-2, var(--xmlui-padding-TableOfContentsItem-level-2)))", "paddingBottom-TableOfContentsItem-level-2": "var(--xmlui-paddingBottom-TableOfContentsItem-level-2, var(--xmlui-paddingVertical-TableOfContentsItem-level-2, var(--xmlui-padding-TableOfContentsItem-level-2)))", "textColor-TableOfContentsItem-level-2": "var(--xmlui-textColor-TableOfContentsItem-level-2)", "fontFamily-TableOfContentsItem-level-2": "var(--xmlui-fontFamily-TableOfContentsItem-level-2)", "fontSize-TableOfContentsItem-level-2": "var(--xmlui-fontSize-TableOfContentsItem-level-2)", "fontStyle-TableOfContentsItem-level-2": "var(--xmlui-fontStyle-TableOfContentsItem-level-2)", "fontVariant-TableOfContentsItem-level-2": "var(--xmlui-fontVariant-TableOfContentsItem-level-2)", "fontWeight-TableOfContentsItem-level-2": "var(--xmlui-fontWeight-TableOfContentsItem-level-2)", "fontStretch-TableOfContentsItem-level-2": "var(--xmlui-fontStretch-TableOfContentsItem-level-2)", "textDecorationLine-TableOfContentsItem-level-2": "var(--xmlui-textDecorationLine-TableOfContentsItem-level-2)", "textDecorationColor-TableOfContentsItem-level-2": "var(--xmlui-textDecorationColor-TableOfContentsItem-level-2)", "textDecorationStyle-TableOfContentsItem-level-2": "var(--xmlui-textDecorationStyle-TableOfContentsItem-level-2)", "textDecorationThickness-TableOfContentsItem-level-2": "var(--xmlui-textDecorationThickness-TableOfContentsItem-level-2)", "textUnderlineOffset-TableOfContentsItem-level-2": "var(--xmlui-textUnderlineOffset-TableOfContentsItem-level-2)", "lineHeight-TableOfContentsItem-level-2": "var(--xmlui-lineHeight-TableOfContentsItem-level-2)", "backgroundColor-TableOfContentsItem-level-2": "var(--xmlui-backgroundColor-TableOfContentsItem-level-2)", "textTransform-TableOfContentsItem-level-2": "var(--xmlui-textTransform-TableOfContentsItem-level-2)", "letterSpacing-TableOfContentsItem-level-2": "var(--xmlui-letterSpacing-TableOfContentsItem-level-2)", "wordSpacing-TableOfContentsItem-level-2": "var(--xmlui-wordSpacing-TableOfContentsItem-level-2)", "textShadow-TableOfContentsItem-level-2": "var(--xmlui-textShadow-TableOfContentsItem-level-2)", "textIndent-TableOfContentsItem-level-2": "var(--xmlui-textIndent-TableOfContentsItem-level-2)", "textAlign-TableOfContentsItem-level-2": "var(--xmlui-textAlign-TableOfContentsItem-level-2)", "textAlignLast-TableOfContentsItem-level-2": "var(--xmlui-textAlignLast-TableOfContentsItem-level-2)", "wordBreak-TableOfContentsItem-level-2": "var(--xmlui-wordBreak-TableOfContentsItem-level-2)", "wordWrap-TableOfContentsItem-level-2": "var(--xmlui-wordWrap-TableOfContentsItem-level-2)", "direction-TableOfContentsItem-level-2": "var(--xmlui-direction-TableOfContentsItem-level-2)", "writingMode-TableOfContentsItem-level-2": "var(--xmlui-writingMode-TableOfContentsItem-level-2)", "lineBreak-TableOfContentsItem-level-2": "var(--xmlui-lineBreak-TableOfContentsItem-level-2)", "padding-TableOfContentsItem-level-3": "var(--xmlui-padding-TableOfContentsItem-level-3)", "paddingHorizontal-TableOfContentsItem-level-3": "var(--xmlui-paddingHorizontal-TableOfContentsItem-level-3, var(--xmlui-padding-TableOfContentsItem-level-3))", "paddingVertical-TableOfContentsItem-level-3": "var(--xmlui-paddingVertical-TableOfContentsItem-level-3, var(--xmlui-padding-TableOfContentsItem-level-3))", "paddingLeft-TableOfContentsItem-level-3": "var(--xmlui-paddingLeft-TableOfContentsItem-level-3, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-3, var(--xmlui-padding-TableOfContentsItem-level-3)))", "paddingRight-TableOfContentsItem-level-3": "var(--xmlui-paddingRight-TableOfContentsItem-level-3, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-3, var(--xmlui-padding-TableOfContentsItem-level-3)))", "paddingTop-TableOfContentsItem-level-3": "var(--xmlui-paddingTop-TableOfContentsItem-level-3, var(--xmlui-paddingVertical-TableOfContentsItem-level-3, var(--xmlui-padding-TableOfContentsItem-level-3)))", "paddingBottom-TableOfContentsItem-level-3": "var(--xmlui-paddingBottom-TableOfContentsItem-level-3, var(--xmlui-paddingVertical-TableOfContentsItem-level-3, var(--xmlui-padding-TableOfContentsItem-level-3)))", "textColor-TableOfContentsItem-level-3": "var(--xmlui-textColor-TableOfContentsItem-level-3)", "fontFamily-TableOfContentsItem-level-3": "var(--xmlui-fontFamily-TableOfContentsItem-level-3)", "fontSize-TableOfContentsItem-level-3": "var(--xmlui-fontSize-TableOfContentsItem-level-3)", "fontStyle-TableOfContentsItem-level-3": "var(--xmlui-fontStyle-TableOfContentsItem-level-3)", "fontVariant-TableOfContentsItem-level-3": "var(--xmlui-fontVariant-TableOfContentsItem-level-3)", "fontWeight-TableOfContentsItem-level-3": "var(--xmlui-fontWeight-TableOfContentsItem-level-3)", "fontStretch-TableOfContentsItem-level-3": "var(--xmlui-fontStretch-TableOfContentsItem-level-3)", "textDecorationLine-TableOfContentsItem-level-3": "var(--xmlui-textDecorationLine-TableOfContentsItem-level-3)", "textDecorationColor-TableOfContentsItem-level-3": "var(--xmlui-textDecorationColor-TableOfContentsItem-level-3)", "textDecorationStyle-TableOfContentsItem-level-3": "var(--xmlui-textDecorationStyle-TableOfContentsItem-level-3)", "textDecorationThickness-TableOfContentsItem-level-3": "var(--xmlui-textDecorationThickness-TableOfContentsItem-level-3)", "textUnderlineOffset-TableOfContentsItem-level-3": "var(--xmlui-textUnderlineOffset-TableOfContentsItem-level-3)", "lineHeight-TableOfContentsItem-level-3": "var(--xmlui-lineHeight-TableOfContentsItem-level-3)", "backgroundColor-TableOfContentsItem-level-3": "var(--xmlui-backgroundColor-TableOfContentsItem-level-3)", "textTransform-TableOfContentsItem-level-3": "var(--xmlui-textTransform-TableOfContentsItem-level-3)", "letterSpacing-TableOfContentsItem-level-3": "var(--xmlui-letterSpacing-TableOfContentsItem-level-3)", "wordSpacing-TableOfContentsItem-level-3": "var(--xmlui-wordSpacing-TableOfContentsItem-level-3)", "textShadow-TableOfContentsItem-level-3": "var(--xmlui-textShadow-TableOfContentsItem-level-3)", "textIndent-TableOfContentsItem-level-3": "var(--xmlui-textIndent-TableOfContentsItem-level-3)", "textAlign-TableOfContentsItem-level-3": "var(--xmlui-textAlign-TableOfContentsItem-level-3)", "textAlignLast-TableOfContentsItem-level-3": "var(--xmlui-textAlignLast-TableOfContentsItem-level-3)", "wordBreak-TableOfContentsItem-level-3": "var(--xmlui-wordBreak-TableOfContentsItem-level-3)", "wordWrap-TableOfContentsItem-level-3": "var(--xmlui-wordWrap-TableOfContentsItem-level-3)", "direction-TableOfContentsItem-level-3": "var(--xmlui-direction-TableOfContentsItem-level-3)", "writingMode-TableOfContentsItem-level-3": "var(--xmlui-writingMode-TableOfContentsItem-level-3)", "lineBreak-TableOfContentsItem-level-3": "var(--xmlui-lineBreak-TableOfContentsItem-level-3)", "padding-TableOfContentsItem-level-4": "var(--xmlui-padding-TableOfContentsItem-level-4)", "paddingHorizontal-TableOfContentsItem-level-4": "var(--xmlui-paddingHorizontal-TableOfContentsItem-level-4, var(--xmlui-padding-TableOfContentsItem-level-4))", "paddingVertical-TableOfContentsItem-level-4": "var(--xmlui-paddingVertical-TableOfContentsItem-level-4, var(--xmlui-padding-TableOfContentsItem-level-4))", "paddingLeft-TableOfContentsItem-level-4": "var(--xmlui-paddingLeft-TableOfContentsItem-level-4, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-4, var(--xmlui-padding-TableOfContentsItem-level-4)))", "paddingRight-TableOfContentsItem-level-4": "var(--xmlui-paddingRight-TableOfContentsItem-level-4, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-4, var(--xmlui-padding-TableOfContentsItem-level-4)))", "paddingTop-TableOfContentsItem-level-4": "var(--xmlui-paddingTop-TableOfContentsItem-level-4, var(--xmlui-paddingVertical-TableOfContentsItem-level-4, var(--xmlui-padding-TableOfContentsItem-level-4)))", "paddingBottom-TableOfContentsItem-level-4": "var(--xmlui-paddingBottom-TableOfContentsItem-level-4, var(--xmlui-paddingVertical-TableOfContentsItem-level-4, var(--xmlui-padding-TableOfContentsItem-level-4)))", "textColor-TableOfContentsItem-level-4": "var(--xmlui-textColor-TableOfContentsItem-level-4)", "fontFamily-TableOfContentsItem-level-4": "var(--xmlui-fontFamily-TableOfContentsItem-level-4)", "fontSize-TableOfContentsItem-level-4": "var(--xmlui-fontSize-TableOfContentsItem-level-4)", "fontStyle-TableOfContentsItem-level-4": "var(--xmlui-fontStyle-TableOfContentsItem-level-4)", "fontVariant-TableOfContentsItem-level-4": "var(--xmlui-fontVariant-TableOfContentsItem-level-4)", "fontWeight-TableOfContentsItem-level-4": "var(--xmlui-fontWeight-TableOfContentsItem-level-4)", "fontStretch-TableOfContentsItem-level-4": "var(--xmlui-fontStretch-TableOfContentsItem-level-4)", "textDecorationLine-TableOfContentsItem-level-4": "var(--xmlui-textDecorationLine-TableOfContentsItem-level-4)", "textDecorationColor-TableOfContentsItem-level-4": "var(--xmlui-textDecorationColor-TableOfContentsItem-level-4)", "textDecorationStyle-TableOfContentsItem-level-4": "var(--xmlui-textDecorationStyle-TableOfContentsItem-level-4)", "textDecorationThickness-TableOfContentsItem-level-4": "var(--xmlui-textDecorationThickness-TableOfContentsItem-level-4)", "textUnderlineOffset-TableOfContentsItem-level-4": "var(--xmlui-textUnderlineOffset-TableOfContentsItem-level-4)", "lineHeight-TableOfContentsItem-level-4": "var(--xmlui-lineHeight-TableOfContentsItem-level-4)", "backgroundColor-TableOfContentsItem-level-4": "var(--xmlui-backgroundColor-TableOfContentsItem-level-4)", "textTransform-TableOfContentsItem-level-4": "var(--xmlui-textTransform-TableOfContentsItem-level-4)", "letterSpacing-TableOfContentsItem-level-4": "var(--xmlui-letterSpacing-TableOfContentsItem-level-4)", "wordSpacing-TableOfContentsItem-level-4": "var(--xmlui-wordSpacing-TableOfContentsItem-level-4)", "textShadow-TableOfContentsItem-level-4": "var(--xmlui-textShadow-TableOfContentsItem-level-4)", "textIndent-TableOfContentsItem-level-4": "var(--xmlui-textIndent-TableOfContentsItem-level-4)", "textAlign-TableOfContentsItem-level-4": "var(--xmlui-textAlign-TableOfContentsItem-level-4)", "textAlignLast-TableOfContentsItem-level-4": "var(--xmlui-textAlignLast-TableOfContentsItem-level-4)", "wordBreak-TableOfContentsItem-level-4": "var(--xmlui-wordBreak-TableOfContentsItem-level-4)", "wordWrap-TableOfContentsItem-level-4": "var(--xmlui-wordWrap-TableOfContentsItem-level-4)", "direction-TableOfContentsItem-level-4": "var(--xmlui-direction-TableOfContentsItem-level-4)", "writingMode-TableOfContentsItem-level-4": "var(--xmlui-writingMode-TableOfContentsItem-level-4)", "lineBreak-TableOfContentsItem-level-4": "var(--xmlui-lineBreak-TableOfContentsItem-level-4)", "padding-TableOfContentsItem-level-5": "var(--xmlui-padding-TableOfContentsItem-level-5)", "paddingHorizontal-TableOfContentsItem-level-5": "var(--xmlui-paddingHorizontal-TableOfContentsItem-level-5, var(--xmlui-padding-TableOfContentsItem-level-5))", "paddingVertical-TableOfContentsItem-level-5": "var(--xmlui-paddingVertical-TableOfContentsItem-level-5, var(--xmlui-padding-TableOfContentsItem-level-5))", "paddingLeft-TableOfContentsItem-level-5": "var(--xmlui-paddingLeft-TableOfContentsItem-level-5, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-5, var(--xmlui-padding-TableOfContentsItem-level-5)))", "paddingRight-TableOfContentsItem-level-5": "var(--xmlui-paddingRight-TableOfContentsItem-level-5, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-5, var(--xmlui-padding-TableOfContentsItem-level-5)))", "paddingTop-TableOfContentsItem-level-5": "var(--xmlui-paddingTop-TableOfContentsItem-level-5, var(--xmlui-paddingVertical-TableOfContentsItem-level-5, var(--xmlui-padding-TableOfContentsItem-level-5)))", "paddingBottom-TableOfContentsItem-level-5": "var(--xmlui-paddingBottom-TableOfContentsItem-level-5, var(--xmlui-paddingVertical-TableOfContentsItem-level-5, var(--xmlui-padding-TableOfContentsItem-level-5)))", "textColor-TableOfContentsItem-level-5": "var(--xmlui-textColor-TableOfContentsItem-level-5)", "fontFamily-TableOfContentsItem-level-5": "var(--xmlui-fontFamily-TableOfContentsItem-level-5)", "fontSize-TableOfContentsItem-level-5": "var(--xmlui-fontSize-TableOfContentsItem-level-5)", "fontStyle-TableOfContentsItem-level-5": "var(--xmlui-fontStyle-TableOfContentsItem-level-5)", "fontVariant-TableOfContentsItem-level-5": "var(--xmlui-fontVariant-TableOfContentsItem-level-5)", "fontWeight-TableOfContentsItem-level-5": "var(--xmlui-fontWeight-TableOfContentsItem-level-5)", "fontStretch-TableOfContentsItem-level-5": "var(--xmlui-fontStretch-TableOfContentsItem-level-5)", "textDecorationLine-TableOfContentsItem-level-5": "var(--xmlui-textDecorationLine-TableOfContentsItem-level-5)", "textDecorationColor-TableOfContentsItem-level-5": "var(--xmlui-textDecorationColor-TableOfContentsItem-level-5)", "textDecorationStyle-TableOfContentsItem-level-5": "var(--xmlui-textDecorationStyle-TableOfContentsItem-level-5)", "textDecorationThickness-TableOfContentsItem-level-5": "var(--xmlui-textDecorationThickness-TableOfContentsItem-level-5)", "textUnderlineOffset-TableOfContentsItem-level-5": "var(--xmlui-textUnderlineOffset-TableOfContentsItem-level-5)", "lineHeight-TableOfContentsItem-level-5": "var(--xmlui-lineHeight-TableOfContentsItem-level-5)", "backgroundColor-TableOfContentsItem-level-5": "var(--xmlui-backgroundColor-TableOfContentsItem-level-5)", "textTransform-TableOfContentsItem-level-5": "var(--xmlui-textTransform-TableOfContentsItem-level-5)", "letterSpacing-TableOfContentsItem-level-5": "var(--xmlui-letterSpacing-TableOfContentsItem-level-5)", "wordSpacing-TableOfContentsItem-level-5": "var(--xmlui-wordSpacing-TableOfContentsItem-level-5)", "textShadow-TableOfContentsItem-level-5": "var(--xmlui-textShadow-TableOfContentsItem-level-5)", "textIndent-TableOfContentsItem-level-5": "var(--xmlui-textIndent-TableOfContentsItem-level-5)", "textAlign-TableOfContentsItem-level-5": "var(--xmlui-textAlign-TableOfContentsItem-level-5)", "textAlignLast-TableOfContentsItem-level-5": "var(--xmlui-textAlignLast-TableOfContentsItem-level-5)", "wordBreak-TableOfContentsItem-level-5": "var(--xmlui-wordBreak-TableOfContentsItem-level-5)", "wordWrap-TableOfContentsItem-level-5": "var(--xmlui-wordWrap-TableOfContentsItem-level-5)", "direction-TableOfContentsItem-level-5": "var(--xmlui-direction-TableOfContentsItem-level-5)", "writingMode-TableOfContentsItem-level-5": "var(--xmlui-writingMode-TableOfContentsItem-level-5)", "lineBreak-TableOfContentsItem-level-5": "var(--xmlui-lineBreak-TableOfContentsItem-level-5)", "padding-TableOfContentsItem-level-6": "var(--xmlui-padding-TableOfContentsItem-level-6)", "paddingHorizontal-TableOfContentsItem-level-6": "var(--xmlui-paddingHorizontal-TableOfContentsItem-level-6, var(--xmlui-padding-TableOfContentsItem-level-6))", "paddingVertical-TableOfContentsItem-level-6": "var(--xmlui-paddingVertical-TableOfContentsItem-level-6, var(--xmlui-padding-TableOfContentsItem-level-6))", "paddingLeft-TableOfContentsItem-level-6": "var(--xmlui-paddingLeft-TableOfContentsItem-level-6, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-6, var(--xmlui-padding-TableOfContentsItem-level-6)))", "paddingRight-TableOfContentsItem-level-6": "var(--xmlui-paddingRight-TableOfContentsItem-level-6, var(--xmlui-paddingHorizontal-TableOfContentsItem-level-6, var(--xmlui-padding-TableOfContentsItem-level-6)))", "paddingTop-TableOfContentsItem-level-6": "var(--xmlui-paddingTop-TableOfContentsItem-level-6, var(--xmlui-paddingVertical-TableOfContentsItem-level-6, var(--xmlui-padding-TableOfContentsItem-level-6)))", "paddingBottom-TableOfContentsItem-level-6": "var(--xmlui-paddingBottom-TableOfContentsItem-level-6, var(--xmlui-paddingVertical-TableOfContentsItem-level-6, var(--xmlui-padding-TableOfContentsItem-level-6)))", "textColor-TableOfContentsItem-level-6": "var(--xmlui-textColor-TableOfContentsItem-level-6)", "fontFamily-TableOfContentsItem-level-6": "var(--xmlui-fontFamily-TableOfContentsItem-level-6)", "fontSize-TableOfContentsItem-level-6": "var(--xmlui-fontSize-TableOfContentsItem-level-6)", "fontStyle-TableOfContentsItem-level-6": "var(--xmlui-fontStyle-TableOfContentsItem-level-6)", "fontVariant-TableOfContentsItem-level-6": "var(--xmlui-fontVariant-TableOfContentsItem-level-6)", "fontWeight-TableOfContentsItem-level-6": "var(--xmlui-fontWeight-TableOfContentsItem-level-6)", "fontStretch-TableOfContentsItem-level-6": "var(--xmlui-fontStretch-TableOfContentsItem-level-6)", "textDecorationLine-TableOfContentsItem-level-6": "var(--xmlui-textDecorationLine-TableOfContentsItem-level-6)", "textDecorationColor-TableOfContentsItem-level-6": "var(--xmlui-textDecorationColor-TableOfContentsItem-level-6)", "textDecorationStyle-TableOfContentsItem-level-6": "var(--xmlui-textDecorationStyle-TableOfContentsItem-level-6)", "textDecorationThickness-TableOfContentsItem-level-6": "var(--xmlui-textDecorationThickness-TableOfContentsItem-level-6)", "textUnderlineOffset-TableOfContentsItem-level-6": "var(--xmlui-textUnderlineOffset-TableOfContentsItem-level-6)", "lineHeight-TableOfContentsItem-level-6": "var(--xmlui-lineHeight-TableOfContentsItem-level-6)", "backgroundColor-TableOfContentsItem-level-6": "var(--xmlui-backgroundColor-TableOfContentsItem-level-6)", "textTransform-TableOfContentsItem-level-6": "var(--xmlui-textTransform-TableOfContentsItem-level-6)", "letterSpacing-TableOfContentsItem-level-6": "var(--xmlui-letterSpacing-TableOfContentsItem-level-6)", "wordSpacing-TableOfContentsItem-level-6": "var(--xmlui-wordSpacing-TableOfContentsItem-level-6)", "textShadow-TableOfContentsItem-level-6": "var(--xmlui-textShadow-TableOfContentsItem-level-6)", "textIndent-TableOfContentsItem-level-6": "var(--xmlui-textIndent-TableOfContentsItem-level-6)", "textAlign-TableOfContentsItem-level-6": "var(--xmlui-textAlign-TableOfContentsItem-level-6)", "textAlignLast-TableOfContentsItem-level-6": "var(--xmlui-textAlignLast-TableOfContentsItem-level-6)", "wordBreak-TableOfContentsItem-level-6": "var(--xmlui-wordBreak-TableOfContentsItem-level-6)", "wordWrap-TableOfContentsItem-level-6": "var(--xmlui-wordWrap-TableOfContentsItem-level-6)", "direction-TableOfContentsItem-level-6": "var(--xmlui-direction-TableOfContentsItem-level-6)", "writingMode-TableOfContentsItem-level-6": "var(--xmlui-writingMode-TableOfContentsItem-level-6)", "lineBreak-TableOfContentsItem-level-6": "var(--xmlui-lineBreak-TableOfContentsItem-level-6)", "marginTop-TableOfContents": "var(--xmlui-marginTop-TableOfContents)", "marginBottom-TableOfContents": "var(--xmlui-marginBottom-TableOfContents)", "backgroundColor-TableOfContentsItem--hover": "var(--xmlui-backgroundColor-TableOfContentsItem--hover)", "fontWeight-TableOfContentsItem--hover": "var(--xmlui-fontWeight-TableOfContentsItem--hover)", "textColor-TableOfContentsItem--hover": "var(--xmlui-textColor-TableOfContentsItem--hover)", "fontWeight-TableOfContentsItem-level-1--hover": "var(--xmlui-fontWeight-TableOfContentsItem-level-1--hover)", "fontWeight-TableOfContentsItem-level-2--hover": "var(--xmlui-fontWeight-TableOfContentsItem-level-2--hover)", "fontWeight-TableOfContentsItem-level-3--hover": "var(--xmlui-fontWeight-TableOfContentsItem-level-3--hover)", "fontWeight-TableOfContentsItem-level-4--hover": "var(--xmlui-fontWeight-TableOfContentsItem-level-4--hover)", "fontWeight-TableOfContentsItem-level-5--hover": "var(--xmlui-fontWeight-TableOfContentsItem-level-5--hover)", "fontWeight-TableOfContentsItem-level-6--hover": "var(--xmlui-fontWeight-TableOfContentsItem-level-6--hover)", "backgroundColor-TableOfContentsItem--active": "var(--xmlui-backgroundColor-TableOfContentsItem--active)", "color-TableOfContentsItem--active": "var(--xmlui-color-TableOfContentsItem--active)", "fontWeight-TableOfContentsItem--active": "var(--xmlui-fontWeight-TableOfContentsItem--active)", "fontWeight-TableOfContentsItem-level-1--active": "var(--xmlui-fontWeight-TableOfContentsItem-level-1--active)", "fontWeight-TableOfContentsItem-level-2--active": "var(--xmlui-fontWeight-TableOfContentsItem-level-2--active)", "fontWeight-TableOfContentsItem-level-3--active": "var(--xmlui-fontWeight-TableOfContentsItem-level-3--active)", "fontWeight-TableOfContentsItem-level-4--active": "var(--xmlui-fontWeight-TableOfContentsItem-level-4--active)", "fontWeight-TableOfContentsItem-level-5--active": "var(--xmlui-fontWeight-TableOfContentsItem-level-5--active)", "fontWeight-TableOfContentsItem-level-6--active": "var(--xmlui-fontWeight-TableOfContentsItem-level-6--active)"}'`,nav:"_nav_ptcge_13",list:"_list_ptcge_57",listItem:"_listItem_ptcge_62",link:"_link_ptcge_85",head_1:"_head_1_ptcge_120",head_2:"_head_2_ptcge_152",head_3:"_head_3_ptcge_184",head_4:"_head_4_ptcge_216",head_5:"_head_5_ptcge_248",head_6:"_head_6_ptcge_280",active:"_active_ptcge_357"},mhe=e=>typeof e=="object"&&e!=null&&e.nodeType===1,phe=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Z6=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return phe(r.overflowY,t)||phe(r.overflowX,t)||(n=>{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)})(e)}return!1},J6=(e,t,r,n,o,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=r||a>=t&&l>=r?i-e-n:a>t&&l<r||i<e&&l>r?a-t+o:0,r3t=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},hhe=(e,t)=>{var r,n,o,i;if(typeof document>"u")return[];const{scrollMode:a,block:l,inline:s,boundary:u,skipOverflowHiddenElements:c}=t,d=typeof u=="function"?u:G=>G!==u;if(!mhe(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;mhe(h)&&d(h);){if(h=r3t(h),h===f){p.push(h);break}h!=null&&h===document.body&&Z6(h)&&!Z6(document.documentElement)||h!=null&&Z6(h,c)&&p.push(h)}const v=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,b=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:y,scrollY:w}=window,{height:k,width:E,top:_,right:S,bottom:A,left:O}=e.getBoundingClientRect(),{top:I,right:L,bottom:P,left:H}=(G=>{const z=window.getComputedStyle(G);return{top:parseFloat(z.scrollMarginTop)||0,right:parseFloat(z.scrollMarginRight)||0,bottom:parseFloat(z.scrollMarginBottom)||0,left:parseFloat(z.scrollMarginLeft)||0}})(e);let j=l==="start"||l==="nearest"?_-I:l==="end"?A+P:_+k/2-I+P,W=s==="center"?O+E/2-H+L:s==="end"?S+L:O-H;const B=[];for(let G=0;G<p.length;G++){const z=p[G],{height:F,width:V,top:N,right:Y,bottom:q,left:M}=z.getBoundingClientRect();if(a==="if-needed"&&_>=0&&O>=0&&A<=b&&S<=v&&(z===f&&!Z6(z)||_>=N&&A<=q&&O>=M&&S<=Y))return B;const K=getComputedStyle(z),ee=parseInt(K.borderLeftWidth,10),ae=parseInt(K.borderTopWidth,10),oe=parseInt(K.borderRightWidth,10),ue=parseInt(K.borderBottomWidth,10);let le=0,pe=0;const fe="offsetWidth"in z?z.offsetWidth-z.clientWidth-ee-oe:0,J="offsetHeight"in z?z.offsetHeight-z.clientHeight-ae-ue:0,X="offsetWidth"in z?z.offsetWidth===0?0:V/z.offsetWidth:0,te="offsetHeight"in z?z.offsetHeight===0?0:F/z.offsetHeight:0;if(f===z)le=l==="start"?j:l==="end"?j-b:l==="nearest"?J6(w,w+b,b,ae,ue,w+j,w+j+k,k):j-b/2,pe=s==="start"?W:s==="center"?W-v/2:s==="end"?W-v:J6(y,y+v,v,ee,oe,y+W,y+W+E,E),le=Math.max(0,le+w),pe=Math.max(0,pe+y);else{le=l==="start"?j-N-ae:l==="end"?j-q+ue+J:l==="nearest"?J6(N,q,F,ae,ue+J,j,j+k,k):j-(N+F/2)+J/2,pe=s==="start"?W-M-ee:s==="center"?W-(M+V/2)+fe/2:s==="end"?W-Y+oe+fe:J6(M,Y,V,ee,oe+fe,W,W+E,E);const{scrollLeft:ie,scrollTop:de}=z;le=te===0?0:Math.max(0,Math.min(de+le/te,z.scrollHeight-F/te+J)),pe=X===0?0:Math.max(0,Math.min(ie+pe/X,z.scrollWidth-V/X+fe)),j+=de-le,W+=ie-pe}B.push({el:z,top:le,left:pe})}return B},n3t=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function o3t(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const r=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(hhe(e,t));const n=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of hhe(e,n3t(t))){const l=i-r.top+r.bottom,s=a-r.left+r.right;o.scroll({top:l,left:s,behavior:n})}}const N2={smoothScrolling:!1,maxHeadingLevel:6,omitH1:!1},i3t=m.forwardRef(function({style:t,smoothScrolling:r=N2.smoothScrolling,maxHeadingLevel:n=N2.maxHeadingLevel,omitH1:o=N2.omitH1},i){const a=m.useRef(null),{headings:l,scrollToAnchor:s,subscribeToActiveAnchorChange:u,activeAnchorId:c}=gGe(),[d,f]=m.useState(c);Sn(()=>u(h=>{const v=l.find(b=>b.id===h);(v==null?void 0:v.level)<=n&&f(h)}),[l,n,u]);const p=i?Un(a,i):a;return m.useEffect(()=>{if(d&&(a!=null&&a.current)){const h=a.current.querySelector(`#${d}`);h&&o3t(h,{block:"center",inline:"center",behavior:"smooth",scrollMode:"always",boundary:a.current})}},[d,l]),C.jsx("div",{className:Ps.nav,ref:p,style:t,children:C.jsx("ul",{className:Ps.list,children:l.map(h=>h.level<=n&&(!o||h.level!==1)?C.jsx("li",{className:ze(Ps.listItem,{[Ps.active]:h.id===d}),children:C.jsx(WP,{className:ze(Ps.link,{[Ps.head_1]:h.level===1,[Ps.head_2]:h.level===2,[Ps.head_3]:h.level===3,[Ps.head_4]:h.level===4,[Ps.head_5]:h.level===5,[Ps.head_6]:h.level===6}),to:`#${h.id}`,onClick:v=>{!v.ctrlKey&&!v.metaKey&&!v.metaKey&&v.preventDefault(),s(h.id,r)},id:h.id,children:h.text})},h.id):null)})})}),ghe="TableOfContents",vi="TableOfContentsItem",vhe={status:"stable",description:"`TableOfContents` component collects [Heading](/components/Heading) and [Bookmark](/components/Bookmark) within the current page and displays them in a navigable tree.",props:{smoothScrolling:{description:"This property indicates that smooth scrolling is used while scrolling the selected table of contents items into view.",valueType:"boolean",defaultValue:N2.smoothScrolling},maxHeadingLevel:{description:"Defines the maximum heading level (1 to 6) to include in the table of contents. For example, if it is 2, then `H1` and `H2` are displayed, but lower levels (`H3` to `H6`) are not.",valueType:"number",defaultValue:N2.maxHeadingLevel},omitH1:{description:"If true, the `H1` heading is not included in the table of contents. This is useful when the `H1` is used for the page title and you want to avoid duplication.",valueType:"boolean",defaultValue:!1}},themeVars:Ze(Ps.themeVars),defaultThemeVars:{[`padding-${ghe}`]:"$space-2",[`textColor-${vi}`]:"$color-secondary-500",[`textColor-${vi}--hover`]:"$textColor-primary",[`fontSize-${vi}`]:"$fontSize-small",[`wordWrap-${vi}`]:"break-word",[`paddingVertical-${vi}`]:"$space-1",[`paddingLeft-${vi}`]:"$space-1",[`paddingLeft-${vi}-level-2`]:"$space-3",[`paddingLeft-${vi}-level-3`]:"$space-5",[`paddingLeft-${vi}-level-4`]:"$space-6",[`paddingLeft-${vi}-level-5`]:"$space-6",[`paddingLeft-${vi}-level-6`]:"$space-6",[`fontWeight-${vi}`]:"$fontWeight-bold",[`fontWeight-${vi}-level-3`]:"normal",[`fontWeight-${vi}-level-4`]:"normal",[`fontWeight-${vi}-level-5`]:"normal",[`fontWeight-${vi}-level-6`]:"normal",[`fontStyle-${vi}-level-6`]:"italic",[`color-${vi}--active`]:"$color-primary-500"}};function a3t(e){const{indexing:t}=ZE();return t?null:C.jsx(i3t,{...e})}const l3t=we(ghe,vhe,({layoutCss:e,node:t,extractValue:r})=>{var n,o,i;return C.jsx(a3t,{style:e,smoothScrolling:r.asOptionalBoolean((n=t.props)==null?void 0:n.smoothScrolling),maxHeadingLevel:r.asOptionalNumber((o=t.props)==null?void 0:o.maxHeadingLevel),omitH1:r.asOptionalBoolean((i=t.props)==null?void 0:i.omitH1)})}),qd={themeVars:`'{"border-Accordion": "var(--xmlui-border-Accordion)", "borderHorizontal-Accordion": "var(--xmlui-borderHorizontal-Accordion, var(--xmlui-border-Accordion))", "borderVertical-Accordion": "var(--xmlui-borderVertical-Accordion, var(--xmlui-border-Accordion))", "borderLeft-Accordion": "var(--xmlui-borderLeft-Accordion, var(--xmlui-borderHorizontal-Accordion, var(--xmlui-border-Accordion)))", "borderRight-Accordion": "var(--xmlui-borderRight-Accordion, var(--xmlui-borderHorizontal-Accordion, var(--xmlui-border-Accordion)))", "borderTop-Accordion": "var(--xmlui-borderTop-Accordion, var(--xmlui-borderVertical-Accordion, var(--xmlui-border-Accordion)))", "borderBottom-Accordion": "var(--xmlui-borderBottom-Accordion, var(--xmlui-borderVertical-Accordion, var(--xmlui-border-Accordion)))", "borderWidth-Accordion": "var(--xmlui-borderWidth-Accordion)", "borderHorizontalWidth-Accordion": "var(--xmlui-borderHorizontalWidth-Accordion, var(--xmlui-borderWidth-Accordion))", "borderLeftWidth-Accordion": "var(--xmlui-borderLeftWidth-Accordion, var(--xmlui-borderHorizontalWidth-Accordion, var(--xmlui-borderWidth-Accordion)))", "borderRightWidth-Accordion": "var(--xmlui-borderRightWidth-Accordion, var(--xmlui-borderHorizontalWidth-Accordion, var(--xmlui-borderWidth-Accordion)))", "borderVerticalWidth-Accordion": "var(--xmlui-borderVerticalWidth-Accordion, var(--xmlui-borderWidth-Accordion))", "borderTopWidth-Accordion": "var(--xmlui-borderTopWidth-Accordion, var(--xmlui-borderVerticalWidth-Accordion, var(--xmlui-borderWidth-Accordion)))", "borderBottomWidth-Accordion": "var(--xmlui-borderBottomWidth-Accordion, var(--xmlui-borderVerticalWidth-Accordion, var(--xmlui-borderWidth-Accordion)))", "borderStyle-Accordion": "var(--xmlui-borderStyle-Accordion)", "borderHorizontalStyle-Accordion": "var(--xmlui-borderHorizontalStyle-Accordion, var(--xmlui-borderStyle-Accordion))", "borderLeftStyle-Accordion": "var(--xmlui-borderLeftStyle-Accordion, var(--xmlui-borderHorizontalStyle-Accordion, var(--xmlui-borderStyle-Accordion)))", "borderRightStyle-Accordion": "var(--xmlui-borderRightStyle-Accordion, var(--xmlui-borderHorizontalStyle-Accordion, var(--xmlui-borderStyle-Accordion)))", "borderVerticalStyle-Accordion": "var(--xmlui-borderVerticalStyle-Accordion, var(--xmlui-borderStyle-Accordion))", "borderTopStyle-Accordion": "var(--xmlui-borderTopStyle-Accordion, var(--xmlui-borderVerticalStyle-Accordion, var(--xmlui-borderStyle-Accordion)))", "borderBottomStyle-Accordion": "var(--xmlui-borderBottomStyle-Accordion, var(--xmlui-borderVerticalStyle-Accordion, var(--xmlui-borderStyle-Accordion)))", "borderColor-Accordion": "var(--xmlui-borderColor-Accordion)", "borderHorizontalColor-Accordion": "var(--xmlui-borderHorizontalColor-Accordion, var(--xmlui-borderColor-Accordion))", "borderLeftColor-Accordion": "var(--xmlui-borderLeftColor-Accordion, var(--xmlui-borderHorizontalColor-Accordion, var(--xmlui-borderColor-Accordion)))", "borderRightColor-Accordion": "var(--xmlui-borderRightColor-Accordion, var(--xmlui-borderHorizontalColor-Accordion, var(--xmlui-borderColor-Accordion)))", "borderVerticalColor-Accordion": "var(--xmlui-borderVerticalColor-Accordion, var(--xmlui-borderColor-Accordion))", "borderTopColor-Accordion": "var(--xmlui-borderTopColor-Accordion, var(--xmlui-borderVerticalColor-Accordion, var(--xmlui-borderColor-Accordion)))", "borderBottomColor-Accordion": "var(--xmlui-borderBottomColor-Accordion, var(--xmlui-borderVerticalColor-Accordion, var(--xmlui-borderColor-Accordion)))", "borderStartStartRadius-Accordion": "var(--xmlui-borderStartStartRadius-Accordion, var(--xmlui-borderRadius-Accordion))", "borderStartEndRadius-Accordion": "var(--xmlui-borderStartEndRadius-Accordion, var(--xmlui-borderRadius-Accordion))", "borderEndStartRadius-Accordion": "var(--xmlui-borderEndStartRadius-Accordion, var(--xmlui-borderRadius-Accordion))", "borderEndEndRadius-Accordion": "var(--xmlui-borderEndEndRadius-Accordion, var(--xmlui-borderRadius-Accordion))", "padding-Accordion": "var(--xmlui-padding-Accordion)", "paddingHorizontal-Accordion": "var(--xmlui-paddingHorizontal-Accordion, var(--xmlui-padding-Accordion))", "paddingVertical-Accordion": "var(--xmlui-paddingVertical-Accordion, var(--xmlui-padding-Accordion))", "paddingLeft-Accordion": "var(--xmlui-paddingLeft-Accordion, var(--xmlui-paddingHorizontal-Accordion, var(--xmlui-padding-Accordion)))", "paddingRight-Accordion": "var(--xmlui-paddingRight-Accordion, var(--xmlui-paddingHorizontal-Accordion, var(--xmlui-padding-Accordion)))", "paddingTop-Accordion": "var(--xmlui-paddingTop-Accordion, var(--xmlui-paddingVertical-Accordion, var(--xmlui-padding-Accordion)))", "paddingBottom-Accordion": "var(--xmlui-paddingBottom-Accordion, var(--xmlui-paddingVertical-Accordion, var(--xmlui-padding-Accordion)))", "borderRadius-Accordion": "var(--xmlui-borderRadius-Accordion)", "verticalAlignment-header-Accordion": "var(--xmlui-verticalAlignment-header-Accordion)", "fontSize-header-Accordion": "var(--xmlui-fontSize-header-Accordion)", "fontWeight-header-Accordion": "var(--xmlui-fontWeight-header-Accordion)", "fontStyle-header-Accordion": "var(--xmlui-fontStyle-header-Accordion)", "paddingVertical-header-Accordion": "var(--xmlui-paddingVertical-header-Accordion)", "paddingHorizontal-header-Accordion": "var(--xmlui-paddingHorizontal-header-Accordion)", "backgroundColor-header-Accordion": "var(--xmlui-backgroundColor-header-Accordion)", "color-header-Accordion": "var(--xmlui-color-header-Accordion)", "backgroundColor-header-Accordion-hover": "var(--xmlui-backgroundColor-header-Accordion-hover)", "color-content-Accordion": "var(--xmlui-color-content-Accordion)", "backgroundColor-content-Accordion": "var(--xmlui-backgroundColor-content-Accordion)", "width-icon-Accordion": "var(--xmlui-width-icon-Accordion)", "height-icon-Accordion": "var(--xmlui-height-icon-Accordion)", "color-icon-Accordion": "var(--xmlui-color-icon-Accordion)"}'`,root:"_root_n4tjx_13",item:"_item_n4tjx_44",header:"_header_n4tjx_63",trigger:"_trigger_n4tjx_68",triggerStart:"_triggerStart_n4tjx_86",contentWrapper:"_contentWrapper_n4tjx_90",content:"_content_n4tjx_90",chevron:"_chevron_n4tjx_106"};function s3t(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function u3t(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var ED="Collapsible",[c3t,bhe]=Cu(ED),[d3t,AD]=c3t(ED),xhe=m.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:i,onOpenChange:a,...l}=e,[s=!1,u]=gm({prop:n,defaultProp:o,onChange:a});return C.jsx(d3t,{scope:r,disabled:i,contentId:Fi(),open:s,onOpenToggle:m.useCallback(()=>u(c=>!c),[u]),children:C.jsx(Ot.div,{"data-state":ID(s),"data-disabled":i?"":void 0,...l,ref:t})})});xhe.displayName=ED;var yhe="CollapsibleTrigger",whe=m.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=AD(yhe,r);return C.jsx(Ot.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":ID(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:u3t(e.onClick,o.onOpenToggle)})});whe.displayName=yhe;var OD="CollapsibleContent",Che=m.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=AD(OD,e.__scopeCollapsible);return C.jsx($h,{present:r||o.open,children:({present:i})=>C.jsx(f3t,{...n,ref:t,present:i})})});Che.displayName=OD;var f3t=m.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...i}=e,a=AD(OD,r),[l,s]=m.useState(n),u=m.useRef(null),c=Qt(t,u),d=m.useRef(0),f=d.current,p=m.useRef(0),h=p.current,v=a.open||l,b=m.useRef(v),y=m.useRef(void 0);return m.useEffect(()=>{const w=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(w)},[]),Qr(()=>{const w=u.current;if(w){y.current=y.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const k=w.getBoundingClientRect();d.current=k.height,p.current=k.width,b.current||(w.style.transitionDuration=y.current.transitionDuration,w.style.animationName=y.current.animationName),s(n)}},[a.open,n]),C.jsx(Ot.div,{"data-state":ID(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!v,...i,ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:v&&o})});function ID(e){return e?"open":"closed"}var m3t=xhe,p3t=whe,h3t=Che,Gd="Accordion",g3t=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[RD,v3t,b3t]=$H(Gd),[e4,Ehr]=Cu(Gd,[b3t,bhe]),PD=bhe(),khe=Z.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,i=n;return C.jsx(RD.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?C.jsx(C3t,{...i,ref:t}):C.jsx(w3t,{...o,ref:t})})});khe.displayName=Gd;var[_he,x3t]=e4(Gd),[The,y3t]=e4(Gd,{collapsible:!1}),w3t=Z.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[l,s]=gm({prop:r,defaultProp:n,onChange:o});return C.jsx(_he,{scope:e.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:Z.useCallback(()=>i&&s(""),[i,s]),children:C.jsx(The,{scope:e.__scopeAccordion,collapsible:i,children:C.jsx(She,{...a,ref:t})})})}),C3t=Z.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...i}=e,[a=[],l]=gm({prop:r,defaultProp:n,onChange:o}),s=Z.useCallback(c=>l((d=[])=>[...d,c]),[l]),u=Z.useCallback(c=>l((d=[])=>d.filter(f=>f!==c)),[l]);return C.jsx(_he,{scope:e.__scopeAccordion,value:a,onItemOpen:s,onItemClose:u,children:C.jsx(The,{scope:e.__scopeAccordion,collapsible:!0,children:C.jsx(She,{...i,ref:t})})})}),[k3t,t4]=e4(Gd),She=Z.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:i="vertical",...a}=e,l=Z.useRef(null),s=Qt(l,t),u=v3t(r),d=DH(o)==="ltr",f=s3t(e.onKeyDown,p=>{var O;if(!g3t.includes(p.key))return;const h=p.target,v=u().filter(I=>{var L;return!((L=I.ref.current)!=null&&L.disabled)}),b=v.findIndex(I=>I.ref.current===h),y=v.length;if(b===-1)return;p.preventDefault();let w=b;const k=0,E=y-1,_=()=>{w=b+1,w>E&&(w=k)},S=()=>{w=b-1,w<k&&(w=E)};switch(p.key){case"Home":w=k;break;case"End":w=E;break;case"ArrowRight":i==="horizontal"&&(d?_():S());break;case"ArrowDown":i==="vertical"&&_();break;case"ArrowLeft":i==="horizontal"&&(d?S():_());break;case"ArrowUp":i==="vertical"&&S();break}const A=w%y;(O=v[A].ref.current)==null||O.focus()});return C.jsx(k3t,{scope:r,disabled:n,direction:o,orientation:i,children:C.jsx(RD.Slot,{scope:r,children:C.jsx(Ot.div,{...a,"data-orientation":i,ref:s,onKeyDown:n?void 0:f})})})}),r4="AccordionItem",[_3t,LD]=e4(r4),Ehe=Z.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,i=t4(r4,r),a=x3t(r4,r),l=PD(r),s=Fi(),u=n&&a.value.includes(n)||!1,c=i.disabled||e.disabled;return C.jsx(_3t,{scope:r,open:u,disabled:c,triggerId:s,children:C.jsx(m3t,{"data-orientation":i.orientation,"data-state":Lhe(u),...l,...o,ref:t,disabled:c,open:u,onOpenChange:d=>{d?a.onItemOpen(n):a.onItemClose(n)}})})});Ehe.displayName=r4;var Ahe="AccordionHeader",Ohe=Z.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=t4(Gd,r),i=LD(Ahe,r);return C.jsx(Ot.h3,{"data-orientation":o.orientation,"data-state":Lhe(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});Ohe.displayName=Ahe;var HD="AccordionTrigger",Ihe=Z.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=t4(Gd,r),i=LD(HD,r),a=y3t(HD,r),l=PD(r);return C.jsx(RD.ItemSlot,{scope:r,children:C.jsx(p3t,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...l,...n,ref:t})})});Ihe.displayName=HD;var Rhe="AccordionContent",Phe=Z.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=t4(Gd,r),i=LD(Rhe,r),a=PD(r);return C.jsx(h3t,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Phe.displayName=Rhe;function Lhe(e){return e?"open":"closed"}var T3t=khe,S3t=Ehe,E3t=Ohe,A3t=Ihe,O3t=Phe;const Hhe=m.createContext({expandedItems:null,rotateExpanded:null,expandItem:bt,register:bt,unRegister:bt,hideIcon:null,expandedIcon:null,collapsedIcon:null,triggerPosition:null});function I3t(){return m.useContext(Hhe)}const Fm={hideIcon:!1,collapsedIcon:"chevrondown",triggerPosition:"end",rotateExpanded:"180deg"},R3t=m.forwardRef(function({style:t,children:r,hideIcon:n=Fm.hideIcon,expandedIcon:o,collapsedIcon:i=Fm.collapsedIcon,triggerPosition:a=Fm.triggerPosition,onDisplayDidChange:l=bt,registerComponentApi:s,rotateExpanded:u=Fm.rotateExpanded},c){const[d,f]=m.useState([]),[p,h]=m.useState(new Set),v=m.useCallback(A=>{f(O=>O.filter(I=>I!==`${A}`))},[f]),b=m.useCallback(A=>{d.includes(`${A}`)||f(O=>[...O,`${A}`])},[f,d]),y=m.useCallback(A=>{d.includes(`${A}`)?v(A):b(A)},[v,b,d]),w=m.useCallback(A=>{h(O=>(O.add(A),O))},[h]),k=m.useCallback(A=>{h(O=>(O.delete(A),O))},[h]),E=m.useCallback(A=>{if(p.has(`trigger_${A}`)){const O=document.getElementById(`trigger_${A}`);O&&O.focus()}},[p]),_=m.useCallback(A=>d.includes(`${A}`),[d]);m.useEffect(()=>{s==null||s({expanded:_,expand:b,collapse:v,toggle:y,focus:E})},[s,b,v,y,E,_]);const S=m.useMemo(()=>({register:w,unRegister:k,expandItem:b,expandedItems:d,hideIcon:n,expandedIcon:o,collapsedIcon:i,triggerPosition:a,rotateExpanded:u}),[w,k,d,n,o,i,a,b,u]);return m.useEffect(()=>{l==null||l(d)},[d,l]),C.jsx(Hhe.Provider,{value:S,children:C.jsx(T3t,{style:t,ref:c,value:d,type:"multiple",className:qd.root,onValueChange:A=>f(A),children:r})})}),Xn="Accordion",Nhe={status:"in progress",description:`(**NOT IMPLEMENTED YET**) The \`${Xn}\` component is a collapsible container that toggles the display of content sections. It helps organize information by expanding or collapsing it based on user interaction.`,props:{triggerPosition:{description:"This property indicates the position where the trigger icon should be displayed. The `start` value signs the trigger is before the header text (template), and `end` indicates that it follows the header.",defaultValue:Fm.triggerPosition,valueType:"string",availableValues:v7e},collapsedIcon:{description:"This property is the name of the icon that is displayed when the accordion is collapsed. This property is the name of the icon that is displayed when the accordion is expanded. If not provided, a chevron-down icon is used.",valueType:"string",defaultValue:Fm.collapsedIcon},expandedIcon:{description:"This property is the name of the icon that is displayed when the accordion is expanded. If not provided, a chevron-up icon is used.",valueType:"string"},hideIcon:{description:"This property indicates that the trigger icon is not displayed (`true`).",defaultValue:Fm.hideIcon,valueType:"boolean"},rotateExpanded:{description:"This optional property defines the rotation angle of the expanded icon (relative to the collapsed icon).",valueType:"string",defaultValue:Fm.rotateExpanded}},events:{displayDidChange:Ei(Xn)},apis:{expanded:_7e(Xn),expand:T7e(Xn),collapse:S7e(Xn),toggle:{description:`This method toggles the state of the ${Xn} between expanded and collapsed.`},focus:au(Xn)},themeVars:Ze(qd.themeVars),defaultThemeVars:{[`paddingHorizontal-header-${Xn}`]:"$space-3",[`paddingVertical-header-${Xn}`]:"$space-3",[`verticalAlignment-header-${Xn}`]:"center",[`fontSize-header-${Xn}`]:"$fontSize-normal",[`fontWeight-header-${Xn}`]:"$fontWeight-normal",[`fontFamily-header-${Xn}`]:"$fontFamily",[`border-${Xn}`]:"0px solid $borderColor",[`width-icon-${Xn}`]:"",[`height-icon-${Xn}`]:"",[`backgroundColor-header-${Xn}`]:"$color-primary-500",[`backgroundColor-header-${Xn}-hover`]:"$color-primary-400",[`color-header-${Xn}`]:"$color-surface-50",[`color-content-${Xn}`]:"$textColor-primary",[`backgroundColor-content-${Xn}`]:"transparent",[`color-icon-${Xn}`]:"$color-surface-50"}},P3t=we(Xn,Nhe,({node:e,renderChild:t,extractValue:r,lookupEventHandler:n,registerComponentApi:o,layoutCss:i})=>{var a;return C.jsx(R3t,{style:i,triggerPosition:r((a=e.props)==null?void 0:a.triggerPosition),collapsedIcon:r(e.props.collapsedIcon),expandedIcon:r(e.props.expandedIcon),hideIcon:r.asOptionalBoolean(e.props.hideIcon),rotateExpanded:r(e.props.rotateExpanded),onDisplayDidChange:n("displayDidChange"),registerComponentApi:o,children:t(e.children)})}),$he=m.forwardRef(function({children:t,label:r,style:n},o){const i=m.useId(),{register:a,unRegister:l,activeTabId:s}=YSt();return m.useEffect(()=>{a({label:r,id:i})},[i,r,a]),m.useEffect(()=>()=>{l(i)},[i,l]),s!==i?null:C.jsx(qSt,{value:i,className:ig.tabsContent,ref:o,style:n,children:t},i)}),L3t="TabItem",Dhe={status:"stable",description:"`TabItem` defines individual tabs within a [Tabs](/components/Tabs) component, providing both the tab header label and the content that displays when the tab is selected. As a non-visual structural component, it serves as a container that organizes content into distinct, switchable sections.",docFolder:"Tabs",props:{label:io()}},H3t=we(L3t,Dhe,e=>{const{node:t,renderChild:r,extractValue:n}=e;return C.jsx($he,{label:n(t.props.label),children:r(t.children)})});function N3t(e){return C.jsx("div",{children:e})}const ND={initiallyExpanded:!1,headerRenderer:N3t},$3t=m.forwardRef(function({id:t,header:r,headerRenderer:n=ND.headerRenderer,content:o,initiallyExpanded:i=ND.initiallyExpanded,style:a},l){const s=m.useId(),u=m.useMemo(()=>t?`${t}`:s,[t,s]),c=m.useMemo(()=>`trigger_${u}`,[u]),{rotateExpanded:d,expandedItems:f,hideIcon:p,expandedIcon:h,collapsedIcon:v,triggerPosition:b,expandItem:y,register:w,unRegister:k}=I3t(),E=m.useMemo(()=>f.includes(u),[u,f]),[_,S]=m.useState(!1);return m.useEffect(()=>{_||(S(!0),i&&y(u))},[y,u,i,_]),m.useEffect(()=>{w(c)},[w,c]),m.useEffect(()=>()=>{k(c)},[c,k]),C.jsxs(S3t,{value:u,className:qd.item,ref:l,style:a,children:[C.jsx(E3t,{className:qd.header,children:C.jsxs(A3t,{id:`trigger_${u}`,className:ze(qd.trigger,{[qd.triggerStart]:b==="start"}),children:[n(r),!p&&C.jsx("span",{style:{transform:E&&!h?`rotate(${d})`:"rotate(0deg)",transition:"transform 300ms cubic-bezier(0.87, 0, 0.13, 1)"},children:C.jsx(xt,{name:E&&h||v,className:qd.chevron})})]})}),C.jsx(O3t,{className:qd.contentWrapper,children:C.jsx("div",{className:qd.content,children:o})})]},u)}),n4="AccordionItem",D3t={status:"in progress",description:`\`${n4}\` is a non-visual component describing a tab. Tabs component may use nested ${n4} instances from which the user can select.`,props:{header:{description:"This property declares the text used in the component's header. If not provided, the header will be empty.",valueType:"string"},headerTemplate:xr("This property describes the template to use as the component's header."),initiallyExpanded:{description:`This property indicates if the ${n4} is expanded (\`true\`) or collapsed (\`false\`).`,valueType:"boolean",defaultValue:ND.initiallyExpanded}}},B3t=we(n4,D3t,e=>{const{node:t,renderChild:r,extractValue:n,layoutCss:o}=e;return C.jsx($3t,{style:o,id:n(t.uid),header:n(t.props.header),initiallyExpanded:n.asOptionalBoolean(t.props.initiallyExpanded),headerRenderer:t.props.headerTemplate?i=>C.jsx(Oi,{node:t.props.headerTemplate??{type:"Fragment"},item:i,renderChild:r}):void 0,content:r(t.children)})}),tn="Slider",Bhe={status:"stable",description:"`Slider` provides an interactive control for selecting numeric values within a defined range, supporting both single value selection and range selection with multiple thumbs. It offers precise control through customizable steps and visual feedback with formatted value display.",props:{initialValue:Ba(),label:io(),labelPosition:$a("top"),labelWidth:Da(tn),labelBreak:hl(tn),minValue:{description:"This property specifies the minimum value of the allowed input range.",valueType:"number",defaultValue:ha.min},maxValue:{description:"This property specifies the maximum value of the allowed input range.",valueType:"number",defaultValue:ha.max},step:{description:"This property defines the increment value for the slider, determining the allowed intervals between selectable values.",defaultValue:ha.step},minStepsBetweenThumbs:re("This property sets the minimum number of steps required between multiple thumbs on the slider, ensuring they maintain a specified distance.",void 0,"number",ha.minStepsBetweenThumbs),enabled:So(),autoFocus:Bi(),required:bl(),readOnly:gl(),validationStatus:{...vl(),defaultValue:ha.validationStatus},rangeStyle:re("This optional property allows you to apply custom styles to the range element of the slider."),thumbStyle:re("This optional property allows you to apply custom styles to the thumb elements of the slider."),showValues:{description:"This property controls whether the slider shows the current values of the thumbs.",valueType:"boolean",defaultValue:ha.showValues},valueFormat:{description:"This property allows you to customize how the values are displayed.",valueType:"any",defaultValue:"(value) => value.toString()"}},events:{didChange:Ei(tn),gotFocus:Ha(tn),lostFocus:Na(tn)},apis:{focus:au(tn),value:Fv(),setValue:us()},themeVars:Ze(pa.themeVars),defaultThemeVars:{[`backgroundColor-track-${tn}`]:"$color-surface-200",[`backgroundColor-range-${tn}`]:"$color-primary",[`borderWidth-thumb-${tn}`]:"2px",[`borderStyle-thumb-${tn}`]:"solid",[`borderColor-thumb-${tn}`]:"$color-surface-50",[`backgroundColor-thumb-${tn}`]:"$color-primary",[`boxShadow-thumb-${tn}`]:"$boxShadow-md",[`boxShadow-thumb-${tn}--hover`]:"$boxShadow-lg",[`boxShadow-thumb-${tn}--focus`]:"$boxShadow-xl",[`borderRadius-${tn}-default`]:"$borderRadius",[`borderColor-${tn}-default`]:"transparent",[`borderWidth-${tn}-default`]:"0",[`borderStyle-${tn}-default`]:"solid",[`boxShadow-${tn}-default`]:"none",light:{[`backgroundColor-track-${tn}--disabled`]:"$color-surface-300",[`backgroundColor-range-${tn}--disabled`]:"$color-surface-400",[`backgroundColor-thumb-${tn}`]:"$color-primary-500",[`borderColor-thumb-${tn}`]:"$color-surface-50"},dark:{[`backgroundColor-track-${tn}--disabled`]:"$color-surface-600",[`backgroundColor-range-${tn}--disabled`]:"$color-surface-800",[`backgroundColor-thumb-${tn}`]:"$color-primary-400",[`borderColor-thumb-${tn}`]:"$color-surface-950"}}},j3t=we(tn,Bhe,({node:e,extractValue:t,lookupEventHandler:r,lookupSyncCallback:n,layoutCss:o,updateState:i,state:a,registerComponentApi:l})=>{var s,u,c,d,f,p,h,v,b;return C.jsx(X8,{validationStatus:t(e.props.validationStatus),minStepsBetweenThumbs:t((s=e.props)==null?void 0:s.minStepsBetweenThumbs),value:a.value,initialValue:t(e.props.initialValue),updateState:i,onDidChange:r("didChange"),onFocus:r("gotFocus"),onBlur:r("lostFocus"),registerComponentApi:l,style:o,step:t((u=e.props)==null?void 0:u.step),min:t((c=e.props)==null?void 0:c.minValue),max:t((d=e.props)==null?void 0:d.maxValue),enabled:t.asOptionalBoolean((f=e.props)==null?void 0:f.enabled),autoFocus:t.asOptionalBoolean(e.props.autoFocus),readOnly:t.asOptionalBoolean(e.props.readOnly),label:t.asOptionalString(e.props.label),labelPosition:t(e.props.labelPosition),labelWidth:t.asOptionalString(e.props.labelWidth),labelBreak:t.asOptionalBoolean(e.props.labelBreak),required:t.asOptionalBoolean(e.props.required),rangeStyle:t((p=e.props)==null?void 0:p.rangeStyle),thumbStyle:t((h=e.props)==null?void 0:h.thumbStyle),showValues:t.asOptionalBoolean((v=e.props)==null?void 0:v.showValues),valueFormat:n((b=e.props)==null?void 0:b.valueFormat)})}),ya={themeVars:`'{"width-Carousel": "var(--xmlui-width-Carousel)", "height-Carousel": "var(--xmlui-height-Carousel)", "height-control-Carousel": "var(--xmlui-height-control-Carousel)", "width-control-Carousel": "var(--xmlui-width-control-Carousel)", "textColor-control-Carousel": "var(--xmlui-textColor-control-Carousel)", "backgroundColor-control-Carousel": "var(--xmlui-backgroundColor-control-Carousel)", "borderRadius-control-Carousel": "var(--xmlui-borderRadius-control-Carousel)", "backgroundColor-control-hover-Carousel": "var(--xmlui-backgroundColor-control-hover-Carousel)", "textColor-control-hover-Carousel": "var(--xmlui-textColor-control-hover-Carousel)", "backgroundColor-control-active-Carousel": "var(--xmlui-backgroundColor-control-active-Carousel)", "textColor-control-active-Carousel": "var(--xmlui-textColor-control-active-Carousel)", "textColor-control-disabled-Carousel": "var(--xmlui-textColor-control-disabled-Carousel)", "backgroundColor-control-disabled-Carousel": "var(--xmlui-backgroundColor-control-disabled-Carousel)", "width-indicator-Carousel": "var(--xmlui-width-indicator-Carousel)", "height-indicator-Carousel": "var(--xmlui-height-indicator-Carousel)", "textColor-indicator-Carousel": "var(--xmlui-textColor-indicator-Carousel)", "backgroundColor-indicator-Carousel": "var(--xmlui-backgroundColor-indicator-Carousel)", "backgroundColor-indicator-hover-Carousel": "var(--xmlui-backgroundColor-indicator-hover-Carousel)", "textColor-indicator-hover-Carousel": "var(--xmlui-textColor-indicator-hover-Carousel)", "backgroundColor-indicator-active-Carousel": "var(--xmlui-backgroundColor-indicator-active-Carousel)", "textColor-indicator-active-Carousel": "var(--xmlui-textColor-indicator-active-Carousel)"}'`,carousel:"_carousel_1jsvj_13",innerWrapper:"_innerWrapper_1jsvj_22",carouselContentWrapper:"_carouselContentWrapper_1jsvj_30",carouselContent:"_carouselContent_1jsvj_30",vertical:"_vertical_1jsvj_40",carouselItem:"_carouselItem_1jsvj_44",controls:"_controls_1jsvj_51",controlButton:"_controlButton_1jsvj_60",indicators:"_indicators_1jsvj_87",indicator:"_indicator_1jsvj_87",active:"_active_1jsvj_107"};function M3t(e){return Object.prototype.toString.call(e)==="[object Object]"}function jhe(e){return M3t(e)||Array.isArray(e)}function z3t(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function $D(e,t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==i?!1:r.every(a=>{const l=e[a],s=t[a];return typeof l=="function"?`${l}`==`${s}`:!jhe(l)||!jhe(s)?l===s:$D(l,s)})}function Mhe(e){return e.concat().sort((t,r)=>t.name>r.name?1:-1).map(t=>t.options)}function F3t(e,t){if(e.length!==t.length)return!1;const r=Mhe(e),n=Mhe(t);return r.every((o,i)=>{const a=n[i];return $D(o,a)})}function DD(e){return typeof e=="number"}function BD(e){return typeof e=="string"}function o4(e){return typeof e=="boolean"}function zhe(e){return Object.prototype.toString.call(e)==="[object Object]"}function Qn(e){return Math.abs(e)}function jD(e){return Math.sign(e)}function $2(e,t){return Qn(e-t)}function W3t(e,t){if(e===0||t===0||Qn(e)<=Qn(t))return 0;const r=$2(Qn(e),Qn(t));return Qn(r/e)}function V3t(e){return Math.round(e*100)/100}function D2(e){return j2(e).map(Number)}function $u(e){return e[B2(e)]}function B2(e){return Math.max(0,e.length-1)}function MD(e,t){return t===B2(e)}function Fhe(e,t=0){return Array.from(Array(e),(r,n)=>t+n)}function j2(e){return Object.keys(e)}function Whe(e,t){return[e,t].reduce((r,n)=>(j2(n).forEach(o=>{const i=r[o],a=n[o],l=zhe(i)&&zhe(a);r[o]=l?Whe(i,a):a}),r),{})}function zD(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function U3t(e,t){const r={start:n,center:o,end:i};function n(){return 0}function o(s){return i(s)/2}function i(s){return t-s}function a(s,u){return BD(e)?r[e](s):e(t,s,u)}return{measure:a}}function M2(){let e=[];function t(o,i,a,l={passive:!0}){let s;if("addEventListener"in o)o.addEventListener(i,a,l),s=()=>o.removeEventListener(i,a,l);else{const u=o;u.addListener(a),s=()=>u.removeListener(a)}return e.push(s),n}function r(){e=e.filter(o=>o())}const n={add:t,clear:r};return n}function q3t(e,t,r,n){const o=M2(),i=1e3/60;let a=null,l=0,s=0;function u(){o.add(e,"visibilitychange",()=>{e.hidden&&h()})}function c(){p(),o.clear()}function d(b){if(!s)return;a||(a=b,r(),r());const y=b-a;for(a=b,l+=y;l>=i;)r(),l-=i;const w=l/i;n(w),s&&(s=t.requestAnimationFrame(d))}function f(){s||(s=t.requestAnimationFrame(d))}function p(){t.cancelAnimationFrame(s),a=null,l=0,s=0}function h(){a=null,l=0}return{init:u,destroy:c,start:f,stop:p,update:r,render:n}}function G3t(e,t){const r=t==="rtl",n=e==="y",o=n?"y":"x",i=n?"x":"y",a=!n&&r?-1:1,l=c(),s=d();function u(h){const{height:v,width:b}=h;return n?v:b}function c(){return n?"top":r?"right":"left"}function d(){return n?"bottom":r?"left":"right"}function f(h){return h*a}return{scroll:o,cross:i,startEdge:l,endEdge:s,measureSize:u,direction:f}}function lg(e=0,t=0){const r=Qn(e-t);function n(u){return u<e}function o(u){return u>t}function i(u){return n(u)||o(u)}function a(u){return i(u)?n(u)?e:t:u}function l(u){return r?u-r*Math.ceil((u-t)/r):u}return{length:r,max:t,min:e,constrain:a,reachedAny:i,reachedMax:o,reachedMin:n,removeOffset:l}}function Vhe(e,t,r){const{constrain:n}=lg(0,e),o=e+1;let i=a(t);function a(f){return r?Qn((o+f)%o):n(f)}function l(){return i}function s(f){return i=a(f),d}function u(f){return c().set(l()+f)}function c(){return Vhe(e,l(),r)}const d={get:l,set:s,add:u,clone:c};return d}function Y3t(e,t,r,n,o,i,a,l,s,u,c,d,f,p,h,v,b,y,w){const{cross:k,direction:E}=e,_=["INPUT","SELECT","TEXTAREA"],S={passive:!1},A=M2(),O=M2(),I=lg(50,225).constrain(p.measure(20)),L={mouse:300,touch:400},P={mouse:500,touch:600},H=h?43:25;let j=!1,W=0,B=0,G=!1,z=!1,F=!1,V=!1;function N(J){if(!w)return;function X(ie){(o4(w)||w(J,ie))&&ae(ie)}const te=t;A.add(te,"dragstart",ie=>ie.preventDefault(),S).add(te,"touchmove",()=>{},S).add(te,"touchend",()=>{}).add(te,"touchstart",X).add(te,"mousedown",X).add(te,"touchcancel",ue).add(te,"contextmenu",ue).add(te,"click",le,!0)}function Y(){A.clear(),O.clear()}function q(){const J=V?r:t;O.add(J,"touchmove",oe,S).add(J,"touchend",ue).add(J,"mousemove",oe,S).add(J,"mouseup",ue)}function M(J){const X=J.nodeName||"";return _.includes(X)}function K(){return(h?P:L)[V?"mouse":"touch"]}function ee(J,X){const te=d.add(jD(J)*-1),ie=c.byDistance(J,!h).distance;return h||Qn(J)<I?ie:b&&X?ie*.5:c.byIndex(te.get(),0).distance}function ae(J){const X=zD(J,n);V=X,F=h&&X&&!J.buttons&&j,j=$2(o.get(),a.get())>=2,!(X&&J.button!==0)&&(M(J.target)||(G=!0,i.pointerDown(J),u.useFriction(0).useDuration(0),o.set(a),q(),W=i.readPoint(J),B=i.readPoint(J,k),f.emit("pointerDown")))}function oe(J){if(!zD(J,n)&&J.touches.length>=2)return ue(J);const te=i.readPoint(J),ie=i.readPoint(J,k),de=$2(te,W),be=$2(ie,B);if(!z&&!V&&(!J.cancelable||(z=de>be,!z)))return ue(J);const xe=i.pointerMove(J);de>v&&(F=!0),u.useFriction(.3).useDuration(.75),l.start(),o.add(E(xe)),J.preventDefault()}function ue(J){const te=c.byDistance(0,!1).index!==d.get(),ie=i.pointerUp(J)*K(),de=ee(E(ie),te),be=W3t(ie,de),xe=H-10*be,Ie=y+be/50;z=!1,G=!1,O.clear(),u.useDuration(xe).useFriction(Ie),s.distance(de,!h),V=!1,f.emit("pointerUp")}function le(J){F&&(J.stopPropagation(),J.preventDefault(),F=!1)}function pe(){return G}return{init:N,destroy:Y,pointerDown:pe}}function K3t(e,t){let n,o;function i(d){return d.timeStamp}function a(d,f){const h=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(zD(d,t)?d:d.touches[0])[h]}function l(d){return n=d,o=d,a(d)}function s(d){const f=a(d)-a(o),p=i(d)-i(n)>170;return o=d,p&&(n=d),f}function u(d){if(!n||!o)return 0;const f=a(o)-a(n),p=i(d)-i(n),h=i(d)-i(o)>170,v=f/p;return p&&!h&&Qn(v)>.1?v:0}return{pointerDown:l,pointerMove:s,pointerUp:u,readPoint:a}}function X3t(){function e(r){const{offsetTop:n,offsetLeft:o,offsetWidth:i,offsetHeight:a}=r;return{top:n,right:o+i,bottom:n+a,left:o,width:i,height:a}}return{measure:e}}function Q3t(e){function t(n){return e*(n/100)}return{measure:t}}function Z3t(e,t,r,n,o,i,a){const l=[e].concat(n);let s,u,c=[],d=!1;function f(b){return o.measureSize(a.measure(b))}function p(b){if(!i)return;u=f(e),c=n.map(f);function y(w){for(const k of w){if(d)return;const E=k.target===e,_=n.indexOf(k.target),S=E?u:c[_],A=f(E?e:n[_]);if(Qn(A-S)>=.5){b.reInit(),t.emit("resize");break}}}s=new ResizeObserver(w=>{(o4(i)||i(b,w))&&y(w)}),r.requestAnimationFrame(()=>{l.forEach(w=>s.observe(w))})}function h(){d=!0,s&&s.disconnect()}return{init:p,destroy:h}}function J3t(e,t,r,n,o,i){let a=0,l=0,s=o,u=i,c=e.get(),d=0;function f(){const S=n.get()-e.get(),A=!s;let O=0;return A?(a=0,r.set(n),e.set(n),O=S):(r.set(e),a+=S/s,a*=u,c+=a,e.add(a),O=c-d),l=jD(O),d=c,_}function p(){const S=n.get()-t.get();return Qn(S)<.001}function h(){return s}function v(){return l}function b(){return a}function y(){return k(o)}function w(){return E(i)}function k(S){return s=S,_}function E(S){return u=S,_}const _={direction:v,duration:h,velocity:b,seek:f,settled:p,useBaseFriction:w,useBaseDuration:y,useFriction:E,useDuration:k};return _}function eEt(e,t,r,n,o){const i=o.measure(10),a=o.measure(50),l=lg(.1,.99);let s=!1;function u(){return!(s||!e.reachedAny(r.get())||!e.reachedAny(t.get()))}function c(p){if(!u())return;const h=e.reachedMin(t.get())?"min":"max",v=Qn(e[h]-t.get()),b=r.get()-t.get(),y=l.constrain(v/a);r.subtract(b*y),!p&&Qn(b)<i&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())}function d(p){s=!p}return{shouldConstrain:u,constrain:c,toggleActive:d}}function tEt(e,t,r,n,o){const i=lg(-t+e,0),a=d(),l=c(),s=f();function u(h,v){return $2(h,v)<=1}function c(){const h=a[0],v=$u(a),b=a.lastIndexOf(h),y=a.indexOf(v)+1;return lg(b,y)}function d(){return r.map((h,v)=>{const{min:b,max:y}=i,w=i.constrain(h),k=!v,E=MD(r,v);return k?y:E||u(b,w)?b:u(y,w)?y:w}).map(h=>parseFloat(h.toFixed(3)))}function f(){if(t<=e+o)return[i.max];if(n==="keepSnaps")return a;const{min:h,max:v}=l;return a.slice(h,v)}return{snapsContained:s,scrollContainLimit:l}}function rEt(e,t,r){const n=t[0],o=r?n-e:$u(t);return{limit:lg(o,n)}}function nEt(e,t,r,n){const i=t.min+.1,a=t.max+.1,{reachedMin:l,reachedMax:s}=lg(i,a);function u(f){return f===1?s(r.get()):f===-1?l(r.get()):!1}function c(f){if(!u(f))return;const p=e*(f*-1);n.forEach(h=>h.add(p))}return{loop:c}}function oEt(e){const{max:t,length:r}=e;function n(i){const a=i-t;return r?a/-r:0}return{get:n}}function iEt(e,t,r,n,o){const{startEdge:i,endEdge:a}=e,{groupSlides:l}=o,s=d().map(t.measure),u=f(),c=p();function d(){return l(n).map(v=>$u(v)[a]-v[0][i]).map(Qn)}function f(){return n.map(v=>r[i]-v[i]).map(v=>-Qn(v))}function p(){return l(u).map(v=>v[0]).map((v,b)=>v+s[b])}return{snaps:u,snapsAligned:c}}function aEt(e,t,r,n,o,i){const{groupSlides:a}=o,{min:l,max:s}=n,u=c();function c(){const f=a(i),p=!e||t==="keepSnaps";return r.length===1?[i]:p?f:f.slice(l,s).map((h,v,b)=>{const y=!v,w=MD(b,v);if(y){const k=$u(b[0])+1;return Fhe(k)}if(w){const k=B2(i)-$u(b)[0]+1;return Fhe(k,$u(b)[0])}return h})}return{slideRegistry:u}}function lEt(e,t,r,n,o){const{reachedAny:i,removeOffset:a,constrain:l}=n;function s(h){return h.concat().sort((v,b)=>Qn(v)-Qn(b))[0]}function u(h){const v=e?a(h):l(h),b=t.map((w,k)=>({diff:c(w-v,0),index:k})).sort((w,k)=>Qn(w.diff)-Qn(k.diff)),{index:y}=b[0];return{index:y,distance:v}}function c(h,v){const b=[h,h+r,h-r];if(!e)return h;if(!v)return s(b);const y=b.filter(w=>jD(w)===v);return y.length?s(y):$u(b)-r}function d(h,v){const b=t[h]-o.get(),y=c(b,v);return{index:h,distance:y}}function f(h,v){const b=o.get()+h,{index:y,distance:w}=u(b),k=!e&&i(b);if(!v||k)return{index:y,distance:h};const E=t[y]-w,_=h+c(E,0);return{index:y,distance:_}}return{byDistance:f,byIndex:d,shortcut:c}}function sEt(e,t,r,n,o,i,a){function l(d){const f=d.distance,p=d.index!==t.get();i.add(f),f&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),p&&(r.set(t.get()),t.set(d.index),a.emit("select"))}function s(d,f){const p=o.byDistance(d,f);l(p)}function u(d,f){const p=t.clone().set(d),h=o.byIndex(p.get(),f);l(h)}return{distance:s,index:u}}function uEt(e,t,r,n,o,i,a,l){const s={passive:!0,capture:!0};let u=0;function c(p){if(!l)return;function h(v){if(new Date().getTime()-u>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;const w=r.findIndex(k=>k.includes(v));DD(w)&&(o.useDuration(0),n.index(w,0),a.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((v,b)=>{i.add(v,"focus",y=>{(o4(l)||l(p,y))&&h(b)},s)})}function d(p){p.code==="Tab"&&(u=new Date().getTime())}return{init:c}}function z2(e){let t=e;function r(){return t}function n(s){t=a(s)}function o(s){t+=a(s)}function i(s){t-=a(s)}function a(s){return DD(s)?s:s.get()}return{get:r,set:n,add:o,subtract:i}}function Uhe(e,t){const r=e.scroll==="x"?a:l,n=t.style;let o=null,i=!1;function a(f){return`translate3d(${f}px,0px,0px)`}function l(f){return`translate3d(0px,${f}px,0px)`}function s(f){if(i)return;const p=V3t(e.direction(f));p!==o&&(n.transform=r(p),o=p)}function u(f){i=!f}function c(){i||(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:c,to:s,toggleActive:u}}function cEt(e,t,r,n,o,i,a,l,s){const c=D2(o),d=D2(o).reverse(),f=y().concat(w());function p(A,O){return A.reduce((I,L)=>I-o[L],O)}function h(A,O){return A.reduce((I,L)=>p(I,O)>0?I.concat([L]):I,[])}function v(A){return i.map((O,I)=>({start:O-n[I]+.5+A,end:O+t-.5+A}))}function b(A,O,I){const L=v(O);return A.map(P=>{const H=I?0:-r,j=I?r:0,W=I?"end":"start",B=L[P][W];return{index:P,loopPoint:B,slideLocation:z2(-1),translate:Uhe(e,s[P]),target:()=>l.get()>B?H:j}})}function y(){const A=a[0],O=h(d,A);return b(O,r,!1)}function w(){const A=t-a[0]-1,O=h(c,A);return b(O,-r,!0)}function k(){return f.every(({index:A})=>{const O=c.filter(I=>I!==A);return p(O,t)<=.1})}function E(){f.forEach(A=>{const{target:O,translate:I,slideLocation:L}=A,P=O();P!==L.get()&&(I.to(P),L.set(P))})}function _(){f.forEach(A=>A.translate.clear())}return{canLoop:k,clear:_,loop:E,loopPoints:f}}function dEt(e,t,r){let n,o=!1;function i(s){if(!r)return;function u(c){for(const d of c)if(d.type==="childList"){s.reInit(),t.emit("slidesChanged");break}}n=new MutationObserver(c=>{o||(o4(r)||r(s,c))&&u(c)}),n.observe(e,{childList:!0})}function a(){n&&n.disconnect(),o=!0}return{init:i,destroy:a}}function fEt(e,t,r,n){const o={};let i=null,a=null,l,s=!1;function u(){l=new IntersectionObserver(h=>{s||(h.forEach(v=>{const b=t.indexOf(v.target);o[b]=v}),i=null,a=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:n}),t.forEach(h=>l.observe(h))}function c(){l&&l.disconnect(),s=!0}function d(h){return j2(o).reduce((v,b)=>{const y=parseInt(b),{isIntersecting:w}=o[y];return(h&&w||!h&&!w)&&v.push(y),v},[])}function f(h=!0){if(h&&i)return i;if(!h&&a)return a;const v=d(h);return h&&(i=v),h||(a=v),v}return{init:u,destroy:c,get:f}}function mEt(e,t,r,n,o,i){const{measureSize:a,startEdge:l,endEdge:s}=e,u=r[0]&&o,c=h(),d=v(),f=r.map(a),p=b();function h(){if(!u)return 0;const w=r[0];return Qn(t[l]-w[l])}function v(){if(!u)return 0;const w=i.getComputedStyle($u(n));return parseFloat(w.getPropertyValue(`margin-${s}`))}function b(){return r.map((w,k,E)=>{const _=!k,S=MD(E,k);return _?f[k]+c:S?f[k]+d:E[k+1][l]-w[l]}).map(Qn)}return{slideSizes:f,slideSizesWithGaps:p,startGap:c,endGap:d}}function pEt(e,t,r,n,o,i,a,l,s){const{startEdge:u,endEdge:c,direction:d}=e,f=DD(r);function p(y,w){return D2(y).filter(k=>k%w===0).map(k=>y.slice(k,k+w))}function h(y){return y.length?D2(y).reduce((w,k,E)=>{const _=$u(w)||0,S=_===0,A=k===B2(y),O=o[u]-i[_][u],I=o[u]-i[k][c],L=!n&&S?d(a):0,P=!n&&A?d(l):0,H=Qn(I-P-(O+L));return E&&H>t+s&&w.push(k),A&&w.push(y.length),w},[]).map((w,k,E)=>{const _=Math.max(E[k-1]||0);return y.slice(_,w)}):[]}function v(y){return f?p(y,r):h(y)}return{groupSlides:v}}function hEt(e,t,r,n,o,i,a){const{align:l,axis:s,direction:u,startIndex:c,loop:d,duration:f,dragFree:p,dragThreshold:h,inViewThreshold:v,slidesToScroll:b,skipSnaps:y,containScroll:w,watchResize:k,watchSlides:E,watchDrag:_,watchFocus:S}=i,A=2,O=X3t(),I=O.measure(t),L=r.map(O.measure),P=G3t(s,u),H=P.measureSize(I),j=Q3t(H),W=U3t(l,H),B=!d&&!!w,G=d||!!w,{slideSizes:z,slideSizesWithGaps:F,startGap:V,endGap:N}=mEt(P,I,L,r,G,o),Y=pEt(P,H,b,d,I,L,V,N,A),{snaps:q,snapsAligned:M}=iEt(P,W,I,L,Y),K=-$u(q)+$u(F),{snapsContained:ee,scrollContainLimit:ae}=tEt(H,K,M,w,A),oe=B?ee:M,{limit:ue}=rEt(K,oe,d),le=Vhe(B2(oe),c,d),pe=le.clone(),fe=D2(r),J=({dragHandler:ut,scrollBody:It,scrollBounds:sr,options:{loop:tr}})=>{tr||sr.constrain(ut.pointerDown()),It.seek()},X=({scrollBody:ut,translate:It,location:sr,offsetLocation:tr,previousLocation:hn,scrollLooper:zo,slideLooper:Ir,dragHandler:At,animation:it,eventHandler:nt,scrollBounds:lt,options:{loop:ct}},Rr)=>{const fr=ut.settled(),ii=!lt.shouldConstrain(),Cr=ct?fr:fr&&ii,Gr=Cr&&!At.pointerDown();Gr&&it.stop();const ur=sr.get()*Rr+hn.get()*(1-Rr);tr.set(ur),ct&&(zo.loop(ut.direction()),Ir.loop()),It.to(tr.get()),Gr&&nt.emit("settle"),Cr||nt.emit("scroll")},te=q3t(n,o,()=>J(st),ut=>X(st,ut)),ie=.68,de=oe[le.get()],be=z2(de),xe=z2(de),Ie=z2(de),Ne=z2(de),Se=J3t(be,Ie,xe,Ne,f,ie),_e=lEt(d,oe,K,ue,Ne),Ve=sEt(te,le,pe,Se,_e,Ne,a),Ee=oEt(ue),je=M2(),Ce=fEt(t,r,a,v),{slideRegistry:Te}=aEt(B,w,oe,ae,Y,fe),He=uEt(e,r,Te,Ve,Se,je,a,S),st={ownerDocument:n,ownerWindow:o,eventHandler:a,containerRect:I,slideRects:L,animation:te,axis:P,dragHandler:Y3t(P,e,n,o,Ne,K3t(P,o),be,te,Ve,Se,_e,le,a,j,p,h,y,ie,_),eventStore:je,percentOfView:j,index:le,indexPrevious:pe,limit:ue,location:be,offsetLocation:Ie,previousLocation:xe,options:i,resizeHandler:Z3t(t,a,o,r,P,k,O),scrollBody:Se,scrollBounds:eEt(ue,Ie,Ne,Se,j),scrollLooper:nEt(K,ue,Ie,[be,Ie,xe,Ne]),scrollProgress:Ee,scrollSnapList:oe.map(Ee.get),scrollSnaps:oe,scrollTarget:_e,scrollTo:Ve,slideLooper:cEt(P,H,K,z,F,q,oe,Ie,r),slideFocus:He,slidesHandler:dEt(t,a,E),slidesInView:Ce,slideIndexes:fe,slideRegistry:Te,slidesToScroll:Y,target:Ne,translate:Uhe(P,t)};return st}function gEt(){let e={},t;function r(u){t=u}function n(u){return e[u]||[]}function o(u){return n(u).forEach(c=>c(t,u)),s}function i(u,c){return e[u]=n(u).concat([c]),s}function a(u,c){return e[u]=n(u).filter(d=>d!==c),s}function l(){e={}}const s={init:r,emit:o,off:a,on:i,clear:l};return s}const vEt={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function bEt(e){function t(i,a){return Whe(i,a||{})}function r(i){const a=i.breakpoints||{},l=j2(a).filter(s=>e.matchMedia(s).matches).map(s=>a[s]).reduce((s,u)=>t(s,u),{});return t(i,l)}function n(i){return i.map(a=>j2(a.breakpoints||{})).reduce((a,l)=>a.concat(l),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:r,optionsMediaQueries:n}}function xEt(e){let t=[];function r(i,a){return t=a.filter(({options:l})=>e.optionsAtMedia(l).active!==!1),t.forEach(l=>l.init(i,e)),a.reduce((l,s)=>Object.assign(l,{[s.name]:s}),{})}function n(){t=t.filter(i=>i.destroy())}return{init:r,destroy:n}}function i4(e,t,r){const n=e.ownerDocument,o=n.defaultView,i=bEt(o),a=xEt(i),l=M2(),s=gEt(),{mergeOptions:u,optionsAtMedia:c,optionsMediaQueries:d}=i,{on:f,off:p,emit:h}=s,v=P;let b=!1,y,w=u(vEt,i4.globalOptions),k=u(w),E=[],_,S,A;function O(){const{container:fe,slides:J}=k;S=(BD(fe)?e.querySelector(fe):fe)||e.children[0];const te=BD(J)?S.querySelectorAll(J):J;A=[].slice.call(te||S.children)}function I(fe){const J=hEt(e,S,A,n,o,fe,s);if(fe.loop&&!J.slideLooper.canLoop()){const X=Object.assign({},fe,{loop:!1});return I(X)}return J}function L(fe,J){b||(w=u(w,fe),k=c(w),E=J||E,O(),y=I(k),d([w,...E.map(({options:X})=>X)]).forEach(X=>l.add(X,"change",P)),k.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(pe),y.eventHandler.init(pe),y.resizeHandler.init(pe),y.slidesHandler.init(pe),y.options.loop&&y.slideLooper.loop(),S.offsetParent&&A.length&&y.dragHandler.init(pe),_=a.init(pe,E)))}function P(fe,J){const X=Y();H(),L(u({startIndex:X},fe),J),s.emit("reInit")}function H(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),a.destroy(),l.clear()}function j(){b||(b=!0,l.clear(),H(),s.emit("destroy"),s.clear())}function W(fe,J,X){!k.active||b||(y.scrollBody.useBaseFriction().useDuration(J===!0?0:k.duration),y.scrollTo.index(fe,X||0))}function B(fe){const J=y.index.add(1).get();W(J,fe,-1)}function G(fe){const J=y.index.add(-1).get();W(J,fe,1)}function z(){return y.index.add(1).get()!==Y()}function F(){return y.index.add(-1).get()!==Y()}function V(){return y.scrollSnapList}function N(){return y.scrollProgress.get(y.offsetLocation.get())}function Y(){return y.index.get()}function q(){return y.indexPrevious.get()}function M(){return y.slidesInView.get()}function K(){return y.slidesInView.get(!1)}function ee(){return _}function ae(){return y}function oe(){return e}function ue(){return S}function le(){return A}const pe={canScrollNext:z,canScrollPrev:F,containerNode:ue,internalEngine:ae,destroy:j,off:p,on:f,emit:h,plugins:ee,previousScrollSnap:q,reInit:v,rootNode:oe,scrollNext:B,scrollPrev:G,scrollProgress:N,scrollSnapList:V,scrollTo:W,selectedScrollSnap:Y,slideNodes:le,slidesInView:M,slidesNotInView:K};return L(t,r),setTimeout(()=>s.emit("init"),0),pe}i4.globalOptions=void 0;function FD(e={},t=[]){const r=m.useRef(e),n=m.useRef(t),[o,i]=m.useState(),[a,l]=m.useState(),s=m.useCallback(()=>{o&&o.reInit(r.current,n.current)},[o]);return m.useEffect(()=>{$D(r.current,e)||(r.current=e,s())},[e,s]),m.useEffect(()=>{F3t(n.current,t)||(n.current=t,s())},[t,s]),m.useEffect(()=>{if(z3t()&&a){i4.globalOptions=FD.globalOptions;const u=i4(a,r.current,n.current);return i(u),()=>u.destroy()}else i(void 0)},[a,i]),[l,o]}FD.globalOptions=void 0;const yEt={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function wEt(e,t){const r=e.scrollSnapList();return typeof t=="number"?r.map(()=>t):t(r,e)}function CEt(e,t){const r=e.rootNode();return t&&t(r)||r}function WD(e={}){let t,r,n,o,i=null,a=0,l=!1,s=!1,u=!1,c=!1;function d(W,B){r=W;const{mergeOptions:G,optionsAtMedia:z}=B,F=G(yEt,WD.globalOptions),V=G(F,e);if(t=z(V),r.scrollSnapList().length<=1)return;c=t.jump,n=!1,o=wEt(r,t.delay);const{eventStore:N,ownerDocument:Y}=r.internalEngine(),q=!!r.internalEngine().options.watchDrag,M=CEt(r,t.rootNode);N.add(Y,"visibilitychange",y),q&&r.on("pointerDown",k),q&&!t.stopOnInteraction&&r.on("pointerUp",E),t.stopOnMouseEnter&&N.add(M,"mouseenter",_),t.stopOnMouseEnter&&!t.stopOnInteraction&&N.add(M,"mouseleave",S),t.stopOnFocusIn&&r.on("slideFocusStart",b),t.stopOnFocusIn&&!t.stopOnInteraction&&N.add(r.containerNode(),"focusout",v),t.playOnInit&&v()}function f(){r.off("pointerDown",k).off("pointerUp",E).off("slideFocusStart",b),b(),n=!0,l=!1}function p(){const{ownerWindow:W}=r.internalEngine();W.clearTimeout(a),a=W.setTimeout(P,o[r.selectedScrollSnap()]),i=new Date().getTime(),r.emit("autoplay:timerset")}function h(){const{ownerWindow:W}=r.internalEngine();W.clearTimeout(a),a=0,i=null,r.emit("autoplay:timerstopped")}function v(){if(!n){if(w()){u=!0;return}l||r.emit("autoplay:play"),p(),l=!0}}function b(){n||(l&&r.emit("autoplay:stop"),h(),l=!1)}function y(){if(w())return u=l,b();u&&v()}function w(){const{ownerDocument:W}=r.internalEngine();return W.visibilityState==="hidden"}function k(){s||b()}function E(){s||v()}function _(){s=!0,b()}function S(){s=!1,v()}function A(W){typeof W<"u"&&(c=W),v()}function O(){l&&b()}function I(){l&&v()}function L(){return l}function P(){const{index:W}=r.internalEngine(),B=W.clone().add(1).get(),G=r.scrollSnapList().length-1,z=t.stopOnLastSnap&&B===G;if(r.canScrollNext()?r.scrollNext(c):r.scrollTo(0,c),r.emit("autoplay:select"),z)return b();v()}function H(){if(!i)return null;const W=o[r.selectedScrollSnap()],B=new Date().getTime()-i;return W-B}return{name:"autoplay",options:e,init:d,destroy:f,play:A,stop:O,reset:I,isPlaying:L,timeUntilNext:H}}WD.globalOptions=void 0;const qhe=m.createContext({register:e=>{},unRegister:e=>{}}),kEt=()=>{const e=m.useContext(qhe);if(!e)throw new Error("useCarousel must be used within a Carousel");return e};function _Et(){const[e,t]=m.useState([]),r=m.useMemo(()=>({register:n=>{t(fl(o=>{const i=o.findIndex(a=>a.id===n.id);i<0?o.push(n):o[i]=n}))},unRegister:n=>{t(fl(o=>o.filter(i=>i.id!==n)))}}),[t]);return{carouselItems:e,carouselContextValue:r}}const bi={orientation:"horizontal",indicators:!0,autoplay:!1,controls:!0,loop:!1,startIndex:0,transitionDuration:25,autoplayInterval:5e3,stopAutoplayOnInteraction:!0},TEt=m.forwardRef(function({orientation:t=bi.orientation,children:r,style:n,indicators:o=bi.indicators,onDisplayDidChange:i=bt,autoplay:a=bi.autoplay,controls:l=bi.controls,loop:s=bi.loop,startIndex:u=bi.startIndex,prevIcon:c,nextIcon:d,transitionDuration:f=bi.transitionDuration,autoplayInterval:p=bi.autoplayInterval,stopAutoplayOnInteraction:h=bi.stopAutoplayOnInteraction,registerComponentApi:v},b){const y=m.useRef(null),[w,k]=m.useState(0),[E,_]=m.useState([]),[S,A]=m.useState(!1),{carouselContextValue:O,carouselItems:I}=_Et(),L=b?Un(y,b):y,[P,H]=FD({axis:t==="horizontal"?"x":"y",loop:s,startIndex:u,duration:f},E),j=c||t==="horizontal"?"arrowleft":"arrowup",W=d||t==="horizontal"?"arrowright":"arrowdown";m.useEffect(()=>{a&&_([WD({delay:p,stopOnInteraction:h})])},[p,a,h]);const B=m.useCallback(()=>{var oe;const ee=(oe=H==null?void 0:H.plugins())==null?void 0:oe.autoplay;if(!ee)return;(ee.isPlaying()?ee.stop:ee.play)()},[H]);m.useEffect(()=>{var ae;const ee=(ae=H==null?void 0:H.plugins())==null?void 0:ae.autoplay;ee&&(A(ee.isPlaying()),H.on("autoplay:play",()=>A(!0)).on("autoplay:stop",()=>A(!1)).on("reInit",()=>A(ee.isPlaying())))},[H]);const G=m.useCallback(ee=>{H==null||H.scrollTo(ee)},[H]),[z,F]=m.useState(!1),[V,N]=m.useState(!1),Y=m.useCallback(ee=>{if(!ee)return;const ae=ee.selectedScrollSnap();i(ae),k(ae),F(ee.canScrollPrev()),N(ee.canScrollNext())},[i]),q=m.useCallback(()=>{H&&(H==null||H.scrollPrev())},[H]),M=m.useCallback(()=>{H==null||H.scrollNext()},[H]),K=m.useCallback(ee=>{t==="horizontal"?ee.key==="ArrowLeft"?(ee.preventDefault(),q()):ee.key==="ArrowRight"&&(ee.preventDefault(),M()):ee.key==="ArrowUp"?(ee.preventDefault(),q()):ee.key==="ArrowDown"&&(ee.preventDefault(),M())},[t,q,M]);return m.useEffect(()=>{v==null||v({scrollTo:G,scrollPrev:q,scrollNext:M,canScrollPrev:()=>z,canScrollNext:()=>V})},[v,G,q,M,z,V]),m.useEffect(()=>{if(H)return Y(H),H.on("init",Y),H.on("reInit",Y),H.on("select",Y),()=>{H==null||H.off("select",Y)}},[H,Y]),m.useEffect(()=>{y!=null&&y.current&&y.current.addEventListener("keydown",K)},[L,K]),C.jsx(qhe.Provider,{value:O,children:C.jsxs("div",{style:n,ref:L,className:ze(ya.carousel),role:"region",tabIndex:-1,"aria-roledescription":"carousel",children:[C.jsx("div",{ref:P,className:ya.carouselContentWrapper,children:C.jsx("div",{className:ze(ya.carouselContent,{[ya.horizontal]:t==="horizontal",[ya.vertical]:t==="vertical"}),children:r})}),l&&C.jsxs("div",{className:ya.controls,children:[a&&C.jsx("button",{className:ya.controlButton,onClick:B,children:S?C.jsx(xt,{name:"pause"}):C.jsx(xt,{name:"play"})}),C.jsx("button",{className:ya.controlButton,disabled:!z,onClick:q,children:C.jsx(xt,{name:j})}),C.jsx("button",{className:ya.controlButton,onClick:M,disabled:!V,children:C.jsx(xt,{name:W})})]}),o&&C.jsx("div",{className:ya.indicators,children:I.map((ee,ae)=>C.jsx("button",{type:"button",onClick:()=>G(ae),className:ze(ya.indicator,{[ya.active]:ae===w}),"aria-current":ae===w},ae))})]})})}),Bn="Carousel",Ghe={status:"in progress",description:"This component displays a slideshow by cycling through elements (images, text, or custom slides) like a carousel.",props:{orientation:{description:"This property indicates the orientation of the carousel. The `horizontal` value indicates that the carousel moves horizontally, and the `vertical` value indicates that the carousel moves vertically.",availableValues:jT,valueType:"string",defaultValue:bi.orientation},indicators:{description:"This property indicates whether the carousel displays the indicators.",valueType:"boolean",defaultValue:bi.indicators},controls:{description:"This property indicates whether the carousel displays the controls.",valueType:"boolean",defaultValue:bi.controls},autoplay:{description:"This property indicates whether the carousel automatically scrolls.",valueType:"boolean",defaultValue:bi.autoplay},loop:{description:"This property indicates whether the carousel loops.",valueType:"boolean",defaultValue:bi.loop},startIndex:{description:"This property indicates the index of the first slide to display.",valueType:"number",defaultValue:bi.startIndex},transitionDuration:{description:"This property indicates the duration of the transition between slides.",valueType:"number",defaultValue:bi.transitionDuration},autoplayInterval:{description:"This property specifies the interval between autoplay transitions.",valueType:"number",defaultValue:bi.autoplayInterval},stopAutoplayOnInteraction:{description:"This property indicates whether autoplay stops on interaction.",valueType:"boolean",defaultValue:bi.stopAutoplayOnInteraction},prevIcon:{description:"This property specifies the icon to display for the previous control.",valueType:"string"},nextIcon:{description:"This property specifies the icon to display for the next control.",valueType:"string"},keyboard:{description:"This property indicates whether the carousel responds to keyboard events.",valueType:"boolean"}},events:{displayDidChange:Ei(Bn)},apis:{canScrollPrev:re("This method returns `true` if the carousel can scroll to the previous slide."),canScrollNext:re("This method returns `true` if the carousel can scroll to the next slide."),scrollTo:re("This method scrolls the carousel to the specified slide index."),scrollPrev:re("This method scrolls the carousel to the previous slide."),scrollNext:re("This method scrolls the carousel to the next slide.")},themeVars:Ze(ya.themeVars),themeVarDescriptions:{[`width-indicator-${Bn}`]:"Sets the width of the indicator."},defaultThemeVars:{[`backgroundColor-control-${Bn}`]:"$color-primary",[`textColor-control-${Bn}`]:"$textColor",[`backgroundColor-control-hover-${Bn}`]:"$color-primary",[`textColor-control-hover-${Bn}`]:"$textColor",[`backgroundColor-control-active-${Bn}`]:"$color-primary",[`backgroundColor-control-disabled-${Bn}`]:"$color-surface-200",[`textColor-control-disabled-${Bn}`]:"$textColor-disabled",[`textColor-control-active-${Bn}`]:"$color-primary",[`backgroundColor-indicator-${Bn}`]:"$color-surface-200",[`backgroundColor-indicator-active-${Bn}`]:"$color-primary",[`textColor-indicator-${Bn}`]:"$color-primary",[`textColor-indicator-active-${Bn}`]:"$color-primary",[`backgroundColor-indicator-hover-${Bn}`]:"$color-surface-200",[`textColor-indicator-hover-${Bn}`]:"$color-primary",[`width-indicator-${Bn}`]:"25px",[`height-indicator-${Bn}`]:"6px",[`height-control-${Bn}`]:"36px",[`width-control-${Bn}`]:"36px",[`borderRadius-control-${Bn}`]:"50%",[`height-${Bn}`]:"100%",[`width-${Bn}`]:"100%"}},SEt=we(Bn,Ghe,({node:e,renderChild:t,layoutCss:r,extractValue:n,lookupEventHandler:o,registerComponentApi:i})=>{var a,l,s,u,c,d,f,p,h,v,b,y;return C.jsx(TEt,{style:r,stopAutoplayOnInteraction:n.asOptionalBoolean((a=e.props)==null?void 0:a.stopAutoplayOnInteraction),autoplayInterval:n.asOptionalNumber((l=e.props)==null?void 0:l.autoplayInterval),transitionDuration:n.asOptionalNumber((s=e.props)==null?void 0:s.transitionDuration),indicators:n.asOptionalBoolean((u=e.props)==null?void 0:u.indicators),controls:n.asOptionalBoolean((c=e.props)==null?void 0:c.controls),orientation:n((d=e.props)==null?void 0:d.orientation),onDisplayDidChange:o("displayDidChange"),autoplay:n.asOptionalBoolean((f=e.props)==null?void 0:f.autoplay),registerComponentApi:i,loop:n.asOptionalBoolean((p=e.props)==null?void 0:p.loop),startIndex:n.asOptionalNumber((h=e.props)==null?void 0:h.startIndex),prevIcon:n((v=e.props)==null?void 0:v.prevIcon),nextIcon:n((b=e.props)==null?void 0:b.nextIcon),keyboard:n.asOptionalBoolean((y=e.props)==null?void 0:y.keyboard),children:t(e.children)})}),EEt=m.forwardRef(function({children:t,style:r},n){const o=m.useId(),{register:i,unRegister:a}=kEt();return m.useEffect(()=>{i({id:o})},[o,t,r,i,n]),m.useEffect(()=>()=>{a(o)},[o,a]),C.jsx("div",{role:"group","aria-roledescription":"slide",className:ze(ya.carouselItem),children:C.jsx("div",{className:ya.innerWrapper,ref:n,style:r,children:t})},o)}),AEt="CarouselItem",OEt={status:"in progress"},IEt=we(AEt,OEt,e=>{const{node:t,renderChild:r}=e;return C.jsx(EEt,{children:r(t.children)})}),REt={breakout:"_breakout_ovaa2_1"},PEt=({children:e})=>C.jsx("div",{className:REt.breakout,children:e}),Yhe="Breakout",Khe={status:"stable",description:`The \`${Yhe}\` component creates a breakout section. It allows its child to occupy the entire width of the UI even if the app or the parent container constrains the maximum content width.`},LEt=we(Yhe,Khe,({node:e,renderChild:t})=>C.jsx(PEt,{children:t(e.children)})),a4="ToneChangerButton",F2={lightToDarkIcon:"lightToDark:ToneChangerButton",darkToLightIcon:"darkToLight:ToneChangerButton",onClick:Lf},Xhe={status:"stable",description:"`ToneChangerButton` enables the user to switch between light and dark modes.",props:{lightToDarkIcon:{description:`The icon displayed when the theme is in light mode and will switch to dark. You can change the default icon for all ${a4} instances with the "icon.lightToDark:ToneChangerButton" declaration in the app configuration file.`,defaultValue:F2.lightToDarkIcon},darkToLightIcon:{description:`The icon displayed when the theme is in dark mode and will switch to light. You can change the default icon for all ${a4} instances with the "icon.darkToLight:ToneChangerButton" declaration in the app configuration file.`,defaultValue:F2.darkToLightIcon}},events:{click:Xp(a4)}};function Qhe({lightToDarkIcon:e=F2.lightToDarkIcon,darkToLightIcon:t=F2.darkToLightIcon,onClick:r=F2.onClick}){const{activeThemeTone:n,setActiveThemeTone:o}=Wv(),i=n==="light"?e:t,a=n==="light"?"lightToDark":"darkToLight";return C.jsx(cn,{variant:"ghost",style:{flexShrink:0},icon:C.jsx(xt,{name:i,fallback:a}),onClick:()=>{n==="light"?(o("dark"),r==null||r("dark")):(o("light"),r==null||r("light"))}})}const HEt=we(a4,Xhe,({node:e,extractValue:t,lookupEventHandler:r})=>C.jsx(Qhe,{onClick:r("click"),lightToDarkIcon:t.asOptionalString(e.props.lightToDarkIcon),darkToLightIcon:t.asOptionalString(e.props.darkToLightIcon)})),sg={themeVars:`'{"borderColor-ToneSwitch": "var(--xmlui-borderColor-ToneSwitch)", "borderColor-ToneSwitch--hover": "var(--xmlui-borderColor-ToneSwitch--hover)", "backgroundColor-ToneSwitch-light": "var(--xmlui-backgroundColor-ToneSwitch-light)", "color-ToneSwitch-light": "var(--xmlui-color-ToneSwitch-light)", "backgroundColor-ToneSwitch-dark": "var(--xmlui-backgroundColor-ToneSwitch-dark)", "color-ToneSwitch-dark": "var(--xmlui-color-ToneSwitch-dark)"}'`,iconSwitch:"_iconSwitch_11f3w_13",iconThumb:"_iconThumb_11f3w_30",light:"_light_11f3w_43",dark:"_dark_11f3w_47",icon:"_icon_11f3w_13"},NEt="sun",$Et="moon";function DEt({iconLight:e=NEt,iconDark:t=$Et}){const{activeThemeTone:r,setActiveThemeTone:n}=Wv(),o=i=>{n(i?"dark":"light")};return C.jsx("div",{style:{width:"fit-content",display:"inline-block"},className:"toneSwitchContainer",children:C.jsx(am,{value:r==="dark",onDidChange:o,variant:"switch",style:{width:"fit-content"},inputRenderer:i=>C.jsx("div",{className:ze(sg.iconSwitch,{[sg.light]:!i.$checked,[sg.dark]:i.$checked}),children:C.jsx("div",{className:sg.iconThumb,children:i.$checked?C.jsx(xt,{name:t,fallback:"moon",className:sg.icon}):C.jsx(xt,{name:e,fallback:"sun",className:sg.icon})})})})})}const Du="ToneSwitch",Zhe={status:"stable",description:"`ToneSwitch` enables the user to switch between light and dark modes using a switch control.",props:{iconLight:{type:"string",description:"Icon to display for light mode",defaultValue:"sun"},iconDark:{type:"string",description:"Icon to display for dark mode",defaultValue:"moon"}},themeVars:Ze(sg.themeVars),limitThemeVarsToComponent:!0,defaultThemeVars:{[`backgroundColor-${Du}-light`]:"$color-surface-200",[`color-${Du}-light`]:"$color-text-primary",[`backgroundColor-${Du}-dark`]:"$color-primary-500",[`color-${Du}-dark`]:"$color-surface-0",[`borderColor-${Du}`]:"$color-surface-200",[`borderColor-${Du}--hover`]:"$color-surface-300",dark:{[`backgroundColor-${Du}-light`]:"$color-surface-700",[`color-${Du}-light`]:"$color-text-primary",[`borderColor-${Du}`]:"$color-surface-600",[`borderColor-${Du}--hover`]:"$color-surface-500"}}},BEt=we(Du,Zhe,({node:e,extractValue:t})=>C.jsx(DEt,{iconLight:t(e.props.iconLight),iconDark:t(e.props.iconDark)})),jEt={method:"get"};function MEt({registerComponentApi:e,node:t,uid:r}){const n=zt(async(o,...i)=>{var l,s,u,c;const a=i[1];return await Hpe(o,{...t.props,body:t.props.body||(a!=null&&a.passAsDefaultBody?i[0]:void 0),uid:r,params:{$param:i[0],$params:i},onError:(l=t.events)==null?void 0:l.error,onProgress:(s=t.events)==null?void 0:s.progress,onBeforeRequest:(u=t.events)==null?void 0:u.beforeRequest,onSuccess:(c=t.events)==null?void 0:c.success},{resolveBindingExpressions:!0})});return m.useEffect(()=>{e({execute:n,_SUPPORT_IMPLICIT_CONTEXT:!0})},[n,e]),null}const l4="APICall",Jhe={status:"stable",description:"`APICall` creates, updates or deletes data on the backend, versus [`DataSource`](/components/DataSource) which fetches data. Unlike DataSource, APICall doesn't automatically execute - you must trigger it manually with the `execute()` method, typically from form submissions or button clicks.",props:{method:{description:"The method of data manipulation can be done via setting this property.",valueType:"string",availableValues:$Y,defaultValue:jEt.method},url:{description:"Use this property to set the URL to which data will be sent. If not provided, an empty URL is used.",isRequired:!0,valueType:"string"},rawBody:{description:"This optional property sets the request body to the value provided here without any conversion. Use the * `body` property if you want the object sent in JSON. When you define `body` and `rawBody`, the latest one prevails.",valueType:"string"},body:{description:"This optional property sets the request body. Use to pass an object that will be serialized as a JSON string. If you have an object that is already serialized as a JSON string, use `rawBody` instead.",valueType:"string"},queryParams:{description:"This optional property sets the query parameters for the request. The object you pass here will be serialized to a query string and appended to the request URL. You can specify key and value pairs where the key is the name of a particular query parameter and the value is that parameter's value."},headers:{description:"You can optionally define request header values as key-value pairs, where the key is the ID of the particular header and the value is that header's corresponding value."},confirmTitle:{description:`This optional string sets the title in the confirmation dialog that is displayed before the \`${l4}\` is executed.`,valueType:"string"},confirmMessage:{description:`This optional string sets the message in the confirmation dialog that is displayed before the \`${l4}\` is executed.`,valueType:"string"},confirmButtonLabel:{description:`This optional string property enables the customization of the submit button in the confirmation dialog that is displayed before the \`${l4}\` is executed.`,valueType:"string"},inProgressNotificationMessage:{description:"This property customizes the message that is displayed in a toast while the API operation is in progress. If not defined, no progress message is displayed.",valueType:"string"},errorNotificationMessage:{description:"This property defines the message to display automatically when the operation results in an error. You can use the `$error` context value in an expression to refer to the original error message.",valueType:"string"},completedNotificationMessage:{description:"This property defines the message to display automatically when the operation has been completed. When this property is not defined, the completion does not display any message.",valueType:"string"},payloadType:Vn(),invalidates:Vn(),updates:Vn(),optimisticValue:Vn(),getOptimisticValue:Vn()},events:{beforeRequest:{description:"This event fires before the request is sent. Returning an explicit boolean`false` value will prevent the request from being sent."},success:{description:"This event fires when a request results in a success."},error:{description:"This event fires when a request results in an error."},progress:Vn()},contextVars:{$param:{description:"The first parameter passed to `execute()` method"},$params:{description:"Array of all parameters passed to `execute()` method (access with `$params[0]`, `$params[1]`, etc.)"},$result:{description:"Response data (available in `completedNotificationMessage` and `success` event)"},$error:{description:"Error details (available in `errorNotificationMessage` and `error` event)"}},apis:{execute:{description:"This method triggers the invocation of the API. You can pass an arbitrary number of parameters to the method. In the `APICall` instance, you can access those with the `$param` and `$params` context values."}}},zEt=we(l4,Jhe,({node:e,registerComponentApi:t,uid:r,extractValue:n})=>C.jsx(MEt,{registerComponentApi:t,node:e,uid:r})),FEt={enabled:!0},ege=m.memo(e=>{const t=git();return t?C.jsx(t,{...e}):null});ege.displayName="OptionNative";const WEt="Option",tge={status:"stable",description:"`Option` defines selectable items for choice-based components, providing both the underlying value and display text for selection interfaces. It serves as a non-visual data structure that describes individual choices within [Select](/components/Select), [AutoComplete](/components/AutoComplete), and other selection components.",props:{label:re("This property defines the text to display for the option. If `label` is not defined, `Option` will use the `value` as the label."),value:re("This property defines the value of the option. If `value` is not defined, `Option` will use the `label` as the value. If neither is defined, the option is not displayed."),enabled:{description:"This boolean property indicates whether the option is enabled or disabled.",valueType:"boolean",defaultValue:FEt.enabled},optionTemplate:re("This property is used to define a custom option template")},childrenAsTemplate:"optionTemplate"},VEt=we(WEt,tge,({node:e,extractValue:t,layoutCss:r,renderChild:n,layoutContext:o})=>{const i=e.props.optionTemplate,a=t.asOptionalString(e.props.label)||t(e.props.value),l=t.asOptionalString(e.props.value)||t(e.props.label);return a===void 0?null:C.jsx(ege,{optionRenderer:i?s=>C.jsx(Oi,{node:i,renderChild:n,contextVars:s,layoutContext:o}):void 0,label:a,value:l,enabled:t.asOptionalBoolean(e.props.enabled),style:r})}),Zn="AutoComplete",rge={status:"experimental",description:"`AutoComplete` is a searchable dropdown input that allows users to type and filter through options, with support for single or multiple selections. Unlike a basic [`Select`](/components/Select), it provides type-ahead functionality and can allow users to create new options.",props:{placeholder:Df(),initialValue:Ba(),maxLength:sy(),autoFocus:{...Bi(),defaultValue:Io.autoFocus},required:{...bl(),defaultValue:Io.required},readOnly:{...gl(),defaultValue:Io.readOnly},enabled:{...So(),defaultValue:Io.enabled},creatable:re("This property allows the user to create new items that are not present in the list of options.",null,"boolean",Io.creatable),validationStatus:{...vl(),defaultValue:Io.validationStatus},label:io(),labelPosition:{...$a(),defaultValue:Io.labelPosition},labelWidth:Da(Zn),labelBreak:hl(Zn),dropdownHeight:re("This property sets the height of the dropdown list."),multi:{...BY(),defaultValue:Io.multi},optionTemplate:xr("This property enables the customization of list items. To access the attributes of a list item use the `$item` context variable."),emptyListTemplate:xr("This property defines the template to display when the list of options is empty.")},events:{gotFocus:Ha(Zn),lostFocus:Na(Zn),didChange:Ei(Zn)},apis:{focus:au(Zn),value:re("You can query the component's value. If no value is set, it will retrieve `undefined`."),setValue:us()},contextVars:{$item:re("This context value represents an item when you define an option item template. Use `$item.value` and `$item.label` to refer to the value and label of the particular option.")},themeVars:Ze(mi.themeVars),defaultThemeVars:{[`backgroundColor-menu-${Zn}`]:"$backgroundColor-primary",[`boxShadow-menu-${Zn}`]:"$boxShadow-md",[`borderRadius-menu-${Zn}`]:"$borderRadius",[`borderWidth-menu-${Zn}`]:"1px",[`borderColor-menu-${Zn}`]:"$borderColor",[`backgroundColor-item-${Zn}`]:"$backgroundColor-dropdown-item",[`backgroundColor-item-${Zn}--hover`]:"$backgroundColor-dropdown-item--active",[`backgroundColor-item-${Zn}--active`]:"$backgroundColor-dropdown-item--active","minHeight-Input":"39px",[`backgroundColor-${Zn}-badge`]:"$color-primary-500",[`fontSize-${Zn}-badge`]:"$fontSize-small",[`paddingHorizontal-${Zn}-badge`]:"$space-2",[`paddingVertical-${Zn}-badge`]:"$space-1",[`backgroundColor-${Zn}-badge--hover`]:"$color-primary-400",[`backgroundColor-${Zn}-badge--active`]:"$color-primary-500",[`textColor-item-${Zn}--disabled`]:"$color-surface-200",[`textColor-${Zn}-badge`]:"$const-color-surface-50"}},UEt=we(Zn,rge,({node:e,state:t,updateState:r,extractValue:n,renderChild:o,lookupEventHandler:i,layoutCss:a,registerComponentApi:l})=>C.jsx(Kae,{multi:n.asOptionalBoolean(e.props.multi),style:a,updateState:r,initialValue:n(e.props.initialValue),value:t==null?void 0:t.value,creatable:n.asOptionalBoolean(e.props.creatable),label:n(e.props.label),labelPosition:n(e.props.labelPosition),labelWidth:n(e.props.labelWidth),labelBreak:n.asOptionalBoolean(e.props.labelBreak),autoFocus:n.asOptionalBoolean(e.props.autoFocus),enabled:n.asOptionalBoolean(e.props.enabled),placeholder:n.asOptionalString(e.props.placeholder),validationStatus:n(e.props.validationStatus),onDidChange:i("didChange"),onFocus:i("gotFocus"),onBlur:i("lostFocus"),registerComponentApi:l,emptyListTemplate:o(e.props.emptyListTemplate),dropdownHeight:n(e.props.dropdownHeight),readOnly:n.asOptionalBoolean(e.props.readOnly),optionRenderer:e.props.optionTemplate?s=>C.jsx(Oi,{node:e.props.optionTemplate,item:s,renderChild:o}):void 0,children:o(e.children)})),s4={themeVars:'"[]"',backdropContainer:"_backdropContainer_18iuc_13",backdrop:"_backdrop_18iuc_13",overlay:"_overlay_18iuc_26"},u4={backgroundColor:"black",opacity:"0.1"},qEt=m.forwardRef(function({style:t,children:r,overlayTemplate:n,backgroundColor:o=u4.backgroundColor,opacity:i=u4.opacity},a){const l={...t,width:void 0};return C.jsxs("div",{className:s4.backdropContainer,style:{width:t.width??"fit-content"},ref:a,children:[r,C.jsx("div",{className:s4.backdrop,style:{...l,backgroundColor:o,opacity:i}}),n&&C.jsx("div",{className:s4.overlay,children:n})]})}),nge="Backdrop",oge={status:"stable",description:`The \`${nge}\` component is a semi-transparent overlay that appears on top of its child component to obscure or highlight the content behind it.`,props:{overlayTemplate:xr("This property defines the component template for an optional overlay to display over the component."),backgroundColor:{description:"The background color of the backdrop.",valueType:"string",defaultValue:u4.backgroundColor},opacity:{description:"The opacity of the backdrop.",valueType:"string",defaultValue:u4.opacity}},themeVars:Ze(s4.themeVars)},GEt=we(nge,oge,({node:e,extractValue:t,renderChild:r,layoutCss:n})=>{var o;return C.jsx(qEt,{style:n,overlayTemplate:r((o=e.props)==null?void 0:o.overlayTemplate),backgroundColor:t.asOptionalString(e.props.backgroundColor),opacity:t.asString(e.props.opacity),children:r(e.children)})}),ige={status:"deprecated",description:"This component renders an HTML `a` tag.",isHtmlTag:!0,props:{href:re("Specifies the URL of the page the link goes to"),target:re("Specifies where to open the linked document"),rel:re("Specifies the relationship between the current document and the linked document"),download:re("Indicates that the target will be downloaded when a user clicks on the hyperlink"),hreflang:re("Specifies the language of the linked document"),type:re("Specifies the MIME type of the linked document"),ping:re("Specifies a space-separated list of URLs to be notified if the user follows the hyperlink"),referrerPolicy:re("Specifies the referrer policy for the element"),disabled:re("Specifies that the link should be disabled")}},age=we("a",ige,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{disabled:a}=i.asOptionalBoolean("disabled"),{href:l,...s}=i.asRest();return C.jsx(Dy,{to:l,disabled:a??!1,style:o,...s,children:t(e.children)})}),YEt={status:"deprecated",description:"This component renders an HTML `abbr` tag.",isHtmlTag:!0},lge=we("abbr",YEt,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"abbr",children:t(e.children)})}),sge={status:"deprecated",description:"This component renders an HTML `address` tag.",isHtmlTag:!0},uge=we("address",sge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("address",{style:o,...a,children:t(e.children)})}),cge={status:"deprecated",description:"This component renders an HTML `area` tag.",isHtmlTag:!0,props:{alt:re("Specifies an alternate text for the area"),coords:re("Specifies the coordinates of the area"),download:re("Indicates that the target will be downloaded when a user clicks on the area"),href:re("Specifies the URL of the linked document"),hrefLang:re("Specifies the language of the linked document"),referrerPolicy:re("Specifies the referrer policy for the area"),rel:re("Specifies the relationship between the current document and the linked document"),shape:re("Specifies the shape of the area"),target:re("Specifies where to open the linked document"),media:re("Specifies a media query for the linked resource")}},dge=we("area",cge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("area",{style:o,...a,children:t(e.children)})}),fge={status:"deprecated",description:"This component renders an HTML `article` tag.",isHtmlTag:!0},mge=we("article",fge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("article",{style:o,...a,children:t(e.children)})}),pge={status:"deprecated",description:"This component renders an HTML `aside` tag.",isHtmlTag:!0},hge=we("aside",pge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("aside",{style:o,...a,children:t(e.children)})}),gge={status:"deprecated",description:"This component renders an HTML `audio` tag.",isHtmlTag:!0,props:{autoPlay:re("Specifies that the audio will start playing as soon as it is ready"),controls:re("Specifies that audio controls should be displayed"),crossOrigin:re("Specifies how the element handles cross-origin requests"),loop:re("Specifies that the audio will start over again every time it is finished"),muted:re("Specifies that the audio output should be muted"),preload:re("Specifies if and how the author thinks the audio should be loaded when the page loads"),src:re("Specifies the URL of the audio file")}},vge=we("audio",gge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{autoPlay:a,controls:l,loop:s,muted:u}=i.asOptionalBoolean("autoPlay","controls","loop","muted"),c=i.asRest();return C.jsx("audio",{style:o,autoPlay:a??!1,controls:l??!1,loop:s??!1,muted:u??!1,...c,children:t(e.children)})}),bge={status:"deprecated",description:"This component renders an HTML `b` tag.",isHtmlTag:!0},xge=we("b",bge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("b",{style:o,...a,children:t(e.children)})}),yge={status:"deprecated",description:"This component renders an HTML `bdi` tag.",isHtmlTag:!0},wge=we("bdi",yge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("bdi",{style:o,...a,children:t(e.children)})}),Cge={status:"deprecated",description:"This component renders an HTML `bdo` tag.",isHtmlTag:!0,props:{dir:re("Specifies the text direction override")}},kge=we("bdo",Cge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("bdo",{style:o,...a,children:t(e.children)})}),_ge={status:"deprecated",description:"This component renders an HTML `blockquote` tag.",isHtmlTag:!0,props:{cite:re("Specifies the source of the quotation")}},Tge=we("blockquote",_ge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("blockquote",{style:o,...a,children:t(e.children)})}),Sge={status:"deprecated",description:"This component renders an HTML `br` tag.",isHtmlTag:!0},Ege=we("br",Sge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("br",{style:o,...a,children:t(e.children)})}),Age={status:"deprecated",description:"This component renders an HTML `button` tag.",isHtmlTag:!0,props:{autoFocus:re("Specifies that the button should automatically get focus when the page loads"),disabled:re("Specifies that the button should be disabled"),form:re("Specifies the form the button belongs to"),formAction:re("Specifies the URL of a file that processes the information submitted by the button"),formEncType:re("Specifies how the form-data should be encoded when submitting it to the server"),formMethod:re("Specifies the HTTP method to use when sending form-data"),formNoValidate:re("Specifies that the form should not be validated when submitted"),formTarget:re("Specifies where to display the response after submitting the form"),name:re("Specifies a name for the button"),type:re("Specifies the type of the button"),value:re("Specifies the value associated with the button")}},Oge=we("button",Age,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{autoFocus:a,disabled:l,formNoValidate:s}=i.asOptionalBoolean("autoFocus","disabled","formNoValidate"),u=i.asRest();return C.jsx("button",{style:o,autoFocus:a??!1,disabled:l??!1,formNoValidate:s??!1,...u,children:t(e.children)})}),Ige={status:"deprecated",description:"This component renders an HTML `canvas` tag.",isHtmlTag:!0,props:{width:re("Specifies the width of the canvas"),height:re("Specifies the height of the canvas")}},Rge=we("canvas",Ige,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),a=i.asOptionalNumber("width","height"),l=i.asRest();return C.jsx("canvas",{style:o,...a,...l,children:t(e.children)})}),Pge={status:"deprecated",description:"This component renders an HTML `caption` tag.",isHtmlTag:!0},Lge=we("caption",Pge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("caption",{style:o,...a,children:t(e.children)})}),Hge={status:"deprecated",description:"This component renders an HTML `cite` tag.",isHtmlTag:!0},Nge=we("cite",Hge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"cite",children:t(e.children)})}),c4={status:"deprecated",description:"This component renders an HTML `code` tag.",isHtmlTag:!0},$ge=we("code",c4,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"code",children:t(e.children)})}),Dge={status:"deprecated",description:"This component renders an HTML `col` tag.",isHtmlTag:!0,props:{span:re("Specifies the number of columns a `col` element should span")}},Bge=we("col",Dge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{span:a}=i.asOptionalNumber("span"),l=i.asRest();return C.jsx("col",{style:o,span:a,...l,children:t(e.children)})}),jge={status:"deprecated",description:"This component renders an HTML `colgroup` tag.",isHtmlTag:!0,props:{span:re("Specifies the number of columns in a `colgroup`")}},Mge=we("colgroup",jge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{span:a}=i.asOptionalNumber("span"),l=i.asRest();return C.jsx("colgroup",{style:o,span:a,...l,children:t(e.children)})}),zge={status:"deprecated",description:"This component renders an HTML `data` tag.",isHtmlTag:!0,props:{value:re("Specifies the machine-readable value of the element")}},Fge=we("data",zge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("data",{style:o,...a,children:t(e.children)})}),Wge={status:"deprecated",description:"This component renders an HTML `datalist` tag.",isHtmlTag:!0},Vge=we("datalist",Wge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("datalist",{style:o,...a,children:t(e.children)})}),Uge={status:"deprecated",description:"This component renders an HTML `dd` tag.",isHtmlTag:!0},qge=we("dd",Uge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("dd",{style:o,...a,children:t(e.children)})}),Gge={status:"deprecated",description:"This component renders an HTML `del` tag.",isHtmlTag:!0,props:{cite:re("Specifies the source of the quotation"),dateTime:re("Specifies the date and time of the edit")}},Yge=we("del",Gge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"deleted",children:t(e.children)})}),Kge={status:"deprecated",description:"This component renders an HTML `details` tag.",isHtmlTag:!0,props:{open:re("Specifies that the details are visible (open)")},themeVars:Ze(er.themeVarsDetails),defaultThemeVars:{"marginTop-HtmlDetails":"1rem","marginBottom-HtmlDetails":"1rem"}},Xge=we("details",Kge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{open:a}=i.asOptionalBoolean("open"),l=i.asRest();return C.jsx("details",{style:o,className:er.htmlDetails,open:a??!1,...l,children:t(e.children)})}),Qge={status:"deprecated",description:"This component renders an HTML `dfn` tag.",isHtmlTag:!0},Zge=we("dfn",Qge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("dfn",{style:o,...a,children:t(e.children)})}),Jge={status:"deprecated",description:"This component renders an HTML `dialog` tag.",isHtmlTag:!0,props:{open:re("Specifies that the dialog is open")}},eve=we("dialog",Jge,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{open:a}=i.asOptionalBoolean("open"),l=i.asRest();return C.jsx("dialog",{style:o,open:a??!1,...l,children:t(e.children)})}),tve={status:"deprecated",description:"This component renders an HTML `div` tag.",isHtmlTag:!0},rve=we("div",tve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("div",{style:o,...a,children:t(e.children)})}),nve={status:"deprecated",description:"This component renders an HTML `dl` tag.",isHtmlTag:!0},ove=we("dl",nve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("dl",{style:o,...a,children:t(e.children)})}),ive={status:"deprecated",description:"This component renders an HTML `dt` tag.",isHtmlTag:!0},ave=we("dt",ive,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("dt",{style:o,...a,children:t(e.children)})}),VD={status:"deprecated",description:"This component renders an HTML `em` tag.",isHtmlTag:!0},lve=we("em",VD,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"em",children:t(e.children)})}),sve={status:"deprecated",description:"This component renders an HTML `embed` tag.",isHtmlTag:!0,props:{src:re("Specifies the URL of the resource"),type:re("Specifies the type of the resource"),width:re("Specifies the width of the embed"),height:re("Specifies the height of the embed")}},uve=we("embed",sve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{src:a}=i.asUrlResource("src"),l=i.asRest();return C.jsx("embed",{style:o,src:a,...l,children:t(e.children)})}),cve={status:"deprecated",description:"This component renders an HTML `fieldset` tag.",isHtmlTag:!0,props:{disabled:re("Specifies that the fieldset should be disabled"),form:re("Specifies the form the fieldset belongs to"),name:re("Specifies a name for the fieldset")}},dve=we("fieldset",cve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{disabled:a}=i.asOptionalBoolean("disabled"),l=i.asRest();return C.jsx("fieldset",{style:o,disabled:a??!1,...l,children:t(e.children)})}),fve={status:"deprecated",description:"This component renders an HTML `figcaption` tag.",isHtmlTag:!0},mve=we("figcaption",fve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("figcaption",{style:o,...a,children:t(e.children)})}),pve={status:"deprecated",description:"This component renders an HTML `figure` tag.",isHtmlTag:!0},hve=we("figure",pve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("figure",{style:o,...a,children:t(e.children)})}),gve={status:"deprecated",description:"This component renders an HTML `footer` tag.",isHtmlTag:!0},vve=we("footer",gve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("footer",{style:o,...a,children:t(e.children)})}),bve={status:"deprecated",description:"This component renders an HTML `form` tag.",isHtmlTag:!0,props:{acceptCharset:re("Specifies the character encodings that are to be used for the form submission"),action:re("Specifies where to send the form-data when a form is submitted"),autoComplete:re("Specifies whether a form should have auto-completion"),encType:re("Specifies how the form-data should be encoded when submitting it to the server"),method:re("Specifies the HTTP method to use when sending form-data"),name:re("Specifies the name of the form"),noValidate:re("Specifies that the form should not be validated when submitted"),target:re("Specifies where to display the response after submitting the form")}},xve=we("form",bve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{noValidate:a}=i.asOptionalBoolean("noValidate"),l=i.asRest();return C.jsx("form",{style:o,noValidate:a??!1,...l,children:t(e.children)})}),yve={status:"deprecated",description:"This component renders an HTML `h1` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsHeading),defaultThemeVars:{"marginTop-HtmlHeading":"1rem","marginBottom-HtmlHeading":".5rem"}},wve=we("h1",yve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(gc,{style:o,className:er.htmlHeading,...a,level:"h1",children:t(e.children)})}),Cve={status:"deprecated",description:"This component renders an HTML `h2` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsHeading),defaultThemeVars:{"marginTop-HtmlHeading":"1rem","marginBottom-HtmlHeading":".5rem"}},kve=we("h2",Cve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(gc,{style:o,className:er.htmlHeading,...a,level:"h2",children:t(e.children)})}),_ve={status:"deprecated",description:"This component renders an HTML `h3` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsHeading),defaultThemeVars:{"marginTop-HtmlHeading":"1rem","marginBottom-HtmlHeading":".5rem"}},Tve=we("h3",_ve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(gc,{style:o,className:er.htmlHeading,...a,level:"h3",children:t(e.children)})}),Sve={status:"deprecated",description:"This component renders an HTML `h4` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsHeading),defaultThemeVars:{"marginTop-HtmlHeading":"1rem","marginBottom-HtmlHeading":".5rem"}},Eve=we("h4",Sve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(gc,{style:o,className:er.htmlHeading,...a,level:"h4",children:t(e.children)})}),Ave={status:"deprecated",description:"This component renders an HTML `h5` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsHeading),defaultThemeVars:{"marginTop-HtmlHeading":"1rem","marginBottom-HtmlHeading":".5rem"}},Ove=we("h5",Ave,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(gc,{style:o,className:er.htmlHeading,...a,level:"h5",children:t(e.children)})}),Ive={status:"deprecated",description:"This component renders an HTML `h6` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsHeading),defaultThemeVars:{"marginTop-HtmlHeading":"1rem","marginBottom-HtmlHeading":".5rem"}},Rve=we("h6",Ive,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(gc,{style:o,className:er.htmlHeading,...a,level:"h6",children:t(e.children)})}),Pve={status:"deprecated",description:"This component renders an HTML `header` tag.",isHtmlTag:!0},Lve=we("header",Pve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("header",{style:o,...a,children:t(e.children)})}),Hve={status:"deprecated",description:"This component renders an HTML `hr` tag.",isHtmlTag:!0},Nve=we("hr",Hve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("hr",{style:o,...a,children:t(e.children)})}),$ve={status:"deprecated",description:"This component renders an HTML `i` tag.",isHtmlTag:!0},Dve=we("i",$ve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("i",{style:o,...a,children:t(e.children)})}),Bve={status:"deprecated",description:"This component renders an HTML `iframe` tag.",isHtmlTag:!0,props:{src:re("Specifies the URL of the page to embed"),srcDoc:re("Specifies the HTML content of the page to embed"),name:re("Specifies the name of the iframe"),sandbox:re("Specifies a set of extra restrictions for the content in the iframe"),allow:re("Specifies a feature policy for the iframe"),allowFullScreen:re("Specifies that the iframe can be displayed in full-screen mode"),width:re("Specifies the width of the iframe"),height:re("Specifies the height of the iframe"),loading:re("Specifies the loading behavior of the iframe"),referrerPolicy:re("Specifies the referrer policy for the iframe")}},jve=we("iframe",Bve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{src:a}=i.asUrlResource("src"),{allowFullScreen:l}=i.asOptionalBoolean("allowFullScreen"),s=i.asRest();return C.jsx("iframe",{style:o,src:a,allowFullScreen:l??!1,...s,children:t(e.children)})}),Mve={status:"deprecated",description:"This component renders an HTML `img` tag.",isHtmlTag:!0,props:{alt:re("Specifies an alternate text for an image"),height:re("Specifies the height of an image"),src:re("Specifies the path to the image"),width:re("Specifies the width of an image"),useMap:re("Specifies an image as a client-side image map"),loading:re("Specifies the loading behavior of the image"),referrerPolicy:re("Specifies the referrer policy for the image"),sizes:re("Specifies image sizes for different page layouts")}},zve=we("img",Mve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{src:a}=i.asUrlResource("src"),l=i.asRest();return C.jsx("img",{style:o,src:a,...l,children:t(e.children)})}),Fve={status:"deprecated",description:"This component renders an HTML `input` tag.",isHtmlTag:!0,props:{type:re("Specifies the type of input"),value:re("Specifies the value of the input"),placeholder:re("Specifies a short hint that describes the expected value of the input"),autoFocus:re("Specifies that the input should automatically get focus when the page loads"),checked:re("Specifies that the input should be pre-selected"),disabled:re("Specifies that the input should be disabled"),form:re("Specifies the form the input belongs to"),name:re("Specifies the name of the input"),list:re("Specifies the id of a datalist element that contains pre-defined options for the input"),max:re("Specifies the maximum value for an input"),maxLength:re("Specifies the maximum number of characters allowed in an input"),min:re("Specifies the minimum value for an input"),minLength:re("Specifies the minimum number of characters allowed in an input"),multiple:re("Specifies that a user can enter more than one value"),pattern:re("Specifies a regular expression that an input's value is checked against"),readOnly:re("Specifies that the input is read-only"),required:re("Specifies that the input is required"),size:re("Specifies the width, in characters, of an input"),step:re("Specifies the legal number intervals for an input")}},Wve=we("input",Fve,({node:e,extractValue:t,extractResourceUrl:r,layoutCss:n})=>{const o=new qe(t,r,n,e.props),{autoFocus:i,checked:a,disabled:l,readOnly:s,required:u,multiple:c}=o.asOptionalBoolean("autoFocus","checked","disabled","readOnly","required","multiple"),d=o.asOptionalNumber("maxLength","minLength","size"),f=o.asRest();return C.jsx("input",{style:n,autoFocus:i??!1,checked:a??!1,disabled:l??!1,multiple:c??!1,readOnly:s??!1,required:u??!1,...d,...f})}),Vve={status:"deprecated",description:"This component renders an HTML `ins` tag.",isHtmlTag:!0,props:{cite:re("Specifies the source URL for the inserted text"),dateTime:re("Specifies the date and time when the text was inserted")}},Uve=we("ins",Vve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"inserted",children:t(e.children)})}),qve={status:"deprecated",description:"This component renders an HTML `kbd` tag.",isHtmlTag:!0},Gve=we("kbd",qve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"keyboard",children:t(e.children)})}),Yve={status:"deprecated",description:"This component renders an HTML `label` tag.",isHtmlTag:!0,props:{htmlFor:re("Specifies which form element a label is bound to")}},Kve=we("label",Yve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("label",{style:o,...a,children:t(e.children)})}),Xve={status:"deprecated",description:"This component renders an HTML `legend` tag.",isHtmlTag:!0},Qve=we("legend",Xve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("legend",{style:o,...a,children:t(e.children)})}),Zve={status:"deprecated",description:"This component renders an HTML `li` tag.",isHtmlTag:!0,props:{value:re("Specifies the value of the list item (if the parent is an ordered list)")},defaultThemeVars:{"marginLeft-HtmlLi":"$space-6","paddingLeft-HtmlLi":"$space-1"}},Jve=we("li",Zve,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{value:a}=i.asOptionalNumber("value"),l=i.asRest();return C.jsx("li",{style:o,value:a,...l,children:t(e.children)})}),ebe={status:"deprecated",description:"This component renders an HTML `main` tag.",isHtmlTag:!0},tbe=we("main",ebe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("main",{style:o,...a,children:t(e.children)})}),rbe={status:"deprecated",description:"This component renders an HTML `map` tag.",isHtmlTag:!0,props:{name:re("Specifies the name of the map")}},nbe=we("map",rbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("map",{style:o,...a,children:t(e.children)})}),obe={status:"deprecated",description:"This component renders an HTML `mark` tag.",isHtmlTag:!0},ibe=we("mark",obe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"marked",children:t(e.children)})}),abe={status:"deprecated",description:"This component renders an HTML `menu` tag.",isHtmlTag:!0,props:{type:re("Specifies the type of the menu")}},lbe=we("menu",abe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("menu",{style:o,...a,children:t(e.children)})}),sbe={status:"deprecated",description:"This component renders an HTML `meter` tag.",isHtmlTag:!0,props:{min:re("Specifies the minimum value"),max:re("Specifies the maximum value"),low:re("Specifies the lower bound of the high value"),high:re("Specifies the upper bound of the low value"),optimum:re("Specifies the optimal value"),value:re("Specifies the current value")}},ube=we("meter",sbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),a=i.asOptionalNumber("value","min","max","low","high","optimum"),l=i.asRest();return C.jsx("meter",{style:o,...a,...l,children:t(e.children)})}),cbe={status:"deprecated",description:"This component renders an HTML `nav` tag.",isHtmlTag:!0},dbe=we("nav",cbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("nav",{style:o,...a,children:t(e.children)})}),fbe={status:"deprecated",description:"This component renders an HTML `object` tag.",isHtmlTag:!0,props:{data:re("Specifies the URL of the resource"),type:re("Specifies the MIME type of the resource"),name:re("Specifies the name of the object"),form:re("Specifies the form the object belongs to"),width:re("Specifies the width of the object"),height:re("Specifies the height of the object")}},mbe=we("object",fbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("object",{style:o,...a,children:t(e.children)})}),pbe={status:"deprecated",description:"This component renders an HTML `ol` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsList),defaultThemeVars:{"marginTop-HtmlOl":"$space-5","marginBottom-HtmlOl":"$space-5"}},hbe=we("ol",pbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("ol",{style:o,className:er.htmlOl,...a,children:t(e.children)})}),gbe={status:"deprecated",description:"This component renders an HTML `optgroup` tag.",isHtmlTag:!0,props:{label:re("Specifies the label for the option group"),disabled:re("Specifies that the option group is disabled")}},vbe=we("optgroup",gbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{disabled:a}=i.asOptionalBoolean("disabled"),l=i.asRest();return C.jsx("optgroup",{style:o,disabled:a??!1,...l,children:t(e.children)})}),bbe={status:"deprecated",description:"This component renders an HTML `option` tag.",isHtmlTag:!0,props:{disabled:re("Specifies that the option should be disabled"),label:re("Specifies the label of the option"),selected:re("Specifies that the option should be pre-selected"),value:re("Specifies the value of the option")}},xbe=we("option",bbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{disabled:a,selected:l}=i.asOptionalBoolean("disabled","selected"),s=i.asRest();return C.jsx("option",{style:o,disabled:a??!1,selected:l??!1,...s,children:t(e.children)})}),ybe={status:"deprecated",description:"This component renders an HTML `output` tag.",isHtmlTag:!0,props:{form:re("Specifies the form element that the output is associated with"),htmlFor:re("Specifies the IDs of the elements that this output is related to"),name:re("Specifies the name of the output")}},wbe=we("output",ybe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("output",{style:o,...a,children:t(e.children)})}),Cbe={status:"deprecated",description:"This component renders an HTML `p` tag.",isHtmlTag:!0},kbe=we("p",Cbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"paragraph",children:t(e.children)})}),_be={status:"deprecated",description:"This component renders an HTML `param` tag.",isHtmlTag:!0,props:{name:re("Specifies the name of the parameter"),value:re("Specifies the value of the parameter")}},Tbe=we("param",_be,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("param",{style:o,...a,children:t(e.children)})}),Sbe={status:"deprecated",description:"This component renders an HTML `picture` tag.",isHtmlTag:!0},Ebe=we("picture",Sbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("picture",{style:o,...a,children:t(e.children)})}),Abe={status:"deprecated",description:"This component renders an HTML `pre` tag.",isHtmlTag:!0},Obe=we("pre",Abe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"codefence",children:t(e.children)})}),Ibe={status:"deprecated",description:"This component renders an HTML `progress` tag.",isHtmlTag:!0,props:{max:re("Specifies the maximum value of the progress element"),value:re("Specifies the current value of the progress element")}},Rbe=we("progress",Ibe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),a=i.asOptionalNumber("max","value"),l=i.asRest();return C.jsx("progress",{style:o,...a,...l,children:t(e.children)})}),Pbe={status:"deprecated",description:"This component renders an HTML `q` tag.",isHtmlTag:!0,props:{cite:re("Specifies the source URL of the quotation")}},Lbe=we("q",Pbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("q",{style:o,...a,children:t(e.children)})}),Hbe={status:"deprecated",description:"This component renders an HTML `rp` tag.",isHtmlTag:!0},Nbe=we("rp",Hbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("rp",{style:o,...a,children:t(e.children)})}),$be={status:"deprecated",description:"This component renders an HTML `rt` tag.",isHtmlTag:!0},Dbe=we("rt",$be,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("rt",{style:o,...a,children:t(e.children)})}),Bbe={status:"deprecated",description:"This component renders an HTML `ruby` tag.",isHtmlTag:!0},jbe=we("ruby",Bbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("ruby",{style:o,...a,children:t(e.children)})}),Mbe={status:"deprecated",description:"This component renders an HTML `s` tag.",isHtmlTag:!0},zbe=we("s",Mbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("s",{style:o,...a,children:t(e.children)})}),Fbe={status:"deprecated",description:"This component renders an HTML `samp` tag.",isHtmlTag:!0},Wbe=we("samp",Fbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"sample",children:t(e.children)})}),Vbe={status:"deprecated",description:"This component renders an HTML `section` tag.",isHtmlTag:!0},Ube=we("section",Vbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("section",{style:o,...a,children:t(e.children)})}),qbe={status:"deprecated",description:"This component renders an HTML `select` tag.",isHtmlTag:!0,props:{autoFocus:re("Specifies that the select should automatically get focus when the page loads"),disabled:re("Specifies that the select should be disabled"),form:re("Specifies the form the select belongs to"),multiple:re("Specifies that multiple options can be selected at once"),name:re("Specifies the name of the select"),required:re("Specifies that the select is required"),size:re("Specifies the number of visible options in the select")}},Gbe=we("select",qbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{autoFocus:a,disabled:l,multiple:s,required:u}=i.asOptionalBoolean("autoFocus","disabled","multiple","required"),{size:c}=i.asOptionalNumber("size"),d=i.asRest();return C.jsx("select",{style:o,autoFocus:a??!1,disabled:l??!1,multiple:s??!1,required:u??!1,size:c,...d,children:t(e.children)})}),Ybe={status:"deprecated",description:"This component renders an HTML `small` tag.",isHtmlTag:!0},Kbe=we("small",Ybe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"small",children:t(e.children)})}),Xbe={status:"deprecated",description:"This component renders an HTML `source` tag.",isHtmlTag:!0,props:{src:re("Specifies the URL of the media file"),type:re("Specifies the type of the media file"),media:re("Specifies a media query for the media file"),srcSet:re("Specifies the source set for responsive images"),sizes:re("Specifies the sizes attribute for responsive images")}},Qbe=we("source",Xbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{src:a}=i.asUrlResource("src"),l=i.asRest();return C.jsx("source",{style:o,src:a,...l,children:t(e.children)})}),Zbe={status:"deprecated",description:"This component renders an HTML `span` tag.",isHtmlTag:!0},Jbe=we("span",Zbe,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("span",{style:o,...a,children:t(e.children)})}),e0e={status:"deprecated",description:"This component renders an HTML `strong` tag.",isHtmlTag:!0},t0e=we("strong",e0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"strong",children:t(e.children)})}),r0e={status:"deprecated",description:"This component renders an HTML `sub` tag.",isHtmlTag:!0},n0e=we("sub",r0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"sub",children:t(e.children)})}),o0e={status:"deprecated",description:"This component renders an HTML `summary` tag.",isHtmlTag:!0},i0e=we("summary",o0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("summary",{style:o,...a,children:t(e.children)})}),a0e={status:"deprecated",description:"This component renders an HTML `sup` tag.",isHtmlTag:!0},l0e=we("sup",a0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"sup",children:t(e.children)})}),s0e={status:"deprecated",description:"This component renders an HTML `table` tag.",isHtmlTag:!0,props:{border:re("Specifies the width of the border around the table"),cellPadding:re("Specifies the space between the cell content and its borders"),cellSpacing:re("Specifies the space between cells"),summary:re("Provides a summary of the table's purpose and structure"),width:re("Specifies the width of the table"),align:re("Specifies the alignment of the table"),frame:re("Specifies which parts of the table frame to render"),rules:re("Specifies which rules to draw between cells")},themeVars:Ze(er.themeVarsTable),defaultThemeVars:{"backgroundColor-HtmlTable":"$backgroundColor","border-HtmlTable":"1px solid $borderColor","marginBottom-HtmlTable":"$space-4","marginTop-HtmlTable":"$space-4"}},u0e=we("table",s0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("table",{style:o,className:er.htmlTable,...a,children:t(e.children)})}),c0e={status:"deprecated",description:"This component renders an HTML `tbody` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsTbody)},d0e=we("tbody",c0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("tbody",{style:o,className:er.htmlTbody,...a,children:t(e.children)})}),f0e={status:"deprecated",description:"This component renders an HTML `td` tag.",isHtmlTag:!0,props:{align:re("Specifies the horizontal alignment of the content in the cell"),colSpan:re("Specifies the number of columns a cell should span"),headers:re("Specifies a list of header cells the current cell is related to"),rowSpan:re("Specifies the number of rows a cell should span"),valign:re("Specifies the vertical alignment of the content in the cell"),scope:re("Specifies whether a cell is a header for a column, row, or group of columns or rows"),abbr:re("Specifies an abbreviated version of the content in the cell"),height:re("Specifies the height of the cell"),width:re("Specifies the width of the cell")},themeVars:Ze(er.themeVarsTd),defaultThemeVars:{"padding-HtmlTd":"$space-2","borderBottom-HtmlTd":"1px solid $borderColor"}},m0e=we("td",f0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("td",{style:o,className:er.htmlTd,...a,children:t(e.children)})}),p0e={status:"deprecated",description:"This component renders an HTML `template` tag.",isHtmlTag:!0},h0e=we("template",p0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("template",{style:o,...a,children:t(e.children)})}),g0e={status:"deprecated",description:"This component renders an HTML `textarea` tag.",isHtmlTag:!0,props:{autoFocus:re("Specifies that the textarea should automatically get focus when the page loads"),cols:re("Specifies the visible width of the text area in average character widths"),dirName:re("Specifies the text directionality"),disabled:re("Specifies that the textarea should be disabled"),form:re("Specifies the form the textarea belongs to"),maxLength:re("Specifies the maximum number of characters allowed in the textarea"),minLength:re("Specifies the minimum number of characters allowed in the textarea"),name:re("Specifies the name of the textarea"),placeholder:re("Specifies a short hint that describes the expected value"),readOnly:re("Specifies that the textarea is read-only"),required:re("Specifies that the textarea is required"),rows:re("Specifies the visible number of lines in the textarea"),value:re("Specifies the current value of the textarea"),wrap:re("Specifies how the text in a textarea is to be wrapped when submitted")}},v0e=we("textarea",g0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{autoFocus:a,disabled:l,readOnly:s,required:u}=i.asOptionalBoolean("autoFocus","disabled","readOnly","required"),c=i.asOptionalNumber("cols","rows","maxLength","minLength"),d=i.asRest();return C.jsx("textarea",{style:o,autoFocus:a??!1,disabled:l??!1,readOnly:s??!1,required:u??!1,...c,...d,children:t(e.children)})}),b0e={status:"deprecated",description:"This component renders an HTML `tfoot` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsTfoot)},x0e=we("tfoot",b0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("tfoot",{style:o,className:er.htmlTfoot,...a,children:t(e.children)})}),y0e={status:"deprecated",description:"This component renders an HTML `th` tag.",isHtmlTag:!0,props:{abbr:re("Specifies an abbreviated version of the content in the header cell"),align:re("Specifies the horizontal alignment of the content in the header cell"),colSpan:re("Specifies the number of columns a header cell should span"),headers:re("Specifies a list of header cells the current header cell is related to"),rowSpan:re("Specifies the number of rows a header cell should span"),scope:re("Specifies whether a header cell is a header for a column, row, or group of columns or rows")},themeVars:Ze(er.themeVarsTh),defaultThemeVars:{"padding-HtmlTh":"$space-2","fontSize-HtmlTh":"$fontSize-tiny","fontWeight-HtmlTh":"$fontWeight-bold"}},w0e=we("th",y0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("th",{style:o,className:er.htmlTh,...a,children:t(e.children)})}),C0e={status:"deprecated",description:"This component renders an HTML `thead` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsThead),defaultThemeVars:{"textTransform-HtmlThead":"uppercase","backgroundColor-HtmlThead":"$color-surface-100","textColor-HtmlThead":"$color-surface-500"}},k0e=we("thead",C0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("thead",{style:o,className:er.htmlThead,...a,children:t(e.children)})}),_0e={status:"deprecated",description:"This component renders an HTML `time` tag.",isHtmlTag:!0,props:{dateTime:re("Specifies the date and time in a machine-readable format")}},T0e=we("time",_0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("time",{style:o,...a,children:t(e.children)})}),S0e={status:"deprecated",description:"This component renders an HTML `tr` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsTr),defaultThemeVars:{"fontSize-HtmlTr":"$fontSize-small","backgroundColor-row-HtmlTr":"inherit"}},E0e=we("tr",S0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("tr",{style:o,className:er.htmlTr,...a,children:t(e.children)})}),A0e={status:"deprecated",description:"This component renders an HTML `track` tag.",isHtmlTag:!0,props:{default:re("Specifies that the track is to be enabled if no other track is more suitable"),kind:re("Specifies the kind of text track"),label:re("Specifies the title of the text track"),src:re("Specifies the URL of the track file"),srcLang:re("Specifies the language of the track text data")}},O0e=we("track",A0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{src:a}=i.asUrlResource("src"),{default:l}=i.asOptionalBoolean("default"),s=i.asRest();return C.jsx("track",{style:o,default:l??!1,src:a,...s,children:t(e.children)})}),I0e={status:"deprecated",description:"This component renders an HTML `u` tag.",isHtmlTag:!0},R0e=we("u",I0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("u",{style:o,...a,children:t(e.children)})}),P0e={status:"deprecated",description:"This component renders an HTML `ul` tag.",isHtmlTag:!0,themeVars:Ze(er.themeVarsList),defaultThemeVars:{"marginTop-HtmlUl":"$space-5","marginBottom-HtmlUl":"$space-5"}},L0e=we("ul",P0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("ul",{style:o,className:er.htmlUl,...a,children:t(e.children)})}),KEt={status:"deprecated",description:"This component renders an HTML `var` tag.",isHtmlTag:!0},H0e=we("var",c4,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx(yr,{style:o,...a,variant:"var",children:t(e.children)})}),N0e={status:"deprecated",description:"This component renders an HTML `video` tag.",isHtmlTag:!0,props:{autoPlay:re("Specifies that the video will start playing as soon as it is ready"),controls:re("Specifies that video controls should be displayed"),height:re("Specifies the height of the video player"),loop:re("Specifies that the video will start over again when finished"),muted:re("Specifies that the video output should be muted"),poster:re("Specifies an image to be shown while the video is downloading"),preload:re("Specifies if and how the author thinks the video should be loaded when the page loads"),src:re("Specifies the URL of the video file"),width:re("Specifies the width of the video player")},themeVars:Ze(er.themeVarsVideo),defaultThemeVars:{"marginTop-HtmlVideo":"1rem","marginBottom-HtmlVideo":"1rem"}},$0e=we("video",N0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const i=new qe(r,n,o,e.props),{src:a}=i.asUrlResource("src"),{autoPlay:l,controls:s,loop:u,muted:c}=i.asOptionalBoolean("autoPlay","controls","loop","muted"),d=i.asRest();return C.jsx("video",{style:o,src:a,autoPlay:l??!1,controls:s??!1,loop:u??!1,muted:c??!1,...d,children:t(e.children)})}),D0e={status:"deprecated",description:"This component renders an HTML `wbr` tag.",isHtmlTag:!0},B0e=we("wbr",D0e,({node:e,renderChild:t,extractValue:r,extractResourceUrl:n,layoutCss:o})=>{const a=new qe(r,n,o,e.props).asRest();return C.jsx("wbr",{style:o,...a,children:t(e.children)})}),B0="ColorPicker",j0e={status:"stable",description:"`ColorPicker` enables users to choose colors by specifying RGB, HSL, or HEX values.",props:{initialValue:Ba(),label:io(),labelPosition:$a(),labelWidth:Da(B0),labelBreak:hl(B0),enabled:So(),autoFocus:Bi(),required:bl(),readOnly:gl(),validationStatus:vl(jw.validationStatus)},events:{didChange:Ei(B0),gotFocus:Ha(B0),lostFocus:Na(B0)},apis:{focus:au(B0),value:Fv(),setValue:us()},themeVars:Ze(i0.themeVars)},XEt=we("ColorPicker",j0e,({node:e,extractValue:t,layoutCss:r,state:n,lookupEventHandler:o,registerComponentApi:i,updateState:a})=>{var u,c,d,f,p,h,v,b;const l=t.asOptionalBoolean((u=e.props)==null?void 0:u.enabled,!0),s=t.asOptionalBoolean((c=e.props)==null?void 0:c.readOnly,!1);return C.jsx(Q8,{validationStatus:t(e.props.validationStatus),value:n.value,initialValue:t(e.props.initialValue),updateState:a,onDidChange:o("didChange"),onFocus:o("gotFocus"),onBlur:o("lostFocus"),registerComponentApi:i,style:r,required:t.asOptionalBoolean((d=e.props)==null?void 0:d.required),enabled:l&&!s,autoFocus:t.asOptionalBoolean((f=e.props)==null?void 0:f.autoFocus),label:t((p=e.props)==null?void 0:p.label),labelPosition:t((h=e.props)==null?void 0:h.labelPosition),labelBreak:t((v=e.props)==null?void 0:v.labelBreak),labelWidth:t((b=e.props)==null?void 0:b.labelWidth)})}),UD="RadioItem",QEt={status:"experimental",description:`The \`${UD}\` component is a radio button that is part of a group of radio buttons.`,props:{checked:{description:"This property specifies whether the radio button is checked.",defaultValue:Jb.checked},value:{description:"This property specifies the value of the radio button.",defaultValue:Jb.value}},events:{didChange:Ei(UD)}},ZEt=we(UD,QEt,({node:e,extractValue:t,lookupEventHandler:r})=>C.jsx(Xit,{checked:t(e.props.checked),value:t(e.props.value),onDidChange:r("didChange")}));var M0e=function(t){return t.reduce(function(r,n){var o=n[0],i=n[1];return r[o]=i,r},{})},z0e=typeof window<"u"&&window.document&&window.document.createElement?m.useLayoutEffect:m.useEffect,Ja="top",Ls="bottom",Hs="right",el="left",qD="auto",W2=[Ja,Ls,Hs,el],j0="start",V2="end",JEt="clippingParents",F0e="viewport",U2="popper",e6t="reference",W0e=W2.reduce(function(e,t){return e.concat([t+"-"+j0,t+"-"+V2])},[]),V0e=[].concat(W2,[qD]).reduce(function(e,t){return e.concat([t,t+"-"+j0,t+"-"+V2])},[]),t6t="beforeRead",r6t="read",n6t="afterRead",o6t="beforeMain",i6t="main",a6t="afterMain",l6t="beforeWrite",s6t="write",u6t="afterWrite",c6t=[t6t,r6t,n6t,o6t,i6t,a6t,l6t,s6t,u6t];function $c(e){return e?(e.nodeName||"").toLowerCase():null}function Ns(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ug(e){var t=Ns(e).Element;return e instanceof t||e instanceof Element}function $s(e){var t=Ns(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function GD(e){if(typeof ShadowRoot>"u")return!1;var t=Ns(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function d6t(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!$s(i)||!$c(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(a){var l=o[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function f6t(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=a.reduce(function(s,u){return s[u]="",s},{});!$s(o)||!$c(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(s){o.removeAttribute(s)}))})}}const m6t={name:"applyStyles",enabled:!0,phase:"write",fn:d6t,effect:f6t,requires:["computeStyles"]};function Dc(e){return e.split("-")[0]}var cg=Math.max,d4=Math.min,M0=Math.round;function YD(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function U0e(){return!/^((?!chrome|android).)*safari/i.test(YD())}function z0(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&$s(e)&&(o=e.offsetWidth>0&&M0(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&M0(n.height)/e.offsetHeight||1);var a=ug(e)?Ns(e):window,l=a.visualViewport,s=!U0e()&&r,u=(n.left+(s&&l?l.offsetLeft:0))/o,c=(n.top+(s&&l?l.offsetTop:0))/i,d=n.width/o,f=n.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function KD(e){var t=z0(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function q0e(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&GD(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Yd(e){return Ns(e).getComputedStyle(e)}function p6t(e){return["table","td","th"].indexOf($c(e))>=0}function Wm(e){return((ug(e)?e.ownerDocument:e.document)||window.document).documentElement}function f4(e){return $c(e)==="html"?e:e.assignedSlot||e.parentNode||(GD(e)?e.host:null)||Wm(e)}function G0e(e){return!$s(e)||Yd(e).position==="fixed"?null:e.offsetParent}function h6t(e){var t=/firefox/i.test(YD()),r=/Trident/i.test(YD());if(r&&$s(e)){var n=Yd(e);if(n.position==="fixed")return null}var o=f4(e);for(GD(o)&&(o=o.host);$s(o)&&["html","body"].indexOf($c(o))<0;){var i=Yd(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function q2(e){for(var t=Ns(e),r=G0e(e);r&&p6t(r)&&Yd(r).position==="static";)r=G0e(r);return r&&($c(r)==="html"||$c(r)==="body"&&Yd(r).position==="static")?t:r||h6t(e)||t}function XD(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function G2(e,t,r){return cg(e,d4(t,r))}function g6t(e,t,r){var n=G2(e,t,r);return n>r?r:n}function Y0e(){return{top:0,right:0,bottom:0,left:0}}function K0e(e){return Object.assign({},Y0e(),e)}function X0e(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var v6t=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,K0e(typeof t!="number"?t:X0e(t,W2))};function b6t(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,l=Dc(r.placement),s=XD(l),u=[el,Hs].indexOf(l)>=0,c=u?"height":"width";if(!(!i||!a)){var d=v6t(o.padding,r),f=KD(i),p=s==="y"?Ja:el,h=s==="y"?Ls:Hs,v=r.rects.reference[c]+r.rects.reference[s]-a[s]-r.rects.popper[c],b=a[s]-r.rects.reference[s],y=q2(i),w=y?s==="y"?y.clientHeight||0:y.clientWidth||0:0,k=v/2-b/2,E=d[p],_=w-f[c]-d[h],S=w/2-f[c]/2+k,A=G2(E,S,_),O=s;r.modifiersData[n]=(t={},t[O]=A,t.centerOffset=A-S,t)}}function x6t(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||q0e(t.elements.popper,o)&&(t.elements.arrow=o))}const y6t={name:"arrow",enabled:!0,phase:"main",fn:b6t,effect:x6t,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function F0(e){return e.split("-")[1]}var w6t={top:"auto",right:"auto",bottom:"auto",left:"auto"};function C6t(e){var t=e.x,r=e.y,n=window,o=n.devicePixelRatio||1;return{x:M0(t*o)/o||0,y:M0(r*o)/o||0}}function Q0e(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=f===void 0?0:f,h=a.y,v=h===void 0?0:h,b=typeof c=="function"?c({x:p,y:v}):{x:p,y:v};p=b.x,v=b.y;var y=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),k=el,E=Ja,_=window;if(u){var S=q2(r),A="clientHeight",O="clientWidth";if(S===Ns(r)&&(S=Wm(r),Yd(S).position!=="static"&&l==="absolute"&&(A="scrollHeight",O="scrollWidth")),S=S,o===Ja||(o===el||o===Hs)&&i===V2){E=Ls;var I=d&&S===_&&_.visualViewport?_.visualViewport.height:S[A];v-=I-n.height,v*=s?1:-1}if(o===el||(o===Ja||o===Ls)&&i===V2){k=Hs;var L=d&&S===_&&_.visualViewport?_.visualViewport.width:S[O];p-=L-n.width,p*=s?1:-1}}var P=Object.assign({position:l},u&&w6t),H=c===!0?C6t({x:p,y:v}):{x:p,y:v};if(p=H.x,v=H.y,s){var j;return Object.assign({},P,(j={},j[E]=w?"0":"",j[k]=y?"0":"",j.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",j))}return Object.assign({},P,(t={},t[E]=w?v+"px":"",t[k]=y?p+"px":"",t.transform="",t))}function k6t(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,a=i===void 0?!0:i,l=r.roundOffsets,s=l===void 0?!0:l,u={placement:Dc(t.placement),variation:F0(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Q0e(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Q0e(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const _6t={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:k6t,data:{}};var m4={passive:!0};function T6t(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,a=n.resize,l=a===void 0?!0:a,s=Ns(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",r.update,m4)}),l&&s.addEventListener("resize",r.update,m4),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",r.update,m4)}),l&&s.removeEventListener("resize",r.update,m4)}}const S6t={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:T6t,data:{}};var E6t={left:"right",right:"left",bottom:"top",top:"bottom"};function p4(e){return e.replace(/left|right|bottom|top/g,function(t){return E6t[t]})}var A6t={start:"end",end:"start"};function Z0e(e){return e.replace(/start|end/g,function(t){return A6t[t]})}function QD(e){var t=Ns(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function ZD(e){return z0(Wm(e)).left+QD(e).scrollLeft}function O6t(e,t){var r=Ns(e),n=Wm(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var u=U0e();(u||!u&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+ZD(e),y:s}}function I6t(e){var t,r=Wm(e),n=QD(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=cg(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=cg(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+ZD(e),s=-n.scrollTop;return Yd(o||r).direction==="rtl"&&(l+=cg(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}function JD(e){var t=Yd(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function J0e(e){return["html","body","#document"].indexOf($c(e))>=0?e.ownerDocument.body:$s(e)&&JD(e)?e:J0e(f4(e))}function Y2(e,t){var r;t===void 0&&(t=[]);var n=J0e(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=Ns(n),a=o?[i].concat(i.visualViewport||[],JD(n)?n:[]):n,l=t.concat(a);return o?l:l.concat(Y2(f4(a)))}function eB(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function R6t(e,t){var r=z0(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function e1e(e,t,r){return t===F0e?eB(O6t(e,r)):ug(t)?R6t(t,r):eB(I6t(Wm(e)))}function P6t(e){var t=Y2(f4(e)),r=["absolute","fixed"].indexOf(Yd(e).position)>=0,n=r&&$s(e)?q2(e):e;return ug(n)?t.filter(function(o){return ug(o)&&q0e(o,n)&&$c(o)!=="body"}):[]}function L6t(e,t,r,n){var o=t==="clippingParents"?P6t(e):[].concat(t),i=[].concat(o,[r]),a=i[0],l=i.reduce(function(s,u){var c=e1e(e,u,n);return s.top=cg(c.top,s.top),s.right=d4(c.right,s.right),s.bottom=d4(c.bottom,s.bottom),s.left=cg(c.left,s.left),s},e1e(e,a,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function t1e(e){var t=e.reference,r=e.element,n=e.placement,o=n?Dc(n):null,i=n?F0(n):null,a=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,s;switch(o){case Ja:s={x:a,y:t.y-r.height};break;case Ls:s={x:a,y:t.y+t.height};break;case Hs:s={x:t.x+t.width,y:l};break;case el:s={x:t.x-r.width,y:l};break;default:s={x:t.x,y:t.y}}var u=o?XD(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case j0:s[u]=s[u]-(t[c]/2-r[c]/2);break;case V2:s[u]=s[u]+(t[c]/2-r[c]/2);break}}return s}function K2(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,a=i===void 0?e.strategy:i,l=r.boundary,s=l===void 0?JEt:l,u=r.rootBoundary,c=u===void 0?F0e:u,d=r.elementContext,f=d===void 0?U2:d,p=r.altBoundary,h=p===void 0?!1:p,v=r.padding,b=v===void 0?0:v,y=K0e(typeof b!="number"?b:X0e(b,W2)),w=f===U2?e6t:U2,k=e.rects.popper,E=e.elements[h?w:f],_=L6t(ug(E)?E:E.contextElement||Wm(e.elements.popper),s,c,a),S=z0(e.elements.reference),A=t1e({reference:S,element:k,placement:o}),O=eB(Object.assign({},k,A)),I=f===U2?O:S,L={top:_.top-I.top+y.top,bottom:I.bottom-_.bottom+y.bottom,left:_.left-I.left+y.left,right:I.right-_.right+y.right},P=e.modifiersData.offset;if(f===U2&&P){var H=P[o];Object.keys(L).forEach(function(j){var W=[Hs,Ls].indexOf(j)>=0?1:-1,B=[Ja,Ls].indexOf(j)>=0?"y":"x";L[j]+=H[B]*W})}return L}function H6t(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,u=s===void 0?V0e:s,c=F0(n),d=c?l?W0e:W0e.filter(function(h){return F0(h)===c}):W2,f=d.filter(function(h){return u.indexOf(h)>=0});f.length===0&&(f=d);var p=f.reduce(function(h,v){return h[v]=K2(e,{placement:v,boundary:o,rootBoundary:i,padding:a})[Dc(v)],h},{});return Object.keys(p).sort(function(h,v){return p[h]-p[v]})}function N6t(e){if(Dc(e)===qD)return[];var t=p4(e);return[Z0e(e),t,Z0e(t)]}function $6t(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,l=a===void 0?!0:a,s=r.fallbackPlacements,u=r.padding,c=r.boundary,d=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,h=p===void 0?!0:p,v=r.allowedAutoPlacements,b=t.options.placement,y=Dc(b),w=y===b,k=s||(w||!h?[p4(b)]:N6t(b)),E=[b].concat(k).reduce(function(K,ee){return K.concat(Dc(ee)===qD?H6t(t,{placement:ee,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:v}):ee)},[]),_=t.rects.reference,S=t.rects.popper,A=new Map,O=!0,I=E[0],L=0;L<E.length;L++){var P=E[L],H=Dc(P),j=F0(P)===j0,W=[Ja,Ls].indexOf(H)>=0,B=W?"width":"height",G=K2(t,{placement:P,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),z=W?j?Hs:el:j?Ls:Ja;_[B]>S[B]&&(z=p4(z));var F=p4(z),V=[];if(i&&V.push(G[H]<=0),l&&V.push(G[z]<=0,G[F]<=0),V.every(function(K){return K})){I=P,O=!1;break}A.set(P,V)}if(O)for(var N=h?3:1,Y=function(ee){var ae=E.find(function(oe){var ue=A.get(oe);if(ue)return ue.slice(0,ee).every(function(le){return le})});if(ae)return I=ae,"break"},q=N;q>0;q--){var M=Y(q);if(M==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}const D6t={name:"flip",enabled:!0,phase:"main",fn:$6t,requiresIfExists:["offset"],data:{_skip:!1}};function r1e(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function n1e(e){return[Ja,Hs,Ls,el].some(function(t){return e[t]>=0})}function B6t(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=K2(t,{elementContext:"reference"}),l=K2(t,{altBoundary:!0}),s=r1e(a,n),u=r1e(l,o,i),c=n1e(s),d=n1e(u);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const j6t={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:B6t};function M6t(e,t,r){var n=Dc(e),o=[el,Ja].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[el,Hs].indexOf(n)>=0?{x:l,y:a}:{x:a,y:l}}function z6t(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=V0e.reduce(function(c,d){return c[d]=M6t(d,t.rects,i),c},{}),l=a[t.placement],s=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}const F6t={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:z6t};function W6t(e){var t=e.state,r=e.name;t.modifiersData[r]=t1e({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const V6t={name:"popperOffsets",enabled:!0,phase:"read",fn:W6t,data:{}};function U6t(e){return e==="x"?"y":"x"}function q6t(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,l=a===void 0?!1:a,s=r.boundary,u=r.rootBoundary,c=r.altBoundary,d=r.padding,f=r.tether,p=f===void 0?!0:f,h=r.tetherOffset,v=h===void 0?0:h,b=K2(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),y=Dc(t.placement),w=F0(t.placement),k=!w,E=XD(y),_=U6t(E),S=t.modifiersData.popperOffsets,A=t.rects.reference,O=t.rects.popper,I=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,L=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(S){if(i){var j,W=E==="y"?Ja:el,B=E==="y"?Ls:Hs,G=E==="y"?"height":"width",z=S[E],F=z+b[W],V=z-b[B],N=p?-O[G]/2:0,Y=w===j0?A[G]:O[G],q=w===j0?-O[G]:-A[G],M=t.elements.arrow,K=p&&M?KD(M):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Y0e(),ae=ee[W],oe=ee[B],ue=G2(0,A[G],K[G]),le=k?A[G]/2-N-ue-ae-L.mainAxis:Y-ue-ae-L.mainAxis,pe=k?-A[G]/2+N+ue+oe+L.mainAxis:q+ue+oe+L.mainAxis,fe=t.elements.arrow&&q2(t.elements.arrow),J=fe?E==="y"?fe.clientTop||0:fe.clientLeft||0:0,X=(j=P==null?void 0:P[E])!=null?j:0,te=z+le-X-J,ie=z+pe-X,de=G2(p?d4(F,te):F,z,p?cg(V,ie):V);S[E]=de,H[E]=de-z}if(l){var be,xe=E==="x"?Ja:el,Ie=E==="x"?Ls:Hs,Ne=S[_],Se=_==="y"?"height":"width",_e=Ne+b[xe],Ve=Ne-b[Ie],Ee=[Ja,el].indexOf(y)!==-1,je=(be=P==null?void 0:P[_])!=null?be:0,Ce=Ee?_e:Ne-A[Se]-O[Se]-je+L.altAxis,Te=Ee?Ne+A[Se]+O[Se]-je-L.altAxis:Ve,He=p&&Ee?g6t(Ce,Ne,Te):G2(p?Ce:_e,Ne,p?Te:Ve);S[_]=He,H[_]=He-Ne}t.modifiersData[n]=H}}const G6t={name:"preventOverflow",enabled:!0,phase:"main",fn:q6t,requiresIfExists:["offset"]};function Y6t(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function K6t(e){return e===Ns(e)||!$s(e)?QD(e):Y6t(e)}function X6t(e){var t=e.getBoundingClientRect(),r=M0(t.width)/e.offsetWidth||1,n=M0(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Q6t(e,t,r){r===void 0&&(r=!1);var n=$s(t),o=$s(t)&&X6t(t),i=Wm(t),a=z0(e,o,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&(($c(t)!=="body"||JD(i))&&(l=K6t(t)),$s(t)?(s=z0(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=ZD(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function Z6t(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!r.has(l)){var s=t.get(l);s&&o(s)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function J6t(e){var t=Z6t(e);return c6t.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function e4t(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function t4t(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var o1e={placement:"bottom",modifiers:[],strategy:"absolute"};function i1e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function r4t(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?o1e:o;return function(l,s,u){u===void 0&&(u=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},o1e,i),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},d=[],f=!1,p={state:c,setOptions:function(y){var w=typeof y=="function"?y(c.options):y;v(),c.options=Object.assign({},i,c.options,w),c.scrollParents={reference:ug(l)?Y2(l):l.contextElement?Y2(l.contextElement):[],popper:Y2(s)};var k=J6t(t4t([].concat(n,c.options.modifiers)));return c.orderedModifiers=k.filter(function(E){return E.enabled}),h(),p.update()},forceUpdate:function(){if(!f){var y=c.elements,w=y.reference,k=y.popper;if(i1e(w,k)){c.rects={reference:Q6t(w,q2(k),c.options.strategy==="fixed"),popper:KD(k)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(L){return c.modifiersData[L.name]=Object.assign({},L.data)});for(var E=0;E<c.orderedModifiers.length;E++){if(c.reset===!0){c.reset=!1,E=-1;continue}var _=c.orderedModifiers[E],S=_.fn,A=_.options,O=A===void 0?{}:A,I=_.name;typeof S=="function"&&(c=S({state:c,options:O,name:I,instance:p})||c)}}}},update:e4t(function(){return new Promise(function(b){p.forceUpdate(),b(c)})}),destroy:function(){v(),f=!0}};if(!i1e(l,s))return p;p.setOptions(u).then(function(b){!f&&u.onFirstUpdate&&u.onFirstUpdate(b)});function h(){c.orderedModifiers.forEach(function(b){var y=b.name,w=b.options,k=w===void 0?{}:w,E=b.effect;if(typeof E=="function"){var _=E({state:c,name:y,instance:p,options:k}),S=function(){};d.push(_||S)}})}function v(){d.forEach(function(b){return b()}),d=[]}return p}}var n4t=[S6t,V6t,_6t,m6t,F6t,D6t,G6t,y6t,j6t],o4t=r4t({defaultModifiers:n4t}),i4t=[],a4t=function(t,r,n){n===void 0&&(n={});var o=m.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||i4t},a=m.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=a[0],s=a[1],u=m.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(p){var h=p.state,v=Object.keys(h.elements);Fn.flushSync(function(){s({styles:M0e(v.map(function(b){return[b,h.styles[b]||{}]})),attributes:M0e(v.map(function(b){return[b,h.attributes[b]]}))})})},requires:["computeStyles"]}},[]),c=m.useMemo(function(){var f={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return sX(o.current,f)?o.current||f:(o.current=f,f)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),d=m.useRef();return z0e(function(){d.current&&d.current.setOptions(c)},[c]),z0e(function(){if(!(t==null||r==null)){var f=n.createPopper||o4t,p=f(t,r,c);return d.current=p,function(){p.destroy(),d.current=null}}},[t,r,n.createPopper]),{state:d.current?d.current.state:null,styles:l.styles,attributes:l.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}};const Vm={wrapper:"_wrapper_1r5nz_13",inspectableNode:"_inspectableNode_1r5nz_28",inspectOverlay:"_inspectOverlay_1r5nz_38",inspectedNode:"_inspectedNode_1r5nz_54"};var l4t={};const h4=m.createContext(null);function s4t({children:e,sources:t,projectCompilation:r,mockApi:n}){const[o,i]=m.useState({}),[a,l]=m.useState(null),[s,u]=m.useState(!1),[c,d]=m.useState(!1),[f,p]=m.useState({x:0,y:0}),h=m.useMemo(()=>({sources:t,attach:(v,b,y)=>{i(w=>({...w,[y]:{node:v,uid:b,inspectId:y,key:0}}))},refresh:v=>{i(b=>({...b,[v]:{...b[v],key:b[v].key+1}}))},detach:(v,b)=>{i(y=>{const w={...y};return delete w[b],w})},inspectedNode:a,setIsOpen:u,isOpen:s,devToolsEnabled:s,projectCompilation:r,setInspectMode:d,inspectMode:c,mockApi:n,clickPosition:f}),[t,a,s,f,u,r,c,n]);return C.jsxs(h4.Provider,{value:h,children:[e,l4t.VITE_USER_COMPONENTS_Inspect!=="false"&&o&&Object.values(o).map(v=>C.jsx(u4t,{inspectedNode:a,setShowCode:u,setClickPosition:p,inspectId:v.inspectId,node:v.node,setInspectedNode:l,inspectMode:c},v.inspectId+NaN+v.key))]})}function u4t({inspectId:e,node:t,inspectedNode:r,setInspectedNode:n,setShowCode:o,inspectMode:i,setClickPosition:a}){const{root:l}=zr(),[s,u]=m.useState(null),[c,d]=m.useState(null),{styles:f,attributes:p}=a4t(s,c,{placement:"top-end",modifiers:[{name:"offset",options:{offset:[-4,-18]}},{name:"flip",enabled:!1}]}),[h,v]=m.useState(!1),b=m.useRef(null),y=m.useRef(!1);return m.useEffect(()=>{s&&((r==null?void 0:r.inspectId)===e?s.classList.add(Vm.inspectedNode):s.classList.remove(Vm.inspectedNode))},[e,r,s]),m.useEffect(()=>{o(!!r)},[r]),m.useEffect(()=>{const w=document.querySelector(`[data-inspectId="${e}"]`);if(!w)return;if(u(w),i){w.classList.add(Vm.inspectableNode);const _=document.createElement("div");_.classList.add(Vm.inspectOverlay),w.appendChild(_),_.addEventListener("click",()=>{n(S=>(S==null?void 0:S.inspectId)===e?null:{...t,inspectId:e})})}if(!i){w.classList.remove(Vm.inspectableNode),n(null),o(!1);const _=w.querySelector(`.${Vm.inspectOverlay}`);_&&_.remove(),w.classList.remove(Vm.inspectedNode)}function k(){b.current&&clearTimeout(b.current),v(!0)}function E(){b.current&&clearTimeout(b.current),!y.current&&(b.current=window.setTimeout(()=>{v(!1)},100))}return w.addEventListener("mouseenter",k),w.addEventListener("mouseleave",E),()=>{w.removeEventListener("mouseenter",k),w.removeEventListener("mouseleave",E)}},[e,t,i,o]),C.jsx(C.Fragment,{children:i?null:h&&!!l&&Fn.createPortal(C.jsx(cn,{variant:"outlined",className:ze(Vm.wrapper,"_debug-inspect-button"),ref:w=>d(w),style:{...f.popper,padding:0},...p.popper,onMouseEnter:()=>{y.current=!0,b.current&&(clearTimeout(b.current),b.current=null)},onMouseLeave:()=>{y.current=!1,v(!1)},onClick:()=>{n(t),o(!0),a({x:(c==null?void 0:c.getBoundingClientRect().left)||0,y:(c==null?void 0:c.getBoundingClientRect().top)||0})},children:"Show code"}),l)})}function a1e(){const e=m.useContext(h4);if(!e)throw new Error("useDevTools must be used within an InspectorProvider");return{projectCompilation:e.projectCompilation,inspectedNode:e.inspectedNode,sources:e.sources,isOpen:e.isOpen,setIsOpen:e.setIsOpen,devToolsEnabled:e.devToolsEnabled,mockApi:e.mockApi,clickPosition:e.clickPosition}}function c4t(){const e=m.useContext(h4);return{setInspectMode:e==null?void 0:e.setInspectMode,inspectMode:e==null?void 0:e.inspectMode}}function d4t(e,t){var l;const r=m.useContext(h4),n=(l=e.props)==null?void 0:l.inspect,o=n===!0||n==="true",i=m.useId(),a=m.useCallback(()=>{r==null||r.refresh(i)},[r,i]);return m.useEffect(()=>(o&&(r==null||r.attach(e,t,i)),()=>{r==null||r.detach(t,i)}),[r,i,e,o,t]),o&&r?{refreshInspection:a,inspectId:i}:{}}const tB={themeVars:'"[]"',icon:"_icon_4o8rs_13",inspectButton:"_inspectButton_4o8rs_17"};function f4t(e){return Qe({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M181.66,146.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32Zm-72-24a8,8,0,0,0-11.32,0l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L91.31,152l18.35-18.34A8,8,0,0,0,109.66,122.34ZM216,88V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm40,136V96H152a8,8,0,0,1-8-8V40H56V216H200Z"}}]})(e)}const m4t="InspectButton",p4t={status:"experimental",description:"This component displays a button that can turn the inspection mode of a running XMLUI app on or off.",props:{},themeVars:Ze(tB.themeVars)};function h4t({children:e,style:t}){const{setInspectMode:r,inspectMode:n}=c4t();return C.jsxs(cn,{style:t,className:tB.inspectButton,themeColor:n?"primary":"secondary",variant:n?"solid":"outlined",onClick:()=>{r(o=>!o)},children:[C.jsx(f4t,{className:tB.icon}),e]})}const g4t=we(m4t,p4t,({renderChild:e,node:t,layoutCss:r})=>C.jsx(h4t,{style:r,children:e(t.children)})),g4={allowPlaygroundPopup:!0,withFrame:!0,components:Ar},Or="NestedApp",v4t={status:"stable",description:`The ${Or} component allows you to nest an entire xmlui app into another one.
|
|
546
546
|
`,props:{app:{description:"The source markup of the app to be nested"},api:{description:"This property defines an optional emulated API to be used with the nested app."},components:{description:"This property defines an optional list of components to be used with the nested app.",defaultValue:g4.components},config:{description:"You can define the nested app's configuration with this property."},activeTheme:{description:"This property defines the active theme for the nested app. If not set, the default theme is used."},activeTone:{description:"This property defines the active tone for the nested app. If not set, the default tone is used."},height:{description:"The height of the nested app. If not set, the height is determined automatically."}},themeVars:Ze(Jr.themeVars),defaultThemeVars:{[`marginTop-${Or}`]:"$space-3",[`marginBottom-${Or}`]:"$space-3",[`padding-${Or}`]:"0",[`paddingTop-${Or}`]:"0",[`border-${Or}`]:"0.5px solid $borderColor",[`borderRadius-${Or}`]:"$space-2",[`backgroundColor-frame-${Or}`]:"$color-primary-50",[`gap-frame-${Or}`]:"0",[`fontWeight-header-${Or}`]:"$fontWeight-bold",[`boxShadow-${Or}`]:"0px 0px 32px 0px rgba(0, 0, 0, 0.05)",[`backgroundColor-viewControls-${Or}`]:"$color-primary-100",[`borderRadius-viewControls-${Or}`]:"5px",[`padding-viewControls-${Or}`]:"$space-0_5",[`borderBottom-header-${Or}`]:"0.5px solid $borderColor",[`color-loadingText-${Or}`]:"$color-surface-600",[`padding-button-splitView-${Or}`]:"1px 6px",[`width-button-splitView-${Or}`]:"60px",[`height-button-splitView-${Or}`]:"19px",[`width-logo-splitView-${Or}`]:"1.5rem",[`height-logo-splitView-${Or}`]:"2rem",[`backgroundColor-button-splitView-${Or}--active`]:"$color-surface-0",[`color-button-splitView-${Or}`]:"$color-surface-600",[`color-button-splitView-${Or}--active`]:"$color-primary",[`width-controls-${Or}`]:"80px",[`backgroundColor-code-splitView-${Or}`]:"$color-surface-0",[`borderRadius-button-splitView-${Or}`]:"$space-1",[`borderColor-button-splitView-${Or}`]:"transparent",dark:{[`backgroundColor-frame-${Or}`]:"$color-surface-50",[`backgroundColor-button-splitView-${Or}--active`]:"$color-surface-200",[`color-button-splitView-${Or}`]:"$color-surface-500",[`color-button-splitView-${Or}--active`]:"$color-surface-1"}}},b4t=we(Or,v4t,({node:e,extractValue:t,layoutCss:r})=>{var n,o,i,a,l,s,u;return C.jsx(nD,{app:(n=e.props)==null?void 0:n.app,style:r,api:t((o=e.props)==null?void 0:o.api),components:t((i=e.props)==null?void 0:i.components),config:t((a=e.props)==null?void 0:a.config),activeTheme:t((l=e.props)==null?void 0:l.activeTheme),activeTone:t((s=e.props)==null?void 0:s.activeTone),height:t((u=e.props)==null?void 0:u.height)})}),x4t={themeVars:`'{"background-sideBySide-AppWithCodeView": "var(--xmlui-background-sideBySide-AppWithCodeView)", "border-sideBySide-AppWithCodeView": "var(--xmlui-border-sideBySide-AppWithCodeView)", "padding-sideBySide-AppWithCodeView": "var(--xmlui-padding-sideBySide-AppWithCodeView)", "margin-sideBySide-AppWithCodeView": "var(--xmlui-margin-sideBySide-AppWithCodeView)", "gap-sideBySide-AppWithCodeView": "var(--xmlui-gap-sideBySide-AppWithCodeView)"}'`},l1e="AppWithCodeView",y4t={status:"stable",description:`The ${l1e} component displays a combination of markdown content and a nested xmlui app.
|
|
547
547
|
It supports both side-by-side and stacked layouts.`,props:{markdown:{description:"The markdown content to be displayed alongside the app",valueType:"string"},splitView:{description:"Whether to render the markdown and app side by side or stacked vertically",valueType:"boolean"},app:{description:"The source markup of the app to be nested"},api:{description:"This property defines an optional emulated API to be used with the nested app."},components:{description:"This property defines an optional list of components to be used with the nested app.",defaultValue:g4.components},config:{description:"You can define the nested app's configuration with this property."},activeTheme:{description:"This property defines the active theme for the nested app. If not set, the default theme is used."},activeTone:{description:"This property defines the active tone for the nested app. If not set, the default tone is used."},title:{description:"The optional title of the nested app. If not set, no title is displayed."},height:{description:"The height of the nested app. If not set, the height is determined automatically."},allowPlaygroundPopup:{description:"This property defines whether the nested app can be opened in the xmlui playground.",valueType:"boolean",defaultValue:g4.allowPlaygroundPopup},withFrame:{description:"This property defines whether the nested app should be displayed with a frame.",valueType:"boolean",defaultValue:g4.withFrame}},themeVars:Ze(x4t.themeVars),defaultThemeVars:{}},w4t=we(l1e,y4t,({node:e,extractValue:t,renderChild:r})=>{var o,i,a,l,s,u,c,d,f,p,h;let n="";return n||(n=t.asString(e.props.markdown)),!n&&typeof e.props.data=="string"&&(n=t.asString(e.props.data)),n||(e.children??[]).forEach(v=>{const b=r(v);console.log("renderedChild",b),typeof b=="string"&&(n+=b)}),C.jsx(mD,{markdown:n,splitView:t.asOptionalBoolean((o=e.props)==null?void 0:o.splitView),app:(i=e.props)==null?void 0:i.app,api:t((a=e.props)==null?void 0:a.api),components:t((l=e.props)==null?void 0:l.components),config:t((s=e.props)==null?void 0:s.config),activeTheme:t((u=e.props)==null?void 0:u.activeTheme),activeTone:t((c=e.props)==null?void 0:c.activeTone),title:t((d=e.props)==null?void 0:d.title),height:t((f=e.props)==null?void 0:f.height),allowPlaygroundPopup:t.asOptionalBoolean((p=e.props)==null?void 0:p.allowPlaygroundPopup),withFrame:t.asOptionalBoolean((h=e.props)==null?void 0:h.withFrame)})}),C4t={status:"stable",description:"The `CodeBlock` component displays code with optional syntax highlighting and meta information.",props:{},themeVars:Ze(Bm.themeVars),defaultThemeVars:{"backgroundColor-CodeBlock":"$color-primary-50","backgroundColor-CodeBlock-header":"$color-primary-100","marginTop-CodeBlock":"$space-5","marginBottom-CodeBlock":"$space-5","backgroundColor-CodeBlock-highlightRow":"rgb(from $color-primary-200 r g b / 0.25)","backgroundColor-CodeBlock-highlightString":"rgb(from $color-primary-200 r g b / 0.5)","borderColor-CodeBlock-highlightString-emphasis":"$color-attention","border-CodeBlock":"0.5px solid $borderColor","borderRadius-CodeBlock":"$space-2","height-CodeBlock":"fit-content","paddingVertical-content-CodeBlock":"0","paddingHorizontal-content-CodeBlock":"0",dark:{"backgroundColor-CodeBlock-header":"$color-surface-200","backgroundColor-CodeBlock":"$color-surface-50","backgroundColor-CodeBlock-highlightRow":"rgb(from $color-primary-300 r g b / 0.15)","backgroundColor-CodeBlock-highlightString":"rgb(from $color-primary-300 r g b / 0.5)"}}},k4t=we("CodeBlock",C4t,({node:e,renderChild:t,layoutCss:r})=>C.jsx(Y$,{style:r,children:t(e.children)}));function s1e(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=s1e(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function dr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=s1e(e))&&(n&&(n+=" "),n+=t);return n}var u1e={exports:{}},Ur={};/**
|
|
548
548
|
* @license React
|
|
@@ -623,7 +623,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
623
623
|
c0,0.26,0.23,0.51,0.5,0.5c0.27-0.01,0.5-0.22,0.5-0.5v-0.59h7v0.59c0,0.26,0.23,0.51,0.5,0.5c0.27-0.01,0.5-0.22,0.5-0.5v-0.59
|
|
624
624
|
h1.94c0.83,0,1.5,0.67,1.5,1.5V9.035z`}},{tag:"path",attr:{d:`M11.492,17.173v-3.46c0-0.059-0.064-0.095-0.114-0.064l-0.638,0.392
|
|
625
625
|
c-0.1,0.061-0.228-0.01-0.228-0.128v-0.651c0-0.105,0.055-0.203,0.146-0.257l0.764-0.457c0.047-0.028,0.1-0.043,0.154-0.043h0.626
|
|
626
|
-
c0.166,0,0.3,0.134,0.3,0.3v4.367c0,0.166-0.134,0.3-0.3,0.3h-0.409C11.626,17.473,11.492,17.339,11.492,17.173z`}}]}]})(e)}const pjt=e=>m.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M12 8.5C16.9706 8.5 21 7.15685 21 5.5C21 3.84315 16.9706 2.5 12 2.5C7.02944 2.5 3 3.84315 3 5.5C3 7.15685 7.02944 8.5 12 8.5Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M21 12.5C21 14.16 17 15.5 12 15.5C7 15.5 3 14.16 3 12.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M3 5.5V19.5C3 21.16 7 22.5 12 22.5C17 22.5 21 21.16 21 19.5V5.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),hjt=e=>C.jsx(pjt,{...e}),gjt=e=>m.createElement("svg",{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"16px",height:"16px",viewBox:"0 0 16 16",...e},m.createElement("g",{id:"surface1"},m.createElement("path",{stroke:"none",fillRule:"nonzero",fillOpacity:1,d:"M 9.886719 5.171875 L 6.113281 8.941406 C 5.855469 9.203125 5.855469 9.625 6.113281 9.886719 C 6.375 10.144531 6.796875 10.144531 7.058594 9.886719 L 10.828125 6.113281 C 11.609375 5.332031 11.609375 4.066406 10.828125 3.285156 C 10.046875 2.503906 8.78125 2.503906 8 3.285156 L 4.230469 7.058594 C 2.925781 8.359375 2.925781 10.46875 4.230469 11.769531 C 5.53125 13.074219 7.640625 13.074219 8.941406 11.769531 L 12.714844 8 L 13.65625 8.941406 L 9.886719 12.714844 C 8.0625 14.535156 5.109375 14.535156 3.285156 12.714844 C 1.464844 10.890625 1.464844 7.9375 3.285156 6.113281 L 7.058594 2.34375 C 8.359375 1.042969 10.46875 1.042969 11.769531 2.34375 C 13.074219 3.644531 13.074219 5.753906 11.769531 7.058594 L 8 10.828125 C 7.21875 11.609375 5.953125 11.609375 5.171875 10.828125 C 4.390625 10.046875 4.390625 8.78125 5.171875 8 L 8.941406 4.230469 Z M 9.886719 5.171875 "}))),vjt=e=>C.jsx(gjt,{...e}),bjt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M10 13C10.4295 13.5741 10.9774 14.0491 11.6066 14.3929C12.2357 14.7367 12.9315 14.9411 13.6467 14.9923C14.3618 15.0435 15.0796 14.9403 15.7513 14.6897C16.4231 14.4392 17.0331 14.047 17.54 13.54L20.54 10.54C21.4508 9.59695 21.9548 8.33394 21.9434 7.02296C21.932 5.71198 21.4061 4.45791 20.4791 3.53087C19.5521 2.60383 18.298 2.07799 16.987 2.0666C15.676 2.0552 14.413 2.55918 13.47 3.46997L11.75 5.17997",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M14.0002 11.0012C13.5707 10.4271 13.0228 9.95202 12.3936 9.60826C11.7645 9.2645 11.0687 9.06009 10.3535 9.00887C9.63841 8.95765 8.92061 9.06083 8.24885 9.31142C7.5771 9.56201 6.96709 9.95413 6.4602 10.4612L3.4602 13.4612C2.54941 14.4042 2.04544 15.6672 2.05683 16.9782C2.06822 18.2892 2.59407 19.5433 3.52111 20.4703C4.44815 21.3973 5.70221 21.9232 7.01319 21.9346C8.32418 21.946 9.58719 21.442 10.5302 20.5312L12.2402 18.8212",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),xjt={binding:"_binding_14mdd_1"},yjt=e=>C.jsx(bjt,{className:xjt.binding,...e}),wjt=e=>C.jsx(see,{...e}),Cjt=e=>m.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M14 10.6669V5.33359C13.9998 5.09978 13.938 4.87013 13.821 4.6677C13.704 4.46527 13.5358 4.29717 13.3333 4.18026L8.66667 1.51359C8.46397 1.39657 8.23405 1.33496 8 1.33496C7.76595 1.33496 7.53603 1.39657 7.33333 1.51359L2.66667 4.18026C2.46418 4.29717 2.29599 4.46527 2.17897 4.6677C2.06196 4.87013 2.00024 5.09978 2 5.33359V10.6669C2.00024 10.9007 2.06196 11.1304 2.17897 11.3328C2.29599 11.5353 2.46418 11.7034 2.66667 11.8203L7.33333 14.4869C7.53603 14.604 7.76595 14.6656 8 14.6656C8.23405 14.6656 8.46397 14.604 8.66667 14.4869L13.3333 11.8203C13.5358 11.7034 13.704 11.5353 13.821 11.3328C13.938 11.1304 13.9998 10.9007 14 10.6669Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M2.18018 4.63965L8.00018 8.00632L13.8202 4.63965",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M8 14.72V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),kjt=e=>C.jsx(Cjt,{...e}),_jt=e=>C.jsx(cKe,{...e}),Tjt=e=>C.jsx(aee,{...e}),Sjt=e=>C.jsx(lee,{...e}),Ejt=e=>m.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M8.6665 1.33301H3.99984C3.64622 1.33301 3.30708 1.47348 3.05703 1.72353C2.80698 1.97358 2.6665 2.31272 2.6665 2.66634V13.333C2.6665 13.6866 2.80698 14.0258 3.05703 14.2758C3.30708 14.5259 3.64622 14.6663 3.99984 14.6663H11.9998C12.3535 14.6663 12.6926 14.5259 12.9426 14.2758C13.1927 14.0258 13.3332 13.6866 13.3332 13.333V5.99967L8.6665 1.33301Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M8.6665 1.33301V5.99967H13.3332",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M9.3335 10.6667L10.6668 9.33333L9.3335 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M6.6665 8.00033L5.33317 9.33366L6.6665 10.667",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),Ajt=e=>C.jsx(Ejt,{...e}),Ojt=e=>m.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M14 10.6669V5.33359C13.9998 5.09978 13.938 4.87013 13.821 4.6677C13.704 4.46527 13.5358 4.29717 13.3333 4.18026L8.66667 1.51359C8.46397 1.39657 8.23405 1.33496 8 1.33496C7.76595 1.33496 7.53603 1.39657 7.33333 1.51359L2.66667 4.18026C2.46418 4.29717 2.29599 4.46527 2.17897 4.6677C2.06196 4.87013 2.00024 5.09978 2 5.33359V10.6669C2.00024 10.9007 2.06196 11.1304 2.17897 11.3328C2.29599 11.5353 2.46418 11.7034 2.66667 11.8203L7.33333 14.4869C7.53603 14.604 7.76595 14.6656 8 14.6656C8.23405 14.6656 8.46397 14.604 8.66667 14.4869L13.3333 11.8203C13.5358 11.7034 13.704 11.5353 13.821 11.3328C13.938 11.1304 13.9998 10.9007 14 10.6669Z",stroke:"#3B3B3B",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M5 2.80664L8 4.53997L11 2.80664",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M5 13.1933V9.73333L2 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M14 8L11 9.73333V13.1933",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M2.18018 4.63965L8.00018 8.00632L13.8202 4.63965",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M8 14.72V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),Ijt=e=>C.jsx(Ojt,{...e}),Rjt=e=>C.jsx(uee,{...e}),Pjt=e=>C.jsx(X7t,{...e}),Ljt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M12 8C16.9706 8 21 6.65685 21 5C21 3.34315 16.9706 2 12 2C7.02944 2 3 3.34315 3 5C3 6.65685 7.02944 8 12 8Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M21 12C21 13.66 17 15 12 15C7 15 3 13.66 3 12",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M3 5V19C3 20.66 7 22 12 22C17 22 21 20.66 21 19V5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Hjt={database:"_database_14jkq_1"},Njt=e=>C.jsx(Ljt,{className:Hjt.database,...e}),$jt=e=>m.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M9.33317 1.33301H3.99984C3.64622 1.33301 3.30708 1.47348 3.05703 1.72353C2.80698 1.97358 2.6665 2.31272 2.6665 2.66634V13.333C2.6665 13.6866 2.80698 14.0258 3.05703 14.2758C3.30708 14.5259 3.64622 14.6663 3.99984 14.6663H11.9998C12.3535 14.6663 12.6926 14.5259 12.9426 14.2758C13.1927 14.0258 13.3332 13.6866 13.3332 13.333V5.33301L9.33317 1.33301Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M9.3335 1.33301V5.33301H13.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M10.6668 8.66699H5.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M10.6668 11.333H5.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M6.66683 6H6.00016H5.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),Djt=e=>C.jsx($jt,{...e}),Bjt=e=>m.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1811_15061)"},m.createElement("path",{d:"M22.2271 7.38281L16.304 5.74219L14.6117 0H2.76551C1.36355 0 0.227051 1.10179 0.227051 2.46094V25.5391C0.227051 26.8982 1.36355 28 2.76551 28H19.6886C21.0906 28 22.2271 26.8982 22.2271 25.5391V7.38281Z",fill:"currentColor"}),m.createElement("path",{d:"M22.227 7.38281H16.3039C15.3731 7.38281 14.6116 6.64453 14.6116 5.74219V0C14.8316 0 15.0516 0.0820312 15.2038 0.246148L21.9731 6.80865C22.1423 6.95625 22.227 7.16953 22.227 7.38281Z",fill:"currentColor"}),m.createElement("path",{d:"M16.304 13.1797H6.15011C5.68241 13.1797 5.30396 12.8128 5.30396 12.3594C5.30396 11.906 5.68241 11.5391 6.15011 11.5391H16.304C16.7717 11.5391 17.1501 11.906 17.1501 12.3594C17.1501 12.8128 16.7717 13.1797 16.304 13.1797Z",fill:"white"}),m.createElement("path",{d:"M16.304 16.4609H6.15011C5.68241 16.4609 5.30396 16.094 5.30396 15.6406C5.30396 15.1872 5.68241 14.8203 6.15011 14.8203H16.304C16.7717 14.8203 17.1501 15.1872 17.1501 15.6406C17.1501 16.094 16.7717 16.4609 16.304 16.4609Z",fill:"white"}),m.createElement("path",{d:"M16.304 19.7422H6.15011C5.68241 19.7422 5.30396 19.3753 5.30396 18.9219C5.30396 18.4685 5.68241 18.1016 6.15011 18.1016H16.304C16.7717 18.1016 17.1501 18.4685 17.1501 18.9219C17.1501 19.3753 16.7717 19.7422 16.304 19.7422Z",fill:"white"}),m.createElement("path",{d:"M12.9193 23.0234H6.15011C5.68241 23.0234 5.30396 22.6565 5.30396 22.2031C5.30396 21.7497 5.68241 21.3828 6.15011 21.3828H12.9193C13.387 21.3828 13.7655 21.7497 13.7655 22.2031C13.7655 22.6565 13.387 23.0234 12.9193 23.0234Z",fill:"white"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1811_15061"},m.createElement("rect",{width:22,height:28,fill:"white"})))),Ake=e=>C.jsx(Bjt,{...e}),jjt=e=>C.jsx(M7t,{...e}),Mjt=e=>C.jsx(z7t,{...e}),zjt=e=>C.jsx(K7t,{...e}),Fjt=e=>m.createElement("svg",{viewBox:"0 0 30 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M7.58122 0H1C0.447715 0 0 0.447715 0 0.999999V21.0737H30V3.71273H12.0217L7.58122 0Z",fill:"#ADDAE9"}),m.createElement("path",{d:"M10.9928 0.157898H29C29.5523 0.157898 30 0.605613 30 1.1579V20C30 20.5523 29.5523 21 29 21H1.00002C0.447731 21 1.71661e-05 20.5523 1.71661e-05 20V3.93087C1.71661e-05 3.37858 0.447733 2.93087 1.00002 2.93087H6.55236L10.9928 0.157898Z",fill:"#CAE9F3"})),Wjt=e=>C.jsx(Fjt,{...e}),Vjt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M21 16.0019V8.00186C20.9996 7.65113 20.9071 7.30667 20.7315 7.00302C20.556 6.69937 20.3037 6.44722 20 6.27186L13 2.27186C12.696 2.09632 12.3511 2.00391 12 2.00391C11.6489 2.00391 11.304 2.09632 11 2.27186L4 6.27186C3.69626 6.44722 3.44398 6.69937 3.26846 7.00302C3.09294 7.30667 3.00036 7.65113 3 8.00186V16.0019C3.00036 16.3526 3.09294 16.697 3.26846 17.0007C3.44398 17.3043 3.69626 17.5565 4 17.7319L11 21.7319C11.304 21.9074 11.6489 21.9998 12 21.9998C12.3511 21.9998 12.696 21.9074 13 21.7319L20 17.7319C20.3037 17.5565 20.556 17.3043 20.7315 17.0007C20.9071 16.697 20.9996 16.3526 21 16.0019Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M3.26953 6.96094L11.9995 12.0109L20.7295 6.96094",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M12 22.08V12",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ujt=e=>C.jsx(Vjt,{...e}),qjt=e=>C.jsx(Tut,{...e}),Gjt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M22 3H2L10 12.46V19L14 21V12.46L22 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Yjt=e=>C.jsx(Gjt,{...e}),Kjt=e=>m.createElement("svg",{viewBox:"0 0 30 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M7.58122 0H1C0.447715 0 0 0.447715 0 0.999999V21.0737H30V3.71273H12.0217L7.58122 0Z",fill:"#ADDAE9"}),m.createElement("rect",{x:1.2179,y:2.44446,width:28.0128,height:15.8889,fill:"white"}),m.createElement("path",{d:"M10.9928 1.1579H29C29.5523 1.1579 30 1.60561 30 2.1579V21C30 21.5523 29.5523 22 29 22H1.00002C0.447731 22 1.71661e-05 21.5523 1.71661e-05 21V4.93087C1.71661e-05 4.37858 0.447733 3.93087 1.00002 3.93087H6.55236L10.9928 1.1579Z",fill:"#CAE9F3"})),Xjt=e=>C.jsx(Kjt,{...e}),Qjt=e=>C.jsx(G7t,{...e}),Zjt=e=>C.jsx(yKe,{...e}),Jjt=e=>C.jsx(Y7t,{...e}),eMt=e=>m.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1960_14704)"},m.createElement("path",{d:"M22.2271 7.38281L16.304 5.74219L14.6117 0H1.91936C0.984697 0 0.227051 0.734508 0.227051 1.64062V26.3594C0.227051 27.2655 0.984697 28 1.91936 28H20.5347C21.4694 28 22.2271 27.2655 22.2271 26.3594V7.38281Z",fill:"#F2F2F2"}),m.createElement("path",{d:"M22.2271 7.38281V26.3594C22.2271 27.2655 21.4695 28 20.5348 28H11.3625V0H14.6117L16.304 5.74219L22.2271 7.38281Z",fill:"#F2F2F2"}),m.createElement("path",{d:"M22.227 7.38281H16.3039C15.3731 7.38281 14.6116 6.64453 14.6116 5.74219V0C14.8316 0 15.0516 0.0820312 15.2038 0.246148L21.9731 6.80865C22.1423 6.95625 22.227 7.16953 22.227 7.38281Z",fill:"#E1E1E1"}),m.createElement("path",{d:"M9 17L14.1962 21.5H3.80385L9 17Z",fill:"#8BDC6F"}),m.createElement("path",{d:"M13 14L18.1963 21.5H7.80396L13 14Z",fill:"#8BDC6F"}),m.createElement("circle",{cx:7,cy:11,r:2,fill:"#EFC942"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1960_14704"},m.createElement("rect",{width:22,height:28,fill:"white"})))),tMt=e=>C.jsx(eMt,{...e});function rMt(e){return Qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M74.6 256c0-38.3 31.1-69.4 69.4-69.4h88V144h-88c-61.8 0-112 50.2-112 112s50.2 112 112 112h88v-42.6h-88c-38.3 0-69.4-31.1-69.4-69.4zm85.4 22h192v-44H160v44zm208-134h-88v42.6h88c38.3 0 69.4 31.1 69.4 69.4s-31.1 69.4-69.4 69.4h-88V368h88c61.8 0 112-50.2 112-112s-50.2-112-112-112z"}}]})(e)}const nMt=e=>C.jsx(rMt,{...e}),oMt=e=>C.jsx(uee,{...e}),iMt=e=>C.jsx(fjt,{...e}),aMt=e=>C.jsx(kKe,{...e}),lMt=e=>m.createElement("svg",{viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1813_15242)"},m.createElement("path",{d:"M21.788 7.38281L16.3739 5.74219L14.827 0H3.22546C2.37112 0 1.67859 0.734508 1.67859 1.64062V26.3594C1.67859 27.2655 2.37112 28 3.22546 28H20.2411C21.0954 28 21.788 27.2655 21.788 26.3594V7.38281Z",fill:"#EDEDED"}),m.createElement("path",{d:"M21.7879 7.38281V26.3594C21.7879 27.2655 21.0954 28 20.2411 28H11.8571V0H14.827L16.3739 5.74219L21.7879 7.38281Z",fill:"#EDEDED"}),m.createElement("path",{d:"M21.788 7.38281H16.3739C15.5231 7.38281 14.827 6.64453 14.827 5.74219V0C15.0281 0 15.2292 0.0820312 15.3684 0.246148L21.5559 6.80865C21.7106 6.95625 21.788 7.16953 21.788 7.38281Z",fill:"#BDBDBD"}),m.createElement("path",{d:"M20.5333 22.4259C20.5333 22.925 20.1483 23.3333 19.6778 23.3333H0.855556C0.385 23.3333 0 22.925 0 22.4259V13.3519C0 12.8528 0.385 12.4445 0.855556 12.4445H19.6778C20.1483 12.4445 20.5333 12.8528 20.5333 13.3519V22.4259Z",fill:"#FF3E3E"}),m.createElement("path",{d:"M4.25304 17.732V16.448H4.98504C5.09304 16.448 5.19704 16.456 5.29704 16.472C5.39704 16.488 5.48504 16.52 5.56104 16.568C5.63704 16.612 5.69704 16.676 5.74104 16.76C5.78904 16.844 5.81304 16.954 5.81304 17.09C5.81304 17.226 5.78904 17.336 5.74104 17.42C5.69704 17.504 5.63704 17.57 5.56104 17.618C5.48504 17.662 5.39704 17.692 5.29704 17.708C5.19704 17.724 5.09304 17.732 4.98504 17.732H4.25304ZM3.31104 15.716V20H4.25304V18.464H5.24304C5.51104 18.464 5.73904 18.426 5.92704 18.35C6.11504 18.27 6.26704 18.166 6.38304 18.038C6.50304 17.91 6.58904 17.764 6.64104 17.6C6.69704 17.432 6.72504 17.262 6.72504 17.09C6.72504 16.914 6.69704 16.744 6.64104 16.58C6.58904 16.416 6.50304 16.27 6.38304 16.142C6.26704 16.014 6.11504 15.912 5.92704 15.836C5.73904 15.756 5.51104 15.716 5.24304 15.716H3.31104Z",fill:"white"}),m.createElement("path",{d:"M8.85499 19.208V16.508H9.52699C9.75899 16.508 9.95299 16.542 10.109 16.61C10.269 16.674 10.397 16.768 10.493 16.892C10.589 17.016 10.657 17.166 10.697 17.342C10.741 17.514 10.763 17.708 10.763 17.924C10.763 18.16 10.733 18.36 10.673 18.524C10.613 18.688 10.533 18.822 10.433 18.926C10.333 19.026 10.219 19.098 10.091 19.142C9.96299 19.186 9.83099 19.208 9.69499 19.208H8.85499ZM7.91299 15.716V20H9.76099C10.089 20 10.373 19.946 10.613 19.838C10.857 19.726 11.059 19.574 11.219 19.382C11.383 19.19 11.505 18.962 11.585 18.698C11.665 18.434 11.705 18.146 11.705 17.834C11.705 17.478 11.655 17.168 11.555 16.904C11.459 16.64 11.323 16.42 11.147 16.244C10.975 16.068 10.769 15.936 10.529 15.848C10.293 15.76 10.037 15.716 9.76099 15.716H7.91299Z",fill:"white"}),m.createElement("path",{d:"M12.9603 15.716V20H13.9023V18.23H15.6963V17.498H13.9023V16.508H15.9723V15.716H12.9603Z",fill:"white"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1813_15242"},m.createElement("rect",{width:22,height:28,fill:"white"})))),sMt=e=>C.jsx(lMt,{...e}),uMt=e=>C.jsx(djt,{...e}),cMt=e=>C.jsx(_Ke,{...e}),dMt=e=>m.createElement("svg",{viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1960_14734)"},m.createElement("path",{d:"M22.2271 7.38281L16.304 5.74219L14.6117 0H1.91936C0.984697 0 0.227051 0.734508 0.227051 1.64062V26.3594C0.227051 27.2655 0.984697 28 1.91936 28H20.5347C21.4694 28 22.2271 27.2655 22.2271 26.3594V7.38281Z",fill:"#F2F2F2"}),m.createElement("path",{d:"M22.2271 7.38281V26.3594C22.2271 27.2655 21.4695 28 20.5348 28H11.3625V0H14.6117L16.304 5.74219L22.2271 7.38281Z",fill:"#F2F2F2"}),m.createElement("path",{d:"M22.227 7.38281H16.3039C15.3731 7.38281 14.6116 6.64453 14.6116 5.74219V0C14.8316 0 15.0516 0.0820312 15.2038 0.246148L21.9731 6.80865C22.1423 6.95625 22.227 7.16953 22.227 7.38281Z",fill:"#E1E1E1"}),m.createElement("path",{d:"M9 17L14.1962 21.5H3.80385L9 17Z",fill:"#8BDC6F"}),m.createElement("path",{d:"M13 14L18.1963 21.5H7.80396L13 14Z",fill:"#8BDC6F"}),m.createElement("circle",{cx:7,cy:11,r:2,fill:"#EFC942"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1960_14734"},m.createElement("rect",{width:22,height:28,fill:"white"})))),fMt=e=>C.jsx(dMt,{...e}),mMt=e=>C.jsx(Iut,{...e}),pMt=e=>C.jsx(SKe,{...e}),hMt=e=>m.createElement("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M18 8C19.6569 8 21 6.65685 21 5C21 3.34315 19.6569 2 18 2C16.3431 2 15 3.34315 15 5C15 6.65685 16.3431 8 18 8Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M6 15C7.65685 15 9 13.6569 9 12C9 10.3431 7.65685 9 6 9C4.34315 9 3 10.3431 3 12C3 13.6569 4.34315 15 6 15Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M18 22C19.6569 22 21 20.6569 21 19C21 17.3431 19.6569 16 18 16C16.3431 16 15 17.3431 15 19C15 20.6569 16.3431 22 18 22Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M8.58984 13.51L15.4198 17.49",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M15.4098 6.51001L8.58984 10.49",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),gMt=e=>C.jsx(hMt,{...e}),vMt=e=>C.jsx(q7t,{...e}),bMt=e=>m.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1811_14941)"},m.createElement("path",{d:"M21.7881 7.38281L16.374 5.74219L14.8271 0H3.22559C2.37125 0 1.67871 0.734508 1.67871 1.64062V26.3594C1.67871 27.2655 2.37125 28 3.22559 28H20.2412C21.0956 28 21.7881 27.2655 21.7881 26.3594V7.38281Z",fill:"#EDEDED"}),m.createElement("path",{d:"M21.7881 7.38281V26.3594C21.7881 27.2655 21.0955 28 20.2412 28H11.8572V0H14.8271L16.374 5.74219L21.7881 7.38281Z",fill:"#EDEDED"}),m.createElement("path",{d:"M21.7881 7.38281H16.374C15.5232 7.38281 14.8271 6.64453 14.8271 5.74219V0C15.0282 0 15.2293 0.0820312 15.3685 0.246148L21.556 6.80865C21.7107 6.95625 21.7881 7.16953 21.7881 7.38281Z",fill:"#BDBDBD"}),m.createElement("path",{d:"M20.5333 22.4259C20.5333 22.925 20.1483 23.3333 19.6778 23.3333H0.855556C0.385 23.3333 0 22.925 0 22.4259V13.3519C0 12.8528 0.385 12.4444 0.855556 12.4444H19.6778C20.1483 12.4444 20.5333 12.8528 20.5333 13.3519V22.4259Z",fill:"#161C28"}),m.createElement("path",{d:"M4.62629 16.508V20H5.56828V16.508H6.85229V15.716H3.34229V16.508H4.62629Z",fill:"white"}),m.createElement("path",{d:"M8.99625 17.756L7.50225 20H8.55825L9.51225 18.518L10.4483 20H11.5703L10.0763 17.762L11.4503 15.716H10.4183L9.54825 17.084L8.70825 15.716H7.61625L8.99625 17.756Z",fill:"white"}),m.createElement("path",{d:"M13.4962 16.508V20H14.4382V16.508H15.7222V15.716H12.2122V16.508H13.4962Z",fill:"white"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1811_14941"},m.createElement("rect",{width:22,height:28,fill:"white"})))),xMt=e=>C.jsx(bMt,{...e}),yMt=e=>m.createElement("svg",{viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1811_14989)"},m.createElement("path",{d:"M22.2271 7.38281L16.304 5.74219L14.6117 0H1.91936C0.984697 0 0.227051 0.734508 0.227051 1.64062V26.3594C0.227051 27.2655 0.984697 28 1.91936 28H20.5347C21.4694 28 22.2271 27.2655 22.2271 26.3594V7.38281Z",fill:"#C9E3F4"}),m.createElement("path",{d:"M22.2271 7.38281V26.3594C22.2271 27.2655 21.4695 28 20.5348 28H11.3625V0H14.6117L16.304 5.74219L22.2271 7.38281Z",fill:"#C9E3F4"}),m.createElement("path",{d:"M22.227 7.38281H16.3039C15.3731 7.38281 14.6116 6.64453 14.6116 5.74219V0C14.8316 0 15.0516 0.0820312 15.2038 0.246148L21.9731 6.80865C22.1423 6.95625 22.227 7.16953 22.227 7.38281Z",fill:"#AAC4D6"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1811_14989"},m.createElement("rect",{width:22,height:28,fill:"white"})))),wMt=e=>C.jsx(yMt,{...e}),CMt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M10 12.4503C10.3236 12.894 10.7365 13.2612 11.2106 13.5269C11.6847 13.7926 12.209 13.9505 12.7479 13.9901C13.2868 14.0297 13.8277 13.95 14.3339 13.7563C14.8401 13.5626 15.2998 13.2596 15.6817 12.8677L17.9424 10.549C18.6287 9.82019 19.0084 8.84404 18.9999 7.83081C18.9913 6.81758 18.595 5.84834 17.8965 5.13185C17.1979 4.41536 16.2529 4.00895 15.265 4.00015C14.2771 3.99134 13.3254 4.38085 12.6148 5.08478L11.3187 6.4064",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M13 10.5497C12.6764 10.106 12.2635 9.73881 11.7894 9.47313C11.3153 9.20745 10.791 9.04946 10.2521 9.00987C9.7132 8.97029 9.17231 9.05004 8.66611 9.24371C8.15991 9.43738 7.70024 9.74045 7.31828 10.1323L5.05764 12.451C4.37132 13.1798 3.99156 14.156 4.00014 15.1692C4.00873 16.1824 4.40497 17.1517 5.10354 17.8681C5.80211 18.5846 6.7471 18.991 7.73498 18.9999C8.72287 19.0087 9.6746 18.6192 10.3852 17.9152L11.6738 16.5936",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M8.1582 2.67383L9.06952 5.30645",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M18.4316 17.667L16.8262 15.3902",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M5 5.28906L7.23775 6.94848",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M20.7402 14.2783L18.1301 13.3044",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),kMt=e=>C.jsx(CMt,{...e}),_Mt=e=>C.jsx(cee,{...e}),TMt=e=>m.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M21.9982 7.38281L16.0756 5.74219L14.3835 0H1.69217C0.757586 0 0 0.734508 0 1.64062V26.3594C0 27.2655 0.757586 28 1.69217 28H20.3061C21.2407 28 21.9982 27.2655 21.9982 26.3594V7.38281Z",fill:"#59C36A"}),m.createElement("path",{d:"M21.9982 7.38281V26.3594C21.9982 27.2655 21.2406 28 20.306 28H11.1345V0H14.3834L16.0756 5.74219L21.9982 7.38281Z",fill:"#59C36A"}),m.createElement("path",{d:"M16.0753 11.5391H5.92226C5.4546 11.5391 5.07617 11.906 5.07617 12.3594V22.2031C5.07617 22.6565 5.4546 23.0234 5.92226 23.0234H16.0753C16.543 23.0234 16.9214 22.6565 16.9214 22.2031V12.3594C16.9214 11.906 16.543 11.5391 16.0753 11.5391ZM6.76834 16.4609H10.1527V18.1016H6.76834V16.4609ZM11.8449 16.4609H15.2292V18.1016H11.8449V16.4609ZM15.2292 14.8203H11.8449V13.1797H15.2292V14.8203ZM10.1527 13.1797V14.8203H6.76834V13.1797H10.1527ZM6.76834 19.7422H10.1527V21.3828H6.76834V19.7422ZM11.8449 21.3828V19.7422H15.2292V21.3828H11.8449Z",fill:"white"}),m.createElement("path",{d:"M16.0758 11.5391H11.1365V23.0234H16.0758C16.5435 23.0234 16.9219 22.6565 16.9219 22.2031V12.3594C16.9219 11.906 16.5435 11.5391 16.0758 11.5391ZM15.2297 21.3828H11.8454V19.7422H15.2297V21.3828ZM15.2297 18.1016H11.8454V16.4609H15.2297V18.1016ZM15.2297 14.8203H11.8454V13.1797H15.2297V14.8203Z",fill:"white"}),m.createElement("path",{d:"M21.9995 7.38281H16.0769C15.1462 7.38281 14.3848 6.64453 14.3848 5.74219V0C14.6047 0 14.8247 0.0820312 14.977 0.246148L21.7457 6.80865C21.9149 6.95625 21.9995 7.16953 21.9995 7.38281Z",fill:"#A0DEB0"})),SMt=e=>C.jsx(TMt,{...e}),EMt=e=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-trending-up",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e},m.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),m.createElement("path",{d:"M3 17l6 -6l4 4l8 -8"}),m.createElement("path",{d:"M14 7l7 0l0 7"})),AMt=e=>C.jsx(EMt,{...e}),OMt=e=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-trending-down",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e},m.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),m.createElement("path",{d:"M3 7l6 6l4 -4l8 8"}),m.createElement("path",{d:"M21 10l0 7l-7 0"})),IMt=e=>C.jsx(OMt,{...e}),RMt=e=>C.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",...e,children:[C.jsx("rect",{id:"sortasc",x:"0",y:"0",width:"24",height:"24",fill:"none"}),C.jsx("path",{d:"M12,2l7,8l-14,-0l7,-8Z",fill:"currentColor"}),C.jsx("path",{d:"M12,22l-7,-8l14,-0l-7,8Z",fill:"currentColor",fillOpacity:.5})]}),PMt=e=>C.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",...e,children:[C.jsx("rect",{id:"sortasc",x:"0",y:"0",width:"24",height:"24",fill:"none"}),C.jsx("path",{d:"M12,2l7,8l-14,-0l7,-8Z",fill:"currentColor",fillOpacity:.5}),C.jsx("path",{d:"M12,22l-7,-8l14,-0l-7,8Z",fill:"currentColor"})]}),LMt=e=>C.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",...e,children:[C.jsx("rect",{id:"sortasc",x:"0",y:"0",width:"24",height:"24",fill:"none"}),C.jsx("path",{d:"M12,2l7,8l-14,-0l7,-8Z",fill:"currentColor",fillOpacity:.5}),C.jsx("path",{d:"M12,22l-7,-8l14,-0l-7,8Z",fill:"currentColor",fillOpacity:.5})]}),HMt=e=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"icon ms-1",...e},m.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),m.createElement("path",{d:"M5 12l14 0"})),NMt=e=>C.jsx(HMt,{...e}),$Mt=e=>m.createElement("svg",{width:56,height:56,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{filter:"url(#filter0_d_8732_12671)"},m.createElement("rect",{x:10,y:10,width:36,height:36,rx:6,fill:"#143566",shapeRendering:"crispEdges"}),m.createElement("path",{d:"M28.834 18.6667H23.0007C22.5586 18.6667 22.1347 18.8423 21.8221 19.1549C21.5096 19.4675 21.334 19.8914 21.334 20.3334V33.6667C21.334 34.1088 21.5096 34.5327 21.8221 34.8453C22.1347 35.1578 22.5586 35.3334 23.0007 35.3334H33.0007C33.4427 35.3334 33.8666 35.1578 34.1792 34.8453C34.4917 34.5327 34.6673 34.1088 34.6673 33.6667V24.5001L28.834 18.6667Z",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M28.834 18.6667V24.5001H34.6673",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M29.666 30.3333L31.3327 28.6667L29.666 27",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M26.334 26.9999L24.6673 28.6666L26.334 30.3333",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),m.createElement("defs",null,m.createElement("filter",{id:"filter0_d_8732_12671",x:0,y:0,width:56,height:56,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),m.createElement("feOffset",null),m.createElement("feGaussianBlur",{stdDeviation:5}),m.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),m.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),m.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_8732_12671"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_8732_12671",result:"shape"})))),DMt=e=>C.jsx($Mt,{...e}),BMt=e=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},m.createElement("path",{d:"M600-640 480-760l120-120 120 120-120 120Zm200 120-80-80 80-80 80 80-80 80ZM483-80q-84 0-157.5-32t-128-86.5Q143-253 111-326.5T79-484q0-146 93-257.5T409-880q-18 99 11 193.5T520-521q71 71 165.5 100T879-410q-26 144-138 237T483-80Zm0-80q88 0 163-44t118-121q-86-8-163-43.5T463-465q-61-61-97-138t-43-163q-77 43-120.5 118.5T159-484q0 135 94.5 229.5T483-160Zm-20-305Z"})),jMt=e=>C.jsx(BMt,{...e}),MMt=e=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},m.createElement("path",{d:"m354-287 126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM233-120l65-281L80-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm457-560 21-89-71-59 94-8 36-84 36 84 94 8-71 59 21 89-80-47-80 47ZM480-481Z"})),zMt=e=>C.jsx(MMt,{...e}),FMt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8V16Z",fill:"#394150"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM12 4V8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16V20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4Z",fill:"#394150"})),WMt=e=>C.jsx(FMt,{...e}),VMt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M12 8C9.7909 8 8 9.7909 8 12C8 14.2091 9.7909 16 12 16L12 8Z",fill:"white"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5229 22 22 17.5229 22 12C22 6.4772 17.5228 2 12 2C6.4772 2 2 6.4772 2 12C2 17.5229 6.4772 22 12 22ZM12 20L12 16C14.2091 16 16 14.2091 16 12C16 9.7909 14.2091 8 12 8L12 4C7.5817 4 4 7.5817 4 12C4 16.4183 7.5817 20 12 20Z",fill:"white"})),UMt=e=>C.jsx(VMt,{...e}),qMt=e=>m.createElement("svg",{width:37,height:36,viewBox:"0 0 37 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M19.6797 30.6797H16.7538C16.4842 30.6797 16.2661 30.8978 16.2661 31.1673V31.655C16.2661 32.7308 17.141 33.6056 18.2168 33.6056C19.2925 33.6056 20.1674 32.7308 20.1674 31.655V31.1673C20.1674 30.8978 19.9493 30.6797 19.6797 30.6797Z",fill:"#868491"}),m.createElement("path",{d:"M18.2163 30.6797H16.7538C16.4842 30.6797 16.2661 30.8978 16.2661 31.1673V31.655C16.2661 32.7307 17.1407 33.6053 18.2163 33.6056V30.6797Z",fill:"#9A9A9A"}),m.createElement("path",{d:"M25.8957 5.43603C23.6164 3.29393 20.631 2.22101 17.4998 2.41742C11.7935 2.7725 7.18363 7.53242 7.00551 13.2541C6.87409 17.4935 9.10093 21.3967 12.8174 23.4411C13.7413 23.9497 14.3152 24.9265 14.3152 25.9908V29.704C14.3152 30.7798 15.19 31.6547 16.2658 31.6547H20.1671C21.2429 31.6547 22.1177 30.7798 22.1177 29.704V25.9908C22.1177 24.9274 22.6959 23.9483 23.6274 23.4349C27.2082 21.4595 29.4326 17.6954 29.4326 13.6112C29.4326 10.5281 28.1435 7.54833 25.8957 5.43603Z",fill:"#FFD93C"}),m.createElement("path",{d:"M18.2172 22.9604C23.3799 22.9604 27.5651 18.7752 27.5651 13.6125C27.5651 8.44982 23.3799 4.26465 18.2172 4.26465C13.0546 4.26465 8.86938 8.44982 8.86938 13.6125C8.86938 18.7752 13.0546 22.9604 18.2172 22.9604Z",fill:"#FFE980"}),m.createElement("path",{d:"M19.922 16.5376C19.2738 16.5376 18.9424 16.1594 18.701 15.8837C18.4881 15.6408 18.4033 15.5622 18.2133 15.5622C18.0242 15.5622 17.94 15.6408 17.728 15.8832C17.5004 16.1437 17.156 16.5376 16.5079 16.5376C15.8602 16.5376 15.5159 16.1437 15.2883 15.8832C15.0763 15.6408 14.9921 15.5622 14.803 15.5622C14.5334 15.5622 14.3153 15.3441 14.3153 15.0746C14.3153 14.805 14.5334 14.5869 14.803 14.5869C15.4506 14.5869 15.7949 14.9808 16.0226 15.2412C16.2346 15.4837 16.3188 15.5622 16.5079 15.5622C16.697 15.5622 16.7817 15.4837 16.9937 15.2412C17.2213 14.9808 17.5656 14.5869 18.2133 14.5869C18.8615 14.5869 19.1929 14.965 19.4343 15.2408C19.6472 15.4837 19.732 15.5622 19.922 15.5622C20.1115 15.5622 20.1963 15.4837 20.4092 15.2412C20.6373 14.9808 20.9816 14.5869 21.6302 14.5869C21.8998 14.5869 22.1179 14.805 22.1179 15.0746C22.1179 15.3441 21.8998 15.5622 21.6302 15.5622C21.4402 15.5622 21.3554 15.6408 21.1425 15.8837C20.9144 16.1442 20.5702 16.5376 19.922 16.5376Z",fill:"#FFF7CE"}),m.createElement("path",{d:"M16.7533 25.8024C16.529 25.8024 16.3271 25.6466 16.277 25.4185L13.8387 14.2023C13.7815 13.939 13.9488 13.6794 14.2116 13.6218C14.4764 13.5637 14.7345 13.7319 14.7921 13.9947L17.2304 25.2109C17.2876 25.4742 17.1204 25.7338 16.8575 25.7914C16.8224 25.7991 16.7875 25.8024 16.7533 25.8024Z",fill:"#FFF7CE"}),m.createElement("path",{d:"M19.6802 25.8022C19.6458 25.8022 19.6111 25.7989 19.5759 25.7913C19.313 25.7337 19.1458 25.4741 19.203 25.2108L21.6413 13.9946C21.6989 13.7317 21.9561 13.564 22.2218 13.6217C22.4847 13.6793 22.6518 13.9389 22.5947 14.2022L20.1564 25.4184C20.1064 25.6466 19.9045 25.8022 19.6802 25.8022Z",fill:"#FFF7CE"}),m.createElement("path",{d:"M14.2314 25.3164C14.2833 25.5354 14.3152 25.761 14.3152 25.9922V29.7053C14.3152 30.7811 15.1901 31.656 16.2658 31.656H20.1671C21.2429 31.656 22.1178 30.7811 22.1178 29.7053V25.9922C22.1178 25.7612 22.1499 25.5355 22.2021 25.3164H14.2314Z",fill:"#B4B6BC"}),m.createElement("path",{d:"M18.2162 25.3164H14.2314C14.2833 25.5354 14.3152 25.761 14.3152 25.9922V29.7053C14.3152 30.7811 15.1901 31.656 16.2658 31.656H18.2162V25.3164Z",fill:"#B4B6BC"}),m.createElement("path",{d:"M22.1175 26.7773H18.2162V27.7527H22.1175V26.7773Z",fill:"#9A9A9A"}),m.createElement("path",{d:"M22.1177 28.7285H18.2164V29.7038H22.1177V28.7285Z",fill:"#9A9A9A"}),m.createElement("path",{d:"M18.2162 26.7773H14.3149V27.7527H18.2162V26.7773Z",fill:"#9A9A9A"}),m.createElement("path",{d:"M18.2162 28.7285H14.3149V29.7038H18.2162V28.7285Z",fill:"#9A9A9A"})),GMt=e=>C.jsx(qMt,{...e}),YMt=e=>m.createElement("svg",{width:36,height:36,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M15.8283 6C16.5981 4.66667 18.5226 4.66667 19.2924 6L31.8498 27.75C32.6196 29.0833 31.6573 30.75 30.1177 30.75H5.00298C3.46338 30.75 2.50113 29.0833 3.27093 27.75L15.8283 6Z",fill:"url(#paint0_linear_11265_27105)"}),m.createElement("path",{d:"M15.8278 6C16.5976 4.66667 18.5229 4.66667 19.2927 6L31.8493 27.75C32.595 29.0416 31.7158 30.646 30.2605 30.7451L30.1179 30.75V29.75C30.8875 29.7498 31.3687 28.9166 30.9841 28.25L18.4265 6.5C18.0657 5.87505 17.1975 5.83607 16.7731 6.38281L16.694 6.5L4.13643 28.25C3.75177 28.9166 4.23306 29.7498 5.00264 29.75V30.75L4.86006 30.7451C3.4517 30.6492 2.5826 29.1436 3.20381 27.876L3.2712 27.75L15.8278 6ZM30.1179 29.75V30.75H5.00264V29.75H30.1179Z",fill:"#FFD93C"}),m.createElement("path",{d:"M18.9476 12.0938L18.7226 22.572H16.5272L16.309 12.0938H18.9476ZM17.6249 27.0938C17.2112 27.0938 16.8567 26.9392 16.5612 26.63C16.2703 26.3208 16.1249 25.944 16.1249 25.4995C16.1249 25.0648 16.2703 24.6928 16.5612 24.3836C16.8567 24.0744 17.2112 23.9198 17.6249 23.9198C18.0294 23.9198 18.3794 24.0744 18.6749 24.3836C18.9749 24.6928 19.1249 25.0648 19.1249 25.4995C19.1249 25.7942 19.0544 26.0623 18.9135 26.3039C18.7772 26.5454 18.5953 26.7387 18.3681 26.8836C18.1453 27.0237 17.8976 27.0938 17.6249 27.0938Z",fill:"black"}),m.createElement("defs",null,m.createElement("linearGradient",{id:"paint0_linear_11265_27105",x1:17.5604,y1:3,x2:17.5604,y2:40,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#FFE980"}),m.createElement("stop",{offset:.932692,stopColor:"#FFD93C"})))),KMt=e=>C.jsx(YMt,{...e}),XMt=e=>m.createElement("svg",{width:36,height:36,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M18 6C11.3831 6 6 11.3832 6 18C6 24.6168 11.3831 30 18 30C24.6169 30 30 24.6168 30 18C30 11.3832 24.6169 6 18 6ZM18 8.32256C20.2505 8.32256 22.324 9.09473 23.9696 10.3881L10.3881 23.9696C9.09478 22.324 8.32256 20.2505 8.32256 18C8.32256 12.6639 12.6639 8.32256 18 8.32256ZM18 27.6774C15.7495 27.6774 13.676 26.9053 12.0304 25.6119L25.6119 12.0304C26.9053 13.676 27.6774 15.7495 27.6774 18C27.6774 23.3361 23.3361 27.6774 18 27.6774Z",fill:"url(#paint0_linear_11264_27095)"}),m.createElement("path",{d:"M29.9167 18C29.9167 11.4292 24.5709 6.08333 18 6.08333C11.4291 6.08333 6.08333 11.4292 6.08333 18C6.08333 24.5708 11.4291 29.9167 18 29.9167C24.5709 29.9167 29.9167 24.5708 29.9167 18ZM26.527 18C26.527 16.4591 26.1141 15.0148 25.3961 13.7661L13.7661 25.3961C15.0148 26.1141 16.4591 26.527 18 26.527V27.6104L17.5832 27.6008C15.5096 27.5119 13.6043 26.763 12.0723 25.559L25.559 12.0723C26.8433 13.7064 27.6104 15.7652 27.6104 18L27.5977 18.4941C27.3396 23.5644 23.1334 27.6104 18 27.6104V26.527C22.7007 26.527 26.527 22.7007 26.527 18ZM18.4168 8.39917C20.4904 8.4881 22.3957 9.23699 23.9277 10.441L10.441 23.9277C9.23704 22.3957 8.4881 20.4904 8.39917 18.4168L8.38965 18C8.38965 12.7009 12.7009 8.38965 18 8.38965L18.4168 8.39917ZM9.47298 18C9.47298 19.5404 9.88531 20.9844 10.6029 22.2328L22.2328 10.6029C20.9844 9.8853 19.5404 9.47298 18 9.47298C13.2993 9.47298 9.47298 13.2993 9.47298 18ZM31 18C31 25.1691 25.1692 31 18 31C10.8308 31 5 25.1691 5 18C5 10.8309 10.8308 5 18 5C25.1692 5 31 10.8309 31 18Z",fill:"url(#paint1_linear_11264_27095)"}),m.createElement("path",{d:"M31 18C31 10.9428 25.35 5.18214 18.335 5.00391L18 5C10.8308 5 5 10.8309 5 18L5.00391 18.335C5.17931 25.2386 10.7613 30.8207 17.665 30.9961L18 31C25.0573 31 30.8179 25.3499 30.9961 18.335L31 18ZM29.6162 18C29.6162 11.5949 24.4052 6.38379 18 6.38379C11.5948 6.38379 6.38379 11.5949 6.38379 18C6.38379 24.4051 11.5948 29.6162 18 29.6162V29.917L17.6934 29.9131C11.3655 29.7525 6.24754 24.6344 6.08691 18.3066L6.08301 18C6.08301 11.4292 11.4291 6.08301 18 6.08301L18.3066 6.08691C24.7364 6.25013 29.917 11.5317 29.917 18L29.9131 18.3066C29.7499 24.7363 24.4684 29.917 18 29.917V29.6162C24.4052 29.6162 29.6162 24.4051 29.6162 18ZM25.7949 11.8867C27.1191 13.5716 27.9102 15.6954 27.9102 18V18.0078L27.8975 18.502V18.5098C27.6311 23.7386 23.2939 27.9102 18 27.9102H17.9932L17.5762 27.9004H17.5703C15.4317 27.8087 13.4663 27.0363 11.8867 25.7949L11.6211 25.5859L25.5859 11.6211L25.7949 11.8867ZM12.0723 25.5586C13.6042 26.7626 15.5095 27.5116 17.583 27.6006L18 27.6104C22.9728 27.6104 27.0751 23.8136 27.5615 18.9668L27.5977 18.4941L27.6104 18C27.6104 15.7652 26.8429 13.7063 25.5586 12.0723L12.0723 25.5586ZM26.2266 18C26.2266 16.6539 25.8993 15.3851 25.3232 14.2627L14.2627 25.3232C15.3851 25.8993 16.6539 26.2266 18 26.2266C22.5351 26.2266 26.2266 22.5351 26.2266 18ZM18.0068 8.08984L18.4238 8.09961H18.4297L18.8281 8.125C20.8122 8.28992 22.6323 9.04117 24.1133 10.2051L24.3789 10.4141L10.4141 24.3789L10.2051 24.1133C8.96372 22.5337 8.19133 20.5683 8.09961 18.4297V18.4238L8.08984 18.0068V18L8.10254 17.4912C8.36824 12.262 12.7059 8.08984 18 8.08984H18.0068ZM18 8.38965C12.7009 8.38965 8.38965 12.7009 8.38965 18L8.39941 18.417C8.48838 20.4905 9.23748 22.3958 10.4414 23.9277L23.9277 10.4414C22.3958 9.23743 20.4905 8.48838 18.417 8.39941L18 8.38965ZM18.2881 9.47754C19.7202 9.52552 21.0622 9.93004 22.2324 10.6025L10.6025 22.2324C9.93005 21.0622 9.52552 19.7202 9.47754 18.2881L9.47266 18C9.47266 13.2993 13.2993 9.47266 18 9.47266L18.2881 9.47754ZM9.77344 18C9.77344 19.3452 10.0995 20.6135 10.6748 21.7354L21.7354 10.6748C20.6135 10.0995 19.3452 9.77344 18 9.77344C13.4649 9.77344 9.77344 13.4649 9.77344 18ZM26.5156 18.4385C26.2865 22.9364 22.5537 26.5273 18 26.5273C16.4593 26.5273 15.0152 26.1143 13.7666 25.3965L25.3965 13.7666C26.1143 15.0152 26.5273 16.4593 26.5273 18L26.5156 18.4385ZM31.2998 18C31.2998 25.3348 25.3349 31.2998 18 31.2998C10.6651 31.2998 4.7002 25.3348 4.7002 18C4.7002 10.6652 10.6651 4.7002 18 4.7002C25.3349 4.7002 31.2998 10.6652 31.2998 18Z",fill:"url(#paint2_linear_11264_27095)"}),m.createElement("defs",null,m.createElement("linearGradient",{id:"paint0_linear_11264_27095",x1:18,y1:6,x2:18,y2:30,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#ED5A3B"}),m.createElement("stop",{offset:1,stopColor:"#AF3117"})),m.createElement("linearGradient",{id:"paint1_linear_11264_27095",x1:18,y1:5,x2:18,y2:31,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#EC5A3A"}),m.createElement("stop",{offset:1,stopColor:"#AF3117"})),m.createElement("linearGradient",{id:"paint2_linear_11264_27095",x1:18,y1:5,x2:18,y2:31,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#EB5A39"}),m.createElement("stop",{offset:1,stopColor:"#B03117"})))),QMt=e=>C.jsx(XMt,{...e}),ZMt=e=>m.createElement("svg",{width:36,height:36,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M7 5.15039H28C28.4694 5.15039 28.8496 5.53056 28.8496 6V26.6445C28.8496 26.8769 28.755 27.0994 28.5869 27.2598L24.0205 31.6152C23.8625 31.766 23.652 31.8496 23.4336 31.8496H7C6.53056 31.8496 6.15039 31.4694 6.15039 31V6C6.15039 5.53056 6.53056 5.15039 7 5.15039Z",fill:"#FEFEFE",stroke:"#666666",strokeWidth:.3}),m.createElement("path",{d:"M26.0982 12.5596H8.58191V13.083H26.0982V12.5596Z",fill:"#666666"}),m.createElement("path",{d:"M26.0982 15.3857H8.58191V15.9092H26.0982V15.3857Z",fill:"#666666"}),m.createElement("path",{d:"M26.0982 18.2109H8.58191V18.7344H26.0982V18.2109Z",fill:"#666666"}),m.createElement("path",{d:"M26.0982 21.0039H8.58191V21.5273H26.0982V21.0039Z",fill:"#666666"}),m.createElement("path",{d:"M26.0982 23.8291H8.58191V24.3525H26.0982V23.8291Z",fill:"#666666"}),m.createElement("path",{d:"M16.8516 27.0947H8.58191V27.6181H16.8516V27.0947Z",fill:"#666666"}),m.createElement("path",{d:"M23.9056 32.3591L29 27.2646H23.9056V32.3591Z",fill:"#F4F2F2"}),m.createElement("path",{d:"M21 9H14V10H21V9Z",fill:"#535353"}),m.createElement("path",{d:"M23.9339 14.783L22.4576 13.9355L21.6053 15.4034L23.0816 16.2508L23.9339 14.783Z",fill:"#E0E1E2"}),m.createElement("path",{d:"M25.6385 11.8475L24.8948 11.4206C24.7937 11.3625 24.6837 11.3307 24.5715 11.3222C24.5154 11.318 24.4589 11.3196 24.4026 11.3276C24.1208 11.3654 23.8457 11.5452 23.6789 11.8325L22.4576 13.9357L23.9339 14.7831L25.6385 11.8475Z",fill:"#E85738"}),m.createElement("path",{d:"M24.9268 17.3103L23.0815 16.251L18.1808 24.6911L20.0261 25.7504L24.9268 17.3103Z",fill:"#F2C91D"}),m.createElement("path",{d:"M25.7791 15.8425L23.9338 14.7832L23.0815 16.251L24.9268 17.3104L25.7791 15.8425Z",fill:"#C4C4C4"}),m.createElement("path",{d:"M25.7791 15.8427L27.0003 13.7395C27.1671 13.4522 27.1541 13.107 26.9975 12.8174C26.9664 12.7598 26.9289 12.7036 26.8866 12.6514C26.8012 12.5465 26.6944 12.4539 26.568 12.3813L25.6384 11.8477L23.9338 14.7833L25.7791 15.8427Z",fill:"#B13218"}),m.createElement("path",{d:"M20.0261 25.7505L16.7046 23.8438L16.6607 27.7328L20.0261 25.7505Z",fill:"#FDEDD9"}),m.createElement("path",{d:"M17.8536 26.95L16.7465 26.3145L16.6608 27.7331L17.8536 26.95Z",fill:"#4C4C4C"}),m.createElement("path",{d:"M23.0816 16.2508L21.6053 15.4033L16.7046 23.8434L18.1808 24.6909L23.0816 16.2508Z",fill:"#FFD93C"})),JMt=e=>C.jsx(ZMt,{...e}),ezt=e=>m.createElement("svg",{width:36,height:36,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M5.29297 5.15039H30.6719C31.2902 5.15044 31.7575 5.5568 31.8389 6.09961L31.8496 6.20215V24.1748C31.8496 24.7617 31.3364 25.2273 30.707 25.2275H14.5459L14.5068 25.2539L6.49219 30.7158V25.2275H5.29297C4.63423 25.2273 4.15039 24.7343 4.15039 24.1748V6.20215C4.15058 5.61545 4.66376 5.15058 5.29297 5.15039Z",fill:"url(#paint0_linear_11266_27250)",stroke:"#666666",strokeWidth:.3}),m.createElement("path",{d:"M25.6739 12.3672H11V12.8057H25.6739V12.3672Z",fill:"#666666"}),m.createElement("path",{d:"M25.6739 14.7344H11V15.1729H25.6739V14.7344Z",fill:"#666666"}),m.createElement("path",{d:"M25.6739 17.0742H11V17.5127H25.6739V17.0742Z",fill:"#666666"}),m.createElement("defs",null,m.createElement("linearGradient",{id:"paint0_linear_11266_27250",x1:16.7273,y1:21.25,x2:12.1155,y2:30.9251,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#FEFEFE"}),m.createElement("stop",{offset:1,stopColor:"#E0E0E0"})))),tzt=e=>C.jsx(ezt,{...e});function rzt(e){return C.jsxs("svg",{viewBox:"0 0 24 16",stroke:"currentColor",fill:"none",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[C.jsx("rect",{x:"1.5",y:"1.5",width:"13",height:"11",rx:"1"}),C.jsx("line",{x1:"1.5",y1:"5.5",x2:"14.5",y2:"5.5"}),C.jsx("line",{x1:"1.5",y1:"9.5",x2:"14.5",y2:"9.5"}),C.jsx("line",{x1:"19",y1:"6",x2:"19",y2:"10"}),C.jsx("line",{x1:"17",y1:"8",x2:"21",y2:"8"})]})}function nzt(e){return C.jsxs("svg",{viewBox:"0 0 24 16",stroke:"currentColor",fill:"none",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[C.jsx("rect",{x:"1.5",y:"1.5",width:"13",height:"11",rx:"1"}),C.jsx("line",{x1:"1.5",y1:"5.5",x2:"14.5",y2:"5.5"}),C.jsx("line",{x1:"1.5",y1:"9.5",x2:"14.5",y2:"9.5"}),C.jsx("line",{x1:"17",y1:"8",x2:"21",y2:"8"})]})}function ozt(e){return C.jsxs("svg",{viewBox:"0 0 24 16",stroke:"currentColor",fill:"none",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"24",height:"16",...e,children:[C.jsx("rect",{x:"1.5",y:"1.5",width:"13",height:"11",rx:"1"}),C.jsx("line",{x1:"5.5",y1:"3.5",x2:"5.5",y2:"11.5"}),C.jsx("line",{x1:"9",y1:"3.5",x2:"9",y2:"11.5"}),C.jsx("line",{x1:"19",y1:"6.5",x2:"19",y2:"9.5"}),C.jsx("line",{x1:"17.5",y1:"8",x2:"20.5",y2:"8"})]})}function izt(e){return C.jsxs("svg",{viewBox:"0 0 24 16",stroke:"currentColor",fill:"none",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"24",height:"16",...e,children:[C.jsx("rect",{x:"1.5",y:"1.5",width:"13",height:"11",rx:"1"}),C.jsx("line",{x1:"5.5",y1:"3.5",x2:"5.5",y2:"11.5"}),C.jsx("line",{x1:"9",y1:"3.5",x2:"9",y2:"11.5"}),C.jsx("line",{x1:"17",y1:"8",x2:"21",y2:"8"})]})}const i5=new Map;function De(e,t){typeof e=="object"?e.forEach(r=>{i5.set(r,{renderer:t})}):i5.set(e.toLowerCase(),{renderer:t})}De("assign",e=>C.jsx(cee,{...e})),De("arrowup",e=>C.jsx(S7t,{...e})),De("arrowleft",e=>C.jsx(_7t,{...e})),De("arrowright",e=>C.jsx(T7t,{...e})),De("pause",e=>C.jsx(O7t,{...e})),De("play",e=>C.jsx(I7t,{...e})),De("date",e=>C.jsx(mjt,{...e})),De("hamburger",e=>C.jsx(Aut,{...e})),De("send",e=>C.jsx(Rut,{...e})),De("users",e=>C.jsx(PKe,{...e})),De("refresh",e=>C.jsx(TKe,{...e})),De("chevrondown",e=>C.jsx(dKe,{...e})),De("chevronup",e=>C.jsx(fKe,{...e})),De("chevronright",e=>C.jsx(Sjt,{...e})),De("chevronleft",e=>C.jsx(Tjt,{...e})),De("dotmenu",e=>C.jsx(Mjt,{...e})),De("dotmenuhorizontal",e=>C.jsx(jjt,{...e})),De("noresult",e=>C.jsx(EKe,{...e})),De("crm",e=>C.jsx(Eke,{...e})),De("chat",e=>C.jsx(Eke,{...e})),De("pencil",e=>C.jsx(V7t,{...e})),De("cube",e=>C.jsx(j7t,{...e})),De("apps",e=>C.jsx(see,{...e})),De("permissions",e=>C.jsx(wKe,{...e})),De("close",e=>C.jsx(LKe,{...e})),De("star",e=>C.jsx(AKe,{...e})),De("help",e=>C.jsx(xKe,{...e})),De("compactlist",e=>C.jsx(Rjt,{...e})),De("copy",e=>C.jsx(Pjt,{...e})),De("move",e=>C.jsx(hKe,{...e})),De("rename",e=>C.jsx(Q7t,{...e})),De("hyperlink",e=>C.jsx(Jjt,{...e})),De("globe",e=>C.jsx(Qjt,{...e})),De("link",e=>C.jsx(nMt,{...e})),De("looseList",e=>C.jsx(iMt,{...e})),De("options",e=>C.jsx(aMt,{...e})),De("search",e=>C.jsx(pMt,{...e})),De("filter",e=>C.jsx(Yjt,{...e})),De("trash",e=>C.jsx(vMt,{...e})),De("pen",e=>C.jsx(uMt,{...e})),De("email",e=>C.jsx(zjt,{...e})),De("phone",e=>C.jsx(cMt,{...e})),De("home",e=>C.jsx(Zjt,{...e})),De("user",e=>C.jsx(_Mt,{...e})),De("exit",e=>C.jsx(x_t,{...e})),De("adduser",e=>C.jsx(RKe,{...e})),De("userminus",e=>C.jsx(IKe,{...e})),De("plus",e=>C.jsx(mMt,{...e})),De("inspect",e=>C.jsx(DMt,{...e})),De("plus-circle",e=>C.jsx(Out,{...e})),De("filledplus",e=>C.jsx(qjt,{...e})),De("darktolight",e=>C.jsx(UMt,{...e})),De("lighttodark",e=>C.jsx(WMt,{...e})),De("checkmark",e=>C.jsx(_jt,{...e})),De("valid",e=>C.jsx(uKe,{...e})),De("info",e=>C.jsx(sKe,{...e})),De("error",e=>C.jsx(mle,{...e})),De("warning",e=>C.jsx(fle,{...e})),De("board",e=>C.jsx(wjt,{...e})),De("list",e=>C.jsx(oMt,{...e})),De("folder",e=>C.jsx(Xjt,{...e})),De("folder-outline",e=>C.jsx(vKe,{...e})),De("emptyfolder",e=>C.jsx(Wjt,{...e})),De("pdf",e=>C.jsx(sMt,{...e})),De("txt",e=>C.jsx(xMt,{...e})),De("doc",e=>C.jsx(Ake,{...e})),De("docx",e=>C.jsx(Ake,{...e})),De("doc-outline",e=>C.jsx(Djt,{...e})),De("conf",e=>C.jsx(N7t,{...e})),De("code",e=>C.jsx(Ajt,{...e})),De("codesandbox",e=>C.jsx(Ijt,{...e})),De("box",e=>C.jsx(kjt,{...e})),De(["xls","xlsx"],e=>C.jsx(SMt,{...e})),De(["jpg","jpeg","png","webp","svg","gif","tif","ppt","pptx"],e=>C.jsx(tMt,{...e})),De("unknownfile",e=>C.jsx(wMt,{...e})),De("photo",e=>C.jsx(fMt,{...e})),De("previous",e=>C.jsx(B7t,{...e})),De("next",e=>C.jsx(D7t,{...e})),De("like",e=>C.jsx(Eut,{...e})),De("reply",e=>C.jsx(R7t,{...e})),De("attach",e=>C.jsx(vjt,{...e})),De("attach2",e=>C.jsx(tjt,{...e})),De("emoji",e=>C.jsx($7t,{...e})),De("message",e=>C.jsx(J7t,{...e})),De("upload",e=>C.jsx(OKe,{...e})),De("split-vertical",e=>C.jsx(ijt,{...e})),De("split-horizontal",e=>C.jsx(ojt,{...e})),De("swap",e=>C.jsx(U7t,{...e})),De("download",e=>C.jsx(gKe,{...e})),De("note",e=>C.jsx(ejt,{...e})),De("binding",e=>C.jsx(yjt,{...e})),De("database",e=>C.jsx(Njt,{...e})),De("unlink",e=>C.jsx(kMt,{...e})),De("api",e=>C.jsx(hjt,{...e})),De("expression",e=>C.jsx(Ujt,{...e})),De("chat",e=>C.jsx(E7t,{...e})),De("hash",e=>C.jsx(A7t,{...e})),De("drive",e=>C.jsx(bKe,{...e})),De("lock",e=>C.jsx(CKe,{...e})),De("start",e=>C.jsx(rjt,{...e})),De("stop",e=>C.jsx(njt,{...e})),De("restart",e=>C.jsx(sjt,{...e})),De("duplicate",e=>C.jsx(cjt,{...e})),De("connect",e=>C.jsx(y_t,{...e})),De("cog",e=>C.jsx(ujt,{...e})),De("sun",e=>C.jsx(ajt,{...e})),De("moon",e=>C.jsx(jMt,{...e})),De("stars",e=>C.jsx(zMt,{...e})),De("share",e=>C.jsx(gMt,{...e})),De("new-window",e=>C.jsx(ape,{...e})),De("paint",e=>C.jsx(ljt,{...e})),De("palette",e=>C.jsx(Z7t,{...e})),De("trending-up",e=>C.jsx(AMt,{...e})),De("trending-down",e=>C.jsx(IMt,{...e})),De("trending-level",e=>C.jsx(NMt,{...e})),De("sortasc",e=>C.jsx(RMt,{...e})),De("sortdesc",e=>C.jsx(PMt,{...e})),De("nosort",e=>C.jsx(LMt,{...e})),De("admonition_info",e=>C.jsx(GMt,{...e})),De("admonition_warning",e=>C.jsx(KMt,{...e})),De("admonition_danger",e=>C.jsx(QMt,{...e})),De("admonition_note",e=>C.jsx(JMt,{...e})),De("admonition_tip",e=>C.jsx(tzt,{...e})),De("arrowdown",e=>C.jsx(k7t,{...e})),De("square",e=>C.jsx(H7t,{...e})),De("squarehalf",e=>C.jsx(L7t,{...e})),De("squarefill",e=>C.jsx(P7t,{...e})),De("table-insert-row",e=>C.jsx(rzt,{...e})),De("table-delete-row",e=>C.jsx(nzt,{...e})),De("table-insert-column",e=>C.jsx(ozt,{...e})),De("table-delete-column",e=>C.jsx(izt,{...e})),De("eye",e=>C.jsx(W7t,{...e})),De("eye-off",e=>C.jsx(F7t,{...e}));function azt({children:e}){const t=m.useCallback(()=>Array.from(i5.keys()),[]),r=m.useCallback(u=>i5.get(u),[]),[n,o]=m.useState({}),i=m.useRef({}),a=m.useRef(null),l=m.useCallback(async u=>{if(i.current[u])return;const c=await(await fetch(u)).text(),d=document.createElement("div");d.style.display="none",d.innerHTML=c;const f={};for(let v=0;v<d.children[0].attributes.length;v++){const b=d.children[0].attributes[v];b.nodeName!=="class"&&(f[b.nodeName]=b.nodeValue)}Object.keys(f).forEach(v=>{d.children[0].removeAttribute(v)});const p=document.createElementNS("http://www.w3.org/2000/svg","symbol");p.innerHTML=d.children[0].innerHTML,p.id=u,p.setAttributeNS(null,"viewBox",f.viewBox),i.current[u]||(a.current.appendChild(p),i.current[u]=!0);const h={name:u,attributes:f};o(v=>({...v,[u]:h}))},[]),s=m.useMemo(()=>({getRegisteredIconNames:t,lookupIconRenderer:r,ensureCustomSvgIcon:l,customSvgs:n}),[n,l,t,r]);return C.jsxs(yK.Provider,{value:s,children:[e,C.jsx("svg",{style:{display:"none"},ref:a})]})}const lzt="0.9.82",Oke={capitalize:YLe,pluralize:a7e,defaultTo:vNe,toHashObject:l7e,findByField:s7e,distinct:u7e};function szt(e){return(e?new Date(e):new Date).toJSON()}function Ike(e){return new Date(e).toLocaleDateString()}function uzt(e){return new Date(e).toLocaleString()}function czt(e){return new Date(e).toLocaleTimeString()}function dzt(e){return gd(new Date(e),"H:m")}function fzt(e){return new Date(e).toLocaleDateString([],{month:"numeric",day:"2-digit"})}function Rke(e){return e?new Date(e):new Date}function mzt(e,t,r){return e?QBe(e,t,r):"-"}function pzt(e){return e?NT(new Date(e))?new Date(e).toLocaleTimeString():ABe(new Date(e))?`${ADe(new Date(e),new Date)}`:new Date(e).toLocaleString():"-"}function hzt(e){return e?NT(new Date(e))?"Today":fP(new Date(e))?"Yesterday":new Date(e).toLocaleDateString():"-"}function gzt(e){return NT(new Date(e))}function vzt(e){return fP(new Date(e))}function bzt(e){return IBe(new Date(e))}function xzt(e,t=!1){const r=new Date,n=new Date(e),o=r.getTime()-n.getTime();if(o<0)return Ike(e);const i=Math.floor(o/1e3),a=Math.floor(i/60),l=Math.floor(a/60),s=Math.floor(l/24),u=Math.floor(s/7),c=Math.floor(s/30),d=Math.floor(s/365),f={second:{singular:t?"s":"second",plural:t?"s":"seconds"},minute:{singular:t?"min":"minute",plural:t?"min":"minutes"},hour:{singular:t?"hr":"hour",plural:t?"hrs":"hours"},day:{singular:t?"d":"day",plural:t?"d":"days"},week:{singular:t?"wk":"week",plural:t?"wks":"weeks"},month:{singular:t?"mo":"month",plural:t?"mos":"months"},year:{singular:t?"y":"year",plural:t?"yrs":"years"}};if(i<10)return"now";if(i<60){const h=i===1?f.second.singular:f.second.plural;return`${i} ${h} ago`}if(a<60){const h=a===1?f.minute.singular:f.minute.plural;return`${a} ${h} ago`}if(NT(n)){const h=l===1?f.hour.singular:f.hour.plural;return`${l} ${h} ago`}if(fP(n))return"yesterday";if(s<7){const h=s===1?f.day.singular:f.day.plural;return`${s} ${h} ago`}if(u<4){const h=u===1?f.week.singular:f.week.plural;return`${u} ${h} ago`}if(c<12){const h=c===1?f.month.singular:f.month.plural;return`${c} ${h} ago`}const p=d===1?f.year.singular:f.year.plural;return`${d} ${p} ago`}const Pke={isoDateString:szt,formatDate:Ike,formatDateTime:uzt,formatTime:czt,formatTimeWithoutSeconds:dzt,formatDateWithoutYear:fzt,getDate:Rke,getDateUntilNow:mzt,smartFormatDateTime:pzt,smartFormatDate:hzt,isToday:gzt,isYesterday:vzt,isTomorrow:bzt,differenceInMinutes:k$e,isSameDay:AT,isThisYear:OBe,formatHumanElapsedTime:xzt};function yzt(e,t){if(e.length===0)return 0;const n=Lke(e)/e.length;return t?Number(n.toFixed(t)):n}function Lke(e){return e.reduce((t,r)=>t+r,0)}const wzt={avg:yzt,sum:Lke};var Bo=(e=>(e.LOADER_LOADED="ContainerActionKind:LOADER_LOADED",e.LOADER_IN_PROGRESS_CHANGED="ContainerActionKind:LOADER_IN_PROGRESS_CHANGED",e.LOADER_IS_REFETCHING_CHANGED="ContainerActionKind:LOADER_IS_REFETCHING_CHANGED",e.LOADER_ERROR="ContainerActionKind:LOADER_ERROR",e.EVENT_HANDLER_STARTED="ContainerActionKind:EVENT_HANDLER_STARTED",e.EVENT_HANDLER_COMPLETED="ContainerActionKind:EVENT_HANDLER_COMPLETED",e.EVENT_HANDLER_ERROR="ContainerActionKind:EVENT_HANDLER_ERROR",e.COMPONENT_STATE_CHANGED="ContainerActionKind:COMPONENT_STATE_CHANGED",e.STATE_PART_CHANGED="ContainerActionKind:STATE_PART_CHANGED",e))(Bo||{});function Czt(e={}){const t=Object.keys(e);function r(o,i=new Set){if(!t.includes(o))return[o];i.add(o);const a=[];return e[o].forEach(l=>{i.has(l)||(i.add(l),a.push(...r(l,i)))}),a}const n={};return t.forEach(o=>{n[o]=[...new Set(r(o))]}),n}const kzt=100;function _zt(e){const t=e.collectStateTransitions;let r,n;return fl((o,i)=>{const{uid:a}=i.payload;if(a===void 0&&i.type!==Bo.STATE_PART_CHANGED)return console.error("uid not provided for control component",{state:o,action:i}),o;if(t)try{r=ss(o[a])}catch(s){console.error("Error while cloning previous value",s)}switch(i.type){case Bo.LOADER_IN_PROGRESS_CHANGED:{o[a]={...o[a],inProgress:i.payload.inProgress},l(o[a]);break}case Bo.LOADER_IS_REFETCHING_CHANGED:{o[a]={...o[a],isRefetching:i.payload.isRefetching},l(o[a]);break}case Bo.LOADER_LOADED:{const{data:s,pageInfo:u}=i.payload;o[a]={value:s,byId:Array.isArray(s)?MNe(s,c=>c.$id):void 0,inProgress:!1,loaded:s!==void 0,pageInfo:u},l(o[a]);break}case Bo.LOADER_ERROR:{const{error:s}=i.payload;o[a]={...o[a],error:s,inProgress:!1,loaded:!0},l(o[a]);break}case Bo.EVENT_HANDLER_STARTED:{const{eventName:s}=i.payload,u=`${s}InProgress`;o[a]={...o[a],[u]:!0},l(o[a]);break}case Bo.EVENT_HANDLER_COMPLETED:{const{eventName:s}=i.payload,u=`${s}InProgress`;o[a]={...o[a],[u]:!1},l(o[a]);break}case Bo.EVENT_HANDLER_ERROR:{const{eventName:s}=i.payload,u=`${s}InProgress`;o[a]={...o[a],[u]:!1},l(o[a]);break}case Bo.COMPONENT_STATE_CHANGED:{const{state:s}=i.payload;o[a]={...o[a],...s},l(o[a]);break}case Bo.STATE_PART_CHANGED:{const{path:s,value:u,target:c,actionType:d,localVars:f}=i.payload;if(d==="unset")p$e(o,s);else{let p=f;a$e(o,s,u,(h,v,b)=>{if(p=p==null?void 0:p[v],h===void 0&&p===void 0&&as(c))return Object(h)}),l(o)}break}default:throw new Error}if(t){const s={action:i.type,uid:a,prevState:r,nextState:n};e.stateTransitions&&(e.stateTransitions.length>=kzt&&e.stateTransitions.shift(),e.stateTransitions.push(s))}function l(s){if(t)try{n=ss(s)}catch(u){console.error("Error while cloning next value",u)}}})}function Hke(e,t,r=[]){const n=i=>r.concat(i).join("."),o=new WeakMap;return new Proxy(e,{get:function(i,a,l){const s=Reflect.get(i,a,l);return s&&!s._ARROW_EXPR_&&!Object.isFrozen(s)&&typeof s=="object"&&["Array","Object"].includes(s.constructor.name)?(o.has(s)||o.set(s,Hke(s,t,r.concat(a))),o.get(s)):s},set:function(i,a,l,s){return t({action:"set",path:n(a),pathArray:r.concat(a),target:i,newValue:l,previousValue:Reflect.get(i,a,s)}),Reflect.set(i,a,l,s)},deleteProperty:function(i,a){return t({action:"unset",path:n(a),pathArray:r.concat(a),target:i}),Reflect.deleteProperty(i,a)}})}function Tzt(e,t,r){const n=sf.get(e);return n?(t.unshift(r),n):e}const sf=new Map;sf.set(Array.prototype.filter,Ezt),sf.set(Array.prototype.forEach,Azt),sf.set(Array.prototype.map,Ozt),sf.set(Array.prototype.every,Izt),sf.set(Array.prototype.findIndex,Pzt),sf.set(Array.prototype.find,Rzt),sf.set(Array.prototype.flatMap,Lzt),sf.set(Array.prototype.some,Szt);async function Szt(e,t){const r=await Promise.all(e.map(t));return e.some((n,o)=>r[o])}async function Ezt(e,t){const r=await Promise.all(e.map(t));return e.filter((n,o)=>r[o])}async function Azt(e,t){for(let r=0;r<e.length;r++)await t(e[r],r,e)}async function Ozt(e,t){const r=[];for(let n=0;n<e.length;n++)r.push(await t(e[n],n,e));return r}async function Izt(e,t){const r=await Promise.all(e.map(t));return r.every((n,o)=>r[o])}async function Rzt(e,t){const r=await Promise.all(e.map(t));return e.find((n,o)=>r[o])}async function Pzt(e,t){const r=await Promise.all(e.map(t));return e.findIndex((n,o)=>r[o])}async function Lzt(e,t){const r=await Promise.all(e.map(t));return e.flatMap((n,o)=>r[o])}async function rl(e,t,r){const n=[];return nw(t),r??(r=t.mainThread),await zj(n,e,t,r??t.mainThread)}async function Hzt(e,t,r,...n){if(e.type!==En)throw new Error("executeArrowExpression expects an 'ArrowExpression' object.");return await(await a5(zj,e))(e.args,t,r??t.mainThread,...n)}async function zj(e,t,r,n){r.options||(r.options={defaultToOptionalMemberAccess:!0});const o=zj;try{switch(t.type){case o3:return qzt(o,e,t,r,n);case $n:return AJ(e,t,n);case Jt:return OJ(e,t,r,n);case vs:return await Nzt(o,e,t,r,n);case Sd:return await $zt(o,e,t,r,n);case pu:return await Dzt(o,e,t,r,n);case hu:return await Bzt(o,e,t,r,n);case gu:return await jzt(o,e,t,r,n);case Yy:return await Mzt(o,e,t,r,n);case ci:return await zzt(o,e,t,r,n);case Ky:return await Fzt(o,e,t,r,n);case Ed:return await Wzt(o,e,t,r,n);case sh:case Xy:return await Vzt(o,e,t,r,n);case gb:return await Uzt(o,e,t,r,n);case En:return NJ(e,t,n);case di:throw new Error("Cannot use spread expression (...) with the current intermediate value.");default:throw new Error(`Unknown expression tree node: ${t.type}`)}}catch(i){throw i}}async function Nzt(e,t,r,n,o){return await e(t,r.obj,n,o),await Ta(r.obj,o),x3(t,r,n,o)}async function $zt(e,t,r,n,o){return await e(t,r.obj,n,o),await Ta(r.obj,o),await e(t,r.member,n,o),t.pop(),await Ta(r.member,o),IJ(t,r,n,o)}async function Dzt(e,t,r,n,o){if(!r.exprs||r.exprs.length===0)throw new Error("Missing expression sequence");const i=r.exprs.map(async l=>{const s=await e(t,l,n,o);return An(l,{value:s},o),t.pop(),s}),a=i[i.length-1];return t.push(a),a}async function Bzt(e,t,r,n,o){const i=[];for(const a of r.items)if(a.type===di){const l=await e(t,a.expr,n,o);if(t.pop(),!Array.isArray(l))throw new Error("Spread operator within an array literal expects an array operand.");i.push(...l)}else i.push(await e(t,a,n,o)),t.pop(),t.push(i);return An(r,{value:i},o),t.push(i),i}async function jzt(e,t,r,n,o){const i={};for(const a of r.props){if(!Array.isArray(a)){const s=await e(t,a.expr,n,o);if(t.pop(),Array.isArray(s))for(let u=0;u<s.length;u++)i[u]=s[u];else if(typeof s=="object")for(const[u,c]of Object.entries(s))i[u]=c;continue}let l;switch(a[0].type){case $n:l=a[0].value;break;case Jt:l=a[0].name;break;default:l=await e(t,a[0],n,o),t.pop();break}i[l]=await e(t,a[1],n,o),t.pop()}return An(r,{value:i},o),t.push(i),i}async function Mzt(e,t,r,n,o){return await e(t,r.expr,n,o),t.pop(),await Ta(r.expr,o),RJ(r,t,n,o)}async function zzt(e,t,r,n,o){await e(t,r.left,n,o),t.pop();const i=await Ta(r.left,o);return r.op==="&&"&&!i?(An(r,{value:i},o),i):r.op==="||"&&i?(An(r,{value:i},o),i):(await e(t,r.right,n,o),t.pop(),await Ta(r.right,o),PJ(r,t,n,o))}async function Fzt(e,t,r,n,o){await e(t,r.cond,n,o),t.pop();const i=await Ta(r.cond,o),a=await e(t,i?r.thenE:r.elseE,n,o);return An(r,{value:a},o),a}async function Wzt(e,t,r,n,o){const i=r.leftValue,a=em(i,n,o),l=a&&a.type!=="block";l&&n.onWillUpdate&&n.onWillUpdate(a,a.name,"assignment"),await e(t,i,n,o),t.pop(),await Ta(i,o),await e(t,r.expr,n,o),t.pop(),await Ta(r.expr,o);const s=LJ(t,r,n,o);return l&&n.onDidUpdate&&n.onDidUpdate(a,a.name,"assignment"),s}async function Vzt(e,t,r,n,o){const i=em(r.expr,n,o),a=i&&i.type!=="block";a&&n.onWillUpdate&&n.onWillUpdate(i,i.name,"pre-post"),await e(t,r.expr,n,o),t.pop(),await Ta(r.expr,o);const l=HJ(t,r,n,o);return a&&n.onDidUpdate&&n.onDidUpdate(i,i.name,"pre-post"),l}async function Uzt(e,t,r,n,o){var h,v;let i,a=null;if(r.obj.type===vs){const b=await e(t,r.obj.obj,n,o);await Ta(r.obj.obj,o),i=x3(t,r.obj,n,o),r.obj.obj.type===Jt&&(b!=null&&b._SUPPORT_IMPLICIT_CONTEXT)&&(a=b)}else await e(t,r.obj,n,o),i=await Ta(r.obj,o);t.pop();const l=[];if(i!=null&&i._ARROW_EXPR_)l.push(i.args,n,o,...r.arguments.map(b=>({...b,_EXPRESSION_:!0}))),i=await a5(e,i);else if(r.obj.type===En)l.push(r.obj.args.map(b=>b.name),n,o,...r.arguments.map(b=>({...b,_EXPRESSION_:!0})));else{for(let b=0;b<r.arguments.length;b++){const y=r.arguments[b];if(y.type===di){await e([],y.expr,n,o);const w=await Ta(y.expr,o);if(!Array.isArray(w))throw new Error("Spread operator within a function invocation expects an array operand.");l.push(...w)}else if(y.type===En){const w=await a5(e,y),k=async(...E)=>w(y.args,n,o,...E);l.push(k)}else{await e([],y,n,o);const w=await Ta(y,o);if(w!=null&&w._ARROW_EXPR_){const k=await a5(e,w),E=(..._)=>k(w.args,n,o,..._);l.push(E)}else l.push(w)}}if(a)if(n.implicitContextGetter){const b=n.implicitContextGetter(a);l.unshift(b)}else throw new Error("Cannot use implicitContextGetter, it is undefined")}const s=SJ(i);if(s.banned)throw new Error(`Function ${((h=s.func)==null?void 0:h.name)??"unknown"} is not allowed to call. ${(s==null?void 0:s.help)??""}`);const u=t.length>0?t.pop():n.localContext;i=Tzt(i,l,u);const c=em(r.obj,n,o),d=c&&c.type!=="block";d&&n.onWillUpdate&&n.onWillUpdate(c,c.name,"function-call");const f=(v=n.options)!=null&&v.defaultToOptionalMemberAccess?i==null?void 0:i.call(u,...l):i.call(u,...l);let p=await Nke(f);return d&&n.onDidUpdate&&n.onDidUpdate(c,c.name,"function-call"),An(r,{value:p},o),t.push(p),p}async function a5(e,t){return async(...r)=>{const n=r[1],o=r[2],i={parent:o,childThreads:[],blocks:[{vars:{}}],loops:[],breakLabelValue:-1,closures:t.closureContext};if(o.childThreads.push(i),t.name){const f={vars:{}};i.blocks??(i.blocks=[]),i.blocks.push(f),f.vars[t.name]=t,f.constVars=new Set([t.name])}const a={vars:{}};i.blocks??(i.blocks=[]),i.blocks.push(a);const l=r[0];let s=!1;for(let f=0;f<l.length;f++){const p=l[f];let h;switch(p.type){case Jt:{h={type:El,id:p.name};break}case uh:{h={type:El,id:p.id,aDestr:p.aDestr,oDestr:p.oDestr};break}case di:{s=!0,h={type:El,id:p.expr.name};break}default:throw new Error("Unexpected arrow argument specification")}if(h)if(s){const v=r.slice(f+3);let b=[];for(const y of v)y!=null&&y._EXPRESSION_?b.push(await e([],y,n,o)):b.push(y);await l5(a,n,o,[h],!1,!0,b)}else{let v=r[f+3];v!=null&&v._EXPRESSION_&&(v=await e([],v,n,o)),await l5(a,n,o,[h],!1,!0,v)}}let u,c;switch(t.statement.type){case hs:c=[];break;case gs:c=[{type:Kf,expr:t.statement.expr}];break;case ps:c=t.statement.stmts;break;default:throw new Error(`Arrow expression with a body of '${t.statement.type}' is not supported yet.`)}await Fj(c,n,i),u=i.returnValue;const d=o.childThreads.indexOf(i);if(d<0)throw new Error("Cannot find thread to remove.");return o.childThreads.splice(d,1),i.blocks.pop(),u}}async function Nke(e){const t=new Map;return r(e);async function r(n){if(n==null)return n;const o=t.get(n);if(o)return o;if(EJ(n)){const i=await n;return t.set(n,i),r(i)}if(t.set(n,n),Array.isArray(n)){for(let i=0;i<n.length;i++){const a=await r(n[i]);n[i]!==a&&n.splice(i,1,a)}return n}if(as(n)){for(const i of Object.keys(n)){let a=await r(n[i]);n[i]!==a&&(n[i]=a)}return n}return n}}async function qzt(e,t,r,n,o){const i=new Array(r.segments.length);for(let a=0;a<r.segments.length;++a){await e(t,r.segments[a],n,o),t.pop();const l=await Ta(r.segments[a],o);i[a]=l}return DJ(i)}async function Ta(e,t){const r=vu(e,t),n=await Nke(r==null?void 0:r.value);return An(e,{...r,value:n},t),n}async function Fj(e,t,r){var a,l,s;r||(r=nw(t)),C3(r,e);const n=new BJ;n.push(dn(Id(e)));const o={processedStatements:0,maxQueueLength:n.length,unshiftedItems:0,clearToLabels:0,maxBlocks:0,maxLoops:0};let i=new Date().getTime();for(;n.length>0&&!((a=t.cancellationToken)!=null&&a.cancelled);){if(t.timeout&&new Date().getTime()-i>t.timeout)throw new Error("Script execution timeout");const u=n.dequeue();r.breakLabelValue=n.length>0?n.peek().label:-1;let c;try{await((l=t==null?void 0:t.onStatementStarted)==null?void 0:l.call(t,t,u.statement)),c=await Gzt(u.statement,(u==null?void 0:u.execInfo)??{},t,r)}catch(d){if(r.tryBlocks&&r.tryBlocks.length>0){const f=r.tryBlocks[r.tryBlocks.length-1];f.errorToThrow=d,f.errorSource=f.processingPhase,f.processingPhase="error",c={clearToLabel:f.tryLabel}}else d instanceof ac?Ev(d):Ev(new Vx(d),d)}c&&(c.toUnshift&&(n.unshift(c.toUnshift),o.unshiftedItems+=c.toUnshift.length),c.clearToLabel!==void 0&&(n.clearToLabel(c.clearToLabel),o.clearToLabels++)),await((s=t==null?void 0:t.onStatementCompleted)==null?void 0:s.call(t,t,u.statement)),n.length>o.maxQueueLength&&(o.maxQueueLength=n.length),r.blocks&&r.blocks.length>o.maxBlocks&&(o.maxBlocks=r.blocks.length),r.loops&&r.loops.length>o.maxLoops&&(o.maxLoops=r.loops.length),o.processedStatements++}return o}async function Gzt(e,t,r,n){let o=[],i;switch(e.type){case lh:break;case My:if(n!==r.mainThread)throw new Error("'var' declarations are not allowed within functions");break;case hs:break;case ps:if(e.stmts.length===0)break;n.blocks??(n.blocks=[]),n.blocks.push({vars:{}}),C3(n,e.stmts),o=dn([...Id(e.stmts),rw()]);break;case gs:const a=await rl(e.expr,r,n);n.blocks&&n.blocks.length!==0&&(n.blocks[n.blocks.length-1].returnValue=a);break;case sa:const l=await Hzt(e.expr,r,n,...r.eventArgs??[]);n.blocks&&n.blocks.length!==0&&(n.blocks[n.blocks.length-1].returnValue=l);break;case By:{const u=fi(n);if(!u)throw new Error("Missing block scope");await l5(u,r,n,e.decls);break}case jy:{const u=fi(n);if(!u)throw new Error("Missing block scope");await l5(u,r,n,e.decls,!0);break}case zy:!!await rl(e.cond,r,n)?o=y3(e.thenB):e.elseB&&(o=y3(e.elseB));break;case Kf:{if(fi(n)===void 0)throw new Error("Return requires a block scope");if(n.returnValue=e.expr?await rl(e.expr,r,n):void 0,(n.tryBlocks??[]).length>0){const c=n.tryBlocks[0];c.exitType="return",c.processingPhase!=="postFinally"&&n.blocks.pop(),i=tm(n).tryLabel}else i=-1;break}case Fy:{let u=t.guard?Ko(n):xs(n);!!await rl(e.cond,r,n)?o=Cb(u,e,n.breakLabelValue):Ao(n);break}case Wy:{if(!t.guard){o=Cb(xs(n),e,n.breakLabelValue);break}!!await rl(e.cond,r,n)?o=Cb(Ko(n),e,n.breakLabelValue):Ao(n);break}case n3:{if(!n.loops||n.loops.length===0)throw new Error("Missing loop scope");let u;for(;n.loops.length>0&&(u=Ko(n),!!u.isSwitch);)n.loops.pop();if(!u)throw new Error("Missing loop scope");if(u.tryBlockDepth>=0&&u.tryBlockDepth<(n.tryBlocks??[]).length){for(let d=u.tryBlockDepth;d<n.tryBlocks.length;d++)n.tryBlocks[u.tryBlockDepth].exitType="continue";i=tm(n).tryLabel}else i=u.continueLabel,Ao(n,!1);break}case r3:{const u=Ko(n);if(u===void 0)throw new Error("Missing loop scope");if(u.isSwitch){i=u.breakLabel;break}if(u.tryBlockDepth>=0&&u.tryBlockDepth<(n.tryBlocks??[]).length){for(let d=u.tryBlockDepth;d<n.tryBlocks.length;d++)n.tryBlocks[u.tryBlockDepth].exitType="break";i=tm(n).tryLabel}else i=u.breakLabel,Ao(n);break}case Vy:if(t.guard)if(!e.cond||await rl(e.cond,r,n)){const u=Ko(n);if(e.upd){const c={statement:{type:gs,nodeId:Zf(),expr:e.upd}};o=dn([{statement:e.body},c,{statement:e,execInfo:t}])}else o=dn([{statement:e.body},{statement:e,execInfo:t}]);u.breakLabel=n.breakLabelValue??-1,u.continueLabel=o[1].label}else Ao(n);else{xs(n,1),n.blocks??(n.blocks=[]),n.blocks.push({vars:{}});const u=Rd(e);e.init?o=dn([{statement:e.init},u]):o=dn([u])}break;case Td:if(t.guard){if(t.keyIndex===void 0||t.keys===void 0)throw new Error("Keys information expected in for..in loop");if(t.keyIndex<t.keys.length){const u=t.keys[t.keyIndex++];switch(e.varB){case"none":{const d={type:Ed,leftValue:{type:Jt,name:e.id.name},op:"=",expr:{type:$n,value:u}};await rl(d,r,n);break}case"const":case"let":{const d=fi(n);if(!d)throw new Error("Missing block scope");d.vars[e.id.name]=u,e.varB==="const"&&(d.constVars??(d.constVars=new Set),d.constVars.add(e.id.name))}break}const c=Ko(n);o=dn([{statement:e.body},{statement:e,execInfo:t}]),c.breakLabel=n.breakLabelValue??-1,c.continueLabel=o[1].label}else Ao(n)}else{const u=await rl(e.expr,r,n);if(u==null)break;xs(n,1),n.blocks??(n.blocks=[]),n.blocks.push({vars:{}}),o=dn([{statement:e,execInfo:{guard:!0,keys:Object.keys(u),keyIndex:0}}])}break;case Xf:if(t.guard){if(t.iterator===void 0)throw new Error("Iterator expected in for..of loop");const u=t.iterator.next();if(u.done){Ao(n);break}const c=u.value;switch(e.varB){case"none":{const f={type:Ed,leftValue:{type:Jt,name:e.id.name},op:"=",expr:{type:$n,value:c}};await rl(f,r,n);break}case"const":case"let":{const f=fi(n);if(!f)throw new Error("Missing block scope");f.vars[e.id.name]=c,e.varB==="const"&&(f.constVars??(f.constVars=new Set),f.constVars.add(e.id.name))}break}const d=Ko(n);o=dn([{statement:e.body},{statement:e,execInfo:t}]),d.breakLabel=n.breakLabelValue??-1,d.continueLabel=o[1].label}else{const u=await rl(e.expr,r,n);if(u==null||typeof u[Symbol.iterator]!="function")throw new Error("Object in for..of is not iterable");xs(n,1),n.blocks??(n.blocks=[]),n.blocks.push({vars:{}}),o=dn([{statement:e,execInfo:{guard:!0,iterator:u[Symbol.iterator]()}}])}break;case Uy:throw new ac(await rl(e.expr,r,n));case qy:{if(!t.guard){o=zJ(n,MJ(n,e));break}const u=tm(n);switch(u.processingPhase){case"error":switch(u.errorSource){case"try":if(n.blocks.pop(),e.catchB){if(u.statement.catchV){const d=fi(n);d.vars[u.statement.catchV.name]=u.errorToThrow instanceof ac?u.errorToThrow.errorObject:u.errorToThrow}delete u.errorToThrow,u.processingPhase="catch",o=FJ(n,u)}else u.statement.finallyB&&(u.processingPhase="finally",o=rm(n,u));break;case"catch":n.blocks.pop(),u.processingPhase="finally",o=rm(n,u);break;case"finally":n.blocks.pop(),u.processingPhase="postFinally",o=w3(u);break}break;case"try":u.processingPhase="finally",e.finallyB&&(o=rm(n,u));break;case"catch":u.processingPhase="finally",e.finallyB&&(o=rm(n,u));break;case"finally":u.processingPhase="postFinally",o=w3(u);break;case"postFinally":const c=n.tryBlocks.pop();switch(c.exitType){case"break":{const d=Ko(n);if(d===void 0)throw new Error("Missing loop scope");Ao(n),i=d.breakLabel;break}case"continue":{const d=Ko(n);if(d===void 0)throw new Error("Missing loop scope");i=d.continueLabel,Ao(n,!1);break}case"return":i=-1;break}if(c.errorToThrow)throw c.errorToThrow;break}break}case Gy:{if(t.guard)Ao(n);else{let u=xs(n);u.isSwitch=!0,n.blocks.push({vars:{}});const c=await rl(e.expr,r,n);let d=-1;for(let p=0;p<e.cases.length;p++){const h=e.cases[p];if(h.caseE===void 0){d=p;break}if(await rl(h.caseE,r,n)===c){d=p;break}}const f=[];if(d>=0)for(let p=d;p<e.cases.length;p++)f.push(...e.cases[p].stmts);o=dn([...Id(f),Rd(e)]),u.breakLabel=o[o.length-1].label}break}}return t.removeBlockScope&&n.blocks&&n.blocks.length>0&&n.blocks.pop(),{toUnshift:o,clearToLabel:i}}async function l5(e,t,r,n,o=!1,i=!1,a=void 0){for(let d=0;d<n.length;d++){let f;const p=n[d];i?f=a:p.expr&&(f=await rl(p.expr,t,r)),l(e,p,f,o)}function l(d,f,p,h){if(f.id)s(d,f.id,p,h);else if(f.aDestr)u(d,f.aDestr,p,h);else if(f.oDestr)c(d,f.oDestr,p,h);else throw new Error("Unknown declaration specifier")}function s(d,f,p,h){if(d.vars[f])throw new Error(`Variable ${f} is already declared in the current scope.`);d.vars[f]=p,h&&(d.constVars??(d.constVars=new Set),d.constVars.add(f))}function u(d,f,p,h){for(let v=0;v<f.length;v++){const b=f[v],y=p==null?void 0:p[v];b.id?s(d,b.id,y,h):b.aDestr?u(d,b.aDestr,y,h):b.oDestr&&c(d,b.oDestr,y,h)}}function c(d,f,p,h){for(let v=0;v<f.length;v++){const b=f[v],y=p==null?void 0:p[b.id];b.aDestr?u(d,b.aDestr,y,h):b.oDestr?c(d,b.oDestr,y,h):s(d,b.alias??b.id,y,h)}}}function $ke(e){const t=new Jf(e);let r=null;try{r=t.parseStatements()}catch(n){if(t.errors.length>0){const o=t.errors[0];Ev(new Wx(`${o.code}(${o.line}, ${o.column}): ${t.errors[0].text}`,e,o.position))}else throw n}if(!t.isEof){const n=t.getTail();Ev(new Wx("Invalid tail found",e,e.length-n.length+1))}return r}function Wj(e,t){const r=(e==null?void 0:e.length)??0;if(r===0)return[{type:sa,expr:{type:En,args:[],statement:{type:hs}}}];if(r===1){const i=e[0];if(i.type===gs){if(t){if(i.expr.type===Jt)return[o(i.expr)];if(n(i.expr))return[o(i.expr)]}return i.expr.type===En?[{type:sa,expr:i.expr}]:[{type:sa,expr:{type:En,args:[],statement:e[0]}}]}if(i.type===Kf)return[{type:sa,expr:{type:En,args:[],statement:{type:ps,stmts:[i]}}}];if(i.type===ps)return i.stmts[0].type===gs&&i.stmts[0].expr.type===En?[{type:sa,expr:i.stmts[0].expr}]:[{type:sa,expr:{type:En,args:[],statement:e[0]}}]}if(r>1)return[{type:sa,expr:{type:En,args:[],statement:{type:ps,stmts:e}}}];return e;function n(i){return(i.type===vs||i.type===Sd&&i.member.type===$n)&&(n(i.obj)||i.obj.type===Jt)}function o(i){const a=t.eventArgs?t.eventArgs.map((s,u)=>({type:Jt,name:`__arg@@#__${u}__`})):[];t.eventArgs&&t.eventArgs.forEach((s,u)=>{t.localContext[`__arg@@#__${u}__`]=s});const l={type:En,args:a,statement:{type:gs,expr:{type:gb,obj:i,arguments:[...a]}}};return{type:sa,expr:l}}}async function Yzt(e,t,r){const n=Wj($ke(e));return await Fj(n,t,r)}function Kzt({node:e,state:t,dispatch:r,lookupAction:n,lookupSyncCallback:o,registerComponentApi:i,onUnmount:a,appContext:l,memoedVarsRef:s}){const u=L0(),c=m.useMemo(()=>Symbol(e.uid),[e.uid]);m.useEffect(()=>()=>{a(c)},[a,c]);const d=m.useCallback(_=>{i(c,_)},[i,c]),f=m.useCallback((_,S)=>n(_,c,S),[n,c]),p=KT(t),h=m.useMemo(()=>Fre(t,l,p,s),[l,s,p,t]),v=m.useCallback(_=>{if(_)return o(h(_),c)},[o,c,h]),b=m.useCallback(_=>{r(Xzt(c,_))},[r,c]),y=m.useCallback(_=>{r(Qzt(c,_))},[r,c]),w=m.useCallback((_,S)=>{r(Zzt(c,_,S))},[r,c]),k=m.useCallback(_=>{r(Jzt(c,_))},[r,c]),E=u.lookupLoaderRenderer(e.type);return E?E({loader:e,state:t,dispatch:r,loaderInProgressChanged:b,loaderIsRefetchingChanged:y,loaderLoaded:w,loaderError:k,extractValue:h,registerComponentApi:d,lookupAction:f,lookupSyncCallback:v}):(console.error(`Loader ${e.type} is not available. Did you forget to register it in the loaderRegistry?`),null)}function Xzt(e,t){return{type:Bo.LOADER_IN_PROGRESS_CHANGED,payload:{uid:e,inProgress:t}}}function Qzt(e,t){return{type:Bo.LOADER_IS_REFETCHING_CHANGED,payload:{uid:e,isRefetching:t}}}function Zzt(e,t,r){return{type:Bo.LOADER_LOADED,payload:{uid:e,data:t,pageInfo:r}}}function Jzt(e,t){return{type:Bo.LOADER_ERROR,payload:{uid:e,error:t}}}const eFt=m.memo(m.forwardRef(function({node:t,componentState:r,dispatch:n,parentDispatch:o,resolvedKey:i,version:a,setVersion:l,statePartChanged:s,registerComponentApi:u,parentRegisterComponentApi:c,layoutContextRef:d,parentRenderContext:f,memoedVarsRef:p,isImplicit:h,uidInfoRef:v,children:b},y){var J;const{apiBoundContainer:w}=t,k=h?o:n,E=h?c:u,_=Eo(),{getThemeVar:S}=zr(),A=eb(),O=Cl(),I=m.useRef({}),L=m.useRef(r);L.current=r;const P=m.useRef({}),[H,j]=m.useTransition(),W=m.useRef(!0),B=m.useRef(new Map);Sn(()=>{for(const X of B.current.values())X()},[a]),m.useEffect(()=>{W.current=!0;const X=B.current;return()=>{W.current=!1;for(const te of X.values())te()}},[]);const{apiInstance:G}=O2(),z=zt(async(X,te,ie,...de)=>{var _e,Ve,Ee;const be=()=>te.description!==void 0&&(ie==null?void 0:ie.eventName)!==void 0;let xe=[];const Ie=()=>{xe.length=0;const je=ss({...L.current,...(ie==null?void 0:ie.context)||{}});return je.$this=L.current[te],Hke(je,Ce=>{var He;const Te=(He=Ce.pathArray)==null?void 0:He[0];if(Te!=null&&Te.startsWith("$"))throw new Error("Cannot update a read-only variable");xe.push(Ce)})},Ne={..._,getThemeVar:S},Se={appContext:Ne,eventArgs:de,localContext:Ie(),implicitContextGetter:()=>({uid:te,state:L.current,getCurrentState:()=>L.current,dispatch:k,appContext:Ne,apiInstance:G,navigate:A,location:O,lookupAction:(je,Ce,Te={})=>q(je,Ce,{...Te,ephemeral:!0})}),options:{defaultToOptionalMemberAccess:typeof((_e=_.appGlobals)==null?void 0:_e.defaultToOptionalMemberAccess)=="boolean"?_.appGlobals.defaultToOptionalMemberAccess:!0}};try{let je;if(typeof X=="string")P.current[X]||(P.current[X]=Wj($ke(X),Se)),je=P.current[X];else if(Dke(X)){const Te=X.parseId.toString();P.current[Te]||(P.current[Te]=Wj(X.statements,Se)),je=P.current[Te]}else je=[{type:sa,expr:X}];if(!(je!=null&&je.length))return;be()&&k({type:Bo.EVENT_HANDLER_STARTED,payload:{uid:te.description,eventName:ie.eventName}});let Ce=0;if(Se.onStatementCompleted=async Te=>{if(xe.length){Ce=0,xe.forEach(It=>{s(It.pathArray,ss(It.newValue),It.target,It.action)});let He=null;const st=new Promise(It=>{He=()=>{It(null)}}),ut=iy();B.current.set(ut,He),j(()=>{l(It=>It+1)}),W.current?await st:await zv(0),B.current.delete(ut),xe=[]}else Ce++,Ce>100&&(Ce=0,await zv(0));Te.localContext=Ie()},await Fj(je,Se),be()&&k({type:Bo.EVENT_HANDLER_COMPLETED,payload:{uid:te.description,eventName:ie.eventName}}),(Ee=(Ve=Se.mainThread)==null?void 0:Ve.blocks)!=null&&Ee.length)return Se.mainThread.blocks[Se.mainThread.blocks.length-1].returnValue}catch(je){throw(ie==null?void 0:ie.signError)!==!1&&_.signError(je),be()&&k({type:Bo.EVENT_HANDLER_ERROR,payload:{uid:te.description,eventName:ie.eventName,error:je}}),je}}),F=m.useCallback((X,...te)=>{var de,be;const ie={localContext:ss(L.current),appContext:_,eventArgs:te};try{if(TL([{type:sa,expr:X}],ie),(be=(de=ie.mainThread)==null?void 0:de.blocks)!=null&&be.length)return ie.mainThread.blocks[ie.mainThread.blocks.length-1].returnValue}catch(xe){throw console.error(xe),xe}},[_]),V=zt((X,te,ie)=>{var xe;if(Array.isArray(X))throw new Error("Multiple event handlers are not supported");let de,be;if(typeof X=="string")de=`${ie==null?void 0:ie.eventName};${X}`,be=(...Ie)=>z(X,te,ie,...ss(Ie));else if(Dke(X))de=`${ie==null?void 0:ie.eventName};${X.parseId}`,be=(...Ie)=>z(X,te,ie,...ss(Ie));else if(rFt(X))de=`${ie==null?void 0:ie.eventName};${X.statement.nodeId}`,be=(...Ie)=>z(X,te,ie,...ss(Ie));else if(X.type)de=`${ie==null?void 0:ie.eventName};${JSON.stringify(X)}`,be=(...Ie)=>z(X,te,ie,...ss(Ie));else throw new Error("Invalid event handler");return ie!=null&&ie.ephemeral||ie!=null&&ie.context?be:((xe=I.current[te])!=null&&xe[de]||(I.current[te]=I.current[te]||{},I.current[te][de]=be),I.current[te][de])}),N=m.useCallback((X,te)=>{var de;const ie=`sync-callback-${X.nodeId}`;return(de=I.current[te])!=null&&de[ie]||(I.current[te]=I.current[te]||{},I.current[te][ie]=ww(be=>(...xe)=>F(be,...xe))),I.current[te][ie](X)},[F]),Y=m.useCallback((X,te)=>{if(X){if(typeof X=="function")return X;if(X){if(typeof X=="function")return X;if(!X._ARROW_EXPR_)throw new Error("Only arrow expression allowed in sync callback");return N(X,te)}}},[N]),q=m.useCallback((X,te,ie)=>{let de=X;if(!X&&te.description&&(ie!=null&&ie.eventName)){const be=`${te.description}_on${ay(ie==null?void 0:ie.eventName)}`;r[be]&&r[be]._ARROW_EXPR_&&(de=r[be])}if(de)return typeof de=="function"?de:V(de,te,ie)},[r,V]),M=m.useRef(!1);m.useEffect(()=>{if(!t.api||!t.containerUid||M.current)return;M.current=!0;const X={},te=Symbol("$self");Object.entries(t.api).forEach(([ie,de])=>{X[ie]=q(de,te)}),h||E(te,X),c(t.containerUid,X)},[q,t.api,t.containerUid,t.uid,h,c,E]);const K=zt(X=>{delete I.current[X]}),ee=m.useCallback((X,te,ie,de,be)=>{if(typeof X=="string")throw Error("should be resolved for now");const xe=un(X)?X:[X];if(!xe||!xe.length)return null;const Ie=xe.length>1,Ne=xe.map((Se,_e)=>{if(!Se)return;const Ve=Vke({node:Se,state:r,dispatch:k,appContext:_,lookupAction:q,lookupSyncCallback:Y,registerComponentApi:E,renderChild:ee,statePartChanged:s,layoutContext:te,parentRenderContext:ie,memoedVarsRef:p,cleanup:K,uidInfoRef:de});if(Ve===void 0)return;let Ee=Ve;const je=`${_e}_${Se.uid}`;return Ie&&(Z.isValidElement(Ve)?Ee=Z.cloneElement(Ve,{key:je}):Ee=C.jsx(m.Fragment,{children:Ve},je)),Ee});return Ne.length===1?be&&Ne[0]&&m.isValidElement(Ne[0])?Z.cloneElement(Ne[0],{ref:Un(be,Ne[0].ref)}):Ne[0]:Ne},[r,k,_,q,Y,E,s,p,K]);(J=t.props)!=null&&J.debug&&console.log(`Container: ${i}`,{componentState:r,node:t});const ae={},oe=m.useRef({}),ue=t.uses===void 0?v:oe,le=ee(t.children,d==null?void 0:d.current,f,ue,y),pe=tFt({uidInfo:ae,uidInfoRef:ue,loaders:t.loaders,componentState:r,memoedVarsRef:p,dispatch:w?n:k,registerComponentApi:w?u:E,appContext:_,lookupAction:q,lookupSyncCallback:Y,cleanup:K}),fe=C.jsxs(C.Fragment,{children:[pe,b&&m.isValidElement(le)?m.cloneElement(le,null,b):le]});return C.jsx(m.Fragment,{children:fe},t.uid?`${i}>${$t(r,t.uid,_,!0)}`:void 0)}));function tFt({uidInfo:e,uidInfoRef:t,loaders:r=Ar,componentState:n,dispatch:o,appContext:i,registerComponentApi:a,lookupAction:l,lookupSyncCallback:s,cleanup:u,memoedVarsRef:c}){return r.map(f=>{if(f!=null&&f.uid){if(e[f.uid])throw new Error(`Another ${e[f.uid]} definition in this container already uses the uid '${f.uid}'`);e[f.uid]="loader",t.current[f.uid]={type:"loader",value:"loaderValue",uid:f.uid}}const p=d({loader:f,componentState:n,dispatch:o,appContext:i,registerComponentApi:a,lookupAction:l,lookupSyncCallback:s,memoedVarsRef:c,cleanup:u});if(p!==void 0)return C.jsx(m.Fragment,{children:p},f.uid)});function d({loader:f,componentState:p,dispatch:h,appContext:v,registerComponentApi:b,lookupAction:y,lookupSyncCallback:w,cleanup:k,memoedVarsRef:E}){return!f||!EL(f.when,p,v)?null:C.jsx(Kzt,{onUnmount:k,node:f,state:p,dispatch:h,registerComponentApi:b,lookupAction:y,lookupSyncCallback:w,memoedVarsRef:E,appContext:v})}}function Dke(e){return e.__PARSED===!0}function rFt(e){return e.type===En}const nFt=m.memo(m.forwardRef(function({node:t,resolvedKey:r,parentState:n,parentStatePartChanged:o,parentRegisterComponentApi:i,parentDispatch:a,parentRenderContext:l,layoutContextRef:s,uidInfoRef:u,isImplicit:c,children:d,...f},p){const[h,v]=m.useState(0),b=oFt(),y=m.useRef(new Map),w=qo(m.useMemo(()=>iFt(n,t.uses),[t.uses,n])),k=_ke(),E=_zt(k),[_,S]=m.useReducer(E,rr),[A,O]=m.useState(rr),I=qo(m.useMemo(()=>{const M={..._};for(const K of Object.getOwnPropertySymbols(_)){const ee=_[K];K.description&&(M[K.description]=ee)}if(Reflect.ownKeys(A).length===0)return M;for(const K of Object.getOwnPropertySymbols(A)){const ee=A[K];if(K.description){const ae=K.description;M[ae]={...M[ae]||{},...ee}}M[K]={...M[K],...ee}}return M},[_,A])),L=Bke(w,I,t.contextVars),P=t.scriptCollected;if(P!=null&&P.moduleErrors&&!qp(P.moduleErrors))throw new s5(P.moduleErrors);if(t.scriptError&&!qp(t.scriptError))throw new s5(t.scriptError);const H=KT(_),j=qo({...P==null?void 0:P.functions,...t.functions,...P==null?void 0:P.vars,...t.vars}),W=m.useMemo(()=>{const M={};return Object.entries(j).forEach(([K,ee])=>{u5(ee)&&ee.tree.type===En&&(M[K]=nE(ee.tree,H))}),Czt(M)},[H,j]),B=jke(j,W,L,m.useRef(new Map)),G=qo({...B,...L}),z=jke(j,W,G,y),F=aFt(z,I),V=Bke(w,t.contextVars,F,b),N=m.useCallback((M,K)=>{O(fl(ee=>{ee[M]||(ee[M]={}),Object.entries(K).forEach(([ae,oe])=>{ee[M][ae]!==oe&&(ee[M][ae]=oe)})}))},[]),Y=m.useRef(I),q=m.useCallback((M,K,ee,ae)=>{const oe=M[0];oe in Y.current||oe in z?S({type:Bo.STATE_PART_CHANGED,payload:{path:M,value:K,target:ee,actionType:ae,localVars:z}}):(!t.uses||t.uses.includes(oe))&&o(M,K,ee,ae)},[z,t.uses,o]);return C.jsx(P0,{node:t,location:"container",children:C.jsx(eFt,{resolvedKey:r,node:t,componentState:V,dispatch:S,parentDispatch:a,setVersion:v,version:h,statePartChanged:q,registerComponentApi:N,parentRegisterComponentApi:i,layoutContextRef:s,parentRenderContext:l,memoedVarsRef:y,isImplicit:c,ref:p,uidInfoRef:u,...f,children:d})})})),oFt=()=>{const[e]=nze(),t=jK(),r=Cl(),n=yQ(),o=m.useMemo(()=>{var a;return((a=n==null?void 0:n.linkMap)==null?void 0:a.get(r.pathname))||rr},[n==null?void 0:n.linkMap,r.pathname]),i=m.useMemo(()=>{const a={};for(const[l,s]of Array.from(e.entries()))a[l]=s;return a},[e]);return m.useMemo(()=>({$pathname:r.pathname,$routeParams:t,$queryParams:i,$linkInfo:o}),[o,r.pathname,i,t])};function iFt(e,t){return t?t.length===0?rr:t$e(e,t):e}function Bke(...e){const t=m.useMemo(()=>{let r={};return e.forEach((n=rr)=>{n!==rr&&(r={...r,...n})}),r},[e]);return qo(t)}function aFt(e,t){const r=m.useMemo(()=>{const n={...e};return Reflect.ownKeys(t).forEach(o=>{const i=t[o];n[o]===void 0?n[o]=i:as(n[o])&&as(i)||Array.isArray(n[o])&&Array.isArray(i)?n[o]=GG(ss(n[o]),i):n[o]=i}),n},[e,t]);return qo(r)}function jke(e=rr,t=rr,r,n){const o=Eo(),i=KT(r),a=m.useMemo(()=>{const l={};return Object.entries(e).forEach(([s,u])=>{if(s==="$props")l[s]=u;else if(!u5(u)&&typeof u!="string")l[s]=u;else{n.current.has(u)||n.current.set(u,{getDependencies:ww((h,v)=>{if(u5(h))return nE(h.tree,v);const b=v3(h);let y=new Set;return b.forEach(w=>{w.type==="expression"&&(y=new Set([...y,...nE(w.value,v)]))}),Array.from(y)}),obtainValue:ww((h,v,b,y,w,k)=>{try{return u5(h)?Ii(h.tree,{localContext:v,appContext:b,options:{defaultToOptionalMemberAccess:!0}}):$t(v,h,b,y)}catch(E){throw console.log(v),new lFt(h,E)}},([h,v,b,y,w,k],[E,_,S,A,O,I])=>ly(w,O)&&ly(k,I))});const c={...l,...r};let d=[];t[s]?d=t[s]:(n.current.get(u).getDependencies(u,i).forEach(h=>{t[h]?d.push(...t[h]):d.push(h)}),d=[...new Set(d)]);const f=DT(c,d),p=DT(o,d);l[s]=n.current.get(u).obtainValue(u,c,o,!0,f,p)}}),l},[o,r,t,n,i,e]);return qo(a)}class s5 extends Error{constructor(t){const n=(t.Main||[]).map(o=>{let i=`${o.code} : ${o.text}`;const a=[];return o.line!==void 0&&a.push(`line:${o.line}`),o.column!==void 0&&a.push(`column:${o.column}`),a.length&&(i=`${i} (${a.join(", ")})`),i});super(n.join(`
|
|
626
|
+
c0.166,0,0.3,0.134,0.3,0.3v4.367c0,0.166-0.134,0.3-0.3,0.3h-0.409C11.626,17.473,11.492,17.339,11.492,17.173z`}}]}]})(e)}const pjt=e=>m.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M12 8.5C16.9706 8.5 21 7.15685 21 5.5C21 3.84315 16.9706 2.5 12 2.5C7.02944 2.5 3 3.84315 3 5.5C3 7.15685 7.02944 8.5 12 8.5Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M21 12.5C21 14.16 17 15.5 12 15.5C7 15.5 3 14.16 3 12.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M3 5.5V19.5C3 21.16 7 22.5 12 22.5C17 22.5 21 21.16 21 19.5V5.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),hjt=e=>C.jsx(pjt,{...e}),gjt=e=>m.createElement("svg",{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"16px",height:"16px",viewBox:"0 0 16 16",...e},m.createElement("g",{id:"surface1"},m.createElement("path",{stroke:"none",fillRule:"nonzero",fillOpacity:1,d:"M 9.886719 5.171875 L 6.113281 8.941406 C 5.855469 9.203125 5.855469 9.625 6.113281 9.886719 C 6.375 10.144531 6.796875 10.144531 7.058594 9.886719 L 10.828125 6.113281 C 11.609375 5.332031 11.609375 4.066406 10.828125 3.285156 C 10.046875 2.503906 8.78125 2.503906 8 3.285156 L 4.230469 7.058594 C 2.925781 8.359375 2.925781 10.46875 4.230469 11.769531 C 5.53125 13.074219 7.640625 13.074219 8.941406 11.769531 L 12.714844 8 L 13.65625 8.941406 L 9.886719 12.714844 C 8.0625 14.535156 5.109375 14.535156 3.285156 12.714844 C 1.464844 10.890625 1.464844 7.9375 3.285156 6.113281 L 7.058594 2.34375 C 8.359375 1.042969 10.46875 1.042969 11.769531 2.34375 C 13.074219 3.644531 13.074219 5.753906 11.769531 7.058594 L 8 10.828125 C 7.21875 11.609375 5.953125 11.609375 5.171875 10.828125 C 4.390625 10.046875 4.390625 8.78125 5.171875 8 L 8.941406 4.230469 Z M 9.886719 5.171875 "}))),vjt=e=>C.jsx(gjt,{...e}),bjt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M10 13C10.4295 13.5741 10.9774 14.0491 11.6066 14.3929C12.2357 14.7367 12.9315 14.9411 13.6467 14.9923C14.3618 15.0435 15.0796 14.9403 15.7513 14.6897C16.4231 14.4392 17.0331 14.047 17.54 13.54L20.54 10.54C21.4508 9.59695 21.9548 8.33394 21.9434 7.02296C21.932 5.71198 21.4061 4.45791 20.4791 3.53087C19.5521 2.60383 18.298 2.07799 16.987 2.0666C15.676 2.0552 14.413 2.55918 13.47 3.46997L11.75 5.17997",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M14.0002 11.0012C13.5707 10.4271 13.0228 9.95202 12.3936 9.60826C11.7645 9.2645 11.0687 9.06009 10.3535 9.00887C9.63841 8.95765 8.92061 9.06083 8.24885 9.31142C7.5771 9.56201 6.96709 9.95413 6.4602 10.4612L3.4602 13.4612C2.54941 14.4042 2.04544 15.6672 2.05683 16.9782C2.06822 18.2892 2.59407 19.5433 3.52111 20.4703C4.44815 21.3973 5.70221 21.9232 7.01319 21.9346C8.32418 21.946 9.58719 21.442 10.5302 20.5312L12.2402 18.8212",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),xjt={binding:"_binding_14mdd_1"},yjt=e=>C.jsx(bjt,{className:xjt.binding,...e}),wjt=e=>C.jsx(see,{...e}),Cjt=e=>m.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M14 10.6669V5.33359C13.9998 5.09978 13.938 4.87013 13.821 4.6677C13.704 4.46527 13.5358 4.29717 13.3333 4.18026L8.66667 1.51359C8.46397 1.39657 8.23405 1.33496 8 1.33496C7.76595 1.33496 7.53603 1.39657 7.33333 1.51359L2.66667 4.18026C2.46418 4.29717 2.29599 4.46527 2.17897 4.6677C2.06196 4.87013 2.00024 5.09978 2 5.33359V10.6669C2.00024 10.9007 2.06196 11.1304 2.17897 11.3328C2.29599 11.5353 2.46418 11.7034 2.66667 11.8203L7.33333 14.4869C7.53603 14.604 7.76595 14.6656 8 14.6656C8.23405 14.6656 8.46397 14.604 8.66667 14.4869L13.3333 11.8203C13.5358 11.7034 13.704 11.5353 13.821 11.3328C13.938 11.1304 13.9998 10.9007 14 10.6669Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M2.18018 4.63965L8.00018 8.00632L13.8202 4.63965",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M8 14.72V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),kjt=e=>C.jsx(Cjt,{...e}),_jt=e=>C.jsx(cKe,{...e}),Tjt=e=>C.jsx(aee,{...e}),Sjt=e=>C.jsx(lee,{...e}),Ejt=e=>m.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M8.6665 1.33301H3.99984C3.64622 1.33301 3.30708 1.47348 3.05703 1.72353C2.80698 1.97358 2.6665 2.31272 2.6665 2.66634V13.333C2.6665 13.6866 2.80698 14.0258 3.05703 14.2758C3.30708 14.5259 3.64622 14.6663 3.99984 14.6663H11.9998C12.3535 14.6663 12.6926 14.5259 12.9426 14.2758C13.1927 14.0258 13.3332 13.6866 13.3332 13.333V5.99967L8.6665 1.33301Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M8.6665 1.33301V5.99967H13.3332",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M9.3335 10.6667L10.6668 9.33333L9.3335 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M6.6665 8.00033L5.33317 9.33366L6.6665 10.667",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),Ajt=e=>C.jsx(Ejt,{...e}),Ojt=e=>m.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M14 10.6669V5.33359C13.9998 5.09978 13.938 4.87013 13.821 4.6677C13.704 4.46527 13.5358 4.29717 13.3333 4.18026L8.66667 1.51359C8.46397 1.39657 8.23405 1.33496 8 1.33496C7.76595 1.33496 7.53603 1.39657 7.33333 1.51359L2.66667 4.18026C2.46418 4.29717 2.29599 4.46527 2.17897 4.6677C2.06196 4.87013 2.00024 5.09978 2 5.33359V10.6669C2.00024 10.9007 2.06196 11.1304 2.17897 11.3328C2.29599 11.5353 2.46418 11.7034 2.66667 11.8203L7.33333 14.4869C7.53603 14.604 7.76595 14.6656 8 14.6656C8.23405 14.6656 8.46397 14.604 8.66667 14.4869L13.3333 11.8203C13.5358 11.7034 13.704 11.5353 13.821 11.3328C13.938 11.1304 13.9998 10.9007 14 10.6669Z",stroke:"#3B3B3B",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M5 2.80664L8 4.53997L11 2.80664",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M5 13.1933V9.73333L2 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M14 8L11 9.73333V13.1933",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M2.18018 4.63965L8.00018 8.00632L13.8202 4.63965",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M8 14.72V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),Ijt=e=>C.jsx(Ojt,{...e}),Rjt=e=>C.jsx(uee,{...e}),Pjt=e=>C.jsx(X7t,{...e}),Ljt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M12 8C16.9706 8 21 6.65685 21 5C21 3.34315 16.9706 2 12 2C7.02944 2 3 3.34315 3 5C3 6.65685 7.02944 8 12 8Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M21 12C21 13.66 17 15 12 15C7 15 3 13.66 3 12",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M3 5V19C3 20.66 7 22 12 22C17 22 21 20.66 21 19V5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Hjt={database:"_database_14jkq_1"},Njt=e=>C.jsx(Ljt,{className:Hjt.database,...e}),$jt=e=>m.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M9.33317 1.33301H3.99984C3.64622 1.33301 3.30708 1.47348 3.05703 1.72353C2.80698 1.97358 2.6665 2.31272 2.6665 2.66634V13.333C2.6665 13.6866 2.80698 14.0258 3.05703 14.2758C3.30708 14.5259 3.64622 14.6663 3.99984 14.6663H11.9998C12.3535 14.6663 12.6926 14.5259 12.9426 14.2758C13.1927 14.0258 13.3332 13.6866 13.3332 13.333V5.33301L9.33317 1.33301Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M9.3335 1.33301V5.33301H13.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M10.6668 8.66699H5.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M10.6668 11.333H5.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M6.66683 6H6.00016H5.3335",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),Djt=e=>C.jsx($jt,{...e}),Bjt=e=>m.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1811_15061)"},m.createElement("path",{d:"M22.2271 7.38281L16.304 5.74219L14.6117 0H2.76551C1.36355 0 0.227051 1.10179 0.227051 2.46094V25.5391C0.227051 26.8982 1.36355 28 2.76551 28H19.6886C21.0906 28 22.2271 26.8982 22.2271 25.5391V7.38281Z",fill:"currentColor"}),m.createElement("path",{d:"M22.227 7.38281H16.3039C15.3731 7.38281 14.6116 6.64453 14.6116 5.74219V0C14.8316 0 15.0516 0.0820312 15.2038 0.246148L21.9731 6.80865C22.1423 6.95625 22.227 7.16953 22.227 7.38281Z",fill:"currentColor"}),m.createElement("path",{d:"M16.304 13.1797H6.15011C5.68241 13.1797 5.30396 12.8128 5.30396 12.3594C5.30396 11.906 5.68241 11.5391 6.15011 11.5391H16.304C16.7717 11.5391 17.1501 11.906 17.1501 12.3594C17.1501 12.8128 16.7717 13.1797 16.304 13.1797Z",fill:"white"}),m.createElement("path",{d:"M16.304 16.4609H6.15011C5.68241 16.4609 5.30396 16.094 5.30396 15.6406C5.30396 15.1872 5.68241 14.8203 6.15011 14.8203H16.304C16.7717 14.8203 17.1501 15.1872 17.1501 15.6406C17.1501 16.094 16.7717 16.4609 16.304 16.4609Z",fill:"white"}),m.createElement("path",{d:"M16.304 19.7422H6.15011C5.68241 19.7422 5.30396 19.3753 5.30396 18.9219C5.30396 18.4685 5.68241 18.1016 6.15011 18.1016H16.304C16.7717 18.1016 17.1501 18.4685 17.1501 18.9219C17.1501 19.3753 16.7717 19.7422 16.304 19.7422Z",fill:"white"}),m.createElement("path",{d:"M12.9193 23.0234H6.15011C5.68241 23.0234 5.30396 22.6565 5.30396 22.2031C5.30396 21.7497 5.68241 21.3828 6.15011 21.3828H12.9193C13.387 21.3828 13.7655 21.7497 13.7655 22.2031C13.7655 22.6565 13.387 23.0234 12.9193 23.0234Z",fill:"white"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1811_15061"},m.createElement("rect",{width:22,height:28,fill:"white"})))),Ake=e=>C.jsx(Bjt,{...e}),jjt=e=>C.jsx(M7t,{...e}),Mjt=e=>C.jsx(z7t,{...e}),zjt=e=>C.jsx(K7t,{...e}),Fjt=e=>m.createElement("svg",{viewBox:"0 0 30 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M7.58122 0H1C0.447715 0 0 0.447715 0 0.999999V21.0737H30V3.71273H12.0217L7.58122 0Z",fill:"#ADDAE9"}),m.createElement("path",{d:"M10.9928 0.157898H29C29.5523 0.157898 30 0.605613 30 1.1579V20C30 20.5523 29.5523 21 29 21H1.00002C0.447731 21 1.71661e-05 20.5523 1.71661e-05 20V3.93087C1.71661e-05 3.37858 0.447733 2.93087 1.00002 2.93087H6.55236L10.9928 0.157898Z",fill:"#CAE9F3"})),Wjt=e=>C.jsx(Fjt,{...e}),Vjt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M21 16.0019V8.00186C20.9996 7.65113 20.9071 7.30667 20.7315 7.00302C20.556 6.69937 20.3037 6.44722 20 6.27186L13 2.27186C12.696 2.09632 12.3511 2.00391 12 2.00391C11.6489 2.00391 11.304 2.09632 11 2.27186L4 6.27186C3.69626 6.44722 3.44398 6.69937 3.26846 7.00302C3.09294 7.30667 3.00036 7.65113 3 8.00186V16.0019C3.00036 16.3526 3.09294 16.697 3.26846 17.0007C3.44398 17.3043 3.69626 17.5565 4 17.7319L11 21.7319C11.304 21.9074 11.6489 21.9998 12 21.9998C12.3511 21.9998 12.696 21.9074 13 21.7319L20 17.7319C20.3037 17.5565 20.556 17.3043 20.7315 17.0007C20.9071 16.697 20.9996 16.3526 21 16.0019Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M3.26953 6.96094L11.9995 12.0109L20.7295 6.96094",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M12 22.08V12",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ujt=e=>C.jsx(Vjt,{...e}),qjt=e=>C.jsx(Tut,{...e}),Gjt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M22 3H2L10 12.46V19L14 21V12.46L22 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Yjt=e=>C.jsx(Gjt,{...e}),Kjt=e=>m.createElement("svg",{viewBox:"0 0 30 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M7.58122 0H1C0.447715 0 0 0.447715 0 0.999999V21.0737H30V3.71273H12.0217L7.58122 0Z",fill:"#ADDAE9"}),m.createElement("rect",{x:1.2179,y:2.44446,width:28.0128,height:15.8889,fill:"white"}),m.createElement("path",{d:"M10.9928 1.1579H29C29.5523 1.1579 30 1.60561 30 2.1579V21C30 21.5523 29.5523 22 29 22H1.00002C0.447731 22 1.71661e-05 21.5523 1.71661e-05 21V4.93087C1.71661e-05 4.37858 0.447733 3.93087 1.00002 3.93087H6.55236L10.9928 1.1579Z",fill:"#CAE9F3"})),Xjt=e=>C.jsx(Kjt,{...e}),Qjt=e=>C.jsx(G7t,{...e}),Zjt=e=>C.jsx(yKe,{...e}),Jjt=e=>C.jsx(Y7t,{...e}),eMt=e=>m.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1960_14704)"},m.createElement("path",{d:"M22.2271 7.38281L16.304 5.74219L14.6117 0H1.91936C0.984697 0 0.227051 0.734508 0.227051 1.64062V26.3594C0.227051 27.2655 0.984697 28 1.91936 28H20.5347C21.4694 28 22.2271 27.2655 22.2271 26.3594V7.38281Z",fill:"#F2F2F2"}),m.createElement("path",{d:"M22.2271 7.38281V26.3594C22.2271 27.2655 21.4695 28 20.5348 28H11.3625V0H14.6117L16.304 5.74219L22.2271 7.38281Z",fill:"#F2F2F2"}),m.createElement("path",{d:"M22.227 7.38281H16.3039C15.3731 7.38281 14.6116 6.64453 14.6116 5.74219V0C14.8316 0 15.0516 0.0820312 15.2038 0.246148L21.9731 6.80865C22.1423 6.95625 22.227 7.16953 22.227 7.38281Z",fill:"#E1E1E1"}),m.createElement("path",{d:"M9 17L14.1962 21.5H3.80385L9 17Z",fill:"#8BDC6F"}),m.createElement("path",{d:"M13 14L18.1963 21.5H7.80396L13 14Z",fill:"#8BDC6F"}),m.createElement("circle",{cx:7,cy:11,r:2,fill:"#EFC942"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1960_14704"},m.createElement("rect",{width:22,height:28,fill:"white"})))),tMt=e=>C.jsx(eMt,{...e});function rMt(e){return Qe({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M74.6 256c0-38.3 31.1-69.4 69.4-69.4h88V144h-88c-61.8 0-112 50.2-112 112s50.2 112 112 112h88v-42.6h-88c-38.3 0-69.4-31.1-69.4-69.4zm85.4 22h192v-44H160v44zm208-134h-88v42.6h88c38.3 0 69.4 31.1 69.4 69.4s-31.1 69.4-69.4 69.4h-88V368h88c61.8 0 112-50.2 112-112s-50.2-112-112-112z"}}]})(e)}const nMt=e=>C.jsx(rMt,{...e}),oMt=e=>C.jsx(uee,{...e}),iMt=e=>C.jsx(fjt,{...e}),aMt=e=>C.jsx(kKe,{...e}),lMt=e=>m.createElement("svg",{viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1813_15242)"},m.createElement("path",{d:"M21.788 7.38281L16.3739 5.74219L14.827 0H3.22546C2.37112 0 1.67859 0.734508 1.67859 1.64062V26.3594C1.67859 27.2655 2.37112 28 3.22546 28H20.2411C21.0954 28 21.788 27.2655 21.788 26.3594V7.38281Z",fill:"#EDEDED"}),m.createElement("path",{d:"M21.7879 7.38281V26.3594C21.7879 27.2655 21.0954 28 20.2411 28H11.8571V0H14.827L16.3739 5.74219L21.7879 7.38281Z",fill:"#EDEDED"}),m.createElement("path",{d:"M21.788 7.38281H16.3739C15.5231 7.38281 14.827 6.64453 14.827 5.74219V0C15.0281 0 15.2292 0.0820312 15.3684 0.246148L21.5559 6.80865C21.7106 6.95625 21.788 7.16953 21.788 7.38281Z",fill:"#BDBDBD"}),m.createElement("path",{d:"M20.5333 22.4259C20.5333 22.925 20.1483 23.3333 19.6778 23.3333H0.855556C0.385 23.3333 0 22.925 0 22.4259V13.3519C0 12.8528 0.385 12.4445 0.855556 12.4445H19.6778C20.1483 12.4445 20.5333 12.8528 20.5333 13.3519V22.4259Z",fill:"#FF3E3E"}),m.createElement("path",{d:"M4.25304 17.732V16.448H4.98504C5.09304 16.448 5.19704 16.456 5.29704 16.472C5.39704 16.488 5.48504 16.52 5.56104 16.568C5.63704 16.612 5.69704 16.676 5.74104 16.76C5.78904 16.844 5.81304 16.954 5.81304 17.09C5.81304 17.226 5.78904 17.336 5.74104 17.42C5.69704 17.504 5.63704 17.57 5.56104 17.618C5.48504 17.662 5.39704 17.692 5.29704 17.708C5.19704 17.724 5.09304 17.732 4.98504 17.732H4.25304ZM3.31104 15.716V20H4.25304V18.464H5.24304C5.51104 18.464 5.73904 18.426 5.92704 18.35C6.11504 18.27 6.26704 18.166 6.38304 18.038C6.50304 17.91 6.58904 17.764 6.64104 17.6C6.69704 17.432 6.72504 17.262 6.72504 17.09C6.72504 16.914 6.69704 16.744 6.64104 16.58C6.58904 16.416 6.50304 16.27 6.38304 16.142C6.26704 16.014 6.11504 15.912 5.92704 15.836C5.73904 15.756 5.51104 15.716 5.24304 15.716H3.31104Z",fill:"white"}),m.createElement("path",{d:"M8.85499 19.208V16.508H9.52699C9.75899 16.508 9.95299 16.542 10.109 16.61C10.269 16.674 10.397 16.768 10.493 16.892C10.589 17.016 10.657 17.166 10.697 17.342C10.741 17.514 10.763 17.708 10.763 17.924C10.763 18.16 10.733 18.36 10.673 18.524C10.613 18.688 10.533 18.822 10.433 18.926C10.333 19.026 10.219 19.098 10.091 19.142C9.96299 19.186 9.83099 19.208 9.69499 19.208H8.85499ZM7.91299 15.716V20H9.76099C10.089 20 10.373 19.946 10.613 19.838C10.857 19.726 11.059 19.574 11.219 19.382C11.383 19.19 11.505 18.962 11.585 18.698C11.665 18.434 11.705 18.146 11.705 17.834C11.705 17.478 11.655 17.168 11.555 16.904C11.459 16.64 11.323 16.42 11.147 16.244C10.975 16.068 10.769 15.936 10.529 15.848C10.293 15.76 10.037 15.716 9.76099 15.716H7.91299Z",fill:"white"}),m.createElement("path",{d:"M12.9603 15.716V20H13.9023V18.23H15.6963V17.498H13.9023V16.508H15.9723V15.716H12.9603Z",fill:"white"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1813_15242"},m.createElement("rect",{width:22,height:28,fill:"white"})))),sMt=e=>C.jsx(lMt,{...e}),uMt=e=>C.jsx(djt,{...e}),cMt=e=>C.jsx(_Ke,{...e}),dMt=e=>m.createElement("svg",{viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1960_14734)"},m.createElement("path",{d:"M22.2271 7.38281L16.304 5.74219L14.6117 0H1.91936C0.984697 0 0.227051 0.734508 0.227051 1.64062V26.3594C0.227051 27.2655 0.984697 28 1.91936 28H20.5347C21.4694 28 22.2271 27.2655 22.2271 26.3594V7.38281Z",fill:"#F2F2F2"}),m.createElement("path",{d:"M22.2271 7.38281V26.3594C22.2271 27.2655 21.4695 28 20.5348 28H11.3625V0H14.6117L16.304 5.74219L22.2271 7.38281Z",fill:"#F2F2F2"}),m.createElement("path",{d:"M22.227 7.38281H16.3039C15.3731 7.38281 14.6116 6.64453 14.6116 5.74219V0C14.8316 0 15.0516 0.0820312 15.2038 0.246148L21.9731 6.80865C22.1423 6.95625 22.227 7.16953 22.227 7.38281Z",fill:"#E1E1E1"}),m.createElement("path",{d:"M9 17L14.1962 21.5H3.80385L9 17Z",fill:"#8BDC6F"}),m.createElement("path",{d:"M13 14L18.1963 21.5H7.80396L13 14Z",fill:"#8BDC6F"}),m.createElement("circle",{cx:7,cy:11,r:2,fill:"#EFC942"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1960_14734"},m.createElement("rect",{width:22,height:28,fill:"white"})))),fMt=e=>C.jsx(dMt,{...e}),mMt=e=>C.jsx(Iut,{...e}),pMt=e=>C.jsx(SKe,{...e}),hMt=e=>m.createElement("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M18 8C19.6569 8 21 6.65685 21 5C21 3.34315 19.6569 2 18 2C16.3431 2 15 3.34315 15 5C15 6.65685 16.3431 8 18 8Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M6 15C7.65685 15 9 13.6569 9 12C9 10.3431 7.65685 9 6 9C4.34315 9 3 10.3431 3 12C3 13.6569 4.34315 15 6 15Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M18 22C19.6569 22 21 20.6569 21 19C21 17.3431 19.6569 16 18 16C16.3431 16 15 17.3431 15 19C15 20.6569 16.3431 22 18 22Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M8.58984 13.51L15.4198 17.49",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M15.4098 6.51001L8.58984 10.49",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),gMt=e=>C.jsx(hMt,{...e}),vMt=e=>C.jsx(q7t,{...e}),bMt=e=>m.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1811_14941)"},m.createElement("path",{d:"M21.7881 7.38281L16.374 5.74219L14.8271 0H3.22559C2.37125 0 1.67871 0.734508 1.67871 1.64062V26.3594C1.67871 27.2655 2.37125 28 3.22559 28H20.2412C21.0956 28 21.7881 27.2655 21.7881 26.3594V7.38281Z",fill:"#EDEDED"}),m.createElement("path",{d:"M21.7881 7.38281V26.3594C21.7881 27.2655 21.0955 28 20.2412 28H11.8572V0H14.8271L16.374 5.74219L21.7881 7.38281Z",fill:"#EDEDED"}),m.createElement("path",{d:"M21.7881 7.38281H16.374C15.5232 7.38281 14.8271 6.64453 14.8271 5.74219V0C15.0282 0 15.2293 0.0820312 15.3685 0.246148L21.556 6.80865C21.7107 6.95625 21.7881 7.16953 21.7881 7.38281Z",fill:"#BDBDBD"}),m.createElement("path",{d:"M20.5333 22.4259C20.5333 22.925 20.1483 23.3333 19.6778 23.3333H0.855556C0.385 23.3333 0 22.925 0 22.4259V13.3519C0 12.8528 0.385 12.4444 0.855556 12.4444H19.6778C20.1483 12.4444 20.5333 12.8528 20.5333 13.3519V22.4259Z",fill:"#161C28"}),m.createElement("path",{d:"M4.62629 16.508V20H5.56828V16.508H6.85229V15.716H3.34229V16.508H4.62629Z",fill:"white"}),m.createElement("path",{d:"M8.99625 17.756L7.50225 20H8.55825L9.51225 18.518L10.4483 20H11.5703L10.0763 17.762L11.4503 15.716H10.4183L9.54825 17.084L8.70825 15.716H7.61625L8.99625 17.756Z",fill:"white"}),m.createElement("path",{d:"M13.4962 16.508V20H14.4382V16.508H15.7222V15.716H12.2122V16.508H13.4962Z",fill:"white"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1811_14941"},m.createElement("rect",{width:22,height:28,fill:"white"})))),xMt=e=>C.jsx(bMt,{...e}),yMt=e=>m.createElement("svg",{viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{clipPath:"url(#clip0_1811_14989)"},m.createElement("path",{d:"M22.2271 7.38281L16.304 5.74219L14.6117 0H1.91936C0.984697 0 0.227051 0.734508 0.227051 1.64062V26.3594C0.227051 27.2655 0.984697 28 1.91936 28H20.5347C21.4694 28 22.2271 27.2655 22.2271 26.3594V7.38281Z",fill:"#C9E3F4"}),m.createElement("path",{d:"M22.2271 7.38281V26.3594C22.2271 27.2655 21.4695 28 20.5348 28H11.3625V0H14.6117L16.304 5.74219L22.2271 7.38281Z",fill:"#C9E3F4"}),m.createElement("path",{d:"M22.227 7.38281H16.3039C15.3731 7.38281 14.6116 6.64453 14.6116 5.74219V0C14.8316 0 15.0516 0.0820312 15.2038 0.246148L21.9731 6.80865C22.1423 6.95625 22.227 7.16953 22.227 7.38281Z",fill:"#AAC4D6"})),m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_1811_14989"},m.createElement("rect",{width:22,height:28,fill:"white"})))),wMt=e=>C.jsx(yMt,{...e}),CMt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M10 12.4503C10.3236 12.894 10.7365 13.2612 11.2106 13.5269C11.6847 13.7926 12.209 13.9505 12.7479 13.9901C13.2868 14.0297 13.8277 13.95 14.3339 13.7563C14.8401 13.5626 15.2998 13.2596 15.6817 12.8677L17.9424 10.549C18.6287 9.82019 19.0084 8.84404 18.9999 7.83081C18.9913 6.81758 18.595 5.84834 17.8965 5.13185C17.1979 4.41536 16.2529 4.00895 15.265 4.00015C14.2771 3.99134 13.3254 4.38085 12.6148 5.08478L11.3187 6.4064",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M13 10.5497C12.6764 10.106 12.2635 9.73881 11.7894 9.47313C11.3153 9.20745 10.791 9.04946 10.2521 9.00987C9.7132 8.97029 9.17231 9.05004 8.66611 9.24371C8.15991 9.43738 7.70024 9.74045 7.31828 10.1323L5.05764 12.451C4.37132 13.1798 3.99156 14.156 4.00014 15.1692C4.00873 16.1824 4.40497 17.1517 5.10354 17.8681C5.80211 18.5846 6.7471 18.991 7.73498 18.9999C8.72287 19.0087 9.6746 18.6192 10.3852 17.9152L11.6738 16.5936",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M8.1582 2.67383L9.06952 5.30645",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M18.4316 17.667L16.8262 15.3902",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M5 5.28906L7.23775 6.94848",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M20.7402 14.2783L18.1301 13.3044",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),kMt=e=>C.jsx(CMt,{...e}),_Mt=e=>C.jsx(cee,{...e}),TMt=e=>m.createElement("svg",{width:22,height:28,viewBox:"0 0 22 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M21.9982 7.38281L16.0756 5.74219L14.3835 0H1.69217C0.757586 0 0 0.734508 0 1.64062V26.3594C0 27.2655 0.757586 28 1.69217 28H20.3061C21.2407 28 21.9982 27.2655 21.9982 26.3594V7.38281Z",fill:"#59C36A"}),m.createElement("path",{d:"M21.9982 7.38281V26.3594C21.9982 27.2655 21.2406 28 20.306 28H11.1345V0H14.3834L16.0756 5.74219L21.9982 7.38281Z",fill:"#59C36A"}),m.createElement("path",{d:"M16.0753 11.5391H5.92226C5.4546 11.5391 5.07617 11.906 5.07617 12.3594V22.2031C5.07617 22.6565 5.4546 23.0234 5.92226 23.0234H16.0753C16.543 23.0234 16.9214 22.6565 16.9214 22.2031V12.3594C16.9214 11.906 16.543 11.5391 16.0753 11.5391ZM6.76834 16.4609H10.1527V18.1016H6.76834V16.4609ZM11.8449 16.4609H15.2292V18.1016H11.8449V16.4609ZM15.2292 14.8203H11.8449V13.1797H15.2292V14.8203ZM10.1527 13.1797V14.8203H6.76834V13.1797H10.1527ZM6.76834 19.7422H10.1527V21.3828H6.76834V19.7422ZM11.8449 21.3828V19.7422H15.2292V21.3828H11.8449Z",fill:"white"}),m.createElement("path",{d:"M16.0758 11.5391H11.1365V23.0234H16.0758C16.5435 23.0234 16.9219 22.6565 16.9219 22.2031V12.3594C16.9219 11.906 16.5435 11.5391 16.0758 11.5391ZM15.2297 21.3828H11.8454V19.7422H15.2297V21.3828ZM15.2297 18.1016H11.8454V16.4609H15.2297V18.1016ZM15.2297 14.8203H11.8454V13.1797H15.2297V14.8203Z",fill:"white"}),m.createElement("path",{d:"M21.9995 7.38281H16.0769C15.1462 7.38281 14.3848 6.64453 14.3848 5.74219V0C14.6047 0 14.8247 0.0820312 14.977 0.246148L21.7457 6.80865C21.9149 6.95625 21.9995 7.16953 21.9995 7.38281Z",fill:"#A0DEB0"})),SMt=e=>C.jsx(TMt,{...e}),EMt=e=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-trending-up",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e},m.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),m.createElement("path",{d:"M3 17l6 -6l4 4l8 -8"}),m.createElement("path",{d:"M14 7l7 0l0 7"})),AMt=e=>C.jsx(EMt,{...e}),OMt=e=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-trending-down",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e},m.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),m.createElement("path",{d:"M3 7l6 6l4 -4l8 8"}),m.createElement("path",{d:"M21 10l0 7l-7 0"})),IMt=e=>C.jsx(OMt,{...e}),RMt=e=>C.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",...e,children:[C.jsx("rect",{id:"sortasc",x:"0",y:"0",width:"24",height:"24",fill:"none"}),C.jsx("path",{d:"M12,2l7,8l-14,-0l7,-8Z",fill:"currentColor"}),C.jsx("path",{d:"M12,22l-7,-8l14,-0l-7,8Z",fill:"currentColor",fillOpacity:.5})]}),PMt=e=>C.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",...e,children:[C.jsx("rect",{id:"sortasc",x:"0",y:"0",width:"24",height:"24",fill:"none"}),C.jsx("path",{d:"M12,2l7,8l-14,-0l7,-8Z",fill:"currentColor",fillOpacity:.5}),C.jsx("path",{d:"M12,22l-7,-8l14,-0l-7,8Z",fill:"currentColor"})]}),LMt=e=>C.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",...e,children:[C.jsx("rect",{id:"sortasc",x:"0",y:"0",width:"24",height:"24",fill:"none"}),C.jsx("path",{d:"M12,2l7,8l-14,-0l7,-8Z",fill:"currentColor",fillOpacity:.5}),C.jsx("path",{d:"M12,22l-7,-8l14,-0l-7,8Z",fill:"currentColor",fillOpacity:.5})]}),HMt=e=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"icon ms-1",...e},m.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),m.createElement("path",{d:"M5 12l14 0"})),NMt=e=>C.jsx(HMt,{...e}),$Mt=e=>m.createElement("svg",{width:56,height:56,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{filter:"url(#filter0_d_8732_12671)"},m.createElement("rect",{x:10,y:10,width:36,height:36,rx:6,fill:"#143566",shapeRendering:"crispEdges"}),m.createElement("path",{d:"M28.834 18.6667H23.0007C22.5586 18.6667 22.1347 18.8423 21.8221 19.1549C21.5096 19.4675 21.334 19.8914 21.334 20.3334V33.6667C21.334 34.1088 21.5096 34.5327 21.8221 34.8453C22.1347 35.1578 22.5586 35.3334 23.0007 35.3334H33.0007C33.4427 35.3334 33.8666 35.1578 34.1792 34.8453C34.4917 34.5327 34.6673 34.1088 34.6673 33.6667V24.5001L28.834 18.6667Z",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M28.834 18.6667V24.5001H34.6673",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M29.666 30.3333L31.3327 28.6667L29.666 27",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M26.334 26.9999L24.6673 28.6666L26.334 30.3333",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),m.createElement("defs",null,m.createElement("filter",{id:"filter0_d_8732_12671",x:0,y:0,width:56,height:56,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),m.createElement("feOffset",null),m.createElement("feGaussianBlur",{stdDeviation:5}),m.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),m.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),m.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_8732_12671"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_8732_12671",result:"shape"})))),DMt=e=>C.jsx($Mt,{...e}),BMt=e=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},m.createElement("path",{d:"M600-640 480-760l120-120 120 120-120 120Zm200 120-80-80 80-80 80 80-80 80ZM483-80q-84 0-157.5-32t-128-86.5Q143-253 111-326.5T79-484q0-146 93-257.5T409-880q-18 99 11 193.5T520-521q71 71 165.5 100T879-410q-26 144-138 237T483-80Zm0-80q88 0 163-44t118-121q-86-8-163-43.5T463-465q-61-61-97-138t-43-163q-77 43-120.5 118.5T159-484q0 135 94.5 229.5T483-160Zm-20-305Z"})),jMt=e=>C.jsx(BMt,{...e}),MMt=e=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",...e},m.createElement("path",{d:"m354-287 126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM233-120l65-281L80-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm457-560 21-89-71-59 94-8 36-84 36 84 94 8-71 59 21 89-80-47-80 47ZM480-481Z"})),zMt=e=>C.jsx(MMt,{...e}),FMt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8V16Z",fill:"#394150"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM12 4V8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16V20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4Z",fill:"#394150"})),WMt=e=>C.jsx(FMt,{...e}),VMt=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M12 8C9.7909 8 8 9.7909 8 12C8 14.2091 9.7909 16 12 16L12 8Z",fill:"white"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5229 22 22 17.5229 22 12C22 6.4772 17.5228 2 12 2C6.4772 2 2 6.4772 2 12C2 17.5229 6.4772 22 12 22ZM12 20L12 16C14.2091 16 16 14.2091 16 12C16 9.7909 14.2091 8 12 8L12 4C7.5817 4 4 7.5817 4 12C4 16.4183 7.5817 20 12 20Z",fill:"white"})),UMt=e=>C.jsx(VMt,{...e}),qMt=e=>m.createElement("svg",{width:37,height:36,viewBox:"0 0 37 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M19.6797 30.6797H16.7538C16.4842 30.6797 16.2661 30.8978 16.2661 31.1673V31.655C16.2661 32.7308 17.141 33.6056 18.2168 33.6056C19.2925 33.6056 20.1674 32.7308 20.1674 31.655V31.1673C20.1674 30.8978 19.9493 30.6797 19.6797 30.6797Z",fill:"#868491"}),m.createElement("path",{d:"M18.2163 30.6797H16.7538C16.4842 30.6797 16.2661 30.8978 16.2661 31.1673V31.655C16.2661 32.7307 17.1407 33.6053 18.2163 33.6056V30.6797Z",fill:"#9A9A9A"}),m.createElement("path",{d:"M25.8957 5.43603C23.6164 3.29393 20.631 2.22101 17.4998 2.41742C11.7935 2.7725 7.18363 7.53242 7.00551 13.2541C6.87409 17.4935 9.10093 21.3967 12.8174 23.4411C13.7413 23.9497 14.3152 24.9265 14.3152 25.9908V29.704C14.3152 30.7798 15.19 31.6547 16.2658 31.6547H20.1671C21.2429 31.6547 22.1177 30.7798 22.1177 29.704V25.9908C22.1177 24.9274 22.6959 23.9483 23.6274 23.4349C27.2082 21.4595 29.4326 17.6954 29.4326 13.6112C29.4326 10.5281 28.1435 7.54833 25.8957 5.43603Z",fill:"#FFD93C"}),m.createElement("path",{d:"M18.2172 22.9604C23.3799 22.9604 27.5651 18.7752 27.5651 13.6125C27.5651 8.44982 23.3799 4.26465 18.2172 4.26465C13.0546 4.26465 8.86938 8.44982 8.86938 13.6125C8.86938 18.7752 13.0546 22.9604 18.2172 22.9604Z",fill:"#FFE980"}),m.createElement("path",{d:"M19.922 16.5376C19.2738 16.5376 18.9424 16.1594 18.701 15.8837C18.4881 15.6408 18.4033 15.5622 18.2133 15.5622C18.0242 15.5622 17.94 15.6408 17.728 15.8832C17.5004 16.1437 17.156 16.5376 16.5079 16.5376C15.8602 16.5376 15.5159 16.1437 15.2883 15.8832C15.0763 15.6408 14.9921 15.5622 14.803 15.5622C14.5334 15.5622 14.3153 15.3441 14.3153 15.0746C14.3153 14.805 14.5334 14.5869 14.803 14.5869C15.4506 14.5869 15.7949 14.9808 16.0226 15.2412C16.2346 15.4837 16.3188 15.5622 16.5079 15.5622C16.697 15.5622 16.7817 15.4837 16.9937 15.2412C17.2213 14.9808 17.5656 14.5869 18.2133 14.5869C18.8615 14.5869 19.1929 14.965 19.4343 15.2408C19.6472 15.4837 19.732 15.5622 19.922 15.5622C20.1115 15.5622 20.1963 15.4837 20.4092 15.2412C20.6373 14.9808 20.9816 14.5869 21.6302 14.5869C21.8998 14.5869 22.1179 14.805 22.1179 15.0746C22.1179 15.3441 21.8998 15.5622 21.6302 15.5622C21.4402 15.5622 21.3554 15.6408 21.1425 15.8837C20.9144 16.1442 20.5702 16.5376 19.922 16.5376Z",fill:"#FFF7CE"}),m.createElement("path",{d:"M16.7533 25.8024C16.529 25.8024 16.3271 25.6466 16.277 25.4185L13.8387 14.2023C13.7815 13.939 13.9488 13.6794 14.2116 13.6218C14.4764 13.5637 14.7345 13.7319 14.7921 13.9947L17.2304 25.2109C17.2876 25.4742 17.1204 25.7338 16.8575 25.7914C16.8224 25.7991 16.7875 25.8024 16.7533 25.8024Z",fill:"#FFF7CE"}),m.createElement("path",{d:"M19.6802 25.8022C19.6458 25.8022 19.6111 25.7989 19.5759 25.7913C19.313 25.7337 19.1458 25.4741 19.203 25.2108L21.6413 13.9946C21.6989 13.7317 21.9561 13.564 22.2218 13.6217C22.4847 13.6793 22.6518 13.9389 22.5947 14.2022L20.1564 25.4184C20.1064 25.6466 19.9045 25.8022 19.6802 25.8022Z",fill:"#FFF7CE"}),m.createElement("path",{d:"M14.2314 25.3164C14.2833 25.5354 14.3152 25.761 14.3152 25.9922V29.7053C14.3152 30.7811 15.1901 31.656 16.2658 31.656H20.1671C21.2429 31.656 22.1178 30.7811 22.1178 29.7053V25.9922C22.1178 25.7612 22.1499 25.5355 22.2021 25.3164H14.2314Z",fill:"#B4B6BC"}),m.createElement("path",{d:"M18.2162 25.3164H14.2314C14.2833 25.5354 14.3152 25.761 14.3152 25.9922V29.7053C14.3152 30.7811 15.1901 31.656 16.2658 31.656H18.2162V25.3164Z",fill:"#B4B6BC"}),m.createElement("path",{d:"M22.1175 26.7773H18.2162V27.7527H22.1175V26.7773Z",fill:"#9A9A9A"}),m.createElement("path",{d:"M22.1177 28.7285H18.2164V29.7038H22.1177V28.7285Z",fill:"#9A9A9A"}),m.createElement("path",{d:"M18.2162 26.7773H14.3149V27.7527H18.2162V26.7773Z",fill:"#9A9A9A"}),m.createElement("path",{d:"M18.2162 28.7285H14.3149V29.7038H18.2162V28.7285Z",fill:"#9A9A9A"})),GMt=e=>C.jsx(qMt,{...e}),YMt=e=>m.createElement("svg",{width:36,height:36,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M15.8283 6C16.5981 4.66667 18.5226 4.66667 19.2924 6L31.8498 27.75C32.6196 29.0833 31.6573 30.75 30.1177 30.75H5.00298C3.46338 30.75 2.50113 29.0833 3.27093 27.75L15.8283 6Z",fill:"url(#paint0_linear_11265_27105)"}),m.createElement("path",{d:"M15.8278 6C16.5976 4.66667 18.5229 4.66667 19.2927 6L31.8493 27.75C32.595 29.0416 31.7158 30.646 30.2605 30.7451L30.1179 30.75V29.75C30.8875 29.7498 31.3687 28.9166 30.9841 28.25L18.4265 6.5C18.0657 5.87505 17.1975 5.83607 16.7731 6.38281L16.694 6.5L4.13643 28.25C3.75177 28.9166 4.23306 29.7498 5.00264 29.75V30.75L4.86006 30.7451C3.4517 30.6492 2.5826 29.1436 3.20381 27.876L3.2712 27.75L15.8278 6ZM30.1179 29.75V30.75H5.00264V29.75H30.1179Z",fill:"#FFD93C"}),m.createElement("path",{d:"M18.9476 12.0938L18.7226 22.572H16.5272L16.309 12.0938H18.9476ZM17.6249 27.0938C17.2112 27.0938 16.8567 26.9392 16.5612 26.63C16.2703 26.3208 16.1249 25.944 16.1249 25.4995C16.1249 25.0648 16.2703 24.6928 16.5612 24.3836C16.8567 24.0744 17.2112 23.9198 17.6249 23.9198C18.0294 23.9198 18.3794 24.0744 18.6749 24.3836C18.9749 24.6928 19.1249 25.0648 19.1249 25.4995C19.1249 25.7942 19.0544 26.0623 18.9135 26.3039C18.7772 26.5454 18.5953 26.7387 18.3681 26.8836C18.1453 27.0237 17.8976 27.0938 17.6249 27.0938Z",fill:"black"}),m.createElement("defs",null,m.createElement("linearGradient",{id:"paint0_linear_11265_27105",x1:17.5604,y1:3,x2:17.5604,y2:40,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#FFE980"}),m.createElement("stop",{offset:.932692,stopColor:"#FFD93C"})))),KMt=e=>C.jsx(YMt,{...e}),XMt=e=>m.createElement("svg",{width:36,height:36,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M18 6C11.3831 6 6 11.3832 6 18C6 24.6168 11.3831 30 18 30C24.6169 30 30 24.6168 30 18C30 11.3832 24.6169 6 18 6ZM18 8.32256C20.2505 8.32256 22.324 9.09473 23.9696 10.3881L10.3881 23.9696C9.09478 22.324 8.32256 20.2505 8.32256 18C8.32256 12.6639 12.6639 8.32256 18 8.32256ZM18 27.6774C15.7495 27.6774 13.676 26.9053 12.0304 25.6119L25.6119 12.0304C26.9053 13.676 27.6774 15.7495 27.6774 18C27.6774 23.3361 23.3361 27.6774 18 27.6774Z",fill:"url(#paint0_linear_11264_27095)"}),m.createElement("path",{d:"M29.9167 18C29.9167 11.4292 24.5709 6.08333 18 6.08333C11.4291 6.08333 6.08333 11.4292 6.08333 18C6.08333 24.5708 11.4291 29.9167 18 29.9167C24.5709 29.9167 29.9167 24.5708 29.9167 18ZM26.527 18C26.527 16.4591 26.1141 15.0148 25.3961 13.7661L13.7661 25.3961C15.0148 26.1141 16.4591 26.527 18 26.527V27.6104L17.5832 27.6008C15.5096 27.5119 13.6043 26.763 12.0723 25.559L25.559 12.0723C26.8433 13.7064 27.6104 15.7652 27.6104 18L27.5977 18.4941C27.3396 23.5644 23.1334 27.6104 18 27.6104V26.527C22.7007 26.527 26.527 22.7007 26.527 18ZM18.4168 8.39917C20.4904 8.4881 22.3957 9.23699 23.9277 10.441L10.441 23.9277C9.23704 22.3957 8.4881 20.4904 8.39917 18.4168L8.38965 18C8.38965 12.7009 12.7009 8.38965 18 8.38965L18.4168 8.39917ZM9.47298 18C9.47298 19.5404 9.88531 20.9844 10.6029 22.2328L22.2328 10.6029C20.9844 9.8853 19.5404 9.47298 18 9.47298C13.2993 9.47298 9.47298 13.2993 9.47298 18ZM31 18C31 25.1691 25.1692 31 18 31C10.8308 31 5 25.1691 5 18C5 10.8309 10.8308 5 18 5C25.1692 5 31 10.8309 31 18Z",fill:"url(#paint1_linear_11264_27095)"}),m.createElement("path",{d:"M31 18C31 10.9428 25.35 5.18214 18.335 5.00391L18 5C10.8308 5 5 10.8309 5 18L5.00391 18.335C5.17931 25.2386 10.7613 30.8207 17.665 30.9961L18 31C25.0573 31 30.8179 25.3499 30.9961 18.335L31 18ZM29.6162 18C29.6162 11.5949 24.4052 6.38379 18 6.38379C11.5948 6.38379 6.38379 11.5949 6.38379 18C6.38379 24.4051 11.5948 29.6162 18 29.6162V29.917L17.6934 29.9131C11.3655 29.7525 6.24754 24.6344 6.08691 18.3066L6.08301 18C6.08301 11.4292 11.4291 6.08301 18 6.08301L18.3066 6.08691C24.7364 6.25013 29.917 11.5317 29.917 18L29.9131 18.3066C29.7499 24.7363 24.4684 29.917 18 29.917V29.6162C24.4052 29.6162 29.6162 24.4051 29.6162 18ZM25.7949 11.8867C27.1191 13.5716 27.9102 15.6954 27.9102 18V18.0078L27.8975 18.502V18.5098C27.6311 23.7386 23.2939 27.9102 18 27.9102H17.9932L17.5762 27.9004H17.5703C15.4317 27.8087 13.4663 27.0363 11.8867 25.7949L11.6211 25.5859L25.5859 11.6211L25.7949 11.8867ZM12.0723 25.5586C13.6042 26.7626 15.5095 27.5116 17.583 27.6006L18 27.6104C22.9728 27.6104 27.0751 23.8136 27.5615 18.9668L27.5977 18.4941L27.6104 18C27.6104 15.7652 26.8429 13.7063 25.5586 12.0723L12.0723 25.5586ZM26.2266 18C26.2266 16.6539 25.8993 15.3851 25.3232 14.2627L14.2627 25.3232C15.3851 25.8993 16.6539 26.2266 18 26.2266C22.5351 26.2266 26.2266 22.5351 26.2266 18ZM18.0068 8.08984L18.4238 8.09961H18.4297L18.8281 8.125C20.8122 8.28992 22.6323 9.04117 24.1133 10.2051L24.3789 10.4141L10.4141 24.3789L10.2051 24.1133C8.96372 22.5337 8.19133 20.5683 8.09961 18.4297V18.4238L8.08984 18.0068V18L8.10254 17.4912C8.36824 12.262 12.7059 8.08984 18 8.08984H18.0068ZM18 8.38965C12.7009 8.38965 8.38965 12.7009 8.38965 18L8.39941 18.417C8.48838 20.4905 9.23748 22.3958 10.4414 23.9277L23.9277 10.4414C22.3958 9.23743 20.4905 8.48838 18.417 8.39941L18 8.38965ZM18.2881 9.47754C19.7202 9.52552 21.0622 9.93004 22.2324 10.6025L10.6025 22.2324C9.93005 21.0622 9.52552 19.7202 9.47754 18.2881L9.47266 18C9.47266 13.2993 13.2993 9.47266 18 9.47266L18.2881 9.47754ZM9.77344 18C9.77344 19.3452 10.0995 20.6135 10.6748 21.7354L21.7354 10.6748C20.6135 10.0995 19.3452 9.77344 18 9.77344C13.4649 9.77344 9.77344 13.4649 9.77344 18ZM26.5156 18.4385C26.2865 22.9364 22.5537 26.5273 18 26.5273C16.4593 26.5273 15.0152 26.1143 13.7666 25.3965L25.3965 13.7666C26.1143 15.0152 26.5273 16.4593 26.5273 18L26.5156 18.4385ZM31.2998 18C31.2998 25.3348 25.3349 31.2998 18 31.2998C10.6651 31.2998 4.7002 25.3348 4.7002 18C4.7002 10.6652 10.6651 4.7002 18 4.7002C25.3349 4.7002 31.2998 10.6652 31.2998 18Z",fill:"url(#paint2_linear_11264_27095)"}),m.createElement("defs",null,m.createElement("linearGradient",{id:"paint0_linear_11264_27095",x1:18,y1:6,x2:18,y2:30,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#ED5A3B"}),m.createElement("stop",{offset:1,stopColor:"#AF3117"})),m.createElement("linearGradient",{id:"paint1_linear_11264_27095",x1:18,y1:5,x2:18,y2:31,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#EC5A3A"}),m.createElement("stop",{offset:1,stopColor:"#AF3117"})),m.createElement("linearGradient",{id:"paint2_linear_11264_27095",x1:18,y1:5,x2:18,y2:31,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#EB5A39"}),m.createElement("stop",{offset:1,stopColor:"#B03117"})))),QMt=e=>C.jsx(XMt,{...e}),ZMt=e=>m.createElement("svg",{width:36,height:36,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M7 5.15039H28C28.4694 5.15039 28.8496 5.53056 28.8496 6V26.6445C28.8496 26.8769 28.755 27.0994 28.5869 27.2598L24.0205 31.6152C23.8625 31.766 23.652 31.8496 23.4336 31.8496H7C6.53056 31.8496 6.15039 31.4694 6.15039 31V6C6.15039 5.53056 6.53056 5.15039 7 5.15039Z",fill:"#FEFEFE",stroke:"#666666",strokeWidth:.3}),m.createElement("path",{d:"M26.0982 12.5596H8.58191V13.083H26.0982V12.5596Z",fill:"#666666"}),m.createElement("path",{d:"M26.0982 15.3857H8.58191V15.9092H26.0982V15.3857Z",fill:"#666666"}),m.createElement("path",{d:"M26.0982 18.2109H8.58191V18.7344H26.0982V18.2109Z",fill:"#666666"}),m.createElement("path",{d:"M26.0982 21.0039H8.58191V21.5273H26.0982V21.0039Z",fill:"#666666"}),m.createElement("path",{d:"M26.0982 23.8291H8.58191V24.3525H26.0982V23.8291Z",fill:"#666666"}),m.createElement("path",{d:"M16.8516 27.0947H8.58191V27.6181H16.8516V27.0947Z",fill:"#666666"}),m.createElement("path",{d:"M23.9056 32.3591L29 27.2646H23.9056V32.3591Z",fill:"#F4F2F2"}),m.createElement("path",{d:"M21 9H14V10H21V9Z",fill:"#535353"}),m.createElement("path",{d:"M23.9339 14.783L22.4576 13.9355L21.6053 15.4034L23.0816 16.2508L23.9339 14.783Z",fill:"#E0E1E2"}),m.createElement("path",{d:"M25.6385 11.8475L24.8948 11.4206C24.7937 11.3625 24.6837 11.3307 24.5715 11.3222C24.5154 11.318 24.4589 11.3196 24.4026 11.3276C24.1208 11.3654 23.8457 11.5452 23.6789 11.8325L22.4576 13.9357L23.9339 14.7831L25.6385 11.8475Z",fill:"#E85738"}),m.createElement("path",{d:"M24.9268 17.3103L23.0815 16.251L18.1808 24.6911L20.0261 25.7504L24.9268 17.3103Z",fill:"#F2C91D"}),m.createElement("path",{d:"M25.7791 15.8425L23.9338 14.7832L23.0815 16.251L24.9268 17.3104L25.7791 15.8425Z",fill:"#C4C4C4"}),m.createElement("path",{d:"M25.7791 15.8427L27.0003 13.7395C27.1671 13.4522 27.1541 13.107 26.9975 12.8174C26.9664 12.7598 26.9289 12.7036 26.8866 12.6514C26.8012 12.5465 26.6944 12.4539 26.568 12.3813L25.6384 11.8477L23.9338 14.7833L25.7791 15.8427Z",fill:"#B13218"}),m.createElement("path",{d:"M20.0261 25.7505L16.7046 23.8438L16.6607 27.7328L20.0261 25.7505Z",fill:"#FDEDD9"}),m.createElement("path",{d:"M17.8536 26.95L16.7465 26.3145L16.6608 27.7331L17.8536 26.95Z",fill:"#4C4C4C"}),m.createElement("path",{d:"M23.0816 16.2508L21.6053 15.4033L16.7046 23.8434L18.1808 24.6909L23.0816 16.2508Z",fill:"#FFD93C"})),JMt=e=>C.jsx(ZMt,{...e}),ezt=e=>m.createElement("svg",{width:36,height:36,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M5.29297 5.15039H30.6719C31.2902 5.15044 31.7575 5.5568 31.8389 6.09961L31.8496 6.20215V24.1748C31.8496 24.7617 31.3364 25.2273 30.707 25.2275H14.5459L14.5068 25.2539L6.49219 30.7158V25.2275H5.29297C4.63423 25.2273 4.15039 24.7343 4.15039 24.1748V6.20215C4.15058 5.61545 4.66376 5.15058 5.29297 5.15039Z",fill:"url(#paint0_linear_11266_27250)",stroke:"#666666",strokeWidth:.3}),m.createElement("path",{d:"M25.6739 12.3672H11V12.8057H25.6739V12.3672Z",fill:"#666666"}),m.createElement("path",{d:"M25.6739 14.7344H11V15.1729H25.6739V14.7344Z",fill:"#666666"}),m.createElement("path",{d:"M25.6739 17.0742H11V17.5127H25.6739V17.0742Z",fill:"#666666"}),m.createElement("defs",null,m.createElement("linearGradient",{id:"paint0_linear_11266_27250",x1:16.7273,y1:21.25,x2:12.1155,y2:30.9251,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#FEFEFE"}),m.createElement("stop",{offset:1,stopColor:"#E0E0E0"})))),tzt=e=>C.jsx(ezt,{...e});function rzt(e){return C.jsxs("svg",{viewBox:"0 0 24 16",stroke:"currentColor",fill:"none",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[C.jsx("rect",{x:"1.5",y:"1.5",width:"13",height:"11",rx:"1"}),C.jsx("line",{x1:"1.5",y1:"5.5",x2:"14.5",y2:"5.5"}),C.jsx("line",{x1:"1.5",y1:"9.5",x2:"14.5",y2:"9.5"}),C.jsx("line",{x1:"19",y1:"6",x2:"19",y2:"10"}),C.jsx("line",{x1:"17",y1:"8",x2:"21",y2:"8"})]})}function nzt(e){return C.jsxs("svg",{viewBox:"0 0 24 16",stroke:"currentColor",fill:"none",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[C.jsx("rect",{x:"1.5",y:"1.5",width:"13",height:"11",rx:"1"}),C.jsx("line",{x1:"1.5",y1:"5.5",x2:"14.5",y2:"5.5"}),C.jsx("line",{x1:"1.5",y1:"9.5",x2:"14.5",y2:"9.5"}),C.jsx("line",{x1:"17",y1:"8",x2:"21",y2:"8"})]})}function ozt(e){return C.jsxs("svg",{viewBox:"0 0 24 16",stroke:"currentColor",fill:"none",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"24",height:"16",...e,children:[C.jsx("rect",{x:"1.5",y:"1.5",width:"13",height:"11",rx:"1"}),C.jsx("line",{x1:"5.5",y1:"3.5",x2:"5.5",y2:"11.5"}),C.jsx("line",{x1:"9",y1:"3.5",x2:"9",y2:"11.5"}),C.jsx("line",{x1:"19",y1:"6.5",x2:"19",y2:"9.5"}),C.jsx("line",{x1:"17.5",y1:"8",x2:"20.5",y2:"8"})]})}function izt(e){return C.jsxs("svg",{viewBox:"0 0 24 16",stroke:"currentColor",fill:"none",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",width:"24",height:"16",...e,children:[C.jsx("rect",{x:"1.5",y:"1.5",width:"13",height:"11",rx:"1"}),C.jsx("line",{x1:"5.5",y1:"3.5",x2:"5.5",y2:"11.5"}),C.jsx("line",{x1:"9",y1:"3.5",x2:"9",y2:"11.5"}),C.jsx("line",{x1:"17",y1:"8",x2:"21",y2:"8"})]})}const i5=new Map;function De(e,t){typeof e=="object"?e.forEach(r=>{i5.set(r,{renderer:t})}):i5.set(e.toLowerCase(),{renderer:t})}De("assign",e=>C.jsx(cee,{...e})),De("arrowup",e=>C.jsx(S7t,{...e})),De("arrowleft",e=>C.jsx(_7t,{...e})),De("arrowright",e=>C.jsx(T7t,{...e})),De("pause",e=>C.jsx(O7t,{...e})),De("play",e=>C.jsx(I7t,{...e})),De("date",e=>C.jsx(mjt,{...e})),De("hamburger",e=>C.jsx(Aut,{...e})),De("send",e=>C.jsx(Rut,{...e})),De("users",e=>C.jsx(PKe,{...e})),De("refresh",e=>C.jsx(TKe,{...e})),De("chevrondown",e=>C.jsx(dKe,{...e})),De("chevronup",e=>C.jsx(fKe,{...e})),De("chevronright",e=>C.jsx(Sjt,{...e})),De("chevronleft",e=>C.jsx(Tjt,{...e})),De("dotmenu",e=>C.jsx(Mjt,{...e})),De("dotmenuhorizontal",e=>C.jsx(jjt,{...e})),De("noresult",e=>C.jsx(EKe,{...e})),De("crm",e=>C.jsx(Eke,{...e})),De("chat",e=>C.jsx(Eke,{...e})),De("pencil",e=>C.jsx(V7t,{...e})),De("cube",e=>C.jsx(j7t,{...e})),De("apps",e=>C.jsx(see,{...e})),De("permissions",e=>C.jsx(wKe,{...e})),De("close",e=>C.jsx(LKe,{...e})),De("star",e=>C.jsx(AKe,{...e})),De("help",e=>C.jsx(xKe,{...e})),De("compactlist",e=>C.jsx(Rjt,{...e})),De("copy",e=>C.jsx(Pjt,{...e})),De("move",e=>C.jsx(hKe,{...e})),De("rename",e=>C.jsx(Q7t,{...e})),De("hyperlink",e=>C.jsx(Jjt,{...e})),De("globe",e=>C.jsx(Qjt,{...e})),De("link",e=>C.jsx(nMt,{...e})),De("looseList",e=>C.jsx(iMt,{...e})),De("options",e=>C.jsx(aMt,{...e})),De("search",e=>C.jsx(pMt,{...e})),De("filter",e=>C.jsx(Yjt,{...e})),De("trash",e=>C.jsx(vMt,{...e})),De("pen",e=>C.jsx(uMt,{...e})),De("email",e=>C.jsx(zjt,{...e})),De("phone",e=>C.jsx(cMt,{...e})),De("home",e=>C.jsx(Zjt,{...e})),De("user",e=>C.jsx(_Mt,{...e})),De("exit",e=>C.jsx(x_t,{...e})),De("adduser",e=>C.jsx(RKe,{...e})),De("userminus",e=>C.jsx(IKe,{...e})),De("plus",e=>C.jsx(mMt,{...e})),De("inspect",e=>C.jsx(DMt,{...e})),De("plus-circle",e=>C.jsx(Out,{...e})),De("filledplus",e=>C.jsx(qjt,{...e})),De("darktolight",e=>C.jsx(UMt,{...e})),De("lighttodark",e=>C.jsx(WMt,{...e})),De("checkmark",e=>C.jsx(_jt,{...e})),De("valid",e=>C.jsx(uKe,{...e})),De("info",e=>C.jsx(sKe,{...e})),De("error",e=>C.jsx(mle,{...e})),De("warning",e=>C.jsx(fle,{...e})),De("board",e=>C.jsx(wjt,{...e})),De("list",e=>C.jsx(oMt,{...e})),De("folder",e=>C.jsx(Xjt,{...e})),De("folder-outline",e=>C.jsx(vKe,{...e})),De("emptyfolder",e=>C.jsx(Wjt,{...e})),De("pdf",e=>C.jsx(sMt,{...e})),De("txt",e=>C.jsx(xMt,{...e})),De("doc",e=>C.jsx(Ake,{...e})),De("docx",e=>C.jsx(Ake,{...e})),De("doc-outline",e=>C.jsx(Djt,{...e})),De("conf",e=>C.jsx(N7t,{...e})),De("code",e=>C.jsx(Ajt,{...e})),De("codesandbox",e=>C.jsx(Ijt,{...e})),De("box",e=>C.jsx(kjt,{...e})),De(["xls","xlsx"],e=>C.jsx(SMt,{...e})),De(["jpg","jpeg","png","webp","svg","gif","tif","ppt","pptx"],e=>C.jsx(tMt,{...e})),De("unknownfile",e=>C.jsx(wMt,{...e})),De("photo",e=>C.jsx(fMt,{...e})),De("previous",e=>C.jsx(B7t,{...e})),De("next",e=>C.jsx(D7t,{...e})),De("like",e=>C.jsx(Eut,{...e})),De("reply",e=>C.jsx(R7t,{...e})),De("attach",e=>C.jsx(vjt,{...e})),De("attach2",e=>C.jsx(tjt,{...e})),De("emoji",e=>C.jsx($7t,{...e})),De("message",e=>C.jsx(J7t,{...e})),De("upload",e=>C.jsx(OKe,{...e})),De("split-vertical",e=>C.jsx(ijt,{...e})),De("split-horizontal",e=>C.jsx(ojt,{...e})),De("swap",e=>C.jsx(U7t,{...e})),De("download",e=>C.jsx(gKe,{...e})),De("note",e=>C.jsx(ejt,{...e})),De("binding",e=>C.jsx(yjt,{...e})),De("database",e=>C.jsx(Njt,{...e})),De("unlink",e=>C.jsx(kMt,{...e})),De("api",e=>C.jsx(hjt,{...e})),De("expression",e=>C.jsx(Ujt,{...e})),De("chat",e=>C.jsx(E7t,{...e})),De("hash",e=>C.jsx(A7t,{...e})),De("drive",e=>C.jsx(bKe,{...e})),De("lock",e=>C.jsx(CKe,{...e})),De("start",e=>C.jsx(rjt,{...e})),De("stop",e=>C.jsx(njt,{...e})),De("restart",e=>C.jsx(sjt,{...e})),De("duplicate",e=>C.jsx(cjt,{...e})),De("connect",e=>C.jsx(y_t,{...e})),De("cog",e=>C.jsx(ujt,{...e})),De("sun",e=>C.jsx(ajt,{...e})),De("moon",e=>C.jsx(jMt,{...e})),De("stars",e=>C.jsx(zMt,{...e})),De("share",e=>C.jsx(gMt,{...e})),De("new-window",e=>C.jsx(ape,{...e})),De("paint",e=>C.jsx(ljt,{...e})),De("palette",e=>C.jsx(Z7t,{...e})),De("trending-up",e=>C.jsx(AMt,{...e})),De("trending-down",e=>C.jsx(IMt,{...e})),De("trending-level",e=>C.jsx(NMt,{...e})),De("sortasc",e=>C.jsx(RMt,{...e})),De("sortdesc",e=>C.jsx(PMt,{...e})),De("nosort",e=>C.jsx(LMt,{...e})),De("admonition_info",e=>C.jsx(GMt,{...e})),De("admonition_warning",e=>C.jsx(KMt,{...e})),De("admonition_danger",e=>C.jsx(QMt,{...e})),De("admonition_note",e=>C.jsx(JMt,{...e})),De("admonition_tip",e=>C.jsx(tzt,{...e})),De("arrowdown",e=>C.jsx(k7t,{...e})),De("square",e=>C.jsx(H7t,{...e})),De("squarehalf",e=>C.jsx(L7t,{...e})),De("squarefill",e=>C.jsx(P7t,{...e})),De("table-insert-row",e=>C.jsx(rzt,{...e})),De("table-delete-row",e=>C.jsx(nzt,{...e})),De("table-insert-column",e=>C.jsx(ozt,{...e})),De("table-delete-column",e=>C.jsx(izt,{...e})),De("eye",e=>C.jsx(W7t,{...e})),De("eye-off",e=>C.jsx(F7t,{...e}));function azt({children:e}){const t=m.useCallback(()=>Array.from(i5.keys()),[]),r=m.useCallback(u=>i5.get(u),[]),[n,o]=m.useState({}),i=m.useRef({}),a=m.useRef(null),l=m.useCallback(async u=>{if(i.current[u])return;const c=await(await fetch(u)).text(),d=document.createElement("div");d.style.display="none",d.innerHTML=c;const f={};for(let v=0;v<d.children[0].attributes.length;v++){const b=d.children[0].attributes[v];b.nodeName!=="class"&&(f[b.nodeName]=b.nodeValue)}Object.keys(f).forEach(v=>{d.children[0].removeAttribute(v)});const p=document.createElementNS("http://www.w3.org/2000/svg","symbol");p.innerHTML=d.children[0].innerHTML,p.id=u,p.setAttributeNS(null,"viewBox",f.viewBox),i.current[u]||(a.current.appendChild(p),i.current[u]=!0);const h={name:u,attributes:f};o(v=>({...v,[u]:h}))},[]),s=m.useMemo(()=>({getRegisteredIconNames:t,lookupIconRenderer:r,ensureCustomSvgIcon:l,customSvgs:n}),[n,l,t,r]);return C.jsxs(yK.Provider,{value:s,children:[e,C.jsx("svg",{style:{display:"none"},ref:a})]})}const lzt="0.9.83",Oke={capitalize:YLe,pluralize:a7e,defaultTo:vNe,toHashObject:l7e,findByField:s7e,distinct:u7e};function szt(e){return(e?new Date(e):new Date).toJSON()}function Ike(e){return new Date(e).toLocaleDateString()}function uzt(e){return new Date(e).toLocaleString()}function czt(e){return new Date(e).toLocaleTimeString()}function dzt(e){return gd(new Date(e),"H:m")}function fzt(e){return new Date(e).toLocaleDateString([],{month:"numeric",day:"2-digit"})}function Rke(e){return e?new Date(e):new Date}function mzt(e,t,r){return e?QBe(e,t,r):"-"}function pzt(e){return e?NT(new Date(e))?new Date(e).toLocaleTimeString():ABe(new Date(e))?`${ADe(new Date(e),new Date)}`:new Date(e).toLocaleString():"-"}function hzt(e){return e?NT(new Date(e))?"Today":fP(new Date(e))?"Yesterday":new Date(e).toLocaleDateString():"-"}function gzt(e){return NT(new Date(e))}function vzt(e){return fP(new Date(e))}function bzt(e){return IBe(new Date(e))}function xzt(e,t=!1){const r=new Date,n=new Date(e),o=r.getTime()-n.getTime();if(o<0)return Ike(e);const i=Math.floor(o/1e3),a=Math.floor(i/60),l=Math.floor(a/60),s=Math.floor(l/24),u=Math.floor(s/7),c=Math.floor(s/30),d=Math.floor(s/365),f={second:{singular:t?"s":"second",plural:t?"s":"seconds"},minute:{singular:t?"min":"minute",plural:t?"min":"minutes"},hour:{singular:t?"hr":"hour",plural:t?"hrs":"hours"},day:{singular:t?"d":"day",plural:t?"d":"days"},week:{singular:t?"wk":"week",plural:t?"wks":"weeks"},month:{singular:t?"mo":"month",plural:t?"mos":"months"},year:{singular:t?"y":"year",plural:t?"yrs":"years"}};if(i<10)return"now";if(i<60){const h=i===1?f.second.singular:f.second.plural;return`${i} ${h} ago`}if(a<60){const h=a===1?f.minute.singular:f.minute.plural;return`${a} ${h} ago`}if(NT(n)){const h=l===1?f.hour.singular:f.hour.plural;return`${l} ${h} ago`}if(fP(n))return"yesterday";if(s<7){const h=s===1?f.day.singular:f.day.plural;return`${s} ${h} ago`}if(u<4){const h=u===1?f.week.singular:f.week.plural;return`${u} ${h} ago`}if(c<12){const h=c===1?f.month.singular:f.month.plural;return`${c} ${h} ago`}const p=d===1?f.year.singular:f.year.plural;return`${d} ${p} ago`}const Pke={isoDateString:szt,formatDate:Ike,formatDateTime:uzt,formatTime:czt,formatTimeWithoutSeconds:dzt,formatDateWithoutYear:fzt,getDate:Rke,getDateUntilNow:mzt,smartFormatDateTime:pzt,smartFormatDate:hzt,isToday:gzt,isYesterday:vzt,isTomorrow:bzt,differenceInMinutes:k$e,isSameDay:AT,isThisYear:OBe,formatHumanElapsedTime:xzt};function yzt(e,t){if(e.length===0)return 0;const n=Lke(e)/e.length;return t?Number(n.toFixed(t)):n}function Lke(e){return e.reduce((t,r)=>t+r,0)}const wzt={avg:yzt,sum:Lke};var Bo=(e=>(e.LOADER_LOADED="ContainerActionKind:LOADER_LOADED",e.LOADER_IN_PROGRESS_CHANGED="ContainerActionKind:LOADER_IN_PROGRESS_CHANGED",e.LOADER_IS_REFETCHING_CHANGED="ContainerActionKind:LOADER_IS_REFETCHING_CHANGED",e.LOADER_ERROR="ContainerActionKind:LOADER_ERROR",e.EVENT_HANDLER_STARTED="ContainerActionKind:EVENT_HANDLER_STARTED",e.EVENT_HANDLER_COMPLETED="ContainerActionKind:EVENT_HANDLER_COMPLETED",e.EVENT_HANDLER_ERROR="ContainerActionKind:EVENT_HANDLER_ERROR",e.COMPONENT_STATE_CHANGED="ContainerActionKind:COMPONENT_STATE_CHANGED",e.STATE_PART_CHANGED="ContainerActionKind:STATE_PART_CHANGED",e))(Bo||{});function Czt(e={}){const t=Object.keys(e);function r(o,i=new Set){if(!t.includes(o))return[o];i.add(o);const a=[];return e[o].forEach(l=>{i.has(l)||(i.add(l),a.push(...r(l,i)))}),a}const n={};return t.forEach(o=>{n[o]=[...new Set(r(o))]}),n}const kzt=100;function _zt(e){const t=e.collectStateTransitions;let r,n;return fl((o,i)=>{const{uid:a}=i.payload;if(a===void 0&&i.type!==Bo.STATE_PART_CHANGED)return console.error("uid not provided for control component",{state:o,action:i}),o;if(t)try{r=ss(o[a])}catch(s){console.error("Error while cloning previous value",s)}switch(i.type){case Bo.LOADER_IN_PROGRESS_CHANGED:{o[a]={...o[a],inProgress:i.payload.inProgress},l(o[a]);break}case Bo.LOADER_IS_REFETCHING_CHANGED:{o[a]={...o[a],isRefetching:i.payload.isRefetching},l(o[a]);break}case Bo.LOADER_LOADED:{const{data:s,pageInfo:u}=i.payload;o[a]={value:s,byId:Array.isArray(s)?MNe(s,c=>c.$id):void 0,inProgress:!1,loaded:s!==void 0,pageInfo:u},l(o[a]);break}case Bo.LOADER_ERROR:{const{error:s}=i.payload;o[a]={...o[a],error:s,inProgress:!1,loaded:!0},l(o[a]);break}case Bo.EVENT_HANDLER_STARTED:{const{eventName:s}=i.payload,u=`${s}InProgress`;o[a]={...o[a],[u]:!0},l(o[a]);break}case Bo.EVENT_HANDLER_COMPLETED:{const{eventName:s}=i.payload,u=`${s}InProgress`;o[a]={...o[a],[u]:!1},l(o[a]);break}case Bo.EVENT_HANDLER_ERROR:{const{eventName:s}=i.payload,u=`${s}InProgress`;o[a]={...o[a],[u]:!1},l(o[a]);break}case Bo.COMPONENT_STATE_CHANGED:{const{state:s}=i.payload;o[a]={...o[a],...s},l(o[a]);break}case Bo.STATE_PART_CHANGED:{const{path:s,value:u,target:c,actionType:d,localVars:f}=i.payload;if(d==="unset")p$e(o,s);else{let p=f;a$e(o,s,u,(h,v,b)=>{if(p=p==null?void 0:p[v],h===void 0&&p===void 0&&as(c))return Object(h)}),l(o)}break}default:throw new Error}if(t){const s={action:i.type,uid:a,prevState:r,nextState:n};e.stateTransitions&&(e.stateTransitions.length>=kzt&&e.stateTransitions.shift(),e.stateTransitions.push(s))}function l(s){if(t)try{n=ss(s)}catch(u){console.error("Error while cloning next value",u)}}})}function Hke(e,t,r=[]){const n=i=>r.concat(i).join("."),o=new WeakMap;return new Proxy(e,{get:function(i,a,l){const s=Reflect.get(i,a,l);return s&&!s._ARROW_EXPR_&&!Object.isFrozen(s)&&typeof s=="object"&&["Array","Object"].includes(s.constructor.name)?(o.has(s)||o.set(s,Hke(s,t,r.concat(a))),o.get(s)):s},set:function(i,a,l,s){return t({action:"set",path:n(a),pathArray:r.concat(a),target:i,newValue:l,previousValue:Reflect.get(i,a,s)}),Reflect.set(i,a,l,s)},deleteProperty:function(i,a){return t({action:"unset",path:n(a),pathArray:r.concat(a),target:i}),Reflect.deleteProperty(i,a)}})}function Tzt(e,t,r){const n=sf.get(e);return n?(t.unshift(r),n):e}const sf=new Map;sf.set(Array.prototype.filter,Ezt),sf.set(Array.prototype.forEach,Azt),sf.set(Array.prototype.map,Ozt),sf.set(Array.prototype.every,Izt),sf.set(Array.prototype.findIndex,Pzt),sf.set(Array.prototype.find,Rzt),sf.set(Array.prototype.flatMap,Lzt),sf.set(Array.prototype.some,Szt);async function Szt(e,t){const r=await Promise.all(e.map(t));return e.some((n,o)=>r[o])}async function Ezt(e,t){const r=await Promise.all(e.map(t));return e.filter((n,o)=>r[o])}async function Azt(e,t){for(let r=0;r<e.length;r++)await t(e[r],r,e)}async function Ozt(e,t){const r=[];for(let n=0;n<e.length;n++)r.push(await t(e[n],n,e));return r}async function Izt(e,t){const r=await Promise.all(e.map(t));return r.every((n,o)=>r[o])}async function Rzt(e,t){const r=await Promise.all(e.map(t));return e.find((n,o)=>r[o])}async function Pzt(e,t){const r=await Promise.all(e.map(t));return e.findIndex((n,o)=>r[o])}async function Lzt(e,t){const r=await Promise.all(e.map(t));return e.flatMap((n,o)=>r[o])}async function rl(e,t,r){const n=[];return nw(t),r??(r=t.mainThread),await zj(n,e,t,r??t.mainThread)}async function Hzt(e,t,r,...n){if(e.type!==En)throw new Error("executeArrowExpression expects an 'ArrowExpression' object.");return await(await a5(zj,e))(e.args,t,r??t.mainThread,...n)}async function zj(e,t,r,n){r.options||(r.options={defaultToOptionalMemberAccess:!0});const o=zj;try{switch(t.type){case o3:return qzt(o,e,t,r,n);case $n:return AJ(e,t,n);case Jt:return OJ(e,t,r,n);case vs:return await Nzt(o,e,t,r,n);case Sd:return await $zt(o,e,t,r,n);case pu:return await Dzt(o,e,t,r,n);case hu:return await Bzt(o,e,t,r,n);case gu:return await jzt(o,e,t,r,n);case Yy:return await Mzt(o,e,t,r,n);case ci:return await zzt(o,e,t,r,n);case Ky:return await Fzt(o,e,t,r,n);case Ed:return await Wzt(o,e,t,r,n);case sh:case Xy:return await Vzt(o,e,t,r,n);case gb:return await Uzt(o,e,t,r,n);case En:return NJ(e,t,n);case di:throw new Error("Cannot use spread expression (...) with the current intermediate value.");default:throw new Error(`Unknown expression tree node: ${t.type}`)}}catch(i){throw i}}async function Nzt(e,t,r,n,o){return await e(t,r.obj,n,o),await Ta(r.obj,o),x3(t,r,n,o)}async function $zt(e,t,r,n,o){return await e(t,r.obj,n,o),await Ta(r.obj,o),await e(t,r.member,n,o),t.pop(),await Ta(r.member,o),IJ(t,r,n,o)}async function Dzt(e,t,r,n,o){if(!r.exprs||r.exprs.length===0)throw new Error("Missing expression sequence");const i=r.exprs.map(async l=>{const s=await e(t,l,n,o);return An(l,{value:s},o),t.pop(),s}),a=i[i.length-1];return t.push(a),a}async function Bzt(e,t,r,n,o){const i=[];for(const a of r.items)if(a.type===di){const l=await e(t,a.expr,n,o);if(t.pop(),!Array.isArray(l))throw new Error("Spread operator within an array literal expects an array operand.");i.push(...l)}else i.push(await e(t,a,n,o)),t.pop(),t.push(i);return An(r,{value:i},o),t.push(i),i}async function jzt(e,t,r,n,o){const i={};for(const a of r.props){if(!Array.isArray(a)){const s=await e(t,a.expr,n,o);if(t.pop(),Array.isArray(s))for(let u=0;u<s.length;u++)i[u]=s[u];else if(typeof s=="object")for(const[u,c]of Object.entries(s))i[u]=c;continue}let l;switch(a[0].type){case $n:l=a[0].value;break;case Jt:l=a[0].name;break;default:l=await e(t,a[0],n,o),t.pop();break}i[l]=await e(t,a[1],n,o),t.pop()}return An(r,{value:i},o),t.push(i),i}async function Mzt(e,t,r,n,o){return await e(t,r.expr,n,o),t.pop(),await Ta(r.expr,o),RJ(r,t,n,o)}async function zzt(e,t,r,n,o){await e(t,r.left,n,o),t.pop();const i=await Ta(r.left,o);return r.op==="&&"&&!i?(An(r,{value:i},o),i):r.op==="||"&&i?(An(r,{value:i},o),i):(await e(t,r.right,n,o),t.pop(),await Ta(r.right,o),PJ(r,t,n,o))}async function Fzt(e,t,r,n,o){await e(t,r.cond,n,o),t.pop();const i=await Ta(r.cond,o),a=await e(t,i?r.thenE:r.elseE,n,o);return An(r,{value:a},o),a}async function Wzt(e,t,r,n,o){const i=r.leftValue,a=em(i,n,o),l=a&&a.type!=="block";l&&n.onWillUpdate&&n.onWillUpdate(a,a.name,"assignment"),await e(t,i,n,o),t.pop(),await Ta(i,o),await e(t,r.expr,n,o),t.pop(),await Ta(r.expr,o);const s=LJ(t,r,n,o);return l&&n.onDidUpdate&&n.onDidUpdate(a,a.name,"assignment"),s}async function Vzt(e,t,r,n,o){const i=em(r.expr,n,o),a=i&&i.type!=="block";a&&n.onWillUpdate&&n.onWillUpdate(i,i.name,"pre-post"),await e(t,r.expr,n,o),t.pop(),await Ta(r.expr,o);const l=HJ(t,r,n,o);return a&&n.onDidUpdate&&n.onDidUpdate(i,i.name,"pre-post"),l}async function Uzt(e,t,r,n,o){var h,v;let i,a=null;if(r.obj.type===vs){const b=await e(t,r.obj.obj,n,o);await Ta(r.obj.obj,o),i=x3(t,r.obj,n,o),r.obj.obj.type===Jt&&(b!=null&&b._SUPPORT_IMPLICIT_CONTEXT)&&(a=b)}else await e(t,r.obj,n,o),i=await Ta(r.obj,o);t.pop();const l=[];if(i!=null&&i._ARROW_EXPR_)l.push(i.args,n,o,...r.arguments.map(b=>({...b,_EXPRESSION_:!0}))),i=await a5(e,i);else if(r.obj.type===En)l.push(r.obj.args.map(b=>b.name),n,o,...r.arguments.map(b=>({...b,_EXPRESSION_:!0})));else{for(let b=0;b<r.arguments.length;b++){const y=r.arguments[b];if(y.type===di){await e([],y.expr,n,o);const w=await Ta(y.expr,o);if(!Array.isArray(w))throw new Error("Spread operator within a function invocation expects an array operand.");l.push(...w)}else if(y.type===En){const w=await a5(e,y),k=async(...E)=>w(y.args,n,o,...E);l.push(k)}else{await e([],y,n,o);const w=await Ta(y,o);if(w!=null&&w._ARROW_EXPR_){const k=await a5(e,w),E=(..._)=>k(w.args,n,o,..._);l.push(E)}else l.push(w)}}if(a)if(n.implicitContextGetter){const b=n.implicitContextGetter(a);l.unshift(b)}else throw new Error("Cannot use implicitContextGetter, it is undefined")}const s=SJ(i);if(s.banned)throw new Error(`Function ${((h=s.func)==null?void 0:h.name)??"unknown"} is not allowed to call. ${(s==null?void 0:s.help)??""}`);const u=t.length>0?t.pop():n.localContext;i=Tzt(i,l,u);const c=em(r.obj,n,o),d=c&&c.type!=="block";d&&n.onWillUpdate&&n.onWillUpdate(c,c.name,"function-call");const f=(v=n.options)!=null&&v.defaultToOptionalMemberAccess?i==null?void 0:i.call(u,...l):i.call(u,...l);let p=await Nke(f);return d&&n.onDidUpdate&&n.onDidUpdate(c,c.name,"function-call"),An(r,{value:p},o),t.push(p),p}async function a5(e,t){return async(...r)=>{const n=r[1],o=r[2],i={parent:o,childThreads:[],blocks:[{vars:{}}],loops:[],breakLabelValue:-1,closures:t.closureContext};if(o.childThreads.push(i),t.name){const f={vars:{}};i.blocks??(i.blocks=[]),i.blocks.push(f),f.vars[t.name]=t,f.constVars=new Set([t.name])}const a={vars:{}};i.blocks??(i.blocks=[]),i.blocks.push(a);const l=r[0];let s=!1;for(let f=0;f<l.length;f++){const p=l[f];let h;switch(p.type){case Jt:{h={type:El,id:p.name};break}case uh:{h={type:El,id:p.id,aDestr:p.aDestr,oDestr:p.oDestr};break}case di:{s=!0,h={type:El,id:p.expr.name};break}default:throw new Error("Unexpected arrow argument specification")}if(h)if(s){const v=r.slice(f+3);let b=[];for(const y of v)y!=null&&y._EXPRESSION_?b.push(await e([],y,n,o)):b.push(y);await l5(a,n,o,[h],!1,!0,b)}else{let v=r[f+3];v!=null&&v._EXPRESSION_&&(v=await e([],v,n,o)),await l5(a,n,o,[h],!1,!0,v)}}let u,c;switch(t.statement.type){case hs:c=[];break;case gs:c=[{type:Kf,expr:t.statement.expr}];break;case ps:c=t.statement.stmts;break;default:throw new Error(`Arrow expression with a body of '${t.statement.type}' is not supported yet.`)}await Fj(c,n,i),u=i.returnValue;const d=o.childThreads.indexOf(i);if(d<0)throw new Error("Cannot find thread to remove.");return o.childThreads.splice(d,1),i.blocks.pop(),u}}async function Nke(e){const t=new Map;return r(e);async function r(n){if(n==null)return n;const o=t.get(n);if(o)return o;if(EJ(n)){const i=await n;return t.set(n,i),r(i)}if(t.set(n,n),Array.isArray(n)){for(let i=0;i<n.length;i++){const a=await r(n[i]);n[i]!==a&&n.splice(i,1,a)}return n}if(as(n)){for(const i of Object.keys(n)){let a=await r(n[i]);n[i]!==a&&(n[i]=a)}return n}return n}}async function qzt(e,t,r,n,o){const i=new Array(r.segments.length);for(let a=0;a<r.segments.length;++a){await e(t,r.segments[a],n,o),t.pop();const l=await Ta(r.segments[a],o);i[a]=l}return DJ(i)}async function Ta(e,t){const r=vu(e,t),n=await Nke(r==null?void 0:r.value);return An(e,{...r,value:n},t),n}async function Fj(e,t,r){var a,l,s;r||(r=nw(t)),C3(r,e);const n=new BJ;n.push(dn(Id(e)));const o={processedStatements:0,maxQueueLength:n.length,unshiftedItems:0,clearToLabels:0,maxBlocks:0,maxLoops:0};let i=new Date().getTime();for(;n.length>0&&!((a=t.cancellationToken)!=null&&a.cancelled);){if(t.timeout&&new Date().getTime()-i>t.timeout)throw new Error("Script execution timeout");const u=n.dequeue();r.breakLabelValue=n.length>0?n.peek().label:-1;let c;try{await((l=t==null?void 0:t.onStatementStarted)==null?void 0:l.call(t,t,u.statement)),c=await Gzt(u.statement,(u==null?void 0:u.execInfo)??{},t,r)}catch(d){if(r.tryBlocks&&r.tryBlocks.length>0){const f=r.tryBlocks[r.tryBlocks.length-1];f.errorToThrow=d,f.errorSource=f.processingPhase,f.processingPhase="error",c={clearToLabel:f.tryLabel}}else d instanceof ac?Ev(d):Ev(new Vx(d),d)}c&&(c.toUnshift&&(n.unshift(c.toUnshift),o.unshiftedItems+=c.toUnshift.length),c.clearToLabel!==void 0&&(n.clearToLabel(c.clearToLabel),o.clearToLabels++)),await((s=t==null?void 0:t.onStatementCompleted)==null?void 0:s.call(t,t,u.statement)),n.length>o.maxQueueLength&&(o.maxQueueLength=n.length),r.blocks&&r.blocks.length>o.maxBlocks&&(o.maxBlocks=r.blocks.length),r.loops&&r.loops.length>o.maxLoops&&(o.maxLoops=r.loops.length),o.processedStatements++}return o}async function Gzt(e,t,r,n){let o=[],i;switch(e.type){case lh:break;case My:if(n!==r.mainThread)throw new Error("'var' declarations are not allowed within functions");break;case hs:break;case ps:if(e.stmts.length===0)break;n.blocks??(n.blocks=[]),n.blocks.push({vars:{}}),C3(n,e.stmts),o=dn([...Id(e.stmts),rw()]);break;case gs:const a=await rl(e.expr,r,n);n.blocks&&n.blocks.length!==0&&(n.blocks[n.blocks.length-1].returnValue=a);break;case sa:const l=await Hzt(e.expr,r,n,...r.eventArgs??[]);n.blocks&&n.blocks.length!==0&&(n.blocks[n.blocks.length-1].returnValue=l);break;case By:{const u=fi(n);if(!u)throw new Error("Missing block scope");await l5(u,r,n,e.decls);break}case jy:{const u=fi(n);if(!u)throw new Error("Missing block scope");await l5(u,r,n,e.decls,!0);break}case zy:!!await rl(e.cond,r,n)?o=y3(e.thenB):e.elseB&&(o=y3(e.elseB));break;case Kf:{if(fi(n)===void 0)throw new Error("Return requires a block scope");if(n.returnValue=e.expr?await rl(e.expr,r,n):void 0,(n.tryBlocks??[]).length>0){const c=n.tryBlocks[0];c.exitType="return",c.processingPhase!=="postFinally"&&n.blocks.pop(),i=tm(n).tryLabel}else i=-1;break}case Fy:{let u=t.guard?Ko(n):xs(n);!!await rl(e.cond,r,n)?o=Cb(u,e,n.breakLabelValue):Ao(n);break}case Wy:{if(!t.guard){o=Cb(xs(n),e,n.breakLabelValue);break}!!await rl(e.cond,r,n)?o=Cb(Ko(n),e,n.breakLabelValue):Ao(n);break}case n3:{if(!n.loops||n.loops.length===0)throw new Error("Missing loop scope");let u;for(;n.loops.length>0&&(u=Ko(n),!!u.isSwitch);)n.loops.pop();if(!u)throw new Error("Missing loop scope");if(u.tryBlockDepth>=0&&u.tryBlockDepth<(n.tryBlocks??[]).length){for(let d=u.tryBlockDepth;d<n.tryBlocks.length;d++)n.tryBlocks[u.tryBlockDepth].exitType="continue";i=tm(n).tryLabel}else i=u.continueLabel,Ao(n,!1);break}case r3:{const u=Ko(n);if(u===void 0)throw new Error("Missing loop scope");if(u.isSwitch){i=u.breakLabel;break}if(u.tryBlockDepth>=0&&u.tryBlockDepth<(n.tryBlocks??[]).length){for(let d=u.tryBlockDepth;d<n.tryBlocks.length;d++)n.tryBlocks[u.tryBlockDepth].exitType="break";i=tm(n).tryLabel}else i=u.breakLabel,Ao(n);break}case Vy:if(t.guard)if(!e.cond||await rl(e.cond,r,n)){const u=Ko(n);if(e.upd){const c={statement:{type:gs,nodeId:Zf(),expr:e.upd}};o=dn([{statement:e.body},c,{statement:e,execInfo:t}])}else o=dn([{statement:e.body},{statement:e,execInfo:t}]);u.breakLabel=n.breakLabelValue??-1,u.continueLabel=o[1].label}else Ao(n);else{xs(n,1),n.blocks??(n.blocks=[]),n.blocks.push({vars:{}});const u=Rd(e);e.init?o=dn([{statement:e.init},u]):o=dn([u])}break;case Td:if(t.guard){if(t.keyIndex===void 0||t.keys===void 0)throw new Error("Keys information expected in for..in loop");if(t.keyIndex<t.keys.length){const u=t.keys[t.keyIndex++];switch(e.varB){case"none":{const d={type:Ed,leftValue:{type:Jt,name:e.id.name},op:"=",expr:{type:$n,value:u}};await rl(d,r,n);break}case"const":case"let":{const d=fi(n);if(!d)throw new Error("Missing block scope");d.vars[e.id.name]=u,e.varB==="const"&&(d.constVars??(d.constVars=new Set),d.constVars.add(e.id.name))}break}const c=Ko(n);o=dn([{statement:e.body},{statement:e,execInfo:t}]),c.breakLabel=n.breakLabelValue??-1,c.continueLabel=o[1].label}else Ao(n)}else{const u=await rl(e.expr,r,n);if(u==null)break;xs(n,1),n.blocks??(n.blocks=[]),n.blocks.push({vars:{}}),o=dn([{statement:e,execInfo:{guard:!0,keys:Object.keys(u),keyIndex:0}}])}break;case Xf:if(t.guard){if(t.iterator===void 0)throw new Error("Iterator expected in for..of loop");const u=t.iterator.next();if(u.done){Ao(n);break}const c=u.value;switch(e.varB){case"none":{const f={type:Ed,leftValue:{type:Jt,name:e.id.name},op:"=",expr:{type:$n,value:c}};await rl(f,r,n);break}case"const":case"let":{const f=fi(n);if(!f)throw new Error("Missing block scope");f.vars[e.id.name]=c,e.varB==="const"&&(f.constVars??(f.constVars=new Set),f.constVars.add(e.id.name))}break}const d=Ko(n);o=dn([{statement:e.body},{statement:e,execInfo:t}]),d.breakLabel=n.breakLabelValue??-1,d.continueLabel=o[1].label}else{const u=await rl(e.expr,r,n);if(u==null||typeof u[Symbol.iterator]!="function")throw new Error("Object in for..of is not iterable");xs(n,1),n.blocks??(n.blocks=[]),n.blocks.push({vars:{}}),o=dn([{statement:e,execInfo:{guard:!0,iterator:u[Symbol.iterator]()}}])}break;case Uy:throw new ac(await rl(e.expr,r,n));case qy:{if(!t.guard){o=zJ(n,MJ(n,e));break}const u=tm(n);switch(u.processingPhase){case"error":switch(u.errorSource){case"try":if(n.blocks.pop(),e.catchB){if(u.statement.catchV){const d=fi(n);d.vars[u.statement.catchV.name]=u.errorToThrow instanceof ac?u.errorToThrow.errorObject:u.errorToThrow}delete u.errorToThrow,u.processingPhase="catch",o=FJ(n,u)}else u.statement.finallyB&&(u.processingPhase="finally",o=rm(n,u));break;case"catch":n.blocks.pop(),u.processingPhase="finally",o=rm(n,u);break;case"finally":n.blocks.pop(),u.processingPhase="postFinally",o=w3(u);break}break;case"try":u.processingPhase="finally",e.finallyB&&(o=rm(n,u));break;case"catch":u.processingPhase="finally",e.finallyB&&(o=rm(n,u));break;case"finally":u.processingPhase="postFinally",o=w3(u);break;case"postFinally":const c=n.tryBlocks.pop();switch(c.exitType){case"break":{const d=Ko(n);if(d===void 0)throw new Error("Missing loop scope");Ao(n),i=d.breakLabel;break}case"continue":{const d=Ko(n);if(d===void 0)throw new Error("Missing loop scope");i=d.continueLabel,Ao(n,!1);break}case"return":i=-1;break}if(c.errorToThrow)throw c.errorToThrow;break}break}case Gy:{if(t.guard)Ao(n);else{let u=xs(n);u.isSwitch=!0,n.blocks.push({vars:{}});const c=await rl(e.expr,r,n);let d=-1;for(let p=0;p<e.cases.length;p++){const h=e.cases[p];if(h.caseE===void 0){d=p;break}if(await rl(h.caseE,r,n)===c){d=p;break}}const f=[];if(d>=0)for(let p=d;p<e.cases.length;p++)f.push(...e.cases[p].stmts);o=dn([...Id(f),Rd(e)]),u.breakLabel=o[o.length-1].label}break}}return t.removeBlockScope&&n.blocks&&n.blocks.length>0&&n.blocks.pop(),{toUnshift:o,clearToLabel:i}}async function l5(e,t,r,n,o=!1,i=!1,a=void 0){for(let d=0;d<n.length;d++){let f;const p=n[d];i?f=a:p.expr&&(f=await rl(p.expr,t,r)),l(e,p,f,o)}function l(d,f,p,h){if(f.id)s(d,f.id,p,h);else if(f.aDestr)u(d,f.aDestr,p,h);else if(f.oDestr)c(d,f.oDestr,p,h);else throw new Error("Unknown declaration specifier")}function s(d,f,p,h){if(d.vars[f])throw new Error(`Variable ${f} is already declared in the current scope.`);d.vars[f]=p,h&&(d.constVars??(d.constVars=new Set),d.constVars.add(f))}function u(d,f,p,h){for(let v=0;v<f.length;v++){const b=f[v],y=p==null?void 0:p[v];b.id?s(d,b.id,y,h):b.aDestr?u(d,b.aDestr,y,h):b.oDestr&&c(d,b.oDestr,y,h)}}function c(d,f,p,h){for(let v=0;v<f.length;v++){const b=f[v],y=p==null?void 0:p[b.id];b.aDestr?u(d,b.aDestr,y,h):b.oDestr?c(d,b.oDestr,y,h):s(d,b.alias??b.id,y,h)}}}function $ke(e){const t=new Jf(e);let r=null;try{r=t.parseStatements()}catch(n){if(t.errors.length>0){const o=t.errors[0];Ev(new Wx(`${o.code}(${o.line}, ${o.column}): ${t.errors[0].text}`,e,o.position))}else throw n}if(!t.isEof){const n=t.getTail();Ev(new Wx("Invalid tail found",e,e.length-n.length+1))}return r}function Wj(e,t){const r=(e==null?void 0:e.length)??0;if(r===0)return[{type:sa,expr:{type:En,args:[],statement:{type:hs}}}];if(r===1){const i=e[0];if(i.type===gs){if(t){if(i.expr.type===Jt)return[o(i.expr)];if(n(i.expr))return[o(i.expr)]}return i.expr.type===En?[{type:sa,expr:i.expr}]:[{type:sa,expr:{type:En,args:[],statement:e[0]}}]}if(i.type===Kf)return[{type:sa,expr:{type:En,args:[],statement:{type:ps,stmts:[i]}}}];if(i.type===ps)return i.stmts[0].type===gs&&i.stmts[0].expr.type===En?[{type:sa,expr:i.stmts[0].expr}]:[{type:sa,expr:{type:En,args:[],statement:e[0]}}]}if(r>1)return[{type:sa,expr:{type:En,args:[],statement:{type:ps,stmts:e}}}];return e;function n(i){return(i.type===vs||i.type===Sd&&i.member.type===$n)&&(n(i.obj)||i.obj.type===Jt)}function o(i){const a=t.eventArgs?t.eventArgs.map((s,u)=>({type:Jt,name:`__arg@@#__${u}__`})):[];t.eventArgs&&t.eventArgs.forEach((s,u)=>{t.localContext[`__arg@@#__${u}__`]=s});const l={type:En,args:a,statement:{type:gs,expr:{type:gb,obj:i,arguments:[...a]}}};return{type:sa,expr:l}}}async function Yzt(e,t,r){const n=Wj($ke(e));return await Fj(n,t,r)}function Kzt({node:e,state:t,dispatch:r,lookupAction:n,lookupSyncCallback:o,registerComponentApi:i,onUnmount:a,appContext:l,memoedVarsRef:s}){const u=L0(),c=m.useMemo(()=>Symbol(e.uid),[e.uid]);m.useEffect(()=>()=>{a(c)},[a,c]);const d=m.useCallback(_=>{i(c,_)},[i,c]),f=m.useCallback((_,S)=>n(_,c,S),[n,c]),p=KT(t),h=m.useMemo(()=>Fre(t,l,p,s),[l,s,p,t]),v=m.useCallback(_=>{if(_)return o(h(_),c)},[o,c,h]),b=m.useCallback(_=>{r(Xzt(c,_))},[r,c]),y=m.useCallback(_=>{r(Qzt(c,_))},[r,c]),w=m.useCallback((_,S)=>{r(Zzt(c,_,S))},[r,c]),k=m.useCallback(_=>{r(Jzt(c,_))},[r,c]),E=u.lookupLoaderRenderer(e.type);return E?E({loader:e,state:t,dispatch:r,loaderInProgressChanged:b,loaderIsRefetchingChanged:y,loaderLoaded:w,loaderError:k,extractValue:h,registerComponentApi:d,lookupAction:f,lookupSyncCallback:v}):(console.error(`Loader ${e.type} is not available. Did you forget to register it in the loaderRegistry?`),null)}function Xzt(e,t){return{type:Bo.LOADER_IN_PROGRESS_CHANGED,payload:{uid:e,inProgress:t}}}function Qzt(e,t){return{type:Bo.LOADER_IS_REFETCHING_CHANGED,payload:{uid:e,isRefetching:t}}}function Zzt(e,t,r){return{type:Bo.LOADER_LOADED,payload:{uid:e,data:t,pageInfo:r}}}function Jzt(e,t){return{type:Bo.LOADER_ERROR,payload:{uid:e,error:t}}}const eFt=m.memo(m.forwardRef(function({node:t,componentState:r,dispatch:n,parentDispatch:o,resolvedKey:i,version:a,setVersion:l,statePartChanged:s,registerComponentApi:u,parentRegisterComponentApi:c,layoutContextRef:d,parentRenderContext:f,memoedVarsRef:p,isImplicit:h,uidInfoRef:v,children:b},y){var J;const{apiBoundContainer:w}=t,k=h?o:n,E=h?c:u,_=Eo(),{getThemeVar:S}=zr(),A=eb(),O=Cl(),I=m.useRef({}),L=m.useRef(r);L.current=r;const P=m.useRef({}),[H,j]=m.useTransition(),W=m.useRef(!0),B=m.useRef(new Map);Sn(()=>{for(const X of B.current.values())X()},[a]),m.useEffect(()=>{W.current=!0;const X=B.current;return()=>{W.current=!1;for(const te of X.values())te()}},[]);const{apiInstance:G}=O2(),z=zt(async(X,te,ie,...de)=>{var _e,Ve,Ee;const be=()=>te.description!==void 0&&(ie==null?void 0:ie.eventName)!==void 0;let xe=[];const Ie=()=>{xe.length=0;const je=ss({...L.current,...(ie==null?void 0:ie.context)||{}});return je.$this=L.current[te],Hke(je,Ce=>{var He;const Te=(He=Ce.pathArray)==null?void 0:He[0];if(Te!=null&&Te.startsWith("$"))throw new Error("Cannot update a read-only variable");xe.push(Ce)})},Ne={..._,getThemeVar:S},Se={appContext:Ne,eventArgs:de,localContext:Ie(),implicitContextGetter:()=>({uid:te,state:L.current,getCurrentState:()=>L.current,dispatch:k,appContext:Ne,apiInstance:G,navigate:A,location:O,lookupAction:(je,Ce,Te={})=>q(je,Ce,{...Te,ephemeral:!0})}),options:{defaultToOptionalMemberAccess:typeof((_e=_.appGlobals)==null?void 0:_e.defaultToOptionalMemberAccess)=="boolean"?_.appGlobals.defaultToOptionalMemberAccess:!0}};try{let je;if(typeof X=="string")P.current[X]||(P.current[X]=Wj($ke(X),Se)),je=P.current[X];else if(Dke(X)){const Te=X.parseId.toString();P.current[Te]||(P.current[Te]=Wj(X.statements,Se)),je=P.current[Te]}else je=[{type:sa,expr:X}];if(!(je!=null&&je.length))return;be()&&k({type:Bo.EVENT_HANDLER_STARTED,payload:{uid:te.description,eventName:ie.eventName}});let Ce=0;if(Se.onStatementCompleted=async Te=>{if(xe.length){Ce=0,xe.forEach(It=>{s(It.pathArray,ss(It.newValue),It.target,It.action)});let He=null;const st=new Promise(It=>{He=()=>{It(null)}}),ut=iy();B.current.set(ut,He),j(()=>{l(It=>It+1)}),W.current?await st:await zv(0),B.current.delete(ut),xe=[]}else Ce++,Ce>100&&(Ce=0,await zv(0));Te.localContext=Ie()},await Fj(je,Se),be()&&k({type:Bo.EVENT_HANDLER_COMPLETED,payload:{uid:te.description,eventName:ie.eventName}}),(Ee=(Ve=Se.mainThread)==null?void 0:Ve.blocks)!=null&&Ee.length)return Se.mainThread.blocks[Se.mainThread.blocks.length-1].returnValue}catch(je){throw(ie==null?void 0:ie.signError)!==!1&&_.signError(je),be()&&k({type:Bo.EVENT_HANDLER_ERROR,payload:{uid:te.description,eventName:ie.eventName,error:je}}),je}}),F=m.useCallback((X,...te)=>{var de,be;const ie={localContext:ss(L.current),appContext:_,eventArgs:te};try{if(TL([{type:sa,expr:X}],ie),(be=(de=ie.mainThread)==null?void 0:de.blocks)!=null&&be.length)return ie.mainThread.blocks[ie.mainThread.blocks.length-1].returnValue}catch(xe){throw console.error(xe),xe}},[_]),V=zt((X,te,ie)=>{var xe;if(Array.isArray(X))throw new Error("Multiple event handlers are not supported");let de,be;if(typeof X=="string")de=`${ie==null?void 0:ie.eventName};${X}`,be=(...Ie)=>z(X,te,ie,...ss(Ie));else if(Dke(X))de=`${ie==null?void 0:ie.eventName};${X.parseId}`,be=(...Ie)=>z(X,te,ie,...ss(Ie));else if(rFt(X))de=`${ie==null?void 0:ie.eventName};${X.statement.nodeId}`,be=(...Ie)=>z(X,te,ie,...ss(Ie));else if(X.type)de=`${ie==null?void 0:ie.eventName};${JSON.stringify(X)}`,be=(...Ie)=>z(X,te,ie,...ss(Ie));else throw new Error("Invalid event handler");return ie!=null&&ie.ephemeral||ie!=null&&ie.context?be:((xe=I.current[te])!=null&&xe[de]||(I.current[te]=I.current[te]||{},I.current[te][de]=be),I.current[te][de])}),N=m.useCallback((X,te)=>{var de;const ie=`sync-callback-${X.nodeId}`;return(de=I.current[te])!=null&&de[ie]||(I.current[te]=I.current[te]||{},I.current[te][ie]=ww(be=>(...xe)=>F(be,...xe))),I.current[te][ie](X)},[F]),Y=m.useCallback((X,te)=>{if(X){if(typeof X=="function")return X;if(X){if(typeof X=="function")return X;if(!X._ARROW_EXPR_)throw new Error("Only arrow expression allowed in sync callback");return N(X,te)}}},[N]),q=m.useCallback((X,te,ie)=>{let de=X;if(!X&&te.description&&(ie!=null&&ie.eventName)){const be=`${te.description}_on${ay(ie==null?void 0:ie.eventName)}`;r[be]&&r[be]._ARROW_EXPR_&&(de=r[be])}if(de)return typeof de=="function"?de:V(de,te,ie)},[r,V]),M=m.useRef(!1);m.useEffect(()=>{if(!t.api||!t.containerUid||M.current)return;M.current=!0;const X={},te=Symbol("$self");Object.entries(t.api).forEach(([ie,de])=>{X[ie]=q(de,te)}),h||E(te,X),c(t.containerUid,X)},[q,t.api,t.containerUid,t.uid,h,c,E]);const K=zt(X=>{delete I.current[X]}),ee=m.useCallback((X,te,ie,de,be)=>{if(typeof X=="string")throw Error("should be resolved for now");const xe=un(X)?X:[X];if(!xe||!xe.length)return null;const Ie=xe.length>1,Ne=xe.map((Se,_e)=>{if(!Se)return;const Ve=Vke({node:Se,state:r,dispatch:k,appContext:_,lookupAction:q,lookupSyncCallback:Y,registerComponentApi:E,renderChild:ee,statePartChanged:s,layoutContext:te,parentRenderContext:ie,memoedVarsRef:p,cleanup:K,uidInfoRef:de});if(Ve===void 0)return;let Ee=Ve;const je=`${_e}_${Se.uid}`;return Ie&&(Z.isValidElement(Ve)?Ee=Z.cloneElement(Ve,{key:je}):Ee=C.jsx(m.Fragment,{children:Ve},je)),Ee});return Ne.length===1?be&&Ne[0]&&m.isValidElement(Ne[0])?Z.cloneElement(Ne[0],{ref:Un(be,Ne[0].ref)}):Ne[0]:Ne},[r,k,_,q,Y,E,s,p,K]);(J=t.props)!=null&&J.debug&&console.log(`Container: ${i}`,{componentState:r,node:t});const ae={},oe=m.useRef({}),ue=t.uses===void 0?v:oe,le=ee(t.children,d==null?void 0:d.current,f,ue,y),pe=tFt({uidInfo:ae,uidInfoRef:ue,loaders:t.loaders,componentState:r,memoedVarsRef:p,dispatch:w?n:k,registerComponentApi:w?u:E,appContext:_,lookupAction:q,lookupSyncCallback:Y,cleanup:K}),fe=C.jsxs(C.Fragment,{children:[pe,b&&m.isValidElement(le)?m.cloneElement(le,null,b):le]});return C.jsx(m.Fragment,{children:fe},t.uid?`${i}>${$t(r,t.uid,_,!0)}`:void 0)}));function tFt({uidInfo:e,uidInfoRef:t,loaders:r=Ar,componentState:n,dispatch:o,appContext:i,registerComponentApi:a,lookupAction:l,lookupSyncCallback:s,cleanup:u,memoedVarsRef:c}){return r.map(f=>{if(f!=null&&f.uid){if(e[f.uid])throw new Error(`Another ${e[f.uid]} definition in this container already uses the uid '${f.uid}'`);e[f.uid]="loader",t.current[f.uid]={type:"loader",value:"loaderValue",uid:f.uid}}const p=d({loader:f,componentState:n,dispatch:o,appContext:i,registerComponentApi:a,lookupAction:l,lookupSyncCallback:s,memoedVarsRef:c,cleanup:u});if(p!==void 0)return C.jsx(m.Fragment,{children:p},f.uid)});function d({loader:f,componentState:p,dispatch:h,appContext:v,registerComponentApi:b,lookupAction:y,lookupSyncCallback:w,cleanup:k,memoedVarsRef:E}){return!f||!EL(f.when,p,v)?null:C.jsx(Kzt,{onUnmount:k,node:f,state:p,dispatch:h,registerComponentApi:b,lookupAction:y,lookupSyncCallback:w,memoedVarsRef:E,appContext:v})}}function Dke(e){return e.__PARSED===!0}function rFt(e){return e.type===En}const nFt=m.memo(m.forwardRef(function({node:t,resolvedKey:r,parentState:n,parentStatePartChanged:o,parentRegisterComponentApi:i,parentDispatch:a,parentRenderContext:l,layoutContextRef:s,uidInfoRef:u,isImplicit:c,children:d,...f},p){const[h,v]=m.useState(0),b=oFt(),y=m.useRef(new Map),w=qo(m.useMemo(()=>iFt(n,t.uses),[t.uses,n])),k=_ke(),E=_zt(k),[_,S]=m.useReducer(E,rr),[A,O]=m.useState(rr),I=qo(m.useMemo(()=>{const M={..._};for(const K of Object.getOwnPropertySymbols(_)){const ee=_[K];K.description&&(M[K.description]=ee)}if(Reflect.ownKeys(A).length===0)return M;for(const K of Object.getOwnPropertySymbols(A)){const ee=A[K];if(K.description){const ae=K.description;M[ae]={...M[ae]||{},...ee}}M[K]={...M[K],...ee}}return M},[_,A])),L=Bke(w,I,t.contextVars),P=t.scriptCollected;if(P!=null&&P.moduleErrors&&!qp(P.moduleErrors))throw new s5(P.moduleErrors);if(t.scriptError&&!qp(t.scriptError))throw new s5(t.scriptError);const H=KT(_),j=qo({...P==null?void 0:P.functions,...t.functions,...P==null?void 0:P.vars,...t.vars}),W=m.useMemo(()=>{const M={};return Object.entries(j).forEach(([K,ee])=>{u5(ee)&&ee.tree.type===En&&(M[K]=nE(ee.tree,H))}),Czt(M)},[H,j]),B=jke(j,W,L,m.useRef(new Map)),G=qo({...B,...L}),z=jke(j,W,G,y),F=aFt(z,I),V=Bke(w,t.contextVars,F,b),N=m.useCallback((M,K)=>{O(fl(ee=>{ee[M]||(ee[M]={}),Object.entries(K).forEach(([ae,oe])=>{ee[M][ae]!==oe&&(ee[M][ae]=oe)})}))},[]),Y=m.useRef(I),q=m.useCallback((M,K,ee,ae)=>{const oe=M[0];oe in Y.current||oe in z?S({type:Bo.STATE_PART_CHANGED,payload:{path:M,value:K,target:ee,actionType:ae,localVars:z}}):(!t.uses||t.uses.includes(oe))&&o(M,K,ee,ae)},[z,t.uses,o]);return C.jsx(P0,{node:t,location:"container",children:C.jsx(eFt,{resolvedKey:r,node:t,componentState:V,dispatch:S,parentDispatch:a,setVersion:v,version:h,statePartChanged:q,registerComponentApi:N,parentRegisterComponentApi:i,layoutContextRef:s,parentRenderContext:l,memoedVarsRef:y,isImplicit:c,ref:p,uidInfoRef:u,...f,children:d})})})),oFt=()=>{const[e]=nze(),t=jK(),r=Cl(),n=yQ(),o=m.useMemo(()=>{var a;return((a=n==null?void 0:n.linkMap)==null?void 0:a.get(r.pathname))||rr},[n==null?void 0:n.linkMap,r.pathname]),i=m.useMemo(()=>{const a={};for(const[l,s]of Array.from(e.entries()))a[l]=s;return a},[e]);return m.useMemo(()=>({$pathname:r.pathname,$routeParams:t,$queryParams:i,$linkInfo:o}),[o,r.pathname,i,t])};function iFt(e,t){return t?t.length===0?rr:t$e(e,t):e}function Bke(...e){const t=m.useMemo(()=>{let r={};return e.forEach((n=rr)=>{n!==rr&&(r={...r,...n})}),r},[e]);return qo(t)}function aFt(e,t){const r=m.useMemo(()=>{const n={...e};return Reflect.ownKeys(t).forEach(o=>{const i=t[o];n[o]===void 0?n[o]=i:as(n[o])&&as(i)||Array.isArray(n[o])&&Array.isArray(i)?n[o]=GG(ss(n[o]),i):n[o]=i}),n},[e,t]);return qo(r)}function jke(e=rr,t=rr,r,n){const o=Eo(),i=KT(r),a=m.useMemo(()=>{const l={};return Object.entries(e).forEach(([s,u])=>{if(s==="$props")l[s]=u;else if(!u5(u)&&typeof u!="string")l[s]=u;else{n.current.has(u)||n.current.set(u,{getDependencies:ww((h,v)=>{if(u5(h))return nE(h.tree,v);const b=v3(h);let y=new Set;return b.forEach(w=>{w.type==="expression"&&(y=new Set([...y,...nE(w.value,v)]))}),Array.from(y)}),obtainValue:ww((h,v,b,y,w,k)=>{try{return u5(h)?Ii(h.tree,{localContext:v,appContext:b,options:{defaultToOptionalMemberAccess:!0}}):$t(v,h,b,y)}catch(E){throw console.log(v),new lFt(h,E)}},([h,v,b,y,w,k],[E,_,S,A,O,I])=>ly(w,O)&&ly(k,I))});const c={...l,...r};let d=[];t[s]?d=t[s]:(n.current.get(u).getDependencies(u,i).forEach(h=>{t[h]?d.push(...t[h]):d.push(h)}),d=[...new Set(d)]);const f=DT(c,d),p=DT(o,d);l[s]=n.current.get(u).obtainValue(u,c,o,!0,f,p)}}),l},[o,r,t,n,i,e]);return qo(a)}class s5 extends Error{constructor(t){const n=(t.Main||[]).map(o=>{let i=`${o.code} : ${o.text}`;const a=[];return o.line!==void 0&&a.push(`line:${o.line}`),o.column!==void 0&&a.push(`column:${o.column}`),a.length&&(i=`${i} (${a.join(", ")})`),i});super(n.join(`
|
|
627
627
|
`)),Object.setPrototypeOf(this,s5.prototype)}}class lFt extends Error{constructor(t,r){super(`Error on var: ${t} - ${(r==null?void 0:r.message)||"unknown"}`)}}function u5(e){return e&&typeof e=="object"&&e[R6]}function sFt(e){return e.type==="Container"?!0:!!(e.loaders||e.vars||e.uses||e.contextVars||e.functions||e.scriptCollected)}const uFt=m.memo(m.forwardRef(function({node:t,resolvedKey:r,parentState:n,parentStatePartChanged:o,parentRegisterComponentApi:i,parentDispatch:a,parentRenderContext:l,layoutContextRef:s,uidInfoRef:u,children:c,...d},f){const p=m.useMemo(()=>cFt(t),[t]);return C.jsx(P0,{node:t,location:"container",children:C.jsx(nFt,{node:p,resolvedKey:r,parentState:n,parentStatePartChanged:o,parentRegisterComponentApi:i,parentDispatch:a,parentRenderContext:l,layoutContextRef:s,uidInfoRef:u,isImplicit:t.type!=="Container"&&p.uses===void 0,ref:f,...d,children:c})})})),cFt=e=>{var r,n;if(e.type==="Container")return e;const t={...e,props:{...e.props}};return delete t.loaders,delete t.vars,delete t.functions,delete t.script,delete t.scriptCollected,delete t.scriptError,delete t.uses,(r=t.props)==null||delete r.uses,delete t.api,delete t.contextVars,{type:"Container",uid:e.uid,when:e.when,loaders:e.loaders,vars:e.vars,functions:e.functions,scriptCollected:e.scriptCollected,scriptError:e.scriptError,uses:e.uses,api:e.api,containerUid:e==null?void 0:e.containerUid,apiBoundContainer:e==null?void 0:e.apiBoundContainer,contextVars:e.contextVars,props:{debug:(n=e.props)==null?void 0:n.debug},children:[t]}},Mke={position:"absolute",width:0,display:"none"},dFt=m.forwardRef((e,t)=>{const r=m.useRef(null),n=m.useRef(null),{onTargetMounted:o}=e,i=m.useRef(null),a=m.useRef(null),[l,s]=m.useState(!1),u=m.useCallback(h=>{a.current=h,h!==null&&(o==null||o()),s(!0)},[o]),[c,d]=m.useState(0),f=qo(e.attr),p=!e.allowOnlyRefdChild&&!l;return m.useLayoutEffect(()=>{let h;l?h=a.current:p&&(i.current?h=i.current:(h=(r.current.nextElementSibling===n.current?null:r.current.nextElementSibling)||null,i.current=h,d(v=>v++))),h&&Object.entries(f).forEach(([v,b])=>{b!==void 0?h.setAttribute(v,b):h.removeAttribute(v)})},[p,f,l]),C.jsxs(C.Fragment,{children:[!i.current&&p&&C.jsx("span",{style:Mke,ref:r}),m.cloneElement(e.children,{ref:t?Un(u,t):u}),!i.current&&p&&C.jsx("span",{style:Mke,ref:n})]})});let fFt=0;function mFt(e){const t={__PARSED:!0,parseId:++fFt,segments:[]};if(e==null)return t;let r=0,n="",o="";for(let i=0;i<e.length;i++){const a=e[i];switch(r){case 0:a==="\\"?(r=1,o="\\"):a==="{"?(n!==""&&t.segments.push({literal:n}),n="",r=2):n+=a;break;case 1:if(a==="\\"){o+=a;break}a==="{"?n+=o.substring(1)+a:n+=o+a,r=0;break;case 2:const l=e.substring(i),s=new Jf(e.substring(i));let u=null;try{u=s.parseExpr()}catch(d){throw new Error(`Cannot parse expression: '${l}': ${d}`)}const c=s.getTail();if(!c||c.trim().length<1||c.trim()[0]!=="}")throw new Error(`Unclosed expression: '${e}'
|
|
628
628
|
'${l}'`);t.segments.push({expr:u}),i=e.length-c.length,n="",r=0;break}}switch(r){case 0:n!==""&&t.segments.push({literal:n});break;case 1:t.segments.push({literal:n+o});break;case 2:t.segments.push({literal:n+"{"});break}return t}function pFt({uid:e,node:t,apiBoundProps:r,apiBoundEvents:n,renderChild:o,layoutContextRef:i,parentRendererContext:a}){const l=m.useMemo(()=>{function u(b){return`${t.uid}_data_${b}`}const c=[...t.loaders||[]],d={...t.events||{}},f={...t.props||{}},p={...t.vars||{}},h={...t.api||{}};n.forEach(b=>{const{type:y}=t.events[b];switch(y){case"FileUpload":{const w=t.events[b],{invalidates:k,asForm:E,formParams:_,queryParams:S,rawBody:A,body:O,url:I,headers:L,method:P,file:H}=w.props,{success:j,error:W}=w.events||{};d[b]=`(eventArgs) => {
|
|
629
629
|
return Actions.upload({
|
|
@@ -678,7 +678,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
678
678
|
getOptimisticValue: ${JSON.stringify(W)},
|
|
679
679
|
invalidates: ${P===void 0?void 0:JSON.stringify(P)},
|
|
680
680
|
when: ${k===void 0?void 0:JSON.stringify(k)} }, { resolveBindingExpressions: true });
|
|
681
|
-
}`;break}default:throw new Error("Unknown event handler component type: ",y)}}),r.forEach(b=>{var A,O,I;const y=((A=t.props[b])==null?void 0:A.type)==="DataSourceRef",w=t.props[b].uid||u(b),k=t.props[b].props||t.props[b],E={};Object.entries(t.events||{}).forEach(([L,P])=>{if(L.startsWith(b)){const H=L.substring(b.length),j=H.charAt(0).toLowerCase()+H.slice(1);E[j]=P}}),b==="data"&&(f.__DATA_RESOLVED=!0),y||(c.push({type:"DataLoader",uid:w,props:k,events:E}),h[`fetch_${b}`]=`() => { ${w}.refetch(); }`,h[`update_${b}`]=`(updaterFn) => { ${w}.update(updaterFn); }`,h[`addItem_${b}`]=`(element, index) => { ${w}.addItem(element, index); }`,h[`getItems_${b}`]=`() => { return ${w}.getItems(); }`,h[`deleteItem_${b}`]=`(element) => { ${w}.deleteItem(element); }`,b==="data"&&(f._data_url=k.url));let _=null;const{segments:S}=mFt((O=k.url)==null?void 0:O.trim());(S==null?void 0:S.length)===1&&(S[0].literal?_=`"${S[0].literal}"`:S[0].expr&&(_=(I=k.url)==null?void 0:I.trim().substring(1,k.url.length-1))),_===null?f[b]=`{ ${w}.value }`:f[b]=`{ ${w}.value || ( appGlobals.prefetchedContent[${_}] || appGlobals.prefetchedContent['/' + ${_}] ) }`,f.loading=`{ ${w}.inProgress === undefined ? true : ${w}.inProgress}`,f.pageInfo=`{${w}.pageInfo}`,d.requestFetchPrevPage=`${w}.fetchPrevPage()`,d.requestFetchNextPage=`${w}.fetchNextPage()`,d.requestRefetch=`()=> ${w}.refetch();`});const v={...t,containerUid:e,apiBoundContainer:!0,props:f,events:d};return c.length&&(v.loaders=c),Object.keys(p).length&&(v.vars=p),Object.keys(h).length&&(v.api=h),v},[n,r,t,e]),s=o(l,i==null?void 0:i.current,a);return Z.isValidElement(s)?s:C.jsx(C.Fragment,{children:s})}const P1=["horizontalAlignment","verticalAlignment","orientation","width","minWidth","maxWidth","height","minHeight","maxHeight","gap","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderStyle","borderWidth","borderHorizontal","borderVertical","borderRadius","radiusTopLeft","radiusTopRight","radiusBottomLeft","radiusBottomRight","padding","paddingHorizontal","paddingVertical","paddingTop","paddingRight","paddingBottom","paddingLeft","backgroundColor","background","boxShadow","direction","overflowX","overflowY","zIndex","color","fontFamily","fontSize","fontWeight","fontStyle","textDecoration","wrapContent","canShrink","margin","marginHorizontal","marginVertical","marginTop","marginRight","marginBottom","marginLeft","userSelect","letterSpacing","textTransform","lineHeight","opacity","cursor","textWrap","textAlign","textAlignLast","top","right","bottom","left","zoom","whiteSpace","textDecoration","textDecorationLine","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","outline","outlineWidth","outlineColor","outlineStyle","outlineOffset","fontVariant","lineBreak","textIndent","textShadow","wordBreak","wordSpacing","wordWrap","writingMode","transition"];function hFt(e,t){const r=a("click",e,t),n=a("mouseLeave",e,t),o=a("mouseEnter",e,t),i=a("doubleClick",e,t);if(t)return rr;return{onClick:r,onMouseLeave:n,onMouseEnter:o,onDoubleClick:i};function a(l,s,u){const c=u?void 0:s(l),d=m.useCallback(f=>{c&&(f==null||f.stopPropagation(),c(f))},[c]);return c?d:void 0}}const zke={errorOverlay:"_errorOverlay_1fts7_13",title:"_title_1fts7_20"};function gFt({message:e}){return C.jsx("div",{className:zke.errorOverlay,children:C.jsxs("span",{className:zke.title,children:["Unknown component: ",e]})})}const c5={errorOverlay:"_errorOverlay_dnota_13",title:"_title_dnota_22",errorItems:"_errorItems_dnota_31",errorItem:"_errorItem_dnota_31"};function Fke({errors:e=Ar,node:t,children:r}){return C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:c5.errorOverlay,children:[C.jsx("div",{className:c5.title,children:C.jsxs("span",{children:[C.jsx("b",{children:t.type})," component problems:"]})}),C.jsx("ul",{className:c5.errorItems,children:e.map((n,o)=>C.jsx("li",{className:c5.errorItem,children:n},o))})]}),r]})}const vFt=m.forwardRef(function({node:t,state:r,appContext:n,dispatch:o,lookupAction:i,lookupSyncCallback:a,renderChild:l,registerComponentApi:s,layoutContextRef:u,parentRenderContext:c,memoedVarsRef:d,onUnmount:f,uidInfoRef:p,children:h,...v},b){var ae;const y=m.useMemo(()=>({...t,props:t.props||rr,events:t.events||rr}),[t]),w=m.useMemo(()=>Symbol(y.uid),[y.uid]);m.useEffect(()=>()=>{f(w)},[f,w]);const k=m.useCallback(oe=>{s(w,oe)},[s,w]),E=m.useCallback(oe=>{o({type:Bo.COMPONENT_STATE_CHANGED,payload:{uid:w,state:oe}})},[o,w]),_=KT(r),S=m.useMemo(()=>Fre(r,n,_,d),[n,d,_,r]),A=m.useCallback(oe=>a(S(oe),w),[a,w,S]),O=m.useCallback((oe,ue)=>i(oe,w,ue),[i,w]),I=m.useCallback((oe,ue,le)=>l(oe,ue,le||c,p),[l,c,p]),L=m.useMemo(()=>Wke(y.props,"DataSource","DataSourceRef"),[y.props]),P=m.useMemo(()=>Wke(y.events,"APICall","FileDownload","FileUpload"),[y.events]),H=L.length>0||P.length>0,j=L0(),{renderer:W,descriptor:B,isCompoundComponent:G}=j.lookupComponentRenderer(y.type)||{},z=m.useCallback((oe,ue)=>{var pe;const le=((pe=y.events)==null?void 0:pe[oe])||(ue==null?void 0:ue.defaultHandler);return i(le,w,{eventName:oe,...ue})},[i,y.events,w]),F=hFt(z,(B==null?void 0:B.nonVisual)||H),{getResourceUrl:V,themeVars:N}=zr(),Y=m.useCallback(oe=>{const ue=S(oe);return V(ue)},[V,S]),{cssProps:q}=m.useMemo(()=>{const oe={};return P1.forEach(ue=>{y.props&&ue in y.props&&(oe[ue]=S(y.props[ue],!0))}),See(oe,{...u==null?void 0:u.current,mediaSize:n.mediaSize})},[n.mediaSize,u,y.props,S]),M=qo(q);let K=null,ee=null;try{const oe={node:y,state:r[w]||rr,updateState:E,appContext:n,extractValue:S,lookupEventHandler:z,lookupAction:O,lookupSyncCallback:A,extractResourceUrl:Y,renderChild:I,registerComponentApi:k,layoutCss:M,layoutContext:u==null?void 0:u.current,uid:w};if(y.type==="Slot")K=bFt(oe,c);else{if(!W)return console.error(`Component '${y.type}' is not available. Did you forget to register it?`),C.jsx(gFt,{message:`${y.type}`});K=W(oe)}const{inspectId:ue,refreshInspection:le}=d4t(y,w);if((n!=null&&n.decorateComponentsWithTestId&&(y.uid!==void 0||y.testId!==void 0)||ue!==void 0)&&(B==null?void 0:B.nonVisual)!==!0&&(B==null?void 0:B.opaque)!==!0){const pe=y.testId||y.uid,fe=$t(r,pe,n,!0);K=C.jsx(dFt,{attr:{"data-testid":fe,"data-inspectId":ue},allowOnlyRefdChild:G||y.type==="ModalDialog",onTargetMounted:y.type==="ModalDialog"?le:void 0,ref:b,children:m.cloneElement(K,{...sL({...K.props,...F},v)})})}if(H)return C.jsx(pFt,{uid:w,renderChild:I,node:y,apiBoundEvents:P,apiBoundProps:L,layoutContextRef:u,parentRendererContext:c},y.uid);(ae=u.current)!=null&&ae.wrapChild&&(K=u.current.wrapChild(oe,K,B))}catch(oe){ee=(oe==null?void 0:oe.message)||"Internal error",console.error(oe)}if(ee)return C.jsx(Fke,{errors:[ee],node:y,children:K});if((b||!qp(F))&&K&&Z.isValidElement(K)){const oe=h?Array.isArray(h)?h:[h]:[];return m.cloneElement(K,{ref:K.type===Z.Fragment?void 0:b?Un(b,K.ref):K.ref,...sL({...K.props,...K.type!==Z.Fragment?F:{}},v)},...oe)}return Z.isValidElement(K)&&h?m.cloneElement(K,null,h):K});function bFt({node:e,extractValue:t,renderChild:r,lookupAction:n,layoutContext:o},i){const a=t.asOptionalString(e.props.name);if(a&&!a.endsWith("Template"))return C.jsx(Fke,{node:e,errors:[`Slot name '${a}' is not valid. A named slot should use a name ending with 'Template'.`]});let l=null;if(qp(e.props)||(l={},Object.keys(e.props).forEach(s=>{if(s!=="name"){let u=t(e.props[s],!0);u!=null&&u._ARROW_EXPR_&&(u=n(u)),l[s]=u}})),i){if(a===void 0)return l?C.jsx(M6,{node:i.children,renderChild:i.renderChild,slotProps:l,layoutContext:o}):i.renderChild(i.children,o);if(i.props[a])return C.jsx(M6,{node:i.props[a],renderChild:i.renderChild,slotProps:l,layoutContext:o})}if(e.children&&e.children.length>0)return C.jsx(M6,{node:e.children,renderChild:r,slotProps:l??rr,layoutContext:o})}function Wke(e,...t){const r=[];if(!e)return r;const n=Object.entries(e);for(let o=0;o<n.length;o++){const[i,a]=n[o];as(a)&&t.includes(a.type)&&r.push(i)}return r}const xFt=m.memo(m.forwardRef(function({node:t,resolvedKey:r,state:n,dispatch:o,appContext:i,lookupAction:a,lookupSyncCallback:l,registerComponentApi:s,renderChild:u,statePartChanged:c,layoutContext:d,parentRenderContext:f,memoedVarsRef:p,cleanup:h,uidInfoRef:v,children:b,...y},w){var I;const k=L0(),{descriptor:E}=k.lookupComponentRenderer(t.type)||{},_=m.useRef(d),S=m.useMemo(()=>{let L=t;return L=yFt(L,E==null?void 0:E.childrenAsTemplate),L=wFt(L),L=CFt(L,v),L=_Ft(L),L},[E==null?void 0:E.childrenAsTemplate,t,v]),A=m.useMemo(()=>{var P;return typeof $t(n,(P=S.props)==null?void 0:P.data,i,!0)=="string"},[i,(I=S.props)==null?void 0:I.data,n]),O=m.useMemo(()=>kFt(S,A,v),[S,A,v]);return sFt(O)?C.jsx(uFt,{resolvedKey:r,node:O,parentState:n,parentDispatch:o,layoutContextRef:_,parentRenderContext:f,parentStatePartChanged:c,parentRegisterComponentApi:s,uidInfoRef:v,ref:w,...y,children:b}):C.jsx(vFt,{onUnmount:h,memoedVarsRef:p,node:O,state:n,dispatch:o,appContext:i,lookupAction:a,lookupSyncCallback:l,registerComponentApi:s,renderChild:u,parentRenderContext:f,layoutContextRef:_,ref:w,uidInfoRef:v,...y,children:b})}));function yFt(e,t){if(!t||!e.children||e.children.length===0)return e;if(e.props[t])throw Error("'"+t+"' is already used as a property.");return{...e,props:{...e.props,[t]:e.children},children:Ar}}function wFt(e){var o;let t=!1,r=e.loaders,n;return(o=e.children)==null||o.forEach(i=>{(i==null?void 0:i.type)==="DataSource"?(t=!0,r||(r=[]),r.push({uid:i.uid,type:"DataLoader",props:i.props,events:i.events,when:i.when})):(n||(n=[]),n.push(i))}),t?{...e,children:n,loaders:r}:e}function CFt(e,t){if(!e.props)return e;let r={...e},n=!1;return Object.entries(e.props).forEach(([o,i])=>{let a;try{a=$t(t.current,i)}catch{}(a==null?void 0:a.type)==="loader"&&(n=!0,r={...r,props:{...r.props,[o]:{type:"DataSourceRef",uid:a.uid}}})}),n?r:e}function kFt(e,t,r){var n;return!((n=e.props)!=null&&n.__DATA_RESOLVED)&&e.props&&"data"in e.props&&t?$t(r.current,e.props.data)==="loaderValue"?e:{...e,props:{...e.props,data:{type:"DataSource",props:{url:e.props.data}}}}:e}function _Ft(e){return e.props&&"raw_data"in e.props?{...e,props:{...e.props,__DATA_RESOLVED:!0,data:e.props.raw_data}}:e}function Vke({node:e,state:t,dispatch:r,appContext:n,lookupAction:o,lookupSyncCallback:i,registerComponentApi:a,renderChild:l,statePartChanged:s,layoutContext:u,parentRenderContext:c,memoedVarsRef:d,cleanup:f,uidInfoRef:p}){var b,y,w;if(!EL(e.when,t,n))return null;const h=(b=e.props)==null?void 0:b.value;if(e.type==="TextNodeCData")return h??"";if(e.type==="TextNode"){const k=$t(t,h,n,!0);return typeof k=="boolean"?k.toString():k}if(e.type==="Slot"){let k;const E=(y=e.props)==null?void 0:y.name;if(E){if(!E.endsWith("Template"))throw new Error(`Slot name '${E}' is not valid. A named slot should use a name ending with 'Template'.`);k=(w=c==null?void 0:c.props)==null?void 0:w[E]}else k=c==null?void 0:c.children;if(k||(k=e.children),k){const _=Array.isArray(k)?k:[k];if(_.length===1&&c&&(_[0].type==="TextNodeCData"||_[0].type==="TextNode"))return c.renderChild(_)}}const v=$t(t,e.uid,n,!0);return C.jsx(xFt,{resolvedKey:v,node:e,cleanup:f,statePartChanged:s,memoedVarsRef:d,state:t,dispatch:r,appContext:n,lookupAction:o,lookupSyncCallback:i,registerComponentApi:a,renderChild:l,layoutContext:u,parentRenderContext:c,uidInfoRef:p},v)}function ek(e){return getComputedStyle(e||document.body)}function TFt({rootContainer:e,routerBaseName:t,globalProps:r,standalone:n,trackContainerHeight:o,decorateComponentsWithTestId:i,debugEnabled:a,children:l,onInit:s}){const[u,c]=m.useState(null),d=_ke(),f=L0(),p=eb(),{confirm:h}=w7t(),{activeThemeId:v,activeThemeTone:b,setActiveThemeId:y,setActiveThemeTone:w,availableThemeIds:k,root:E,toggleThemeTone:_}=Wv();rje(At=>{At.code==="KeyT"&&At.altKey&&At.ctrlKey&&At.shiftKey&&y(k[(k.indexOf(v)+1)%k.length]),At.code==="KeyO"&&At.altKey&&At.ctrlKey&&At.shiftKey&&w(W6[(W6.indexOf(b)+1)%W6.length]),At.code==="KeyS"&&At.altKey&&At.ctrlKey&&At.shiftKey&&d.setDisplayStateView(!d.displayStateView)});const[S,A]=m.useState("0"),[O,I]=m.useState("0"),[L,P]=m.useState("0"),[H,j]=m.useState("0"),[W,B]=m.useState("0"),[G,z]=m.useState("0"),[F,V]=m.useState("0"),[N,Y]=m.useState("0"),[q,M]=m.useState("0"),[K,ee]=m.useState("0"),ae=At=>{const it=At.match(/^(\d+)px$/);return it?`${parseInt(it[1])-.02}px`:"0"},oe=m.useRef();Sn(()=>(o&&E&&E!==document.body&&(oe!=null&&oe.current&&oe.current.unobserve(E),o==="auto"?E.style.setProperty("--containerHeight","auto"):oe.current=new ResizeObserver(At=>{E.style.setProperty("--containerHeight",At[0].contentRect.height+"px")}),oe.current&&oe.current.observe(E)),()=>{oe!=null&&oe.current&&oe.current.unobserve(E)}),[E,oe,o]),Sn(()=>{const At=ek(E).getPropertyValue(Kp("maxWidth-phone"));A(At),I(ae(At));const it=ek(E).getPropertyValue(Kp("maxWidth-landscape-phone"));P(it),j(ae(it));const nt=ek(E).getPropertyValue(Kp("maxWidth-tablet"));B(nt),z(ae(nt));const lt=ek(E).getPropertyValue(Kp("maxWidth-desktop"));V(lt),Y(ae(lt));const ct=ek(E).getPropertyValue(Kp("maxWidth-large-desktop"));M(ct),ee(ae(ct))},[v,E]);const ue=Gv(`(max-width: ${O})`),le=Gv(`(min-width: ${S}) and (max-width: ${H})`),pe=Gv(`(min-width: ${L}) and (max-width: ${G})`),fe=Gv(`(min-width: ${W}) and (max-width: ${N})`),J=Gv(`(min-width: ${F}) and (max-width: ${K})`);let X,te;const ie=Gv(`(min-width: ${q})`);ie?(X="xxl",te=5):J?(X="xl",te=4):fe?(X="lg",te=3):pe?(X="md",te=2):le?(X="sm",te=1):ue&&(X="xs",te=0);const de=eje(),be=tje(),xe=O2(),Ie=Cl(),Ne=m.useRef(""),[Se,_e]=m.useState(0);m.useEffect(()=>{s==null||s()},[s]),m.useEffect(()=>{var it;let At="";if(Ie.hash&&(At=Ie.hash.slice(1)),Ne.current!==At&&(Ne.current=At,!((it=Ie.state)!=null&&it.preventHashScroll))){const nt=E==null?void 0:E.getRootNode(),lt="instant";requestAnimationFrame(()=>{var ct;if(nt)if(nt instanceof ShadowRoot){const Rr=nt.getElementById(Ne.current);if(!Rr)return;EFt(Rr,lt)}else(ct=document.getElementById(Ne.current))==null||ct.scrollIntoView({behavior:lt,block:"start"})})}},[Ie,Se,E]);const Ve=m.useCallback(()=>{Ne.current="",_e(At=>At+1)},[]),Ee=m.useMemo(()=>{const At={_SUPPORT_IMPLICIT_CONTEXT:!0};for(const[it,nt]of f.actionFunctions)At[it]=nt;return At},[f.actionFunctions]),je=m.useMemo(()=>({isInIFrame:de}),[de]),Ce=m.useMemo(()=>({isWindowFocused:be}),[be]),Te=m.useMemo(()=>({phone:ue,landscapePhone:le,tablet:pe,desktop:fe,largeDesktop:J,xlDesktop:ie,smallScreen:ue||le||pe,largeScreen:!(ue||le||pe),size:X,sizeIndex:te}),[ue,le,pe,fe,J,ie,X,te]),He=m.useMemo(()=>r?{...r}:rr,[r]),st=m.useMemo(()=>({version:lzt,Actions:Ee,appGlobals:He,debugEnabled:a,decorateComponentsWithTestId:i,environment:Ce,mediaSize:Te,queryClient:BSe,standalone:n,appIsInShadowDom:(E==null?void 0:E.getRootNode())instanceof ShadowRoot,...Pke,...wzt,formatFileSizeInBytes:o7e,getFileExtension:i7e,navigate:p,routerBaseName:t,confirm:h,signError:SFt,toast:go,activeThemeId:v,activeThemeTone:b,availableThemeIds:k,setTheme:y,setThemeTone:w,toggleThemeTone:_,loggedInUser:u,setLoggedInUser:c,delay:zv,embed:je,apiInterceptorContext:xe,getPropertyByPath:To,...Oke,forceRefreshAnchorScroll:Ve}),[Ee,He,a,i,Ce,Te,n,p,t,h,v,b,k,y,w,_,u,je,xe,Ve,E]),[ut,It]=m.useState(rr),sr=m.useCallback((At,it)=>{It(nt=>({...nt,[At]:it}))},[]),tr=m.useCallback((At,it)=>{It(nt=>({...nt,[At]:{...nt[At]||{},...it}}))},[]),hn=m.useMemo(()=>({registerAppState:sr,appState:ut,update:tr}),[ut,sr,tr]),zo=m.useRef(new Map),Ir=Vke({node:e,state:rr,dispatch:bt,appContext:void 0,lookupAction:bt,lookupSyncCallback:bt,registerComponentApi:bt,renderChild:bt,statePartChanged:bt,cleanup:bt,memoedVarsRef:zo});return C.jsx(bX.Provider,{value:st,children:C.jsx(che.Provider,{value:hn,children:l&&m.isValidElement(Ir)?m.cloneElement(Ir,null,l):Ir})})}function SFt(e){go.error(typeof e=="string"?e:e.message||"Something went wrong")}function EFt(e,t){n(e).reverse().forEach(o=>{const i=e.getBoundingClientRect(),a=o.getBoundingClientRect();if(i.top<a.top||i.bottom>a.bottom){const l=i.top-a.top+o.scrollTop;o.scrollTo({top:l,behavior:t})}});function n(o){const i=[];let a=o;for(;a;){let l=a.parentElement;if(!l&&a.getRootNode||!l)break;const s=getComputedStyle(l);/(auto|scroll|overlay)/.test(s.overflow+s.overflowY+s.overflowX)&&i.push(l),a=l}return i}}const Uke=m.createContext(void 0),AFt=({children:e})=>{const[t,r]=m.useState([]),n=m.useCallback(o=>{const i={timestamp:new Date,args:o};r(a=>[...a,i])},[]);return C.jsx(Uke.Provider,{value:{logs:t,addLog:n},children:e})},qke=()=>{const e=m.useContext(Uke);if(!e)throw new Error("useLogger must be used within LoggerProvider");return e};var OFt={};class L1{constructor(){this.isDev=!!OFt.VITE_DEV_MODE}static getInstance(){return L1.instance||(L1.instance=new L1),L1.instance}registerCallback(t){this.isDev&&(this.callback=t)}log(t){this.isDev&&(console.log("[xmlui.log]",...t),this.callback&&this.callback(t))}warn(t){this.isDev&&(console.warn("[xmlui.warn]",...t),this.callback&&this.callback(t))}info(t){this.isDev&&(console.info("[xmlui.info]",...t),this.callback&&this.callback(t))}error(t){this.isDev&&(console.error("[xmlui.error]",...t),this.callback&&this.callback(t))}trace(t){this.isDev&&(console.trace("[xmlui.trace]",...t),this.callback&&this.callback(t))}}const IFt=L1.getInstance(),RFt=()=>{const{addLog:e}=qke();return m.useEffect(()=>{IFt.registerCallback(e)},[e]),null},d5={overlay:"_overlay_1b3my_13",overlayBg:"_overlayBg_1b3my_24",contentWrapper:"_contentWrapper_1b3my_30",content:"_content_1b3my_30"};class Vj{constructor(){this.subscriptions=new Set,this.registeredExtensions=[]}subscribeToRegistrations(t){this.subscriptions.add(t),this.registeredExtensions.forEach(r=>{t(r)})}unSubscribeFromRegistrations(t){this.subscriptions.delete(t)}registerExtension(t){(Array.isArray(t)?t:[t]).forEach(r=>{this.registeredExtensions.push(r),this.subscriptions.forEach(n=>{n(r)})})}}const tk="xmlui",Hg="xmlui.xs";var f5=(e=>(e[e.Skip=0]="Skip",e[e.Warning=1]="Warning",e[e.Error=2]="Error",e))(f5||{});function PFt(e){if(!e)return 1;switch(e.toLowerCase()){case"warning":return 1;case"error":return 2;case"skip":return 0;default:return console.warn(`Invalid lint severity option '${e}'. Must be one of: 'warning', 'error', 'skip'. Defaulting to 'warning'.`),1}}function LFt({appDef:e,metadataProvider:t}){const r={componentName:"Main",lints:Gke({component:e.entryPoint,metadataProvider:t})},n=(e.components??[]).map(o=>({lints:Gke({component:o,metadataProvider:t}),componentName:o.name}));return[r,...n].filter(o=>o.lints.length>0)}function HFt(e){console.group(`Validation on '${e.componentName}':`),e.lints.forEach(({message:t})=>{console.warn(t)}),console.groupEnd()}function NFt(e){function t(){const r=e.map((o,i)=>({type:"VStack",props:{gap:"0px"},children:[{type:"VStack",props:{backgroundColor:"lightgrey",padding:"10px"},children:[{type:"H2",props:{value:`#${i+1}: In component '${o.componentName}':`,color:"$color-info"}},{type:"VStack",children:o.lints.map(({message:a},l)=>({type:"Text",props:{value:`${i+1}.${l+1}: ${a}`,fontWeight:"bold"}}))}]}]}));return{type:"VStack",props:{padding:"$padding-normal",gap:0},children:[{type:"H1",props:{value:"Errors found while checking Xmlui markup",padding:"$padding-normal",backgroundColor:"$color-error",color:"white"}},{type:"VStack",props:{gap:"$gap-tight",padding:"$padding-normal"},children:r}]}}return t()}function Gke({component:e,metadataProvider:t}){return"component"in e?Uj(e.component,t,[]):Uj(e,t,[])}function Uj(e,t,r){const n=e.type.startsWith(eD)?e.type.slice(eD.length+1):e.type,o=t.getComponent(n);if(o!==null&&!o.allowArbitraryProps&&$Ft(e,o,r),!e.children)return r;for(const i of e.children)Uj(i,t,r);return r}function $Ft(e,t,r){const n=Object.keys(e.props??{}).filter(a=>!t.getAttr(a)),o=Object.keys(e.events??{}).filter(a=>!t.getEvent(a)),i=Object.keys(e.api??{}).filter(a=>!t.getApi(a));n.push(...o),n.push(...i);for(const a of n)r.push(DFt(e,a))}function DFt(e,t){return{message:`Unrecognised property '${t}' on component '${e.type}'.`,kind:0}}const m5=/[\r\n<>'"&]/;class BFt{serialize(t,r){const n=Array.isArray(t)?t:[t];return o(n,0);function o(f,p){return f.map(h=>i(h,p)).join(r!=null&&r.prettify?`
|
|
681
|
+
}`;break}default:throw new Error("Unknown event handler component type: ",y)}}),r.forEach(b=>{var A,O,I;const y=((A=t.props[b])==null?void 0:A.type)==="DataSourceRef",w=t.props[b].uid||u(b),k=t.props[b].props||t.props[b],E={};Object.entries(t.events||{}).forEach(([L,P])=>{if(L.startsWith(b)){const H=L.substring(b.length),j=H.charAt(0).toLowerCase()+H.slice(1);E[j]=P}}),b==="data"&&(f.__DATA_RESOLVED=!0),y||(c.push({type:"DataLoader",uid:w,props:k,events:E}),h[`fetch_${b}`]=`() => { ${w}.refetch(); }`,h[`update_${b}`]=`(updaterFn) => { ${w}.update(updaterFn); }`,h[`addItem_${b}`]=`(element, index) => { ${w}.addItem(element, index); }`,h[`getItems_${b}`]=`() => { return ${w}.getItems(); }`,h[`deleteItem_${b}`]=`(element) => { ${w}.deleteItem(element); }`,b==="data"&&(f._data_url=k.url));let _=null;const{segments:S}=mFt((O=k.url)==null?void 0:O.trim());(S==null?void 0:S.length)===1&&(S[0].literal?_=`"${S[0].literal}"`:S[0].expr&&(_=(I=k.url)==null?void 0:I.trim().substring(1,k.url.length-1))),_===null?f[b]=`{ ${w}.value }`:f[b]=`{ ${w}.value || ( appGlobals.prefetchedContent[${_}] || appGlobals.prefetchedContent['/' + ${_}] ) }`,f.loading=`{ ${w}.inProgress === undefined ? true : ${w}.inProgress}`,f.pageInfo=`{${w}.pageInfo}`,d.requestFetchPrevPage=`${w}.fetchPrevPage()`,d.requestFetchNextPage=`${w}.fetchNextPage()`,d.requestRefetch=`()=> ${w}.refetch();`});const v={...t,containerUid:e,apiBoundContainer:!0,props:f,events:d};return c.length&&(v.loaders=c),Object.keys(p).length&&(v.vars=p),Object.keys(h).length&&(v.api=h),v},[n,r,t,e]),s=o(l,i==null?void 0:i.current,a);return Z.isValidElement(s)?s:C.jsx(C.Fragment,{children:s})}const P1=["horizontalAlignment","verticalAlignment","orientation","width","minWidth","maxWidth","height","minHeight","maxHeight","gap","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderStyle","borderWidth","borderHorizontal","borderVertical","borderRadius","radiusTopLeft","radiusTopRight","radiusBottomLeft","radiusBottomRight","padding","paddingHorizontal","paddingVertical","paddingTop","paddingRight","paddingBottom","paddingLeft","backgroundColor","background","boxShadow","direction","overflowX","overflowY","zIndex","color","fontFamily","fontSize","fontWeight","fontStyle","textDecoration","wrapContent","canShrink","margin","marginHorizontal","marginVertical","marginTop","marginRight","marginBottom","marginLeft","userSelect","letterSpacing","textTransform","lineHeight","opacity","cursor","textWrap","textAlign","textAlignLast","top","right","bottom","left","zoom","whiteSpace","textDecoration","textDecorationLine","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","outline","outlineWidth","outlineColor","outlineStyle","outlineOffset","fontVariant","lineBreak","textIndent","textShadow","wordBreak","wordSpacing","wordWrap","writingMode","transition"];function hFt(e,t){const r=a("click",e,t),n=a("mouseLeave",e,t),o=a("mouseEnter",e,t),i=a("doubleClick",e,t);if(t)return rr;return{onClick:r,onMouseLeave:n,onMouseEnter:o,onDoubleClick:i};function a(l,s,u){const c=u?void 0:s(l),d=m.useCallback(f=>{c&&(f==null||f.stopPropagation(),c(f))},[c]);return c?d:void 0}}const zke={errorOverlay:"_errorOverlay_1fts7_13",title:"_title_1fts7_20"};function gFt({message:e}){return C.jsx("div",{className:zke.errorOverlay,children:C.jsxs("span",{className:zke.title,children:["Unknown component: ",e]})})}const c5={errorOverlay:"_errorOverlay_dnota_13",title:"_title_dnota_22",errorItems:"_errorItems_dnota_31",errorItem:"_errorItem_dnota_31"};function Fke({errors:e=Ar,node:t,children:r}){return C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:c5.errorOverlay,children:[C.jsx("div",{className:c5.title,children:C.jsxs("span",{children:[C.jsx("b",{children:t.type})," component problems:"]})}),C.jsx("ul",{className:c5.errorItems,children:e.map((n,o)=>C.jsx("li",{className:c5.errorItem,children:n},o))})]}),r]})}const vFt=m.forwardRef(function({node:t,state:r,appContext:n,dispatch:o,lookupAction:i,lookupSyncCallback:a,renderChild:l,registerComponentApi:s,layoutContextRef:u,parentRenderContext:c,memoedVarsRef:d,onUnmount:f,uidInfoRef:p,children:h,...v},b){var ae;const y=m.useMemo(()=>({...t,props:t.props||rr,events:t.events||rr}),[t]),w=m.useMemo(()=>Symbol(y.uid),[y.uid]);m.useEffect(()=>()=>{f(w)},[f,w]);const k=m.useCallback(oe=>{s(w,oe)},[s,w]),E=m.useCallback(oe=>{o({type:Bo.COMPONENT_STATE_CHANGED,payload:{uid:w,state:oe}})},[o,w]),_=KT(r),S=m.useMemo(()=>Fre(r,n,_,d),[n,d,_,r]),A=m.useCallback(oe=>a(S(oe),w),[a,w,S]),O=m.useCallback((oe,ue)=>i(oe,w,ue),[i,w]),I=m.useCallback((oe,ue,le)=>l(oe,ue,le||c,p),[l,c,p]),L=m.useMemo(()=>Wke(y.props,"DataSource","DataSourceRef"),[y.props]),P=m.useMemo(()=>Wke(y.events,"APICall","FileDownload","FileUpload"),[y.events]),H=L.length>0||P.length>0,j=L0(),{renderer:W,descriptor:B,isCompoundComponent:G}=j.lookupComponentRenderer(y.type)||{},z=m.useCallback((oe,ue)=>{var pe;const le=((pe=y.events)==null?void 0:pe[oe])||(ue==null?void 0:ue.defaultHandler);return i(le,w,{eventName:oe,...ue})},[i,y.events,w]),F=hFt(z,(B==null?void 0:B.nonVisual)||H),{getResourceUrl:V,themeVars:N}=zr(),Y=m.useCallback(oe=>{const ue=S(oe);return V(ue)},[V,S]),{cssProps:q}=m.useMemo(()=>{const oe={};return P1.forEach(ue=>{y.props&&ue in y.props&&(oe[ue]=S(y.props[ue],!0))}),See(oe,{...u==null?void 0:u.current,mediaSize:n.mediaSize})},[n.mediaSize,u,y.props,S]),M=qo(q);let K=null,ee=null;try{const oe={node:y,state:r[w]||rr,updateState:E,appContext:n,extractValue:S,lookupEventHandler:z,lookupAction:O,lookupSyncCallback:A,extractResourceUrl:Y,renderChild:I,registerComponentApi:k,layoutCss:M,layoutContext:u==null?void 0:u.current,uid:w};if(y.type==="Slot")K=bFt(oe,c);else{if(!W)return console.error(`Component '${y.type}' is not available. Did you forget to register it?`),C.jsx(gFt,{message:`${y.type}`});K=W(oe)}const{inspectId:ue,refreshInspection:le}=d4t(y,w);if((n!=null&&n.decorateComponentsWithTestId&&(y.uid!==void 0||y.testId!==void 0)||ue!==void 0)&&(B==null?void 0:B.nonVisual)!==!0&&(B==null?void 0:B.opaque)!==!0){const pe=y.testId||y.uid,fe=$t(r,pe,n,!0);K=C.jsx(dFt,{attr:{"data-testid":fe,"data-inspectId":ue},allowOnlyRefdChild:G||y.type==="ModalDialog",onTargetMounted:y.type==="ModalDialog"?le:void 0,ref:b,children:m.cloneElement(K,{...sL({...K.props,...F},v)})})}if(H)return C.jsx(pFt,{uid:w,renderChild:I,node:y,apiBoundEvents:P,apiBoundProps:L,layoutContextRef:u,parentRendererContext:c},y.uid);(ae=u.current)!=null&&ae.wrapChild&&(K=u.current.wrapChild(oe,K,B))}catch(oe){ee=(oe==null?void 0:oe.message)||"Internal error",console.error(oe)}if(ee)return C.jsx(Fke,{errors:[ee],node:y,children:K});if((b||!qp(F))&&K&&Z.isValidElement(K)){const oe=h?Array.isArray(h)?h:[h]:[];return m.cloneElement(K,{ref:K.type===Z.Fragment?void 0:b?Un(b,K.ref):K.ref,...sL({...K.props,...K.type!==Z.Fragment?F:{}},v)},...oe)}return Z.isValidElement(K)&&h?m.cloneElement(K,null,h):K});function bFt({node:e,extractValue:t,renderChild:r,lookupAction:n,layoutContext:o},i){const a=t.asOptionalString(e.props.name);if(a&&!a.endsWith("Template"))return C.jsx(Fke,{node:e,errors:[`Slot name '${a}' is not valid. A named slot should use a name ending with 'Template'.`]});let l=null;if(qp(e.props)||(l={},Object.keys(e.props).forEach(s=>{if(s!=="name"){let u=t(e.props[s],!0);u!=null&&u._ARROW_EXPR_&&(u=n(u)),l[s]=u}})),i){if(a===void 0)return l?C.jsx(M6,{node:i.children,renderChild:i.renderChild,slotProps:l,layoutContext:o}):i.renderChild(i.children,o);if(i.props[a])return C.jsx(M6,{node:i.props[a],renderChild:i.renderChild,slotProps:l,layoutContext:o})}if(e.children&&e.children.length>0)return C.jsx(M6,{node:e.children,renderChild:r,slotProps:l??rr,layoutContext:o})}function Wke(e,...t){const r=[];if(!e)return r;const n=Object.entries(e);for(let o=0;o<n.length;o++){const[i,a]=n[o];as(a)&&t.includes(a.type)&&r.push(i)}return r}const xFt=m.memo(m.forwardRef(function({node:t,resolvedKey:r,state:n,dispatch:o,appContext:i,lookupAction:a,lookupSyncCallback:l,registerComponentApi:s,renderChild:u,statePartChanged:c,layoutContext:d,parentRenderContext:f,memoedVarsRef:p,cleanup:h,uidInfoRef:v,children:b,...y},w){var I;const k=L0(),{descriptor:E}=k.lookupComponentRenderer(t.type)||{},_=m.useRef(d),S=m.useMemo(()=>{let L=t;return L=yFt(L,E==null?void 0:E.childrenAsTemplate),L=wFt(L),L=CFt(L,v),L=_Ft(L),L},[E==null?void 0:E.childrenAsTemplate,t,v]),A=m.useMemo(()=>{var P;return typeof $t(n,(P=S.props)==null?void 0:P.data,i,!0)=="string"},[i,(I=S.props)==null?void 0:I.data,n]),O=m.useMemo(()=>kFt(S,A,v),[S,A,v]);return sFt(O)?C.jsx(uFt,{resolvedKey:r,node:O,parentState:n,parentDispatch:o,layoutContextRef:_,parentRenderContext:f,parentStatePartChanged:c,parentRegisterComponentApi:s,uidInfoRef:v,ref:w,...y,children:b}):C.jsx(vFt,{onUnmount:h,memoedVarsRef:p,node:O,state:n,dispatch:o,appContext:i,lookupAction:a,lookupSyncCallback:l,registerComponentApi:s,renderChild:u,parentRenderContext:f,layoutContextRef:_,ref:w,uidInfoRef:v,...y,children:b})}));function yFt(e,t){if(!t||!e.children||e.children.length===0)return e;if(e.props[t])throw Error("'"+t+"' is already used as a property.");return{...e,props:{...e.props,[t]:e.children},children:Ar}}function wFt(e){var o;let t=!1,r=e.loaders,n;return(o=e.children)==null||o.forEach(i=>{(i==null?void 0:i.type)==="DataSource"?(t=!0,r||(r=[]),r.push({uid:i.uid,type:"DataLoader",props:i.props,events:i.events,when:i.when})):(n||(n=[]),n.push(i))}),t?{...e,children:n,loaders:r}:e}function CFt(e,t){if(!e.props)return e;let r={...e},n=!1;return Object.entries(e.props).forEach(([o,i])=>{let a;try{a=$t(t.current,i)}catch{}(a==null?void 0:a.type)==="loader"&&(n=!0,r={...r,props:{...r.props,[o]:{type:"DataSourceRef",uid:a.uid}}})}),n?r:e}function kFt(e,t,r){var n;return!((n=e.props)!=null&&n.__DATA_RESOLVED)&&e.props&&"data"in e.props&&t?$t(r.current,e.props.data)==="loaderValue"?e:{...e,props:{...e.props,data:{type:"DataSource",props:{url:e.props.data}}}}:e}function _Ft(e){return e.props&&"raw_data"in e.props?{...e,props:{...e.props,__DATA_RESOLVED:!0,data:e.props.raw_data}}:e}function Vke({node:e,state:t,dispatch:r,appContext:n,lookupAction:o,lookupSyncCallback:i,registerComponentApi:a,renderChild:l,statePartChanged:s,layoutContext:u,parentRenderContext:c,memoedVarsRef:d,cleanup:f,uidInfoRef:p}){var b,y,w;if(!EL(e.when,t,n))return null;const h=(b=e.props)==null?void 0:b.value;if(e.type==="TextNodeCData")return h??"";if(e.type==="TextNode"){const k=$t(t,h,n,!0);return typeof k=="boolean"?k.toString():k}if(e.type==="Slot"){let k;const E=(y=e.props)==null?void 0:y.name;if(E){if(!E.endsWith("Template"))throw new Error(`Slot name '${E}' is not valid. A named slot should use a name ending with 'Template'.`);k=(w=c==null?void 0:c.props)==null?void 0:w[E]}else k=c==null?void 0:c.children;if(k||(k=e.children),k){const _=Array.isArray(k)?k:[k];if(_.length===1&&c&&(_[0].type==="TextNodeCData"||_[0].type==="TextNode"))return c.renderChild(_)}}const v=$t(t,e.uid,n,!0);return C.jsx(xFt,{resolvedKey:v,node:e,cleanup:f,statePartChanged:s,memoedVarsRef:d,state:t,dispatch:r,appContext:n,lookupAction:o,lookupSyncCallback:i,registerComponentApi:a,renderChild:l,layoutContext:u,parentRenderContext:c,uidInfoRef:p},v)}function ek(e){return getComputedStyle(e||document.body)}function TFt({rootContainer:e,routerBaseName:t,globalProps:r,standalone:n,trackContainerHeight:o,decorateComponentsWithTestId:i,debugEnabled:a,children:l,onInit:s}){const[u,c]=m.useState(null),d=_ke(),f=L0(),p=eb(),{confirm:h}=w7t(),{activeThemeId:v,activeThemeTone:b,setActiveThemeId:y,setActiveThemeTone:w,availableThemeIds:k,root:E,toggleThemeTone:_}=Wv();rje(At=>{At.code==="KeyT"&&At.altKey&&At.ctrlKey&&At.shiftKey&&y(k[(k.indexOf(v)+1)%k.length]),At.code==="KeyO"&&At.altKey&&At.ctrlKey&&At.shiftKey&&w(W6[(W6.indexOf(b)+1)%W6.length]),At.code==="KeyS"&&At.altKey&&At.ctrlKey&&At.shiftKey&&d.setDisplayStateView(!d.displayStateView)});const[S,A]=m.useState("0"),[O,I]=m.useState("0"),[L,P]=m.useState("0"),[H,j]=m.useState("0"),[W,B]=m.useState("0"),[G,z]=m.useState("0"),[F,V]=m.useState("0"),[N,Y]=m.useState("0"),[q,M]=m.useState("0"),[K,ee]=m.useState("0"),ae=At=>{const it=At.match(/^(\d+)px$/);return it?`${parseInt(it[1])-.02}px`:"0"},oe=m.useRef();Sn(()=>(o&&E&&E!==document.body&&(oe!=null&&oe.current&&oe.current.unobserve(E),o==="auto"?E.style.setProperty("--containerHeight","auto"):oe.current=new ResizeObserver(At=>{E.style.setProperty("--containerHeight",At[0].contentRect.height+"px")}),oe.current&&oe.current.observe(E)),()=>{oe!=null&&oe.current&&oe.current.unobserve(E)}),[E,oe,o]),Sn(()=>{const At=ek(E).getPropertyValue(Kp("maxWidth-phone"));A(At),I(ae(At));const it=ek(E).getPropertyValue(Kp("maxWidth-landscape-phone"));P(it),j(ae(it));const nt=ek(E).getPropertyValue(Kp("maxWidth-tablet"));B(nt),z(ae(nt));const lt=ek(E).getPropertyValue(Kp("maxWidth-desktop"));V(lt),Y(ae(lt));const ct=ek(E).getPropertyValue(Kp("maxWidth-large-desktop"));M(ct),ee(ae(ct))},[v,E]);const ue=Gv(`(max-width: ${O})`),le=Gv(`(min-width: ${S}) and (max-width: ${H})`),pe=Gv(`(min-width: ${L}) and (max-width: ${G})`),fe=Gv(`(min-width: ${W}) and (max-width: ${N})`),J=Gv(`(min-width: ${F}) and (max-width: ${K})`);let X,te;const ie=Gv(`(min-width: ${q})`);ie?(X="xxl",te=5):J?(X="xl",te=4):fe?(X="lg",te=3):pe?(X="md",te=2):le?(X="sm",te=1):ue&&(X="xs",te=0);const de=eje(),be=tje(),xe=O2(),Ie=Cl(),Ne=m.useRef(""),[Se,_e]=m.useState(0);m.useEffect(()=>{s==null||s()},[s]),m.useEffect(()=>{var it;let At="";if(Ie.hash&&(At=Ie.hash.slice(1)),Ne.current!==At&&(Ne.current=At,!((it=Ie.state)!=null&&it.preventHashScroll))){const nt=E==null?void 0:E.getRootNode(),lt="instant";requestAnimationFrame(()=>{var ct;if(nt)if(typeof ShadowRoot<"u"&&nt instanceof ShadowRoot){const Rr=nt.getElementById(Ne.current);if(!Rr)return;EFt(Rr,lt)}else(ct=document.getElementById(Ne.current))==null||ct.scrollIntoView({behavior:lt,block:"start"})})}},[Ie,Se,E]);const Ve=m.useCallback(()=>{Ne.current="",_e(At=>At+1)},[]),Ee=m.useMemo(()=>{const At={_SUPPORT_IMPLICIT_CONTEXT:!0};for(const[it,nt]of f.actionFunctions)At[it]=nt;return At},[f.actionFunctions]),je=m.useMemo(()=>({isInIFrame:de}),[de]),Ce=m.useMemo(()=>({isWindowFocused:be}),[be]),Te=m.useMemo(()=>({phone:ue,landscapePhone:le,tablet:pe,desktop:fe,largeDesktop:J,xlDesktop:ie,smallScreen:ue||le||pe,largeScreen:!(ue||le||pe),size:X,sizeIndex:te}),[ue,le,pe,fe,J,ie,X,te]),He=m.useMemo(()=>r?{...r}:rr,[r]),st=m.useMemo(()=>({version:lzt,Actions:Ee,appGlobals:He,debugEnabled:a,decorateComponentsWithTestId:i,environment:Ce,mediaSize:Te,queryClient:BSe,standalone:n,appIsInShadowDom:typeof ShadowRoot<"u"&&(E==null?void 0:E.getRootNode())instanceof ShadowRoot,...Pke,...wzt,formatFileSizeInBytes:o7e,getFileExtension:i7e,navigate:p,routerBaseName:t,confirm:h,signError:SFt,toast:go,activeThemeId:v,activeThemeTone:b,availableThemeIds:k,setTheme:y,setThemeTone:w,toggleThemeTone:_,loggedInUser:u,setLoggedInUser:c,delay:zv,embed:je,apiInterceptorContext:xe,getPropertyByPath:To,...Oke,forceRefreshAnchorScroll:Ve}),[Ee,He,a,i,Ce,Te,n,p,t,h,v,b,k,y,w,_,u,je,xe,Ve,E]),[ut,It]=m.useState(rr),sr=m.useCallback((At,it)=>{It(nt=>({...nt,[At]:it}))},[]),tr=m.useCallback((At,it)=>{It(nt=>({...nt,[At]:{...nt[At]||{},...it}}))},[]),hn=m.useMemo(()=>({registerAppState:sr,appState:ut,update:tr}),[ut,sr,tr]),zo=m.useRef(new Map),Ir=Vke({node:e,state:rr,dispatch:bt,appContext:void 0,lookupAction:bt,lookupSyncCallback:bt,registerComponentApi:bt,renderChild:bt,statePartChanged:bt,cleanup:bt,memoedVarsRef:zo});return C.jsx(bX.Provider,{value:st,children:C.jsx(che.Provider,{value:hn,children:l&&m.isValidElement(Ir)?m.cloneElement(Ir,null,l):Ir})})}function SFt(e){go.error(typeof e=="string"?e:e.message||"Something went wrong")}function EFt(e,t){n(e).reverse().forEach(o=>{const i=e.getBoundingClientRect(),a=o.getBoundingClientRect();if(i.top<a.top||i.bottom>a.bottom){const l=i.top-a.top+o.scrollTop;o.scrollTo({top:l,behavior:t})}});function n(o){const i=[];let a=o;for(;a;){let l=a.parentElement;if(!l&&a.getRootNode||!l)break;const s=getComputedStyle(l);/(auto|scroll|overlay)/.test(s.overflow+s.overflowY+s.overflowX)&&i.push(l),a=l}return i}}const Uke=m.createContext(void 0),AFt=({children:e})=>{const[t,r]=m.useState([]),n=m.useCallback(o=>{const i={timestamp:new Date,args:o};r(a=>[...a,i])},[]);return C.jsx(Uke.Provider,{value:{logs:t,addLog:n},children:e})},qke=()=>{const e=m.useContext(Uke);if(!e)throw new Error("useLogger must be used within LoggerProvider");return e};var OFt={};class L1{constructor(){this.isDev=!!OFt.VITE_DEV_MODE}static getInstance(){return L1.instance||(L1.instance=new L1),L1.instance}registerCallback(t){this.isDev&&(this.callback=t)}log(t){this.isDev&&(console.log("[xmlui.log]",...t),this.callback&&this.callback(t))}warn(t){this.isDev&&(console.warn("[xmlui.warn]",...t),this.callback&&this.callback(t))}info(t){this.isDev&&(console.info("[xmlui.info]",...t),this.callback&&this.callback(t))}error(t){this.isDev&&(console.error("[xmlui.error]",...t),this.callback&&this.callback(t))}trace(t){this.isDev&&(console.trace("[xmlui.trace]",...t),this.callback&&this.callback(t))}}const IFt=L1.getInstance(),RFt=()=>{const{addLog:e}=qke();return m.useEffect(()=>{IFt.registerCallback(e)},[e]),null},d5={overlay:"_overlay_1b3my_13",overlayBg:"_overlayBg_1b3my_24",contentWrapper:"_contentWrapper_1b3my_30",content:"_content_1b3my_30"};class Vj{constructor(){this.subscriptions=new Set,this.registeredExtensions=[]}subscribeToRegistrations(t){this.subscriptions.add(t),this.registeredExtensions.forEach(r=>{t(r)})}unSubscribeFromRegistrations(t){this.subscriptions.delete(t)}registerExtension(t){(Array.isArray(t)?t:[t]).forEach(r=>{this.registeredExtensions.push(r),this.subscriptions.forEach(n=>{n(r)})})}}const tk="xmlui",Hg="xmlui.xs";var f5=(e=>(e[e.Skip=0]="Skip",e[e.Warning=1]="Warning",e[e.Error=2]="Error",e))(f5||{});function PFt(e){if(!e)return 1;switch(e.toLowerCase()){case"warning":return 1;case"error":return 2;case"skip":return 0;default:return console.warn(`Invalid lint severity option '${e}'. Must be one of: 'warning', 'error', 'skip'. Defaulting to 'warning'.`),1}}function LFt({appDef:e,metadataProvider:t}){const r={componentName:"Main",lints:Gke({component:e.entryPoint,metadataProvider:t})},n=(e.components??[]).map(o=>({lints:Gke({component:o,metadataProvider:t}),componentName:o.name}));return[r,...n].filter(o=>o.lints.length>0)}function HFt(e){console.group(`Validation on '${e.componentName}':`),e.lints.forEach(({message:t})=>{console.warn(t)}),console.groupEnd()}function NFt(e){function t(){const r=e.map((o,i)=>({type:"VStack",props:{gap:"0px"},children:[{type:"VStack",props:{backgroundColor:"lightgrey",padding:"10px"},children:[{type:"H2",props:{value:`#${i+1}: In component '${o.componentName}':`,color:"$color-info"}},{type:"VStack",children:o.lints.map(({message:a},l)=>({type:"Text",props:{value:`${i+1}.${l+1}: ${a}`,fontWeight:"bold"}}))}]}]}));return{type:"VStack",props:{padding:"$padding-normal",gap:0},children:[{type:"H1",props:{value:"Errors found while checking Xmlui markup",padding:"$padding-normal",backgroundColor:"$color-error",color:"white"}},{type:"VStack",props:{gap:"$gap-tight",padding:"$padding-normal"},children:r}]}}return t()}function Gke({component:e,metadataProvider:t}){return"component"in e?Uj(e.component,t,[]):Uj(e,t,[])}function Uj(e,t,r){const n=e.type.startsWith(eD)?e.type.slice(eD.length+1):e.type,o=t.getComponent(n);if(o!==null&&!o.allowArbitraryProps&&$Ft(e,o,r),!e.children)return r;for(const i of e.children)Uj(i,t,r);return r}function $Ft(e,t,r){const n=Object.keys(e.props??{}).filter(a=>!t.getAttr(a)),o=Object.keys(e.events??{}).filter(a=>!t.getEvent(a)),i=Object.keys(e.api??{}).filter(a=>!t.getApi(a));n.push(...o),n.push(...i);for(const a of n)r.push(DFt(e,a))}function DFt(e,t){return{message:`Unrecognised property '${t}' on component '${e.type}'.`,kind:0}}const m5=/[\r\n<>'"&]/;class BFt{serialize(t,r){const n=Array.isArray(t)?t:[t];return o(n,0);function o(f,p){return f.map(h=>i(h,p)).join(r!=null&&r.prettify?`
|
|
682
682
|
`+a(p):"")}function i(f,p){switch(f.type){case"XmlUiComment":return l(f,p);case"XmlUiElement":return s(f,p);default:return""}}function a(f){return r!=null&&r.prettify?"".padEnd(((r==null?void 0:r.indents)??2)*f," "):""}function l(f,p){return`${a(p)}<!--${f.text}-->`}function s(f,p){var w,k;let h=`${a(p)}<${y()}`;const v=(((w=f.attributes)==null?void 0:w.length)??0)>0,b=(((k=f.childNodes)==null?void 0:k.length)??0)>0;if(f.text||v||b){if(v){const E=f.attributes.map(_=>u(_));r!=null&&r.prettify&&h.length+1+E.join(" ").length+(b?1:(r==null?void 0:r.useSpaceBeforeClose)??!1?3:2)>((r==null?void 0:r.lineLength)??80)?(E.forEach(S=>{h+=`
|
|
683
683
|
`+a(p+1)+S}),((r==null?void 0:r.breakClosingTag)??!1)&&(h+=`
|
|
684
684
|
`+a(p))):h+=" "+E.join(" ")}if(f.text||b){if(h+=">",f.text){const E=f.preserveSpaces?d(f.text):c(f.text);r!=null&&r.prettify&&h.length+E.length+f.name.length+3>((r==null?void 0:r.lineLength)??80)?h+=`
|
|
@@ -697,7 +697,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
697
697
|
`).forEach(k=>{if(!(k.trim()===""&&v)){v=!1,b.push(k);const E=k.search(/\S|$/);k.trim()!==""&&(y===void 0||E<y)&&(y=E)}}),b.map(k=>k.slice(y).replace(/inspect="true"/g,"")).join(`
|
|
698
698
|
`)},[n,a]);return SGt.VITE_USER_COMPONENTS_Inspect!=="false"&&r&&n!==null?C.jsx(DSe,{isOpen:r,setIsOpen:t,clickPosition:o,children:C.jsx(mD,{height:"500px",allowPlaygroundPopup:!0,initiallyShowCode:(l==null?void 0:l.initiallyShowCode)??!0,splitView:!0,controlsWidth:"120px",closeButton:C.jsx(fD,{trigger:C.jsx("button",{className:Jr.headerButton,onClick:()=>{t(!1)},children:C.jsx(Sut,{})}),label:"Close"}),markdown:`\`\`\`xmlui
|
|
699
699
|
${u}
|
|
700
|
-
\`\`\``,api:e,app:u,components:s})}):null};var AGt={};const OGt=({node:e,previewMode:t=!1,routerBaseName:r="",contributes:n=rr,globalProps:o,standalone:i,trackContainerHeight:a,decorateComponentsWithTestId:l,debugEnabled:s,defaultTheme:u,defaultTone:c,resources:d,resourceMap:f,sources:p,children:h,projectCompilation:v,onInit:b})=>{t&&(Zp.canUseDOM=!1);const y=(o==null?void 0:o.name)||"XMLUI app",w=(o==null?void 0:o.useHashBasedRouting)??!0,k=C.jsxs(Zp,{children:[C.jsx(Jp,{defaultTitle:y,titleTemplate:`%s | ${y}`}),C.jsxs(AFt,{children:[C.jsx(RFt,{}),C.jsx(azt,{children:C.jsx(CTt,{resourceMap:f,themes:n.themes,defaultTheme:u,defaultTone:c,resources:d,children:C.jsx(s4t,{sources:p,projectCompilation:v,mockApi:o==null?void 0:o.demoMockApi,children:C.jsx(C7t,{children:C.jsxs(TFt,{onInit:b,rootContainer:e,routerBaseName:r,globalProps:o,standalone:i,decorateComponentsWithTestId:l,debugEnabled:s,trackContainerHeight:a,children:[C.jsx(EGt,{}),h]})})})})})]})]}),E=t?FMe:w?GK:QMe,_=t?!1:typeof window>"u"||AGt.VITE_REMIX;return C.jsx(Z.StrictMode,{children:C.jsx(P0,{node:e,location:"root-outer",children:C.jsxs(yRe,{client:BSe,children:[!!_&&k,!_&&C.jsx(E,{basename:E===GK?void 0:r,children:k})]})})})};zRe();const BSe=new fRe({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});function az({apiInterceptor:e,contributes:t,node:r,decorateComponentsWithTestId:n,debugEnabled:o,defaultTheme:i,defaultTone:a,resources:l,globalProps:s,standalone:u,trackContainerHeight:c,routerBaseName:d,previewMode:f,resourceMap:p,sources:h,extensionManager:v,children:b,projectCompilation:y,isNested:w=!1,onInit:k}){const E=m.useMemo(()=>({type:"Container",uid:"root",children:[{type:"Theme",props:{root:!0},children:[r]}],uses:[]}),[r]);if(y){const S=y.entrypoint.dependencies;IGt(S,y.components)}const _=m.useMemo(()=>({...s,isNested:w}),[s,w]);return C.jsx(b7t,{contributes:t,extensionManager:v,children:C.jsx(x7t,{debugConfig:s==null?void 0:s.debug,children:C.jsx(OGt,{projectCompilation:y,resourceMap:p,apiInterceptor:e,node:E,contributes:t,resources:l,routerBaseName:d,decorateComponentsWithTestId:n,debugEnabled:o,defaultTheme:i,defaultTone:a,globalProps:_,standalone:u,trackContainerHeight:c,previewMode:f,sources:h,onInit:k,children:b})})})}function IGt(e,t){const r=t.reduce(function(a,{definition:{name:l},dependencies:s}){return a.set(l,s)},new Map),n=new Set;return o(e),n;function o(i){if(i){for(const a of i)if(!n.has(a)){n.add(a);const l=r.get(a);o(l)}}}}function RGt(e,t,r,n){const o=[],i={},a=new Set,l=new Set;if(e&&yk(e,null,s,i,r),!i.abort)for(const f of t)u(f.name)||c("M007","Component",f.name),f.name==="Component"&&c("M008","Component",f.name),r.componentRegistered(f.name)&&c("M009","Component",f.name),l.has(f.name)?c("M010","Component",f.name):l.add(f.name),a.clear(),yk(f.component,null,s,i,r);return o;function s(f,p,h,v){if(!h)return;if(!r.componentRegistered(f.type)){c("M001",(p==null?void 0:p.type)??"Root",f.type);return}f.uid&&(u(f.uid)?a.has(f.uid)?c("M003",f.type,f.uid):a.add(f.uid):c("M002",f.type,f.type,f.uid));const b=r.getComponentProps(f.type)??{},y=f.props??{};for(const _ of Object.keys(y))if(b[_]){const A=y[_];if(typeof A=="string")try{v3(A)}catch(O){c("M006",f.type,_,O.message)}}else{const A=_.split("-");A.length===1&&P1.includes(_)||A.length===2&&P1.includes(A[0])&&f7e.includes(A[1])||r.acceptArbitraryProps(f.type)||c("M005",f.type,f.type,_)}const w=r.getComponentEvents(f.type)??{},k=f.events??{};for(const _ of Object.keys(k))if(w[_]){const A=k[_];if(typeof A=="string"){const O=new Jf(A);try{O.parseStatements(),O.errors.length>0&&c("M012",f.type,_,O.errors[0].text)}catch(I){c("M012",f.type,_,I.message)}}}else c("M011",f.type,f.type,_);const E=r.getComponentValidator(f.type);if(E){const _=E(f,n);if(_)if(Array.isArray(_))for(const S of _)c("M013",f.type,S);else c("M013",f.type,_)}}function u(f){return/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(f)}function c(f,p,...h){d(f,p,!1,...h)}function d(f,p,h,...v){let b=PGt[f]??"Unkonwn error";v&&v.forEach((w,k)=>b=y(b,`{${k}}`,v[k].toString())),o.push({name:p,code:f,message:b,isWarning:h,args:v});function y(w,k,E){do w=w.replace(k,E);while(w.includes(k));return w}}}function yk(e,t,r,n={},o){if(r(e,t,!0,n),n.abort||n.cancel)return;const i=o.getComponentProps(e.type)??{},a=e.props??{};for(const u of Object.keys(a)){const c=i[u];if(!c)continue;const d=a[u];if(c.type==="ComponentDef"&&d.type&&(yk(d,e,r,n,o),n.abort||n.cancel))return}const l=o.getComponentEvents(e.type)??{},s=e.events??{};for(const u of Object.keys(s)){if(!l[u])continue;const d=s[u];if(typeof d=="object"&&d.type){if(yk(d,e,r,n,o),n.abort)return;if(n.cancel)break}}if(e.children)for(const u of e.children){if(yk(u,e,r,n,o),n.abort)return;if(n.cancel)break}r(e,void 0,!1,n)}const PGt={M001:"The component '{0}' is not registered",M002:"The '{0}' element has an invalid id: '{1}'",M003:"Invalid component identifier: '{0}'",M004:"Duplicated component identifier: '{0}'",M005:"The '{0}' element has an invalid property: '{1}'",M006:"Parsing property value of '{0}' failed: {1}",M007:"The name of a reusable component is invalid: '{0}'",M008:"The name of a reusable component must not be '{0}', as it is a reserved name",M009:"A reusable component cannot have the name of a registered component: '{0}'",M010:"Duplicated reusable component name: '{0}'",M011:"The '{0}' element has an invalid event: '{1}'",M012:"Parsing event value of '{0}' failed: {1}",M013:"Component validation failed: '{0}'"},jSe="DataSource",LGt={status:"stable",description:"`DataSource` fetches and caches data from API endpoints, versus [`APICall`](/components/APICall) which creates, updates or deletes data.",props:{method:{description:"Set the HTTP method.",defaultValue:"get",availableValues:$Y},id:{description:"Set the ID used by other components to access the retrieved data in the `value`property of a `DataSource`, or status info in the `loaded` and `error` properties.When no `id` is set, the component cannot be used programmatically.",isRequired:!0,valueType:"string"},url:{description:"Set the URL.",isRequired:!0,valueType:"string"},body:{description:"Set the optional request body. The object you pass is serialized as a JSON string.",valueType:"any"},rawBody:{description:"Set the request body with no serialization. Use it to send a payload that has already been serialized to a JSON string.",valueType:"string"},queryParams:{description:"Append optional key-value pairs to the URL.",valueType:"any"},headers:{description:"Set request headers. Pass an object whose keys are header names and values are header values.",valueType:"any"},pollIntervalInSeconds:{description:"Set the interval for periodic data fetching. If the data changes on refresh, XMLUI will re-render components that refer directly or indirectly to the `DataSource`. If not set or set to zero, the component does not poll for data.",valueType:"number"},inProgressNotificationMessage:{description:"Set the message to display when the data fetch is in progress. If the property value is not set, no progress message is displayed.",valueType:"string"},completedNotificationMessage:{description:"Set the message to display when the data fetch completes.If the property value is not set, no completion message is displayed.",valueType:"string"},errorNotificationMessage:{description:"Set the message to display when the there is an error. You can use the `$error` context value in an expression to refer to the original error message.",valueType:"string"},resultSelector:{description:"Set an optional object key to extract a subset of the response data. If this value is not set, the entire response body is considered the result.",valueType:"string"},transformResult:{description:"Set an optional function to perform a final transformation of the response data. If this value is not set, the result is not transformed."},prevPageSelector:{description:`When using \`${jSe}\` with paging, the response may contain information about the previous and next page. This property defines the selector that extracts the previous page information from the response deserialized to an object.`},nextPageSelector:{description:`When using \`${jSe}\` with paging, the response may contain information about the previous and next page. This property defines the selector that extracts the next page information from the response deserialized to an object.`},structuralSharing:{description:"This property allows structural sharing. When turned on, `DataSource` will keep the original reference if nothing has changed in the data. If a subset has changed, `DataSource` will keep the unchanged parts and only replace the changed parts. If you do not need this behavior, set this property to `false`.",defaultValue:"true"}},events:{loaded:re("The component triggers this event when the fetch operation has been completed and the data is loaded. The event has two arguments. The first is the data loaded; the second indicates if the event is a result of a refetch."),error:re("This event fires when a request results in an error.")},apis:{value:re("This property retrieves the data queried from the source after optional transformations."),inProgress:re("This property indicates if the data is being fetched."),isRefetching:re("This property indicates if the data is being re-fetched."),loaded:re("This property indicates if the data has been loaded."),refetch:re("This method requests the re-fetch of the data.")}},HGt={a:ige,address:sge,area:cge,article:fge,aside:pge,audio:gge,b:bge,bdi:yge,bdo:Cge,blockquote:_ge,br:Sge,button:Age,canvas:Ige,caption:Pge,cite:Hge,code:c4,col:Dge,colgroup:jge,data:zge,datalist:Wge,dd:Uge,del:Gge,details:Kge,dfn:Qge,dialog:Jge,div:tve,dl:nve,dt:ive,em:VD,embed:sve,fieldset:cve,figcaption:fve,figure:pve,footer:gve,form:bve,h1:yve,h2:Cve,h3:_ve,h4:Sve,h5:Ave,h6:Ive,header:Pve,hr:Hve,i:$ve,iframe:Bve,img:Mve,input:Fve,ins:Vve,kbd:qve,label:Yve,legend:Xve,li:Zve,main:ebe,map:rbe,mark:obe,menu:abe,meter:sbe,nav:cbe,object:fbe,ol:pbe,optgroup:gbe,option:bbe,output:ybe,p:Cbe,param:_be,picture:Sbe,pre:Abe,progress:Ibe,q:Pbe,rp:Hbe,rt:$be,ruby:Bbe,s:Mbe,samp:Fbe,section:Vbe,select:qbe,small:Ybe,source:Xbe,span:Zbe,strong:e0e,sub:r0e,summary:o0e,sup:a0e,table:s0e,tbody:c0e,td:f0e,template:p0e,textarea:g0e,tfoot:b0e,th:y0e,thead:C0e,time:_0e,tr:S0e,track:A0e,u:I0e,ul:P0e,var:KEt,video:N0e,wbr:D0e,Accordion:Nhe,APICall:Jhe,App:Qse,AppHeader:ppe,AppState:fhe,AutoComplete:rge,Avatar:Uee,Backdrop:oge,Badge:Fee,Bookmark:uhe,Breakout:Khe,Button:WZ,Card:Kee,Carousel:Ghe,ChangeListener:kre,Checkbox:fpe,CODE:c4,ColorPicker:j0e,Column:Ipe,ContentSeparator:Gee,DataSource:LGt,DatePicker:$pe,DropdownMenu:hpe,EM:VD,Fragment:JJ,MenuItem:vpe,SubMenuItem:xpe,EmojiSelector:Mse,ExpandableItem:wpe,FileInput:aue,FileUploadDropZone:Pte,FlowLayout:Jee,Footer:rue,Form:Ple,FormItem:Ele,FormSection:dpe,Heading:UJ,H1:qJ,H2:GJ,H3:YJ,H4:KJ,H5:XJ,H6:QJ,HoverCard:Kse,Icon:Lte,Image:Mte,Items:$te,Link:jZ,List:xre,Logo:oue,Markdown:upe,MenuSeparator:ype,ModalDialog:ote,NavGroup:nue,NavLink:BZ,NavPanel:Zse,NoResult:ite,NumberBox:zse,Option:tge,PageMetaTitle:Fte,Page:eue,Pages:tue,PositionedContainer:yre,ProgressBar:Vte,Queue:ore,RadioGroup:iue,RealTimeAdapter:Rle,Redirect:Dpe,Select:cpe,SelectionStore:Bte,Slider:Bhe,SpaceFiller:sK,Spinner:lue,Splitter:qte,HSplitter:Gte,VSplitter:Yte,Stack:Xv,CHStack:iK,CVStack:oK,HStack:nK,VStack:rK,StickyBox:Mee,Switch:mpe,Table:Iee,TableOfContents:vhe,TabItem:Dhe,Tabs:she,Text:ZJ,TextArea:xK,TextBox:tN,PasswordInput:Ole,Theme:Ape,ToneChangerButton:Xhe,ToneSwitch:Zhe,Tree:lGe,BarChart:mke,DonutChart:hke,LabelList:xke,Legend:yke,LineChart:wke,PieChart:Cke};class NGt{constructor(t){this.metadataCollection=t}componentNames(){return Object.keys(this.metadataCollection)}getComponent(t){const r=this.metadataCollection[t];return r?new $Gt(r):null}}class $Gt{constructor(t){this.metadata=t}getProp(t){return this.metadata.props[t]??R5[t]}getAttr(t){var i,a,l;if(Z$.test(t)){const s=nkt(t),u=(i=this.metadata.events)==null?void 0:i[s];if(u)return u}const r=(a=this.metadata.props)==null?void 0:a[t];if(r)return r;const n=(l=this.metadata.apis)==null?void 0:l[t];if(n)return n;const o=MSe(t);return o||R5[t]}getAttrForKind({name:t,kind:r}){switch(r){case"api":return this.metadata.apis[t];case"event":return this.metadata.events[t];case"prop":return this.metadata.props[t];case"implicit":return R5[t];case"layout":return MSe(t)}}getAllAttributes(){const t=[];for(const r of Object.keys(this.metadata.props??{}))t.push({name:r,kind:"prop"});for(const r of Object.keys(this.metadata.events??{}))t.push({name:r,kind:"event"});for(const r of Object.keys(this.metadata.apis??{}))t.push({name:r,kind:"api"});for(const r of P1)t.push({name:r,kind:"layout"});for(const r of Object.keys(R5))t.push({name:r,kind:"implicit"});return t}getEvent(t){var r;return(r=this.metadata.events)==null?void 0:r[t]}getApi(t){var r;return(r=this.metadata.apis)==null?void 0:r[t]}get events(){return this.metadata.events}get apis(){return this.metadata.apis}get contextVars(){return this.metadata.contextVars}get allowArbitraryProps(){return this.metadata.allowArbitraryProps}get shortDescription(){return this.metadata.shortDescription}getMetadata(){return this.metadata}}function MSe(e){const t={description:"Layout property. Not yet documented"};if(P1.includes(e))return t;for(const r of OY){const n="-"+r.value;if(e.endsWith(n)){const o=e.slice(0,-n.length);if(P1.includes(o))return t}}return null}const R5={inspect:{description:"Determines whether the component can be inspected or not",defaultValue:!1,valueType:"boolean"},data:{description:"Specifies the data source for a component. Can be a URL string (fetched automatically), a DataSource or an expression to evaluate. Changes to this property trigger UI updates once data is loaded."},when:{description:"Specifies a condition that must be met for the component to be displayed",defaultValue:!0,valueType:"boolean"}};var df={VITE_XMLUI_VERSION:"0.9.82 (built 7/22/2025)"};const wk="Main."+tk,DGt="Main."+Hg,zSe="config.json",lz=new NGt(HGt);function FSe({appDef:e,decorateComponentsWithTestId:t,debugEnabled:r=!1,runtime:n,extensionManager:o,waitForApiInterceptor:i=!1}){const{standaloneApp:a,projectCompilation:l}=BGt(e,n,o);jGt(a);const{apiInterceptor:s,name:u,appGlobals:c,defaultTheme:d,defaultTone:f,resources:p,resourceMap:h,entryPoint:v,components:b,themes:y,sources:w}=a||{},k=m.useMemo(()=>({name:u,...c||{}}),[c,u]);let E=m.useMemo(()=>({compoundComponents:b,themes:y}),[b,y]);if(!a)return null;const _=typeof window<"u"&&window.XMLUI_MOCK_API?window.XMLUI_MOCK_API:s,S=t||(typeof window<"u"?window.XMLUI_MOCK_TEST_ID:!1),A=(c==null?void 0:c.useHashBasedRouting)??!0;return C.jsx(tD,{interceptor:_,useHashBasedRouting:A,waitForApiInterceptor:i,children:C.jsx(az,{projectCompilation:l,decorateComponentsWithTestId:S,node:v,standalone:!0,debugEnabled:r,routerBaseName:typeof window<"u"&&window.__PUBLIC_PATH||"",globalProps:k,defaultTheme:d,defaultTone:f,resources:p,resourceMap:h,sources:w,extensionManager:o,contributes:E})})}async function sz(e){if(!e.ok)throw new Error(`Failed to fetch ${e.url}`);const t=await e.text(),r=e.url;let{component:n,errors:o,erroneousCompoundComponentName:i}=A2(t,r);if(o.length>0){const a=i??e.url.substring(e.url.lastIndexOf("/")+1,e.url.length-6);n=H6(o,r,a)}return{component:n,src:t,file:r,hasError:o.length>0}}async function uz(e){if(!e.ok)throw new Error(`Failed to fetch ${e.url}`);const t=await e.text(),r=new Jf(t);try{r.parseStatements()}catch(n){if(console.error("Error parsing code behind",n),r.errors.length>0)return{component:ikt(r.errors[0],e.url),file:e.url,hasError:!0}}try{const n=kme("Main",t);return Object.keys(n.moduleErrors??{}).length>0?{component:akt(n.moduleErrors,e.url),file:e.url,hasError:!0}:(UCt(n),{src:t,codeBehind:n,file:e.url})}catch(n){console.error("Error collecting code behind",n)}}function P5(e,t){return e.endsWith(`/${t}.ts`)||e.endsWith(`/${t}.js`)||e.endsWith(`/${t}.${tk}`)||e.endsWith(`/${t}.${Hg}`)}function WSe(e,t){return e.includes(`/${t}/`)}function VSe(e){const t={entrypoint:{filename:"",definition:null,dependencies:new Set},components:[],themes:{}},r={},n={},o={},i=[];let a,l,s,u;for(const[p,h]of Object.entries(e)){if(P5(p,"config")&&(a=h.default),(P5(p,"Main")||P5(p,"App"))&&(p.endsWith(Hg)?(s=h.default,t.entrypoint.codeBehindSource=h.default.src):(t.entrypoint.filename=p,l=h.default.component,t.entrypoint.definition=l,t.entrypoint.markupSource=h.default.src,h.default.file&&(r[h.default.file]=h.default.src))),P5(p,"api")&&(u=h.default),WSe(p,"components"))if(p.endsWith(`.${Hg}`)){o[p]=h.default;const v=t.components.findLast(({filename:b})=>{const y=p.lastIndexOf(Hg),w=b.lastIndexOf(tk);return b.substring(0,w)===p.substring(0,y)});v.codeBehindSource=h.default.src}else{n[p]=h.default.component,r[h.default.file]=h.default.src;const v={definition:h.default.component,filename:p,markupSource:h.default.src,dependencies:new Set};t.components.push(v)}WSe(p,"themes")&&i.push(h.default)}const c=(a==null?void 0:a.entryPoint)||l,d={...c,vars:{...s==null?void 0:s.vars,...c==null?void 0:c.vars},functions:s==null?void 0:s.functions,scriptError:s==null?void 0:s.moduleErrors};let f=[];return a!=null&&a.components?f=a.components:Object.entries(n).forEach(([p,h])=>{const v=o[`${p}.xs`],b={...h,component:{...h.component,vars:{...h.component.vars,...v==null?void 0:v.vars},functions:v==null?void 0:v.functions,scriptError:v==null?void 0:v.moduleErrors}};f.push(b)}),{standaloneApp:{...a,entryPoint:d,components:f,themes:(a==null?void 0:a.themes)||i,apiInterceptor:(a==null?void 0:a.apiInterceptor)||u,sources:r},projectCompilation:t}}function USe(e,t){return t?{...t,entryPoint:t.entryPoint||e.entryPoint,components:t.components||e.components,themes:t.themes||e.themes,apiInterceptor:t.apiInterceptor||e.apiInterceptor}:e}function qSe(e,t){const r=new URL(e,"http://dummy.com");return new URL(t,r).pathname.substring(1)}async function L5(e){try{const t=await ff(e);if(!t.ok)throw new Error(`Failed to fetch ${e}`);const r=await t.text();try{return JSON.parse(r)}catch(n){console.warn(`Failed to parse ${e} as JSON, attempting YAML parsing.`);try{return zU.load(r)}catch{throw n}}}catch(t){const r=e.replace(/\.json$/,".yml");try{const n=await ff(r);if(!n.ok)throw new Error(`Failed to fetch ${r}`);const o=await n.text();return zU.load(o)}catch(n){throw console.error(`Failed to load theme file: ${e} (JSON error:`,t,"YAML error:",n,")"),new Error(`Failed to load theme file ${e} in either JSON or YAML format`)}}}async function ff(e){return fetch(gP(e),{headers:{"Cache-Control":"no-cache, no-store"}})}function BGt(e,t=rr,r){const[n,o]=m.useState(()=>{const l=VSe(t),s=USe(l.standaloneApp,e);if((df.VITE_DEV_MODE||df.VITE_BUILD_MODE==="INLINE_ALL")&&!df.VITE_STANDALONE){if(!s)throw new Error("couldn't find the application metadata");return s}return null}),[i,a]=m.useState(null);return Sn(()=>{(async function(){var H,j,W,B,G;const l=VSe(t),s=USe(l.standaloneApp,e);if((df.VITE_DEV_MODE||df.VITE_BUILD_MODE==="INLINE_ALL")&&!df.VITE_STANDALONE){if(!s)throw new Error("couldn't find the application metadata");const z=cz(s,lz);z&&(s.entryPoint=z),dz({projectCompilation:l.projectCompilation,extensionManager:r}),a(l.projectCompilation),o(s);return}if(df.VITE_BUILD_MODE==="CONFIG_ONLY"){const F=await(await ff(zSe)).json(),V=[];(H=F.themes)==null||H.forEach(M=>{V.push(L5(M))});const N=await Promise.all(V),Y={...s,name:F.name,appGlobals:F.appGlobals,defaultTheme:F.defaultTheme,resources:F.resources,resourceMap:F.resourceMap,themes:N},q=cz(Y,lz);q&&(Y.entryPoint=q),dz({projectCompilation:l.projectCompilation,extensionManager:r}),a(l.projectCompilation),o(Y);return}const u=new Promise(async z=>{try{const F=await ff(wk);F.ok?z(sz(F)):z({component:okt(`Failed to load the main component (${wk})`),file:wk,hasError:!0})}catch{z(null)}});let c;try{c=await(await ff(zSe)).json()}catch{}let d;((c==null?void 0:c.themes)??[]).length===0&&(c!=null&&c.defaultTheme)?d=[L5(`themes/${c==null?void 0:c.defaultTheme}.json`)]:d=(j=c==null?void 0:c.themes)==null?void 0:j.map(z=>L5(z));const f=(W=c==null?void 0:c.components)==null?void 0:W.map(async z=>{const F=await ff(z);return z.endsWith(`.${tk}`)?await sz(F):await uz(F)}),[p,h,v]=await Promise.all([u,Promise.all(f||[]),Promise.all(d||[])]),b=[];p.hasError&&b.push(p.component);let y=null;((B=p.component.props)==null?void 0:B.codeBehind)!==void 0&&(y=await new Promise(async z=>{var F;try{const V=await ff(qSe(wk,((F=p.component.props)==null?void 0:F.codeBehind)||DGt)),N=await uz(V);z(N.hasError?N:N.codeBehind)}catch{z(null)}}),y.hasError&&b.push(y.component)),h.forEach(z=>{z.hasError&&b.push(z.component)});const w={},k={};p.file&&(w[p.file]=p.src,l.projectCompilation.entrypoint.filename=wk,l.projectCompilation.entrypoint.definition=p.component,l.projectCompilation.entrypoint.markupSource=p.src,(y==null?void 0:y.src)!==void 0&&(l.projectCompilation.entrypoint.codeBehindSource=y.src)),h.forEach(z=>{var F;(F=z==null?void 0:z.file)!=null&&F.endsWith(`.${Hg}`)?k[z.file]=z.codeBehind:z.file&&(w[z.file]=z.src)});const E={...p.component,vars:{...y==null?void 0:y.vars,...p.component.vars},functions:y==null?void 0:y.functions,scriptError:y==null?void 0:y.moduleErrors},_=(G=E.props)==null?void 0:G.defaultTheme;_&&typeof _=="string"&&!_.includes("{")&&!vD.find(z=>z.id===_)&&!v.find(z=>z.id===_)&&v.push(await L5(`themes/${_}.json`));const S=h.filter(z=>{var F;return!((F=z==null?void 0:z.file)!=null&&F.endsWith(".xmlui.xs"))}).map(z=>{const F=k[z.file+".xs"];return{...z.component,component:{...z.component.component,vars:{...z.component.component.vars,...F==null?void 0:F.vars},functions:F==null?void 0:F.functions,scriptError:F==null?void 0:F.moduleErrors}}});let A=GSe(E,S,void 0,r);const O=new Set;for(;A.size>0;){const z=[...A].map(async V=>{var N,Y;try{const M=await ff(`components/${V}.${tk}`),K=await sz(M);K.hasError&&b.push(K.component),w[K.file]=K.src;const ee={dependencies:new Set,filename:K.file,markupSource:K.src,definition:K.component};let ae=null;"codeBehind"in K.component&&((N=K.component)==null?void 0:N.codeBehind)!==void 0&&(ae=await new Promise(async ue=>{var le;try{const pe=await ff(qSe(`components/${V}`,((le=K.component)==null?void 0:le.codeBehind)||`${V}.${Hg}`)),fe=await uz(pe);fe.hasError&&b.push(fe.component),ue(fe.hasError?fe.component:fe)}catch{ue(null)}}),ae&&"src"in ae&&(ee.codeBehindSource=ae.src)),l.projectCompilation.components.push(ee);const oe={...K.component,component:{...K.component.component,vars:{...K.component.component.vars,...(Y=ae==null?void 0:ae.component)==null?void 0:Y.vars}}};return ae&&"codeBehind"in ae&&(oe.component.functions=ae.codeBehind.functions,oe.component.scriptError=ae.codeBehind.moduleErrors),oe}catch{return O.add(V),null}}),F=await Promise.all(z);S.push(...F.filter(V=>!!V)),A=GSe(E,S,O,r)}const I={...c,themes:v,sources:w,components:S,entryPoint:E},L=cz(I,lz),P=b.length>0?{type:"VStack",props:{gap:0,padding:0},children:b}:null;P?(L&&P.children.push(L),I.entryPoint=P):L&&(I.entryPoint=L),dz({projectCompilation:l.projectCompilation,extensionManager:r}),a(l.projectCompilation),o(I)})()},[t,e]),{standaloneApp:n,projectCompilation:i}}function GSe(e,t,r=new Set,n){const o=new o5({compoundComponents:t},n),i=RGt(e,t,{getComponentProps:a=>{var l,s;return(s=(l=o.lookupComponentRenderer(a))==null?void 0:l.descriptor)==null?void 0:s.props},acceptArbitraryProps:()=>!0,getComponentValidator:()=>null,getComponentEvents:()=>null,componentRegistered:a=>o.hasComponent(a)});return o.destroy(),new Set(i.filter(a=>a.code==="M001").map(a=>a.args[0].replace("#app-ns.","")).filter(a=>!r.has(a)&&!a.includes(".")))}function jGt(e){const t=m.useRef(!1);m.useEffect(()=>{if(t.current)return;t.current=!0;let r=`XMLUI version: ${df.VITE_XMLUI_VERSION}`;e!=null&&e.name&&(r+=`; ${e.name} version: ${df.VITE_APP_VERSION||"dev"}`),console.log(r)},[e==null?void 0:e.name])}let H5=null;function YSe(e,t=[],r=new Vj){r.registerExtension(t);let n=document.getElementById("root");return n||(n=document.createElement("div"),n.setAttribute("id","root"),document.body.appendChild(n)),H5||(H5=$_.createRoot(n)),H5.render(C.jsx(FSe,{runtime:e,extensionManager:r})),H5}function cz(e,t){var n;const r=PFt((n=e.appGlobals)==null?void 0:n.lintSeverity);if(r!==f5.Skip){const o=LFt({appDef:e,metadataProvider:t});if(o.length>0){if(r===f5.Warning)o.forEach(HFt);else if(r===f5.Error)return NFt(o)}return null}}function dz({projectCompilation:{components:e,entrypoint:t},extensionManager:r}){const n=new o5({},r),o=KSe(t.definition,n);t.dependencies=o;for(const i of e){const a=KSe(i.definition.component,n);a.delete(i.definition.name),i.dependencies=a}n.destroy()}function KSe(e,t){return XSe(e,t,new Set)}function XSe(e,t,r){const n=e.type;if(t.hasComponent(n)||r.add(n),!e.children)return r;for(const o of e.children)XSe(o,t,r);return r}const QSe=new Vj;document.addEventListener("DOMContentLoaded",function(){if(!document.getElementById("root")){const e=document.createElement("div");e.id="root",document.getElementsByTagName("body")[0].appendChild(e)}YSe(void 0,void 0,QSe)}),window.React=Z,window.jsxRuntime=O5e,window.ReactDOM=hv;const MGt={...jFt,standalone:QSe};function ZSe(e,t){return function(){return e.apply(t,arguments)}}const{toString:zGt}=Object.prototype,{getPrototypeOf:fz}=Object,N5=(e=>t=>{const r=zGt.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Gu=e=>(e=e.toLowerCase(),t=>N5(t)===e),$5=e=>t=>typeof t===e,{isArray:V1}=Array,Ck=$5("undefined");function FGt(e){return e!==null&&!Ck(e)&&e.constructor!==null&&!Ck(e.constructor)&&Xl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const JSe=Gu("ArrayBuffer");function WGt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&JSe(e.buffer),t}const VGt=$5("string"),Xl=$5("function"),e3e=$5("number"),D5=e=>e!==null&&typeof e=="object",UGt=e=>e===!0||e===!1,B5=e=>{if(N5(e)!=="object")return!1;const t=fz(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},qGt=Gu("Date"),GGt=Gu("File"),YGt=Gu("Blob"),KGt=Gu("FileList"),XGt=e=>D5(e)&&Xl(e.pipe),QGt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xl(e.append)&&((t=N5(e))==="formdata"||t==="object"&&Xl(e.toString)&&e.toString()==="[object FormData]"))},ZGt=Gu("URLSearchParams"),[JGt,eYt,tYt,rYt]=["ReadableStream","Request","Response","Headers"].map(Gu),nYt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function kk(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),V1(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let l;for(n=0;n<a;n++)l=i[n],t.call(null,e[l],l,e)}}function t3e(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const zg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,r3e=e=>!Ck(e)&&e!==zg;function mz(){const{caseless:e}=r3e(this)&&this||{},t={},r=(n,o)=>{const i=e&&t3e(t,o)||o;B5(t[i])&&B5(n)?t[i]=mz(t[i],n):B5(n)?t[i]=mz({},n):V1(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&kk(arguments[n],r);return t}const oYt=(e,t,r,{allOwnKeys:n}={})=>(kk(t,(o,i)=>{r&&Xl(o)?e[i]=ZSe(o,r):e[i]=o},{allOwnKeys:n}),e),iYt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),aYt=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},lYt=(e,t,r,n)=>{let o,i,a;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=r!==!1&&fz(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},sYt=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},uYt=e=>{if(!e)return null;if(V1(e))return e;let t=e.length;if(!e3e(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},cYt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&fz(Uint8Array)),dYt=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},fYt=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},mYt=Gu("HTMLFormElement"),pYt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),n3e=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),hYt=Gu("RegExp"),o3e=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};kk(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},gYt=e=>{o3e(e,(t,r)=>{if(Xl(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Xl(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},vYt=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return V1(e)?n(e):n(String(e).split(t)),r},bYt=()=>{},xYt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function yYt(e){return!!(e&&Xl(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const wYt=e=>{const t=new Array(10),r=(n,o)=>{if(D5(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=V1(n)?[]:{};return kk(n,(a,l)=>{const s=r(a,o+1);!Ck(s)&&(i[l]=s)}),t[o]=void 0,i}}return n};return r(e,0)},CYt=Gu("AsyncFunction"),kYt=e=>e&&(D5(e)||Xl(e))&&Xl(e.then)&&Xl(e.catch),i3e=((e,t)=>e?setImmediate:t?((r,n)=>(zg.addEventListener("message",({source:o,data:i})=>{o===zg&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),zg.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Xl(zg.postMessage)),_Yt=typeof queueMicrotask<"u"?queueMicrotask.bind(zg):typeof process<"u"&&process.nextTick||i3e,Be={isArray:V1,isArrayBuffer:JSe,isBuffer:FGt,isFormData:QGt,isArrayBufferView:WGt,isString:VGt,isNumber:e3e,isBoolean:UGt,isObject:D5,isPlainObject:B5,isReadableStream:JGt,isRequest:eYt,isResponse:tYt,isHeaders:rYt,isUndefined:Ck,isDate:qGt,isFile:GGt,isBlob:YGt,isRegExp:hYt,isFunction:Xl,isStream:XGt,isURLSearchParams:ZGt,isTypedArray:cYt,isFileList:KGt,forEach:kk,merge:mz,extend:oYt,trim:nYt,stripBOM:iYt,inherits:aYt,toFlatObject:lYt,kindOf:N5,kindOfTest:Gu,endsWith:sYt,toArray:uYt,forEachEntry:dYt,matchAll:fYt,isHTMLForm:mYt,hasOwnProperty:n3e,hasOwnProp:n3e,reduceDescriptors:o3e,freezeMethods:gYt,toObjectSet:vYt,toCamelCase:pYt,noop:bYt,toFiniteNumber:xYt,findKey:t3e,global:zg,isContextDefined:r3e,isSpecCompliantForm:yYt,toJSONObject:wYt,isAsyncFn:CYt,isThenable:kYt,setImmediate:i3e,asap:_Yt};function lr(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}Be.inherits(lr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Be.toJSONObject(this.config),code:this.code,status:this.status}}});const a3e=lr.prototype,l3e={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{l3e[e]={value:e}}),Object.defineProperties(lr,l3e),Object.defineProperty(a3e,"isAxiosError",{value:!0}),lr.from=(e,t,r,n,o,i)=>{const a=Object.create(a3e);return Be.toFlatObject(e,a,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),lr.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const TYt=null;function pz(e){return Be.isPlainObject(e)||Be.isArray(e)}function s3e(e){return Be.endsWith(e,"[]")?e.slice(0,-2):e}function u3e(e,t,r){return e?e.concat(t).map(function(o,i){return o=s3e(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function SYt(e){return Be.isArray(e)&&!e.some(pz)}const EYt=Be.toFlatObject(Be,{},null,function(t){return/^is[A-Z]/.test(t)});function j5(e,t,r){if(!Be.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Be.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,b){return!Be.isUndefined(b[v])});const n=r.metaTokens,o=r.visitor||c,i=r.dots,a=r.indexes,s=(r.Blob||typeof Blob<"u"&&Blob)&&Be.isSpecCompliantForm(t);if(!Be.isFunction(o))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(Be.isDate(h))return h.toISOString();if(!s&&Be.isBlob(h))throw new lr("Blob is not supported. Use a Buffer instead.");return Be.isArrayBuffer(h)||Be.isTypedArray(h)?s&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,v,b){let y=h;if(h&&!b&&typeof h=="object"){if(Be.endsWith(v,"{}"))v=n?v:v.slice(0,-2),h=JSON.stringify(h);else if(Be.isArray(h)&&SYt(h)||(Be.isFileList(h)||Be.endsWith(v,"[]"))&&(y=Be.toArray(h)))return v=s3e(v),y.forEach(function(k,E){!(Be.isUndefined(k)||k===null)&&t.append(a===!0?u3e([v],E,i):a===null?v:v+"[]",u(k))}),!1}return pz(h)?!0:(t.append(u3e(b,v,i),u(h)),!1)}const d=[],f=Object.assign(EYt,{defaultVisitor:c,convertValue:u,isVisitable:pz});function p(h,v){if(!Be.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(h),Be.forEach(h,function(y,w){(!(Be.isUndefined(y)||y===null)&&o.call(t,y,Be.isString(w)?w.trim():w,v,f))===!0&&p(y,v?v.concat(w):[w])}),d.pop()}}if(!Be.isObject(e))throw new TypeError("data must be an object");return p(e),t}function c3e(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function hz(e,t){this._pairs=[],e&&j5(e,this,t)}const d3e=hz.prototype;d3e.append=function(t,r){this._pairs.push([t,r])},d3e.toString=function(t){const r=t?function(n){return t.call(this,n,c3e)}:c3e;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function AYt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function f3e(e,t,r){if(!t)return e;const n=r&&r.encode||AYt;Be.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=Be.isURLSearchParams(t)?t.toString():new hz(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class m3e{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Be.forEach(this.handlers,function(n){n!==null&&t(n)})}}const p3e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},OYt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:hz,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},gz=typeof window<"u"&&typeof document<"u",vz=typeof navigator=="object"&&navigator||void 0,IYt=gz&&(!vz||["ReactNative","NativeScript","NS"].indexOf(vz.product)<0),RYt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",PYt=gz&&window.location.href||"http://localhost",Xi={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:gz,hasStandardBrowserEnv:IYt,hasStandardBrowserWebWorkerEnv:RYt,navigator:vz,origin:PYt},Symbol.toStringTag,{value:"Module"})),...OYt};function LYt(e,t){return j5(e,new Xi.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return Xi.isNode&&Be.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function HYt(e){return Be.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function NYt(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function h3e(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),s=i>=r.length;return a=!a&&Be.isArray(o)?o.length:a,s?(Be.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!l):((!o[a]||!Be.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&Be.isArray(o[a])&&(o[a]=NYt(o[a])),!l)}if(Be.isFormData(e)&&Be.isFunction(e.entries)){const r={};return Be.forEachEntry(e,(n,o)=>{t(HYt(n),o,r,0)}),r}return null}function $Yt(e,t,r){if(Be.isString(e))try{return(t||JSON.parse)(e),Be.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const _k={transitional:p3e,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=Be.isObject(t);if(i&&Be.isHTMLForm(t)&&(t=new FormData(t)),Be.isFormData(t))return o?JSON.stringify(h3e(t)):t;if(Be.isArrayBuffer(t)||Be.isBuffer(t)||Be.isStream(t)||Be.isFile(t)||Be.isBlob(t)||Be.isReadableStream(t))return t;if(Be.isArrayBufferView(t))return t.buffer;if(Be.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return LYt(t,this.formSerializer).toString();if((l=Be.isFileList(t))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return j5(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),$Yt(t)):t}],transformResponse:[function(t){const r=this.transitional||_k.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(Be.isResponse(t)||Be.isReadableStream(t))return t;if(t&&Be.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?lr.from(l,lr.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xi.classes.FormData,Blob:Xi.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Be.forEach(["delete","get","head","post","put","patch"],e=>{_k.headers[e]={}});const DYt=Be.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),BYt=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
700
|
+
\`\`\``,api:e,app:u,components:s})}):null};var AGt={};const OGt=({node:e,previewMode:t=!1,routerBaseName:r="",contributes:n=rr,globalProps:o,standalone:i,trackContainerHeight:a,decorateComponentsWithTestId:l,debugEnabled:s,defaultTheme:u,defaultTone:c,resources:d,resourceMap:f,sources:p,children:h,projectCompilation:v,onInit:b})=>{t&&(Zp.canUseDOM=!1);const y=(o==null?void 0:o.name)||"XMLUI app",w=(o==null?void 0:o.useHashBasedRouting)??!0,k=C.jsxs(Zp,{children:[C.jsx(Jp,{defaultTitle:y,titleTemplate:`%s | ${y}`}),C.jsxs(AFt,{children:[C.jsx(RFt,{}),C.jsx(azt,{children:C.jsx(CTt,{resourceMap:f,themes:n.themes,defaultTheme:u,defaultTone:c,resources:d,children:C.jsx(s4t,{sources:p,projectCompilation:v,mockApi:o==null?void 0:o.demoMockApi,children:C.jsx(C7t,{children:C.jsxs(TFt,{onInit:b,rootContainer:e,routerBaseName:r,globalProps:o,standalone:i,decorateComponentsWithTestId:l,debugEnabled:s,trackContainerHeight:a,children:[C.jsx(EGt,{}),h]})})})})})]})]}),E=t?FMe:w?GK:QMe,_=t?!1:typeof window>"u"||AGt.VITE_REMIX;return C.jsx(Z.StrictMode,{children:C.jsx(P0,{node:e,location:"root-outer",children:C.jsxs(yRe,{client:BSe,children:[!!_&&k,!_&&C.jsx(E,{basename:E===GK?void 0:r,children:k})]})})})};zRe();const BSe=new fRe({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});function az({apiInterceptor:e,contributes:t,node:r,decorateComponentsWithTestId:n,debugEnabled:o,defaultTheme:i,defaultTone:a,resources:l,globalProps:s,standalone:u,trackContainerHeight:c,routerBaseName:d,previewMode:f,resourceMap:p,sources:h,extensionManager:v,children:b,projectCompilation:y,isNested:w=!1,onInit:k}){const E=m.useMemo(()=>({type:"Container",uid:"root",children:[{type:"Theme",props:{root:!0},children:[r]}],uses:[]}),[r]);if(y){const S=y.entrypoint.dependencies;IGt(S,y.components)}const _=m.useMemo(()=>({...s,isNested:w}),[s,w]);return C.jsx(b7t,{contributes:t,extensionManager:v,children:C.jsx(x7t,{debugConfig:s==null?void 0:s.debug,children:C.jsx(OGt,{projectCompilation:y,resourceMap:p,apiInterceptor:e,node:E,contributes:t,resources:l,routerBaseName:d,decorateComponentsWithTestId:n,debugEnabled:o,defaultTheme:i,defaultTone:a,globalProps:_,standalone:u,trackContainerHeight:c,previewMode:f,sources:h,onInit:k,children:b})})})}function IGt(e,t){const r=t.reduce(function(a,{definition:{name:l},dependencies:s}){return a.set(l,s)},new Map),n=new Set;return o(e),n;function o(i){if(i){for(const a of i)if(!n.has(a)){n.add(a);const l=r.get(a);o(l)}}}}function RGt(e,t,r,n){const o=[],i={},a=new Set,l=new Set;if(e&&yk(e,null,s,i,r),!i.abort)for(const f of t)u(f.name)||c("M007","Component",f.name),f.name==="Component"&&c("M008","Component",f.name),r.componentRegistered(f.name)&&c("M009","Component",f.name),l.has(f.name)?c("M010","Component",f.name):l.add(f.name),a.clear(),yk(f.component,null,s,i,r);return o;function s(f,p,h,v){if(!h)return;if(!r.componentRegistered(f.type)){c("M001",(p==null?void 0:p.type)??"Root",f.type);return}f.uid&&(u(f.uid)?a.has(f.uid)?c("M003",f.type,f.uid):a.add(f.uid):c("M002",f.type,f.type,f.uid));const b=r.getComponentProps(f.type)??{},y=f.props??{};for(const _ of Object.keys(y))if(b[_]){const A=y[_];if(typeof A=="string")try{v3(A)}catch(O){c("M006",f.type,_,O.message)}}else{const A=_.split("-");A.length===1&&P1.includes(_)||A.length===2&&P1.includes(A[0])&&f7e.includes(A[1])||r.acceptArbitraryProps(f.type)||c("M005",f.type,f.type,_)}const w=r.getComponentEvents(f.type)??{},k=f.events??{};for(const _ of Object.keys(k))if(w[_]){const A=k[_];if(typeof A=="string"){const O=new Jf(A);try{O.parseStatements(),O.errors.length>0&&c("M012",f.type,_,O.errors[0].text)}catch(I){c("M012",f.type,_,I.message)}}}else c("M011",f.type,f.type,_);const E=r.getComponentValidator(f.type);if(E){const _=E(f,n);if(_)if(Array.isArray(_))for(const S of _)c("M013",f.type,S);else c("M013",f.type,_)}}function u(f){return/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(f)}function c(f,p,...h){d(f,p,!1,...h)}function d(f,p,h,...v){let b=PGt[f]??"Unkonwn error";v&&v.forEach((w,k)=>b=y(b,`{${k}}`,v[k].toString())),o.push({name:p,code:f,message:b,isWarning:h,args:v});function y(w,k,E){do w=w.replace(k,E);while(w.includes(k));return w}}}function yk(e,t,r,n={},o){if(r(e,t,!0,n),n.abort||n.cancel)return;const i=o.getComponentProps(e.type)??{},a=e.props??{};for(const u of Object.keys(a)){const c=i[u];if(!c)continue;const d=a[u];if(c.type==="ComponentDef"&&d.type&&(yk(d,e,r,n,o),n.abort||n.cancel))return}const l=o.getComponentEvents(e.type)??{},s=e.events??{};for(const u of Object.keys(s)){if(!l[u])continue;const d=s[u];if(typeof d=="object"&&d.type){if(yk(d,e,r,n,o),n.abort)return;if(n.cancel)break}}if(e.children)for(const u of e.children){if(yk(u,e,r,n,o),n.abort)return;if(n.cancel)break}r(e,void 0,!1,n)}const PGt={M001:"The component '{0}' is not registered",M002:"The '{0}' element has an invalid id: '{1}'",M003:"Invalid component identifier: '{0}'",M004:"Duplicated component identifier: '{0}'",M005:"The '{0}' element has an invalid property: '{1}'",M006:"Parsing property value of '{0}' failed: {1}",M007:"The name of a reusable component is invalid: '{0}'",M008:"The name of a reusable component must not be '{0}', as it is a reserved name",M009:"A reusable component cannot have the name of a registered component: '{0}'",M010:"Duplicated reusable component name: '{0}'",M011:"The '{0}' element has an invalid event: '{1}'",M012:"Parsing event value of '{0}' failed: {1}",M013:"Component validation failed: '{0}'"},jSe="DataSource",LGt={status:"stable",description:"`DataSource` fetches and caches data from API endpoints, versus [`APICall`](/components/APICall) which creates, updates or deletes data.",props:{method:{description:"Set the HTTP method.",defaultValue:"get",availableValues:$Y},id:{description:"Set the ID used by other components to access the retrieved data in the `value`property of a `DataSource`, or status info in the `loaded` and `error` properties.When no `id` is set, the component cannot be used programmatically.",isRequired:!0,valueType:"string"},url:{description:"Set the URL.",isRequired:!0,valueType:"string"},body:{description:"Set the optional request body. The object you pass is serialized as a JSON string.",valueType:"any"},rawBody:{description:"Set the request body with no serialization. Use it to send a payload that has already been serialized to a JSON string.",valueType:"string"},queryParams:{description:"Append optional key-value pairs to the URL.",valueType:"any"},headers:{description:"Set request headers. Pass an object whose keys are header names and values are header values.",valueType:"any"},pollIntervalInSeconds:{description:"Set the interval for periodic data fetching. If the data changes on refresh, XMLUI will re-render components that refer directly or indirectly to the `DataSource`. If not set or set to zero, the component does not poll for data.",valueType:"number"},inProgressNotificationMessage:{description:"Set the message to display when the data fetch is in progress. If the property value is not set, no progress message is displayed.",valueType:"string"},completedNotificationMessage:{description:"Set the message to display when the data fetch completes.If the property value is not set, no completion message is displayed.",valueType:"string"},errorNotificationMessage:{description:"Set the message to display when the there is an error. You can use the `$error` context value in an expression to refer to the original error message.",valueType:"string"},resultSelector:{description:"Set an optional object key to extract a subset of the response data. If this value is not set, the entire response body is considered the result.",valueType:"string"},transformResult:{description:"Set an optional function to perform a final transformation of the response data. If this value is not set, the result is not transformed."},prevPageSelector:{description:`When using \`${jSe}\` with paging, the response may contain information about the previous and next page. This property defines the selector that extracts the previous page information from the response deserialized to an object.`},nextPageSelector:{description:`When using \`${jSe}\` with paging, the response may contain information about the previous and next page. This property defines the selector that extracts the next page information from the response deserialized to an object.`},structuralSharing:{description:"This property allows structural sharing. When turned on, `DataSource` will keep the original reference if nothing has changed in the data. If a subset has changed, `DataSource` will keep the unchanged parts and only replace the changed parts. If you do not need this behavior, set this property to `false`.",defaultValue:"true"}},events:{loaded:re("The component triggers this event when the fetch operation has been completed and the data is loaded. The event has two arguments. The first is the data loaded; the second indicates if the event is a result of a refetch."),error:re("This event fires when a request results in an error.")},apis:{value:re("This property retrieves the data queried from the source after optional transformations."),inProgress:re("This property indicates if the data is being fetched."),isRefetching:re("This property indicates if the data is being re-fetched."),loaded:re("This property indicates if the data has been loaded."),refetch:re("This method requests the re-fetch of the data.")}},HGt={a:ige,address:sge,area:cge,article:fge,aside:pge,audio:gge,b:bge,bdi:yge,bdo:Cge,blockquote:_ge,br:Sge,button:Age,canvas:Ige,caption:Pge,cite:Hge,code:c4,col:Dge,colgroup:jge,data:zge,datalist:Wge,dd:Uge,del:Gge,details:Kge,dfn:Qge,dialog:Jge,div:tve,dl:nve,dt:ive,em:VD,embed:sve,fieldset:cve,figcaption:fve,figure:pve,footer:gve,form:bve,h1:yve,h2:Cve,h3:_ve,h4:Sve,h5:Ave,h6:Ive,header:Pve,hr:Hve,i:$ve,iframe:Bve,img:Mve,input:Fve,ins:Vve,kbd:qve,label:Yve,legend:Xve,li:Zve,main:ebe,map:rbe,mark:obe,menu:abe,meter:sbe,nav:cbe,object:fbe,ol:pbe,optgroup:gbe,option:bbe,output:ybe,p:Cbe,param:_be,picture:Sbe,pre:Abe,progress:Ibe,q:Pbe,rp:Hbe,rt:$be,ruby:Bbe,s:Mbe,samp:Fbe,section:Vbe,select:qbe,small:Ybe,source:Xbe,span:Zbe,strong:e0e,sub:r0e,summary:o0e,sup:a0e,table:s0e,tbody:c0e,td:f0e,template:p0e,textarea:g0e,tfoot:b0e,th:y0e,thead:C0e,time:_0e,tr:S0e,track:A0e,u:I0e,ul:P0e,var:KEt,video:N0e,wbr:D0e,Accordion:Nhe,APICall:Jhe,App:Qse,AppHeader:ppe,AppState:fhe,AutoComplete:rge,Avatar:Uee,Backdrop:oge,Badge:Fee,Bookmark:uhe,Breakout:Khe,Button:WZ,Card:Kee,Carousel:Ghe,ChangeListener:kre,Checkbox:fpe,CODE:c4,ColorPicker:j0e,Column:Ipe,ContentSeparator:Gee,DataSource:LGt,DatePicker:$pe,DropdownMenu:hpe,EM:VD,Fragment:JJ,MenuItem:vpe,SubMenuItem:xpe,EmojiSelector:Mse,ExpandableItem:wpe,FileInput:aue,FileUploadDropZone:Pte,FlowLayout:Jee,Footer:rue,Form:Ple,FormItem:Ele,FormSection:dpe,Heading:UJ,H1:qJ,H2:GJ,H3:YJ,H4:KJ,H5:XJ,H6:QJ,HoverCard:Kse,Icon:Lte,Image:Mte,Items:$te,Link:jZ,List:xre,Logo:oue,Markdown:upe,MenuSeparator:ype,ModalDialog:ote,NavGroup:nue,NavLink:BZ,NavPanel:Zse,NoResult:ite,NumberBox:zse,Option:tge,PageMetaTitle:Fte,Page:eue,Pages:tue,PositionedContainer:yre,ProgressBar:Vte,Queue:ore,RadioGroup:iue,RealTimeAdapter:Rle,Redirect:Dpe,Select:cpe,SelectionStore:Bte,Slider:Bhe,SpaceFiller:sK,Spinner:lue,Splitter:qte,HSplitter:Gte,VSplitter:Yte,Stack:Xv,CHStack:iK,CVStack:oK,HStack:nK,VStack:rK,StickyBox:Mee,Switch:mpe,Table:Iee,TableOfContents:vhe,TabItem:Dhe,Tabs:she,Text:ZJ,TextArea:xK,TextBox:tN,PasswordInput:Ole,Theme:Ape,ToneChangerButton:Xhe,ToneSwitch:Zhe,Tree:lGe,BarChart:mke,DonutChart:hke,LabelList:xke,Legend:yke,LineChart:wke,PieChart:Cke};class NGt{constructor(t){this.metadataCollection=t}componentNames(){return Object.keys(this.metadataCollection)}getComponent(t){const r=this.metadataCollection[t];return r?new $Gt(r):null}}class $Gt{constructor(t){this.metadata=t}getProp(t){return this.metadata.props[t]??R5[t]}getAttr(t){var i,a,l;if(Z$.test(t)){const s=nkt(t),u=(i=this.metadata.events)==null?void 0:i[s];if(u)return u}const r=(a=this.metadata.props)==null?void 0:a[t];if(r)return r;const n=(l=this.metadata.apis)==null?void 0:l[t];if(n)return n;const o=MSe(t);return o||R5[t]}getAttrForKind({name:t,kind:r}){switch(r){case"api":return this.metadata.apis[t];case"event":return this.metadata.events[t];case"prop":return this.metadata.props[t];case"implicit":return R5[t];case"layout":return MSe(t)}}getAllAttributes(){const t=[];for(const r of Object.keys(this.metadata.props??{}))t.push({name:r,kind:"prop"});for(const r of Object.keys(this.metadata.events??{}))t.push({name:r,kind:"event"});for(const r of Object.keys(this.metadata.apis??{}))t.push({name:r,kind:"api"});for(const r of P1)t.push({name:r,kind:"layout"});for(const r of Object.keys(R5))t.push({name:r,kind:"implicit"});return t}getEvent(t){var r;return(r=this.metadata.events)==null?void 0:r[t]}getApi(t){var r;return(r=this.metadata.apis)==null?void 0:r[t]}get events(){return this.metadata.events}get apis(){return this.metadata.apis}get contextVars(){return this.metadata.contextVars}get allowArbitraryProps(){return this.metadata.allowArbitraryProps}get shortDescription(){return this.metadata.shortDescription}getMetadata(){return this.metadata}}function MSe(e){const t={description:"Layout property. Not yet documented"};if(P1.includes(e))return t;for(const r of OY){const n="-"+r.value;if(e.endsWith(n)){const o=e.slice(0,-n.length);if(P1.includes(o))return t}}return null}const R5={inspect:{description:"Determines whether the component can be inspected or not",defaultValue:!1,valueType:"boolean"},data:{description:"Specifies the data source for a component. Can be a URL string (fetched automatically), a DataSource or an expression to evaluate. Changes to this property trigger UI updates once data is loaded."},when:{description:"Specifies a condition that must be met for the component to be displayed",defaultValue:!0,valueType:"boolean"}};var df={VITE_XMLUI_VERSION:"0.9.83 (built 7/22/2025)"};const wk="Main."+tk,DGt="Main."+Hg,zSe="config.json",lz=new NGt(HGt);function FSe({appDef:e,decorateComponentsWithTestId:t,debugEnabled:r=!1,runtime:n,extensionManager:o,waitForApiInterceptor:i=!1}){const{standaloneApp:a,projectCompilation:l}=BGt(e,n,o);jGt(a);const{apiInterceptor:s,name:u,appGlobals:c,defaultTheme:d,defaultTone:f,resources:p,resourceMap:h,entryPoint:v,components:b,themes:y,sources:w}=a||{},k=m.useMemo(()=>({name:u,...c||{}}),[c,u]);let E=m.useMemo(()=>({compoundComponents:b,themes:y}),[b,y]);if(!a)return null;const _=typeof window<"u"&&window.XMLUI_MOCK_API?window.XMLUI_MOCK_API:s,S=t||(typeof window<"u"?window.XMLUI_MOCK_TEST_ID:!1),A=(c==null?void 0:c.useHashBasedRouting)??!0;return C.jsx(tD,{interceptor:_,useHashBasedRouting:A,waitForApiInterceptor:i,children:C.jsx(az,{projectCompilation:l,decorateComponentsWithTestId:S,node:v,standalone:!0,debugEnabled:r,routerBaseName:typeof window<"u"&&window.__PUBLIC_PATH||"",globalProps:k,defaultTheme:d,defaultTone:f,resources:p,resourceMap:h,sources:w,extensionManager:o,contributes:E})})}async function sz(e){if(!e.ok)throw new Error(`Failed to fetch ${e.url}`);const t=await e.text(),r=e.url;let{component:n,errors:o,erroneousCompoundComponentName:i}=A2(t,r);if(o.length>0){const a=i??e.url.substring(e.url.lastIndexOf("/")+1,e.url.length-6);n=H6(o,r,a)}return{component:n,src:t,file:r,hasError:o.length>0}}async function uz(e){if(!e.ok)throw new Error(`Failed to fetch ${e.url}`);const t=await e.text(),r=new Jf(t);try{r.parseStatements()}catch(n){if(console.error("Error parsing code behind",n),r.errors.length>0)return{component:ikt(r.errors[0],e.url),file:e.url,hasError:!0}}try{const n=kme("Main",t);return Object.keys(n.moduleErrors??{}).length>0?{component:akt(n.moduleErrors,e.url),file:e.url,hasError:!0}:(UCt(n),{src:t,codeBehind:n,file:e.url})}catch(n){console.error("Error collecting code behind",n)}}function P5(e,t){return e.endsWith(`/${t}.ts`)||e.endsWith(`/${t}.js`)||e.endsWith(`/${t}.${tk}`)||e.endsWith(`/${t}.${Hg}`)}function WSe(e,t){return e.includes(`/${t}/`)}function VSe(e){const t={entrypoint:{filename:"",definition:null,dependencies:new Set},components:[],themes:{}},r={},n={},o={},i=[];let a,l,s,u;for(const[p,h]of Object.entries(e)){if(P5(p,"config")&&(a=h.default),(P5(p,"Main")||P5(p,"App"))&&(p.endsWith(Hg)?(s=h.default,t.entrypoint.codeBehindSource=h.default.src):(t.entrypoint.filename=p,l=h.default.component,t.entrypoint.definition=l,t.entrypoint.markupSource=h.default.src,h.default.file&&(r[h.default.file]=h.default.src))),P5(p,"api")&&(u=h.default),WSe(p,"components"))if(p.endsWith(`.${Hg}`)){o[p]=h.default;const v=t.components.findLast(({filename:b})=>{const y=p.lastIndexOf(Hg),w=b.lastIndexOf(tk);return b.substring(0,w)===p.substring(0,y)});v.codeBehindSource=h.default.src}else{n[p]=h.default.component,r[h.default.file]=h.default.src;const v={definition:h.default.component,filename:p,markupSource:h.default.src,dependencies:new Set};t.components.push(v)}WSe(p,"themes")&&i.push(h.default)}const c=(a==null?void 0:a.entryPoint)||l,d={...c,vars:{...s==null?void 0:s.vars,...c==null?void 0:c.vars},functions:s==null?void 0:s.functions,scriptError:s==null?void 0:s.moduleErrors};let f=[];return a!=null&&a.components?f=a.components:Object.entries(n).forEach(([p,h])=>{const v=o[`${p}.xs`],b={...h,component:{...h.component,vars:{...h.component.vars,...v==null?void 0:v.vars},functions:v==null?void 0:v.functions,scriptError:v==null?void 0:v.moduleErrors}};f.push(b)}),{standaloneApp:{...a,entryPoint:d,components:f,themes:(a==null?void 0:a.themes)||i,apiInterceptor:(a==null?void 0:a.apiInterceptor)||u,sources:r},projectCompilation:t}}function USe(e,t){return t?{...t,entryPoint:t.entryPoint||e.entryPoint,components:t.components||e.components,themes:t.themes||e.themes,apiInterceptor:t.apiInterceptor||e.apiInterceptor}:e}function qSe(e,t){const r=new URL(e,"http://dummy.com");return new URL(t,r).pathname.substring(1)}async function L5(e){try{const t=await ff(e);if(!t.ok)throw new Error(`Failed to fetch ${e}`);const r=await t.text();try{return JSON.parse(r)}catch(n){console.warn(`Failed to parse ${e} as JSON, attempting YAML parsing.`);try{return zU.load(r)}catch{throw n}}}catch(t){const r=e.replace(/\.json$/,".yml");try{const n=await ff(r);if(!n.ok)throw new Error(`Failed to fetch ${r}`);const o=await n.text();return zU.load(o)}catch(n){throw console.error(`Failed to load theme file: ${e} (JSON error:`,t,"YAML error:",n,")"),new Error(`Failed to load theme file ${e} in either JSON or YAML format`)}}}async function ff(e){return fetch(gP(e),{headers:{"Cache-Control":"no-cache, no-store"}})}function BGt(e,t=rr,r){const[n,o]=m.useState(()=>{const l=VSe(t),s=USe(l.standaloneApp,e);if((df.VITE_DEV_MODE||df.VITE_BUILD_MODE==="INLINE_ALL")&&!df.VITE_STANDALONE){if(!s)throw new Error("couldn't find the application metadata");return s}return null}),[i,a]=m.useState(null);return Sn(()=>{(async function(){var H,j,W,B,G;const l=VSe(t),s=USe(l.standaloneApp,e);if((df.VITE_DEV_MODE||df.VITE_BUILD_MODE==="INLINE_ALL")&&!df.VITE_STANDALONE){if(!s)throw new Error("couldn't find the application metadata");const z=cz(s,lz);z&&(s.entryPoint=z),dz({projectCompilation:l.projectCompilation,extensionManager:r}),a(l.projectCompilation),o(s);return}if(df.VITE_BUILD_MODE==="CONFIG_ONLY"){const F=await(await ff(zSe)).json(),V=[];(H=F.themes)==null||H.forEach(M=>{V.push(L5(M))});const N=await Promise.all(V),Y={...s,name:F.name,appGlobals:F.appGlobals,defaultTheme:F.defaultTheme,resources:F.resources,resourceMap:F.resourceMap,themes:N},q=cz(Y,lz);q&&(Y.entryPoint=q),dz({projectCompilation:l.projectCompilation,extensionManager:r}),a(l.projectCompilation),o(Y);return}const u=new Promise(async z=>{try{const F=await ff(wk);F.ok?z(sz(F)):z({component:okt(`Failed to load the main component (${wk})`),file:wk,hasError:!0})}catch{z(null)}});let c;try{c=await(await ff(zSe)).json()}catch{}let d;((c==null?void 0:c.themes)??[]).length===0&&(c!=null&&c.defaultTheme)?d=[L5(`themes/${c==null?void 0:c.defaultTheme}.json`)]:d=(j=c==null?void 0:c.themes)==null?void 0:j.map(z=>L5(z));const f=(W=c==null?void 0:c.components)==null?void 0:W.map(async z=>{const F=await ff(z);return z.endsWith(`.${tk}`)?await sz(F):await uz(F)}),[p,h,v]=await Promise.all([u,Promise.all(f||[]),Promise.all(d||[])]),b=[];p.hasError&&b.push(p.component);let y=null;((B=p.component.props)==null?void 0:B.codeBehind)!==void 0&&(y=await new Promise(async z=>{var F;try{const V=await ff(qSe(wk,((F=p.component.props)==null?void 0:F.codeBehind)||DGt)),N=await uz(V);z(N.hasError?N:N.codeBehind)}catch{z(null)}}),y.hasError&&b.push(y.component)),h.forEach(z=>{z.hasError&&b.push(z.component)});const w={},k={};p.file&&(w[p.file]=p.src,l.projectCompilation.entrypoint.filename=wk,l.projectCompilation.entrypoint.definition=p.component,l.projectCompilation.entrypoint.markupSource=p.src,(y==null?void 0:y.src)!==void 0&&(l.projectCompilation.entrypoint.codeBehindSource=y.src)),h.forEach(z=>{var F;(F=z==null?void 0:z.file)!=null&&F.endsWith(`.${Hg}`)?k[z.file]=z.codeBehind:z.file&&(w[z.file]=z.src)});const E={...p.component,vars:{...y==null?void 0:y.vars,...p.component.vars},functions:y==null?void 0:y.functions,scriptError:y==null?void 0:y.moduleErrors},_=(G=E.props)==null?void 0:G.defaultTheme;_&&typeof _=="string"&&!_.includes("{")&&!vD.find(z=>z.id===_)&&!v.find(z=>z.id===_)&&v.push(await L5(`themes/${_}.json`));const S=h.filter(z=>{var F;return!((F=z==null?void 0:z.file)!=null&&F.endsWith(".xmlui.xs"))}).map(z=>{const F=k[z.file+".xs"];return{...z.component,component:{...z.component.component,vars:{...z.component.component.vars,...F==null?void 0:F.vars},functions:F==null?void 0:F.functions,scriptError:F==null?void 0:F.moduleErrors}}});let A=GSe(E,S,void 0,r);const O=new Set;for(;A.size>0;){const z=[...A].map(async V=>{var N,Y;try{const M=await ff(`components/${V}.${tk}`),K=await sz(M);K.hasError&&b.push(K.component),w[K.file]=K.src;const ee={dependencies:new Set,filename:K.file,markupSource:K.src,definition:K.component};let ae=null;"codeBehind"in K.component&&((N=K.component)==null?void 0:N.codeBehind)!==void 0&&(ae=await new Promise(async ue=>{var le;try{const pe=await ff(qSe(`components/${V}`,((le=K.component)==null?void 0:le.codeBehind)||`${V}.${Hg}`)),fe=await uz(pe);fe.hasError&&b.push(fe.component),ue(fe.hasError?fe.component:fe)}catch{ue(null)}}),ae&&"src"in ae&&(ee.codeBehindSource=ae.src)),l.projectCompilation.components.push(ee);const oe={...K.component,component:{...K.component.component,vars:{...K.component.component.vars,...(Y=ae==null?void 0:ae.component)==null?void 0:Y.vars}}};return ae&&"codeBehind"in ae&&(oe.component.functions=ae.codeBehind.functions,oe.component.scriptError=ae.codeBehind.moduleErrors),oe}catch{return O.add(V),null}}),F=await Promise.all(z);S.push(...F.filter(V=>!!V)),A=GSe(E,S,O,r)}const I={...c,themes:v,sources:w,components:S,entryPoint:E},L=cz(I,lz),P=b.length>0?{type:"VStack",props:{gap:0,padding:0},children:b}:null;P?(L&&P.children.push(L),I.entryPoint=P):L&&(I.entryPoint=L),dz({projectCompilation:l.projectCompilation,extensionManager:r}),a(l.projectCompilation),o(I)})()},[t,e]),{standaloneApp:n,projectCompilation:i}}function GSe(e,t,r=new Set,n){const o=new o5({compoundComponents:t},n),i=RGt(e,t,{getComponentProps:a=>{var l,s;return(s=(l=o.lookupComponentRenderer(a))==null?void 0:l.descriptor)==null?void 0:s.props},acceptArbitraryProps:()=>!0,getComponentValidator:()=>null,getComponentEvents:()=>null,componentRegistered:a=>o.hasComponent(a)});return o.destroy(),new Set(i.filter(a=>a.code==="M001").map(a=>a.args[0].replace("#app-ns.","")).filter(a=>!r.has(a)&&!a.includes(".")))}function jGt(e){const t=m.useRef(!1);m.useEffect(()=>{if(t.current)return;t.current=!0;let r=`XMLUI version: ${df.VITE_XMLUI_VERSION}`;e!=null&&e.name&&(r+=`; ${e.name} version: ${df.VITE_APP_VERSION||"dev"}`),console.log(r)},[e==null?void 0:e.name])}let H5=null;function YSe(e,t=[],r=new Vj){r.registerExtension(t);let n=document.getElementById("root");return n||(n=document.createElement("div"),n.setAttribute("id","root"),document.body.appendChild(n)),H5||(H5=$_.createRoot(n)),H5.render(C.jsx(FSe,{runtime:e,extensionManager:r})),H5}function cz(e,t){var n;const r=PFt((n=e.appGlobals)==null?void 0:n.lintSeverity);if(r!==f5.Skip){const o=LFt({appDef:e,metadataProvider:t});if(o.length>0){if(r===f5.Warning)o.forEach(HFt);else if(r===f5.Error)return NFt(o)}return null}}function dz({projectCompilation:{components:e,entrypoint:t},extensionManager:r}){const n=new o5({},r),o=KSe(t.definition,n);t.dependencies=o;for(const i of e){const a=KSe(i.definition.component,n);a.delete(i.definition.name),i.dependencies=a}n.destroy()}function KSe(e,t){return XSe(e,t,new Set)}function XSe(e,t,r){const n=e.type;if(t.hasComponent(n)||r.add(n),!e.children)return r;for(const o of e.children)XSe(o,t,r);return r}const QSe=new Vj;document.addEventListener("DOMContentLoaded",function(){if(!document.getElementById("root")){const e=document.createElement("div");e.id="root",document.getElementsByTagName("body")[0].appendChild(e)}YSe(void 0,void 0,QSe)}),window.React=Z,window.jsxRuntime=O5e,window.ReactDOM=hv;const MGt={...jFt,standalone:QSe};function ZSe(e,t){return function(){return e.apply(t,arguments)}}const{toString:zGt}=Object.prototype,{getPrototypeOf:fz}=Object,N5=(e=>t=>{const r=zGt.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Gu=e=>(e=e.toLowerCase(),t=>N5(t)===e),$5=e=>t=>typeof t===e,{isArray:V1}=Array,Ck=$5("undefined");function FGt(e){return e!==null&&!Ck(e)&&e.constructor!==null&&!Ck(e.constructor)&&Xl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const JSe=Gu("ArrayBuffer");function WGt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&JSe(e.buffer),t}const VGt=$5("string"),Xl=$5("function"),e3e=$5("number"),D5=e=>e!==null&&typeof e=="object",UGt=e=>e===!0||e===!1,B5=e=>{if(N5(e)!=="object")return!1;const t=fz(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},qGt=Gu("Date"),GGt=Gu("File"),YGt=Gu("Blob"),KGt=Gu("FileList"),XGt=e=>D5(e)&&Xl(e.pipe),QGt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xl(e.append)&&((t=N5(e))==="formdata"||t==="object"&&Xl(e.toString)&&e.toString()==="[object FormData]"))},ZGt=Gu("URLSearchParams"),[JGt,eYt,tYt,rYt]=["ReadableStream","Request","Response","Headers"].map(Gu),nYt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function kk(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),V1(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let l;for(n=0;n<a;n++)l=i[n],t.call(null,e[l],l,e)}}function t3e(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const zg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,r3e=e=>!Ck(e)&&e!==zg;function mz(){const{caseless:e}=r3e(this)&&this||{},t={},r=(n,o)=>{const i=e&&t3e(t,o)||o;B5(t[i])&&B5(n)?t[i]=mz(t[i],n):B5(n)?t[i]=mz({},n):V1(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&kk(arguments[n],r);return t}const oYt=(e,t,r,{allOwnKeys:n}={})=>(kk(t,(o,i)=>{r&&Xl(o)?e[i]=ZSe(o,r):e[i]=o},{allOwnKeys:n}),e),iYt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),aYt=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},lYt=(e,t,r,n)=>{let o,i,a;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=r!==!1&&fz(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},sYt=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},uYt=e=>{if(!e)return null;if(V1(e))return e;let t=e.length;if(!e3e(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},cYt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&fz(Uint8Array)),dYt=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},fYt=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},mYt=Gu("HTMLFormElement"),pYt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),n3e=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),hYt=Gu("RegExp"),o3e=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};kk(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},gYt=e=>{o3e(e,(t,r)=>{if(Xl(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Xl(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},vYt=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return V1(e)?n(e):n(String(e).split(t)),r},bYt=()=>{},xYt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function yYt(e){return!!(e&&Xl(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const wYt=e=>{const t=new Array(10),r=(n,o)=>{if(D5(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=V1(n)?[]:{};return kk(n,(a,l)=>{const s=r(a,o+1);!Ck(s)&&(i[l]=s)}),t[o]=void 0,i}}return n};return r(e,0)},CYt=Gu("AsyncFunction"),kYt=e=>e&&(D5(e)||Xl(e))&&Xl(e.then)&&Xl(e.catch),i3e=((e,t)=>e?setImmediate:t?((r,n)=>(zg.addEventListener("message",({source:o,data:i})=>{o===zg&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),zg.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Xl(zg.postMessage)),_Yt=typeof queueMicrotask<"u"?queueMicrotask.bind(zg):typeof process<"u"&&process.nextTick||i3e,Be={isArray:V1,isArrayBuffer:JSe,isBuffer:FGt,isFormData:QGt,isArrayBufferView:WGt,isString:VGt,isNumber:e3e,isBoolean:UGt,isObject:D5,isPlainObject:B5,isReadableStream:JGt,isRequest:eYt,isResponse:tYt,isHeaders:rYt,isUndefined:Ck,isDate:qGt,isFile:GGt,isBlob:YGt,isRegExp:hYt,isFunction:Xl,isStream:XGt,isURLSearchParams:ZGt,isTypedArray:cYt,isFileList:KGt,forEach:kk,merge:mz,extend:oYt,trim:nYt,stripBOM:iYt,inherits:aYt,toFlatObject:lYt,kindOf:N5,kindOfTest:Gu,endsWith:sYt,toArray:uYt,forEachEntry:dYt,matchAll:fYt,isHTMLForm:mYt,hasOwnProperty:n3e,hasOwnProp:n3e,reduceDescriptors:o3e,freezeMethods:gYt,toObjectSet:vYt,toCamelCase:pYt,noop:bYt,toFiniteNumber:xYt,findKey:t3e,global:zg,isContextDefined:r3e,isSpecCompliantForm:yYt,toJSONObject:wYt,isAsyncFn:CYt,isThenable:kYt,setImmediate:i3e,asap:_Yt};function lr(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}Be.inherits(lr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Be.toJSONObject(this.config),code:this.code,status:this.status}}});const a3e=lr.prototype,l3e={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{l3e[e]={value:e}}),Object.defineProperties(lr,l3e),Object.defineProperty(a3e,"isAxiosError",{value:!0}),lr.from=(e,t,r,n,o,i)=>{const a=Object.create(a3e);return Be.toFlatObject(e,a,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),lr.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const TYt=null;function pz(e){return Be.isPlainObject(e)||Be.isArray(e)}function s3e(e){return Be.endsWith(e,"[]")?e.slice(0,-2):e}function u3e(e,t,r){return e?e.concat(t).map(function(o,i){return o=s3e(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function SYt(e){return Be.isArray(e)&&!e.some(pz)}const EYt=Be.toFlatObject(Be,{},null,function(t){return/^is[A-Z]/.test(t)});function j5(e,t,r){if(!Be.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Be.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,b){return!Be.isUndefined(b[v])});const n=r.metaTokens,o=r.visitor||c,i=r.dots,a=r.indexes,s=(r.Blob||typeof Blob<"u"&&Blob)&&Be.isSpecCompliantForm(t);if(!Be.isFunction(o))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(Be.isDate(h))return h.toISOString();if(!s&&Be.isBlob(h))throw new lr("Blob is not supported. Use a Buffer instead.");return Be.isArrayBuffer(h)||Be.isTypedArray(h)?s&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,v,b){let y=h;if(h&&!b&&typeof h=="object"){if(Be.endsWith(v,"{}"))v=n?v:v.slice(0,-2),h=JSON.stringify(h);else if(Be.isArray(h)&&SYt(h)||(Be.isFileList(h)||Be.endsWith(v,"[]"))&&(y=Be.toArray(h)))return v=s3e(v),y.forEach(function(k,E){!(Be.isUndefined(k)||k===null)&&t.append(a===!0?u3e([v],E,i):a===null?v:v+"[]",u(k))}),!1}return pz(h)?!0:(t.append(u3e(b,v,i),u(h)),!1)}const d=[],f=Object.assign(EYt,{defaultVisitor:c,convertValue:u,isVisitable:pz});function p(h,v){if(!Be.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(h),Be.forEach(h,function(y,w){(!(Be.isUndefined(y)||y===null)&&o.call(t,y,Be.isString(w)?w.trim():w,v,f))===!0&&p(y,v?v.concat(w):[w])}),d.pop()}}if(!Be.isObject(e))throw new TypeError("data must be an object");return p(e),t}function c3e(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function hz(e,t){this._pairs=[],e&&j5(e,this,t)}const d3e=hz.prototype;d3e.append=function(t,r){this._pairs.push([t,r])},d3e.toString=function(t){const r=t?function(n){return t.call(this,n,c3e)}:c3e;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function AYt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function f3e(e,t,r){if(!t)return e;const n=r&&r.encode||AYt;Be.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=Be.isURLSearchParams(t)?t.toString():new hz(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class m3e{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Be.forEach(this.handlers,function(n){n!==null&&t(n)})}}const p3e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},OYt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:hz,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},gz=typeof window<"u"&&typeof document<"u",vz=typeof navigator=="object"&&navigator||void 0,IYt=gz&&(!vz||["ReactNative","NativeScript","NS"].indexOf(vz.product)<0),RYt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",PYt=gz&&window.location.href||"http://localhost",Xi={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:gz,hasStandardBrowserEnv:IYt,hasStandardBrowserWebWorkerEnv:RYt,navigator:vz,origin:PYt},Symbol.toStringTag,{value:"Module"})),...OYt};function LYt(e,t){return j5(e,new Xi.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return Xi.isNode&&Be.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function HYt(e){return Be.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function NYt(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function h3e(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),s=i>=r.length;return a=!a&&Be.isArray(o)?o.length:a,s?(Be.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!l):((!o[a]||!Be.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&Be.isArray(o[a])&&(o[a]=NYt(o[a])),!l)}if(Be.isFormData(e)&&Be.isFunction(e.entries)){const r={};return Be.forEachEntry(e,(n,o)=>{t(HYt(n),o,r,0)}),r}return null}function $Yt(e,t,r){if(Be.isString(e))try{return(t||JSON.parse)(e),Be.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const _k={transitional:p3e,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=Be.isObject(t);if(i&&Be.isHTMLForm(t)&&(t=new FormData(t)),Be.isFormData(t))return o?JSON.stringify(h3e(t)):t;if(Be.isArrayBuffer(t)||Be.isBuffer(t)||Be.isStream(t)||Be.isFile(t)||Be.isBlob(t)||Be.isReadableStream(t))return t;if(Be.isArrayBufferView(t))return t.buffer;if(Be.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return LYt(t,this.formSerializer).toString();if((l=Be.isFileList(t))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return j5(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),$Yt(t)):t}],transformResponse:[function(t){const r=this.transitional||_k.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(Be.isResponse(t)||Be.isReadableStream(t))return t;if(t&&Be.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?lr.from(l,lr.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xi.classes.FormData,Blob:Xi.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Be.forEach(["delete","get","head","post","put","patch"],e=>{_k.headers[e]={}});const DYt=Be.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),BYt=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
701
701
|
`).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&DYt[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},g3e=Symbol("internals");function Tk(e){return e&&String(e).trim().toLowerCase()}function M5(e){return e===!1||e==null?e:Be.isArray(e)?e.map(M5):String(e)}function jYt(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const MYt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function bz(e,t,r,n,o){if(Be.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!Be.isString(t)){if(Be.isString(n))return t.indexOf(n)!==-1;if(Be.isRegExp(n))return n.test(t)}}function zYt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function FYt(e,t){const r=Be.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,a){return this[n].call(this,t,o,i,a)},configurable:!0})})}let ol=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(l,s,u){const c=Tk(s);if(!c)throw new Error("header name must be a non-empty string");const d=Be.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||s]=M5(l))}const a=(l,s)=>Be.forEach(l,(u,c)=>i(u,c,s));if(Be.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(Be.isString(t)&&(t=t.trim())&&!MYt(t))a(BYt(t),r);else if(Be.isHeaders(t))for(const[l,s]of t.entries())i(s,l,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=Tk(t),t){const n=Be.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return jYt(o);if(Be.isFunction(r))return r.call(this,o,n);if(Be.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Tk(t),t){const n=Be.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||bz(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=Tk(a),a){const l=Be.findKey(n,a);l&&(!r||bz(n,n[l],l,r))&&(delete n[l],o=!0)}}return Be.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||bz(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return Be.forEach(this,(o,i)=>{const a=Be.findKey(n,i);if(a){r[a]=M5(o),delete r[i];return}const l=t?zYt(i):String(i).trim();l!==i&&delete r[i],r[l]=M5(o),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Be.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&Be.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
702
702
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[g3e]=this[g3e]={accessors:{}}).accessors,o=this.prototype;function i(a){const l=Tk(a);n[l]||(FYt(o,a),n[l]=!0)}return Be.isArray(t)?t.forEach(i):i(t),this}};ol.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Be.reduceDescriptors(ol.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),Be.freezeMethods(ol);function xz(e,t){const r=this||_k,n=t||r,o=ol.from(n.headers);let i=n.data;return Be.forEach(e,function(l){i=l.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function v3e(e){return!!(e&&e.__CANCEL__)}function U1(e,t,r){lr.call(this,e??"canceled",lr.ERR_CANCELED,t,r),this.name="CanceledError"}Be.inherits(U1,lr,{__CANCEL__:!0});function b3e(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new lr("Request failed with status code "+r.status,[lr.ERR_BAD_REQUEST,lr.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function WYt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function VYt(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),c=n[i];a||(a=u),r[o]=s,n[o]=u;let d=i,f=0;for(;d!==o;)f+=r[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a<t)return;const p=c&&u-c;return p?Math.round(f*1e3/p):void 0}}function UYt(e,t){let r=0,n=1e3/t,o,i;const a=(u,c=Date.now())=>{r=c,o=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),d=c-r;d>=n?a(u,c):(o=u,i||(i=setTimeout(()=>{i=null,a(o)},n-d)))},()=>o&&a(o)]}const z5=(e,t,r=3)=>{let n=0;const o=VYt(50,250);return UYt(i=>{const a=i.loaded,l=i.lengthComputable?i.total:void 0,s=a-n,u=o(s),c=a<=l;n=a;const d={loaded:a,total:l,progress:l?a/l:void 0,bytes:s,rate:u||void 0,estimated:u&&l&&c?(l-a)/u:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(d)},r)},x3e=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},y3e=e=>(...t)=>Be.asap(()=>e(...t)),qYt=Xi.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Xi.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Xi.origin),Xi.navigator&&/(msie|trident)/i.test(Xi.navigator.userAgent)):()=>!0,GYt=Xi.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];Be.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Be.isString(n)&&a.push("path="+n),Be.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function YYt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function KYt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function w3e(e,t,r){let n=!YYt(t);return e&&n||r==!1?KYt(e,t):t}const C3e=e=>e instanceof ol?{...e}:e;function Fg(e,t){t=t||{};const r={};function n(u,c,d,f){return Be.isPlainObject(u)&&Be.isPlainObject(c)?Be.merge.call({caseless:f},u,c):Be.isPlainObject(c)?Be.merge({},c):Be.isArray(c)?c.slice():c}function o(u,c,d,f){if(Be.isUndefined(c)){if(!Be.isUndefined(u))return n(void 0,u,d,f)}else return n(u,c,d,f)}function i(u,c){if(!Be.isUndefined(c))return n(void 0,c)}function a(u,c){if(Be.isUndefined(c)){if(!Be.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function l(u,c,d){if(d in t)return n(u,c);if(d in e)return n(void 0,u)}const s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(u,c,d)=>o(C3e(u),C3e(c),d,!0)};return Be.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=s[c]||o,f=d(e[c],t[c],c);Be.isUndefined(f)&&d!==l||(r[c]=f)}),r}const k3e=e=>{const t=Fg({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:l}=t;t.headers=a=ol.from(a),t.url=f3e(w3e(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let s;if(Be.isFormData(r)){if(Xi.hasStandardBrowserEnv||Xi.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((s=a.getContentType())!==!1){const[u,...c]=s?s.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Xi.hasStandardBrowserEnv&&(n&&Be.isFunction(n)&&(n=n(t)),n||n!==!1&&qYt(t.url))){const u=o&&i&&GYt.read(i);u&&a.set(o,u)}return t},XYt=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=k3e(e);let i=o.data;const a=ol.from(o.headers).normalize();let{responseType:l,onUploadProgress:s,onDownloadProgress:u}=o,c,d,f,p,h;function v(){p&&p(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function y(){if(!b)return;const k=ol.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),_={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:k,config:e,request:b};b3e(function(A){r(A),v()},function(A){n(A),v()},_),b=null}"onloadend"in b?b.onloadend=y:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(y)},b.onabort=function(){b&&(n(new lr("Request aborted",lr.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new lr("Network Error",lr.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const _=o.transitional||p3e;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),n(new lr(E,_.clarifyTimeoutError?lr.ETIMEDOUT:lr.ECONNABORTED,e,b)),b=null},i===void 0&&a.setContentType(null),"setRequestHeader"in b&&Be.forEach(a.toJSON(),function(E,_){b.setRequestHeader(_,E)}),Be.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),l&&l!=="json"&&(b.responseType=o.responseType),u&&([f,h]=z5(u,!0),b.addEventListener("progress",f)),s&&b.upload&&([d,p]=z5(s),b.upload.addEventListener("progress",d),b.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(c=k=>{b&&(n(!k||k.type?new U1(null,e,b):k),b.abort(),b=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const w=WYt(o.url);if(w&&Xi.protocols.indexOf(w)===-1){n(new lr("Unsupported protocol "+w+":",lr.ERR_BAD_REQUEST,e));return}b.send(i||null)})},QYt=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(u){if(!o){o=!0,l();const c=u instanceof Error?u:this.reason;n.abort(c instanceof lr?c:new U1(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,i(new lr(`timeout ${t} of ms exceeded`,lr.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:s}=n;return s.unsubscribe=()=>Be.asap(l),s}},ZYt=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},JYt=async function*(e,t){for await(const r of eKt(e))yield*ZYt(r,t)},eKt=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},_3e=(e,t,r,n)=>{const o=JYt(e,t);let i=0,a,l=s=>{a||(a=!0,n&&n(s))};return new ReadableStream({async pull(s){try{const{done:u,value:c}=await o.next();if(u){l(),s.close();return}let d=c.byteLength;if(r){let f=i+=d;r(f)}s.enqueue(new Uint8Array(c))}catch(u){throw l(u),u}},cancel(s){return l(s),o.return()}},{highWaterMark:2})},F5=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",T3e=F5&&typeof ReadableStream=="function",tKt=F5&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),S3e=(e,...t)=>{try{return!!e(...t)}catch{return!1}},rKt=T3e&&S3e(()=>{let e=!1;const t=new Request(Xi.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),E3e=64*1024,yz=T3e&&S3e(()=>Be.isReadableStream(new Response("").body)),W5={stream:yz&&(e=>e.body)};F5&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!W5[t]&&(W5[t]=Be.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new lr(`Response type '${t}' is not supported`,lr.ERR_NOT_SUPPORT,n)})})})(new Response);const nKt=async e=>{if(e==null)return 0;if(Be.isBlob(e))return e.size;if(Be.isSpecCompliantForm(e))return(await new Request(Xi.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Be.isArrayBufferView(e)||Be.isArrayBuffer(e))return e.byteLength;if(Be.isURLSearchParams(e)&&(e=e+""),Be.isString(e))return(await tKt(e)).byteLength},oKt=async(e,t)=>{const r=Be.toFiniteNumber(e.getContentLength());return r??nKt(t)},wz={http:TYt,xhr:XYt,fetch:F5&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:l,onUploadProgress:s,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:f}=k3e(e);u=u?(u+"").toLowerCase():"text";let p=QYt([o,i&&i.toAbortSignal()],a),h;const v=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let b;try{if(s&&rKt&&r!=="get"&&r!=="head"&&(b=await oKt(c,n))!==0){let _=new Request(t,{method:"POST",body:n,duplex:"half"}),S;if(Be.isFormData(n)&&(S=_.headers.get("content-type"))&&c.setContentType(S),_.body){const[A,O]=x3e(b,z5(y3e(s)));n=_3e(_.body,E3e,A,O)}}Be.isString(d)||(d=d?"include":"omit");const y="credentials"in Request.prototype;h=new Request(t,{...f,signal:p,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:y?d:void 0});let w=await fetch(h);const k=yz&&(u==="stream"||u==="response");if(yz&&(l||k&&v)){const _={};["status","statusText","headers"].forEach(I=>{_[I]=w[I]});const S=Be.toFiniteNumber(w.headers.get("content-length")),[A,O]=l&&x3e(S,z5(y3e(l),!0))||[];w=new Response(_3e(w.body,E3e,A,()=>{O&&O(),v&&v()}),_)}u=u||"text";let E=await W5[Be.findKey(W5,u)||"text"](w,e);return!k&&v&&v(),await new Promise((_,S)=>{b3e(_,S,{data:E,headers:ol.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:h})})}catch(y){throw v&&v(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new lr("Network Error",lr.ERR_NETWORK,e,h),{cause:y.cause||y}):lr.from(y,y&&y.code,e,h)}})};Be.forEach(wz,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const A3e=e=>`- ${e}`,iKt=e=>Be.isFunction(e)||e===null||e===!1,O3e={getAdapter:e=>{e=Be.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let a;if(n=r,!iKt(r)&&(n=wz[(a=String(r)).toLowerCase()],n===void 0))throw new lr(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([l,s])=>`adapter ${l} `+(s===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
|
|
703
703
|
`+i.map(A3e).join(`
|
|
@@ -714,7 +714,7 @@ ${u}
|
|
|
714
714
|
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
715
715
|
* MIT Licensed
|
|
716
716
|
*)
|
|
717
|
-
*/const{message:oXt}=j3e;async function iXt(e){const t=e.clone(),r=await t.text(),n=t.status||200,o=t.statusText||oXt[n]||"OK";return{status:n,statusText:o,headers:Object.fromEntries(t.headers.entries()),body:r}}function aXt(e){for(var t=[],r=0;r<e.length;){var n=e[r];if(n==="*"||n==="+"||n==="?"){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if(n==="\\"){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if(n==="{"){t.push({type:"OPEN",index:r,value:e[r++]});continue}if(n==="}"){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(n===":"){for(var o="",i=r+1;i<e.length;){var a=e.charCodeAt(i);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){o+=e[i++];continue}break}if(!o)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:o}),r=i;continue}if(n==="("){var l=1,s="",i=r+1;if(e[i]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<e.length;){if(e[i]==="\\"){s+=e[i++]+e[i++];continue}if(e[i]===")"){if(l--,l===0){i++;break}}else if(e[i]==="("&&(l++,e[i+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(i));s+=e[i++]}if(l)throw new TypeError("Unbalanced pattern at ".concat(r));if(!s)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:s}),r=i;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}function lXt(e,t){t===void 0&&(t={});for(var r=aXt(e),n=t.prefixes,o=n===void 0?"./":n,i=t.delimiter,a=i===void 0?"/#?":i,l=[],s=0,u=0,c="",d=function(I){if(u<r.length&&r[u].type===I)return r[u++].value},f=function(I){var L=d(I);if(L!==void 0)return L;var P=r[u],H=P.type,j=P.index;throw new TypeError("Unexpected ".concat(H," at ").concat(j,", expected ").concat(I))},p=function(){for(var I="",L;L=d("CHAR")||d("ESCAPED_CHAR");)I+=L;return I},h=function(I){for(var L=0,P=a;L<P.length;L++){var H=P[L];if(I.indexOf(H)>-1)return!0}return!1},v=function(I){var L=l[l.length-1],P=I||(L&&typeof L=="string"?L:"");if(L&&!P)throw new TypeError('Must have text between two parameters, missing text after "'.concat(L.name,'"'));return!P||h(P)?"[^".concat(op(a),"]+?"):"(?:(?!".concat(op(P),")[^").concat(op(a),"])+?")};u<r.length;){var b=d("CHAR"),y=d("NAME"),w=d("PATTERN");if(y||w){var k=b||"";o.indexOf(k)===-1&&(c+=k,k=""),c&&(l.push(c),c=""),l.push({name:y||s++,prefix:k,suffix:"",pattern:w||v(k),modifier:d("MODIFIER")||""});continue}var E=b||d("ESCAPED_CHAR");if(E){c+=E;continue}c&&(l.push(c),c="");var _=d("OPEN");if(_){var k=p(),S=d("NAME")||"",A=d("PATTERN")||"",O=p();f("CLOSE"),l.push({name:S||(A?s++:""),pattern:S&&!A?v(k):A,prefix:k,suffix:O,modifier:d("MODIFIER")||""});continue}f("END")}return l}function sXt(e,t){var r=[],n=z3e(e,r,t);return uXt(n,r,t)}function uXt(e,t,r){r===void 0&&(r={});var n=r.decode,o=n===void 0?function(i){return i}:n;return function(i){var a=e.exec(i);if(!a)return!1;for(var l=a[0],s=a.index,u=Object.create(null),c=function(f){if(a[f]===void 0)return"continue";var p=t[f-1];p.modifier==="*"||p.modifier==="+"?u[p.name]=a[f].split(p.prefix+p.suffix).map(function(h){return o(h,p)}):u[p.name]=o(a[f],p)},d=1;d<a.length;d++)c(d);return{path:l,index:s,params:u}}}function op(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function M3e(e){return e&&e.sensitive?"":"i"}function cXt(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,o=r.exec(e.source);o;)t.push({name:o[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),o=r.exec(e.source);return e}function dXt(e,t,r){var n=e.map(function(o){return z3e(o,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),M3e(r))}function fXt(e,t,r){return mXt(lXt(e,r),t,r)}function mXt(e,t,r){r===void 0&&(r={});for(var n=r.strict,o=n===void 0?!1:n,i=r.start,a=i===void 0?!0:i,l=r.end,s=l===void 0?!0:l,u=r.encode,c=u===void 0?function(L){return L}:u,d=r.delimiter,f=d===void 0?"/#?":d,p=r.endsWith,h=p===void 0?"":p,v="[".concat(op(h),"]|$"),b="[".concat(op(f),"]"),y=a?"^":"",w=0,k=e;w<k.length;w++){var E=k[w];if(typeof E=="string")y+=op(c(E));else{var _=op(c(E.prefix)),S=op(c(E.suffix));if(E.pattern)if(t&&t.push(E),_||S)if(E.modifier==="+"||E.modifier==="*"){var A=E.modifier==="*"?"?":"";y+="(?:".concat(_,"((?:").concat(E.pattern,")(?:").concat(S).concat(_,"(?:").concat(E.pattern,"))*)").concat(S,")").concat(A)}else y+="(?:".concat(_,"(").concat(E.pattern,")").concat(S,")").concat(E.modifier);else{if(E.modifier==="+"||E.modifier==="*")throw new TypeError('Can not repeat "'.concat(E.name,'" without a prefix and suffix'));y+="(".concat(E.pattern,")").concat(E.modifier)}else y+="(?:".concat(_).concat(S,")").concat(E.modifier)}}if(s)o||(y+="".concat(b,"?")),y+=r.endsWith?"(?=".concat(v,")"):"$";else{var O=e[e.length-1],I=typeof O=="string"?b.indexOf(O[O.length-1])>-1:O===void 0;o||(y+="(?:".concat(b,"(?=").concat(v,"))?")),I||(y+="(?=".concat(b,"|").concat(v,")"))}return new RegExp(y,M3e(r))}function z3e(e,t,r){return e instanceof RegExp?cXt(e,t):Array.isArray(e)?dXt(e,t,r):fXt(e,t,r)}new TextEncoder;var G1=class extends Response{static isConfigurableStatusCode(t){return t>=200&&t<=599}static isRedirectResponse(t){return G1.STATUS_CODES_WITH_REDIRECT.includes(t)}static isResponseWithBody(t){return!G1.STATUS_CODES_WITHOUT_BODY.includes(t)}static setUrl(t,r){t&&r.url==""&&Object.defineProperty(r,"url",{value:t,enumerable:!0,configurable:!0,writable:!1})}static parseRawHeaders(t){const r=new Headers;for(let n=0;n<t.length;n+=2)r.append(t[n],t[n+1]);return r}constructor(t,r={}){var n;const o=(n=r.status)!=null?n:200,i=G1.isConfigurableStatusCode(o)?o:200,a=G1.isResponseWithBody(o)?t:null;if(super(a,{...r,status:i}),o!==i){const l=Object.getOwnPropertySymbols(this).find(s=>s.description==="state");if(l){const s=Reflect.get(this,l);Reflect.set(s,"status",o)}else Object.defineProperty(this,"status",{value:o,enumerable:!0,configurable:!0,writable:!1})}G1.setUrl(r.url,this)}},Tz=G1;Tz.STATUS_CODES_WITHOUT_BODY=[101,103,204,205,304],Tz.STATUS_CODES_WITH_REDIRECT=[301,302,303,307,308];function Sz(){if(typeof navigator<"u"&&navigator.product==="ReactNative")return!0;if(typeof process<"u"){const e=process.type;return e==="renderer"||e==="worker"?!1:!!(process.versions&&process.versions.node)}return!1}var pXt={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_USED_COMPONENTS_TableEditor:"false",VITE_XMLUI_VERSION:"0.9.
|
|
717
|
+
*/const{message:oXt}=j3e;async function iXt(e){const t=e.clone(),r=await t.text(),n=t.status||200,o=t.statusText||oXt[n]||"OK";return{status:n,statusText:o,headers:Object.fromEntries(t.headers.entries()),body:r}}function aXt(e){for(var t=[],r=0;r<e.length;){var n=e[r];if(n==="*"||n==="+"||n==="?"){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if(n==="\\"){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if(n==="{"){t.push({type:"OPEN",index:r,value:e[r++]});continue}if(n==="}"){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(n===":"){for(var o="",i=r+1;i<e.length;){var a=e.charCodeAt(i);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){o+=e[i++];continue}break}if(!o)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:o}),r=i;continue}if(n==="("){var l=1,s="",i=r+1;if(e[i]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<e.length;){if(e[i]==="\\"){s+=e[i++]+e[i++];continue}if(e[i]===")"){if(l--,l===0){i++;break}}else if(e[i]==="("&&(l++,e[i+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(i));s+=e[i++]}if(l)throw new TypeError("Unbalanced pattern at ".concat(r));if(!s)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:s}),r=i;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}function lXt(e,t){t===void 0&&(t={});for(var r=aXt(e),n=t.prefixes,o=n===void 0?"./":n,i=t.delimiter,a=i===void 0?"/#?":i,l=[],s=0,u=0,c="",d=function(I){if(u<r.length&&r[u].type===I)return r[u++].value},f=function(I){var L=d(I);if(L!==void 0)return L;var P=r[u],H=P.type,j=P.index;throw new TypeError("Unexpected ".concat(H," at ").concat(j,", expected ").concat(I))},p=function(){for(var I="",L;L=d("CHAR")||d("ESCAPED_CHAR");)I+=L;return I},h=function(I){for(var L=0,P=a;L<P.length;L++){var H=P[L];if(I.indexOf(H)>-1)return!0}return!1},v=function(I){var L=l[l.length-1],P=I||(L&&typeof L=="string"?L:"");if(L&&!P)throw new TypeError('Must have text between two parameters, missing text after "'.concat(L.name,'"'));return!P||h(P)?"[^".concat(op(a),"]+?"):"(?:(?!".concat(op(P),")[^").concat(op(a),"])+?")};u<r.length;){var b=d("CHAR"),y=d("NAME"),w=d("PATTERN");if(y||w){var k=b||"";o.indexOf(k)===-1&&(c+=k,k=""),c&&(l.push(c),c=""),l.push({name:y||s++,prefix:k,suffix:"",pattern:w||v(k),modifier:d("MODIFIER")||""});continue}var E=b||d("ESCAPED_CHAR");if(E){c+=E;continue}c&&(l.push(c),c="");var _=d("OPEN");if(_){var k=p(),S=d("NAME")||"",A=d("PATTERN")||"",O=p();f("CLOSE"),l.push({name:S||(A?s++:""),pattern:S&&!A?v(k):A,prefix:k,suffix:O,modifier:d("MODIFIER")||""});continue}f("END")}return l}function sXt(e,t){var r=[],n=z3e(e,r,t);return uXt(n,r,t)}function uXt(e,t,r){r===void 0&&(r={});var n=r.decode,o=n===void 0?function(i){return i}:n;return function(i){var a=e.exec(i);if(!a)return!1;for(var l=a[0],s=a.index,u=Object.create(null),c=function(f){if(a[f]===void 0)return"continue";var p=t[f-1];p.modifier==="*"||p.modifier==="+"?u[p.name]=a[f].split(p.prefix+p.suffix).map(function(h){return o(h,p)}):u[p.name]=o(a[f],p)},d=1;d<a.length;d++)c(d);return{path:l,index:s,params:u}}}function op(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function M3e(e){return e&&e.sensitive?"":"i"}function cXt(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,o=r.exec(e.source);o;)t.push({name:o[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),o=r.exec(e.source);return e}function dXt(e,t,r){var n=e.map(function(o){return z3e(o,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),M3e(r))}function fXt(e,t,r){return mXt(lXt(e,r),t,r)}function mXt(e,t,r){r===void 0&&(r={});for(var n=r.strict,o=n===void 0?!1:n,i=r.start,a=i===void 0?!0:i,l=r.end,s=l===void 0?!0:l,u=r.encode,c=u===void 0?function(L){return L}:u,d=r.delimiter,f=d===void 0?"/#?":d,p=r.endsWith,h=p===void 0?"":p,v="[".concat(op(h),"]|$"),b="[".concat(op(f),"]"),y=a?"^":"",w=0,k=e;w<k.length;w++){var E=k[w];if(typeof E=="string")y+=op(c(E));else{var _=op(c(E.prefix)),S=op(c(E.suffix));if(E.pattern)if(t&&t.push(E),_||S)if(E.modifier==="+"||E.modifier==="*"){var A=E.modifier==="*"?"?":"";y+="(?:".concat(_,"((?:").concat(E.pattern,")(?:").concat(S).concat(_,"(?:").concat(E.pattern,"))*)").concat(S,")").concat(A)}else y+="(?:".concat(_,"(").concat(E.pattern,")").concat(S,")").concat(E.modifier);else{if(E.modifier==="+"||E.modifier==="*")throw new TypeError('Can not repeat "'.concat(E.name,'" without a prefix and suffix'));y+="(".concat(E.pattern,")").concat(E.modifier)}else y+="(?:".concat(_).concat(S,")").concat(E.modifier)}}if(s)o||(y+="".concat(b,"?")),y+=r.endsWith?"(?=".concat(v,")"):"$";else{var O=e[e.length-1],I=typeof O=="string"?b.indexOf(O[O.length-1])>-1:O===void 0;o||(y+="(?:".concat(b,"(?=").concat(v,"))?")),I||(y+="(?=".concat(b,"|").concat(v,")"))}return new RegExp(y,M3e(r))}function z3e(e,t,r){return e instanceof RegExp?cXt(e,t):Array.isArray(e)?dXt(e,t,r):fXt(e,t,r)}new TextEncoder;var G1=class extends Response{static isConfigurableStatusCode(t){return t>=200&&t<=599}static isRedirectResponse(t){return G1.STATUS_CODES_WITH_REDIRECT.includes(t)}static isResponseWithBody(t){return!G1.STATUS_CODES_WITHOUT_BODY.includes(t)}static setUrl(t,r){t&&r.url==""&&Object.defineProperty(r,"url",{value:t,enumerable:!0,configurable:!0,writable:!1})}static parseRawHeaders(t){const r=new Headers;for(let n=0;n<t.length;n+=2)r.append(t[n],t[n+1]);return r}constructor(t,r={}){var n;const o=(n=r.status)!=null?n:200,i=G1.isConfigurableStatusCode(o)?o:200,a=G1.isResponseWithBody(o)?t:null;if(super(a,{...r,status:i}),o!==i){const l=Object.getOwnPropertySymbols(this).find(s=>s.description==="state");if(l){const s=Reflect.get(this,l);Reflect.set(s,"status",o)}else Object.defineProperty(this,"status",{value:o,enumerable:!0,configurable:!0,writable:!1})}G1.setUrl(r.url,this)}},Tz=G1;Tz.STATUS_CODES_WITHOUT_BODY=[101,103,204,205,304],Tz.STATUS_CODES_WITH_REDIRECT=[301,302,303,307,308];function Sz(){if(typeof navigator<"u"&&navigator.product==="ReactNative")return!0;if(typeof process<"u"){const e=process.type;return e==="renderer"||e==="worker"?!1:!!(process.versions&&process.versions.node)}return!1}var pXt={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_USED_COMPONENTS_TableEditor:"false",VITE_XMLUI_VERSION:"0.9.83 (built 7/22/2025)"},hXt=Object.defineProperty,gXt=(e,t)=>{for(var r in t)hXt(e,r,{get:t[r],enumerable:!0})},Ez={};gXt(Ez,{blue:()=>bXt,gray:()=>Az,green:()=>yXt,red:()=>xXt,yellow:()=>vXt});function vXt(e){return`\x1B[33m${e}\x1B[0m`}function bXt(e){return`\x1B[34m${e}\x1B[0m`}function Az(e){return`\x1B[90m${e}\x1B[0m`}function xXt(e){return`\x1B[31m${e}\x1B[0m`}function yXt(e){return`\x1B[32m${e}\x1B[0m`}var Y5=Sz(),F3e=class{constructor(t){Tr(this,"prefix");this.name=t,this.prefix=`[${this.name}]`;const r=W3e("DEBUG"),n=W3e("LOG_LEVEL");r==="1"||r==="true"||typeof r<"u"&&this.name.startsWith(r)?(this.debug=Sk(n,"debug")?Kc:this.debug,this.info=Sk(n,"info")?Kc:this.info,this.success=Sk(n,"success")?Kc:this.success,this.warning=Sk(n,"warning")?Kc:this.warning,this.error=Sk(n,"error")?Kc:this.error):(this.info=Kc,this.success=Kc,this.warning=Kc,this.error=Kc,this.only=Kc)}extend(t){return new F3e(`${this.name}:${t}`)}debug(t,...r){this.logEntry({level:"debug",message:Az(t),positionals:r,prefix:this.prefix,colors:{prefix:"gray"}})}info(t,...r){this.logEntry({level:"info",message:t,positionals:r,prefix:this.prefix,colors:{prefix:"blue"}});const n=new wXt;return(o,...i)=>{n.measure(),this.logEntry({level:"info",message:`${o} ${Az(`${n.deltaTime}ms`)}`,positionals:i,prefix:this.prefix,colors:{prefix:"blue"}})}}success(t,...r){this.logEntry({level:"info",message:t,positionals:r,prefix:`✔ ${this.prefix}`,colors:{timestamp:"green",prefix:"green"}})}warning(t,...r){this.logEntry({level:"warning",message:t,positionals:r,prefix:`⚠ ${this.prefix}`,colors:{timestamp:"yellow",prefix:"yellow"}})}error(t,...r){this.logEntry({level:"error",message:t,positionals:r,prefix:`✖ ${this.prefix}`,colors:{timestamp:"red",prefix:"red"}})}only(t){t()}createEntry(t,r){return{timestamp:new Date,level:t,message:r}}logEntry(t){const{level:r,message:n,prefix:o,colors:i,positionals:a=[]}=t,l=this.createEntry(r,n),s=(i==null?void 0:i.timestamp)||"gray",u=(i==null?void 0:i.prefix)||"gray",c={timestamp:Ez[s],prefix:Ez[u]};this.getWriter(r)([c.timestamp(this.formatTimestamp(l.timestamp))].concat(o!=null?c.prefix(o):[]).concat(V3e(n)).join(" "),...a.map(V3e))}formatTimestamp(t){return`${t.toLocaleTimeString("en-GB")}:${t.getMilliseconds()}`}getWriter(t){switch(t){case"debug":case"success":case"info":return CXt;case"warning":return kXt;case"error":return _Xt}}},wXt=class{constructor(){Tr(this,"startTime");Tr(this,"endTime");Tr(this,"deltaTime");this.startTime=performance.now()}measure(){this.endTime=performance.now();const t=this.endTime-this.startTime;this.deltaTime=t.toFixed(2)}},Kc=()=>{};function CXt(e,...t){if(Y5){process.stdout.write(q1(e,...t)+`
|
|
718
718
|
`);return}console.log(e,...t)}function kXt(e,...t){if(Y5){process.stderr.write(q1(e,...t)+`
|
|
719
719
|
`);return}console.warn(e,...t)}function _Xt(e,...t){if(Y5){process.stderr.write(q1(e,...t)+`
|
|
720
720
|
`);return}console.error(e,...t)}function W3e(e){var t;return Y5?pXt[e]:(t=globalThis[e])==null?void 0:t.toString()}function Sk(e,t){return e!==void 0&&e!==t}function V3e(e){return typeof e>"u"?"undefined":e===null?"null":typeof e=="string"?e:typeof e=="object"?JSON.stringify(e):e.toString()}function U3e(e){return globalThis[e]||void 0}function TXt(e,t){globalThis[e]=t}function SXt(e){delete globalThis[e]}var EXt=class{constructor(t){this.symbol=t,this.readyState="INACTIVE",this.emitter=new q5,this.subscriptions=[],this.logger=new F3e(t.description),this.emitter.setMaxListeners(0),this.logger.info("constructing the interceptor...")}checkEnvironment(){return!0}apply(){const t=this.logger.extend("apply");if(t.info("applying the interceptor..."),this.readyState==="APPLIED"){t.info("intercepted already applied!");return}if(!this.checkEnvironment()){t.info("the interceptor cannot be applied in this environment!");return}this.readyState="APPLYING";const n=this.getInstance();if(n){t.info("found a running instance, reusing..."),this.on=(o,i)=>(t.info('proxying the "%s" listener',o),n.emitter.addListener(o,i),this.subscriptions.push(()=>{n.emitter.removeListener(o,i),t.info('removed proxied "%s" listener!',o)}),this),this.readyState="APPLIED";return}t.info("no running instance found, setting up a new instance..."),this.setup(),this.setInstance(),this.readyState="APPLIED"}setup(){}on(t,r){const n=this.logger.extend("on");return this.readyState==="DISPOSING"||this.readyState==="DISPOSED"?(n.info("cannot listen to events, already disposed!"),this):(n.info('adding "%s" event listener:',t,r),this.emitter.on(t,r),this)}once(t,r){return this.emitter.once(t,r),this}off(t,r){return this.emitter.off(t,r),this}removeAllListeners(t){return this.emitter.removeAllListeners(t),this}dispose(){const t=this.logger.extend("dispose");if(this.readyState==="DISPOSED"){t.info("cannot dispose, already disposed!");return}if(t.info("disposing the interceptor..."),this.readyState="DISPOSING",!this.getInstance()){t.info("no interceptors running, skipping dispose...");return}if(this.clearInstance(),t.info("global symbol deleted:",U3e(this.symbol)),this.subscriptions.length>0){t.info("disposing of %d subscriptions...",this.subscriptions.length);for(const r of this.subscriptions)r();this.subscriptions=[],t.info("disposed of all subscriptions!",this.subscriptions.length)}this.emitter.removeAllListeners(),t.info("destroyed the listener!"),this.readyState="DISPOSED"}getInstance(){var t;const r=U3e(this.symbol);return this.logger.info("retrieved global instance:",(t=r==null?void 0:r.constructor)==null?void 0:t.name),r}setInstance(){TXt(this.symbol,this),this.logger.info("set global instance!",this.symbol.description)}clearInstance(){SXt(this.symbol),this.logger.info("cleared global instance!",this.symbol.description)}};function AXt(){return Math.random().toString(16).slice(2)}function OXt(e,t=!0){return[t&&e.origin,e.pathname].filter(Boolean).join("")}const IXt=/[\?|#].*$/g;function RXt(e){return new URL(`/${e}`,"http://localhost").searchParams}function q3e(e){return e.endsWith("?")?e:e.replace(IXt,"")}function PXt(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}function LXt(e,t){if(PXt(e)||e.startsWith("*"))return e;const r=t||typeof location<"u"&&location.href;return r?decodeURI(new URL(encodeURI(e),r).href):e}function HXt(e,t){if(e instanceof RegExp)return e;const r=LXt(e,t);return q3e(r)}function NXt(e){return e.replace(/([:a-zA-Z_-]*)(\*{1,2})+/g,(t,r,n)=>{const o="(.*)";return r?r.startsWith(":")?`${r}${n}`:`${r}${o}`:o}).replace(/([^\/])(:)(?=\d+)/,"$1\\$2").replace(/^([^\/]+)(:)(?=\/\/)/,"$1\\$2")}function Oz(e,t,r){const n=HXt(t,r),o=typeof n=="string"?NXt(n):n,i=OXt(e),a=sXt(o,{decode:decodeURIComponent})(i),l=a&&a.params||{};return{matches:a!==!1,params:l}}function Ek(e){if(typeof location>"u")return e.toString();const t=e instanceof URL?e:new URL(e);return t.origin===location.origin?t.pathname:t.origin+t.pathname}var $Xt=Object.create,G3e=Object.defineProperty,DXt=Object.getOwnPropertyDescriptor,Y3e=Object.getOwnPropertyNames,BXt=Object.getPrototypeOf,jXt=Object.prototype.hasOwnProperty,MXt=(e,t)=>function(){return t||(0,e[Y3e(e)[0]])((t={exports:{}}).exports,t),t.exports},zXt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Y3e(t))!jXt.call(e,o)&&o!==r&&G3e(e,o,{get:()=>t[o],enumerable:!(n=DXt(t,o))||n.enumerable});return e},FXt=(e,t,r)=>(r=e!=null?$Xt(BXt(e)):{},zXt(G3e(r,"default",{value:e,enumerable:!0}),e)),WXt=MXt({"node_modules/cookie/index.js"(e){e.parse=l,e.serialize=c;var t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,o=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/;function l(h,v){if(typeof h!="string")throw new TypeError("argument str must be a string");var b={},y=h.length;if(y<2)return b;var w=v&&v.decode||d,k=0,E=0,_=0;do{if(E=h.indexOf("=",k),E===-1)break;if(_=h.indexOf(";",k),_===-1)_=y;else if(E>_){k=h.lastIndexOf(";",E-1)+1;continue}var S=s(h,k,E),A=u(h,E,S),O=h.slice(S,A);if(!r.call(b,O)){var I=s(h,E+1,_),L=u(h,_,I);h.charCodeAt(I)===34&&h.charCodeAt(L-1)===34&&(I++,L--);var P=h.slice(I,L);b[O]=p(P,w)}k=_+1}while(k<y);return b}function s(h,v,b){do{var y=h.charCodeAt(v);if(y!==32&&y!==9)return v}while(++v<b);return b}function u(h,v,b){for(;v>b;){var y=h.charCodeAt(--v);if(y!==32&&y!==9)return v+1}return b}function c(h,v,b){var y=b&&b.encode||encodeURIComponent;if(typeof y!="function")throw new TypeError("option encode is invalid");if(!n.test(h))throw new TypeError("argument name is invalid");var w=y(v);if(!o.test(w))throw new TypeError("argument val is invalid");var k=h+"="+w;if(!b)return k;if(b.maxAge!=null){var E=Math.floor(b.maxAge);if(!isFinite(E))throw new TypeError("option maxAge is invalid");k+="; Max-Age="+E}if(b.domain){if(!i.test(b.domain))throw new TypeError("option domain is invalid");k+="; Domain="+b.domain}if(b.path){if(!a.test(b.path))throw new TypeError("option path is invalid");k+="; Path="+b.path}if(b.expires){var _=b.expires;if(!f(_)||isNaN(_.valueOf()))throw new TypeError("option expires is invalid");k+="; Expires="+_.toUTCString()}if(b.httpOnly&&(k+="; HttpOnly"),b.secure&&(k+="; Secure"),b.partitioned&&(k+="; Partitioned"),b.priority){var S=typeof b.priority=="string"?b.priority.toLowerCase():b.priority;switch(S){case"low":k+="; Priority=Low";break;case"medium":k+="; Priority=Medium";break;case"high":k+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(b.sameSite){var A=typeof b.sameSite=="string"?b.sameSite.toLowerCase():b.sameSite;switch(A){case!0:k+="; SameSite=Strict";break;case"lax":k+="; SameSite=Lax";break;case"strict":k+="; SameSite=Strict";break;case"none":k+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return k}function d(h){return h.indexOf("%")!==-1?decodeURIComponent(h):h}function f(h){return t.call(h)==="[object Date]"}function p(h,v){try{return v(h)}catch{return h}}}}),VXt=FXt(WXt()),K3e=VXt.default;/*! Bundled license information:
|
|
@@ -951,7 +951,7 @@ Read more: https://mswjs.io/docs/getting-started/mocks`;function l(s){switch(s){
|
|
|
951
951
|
`+n).join("")):""}var REe=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Wz=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(REe),aZt={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function Z1(e,t){this._e=qg(),this.name=e,this.message=t}function PEe(e,t){return e+". Errors: "+Object.keys(t).map(r=>t[r].toString()).filter((r,n,o)=>o.indexOf(r)===n).join(`
|
|
952
952
|
`)}function Z5(e,t,r,n){this._e=qg(),this.failures=t,this.failedKeys=n,this.successCount=r,this.message=PEe(e,t)}function Lk(e,t){this._e=qg(),this.name="BulkError",this.failures=Object.keys(t).map(r=>t[r]),this.failuresByPos=t,this.message=PEe(e,t)}X1(Z1).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+Fz(this._e,2))}},toString:function(){return this.name+": "+this.message}}),X1(Z5).from(Z1),X1(Lk).from(Z1);var Vz=Wz.reduce((e,t)=>(e[t]=t+"Error",e),{});const lZt=Z1;var Ut=Wz.reduce((e,t)=>{var r=t+"Error";function n(o,i){this._e=qg(),this.name=r,o?typeof o=="string"?(this.message=`${o}${i?`
|
|
953
953
|
`+i:""}`,this.inner=i||null):typeof o=="object"&&(this.message=`${o.name} ${o.message}`,this.inner=o):(this.message=aZt[t]||r,this.inner=null)}return X1(n).from(lZt),e[t]=n,e},{});Ut.Syntax=SyntaxError,Ut.Type=TypeError,Ut.Range=RangeError;var LEe=REe.reduce((e,t)=>(e[t+"Error"]=Ut[t],e),{}),J5=Wz.reduce((e,t)=>(["Syntax","Type","Range"].indexOf(t)===-1&&(e[t+"Error"]=Ut[t]),e),{});function pn(){}function Hk(e){return e}function sZt(e,t){return e==null||e===Hk?t:function(r){return t(e(r))}}function Gg(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function uZt(e,t){return e===pn?t:function(){var r=e.apply(this,arguments);r!==void 0&&(arguments[0]=r);var n=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var i=t.apply(this,arguments);return n&&(this.onsuccess=this.onsuccess?Gg(n,this.onsuccess):n),o&&(this.onerror=this.onerror?Gg(o,this.onerror):o),i!==void 0?i:r}}function cZt(e,t){return e===pn?t:function(){e.apply(this,arguments);var r=this.onsuccess,n=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),r&&(this.onsuccess=this.onsuccess?Gg(r,this.onsuccess):r),n&&(this.onerror=this.onerror?Gg(n,this.onerror):n)}}function dZt(e,t){return e===pn?t:function(r){var n=e.apply(this,arguments);Ea(r,n);var o=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return o&&(this.onsuccess=this.onsuccess?Gg(o,this.onsuccess):o),i&&(this.onerror=this.onerror?Gg(i,this.onerror):i),n===void 0?a===void 0?void 0:a:Ea(n,a)}}function fZt(e,t){return e===pn?t:function(){return t.apply(this,arguments)!==!1&&e.apply(this,arguments)}}function Uz(e,t){return e===pn?t:function(){var r=e.apply(this,arguments);if(r&&typeof r.then=="function"){for(var n=this,o=arguments.length,i=new Array(o);o--;)i[o]=arguments[o];return r.then(function(){return t.apply(n,i)})}return t.apply(this,arguments)}}J5.ModifyError=Z5,J5.DexieError=Z1,J5.BulkError=Lk;var Nk={};const HEe=100,[qz,eO,Gz]=typeof Promise>"u"?[]:(()=>{let e=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[e,Ik(e),e];const t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,Ik(t),e]})(),NEe=eO&&eO.then,tO=qz&&qz.constructor,Yz=!!Gz;var Kz=!1,mZt=Gz?()=>{Gz.then(iO)}:Rn.setImmediate?setImmediate.bind(null,iO):Rn.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver(()=>{iO(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(iO,0)},$k=function(e,t){Dk.push([e,t]),rO&&(mZt(),rO=!1)},Xz=!0,rO=!0,Yg=[],nO=[],Qz=null,Zz=Hk,J1={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:UEe,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(e=>{try{UEe(e[0],e[1])}catch{}})}},Rt=J1,Dk=[],Kg=0,oO=[];function gt(e){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=pn,this._lib=!1;var t=this._PSD=Rt;if(Xc&&(this._stackHolder=qg(),this._prev=null,this._numPrev=0),typeof e!="function"){if(e!==Nk)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&eF(this,this._value))}this._state=null,this._value=null,++t.ref,DEe(this,e)}const Jz={get:function(){var e=Rt,t=sO;function r(n,o){var i=!e.global&&(e!==Rt||t!==sO);const a=i&&!gf();var l=new gt((s,u)=>{tF(this,new $Ee(cO(n,e,i,a),cO(o,e,i,a),s,u,e))});return Xc&&MEe(l,this),l}return r.prototype=Nk,r},set:function(e){mf(this,"then",e&&e.prototype===Nk?Jz:{get:function(){return e},set:Jz.set})}};function $Ee(e,t,r,n,o){this.onFulfilled=typeof e=="function"?e:null,this.onRejected=typeof t=="function"?t:null,this.resolve=r,this.reject=n,this.psd=o}function DEe(e,t){try{t(r=>{if(e._state===null){if(r===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&Bk();r&&typeof r.then=="function"?DEe(e,(o,i)=>{r instanceof gt?r._then(o,i):r.then(o,i)}):(e._state=!0,e._value=r,BEe(e)),n&&jk()}},eF.bind(null,e))}catch(r){eF(e,r)}}function eF(e,t){if(nO.push(t),e._state===null){var r=e._lib&&Bk();t=Zz(t),e._state=!1,e._value=t,Xc&&t!==null&&typeof t=="object"&&!t._promise&&function(n,o,i){try{n.apply(null,i)}catch{}}(()=>{var n=Dz(t,"stack");t._promise=e,mf(t,"stack",{get:()=>Kz?n&&(n.get?n.get.apply(t):n.value):e.stack})}),function(n){Yg.some(o=>o._value===n._value)||Yg.push(n)}(e),BEe(e),r&&jk()}}function BEe(e){var t=e._listeners;e._listeners=[];for(var r=0,n=t.length;r<n;++r)tF(e,t[r]);var o=e._PSD;--o.ref||o.finalize(),Kg===0&&(++Kg,$k(()=>{--Kg==0&&rF()},[]))}function tF(e,t){if(e._state!==null){var r=e._state?t.onFulfilled:t.onRejected;if(r===null)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++Kg,$k(pZt,[r,e,t])}else e._listeners.push(t)}function pZt(e,t,r){try{Qz=t;var n,o=t._value;t._state?n=e(o):(nO.length&&(nO=[]),n=e(o),nO.indexOf(o)===-1&&function(i){for(var a=Yg.length;a;)if(Yg[--a]._value===i._value)return void Yg.splice(a,1)}(t)),r.resolve(n)}catch(i){r.reject(i)}finally{Qz=null,--Kg==0&&rF(),--r.psd.ref||r.psd.finalize()}}function jEe(e,t,r){if(t.length===r)return t;var n="";if(e._state===!1){var o,i,a=e._value;a!=null?(o=a.name||"Error",i=a.message||a,n=Fz(a,0)):(o=a,i=""),t.push(o+(i?": "+i:"")+n)}return Xc&&((n=Fz(e._stackHolder,2))&&t.indexOf(n)===-1&&t.push(n),e._prev&&jEe(e._prev,t,r)),t}function MEe(e,t){var r=t?t._numPrev+1:0;r<100&&(e._prev=t,e._numPrev=r)}function iO(){Bk()&&jk()}function Bk(){var e=Xz;return Xz=!1,rO=!1,e}function jk(){var e,t,r;do for(;Dk.length>0;)for(e=Dk,Dk=[],r=e.length,t=0;t<r;++t){var n=e[t];n[0].apply(null,n[1])}while(Dk.length>0);Xz=!0,rO=!0}function rF(){var e=Yg;Yg=[],e.forEach(n=>{n._PSD.onunhandled.call(null,n._value,n)});for(var t=oO.slice(0),r=t.length;r;)t[--r]()}function aO(e){return new gt(Nk,!1,e)}function Mn(e,t){var r=Rt;return function(){var n=Bk(),o=Rt;try{return up(r,!0),e.apply(this,arguments)}catch(i){t&&t(i)}finally{up(o,!1),n&&jk()}}}K1(gt.prototype,{then:Jz,_then:function(e,t){tF(this,new $Ee(null,null,e,t,Rt))},catch:function(e){if(arguments.length===1)return this.then(null,e);var t=arguments[0],r=arguments[1];return typeof t=="function"?this.then(null,n=>n instanceof t?r(n):aO(n)):this.then(null,n=>n&&n.name===t?r(n):aO(n))},finally:function(e){return this.then(t=>(e(),t),t=>(e(),aO(t)))},stack:{get:function(){if(this._stack)return this._stack;try{Kz=!0;var e=jEe(this,[],20).join(`
|
|
954
|
-
From previous: `);return this._state!==null&&(this._stack=e),e}finally{Kz=!1}}},timeout:function(e,t){return e<1/0?new gt((r,n)=>{var o=setTimeout(()=>n(new Ut.Timeout(t)),e);this.then(r,n).finally(clearTimeout.bind(null,o))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&mf(gt.prototype,Symbol.toStringTag,"Dexie.Promise"),J1.env=zEe(),K1(gt,{all:function(){var e=hf.apply(null,arguments).map(uO);return new gt(function(t,r){e.length===0&&t([]);var n=e.length;e.forEach((o,i)=>gt.resolve(o).then(a=>{e[i]=a,--n||t(e)},r))})},resolve:e=>{if(e instanceof gt)return e;if(e&&typeof e.then=="function")return new gt((r,n)=>{e.then(r,n)});var t=new gt(Nk,!0,e);return MEe(t,Qz),t},reject:aO,race:function(){var e=hf.apply(null,arguments).map(uO);return new gt((t,r)=>{e.map(n=>gt.resolve(n).then(t,r))})},PSD:{get:()=>Rt,set:e=>Rt=e},totalEchoes:{get:()=>sO},newPSD:sp,usePSD:tx,scheduler:{get:()=>$k,set:e=>{$k=e}},rejectionMapper:{get:()=>Zz,set:e=>{Zz=e}},follow:(e,t)=>new gt((r,n)=>sp((o,i)=>{var a=Rt;a.unhandleds=[],a.onunhandled=i,a.finalize=Gg(function(){(function(l){function s(){l(),oO.splice(oO.indexOf(s),1)}oO.push(s),++Kg,$k(()=>{--Kg==0&&rF()},[])})(()=>{this.unhandleds.length===0?o():i(this.unhandleds[0])})},a.finalize),e()},t,r,n))}),tO&&(tO.allSettled&&mf(gt,"allSettled",function(){const e=hf.apply(null,arguments).map(uO);return new gt(t=>{e.length===0&&t([]);let r=e.length;const n=new Array(r);e.forEach((o,i)=>gt.resolve(o).then(a=>n[i]={status:"fulfilled",value:a},a=>n[i]={status:"rejected",reason:a}).then(()=>--r||t(n)))})}),tO.any&&typeof AggregateError<"u"&&mf(gt,"any",function(){const e=hf.apply(null,arguments).map(uO);return new gt((t,r)=>{e.length===0&&r(new AggregateError([]));let n=e.length;const o=new Array(n);e.forEach((i,a)=>gt.resolve(i).then(l=>t(l),l=>{o[a]=l,--n||r(new AggregateError(o))}))})}));const Ji={awaits:0,echoes:0,id:0};var hZt=0,lO=[],nF=0,sO=0,gZt=0;function sp(e,t,r,n){var o=Rt,i=Object.create(o);i.parent=o,i.ref=0,i.global=!1,i.id=++gZt;var a=J1.env;i.env=Yz?{Promise:gt,PromiseProp:{value:gt,configurable:!0,writable:!0},all:gt.all,race:gt.race,allSettled:gt.allSettled,any:gt.any,resolve:gt.resolve,reject:gt.reject,nthen:WEe(a.nthen,i),gthen:WEe(a.gthen,i)}:{},t&&Ea(i,t),++o.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var l=tx(i,e,r,n);return i.ref===0&&i.finalize(),l}function ex(){return Ji.id||(Ji.id=++hZt),++Ji.awaits,Ji.echoes+=HEe,Ji.id}function gf(){return!!Ji.awaits&&(--Ji.awaits==0&&(Ji.id=0),Ji.echoes=Ji.awaits*HEe,!0)}function uO(e){return Ji.echoes&&e&&e.constructor===tO?(ex(),e.then(t=>(gf(),t),t=>(gf(),oi(t)))):e}function vZt(e){++sO,Ji.echoes&&--Ji.echoes!=0||(Ji.echoes=Ji.id=0),lO.push(Rt),up(e,!0)}function bZt(){var e=lO[lO.length-1];lO.pop(),up(e,!1)}function up(e,t){var r=Rt;if((t?!Ji.echoes||nF++&&e===Rt:!nF||--nF&&e===Rt)||FEe(t?vZt.bind(null,e):bZt),e!==Rt&&(Rt=e,r===J1&&(J1.env=zEe()),Yz)){var n=J1.env.Promise,o=e.env;eO.then=o.nthen,n.prototype.then=o.gthen,(r.global||e.global)&&(Object.defineProperty(Rn,"Promise",o.PromiseProp),n.all=o.all,n.race=o.race,n.resolve=o.resolve,n.reject=o.reject,o.allSettled&&(n.allSettled=o.allSettled),o.any&&(n.any=o.any))}}function zEe(){var e=Rn.Promise;return Yz?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(Rn,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:eO.then,gthen:e.prototype.then}:{}}function tx(e,t,r,n,o){var i=Rt;try{return up(e,!0),t(r,n,o)}finally{up(i,!1)}}function FEe(e){NEe.call(qz,e)}function cO(e,t,r,n){return typeof e!="function"?e:function(){var o=Rt;r&&ex(),up(t,!0);try{return e.apply(this,arguments)}finally{up(o,!1),n&&FEe(gf)}}}function WEe(e,t){return function(r,n){return e.call(this,cO(r,t),cO(n,t))}}(""+NEe).indexOf("[native code]")===-1&&(ex=gf=pn);const VEe="unhandledrejection";function UEe(e,t){var r;try{r=t.onuncatched(e)}catch{}if(r!==!1)try{var n,o={promise:t,reason:e};if(Rn.document&&document.createEvent?((n=document.createEvent("Event")).initEvent(VEe,!0,!0),Ea(n,o)):Rn.CustomEvent&&Ea(n=new CustomEvent(VEe,{detail:o}),o),n&&Rn.dispatchEvent&&(dispatchEvent(n),!Rn.PromiseRejectionEvent&&Rn.onunhandledrejection))try{Rn.onunhandledrejection(n)}catch{}Xc&&n&&!n.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch{}}var oi=gt.reject;function oF(e,t,r,n){if(e.idbdb&&(e._state.openComplete||Rt.letThrough||e._vip)){var o=e._createTransaction(t,r,e._dbSchema);try{o.create(),e._state.PR1398_maxLoop=3}catch(i){return i.name===Vz.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(()=>oF(e,t,r,n))):oi(i)}return o._promise(t,(i,a)=>sp(()=>(Rt.trans=o,n(i,a,o)))).then(i=>o._completion.then(()=>i))}if(e._state.openComplete)return oi(new Ut.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return oi(new Ut.DatabaseClosed);e.open().catch(pn)}return e._state.dbReadyPromise.then(()=>oF(e,t,r,n))}const qEe="3.2.4",Xg="",iF=-1/0,vf="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",GEe="String expected.",Mk=[],dO=typeof navigator<"u"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),xZt=dO,yZt=dO,YEe=e=>!/(dexie\.js|dexie\.min\.js)/.test(e),fO="__dbnames",aF="readonly",lF="readwrite";function Qg(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}const KEe={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function mO(e){return typeof e!="string"||/\./.test(e)?t=>t:t=>(t[e]===void 0&&e in t&&delete(t=Pk(t))[e],t)}class wZt{_trans(t,r,n){const o=this._tx||Rt.trans,i=this.name;function a(s,u,c){if(!c.schema[i])throw new Ut.NotFound("Table "+i+" not part of transaction");return r(c.idbtrans,c)}const l=Bk();try{return o&&o.db===this.db?o===Rt.trans?o._promise(t,a,n):sp(()=>o._promise(t,a,n),{trans:o,transless:Rt.transless||Rt}):oF(this.db,t,[this.name],a)}finally{l&&jk()}}get(t,r){return t&&t.constructor===Object?this.where(t).first(r):this._trans("readonly",n=>this.core.get({trans:n,key:t}).then(o=>this.hook.reading.fire(o))).then(r)}where(t){if(typeof t=="string")return new this.db.WhereClause(this,t);if(Zi(t))return new this.db.WhereClause(this,`[${t.join("+")}]`);const r=Mo(t);if(r.length===1)return this.where(r[0]).equals(t[r[0]]);const n=this.schema.indexes.concat(this.schema.primKey).filter(u=>u.compound&&r.every(c=>u.keyPath.indexOf(c)>=0)&&u.keyPath.every(c=>r.indexOf(c)>=0))[0];if(n&&this.db._maxKey!==Xg)return this.where(n.name).equals(n.keyPath.map(u=>t[u]));!n&&Xc&&console.warn(`The query ${JSON.stringify(t)} on ${this.name} would benefit of a compound index [${r.join("+")}]`);const{idxByName:o}=this.schema,i=this.db._deps.indexedDB;function a(u,c){try{return i.cmp(u,c)===0}catch{return!1}}const[l,s]=r.reduce(([u,c],d)=>{const f=o[d],p=t[d];return[u||f,u||!f?Qg(c,f&&f.multi?h=>{const v=pf(h,d);return Zi(v)&&v.some(b=>a(p,b))}:h=>a(p,pf(h,d))):c]},[null,null]);return l?this.where(l.name).equals(t[l.keyPath]).filter(s):n?this.filter(s):this.where(r).equals("")}filter(t){return this.toCollection().and(t)}count(t){return this.toCollection().count(t)}offset(t){return this.toCollection().offset(t)}limit(t){return this.toCollection().limit(t)}each(t){return this.toCollection().each(t)}toArray(t){return this.toCollection().toArray(t)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(t){return new this.db.Collection(new this.db.WhereClause(this,Zi(t)?`[${t.join("+")}]`:t))}reverse(){return this.toCollection().reverse()}mapToClass(t){this.schema.mappedClass=t;const r=n=>{if(!n)return n;const o=Object.create(t.prototype);for(var i in n)if(Ql(n,i))try{o[i]=n[i]}catch{}return o};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=r,this.hook("reading",r),t}defineClass(){return this.mapToClass(function(t){Ea(this,t)})}add(t,r){const{auto:n,keyPath:o}=this.schema.primKey;let i=t;return o&&n&&(i=mO(o)(t)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"add",keys:r!=null?[r]:null,values:[i]})).then(a=>a.numFailures?gt.reject(a.failures[0]):a.lastResult).then(a=>{if(o)try{Ku(t,o,a)}catch{}return a})}update(t,r){if(typeof t!="object"||Zi(t))return this.where(":id").equals(t).modify(r);{const n=pf(t,this.schema.primKey.keyPath);if(n===void 0)return oi(new Ut.InvalidArgument("Given object does not contain its primary key"));try{typeof r!="function"?Mo(r).forEach(o=>{Ku(t,o,r[o])}):r(t,{value:t,primKey:n})}catch{}return this.where(":id").equals(n).modify(r)}}put(t,r){const{auto:n,keyPath:o}=this.schema.primKey;let i=t;return o&&n&&(i=mO(o)(t)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"put",values:[i],keys:r!=null?[r]:null})).then(a=>a.numFailures?gt.reject(a.failures[0]):a.lastResult).then(a=>{if(o)try{Ku(t,o,a)}catch{}return a})}delete(t){return this._trans("readwrite",r=>this.core.mutate({trans:r,type:"delete",keys:[t]})).then(r=>r.numFailures?gt.reject(r.failures[0]):void 0)}clear(){return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"deleteRange",range:KEe})).then(t=>t.numFailures?gt.reject(t.failures[0]):void 0)}bulkGet(t){return this._trans("readonly",r=>this.core.getMany({keys:t,trans:r}).then(n=>n.map(o=>this.hook.reading.fire(o))))}bulkAdd(t,r,n){const o=Array.isArray(r)?r:void 0,i=(n=n||(o?void 0:r))?n.allKeys:void 0;return this._trans("readwrite",a=>{const{auto:l,keyPath:s}=this.schema.primKey;if(s&&o)throw new Ut.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(o&&o.length!==t.length)throw new Ut.InvalidArgument("Arguments objects and keys must have the same length");const u=t.length;let c=s&&l?t.map(mO(s)):t;return this.core.mutate({trans:a,type:"add",keys:o,values:c,wantResults:i}).then(({numFailures:d,results:f,lastResult:p,failures:h})=>{if(d===0)return i?f:p;throw new Lk(`${this.name}.bulkAdd(): ${d} of ${u} operations failed`,h)})})}bulkPut(t,r,n){const o=Array.isArray(r)?r:void 0,i=(n=n||(o?void 0:r))?n.allKeys:void 0;return this._trans("readwrite",a=>{const{auto:l,keyPath:s}=this.schema.primKey;if(s&&o)throw new Ut.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(o&&o.length!==t.length)throw new Ut.InvalidArgument("Arguments objects and keys must have the same length");const u=t.length;let c=s&&l?t.map(mO(s)):t;return this.core.mutate({trans:a,type:"put",keys:o,values:c,wantResults:i}).then(({numFailures:d,results:f,lastResult:p,failures:h})=>{if(d===0)return i?f:p;throw new Lk(`${this.name}.bulkPut(): ${d} of ${u} operations failed`,h)})})}bulkDelete(t){const r=t.length;return this._trans("readwrite",n=>this.core.mutate({trans:n,type:"delete",keys:t})).then(({numFailures:n,lastResult:o,failures:i})=>{if(n===0)return o;throw new Lk(`${this.name}.bulkDelete(): ${n} of ${r} operations failed`,i)})}}function zk(e){var t={},r=function(a,l){if(l){for(var s=arguments.length,u=new Array(s-1);--s;)u[s-1]=arguments[s];return t[a].subscribe.apply(null,u),e}if(typeof a=="string")return t[a]};r.addEventType=i;for(var n=1,o=arguments.length;n<o;++n)i(arguments[n]);return r;function i(a,l,s){if(typeof a!="object"){var u;l||(l=fZt),s||(s=pn);var c={subscribers:[],fire:s,subscribe:function(d){c.subscribers.indexOf(d)===-1&&(c.subscribers.push(d),c.fire=l(c.fire,d))},unsubscribe:function(d){c.subscribers=c.subscribers.filter(function(f){return f!==d}),c.fire=c.subscribers.reduce(l,s)}};return t[a]=r[a]=c,c}Mo(u=a).forEach(function(d){var f=u[d];if(Zi(f))i(d,u[d][0],u[d][1]);else{if(f!=="asap")throw new Ut.InvalidArgument("Invalid event config");var p=i(d,Hk,function(){for(var h=arguments.length,v=new Array(h);h--;)v[h]=arguments[h];p.subscribers.forEach(function(b){_Ee(function(){b.apply(null,v)})})})}})}}function Fk(e,t){return X1(t).from({prototype:e}),t}function rx(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function sF(e,t){e.filter=Qg(e.filter,t)}function uF(e,t,r){var n=e.replayFilter;e.replayFilter=n?()=>Qg(n(),t()):t,e.justLimit=r&&!n}function pO(e,t){if(e.isPrimKey)return t.primaryKey;const r=t.getIndexByKeyPath(e.index);if(!r)throw new Ut.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return r}function XEe(e,t,r){const n=pO(e,t.schema);return t.openCursor({trans:r,values:!e.keysOnly,reverse:e.dir==="prev",unique:!!e.unique,query:{index:n,range:e.range}})}function hO(e,t,r,n){const o=e.replayFilter?Qg(e.filter,e.replayFilter()):e.filter;if(e.or){const i={},a=(l,s,u)=>{if(!o||o(s,u,f=>s.stop(f),f=>s.fail(f))){var c=s.primaryKey,d=""+c;d==="[object ArrayBuffer]"&&(d=""+new Uint8Array(c)),Ql(i,d)||(i[d]=!0,t(l,s,u))}};return Promise.all([e.or._iterate(a,r),QEe(XEe(e,n,r),e.algorithm,a,!e.keysOnly&&e.valueMapper)])}return QEe(XEe(e,n,r),Qg(e.algorithm,o),t,!e.keysOnly&&e.valueMapper)}function QEe(e,t,r,n){var o=Mn(n?(i,a,l)=>r(n(i),a,l):r);return e.then(i=>{if(i)return i.start(()=>{var a=()=>i.continue();t&&!t(i,l=>a=l,l=>{i.stop(l),a=pn},l=>{i.fail(l),a=pn})||o(i.value,i,l=>a=l),a()})})}function Aa(e,t){try{const r=ZEe(e),n=ZEe(t);if(r!==n)return r==="Array"?1:n==="Array"?-1:r==="binary"?1:n==="binary"?-1:r==="string"?1:n==="string"?-1:r==="Date"?1:n!=="Date"?NaN:-1;switch(r){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(o,i){const a=o.length,l=i.length,s=a<l?a:l;for(let u=0;u<s;++u)if(o[u]!==i[u])return o[u]<i[u]?-1:1;return a===l?0:a<l?-1:1}(JEe(e),JEe(t));case"Array":return function(o,i){const a=o.length,l=i.length,s=a<l?a:l;for(let u=0;u<s;++u){const c=Aa(o[u],i[u]);if(c!==0)return c}return a===l?0:a<l?-1:1}(e,t)}}catch{}return NaN}function ZEe(e){const t=typeof e;if(t!=="object")return t;if(ArrayBuffer.isView(e))return"binary";const r=jz(e);return r==="ArrayBuffer"?"binary":r}function JEe(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}class CZt{_read(t,r){var n=this._ctx;return n.error?n.table._trans(null,oi.bind(null,n.error)):n.table._trans("readonly",t).then(r)}_write(t){var r=this._ctx;return r.error?r.table._trans(null,oi.bind(null,r.error)):r.table._trans("readwrite",t,"locked")}_addAlgorithm(t){var r=this._ctx;r.algorithm=Qg(r.algorithm,t)}_iterate(t,r){return hO(this._ctx,t,r,this._ctx.table.core)}clone(t){var r=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return t&&Ea(n,t),r._ctx=n,r}raw(){return this._ctx.valueMapper=null,this}each(t){var r=this._ctx;return this._read(n=>hO(r,t,n,r.table.core))}count(t){return this._read(r=>{const n=this._ctx,o=n.table.core;if(rx(n,!0))return o.count({trans:r,query:{index:pO(n,o.schema),range:n.range}}).then(a=>Math.min(a,n.limit));var i=0;return hO(n,()=>(++i,!1),r,o).then(()=>i)}).then(t)}sortBy(t,r){const n=t.split(".").reverse(),o=n[0],i=n.length-1;function a(u,c){return c?a(u[n[c]],c-1):u[o]}var l=this._ctx.dir==="next"?1:-1;function s(u,c){var d=a(u,i),f=a(c,i);return d<f?-l:d>f?l:0}return this.toArray(function(u){return u.sort(s)}).then(r)}toArray(t){return this._read(r=>{var n=this._ctx;if(n.dir==="next"&&rx(n,!0)&&n.limit>0){const{valueMapper:o}=n,i=pO(n,n.table.core.schema);return n.table.core.query({trans:r,limit:n.limit,values:!0,query:{index:i,range:n.range}}).then(({result:a})=>o?a.map(o):a)}{const o=[];return hO(n,i=>o.push(i),r,n.table.core).then(()=>o)}},t)}offset(t){var r=this._ctx;return t<=0||(r.offset+=t,rx(r)?uF(r,()=>{var n=t;return(o,i)=>n===0||(n===1?(--n,!1):(i(()=>{o.advance(n),n=0}),!1))}):uF(r,()=>{var n=t;return()=>--n<0})),this}limit(t){return this._ctx.limit=Math.min(this._ctx.limit,t),uF(this._ctx,()=>{var r=t;return function(n,o,i){return--r<=0&&o(i),r>=0}},!0),this}until(t,r){return sF(this._ctx,function(n,o,i){return!t(n.value)||(o(i),r)}),this}first(t){return this.limit(1).toArray(function(r){return r[0]}).then(t)}last(t){return this.reverse().first(t)}filter(t){var r,n;return sF(this._ctx,function(o){return t(o.value)}),r=this._ctx,n=t,r.isMatch=Qg(r.isMatch,n),this}and(t){return this.filter(t)}or(t){return new this.db.WhereClause(this._ctx.table,t,this)}reverse(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(t){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(n,o){t(o.key,o)})}eachUniqueKey(t){return this._ctx.unique="unique",this.eachKey(t)}eachPrimaryKey(t){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(n,o){t(o.primaryKey,o)})}keys(t){var r=this._ctx;r.keysOnly=!r.isMatch;var n=[];return this.each(function(o,i){n.push(i.key)}).then(function(){return n}).then(t)}primaryKeys(t){var r=this._ctx;if(r.dir==="next"&&rx(r,!0)&&r.limit>0)return this._read(o=>{var i=pO(r,r.table.core.schema);return r.table.core.query({trans:o,values:!1,limit:r.limit,query:{index:i,range:r.range}})}).then(({result:o})=>o).then(t);r.keysOnly=!r.isMatch;var n=[];return this.each(function(o,i){n.push(i.primaryKey)}).then(function(){return n}).then(t)}uniqueKeys(t){return this._ctx.unique="unique",this.keys(t)}firstKey(t){return this.limit(1).keys(function(r){return r[0]}).then(t)}lastKey(t){return this.reverse().firstKey(t)}distinct(){var t=this._ctx,r=t.index&&t.table.schema.idxByName[t.index];if(!r||!r.multi)return this;var n={};return sF(this._ctx,function(o){var i=o.primaryKey.toString(),a=Ql(n,i);return n[i]=!0,!a}),this}modify(t){var r=this._ctx;return this._write(n=>{var o;if(typeof t=="function")o=t;else{var i=Mo(t),a=i.length;o=function(v){for(var b=!1,y=0;y<a;++y){var w=i[y],k=t[w];pf(v,w)!==k&&(Ku(v,w,k),b=!0)}return b}}const l=r.table.core,{outbound:s,extractKey:u}=l.schema.primaryKey,c=this.db._options.modifyChunkSize||200,d=[];let f=0;const p=[],h=(v,b)=>{const{failures:y,numFailures:w}=b;f+=v-w;for(let k of Mo(y))d.push(y[k])};return this.clone().primaryKeys().then(v=>{const b=y=>{const w=Math.min(c,v.length-y);return l.getMany({trans:n,keys:v.slice(y,y+w),cache:"immutable"}).then(k=>{const E=[],_=[],S=s?[]:null,A=[];for(let I=0;I<w;++I){const L=k[I],P={value:Pk(L),primKey:v[y+I]};o.call(P,P.value,P)!==!1&&(P.value==null?A.push(v[y+I]):s||Aa(u(L),u(P.value))===0?(_.push(P.value),s&&S.push(v[y+I])):(A.push(v[y+I]),E.push(P.value)))}const O=rx(r)&&r.limit===1/0&&(typeof t!="function"||t===cF)&&{index:r.index,range:r.range};return Promise.resolve(E.length>0&&l.mutate({trans:n,type:"add",values:E}).then(I=>{for(let L in I.failures)A.splice(parseInt(L),1);h(E.length,I)})).then(()=>(_.length>0||O&&typeof t=="object")&&l.mutate({trans:n,type:"put",keys:S,values:_,criteria:O,changeSpec:typeof t!="function"&&t}).then(I=>h(_.length,I))).then(()=>(A.length>0||O&&t===cF)&&l.mutate({trans:n,type:"delete",keys:A,criteria:O}).then(I=>h(A.length,I))).then(()=>v.length>y+w&&b(y+c))})};return b(0).then(()=>{if(d.length>0)throw new Z5("Error modifying one or more objects",d,f,p);return v.length})})})}delete(){var t=this._ctx,r=t.range;return rx(t)&&(t.isPrimKey&&!yZt||r.type===3)?this._write(n=>{const{primaryKey:o}=t.table.core.schema,i=r;return t.table.core.count({trans:n,query:{index:o,range:i}}).then(a=>t.table.core.mutate({trans:n,type:"deleteRange",range:i}).then(({failures:l,lastResult:s,results:u,numFailures:c})=>{if(c)throw new Z5("Could not delete some values",Object.keys(l).map(d=>l[d]),a-c);return a-c}))}):this.modify(cF)}}const cF=(e,t)=>t.value=null;function kZt(e,t){return e<t?-1:e===t?0:1}function _Zt(e,t){return e>t?-1:e===t?0:1}function Zl(e,t,r){var n=e instanceof t6e?new e.Collection(e):e;return n._ctx.error=r?new r(t):new TypeError(t),n}function nx(e){return new e.Collection(e,()=>e6e("")).limit(0)}function TZt(e,t,r,n,o,i){for(var a=Math.min(e.length,n.length),l=-1,s=0;s<a;++s){var u=t[s];if(u!==n[s])return o(e[s],r[s])<0?e.substr(0,s)+r[s]+r.substr(s+1):o(e[s],n[s])<0?e.substr(0,s)+n[s]+r.substr(s+1):l>=0?e.substr(0,l)+t[l]+r.substr(l+1):null;o(e[s],u)<0&&(l=s)}return a<n.length&&i==="next"?e+r.substr(e.length):a<e.length&&i==="prev"?e.substr(0,r.length):l<0?null:e.substr(0,l)+n[l]+r.substr(l+1)}function gO(e,t,r,n){var o,i,a,l,s,u,c,d=r.length;if(!r.every(v=>typeof v=="string"))return Zl(e,GEe);function f(v){o=function(y){return y==="next"?w=>w.toUpperCase():w=>w.toLowerCase()}(v),i=function(y){return y==="next"?w=>w.toLowerCase():w=>w.toUpperCase()}(v),a=v==="next"?kZt:_Zt;var b=r.map(function(y){return{lower:i(y),upper:o(y)}}).sort(function(y,w){return a(y.lower,w.lower)});l=b.map(function(y){return y.upper}),s=b.map(function(y){return y.lower}),u=v,c=v==="next"?"":n}f("next");var p=new e.Collection(e,()=>cp(l[0],s[d-1]+n));p._ondirectionchange=function(v){f(v)};var h=0;return p._addAlgorithm(function(v,b,y){var w=v.key;if(typeof w!="string")return!1;var k=i(w);if(t(k,s,h))return!0;for(var E=null,_=h;_<d;++_){var S=TZt(w,k,l[_],s[_],a,u);S===null&&E===null?h=_+1:(E===null||a(E,S)>0)&&(E=S)}return b(E!==null?function(){v.continue(E+c)}:y),!1}),p}function cp(e,t,r,n){return{type:2,lower:e,upper:t,lowerOpen:r,upperOpen:n}}function e6e(e){return{type:1,lower:e,upper:e}}class t6e{get Collection(){return this._ctx.table.db.Collection}between(t,r,n,o){n=n!==!1,o=o===!0;try{return this._cmp(t,r)>0||this._cmp(t,r)===0&&(n||o)&&(!n||!o)?nx(this):new this.Collection(this,()=>cp(t,r,!n,!o))}catch{return Zl(this,vf)}}equals(t){return t==null?Zl(this,vf):new this.Collection(this,()=>e6e(t))}above(t){return t==null?Zl(this,vf):new this.Collection(this,()=>cp(t,void 0,!0))}aboveOrEqual(t){return t==null?Zl(this,vf):new this.Collection(this,()=>cp(t,void 0,!1))}below(t){return t==null?Zl(this,vf):new this.Collection(this,()=>cp(void 0,t,!1,!0))}belowOrEqual(t){return t==null?Zl(this,vf):new this.Collection(this,()=>cp(void 0,t))}startsWith(t){return typeof t!="string"?Zl(this,GEe):this.between(t,t+Xg,!0,!0)}startsWithIgnoreCase(t){return t===""?this.startsWith(t):gO(this,(r,n)=>r.indexOf(n[0])===0,[t],Xg)}equalsIgnoreCase(t){return gO(this,(r,n)=>r===n[0],[t],"")}anyOfIgnoreCase(){var t=hf.apply(Q1,arguments);return t.length===0?nx(this):gO(this,(r,n)=>n.indexOf(r)!==-1,t,"")}startsWithAnyOfIgnoreCase(){var t=hf.apply(Q1,arguments);return t.length===0?nx(this):gO(this,(r,n)=>n.some(o=>r.indexOf(o)===0),t,Xg)}anyOf(){const t=hf.apply(Q1,arguments);let r=this._cmp;try{t.sort(r)}catch{return Zl(this,vf)}if(t.length===0)return nx(this);const n=new this.Collection(this,()=>cp(t[0],t[t.length-1]));n._ondirectionchange=i=>{r=i==="next"?this._ascending:this._descending,t.sort(r)};let o=0;return n._addAlgorithm((i,a,l)=>{const s=i.key;for(;r(s,t[o])>0;)if(++o,o===t.length)return a(l),!1;return r(s,t[o])===0||(a(()=>{i.continue(t[o])}),!1)}),n}notEqual(t){return this.inAnyRange([[iF,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const t=hf.apply(Q1,arguments);if(t.length===0)return new this.Collection(this);try{t.sort(this._ascending)}catch{return Zl(this,vf)}const r=t.reduce((n,o)=>n?n.concat([[n[n.length-1][1],o]]):[[iF,o]],null);return r.push([t[t.length-1],this.db._maxKey]),this.inAnyRange(r,{includeLowers:!1,includeUppers:!1})}inAnyRange(t,r){const n=this._cmp,o=this._ascending,i=this._descending,a=this._min,l=this._max;if(t.length===0)return nx(this);if(!t.every(w=>w[0]!==void 0&&w[1]!==void 0&&o(w[0],w[1])<=0))return Zl(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Ut.InvalidArgument);const s=!r||r.includeLowers!==!1,u=r&&r.includeUppers===!0;let c,d=o;function f(w,k){return d(w[0],k[0])}try{c=t.reduce(function(w,k){let E=0,_=w.length;for(;E<_;++E){const S=w[E];if(n(k[0],S[1])<0&&n(k[1],S[0])>0){S[0]=a(S[0],k[0]),S[1]=l(S[1],k[1]);break}}return E===_&&w.push(k),w},[]),c.sort(f)}catch{return Zl(this,vf)}let p=0;const h=u?w=>o(w,c[p][1])>0:w=>o(w,c[p][1])>=0,v=s?w=>i(w,c[p][0])>0:w=>i(w,c[p][0])>=0;let b=h;const y=new this.Collection(this,()=>cp(c[0][0],c[c.length-1][1],!s,!u));return y._ondirectionchange=w=>{w==="next"?(b=h,d=o):(b=v,d=i),c.sort(f)},y._addAlgorithm((w,k,E)=>{for(var _=w.key;b(_);)if(++p,p===c.length)return k(E),!1;return!!function(S){return!h(S)&&!v(S)}(_)||(this._cmp(_,c[p][1])===0||this._cmp(_,c[p][0])===0||k(()=>{d===o?w.continue(c[p][0]):w.continue(c[p][1])}),!1)}),y}startsWithAnyOf(){const t=hf.apply(Q1,arguments);return t.every(r=>typeof r=="string")?t.length===0?nx(this):this.inAnyRange(t.map(r=>[r,r+Xg])):Zl(this,"startsWithAnyOf() only works with strings")}}function Qc(e){return Mn(function(t){return Wk(t),e(t.target.error),!1})}function Wk(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}const Vk="storagemutated",dp="x-storagemutated-1",fp=zk(null,Vk);class SZt{_lock(){return Rk(!Rt.global),++this._reculock,this._reculock!==1||Rt.global||(Rt.lockOwnerFor=this),this}_unlock(){if(Rk(!Rt.global),--this._reculock==0)for(Rt.global||(Rt.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var t=this._blockedFuncs.shift();try{tx(t[1],t[0])}catch{}}return this}_locked(){return this._reculock&&Rt.lockOwnerFor!==this}create(t){if(!this.mode)return this;const r=this.db.idbdb,n=this.db._state.dbOpenError;if(Rk(!this.idbtrans),!t&&!r)switch(n&&n.name){case"DatabaseClosedError":throw new Ut.DatabaseClosed(n);case"MissingAPIError":throw new Ut.MissingAPI(n.message,n);default:throw new Ut.OpenFailed(n)}if(!this.active)throw new Ut.TransactionInactive;return Rk(this._completion._state===null),(t=this.idbtrans=t||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):r.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=Mn(o=>{Wk(o),this._reject(t.error)}),t.onabort=Mn(o=>{Wk(o),this.active&&this._reject(new Ut.Abort(t.error)),this.active=!1,this.on("abort").fire(o)}),t.oncomplete=Mn(()=>{this.active=!1,this._resolve(),"mutatedParts"in t&&fp.storagemutated.fire(t.mutatedParts)}),this}_promise(t,r,n){if(t==="readwrite"&&this.mode!=="readwrite")return oi(new Ut.ReadOnly("Transaction is readonly"));if(!this.active)return oi(new Ut.TransactionInactive);if(this._locked())return new gt((i,a)=>{this._blockedFuncs.push([()=>{this._promise(t,r,n).then(i,a)},Rt])});if(n)return sp(()=>{var i=new gt((a,l)=>{this._lock();const s=r(a,l,this);s&&s.then&&s.then(a,l)});return i.finally(()=>this._unlock()),i._lib=!0,i});var o=new gt((i,a)=>{var l=r(i,a,this);l&&l.then&&l.then(i,a)});return o._lib=!0,o}_root(){return this.parent?this.parent._root():this}waitFor(t){var r=this._root();const n=gt.resolve(t);if(r._waitingFor)r._waitingFor=r._waitingFor.then(()=>n);else{r._waitingFor=n,r._waitingQueue=[];var o=r.idbtrans.objectStore(r.storeNames[0]);(function a(){for(++r._spinCount;r._waitingQueue.length;)r._waitingQueue.shift()();r._waitingFor&&(o.get(-1/0).onsuccess=a)})()}var i=r._waitingFor;return new gt((a,l)=>{n.then(s=>r._waitingQueue.push(Mn(a.bind(null,s))),s=>r._waitingQueue.push(Mn(l.bind(null,s)))).finally(()=>{r._waitingFor===i&&(r._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Ut.Abort))}table(t){const r=this._memoizedTables||(this._memoizedTables={});if(Ql(r,t))return r[t];const n=this.schema[t];if(!n)throw new Ut.NotFound("Table "+t+" not part of transaction");const o=new this.db.Table(t,n,this);return o.core=this.db.core.table(t),r[t]=o,o}}function dF(e,t,r,n,o,i,a){return{name:e,keyPath:t,unique:r,multi:n,auto:o,compound:i,src:(r&&!a?"&":"")+(n?"*":"")+(o?"++":"")+r6e(t)}}function r6e(e){return typeof e=="string"?e:e?"["+[].join.call(e,"+")+"]":""}function n6e(e,t,r){return{name:e,primKey:t,indexes:r,mappedClass:null,idxByName:TEe(r,n=>[n.name,n])}}let Uk=e=>{try{return e.only([[]]),Uk=()=>[[]],[[]]}catch{return Uk=()=>Xg,Xg}};function fF(e){return e==null?()=>{}:typeof e=="string"?function(t){return t.split(".").length===1?n=>n[t]:n=>pf(n,t)}(e):t=>pf(t,e)}function o6e(e){return[].slice.call(e)}let EZt=0;function qk(e){return e==null?":id":typeof e=="string"?e:`[${e.join("+")}]`}function AZt(e,t,r){function n(s){if(s.type===3)return null;if(s.type===4)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:u,upper:c,lowerOpen:d,upperOpen:f}=s;return u===void 0?c===void 0?null:t.upperBound(c,!!f):c===void 0?t.lowerBound(u,!!d):t.bound(u,c,!!d,!!f)}const{schema:o,hasGetAll:i}=function(s,u){const c=o6e(s.objectStoreNames);return{schema:{name:s.name,tables:c.map(d=>u.objectStore(d)).map(d=>{const{keyPath:f,autoIncrement:p}=d,h=Zi(f),v=f==null,b={},y={name:d.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:v,compound:h,keyPath:f,autoIncrement:p,unique:!0,extractKey:fF(f)},indexes:o6e(d.indexNames).map(w=>d.index(w)).map(w=>{const{name:k,unique:E,multiEntry:_,keyPath:S}=w,A={name:k,compound:Zi(S),keyPath:S,unique:E,multiEntry:_,extractKey:fF(S)};return b[qk(S)]=A,A}),getIndexByKeyPath:w=>b[qk(w)]};return b[":id"]=y.primaryKey,f!=null&&(b[qk(f)]=y.primaryKey),y})},hasGetAll:c.length>0&&"getAll"in u.objectStore(c[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,r),a=o.tables.map(s=>function(u){const c=u.name;return{name:c,schema:u,mutate:function({trans:d,type:f,keys:p,values:h,range:v}){return new Promise((b,y)=>{b=Mn(b);const w=d.objectStore(c),k=w.keyPath==null,E=f==="put"||f==="add";if(!E&&f!=="delete"&&f!=="deleteRange")throw new Error("Invalid operation type: "+f);const{length:_}=p||h||{length:1};if(p&&h&&p.length!==h.length)throw new Error("Given keys array must have same length as given values array.");if(_===0)return b({numFailures:0,failures:{},results:[],lastResult:void 0});let S;const A=[],O=[];let I=0;const L=H=>{++I,Wk(H)};if(f==="deleteRange"){if(v.type===4)return b({numFailures:I,failures:O,results:[],lastResult:void 0});v.type===3?A.push(S=w.clear()):A.push(S=w.delete(n(v)))}else{const[H,j]=E?k?[h,p]:[h,null]:[p,null];if(E)for(let W=0;W<_;++W)A.push(S=j&&j[W]!==void 0?w[f](H[W],j[W]):w[f](H[W])),S.onerror=L;else for(let W=0;W<_;++W)A.push(S=w[f](H[W])),S.onerror=L}const P=H=>{const j=H.target.result;A.forEach((W,B)=>W.error!=null&&(O[B]=W.error)),b({numFailures:I,failures:O,results:f==="delete"?p:A.map(W=>W.result),lastResult:j})};S.onerror=H=>{L(H),P(H)},S.onsuccess=P})},getMany:({trans:d,keys:f})=>new Promise((p,h)=>{p=Mn(p);const v=d.objectStore(c),b=f.length,y=new Array(b);let w,k=0,E=0;const _=A=>{const O=A.target;y[O._pos]=O.result,++E===k&&p(y)},S=Qc(h);for(let A=0;A<b;++A)f[A]!=null&&(w=v.get(f[A]),w._pos=A,w.onsuccess=_,w.onerror=S,++k);k===0&&p(y)}),get:({trans:d,key:f})=>new Promise((p,h)=>{p=Mn(p);const v=d.objectStore(c).get(f);v.onsuccess=b=>p(b.target.result),v.onerror=Qc(h)}),query:function(d){return f=>new Promise((p,h)=>{p=Mn(p);const{trans:v,values:b,limit:y,query:w}=f,k=y===1/0?void 0:y,{index:E,range:_}=w,S=v.objectStore(c),A=E.isPrimaryKey?S:S.index(E.name),O=n(_);if(y===0)return p({result:[]});if(d){const I=b?A.getAll(O,k):A.getAllKeys(O,k);I.onsuccess=L=>p({result:L.target.result}),I.onerror=Qc(h)}else{let I=0;const L=b||!("openKeyCursor"in A)?A.openCursor(O):A.openKeyCursor(O),P=[];L.onsuccess=H=>{const j=L.result;return j?(P.push(b?j.value:j.primaryKey),++I===y?p({result:P}):void j.continue()):p({result:P})},L.onerror=Qc(h)}})}(i),openCursor:function({trans:d,values:f,query:p,reverse:h,unique:v}){return new Promise((b,y)=>{b=Mn(b);const{index:w,range:k}=p,E=d.objectStore(c),_=w.isPrimaryKey?E:E.index(w.name),S=h?v?"prevunique":"prev":v?"nextunique":"next",A=f||!("openKeyCursor"in _)?_.openCursor(n(k),S):_.openKeyCursor(n(k),S);A.onerror=Qc(y),A.onsuccess=Mn(O=>{const I=A.result;if(!I)return void b(null);I.___id=++EZt,I.done=!1;const L=I.continue.bind(I);let P=I.continuePrimaryKey;P&&(P=P.bind(I));const H=I.advance.bind(I),j=()=>{throw new Error("Cursor not stopped")};I.trans=d,I.stop=I.continue=I.continuePrimaryKey=I.advance=()=>{throw new Error("Cursor not started")},I.fail=Mn(y),I.next=function(){let W=1;return this.start(()=>W--?this.continue():this.stop()).then(()=>this)},I.start=W=>{const B=new Promise((z,F)=>{z=Mn(z),A.onerror=Qc(F),I.fail=F,I.stop=V=>{I.stop=I.continue=I.continuePrimaryKey=I.advance=j,z(V)}}),G=()=>{if(A.result)try{W()}catch(z){I.fail(z)}else I.done=!0,I.start=()=>{throw new Error("Cursor behind last entry")},I.stop()};return A.onsuccess=Mn(z=>{A.onsuccess=G,G()}),I.continue=L,I.continuePrimaryKey=P,I.advance=H,G(),B},b(I)},y)})},count({query:d,trans:f}){const{index:p,range:h}=d;return new Promise((v,b)=>{const y=f.objectStore(c),w=p.isPrimaryKey?y:y.index(p.name),k=n(h),E=k?w.count(k):w.count();E.onsuccess=Mn(_=>v(_.target.result)),E.onerror=Qc(b)})}}}(s)),l={};return a.forEach(s=>l[s.name]=s),{stack:"dbcore",transaction:e.transaction.bind(e),table(s){if(!l[s])throw new Error(`Table '${s}' not found`);return l[s]},MIN_KEY:-1/0,MAX_KEY:Uk(t),schema:o}}function mF({_novip:e},t){const r=t.db,n=function(o,i,{IDBKeyRange:a,indexedDB:l},s){return{dbcore:function(c,d){return d.reduce((f,{create:p})=>({...f,...p(f)}),c)}(AZt(i,a,s),o.dbcore)}}(e._middlewares,r,e._deps,t);e.core=n.dbcore,e.tables.forEach(o=>{const i=o.name;e.core.schema.tables.some(a=>a.name===i)&&(o.core=e.core.table(i),e[i]instanceof e.Table&&(e[i].core=o.core))})}function vO({_novip:e},t,r,n){r.forEach(o=>{const i=n[o];t.forEach(a=>{const l=Dz(a,o);(!l||"value"in l&&l.value===void 0)&&(a===e.Transaction.prototype||a instanceof e.Transaction?mf(a,o,{get(){return this.table(o)},set(s){CEe(this,o,{value:s,writable:!0,configurable:!0,enumerable:!0})}}):a[o]=new e.Table(o,i))})})}function pF({_novip:e},t){t.forEach(r=>{for(let n in r)r[n]instanceof e.Table&&delete r[n]})}function OZt(e,t){return e._cfg.version-t._cfg.version}function IZt(e,t,r,n){const o=e._dbSchema,i=e._createTransaction("readwrite",e._storeNames,o);i.create(r),i._completion.catch(n);const a=i._reject.bind(i),l=Rt.transless||Rt;sp(()=>{Rt.trans=i,Rt.transless=l,t===0?(Mo(o).forEach(s=>{hF(r,s,o[s].primKey,o[s].indexes)}),mF(e,r),gt.follow(()=>e.on.populate.fire(i)).catch(a)):function({_novip:s},u,c,d){const f=[],p=s._versions;let h=s._dbSchema=vF(s,s.idbdb,d),v=!1;const b=p.filter(w=>w._cfg.version>=u);function y(){return f.length?gt.resolve(f.shift()(c.idbtrans)).then(y):gt.resolve()}return b.forEach(w=>{f.push(()=>{const k=h,E=w._cfg.dbschema;bF(s,k,d),bF(s,E,d),h=s._dbSchema=E;const _=i6e(k,E);_.add.forEach(A=>{hF(d,A[0],A[1].primKey,A[1].indexes)}),_.change.forEach(A=>{if(A.recreate)throw new Ut.Upgrade("Not yet support for changing primary key");{const O=d.objectStore(A.name);A.add.forEach(I=>gF(O,I)),A.change.forEach(I=>{O.deleteIndex(I.name),gF(O,I)}),A.del.forEach(I=>O.deleteIndex(I))}});const S=w._cfg.contentUpgrade;if(S&&w._cfg.version>u){mF(s,d),c._memoizedTables={},v=!0;let A=SEe(E);_.del.forEach(P=>{A[P]=k[P]}),pF(s,[s.Transaction.prototype]),vO(s,[s.Transaction.prototype],Mo(A),A),c.schema=A;const O=zz(S);let I;O&&ex();const L=gt.follow(()=>{if(I=S(c),I&&O){var P=gf.bind(null,null);I.then(P,P)}});return I&&typeof I.then=="function"?gt.resolve(I):L.then(()=>I)}}),f.push(k=>{(!v||!xZt)&&function(E,_){[].slice.call(_.db.objectStoreNames).forEach(S=>E[S]==null&&_.db.deleteObjectStore(S))}(w._cfg.dbschema,k),pF(s,[s.Transaction.prototype]),vO(s,[s.Transaction.prototype],s._storeNames,s._dbSchema),c.schema=s._dbSchema})}),y().then(()=>{var w,k;k=d,Mo(w=h).forEach(E=>{k.db.objectStoreNames.contains(E)||hF(k,E,w[E].primKey,w[E].indexes)})})}(e,t,i,r).catch(a)})}function i6e(e,t){const r={del:[],add:[],change:[]};let n;for(n in e)t[n]||r.del.push(n);for(n in t){const o=e[n],i=t[n];if(o){const a={name:n,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(o.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||o.primKey.auto!==i.primKey.auto&&!dO)a.recreate=!0,r.change.push(a);else{const l=o.idxByName,s=i.idxByName;let u;for(u in l)s[u]||a.del.push(u);for(u in s){const c=l[u],d=s[u];c?c.src!==d.src&&a.change.push(d):a.add.push(d)}(a.del.length>0||a.add.length>0||a.change.length>0)&&r.change.push(a)}}else r.add.push([n,i])}return r}function hF(e,t,r,n){const o=e.db.createObjectStore(t,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return n.forEach(i=>gF(o,i)),o}function gF(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function vF(e,t,r){const n={};return Q5(t.objectStoreNames,0).forEach(o=>{const i=r.objectStore(o);let a=i.keyPath;const l=dF(r6e(a),a||"",!1,!1,!!i.autoIncrement,a&&typeof a!="string",!0),s=[];for(let c=0;c<i.indexNames.length;++c){const d=i.index(i.indexNames[c]);a=d.keyPath;var u=dF(d.name,a,!!d.unique,!!d.multiEntry,!1,a&&typeof a!="string",!1);s.push(u)}n[o]=n6e(o,l,s)}),n}function bF({_novip:e},t,r){const n=r.db.objectStoreNames;for(let o=0;o<n.length;++o){const i=n[o],a=r.objectStore(i);e._hasGetAll="getAll"in a;for(let l=0;l<a.indexNames.length;++l){const s=a.indexNames[l],u=a.index(s).keyPath,c=typeof u=="string"?u:"["+Q5(u).join("+")+"]";if(t[i]){const d=t[i].idxByName[c];d&&(d.name=s,delete t[i].idxByName[c],t[i].idxByName[s]=d)}}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&Rn.WorkerGlobalScope&&Rn instanceof Rn.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}class RZt{_parseStoresSpec(t,r){Mo(t).forEach(n=>{if(t[n]!==null){var o=t[n].split(",").map((a,l)=>{const s=(a=a.trim()).replace(/([&*]|\+\+)/g,""),u=/^\[/.test(s)?s.match(/^\[(.*)\]$/)[1].split("+"):s;return dF(s,u||null,/\&/.test(a),/\*/.test(a),/\+\+/.test(a),Zi(u),l===0)}),i=o.shift();if(i.multi)throw new Ut.Schema("Primary key cannot be multi-valued");o.forEach(a=>{if(a.auto)throw new Ut.Schema("Only primary key can be marked as autoIncrement (++)");if(!a.keyPath)throw new Ut.Schema("Index must have a name and cannot be an empty string")}),r[n]=n6e(n,i,o)}})}stores(t){const r=this.db;this._cfg.storesSource=this._cfg.storesSource?Ea(this._cfg.storesSource,t):t;const n=r._versions,o={};let i={};return n.forEach(a=>{Ea(o,a._cfg.storesSource),i=a._cfg.dbschema={},a._parseStoresSpec(o,i)}),r._dbSchema=i,pF(r,[r._allTables,r,r.Transaction.prototype]),vO(r,[r._allTables,r,r.Transaction.prototype,this._cfg.tables],Mo(i),i),r._storeNames=Mo(i),this}upgrade(t){return this._cfg.contentUpgrade=Uz(this._cfg.contentUpgrade||pn,t),this}}function xF(e,t){let r=e._dbNamesDB;return r||(r=e._dbNamesDB=new mp(fO,{addons:[],indexedDB:e,IDBKeyRange:t}),r.version(1).stores({dbnames:"name"})),r.table("dbnames")}function yF(e){return e&&typeof e.databases=="function"}function wF(e){return sp(function(){return Rt.letThrough=!0,e()})}function PZt(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(t){var r=function(){return indexedDB.databases().finally(t)};e=setInterval(r,100),r()}).finally(function(){return clearInterval(e)}):Promise.resolve()}function LZt(e){const t=e._state,{indexedDB:r}=e._deps;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then(()=>t.dbOpenError?oi(t.dbOpenError):e);Xc&&(t.openCanceller._stackHolder=qg()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;const n=t.openCanceller;function o(){if(t.openCanceller!==n)throw new Ut.DatabaseClosed("db.open() was cancelled")}let i=t.dbReadyResolve,a=null,l=!1;return gt.race([n,(typeof navigator>"u"?gt.resolve():PZt()).then(()=>new gt((s,u)=>{if(o(),!r)throw new Ut.MissingAPI;const c=e.name,d=t.autoSchema?r.open(c):r.open(c,Math.round(10*e.verno));if(!d)throw new Ut.MissingAPI;d.onerror=Qc(u),d.onblocked=Mn(e._fireOnBlocked),d.onupgradeneeded=Mn(f=>{if(a=d.transaction,t.autoSchema&&!e._options.allowEmptyDB){d.onerror=Wk,a.abort(),d.result.close();const h=r.deleteDatabase(c);h.onsuccess=h.onerror=Mn(()=>{u(new Ut.NoSuchDatabase(`Database ${c} doesnt exist`))})}else{a.onerror=Qc(u);var p=f.oldVersion>Math.pow(2,62)?0:f.oldVersion;l=p<1,e._novip.idbdb=d.result,IZt(e,p/10,a,u)}},u),d.onsuccess=Mn(()=>{a=null;const f=e._novip.idbdb=d.result,p=Q5(f.objectStoreNames);if(p.length>0)try{const v=f.transaction((h=p).length===1?h[0]:h,"readonly");t.autoSchema?function({_novip:b},y,w){b.verno=y.version/10;const k=b._dbSchema=vF(0,y,w);b._storeNames=Q5(y.objectStoreNames,0),vO(b,[b._allTables],Mo(k),k)}(e,f,v):(bF(e,e._dbSchema,v),function(b,y){const w=i6e(vF(0,b.idbdb,y),b._dbSchema);return!(w.add.length||w.change.some(k=>k.add.length||k.change.length))}(e,v)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),mF(e,v)}catch{}var h;Mk.push(e),f.onversionchange=Mn(v=>{t.vcFired=!0,e.on("versionchange").fire(v)}),f.onclose=Mn(v=>{e.on("close").fire(v)}),l&&function({indexedDB:v,IDBKeyRange:b},y){!yF(v)&&y!==fO&&xF(v,b).put({name:y}).catch(pn)}(e._deps,c),s()},u)}))]).then(()=>(o(),t.onReadyBeingFired=[],gt.resolve(wF(()=>e.on.ready.fire(e.vip))).then(function s(){if(t.onReadyBeingFired.length>0){let u=t.onReadyBeingFired.reduce(Uz,pn);return t.onReadyBeingFired=[],gt.resolve(wF(()=>u(e.vip))).then(s)}}))).finally(()=>{t.onReadyBeingFired=null,t.isBeingOpened=!1}).then(()=>e).catch(s=>{t.dbOpenError=s;try{a&&a.abort()}catch{}return n===t.openCanceller&&e._close(),oi(s)}).finally(()=>{t.openComplete=!0,i()})}function CF(e){var t=i=>e.next(i),r=o(t),n=o(i=>e.throw(i));function o(i){return a=>{var l=i(a),s=l.value;return l.done?s:s&&typeof s.then=="function"?s.then(r,n):Zi(s)?Promise.all(s).then(r,n):r(s)}}return o(t)()}function HZt(e,t,r){var n=arguments.length;if(n<2)throw new Ut.InvalidArgument("Too few arguments");for(var o=new Array(n-1);--n;)o[n-1]=arguments[n];return r=o.pop(),[e,EEe(o),r]}function a6e(e,t,r,n,o){return gt.resolve().then(()=>{const i=Rt.transless||Rt,a=e._createTransaction(t,r,e._dbSchema,n),l={trans:a,transless:i};if(n)a.idbtrans=n.idbtrans;else try{a.create(),e._state.PR1398_maxLoop=3}catch(d){return d.name===Vz.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(()=>a6e(e,t,r,null,o))):oi(d)}const s=zz(o);let u;s&&ex();const c=gt.follow(()=>{if(u=o.call(a,a),u)if(s){var d=gf.bind(null,null);u.then(d,d)}else typeof u.next=="function"&&typeof u.throw=="function"&&(u=CF(u))},l);return(u&&typeof u.then=="function"?gt.resolve(u).then(d=>a.active?d:oi(new Ut.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):c.then(()=>u)).then(d=>(n&&a._resolve(),a._completion.then(()=>d))).catch(d=>(a._reject(d),oi(d)))})}function bO(e,t,r){const n=Zi(e)?e.slice():[e];for(let o=0;o<r;++o)n.push(t);return n}const NZt={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return{...e,table(t){const r=e.table(t),{schema:n}=r,o={},i=[];function a(c,d,f){const p=qk(c),h=o[p]=o[p]||[],v=c==null?0:typeof c=="string"?1:c.length,b=d>0,y={...f,isVirtual:b,keyTail:d,keyLength:v,extractKey:fF(c),unique:!b&&f.unique};return h.push(y),y.isPrimaryKey||i.push(y),v>1&&a(v===2?c[0]:c.slice(0,v-1),d+1,f),h.sort((w,k)=>w.keyTail-k.keyTail),y}const l=a(n.primaryKey.keyPath,0,n.primaryKey);o[":id"]=[l];for(const c of n.indexes)a(c.keyPath,0,c);function s(c){const d=c.query.index;return d.isVirtual?{...c,query:{index:d,range:(f=c.query.range,p=d.keyTail,{type:f.type===1?2:f.type,lower:bO(f.lower,f.lowerOpen?e.MAX_KEY:e.MIN_KEY,p),lowerOpen:!0,upper:bO(f.upper,f.upperOpen?e.MIN_KEY:e.MAX_KEY,p),upperOpen:!0})}}:c;var f,p}return{...r,schema:{...n,primaryKey:l,indexes:i,getIndexByKeyPath:function(c){const d=o[qk(c)];return d&&d[0]}},count:c=>r.count(s(c)),query:c=>r.query(s(c)),openCursor(c){const{keyTail:d,isVirtual:f,keyLength:p}=c.query.index;return f?r.openCursor(s(c)).then(h=>h&&function(v){return Object.create(v,{continue:{value:function(y){y!=null?v.continue(bO(y,c.reverse?e.MAX_KEY:e.MIN_KEY,d)):c.unique?v.continue(v.key.slice(0,p).concat(c.reverse?e.MIN_KEY:e.MAX_KEY,d)):v.continue()}},continuePrimaryKey:{value(y,w){v.continuePrimaryKey(bO(y,e.MAX_KEY,d),w)}},primaryKey:{get:()=>v.primaryKey},key:{get(){const y=v.key;return p===1?y[0]:y.slice(0,p)}},value:{get:()=>v.value}})}(h)):r.openCursor(c)}}}}}};function kF(e,t,r,n){return r=r||{},n=n||"",Mo(e).forEach(o=>{if(Ql(t,o)){var i=e[o],a=t[o];if(typeof i=="object"&&typeof a=="object"&&i&&a){const l=jz(i);l!==jz(a)?r[n+o]=t[o]:l==="Object"?kF(i,a,r,n+o+"."):i!==a&&(r[n+o]=t[o])}else i!==a&&(r[n+o]=t[o])}else r[n+o]=void 0}),Mo(t).forEach(o=>{Ql(e,o)||(r[n+o]=t[o])}),r}const $Zt={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){const r=e.table(t),{primaryKey:n}=r.schema;return{...r,mutate(i){const a=Rt.trans,{deleting:l,creating:s,updating:u}=a.table(t).hook;switch(i.type){case"add":if(s.fire===pn)break;return a._promise("readwrite",()=>c(i),!0);case"put":if(s.fire===pn&&u.fire===pn)break;return a._promise("readwrite",()=>c(i),!0);case"delete":if(l.fire===pn)break;return a._promise("readwrite",()=>c(i),!0);case"deleteRange":if(l.fire===pn)break;return a._promise("readwrite",()=>function(f){return d(f.trans,f.range,1e4)}(i),!0)}return r.mutate(i);function c(f){const p=Rt.trans,h=f.keys||function(v,b){return b.type==="delete"?b.keys:b.keys||b.values.map(v.extractKey)}(n,f);if(!h)throw new Error("Keys missing");return(f=f.type==="add"||f.type==="put"?{...f,keys:h}:{...f}).type!=="delete"&&(f.values=[...f.values]),f.keys&&(f.keys=[...f.keys]),function(v,b,y){return b.type==="add"?Promise.resolve([]):v.getMany({trans:b.trans,keys:y,cache:"immutable"})}(r,f,h).then(v=>{const b=h.map((y,w)=>{const k=v[w],E={onerror:null,onsuccess:null};if(f.type==="delete")l.fire.call(E,y,k,p);else if(f.type==="add"||k===void 0){const _=s.fire.call(E,y,f.values[w],p);y==null&&_!=null&&(y=_,f.keys[w]=y,n.outbound||Ku(f.values[w],n.keyPath,y))}else{const _=kF(k,f.values[w]),S=u.fire.call(E,_,y,k,p);if(S){const A=f.values[w];Object.keys(S).forEach(O=>{Ql(A,O)?A[O]=S[O]:Ku(A,O,S[O])})}}return E});return r.mutate(f).then(({failures:y,results:w,numFailures:k,lastResult:E})=>{for(let _=0;_<h.length;++_){const S=w?w[_]:h[_],A=b[_];S==null?A.onerror&&A.onerror(y[_]):A.onsuccess&&A.onsuccess(f.type==="put"&&v[_]?f.values[_]:S)}return{failures:y,results:w,numFailures:k,lastResult:E}}).catch(y=>(b.forEach(w=>w.onerror&&w.onerror(y)),Promise.reject(y)))})}function d(f,p,h){return r.query({trans:f,values:!1,query:{index:n,range:p},limit:h}).then(({result:v})=>c({type:"delete",keys:v,trans:f}).then(b=>b.numFailures>0?Promise.reject(b.failures[0]):v.length<h?{failures:[],numFailures:0,lastResult:void 0}:d(f,{...p,lower:v[v.length-1],lowerOpen:!0},h)))}}}}})};function l6e(e,t,r){try{if(!t||t.keys.length<e.length)return null;const n=[];for(let o=0,i=0;o<t.keys.length&&i<e.length;++o)Aa(t.keys[o],e[i])===0&&(n.push(r?Pk(t.values[o]):t.values[o]),++i);return n.length===e.length?n:null}catch{return null}}const DZt={stack:"dbcore",level:-1,create:e=>({table:t=>{const r=e.table(t);return{...r,getMany:n=>{if(!n.cache)return r.getMany(n);const o=l6e(n.keys,n.trans._cache,n.cache==="clone");return o?gt.resolve(o):r.getMany(n).then(i=>(n.trans._cache={keys:n.keys,values:n.cache==="clone"?Pk(i):i},i))},mutate:n=>(n.type!=="add"&&(n.trans._cache=null),r.mutate(n))}}})};function _F(e){return!("from"in e)}const bf=function(e,t){if(!this){const r=new bf;return e&&"d"in e&&Ea(r,e),r}Ea(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function Gk(e,t,r){const n=Aa(t,r);if(isNaN(n))return;if(n>0)throw RangeError();if(_F(e))return Ea(e,{from:t,to:r,d:1});const o=e.l,i=e.r;if(Aa(r,e.from)<0)return o?Gk(o,t,r):e.l={from:t,to:r,d:1,l:null,r:null},s6e(e);if(Aa(t,e.to)>0)return i?Gk(i,t,r):e.r={from:t,to:r,d:1,l:null,r:null},s6e(e);Aa(t,e.from)<0&&(e.from=t,e.l=null,e.d=i?i.d+1:1),Aa(r,e.to)>0&&(e.to=r,e.r=null,e.d=e.l?e.l.d+1:1);const a=!e.r;o&&!e.l&&xO(e,o),i&&a&&xO(e,i)}function xO(e,t){_F(t)||function r(n,{from:o,to:i,l:a,r:l}){Gk(n,o,i),a&&r(n,a),l&&r(n,l)}(e,t)}function BZt(e,t){const r=TF(t);let n=r.next();if(n.done)return!1;let o=n.value;const i=TF(e);let a=i.next(o.from),l=a.value;for(;!n.done&&!a.done;){if(Aa(l.from,o.to)<=0&&Aa(l.to,o.from)>=0)return!0;Aa(o.from,l.from)<0?o=(n=r.next(l.from)).value:l=(a=i.next(o.from)).value}return!1}function TF(e){let t=_F(e)?null:{s:0,n:e};return{next(r){const n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&Aa(r,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||Aa(r,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function s6e(e){var t,r;const n=(((t=e.r)===null||t===void 0?void 0:t.d)||0)-(((r=e.l)===null||r===void 0?void 0:r.d)||0),o=n>1?"r":n<-1?"l":"";if(o){const i=o==="r"?"l":"r",a={...e},l=e[o];e.from=l.from,e.to=l.to,e[o]=l[o],a[o]=l[i],e[i]=a,a.d=u6e(a)}e.d=u6e(e)}function u6e({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}K1(bf.prototype,{add(e){return xO(this,e),this},addKey(e){return Gk(this,e,e),this},addKeys(e){return e.forEach(t=>Gk(this,t,t)),this},[Mz](){return TF(this)}});const jZt={stack:"dbcore",level:0,create:e=>{const t=e.schema.name,r=new bf(e.MIN_KEY,e.MAX_KEY);return{...e,table:n=>{const o=e.table(n),{schema:i}=o,{primaryKey:a}=i,{extractKey:l,outbound:s}=a,u={...o,mutate:f=>{const p=f.trans,h=p.mutatedParts||(p.mutatedParts={}),v=S=>{const A=`idb://${t}/${n}/${S}`;return h[A]||(h[A]=new bf)},b=v(""),y=v(":dels"),{type:w}=f;let[k,E]=f.type==="deleteRange"?[f.range]:f.type==="delete"?[f.keys]:f.values.length<50?[[],f.values]:[];const _=f.trans._cache;return o.mutate(f).then(S=>{if(Zi(k)){w!=="delete"&&(k=S.results),b.addKeys(k);const A=l6e(k,_);A||w==="add"||y.addKeys(k),(A||E)&&function(O,I,L,P){function H(j){const W=O(j.name||"");function B(z){return z!=null?j.extractKey(z):null}const G=z=>j.multiEntry&&Zi(z)?z.forEach(F=>W.addKey(F)):W.addKey(z);(L||P).forEach((z,F)=>{const V=L&&B(L[F]),N=P&&B(P[F]);Aa(V,N)!==0&&(V!=null&&G(V),N!=null&&G(N))})}I.indexes.forEach(H)}(v,i,A,E)}else if(k){const A={from:k.lower,to:k.upper};y.add(A),b.add(A)}else b.add(r),y.add(r),i.indexes.forEach(A=>v(A.name).add(r));return S})}},c=({query:{index:f,range:p}})=>{var h,v;return[f,new bf((h=p.lower)!==null&&h!==void 0?h:e.MIN_KEY,(v=p.upper)!==null&&v!==void 0?v:e.MAX_KEY)]},d={get:f=>[a,new bf(f.key)],getMany:f=>[a,new bf().addKeys(f.keys)],count:c,query:c,openCursor:c};return Mo(d).forEach(f=>{u[f]=function(p){const{subscr:h}=Rt;if(h){const v=E=>{const _=`idb://${t}/${n}/${E}`;return h[_]||(h[_]=new bf)},b=v(""),y=v(":dels"),[w,k]=d[f](p);if(v(w.name||"").add(k),!w.isPrimaryKey){if(f!=="count"){const E=f==="query"&&s&&p.values&&o.query({...p,values:!1});return o[f].apply(this,arguments).then(_=>{if(f==="query"){if(s&&p.values)return E.then(({result:A})=>(b.addKeys(A),_));const S=p.values?_.result.map(l):_.result;p.values?b.addKeys(S):y.addKeys(S)}else if(f==="openCursor"){const S=_,A=p.values;return S&&Object.create(S,{key:{get:()=>(y.addKey(S.primaryKey),S.key)},primaryKey:{get(){const O=S.primaryKey;return y.addKey(O),O}},value:{get:()=>(A&&b.addKey(S.primaryKey),S.value)}})}return _})}y.add(r)}}return o[f].apply(this,arguments)}}),u}}}};class mp{constructor(t,r){this._middlewares={},this.verno=0;const n=mp.dependencies;this._options=r={addons:mp.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange,...r},this._deps={indexedDB:r.indexedDB,IDBKeyRange:r.IDBKeyRange};const{addons:o}=r;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const i={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:pn,dbReadyPromise:null,cancelOpen:pn,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var a;i.dbReadyPromise=new gt(l=>{i.dbReadyResolve=l}),i.openCanceller=new gt((l,s)=>{i.cancelOpen=s}),this._state=i,this.name=t,this.on=zk(this,"populate","blocked","versionchange","close",{ready:[Uz,pn]}),this.on.ready.subscribe=kEe(this.on.ready.subscribe,l=>(s,u)=>{mp.vip(()=>{const c=this._state;if(c.openComplete)c.dbOpenError||gt.resolve().then(s),u&&l(s);else if(c.onReadyBeingFired)c.onReadyBeingFired.push(s),u&&l(s);else{l(s);const d=this;u||l(function f(){d.on.ready.unsubscribe(s),d.on.ready.unsubscribe(f)})}})}),this.Collection=(a=this,Fk(CZt.prototype,function(l,s){this.db=a;let u=KEe,c=null;if(s)try{u=s()}catch(h){c=h}const d=l._ctx,f=d.table,p=f.hook.reading.fire;this._ctx={table:f,index:d.index,isPrimKey:!d.index||f.schema.primKey.keyPath&&d.index===f.schema.primKey.name,range:u,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:c,or:d.or,valueMapper:p!==Hk?p:null}})),this.Table=function(l){return Fk(wZt.prototype,function(s,u,c){this.db=l,this._tx=c,this.name=s,this.schema=u,this.hook=l._allTables[s]?l._allTables[s].hook:zk(null,{creating:[uZt,pn],reading:[sZt,Hk],updating:[dZt,pn],deleting:[cZt,pn]})})}(this),this.Transaction=function(l){return Fk(SZt.prototype,function(s,u,c,d,f){this.db=l,this.mode=s,this.storeNames=u,this.schema=c,this.chromeTransactionDurability=d,this.idbtrans=null,this.on=zk(this,"complete","error","abort"),this.parent=f||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new gt((p,h)=>{this._resolve=p,this._reject=h}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},p=>{var h=this.active;return this.active=!1,this.on.error.fire(p),this.parent?this.parent._reject(p):h&&this.idbtrans&&this.idbtrans.abort(),oi(p)})})}(this),this.Version=function(l){return Fk(RZt.prototype,function(s){this.db=l,this._cfg={version:s,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}(this),this.WhereClause=function(l){return Fk(t6e.prototype,function(s,u,c){this.db=l,this._ctx={table:s,index:u===":id"?null:u,or:c};const d=l._deps.indexedDB;if(!d)throw new Ut.MissingAPI;this._cmp=this._ascending=d.cmp.bind(d),this._descending=(f,p)=>d.cmp(p,f),this._max=(f,p)=>d.cmp(f,p)>0?f:p,this._min=(f,p)=>d.cmp(f,p)<0?f:p,this._IDBKeyRange=l._deps.IDBKeyRange})}(this),this.on("versionchange",l=>{l.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()}),this.on("blocked",l=>{!l.newVersion||l.newVersion<l.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${l.oldVersion/10}`)}),this._maxKey=Uk(r.IDBKeyRange),this._createTransaction=(l,s,u,c)=>new this.Transaction(l,s,u,this._options.chromeTransactionDurability,c),this._fireOnBlocked=l=>{this.on("blocked").fire(l),Mk.filter(s=>s.name===this.name&&s!==this&&!s._state.vcFired).map(s=>s.on("versionchange").fire(l))},this.use(NZt),this.use($Zt),this.use(jZt),this.use(DZt),this.vip=Object.create(this,{_vip:{value:!0}}),o.forEach(l=>l(this))}version(t){if(isNaN(t)||t<.1)throw new Ut.Type("Given version is not a positive number");if(t=Math.round(10*t)/10,this.idbdb||this._state.isBeingOpened)throw new Ut.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,t);const r=this._versions;var n=r.filter(o=>o._cfg.version===t)[0];return n||(n=new this.Version(t),r.push(n),r.sort(OZt),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(t){return this.idbdb&&(this._state.openComplete||Rt.letThrough||this._vip)?t():new gt((r,n)=>{if(this._state.openComplete)return n(new Ut.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void n(new Ut.DatabaseClosed);this.open().catch(pn)}this._state.dbReadyPromise.then(r,n)}).then(t)}use({stack:t,create:r,level:n,name:o}){o&&this.unuse({stack:t,name:o});const i=this._middlewares[t]||(this._middlewares[t]=[]);return i.push({stack:t,create:r,level:n??10,name:o}),i.sort((a,l)=>a.level-l.level),this}unuse({stack:t,name:r,create:n}){return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter(o=>n?o.create!==n:!!r&&o.name!==r)),this}open(){return LZt(this)}_close(){const t=this._state,r=Mk.indexOf(this);if(r>=0&&Mk.splice(r,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}t.dbReadyPromise=new gt(n=>{t.dbReadyResolve=n}),t.openCanceller=new gt((n,o)=>{t.cancelOpen=o})}close(){this._close();const t=this._state;this._options.autoOpen=!1,t.dbOpenError=new Ut.DatabaseClosed,t.isBeingOpened&&t.cancelOpen(t.dbOpenError)}delete(){const t=arguments.length>0,r=this._state;return new gt((n,o)=>{const i=()=>{this.close();var a=this._deps.indexedDB.deleteDatabase(this.name);a.onsuccess=Mn(()=>{(function({indexedDB:l,IDBKeyRange:s},u){!yF(l)&&u!==fO&&xF(l,s).delete(u).catch(pn)})(this._deps,this.name),n()}),a.onerror=Qc(o),a.onblocked=this._fireOnBlocked};if(t)throw new Ut.InvalidArgument("Arguments not allowed in db.delete()");r.isBeingOpened?r.dbReadyPromise.then(i):i()})}backendDB(){return this.idbdb}isOpen(){return this.idbdb!==null}hasBeenClosed(){const t=this._state.dbOpenError;return t&&t.name==="DatabaseClosed"}hasFailed(){return this._state.dbOpenError!==null}dynamicallyOpened(){return this._state.autoSchema}get tables(){return Mo(this._allTables).map(t=>this._allTables[t])}transaction(){const t=HZt.apply(this,arguments);return this._transaction.apply(this,t)}_transaction(t,r,n){let o=Rt.trans;o&&o.db===this&&t.indexOf("!")===-1||(o=null);const i=t.indexOf("?")!==-1;let a,l;t=t.replace("!","").replace("?","");try{if(l=r.map(u=>{var c=u instanceof this.Table?u.name:u;if(typeof c!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return c}),t=="r"||t===aF)a=aF;else{if(t!="rw"&&t!=lF)throw new Ut.InvalidArgument("Invalid transaction mode: "+t);a=lF}if(o){if(o.mode===aF&&a===lF){if(!i)throw new Ut.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");o=null}o&&l.forEach(u=>{if(o&&o.storeNames.indexOf(u)===-1){if(!i)throw new Ut.SubTransaction("Table "+u+" not included in parent transaction.");o=null}}),i&&o&&!o.active&&(o=null)}}catch(u){return o?o._promise(null,(c,d)=>{d(u)}):oi(u)}const s=a6e.bind(null,this,a,l,o,n);return o?o._promise(a,s,"lock"):Rt.trans?tx(Rt.transless,()=>this._whenReady(s)):this._whenReady(s)}table(t){if(!Ql(this._allTables,t))throw new Ut.InvalidTable(`Table ${t} does not exist`);return this._allTables[t]}}const MZt=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable";class zZt{constructor(t){this._subscribe=t}subscribe(t,r,n){return this._subscribe(t&&typeof t!="function"?t:{next:t,error:r,complete:n})}[MZt](){return this}}function c6e(e,t){return Mo(t).forEach(r=>{xO(e[r]||(e[r]=new bf),t[r])}),e}function FZt(e){let t,r=!1;const n=new zZt(o=>{const i=zz(e);let a=!1,l={},s={};const u={get closed(){return a},unsubscribe:()=>{a=!0,fp.storagemutated.unsubscribe(p)}};o.start&&o.start(u);let c=!1,d=!1;function f(){return Mo(s).some(v=>l[v]&&BZt(l[v],s[v]))}const p=v=>{c6e(l,v),f()&&h()},h=()=>{if(c||a)return;l={};const v={},b=function(y){i&&ex();const w=()=>sp(e,{subscr:y,trans:null}),k=Rt.trans?tx(Rt.transless,w):w();return i&&k.then(gf,gf),k}(v);d||(fp(Vk,p),d=!0),c=!0,Promise.resolve(b).then(y=>{r=!0,t=y,c=!1,a||(f()?h():(l={},s=v,o.next&&o.next(y)))},y=>{c=!1,r=!1,o.error&&o.error(y),u.unsubscribe()})};return h(),u});return n.hasValue=()=>r,n.getValue=()=>t,n}let SF;try{SF={indexedDB:Rn.indexedDB||Rn.mozIndexedDB||Rn.webkitIndexedDB||Rn.msIndexedDB,IDBKeyRange:Rn.IDBKeyRange||Rn.webkitIDBKeyRange}}catch{SF={indexedDB:null,IDBKeyRange:null}}const Zg=mp;function yO(e){let t=xf;try{xf=!0,fp.storagemutated.fire(e)}finally{xf=t}}K1(Zg,{...J5,delete:e=>new Zg(e,{addons:[]}).delete(),exists:e=>new Zg(e,{addons:[]}).open().then(t=>(t.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(e){try{return function({indexedDB:t,IDBKeyRange:r}){return yF(t)?Promise.resolve(t.databases()).then(n=>n.map(o=>o.name).filter(o=>o!==fO)):xF(t,r).toCollection().primaryKeys()}(Zg.dependencies).then(e)}catch{return oi(new Ut.MissingAPI)}},defineClass:()=>function(e){Ea(this,e)},ignoreTransaction:e=>Rt.trans?tx(Rt.transless,e):e(),vip:wF,async:function(e){return function(){try{var t=CF(e.apply(this,arguments));return t&&typeof t.then=="function"?t:gt.resolve(t)}catch(r){return oi(r)}}},spawn:function(e,t,r){try{var n=CF(e.apply(r,t||[]));return n&&typeof n.then=="function"?n:gt.resolve(n)}catch(o){return oi(o)}},currentTransaction:{get:()=>Rt.trans||null},waitFor:function(e,t){const r=gt.resolve(typeof e=="function"?Zg.ignoreTransaction(e):e).timeout(t||6e4);return Rt.trans?Rt.trans.waitFor(r):r},Promise:gt,debug:{get:()=>Xc,set:e=>{OEe(e,e==="dexie"?()=>!0:YEe)}},derive:X1,extend:Ea,props:K1,override:kEe,Events:zk,on:fp,liveQuery:FZt,extendObservabilitySet:c6e,getByKeyPath:pf,setByKeyPath:Ku,delByKeyPath:function(e,t){typeof t=="string"?Ku(e,t,void 0):"length"in t&&[].map.call(t,function(r){Ku(e,r,void 0)})},shallowClone:SEe,deepClone:Pk,getObjectDiff:kF,cmp:Aa,asap:_Ee,minKey:iF,addons:[],connections:Mk,errnames:Vz,dependencies:SF,semVer:qEe,version:qEe.split(".").map(e=>parseInt(e)).reduce((e,t,r)=>e+t/Math.pow(10,2*r))}),Zg.maxKey=Uk(Zg.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(fp(Vk,e=>{if(!xf){let t;dO?(t=document.createEvent("CustomEvent"),t.initCustomEvent(dp,!0,!0,e)):t=new CustomEvent(dp,{detail:e}),xf=!0,dispatchEvent(t),xf=!1}}),addEventListener(dp,({detail:e})=>{xf||yO(e)}));let xf=!1;if(typeof BroadcastChannel<"u"){const e=new BroadcastChannel(dp);typeof e.unref=="function"&&e.unref(),fp(Vk,t=>{xf||e.postMessage(t)}),e.onmessage=t=>{t.data&&yO(t.data)}}else if(typeof self<"u"&&typeof navigator<"u"){fp(Vk,t=>{try{xf||(typeof localStorage<"u"&&localStorage.setItem(dp,JSON.stringify({trig:Math.random(),changedParts:t})),typeof self.clients=="object"&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(r=>r.postMessage({type:dp,changedParts:t})))}catch{}}),typeof addEventListener<"u"&&addEventListener("storage",t=>{if(t.key===dp){const r=JSON.parse(t.newValue);r&&yO(r.changedParts)}});const e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",function({data:t}){t&&t.type===dp&&yO(t.changedParts)})}gt.rejectionMapper=function(e,t){if(!e||e instanceof Z1||e instanceof TypeError||e instanceof SyntaxError||!e.name||!LEe[e.name])return e;var r=new LEe[e.name](t||e.message,e);return"stack"in e&&mf(r,"stack",{get:function(){return this.inner.stack}}),r},OEe(Xc,YEe);class to{constructor(t){this.list=[];for(const r of t)this.list.push(r)}get length(){return this.list.length}toArray(){return this.list.slice(0)}at(t){if(t<0||t>this.list.length-1)throw new Error(`Index (${t}) is out of range [0..${Math.max(this.list.length-1,0)}]`);return this.list[t]}all(){return new to(this.list)}async single(t){const r=await this.where(t);if(r.length===0)throw new Error("No items found with the specified predicate");if(r.length>1)throw new Error("Multiple items found with the specified predicate");return r.at(0)}async singleOrDefault(t,r){const n=await this.where(t);if(n.length===0)return r;if(n.length>1)throw new Error("Multiple items found with the specified predicate");return n.at(0)}async where(t){return new to(await this.whereAsArray(t))}async whereAsArray(t){const r=await Promise.all(this.list.map(t??(async()=>!0)));return this.list.filter((n,o)=>r[o])}async orderBy(...t){return new to(await bP(this.list,...t))}async orderByAsArray(...t){return await bP(this.list,...t)}async groupBy(t){return new to(await this.groupByAsArray(t))}async groupByAsArray(t){const r=new Map;for(const o of this.list){const i=await t(o),a=r.get(i);a===void 0?r.set(i,[o]):a.push(o)}const n=[];for(const[o,i]of r.entries())n.push({key:o,items:i});return n}async distinct(t){t??(t=async n=>n);const r=new Set;for(const n of this.list)r.add(await t(n));return new to(r.values())}async distinctAsArray(t){return(await this.distinct(t)).toArray()}async maxValue(t="id",r){let n=r?(await new to(this.list).where(r)).toArray():this.list;return n=await bP(n,o=>o[t],!0),n.length===0?void 0:n[0][t]}async skip(t){return new to(this.list.slice(t))}async take(t){return new to(this.list.slice(0,t))}async skipTake(t,r){return new to(this.list.slice(t,r+t))}}class WZt{constructor(t,r={},n){this.tables=t,this.initialData=r,this.config=n,this.db=null,this.getItems=o=>this.getDb().table(o).toArray(),this.findItems=async(o,i)=>{const a=await this.getItems(o),l=await Promise.all(a.map(i));return a.filter((s,u)=>l[u])},this.getItem=async(o,i)=>{const a=await this.getItems(o),l=await Promise.all(a.map(i));return a.find((s,u)=>l[u])},this.getItemById=async(o,i)=>await this.getItem(o,async a=>a.id+""==i+""),this.deleteItems=async(o,i)=>{},this.insertItem=async(o,i)=>{const a=await this.getDb().table(o).add(i);return this.getItemById(o,a)},this.updateItem=async(o,i)=>(await this.getDb().table(o).update(i.id,i),await this.getItemById(o,i.id))}getDb(){if(this.db===null)throw new Error("Db is not initialized yet");return this.db}async initialize(){var a,l,s;const t=typeof this.initialData=="function"?await this.initialData():this.initialData,r={},n=new Set;this.tables?this.tables.forEach(u=>{const c=[];u.pk.length===1?c.push(u.pk[0]):c.push(`[${u.pk.join("+")}]`),u.indexes&&c.push(...u.indexes),r[u.name]=c.join(", "),n.add(u.name)}):Object.entries(t).forEach(([u])=>{r[u]="++id",n.add(u)});const o=((a=this.config)==null?void 0:a.version)!==void 0&&typeof((l=this.config)==null?void 0:l.version)=="number"?(s=this.config)==null?void 0:s.version:1,i=await this.dropDbOnVersionChange(o);this.db=this.createDbInstance(),this.db.version(o).stores(r),i&&await Promise.all(Object.entries(t).map(async([u,c])=>{try{await this.getDb().table(u).bulkAdd(c)}catch(d){console.error(d)}})),n.forEach(u=>{this[`$${u}`]=VZt(this.getDb().table(u))})}createDbInstance(){var t;return new mp(((t=this.config)==null?void 0:t.database)??"defaultIndexDb")}async dropDbOnVersionChange(t){const r=this.createDbInstance();return await mp.exists(r.name)?(await r.open(),r.verno!==t?(await r.delete(),!0):(r.close(),!1)):!0}async transaction(t){if(!this.db)return;const r=this.db.tables;await this.db.transaction("rw",r,t)}}async function VZt(e){const t=()=>e.db.table(e.name),r=async n=>{const o=await e.toArray(),i=await Promise.all(o.map(n??(async()=>!0)));return o.filter((a,l)=>i[l])};return{native:t,insert:async n=>{const o=await e.add(n);return t().get(o)},update:async n=>(await e.update(n.id,n),t().get(n.id)),save:async n=>{const o=await e.put(n);return e.get(o)},deleteById:async n=>{await e.delete(n)},byId:async n=>{if(n==null)return null;let o=n;return e.schema.primKey.src==="++id"&&(o=Number(n)),e.get(o)},toArray:async()=>await e.toArray(),single:async n=>await new to(await e.toArray()).single(n),singleOrDefault:async(n,o)=>await new to(await e.toArray()).singleOrDefault(n,o),where:async n=>new to(await r(n)),whereAsArray:async n=>await r(n),orderBy:async(...n)=>await new to(await e.toArray()).orderBy(...n),orderByAsArray:async(...n)=>await new to(await e.toArray()).orderByAsArray(...n),groupBy:async n=>await new to(await e.toArray()).groupBy(n),groupByAsArray:async n=>await new to(await e.toArray()).groupByAsArray(n),distinct:async n=>await new to(await e.toArray()).distinct(n),distinctAsArray:async n=>await new to(await e.toArray()).distinctAsArray(n),maxValue:async(n="id",o)=>await new to(await e.toArray()).maxValue(n,o),skip:async n=>await new to(await e.toArray()).skip(n),take:async n=>await new to(await e.toArray()).take(n),skipTake:async(n,o)=>await new to(await e.toArray()).skipTake(n,o)}}function d6e(e,t){if(!t)return e;const r={...e};return Object.keys(e).forEach(n=>{if(!(n in t))return;const o=e[n],i=typeof o;switch(t[n]){case"integer":switch(i){case"number":r[n]=Math.round(o);break;case"string":r[n]=parseInt(o,10);break;case"boolean":r[n]=o?1:0;break}break;case"float":case"real":case"double":switch(i){case"number":r[n]=o;break;case"string":r[n]=parseFloat(o);break;case"boolean":r[n]=o?1:0;break}break;case"boolean":switch(i){case"string":switch(o.toLowerCase()){case"true":case"yes":case"on":r[n]=!0;break;case"false":case"no":case"off":r[n]=!1;break}break;case"number":r[n]=!!o;break}break}}),r}class UZt{constructor(t,r={},n){this.tables=t,this.initialData=r,this.config=n}getItems(t){throw new Error("Method not implemented.")}getItem(t,r){throw new Error("Method not implemented.")}getItemById(t,r){throw new Error("Method not implemented.")}deleteItems(t,r){throw new Error("Method not implemented.")}insertItem(t,r){throw new Error("Method not implemented.")}updateItem(t,r){throw new Error("Method not implemented.")}async initialize(){}}function qZt(...e){const t={};for(const r of e){if(!Hn(r))throw new TypeError("All arguments must be of type object");const n=new Headers(r);for(const[o,i]of n.entries())i===void 0||i==="undefined"?delete t[o]:t[o]=i}return new Headers(t)}class GZt{constructor(t){const r=JSON.parse(sessionStorage.getItem("session-logged-in-user"));this.loggedInUser=r||(t==null?void 0:t.defaultLoggedInUser)}login(t){this.loggedInUser=t,sessionStorage.setItem("session-logged-in-user",JSON.stringify(t))}logout(){this.loggedInUser=null,sessionStorage.removeItem("session-logged-in-user")}getCookieToken(){return sessionStorage.getItem("session-anonymous-token")}setCookieToken(t){sessionStorage.setItem("session-anonymous-token",t)}getLoggedInUser(){return this.loggedInUser}}async function YZt(e){var t,r;switch(e.type){case"in-memory":return new UZt((t=e.schemaDescriptor)==null?void 0:t.tables,e.initialData,e.config);default:const n=new WZt((r=e.schemaDescriptor)==null?void 0:r.tables,e.initialData,e.config);return await n.initialize(),n}}class KZt{constructor(t){this.apiDef=t,this.backend=null}async initialize(){const t={};Object.entries(this.apiDef.operations||{}).forEach(([i,a])=>{t[i]=a.handler});const r=await YZt(this.apiDef),n=new GZt(this.apiDef.auth),o={operations:t,initialize:this.apiDef.initialize,helpers:this.apiDef.helpers};this.backend=new XQt(o,r,n)}getOperations(){return this.apiDef.operations||{}}getApiUrl(){return this.apiDef.apiUrl||""}async executeOperation(t,r,n,o){var c;if(this.backend===null)throw new Error("Interceptor not initialized");const i=(c=this.apiDef.operations)==null?void 0:c[t];if(!i)throw new Error(`Unknown API interceptor operation: ${t}`);let a;try{if(i.requestShape==="formData"){const d=await r.formData(),f={};for(const p of d.keys()){const h=d.getAll(p);h.length===1?f[p]=h[0]:f[p]=h}a=f}else i.requestShape==="blob"?a=await r.blob():a=await r.json()}catch{}const l=this.convertRequestParams({pathParams:o,queryParams:Object.fromEntries(new URL(r.url).searchParams),requestBody:a,cookies:n,requestHeaders:Object.fromEntries(r.headers.entries())||{}},i);this.apiDef.artificialDelay===void 0?await wEe("real"):this.apiDef.artificialDelay!==0&&await wEe(this.apiDef.artificialDelay);const s=new YQt,u=new KQt;try{const d=await this.backend.executeOperation(t,l,s,u),f=d==null,p=i.successStatusCode??(f?K5.NoContent:K5.Ok),h=qZt(s.getCookieHeader(),u.getHeaders());return d instanceof File?(h.append("Content-type",d.type),h.append("Content-Length",d.size+""),h.append("Content-Disposition",`attachment; filename="${d.name}"; filename*=utf-8''${d.name}`),Ys.arrayBuffer(await d.arrayBuffer(),{headers:h,status:p})):f?new Ys(null,{headers:h,status:p}):Ys.json(d,{headers:h,status:p})}catch(d){return console.error(d),d instanceof ac&&d.errorObject instanceof Ug?Ys.json(d.errorObject.details,{headers:s.getCookieHeader(),status:d.errorObject.status}):Ys.json({message:d==null?void 0:d.message},{headers:s.getCookieHeader(),status:K5.InternalServerError})}}convertRequestParams(t,r){return{...t,pathParams:d6e(t.pathParams,r.pathParamTypes),queryParams:d6e(t.queryParams,r.queryParamTypes)}}hasMockForRequest(t,r){return this.getMockForRequest(t,r)!==void 0}getMockForRequest(t,r){return Object.entries(this.getOperations()).find(([n,o])=>!!(Oz(new URL(t,window.location.href),`${this.getApiUrl()}${o.url}`,`${window.location.href}`).matches&&(r.method||"get").toLowerCase()===o.method.toLowerCase()))}async executeMockedFetch(t,r){const n=this.getMockForRequest(t,r);if(!n)throw new Error(`No mock found for request: ${t} with options: ${JSON.stringify(r)}`);const[o,i]=n,a=Oz(new URL(t,window.location.href),`${this.getApiUrl()}${i.url}`,`${window.location.href}`);return this.executeOperation(o,new Request(t,r),XZt(),a.params)}}function XZt(){const e=document.cookie;return e===""?{}:e.split("; ").reduce((n,o)=>{const[i,a]=o.split("=");return n[decodeURIComponent(i)]=decodeURIComponent(a),n},{})}const EF=Object.freeze(Object.defineProperty({__proto__:null,initMock:async e=>{const t=new KZt(e);return await t.initialize(),t}},Symbol.toStringTag,{value:"Module"}));function QZt(e){return{status:e.status,statusText:e.statusText,headers:Object.fromEntries(e.headers.entries())}}function AF(e){return t=>t!=null&&typeof t=="object"&&"__kind"in t&&t.__kind===e}function f6e(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function m6e(e,t){return Object.entries(t).reduce((r,[n,o])=>{const i=r[n];return Array.isArray(i)&&Array.isArray(o)?(r[n]=i.concat(o),r):f6e(i)&&f6e(o)?(r[n]=m6e(i,o),r):(r[n]=o,r)},Object.assign({},e))}function ZZt(e){const t=Object.getOwnPropertyDescriptor(globalThis,e);return typeof t>"u"||typeof t.get=="function"&&typeof t.get()>"u"||typeof t.get>"u"&&t.value==null?!1:typeof t.set>"u"&&!t.configurable?(console.error(`[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`),!1):!0}function ea(e,t){return Object.defineProperties(t,{target:{value:e,enumerable:!0,writable:!0},currentTarget:{value:e,enumerable:!0,writable:!0}}),t}var ox=Symbol("kCancelable"),Zc=Symbol("kDefaultPrevented"),OF=class extends MessageEvent{constructor(e,t){super(e,t),this[ox]=!!t.cancelable,this[Zc]=!1}get cancelable(){return this[ox]}set cancelable(e){this[ox]=e}get defaultPrevented(){return this[Zc]}set defaultPrevented(e){this[Zc]=e}preventDefault(){this.cancelable&&!this[Zc]&&(this[Zc]=!0)}},wO=class extends Event{constructor(e,t={}){super(e,t),this.code=t.code===void 0?0:t.code,this.reason=t.reason===void 0?"":t.reason,this.wasClean=t.wasClean===void 0?!1:t.wasClean}},p6e=class extends wO{constructor(e,t={}){super(e,t),this[ox]=!!t.cancelable,this[Zc]=!1}get cancelable(){return this[ox]}set cancelable(e){this[ox]=e}get defaultPrevented(){return this[Zc]}set defaultPrevented(e){this[Zc]=e}preventDefault(){this.cancelable&&!this[Zc]&&(this[Zc]=!0)}},Yk=Symbol("kEmitter"),CO=Symbol("kBoundListener"),JZt=class{constructor(e,t){this.socket=e,this.transport=t,this.id=AXt(),this.url=new URL(e.url),this[Yk]=new EventTarget,this.transport.addEventListener("outgoing",r=>{const n=ea(this.socket,new OF("message",{data:r.data,origin:r.origin,cancelable:!0}));this[Yk].dispatchEvent(n),n.defaultPrevented&&r.preventDefault()}),this.transport.addEventListener("close",r=>{this[Yk].dispatchEvent(ea(this.socket,new wO("close",r)))})}addEventListener(e,t,r){if(!Reflect.has(t,CO)){const n=t.bind(this.socket);Object.defineProperty(t,CO,{value:n,enumerable:!1,configurable:!1})}this[Yk].addEventListener(e,Reflect.get(t,CO),r)}removeEventListener(e,t,r){this[Yk].removeEventListener(e,Reflect.get(t,CO),r)}send(e){this.transport.send(e)}close(e,t){this.transport.close(e,t)}},h6e="InvalidAccessError: close code out of user configurable range",kO=Symbol("kPassthroughPromise"),g6e=Symbol("kOnSend"),Kk=Symbol("kClose"),Xk=class extends EventTarget{constructor(e,t){super(),this.CONNECTING=0,this.OPEN=1,this.CLOSING=2,this.CLOSED=3,this._onopen=null,this._onmessage=null,this._onerror=null,this._onclose=null,this.url=e.toString(),this.protocol="",this.extensions="",this.binaryType="blob",this.readyState=this.CONNECTING,this.bufferedAmount=0,this[kO]=new $Qt,queueMicrotask(async()=>{await this[kO]||(this.protocol=typeof t=="string"?t:Array.isArray(t)&&t.length>0?t[0]:"",this.readyState===this.CONNECTING&&(this.readyState=this.OPEN,this.dispatchEvent(ea(this,new Event("open")))))})}set onopen(e){this.removeEventListener("open",this._onopen),this._onopen=e,e!==null&&this.addEventListener("open",e)}get onopen(){return this._onopen}set onmessage(e){this.removeEventListener("message",this._onmessage),this._onmessage=e,e!==null&&this.addEventListener("message",e)}get onmessage(){return this._onmessage}set onerror(e){this.removeEventListener("error",this._onerror),this._onerror=e,e!==null&&this.addEventListener("error",e)}get onerror(){return this._onerror}set onclose(e){this.removeEventListener("close",this._onclose),this._onclose=e,e!==null&&this.addEventListener("close",e)}get onclose(){return this._onclose}send(e){if(this.readyState===this.CONNECTING)throw this.close(),new DOMException("InvalidStateError");this.readyState===this.CLOSING||this.readyState===this.CLOSED||(this.bufferedAmount+=eJt(e),queueMicrotask(()=>{var t;this.bufferedAmount=0,(t=this[g6e])==null||t.call(this,e)}))}close(e=1e3,t){Yu(e,h6e),Yu(e===1e3||e>=3e3&&e<=4999,h6e),this[Kk](e,t)}[Kk](e=1e3,t,r=!0){this.readyState===this.CLOSING||this.readyState===this.CLOSED||(this.readyState=this.CLOSING,queueMicrotask(()=>{this.readyState=this.CLOSED,this.dispatchEvent(ea(this,new wO("close",{code:e,reason:t,wasClean:r}))),this._onopen=null,this._onmessage=null,this._onerror=null,this._onclose=null}))}addEventListener(e,t,r){return super.addEventListener(e,t,r)}removeEventListener(e,t,r){return super.removeEventListener(e,t,r)}};Xk.CONNECTING=0,Xk.OPEN=1,Xk.CLOSING=2,Xk.CLOSED=3;function eJt(e){return typeof e=="string"?e.length:e instanceof Blob?e.size:e.byteLength}var pp=Symbol("kEmitter"),_O=Symbol("kBoundListener"),IF=Symbol("kSend"),tJt=class{constructor(e,t,r){this.client=e,this.transport=t,this.createConnection=r,this[pp]=new EventTarget,this.mockCloseController=new AbortController,this.realCloseController=new AbortController,this.transport.addEventListener("outgoing",n=>{typeof this.realWebSocket>"u"||queueMicrotask(()=>{n.defaultPrevented||this[IF](n.data)})}),this.transport.addEventListener("incoming",this.handleIncomingMessage.bind(this))}get socket(){return Yu(this.realWebSocket,'Cannot access "socket" on the original WebSocket server object: the connection is not open. Did you forget to call `server.connect()`?'),this.realWebSocket}connect(){Yu(!this.realWebSocket||this.realWebSocket.readyState!==WebSocket.OPEN,'Failed to call "connect()" on the original WebSocket instance: the connection already open');const e=this.createConnection();e.binaryType=this.client.binaryType,e.addEventListener("open",t=>{this[pp].dispatchEvent(ea(this.realWebSocket,new Event("open",t)))},{once:!0}),e.addEventListener("message",t=>{this.transport.dispatchEvent(ea(this.realWebSocket,new MessageEvent("incoming",{data:t.data,origin:t.origin})))}),this.client.addEventListener("close",t=>{this.handleMockClose(t)},{signal:this.mockCloseController.signal}),e.addEventListener("close",t=>{this.handleRealClose(t)},{signal:this.realCloseController.signal}),e.addEventListener("error",()=>{const t=ea(e,new Event("error",{cancelable:!0}));this[pp].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(ea(this.client,new Event("error")))}),this.realWebSocket=e}addEventListener(e,t,r){if(!Reflect.has(t,_O)){const n=t.bind(this.client);Object.defineProperty(t,_O,{value:n,enumerable:!1})}this[pp].addEventListener(e,Reflect.get(t,_O),r)}removeEventListener(e,t,r){this[pp].removeEventListener(e,Reflect.get(t,_O),r)}send(e){this[IF](e)}[IF](e){const{realWebSocket:t}=this;if(Yu(t,'Failed to call "server.send()" for "%s": the connection is not open. Did you forget to call "server.connect()"?',this.client.url),!(t.readyState===WebSocket.CLOSING||t.readyState===WebSocket.CLOSED)){if(t.readyState===WebSocket.CONNECTING){t.addEventListener("open",()=>{t.send(e)},{once:!0});return}t.send(e)}}close(){const{realWebSocket:e}=this;Yu(e,'Failed to close server connection for "%s": the connection is not open. Did you forget to call "server.connect()"?',this.client.url),this.realCloseController.abort(),!(e.readyState===WebSocket.CLOSING||e.readyState===WebSocket.CLOSED)&&(e.close(),queueMicrotask(()=>{this[pp].dispatchEvent(ea(this.realWebSocket,new p6e("close",{code:1e3,cancelable:!0})))}))}handleIncomingMessage(e){const t=ea(e.target,new OF("message",{data:e.data,origin:e.origin,cancelable:!0}));this[pp].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(ea(this.client,new MessageEvent("message",{data:e.data,origin:e.origin})))}handleMockClose(e){this.realWebSocket&&this.realWebSocket.close()}handleRealClose(e){this.mockCloseController.abort();const t=ea(this.realWebSocket,new p6e("close",{code:e.code,reason:e.reason,wasClean:e.wasClean,cancelable:!0}));this[pp].dispatchEvent(t),t.defaultPrevented||this.client[Kk](e.code,e.reason)}},rJt=class extends EventTarget{constructor(e){super(),this.socket=e,this.socket.addEventListener("close",t=>{this.dispatchEvent(ea(this.socket,new wO("close",t)))}),this.socket[g6e]=t=>{this.dispatchEvent(ea(this.socket,new OF("outgoing",{data:t,origin:this.socket.url,cancelable:!0})))}}addEventListener(e,t,r){return super.addEventListener(e,t,r)}dispatchEvent(e){return super.dispatchEvent(e)}send(e){queueMicrotask(()=>{if(this.socket.readyState===this.socket.CLOSING||this.socket.readyState===this.socket.CLOSED)return;const t=()=>{this.socket.dispatchEvent(ea(this.socket,new MessageEvent("message",{data:e,origin:this.socket.url})))};this.socket.readyState===this.socket.CONNECTING?this.socket.addEventListener("open",()=>{t()},{once:!0}):t()})}close(e,t){this.socket[Kk](e,t)}},v6e=class extends EXt{constructor(){super(v6e.symbol)}checkEnvironment(){return ZZt("WebSocket")}setup(){const e=Object.getOwnPropertyDescriptor(globalThis,"WebSocket"),t=new Proxy(globalThis.WebSocket,{construct:(r,n,o)=>{const[i,a]=n,l=()=>Reflect.construct(r,n,o),s=new Xk(i,a),u=new rJt(s);return queueMicrotask(()=>{try{const c=new tJt(s,u,l);this.emitter.emit("connection",{client:new JZt(s,u),server:c,info:{protocols:a}})?s[kO].resolve(!1):(s[kO].resolve(!0),c.connect(),c.addEventListener("open",()=>{s.dispatchEvent(ea(s,new Event("open"))),c.realWebSocket&&(s.protocol=c.realWebSocket.protocol)}))}catch(c){c instanceof Error&&(s.dispatchEvent(new Event("error")),s.readyState!==WebSocket.CLOSING&&s.readyState!==WebSocket.CLOSED&&s[Kk](1011,c.message,!1),console.error(c))}}),s}});Object.defineProperty(globalThis,"WebSocket",{value:t,configurable:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis,"WebSocket",e)})}},b6e=v6e;b6e.symbol=Symbol("websocket");const RF=new b6e;function nJt(e){RF.on("connection",async t=>{const r=e.getHandlers(),n=new MessageEvent("connection",{data:t}),o=[];for(const i of r)AF("EventHandler")(i)&&i.predicate({event:n,parsedResult:i.parse({event:n})})&&o.push(i);if(o.length>0){e==null||e.onMockedConnection(t);for(const i of o)i[HQt](n)}else{const i=new Request(t.client.url,{headers:{upgrade:"websocket",connection:"upgrade"}});await gEe(i,e.getUnhandledRequestStrategy()).catch(a=>{const l=new Event("error");Object.defineProperty(l,"cause",{enumerable:!0,configurable:!1,value:a}),t.client.socket.dispatchEvent(l)}),e==null||e.onPassthroughConnection(t),t.server.connect()}})}function TO(e){return e instanceof Blob?e.size:e instanceof ArrayBuffer?e.byteLength:new Blob([e]).size}const x6e=24;function PF(e){return e.length<=x6e?e:`${e.slice(0,x6e)}…`}async function SO(e){if(e instanceof Blob){const t=await e.text();return`Blob(${PF(t)})`}if(typeof e=="object"&&"byteLength"in e){const t=new TextDecoder().decode(e);return`ArrayBuffer(${PF(t)})`}return PF(e)}const Jg={system:"#3b82f6",outgoing:"#22c55e",incoming:"#ef4444",mocked:"#ff6a33"};function oJt(e){const{client:t,server:r}=e;iJt(t),t.addEventListener("message",n=>{sJt(n)}),t.addEventListener("close",n=>{aJt(n)}),t.socket.addEventListener("error",n=>{lJt(n)}),t.send=new Proxy(t.send,{apply(n,o,i){const[a]=i,l=new MessageEvent("message",{data:a});return Object.defineProperties(l,{currentTarget:{enumerable:!0,writable:!1,value:t.socket},target:{enumerable:!0,writable:!1,value:t.socket}}),queueMicrotask(()=>{cJt(l)}),Reflect.apply(n,o,i)}}),r.addEventListener("open",()=>{r.addEventListener("message",n=>{dJt(n)})},{once:!0}),r.send=new Proxy(r.send,{apply(n,o,i){const[a]=i,l=new MessageEvent("message",{data:a});return Object.defineProperties(l,{currentTarget:{enumerable:!0,writable:!1,value:r.socket},target:{enumerable:!0,writable:!1,value:r.socket}}),uJt(l),Reflect.apply(n,o,i)}})}function iJt(e){const t=Ek(e.url);console.groupCollapsed(qr.formatMessage(`${np()} %c▶%c ${t}`),`color:${Jg.system}`,"color:inherit"),console.log("Client:",e.socket),console.groupEnd()}function aJt(e){const t=e.target,r=Ek(t.url);console.groupCollapsed(qr.formatMessage(`${np({milliseconds:!0})} %c■%c ${r}`),`color:${Jg.system}`,"color:inherit"),console.log(e),console.groupEnd()}function lJt(e){const t=e.target,r=Ek(t.url);console.groupCollapsed(qr.formatMessage(`${np({milliseconds:!0})} %c×%c ${r}`),`color:${Jg.system}`,"color:inherit"),console.log(e),console.groupEnd()}async function sJt(e){const t=TO(e.data),r=await SO(e.data),n=e.defaultPrevented?"⇡":"⬆";console.groupCollapsed(qr.formatMessage(`${np({milliseconds:!0})} %c${n}%c ${r} %c${t}%c`),`color:${Jg.outgoing}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}async function uJt(e){const t=TO(e.data),r=await SO(e.data);console.groupCollapsed(qr.formatMessage(`${np({milliseconds:!0})} %c⬆%c ${r} %c${t}%c`),`color:${Jg.mocked}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}async function cJt(e){const t=TO(e.data),r=await SO(e.data);console.groupCollapsed(qr.formatMessage(`${np({milliseconds:!0})} %c⬇%c ${r} %c${t}%c`),`color:${Jg.mocked}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}async function dJt(e){const t=TO(e.data),r=await SO(e.data),n=e.defaultPrevented?"⇣":"⬇";console.groupCollapsed(qr.formatMessage(`${np({milliseconds:!0})} %c${n}%c ${r} %c${t}%c`),`color:${Jg.incoming}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}var fJt={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_USED_COMPONENTS_TableEditor:"false",VITE_XMLUI_VERSION:"0.9.82 (built 7/22/2025)"},mJt=/(%?)(%([sdijo]))/g;function pJt(e,t){switch(t){case"s":return e;case"d":case"i":return Number(e);case"j":return JSON.stringify(e);case"o":{if(typeof e=="string")return e;const r=JSON.stringify(e);return r==="{}"||r==="[]"||/^\[object .+?\]$/.test(r)?e:r}}}function Qk(e,...t){if(t.length===0)return e;let r=0,n=e.replace(mJt,(o,i,a,l)=>{const s=t[r],u=pJt(s,l);return i?o:(r++,u)});return r<t.length&&(n+=` ${t.slice(r).join(" ")}`),n=n.replace(/%{2,2}/g,"%"),n}var hJt=2;function gJt(e){if(!e.stack)return;const t=e.stack.split(`
|
|
954
|
+
From previous: `);return this._state!==null&&(this._stack=e),e}finally{Kz=!1}}},timeout:function(e,t){return e<1/0?new gt((r,n)=>{var o=setTimeout(()=>n(new Ut.Timeout(t)),e);this.then(r,n).finally(clearTimeout.bind(null,o))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&mf(gt.prototype,Symbol.toStringTag,"Dexie.Promise"),J1.env=zEe(),K1(gt,{all:function(){var e=hf.apply(null,arguments).map(uO);return new gt(function(t,r){e.length===0&&t([]);var n=e.length;e.forEach((o,i)=>gt.resolve(o).then(a=>{e[i]=a,--n||t(e)},r))})},resolve:e=>{if(e instanceof gt)return e;if(e&&typeof e.then=="function")return new gt((r,n)=>{e.then(r,n)});var t=new gt(Nk,!0,e);return MEe(t,Qz),t},reject:aO,race:function(){var e=hf.apply(null,arguments).map(uO);return new gt((t,r)=>{e.map(n=>gt.resolve(n).then(t,r))})},PSD:{get:()=>Rt,set:e=>Rt=e},totalEchoes:{get:()=>sO},newPSD:sp,usePSD:tx,scheduler:{get:()=>$k,set:e=>{$k=e}},rejectionMapper:{get:()=>Zz,set:e=>{Zz=e}},follow:(e,t)=>new gt((r,n)=>sp((o,i)=>{var a=Rt;a.unhandleds=[],a.onunhandled=i,a.finalize=Gg(function(){(function(l){function s(){l(),oO.splice(oO.indexOf(s),1)}oO.push(s),++Kg,$k(()=>{--Kg==0&&rF()},[])})(()=>{this.unhandleds.length===0?o():i(this.unhandleds[0])})},a.finalize),e()},t,r,n))}),tO&&(tO.allSettled&&mf(gt,"allSettled",function(){const e=hf.apply(null,arguments).map(uO);return new gt(t=>{e.length===0&&t([]);let r=e.length;const n=new Array(r);e.forEach((o,i)=>gt.resolve(o).then(a=>n[i]={status:"fulfilled",value:a},a=>n[i]={status:"rejected",reason:a}).then(()=>--r||t(n)))})}),tO.any&&typeof AggregateError<"u"&&mf(gt,"any",function(){const e=hf.apply(null,arguments).map(uO);return new gt((t,r)=>{e.length===0&&r(new AggregateError([]));let n=e.length;const o=new Array(n);e.forEach((i,a)=>gt.resolve(i).then(l=>t(l),l=>{o[a]=l,--n||r(new AggregateError(o))}))})}));const Ji={awaits:0,echoes:0,id:0};var hZt=0,lO=[],nF=0,sO=0,gZt=0;function sp(e,t,r,n){var o=Rt,i=Object.create(o);i.parent=o,i.ref=0,i.global=!1,i.id=++gZt;var a=J1.env;i.env=Yz?{Promise:gt,PromiseProp:{value:gt,configurable:!0,writable:!0},all:gt.all,race:gt.race,allSettled:gt.allSettled,any:gt.any,resolve:gt.resolve,reject:gt.reject,nthen:WEe(a.nthen,i),gthen:WEe(a.gthen,i)}:{},t&&Ea(i,t),++o.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var l=tx(i,e,r,n);return i.ref===0&&i.finalize(),l}function ex(){return Ji.id||(Ji.id=++hZt),++Ji.awaits,Ji.echoes+=HEe,Ji.id}function gf(){return!!Ji.awaits&&(--Ji.awaits==0&&(Ji.id=0),Ji.echoes=Ji.awaits*HEe,!0)}function uO(e){return Ji.echoes&&e&&e.constructor===tO?(ex(),e.then(t=>(gf(),t),t=>(gf(),oi(t)))):e}function vZt(e){++sO,Ji.echoes&&--Ji.echoes!=0||(Ji.echoes=Ji.id=0),lO.push(Rt),up(e,!0)}function bZt(){var e=lO[lO.length-1];lO.pop(),up(e,!1)}function up(e,t){var r=Rt;if((t?!Ji.echoes||nF++&&e===Rt:!nF||--nF&&e===Rt)||FEe(t?vZt.bind(null,e):bZt),e!==Rt&&(Rt=e,r===J1&&(J1.env=zEe()),Yz)){var n=J1.env.Promise,o=e.env;eO.then=o.nthen,n.prototype.then=o.gthen,(r.global||e.global)&&(Object.defineProperty(Rn,"Promise",o.PromiseProp),n.all=o.all,n.race=o.race,n.resolve=o.resolve,n.reject=o.reject,o.allSettled&&(n.allSettled=o.allSettled),o.any&&(n.any=o.any))}}function zEe(){var e=Rn.Promise;return Yz?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(Rn,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:eO.then,gthen:e.prototype.then}:{}}function tx(e,t,r,n,o){var i=Rt;try{return up(e,!0),t(r,n,o)}finally{up(i,!1)}}function FEe(e){NEe.call(qz,e)}function cO(e,t,r,n){return typeof e!="function"?e:function(){var o=Rt;r&&ex(),up(t,!0);try{return e.apply(this,arguments)}finally{up(o,!1),n&&FEe(gf)}}}function WEe(e,t){return function(r,n){return e.call(this,cO(r,t),cO(n,t))}}(""+NEe).indexOf("[native code]")===-1&&(ex=gf=pn);const VEe="unhandledrejection";function UEe(e,t){var r;try{r=t.onuncatched(e)}catch{}if(r!==!1)try{var n,o={promise:t,reason:e};if(Rn.document&&document.createEvent?((n=document.createEvent("Event")).initEvent(VEe,!0,!0),Ea(n,o)):Rn.CustomEvent&&Ea(n=new CustomEvent(VEe,{detail:o}),o),n&&Rn.dispatchEvent&&(dispatchEvent(n),!Rn.PromiseRejectionEvent&&Rn.onunhandledrejection))try{Rn.onunhandledrejection(n)}catch{}Xc&&n&&!n.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch{}}var oi=gt.reject;function oF(e,t,r,n){if(e.idbdb&&(e._state.openComplete||Rt.letThrough||e._vip)){var o=e._createTransaction(t,r,e._dbSchema);try{o.create(),e._state.PR1398_maxLoop=3}catch(i){return i.name===Vz.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(()=>oF(e,t,r,n))):oi(i)}return o._promise(t,(i,a)=>sp(()=>(Rt.trans=o,n(i,a,o)))).then(i=>o._completion.then(()=>i))}if(e._state.openComplete)return oi(new Ut.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return oi(new Ut.DatabaseClosed);e.open().catch(pn)}return e._state.dbReadyPromise.then(()=>oF(e,t,r,n))}const qEe="3.2.4",Xg="",iF=-1/0,vf="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",GEe="String expected.",Mk=[],dO=typeof navigator<"u"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),xZt=dO,yZt=dO,YEe=e=>!/(dexie\.js|dexie\.min\.js)/.test(e),fO="__dbnames",aF="readonly",lF="readwrite";function Qg(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}const KEe={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function mO(e){return typeof e!="string"||/\./.test(e)?t=>t:t=>(t[e]===void 0&&e in t&&delete(t=Pk(t))[e],t)}class wZt{_trans(t,r,n){const o=this._tx||Rt.trans,i=this.name;function a(s,u,c){if(!c.schema[i])throw new Ut.NotFound("Table "+i+" not part of transaction");return r(c.idbtrans,c)}const l=Bk();try{return o&&o.db===this.db?o===Rt.trans?o._promise(t,a,n):sp(()=>o._promise(t,a,n),{trans:o,transless:Rt.transless||Rt}):oF(this.db,t,[this.name],a)}finally{l&&jk()}}get(t,r){return t&&t.constructor===Object?this.where(t).first(r):this._trans("readonly",n=>this.core.get({trans:n,key:t}).then(o=>this.hook.reading.fire(o))).then(r)}where(t){if(typeof t=="string")return new this.db.WhereClause(this,t);if(Zi(t))return new this.db.WhereClause(this,`[${t.join("+")}]`);const r=Mo(t);if(r.length===1)return this.where(r[0]).equals(t[r[0]]);const n=this.schema.indexes.concat(this.schema.primKey).filter(u=>u.compound&&r.every(c=>u.keyPath.indexOf(c)>=0)&&u.keyPath.every(c=>r.indexOf(c)>=0))[0];if(n&&this.db._maxKey!==Xg)return this.where(n.name).equals(n.keyPath.map(u=>t[u]));!n&&Xc&&console.warn(`The query ${JSON.stringify(t)} on ${this.name} would benefit of a compound index [${r.join("+")}]`);const{idxByName:o}=this.schema,i=this.db._deps.indexedDB;function a(u,c){try{return i.cmp(u,c)===0}catch{return!1}}const[l,s]=r.reduce(([u,c],d)=>{const f=o[d],p=t[d];return[u||f,u||!f?Qg(c,f&&f.multi?h=>{const v=pf(h,d);return Zi(v)&&v.some(b=>a(p,b))}:h=>a(p,pf(h,d))):c]},[null,null]);return l?this.where(l.name).equals(t[l.keyPath]).filter(s):n?this.filter(s):this.where(r).equals("")}filter(t){return this.toCollection().and(t)}count(t){return this.toCollection().count(t)}offset(t){return this.toCollection().offset(t)}limit(t){return this.toCollection().limit(t)}each(t){return this.toCollection().each(t)}toArray(t){return this.toCollection().toArray(t)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(t){return new this.db.Collection(new this.db.WhereClause(this,Zi(t)?`[${t.join("+")}]`:t))}reverse(){return this.toCollection().reverse()}mapToClass(t){this.schema.mappedClass=t;const r=n=>{if(!n)return n;const o=Object.create(t.prototype);for(var i in n)if(Ql(n,i))try{o[i]=n[i]}catch{}return o};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=r,this.hook("reading",r),t}defineClass(){return this.mapToClass(function(t){Ea(this,t)})}add(t,r){const{auto:n,keyPath:o}=this.schema.primKey;let i=t;return o&&n&&(i=mO(o)(t)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"add",keys:r!=null?[r]:null,values:[i]})).then(a=>a.numFailures?gt.reject(a.failures[0]):a.lastResult).then(a=>{if(o)try{Ku(t,o,a)}catch{}return a})}update(t,r){if(typeof t!="object"||Zi(t))return this.where(":id").equals(t).modify(r);{const n=pf(t,this.schema.primKey.keyPath);if(n===void 0)return oi(new Ut.InvalidArgument("Given object does not contain its primary key"));try{typeof r!="function"?Mo(r).forEach(o=>{Ku(t,o,r[o])}):r(t,{value:t,primKey:n})}catch{}return this.where(":id").equals(n).modify(r)}}put(t,r){const{auto:n,keyPath:o}=this.schema.primKey;let i=t;return o&&n&&(i=mO(o)(t)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"put",values:[i],keys:r!=null?[r]:null})).then(a=>a.numFailures?gt.reject(a.failures[0]):a.lastResult).then(a=>{if(o)try{Ku(t,o,a)}catch{}return a})}delete(t){return this._trans("readwrite",r=>this.core.mutate({trans:r,type:"delete",keys:[t]})).then(r=>r.numFailures?gt.reject(r.failures[0]):void 0)}clear(){return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"deleteRange",range:KEe})).then(t=>t.numFailures?gt.reject(t.failures[0]):void 0)}bulkGet(t){return this._trans("readonly",r=>this.core.getMany({keys:t,trans:r}).then(n=>n.map(o=>this.hook.reading.fire(o))))}bulkAdd(t,r,n){const o=Array.isArray(r)?r:void 0,i=(n=n||(o?void 0:r))?n.allKeys:void 0;return this._trans("readwrite",a=>{const{auto:l,keyPath:s}=this.schema.primKey;if(s&&o)throw new Ut.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(o&&o.length!==t.length)throw new Ut.InvalidArgument("Arguments objects and keys must have the same length");const u=t.length;let c=s&&l?t.map(mO(s)):t;return this.core.mutate({trans:a,type:"add",keys:o,values:c,wantResults:i}).then(({numFailures:d,results:f,lastResult:p,failures:h})=>{if(d===0)return i?f:p;throw new Lk(`${this.name}.bulkAdd(): ${d} of ${u} operations failed`,h)})})}bulkPut(t,r,n){const o=Array.isArray(r)?r:void 0,i=(n=n||(o?void 0:r))?n.allKeys:void 0;return this._trans("readwrite",a=>{const{auto:l,keyPath:s}=this.schema.primKey;if(s&&o)throw new Ut.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(o&&o.length!==t.length)throw new Ut.InvalidArgument("Arguments objects and keys must have the same length");const u=t.length;let c=s&&l?t.map(mO(s)):t;return this.core.mutate({trans:a,type:"put",keys:o,values:c,wantResults:i}).then(({numFailures:d,results:f,lastResult:p,failures:h})=>{if(d===0)return i?f:p;throw new Lk(`${this.name}.bulkPut(): ${d} of ${u} operations failed`,h)})})}bulkDelete(t){const r=t.length;return this._trans("readwrite",n=>this.core.mutate({trans:n,type:"delete",keys:t})).then(({numFailures:n,lastResult:o,failures:i})=>{if(n===0)return o;throw new Lk(`${this.name}.bulkDelete(): ${n} of ${r} operations failed`,i)})}}function zk(e){var t={},r=function(a,l){if(l){for(var s=arguments.length,u=new Array(s-1);--s;)u[s-1]=arguments[s];return t[a].subscribe.apply(null,u),e}if(typeof a=="string")return t[a]};r.addEventType=i;for(var n=1,o=arguments.length;n<o;++n)i(arguments[n]);return r;function i(a,l,s){if(typeof a!="object"){var u;l||(l=fZt),s||(s=pn);var c={subscribers:[],fire:s,subscribe:function(d){c.subscribers.indexOf(d)===-1&&(c.subscribers.push(d),c.fire=l(c.fire,d))},unsubscribe:function(d){c.subscribers=c.subscribers.filter(function(f){return f!==d}),c.fire=c.subscribers.reduce(l,s)}};return t[a]=r[a]=c,c}Mo(u=a).forEach(function(d){var f=u[d];if(Zi(f))i(d,u[d][0],u[d][1]);else{if(f!=="asap")throw new Ut.InvalidArgument("Invalid event config");var p=i(d,Hk,function(){for(var h=arguments.length,v=new Array(h);h--;)v[h]=arguments[h];p.subscribers.forEach(function(b){_Ee(function(){b.apply(null,v)})})})}})}}function Fk(e,t){return X1(t).from({prototype:e}),t}function rx(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function sF(e,t){e.filter=Qg(e.filter,t)}function uF(e,t,r){var n=e.replayFilter;e.replayFilter=n?()=>Qg(n(),t()):t,e.justLimit=r&&!n}function pO(e,t){if(e.isPrimKey)return t.primaryKey;const r=t.getIndexByKeyPath(e.index);if(!r)throw new Ut.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return r}function XEe(e,t,r){const n=pO(e,t.schema);return t.openCursor({trans:r,values:!e.keysOnly,reverse:e.dir==="prev",unique:!!e.unique,query:{index:n,range:e.range}})}function hO(e,t,r,n){const o=e.replayFilter?Qg(e.filter,e.replayFilter()):e.filter;if(e.or){const i={},a=(l,s,u)=>{if(!o||o(s,u,f=>s.stop(f),f=>s.fail(f))){var c=s.primaryKey,d=""+c;d==="[object ArrayBuffer]"&&(d=""+new Uint8Array(c)),Ql(i,d)||(i[d]=!0,t(l,s,u))}};return Promise.all([e.or._iterate(a,r),QEe(XEe(e,n,r),e.algorithm,a,!e.keysOnly&&e.valueMapper)])}return QEe(XEe(e,n,r),Qg(e.algorithm,o),t,!e.keysOnly&&e.valueMapper)}function QEe(e,t,r,n){var o=Mn(n?(i,a,l)=>r(n(i),a,l):r);return e.then(i=>{if(i)return i.start(()=>{var a=()=>i.continue();t&&!t(i,l=>a=l,l=>{i.stop(l),a=pn},l=>{i.fail(l),a=pn})||o(i.value,i,l=>a=l),a()})})}function Aa(e,t){try{const r=ZEe(e),n=ZEe(t);if(r!==n)return r==="Array"?1:n==="Array"?-1:r==="binary"?1:n==="binary"?-1:r==="string"?1:n==="string"?-1:r==="Date"?1:n!=="Date"?NaN:-1;switch(r){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(o,i){const a=o.length,l=i.length,s=a<l?a:l;for(let u=0;u<s;++u)if(o[u]!==i[u])return o[u]<i[u]?-1:1;return a===l?0:a<l?-1:1}(JEe(e),JEe(t));case"Array":return function(o,i){const a=o.length,l=i.length,s=a<l?a:l;for(let u=0;u<s;++u){const c=Aa(o[u],i[u]);if(c!==0)return c}return a===l?0:a<l?-1:1}(e,t)}}catch{}return NaN}function ZEe(e){const t=typeof e;if(t!=="object")return t;if(ArrayBuffer.isView(e))return"binary";const r=jz(e);return r==="ArrayBuffer"?"binary":r}function JEe(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}class CZt{_read(t,r){var n=this._ctx;return n.error?n.table._trans(null,oi.bind(null,n.error)):n.table._trans("readonly",t).then(r)}_write(t){var r=this._ctx;return r.error?r.table._trans(null,oi.bind(null,r.error)):r.table._trans("readwrite",t,"locked")}_addAlgorithm(t){var r=this._ctx;r.algorithm=Qg(r.algorithm,t)}_iterate(t,r){return hO(this._ctx,t,r,this._ctx.table.core)}clone(t){var r=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return t&&Ea(n,t),r._ctx=n,r}raw(){return this._ctx.valueMapper=null,this}each(t){var r=this._ctx;return this._read(n=>hO(r,t,n,r.table.core))}count(t){return this._read(r=>{const n=this._ctx,o=n.table.core;if(rx(n,!0))return o.count({trans:r,query:{index:pO(n,o.schema),range:n.range}}).then(a=>Math.min(a,n.limit));var i=0;return hO(n,()=>(++i,!1),r,o).then(()=>i)}).then(t)}sortBy(t,r){const n=t.split(".").reverse(),o=n[0],i=n.length-1;function a(u,c){return c?a(u[n[c]],c-1):u[o]}var l=this._ctx.dir==="next"?1:-1;function s(u,c){var d=a(u,i),f=a(c,i);return d<f?-l:d>f?l:0}return this.toArray(function(u){return u.sort(s)}).then(r)}toArray(t){return this._read(r=>{var n=this._ctx;if(n.dir==="next"&&rx(n,!0)&&n.limit>0){const{valueMapper:o}=n,i=pO(n,n.table.core.schema);return n.table.core.query({trans:r,limit:n.limit,values:!0,query:{index:i,range:n.range}}).then(({result:a})=>o?a.map(o):a)}{const o=[];return hO(n,i=>o.push(i),r,n.table.core).then(()=>o)}},t)}offset(t){var r=this._ctx;return t<=0||(r.offset+=t,rx(r)?uF(r,()=>{var n=t;return(o,i)=>n===0||(n===1?(--n,!1):(i(()=>{o.advance(n),n=0}),!1))}):uF(r,()=>{var n=t;return()=>--n<0})),this}limit(t){return this._ctx.limit=Math.min(this._ctx.limit,t),uF(this._ctx,()=>{var r=t;return function(n,o,i){return--r<=0&&o(i),r>=0}},!0),this}until(t,r){return sF(this._ctx,function(n,o,i){return!t(n.value)||(o(i),r)}),this}first(t){return this.limit(1).toArray(function(r){return r[0]}).then(t)}last(t){return this.reverse().first(t)}filter(t){var r,n;return sF(this._ctx,function(o){return t(o.value)}),r=this._ctx,n=t,r.isMatch=Qg(r.isMatch,n),this}and(t){return this.filter(t)}or(t){return new this.db.WhereClause(this._ctx.table,t,this)}reverse(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(t){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(n,o){t(o.key,o)})}eachUniqueKey(t){return this._ctx.unique="unique",this.eachKey(t)}eachPrimaryKey(t){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(n,o){t(o.primaryKey,o)})}keys(t){var r=this._ctx;r.keysOnly=!r.isMatch;var n=[];return this.each(function(o,i){n.push(i.key)}).then(function(){return n}).then(t)}primaryKeys(t){var r=this._ctx;if(r.dir==="next"&&rx(r,!0)&&r.limit>0)return this._read(o=>{var i=pO(r,r.table.core.schema);return r.table.core.query({trans:o,values:!1,limit:r.limit,query:{index:i,range:r.range}})}).then(({result:o})=>o).then(t);r.keysOnly=!r.isMatch;var n=[];return this.each(function(o,i){n.push(i.primaryKey)}).then(function(){return n}).then(t)}uniqueKeys(t){return this._ctx.unique="unique",this.keys(t)}firstKey(t){return this.limit(1).keys(function(r){return r[0]}).then(t)}lastKey(t){return this.reverse().firstKey(t)}distinct(){var t=this._ctx,r=t.index&&t.table.schema.idxByName[t.index];if(!r||!r.multi)return this;var n={};return sF(this._ctx,function(o){var i=o.primaryKey.toString(),a=Ql(n,i);return n[i]=!0,!a}),this}modify(t){var r=this._ctx;return this._write(n=>{var o;if(typeof t=="function")o=t;else{var i=Mo(t),a=i.length;o=function(v){for(var b=!1,y=0;y<a;++y){var w=i[y],k=t[w];pf(v,w)!==k&&(Ku(v,w,k),b=!0)}return b}}const l=r.table.core,{outbound:s,extractKey:u}=l.schema.primaryKey,c=this.db._options.modifyChunkSize||200,d=[];let f=0;const p=[],h=(v,b)=>{const{failures:y,numFailures:w}=b;f+=v-w;for(let k of Mo(y))d.push(y[k])};return this.clone().primaryKeys().then(v=>{const b=y=>{const w=Math.min(c,v.length-y);return l.getMany({trans:n,keys:v.slice(y,y+w),cache:"immutable"}).then(k=>{const E=[],_=[],S=s?[]:null,A=[];for(let I=0;I<w;++I){const L=k[I],P={value:Pk(L),primKey:v[y+I]};o.call(P,P.value,P)!==!1&&(P.value==null?A.push(v[y+I]):s||Aa(u(L),u(P.value))===0?(_.push(P.value),s&&S.push(v[y+I])):(A.push(v[y+I]),E.push(P.value)))}const O=rx(r)&&r.limit===1/0&&(typeof t!="function"||t===cF)&&{index:r.index,range:r.range};return Promise.resolve(E.length>0&&l.mutate({trans:n,type:"add",values:E}).then(I=>{for(let L in I.failures)A.splice(parseInt(L),1);h(E.length,I)})).then(()=>(_.length>0||O&&typeof t=="object")&&l.mutate({trans:n,type:"put",keys:S,values:_,criteria:O,changeSpec:typeof t!="function"&&t}).then(I=>h(_.length,I))).then(()=>(A.length>0||O&&t===cF)&&l.mutate({trans:n,type:"delete",keys:A,criteria:O}).then(I=>h(A.length,I))).then(()=>v.length>y+w&&b(y+c))})};return b(0).then(()=>{if(d.length>0)throw new Z5("Error modifying one or more objects",d,f,p);return v.length})})})}delete(){var t=this._ctx,r=t.range;return rx(t)&&(t.isPrimKey&&!yZt||r.type===3)?this._write(n=>{const{primaryKey:o}=t.table.core.schema,i=r;return t.table.core.count({trans:n,query:{index:o,range:i}}).then(a=>t.table.core.mutate({trans:n,type:"deleteRange",range:i}).then(({failures:l,lastResult:s,results:u,numFailures:c})=>{if(c)throw new Z5("Could not delete some values",Object.keys(l).map(d=>l[d]),a-c);return a-c}))}):this.modify(cF)}}const cF=(e,t)=>t.value=null;function kZt(e,t){return e<t?-1:e===t?0:1}function _Zt(e,t){return e>t?-1:e===t?0:1}function Zl(e,t,r){var n=e instanceof t6e?new e.Collection(e):e;return n._ctx.error=r?new r(t):new TypeError(t),n}function nx(e){return new e.Collection(e,()=>e6e("")).limit(0)}function TZt(e,t,r,n,o,i){for(var a=Math.min(e.length,n.length),l=-1,s=0;s<a;++s){var u=t[s];if(u!==n[s])return o(e[s],r[s])<0?e.substr(0,s)+r[s]+r.substr(s+1):o(e[s],n[s])<0?e.substr(0,s)+n[s]+r.substr(s+1):l>=0?e.substr(0,l)+t[l]+r.substr(l+1):null;o(e[s],u)<0&&(l=s)}return a<n.length&&i==="next"?e+r.substr(e.length):a<e.length&&i==="prev"?e.substr(0,r.length):l<0?null:e.substr(0,l)+n[l]+r.substr(l+1)}function gO(e,t,r,n){var o,i,a,l,s,u,c,d=r.length;if(!r.every(v=>typeof v=="string"))return Zl(e,GEe);function f(v){o=function(y){return y==="next"?w=>w.toUpperCase():w=>w.toLowerCase()}(v),i=function(y){return y==="next"?w=>w.toLowerCase():w=>w.toUpperCase()}(v),a=v==="next"?kZt:_Zt;var b=r.map(function(y){return{lower:i(y),upper:o(y)}}).sort(function(y,w){return a(y.lower,w.lower)});l=b.map(function(y){return y.upper}),s=b.map(function(y){return y.lower}),u=v,c=v==="next"?"":n}f("next");var p=new e.Collection(e,()=>cp(l[0],s[d-1]+n));p._ondirectionchange=function(v){f(v)};var h=0;return p._addAlgorithm(function(v,b,y){var w=v.key;if(typeof w!="string")return!1;var k=i(w);if(t(k,s,h))return!0;for(var E=null,_=h;_<d;++_){var S=TZt(w,k,l[_],s[_],a,u);S===null&&E===null?h=_+1:(E===null||a(E,S)>0)&&(E=S)}return b(E!==null?function(){v.continue(E+c)}:y),!1}),p}function cp(e,t,r,n){return{type:2,lower:e,upper:t,lowerOpen:r,upperOpen:n}}function e6e(e){return{type:1,lower:e,upper:e}}class t6e{get Collection(){return this._ctx.table.db.Collection}between(t,r,n,o){n=n!==!1,o=o===!0;try{return this._cmp(t,r)>0||this._cmp(t,r)===0&&(n||o)&&(!n||!o)?nx(this):new this.Collection(this,()=>cp(t,r,!n,!o))}catch{return Zl(this,vf)}}equals(t){return t==null?Zl(this,vf):new this.Collection(this,()=>e6e(t))}above(t){return t==null?Zl(this,vf):new this.Collection(this,()=>cp(t,void 0,!0))}aboveOrEqual(t){return t==null?Zl(this,vf):new this.Collection(this,()=>cp(t,void 0,!1))}below(t){return t==null?Zl(this,vf):new this.Collection(this,()=>cp(void 0,t,!1,!0))}belowOrEqual(t){return t==null?Zl(this,vf):new this.Collection(this,()=>cp(void 0,t))}startsWith(t){return typeof t!="string"?Zl(this,GEe):this.between(t,t+Xg,!0,!0)}startsWithIgnoreCase(t){return t===""?this.startsWith(t):gO(this,(r,n)=>r.indexOf(n[0])===0,[t],Xg)}equalsIgnoreCase(t){return gO(this,(r,n)=>r===n[0],[t],"")}anyOfIgnoreCase(){var t=hf.apply(Q1,arguments);return t.length===0?nx(this):gO(this,(r,n)=>n.indexOf(r)!==-1,t,"")}startsWithAnyOfIgnoreCase(){var t=hf.apply(Q1,arguments);return t.length===0?nx(this):gO(this,(r,n)=>n.some(o=>r.indexOf(o)===0),t,Xg)}anyOf(){const t=hf.apply(Q1,arguments);let r=this._cmp;try{t.sort(r)}catch{return Zl(this,vf)}if(t.length===0)return nx(this);const n=new this.Collection(this,()=>cp(t[0],t[t.length-1]));n._ondirectionchange=i=>{r=i==="next"?this._ascending:this._descending,t.sort(r)};let o=0;return n._addAlgorithm((i,a,l)=>{const s=i.key;for(;r(s,t[o])>0;)if(++o,o===t.length)return a(l),!1;return r(s,t[o])===0||(a(()=>{i.continue(t[o])}),!1)}),n}notEqual(t){return this.inAnyRange([[iF,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const t=hf.apply(Q1,arguments);if(t.length===0)return new this.Collection(this);try{t.sort(this._ascending)}catch{return Zl(this,vf)}const r=t.reduce((n,o)=>n?n.concat([[n[n.length-1][1],o]]):[[iF,o]],null);return r.push([t[t.length-1],this.db._maxKey]),this.inAnyRange(r,{includeLowers:!1,includeUppers:!1})}inAnyRange(t,r){const n=this._cmp,o=this._ascending,i=this._descending,a=this._min,l=this._max;if(t.length===0)return nx(this);if(!t.every(w=>w[0]!==void 0&&w[1]!==void 0&&o(w[0],w[1])<=0))return Zl(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Ut.InvalidArgument);const s=!r||r.includeLowers!==!1,u=r&&r.includeUppers===!0;let c,d=o;function f(w,k){return d(w[0],k[0])}try{c=t.reduce(function(w,k){let E=0,_=w.length;for(;E<_;++E){const S=w[E];if(n(k[0],S[1])<0&&n(k[1],S[0])>0){S[0]=a(S[0],k[0]),S[1]=l(S[1],k[1]);break}}return E===_&&w.push(k),w},[]),c.sort(f)}catch{return Zl(this,vf)}let p=0;const h=u?w=>o(w,c[p][1])>0:w=>o(w,c[p][1])>=0,v=s?w=>i(w,c[p][0])>0:w=>i(w,c[p][0])>=0;let b=h;const y=new this.Collection(this,()=>cp(c[0][0],c[c.length-1][1],!s,!u));return y._ondirectionchange=w=>{w==="next"?(b=h,d=o):(b=v,d=i),c.sort(f)},y._addAlgorithm((w,k,E)=>{for(var _=w.key;b(_);)if(++p,p===c.length)return k(E),!1;return!!function(S){return!h(S)&&!v(S)}(_)||(this._cmp(_,c[p][1])===0||this._cmp(_,c[p][0])===0||k(()=>{d===o?w.continue(c[p][0]):w.continue(c[p][1])}),!1)}),y}startsWithAnyOf(){const t=hf.apply(Q1,arguments);return t.every(r=>typeof r=="string")?t.length===0?nx(this):this.inAnyRange(t.map(r=>[r,r+Xg])):Zl(this,"startsWithAnyOf() only works with strings")}}function Qc(e){return Mn(function(t){return Wk(t),e(t.target.error),!1})}function Wk(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}const Vk="storagemutated",dp="x-storagemutated-1",fp=zk(null,Vk);class SZt{_lock(){return Rk(!Rt.global),++this._reculock,this._reculock!==1||Rt.global||(Rt.lockOwnerFor=this),this}_unlock(){if(Rk(!Rt.global),--this._reculock==0)for(Rt.global||(Rt.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var t=this._blockedFuncs.shift();try{tx(t[1],t[0])}catch{}}return this}_locked(){return this._reculock&&Rt.lockOwnerFor!==this}create(t){if(!this.mode)return this;const r=this.db.idbdb,n=this.db._state.dbOpenError;if(Rk(!this.idbtrans),!t&&!r)switch(n&&n.name){case"DatabaseClosedError":throw new Ut.DatabaseClosed(n);case"MissingAPIError":throw new Ut.MissingAPI(n.message,n);default:throw new Ut.OpenFailed(n)}if(!this.active)throw new Ut.TransactionInactive;return Rk(this._completion._state===null),(t=this.idbtrans=t||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):r.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=Mn(o=>{Wk(o),this._reject(t.error)}),t.onabort=Mn(o=>{Wk(o),this.active&&this._reject(new Ut.Abort(t.error)),this.active=!1,this.on("abort").fire(o)}),t.oncomplete=Mn(()=>{this.active=!1,this._resolve(),"mutatedParts"in t&&fp.storagemutated.fire(t.mutatedParts)}),this}_promise(t,r,n){if(t==="readwrite"&&this.mode!=="readwrite")return oi(new Ut.ReadOnly("Transaction is readonly"));if(!this.active)return oi(new Ut.TransactionInactive);if(this._locked())return new gt((i,a)=>{this._blockedFuncs.push([()=>{this._promise(t,r,n).then(i,a)},Rt])});if(n)return sp(()=>{var i=new gt((a,l)=>{this._lock();const s=r(a,l,this);s&&s.then&&s.then(a,l)});return i.finally(()=>this._unlock()),i._lib=!0,i});var o=new gt((i,a)=>{var l=r(i,a,this);l&&l.then&&l.then(i,a)});return o._lib=!0,o}_root(){return this.parent?this.parent._root():this}waitFor(t){var r=this._root();const n=gt.resolve(t);if(r._waitingFor)r._waitingFor=r._waitingFor.then(()=>n);else{r._waitingFor=n,r._waitingQueue=[];var o=r.idbtrans.objectStore(r.storeNames[0]);(function a(){for(++r._spinCount;r._waitingQueue.length;)r._waitingQueue.shift()();r._waitingFor&&(o.get(-1/0).onsuccess=a)})()}var i=r._waitingFor;return new gt((a,l)=>{n.then(s=>r._waitingQueue.push(Mn(a.bind(null,s))),s=>r._waitingQueue.push(Mn(l.bind(null,s)))).finally(()=>{r._waitingFor===i&&(r._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Ut.Abort))}table(t){const r=this._memoizedTables||(this._memoizedTables={});if(Ql(r,t))return r[t];const n=this.schema[t];if(!n)throw new Ut.NotFound("Table "+t+" not part of transaction");const o=new this.db.Table(t,n,this);return o.core=this.db.core.table(t),r[t]=o,o}}function dF(e,t,r,n,o,i,a){return{name:e,keyPath:t,unique:r,multi:n,auto:o,compound:i,src:(r&&!a?"&":"")+(n?"*":"")+(o?"++":"")+r6e(t)}}function r6e(e){return typeof e=="string"?e:e?"["+[].join.call(e,"+")+"]":""}function n6e(e,t,r){return{name:e,primKey:t,indexes:r,mappedClass:null,idxByName:TEe(r,n=>[n.name,n])}}let Uk=e=>{try{return e.only([[]]),Uk=()=>[[]],[[]]}catch{return Uk=()=>Xg,Xg}};function fF(e){return e==null?()=>{}:typeof e=="string"?function(t){return t.split(".").length===1?n=>n[t]:n=>pf(n,t)}(e):t=>pf(t,e)}function o6e(e){return[].slice.call(e)}let EZt=0;function qk(e){return e==null?":id":typeof e=="string"?e:`[${e.join("+")}]`}function AZt(e,t,r){function n(s){if(s.type===3)return null;if(s.type===4)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:u,upper:c,lowerOpen:d,upperOpen:f}=s;return u===void 0?c===void 0?null:t.upperBound(c,!!f):c===void 0?t.lowerBound(u,!!d):t.bound(u,c,!!d,!!f)}const{schema:o,hasGetAll:i}=function(s,u){const c=o6e(s.objectStoreNames);return{schema:{name:s.name,tables:c.map(d=>u.objectStore(d)).map(d=>{const{keyPath:f,autoIncrement:p}=d,h=Zi(f),v=f==null,b={},y={name:d.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:v,compound:h,keyPath:f,autoIncrement:p,unique:!0,extractKey:fF(f)},indexes:o6e(d.indexNames).map(w=>d.index(w)).map(w=>{const{name:k,unique:E,multiEntry:_,keyPath:S}=w,A={name:k,compound:Zi(S),keyPath:S,unique:E,multiEntry:_,extractKey:fF(S)};return b[qk(S)]=A,A}),getIndexByKeyPath:w=>b[qk(w)]};return b[":id"]=y.primaryKey,f!=null&&(b[qk(f)]=y.primaryKey),y})},hasGetAll:c.length>0&&"getAll"in u.objectStore(c[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,r),a=o.tables.map(s=>function(u){const c=u.name;return{name:c,schema:u,mutate:function({trans:d,type:f,keys:p,values:h,range:v}){return new Promise((b,y)=>{b=Mn(b);const w=d.objectStore(c),k=w.keyPath==null,E=f==="put"||f==="add";if(!E&&f!=="delete"&&f!=="deleteRange")throw new Error("Invalid operation type: "+f);const{length:_}=p||h||{length:1};if(p&&h&&p.length!==h.length)throw new Error("Given keys array must have same length as given values array.");if(_===0)return b({numFailures:0,failures:{},results:[],lastResult:void 0});let S;const A=[],O=[];let I=0;const L=H=>{++I,Wk(H)};if(f==="deleteRange"){if(v.type===4)return b({numFailures:I,failures:O,results:[],lastResult:void 0});v.type===3?A.push(S=w.clear()):A.push(S=w.delete(n(v)))}else{const[H,j]=E?k?[h,p]:[h,null]:[p,null];if(E)for(let W=0;W<_;++W)A.push(S=j&&j[W]!==void 0?w[f](H[W],j[W]):w[f](H[W])),S.onerror=L;else for(let W=0;W<_;++W)A.push(S=w[f](H[W])),S.onerror=L}const P=H=>{const j=H.target.result;A.forEach((W,B)=>W.error!=null&&(O[B]=W.error)),b({numFailures:I,failures:O,results:f==="delete"?p:A.map(W=>W.result),lastResult:j})};S.onerror=H=>{L(H),P(H)},S.onsuccess=P})},getMany:({trans:d,keys:f})=>new Promise((p,h)=>{p=Mn(p);const v=d.objectStore(c),b=f.length,y=new Array(b);let w,k=0,E=0;const _=A=>{const O=A.target;y[O._pos]=O.result,++E===k&&p(y)},S=Qc(h);for(let A=0;A<b;++A)f[A]!=null&&(w=v.get(f[A]),w._pos=A,w.onsuccess=_,w.onerror=S,++k);k===0&&p(y)}),get:({trans:d,key:f})=>new Promise((p,h)=>{p=Mn(p);const v=d.objectStore(c).get(f);v.onsuccess=b=>p(b.target.result),v.onerror=Qc(h)}),query:function(d){return f=>new Promise((p,h)=>{p=Mn(p);const{trans:v,values:b,limit:y,query:w}=f,k=y===1/0?void 0:y,{index:E,range:_}=w,S=v.objectStore(c),A=E.isPrimaryKey?S:S.index(E.name),O=n(_);if(y===0)return p({result:[]});if(d){const I=b?A.getAll(O,k):A.getAllKeys(O,k);I.onsuccess=L=>p({result:L.target.result}),I.onerror=Qc(h)}else{let I=0;const L=b||!("openKeyCursor"in A)?A.openCursor(O):A.openKeyCursor(O),P=[];L.onsuccess=H=>{const j=L.result;return j?(P.push(b?j.value:j.primaryKey),++I===y?p({result:P}):void j.continue()):p({result:P})},L.onerror=Qc(h)}})}(i),openCursor:function({trans:d,values:f,query:p,reverse:h,unique:v}){return new Promise((b,y)=>{b=Mn(b);const{index:w,range:k}=p,E=d.objectStore(c),_=w.isPrimaryKey?E:E.index(w.name),S=h?v?"prevunique":"prev":v?"nextunique":"next",A=f||!("openKeyCursor"in _)?_.openCursor(n(k),S):_.openKeyCursor(n(k),S);A.onerror=Qc(y),A.onsuccess=Mn(O=>{const I=A.result;if(!I)return void b(null);I.___id=++EZt,I.done=!1;const L=I.continue.bind(I);let P=I.continuePrimaryKey;P&&(P=P.bind(I));const H=I.advance.bind(I),j=()=>{throw new Error("Cursor not stopped")};I.trans=d,I.stop=I.continue=I.continuePrimaryKey=I.advance=()=>{throw new Error("Cursor not started")},I.fail=Mn(y),I.next=function(){let W=1;return this.start(()=>W--?this.continue():this.stop()).then(()=>this)},I.start=W=>{const B=new Promise((z,F)=>{z=Mn(z),A.onerror=Qc(F),I.fail=F,I.stop=V=>{I.stop=I.continue=I.continuePrimaryKey=I.advance=j,z(V)}}),G=()=>{if(A.result)try{W()}catch(z){I.fail(z)}else I.done=!0,I.start=()=>{throw new Error("Cursor behind last entry")},I.stop()};return A.onsuccess=Mn(z=>{A.onsuccess=G,G()}),I.continue=L,I.continuePrimaryKey=P,I.advance=H,G(),B},b(I)},y)})},count({query:d,trans:f}){const{index:p,range:h}=d;return new Promise((v,b)=>{const y=f.objectStore(c),w=p.isPrimaryKey?y:y.index(p.name),k=n(h),E=k?w.count(k):w.count();E.onsuccess=Mn(_=>v(_.target.result)),E.onerror=Qc(b)})}}}(s)),l={};return a.forEach(s=>l[s.name]=s),{stack:"dbcore",transaction:e.transaction.bind(e),table(s){if(!l[s])throw new Error(`Table '${s}' not found`);return l[s]},MIN_KEY:-1/0,MAX_KEY:Uk(t),schema:o}}function mF({_novip:e},t){const r=t.db,n=function(o,i,{IDBKeyRange:a,indexedDB:l},s){return{dbcore:function(c,d){return d.reduce((f,{create:p})=>({...f,...p(f)}),c)}(AZt(i,a,s),o.dbcore)}}(e._middlewares,r,e._deps,t);e.core=n.dbcore,e.tables.forEach(o=>{const i=o.name;e.core.schema.tables.some(a=>a.name===i)&&(o.core=e.core.table(i),e[i]instanceof e.Table&&(e[i].core=o.core))})}function vO({_novip:e},t,r,n){r.forEach(o=>{const i=n[o];t.forEach(a=>{const l=Dz(a,o);(!l||"value"in l&&l.value===void 0)&&(a===e.Transaction.prototype||a instanceof e.Transaction?mf(a,o,{get(){return this.table(o)},set(s){CEe(this,o,{value:s,writable:!0,configurable:!0,enumerable:!0})}}):a[o]=new e.Table(o,i))})})}function pF({_novip:e},t){t.forEach(r=>{for(let n in r)r[n]instanceof e.Table&&delete r[n]})}function OZt(e,t){return e._cfg.version-t._cfg.version}function IZt(e,t,r,n){const o=e._dbSchema,i=e._createTransaction("readwrite",e._storeNames,o);i.create(r),i._completion.catch(n);const a=i._reject.bind(i),l=Rt.transless||Rt;sp(()=>{Rt.trans=i,Rt.transless=l,t===0?(Mo(o).forEach(s=>{hF(r,s,o[s].primKey,o[s].indexes)}),mF(e,r),gt.follow(()=>e.on.populate.fire(i)).catch(a)):function({_novip:s},u,c,d){const f=[],p=s._versions;let h=s._dbSchema=vF(s,s.idbdb,d),v=!1;const b=p.filter(w=>w._cfg.version>=u);function y(){return f.length?gt.resolve(f.shift()(c.idbtrans)).then(y):gt.resolve()}return b.forEach(w=>{f.push(()=>{const k=h,E=w._cfg.dbschema;bF(s,k,d),bF(s,E,d),h=s._dbSchema=E;const _=i6e(k,E);_.add.forEach(A=>{hF(d,A[0],A[1].primKey,A[1].indexes)}),_.change.forEach(A=>{if(A.recreate)throw new Ut.Upgrade("Not yet support for changing primary key");{const O=d.objectStore(A.name);A.add.forEach(I=>gF(O,I)),A.change.forEach(I=>{O.deleteIndex(I.name),gF(O,I)}),A.del.forEach(I=>O.deleteIndex(I))}});const S=w._cfg.contentUpgrade;if(S&&w._cfg.version>u){mF(s,d),c._memoizedTables={},v=!0;let A=SEe(E);_.del.forEach(P=>{A[P]=k[P]}),pF(s,[s.Transaction.prototype]),vO(s,[s.Transaction.prototype],Mo(A),A),c.schema=A;const O=zz(S);let I;O&&ex();const L=gt.follow(()=>{if(I=S(c),I&&O){var P=gf.bind(null,null);I.then(P,P)}});return I&&typeof I.then=="function"?gt.resolve(I):L.then(()=>I)}}),f.push(k=>{(!v||!xZt)&&function(E,_){[].slice.call(_.db.objectStoreNames).forEach(S=>E[S]==null&&_.db.deleteObjectStore(S))}(w._cfg.dbschema,k),pF(s,[s.Transaction.prototype]),vO(s,[s.Transaction.prototype],s._storeNames,s._dbSchema),c.schema=s._dbSchema})}),y().then(()=>{var w,k;k=d,Mo(w=h).forEach(E=>{k.db.objectStoreNames.contains(E)||hF(k,E,w[E].primKey,w[E].indexes)})})}(e,t,i,r).catch(a)})}function i6e(e,t){const r={del:[],add:[],change:[]};let n;for(n in e)t[n]||r.del.push(n);for(n in t){const o=e[n],i=t[n];if(o){const a={name:n,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(o.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||o.primKey.auto!==i.primKey.auto&&!dO)a.recreate=!0,r.change.push(a);else{const l=o.idxByName,s=i.idxByName;let u;for(u in l)s[u]||a.del.push(u);for(u in s){const c=l[u],d=s[u];c?c.src!==d.src&&a.change.push(d):a.add.push(d)}(a.del.length>0||a.add.length>0||a.change.length>0)&&r.change.push(a)}}else r.add.push([n,i])}return r}function hF(e,t,r,n){const o=e.db.createObjectStore(t,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return n.forEach(i=>gF(o,i)),o}function gF(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function vF(e,t,r){const n={};return Q5(t.objectStoreNames,0).forEach(o=>{const i=r.objectStore(o);let a=i.keyPath;const l=dF(r6e(a),a||"",!1,!1,!!i.autoIncrement,a&&typeof a!="string",!0),s=[];for(let c=0;c<i.indexNames.length;++c){const d=i.index(i.indexNames[c]);a=d.keyPath;var u=dF(d.name,a,!!d.unique,!!d.multiEntry,!1,a&&typeof a!="string",!1);s.push(u)}n[o]=n6e(o,l,s)}),n}function bF({_novip:e},t,r){const n=r.db.objectStoreNames;for(let o=0;o<n.length;++o){const i=n[o],a=r.objectStore(i);e._hasGetAll="getAll"in a;for(let l=0;l<a.indexNames.length;++l){const s=a.indexNames[l],u=a.index(s).keyPath,c=typeof u=="string"?u:"["+Q5(u).join("+")+"]";if(t[i]){const d=t[i].idxByName[c];d&&(d.name=s,delete t[i].idxByName[c],t[i].idxByName[s]=d)}}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&Rn.WorkerGlobalScope&&Rn instanceof Rn.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}class RZt{_parseStoresSpec(t,r){Mo(t).forEach(n=>{if(t[n]!==null){var o=t[n].split(",").map((a,l)=>{const s=(a=a.trim()).replace(/([&*]|\+\+)/g,""),u=/^\[/.test(s)?s.match(/^\[(.*)\]$/)[1].split("+"):s;return dF(s,u||null,/\&/.test(a),/\*/.test(a),/\+\+/.test(a),Zi(u),l===0)}),i=o.shift();if(i.multi)throw new Ut.Schema("Primary key cannot be multi-valued");o.forEach(a=>{if(a.auto)throw new Ut.Schema("Only primary key can be marked as autoIncrement (++)");if(!a.keyPath)throw new Ut.Schema("Index must have a name and cannot be an empty string")}),r[n]=n6e(n,i,o)}})}stores(t){const r=this.db;this._cfg.storesSource=this._cfg.storesSource?Ea(this._cfg.storesSource,t):t;const n=r._versions,o={};let i={};return n.forEach(a=>{Ea(o,a._cfg.storesSource),i=a._cfg.dbschema={},a._parseStoresSpec(o,i)}),r._dbSchema=i,pF(r,[r._allTables,r,r.Transaction.prototype]),vO(r,[r._allTables,r,r.Transaction.prototype,this._cfg.tables],Mo(i),i),r._storeNames=Mo(i),this}upgrade(t){return this._cfg.contentUpgrade=Uz(this._cfg.contentUpgrade||pn,t),this}}function xF(e,t){let r=e._dbNamesDB;return r||(r=e._dbNamesDB=new mp(fO,{addons:[],indexedDB:e,IDBKeyRange:t}),r.version(1).stores({dbnames:"name"})),r.table("dbnames")}function yF(e){return e&&typeof e.databases=="function"}function wF(e){return sp(function(){return Rt.letThrough=!0,e()})}function PZt(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(t){var r=function(){return indexedDB.databases().finally(t)};e=setInterval(r,100),r()}).finally(function(){return clearInterval(e)}):Promise.resolve()}function LZt(e){const t=e._state,{indexedDB:r}=e._deps;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then(()=>t.dbOpenError?oi(t.dbOpenError):e);Xc&&(t.openCanceller._stackHolder=qg()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;const n=t.openCanceller;function o(){if(t.openCanceller!==n)throw new Ut.DatabaseClosed("db.open() was cancelled")}let i=t.dbReadyResolve,a=null,l=!1;return gt.race([n,(typeof navigator>"u"?gt.resolve():PZt()).then(()=>new gt((s,u)=>{if(o(),!r)throw new Ut.MissingAPI;const c=e.name,d=t.autoSchema?r.open(c):r.open(c,Math.round(10*e.verno));if(!d)throw new Ut.MissingAPI;d.onerror=Qc(u),d.onblocked=Mn(e._fireOnBlocked),d.onupgradeneeded=Mn(f=>{if(a=d.transaction,t.autoSchema&&!e._options.allowEmptyDB){d.onerror=Wk,a.abort(),d.result.close();const h=r.deleteDatabase(c);h.onsuccess=h.onerror=Mn(()=>{u(new Ut.NoSuchDatabase(`Database ${c} doesnt exist`))})}else{a.onerror=Qc(u);var p=f.oldVersion>Math.pow(2,62)?0:f.oldVersion;l=p<1,e._novip.idbdb=d.result,IZt(e,p/10,a,u)}},u),d.onsuccess=Mn(()=>{a=null;const f=e._novip.idbdb=d.result,p=Q5(f.objectStoreNames);if(p.length>0)try{const v=f.transaction((h=p).length===1?h[0]:h,"readonly");t.autoSchema?function({_novip:b},y,w){b.verno=y.version/10;const k=b._dbSchema=vF(0,y,w);b._storeNames=Q5(y.objectStoreNames,0),vO(b,[b._allTables],Mo(k),k)}(e,f,v):(bF(e,e._dbSchema,v),function(b,y){const w=i6e(vF(0,b.idbdb,y),b._dbSchema);return!(w.add.length||w.change.some(k=>k.add.length||k.change.length))}(e,v)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),mF(e,v)}catch{}var h;Mk.push(e),f.onversionchange=Mn(v=>{t.vcFired=!0,e.on("versionchange").fire(v)}),f.onclose=Mn(v=>{e.on("close").fire(v)}),l&&function({indexedDB:v,IDBKeyRange:b},y){!yF(v)&&y!==fO&&xF(v,b).put({name:y}).catch(pn)}(e._deps,c),s()},u)}))]).then(()=>(o(),t.onReadyBeingFired=[],gt.resolve(wF(()=>e.on.ready.fire(e.vip))).then(function s(){if(t.onReadyBeingFired.length>0){let u=t.onReadyBeingFired.reduce(Uz,pn);return t.onReadyBeingFired=[],gt.resolve(wF(()=>u(e.vip))).then(s)}}))).finally(()=>{t.onReadyBeingFired=null,t.isBeingOpened=!1}).then(()=>e).catch(s=>{t.dbOpenError=s;try{a&&a.abort()}catch{}return n===t.openCanceller&&e._close(),oi(s)}).finally(()=>{t.openComplete=!0,i()})}function CF(e){var t=i=>e.next(i),r=o(t),n=o(i=>e.throw(i));function o(i){return a=>{var l=i(a),s=l.value;return l.done?s:s&&typeof s.then=="function"?s.then(r,n):Zi(s)?Promise.all(s).then(r,n):r(s)}}return o(t)()}function HZt(e,t,r){var n=arguments.length;if(n<2)throw new Ut.InvalidArgument("Too few arguments");for(var o=new Array(n-1);--n;)o[n-1]=arguments[n];return r=o.pop(),[e,EEe(o),r]}function a6e(e,t,r,n,o){return gt.resolve().then(()=>{const i=Rt.transless||Rt,a=e._createTransaction(t,r,e._dbSchema,n),l={trans:a,transless:i};if(n)a.idbtrans=n.idbtrans;else try{a.create(),e._state.PR1398_maxLoop=3}catch(d){return d.name===Vz.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(()=>a6e(e,t,r,null,o))):oi(d)}const s=zz(o);let u;s&&ex();const c=gt.follow(()=>{if(u=o.call(a,a),u)if(s){var d=gf.bind(null,null);u.then(d,d)}else typeof u.next=="function"&&typeof u.throw=="function"&&(u=CF(u))},l);return(u&&typeof u.then=="function"?gt.resolve(u).then(d=>a.active?d:oi(new Ut.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):c.then(()=>u)).then(d=>(n&&a._resolve(),a._completion.then(()=>d))).catch(d=>(a._reject(d),oi(d)))})}function bO(e,t,r){const n=Zi(e)?e.slice():[e];for(let o=0;o<r;++o)n.push(t);return n}const NZt={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return{...e,table(t){const r=e.table(t),{schema:n}=r,o={},i=[];function a(c,d,f){const p=qk(c),h=o[p]=o[p]||[],v=c==null?0:typeof c=="string"?1:c.length,b=d>0,y={...f,isVirtual:b,keyTail:d,keyLength:v,extractKey:fF(c),unique:!b&&f.unique};return h.push(y),y.isPrimaryKey||i.push(y),v>1&&a(v===2?c[0]:c.slice(0,v-1),d+1,f),h.sort((w,k)=>w.keyTail-k.keyTail),y}const l=a(n.primaryKey.keyPath,0,n.primaryKey);o[":id"]=[l];for(const c of n.indexes)a(c.keyPath,0,c);function s(c){const d=c.query.index;return d.isVirtual?{...c,query:{index:d,range:(f=c.query.range,p=d.keyTail,{type:f.type===1?2:f.type,lower:bO(f.lower,f.lowerOpen?e.MAX_KEY:e.MIN_KEY,p),lowerOpen:!0,upper:bO(f.upper,f.upperOpen?e.MIN_KEY:e.MAX_KEY,p),upperOpen:!0})}}:c;var f,p}return{...r,schema:{...n,primaryKey:l,indexes:i,getIndexByKeyPath:function(c){const d=o[qk(c)];return d&&d[0]}},count:c=>r.count(s(c)),query:c=>r.query(s(c)),openCursor(c){const{keyTail:d,isVirtual:f,keyLength:p}=c.query.index;return f?r.openCursor(s(c)).then(h=>h&&function(v){return Object.create(v,{continue:{value:function(y){y!=null?v.continue(bO(y,c.reverse?e.MAX_KEY:e.MIN_KEY,d)):c.unique?v.continue(v.key.slice(0,p).concat(c.reverse?e.MIN_KEY:e.MAX_KEY,d)):v.continue()}},continuePrimaryKey:{value(y,w){v.continuePrimaryKey(bO(y,e.MAX_KEY,d),w)}},primaryKey:{get:()=>v.primaryKey},key:{get(){const y=v.key;return p===1?y[0]:y.slice(0,p)}},value:{get:()=>v.value}})}(h)):r.openCursor(c)}}}}}};function kF(e,t,r,n){return r=r||{},n=n||"",Mo(e).forEach(o=>{if(Ql(t,o)){var i=e[o],a=t[o];if(typeof i=="object"&&typeof a=="object"&&i&&a){const l=jz(i);l!==jz(a)?r[n+o]=t[o]:l==="Object"?kF(i,a,r,n+o+"."):i!==a&&(r[n+o]=t[o])}else i!==a&&(r[n+o]=t[o])}else r[n+o]=void 0}),Mo(t).forEach(o=>{Ql(e,o)||(r[n+o]=t[o])}),r}const $Zt={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){const r=e.table(t),{primaryKey:n}=r.schema;return{...r,mutate(i){const a=Rt.trans,{deleting:l,creating:s,updating:u}=a.table(t).hook;switch(i.type){case"add":if(s.fire===pn)break;return a._promise("readwrite",()=>c(i),!0);case"put":if(s.fire===pn&&u.fire===pn)break;return a._promise("readwrite",()=>c(i),!0);case"delete":if(l.fire===pn)break;return a._promise("readwrite",()=>c(i),!0);case"deleteRange":if(l.fire===pn)break;return a._promise("readwrite",()=>function(f){return d(f.trans,f.range,1e4)}(i),!0)}return r.mutate(i);function c(f){const p=Rt.trans,h=f.keys||function(v,b){return b.type==="delete"?b.keys:b.keys||b.values.map(v.extractKey)}(n,f);if(!h)throw new Error("Keys missing");return(f=f.type==="add"||f.type==="put"?{...f,keys:h}:{...f}).type!=="delete"&&(f.values=[...f.values]),f.keys&&(f.keys=[...f.keys]),function(v,b,y){return b.type==="add"?Promise.resolve([]):v.getMany({trans:b.trans,keys:y,cache:"immutable"})}(r,f,h).then(v=>{const b=h.map((y,w)=>{const k=v[w],E={onerror:null,onsuccess:null};if(f.type==="delete")l.fire.call(E,y,k,p);else if(f.type==="add"||k===void 0){const _=s.fire.call(E,y,f.values[w],p);y==null&&_!=null&&(y=_,f.keys[w]=y,n.outbound||Ku(f.values[w],n.keyPath,y))}else{const _=kF(k,f.values[w]),S=u.fire.call(E,_,y,k,p);if(S){const A=f.values[w];Object.keys(S).forEach(O=>{Ql(A,O)?A[O]=S[O]:Ku(A,O,S[O])})}}return E});return r.mutate(f).then(({failures:y,results:w,numFailures:k,lastResult:E})=>{for(let _=0;_<h.length;++_){const S=w?w[_]:h[_],A=b[_];S==null?A.onerror&&A.onerror(y[_]):A.onsuccess&&A.onsuccess(f.type==="put"&&v[_]?f.values[_]:S)}return{failures:y,results:w,numFailures:k,lastResult:E}}).catch(y=>(b.forEach(w=>w.onerror&&w.onerror(y)),Promise.reject(y)))})}function d(f,p,h){return r.query({trans:f,values:!1,query:{index:n,range:p},limit:h}).then(({result:v})=>c({type:"delete",keys:v,trans:f}).then(b=>b.numFailures>0?Promise.reject(b.failures[0]):v.length<h?{failures:[],numFailures:0,lastResult:void 0}:d(f,{...p,lower:v[v.length-1],lowerOpen:!0},h)))}}}}})};function l6e(e,t,r){try{if(!t||t.keys.length<e.length)return null;const n=[];for(let o=0,i=0;o<t.keys.length&&i<e.length;++o)Aa(t.keys[o],e[i])===0&&(n.push(r?Pk(t.values[o]):t.values[o]),++i);return n.length===e.length?n:null}catch{return null}}const DZt={stack:"dbcore",level:-1,create:e=>({table:t=>{const r=e.table(t);return{...r,getMany:n=>{if(!n.cache)return r.getMany(n);const o=l6e(n.keys,n.trans._cache,n.cache==="clone");return o?gt.resolve(o):r.getMany(n).then(i=>(n.trans._cache={keys:n.keys,values:n.cache==="clone"?Pk(i):i},i))},mutate:n=>(n.type!=="add"&&(n.trans._cache=null),r.mutate(n))}}})};function _F(e){return!("from"in e)}const bf=function(e,t){if(!this){const r=new bf;return e&&"d"in e&&Ea(r,e),r}Ea(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function Gk(e,t,r){const n=Aa(t,r);if(isNaN(n))return;if(n>0)throw RangeError();if(_F(e))return Ea(e,{from:t,to:r,d:1});const o=e.l,i=e.r;if(Aa(r,e.from)<0)return o?Gk(o,t,r):e.l={from:t,to:r,d:1,l:null,r:null},s6e(e);if(Aa(t,e.to)>0)return i?Gk(i,t,r):e.r={from:t,to:r,d:1,l:null,r:null},s6e(e);Aa(t,e.from)<0&&(e.from=t,e.l=null,e.d=i?i.d+1:1),Aa(r,e.to)>0&&(e.to=r,e.r=null,e.d=e.l?e.l.d+1:1);const a=!e.r;o&&!e.l&&xO(e,o),i&&a&&xO(e,i)}function xO(e,t){_F(t)||function r(n,{from:o,to:i,l:a,r:l}){Gk(n,o,i),a&&r(n,a),l&&r(n,l)}(e,t)}function BZt(e,t){const r=TF(t);let n=r.next();if(n.done)return!1;let o=n.value;const i=TF(e);let a=i.next(o.from),l=a.value;for(;!n.done&&!a.done;){if(Aa(l.from,o.to)<=0&&Aa(l.to,o.from)>=0)return!0;Aa(o.from,l.from)<0?o=(n=r.next(l.from)).value:l=(a=i.next(o.from)).value}return!1}function TF(e){let t=_F(e)?null:{s:0,n:e};return{next(r){const n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&Aa(r,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||Aa(r,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function s6e(e){var t,r;const n=(((t=e.r)===null||t===void 0?void 0:t.d)||0)-(((r=e.l)===null||r===void 0?void 0:r.d)||0),o=n>1?"r":n<-1?"l":"";if(o){const i=o==="r"?"l":"r",a={...e},l=e[o];e.from=l.from,e.to=l.to,e[o]=l[o],a[o]=l[i],e[i]=a,a.d=u6e(a)}e.d=u6e(e)}function u6e({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}K1(bf.prototype,{add(e){return xO(this,e),this},addKey(e){return Gk(this,e,e),this},addKeys(e){return e.forEach(t=>Gk(this,t,t)),this},[Mz](){return TF(this)}});const jZt={stack:"dbcore",level:0,create:e=>{const t=e.schema.name,r=new bf(e.MIN_KEY,e.MAX_KEY);return{...e,table:n=>{const o=e.table(n),{schema:i}=o,{primaryKey:a}=i,{extractKey:l,outbound:s}=a,u={...o,mutate:f=>{const p=f.trans,h=p.mutatedParts||(p.mutatedParts={}),v=S=>{const A=`idb://${t}/${n}/${S}`;return h[A]||(h[A]=new bf)},b=v(""),y=v(":dels"),{type:w}=f;let[k,E]=f.type==="deleteRange"?[f.range]:f.type==="delete"?[f.keys]:f.values.length<50?[[],f.values]:[];const _=f.trans._cache;return o.mutate(f).then(S=>{if(Zi(k)){w!=="delete"&&(k=S.results),b.addKeys(k);const A=l6e(k,_);A||w==="add"||y.addKeys(k),(A||E)&&function(O,I,L,P){function H(j){const W=O(j.name||"");function B(z){return z!=null?j.extractKey(z):null}const G=z=>j.multiEntry&&Zi(z)?z.forEach(F=>W.addKey(F)):W.addKey(z);(L||P).forEach((z,F)=>{const V=L&&B(L[F]),N=P&&B(P[F]);Aa(V,N)!==0&&(V!=null&&G(V),N!=null&&G(N))})}I.indexes.forEach(H)}(v,i,A,E)}else if(k){const A={from:k.lower,to:k.upper};y.add(A),b.add(A)}else b.add(r),y.add(r),i.indexes.forEach(A=>v(A.name).add(r));return S})}},c=({query:{index:f,range:p}})=>{var h,v;return[f,new bf((h=p.lower)!==null&&h!==void 0?h:e.MIN_KEY,(v=p.upper)!==null&&v!==void 0?v:e.MAX_KEY)]},d={get:f=>[a,new bf(f.key)],getMany:f=>[a,new bf().addKeys(f.keys)],count:c,query:c,openCursor:c};return Mo(d).forEach(f=>{u[f]=function(p){const{subscr:h}=Rt;if(h){const v=E=>{const _=`idb://${t}/${n}/${E}`;return h[_]||(h[_]=new bf)},b=v(""),y=v(":dels"),[w,k]=d[f](p);if(v(w.name||"").add(k),!w.isPrimaryKey){if(f!=="count"){const E=f==="query"&&s&&p.values&&o.query({...p,values:!1});return o[f].apply(this,arguments).then(_=>{if(f==="query"){if(s&&p.values)return E.then(({result:A})=>(b.addKeys(A),_));const S=p.values?_.result.map(l):_.result;p.values?b.addKeys(S):y.addKeys(S)}else if(f==="openCursor"){const S=_,A=p.values;return S&&Object.create(S,{key:{get:()=>(y.addKey(S.primaryKey),S.key)},primaryKey:{get(){const O=S.primaryKey;return y.addKey(O),O}},value:{get:()=>(A&&b.addKey(S.primaryKey),S.value)}})}return _})}y.add(r)}}return o[f].apply(this,arguments)}}),u}}}};class mp{constructor(t,r){this._middlewares={},this.verno=0;const n=mp.dependencies;this._options=r={addons:mp.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange,...r},this._deps={indexedDB:r.indexedDB,IDBKeyRange:r.IDBKeyRange};const{addons:o}=r;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const i={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:pn,dbReadyPromise:null,cancelOpen:pn,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var a;i.dbReadyPromise=new gt(l=>{i.dbReadyResolve=l}),i.openCanceller=new gt((l,s)=>{i.cancelOpen=s}),this._state=i,this.name=t,this.on=zk(this,"populate","blocked","versionchange","close",{ready:[Uz,pn]}),this.on.ready.subscribe=kEe(this.on.ready.subscribe,l=>(s,u)=>{mp.vip(()=>{const c=this._state;if(c.openComplete)c.dbOpenError||gt.resolve().then(s),u&&l(s);else if(c.onReadyBeingFired)c.onReadyBeingFired.push(s),u&&l(s);else{l(s);const d=this;u||l(function f(){d.on.ready.unsubscribe(s),d.on.ready.unsubscribe(f)})}})}),this.Collection=(a=this,Fk(CZt.prototype,function(l,s){this.db=a;let u=KEe,c=null;if(s)try{u=s()}catch(h){c=h}const d=l._ctx,f=d.table,p=f.hook.reading.fire;this._ctx={table:f,index:d.index,isPrimKey:!d.index||f.schema.primKey.keyPath&&d.index===f.schema.primKey.name,range:u,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:c,or:d.or,valueMapper:p!==Hk?p:null}})),this.Table=function(l){return Fk(wZt.prototype,function(s,u,c){this.db=l,this._tx=c,this.name=s,this.schema=u,this.hook=l._allTables[s]?l._allTables[s].hook:zk(null,{creating:[uZt,pn],reading:[sZt,Hk],updating:[dZt,pn],deleting:[cZt,pn]})})}(this),this.Transaction=function(l){return Fk(SZt.prototype,function(s,u,c,d,f){this.db=l,this.mode=s,this.storeNames=u,this.schema=c,this.chromeTransactionDurability=d,this.idbtrans=null,this.on=zk(this,"complete","error","abort"),this.parent=f||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new gt((p,h)=>{this._resolve=p,this._reject=h}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},p=>{var h=this.active;return this.active=!1,this.on.error.fire(p),this.parent?this.parent._reject(p):h&&this.idbtrans&&this.idbtrans.abort(),oi(p)})})}(this),this.Version=function(l){return Fk(RZt.prototype,function(s){this.db=l,this._cfg={version:s,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}(this),this.WhereClause=function(l){return Fk(t6e.prototype,function(s,u,c){this.db=l,this._ctx={table:s,index:u===":id"?null:u,or:c};const d=l._deps.indexedDB;if(!d)throw new Ut.MissingAPI;this._cmp=this._ascending=d.cmp.bind(d),this._descending=(f,p)=>d.cmp(p,f),this._max=(f,p)=>d.cmp(f,p)>0?f:p,this._min=(f,p)=>d.cmp(f,p)<0?f:p,this._IDBKeyRange=l._deps.IDBKeyRange})}(this),this.on("versionchange",l=>{l.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()}),this.on("blocked",l=>{!l.newVersion||l.newVersion<l.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${l.oldVersion/10}`)}),this._maxKey=Uk(r.IDBKeyRange),this._createTransaction=(l,s,u,c)=>new this.Transaction(l,s,u,this._options.chromeTransactionDurability,c),this._fireOnBlocked=l=>{this.on("blocked").fire(l),Mk.filter(s=>s.name===this.name&&s!==this&&!s._state.vcFired).map(s=>s.on("versionchange").fire(l))},this.use(NZt),this.use($Zt),this.use(jZt),this.use(DZt),this.vip=Object.create(this,{_vip:{value:!0}}),o.forEach(l=>l(this))}version(t){if(isNaN(t)||t<.1)throw new Ut.Type("Given version is not a positive number");if(t=Math.round(10*t)/10,this.idbdb||this._state.isBeingOpened)throw new Ut.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,t);const r=this._versions;var n=r.filter(o=>o._cfg.version===t)[0];return n||(n=new this.Version(t),r.push(n),r.sort(OZt),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(t){return this.idbdb&&(this._state.openComplete||Rt.letThrough||this._vip)?t():new gt((r,n)=>{if(this._state.openComplete)return n(new Ut.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void n(new Ut.DatabaseClosed);this.open().catch(pn)}this._state.dbReadyPromise.then(r,n)}).then(t)}use({stack:t,create:r,level:n,name:o}){o&&this.unuse({stack:t,name:o});const i=this._middlewares[t]||(this._middlewares[t]=[]);return i.push({stack:t,create:r,level:n??10,name:o}),i.sort((a,l)=>a.level-l.level),this}unuse({stack:t,name:r,create:n}){return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter(o=>n?o.create!==n:!!r&&o.name!==r)),this}open(){return LZt(this)}_close(){const t=this._state,r=Mk.indexOf(this);if(r>=0&&Mk.splice(r,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}t.dbReadyPromise=new gt(n=>{t.dbReadyResolve=n}),t.openCanceller=new gt((n,o)=>{t.cancelOpen=o})}close(){this._close();const t=this._state;this._options.autoOpen=!1,t.dbOpenError=new Ut.DatabaseClosed,t.isBeingOpened&&t.cancelOpen(t.dbOpenError)}delete(){const t=arguments.length>0,r=this._state;return new gt((n,o)=>{const i=()=>{this.close();var a=this._deps.indexedDB.deleteDatabase(this.name);a.onsuccess=Mn(()=>{(function({indexedDB:l,IDBKeyRange:s},u){!yF(l)&&u!==fO&&xF(l,s).delete(u).catch(pn)})(this._deps,this.name),n()}),a.onerror=Qc(o),a.onblocked=this._fireOnBlocked};if(t)throw new Ut.InvalidArgument("Arguments not allowed in db.delete()");r.isBeingOpened?r.dbReadyPromise.then(i):i()})}backendDB(){return this.idbdb}isOpen(){return this.idbdb!==null}hasBeenClosed(){const t=this._state.dbOpenError;return t&&t.name==="DatabaseClosed"}hasFailed(){return this._state.dbOpenError!==null}dynamicallyOpened(){return this._state.autoSchema}get tables(){return Mo(this._allTables).map(t=>this._allTables[t])}transaction(){const t=HZt.apply(this,arguments);return this._transaction.apply(this,t)}_transaction(t,r,n){let o=Rt.trans;o&&o.db===this&&t.indexOf("!")===-1||(o=null);const i=t.indexOf("?")!==-1;let a,l;t=t.replace("!","").replace("?","");try{if(l=r.map(u=>{var c=u instanceof this.Table?u.name:u;if(typeof c!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return c}),t=="r"||t===aF)a=aF;else{if(t!="rw"&&t!=lF)throw new Ut.InvalidArgument("Invalid transaction mode: "+t);a=lF}if(o){if(o.mode===aF&&a===lF){if(!i)throw new Ut.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");o=null}o&&l.forEach(u=>{if(o&&o.storeNames.indexOf(u)===-1){if(!i)throw new Ut.SubTransaction("Table "+u+" not included in parent transaction.");o=null}}),i&&o&&!o.active&&(o=null)}}catch(u){return o?o._promise(null,(c,d)=>{d(u)}):oi(u)}const s=a6e.bind(null,this,a,l,o,n);return o?o._promise(a,s,"lock"):Rt.trans?tx(Rt.transless,()=>this._whenReady(s)):this._whenReady(s)}table(t){if(!Ql(this._allTables,t))throw new Ut.InvalidTable(`Table ${t} does not exist`);return this._allTables[t]}}const MZt=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable";class zZt{constructor(t){this._subscribe=t}subscribe(t,r,n){return this._subscribe(t&&typeof t!="function"?t:{next:t,error:r,complete:n})}[MZt](){return this}}function c6e(e,t){return Mo(t).forEach(r=>{xO(e[r]||(e[r]=new bf),t[r])}),e}function FZt(e){let t,r=!1;const n=new zZt(o=>{const i=zz(e);let a=!1,l={},s={};const u={get closed(){return a},unsubscribe:()=>{a=!0,fp.storagemutated.unsubscribe(p)}};o.start&&o.start(u);let c=!1,d=!1;function f(){return Mo(s).some(v=>l[v]&&BZt(l[v],s[v]))}const p=v=>{c6e(l,v),f()&&h()},h=()=>{if(c||a)return;l={};const v={},b=function(y){i&&ex();const w=()=>sp(e,{subscr:y,trans:null}),k=Rt.trans?tx(Rt.transless,w):w();return i&&k.then(gf,gf),k}(v);d||(fp(Vk,p),d=!0),c=!0,Promise.resolve(b).then(y=>{r=!0,t=y,c=!1,a||(f()?h():(l={},s=v,o.next&&o.next(y)))},y=>{c=!1,r=!1,o.error&&o.error(y),u.unsubscribe()})};return h(),u});return n.hasValue=()=>r,n.getValue=()=>t,n}let SF;try{SF={indexedDB:Rn.indexedDB||Rn.mozIndexedDB||Rn.webkitIndexedDB||Rn.msIndexedDB,IDBKeyRange:Rn.IDBKeyRange||Rn.webkitIDBKeyRange}}catch{SF={indexedDB:null,IDBKeyRange:null}}const Zg=mp;function yO(e){let t=xf;try{xf=!0,fp.storagemutated.fire(e)}finally{xf=t}}K1(Zg,{...J5,delete:e=>new Zg(e,{addons:[]}).delete(),exists:e=>new Zg(e,{addons:[]}).open().then(t=>(t.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(e){try{return function({indexedDB:t,IDBKeyRange:r}){return yF(t)?Promise.resolve(t.databases()).then(n=>n.map(o=>o.name).filter(o=>o!==fO)):xF(t,r).toCollection().primaryKeys()}(Zg.dependencies).then(e)}catch{return oi(new Ut.MissingAPI)}},defineClass:()=>function(e){Ea(this,e)},ignoreTransaction:e=>Rt.trans?tx(Rt.transless,e):e(),vip:wF,async:function(e){return function(){try{var t=CF(e.apply(this,arguments));return t&&typeof t.then=="function"?t:gt.resolve(t)}catch(r){return oi(r)}}},spawn:function(e,t,r){try{var n=CF(e.apply(r,t||[]));return n&&typeof n.then=="function"?n:gt.resolve(n)}catch(o){return oi(o)}},currentTransaction:{get:()=>Rt.trans||null},waitFor:function(e,t){const r=gt.resolve(typeof e=="function"?Zg.ignoreTransaction(e):e).timeout(t||6e4);return Rt.trans?Rt.trans.waitFor(r):r},Promise:gt,debug:{get:()=>Xc,set:e=>{OEe(e,e==="dexie"?()=>!0:YEe)}},derive:X1,extend:Ea,props:K1,override:kEe,Events:zk,on:fp,liveQuery:FZt,extendObservabilitySet:c6e,getByKeyPath:pf,setByKeyPath:Ku,delByKeyPath:function(e,t){typeof t=="string"?Ku(e,t,void 0):"length"in t&&[].map.call(t,function(r){Ku(e,r,void 0)})},shallowClone:SEe,deepClone:Pk,getObjectDiff:kF,cmp:Aa,asap:_Ee,minKey:iF,addons:[],connections:Mk,errnames:Vz,dependencies:SF,semVer:qEe,version:qEe.split(".").map(e=>parseInt(e)).reduce((e,t,r)=>e+t/Math.pow(10,2*r))}),Zg.maxKey=Uk(Zg.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(fp(Vk,e=>{if(!xf){let t;dO?(t=document.createEvent("CustomEvent"),t.initCustomEvent(dp,!0,!0,e)):t=new CustomEvent(dp,{detail:e}),xf=!0,dispatchEvent(t),xf=!1}}),addEventListener(dp,({detail:e})=>{xf||yO(e)}));let xf=!1;if(typeof BroadcastChannel<"u"){const e=new BroadcastChannel(dp);typeof e.unref=="function"&&e.unref(),fp(Vk,t=>{xf||e.postMessage(t)}),e.onmessage=t=>{t.data&&yO(t.data)}}else if(typeof self<"u"&&typeof navigator<"u"){fp(Vk,t=>{try{xf||(typeof localStorage<"u"&&localStorage.setItem(dp,JSON.stringify({trig:Math.random(),changedParts:t})),typeof self.clients=="object"&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(r=>r.postMessage({type:dp,changedParts:t})))}catch{}}),typeof addEventListener<"u"&&addEventListener("storage",t=>{if(t.key===dp){const r=JSON.parse(t.newValue);r&&yO(r.changedParts)}});const e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",function({data:t}){t&&t.type===dp&&yO(t.changedParts)})}gt.rejectionMapper=function(e,t){if(!e||e instanceof Z1||e instanceof TypeError||e instanceof SyntaxError||!e.name||!LEe[e.name])return e;var r=new LEe[e.name](t||e.message,e);return"stack"in e&&mf(r,"stack",{get:function(){return this.inner.stack}}),r},OEe(Xc,YEe);class to{constructor(t){this.list=[];for(const r of t)this.list.push(r)}get length(){return this.list.length}toArray(){return this.list.slice(0)}at(t){if(t<0||t>this.list.length-1)throw new Error(`Index (${t}) is out of range [0..${Math.max(this.list.length-1,0)}]`);return this.list[t]}all(){return new to(this.list)}async single(t){const r=await this.where(t);if(r.length===0)throw new Error("No items found with the specified predicate");if(r.length>1)throw new Error("Multiple items found with the specified predicate");return r.at(0)}async singleOrDefault(t,r){const n=await this.where(t);if(n.length===0)return r;if(n.length>1)throw new Error("Multiple items found with the specified predicate");return n.at(0)}async where(t){return new to(await this.whereAsArray(t))}async whereAsArray(t){const r=await Promise.all(this.list.map(t??(async()=>!0)));return this.list.filter((n,o)=>r[o])}async orderBy(...t){return new to(await bP(this.list,...t))}async orderByAsArray(...t){return await bP(this.list,...t)}async groupBy(t){return new to(await this.groupByAsArray(t))}async groupByAsArray(t){const r=new Map;for(const o of this.list){const i=await t(o),a=r.get(i);a===void 0?r.set(i,[o]):a.push(o)}const n=[];for(const[o,i]of r.entries())n.push({key:o,items:i});return n}async distinct(t){t??(t=async n=>n);const r=new Set;for(const n of this.list)r.add(await t(n));return new to(r.values())}async distinctAsArray(t){return(await this.distinct(t)).toArray()}async maxValue(t="id",r){let n=r?(await new to(this.list).where(r)).toArray():this.list;return n=await bP(n,o=>o[t],!0),n.length===0?void 0:n[0][t]}async skip(t){return new to(this.list.slice(t))}async take(t){return new to(this.list.slice(0,t))}async skipTake(t,r){return new to(this.list.slice(t,r+t))}}class WZt{constructor(t,r={},n){this.tables=t,this.initialData=r,this.config=n,this.db=null,this.getItems=o=>this.getDb().table(o).toArray(),this.findItems=async(o,i)=>{const a=await this.getItems(o),l=await Promise.all(a.map(i));return a.filter((s,u)=>l[u])},this.getItem=async(o,i)=>{const a=await this.getItems(o),l=await Promise.all(a.map(i));return a.find((s,u)=>l[u])},this.getItemById=async(o,i)=>await this.getItem(o,async a=>a.id+""==i+""),this.deleteItems=async(o,i)=>{},this.insertItem=async(o,i)=>{const a=await this.getDb().table(o).add(i);return this.getItemById(o,a)},this.updateItem=async(o,i)=>(await this.getDb().table(o).update(i.id,i),await this.getItemById(o,i.id))}getDb(){if(this.db===null)throw new Error("Db is not initialized yet");return this.db}async initialize(){var a,l,s;const t=typeof this.initialData=="function"?await this.initialData():this.initialData,r={},n=new Set;this.tables?this.tables.forEach(u=>{const c=[];u.pk.length===1?c.push(u.pk[0]):c.push(`[${u.pk.join("+")}]`),u.indexes&&c.push(...u.indexes),r[u.name]=c.join(", "),n.add(u.name)}):Object.entries(t).forEach(([u])=>{r[u]="++id",n.add(u)});const o=((a=this.config)==null?void 0:a.version)!==void 0&&typeof((l=this.config)==null?void 0:l.version)=="number"?(s=this.config)==null?void 0:s.version:1,i=await this.dropDbOnVersionChange(o);this.db=this.createDbInstance(),this.db.version(o).stores(r),i&&await Promise.all(Object.entries(t).map(async([u,c])=>{try{await this.getDb().table(u).bulkAdd(c)}catch(d){console.error(d)}})),n.forEach(u=>{this[`$${u}`]=VZt(this.getDb().table(u))})}createDbInstance(){var t;return new mp(((t=this.config)==null?void 0:t.database)??"defaultIndexDb")}async dropDbOnVersionChange(t){const r=this.createDbInstance();return await mp.exists(r.name)?(await r.open(),r.verno!==t?(await r.delete(),!0):(r.close(),!1)):!0}async transaction(t){if(!this.db)return;const r=this.db.tables;await this.db.transaction("rw",r,t)}}async function VZt(e){const t=()=>e.db.table(e.name),r=async n=>{const o=await e.toArray(),i=await Promise.all(o.map(n??(async()=>!0)));return o.filter((a,l)=>i[l])};return{native:t,insert:async n=>{const o=await e.add(n);return t().get(o)},update:async n=>(await e.update(n.id,n),t().get(n.id)),save:async n=>{const o=await e.put(n);return e.get(o)},deleteById:async n=>{await e.delete(n)},byId:async n=>{if(n==null)return null;let o=n;return e.schema.primKey.src==="++id"&&(o=Number(n)),e.get(o)},toArray:async()=>await e.toArray(),single:async n=>await new to(await e.toArray()).single(n),singleOrDefault:async(n,o)=>await new to(await e.toArray()).singleOrDefault(n,o),where:async n=>new to(await r(n)),whereAsArray:async n=>await r(n),orderBy:async(...n)=>await new to(await e.toArray()).orderBy(...n),orderByAsArray:async(...n)=>await new to(await e.toArray()).orderByAsArray(...n),groupBy:async n=>await new to(await e.toArray()).groupBy(n),groupByAsArray:async n=>await new to(await e.toArray()).groupByAsArray(n),distinct:async n=>await new to(await e.toArray()).distinct(n),distinctAsArray:async n=>await new to(await e.toArray()).distinctAsArray(n),maxValue:async(n="id",o)=>await new to(await e.toArray()).maxValue(n,o),skip:async n=>await new to(await e.toArray()).skip(n),take:async n=>await new to(await e.toArray()).take(n),skipTake:async(n,o)=>await new to(await e.toArray()).skipTake(n,o)}}function d6e(e,t){if(!t)return e;const r={...e};return Object.keys(e).forEach(n=>{if(!(n in t))return;const o=e[n],i=typeof o;switch(t[n]){case"integer":switch(i){case"number":r[n]=Math.round(o);break;case"string":r[n]=parseInt(o,10);break;case"boolean":r[n]=o?1:0;break}break;case"float":case"real":case"double":switch(i){case"number":r[n]=o;break;case"string":r[n]=parseFloat(o);break;case"boolean":r[n]=o?1:0;break}break;case"boolean":switch(i){case"string":switch(o.toLowerCase()){case"true":case"yes":case"on":r[n]=!0;break;case"false":case"no":case"off":r[n]=!1;break}break;case"number":r[n]=!!o;break}break}}),r}class UZt{constructor(t,r={},n){this.tables=t,this.initialData=r,this.config=n}getItems(t){throw new Error("Method not implemented.")}getItem(t,r){throw new Error("Method not implemented.")}getItemById(t,r){throw new Error("Method not implemented.")}deleteItems(t,r){throw new Error("Method not implemented.")}insertItem(t,r){throw new Error("Method not implemented.")}updateItem(t,r){throw new Error("Method not implemented.")}async initialize(){}}function qZt(...e){const t={};for(const r of e){if(!Hn(r))throw new TypeError("All arguments must be of type object");const n=new Headers(r);for(const[o,i]of n.entries())i===void 0||i==="undefined"?delete t[o]:t[o]=i}return new Headers(t)}class GZt{constructor(t){const r=JSON.parse(sessionStorage.getItem("session-logged-in-user"));this.loggedInUser=r||(t==null?void 0:t.defaultLoggedInUser)}login(t){this.loggedInUser=t,sessionStorage.setItem("session-logged-in-user",JSON.stringify(t))}logout(){this.loggedInUser=null,sessionStorage.removeItem("session-logged-in-user")}getCookieToken(){return sessionStorage.getItem("session-anonymous-token")}setCookieToken(t){sessionStorage.setItem("session-anonymous-token",t)}getLoggedInUser(){return this.loggedInUser}}async function YZt(e){var t,r;switch(e.type){case"in-memory":return new UZt((t=e.schemaDescriptor)==null?void 0:t.tables,e.initialData,e.config);default:const n=new WZt((r=e.schemaDescriptor)==null?void 0:r.tables,e.initialData,e.config);return await n.initialize(),n}}class KZt{constructor(t){this.apiDef=t,this.backend=null}async initialize(){const t={};Object.entries(this.apiDef.operations||{}).forEach(([i,a])=>{t[i]=a.handler});const r=await YZt(this.apiDef),n=new GZt(this.apiDef.auth),o={operations:t,initialize:this.apiDef.initialize,helpers:this.apiDef.helpers};this.backend=new XQt(o,r,n)}getOperations(){return this.apiDef.operations||{}}getApiUrl(){return this.apiDef.apiUrl||""}async executeOperation(t,r,n,o){var c;if(this.backend===null)throw new Error("Interceptor not initialized");const i=(c=this.apiDef.operations)==null?void 0:c[t];if(!i)throw new Error(`Unknown API interceptor operation: ${t}`);let a;try{if(i.requestShape==="formData"){const d=await r.formData(),f={};for(const p of d.keys()){const h=d.getAll(p);h.length===1?f[p]=h[0]:f[p]=h}a=f}else i.requestShape==="blob"?a=await r.blob():a=await r.json()}catch{}const l=this.convertRequestParams({pathParams:o,queryParams:Object.fromEntries(new URL(r.url).searchParams),requestBody:a,cookies:n,requestHeaders:Object.fromEntries(r.headers.entries())||{}},i);this.apiDef.artificialDelay===void 0?await wEe("real"):this.apiDef.artificialDelay!==0&&await wEe(this.apiDef.artificialDelay);const s=new YQt,u=new KQt;try{const d=await this.backend.executeOperation(t,l,s,u),f=d==null,p=i.successStatusCode??(f?K5.NoContent:K5.Ok),h=qZt(s.getCookieHeader(),u.getHeaders());return d instanceof File?(h.append("Content-type",d.type),h.append("Content-Length",d.size+""),h.append("Content-Disposition",`attachment; filename="${d.name}"; filename*=utf-8''${d.name}`),Ys.arrayBuffer(await d.arrayBuffer(),{headers:h,status:p})):f?new Ys(null,{headers:h,status:p}):Ys.json(d,{headers:h,status:p})}catch(d){return console.error(d),d instanceof ac&&d.errorObject instanceof Ug?Ys.json(d.errorObject.details,{headers:s.getCookieHeader(),status:d.errorObject.status}):Ys.json({message:d==null?void 0:d.message},{headers:s.getCookieHeader(),status:K5.InternalServerError})}}convertRequestParams(t,r){return{...t,pathParams:d6e(t.pathParams,r.pathParamTypes),queryParams:d6e(t.queryParams,r.queryParamTypes)}}hasMockForRequest(t,r){return this.getMockForRequest(t,r)!==void 0}getMockForRequest(t,r){return Object.entries(this.getOperations()).find(([n,o])=>!!(Oz(new URL(t,window.location.href),`${this.getApiUrl()}${o.url}`,`${window.location.href}`).matches&&(r.method||"get").toLowerCase()===o.method.toLowerCase()))}async executeMockedFetch(t,r){const n=this.getMockForRequest(t,r);if(!n)throw new Error(`No mock found for request: ${t} with options: ${JSON.stringify(r)}`);const[o,i]=n,a=Oz(new URL(t,window.location.href),`${this.getApiUrl()}${i.url}`,`${window.location.href}`);return this.executeOperation(o,new Request(t,r),XZt(),a.params)}}function XZt(){const e=document.cookie;return e===""?{}:e.split("; ").reduce((n,o)=>{const[i,a]=o.split("=");return n[decodeURIComponent(i)]=decodeURIComponent(a),n},{})}const EF=Object.freeze(Object.defineProperty({__proto__:null,initMock:async e=>{const t=new KZt(e);return await t.initialize(),t}},Symbol.toStringTag,{value:"Module"}));function QZt(e){return{status:e.status,statusText:e.statusText,headers:Object.fromEntries(e.headers.entries())}}function AF(e){return t=>t!=null&&typeof t=="object"&&"__kind"in t&&t.__kind===e}function f6e(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function m6e(e,t){return Object.entries(t).reduce((r,[n,o])=>{const i=r[n];return Array.isArray(i)&&Array.isArray(o)?(r[n]=i.concat(o),r):f6e(i)&&f6e(o)?(r[n]=m6e(i,o),r):(r[n]=o,r)},Object.assign({},e))}function ZZt(e){const t=Object.getOwnPropertyDescriptor(globalThis,e);return typeof t>"u"||typeof t.get=="function"&&typeof t.get()>"u"||typeof t.get>"u"&&t.value==null?!1:typeof t.set>"u"&&!t.configurable?(console.error(`[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`),!1):!0}function ea(e,t){return Object.defineProperties(t,{target:{value:e,enumerable:!0,writable:!0},currentTarget:{value:e,enumerable:!0,writable:!0}}),t}var ox=Symbol("kCancelable"),Zc=Symbol("kDefaultPrevented"),OF=class extends MessageEvent{constructor(e,t){super(e,t),this[ox]=!!t.cancelable,this[Zc]=!1}get cancelable(){return this[ox]}set cancelable(e){this[ox]=e}get defaultPrevented(){return this[Zc]}set defaultPrevented(e){this[Zc]=e}preventDefault(){this.cancelable&&!this[Zc]&&(this[Zc]=!0)}},wO=class extends Event{constructor(e,t={}){super(e,t),this.code=t.code===void 0?0:t.code,this.reason=t.reason===void 0?"":t.reason,this.wasClean=t.wasClean===void 0?!1:t.wasClean}},p6e=class extends wO{constructor(e,t={}){super(e,t),this[ox]=!!t.cancelable,this[Zc]=!1}get cancelable(){return this[ox]}set cancelable(e){this[ox]=e}get defaultPrevented(){return this[Zc]}set defaultPrevented(e){this[Zc]=e}preventDefault(){this.cancelable&&!this[Zc]&&(this[Zc]=!0)}},Yk=Symbol("kEmitter"),CO=Symbol("kBoundListener"),JZt=class{constructor(e,t){this.socket=e,this.transport=t,this.id=AXt(),this.url=new URL(e.url),this[Yk]=new EventTarget,this.transport.addEventListener("outgoing",r=>{const n=ea(this.socket,new OF("message",{data:r.data,origin:r.origin,cancelable:!0}));this[Yk].dispatchEvent(n),n.defaultPrevented&&r.preventDefault()}),this.transport.addEventListener("close",r=>{this[Yk].dispatchEvent(ea(this.socket,new wO("close",r)))})}addEventListener(e,t,r){if(!Reflect.has(t,CO)){const n=t.bind(this.socket);Object.defineProperty(t,CO,{value:n,enumerable:!1,configurable:!1})}this[Yk].addEventListener(e,Reflect.get(t,CO),r)}removeEventListener(e,t,r){this[Yk].removeEventListener(e,Reflect.get(t,CO),r)}send(e){this.transport.send(e)}close(e,t){this.transport.close(e,t)}},h6e="InvalidAccessError: close code out of user configurable range",kO=Symbol("kPassthroughPromise"),g6e=Symbol("kOnSend"),Kk=Symbol("kClose"),Xk=class extends EventTarget{constructor(e,t){super(),this.CONNECTING=0,this.OPEN=1,this.CLOSING=2,this.CLOSED=3,this._onopen=null,this._onmessage=null,this._onerror=null,this._onclose=null,this.url=e.toString(),this.protocol="",this.extensions="",this.binaryType="blob",this.readyState=this.CONNECTING,this.bufferedAmount=0,this[kO]=new $Qt,queueMicrotask(async()=>{await this[kO]||(this.protocol=typeof t=="string"?t:Array.isArray(t)&&t.length>0?t[0]:"",this.readyState===this.CONNECTING&&(this.readyState=this.OPEN,this.dispatchEvent(ea(this,new Event("open")))))})}set onopen(e){this.removeEventListener("open",this._onopen),this._onopen=e,e!==null&&this.addEventListener("open",e)}get onopen(){return this._onopen}set onmessage(e){this.removeEventListener("message",this._onmessage),this._onmessage=e,e!==null&&this.addEventListener("message",e)}get onmessage(){return this._onmessage}set onerror(e){this.removeEventListener("error",this._onerror),this._onerror=e,e!==null&&this.addEventListener("error",e)}get onerror(){return this._onerror}set onclose(e){this.removeEventListener("close",this._onclose),this._onclose=e,e!==null&&this.addEventListener("close",e)}get onclose(){return this._onclose}send(e){if(this.readyState===this.CONNECTING)throw this.close(),new DOMException("InvalidStateError");this.readyState===this.CLOSING||this.readyState===this.CLOSED||(this.bufferedAmount+=eJt(e),queueMicrotask(()=>{var t;this.bufferedAmount=0,(t=this[g6e])==null||t.call(this,e)}))}close(e=1e3,t){Yu(e,h6e),Yu(e===1e3||e>=3e3&&e<=4999,h6e),this[Kk](e,t)}[Kk](e=1e3,t,r=!0){this.readyState===this.CLOSING||this.readyState===this.CLOSED||(this.readyState=this.CLOSING,queueMicrotask(()=>{this.readyState=this.CLOSED,this.dispatchEvent(ea(this,new wO("close",{code:e,reason:t,wasClean:r}))),this._onopen=null,this._onmessage=null,this._onerror=null,this._onclose=null}))}addEventListener(e,t,r){return super.addEventListener(e,t,r)}removeEventListener(e,t,r){return super.removeEventListener(e,t,r)}};Xk.CONNECTING=0,Xk.OPEN=1,Xk.CLOSING=2,Xk.CLOSED=3;function eJt(e){return typeof e=="string"?e.length:e instanceof Blob?e.size:e.byteLength}var pp=Symbol("kEmitter"),_O=Symbol("kBoundListener"),IF=Symbol("kSend"),tJt=class{constructor(e,t,r){this.client=e,this.transport=t,this.createConnection=r,this[pp]=new EventTarget,this.mockCloseController=new AbortController,this.realCloseController=new AbortController,this.transport.addEventListener("outgoing",n=>{typeof this.realWebSocket>"u"||queueMicrotask(()=>{n.defaultPrevented||this[IF](n.data)})}),this.transport.addEventListener("incoming",this.handleIncomingMessage.bind(this))}get socket(){return Yu(this.realWebSocket,'Cannot access "socket" on the original WebSocket server object: the connection is not open. Did you forget to call `server.connect()`?'),this.realWebSocket}connect(){Yu(!this.realWebSocket||this.realWebSocket.readyState!==WebSocket.OPEN,'Failed to call "connect()" on the original WebSocket instance: the connection already open');const e=this.createConnection();e.binaryType=this.client.binaryType,e.addEventListener("open",t=>{this[pp].dispatchEvent(ea(this.realWebSocket,new Event("open",t)))},{once:!0}),e.addEventListener("message",t=>{this.transport.dispatchEvent(ea(this.realWebSocket,new MessageEvent("incoming",{data:t.data,origin:t.origin})))}),this.client.addEventListener("close",t=>{this.handleMockClose(t)},{signal:this.mockCloseController.signal}),e.addEventListener("close",t=>{this.handleRealClose(t)},{signal:this.realCloseController.signal}),e.addEventListener("error",()=>{const t=ea(e,new Event("error",{cancelable:!0}));this[pp].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(ea(this.client,new Event("error")))}),this.realWebSocket=e}addEventListener(e,t,r){if(!Reflect.has(t,_O)){const n=t.bind(this.client);Object.defineProperty(t,_O,{value:n,enumerable:!1})}this[pp].addEventListener(e,Reflect.get(t,_O),r)}removeEventListener(e,t,r){this[pp].removeEventListener(e,Reflect.get(t,_O),r)}send(e){this[IF](e)}[IF](e){const{realWebSocket:t}=this;if(Yu(t,'Failed to call "server.send()" for "%s": the connection is not open. Did you forget to call "server.connect()"?',this.client.url),!(t.readyState===WebSocket.CLOSING||t.readyState===WebSocket.CLOSED)){if(t.readyState===WebSocket.CONNECTING){t.addEventListener("open",()=>{t.send(e)},{once:!0});return}t.send(e)}}close(){const{realWebSocket:e}=this;Yu(e,'Failed to close server connection for "%s": the connection is not open. Did you forget to call "server.connect()"?',this.client.url),this.realCloseController.abort(),!(e.readyState===WebSocket.CLOSING||e.readyState===WebSocket.CLOSED)&&(e.close(),queueMicrotask(()=>{this[pp].dispatchEvent(ea(this.realWebSocket,new p6e("close",{code:1e3,cancelable:!0})))}))}handleIncomingMessage(e){const t=ea(e.target,new OF("message",{data:e.data,origin:e.origin,cancelable:!0}));this[pp].dispatchEvent(t),t.defaultPrevented||this.client.dispatchEvent(ea(this.client,new MessageEvent("message",{data:e.data,origin:e.origin})))}handleMockClose(e){this.realWebSocket&&this.realWebSocket.close()}handleRealClose(e){this.mockCloseController.abort();const t=ea(this.realWebSocket,new p6e("close",{code:e.code,reason:e.reason,wasClean:e.wasClean,cancelable:!0}));this[pp].dispatchEvent(t),t.defaultPrevented||this.client[Kk](e.code,e.reason)}},rJt=class extends EventTarget{constructor(e){super(),this.socket=e,this.socket.addEventListener("close",t=>{this.dispatchEvent(ea(this.socket,new wO("close",t)))}),this.socket[g6e]=t=>{this.dispatchEvent(ea(this.socket,new OF("outgoing",{data:t,origin:this.socket.url,cancelable:!0})))}}addEventListener(e,t,r){return super.addEventListener(e,t,r)}dispatchEvent(e){return super.dispatchEvent(e)}send(e){queueMicrotask(()=>{if(this.socket.readyState===this.socket.CLOSING||this.socket.readyState===this.socket.CLOSED)return;const t=()=>{this.socket.dispatchEvent(ea(this.socket,new MessageEvent("message",{data:e,origin:this.socket.url})))};this.socket.readyState===this.socket.CONNECTING?this.socket.addEventListener("open",()=>{t()},{once:!0}):t()})}close(e,t){this.socket[Kk](e,t)}},v6e=class extends EXt{constructor(){super(v6e.symbol)}checkEnvironment(){return ZZt("WebSocket")}setup(){const e=Object.getOwnPropertyDescriptor(globalThis,"WebSocket"),t=new Proxy(globalThis.WebSocket,{construct:(r,n,o)=>{const[i,a]=n,l=()=>Reflect.construct(r,n,o),s=new Xk(i,a),u=new rJt(s);return queueMicrotask(()=>{try{const c=new tJt(s,u,l);this.emitter.emit("connection",{client:new JZt(s,u),server:c,info:{protocols:a}})?s[kO].resolve(!1):(s[kO].resolve(!0),c.connect(),c.addEventListener("open",()=>{s.dispatchEvent(ea(s,new Event("open"))),c.realWebSocket&&(s.protocol=c.realWebSocket.protocol)}))}catch(c){c instanceof Error&&(s.dispatchEvent(new Event("error")),s.readyState!==WebSocket.CLOSING&&s.readyState!==WebSocket.CLOSED&&s[Kk](1011,c.message,!1),console.error(c))}}),s}});Object.defineProperty(globalThis,"WebSocket",{value:t,configurable:!0}),this.subscriptions.push(()=>{Object.defineProperty(globalThis,"WebSocket",e)})}},b6e=v6e;b6e.symbol=Symbol("websocket");const RF=new b6e;function nJt(e){RF.on("connection",async t=>{const r=e.getHandlers(),n=new MessageEvent("connection",{data:t}),o=[];for(const i of r)AF("EventHandler")(i)&&i.predicate({event:n,parsedResult:i.parse({event:n})})&&o.push(i);if(o.length>0){e==null||e.onMockedConnection(t);for(const i of o)i[HQt](n)}else{const i=new Request(t.client.url,{headers:{upgrade:"websocket",connection:"upgrade"}});await gEe(i,e.getUnhandledRequestStrategy()).catch(a=>{const l=new Event("error");Object.defineProperty(l,"cause",{enumerable:!0,configurable:!1,value:a}),t.client.socket.dispatchEvent(l)}),e==null||e.onPassthroughConnection(t),t.server.connect()}})}function TO(e){return e instanceof Blob?e.size:e instanceof ArrayBuffer?e.byteLength:new Blob([e]).size}const x6e=24;function PF(e){return e.length<=x6e?e:`${e.slice(0,x6e)}…`}async function SO(e){if(e instanceof Blob){const t=await e.text();return`Blob(${PF(t)})`}if(typeof e=="object"&&"byteLength"in e){const t=new TextDecoder().decode(e);return`ArrayBuffer(${PF(t)})`}return PF(e)}const Jg={system:"#3b82f6",outgoing:"#22c55e",incoming:"#ef4444",mocked:"#ff6a33"};function oJt(e){const{client:t,server:r}=e;iJt(t),t.addEventListener("message",n=>{sJt(n)}),t.addEventListener("close",n=>{aJt(n)}),t.socket.addEventListener("error",n=>{lJt(n)}),t.send=new Proxy(t.send,{apply(n,o,i){const[a]=i,l=new MessageEvent("message",{data:a});return Object.defineProperties(l,{currentTarget:{enumerable:!0,writable:!1,value:t.socket},target:{enumerable:!0,writable:!1,value:t.socket}}),queueMicrotask(()=>{cJt(l)}),Reflect.apply(n,o,i)}}),r.addEventListener("open",()=>{r.addEventListener("message",n=>{dJt(n)})},{once:!0}),r.send=new Proxy(r.send,{apply(n,o,i){const[a]=i,l=new MessageEvent("message",{data:a});return Object.defineProperties(l,{currentTarget:{enumerable:!0,writable:!1,value:r.socket},target:{enumerable:!0,writable:!1,value:r.socket}}),uJt(l),Reflect.apply(n,o,i)}})}function iJt(e){const t=Ek(e.url);console.groupCollapsed(qr.formatMessage(`${np()} %c▶%c ${t}`),`color:${Jg.system}`,"color:inherit"),console.log("Client:",e.socket),console.groupEnd()}function aJt(e){const t=e.target,r=Ek(t.url);console.groupCollapsed(qr.formatMessage(`${np({milliseconds:!0})} %c■%c ${r}`),`color:${Jg.system}`,"color:inherit"),console.log(e),console.groupEnd()}function lJt(e){const t=e.target,r=Ek(t.url);console.groupCollapsed(qr.formatMessage(`${np({milliseconds:!0})} %c×%c ${r}`),`color:${Jg.system}`,"color:inherit"),console.log(e),console.groupEnd()}async function sJt(e){const t=TO(e.data),r=await SO(e.data),n=e.defaultPrevented?"⇡":"⬆";console.groupCollapsed(qr.formatMessage(`${np({milliseconds:!0})} %c${n}%c ${r} %c${t}%c`),`color:${Jg.outgoing}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}async function uJt(e){const t=TO(e.data),r=await SO(e.data);console.groupCollapsed(qr.formatMessage(`${np({milliseconds:!0})} %c⬆%c ${r} %c${t}%c`),`color:${Jg.mocked}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}async function cJt(e){const t=TO(e.data),r=await SO(e.data);console.groupCollapsed(qr.formatMessage(`${np({milliseconds:!0})} %c⬇%c ${r} %c${t}%c`),`color:${Jg.mocked}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}async function dJt(e){const t=TO(e.data),r=await SO(e.data),n=e.defaultPrevented?"⇣":"⬇";console.groupCollapsed(qr.formatMessage(`${np({milliseconds:!0})} %c${n}%c ${r} %c${t}%c`),`color:${Jg.incoming}`,"color:inherit","color:gray;font-weight:normal","color:inherit;font-weight:inherit"),console.log(e),console.groupEnd()}var fJt={NODE_ENV:"production",VITE_MOCK_ENABLED:!0,VITE_MOCK_WORKER_LOCATION:"mockApi.js",VITE_USED_COMPONENTS_XmluiCodeHightlighter:"false",VITE_USED_COMPONENTS_Tree:"false",VITE_USED_COMPONENTS_TableEditor:"false",VITE_XMLUI_VERSION:"0.9.83 (built 7/22/2025)"},mJt=/(%?)(%([sdijo]))/g;function pJt(e,t){switch(t){case"s":return e;case"d":case"i":return Number(e);case"j":return JSON.stringify(e);case"o":{if(typeof e=="string")return e;const r=JSON.stringify(e);return r==="{}"||r==="[]"||/^\[object .+?\]$/.test(r)?e:r}}}function Qk(e,...t){if(t.length===0)return e;let r=0,n=e.replace(mJt,(o,i,a,l)=>{const s=t[r],u=pJt(s,l);return i?o:(r++,u)});return r<t.length&&(n+=` ${t.slice(r).join(" ")}`),n=n.replace(/%{2,2}/g,"%"),n}var hJt=2;function gJt(e){if(!e.stack)return;const t=e.stack.split(`
|
|
955
955
|
`);t.splice(1,hJt),e.stack=t.join(`
|
|
956
956
|
`)}var vJt=class extends Error{constructor(e,...t){super(e),this.message=e,this.name="Invariant Violation",this.message=Qk(e,...t),gJt(this)}},hp=(e,t,...r)=>{if(!e)throw new vJt(t,...r)};hp.as=(e,t,r,...n)=>{if(!t){const o=n.length===0?r:Qk(r,...n);let i;try{i=Reflect.construct(e,[o])}catch{i=e(o)}throw i}};function LF(){if(typeof navigator<"u"&&navigator.product==="ReactNative")return!0;if(typeof process<"u"){const e=process.type;return e==="renderer"||e==="worker"?!1:!!(process.versions&&process.versions.node)}return!1}var HF=async e=>{try{return{error:null,data:await e().catch(r=>{throw r})}}catch(t){return{error:t,data:null}}};function bJt(e){return new URL(e,location.href).href}function NF(e,t,r){return[e.active,e.installing,e.waiting].filter(a=>a!=null).find(a=>r(a.scriptURL,t))||null}var xJt=async(e,t={},r)=>{const n=bJt(e),o=await navigator.serviceWorker.getRegistrations().then(l=>l.filter(s=>NF(s,n,r)));!navigator.serviceWorker.controller&&o.length>0&&location.reload();const[i]=o;if(i)return i.update(),[NF(i,n,r),i];const a=await HF(async()=>{const l=await navigator.serviceWorker.register(e,t);return[NF(l,n,r),l]});if(a.error){if(a.error.message.includes("(404)")){const s=new URL((t==null?void 0:t.scope)||"/",location.href);throw new Error(qr.formatMessage(`Failed to register a Service Worker for scope ('${s.href}') with script ('${n}'): Service Worker script does not exist at the given path.
|
|
957
957
|
|