@hot-updater/console 1.0.0-rc.20 → 1.0.0-rc.21
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/.output/nitro.json +1 -1
- package/.output/public/assets/{ConsoleFeatureUnavailable-B9VYGA3N.js → ConsoleFeatureUnavailable-D0LPL1Gy.js} +1 -1
- package/.output/public/assets/{HashValueDisplay-D880zntR.js → HashValueDisplay-BmuB4FW-.js} +1 -1
- package/.output/public/assets/InsightsInfo--v4SC07c.js +1 -0
- package/.output/public/assets/InsightsPageHeader-dU83CAQY.js +1 -0
- package/.output/public/assets/{NotFoundPage-Dys8C0cW.js → NotFoundPage-B5mhGG2a.js} +1 -1
- package/.output/public/assets/api-D-vOVlQ4.js +1 -0
- package/.output/public/assets/api-keys-Csh8ARKU.js +1 -0
- package/.output/public/assets/api-keys-OMPUoA_A.js +1 -0
- package/.output/public/assets/arrow-left-Bwq9X1eS.js +1 -0
- package/.output/public/assets/arrow-up-right-BkOVn4if.js +1 -0
- package/.output/public/assets/{card-DzCPSRsh.js → card-C_7d6O9a.js} +1 -1
- package/.output/public/assets/console-features-api-C1jRZTGw.js +1 -0
- package/.output/public/assets/dialog-DE8wFN_P.js +1 -0
- package/.output/public/assets/{dist-Clb6cQ9l.js → dist-C7ENGzpS.js} +1 -1
- package/.output/public/assets/empty-CVd5NlQD.js +1 -0
- package/.output/public/assets/{field-Bou7shoO.js → field-C06q1iC9.js} +1 -1
- package/.output/public/assets/index-BeWlQtO6.js +11 -0
- package/.output/public/assets/{input-group-DVtWFUUF.js → input-group-Bi61biIA.js} +1 -1
- package/.output/public/assets/insights-BjnAtC0f.js +2 -0
- package/.output/public/assets/insights-D86m11yH.js +42 -0
- package/.output/public/assets/insights-DpYstMoY.js +1 -0
- package/.output/public/assets/{insights-recovery-rpc-wvdyM4LD.js → insights-recovery-rpc-BIm5_ALc.js} +1 -1
- package/.output/public/assets/{insights-usage-rpc-qUkNtrWr.js → insights-usage-rpc-VHj8vyBt.js} +1 -1
- package/.output/public/assets/insights_.distribution-ADcrX48c.js +2 -0
- package/.output/public/assets/insights_.distribution-CuuJUN6Y.js +1 -0
- package/.output/public/assets/{insights_.distribution-CItZw3-8.js → insights_.distribution-DJRjuXsO.js} +1 -1
- package/.output/public/assets/installations-BSBBzqWs.js +2 -0
- package/.output/public/assets/installations-DqIE6WcO.js +1 -0
- package/.output/public/assets/installations-UsELbDvw.js +1 -0
- package/.output/public/assets/{loader-circle-Ca7C9YY1.js → loader-circle-CnCBxzHp.js} +1 -1
- package/.output/public/assets/mutation-Csp7xUNh.js +1 -0
- package/.output/public/assets/preload-helper-B-cOmpLH.js +1 -0
- package/.output/public/assets/{refresh-cw-CVGqvy8Z.js → refresh-cw-FF1NtzlQ.js} +1 -1
- package/.output/public/assets/{routes-veKtDW39.js → routes-CoN9XHP_.js} +2 -2
- package/.output/public/assets/routes-DT1jB0Zi.js +1 -0
- package/.output/public/assets/sidebar-D8mJRF15.js +3 -0
- package/.output/public/assets/styles-Bwt7v6U5.css +2 -0
- package/.output/public/assets/table-WBgfvgXg.js +1 -0
- package/.output/public/assets/{useCompositeListItem-CF7vsfcA.js → useCompositeListItem-CloBmDwn.js} +1 -1
- package/.output/public/assets/useMutation-DO8cvsTx.js +1 -0
- package/.output/public/assets/{useOpenInteractionType-AnAMWYIY.js → useOpenInteractionType-ReGr9GzJ.js} +1 -1
- package/.output/public/assets/valueToPercent-BvPAi4bP.js +1 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-CUQLz7hs.mjs → __23tanstack-start-server-fn-resolver-DMRD4e4f.mjs} +34 -42
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +3756 -4022
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +138 -95
- package/.output/server/_libs/tanstack__history.mjs +68 -41
- package/.output/server/_libs/tanstack__query-core.mjs +1618 -309
- package/.output/server/_libs/tanstack__react-query.mjs +255 -20
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-DoxET2AT.mjs → ConsoleFeatureUnavailable-Du7jNPNS.mjs} +7 -7
- package/.output/server/_ssr/{HashValueDisplay-BplboHEb.mjs → HashValueDisplay-GQvFkXoi.mjs} +2 -2
- package/.output/server/_ssr/{InsightsInfo-o2YPd5Qc.mjs → InsightsInfo-Do7QSaFR.mjs} +2 -2
- package/.output/server/_ssr/{InsightsPageHeader-NExCJL1I.mjs → InsightsPageHeader-DSUWUWRc.mjs} +6 -6
- package/.output/server/_ssr/{NotFoundPage-Cd-A8ock.mjs → NotFoundPage-DsF4Vrhg.mjs} +2 -2
- package/.output/server/_ssr/{api-B1Ro0uys.mjs → api-BEiVs0H7.mjs} +9 -8
- package/.output/server/_ssr/{api-keys-Dvvy1sem.mjs → api-keys-BrvBWGRf.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-CT3HG7KT.mjs → api-keys-K5v32nf7.mjs} +8 -8
- package/.output/server/_ssr/{api-keys-rpc-b1qTTFfG.mjs → api-keys-rpc-B96bBllm.mjs} +5 -5
- package/.output/server/_ssr/{api-rpc-Cbns2MGx.mjs → api-rpc-DcUe280B.mjs} +13 -55
- package/.output/server/_ssr/{auth-rpc-DChS7m9y.mjs → auth-rpc-C68W56DP.mjs} +6 -6
- package/.output/server/_ssr/{api-C0G9MTMI.mjs → auth.server-DM1J6NwR.mjs} +2815 -1308
- package/.output/server/_ssr/{bundleActivity-D17Pb_h5.mjs → bundleActivity-CpuY9CTP.mjs} +1 -1
- package/.output/server/_ssr/{card-DMbcvlPz.mjs → card-CPAEKx0w.mjs} +1 -1
- package/.output/server/_ssr/config-nsIcsHh8.mjs +15 -0
- package/.output/server/_ssr/config.server-DDCZk3Sq.mjs +36 -0
- package/.output/server/_ssr/{console-access-KpPv5lin.mjs → console-access-Da-2Qd7q.mjs} +3 -3
- package/.output/server/_ssr/{console-features-CsbyHYfK.mjs → console-features-Dzu2iUGD.mjs} +6 -6
- package/.output/server/_ssr/{console-features-api-B-KVuo4p.mjs → console-features-api-xAsSgFa_.mjs} +6 -6
- package/.output/server/_ssr/{console-features-rpc-Djyo5740.mjs → console-features-rpc-qARGpB24.mjs} +5 -5
- package/.output/server/_ssr/{createMiddleware-B_I3Ll4M.mjs → createMiddleware-BdBf_ezN.mjs} +41 -56
- package/.output/server/_ssr/{createServerRpc-DuNm5mmo.mjs → createServerRpc-B_y2lrwA.mjs} +2 -2
- package/.output/server/_ssr/databaseJsonValue-Bhxciy7Z.mjs +68 -0
- package/.output/server/_ssr/databaseRows-DwMAjaF8.mjs +74 -0
- package/.output/server/_ssr/{dialog-cOmLTUV2.mjs → dialog-q__BJ7mQ.mjs} +1 -1
- package/.output/server/_ssr/{dist-B-r4u3Lg.mjs → dist-Cxo9ghYv.mjs} +114 -3
- package/.output/server/_ssr/{downloadBundle-CexOFoZ4.mjs → downloadBundle-BW9I-pMQ.mjs} +6 -5
- package/.output/server/_ssr/{empty-BHoY_5jt.mjs → empty-DcBTAooP.mjs} +2 -2
- package/.output/server/_ssr/{empty-plugin-adapters-B5QvGpEl.mjs → empty-plugin-adapters-CYdinE-i.mjs} +1 -1
- package/.output/server/_ssr/{field-mjhcNEXD.mjs → field-QCDBVpXA.mjs} +2 -2
- package/.output/server/_ssr/{getBundleChildren-DbDXe9wB.mjs → getBundleChildren-DIAGCF4a.mjs} +2 -2
- package/.output/server/_ssr/{input-group-96H30HWC.mjs → input-group-hCk2nUoU.mjs} +1 -1
- package/.output/server/_ssr/{insights-DgFv1NsO.mjs → insights-BfBO0RFr.mjs} +18 -18
- package/.output/server/_ssr/{insights-D359GJFL.mjs → insights-DsAU3-TB.mjs} +5 -5
- package/.output/server/_ssr/{insights-D25VDVaz.mjs → insights-RIfg447W.mjs} +2 -2
- package/.output/server/_ssr/{insights-api-ChAKrbhG.mjs → insights-api-CDn-QQHU.mjs} +5 -5
- package/.output/server/_ssr/{insights-failures-WQ-ttjOx.mjs → insights-failures-BBGMhuUr.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-BFsqlltN.mjs → insights-failures-rpc-rA2dctK2.mjs} +8 -8
- package/.output/server/_ssr/{insights-recovery-DkL6bxMW.mjs → insights-recovery-Dpk6Mfb9.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc-2P5m8F62.mjs → insights-recovery-rpc-BCaF-xSd.mjs} +11 -11
- package/.output/server/_ssr/{insights-recovery-rpc-Tj8vNC19.mjs → insights-recovery-rpc-CcgYyUHk.mjs} +5 -5
- package/.output/server/_ssr/{insights-rpc-DrkVmV9o.mjs → insights-rpc-keycmwzw.mjs} +5 -5
- package/.output/server/_ssr/{insights-search-BsalnNw-.mjs → insights-search-BRg5VsNe.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-1nVTQrLy.mjs → insights-usage-cbw9n2Fq.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-Ct_4xHhZ.mjs → insights-usage-rpc-BKgV1QDf.mjs} +8 -8
- package/.output/server/_ssr/{insights-usage-rpc-DaYIRtFK.mjs → insights-usage-rpc-D-JYachy.mjs} +5 -5
- package/.output/server/_ssr/{insightsRecovery-CpGucWN1.mjs → insightsRecovery-B7oMc8d8.mjs} +2 -2
- package/.output/server/_ssr/{insightsUsage-JYpKZAF7.mjs → insightsUsage-Oa7kk5ek.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-jQZEF07J.mjs → insights_.distribution-BIqOqRW0.mjs} +13 -13
- package/.output/server/_ssr/{insights_.distribution-Bcu6uYs_.mjs → insights_.distribution-CuUrDa7P.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-D3Csuyjw.mjs → insights_.distribution-RT_6x_ud.mjs} +5 -5
- package/.output/server/_ssr/{installations-Cxikllmx.mjs → installations-BO5CjX2z.mjs} +11 -11
- package/.output/server/_ssr/{installations-BI5kelHv.mjs → installations-BjaHiIfh.mjs} +2 -2
- package/.output/server/_ssr/{installations-B8Vh54lH.mjs → installations-Dt5luA-N.mjs} +4 -4
- package/.output/server/_ssr/{listReleases-DqU9t1l3.mjs → listReleases-BitHzOYB.mjs} +1 -1
- package/.output/server/_ssr/{router-CRkm-wHD.mjs → router-DfVAixxe.mjs} +42 -39
- package/.output/server/_ssr/{routes-CNAi0Mmv.mjs → routes-C6LstNp8.mjs} +14 -14
- package/.output/server/_ssr/{routes-B3IJo_jL.mjs → routes-Q3Uhmwwz.mjs} +11 -11
- package/.output/server/_ssr/{runtime.server-NucbYjc7.mjs → runtime.server-fL0o6I2b.mjs} +500 -413
- package/.output/server/_ssr/schema-BKY9SqaY.mjs +25 -0
- package/.output/server/_ssr/{select-BkPAJFL7.mjs → select-CUlInmjk.mjs} +1 -1
- package/.output/server/_ssr/server-C43wq9ft.mjs +8330 -0
- package/.output/server/_ssr/{sidebar-Cw1VuC7d.mjs → sidebar-DKbx2ach.mjs} +3 -3
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/start-BXUOv_n8.mjs +4 -0
- package/.output/server/_ssr/{table-q0P9wz7x.mjs → table-NGWV8B-S.mjs} +1 -1
- package/.output/server/_ssr/{updateFailures-DMU9f0pK.mjs → updateFailures-Jwe2Baab.mjs} +3 -3
- package/.output/server/_ssr/{uuidv7-BzSO-fr-.mjs → uuidv7-C8bwiZr8.mjs} +2 -2
- package/.output/server/_tanstack-start-manifest_v-WQ5qGn8n.mjs +124 -0
- package/.output/server/index.mjs +218 -218
- package/LICENSE +13 -14
- package/README.md +16 -12
- package/lib/index.d.mts +18 -8
- package/lib/vite-internal.mjs +15 -8
- package/lib/vite.d.mts +2 -0
- package/package.json +14 -14
- package/src/components/AppSidebar.tsx +9 -0
- package/src/components/ConsoleFeatureUnavailable.tsx +1 -3
- package/src/components/features/bundles/BundleMetadata.tsx +1 -1
- package/src/components/features/bundles/RolloutCohortsDialog.tsx +1 -1
- package/src/components/features/releases/ReleaseEditorSheet.tsx +6 -6
- package/src/index.ts +27 -15
- package/src/lib/api-rpc.ts +1 -54
- package/src/lib/api.ts +8 -89
- package/src/lib/console-features.ts +5 -5
- package/src/lib/scroll-restoration.ts +1 -1
- package/src/lib/server/config.server.ts +15 -52
- package/src/lib/server/console-runtime.server.ts +84 -6
- package/src/lib/server/downloadBundle.ts +10 -6
- package/src/lib/server/releaseReachability.ts +4 -4
- package/src/lib/server/runtime.server.ts +34 -46
- package/src/routeTree.gen.ts +31 -31
- package/src/routes/api/bundles/$bundleId/download.ts +2 -2
- package/src/vite-internal.ts +17 -8
- package/src/vite.ts +2 -0
- package/.output/public/assets/InsightsInfo-By_sPjTE.js +0 -1
- package/.output/public/assets/InsightsPageHeader-9_kx_LL7.js +0 -1
- package/.output/public/assets/api-CtarlV0l.js +0 -1
- package/.output/public/assets/api-keys-DFF_QqtN.js +0 -1
- package/.output/public/assets/api-keys-evfsQ4sN.js +0 -1
- package/.output/public/assets/arrow-left-BP9D-ta_.js +0 -1
- package/.output/public/assets/arrow-up-right-CDP9Tevw.js +0 -1
- package/.output/public/assets/console-features-api-yv7rm3DX.js +0 -1
- package/.output/public/assets/dialog-BDvCy_QO.js +0 -1
- package/.output/public/assets/empty-C5x9mn_s.js +0 -1
- package/.output/public/assets/index-0eg3l8aC.js +0 -10
- package/.output/public/assets/insights-2MbdiSNv.js +0 -1
- package/.output/public/assets/insights-C6tmCZHk.js +0 -2
- package/.output/public/assets/insights-CadS_aIA.js +0 -42
- package/.output/public/assets/insights_.distribution-BhBs6PNA.js +0 -1
- package/.output/public/assets/insights_.distribution-CJUH_wAS.js +0 -2
- package/.output/public/assets/installations-CH2H7JQt.js +0 -2
- package/.output/public/assets/installations-DMeMuwsW.js +0 -1
- package/.output/public/assets/installations-DnvxI9Dt.js +0 -1
- package/.output/public/assets/mutation-x9L28_CD.js +0 -1
- package/.output/public/assets/preload-helper-BN-UkjOE.js +0 -1
- package/.output/public/assets/routes-BhK8DuZA.js +0 -1
- package/.output/public/assets/sidebar-B45aMqRm.js +0 -3
- package/.output/public/assets/styles-Dn0pK1EX.css +0 -2
- package/.output/public/assets/table-CwLnN6KX.js +0 -1
- package/.output/public/assets/useMutation-CN1ygYEr.js +0 -1
- package/.output/public/assets/valueToPercent-C-t8FT0y.js +0 -1
- package/.output/server/_ssr/auth.server-Ccqz2iVv.mjs +0 -37
- package/.output/server/_ssr/config-DMEJdhoW.mjs +0 -13
- package/.output/server/_ssr/config.server-DyypN6cQ.mjs +0 -60
- package/.output/server/_ssr/databaseRows-CXxf_VIB.mjs +0 -132
- package/.output/server/_ssr/deleteBundle-Dcc21Lbd.mjs +0 -56
- package/.output/server/_ssr/server-DKJYsaCP.mjs +0 -7442
- package/.output/server/_ssr/start-DpViQGnt.mjs +0 -4
- package/.output/server/_tanstack-start-manifest_v-Bb0gKDbb.mjs +0 -124
- package/src/lib/server/deleteBundle.ts +0 -136
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function F(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function I(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var L=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ee={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ee,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,L)}catch(e){L(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.6`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.6`})),p=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=f()})),m=`__TSS_CONTEXT`,h=Symbol.for(`TSS_SERVER_FUNCTION`),g=Symbol.for(`TSS_SERVER_FUNCTION_FACTORY`),_=`application/x-tss-framed`,v={JSON:0,CHUNK:1,END:2,ERROR:3};`${_}`;var y=/;\s*v=(\d+)/;function b(e){let t=e.match(y);return t?parseInt(t[1],10):void 0}function x(e){let t=b(e);if(t!==void 0&&t!==1)throw Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var S=()=>window.__TSS_START_OPTIONS__;function C(){throw Error(`Invariant failed`)}function w(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function E(e){return e?.isNotFound===!0}function D(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function O(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function k(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=O(r):Array.isArray(t)?t.push(O(r)):n[e]=[t,O(r)]}return n}function A(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function j(e){return e instanceof Response&&!!e.options}function M(e){if(typeof e==`object`&&e&&e.isSerializedRedirect)return A(e)}var N=(e=>(e[e.AggregateError=1]=`AggregateError`,e[e.ArrowFunction=2]=`ArrowFunction`,e[e.ErrorPrototypeStack=4]=`ErrorPrototypeStack`,e[e.ObjectAssign=8]=`ObjectAssign`,e[e.BigIntTypedArray=16]=`BigIntTypedArray`,e[e.RegExp=32]=`RegExp`,e))(N||{}),P=Symbol.asyncIterator,F=Symbol.hasInstance,I=Symbol.isConcatSpreadable,L=Symbol.iterator,ee=Symbol.match,te=Symbol.matchAll,ne=Symbol.replace,re=Symbol.search,ie=Symbol.species,ae=Symbol.split,oe=Symbol.toPrimitive,R=Symbol.toStringTag,z=Symbol.unscopables,se={[P]:0,[F]:1,[I]:2,[L]:3,[ee]:4,[te]:5,[ne]:6,[re]:7,[ie]:8,[ae]:9,[oe]:10,[R]:11,[z]:12},ce={0:P,1:F,2:I,3:L,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:R,12:z},B=void 0,le={2:!0,3:!1,1:B,0:null,4:-0,5:1/0,6:-1/0,7:NaN},ue={0:`Error`,1:`EvalError`,2:`RangeError`,3:`ReferenceError`,4:`SyntaxError`,5:`TypeError`,6:`URIError`},de={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function V(e,t,n,r,i,a,o,s,c,l,u,d){return{t:e,i:t,s:n,c:r,m:i,p:a,e:o,a:s,f:c,b:l,o:u,l:d}}function fe(e){return V(2,B,e,B,B,B,B,B,B,B,B,B)}var pe=fe(2),me=fe(3),he=fe(1),ge=fe(0),_e=fe(4),ve=fe(5),ye=fe(6),be=fe(7);function xe(e){switch(e){case`"`:return`\\"`;case`\\`:return`\\\\`;case`
|
|
2
|
-
`:return`\\n`;case`\r`:return`\\r`;case`\b`:return`\\b`;case` `:return`\\t`;case`\f`:return`\\f`;case`<`:return`\\x3C`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:return B}}function Se(e){let t=``,n=0,r;for(let i=0,a=e.length;i<a;i++)r=xe(e[i]),r&&(t+=e.slice(n,i)+r,n=i+1);return n===0?t=e:t+=e.slice(n),t}function Ce(e){switch(e){case`\\\\`:return`\\`;case`\\"`:return`"`;case`\\n`:return`
|
|
3
|
-
`;case`\\r`:return`\r`;case`\\b`:return`\b`;case`\\t`:return` `;case`\\f`:return`\f`;case`\\x3C`:return`<`;case`\\u2028`:return`\u2028`;case`\\u2029`:return`\u2029`;default:return e}}function we(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,Ce)}var Te=`__SEROVAL_REFS__`,Ee=new Map,De=new Map;function Oe(e){return Ee.has(e)}function ke(e){return De.has(e)}function Ae(e){if(Oe(e))return Ee.get(e);throw new vt(e)}function je(e){if(ke(e))return De.get(e);throw new yt(e)}typeof globalThis<`u`?Object.defineProperty(globalThis,Te,{value:De,configurable:!0,writable:!1,enumerable:!1}):typeof window<`u`?Object.defineProperty(window,Te,{value:De,configurable:!0,writable:!1,enumerable:!1}):typeof self<`u`?Object.defineProperty(self,Te,{value:De,configurable:!0,writable:!1,enumerable:!1}):typeof global<`u`&&Object.defineProperty(global,Te,{value:De,configurable:!0,writable:!1,enumerable:!1});function Me(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function Ne(e){let t=ue[Me(e)];return e.name===t?e.constructor.name===t?{}:{name:e.constructor.name}:{name:e.name}}function Pe(e,t){let n=Ne(e),r=Object.getOwnPropertyNames(e);for(let i=0,a=r.length,o;i<a;i++)o=r[i],o!==`name`&&o!==`message`&&(o===`stack`?t&4&&(n||={},n[o]=e[o]):(n||={},n[o]=e[o]));return n}function Fe(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:+!Object.isExtensible(e)}function Ie(e){switch(e){case 1/0:return ve;case-1/0:return ye}return e===e?Object.is(e,-0)?_e:V(0,B,e,B,B,B,B,B,B,B,B,B):be}function Le(e){return V(1,B,Se(e),B,B,B,B,B,B,B,B,B)}function Re(e){return V(3,B,``+e,B,B,B,B,B,B,B,B,B)}function ze(e){return V(4,e,B,B,B,B,B,B,B,B,B,B)}function Be(e,t){let n=t.valueOf();return V(5,e,n===n?t.toISOString():``,B,B,B,B,B,B,B,B,B)}function Ve(e,t){return V(6,e,B,Se(t.source),t.flags,B,B,B,B,B,B,B)}function He(e,t){return V(17,e,se[t],B,B,B,B,B,B,B,B,B)}function Ue(e,t){return V(18,e,Se(Ae(t)),B,B,B,B,B,B,B,B,B)}function We(e,t,n){return V(25,e,n,Se(t),B,B,B,B,B,B,B,B)}function Ge(e,t,n){return V(9,e,B,B,B,B,B,n,B,B,Fe(t),B)}function Ke(e,t){return V(21,e,B,B,B,B,B,B,t,B,B,B)}function qe(e,t,n){return V(15,e,B,t.constructor.name,B,B,B,B,n,t.byteOffset,B,t.length)}function Je(e,t,n){return V(16,e,B,t.constructor.name,B,B,B,B,n,t.byteOffset,B,t.byteLength)}function Ye(e,t,n){return V(20,e,B,B,B,B,B,B,n,t.byteOffset,B,t.byteLength)}function Xe(e,t,n){return V(13,e,Me(t),B,Se(t.message),n,B,B,B,B,B,B)}function Ze(e,t,n){return V(14,e,Me(t),B,Se(t.message),n,B,B,B,B,B,B)}function Qe(e,t){return V(7,e,B,B,B,B,B,t,B,B,B,B)}function $e(e,t){return V(28,B,B,B,B,B,B,[e,t],B,B,B,B)}function et(e,t){return V(30,B,B,B,B,B,B,[e,t],B,B,B,B)}function tt(e,t,n){return V(31,e,B,B,B,B,B,n,t,B,B,B)}function nt(e,t){return V(32,e,B,B,B,B,B,B,t,B,B,B)}function rt(e,t){return V(33,e,B,B,B,B,B,B,t,B,B,B)}function it(e,t){return V(34,e,B,B,B,B,B,B,t,B,B,B)}function at(e,t,n,r){return V(35,e,n,B,B,B,B,t,B,B,B,r)}var{toString:ot}=Object.prototype,st={parsing:1,serialization:2,deserialization:3};function ct(e){return`Seroval Error (step: ${st[e]})`}var lt=(e,t)=>ct(e),ut=class extends Error{constructor(e,t){super(lt(e,t)),this.cause=t}},dt=class extends ut{constructor(e){super(`parsing`,e)}},ft=class extends ut{constructor(e){super(`deserialization`,e)}};function pt(e){return`Seroval Error (specific: ${e})`}var mt=class extends Error{constructor(e){super(pt(1)),this.value=e}},ht=class extends Error{constructor(e){super(pt(2))}},gt=class extends Error{constructor(e){super(pt(3))}},_t=class extends Error{constructor(e){super(pt(4))}},vt=class extends Error{constructor(e){super(pt(5)),this.value=e}},yt=class extends Error{constructor(e){super(pt(6))}},bt=class extends Error{constructor(e){super(pt(7))}},xt=class extends Error{constructor(e){super(pt(8))}},St=class extends Error{constructor(e){super(pt(9))}},Ct=class{constructor(e,t){this.value=e,this.replacement=t}},wt=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e};wt.toString(),((e,t)=>{e.s(t),e.p.s=1,e.p.v=t}).toString(),((e,t)=>{e.f(t),e.p.s=2,e.p.v=t}).toString();var Tt=()=>{let e=[],t=[],n=!0,r=!1,i=0,a=(e,n,r)=>{for(r=0;r<i;r++)t[r]&&t[r][n](e)},o=(t,i,a,o)=>{for(i=0,a=e.length;i<a;i++)o=e[i],!n&&i===a-1?t[r?`return`:`throw`](o):t.next(o)},s=(e,r)=>(n&&(r=i++,t[r]=e),o(e),()=>{n&&(t[r]=t[i],t[i--]=void 0)});return{__SEROVAL_STREAM__:!0,on:e=>s(e),next:t=>{n&&(e.push(t),a(t,`next`))},throw:i=>{n&&(e.push(i),a(i,`throw`),n=!1,r=!1,t.length=0)},return:i=>{n&&(e.push(i),a(i,`return`),n=!1,r=!0,t.length=0)}}};Tt.toString();var Et=e=>t=>()=>{let n=0,r={[e]:()=>r,next:()=>{if(n>t.d)return{done:!0,value:void 0};let e=n++,r=t.v[e];if(e===t.t)throw r;return{done:e===t.d,value:r}}};return r};Et.toString();var Dt=(e,t)=>n=>()=>{let r=0,i=-1,a=!1,o=[],s=[],c=(e=0,t=s.length)=>{for(;e<t;e++)s[e].s({done:!0,value:void 0})};n.on({next:e=>{let t=s.shift();t&&t.s({done:!1,value:e}),o.push(e)},throw:e=>{let t=s.shift();t&&t.f(e),c(),i=o.length,a=!0,o.push(e)},return:e=>{let t=s.shift();t&&t.s({done:!0,value:e}),c(),i=o.length,o.push(e)}});let l={[e]:()=>l,next:()=>{if(i===-1){let e=r++;if(e>=o.length){let e=t();return s.push(e),e.p}return{done:!1,value:o[e]}}if(r>i)return{done:!0,value:void 0};let e=r++,n=o[e];if(e!==i)return{done:!1,value:n};if(a)throw n;return{done:!0,value:n}}};return l};Dt.toString();var Ot=e=>{let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer};Ot.toString();function kt(e){return`__SEROVAL_SEQUENCE__`in e}function At(e,t,n){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:n}}function jt(e){let t=[],n=-1,r=-1,i=e[L]();for(;;)try{let e=i.next();if(t.push(e.value),e.done){r=t.length-1;break}}catch(e){n=t.length,t.push(e)}return At(t,n,r)}var Mt=Et(L);function Nt(e){return Mt(e)}var Pt={},Ft={},It={0:{},1:{},2:{},3:{},4:{},5:{}};function Lt(e){return`__SEROVAL_STREAM__`in e}function Rt(){return Tt()}function zt(e){let t=Rt(),n=e[P]();async function r(){try{let e=await n.next();e.done?t.return(e.value):(t.next(e.value),await r())}catch(e){t.throw(e)}}return r().catch(()=>{}),t}var Bt=Dt(P,wt);function Vt(e){return Bt(e)}async function Ht(e){try{return[1,await e]}catch(e){return[0,e]}}function Ut(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:63^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function Wt(e,t){e.marked.add(t)}function Gt(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function Kt(e,t){let n=e.refs.get(t);return n==null?{type:0,value:Gt(e,t)}:(Wt(e,n),{type:1,value:ze(n)})}function qt(e,t){let n=Kt(e,t);return n.type===1?n:Oe(t)?{type:2,value:Ue(n.value,t)}:n}function Jt(e,t){let n=qt(e,t);if(n.type!==0)return n.value;if(t in se)return He(n.value,t);throw new mt(t)}function Yt(e,t){let n=Kt(e,It[t]);return n.type===1?n.value:V(26,n.value,t,B,B,B,B,B,B,B,B,B)}function Xt(e){let t=Kt(e,Pt);return t.type===1?t.value:V(27,t.value,B,B,B,B,B,B,Jt(e,L),B,B,B)}function Zt(e){let t=Kt(e,Ft);return t.type===1?t.value:V(29,t.value,B,B,B,B,B,[Yt(e,1),Jt(e,P)],B,B,B,B)}function Qt(e,t,n,r){return V(n?11:10,e,B,B,B,r,B,B,B,B,Fe(t),B)}function $t(e,t,n,r){return V(8,t,B,B,B,B,{k:n,v:r},B,Yt(e,0),B,B,B)}function en(e,t,n){let r=new Uint8Array(n),i=``;for(let e=0,t=r.length;e<t;e++)i+=String.fromCharCode(r[e]);return V(19,t,Se(btoa(i)),B,B,B,B,B,Yt(e,5),B,B,B)}function tn(e,t){return{base:Ut(e,t),child:void 0}}var nn=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return Cn(this._p,this.depth,e)}};async function rn(e,t,n){let r=[];for(let i=0,a=n.length;i<a;i++)i in n?r[i]=await Cn(e,t,n[i]):r[i]=0;return r}async function an(e,t,n,r){return Ge(n,r,await rn(e,t,r))}async function on(e,t,n){let r=Object.entries(n),i=[],a=[];for(let n=0,o=r.length;n<o;n++)i.push(Se(r[n][0])),a.push(await Cn(e,t,r[n][1]));return L in n&&(i.push(Jt(e.base,L)),a.push($e(Xt(e.base),await Cn(e,t,jt(n))))),P in n&&(i.push(Jt(e.base,P)),a.push(et(Zt(e.base),await Cn(e,t,zt(n))))),R in n&&(i.push(Jt(e.base,R)),a.push(Le(n[R]))),I in n&&(i.push(Jt(e.base,I)),a.push(n[I]?pe:me)),{k:i,v:a}}async function sn(e,t,n,r,i){return Qt(n,r,i,await on(e,t,r))}async function cn(e,t,n,r){return Ke(n,await Cn(e,t,r.valueOf()))}async function ln(e,t,n,r){return qe(n,r,await Cn(e,t,r.buffer))}async function un(e,t,n,r){return Je(n,r,await Cn(e,t,r.buffer))}async function dn(e,t,n,r){return Ye(n,r,await Cn(e,t,r.buffer))}async function fn(e,t,n,r){let i=Pe(r,e.base.features);return Xe(n,r,i?await on(e,t,i):B)}async function pn(e,t,n,r){let i=Pe(r,e.base.features);return Ze(n,r,i?await on(e,t,i):B)}async function mn(e,t,n,r){let i=[],a=[];for(let[n,o]of r.entries())i.push(await Cn(e,t,n)),a.push(await Cn(e,t,o));return $t(e.base,n,i,a)}async function hn(e,t,n,r){let i=[];for(let n of r.keys())i.push(await Cn(e,t,n));return Qe(n,i)}async function gn(e,t,n,r){let i=e.base.plugins;if(i)for(let a=0,o=i.length;a<o;a++){let o=i[a];if(o.parse.async&&o.test(r))return We(n,o.tag,await o.parse.async(r,new nn(e,t),{id:n}))}return B}async function _n(e,t,n,r){let[i,a]=await Ht(r);return V(12,n,i,B,B,B,B,B,await Cn(e,t,a),B,B,B)}function vn(e,t,n,r,i){let a=[],o=n.on({next:n=>{Wt(this.base,t),Cn(this,e,n).then(e=>{a.push(nt(t,e))},e=>{i(e),o()})},throw:n=>{Wt(this.base,t),Cn(this,e,n).then(e=>{a.push(rt(t,e)),r(a),o()},e=>{i(e),o()})},return:n=>{Wt(this.base,t),Cn(this,e,n).then(e=>{a.push(it(t,e)),r(a),o()},e=>{i(e),o()})}})}async function yn(e,t,n,r){return tt(n,Yt(e.base,4),await new Promise(vn.bind(e,t,n,r)))}async function bn(e,t,n,r){let i=[];for(let n=0,a=r.v.length;n<a;n++)i[n]=await Cn(e,t,r.v[n]);return at(n,i,r.t,r.d)}async function xn(e,t,n,r){if(Array.isArray(r))return an(e,t,n,r);if(Lt(r))return yn(e,t,n,r);if(kt(r))return bn(e,t,n,r);let i=r.constructor;if(i===Ct)return Cn(e,t,r.replacement);let a=await gn(e,t,n,r);if(a)return a;switch(i){case Object:return sn(e,t,n,r,!1);case B:return sn(e,t,n,r,!0);case Date:return Be(n,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return fn(e,t,n,r);case Number:case Boolean:case String:case BigInt:return cn(e,t,n,r);case ArrayBuffer:return en(e.base,n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return ln(e,t,n,r);case DataView:return dn(e,t,n,r);case Map:return mn(e,t,n,r);case Set:return hn(e,t,n,r);default:break}if(i===Promise||r instanceof Promise)return _n(e,t,n,r);let o=e.base.features;if(o&32&&i===RegExp)return Ve(n,r);if(o&16)switch(i){case BigInt64Array:case BigUint64Array:return un(e,t,n,r);default:break}if(o&1&&typeof AggregateError<`u`&&(i===AggregateError||r instanceof AggregateError))return pn(e,t,n,r);if(r instanceof Error)return fn(e,t,n,r);if(L in r||P in r)return sn(e,t,n,r,!!i);throw new mt(r)}async function Sn(e,t,n){let r=qt(e.base,n);if(r.type!==0)return r.value;let i=await gn(e,t,r.value,n);if(i)return i;throw new mt(n)}async function Cn(e,t,n){switch(typeof n){case`boolean`:return n?pe:me;case`undefined`:return he;case`string`:return Le(n);case`number`:return Ie(n);case`bigint`:return Re(n);case`object`:if(n){let r=qt(e.base,n);return r.type===0?await xn(e,t+1,r.value,n):r.value}return ge;case`symbol`:return Jt(e.base,n);case`function`:return Sn(e,t,n);default:throw new mt(n)}}async function wn(e,t){try{return await Cn(e,0,t)}catch(e){throw e instanceof dt?e:new dt(e)}}var Tn=(e=>(e[e.Vanilla=1]=`Vanilla`,e[e.Cross=2]=`Cross`,e))(Tn||{});function En(e){return e}function Dn(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&Dn(e,r.extends))}}function On(e){if(e){let t=new Set;return Dn(t,e),[...t]}}function kn(e){switch(e){case`Int8Array`:return Int8Array;case`Int16Array`:return Int16Array;case`Int32Array`:return Int32Array;case`Uint8Array`:return Uint8Array;case`Uint16Array`:return Uint16Array;case`Uint32Array`:return Uint32Array;case`Uint8ClampedArray`:return Uint8ClampedArray;case`Float32Array`:return Float32Array;case`Float64Array`:return Float64Array;case`BigInt64Array`:return BigInt64Array;case`BigUint64Array`:return BigUint64Array;default:throw new bt(e)}}var An=1e6,jn=1e4,Mn=2e4;function Nn(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}var Pn=1e3;function Fn(e,t){let n=t.refs||new Map;return`types`in n||Object.assign(n,{types:new Map}),{mode:e,plugins:t.plugins,refs:n,features:t.features??63^(t.disabledFeatures||0),depthLimit:t.depthLimit||Pn}}function In(e){return{mode:2,base:Fn(2,e),child:B}}var Ln=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return wr(this._p,this.depth,e)}};function Rn(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new xt({t:4,i:t});if(e.refs.has(t))throw Error(`Conflicted ref id: `+t)}function zn(e,t,n){return Rn(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function Bn(e,t,n){return Rn(e.base,t),e.base.refs.set(t,n),n}function Vn(e,t,n){return e.mode===1?zn(e,t,n):Bn(e,t,n)}function Hn(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new xt(e)}function Un(e,t){return Vn(e,t.i,je(we(t.s)))}function Wn(e,t,n){let r=n.a,i=r.length,a=Vn(e,n.i,Array(i));for(let n=0,o;n<i;n++)o=r[n],o&&(a[n]=wr(e,t,o));return Nn(a,n.o),a}function Gn(e){switch(e){case`constructor`:case`__proto__`:case`prototype`:case`__defineGetter__`:case`__defineSetter__`:case`__lookupGetter__`:case`__lookupSetter__`:return!1;default:return!0}}function Kn(e){switch(e){case P:case I:case R:case L:return!0;default:return!1}}function qn(e,t,n){Gn(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function Jn(e,t,n,r,i){if(typeof r==`string`)qn(n,we(r),wr(e,t,i));else{let a=wr(e,t,r);switch(typeof a){case`string`:qn(n,a,wr(e,t,i));break;case`symbol`:Kn(a)&&(n[a]=wr(e,t,i));break;default:throw new xt(r)}}}function Yn(e,t,n){e.base.refs.types.set(t,n)}function Xn(e,t,n,r){if(e.base.refs.types.get(n)!==r)throw new xt(t)}function Zn(e,t,n,r){let i=n.k;if(i.length>0)for(let a=0,o=n.v,s=i.length;a<s;a++)Jn(e,t,r,i[a],o[a]);return r}function Qn(e,t,n){let r=Vn(e,n.i,n.t===10?{}:Object.create(null));return Zn(e,t,n.p,r),Nn(r,n.o),r}function $n(e,t){return Vn(e,t.i,new Date(t.s))}function er(e,t){if(e.base.features&32){let n=we(t.c);if(n.length>Mn)throw new xt(t);return Vn(e,t.i,new RegExp(n,t.m))}throw new ht(t)}function tr(e,t,n){let r=Vn(e,n.i,new Set);for(let i=0,a=n.a,o=a.length;i<o;i++)r.add(wr(e,t,a[i]));return r}function nr(e,t,n){let r=Vn(e,n.i,new Map);for(let i=0,a=n.e.k,o=n.e.v,s=a.length;i<s;i++)r.set(wr(e,t,a[i]),wr(e,t,o[i]));return r}function rr(e,t){if(t.s.length>An)throw new xt(t);return Vn(e,t.i,Ot(we(t.s)))}function ir(e,t,n){let r=kn(n.c),i=wr(e,t,n.f),a=n.b??0;if(a<0||a>i.byteLength)throw new xt(n);return Vn(e,n.i,new r(i,a,n.l))}function ar(e,t,n){let r=wr(e,t,n.f),i=n.b??0;if(i<0||i>r.byteLength)throw new xt(n);return Vn(e,n.i,new DataView(r,i,n.l))}function or(e,t,n,r){if(n.p){let i=Zn(e,t,n.p,{});Object.defineProperties(r,Object.getOwnPropertyDescriptors(i))}return r}function sr(e,t,n){return or(e,t,n,Vn(e,n.i,AggregateError([],we(n.m))))}function cr(e,t,n){let r=Hn(n,de,n.s);return or(e,t,n,Vn(e,n.i,new r(we(n.m))))}function lr(e,t,n){let r=wt(),i=Vn(e,n.i,r.p),a=wr(e,t,n.f);return n.s?r.s(a):r.f(a),i}function ur(e,t,n){return Vn(e,n.i,Object(wr(e,t,n.f)))}function dr(e,t,n){let r=e.base.plugins;if(r){let i=we(n.c);for(let a=0,o=r.length;a<o;a++){let o=r[a];if(o.tag===i)return Vn(e,n.i,o.deserialize(n.s,new Ln(e,t),{id:n.i}))}}throw new gt(n.c)}function fr(e,t){let n=Vn(e,t.i,Vn(e,t.s,wt()).p);return Yn(e,t.s,22),n}function pr(e,t,n){let r=e.base.refs.get(n.i);if(r)return Xn(e,n,n.i,22),r.s(wr(e,t,n.a[1])),B;throw new _t(`Promise`)}function mr(e,t,n){let r=e.base.refs.get(n.i);if(r)return Xn(e,n,n.i,22),r.f(wr(e,t,n.a[1])),B;throw new _t(`Promise`)}function hr(e,t,n){return wr(e,t,n.a[0]),Nt(wr(e,t,n.a[1]))}function gr(e,t,n){return wr(e,t,n.a[0]),Vt(wr(e,t,n.a[1]))}function _r(e,t,n){let r=Vn(e,n.i,Rt());Yn(e,n.i,31);let i=n.a,a=i.length;if(a)for(let n=0;n<a;n++)wr(e,t,i[n]);return r}function vr(e,t,n){let r=e.base.refs.get(n.i);if(r)return Xn(e,n,n.i,31),r.next(wr(e,t,n.f)),B;throw new _t(`Stream`)}function yr(e,t,n){let r=e.base.refs.get(n.i);if(r)return Xn(e,n,n.i,31),r.throw(wr(e,t,n.f)),B;throw new _t(`Stream`)}function br(e,t,n){let r=e.base.refs.get(n.i);if(r)return Xn(e,n,n.i,31),r.return(wr(e,t,n.f)),B;throw new _t(`Stream`)}function xr(e,t,n){return wr(e,t,n.f),B}function Sr(e,t,n){return wr(e,t,n.a[1]),B}function Cr(e,t,n){let r=Vn(e,n.i,At([],n.s,n.l));for(let i=0,a=n.a.length;i<a;i++)r.v[i]=wr(e,t,n.a[i]);return r}function wr(e,t,n){if(t>e.base.depthLimit)throw new St(e.base.depthLimit);switch(t+=1,n.t){case 2:return Hn(n,le,n.s);case 0:return Number(n.s);case 1:return we(String(n.s));case 3:if(String(n.s).length>jn)throw new xt(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return Un(e,n);case 9:return Wn(e,t,n);case 10:case 11:return Qn(e,t,n);case 5:return $n(e,n);case 6:return er(e,n);case 7:return tr(e,t,n);case 8:return nr(e,t,n);case 19:return rr(e,n);case 16:case 15:return ir(e,t,n);case 20:return ar(e,t,n);case 14:return sr(e,t,n);case 13:return cr(e,t,n);case 12:return lr(e,t,n);case 17:return Hn(n,ce,n.s);case 21:return ur(e,t,n);case 25:return dr(e,t,n);case 22:return fr(e,n);case 23:return pr(e,t,n);case 24:return mr(e,t,n);case 28:return hr(e,t,n);case 30:return gr(e,t,n);case 31:return _r(e,t,n);case 32:return vr(e,t,n);case 33:return yr(e,t,n);case 34:return br(e,t,n);case 27:return xr(e,t,n);case 29:return Sr(e,t,n);case 35:return Cr(e,t,n);default:throw new ht(n)}}function Tr(e,t){try{return wr(e,0,t)}catch(e){throw new ft(e)}}var Er=(()=>T).toString();/=>/.test(Er);function Dr(e,t){return Tr(In({plugins:On(t.plugins),refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function Or(e,t={}){let n=tn(1,{plugins:On(t.plugins),disabledFeatures:t.disabledFeatures});return{t:await wn(n,e),f:n.base.features,m:Array.from(n.base.marked)}}function kr(e){return e}function Ar(e){return En({tag:`$TSR/t/`+e.key,test:e.test,parse:{sync(t,n,r){return{v:n.parse(e.toSerializable(t))}},async async(t,n,r){return{v:await n.parse(e.toSerializable(t))}},stream(t,n,r){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n,r){return e.fromSerializable(n.deserialize(t.v))}})}var jr=class{constructor(e,t){this.stream=e,this.hint=t?.hint??`binary`}},Mr=globalThis.Buffer,Nr=!!Mr&&typeof Mr.from==`function`;function Pr(e){if(e.length===0)return``;if(Nr)return Mr.from(e).toString(`base64`);let t=32768,n=[];for(let r=0;r<e.length;r+=t){let i=e.subarray(r,r+t);n.push(String.fromCharCode.apply(null,i))}return btoa(n.join(``))}function Fr(e){if(e.length===0)return new Uint8Array;if(Nr){let t=Mr.from(e,`base64`);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var Ir=Object.create(null),Lr=Object.create(null),Rr=e=>new ReadableStream({start(t){e.on({next(e){try{t.enqueue(Fr(e))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),zr=new TextEncoder,Br=e=>new ReadableStream({start(t){e.on({next(e){try{typeof e==`string`?t.enqueue(zr.encode(e)):t.enqueue(Fr(e.$b64))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),Vr=`(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))`,Hr=`(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})`;function Ur(e){let t=Rt(),n=e.getReader();return(async()=>{try{for(;;){let{done:e,value:r}=await n.read();if(e){t.return(void 0);break}t.next(Pr(r))}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}function Wr(e){let t=Rt(),n=e.getReader(),r=new TextDecoder(`utf-8`,{fatal:!0});return(async()=>{try{for(;;){let{done:e,value:i}=await n.read();if(e){try{let e=r.decode();e.length>0&&t.next(e)}catch{}t.return(void 0);break}try{let e=r.decode(i,{stream:!0});e.length>0&&t.next(e)}catch{t.next({$b64:Pr(i)})}}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}var Gr=En({tag:`tss/RawStream`,extends:[En({tag:`tss/RawStreamFactory`,test(e){return e===Ir},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return Vr},deserialize(e,t,n){return Ir}}),En({tag:`tss/RawStreamFactoryText`,test(e){return e===Lr},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return Hr},deserialize(e,t,n){return Lr}})],test(e){return e instanceof jr},parse:{sync(e,t,n){let r=e.hint===`text`?Lr:Ir;return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(Rt())}},async async(e,t,n){let r=e.hint===`text`?Lr:Ir,i=e.hint===`text`?Wr(e.stream):Ur(e.stream);return{hint:await t.parse(e.hint),factory:await t.parse(r),stream:await t.parse(i)}},stream(e,t,n){let r=e.hint===`text`?Lr:Ir,i=e.hint===`text`?Wr(e.stream):Ur(e.stream);return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(i)}}},serialize(e,t,n){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t,n){let r=t.deserialize(e.stream);return t.deserialize(e.hint)===`text`?Br(r):Rr(r)}});function Kr(e){return En({tag:`tss/RawStream`,test:()=>!1,parse:{},serialize(){throw Error(`RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.`)},deserialize(t,n,r){return e(typeof n?.deserialize==`function`?n.deserialize(t.streamId):t.streamId)}})}var qr=En({tag:`$TSR/Error`,test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return`new Error(`+t.serialize(e.message)+`)`},deserialize(e,t){return Error(t.deserialize(e.message))}}),Jr={},Yr=e=>new ReadableStream({start:t=>{e.on({next:e=>{try{t.enqueue(e)}catch{}},throw:e=>{t.error(e)},return:()=>{try{t.close()}catch{}}})}}),Xr=En({tag:`seroval-plugins/web/ReadableStreamFactory`,test(e){return e===Jr},parse:{sync(){return Jr},async async(){return await Promise.resolve(Jr)},stream(){return Jr}},serialize(){return Yr.toString()},deserialize(){return Jr}});function Zr(e){let t=Rt(),n=e.getReader();async function r(){try{let e=await n.read();e.done?t.return(e.value):(t.next(e.value),await r())}catch(e){t.throw(e)}}return r().catch(()=>{}),t}var Qr=[qr,Gr,En({tag:`seroval/plugins/web/ReadableStream`,extends:[Xr],test(e){return typeof ReadableStream>`u`?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(Jr),stream:t.parse(Rt())}},async async(e,t){return{factory:await t.parse(Jr),stream:await t.parse(Zr(e))}},stream(e,t){return{factory:t.parse(Jr),stream:t.parse(Zr(e))}}},serialize(e,t){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t){return Yr(t.deserialize(e.stream))}})];function $r(){return[...(S()?.serializationAdapters)?.map(Ar)??[],...Qr]}var ei=new TextDecoder,ti=new Uint8Array,ni=16*1024*1024,ri=32*1024*1024,ii=1024,ai=1e5;function oi(e){let t=new Map,n=new Map,r=new Set,i=!1,a=null,o=0,s,c=new ReadableStream({start(e){s=e},cancel(){i=!0;try{a?.cancel()}catch{}t.forEach(e=>{try{e.error(Error(`Framed response cancelled`))}catch{}}),t.clear(),n.clear(),r.clear()}});function l(e){let i=n.get(e);if(i)return i;if(r.has(e))return new ReadableStream({start(e){e.close()}});if(n.size>=ii)throw Error(`Too many raw streams in framed response (max ${ii})`);let a=new ReadableStream({start(n){t.set(e,n)},cancel(){r.add(e),t.delete(e),n.delete(e)}});return n.set(e,a),a}function u(e){return l(e),t.get(e)}return(async()=>{let n=e.getReader();a=n;let c=[],l=0;function d(){if(l<9)return null;let e=c[0];if(e.length>=9)return{type:e[0],streamId:(e[1]<<24|e[2]<<16|e[3]<<8|e[4])>>>0,length:(e[5]<<24|e[6]<<16|e[7]<<8|e[8])>>>0};let t=new Uint8Array(9),n=0,r=9;for(let e=0;e<c.length&&r>0;e++){let i=c[e],a=Math.min(i.length,r);t.set(i.subarray(0,a),n),n+=a,r-=a}return{type:t[0],streamId:(t[1]<<24|t[2]<<16|t[3]<<8|t[4])>>>0,length:(t[5]<<24|t[6]<<16|t[7]<<8|t[8])>>>0}}function f(e){if(e===0)return ti;let t=new Uint8Array(e),n=0,r=e;for(;r>0&&c.length>0;){let e=c[0];if(!e)break;let i=Math.min(e.length,r);t.set(e.subarray(0,i),n),n+=i,r-=i,i===e.length?c.shift():c[0]=e.subarray(i)}return l-=e,t}try{for(;;){let{done:e,value:a}=await n.read();if(i||e)break;if(a){if(l+a.length>ri)throw Error(`Framed response buffer exceeded ${ri} bytes`);for(c.push(a),l+=a.length;;){let e=d();if(!e)break;let{type:n,streamId:i,length:a}=e;if(n!==v.JSON&&n!==v.CHUNK&&n!==v.END&&n!==v.ERROR)throw Error(`Unknown frame type: ${n}`);if(n===v.JSON){if(i!==0)throw Error(`Invalid JSON frame streamId (expected 0)`)}else if(i===0)throw Error(`Invalid raw frame streamId (expected non-zero)`);if(a>ni)throw Error(`Frame payload too large: ${a} bytes (max ${ni})`);let c=9+a;if(l<c)break;if(++o>ai)throw Error(`Too many frames in framed response (max ${ai})`);f(9);let p=f(a);switch(n){case v.JSON:try{s.enqueue(ei.decode(p))}catch{}break;case v.CHUNK:{let e=u(i);e&&e.enqueue(p);break}case v.END:{let e=u(i);if(r.add(i),e){try{e.close()}catch{}t.delete(i)}break}case v.ERROR:{let e=u(i);if(r.add(i),e){let n=ei.decode(p);e.error(Error(n)),t.delete(i)}break}}}}}if(l!==0)throw Error(`Incomplete frame at end of framed response`);try{s.close()}catch{}t.forEach(e=>{try{e.close()}catch{}}),t.clear()}catch(e){try{s.error(e)}catch{}t.forEach(t=>{try{t.error(e)}catch{}}),t.clear()}finally{try{n.releaseLock()}catch{}a=null}})(),{getOrCreateStream:l,jsonChunks:c}}var si=null;async function ci(e){e.length>0&&await Promise.allSettled(e)}var li=Object.prototype.hasOwnProperty;function ui(e){for(let t in e)if(li.call(e,t))return!0;return!1}async function di(e,t,n){si||=$r();let r=t[0],i=r.fetch??n,a=r.data instanceof FormData?`formData`:`payload`,o=r.headers?new Headers(r.headers):new Headers;if(o.set(`x-tsr-serverFn`,`true`),a===`payload`&&o.set(`accept`,`${_}, application/x-ndjson, application/json`),r.method===`GET`){if(a===`formData`)throw Error(`FormData is not supported with GET requests`);let t=await fi(r);if(t!==void 0){let n=D({payload:t});e.includes(`?`)?e+=`&${n}`:e+=`?${n}`}}let s;if(r.method===`POST`){let e=await mi(r);e?.contentType&&o.set(`content-type`,e.contentType),s=e?.body}return await hi(async()=>i(e,{method:r.method,headers:o,signal:r.signal,body:s}))}async function fi(e){let t=!1,n={};if(e.data!==void 0&&(t=!0,n.data=e.data),e.context&&ui(e.context)&&(t=!0,n.context=e.context),t)return pi(n)}async function pi(e){return JSON.stringify(await Promise.resolve(Or(e,{plugins:si})))}async function mi(e){if(e.data instanceof FormData){let t;return e.context&&ui(e.context)&&(t=await pi(e.context)),t!==void 0&&e.data.set(m,t),{body:e.data}}let t=await fi(e);if(t)return{body:t,contentType:`application/json`}}async function hi(e){let t;try{t=await e()}catch(e){if(e instanceof Response)t=e;else throw console.log(e),e}if(t.headers.get(`x-tss-raw`)===`true`)return t;let n=t.headers.get(`content-type`);if(n||C(),t.headers.get(`x-tss-serialized`)){let e;if(n.includes(`application/x-tss-framed`)){if(x(n),!t.body)throw Error(`No response body for framed response`);let{getOrCreateStream:r,jsonChunks:i}=oi(t.body),a=[Kr(r),...si||[]],o=new Map;e=await gi({jsonStream:i,onMessage:e=>Dr(e,{refs:o,plugins:a}),onError(e,t){console.error(e,t)}})}else if(n.includes(`application/json`)){let n=await t.json(),r=[];try{e=Dr(n,{plugins:si})}finally{}await ci(r)}if(e||C(),e instanceof Error)throw e;return e}if(n.includes(`application/json`)){let e=await t.json(),n=M(e);if(n)throw n;if(E(e))throw e;return e}if(!t.ok)throw Error(await t.text());return t}async function gi({jsonStream:e,onMessage:t,onError:n}){let r=e.getReader(),{value:i,done:a}=await r.read();if(a||!i)throw Error(`Stream ended before first object`);let o=JSON.parse(i),s=!1,c=(async()=>{try{for(;;){let{value:e,done:i}=await r.read();if(i)break;if(e)try{let n=[];try{t(JSON.parse(e))}finally{}await ci(n)}catch(t){n?.(`Invalid JSON: ${e}`,t)}}}catch(e){s||n?.(`Stream processing error:`,e)}})(),l,u=[];try{l=t(o)}catch(e){throw s=!0,r.cancel().catch(()=>{}),e}return await ci(u),Promise.resolve(l).catch(()=>{s=!0,r.cancel().catch(()=>{})}),c.finally(()=>{try{r.releaseLock()}catch{}}),l}function _i(e){let t=`/_serverFn/`+e;return Object.assign((...e)=>{let n=S()?.serverFns?.fetch;return di(t,e,n??fetch)},{url:t,serverFnMeta:{id:e},[h]:!0})}function vi(e){if(Array.isArray(e))return e.flatMap(e=>vi(e));if(typeof e!=`string`)return[];let t=[],n=0,r,i,a,o,s,c=()=>{for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length},l=()=>(i=e.charAt(n),i!==`=`&&i!==`;`&&i!==`,`);for(;n<e.length;){for(r=n,s=!1;c();)if(i=e.charAt(n),i===`,`){for(a=n,n+=1,c(),o=n;n<e.length&&l();)n+=1;n<e.length&&e.charAt(n)===`=`?(s=!0,n=o,t.push(e.slice(r,a)),r=n):n=a+1}else n+=1;(!s||n>=e.length)&&t.push(e.slice(r))}return t}function yi(e){return e instanceof Headers?e:Array.isArray(e)||typeof e==`object`?new Headers(e):null}function bi(...e){return e.reduce((e,t)=>{let n=yi(t);if(!n)return e;for(let[t,r]of n.entries())t===`set-cookie`?vi(r).forEach(t=>e.append(`set-cookie`,t)):e.set(t,r);return e},new Headers)}var xi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Si=new class extends xi{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},Ci={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},wi=new class{#e=Ci;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function Ti(e){setTimeout(e,0)}var Ei=typeof window>`u`||`Deno`in globalThis;function Di(){}function Oi(e,t){return typeof e==`function`?e(t):e}function ki(e){return typeof e==`number`&&e>=0&&e!==1/0}function Ai(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ji(e,t){return typeof e==`function`?e(t):e}function Mi(e,t){return typeof e==`function`?e(t):e}function Ni(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Fi(o,t.options))return!1}else if(!Li(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Pi(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Ii(t.options.mutationKey)!==Ii(a))return!1}else if(!Li(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Fi(e,t){return(t?.queryKeyHashFn||Ii)(e)}function Ii(e){return JSON.stringify(e,(e,t)=>Hi(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Li(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>Li(e[n],t[n])):!1}var Ri=Object.prototype.hasOwnProperty;function zi(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=Vi(e)&&Vi(t);if(!r&&!(Hi(e)&&Hi(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:Ri.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=zi(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function Bi(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function Vi(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Hi(e){if(!Ui(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!Ui(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function Ui(e){return Object.prototype.toString.call(e)===`[object Object]`}function Wi(e){return new Promise(t=>{wi.setTimeout(t,e)})}function Gi(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:zi(e,t)}function Ki(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function qi(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ji=Symbol();function Yi(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ji?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Xi(e,t){return typeof e==`function`?e(...t):!!e}function Zi(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Qi=(()=>{let e=()=>Ei;return{isServer(){return e()},setIsServer(t){e=t}}})();function $i(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}function ea(e){let t;if(e.then(e=>(t=e,e),Di)?.catch(Di),t!==void 0)return{data:t}}var ta=Ti;function na(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=ta,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var ra=na(),ia=new class extends xi{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function aa(e){return Math.min(1e3*2**e,3e4)}function oa(e){return(e??`online`)===`online`?ia.isOnline():!0}var sa=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function ca(e){let t=!1,n=0,r,i=$i(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new sa(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Si.isFocused()&&(e.networkMode===`always`||ia.isOnline())&&e.canRun(),u=()=>oa(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Qi.isServer()?0:3),o=e.retryDelay??aa,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),Wi(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var la=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ki(this.gcTime)&&(this.#e=wi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Qi.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(wi.clearTimeout(this.#e),this.#e=void 0)}};function ua(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Zi(e,()=>t.signal,()=>n=!0)},u=Yi(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?qi:Ki;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?fa:da,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:da(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function da(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function fa(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var pa=class extends la{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=ga(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=ga(this.options);e.data!==void 0&&(this.setState(ha(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=Gi(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Di).catch(Di):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Mi(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ji||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ji(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Ai(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=Yi(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?ua(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=ca({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof sa&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof sa){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...ma(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...ha(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}})(this.state),ra.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function ma(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:oa(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function ha(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function ga(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var _a=class extends xi{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=$i(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),ya(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ba(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ba(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof Mi(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Bi(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&xa(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||Mi(this.options.enabled,this.#t)!==Mi(t.enabled,this.#t)||ji(this.options.staleTime,this.#t)!==ji(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||Mi(this.options.enabled,this.#t)!==Mi(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Ca(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Di)),t}#g(){this.#b();let e=ji(this.options.staleTime,this.#t);if(Qi.isServer()||this.#r.isStale||!ki(e))return;let t=Ai(this.#r.dataUpdatedAt,e)+1;this.#d=wi.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(Qi.isServer()||Mi(this.options.enabled,this.#t)===!1||!ki(this.#p)||this.#p===0)&&(this.#f=wi.setInterval(()=>{(this.options.refetchIntervalInBackground||Si.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(wi.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(wi.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&ya(e,t),o=i&&xa(e,n,t,r);(a||o)&&(l={...l,...ma(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=Gi(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=Gi(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:Sa(e,t),refetch:this.refetch,promise:this.#o,isEnabled:Mi(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{i(this.#o=x.promise=$i())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!Bi(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){ra.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function va(e,t){return Mi(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&Mi(t.retryOnMount,e)===!1)}function ya(e,t){return va(e,t)||e.state.data!==void 0&&ba(e,t,t.refetchOnMount)}function ba(e,t,n){if(Mi(t.enabled,e)!==!1&&ji(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Sa(e,t)}return!1}function xa(e,t,n,r){return(e!==t||Mi(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Sa(e,n)}function Sa(e,t){return Mi(t.enabled,e)!==!1&&e.isStaleByTime(ji(t.staleTime,e))}function Ca(e,t){return!Bi(e.getCurrentResult(),t)}var wa=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Ta=o(((e,t)=>{t.exports=wa()})),H=l(d(),1),U=Ta(),Ea=H.createContext(void 0),Da=e=>{let t=H.useContext(Ea);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Oa=({client:e,children:t})=>(H.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,U.jsx)(Ea.Provider,{value:e,children:t})),ka=H.createContext(!1),Aa=()=>H.useContext(ka);ka.Provider;function ja(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ma=H.createContext(ja()),Na=()=>H.useContext(Ma),Pa=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?Xi(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Fa=e=>{H.useEffect(()=>{e.clearReset()},[e])},Ia=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Xi(n,[e.error,r])),La=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Ra=(e,t)=>e.isLoading&&e.isFetching&&!t,za=(e,t)=>e?.suspense&&t.isPending,Ba=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Va(e,t,n){let r=Aa(),i=Na(),a=Da(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,La(o),Pa(o,i,s),Fa(i);let l=!a.getQueryCache().get(o.queryHash),[u]=H.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(H.useSyncExternalStore(H.useCallback(e=>{let t=f?u.subscribe(ra.batchCalls(e)):Di;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),H.useEffect(()=>{u.setOptions(o)},[o,u]),za(o,d))throw Ba(o,u,i);if(Ia({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!Qi.isServer()&&Ra(d,r)&&(l?Ba(o,u,i):s?.promise)?.catch(Di).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function Ha(e,t){return Va(e,_a,t)}var Ua=o((e=>{var t=d();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Wa=o(((e,t)=>{t.exports=Ua()})),Ga=o((e=>{var t=d(),n=Wa();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),Ka=o(((e,t)=>{t.exports=Ga()})),qa=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Ja=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Ya=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Xa=e=>{let t=Ya(e);return t.charAt(0).toUpperCase()+t.slice(1)},Za={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`},Qa=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},$a=(0,H.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,H.createElement)(`svg`,{ref:c,...Za,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:qa(`lucide`,i),...!a&&!Qa(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,H.createElement)(e,t)),...Array.isArray(a)?a:[a]])),eo=(e,t)=>{let n=(0,H.forwardRef)(({className:n,...r},i)=>(0,H.createElement)($a,{ref:i,iconNode:t,className:qa(`lucide-${Ja(Xa(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Xa(e),n},to=eo(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),no=eo(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function ro(e){return e!==`__proto__`&&e!==`constructor`&&e!==`prototype`}function io(e,t){let n=Object.create(null);if(e)for(let t of Object.keys(e))ro(t)&&(n[t]=e[t]);if(t&&typeof t==`object`)for(let e of Object.keys(t))ro(e)&&(n[e]=t[e]);return n}function ao(e){if(!e)return Object.create(null);let t=Object.create(null);for(let n of Object.keys(e))ro(n)&&(t[n]=e[n]);return t}var oo=()=>{throw Error(`createServerOnlyFn() functions can only be called on the server!`)},so=(e,t)=>{let n=t||e||{};n.method===void 0&&(n.method=`GET`);let r=e=>so(void 0,{...n,validator:e,inputValidator:e});return Object.assign(e=>so(void 0,{...n,...e}),{options:n,middleware:e=>{let t=[...n.middleware||[]];e.map(e=>{g in e?e.options.middleware&&t.push(...e.options.middleware):t.push(e)});let r=so(void 0,{...n,middleware:t});return r[g]=!0,r},validator:r,inputValidator:r,handler:(...e)=>{let[t,r]=e,i={...n,extractedFn:t,serverFn:r},a=[...i.middleware||[],fo(i)];return t.method=n.method,Object.assign(async e=>{let n=await co(a,`client`,{...t,...i,data:e?.data,headers:e?.headers,signal:e?.signal,fetch:e?.fetch,context:ao()}),r=M(n.error);if(r)throw r;if(n.error)throw n.error;return n.result},{...t,method:n.method,__executeServer:async e=>{let n=oo(),r=n.contextAfterGlobalMiddlewares;return await co(a,`server`,{...t,...e,serverFnMeta:t.serverFnMeta,context:io(e.context,r),request:n.request}).then(e=>({result:e.result,error:e.error,context:e.sendContext}))}})}})};async function co(e,t,n){let r=lo([...S()?.functionMiddleware||[],...e]);if(t===`server`){let e=oo({throwIfNotFound:!1});e?.executedRequestMiddlewares&&(r=r.filter(t=>!e.executedRequestMiddlewares.has(t)))}let i=async e=>{let n=r.shift();if(!n)return e;try{let r=`validator`in n.options?n.options.validator:void 0;!r&&`inputValidator`in n.options&&(r=n.options.inputValidator),r&&t===`server`&&(e.data=await uo(r,e.data));let a;if(t===`client`?`client`in n.options&&(a=n.options.client):`server`in n.options&&(a=n.options.server),a){let t=async(t={})=>{let n=await i({...e,...t,context:io(e.context,t.context),sendContext:io(e.sendContext,t.sendContext),headers:bi(e.headers,t.headers),_callSiteFetch:e._callSiteFetch,fetch:e._callSiteFetch??t.fetch??e.fetch,result:t.result===void 0?t instanceof Response?t:e.result:t.result,error:t.error??e.error});if(n.error)throw n.error;return n},n=await a({...e,next:t});if(j(n))return{...e,error:n};if(n instanceof Response)return{...e,result:n};if(!n)throw Error(`User middleware returned undefined. You must call next() or return a result in your middlewares.`);return n}return i(e)}catch(t){return{...e,error:t}}};return i({...n,headers:n.headers||{},sendContext:n.sendContext||{},context:n.context||ao(),_callSiteFetch:n.fetch})}function lo(e,t=100){let n=new Set,r=[],i=(e,a)=>{if(a>t)throw Error(`Middleware nesting depth exceeded maximum of ${t}. Check for circular references.`);e.forEach(e=>{e.options.middleware&&i(e.options.middleware,a+1),n.has(e)||(n.add(e),r.push(e))})};return i(e,0),r}async function uo(e,t){if(e==null)return{};if(`~standard`in e){let n=await e[`~standard`].validate(t);if(n.issues)throw Error(JSON.stringify(n.issues,void 0,2));return n.value}if(`parse`in e)return e.parse(t);if(typeof e==`function`)return e(t);throw Error(`Invalid validator type!`)}function fo(e){return{"~types":void 0,options:{inputValidator:e.validator??e.inputValidator,client:async({next:t,sendContext:n,fetch:r,...i})=>{let a={...i,context:n,fetch:r};return t(await e.extractedFn?.(a))},server:async({next:t,...n})=>{let r=await e.serverFn?.(n);return t({...n,result:r})}}}}var po=(e,t)=>{let n={type:`request`,...t||e},r=e=>po({},Object.assign(n,{validator:e,inputValidator:e}));return{options:n,middleware:e=>po({},Object.assign(n,{middleware:e})),validator:r,inputValidator:r,client:e=>po({},Object.assign(n,{client:e})),server:e=>po({},Object.assign(n,{server:e}))}},mo=po({type:`function`}),ho=l(p()),go=Wa(),_o=Ka();function vo(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=vo(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function yo(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=vo(e))&&(r&&(r+=` `),r+=t);return r}var bo=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},xo=(e,t)=>({classGroupId:e,validator:t}),So=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Co=`-`,wo=[],To=`arbitrary..`,Eo=e=>{let t=ko(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Oo(e);let n=e.split(Co);return Do(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?bo(i,t):t:i||wo}return n[e]||wo}}},Do=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Do(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Co):e.slice(t).join(Co),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Oo=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?To+r:void 0})(),ko=e=>{let{theme:t,classGroups:n}=e;return Ao(n,t)},Ao=(e,t)=>{let n=So();for(let r in e){let i=e[r];jo(i,n,r,t)}return n},jo=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Mo(i,t,n,r)}},Mo=(e,t,n,r)=>{if(typeof e==`string`){No(e,t,n);return}if(typeof e==`function`){Po(e,t,n,r);return}Fo(e,t,n,r)},No=(e,t,n)=>{let r=e===``?t:Io(t,e);r.classGroupId=n},Po=(e,t,n,r)=>{if(Lo(e)){jo(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(xo(n,e))},Fo=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];jo(o,Io(t,a),n,r)}},Io=(e,t)=>{let n=e,r=t.split(Co),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=So(),n.nextPart.set(t,i)),n=i}return n},Lo=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Ro=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},zo=`!`,Bo=`:`,Vo=[],Ho=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Uo=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Bo){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(zo)?(c=s.slice(0,-1),l=!0):s.startsWith(zo)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Ho(t,l,c,u)};if(t){let e=t+Bo,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Ho(Vo,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Wo=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Go=e=>({cache:Ro(e.cacheSize),parseClassName:Uo(e),sortModifiers:Wo(e),postfixLookupClassGroupIds:Ko(e),...Eo(e)}),Ko=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},qo=/\s+/,Jo=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(qo),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+zo:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Yo=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Xo(n))&&(i&&(i+=` `),i+=r);return i},Xo=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Xo(e[r]))&&(n&&(n+=` `),n+=t);return n},Zo=(e,...t)=>{let n,r,i,a,o=o=>(n=Go(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Jo(e,n);return i(e,a),a};return a=o,(...e)=>a(Yo(...e))},Qo=[],$o=e=>{let t=t=>t[e]||Qo;return t.isThemeGetter=!0,t},es=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ts=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ns=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,rs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,is=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,as=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,os=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ss=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,cs=e=>ns.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),ls=e=>!!e&&Number.isInteger(Number(e)),us=e=>e.endsWith(`%`)&&W(e.slice(0,-1)),ds=e=>rs.test(e),fs=()=>!0,ps=e=>is.test(e)&&!as.test(e),ms=()=>!1,hs=e=>os.test(e),gs=e=>ss.test(e),_s=e=>!G(e)&&!K(e),vs=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),ys=e=>Ps(e,Rs,ms),G=e=>es.test(e),bs=e=>Ps(e,zs,ps),xs=e=>Ps(e,Bs,W),Ss=e=>Ps(e,Hs,fs),Cs=e=>Ps(e,Vs,ms),ws=e=>Ps(e,Is,ms),Ts=e=>Ps(e,Ls,gs),Es=e=>Ps(e,Us,hs),K=e=>ts.test(e),Ds=e=>Fs(e,zs),Os=e=>Fs(e,Vs),ks=e=>Fs(e,Is),As=e=>Fs(e,Rs),js=e=>Fs(e,Ls),Ms=e=>Fs(e,Us,!0),Ns=e=>Fs(e,Hs,!0),Ps=(e,t,n)=>{let r=es.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Fs=(e,t,n=!1)=>{let r=ts.exec(e);return r?r[1]?t(r[1]):n:!1},Is=e=>e===`position`||e===`percentage`,Ls=e=>e===`image`||e===`url`,Rs=e=>e===`length`||e===`size`||e===`bg-size`,zs=e=>e===`length`,Bs=e=>e===`number`,Vs=e=>e===`family-name`,Hs=e=>e===`number`||e===`weight`,Us=e=>e===`shadow`,Ws=Zo(()=>{let e=$o(`color`),t=$o(`font`),n=$o(`text`),r=$o(`font-weight`),i=$o(`tracking`),a=$o(`leading`),o=$o(`breakpoint`),s=$o(`container`),c=$o(`spacing`),l=$o(`radius`),u=$o(`shadow`),d=$o(`inset-shadow`),f=$o(`text-shadow`),p=$o(`drop-shadow`),m=$o(`blur`),h=$o(`perspective`),g=$o(`aspect`),_=$o(`ease`),v=$o(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),K,G],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[K,G,c],E=()=>[cs,`full`,`auto`,...w()],D=()=>[ls,`none`,`subgrid`,K,G],O=()=>[`auto`,{span:[`full`,ls,K,G]},ls,K,G],k=()=>[ls,`auto`,K,G],A=()=>[`auto`,`min`,`max`,`fr`,K,G],j=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],M=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],N=()=>[`auto`,...w()],P=()=>[cs,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],F=()=>[cs,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],I=()=>[cs,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],L=()=>[e,K,G],ee=()=>[...b(),ks,ws,{position:[K,G]}],te=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ne=()=>[`auto`,`cover`,`contain`,As,ys,{size:[K,G]}],re=()=>[us,Ds,bs],ie=()=>[``,`none`,`full`,l,K,G],ae=()=>[``,W,Ds,bs],oe=()=>[`solid`,`dashed`,`dotted`,`double`],R=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],z=()=>[W,us,ks,ws],se=()=>[``,`none`,m,K,G],ce=()=>[`none`,W,K,G],B=()=>[`none`,W,K,G],le=()=>[W,K,G],ue=()=>[cs,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[ds],breakpoint:[ds],color:[fs],container:[ds],"drop-shadow":[ds],ease:[`in`,`out`,`in-out`],font:[_s],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[ds],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[ds],shadow:[ds],spacing:[`px`,W],text:[ds],"text-shadow":[ds],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,cs,G,K,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,K,G]}],"container-named":[vs],columns:[{columns:[W,G,K,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{"inset-s":E(),start:E()}],end:[{"inset-e":E(),end:E()}],"inset-bs":[{"inset-bs":E()}],"inset-be":[{"inset-be":E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[ls,`auto`,K,G]}],basis:[{basis:[cs,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[W,cs,`auto`,`initial`,`none`,G]}],grow:[{grow:[``,W,K,G]}],shrink:[{shrink:[``,W,K,G]}],order:[{order:[ls,`first`,`last`,`none`,K,G]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...j(),`normal`]}],"justify-items":[{"justify-items":[...M(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...M()]}],"align-content":[{content:[`normal`,...j()]}],"align-items":[{items:[...M(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...M(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":j()}],"place-items":[{"place-items":[...M(),`baseline`]}],"place-self":[{"place-self":[`auto`,...M()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:P()}],"inline-size":[{inline:[`auto`,...F()]}],"min-inline-size":[{"min-inline":[`auto`,...F()]}],"max-inline-size":[{"max-inline":[`none`,...F()]}],"block-size":[{block:[`auto`,...I()]}],"min-block-size":[{"min-block":[`auto`,...I()]}],"max-block-size":[{"max-block":[`none`,...I()]}],w:[{w:[s,`screen`,...P()]}],"min-w":[{"min-w":[s,`screen`,`none`,...P()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...P()]}],h:[{h:[`screen`,`lh`,...P()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...P()]}],"max-h":[{"max-h":[`screen`,`lh`,...P()]}],"font-size":[{text:[`base`,n,Ds,bs]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Ns,Ss]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,us,G]}],"font-family":[{font:[Os,Cs,t]}],"font-features":[{"font-features":[G]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,K,G]}],"line-clamp":[{"line-clamp":[W,`none`,K,xs]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,K,G]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,K,G]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...oe(),`wavy`]}],"text-decoration-thickness":[{decoration:[W,`from-font`,`auto`,K,bs]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[W,`auto`,K,G]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[ls,K,G]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,K,G]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,K,G]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ee()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},ls,K,G],radial:[``,K,G],conic:[ls,K,G]},js,Ts]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-bs":[{"border-bs":ae()}],"border-w-be":[{"border-be":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...oe(),`hidden`,`none`]}],"divide-style":[{divide:[...oe(),`hidden`,`none`]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-bs":[{"border-bs":L()}],"border-color-be":[{"border-be":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...oe(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[W,K,G]}],"outline-w":[{outline:[``,W,Ds,bs]}],"outline-color":[{outline:L()}],shadow:[{shadow:[``,`none`,u,Ms,Es]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ms,Es]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:ae()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[W,bs]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":[`none`,f,Ms,Es]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[W,K,G]}],"mix-blend":[{"mix-blend":[...R(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":R()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":z()}],"mask-image-linear-to-pos":[{"mask-linear-to":z()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":z()}],"mask-image-t-to-pos":[{"mask-t-to":z()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":z()}],"mask-image-r-to-pos":[{"mask-r-to":z()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":z()}],"mask-image-b-to-pos":[{"mask-b-to":z()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":z()}],"mask-image-l-to-pos":[{"mask-l-to":z()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":z()}],"mask-image-x-to-pos":[{"mask-x-to":z()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":z()}],"mask-image-y-to-pos":[{"mask-y-to":z()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[K,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":z()}],"mask-image-radial-to-pos":[{"mask-radial-to":z()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":z()}],"mask-image-conic-to-pos":[{"mask-conic-to":z()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ee()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,K,G]}],filter:[{filter:[``,`none`,K,G]}],blur:[{blur:se()}],brightness:[{brightness:[W,K,G]}],contrast:[{contrast:[W,K,G]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ms,Es]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:[``,W,K,G]}],"hue-rotate":[{"hue-rotate":[W,K,G]}],invert:[{invert:[``,W,K,G]}],saturate:[{saturate:[W,K,G]}],sepia:[{sepia:[``,W,K,G]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,K,G]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[W,K,G]}],"backdrop-contrast":[{"backdrop-contrast":[W,K,G]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,W,K,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,K,G]}],"backdrop-invert":[{"backdrop-invert":[``,W,K,G]}],"backdrop-opacity":[{"backdrop-opacity":[W,K,G]}],"backdrop-saturate":[{"backdrop-saturate":[W,K,G]}],"backdrop-sepia":[{"backdrop-sepia":[``,W,K,G]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,K,G]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[W,`initial`,K,G]}],ease:[{ease:[`linear`,`initial`,_,K,G]}],delay:[{delay:[W,K,G]}],animate:[{animate:[`none`,v,K,G]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,K,G]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:B()}],"scale-x":[{"scale-x":B()}],"scale-y":[{"scale-y":B()}],"scale-z":[{"scale-z":B()}],"scale-3d":[`scale-3d`],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[K,G,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ue()}],"translate-x":[{"translate-x":ue()}],"translate-y":[{"translate-y":ue()}],"translate-z":[{"translate-z":ue()}],"translate-none":[`translate-none`],zoom:[{zoom:[ls,K,G]}],accent:[{accent:L()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:L()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,K,G]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":L()}],"scrollbar-track-color":[{"scrollbar-track":L()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,K,G]}],fill:[{fill:[`none`,...L()]}],"stroke-w":[{stroke:[W,Ds,bs,xs]}],stroke:[{stroke:[`none`,...L()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Gs(...e){return Ws(yo(e))}function Ks({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`skeleton`,className:Gs(`bg-muted rounded-md animate-pulse motion-reduce:animate-none`,e),...t})}function qs(){return typeof window<`u`}function Js(e){return Zs(e)?(e.nodeName||``).toLowerCase():`#document`}function Ys(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xs(e){return((Zs(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Zs(e){return qs()?e instanceof Node||e instanceof Ys(e).Node:!1}function q(e){return qs()?e instanceof Element||e instanceof Ys(e).Element:!1}function Qs(e){return qs()?e instanceof HTMLElement||e instanceof Ys(e).HTMLElement:!1}function $s(e){return!qs()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Ys(e).ShadowRoot}function ec(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=dc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function tc(e){return/^(table|td|th)$/.test(Js(e))}function nc(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var rc=/transform|translate|scale|rotate|perspective|filter/,ic=/paint|layout|strict|content/,ac=e=>!!e&&e!==`none`,oc;function sc(e){let t=q(e)?dc(e):e;return ac(t.transform)||ac(t.translate)||ac(t.scale)||ac(t.rotate)||ac(t.perspective)||!lc()&&(ac(t.backdropFilter)||ac(t.filter))||rc.test(t.willChange||``)||ic.test(t.contain||``)}function cc(e){let t=pc(e);for(;Qs(t)&&!uc(t);){if(sc(t))return t;if(nc(t))return null;t=pc(t)}return null}function lc(){return oc??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),oc}function uc(e){return/^(html|body|#document)$/.test(Js(e))}function dc(e){return Ys(e).getComputedStyle(e)}function fc(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pc(e){if(Js(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||$s(e)&&e.host||Xs(e);return $s(t)?t.host:t}function mc(e){let t=pc(e);return uc(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qs(t)&&ec(t)?t:mc(t)}function hc(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=mc(e),i=r===e.ownerDocument?.body,a=Ys(r);if(i){let e=gc(a);return t.concat(a,a.visualViewport||[],ec(r)?r:[],e&&n?hc(e):[])}else return t.concat(r,hc(r,[],n))}function gc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var _c={...H},vc={};function yc(e,t){let n=H.useRef(vc);return n.current===vc&&(n.current=e(t)),n}var bc=_c.useInsertionEffect,xc=bc&&bc!==_c.useLayoutEffect?bc:e=>e();function J(e){let t=yc(Sc).current;return t.next=e,xc(t.effect),t.trampoline}function Sc(){let e={next:void 0,callback:Cc,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Cc(){}var Y=typeof document<`u`?H.useLayoutEffect:()=>{};function wc(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var Tc={};function Ec(e,t,n,r,i){if(!n&&!r&&!i&&!e)return Oc(t);let a=Oc(e);return t&&(a=kc(a,t)),n&&(a=kc(a,n)),r&&(a=kc(a,r)),i&&(a=kc(a,i)),a}function Dc(e){if(e.length===0)return Tc;if(e.length===1)return Oc(e[0]);let t=Oc(e[0]);for(let n=1;n<e.length;n+=1)t=kc(t,e[n]);return t}function Oc(e){return Nc(e)?{...Pc(e,Tc)}:Ac(e)}function kc(e,t){return Nc(t)?Pc(t,e):jc(e,t)}function Ac(e){let t={...e};for(let e in t){let n=t[e];Mc(e,n)&&(t[e]=Ic(n))}return t}function jc(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=wc(e.style,r);break;case`className`:e[n]=Rc(e.className,r);break;default:Mc(n,r)?e[n]=Fc(e[n],r):e[n]=r}}return e}function Mc(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function Nc(e){return typeof e==`function`}function Pc(e,t){return Nc(e)?e(t):e??Tc}function Fc(e,t){return t?e?(...n)=>{let r=n[0];if(zc(r)){let i=r;Lc(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:Ic(t):e}function Ic(e){return e&&((...t)=>{let n=t[0];return zc(n)&&Lc(n),e(...t)})}function Lc(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Rc(e,t){return t?e?t+` `+e:t:e}function zc(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function Bc(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var Vc=Bc(`https://base-ui.com/production-error`,`Base UI`),Hc=H.createContext(void 0);function Uc(e=!1){let t=H.useContext(Hc);if(t===void 0&&!e)throw Error(Vc(16));return t}function Wc(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:H.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function Gc(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=H.useRef(null),s=Uc(!0),c=a??s!==void 0,{props:l}=Wc({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=H.useCallback(()=>{let e=o.current;Kc(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return Y(u,[u]),{getButtonProps:H.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return Ec({onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(Lc(e),o?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,a=e.currentTarget,s=Kc(a),l=!i&&qc(a),u=r&&(i?s:!l),d=e.key===`Enter`,f=e.key===` `,p=a.getAttribute(`role`),m=p?.startsWith(`menuitem`)||p===`option`||p===`gridcell`;if(r&&c&&f){if(e.defaultPrevented&&m)return;e.preventDefault(),l||i&&s?(a.click(),e.preventBaseUIHandler()):u&&(n?.(e),e.preventBaseUIHandler());return}u&&(!i&&(f||d)&&e.preventDefault(),!i&&d&&n?.(e))},onKeyUp(e){if(!t){if(Lc(e),a?.(e),e.target===e.currentTarget&&i&&c&&Kc(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!c&&e.key===` `&&n?.(e)}},onPointerDown(e){if(t){e.preventDefault();return}s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:J(e=>{o.current=e,u()})}}function Kc(e){return Qs(e)&&e.tagName===`BUTTON`}function qc(e){return!!(e?.tagName===`A`&&e?.href)}function Jc(e,t,n,r){let i=yc(Xc).current;return Zc(i,e,t,n,r)&&$c(i,[e,t,n,r]),i.callback}function Yc(e){let t=yc(Xc).current;return Qc(t,e)&&$c(t,e),t.callback}function Xc(){return{callback:null,cleanup:null,refs:[]}}function Zc(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function Qc(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function $c(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n;break;default:}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null;break;default:}}}}}}var el=19;function tl(e){return el>=e}function nl(e){if(!H.isValidElement(e))return null;let t=e,n=t.props;return(tl(19)?n?.ref:t.ref)??null}function rl(){}var il=Object.freeze([]),al=Object.freeze({});function ol(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function sl(e,t){return typeof e==`function`?e(t):e}function cl(e,t){return typeof e==`function`?e(t):e}function ll(e,t,n={}){let r=t.render,i=ul(t,n);return n.enabled===!1?null:pl(e,r,i,n.state??al)}function ul(e,t={}){let{className:n,style:r,render:i}=e,{state:a=al,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?sl(n,a):void 0,d=l?cl(r,a):void 0,f=l?ol(a,c):al,p=l&&s?dl(s):void 0,m=l?wc(f,p)??{}:al;return typeof document<`u`&&(l?Array.isArray(o)?m.ref=Yc([m.ref,nl(i),...o]):m.ref=Jc(m.ref,nl(i),o):Jc(null,null)),l?(u!==void 0&&(m.className=Rc(m.className,u)),d!==void 0&&(m.style=wc(m.style,d)),m):al}function dl(e){return Array.isArray(e)?Dc(e):Ec(void 0,e)}var fl=Symbol.for(`react.lazy`);function pl(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=Ec(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===fl&&(i=H.Children.toArray(t)[0]),H.cloneElement(i,e)}if(e&&typeof e==`string`)return ml(e,n);throw Error(Vc(8))}function ml(e,t){return e===`button`?(0,H.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,H.createElement)(`img`,{alt:``,...t,key:t.key}):H.createElement(e,t)}var hl=H.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=Gc({disabled:i,focusableWhenDisabled:a,native:o});return ll(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),gl=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,_l=yo,vl=(e,t)=>n=>{if(t?.variants==null)return _l(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=gl(t)||gl(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return _l(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},yl=vl(`focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium focus-visible:ring-[2px] aria-invalid:ring-[2px] [&_svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap cursor-pointer transition-all disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none group/button select-none`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border dark:bg-input/30 hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,xs:`h-5 gap-1 rounded-sm px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-2.5`,sm:`h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,lg:`h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-4`,icon:`size-7 [&_svg:not([class*='size-'])]:size-3.5`,"icon-xs":`size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5`,"icon-sm":`size-6 [&_svg:not([class*='size-'])]:size-3`,"icon-lg":`size-8 [&_svg:not([class*='size-'])]:size-4`}},defaultVariants:{variant:`default`,size:`default`}});function bl({className:e,variant:t=`default`,size:n=`default`,...r}){return(0,U.jsx)(hl,{"data-slot":`button`,"data-size":n,"data-variant":t,className:Gs(yl({variant:t,size:n,className:e})),...r})}var xl=[],Sl=void 0;function Cl(){return Sl}function wl(e){xl.push(e)}function Tl(e){let t=(t,n)=>{let r=yc(Dl).current,i;try{Sl=r;for(let e of xl)e.before(r);i=e(t,n);for(let e of xl)e.after(r);r.didInitialize=!0}finally{Sl=void 0}return i};return t.displayName=e.displayName||e.name,t}function El(e){return H.forwardRef(Tl(e))}function Dl(){return{didInitialize:!1}}function Ol(e){let t=H.useRef(!0);t.current&&(t.current=!1,e())}var kl=H.createContext(void 0);function Al(e){let t=H.useContext(kl);if(t===void 0&&!e)throw Error(Vc(72));return t}var jl=[];function Ml(e){H.useEffect(e,jl)}var Nl=0,Pl=class e{static create(){return new e}currentId=Nl;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Nl,t()},e)}isStarted(){return this.currentId!==Nl}clear=()=>{this.currentId!==Nl&&(clearTimeout(this.currentId),this.currentId=Nl)};disposeEffect=()=>this.clear};function Fl(){let e=yc(Pl.create).current;return Ml(e.disposeEffect),e}var Il=typeof navigator<`u`,Ll=ql(),Rl=Yl(),zl=Jl(),Bl=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),Vl=Ll.platform===`MacIntel`&&Ll.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Ll.platform),Hl=Il&&/firefox/i.test(zl),Ul=Il&&/apple/i.test(navigator.vendor);Il&&/Edg/i.test(zl);var Wl=Il&&/android/i.test(Rl)||/android/i.test(zl),Gl=Il&&Rl.toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints,Kl=zl.includes(`jsdom/`);function ql(){if(!Il)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function Jl(){if(!Il)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function Yl(){if(!Il)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}function Xl(e){e.preventDefault(),e.stopPropagation()}function Zl(e){return`nativeEvent`in e}function Ql(e){return e.pointerType===``&&e.isTrusted?!0:Wl&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function $l(e){return Kl?!1:!Wl&&e.width===0&&e.height===0||Wl&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function eu(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function tu(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var nu=`data-base-ui-focusable`,ru=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,iu=`ArrowLeft`,au=`ArrowRight`,ou=`ArrowUp`,su=`ArrowDown`;function cu(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function X(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&$s(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function lu(e){return`composedPath`in e?e.composedPath()[0]:e.target}function uu(e,t){if(!q(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(X(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function du(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function fu(e){return e.matches(`html,body`)}function pu(e){return Qs(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function mu(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${ru}`)!=null}function hu(e){return e?e.getAttribute(`role`)===`combobox`&&pu(e):!1}function gu(e){if(!e||Kl)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function _u(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function vu(e,t){return t!=null&&!eu(t)?0:typeof e==`function`?e():e}function yu(e,t,n){let r=vu(e,n);return typeof r==`number`?r:r?.[t]}function bu(e){return typeof e==`function`?e():e}function xu(e,t){return t||e===`click`||e===`mousedown`}function Su(e){return e?.includes(`mouse`)&&e!==`mousedown`}var Cu=`none`,wu=`trigger-press`,Tu=`trigger-hover`,Eu=`trigger-focus`,Du=`outside-press`,Ou=`item-press`,ku=`close-press`,Au=`clear-press`,ju=`track-press`,Mu=`input-change`,Nu=`input-clear`,Pu=`input-press`,Fu=`focus-out`,Iu=`escape-key`,Lu=`list-navigation`,Ru=`keyboard`,zu=`drag`,Bu=`cancel-open`,Vu=`disabled`,Hu=`missing`,Uu=`initial`,Wu=`imperative-action`,Gu=`window-resize`;function Ku(e,t,n,r){let i=!1,a=!1,o=r??al;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function qu(e,t,n){let r=n??al;return{reason:e,event:t??new Event(`base-ui`),...r}}var Ju=H.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Pl,currentIdRef:{current:null},currentContextRef:{current:null}});function Yu(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=H.useRef(n),a=H.useRef(n),o=H.useRef(null),s=H.useRef(null),c=Fl();return(0,U.jsx)(Ju.Provider,{value:H.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function Xu(e,t={open:!1}){let{open:n}=t,r=`rootStore`in e?e.rootStore:e,i=r.useState(`floatingId`),{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=H.useContext(Ju),[f,p]=H.useState(!1);return Y(()=>{function e(){p(!1),l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current}if(a.current&&!n&&a.current===i){if(p(!1),s){let t=i;return d.start(s,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{d.clear()}}e()}},[n,i,a,o,s,c,l,d,r]),Y(()=>{if(!n)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:r.setOpen,setIsInstantPhase:p},a.current=i,o.current={open:0,close:yu(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,Ku(Cu))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),Y(()=>()=>{l.current=null},[l]),H.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function Z(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Zu(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function Qu(e){let t=yc($u,e).current;return t.next=e,Y(t.effect),t}function $u(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var ed=null;globalThis.requestAnimationFrame;var td=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},nd=class e{static create(){return new e}static request(e){return td.request(e)}static cancel(e){return td.cancel(e)}currentId=ed;request(e){this.cancel(),this.currentId=td.request(()=>{this.currentId=ed,e()})}cancel=()=>{this.currentId!==ed&&(td.cancel(this.currentId),this.currentId=ed)};disposeEffect=()=>this.cancel};function rd(){let e=yc(nd.create).current;return Ml(e.disposeEffect),e}function Q(e){return e?.ownerDocument||document}var id={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},ad={...id,position:`fixed`,top:0,left:0},od={...id,position:`absolute`},sd=H.forwardRef(function(e,t){let[n,r]=H.useState();Y(()=>{Ul&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,U.jsx)(`span`,{...e,ref:t,style:ad,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})}),cd=[`top`,`right`,`bottom`,`left`],ld=Math.min,ud=Math.max,dd=Math.round,fd=Math.floor,pd=e=>({x:e,y:e}),md={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function hd(e,t,n){return ud(e,ld(t,n))}function gd(e,t){return typeof e==`function`?e(t):e}function _d(e){return e.split(`-`)[0]}function vd(e){return e.split(`-`)[1]}function yd(e){return e===`x`?`y`:`x`}function bd(e){return e===`y`?`height`:`width`}function xd(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Sd(e){return yd(xd(e))}function Cd(e,t,n){n===void 0&&(n=!1);let r=vd(e),i=Sd(e),a=bd(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Md(o)),[o,Md(o)]}function wd(e){let t=Md(e);return[Td(e),t,Td(t)]}function Td(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Ed=[`left`,`right`],Dd=[`right`,`left`],Od=[`top`,`bottom`],kd=[`bottom`,`top`];function Ad(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Dd:Ed:t?Ed:Dd;case`left`:case`right`:return t?Od:kd;default:return[]}}function jd(e,t,n,r){let i=vd(e),a=Ad(_d(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Td)))),a}function Md(e){let t=_d(e);return md[t]+e.slice(t.length)}function Nd(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pd(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Nd(e)}function Fd(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Id(e,t,n){return Math.floor(e/t)!==n}function Ld(e,t){return t<0||t>=e.length}function Rd(e,t){return Bd(e.current,{disabledIndices:t})}function zd(e,t){return Bd(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Bd(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Gd(e,a,r));return a}function Vd(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=e.closest(`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h<e.length,y=_||o,b=o=>{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f<n.length;f+=1,o+=d){if(o<0||o>=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1);o=a[i(t,u,n[o][e]??n[o][0])]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!Gd(e,n,s))return n}}},x=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=fd(l/y)+1;for(let t=u-n+i,c=0;c<o;c+=1,t+=i){if(t<0||t>l){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!Gd(e,r,s))return r}};d&&Xl(t);let S=b(p)??x(p);if(S!==void 0)f=S;else if(u===-1)f=p===`up`?l:c;else if(f=Bd(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-y<c||f<0)){let e=u%y,n=l%y,r=l-(n-e);f=n===e?l:n>e?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=Bd(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}Ld(e,f)&&(f=u)}if(n===`both`){let n=fd(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&Xl(t),u%o===o-1?r&&(f=Bd(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=Bd(e,{startingIndex:u,disabledIndices:s}),r&&Id(f,o,n)&&(f=Bd(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),Id(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&Xl(t),u%o===0?r&&(f=Bd(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=Bd(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&Id(f,o,n)&&(f=Bd(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),Id(f,o,n)&&(f=u));let c=fd(l/o)===n;Ld(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:Bd(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function Hd(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:a},o)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;r<e;r+=1)for(let e=0;e<a;e+=1)n.push(i+r+e*t);i%t+e<=t&&n.every(e=>r[e]==null)?(n.forEach(e=>{r[e]=o}),s=!0):i+=1}}),[...r]}function Ud(e,t,n,r,i){if(e===-1)return-1;let a=n.indexOf(e),o=t[e];switch(i){case`tl`:return a;case`tr`:return o?a+o.width-1:a;case`bl`:return o?a+(o.height-1)*r:a;case`br`:return n.lastIndexOf(e);default:return-1}}function Wd(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function Gd(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?qd(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function Kd(e){return e.visibility===`hidden`||e.visibility===`collapse`}function qd(e,t=e?dc(e):null){return!e||!e.isConnected||!t||Kd(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var Jd=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Yd(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return $s(n)?n.host:null}function Xd(e){for(let t of Array.from(e.children))if(Js(t)===`summary`)return t;return null}function Zd(e,t){let n=Xd(t);return!!n&&(e===n||X(n,e))}function Qd(e){let t=e?Js(e):``;return e!=null&&e.matches(Jd)&&(t!==`summary`||e.parentElement!=null&&Js(e.parentElement)===`details`&&Xd(e.parentElement)===e)&&(t!==`details`||Xd(e)==null)&&(t!==`input`||e.type!==`hidden`)}function $d(e){if(!Qd(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Yd(t)){let n=t!==e,r=Js(t)===`slot`;if(t.hasAttribute(`inert`)||n&&Js(t)===`details`&&!t.open&&!Zd(e,t)||t.hasAttribute(`hidden`)||!r&&!ef(t,n))return!1}return!0}function ef(e,t){let n=dc(e);return t?n.display!==`none`:qd(e,n)}function tf(e){let t=e.tabIndex;if(t<0){let t=Js(e);if(t===`details`||t===`audio`||t===`video`||Qs(e)&&e.isContentEditable)return 0}return t}function nf(e){if(Js(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function rf(e,t){let n=nf(e);if(!n)return!0;let r=t.find(e=>{let t=nf(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=nf(e);return t?.name===n.name&&t.form===n.form})===n}function af(e){if(Qs(e)&&Js(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Qs(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function of(e,t){af(e).forEach(e=>{Qd(e)&&t.push(e),of(e,t)})}function sf(e,t,n){af(e).forEach(e=>{Qs(e)&&e.matches(t)&&n.push(e),sf(e,t,n)})}function cf(e){return $d(e)&&tf(e)>=0}function lf(e){let t=[];return of(e,t),t.filter($d)}function uf(e){let t=lf(e);return t.filter(e=>tf(e)>=0&&rf(e,t))}function df(e,t){let n=uf(e),r=n.length;if(r===0)return;let i=cu(Q(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function ff(e){return df(Q(e).body,1)||e}function pf(e){return df(Q(e).body,-1)||e}function mf(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!X(n,r)}function hf(e){uf(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function gf(e){let t=[];sf(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function _f(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],..._f(e,t.id,n)])}function vf(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function yf(e){return`data-base-ui-${e}`}var bf=0;function xf(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(bf);function a(){i&&!i()||e?.focus({preventScroll:n})}if(r)return a(),rl;let o=requestAnimationFrame(a);return bf=o,()=>{bf===o&&(cancelAnimationFrame(o),bf=0)}}var Sf={inert:new WeakMap,"aria-hidden":new WeakMap},Cf=`data-base-ui-inert`,wf={inert:new WeakSet,"aria-hidden":new WeakSet},Tf=new WeakMap,Ef=0;function Df(e){return wf[e]}function Of(e){return e?$s(e)?e.host:Of(e.parentNode):null}var kf=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=Of(t);return e.contains(n)?n:null}).filter(e=>e!=null),Af=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},jf=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{Js(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Mf(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=kf(t,e),u=i?kf(t,a):[],d=new Set(u),f=i?jf(t,Af(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=Sf[o],n=Df(o);c=n,s=e;let r=kf(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);jf(t,Af(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=r!==null&&r!==`false`,a=(e.get(t)||0)+1;e.set(t,a),p.push(t),a===1&&i&&n.add(t),i||t.setAttribute(o,o===`inert`?``:`true`)})}return i&&f.forEach(e=>{let t=(Tf.get(e)||0)+1;Tf.set(e,t),m.push(e),t===1&&e.setAttribute(Cf,``)}),Ef+=1,()=>{s&&p.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!c?.has(e)&&o&&e.removeAttribute(o),c?.delete(e))}),i&&m.forEach(e=>{let t=(Tf.get(e)||0)-1;Tf.set(e,t),t||e.removeAttribute(Cf)}),--Ef,Ef||(Sf.inert=new WeakMap,Sf[`aria-hidden`]=new WeakMap,wf.inert=new WeakSet,wf[`aria-hidden`]=new WeakSet,Tf=new WeakMap)}}function Nf(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=Q(e[0]).body;return Mf(e,o,n,r,{mark:i,markerIgnoreElements:a})}var Pf=0;function Ff(e,t=`mui`){let[n,r]=H.useState(e),i=e||n;return H.useEffect(()=>{n??(Pf+=1,r(`${t}-${Pf}`))},[n,t]),i}var If=_c.useId;function Lf(e,t){if(If!==void 0){let n=If();return e??(t?`${t}-${n}`:n)}return Ff(e,t)}var Rf={style:{transition:`none`}},zf=`data-base-ui-click-trigger`,Bf={fallbackAxisSide:`none`},Vf={fallbackAxisSide:`end`},Hf={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},Uf=H.createContext(null),Wf=()=>H.useContext(Uf),Gf=yf(`portal`);function Kf(e={}){let{ref:t,container:n,componentProps:r=al,elementProps:i}=e,a=Lf(),o=Wf()?.portalNode,[s,c]=H.useState(null),[l,u]=H.useState(null),d=J(e=>{e!==null&&u(e)}),f=H.useRef(null);Y(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(Zs(n)?n:n.current))??o??document.body;if(e==null){f.current&&(f.current=null,u(null),c(null));return}f.current!==e&&(f.current=e,u(null),c(e))},[n,o,a]);let p=ll(`div`,r,{ref:[t,d],props:[{id:a,[Gf]:``},i]});return{portalNode:l,portalSubtree:s&&p?ho.createPortal(p,s):null}}var qf=H.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,renderGuards:s,...c}=e,{portalNode:l,portalSubtree:u}=Kf({container:o,ref:t,componentProps:e,elementProps:c}),d=H.useRef(null),f=H.useRef(null),p=H.useRef(null),m=H.useRef(null),[h,g]=H.useState(null),_=H.useRef(!1),v=h?.modal,y=h?.open,b=typeof s==`boolean`?s:!!h&&!h.modal&&h.open&&!!l;H.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&mf(e)&&(e.type===`focusin`?_.current&&=(gf(l),!1):(hf(l),_.current=!0))}return Zu(Z(l,`focusin`,e,!0),Z(l,`focusout`,e,!0))},[l,v]),H.useEffect(()=>{!l||y!==!1||(gf(l),_.current=!1)},[y,l]);let x=H.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,U.jsxs)(H.Fragment,{children:[u,(0,U.jsxs)(Uf.Provider,{value:x,children:[b&&l&&(0,U.jsx)(sd,{"data-type":`outside`,ref:d,onFocus:e=>{mf(e,l)?p.current?.focus():pf(h?h.domReference:null)?.focus()}}),b&&l&&(0,U.jsx)(`span`,{"aria-owns":l.id,style:Hf}),l&&ho.createPortal(a,l),b&&l&&(0,U.jsx)(sd,{"data-type":`outside`,ref:f,onFocus:e=>{mf(e,l)?m.current?.focus():(ff(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,Ku(`focus-out`,e.nativeEvent)))}})]})]})});function Jf(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Yf=H.createContext(null),Xf=H.createContext(null),Zf=()=>H.useContext(Yf)?.id||null,Qf=e=>{let t=H.useContext(Xf);return e??t};function $f(e){return e==null?e:`current`in e?e.current:e}function ep(e,t){let n=Ys(lu(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var tp=20,np=[];function rp(){np=np.filter(e=>e.deref()?.isConnected)}function ip(e){rp(),e&&Js(e)!==`body`&&(np.push(new WeakRef(e)),np.length>tp&&(np=np.slice(-tp)))}function ap(){return rp(),np[np.length-1]?.deref()}function op(e){return e?cf(e)?e:uf(e)[0]||e:null}function sp(e,t){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=lf(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return cf(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),r=e.getAttribute(`tabindex`);t.current.includes(`floating`)||n.length===0?r!==`0`&&e.setAttribute(`tabindex`,`0`):(r!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function cp(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:p,getInsideElements:m}=e,h=`rootStore`in t?t.rootStore:t,g=h.useState(`open`),_=h.useState(`domReferenceElement`),v=h.useState(`floatingElement`),{events:y,dataRef:b}=h.context,x=J(()=>b.current.floatingContext?.nodeId),S=i===!1,C=hu(_)&&S,w=H.useRef([`content`]),E=Qu(i),D=Qu(a),O=Qu(l),k=Qf(p),A=Wf(),j=H.useRef(!1),M=H.useRef(!1),N=H.useRef(!1),P=H.useRef(null),F=H.useRef(``),I=H.useRef(``),L=H.useRef(null),ee=H.useRef(null),te=Jc(L,f,A?.beforeInsideRef),ne=Jc(ee,A?.afterInsideRef),re=Fl(),ie=Fl(),ae=rd(),oe=A!=null,R=_u(v),z=J((e=R)=>e?uf(e):[]),se=J(()=>m?.().filter(e=>e!=null)??[]);H.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&X(R,cu(Q(R)))&&z().length===0&&!C&&Xl(e)}return Z(Q(R),`keydown`,e)},[r,R,s,C,z]),H.useEffect(()=>{if(r||!g)return;let e=Q(R);function t(){N.current=!1}function n(e){let t=lu(e),n=se();N.current=!(X(v,t)||X(_,t)||X(A?.portalNode,t)||n.some(e=>e===t||X(e,t))),I.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(M.current=!0)}function i(){I.current=`keyboard`}return Zu(Z(e,`pointerdown`,n,!0),Z(e,`pointerup`,t,!0),Z(e,`pointercancel`,t,!0),Z(e,`keydown`,i,!0))},[r,v,_,R,g,A,se]),H.useEffect(()=>{if(r||!c)return;let e=Q(R);function t(){M.current=!0,ie.start(0,()=>{M.current=!1})}function n(e){let t=lu(e);cf(t)&&(P.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=lu(t);queueMicrotask(()=>{let a=x(),c=h.context.triggerElements,l=se(),f=n?.hasAttribute(yf(`focus-guard`))&&[L.current,ee.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,$f(d),$f(u)].includes(n),p=!(X(_,n)||X(v,n)||X(n,v)||X(A?.portalNode,n)||l.some(e=>e===n||X(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>X(e,n))||f||k&&(_f(k.nodesRef.current,a).find(e=>X(e.context?.elements.floating,n)||X(e.context?.elements.domReference,n))||vf(k.nodesRef.current,a).find(e=>[e.context?.elements.floating,_u(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===_&&R&&sp(R,w),o&&r!==_&&!qd(i)&&cu(e)===e.body){if(Qs(R)&&(R.focus(),o===`popup`)){ae.request(()=>{R.focus()});return}let e=z(),t=P.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||R;Qs(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(C||!s)&&n&&p&&!M.current&&(C||n!==ap())&&(j.current=!0,h.setOpen(!1,Ku(Fu,t)))})}function a(){N.current||(b.current.insideReactTree=!0,re.start(0,()=>{b.current.insideReactTree=!1}))}let l=Qs(_)?_:null;if(!(!v&&!l))return Zu(l&&Z(l,`focusout`,i),l&&Z(l,`pointerdown`,t),v&&Z(v,`focusin`,n),v&&Z(v,`focusout`,i),v&&A&&Z(v,`focusout`,a,!0))},[r,_,v,R,s,k,A,h,c,o,z,C,x,w,b,re,ie,ae,u,d,se]),H.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(A?.portalNode?.querySelectorAll(`[${yf(`portal`)}]`)||[]),t=(k?vf(k.nodesRef.current,x()):[]).find(e=>hu(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Nf([...[v,...e,L.current,ee.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...se()],t,$f(d),$f(u),C?_:null].filter(e=>e!=null),{ariaHidden:s||C,mark:!1}),i=Nf([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,s,A,C,k,x,u,d,se]),Y(()=>{if(!g||r||!Qs(R))return;let e=Q(R),t=cu(e);queueMicrotask(()=>{let n=E.current,r=typeof n==`function`?n(O.current||``):n;if(r===void 0||r===!1||X(R,t))return;let i=null,a=()=>(i??=z(R),i[0]||R),o;o=r===!0||r===null?a():$f(r),o||=a();let s=X(R,cu(e));xf(o,{preventScroll:o===R,shouldFocus(){if(s)return!0;let t=cu(e);return!(t!==o&&X(R,t))}})})},[r,g,R,z,E,O]),Y(()=>{if(r||!R)return;let e=Q(R);ip(cu(e));function t(e){if(e.open||(F.current=ep(e.nativeEvent,I.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(j.current=!0),e.reason===`outside-press`)if(e.nested)j.current=!1;else if(Ql(e.nativeEvent)||$l(e.nativeEvent))j.current=!1;else{let e=!1;Q(R).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?j.current=!1:j.current=!0}}y.on(`openchange`,t);function n(){let e=D.current,t=typeof e==`function`?e(F.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`)return _?.isConnected?_:ap()||null;let n=_?.isConnected?_:ap();return $f(t)||n||null}return()=>{y.off(`openchange`,t);let r=cu(e),i=se(),a=X(v,r)||i.some(e=>e===r||X(e,r))||k&&_f(k.nodesRef.current,x(),!1).some(e=>X(e.context?.elements.floating,r)),o=D.current,s=n();queueMicrotask(()=>{let t=op(s),n=typeof o!=`boolean`;o&&!j.current&&Qs(t)&&(!(!n&&t!==r&&r!==e.body)||a)&&t.focus({preventScroll:!0}),j.current=!1})}},[r,v,R,D,y,k,_,x,se]),Y(()=>{if(!Bl||g||!v)return;let e=cu(Q(v));!Qs(e)||!pu(e)||X(v,e)&&e.blur()},[g,v]),Y(()=>{if(!(r||!A))return A.setFocusManagerState({modal:s,closeOnFocusOut:c,open:g,onOpenChange:h.setOpen,domReference:_}),()=>{A.setFocusManagerState(null)}},[r,A,s,g,h,c,_]),Y(()=>{if(!(r||!R))return sp(R,w),()=>{queueMicrotask(rp)}},[r,R,w]);let ce=!r&&(s?!C:!0)&&(oe||s);return(0,U.jsxs)(H.Fragment,{children:[ce&&(0,U.jsx)(sd,{"data-type":`inside`,ref:te,onFocus:e=>{if(s){let e=z();xf(e[e.length-1])}else A?.portalNode&&(j.current=!1,mf(e,A.portalNode)?ff(_)?.focus():$f(d??A.beforeOutsideRef)?.focus())}}),n,ce&&(0,U.jsx)(sd,{"data-type":`inside`,ref:ne,onFocus:e=>{s?xf(z()[0]):A?.portalNode&&(c&&(j.current=!0),mf(e,A.portalNode)?pf(_)?.focus():$f(u??A.afterOutsideRef)?.focus())}})]})}function lp(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function up(e){return e!=null&&e.clientX!=null}function dp(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.context.dataRef,l=H.useRef(!1),u=H.useRef(null),[d,f]=H.useState(),[p,m]=H.useState([]),h=J(e=>{i.set(`positionReference`,e)}),g=J((e,t,n)=>{l.current||c.current.openEvent&&!up(c.current.openEvent)||i.set(`positionReference`,lp(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),_=J(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),v=eu(d)?o:a;H.useEffect(()=>{if(!n){h(s);return}if(!v)return;function e(){u.current?.(),u.current=null}let t=Ys(o);function r(t){X(o,lu(t))?e():g(t.clientX,t.clientY)}return!c.current.openEvent||up(c.current.openEvent)?u.current=Z(t,`mousemove`,r):h(s),e},[v,n,o,c,s,i,g,h,p]),H.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),H.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),H.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let y=H.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return H.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}var fp={intentional:`onClick`,sloppy:`onPointerDown`};function pp(){return!1}function mp(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function hp(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=pp,referencePressEvent:s=`sloppy`,bubbles:c,externalTree:l}=t,u=`rootStore`in e?e.rootStore:e,d=u.useState(`open`),f=u.useState(`floatingElement`),{dataRef:p}=u.context,m=Qf(l),h=J(typeof i==`function`?i:()=>!1),g=typeof i==`function`?h:i,_=g!==!1,v=J(()=>a),{escapeKey:y,outsidePress:b}=mp(c),x=H.useRef(!1),S=H.useRef(!1),C=H.useRef(!1),w=H.useRef(!1),E=H.useRef(``),D=H.useRef(null),O=Fl(),k=Fl(),A=J(()=>{k.clear(),p.current.insideReactTree=!1}),j=J(e=>{let t=p.current.floatingContext?.nodeId;return(m?_f(m.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),M=J(e=>du(e,u.select(`floatingElement`))||du(e,u.select(`domReferenceElement`))),N=J(e=>{o()&&u.setOpen(!1,Ku(wu,e.nativeEvent))}),P=J(e=>{if(!d||!n||!r||e.key!==`Escape`||w.current||!y&&j(`__escapeKeyBubbles`))return;let t=Ku(Iu,Zl(e)?e.nativeEvent:e);u.setOpen(!1,t),t.isCanceled||e.preventDefault(),!y&&!t.isPropagationAllowed&&e.stopPropagation()}),F=J(()=>{p.current.insideReactTree=!0,k.start(0,A)}),I=J(e=>{if(!d||!n||e.button!==0)return;let t=lu(e.nativeEvent);X(u.select(`floatingElement`),t)&&(x.current||(x.current=!0,S.current=!1))}),L=J(e=>{!d||!n||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&x.current&&(S.current=!0)});H.useEffect(()=>{if(!d||!n)return;p.current.__escapeKeyBubbles=y,p.current.__outsidePressBubbles=b;let e=new Pl,t=new Pl;function i(){e.clear(),w.current=!0}function a(){e.start(lc()?5:0,()=>{w.current=!1})}function o(){C.current=!0,t.start(0,()=>{C.current=!1})}function s(){x.current=!1,S.current=!1}function c(){let e=E.current,t=e===`pen`||!e?`mouse`:e,n=v(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function l(e){let t=c();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function h(e){let t=p.current.floatingContext?.nodeId,n=m&&_f(m.nodesRef.current,t).some(t=>du(e,t.context?.elements.floating));return M(e)||n}function k(e){if(l(e)){e.type!==`click`&&!M(e)&&(t.clear(),C.current=!1),A();return}if(p.current.insideReactTree){A();return}let n=lu(e),r=`[${yf(`inert`)}]`,i=q(n)?n.getRootNode():null,a=Array.from(($s(i)?i:Q(u.select(`floatingElement`))).querySelectorAll(r)),o=u.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>X(e,n))))return;let s=q(n)?n:null;for(;s&&!uc(s);){let e=pc(s);if(uc(e)||!q(e))break;s=e}if(!(a.length&&q(n)&&!fu(n)&&!X(n,u.select(`floatingElement`))&&a.every(e=>!X(s,e)))){if(Qs(n)&&!(`touches`in e)){let t=uc(n),r=dc(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}if(!h(e)){if(c()===`intentional`&&C.current){t.clear(),C.current=!1;return}typeof g==`function`&&!g(e)||j(`__outsidePressBubbles`)||(u.setOpen(!1,Ku(Du,e)),A())}}}function N(e){c()!==`sloppy`||e.pointerType===`touch`||!u.select(`open`)||!n||M(e)||k(e)}function F(e){if(c()!==`sloppy`||!u.select(`open`)||!n||M(e))return;let t=e.touches[0];t&&(D.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},O.start(1e3,()=>{D.current&&(D.current.dismissOnTouchEnd=!1,D.current.dismissOnMouseDown=!1)}))}function I(e,t){let n=lu(e);if(!n)return;let r=Z(n,e.type,()=>{t(e),r()})}function L(e){E.current=`touch`,I(e,F)}function ee(e){O.clear(),e.type===`pointerdown`&&(E.current=e.pointerType),!(e.type===`mousedown`&&D.current&&!D.current.dismissOnMouseDown)&&I(e,e=>{e.type===`pointerdown`?N(e):k(e)})}function te(e){if(!x.current)return;let n=S.current;if(s(),c()===`intentional`){if(e.type===`pointercancel`){n&&o();return}if(!h(e)){if(n){o();return}typeof g==`function`&&!g(e)||(t.clear(),C.current=!0,A())}}}function ne(e){if(c()!==`sloppy`||!D.current||M(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-D.current.startX),r=Math.abs(t.clientY-D.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(D.current.dismissOnTouchEnd=!0),i>10&&(k(e),O.clear(),D.current=null)}function re(e){I(e,ne)}function ie(e){c()!==`sloppy`||!D.current||M(e)||(D.current.dismissOnTouchEnd&&k(e),O.clear(),D.current=null)}function ae(e){I(e,ie)}let oe=Q(f),R=Zu(r&&Zu(Z(oe,`keydown`,P),Z(oe,`compositionstart`,i),Z(oe,`compositionend`,a)),_&&Zu(Z(oe,`click`,ee,!0),Z(oe,`pointerdown`,ee,!0),Z(oe,`pointerup`,te,!0),Z(oe,`pointercancel`,te,!0),Z(oe,`mousedown`,ee,!0),Z(oe,`mouseup`,te,!0),Z(oe,`touchstart`,L,!0),Z(oe,`touchmove`,re,!0),Z(oe,`touchend`,ae,!0)));return()=>{R(),e.clear(),t.clear(),s(),C.current=!1}},[p,f,r,_,g,d,n,y,b,P,A,v,j,M,m,u,O]),H.useEffect(A,[g,A]);let ee=H.useMemo(()=>({onKeyDown:P,[fp[s]]:N,...s!==`intentional`&&{onClick:N}}),[P,N,s]),te=H.useMemo(()=>({onKeyDown:P,onPointerDown:L,onMouseDown:L,onClickCapture:F,onMouseDownCapture(e){F(),I(e)},onPointerDownCapture(e){F(),I(e)},onMouseUpCapture:F,onTouchEndCapture:F,onTouchMoveCapture:F}),[P,F,I,L]);return H.useMemo(()=>n?{reference:ee,floating:te,trigger:ee}:{},[n,ee,te])}function gp(e,t,n){let{reference:r,floating:i}=e,a=xd(t),o=Sd(t),s=bd(o),c=_d(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(vd(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function _p(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=gd(t,e),p=Pd(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Fd(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Fd(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var vp=50,yp=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:_p},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=gp(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<vp&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=gp(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},bp=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=gd(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=_d(r),_=xd(o),v=_d(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Md(o)]:wd(o)),x=p!==`none`;!d&&x&&b.push(...jd(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],E=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Cd(r,a,y);w.push(C[e[0]],C[e[1]])}if(E=[...E,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==xd(t))||E.every(e=>xd(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:E},reset:{placement:t}};let n=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=E.filter(e=>{if(x){let t=xd(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function xp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Sp(e){return cd.some(t=>e[t]>=0)}var Cp=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=gd(e,t);switch(i){case`referenceHidden`:{let e=xp(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Sp(e)}}}case`escaped`:{let e=xp(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Sp(e)}}}default:return{}}}}},wp=new Set([`left`,`top`]);async function Tp(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=_d(n),s=vd(n),c=xd(n)===`y`,l=wp.has(o)?-1:1,u=a&&c?-1:1,d=gd(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Ep=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Tp(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Dp=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=gd(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=xd(_d(i)),p=yd(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=hd(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=hd(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Op=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=gd(e,t),u={x:n,y:r},d=xd(i),f=yd(d),p=u[f],m=u[d],h=gd(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=wp.has(_d(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},kp=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=gd(e,t),u=await o.detectOverflow(t,l),d=_d(i),f=vd(i),p=xd(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=ld(h-u[g],v),x=ld(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=ud(u.left,0),t=ud(u.right,0),n=ud(u.top,0),r=ud(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:ud(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:ud(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let E=await o.getDimensions(s.floating);return m!==E.width||h!==E.height?{reset:{rects:!0}}:{}}}};function Ap(e){let t=dc(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Qs(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=dd(n)!==a||dd(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function jp(e){return q(e)?e:e.contextElement}function Mp(e){let t=jp(e);if(!Qs(t))return pd(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Ap(t),o=(a?dd(n.width):n.width)/r,s=(a?dd(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Np=pd(0);function Pp(e){let t=Ys(e);return!lc()||!t.visualViewport?Np:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ys(e)?!1:t}function Ip(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=jp(e),o=pd(1);t&&(r?q(r)&&(o=Mp(r)):o=Mp(e));let s=Fp(a,n,r)?Pp(a):pd(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Ys(a),t=r&&q(r)?Ys(r):r,n=e,i=gc(n);for(;i&&r&&t!==n;){let e=Mp(i),t=i.getBoundingClientRect(),r=dc(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Ys(i),i=gc(n)}}return Fd({width:u,height:d,x:c,y:l})}function Lp(e,t){let n=fc(e).scrollLeft;return t?t.left+n:Ip(Xs(e)).left+n}function Rp(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Lp(e,n),y:n.top+t.scrollTop}}function zp(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Xs(r),s=t?nc(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=pd(1),u=pd(0),d=Qs(r);if((d||!d&&!a)&&((Js(r)!==`body`||ec(o))&&(c=fc(r)),d)){let e=Ip(r);l=Mp(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Rp(o,c):pd(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Bp(e){return Array.from(e.getClientRects())}function Vp(e){let t=Xs(e),n=fc(e),r=e.ownerDocument.body,i=ud(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ud(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Lp(e),s=-n.scrollTop;return dc(r).direction===`rtl`&&(o+=ud(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Hp=25;function Up(e,t){let n=Ys(e),r=Xs(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=lc();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Lp(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Hp&&(a-=o)}else l<=Hp&&(a+=l);return{width:a,height:o,x:s,y:c}}function Wp(e,t){let n=Ip(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Qs(e)?Mp(e):pd(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Gp(e,t,n){let r;if(t===`viewport`)r=Up(e,n);else if(t===`document`)r=Vp(Xs(e));else if(q(t))r=Wp(t,n);else{let n=Pp(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Fd(r)}function Kp(e,t){let n=pc(e);return n===t||!q(n)||uc(n)?!1:dc(n).position===`fixed`||Kp(n,t)}function qp(e,t){let n=t.get(e);if(n)return n;let r=hc(e,[],!1).filter(e=>q(e)&&Js(e)!==`body`),i=null,a=dc(e).position===`fixed`,o=a?pc(e):e;for(;q(o)&&!uc(o);){let t=dc(o),n=sc(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||ec(o)&&!n&&Kp(e,o))?r=r.filter(e=>e!==o):i=t,o=pc(o)}return t.set(e,r),r}function Jp(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?nc(t)?[]:qp(t,this._c):[].concat(n),r],o=Gp(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Gp(t,a[e],i);s=ud(n.top,s),c=ld(n.right,c),l=ld(n.bottom,l),u=ud(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Yp(e){let{width:t,height:n}=Ap(e);return{width:t,height:n}}function Xp(e,t,n){let r=Qs(t),i=Xs(t),a=n===`fixed`,o=Ip(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=pd(0);function l(){c.x=Lp(i)}if(r||!r&&!a)if((Js(t)!==`body`||ec(i))&&(s=fc(t)),r){let e=Ip(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Rp(i,s):pd(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Zp(e){return dc(e).position===`static`}function Qp(e,t){if(!Qs(e)||dc(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Xs(e)===n&&(n=n.ownerDocument.body),n}function $p(e,t){let n=Ys(e);if(nc(e))return n;if(!Qs(e)){let t=pc(e);for(;t&&!uc(t);){if(q(t)&&!Zp(t))return t;t=pc(t)}return n}let r=Qp(e,t);for(;r&&tc(r)&&Zp(r);)r=Qp(r,t);return r&&uc(r)&&Zp(r)&&!sc(r)?n:r||cc(e)||n}var em=async function(e){let t=this.getOffsetParent||$p,n=this.getDimensions,r=await n(e.floating);return{reference:Xp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function tm(e){return dc(e).direction===`rtl`}var nm={convertOffsetParentRelativeRectToViewportRelativeRect:zp,getDocumentElement:Xs,getClippingRect:Jp,getOffsetParent:$p,getElementRects:em,getClientRects:Bp,getDimensions:Yp,getScale:Mp,isElement:q,isRTL:tm};function rm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function im(e,t){let n=null,r,i=Xs(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=fd(d),h=fd(i.clientWidth-(u+f)),g=fd(i.clientHeight-(d+p)),_=fd(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:ud(0,ld(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!rm(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function am(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=jp(e),u=i||a?[...l?hc(l):[],...t?hc(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?im(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Ip(e):null;c&&g();function g(){let t=Ip(e);h&&!rm(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var om=Ep,sm=Dp,cm=bp,lm=kp,um=Cp,dm=Op,fm=(e,t,n)=>{let r=new Map,i={platform:nm,...n},a={...i.platform,_c:r};return yp(e,t,{...i,platform:a})},pm=typeof document<`u`?H.useLayoutEffect:function(){};function mm(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!mm(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!mm(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function hm(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function gm(e,t){let n=hm(e);return Math.round(t*n)/n}function _m(e){let t=H.useRef(e);return pm(()=>{t.current=e}),t}function vm(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=H.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=H.useState(r);mm(f,r)||p(r);let[m,h]=H.useState(null),[g,_]=H.useState(null),v=H.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=H.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=H.useRef(null),C=H.useRef(null),w=H.useRef(u),E=c!=null,D=_m(c),O=_m(i),k=_m(l),A=H.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),fm(S.current,C.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!mm(w.current,t)&&(w.current=t,ho.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);pm(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=H.useRef(!1);pm(()=>(j.current=!0,()=>{j.current=!1}),[]),pm(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(D.current)return D.current(b,x,A);A()}},[b,x,A,D,E]);let M=H.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),N=H.useMemo(()=>({reference:b,floating:x}),[b,x]),P=H.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=gm(N.floating,u.x),r=gm(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...hm(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return H.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var ym=(e,t)=>{let n=om(e);return{name:n.name,fn:n.fn,options:[e,t]}},bm=(e,t)=>{let n=sm(e);return{name:n.name,fn:n.fn,options:[e,t]}},xm=(e,t)=>({fn:dm(e).fn,options:[e,t]}),Sm=(e,t)=>{let n=cm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Cm=(e,t)=>{let n=lm(e);return{name:n.name,fn:n.fn,options:[e,t]}},wm=(e,t)=>{let n=um(e);return{name:n.name,fn:n.fn,options:[e,t]}},$=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(Vc(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},Tm=tl(19)?Om:km;function Em(e,t,n,r,i){return Tm(e,t,n,r,i)}function Dm(e,t,n,r,i){let a=H.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,go.useSyncExternalStore)(e.subscribe,a,a)}wl({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,i))&&(t=!0,r.value=i,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,go.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Om(e,t,n,r,i){let a=Cl();if(!a)return Dm(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.didChange=!0)):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},a.syncHooks.push(s)),s.value}function km(e,t,n,r,i){return(0,_o.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Am=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Em(this,e,t,n,r)}},jm=class extends Am{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){H.useDebugValue(e);let n=this;Y(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;Y(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;Y(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){H.useDebugValue(e);let n=this,r=t!==void 0;Y(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return H.useDebugValue(e),Em(this,this.selectors[e],t,n,r)}useContextCallback(e,t){H.useDebugValue(e);let n=J(t??rl);this.context[e]=n}useStateSetter(e){let t=H.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},Mm={open:$(e=>e.open),transitionStatus:$(e=>e.transitionStatus),domReferenceElement:$(e=>e.domReferenceElement),referenceElement:$(e=>e.positionReference??e.referenceElement),floatingElement:$(e=>e.floatingElement),floatingId:$(e=>e.floatingId)},Nm=class extends jm{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Jf(),nested:n,triggerElements:i},Mm),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&tu(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function Pm(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=o,f=H.useRef(null);r===void 0&&f.current===null&&(f.current=new Nm({open:s,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:a}));let p=r??f.current;return t.useSyncedValue(`floatingId`,i),Y(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};q(c)&&(e.domReferenceElement=c),p.state.positionReference===p.state.referenceElement&&(e.positionReference=c),p.update(e)},[s,i,c,l,p]),p.context.onOpenChange=d,p.context.nested=a,p}function Fm(e,t=!1,n=!1){let[r,i]=H.useState(e&&t?`idle`:void 0),[a,o]=H.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),Y(()=>{if(!e&&a&&r!==`ending`&&n){let e=nd.request(()=>{i(`ending`)});return()=>{nd.cancel(e)}}},[e,a,r,n]),Y(()=>{if(!e||t)return;let n=nd.request(()=>{i(void 0)});return()=>{nd.cancel(n)}},[t,e]),Y(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=nd.request(()=>{i(`idle`)});return()=>{nd.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}var Im=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),Lm={[Im.startingStyle]:``},Rm={[Im.endingStyle]:``},zm={transitionStatus(e){return e===`starting`?Lm:e===`ending`?Rm:null}};function Bm(e,t=!1,n=!0){let r=rd();return J((i,a=null)=>{r.cancel();let o=$f(e);if(o==null)return;let s=o,c=()=>{ho.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=Im.startingStyle;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function Vm(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=J(i),o=Bm(r,n,!1);H.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}var Hm={tabIndex:-1,[nu]:``};function Um(e,t,n=!1){let r=Lf(),i=Zf()!=null,a=H.useRef(null);e===void 0&&a.current===null&&(a.current=t(r,i));let o=e??a.current;return Pm({popupStore:o,treatPopupAsFloatingElement:n,floatingRootContext:o.state.floatingRootContext,floatingId:r,nested:i,onOpenChange:o.setOpen}),{store:o,internalStore:a.current}}function Wm(e,t){let n=H.useRef(null),r=H.useRef(null);return H.useCallback(i=>{if(e===void 0)return;let a=!1;if(n.current!==null){let e=n.current,i=r.current,o=t.context.triggerElements.getById(e);i&&o===i&&(t.context.triggerElements.delete(e),a=!0),n.current=null,r.current=null}if(i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i),a=!0),a){let e=t.context.triggerElements.size;t.select(`open`)&&t.state.triggerCount!==e&&t.set(`triggerCount`,e)}},[t,e])}function Gm(e,t,n){let r=n?.id??null;(r||t)&&(e.activeTriggerId=r,e.activeTriggerElement=n??null)}function Km(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=Wm(e,n),o=J(t=>{if(a(t),!t)return;let i=n.select(`open`),o=n.select(`activeTriggerId`);if(o===e){n.update({activeTriggerElement:t,...i?r:null});return}o==null&&i&&n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return Y(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function qm(e){let t=e.useState(`open`);Y(()=>{if(!t){e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let n=e.context.triggerElements.size,r={};if(e.state.triggerCount!==n&&(r.triggerCount=n),!e.select(`activeTriggerId`)&&n===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;r.activeTriggerId=e,r.activeTriggerElement=n}}(r.triggerCount!==void 0||r.activeTriggerId!==void 0)&&e.update(r)},[t,e,e.useState(`triggerCount`)])}function Jm(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=Fm(e);t.useSyncedValues({mounted:r,transitionStatus:a});let o=J(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),s=t.useState(`preventUnmountingOnClose`);return Vm({enabled:r&&!e&&!s,open:e,ref:t.context.popupRef,onComplete(){e||o()}}),{forceUnmount:o,transitionStatus:a}}function Ym(e,t){e.useSyncedValues(t),Y(()=>()=>{e.update({activeTriggerProps:al,inactiveTriggerProps:al,popupProps:al})},[e])}function Xm(e,t){Y(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),Y(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var Zm=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Qm(){return new Nm({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Zm,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function $m(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Qm(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:al,inactiveTriggerProps:al,popupProps:al}}function eh(e,t,n=!1){return new Nm({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var th=$(e=>e.triggerIdProp??e.activeTriggerId),nh=$(e=>e.openProp??e.open),rh=$(e=>(e.popupElement?.id??e.floatingId)||void 0);function ih(e,t){return t!==void 0&&nh(e)&&th(e)===t}function ah(e,t){return ih(e,t)?!0:t!==void 0&&nh(e)&&th(e)==null&&e.triggerCount===1}var oh={open:nh,mounted:$(e=>e.mounted),transitionStatus:$(e=>e.transitionStatus),floatingRootContext:$(e=>e.floatingRootContext),triggerCount:$(e=>e.triggerCount),preventUnmountingOnClose:$(e=>e.preventUnmountingOnClose),payload:$(e=>e.payload),activeTriggerId:th,activeTriggerElement:$(e=>e.mounted?e.activeTriggerElement:null),popupId:rh,isTriggerActive:$((e,t)=>t!==void 0&&th(e)===t),isOpenedByTrigger:$((e,t)=>ih(e,t)),isMountedByTrigger:$((e,t)=>t!==void 0&&th(e)===t&&e.mounted),triggerProps:$((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:$((e,t)=>ah(e,t)?rh(e):void 0),popupProps:$(e=>e.popupProps),popupElement:$(e=>e.popupElement),positionerElement:$(e=>e.positionerElement)};function sh(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Lf(),a=Zf()!=null,o=yc(()=>new Nm({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Zm,floatingId:i,syncOnly:!1,nested:a})).current;return Y(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=q(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function ch(e={}){let{nodeId:t,externalTree:n}=e,r=sh(e),i=e.rootContext||r,a=i.useState(`referenceElement`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.useState(`open`),l=i.useState(`floatingId`),[u,d]=H.useState(null),[f,p]=H.useState(void 0),[m,h]=H.useState(void 0),g=H.useRef(null),_=Qf(n),v=H.useMemo(()=>({reference:a,floating:o,domReference:s}),[a,o,s]),y=vm({...e,elements:{...v,...u&&{reference:u}}}),b=q(f)?f:null,x=m===void 0?i.state.floatingElement:m;i.useSyncedValue(`referenceElement`,f??null),i.useSyncedValue(`domReferenceElement`,f===void 0?s:b),i.useSyncedValue(`floatingElement`,x);let S=H.useCallback(e=>{let t=q(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),y.refs.setReference(t)},[y.refs]),C=H.useCallback(e=>{(q(e)||e===null)&&(g.current=e,p(e)),(q(y.refs.reference.current)||y.refs.reference.current===null||e!==null&&!q(e))&&y.refs.setReference(e)},[y.refs,p]),w=H.useCallback(e=>{h(e),y.refs.setFloating(e)},[y.refs]),E=H.useMemo(()=>({...y.refs,setReference:C,setFloating:w,setPositionReference:S,domReference:g}),[y.refs,C,w,S]),D=H.useMemo(()=>({...y.elements,domReference:s}),[y.elements,s]),O=H.useMemo(()=>({...y,dataRef:i.context.dataRef,open:c,onOpenChange:i.setOpen,events:i.context.events,floatingId:l,refs:E,elements:D,nodeId:t,rootStore:i}),[y,E,D,t,i,c,l]);return Y(()=>{s&&(g.current=s)},[s]),Y(()=>{i.context.dataRef.current.floatingContext=O;let e=_?.nodesRef.current.find(e=>e.id===t);e&&(e.context=O)}),H.useMemo(()=>({...y,context:O,refs:E,elements:D,rootStore:i}),[y,E,D,O,i])}var lh=Gl&&Ul;function uh(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=H.useRef(!1),c=H.useRef(null),l=H.useRef(!0),u=Fl();H.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=Ys(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&Qs(e)&&e===cu(Q(e))&&(s.current=!0)}function a(){l.current=!0}function o(){l.current=!1}return Zu(Z(t,`blur`,r),lh&&Z(t,`keydown`,a,!0),lh&&Z(t,`pointerdown`,o,!0))},[i,n]),H.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);q(e)&&(c.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let d=H.useMemo(()=>{function e(){s.current=!1,c.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(s.current){if(c.current===n)return;e()}let a=lu(t.nativeEvent);if(q(a)){if(lh&&!t.relatedTarget){if(!l.current&&!pu(a))return}else if(!gu(a))return}let o=uu(t.relatedTarget,i.context.triggerElements),{nativeEvent:d,currentTarget:f}=t,p=typeof r==`function`?r():r;if(i.select(`open`)&&o||p===0||p===void 0){i.setOpen(!0,Ku(Eu,d,f));return}u.start(p,()=>{s.current||i.setOpen(!0,Ku(Eu,d,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=q(n)&&n.hasAttribute(yf(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;u.start(0,()=>{let e=i.select(`domReferenceElement`),t=cu(Q(e));!n&&t===e||X(o.current.floatingContext?.refs.floating.current,t)||X(e,t)||a||uu(n??t,i.context.triggerElements)||i.setOpen(!1,Ku(Eu,r))})}}},[o,r,i,u]);return H.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var dh=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Pl,this.restTimeout=new Pl,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},fh=new WeakMap;function ph(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&fh.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),fh.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function mh(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=fh.get(n);a&&a!==e&&ph(a),ph(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,fh.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function hh(e){let t=e.context.dataRef.current,n=yc(()=>t.hoverInteractionState??dh.create()).current;return t.hoverInteractionState||=n,Ml(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function gh(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),{dataRef:l}=a.context,u=Qf(),d=Zf(),f=hh(a),p=Fl(),m=J(()=>xu(l.current.openEvent?.type,f.interactedInside)),h=J(()=>Su(l.current.openEvent?.type)),g=J(()=>{ph(f)});Y(()=>{o||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,g())},[o,f,g]),H.useEffect(()=>g,[g]),Y(()=>{if(n&&o&&f.handleCloseOptions?.blockPointerEvents&&h()&&q(c)&&s){let e=c,t=s,n=Q(s),r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=f.pointerEventsScopeElement===t?null:f.pointerEventsScopeElement,a=r===t?null:r;return mh(f,{scopeElement:f.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body,referenceElement:e,floatingElement:t}),()=>{g()}}},[n,o,c,s,f,h,u,d,g]),H.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&_f(u.nodesRef.current,d).length>0)}function t(e){let t=yu(r,`close`,f.pointerType),n=()=>{a.setOpen(!1,Ku(Tu,e)),u?.events.emit(`floating.closed`,e)};t?f.openChangeTimeout.start(t,n):(f.openChangeTimeout.clear(),n())}function o(e){let t=lu(e);if(!mu(t)){f.interactedInside=!1;return}f.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function c(){f.openChangeTimeout.clear(),p.clear(),u?.events.off(`floating.closed`,_),g()}function h(n){if(e()&&u){u.events.on(`floating.closed`,_);return}if(uu(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(u&&r&&q(o)&&_f(u.nodesRef.current,r,!1).some(e=>X(e.context?.elements.floating,o)))){if(f.handler){f.handler(n);return}g(),m()||t(n)}}function _(t){!u||!d||e()||p.start(0,()=>{u.events.off(`floating.closed`,_),a.setOpen(!1,Ku(Tu,t)),u.events.emit(`floating.closed`,t)})}let v=s;return Zu(v&&Z(v,`mouseenter`,c),v&&Z(v,`mouseleave`,h),v&&Z(v,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,_)})},[n,s,a,l,r,i,m,g,f,u,d,p])}var _h={current:null};function vh(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=_h,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p}=t,m=`rootStore`in e?e.rootStore:e,{dataRef:h,events:g}=m.context,_=Qf(l),v=hh(m),y=H.useRef(!1),b=Qu(i),x=Qu(r),S=Qu(o),C=Qu(n),w=Qu(p),E=Qu(f),D=J(()=>xu(h.current.openEvent?.type,v.interactedInside)),O=J(()=>w.current?.()!==!1),k=J((e,t,n)=>{let r=m.context.triggerElements;if(r.hasElement(t))return!e||!X(e,t);if(!q(n))return!1;let i=n;return r.hasMatchingElement(e=>X(e,i))&&(!e||!X(e,i))}),A=J(()=>{v.handler&&=(Q(m.select(`domReferenceElement`)).removeEventListener(`mousemove`,v.handler),void 0)}),j=J(()=>{ph(v)});return u&&(v.handleCloseOptions=b.current?.__options),H.useEffect(()=>A,[A]),H.useEffect(()=>{if(!n)return;function e(e){e.open?y.current=!1:(y.current=e.reason===Tu,A(),v.openChangeTimeout.clear(),v.restTimeout.clear(),v.blockMouseMove=!0,v.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,v,A]),H.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=yu(x.current,`close`,v.pointerType);n?v.openChangeTimeout.start(n,()=>{m.setOpen(!1,Ku(Tu,e)),_?.events.emit(`floating.closed`,e)}):t&&(v.openChangeTimeout.clear(),m.setOpen(!1,Ku(Tu,e)),_?.events.emit(`floating.closed`,e))}let t=c.current??(u?m.select(`domReferenceElement`):null);if(!q(t))return;function r(e){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,a&&!eu(v.pointerType))return;let t=bu(S.current),n=yu(x.current,`open`,v.pointerType),r=lu(e),i=e.currentTarget??null,o=m.select(`domReferenceElement`),s=i;if(q(r)&&!m.context.triggerElements.hasElement(r)){for(let e of m.context.triggerElements.elements())if(X(e,r)){s=e;break}}q(i)&&q(o)&&!m.context.triggerElements.hasElement(i)&&X(i,o)&&(s=o);let c=s==null?!1:k(o,s,r),l=m.select(`open`),u=E.current?.()??m.select(`transitionStatus`)===`ending`,d=!l&&u&&y.current,f=!c&&q(s)&&q(o)&&X(o,s)&&d,p=t>0&&!n,h=c&&(l||d)||f,g=!l||c;if(h){O()&&m.setOpen(!0,Ku(Tu,e,s));return}p||(n?v.openChangeTimeout.start(n,()=>{g&&O()&&m.setOpen(!0,Ku(Tu,e,s))}):g&&O()&&m.setOpen(!0,Ku(Tu,e,s)))}function i(t){if(D()){j();return}A();let n=Q(m.select(`domReferenceElement`));v.restTimeout.clear(),v.restTimeoutPending=!1;let r=h.current.floatingContext??d?.();if(!uu(t.relatedTarget,m.context.triggerElements)){if(b.current&&r){m.select(`open`)||v.openChangeTimeout.clear();let i=c.current;v.handler=b.current({...r,tree:_,x:t.clientX,y:t.clientY,onClose(){j(),A(),C.current&&!D()&&i===m.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,v.handler),v.handler(t);return}(v.pointerType!==`touch`||!X(m.select(`floatingElement`),t.relatedTarget))&&e(t)}}return s?Zu(Z(t,`mousemove`,r,{once:!0}),Z(t,`mouseenter`,r),Z(t,`mouseleave`,i)):Zu(Z(t,`mouseenter`,r),Z(t,`mouseleave`,i))},[A,j,h,x,m,n,b,v,u,k,D,a,s,S,c,_,C,d,E,O]),H.useMemo(()=>{if(!n)return;function e(e){v.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=m.select(`domReferenceElement`),i=m.select(`open`),o=k(r,n,e.target);if(a&&!eu(v.pointerType))return;if(i&&o&&v.handleCloseOptions?.blockPointerEvents){let e=m.select(`floatingElement`);e&&mh(v,{scopeElement:v.handleCloseOptions?.getScope?.()??n.ownerDocument.body,referenceElement:n,floatingElement:e})}let s=bu(S.current);if(i&&!o||s===0||!o&&v.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;v.restTimeout.clear();function c(){if(v.restTimeoutPending=!1,D())return;let e=m.select(`open`);!v.blockMouseMove&&(!e||o)&&O()&&m.setOpen(!0,Ku(Tu,t,n))}v.pointerType===`touch`?ho.flushSync(()=>{c()}):o&&i?c():(v.restTimeoutPending=!0,v.restTimeout.start(s,c))}}},[n,v,D,k,a,m,S,O])}var yh=.1,bh=yh*yh,xh=.5;function Sh(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function Ch(e,t,n,r,i,a,o,s,c,l){let u=!1;return Sh(e,t,n,r,i,a)&&(u=!u),Sh(e,t,i,a,o,s)&&(u=!u),Sh(e,t,o,s,c,l)&&(u=!u),Sh(e,t,c,l,n,r)&&(u=!u),u}function wh(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Th(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function Eh(e={}){let{blockPointerEvents:t=!1}=e,n=new Pl,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*bh;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=lu(r),g=r.type===`mouseleave`,_=X(u,h),v=X(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&q(r.relatedTarget)&&X(u,r.relatedTarget))return;function y(){return!!(s&&_f(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,E=S.width>x.width,D=S.height>x.height,O=(E?x:S).left,k=(E?x:S).right,A=(D?x:S).top,j=(D?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let M=!1;switch(c){case`top`:M=Th(d,f,O,x.top+1,k,S.bottom-1);break;case`bottom`:M=Th(d,f,O,S.top+1,k,x.bottom-1);break;case`left`:M=Th(d,f,S.right-1,j,x.left+1,A);break;case`right`:M=Th(d,f,x.right-1,j,S.left+1,A);break;default:}if(M)return;if(l&&!wh(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let N=!1;switch(c){case`top`:{let n=E?xh/2:xh*4,r=E||C?e+n:e-n,i=E?e-n:C?e+n:e-n,a=t+xh+1,o=C||E?S.bottom-xh:S.top,s=C?E?S.bottom-xh:S.top:S.bottom-xh;N=Ch(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=E?xh/2:xh*4,r=E||C?e+n:e-n,i=E?e-n:C?e+n:e-n,a=t-xh,o=C||E?S.top+xh:S.bottom,s=C?E?S.top+xh:S.bottom:S.top+xh;N=Ch(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=D?xh/2:xh*4,r=D||w?t+n:t-n,i=D?t-n:w?t+n:t-n,a=e+xh+1,o=w||D?S.right-xh:S.left,s=w?D?S.right-xh:S.left:S.right-xh;N=Ch(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=D?xh/2:xh*4,r=D||w?t+n:t-n,i=D?t-n:w?t+n:t-n,a=e-xh,o=w||D?S.left+xh:S.right,s=w?D?S.left+xh:S.right:S.left+xh;N=Ch(d,f,a,r,a,i,o,S.top,s,S.bottom);break}default:}N?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var Dh={...oh,disabled:$(e=>e.disabled),instantType:$(e=>e.instantType),isInstantPhase:$(e=>e.isInstantPhase),trackCursorAxis:$(e=>e.trackCursorAxis),disableHoverablePopup:$(e=>e.disableHoverablePopup),lastOpenChangeReason:$(e=>e.openChangeReason),closeOnClick:$(e=>e.closeOnClick),closeDelay:$(e=>e.closeDelay),hasViewport:$(e=>e.hasViewport)},Oh=class e extends jm{constructor(e,t,n=!1){let r=new Zm,i={...kh(),...e};i.floatingRootContext=eh(r,t,n),super(i,{popupRef:H.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:r},Dh)}setOpen=(e,t)=>{let n=t.reason,r=n===Tu,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let o=()=>{let r={open:e,openChangeReason:n};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0),Gm(r,e,t.trigger),this.update(r)};r?ho.flushSync(o):o()};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,Ku(wu,e))}static useStore(t,n){return Um(t,(t,r)=>new e(n,t,r)).store}};function kh(){return{...$m(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var Ah=Tl(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=Oh.useStore(l?.store,{open:n,openProp:r,activeTriggerId:d,triggerIdProp:u});Ol(()=>{r===void 0&&p.state.open===!1&&n===!0&&p.update({open:!0,activeTriggerId:d})}),p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),v=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i}),p.useSyncedValue(`disabled`,t),qm(p);let{forceUnmount:y,transitionStatus:b}=Jm(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=H.useRef(null);Y(()=>{m&&t&&p.setOpen(!1,Ku(Vu))},[m,t,p]),Y(()=>{b===`ending`&&C===`none`||b!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[b,x,C,S,p]),Y(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]);let E=H.useCallback(()=>{p.setOpen(!1,Ku(Wu))},[p]);H.useImperativeHandle(o,()=>({unmount:y,close:E}),[y,E]);let D=h||_||!t&&a!==`none`;return(0,U.jsxs)(kl.Provider,{value:p,children:[D&&(0,U.jsx)(jh,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function jh({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=hp(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=dp(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n});return Ym(e,{activeTriggerProps:H.useMemo(()=>Ec(a.reference,i.reference),[a.reference,i.reference]),inactiveTriggerProps:H.useMemo(()=>Ec(a.trigger,i.trigger),[a.trigger,i.trigger]),popupProps:H.useMemo(()=>Ec(Hm,a.floating,i.floating),[a.floating,i.floating])}),null}var Mh=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=Im.startingStyle]=`startingStyle`,e[e.endingStyle=Im.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),Nh=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),Ph={[Nh.popupOpen]:``},Fh={[Nh.popupOpen]:``,[Nh.pressed]:``},Ih={[Mh.open]:``},Lh={[Mh.closed]:``},Rh={[Mh.anchorHidden]:``},zh={open(e){return e?Ph:null}},Bh={open(e){return e?Fh:null}},Vh={open(e){return e?Ih:Lh},anchorHidden(e){return e?Rh:null}};function Hh(e){return Lf(e,`base-ui`)}var Uh=H.createContext(void 0);function Wh(){return H.useContext(Uh)}var Gh=function(e){return e[e.popupOpen=Nh.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),Kh=`data-base-ui-tooltip-trigger`;function qh(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let n=t[e];if(q(n))return n}}let t=e.target;return q(t)?t:null}function Jh(e){let t=e;for(;t;){if(t.hasAttribute(Kh))return t;let e=t.parentElement;if(e){t=e;continue}let n=t.getRootNode();t=`host`in n&&q(n.host)?n.host:null}return null}var Yh=El(function(e,t){let{render:n,className:r,style:i,handle:a,payload:o,disabled:s,delay:c,closeOnClick:l=!0,closeDelay:u,id:d,...f}=e,p=Al(!0),m=a?.store??p;if(!m)throw Error(Vc(82));let h=Hh(d),g=m.useState(`isTriggerActive`,h),_=m.useState(`isOpenedByTrigger`,h),v=m.useState(`floatingRootContext`),y=H.useRef(null),b=c??600,x=u??0,{registerTrigger:S,isMountedByThisTrigger:C}=Km(h,y,m,{payload:o,closeOnClick:l,closeDelay:x}),w=Wh(),{delayRef:E,isInstantPhase:D,hasProvider:O}=Xu(v,{open:_}),k=hh(v);m.useSyncedValue(`isInstantPhase`,D);let A=m.useState(`disabled`),j=s??A,M=Qu(j),N=m.useState(`trackCursorAxis`),P=m.useState(`disableHoverablePopup`),F=H.useRef(!1),I=Fl(),L=H.useRef(void 0);function ee(){let e=w?.delay,t=typeof E.current==`object`?E.current.open:void 0,n=b;return O&&(n=t===0?0:c??e??b),n}function te(e){let t=y.current;if(!t||!e)return!1;let n=Jh(e);return n!==null&&n!==t&&X(t,n)}function ne(e){let t=te(e);return F.current=t,t&&(k.openChangeTimeout.clear(),k.restTimeout.clear(),k.restTimeoutPending=!1,I.clear()),t}let re=vh(v,{enabled:!j,mouseOnly:!0,move:!1,handleClose:!P&&N!==`both`?Eh():null,restMs:ee,delay(){let e=typeof E.current==`object`?E.current.close:void 0,t=x;return u==null&&O&&(t=e),{close:t}},triggerElementRef:y,isActiveTrigger:g,isClosing:()=>m.select(`transitionStatus`)===`ending`,shouldOpen(){return!F.current}}),ie=uh(v,{enabled:!j}).reference,ae=e=>{let t=F.current,n=qh(e),r=ne(n),i=y.current,a=i&&n&&X(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`){m.setOpen(!1,Ku(Tu,e));return}if(t&&!r&&a&&!M.current&&!m.select(`open`)&&i&&eu(L.current)){let t=()=>{!F.current&&!M.current&&!m.select(`open`)&&m.setOpen(!0,Ku(Tu,e,i))},n=ee();n===0?(I.clear(),t()):I.start(n,t)}},oe=m.useState(`triggerProps`,C);return ll(`button`,e,{state:{open:_},ref:[t,S,y],props:[re,ie,C||N!==`none`?oe:void 0,{onMouseOver(e){ae(e.nativeEvent)},onFocus(e){te(qh(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){F.current=!1,I.clear(),L.current=void 0},onPointerEnter(e){L.current=e.pointerType},onPointerDown(e){L.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[Gh.triggerDisabled]:j?``:void 0,[Kh]:j?void 0:``},f],stateAttributesMapping:zh})}),Xh=H.createContext(void 0);function Zh(){let e=H.useContext(Xh);if(e===void 0)throw Error(Vc(70));return e}var Qh=H.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:c,portalSubtree:l}=Kf({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,U.jsxs)(H.Fragment,{children:[l,c&&ho.createPortal(n,c)]})}),$h=H.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return Al().useState(`mounted`)||n?(0,U.jsx)(Xh.Provider,{value:n,children:(0,U.jsx)(Qh,{ref:t,...r})}):null}),eg=H.createContext(void 0);function tg(){let e=H.useContext(eg);if(e===void 0)throw Error(Vc(71));return e}var ng=H.createContext(void 0);function rg(){return H.useContext(ng)?.direction??`ltr`}var ig=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=gd(e,t)||{};if(l==null)return{};let f=Pd(u),p={x:n,y:r},m=Sd(i),h=bd(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let E=x/2-S/2,D=w/2-g[h]/2-1,O=Math.min(f[v],D),k=Math.min(f[y],D),A=O,j=w-g[h]-k,M=w/2-g[h]/2+E,N=hd(A,M,j),P=!c.arrow&&vd(i)!=null&&M!==N&&a.reference[h]/2-(M<A?O:k)-g[h]/2<0,F=P?M<A?M-A:M-j:0;return{[m]:p[m]+F,data:{[m]:N,centerOffset:M-N-F,...P&&{alignmentOffset:F}},reset:P}}}),ag=(e,t)=>({...ig(e),options:[e,t]}),og={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await wm().fn(e)).data?.referenceHidden||a}}}},sg={sideX:`left`,sideY:`top`},cg={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=Ys(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:sg};let u=await a.getOffsetParent?.(i),d={width:0,height:0};if(o===`fixed`&&c?.visualViewport)d={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=Q(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=_d(s),p=t,m=n;f===`left`&&(p=d.width-(t+r.width)),f===`top`&&(m=d.height-(n+r.height));let h=f===`left`?`right`:sg.sideX,g=f===`top`?`bottom`:sg.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}};function lg(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function ug(e,t,n){let{rects:r,placement:i}=e;return{side:lg(t,_d(i),n),align:vd(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function dg(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,inline:f,keepMounted:p=!1,floatingRootContext:m,mounted:h,collisionAvoidance:g,shiftCrossAxis:_=!1,nodeId:v,adaptiveOrigin:y,lazyFlip:b=!1,externalTree:x}=e,[S,C]=H.useState(null);!h&&S!==null&&C(null);let w=g.side||`flip`,E=g.align||`flip`,D=g.fallbackAxisSide||`end`,O=typeof t==`function`?t:void 0,k=J(O),A=O?k:t,j=Qu(t),M=Qu(h),N=rg()===`rtl`,P=S||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":N?`left`:`right`,"inline-start":N?`right`:`left`}[r],F=a===`center`?P:`${P}-${a}`,I=c,L=+(r===`bottom`),ee=+(r===`top`),te=+(r===`right`),ne=+(r===`left`);typeof I==`number`?I={top:I+L,right:I+ne,bottom:I+ee,left:I+te}:I&&={top:(I.top||0)+L,right:(I.right||0)+ne,bottom:(I.bottom||0)+ee,left:(I.left||0)+te};let re={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:I},ie=H.useRef(null),ae=Qu(i),oe=Qu(o),R=typeof i==`function`?0:i,z=typeof o==`function`?0:o,se=[];f&&se.push(f),se.push(ym(e=>{let t=ug(e,r,N),n=typeof ae.current==`function`?ae.current(t):ae.current,i=typeof oe.current==`function`?oe.current(t):oe.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[R,z,N,r]));let ce=E===`none`&&w!==`shift`,B=!ce&&(l||_||w===`shift`),le=w===`none`?null:Sm({...re,padding:{top:I.top+1,right:I.right+1,bottom:I.bottom+1,left:I.left+1},mainAxis:!_&&w===`flip`,crossAxis:E===`flip`?`alignment`:!1,fallbackAxisSideDirection:D}),ue=ce?null:bm(e=>{let t=Q(e.elements.floating).documentElement;return{...re,rootBoundary:_?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:E!==`none`,crossAxis:B,limiter:l||_?void 0:xm(e=>{if(!ie.current)return{};let{width:t,height:n}=ie.current.getBoundingClientRect(),r=xd(_d(e.placement)),i=r===`y`?t:n,a=r===`y`?I.left+I.right:I.top+I.bottom;return{offset:i/2+a/2}})}},[re,l,_,I,E]);w===`shift`||E===`shift`||a===`center`?se.push(ue,le):se.push(le,ue),se.push(Cm({...re,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!M.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=Ys(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),ag(e=>({element:ie.current||Q(e.elements.floating).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=_d(a),l=xd(c),u=ie.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof i==`function`?i(ug(e,r,N)):i,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,B&&l===`y`&&b?S:x),{}}},og,y),Y(()=>{!h&&m&&m.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[h,m]);let de=H.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:V,elements:fe,x:pe,y:me,middlewareData:he,update:ge,placement:_e,context:ve,isPositioned:ye,floatingStyles:be}=ch({rootContext:m,open:p?h:void 0,placement:F,middleware:se,strategy:n,whileElementsMounted:p?void 0:(...e)=>am(...e,de),nodeId:v,externalTree:x}),{sideX:xe,sideY:Se}=he.adaptiveOrigin||sg,Ce=ye?n:`fixed`,we=H.useMemo(()=>{let e=y?{position:Ce,[xe]:pe,[Se]:me}:{position:Ce,...be};return ye||(e.opacity=0),e},[y,Ce,xe,pe,Se,me,be,ye]),Te=H.useRef(null);Y(()=>{if(!h)return;let e=j.current,t=typeof e==`function`?e():e,n=(fg(t)?t.current:t)||null;n!==Te.current&&(V.setPositionReference(n),Te.current=n)},[h,V,A,j]),H.useEffect(()=>{if(!h)return;let e=j.current;typeof e!=`function`&&fg(e)&&e.current!==Te.current&&(V.setPositionReference(e.current),Te.current=e.current)},[h,V,A,j]),H.useEffect(()=>{if(p&&h&&fe.domReference&&fe.floating)return am(fe.domReference,fe.floating,ge,de)},[p,h,fe,ge,de]);let Ee=_d(_e),De=lg(r,Ee,N),Oe=vd(_e)||`center`,ke=!!he.hide?.referenceHidden;Y(()=>{b&&h&&ye&&C(Ee)},[b,h,ye,Ee]);let Ae=H.useMemo(()=>({position:`absolute`,top:he.arrow?.y,left:he.arrow?.x}),[he.arrow]),je=he.arrow?.centerOffset!==0;return H.useMemo(()=>({positionerStyles:we,arrowStyles:Ae,arrowRef:ie,arrowUncentered:je,side:De,align:Oe,physicalSide:Ee,anchorHidden:ke,refs:V,context:ve,isPositioned:ye,update:ge}),[we,Ae,ie,je,De,Oe,Ee,ke,V,ve,ye,ge])}function fg(e){return e!=null&&`current`in e}function pg(e){return e===`starting`?Rf:al}function mg(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),ll(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},pg(r),i],stateAttributesMapping:Vh})}var hg=H.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=Vf,style:g,..._}=e,v=Al(),y=Zh(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),E=v.useState(`instantType`),D=v.useState(`transitionStatus`),O=dg({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`hasViewport`)?cg:void 0}),k=mg(e,H.useMemo(()=>({open:b,side:O.side,align:O.align,anchorHidden:O.anchorHidden,instant:S===`none`?E:`tracking-cursor`}),[b,O.side,O.align,O.anchorHidden,S,E]),{styles:O.positionerStyles,transitionStatus:D,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,U.jsx)(eg.Provider,{value:O,children:k})}),gg={...Vh,...zm},_g=H.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Al(),{side:s,align:c}=tg(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);Vm({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),gh(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return ll(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[f,pg(d),a],stateAttributesMapping:gg})}),vg=H.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Al(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=tg();return ll(`div`,e,{state:{open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)},ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:Vh})}),yg=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=H.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=H.useMemo(()=>({open:t,close:n}),[t,n]);return(0,U.jsx)(Uh.Provider,{value:i,children:(0,U.jsx)(Yu,{delay:a,timeoutMs:r,children:e.children})})};function bg(e){return tl(19)?e:e?`true`:void 0}function xg({delay:e=0,...t}){return(0,U.jsx)(yg,{"data-slot":`tooltip-provider`,delay:e,...t})}function Sg({...e}){return(0,U.jsx)(Ah,{"data-slot":`tooltip`,...e})}function Cg({...e}){return(0,U.jsx)(Yh,{"data-slot":`tooltip-trigger`,...e})}function wg({className:e,side:t=`top`,sideOffset:n=4,align:r=`center`,alignOffset:i=0,children:a,...o}){return(0,U.jsx)($h,{children:(0,U.jsx)(hg,{align:r,alignOffset:i,side:t,sideOffset:n,className:`isolate z-50`,children:(0,U.jsxs)(_g,{"data-slot":`tooltip-content`,className:Gs(`z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 motion-reduce:animate-none! data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...o,children:[a,(0,U.jsx)(vg,{className:`z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`})]})})})}function Tg(e){return ll(e.defaultTagName??`div`,e,e)}function Eg({className:e,type:t,...n}){return(0,U.jsx)(`input`,{type:t,"data-slot":`input`,className:Gs(`bg-input/20 dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-7 rounded-md border px-2 py-0.5 text-sm transition-colors file:h-6 file:text-xs/relaxed file:font-medium focus-visible:ring-[2px] aria-invalid:ring-[2px] md:text-xs/relaxed file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,e),...n})}var Dg=H.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return ll(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})});function Og({className:e,orientation:t=`horizontal`,...n}){return(0,U.jsx)(Dg,{"data-slot":`separator`,orientation:t,className:Gs(`shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch`,e),...n})}var kg=H.createContext(!1),Ag=H.createContext(void 0);function jg(e){let t=H.useContext(Ag);if(e===!1&&t===void 0)throw Error(Vc(27));return t}var Mg={...Vh,...zm},Ng=H.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,{store:s}=jg(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return ll(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:Mg,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),Pg=H.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,{store:c}=jg(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=Gc({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,Ku(ku,e.nativeEvent))}return ll(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),Fg=H.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=jg(),c=Hh(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),ll(`p`,e,{ref:t,props:[{id:c},o]})}),Ig=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),Lg=function(e){return e[e.open=Mh.open]=`open`,e[e.closed=Mh.closed]=`closed`,e[e.startingStyle=Mh.startingStyle]=`startingStyle`,e[e.endingStyle=Mh.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),Rg=H.createContext(void 0);function zg(){let e=H.useContext(Rg);if(e===void 0)throw Error(Vc(26));return e}var Bg=`ArrowUp`,Vg=`ArrowDown`,Hg=`ArrowLeft`,Ug=`ArrowRight`,Wg=`Home`,Gg=`PageUp`,Kg=`PageDown`,qg=new Set([Hg,Ug]),Jg=new Set([Hg,Ug,Wg,`End`]),Yg=new Set([Bg,Vg]),Xg=new Set([Bg,Vg,Wg,`End`]),Zg=new Set([...qg,...Yg]),Qg=new Set([...Zg,Wg,`End`]),$g=new Set([`Shift`,`Control`,`Alt`,`Meta`]);function e_(e){return Qs(e)&&e.tagName===`INPUT`}function t_(e){return!!(e_(e)&&e.selectionStart!=null||Qs(e)&&e.tagName===`TEXTAREA`)}function n_(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(o&&r!==`vertical`){let r=r_(e,t,`left`),a=i_(e),o=i_(t);n===`ltr`&&(r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft&&(i=r-o.scrollMarginLeft-a.scrollPaddingLeft)),n===`rtl`&&(r-o.scrollMarginRight<e.scrollLeft+a.scrollPaddingLeft?i=r-o.scrollMarginLeft-a.scrollPaddingLeft:r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=r_(e,t,`top`),r=i_(e),i=i_(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?a=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function r_(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function i_(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var a_={...Vh,...zm,nestedDialogOpen(e){return e?{[Lg.nestedDialogOpen]:``}:null}},o_=H.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,{store:c}=jg(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`),C=s.id??S;zg(),Vm({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});function w(e){return e===`touch`?c.context.popupRef.current:!0}let E=o===void 0?w:o,D=g>0,O=c.useStateSetter(`popupElement`),k=ll(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:D},props:[f,{id:C,"aria-labelledby":y??void 0,"aria-describedby":l??void 0,role:x,...Hm,hidden:!m,onKeyDown(e){Qg.has(e.key)&&e.stopPropagation()},style:{[Ig.nestedDialogs]:g}},s],ref:[t,c.context.popupRef,O],stateAttributesMapping:a_});return(0,U.jsx)(cp,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:E,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:k})}),s_=H.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,U.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),c_=H.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=jg(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,U.jsx)(Rg.Provider,{value:n,children:(0,U.jsxs)(qf,{ref:t,...r,children:[a&&o===!0&&(0,U.jsx)(s_,{ref:i.context.internalBackdropRef,inert:bg(!s)}),e.children]})}):null}),l_={},u_={},d_=``;function f_(e){if(typeof document>`u`)return!1;let t=Q(e);return Ys(t).innerWidth-t.documentElement.clientWidth>0}function p_(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Q(e),n=t.documentElement,r=t.body,i=ec(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function m_(e){let t=Q(e),n=t.documentElement,r=t.body,i=ec(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function h_(e){let t=Q(e),n=t.documentElement,r=t.body,i=Ys(n),a=0,o=0,s=!1,c=nd.create();if(Bl&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,l_={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},d_=n.style.scrollBehavior,u_={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=ec(n)?n:r;if(s=p_(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,l_),Object.assign(r.style,u_),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=d_)}function d(){u(),c.request(l)}l();let f=Z(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var g_=new class{lockCount=0;restore=null;timeoutLock=Pl.create();timeoutUnlock=Pl.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=Q(e).documentElement,n=Ys(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=rl;return}this.restore=Vl||!f_(e)?m_(e):h_(e)}};function __(e=!0,t=null){Y(()=>{if(e)return g_.acquire(t)},[e,t])}function v_(e){let{store:t,parentContext:n,actionsRef:r,isDrawer:i}=e,a=t.useState(`open`);Xm(t,a),qm(t);let{forceUnmount:o}=Jm(a,t),s=H.useCallback(()=>{t.setOpen(!1,Ku(Wu))},[t]);return H.useImperativeHandle(r,()=>({unmount:o,close:s}),[o,s]),{parentContext:n,isDrawer:i}}function y_({store:e,dialogRoot:t}){let{parentContext:n,isDrawer:r}=t,i=e.useState(`open`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=H.useState(0),[d,f]=H.useState(0),p=l===0,m=hp(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0||`touches`in t&&t.touches.length!==1)return!1;let n=lu(t);if(p&&!a){let t=n;return o&&(e.context.internalBackdropRef.current||e.context.backdropRef.current)?e.context.internalBackdropRef.current===t||e.context.backdropRef.current===t||X(t,s)&&!t?.hasAttribute(`data-base-ui-portal`):!0}return!1},escapeKey:p});return __(i&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(e,t)=>{u(e),f(t)}),e.useContextCallback(`onNestedDialogClose`,()=>{u(0),f(0)}),H.useEffect(()=>(n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(l+1,d+ +!!r),n?.onNestedDialogClose&&!i&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&i&&n.onNestedDialogClose()}),[r,i,l,d,n]),Ym(e,{activeTriggerProps:m.reference??al,inactiveTriggerProps:m.trigger??al,popupProps:H.useMemo(()=>Ec(Hm,m.floating),[m.floating]),nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var b_={...oh,modal:$(e=>e.modal),nested:$(e=>e.nested),nestedOpenDialogCount:$(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:$(e=>e.nestedOpenDrawerCount),disablePointerDismissal:$(e=>e.disablePointerDismissal),openMethod:$(e=>e.openMethod),descriptionElementId:$(e=>e.descriptionElementId),titleElementId:$(e=>e.titleElementId),viewportElement:$(e=>e.viewportElement),role:$(e=>e.role)},x_=class e extends jm{constructor(e,t,n=!1){let r=new Zm,i=S_(e);i.floatingRootContext=eh(r,t,n),super(i,{popupRef:H.createRef(),backdropRef:H.createRef(),internalBackdropRef:H.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:r,onOpenChange:void 0,onOpenChangeComplete:void 0},b_)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e};Gm(n,e,t.trigger),this.update(n)};static useStore(t,n){return Um(t,(t,r)=>new e(n,t,r),!0).store}};function S_(e={}){return{...$m(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function C_(e,t=`dialog`){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=e,p=t===`drawer`,m=t===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=jg(!0),y={modal:h,disablePointerDismissal:g,nested:!!v,role:_},b=x_.useStore(u?.store,{open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y});Ol(()=>{let e=r===void 0&&b.state.open===!1&&i===!0?{open:!0,activeTriggerId:f}:null;m?b.update(e?{...y,...e}:y):e&&b.update(e)}),b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`),w=v_({store:b,actionsRef:l,parentContext:v?.store.context,isDrawer:p}),E=x||S,D=H.useMemo(()=>({store:b}),[b]);return(0,U.jsx)(kg.Provider,{value:!1,children:(0,U.jsxs)(Ag.Provider,{value:D,children:[E&&(0,U.jsx)(y_,{store:b,dialogRoot:w}),typeof n==`function`?n({payload:C}):n]})})}function w_(e){return C_(e,H.useContext(kg)?`drawer`:`dialog`)}var T_=H.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=jg(),c=Hh(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),ll(`h2`,e,{ref:t,props:[{id:c},o]})});function E_({...e}){return(0,U.jsx)(w_,{"data-slot":`sheet`,...e})}function D_({...e}){return(0,U.jsx)(c_,{"data-slot":`sheet-portal`,...e})}function O_({className:e,...t}){return(0,U.jsx)(Ng,{"data-slot":`sheet-overlay`,className:Gs(`fixed inset-0 z-50 bg-black/80 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs`,e),...t})}function k_({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,U.jsxs)(D_,{children:[(0,U.jsx)(O_,{}),(0,U.jsxs)(o_,{"data-slot":`sheet-content`,"data-side":n,className:Gs(`fixed z-50 flex flex-col bg-background bg-clip-padding text-xs/relaxed shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm`,e),...i,children:[t,r&&(0,U.jsxs)(Pg,{"data-slot":`sheet-close`,render:(0,U.jsx)(bl,{variant:`ghost`,className:`absolute top-4 right-4`,size:`icon-sm`}),children:[(0,U.jsx)(no,{}),(0,U.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function A_({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`sheet-header`,className:Gs(`flex flex-col gap-1.5 p-6`,e),...t})}function j_({className:e,...t}){return(0,U.jsx)(T_,{"data-slot":`sheet-title`,className:Gs(`text-sm font-medium text-foreground`,e),...t})}function M_({className:e,...t}){return(0,U.jsx)(Fg,{"data-slot":`sheet-description`,className:Gs(`text-xs/relaxed text-muted-foreground`,e),...t})}var N_=768;function P_(){let[e,t]=H.useState(void 0);return H.useEffect(()=>{if(typeof window>`u`)return;if(typeof window.matchMedia!=`function`){t(window.innerWidth<N_);return}let e=window.matchMedia(`(max-width: ${N_-1}px)`),n=()=>{t(window.innerWidth<N_)};return e.addEventListener(`change`,n),t(window.innerWidth<N_),()=>e.removeEventListener(`change`,n)},[]),!!e}var F_=`sidebar_state`,I_=3600*24*7,L_=`16rem`,R_=`18rem`,z_=`3rem`,B_=`b`,V_=H.createContext(null);function H_(){let e=H.useContext(V_);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function U_({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...o}){let s=P_(),[c,l]=H.useState(!1),[u,d]=H.useState(e),f=t??u,p=H.useCallback(e=>{let t=typeof e==`function`?e(f):e;n?n(t):d(t),document.cookie=`${F_}=${t}; path=/; max-age=${I_}`},[n,f]),m=H.useCallback(()=>s?l(e=>!e):p(e=>!e),[s,p,l]);H.useEffect(()=>{let e=e=>{e.key===B_&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),m())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[m]),H.useEffect(()=>{if(typeof window>`u`||!s)return;let e=window.document.documentElement,t=window.document.body,n=window.document.querySelector(`meta[name="theme-color"]`),r=getComputedStyle(e).getPropertyValue(`--sidebar`),i=t.style.backgroundColor,a=n?.getAttribute(`content`);c&&(t.style.backgroundColor=r,n?.setAttribute(`content`,r));let o=()=>{window.dispatchEvent(new Event(`hot-updater:refresh-theme-chrome`))},l=window.setTimeout(()=>{if(c){t.style.backgroundColor=r,n?.setAttribute(`content`,r);return}o()},180);return()=>{window.clearTimeout(l),t.style.backgroundColor=i,a&&n?.setAttribute(`content`,a),c||o()}},[s,c]);let h=f?`expanded`:`collapsed`,g=H.useMemo(()=>({state:h,open:f,setOpen:p,isMobile:s,openMobile:c,setOpenMobile:l,toggleSidebar:m}),[h,f,p,s,c,l,m]);return(0,U.jsx)(V_.Provider,{value:g,children:(0,U.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":L_,"--sidebar-width-icon":z_,...i},className:Gs(`group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full`,r),...o,children:a})})}function W_({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offExamples`,className:r,children:i,...a}){let{isMobile:o,state:s,openMobile:c,setOpenMobile:l}=H_();return n===`none`?(0,U.jsx)(`div`,{"data-slot":`sidebar`,className:Gs(`bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col`,r),...a,children:i}):o?(0,U.jsx)(E_,{open:c,onOpenChange:l,children:(0,U.jsxs)(k_,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) max-w-[calc(100vw-2rem)] p-0`,style:{"--sidebar-width":R_},side:e,...a,children:[(0,U.jsxs)(A_,{className:`sr-only`,children:[(0,U.jsx)(j_,{children:`Sidebar`}),(0,U.jsx)(M_,{children:`Console navigation.`})]}),(0,U.jsx)(`div`,{className:`flex size-full min-h-0 flex-col pt-[env(safe-area-inset-top)] pb-[env(safe-area-inset-bottom)]`,children:i})]})}):(0,U.jsxs)(`div`,{className:`group peer text-sidebar-foreground hidden md:block`,"data-state":s,"data-collapsible":s===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,U.jsx)(`div`,{"data-slot":`sidebar-gap`,className:Gs(`transition-[width] duration-200 ease-linear relative w-(--sidebar-width) bg-transparent`,`group-data-[collapsible=offExamples]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,U.jsx)(`div`,{"data-slot":`sidebar-container`,className:Gs(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,e===`left`?`left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),...a,children:(0,U.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:`bg-sidebar group-data-[variant=floating]:ring-sidebar-border group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 flex size-full flex-col`,children:i})})]})}function G_({className:e,onClick:t,...n}){let{toggleSidebar:r}=H_();return(0,U.jsxs)(bl,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon-sm`,className:Gs(e),onClick:e=>{t?.(e),r()},...n,children:[(0,U.jsx)(to,{}),(0,U.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function K_({className:e,...t}){return(0,U.jsx)(`main`,{"data-slot":`sidebar-inset`,className:Gs(`bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 relative flex w-full flex-1 flex-col`,e),...t})}function q_({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:Gs(`gap-2 p-2 flex flex-col`,e),...t})}function J_({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:Gs(`gap-2 p-2 flex flex-col`,e),...t})}function Y_({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:Gs(`no-scrollbar gap-0 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function X_({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:Gs(`px-2 py-1 relative flex w-full min-w-0 flex-col`,e),...t})}function Z_({className:e,render:t,...n}){return Tg({defaultTagName:`div`,props:Ec({className:Gs(`text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 flex shrink-0 items-center outline-hidden [&>svg]:shrink-0`,e)},n),render:t,state:{sidebar:`group-label`,slot:`sidebar-group-label`}})}function Q_({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:Gs(`text-xs w-full`,e),...t})}function $_({className:e,...t}){return(0,U.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:Gs(`gap-px flex w-full min-w-0 flex-col`,e),...t})}function ev({className:e,...t}){return(0,U.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:Gs(`group/menu-item relative`,e),...t})}var tv=vl(`ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground gap-2 rounded-[calc(var(--radius-sm)+2px)] p-2 text-left text-xs transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 data-active:font-medium peer/menu-button flex w-full items-center overflow-hidden outline-hidden disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-xs`,sm:`h-7 text-xs`,lg:`h-12 text-xs group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function nv({render:e,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:i,className:a,...o}){let{isMobile:s,state:c}=H_(),l=Tg({defaultTagName:`button`,props:Ec({className:Gs(tv({variant:n,size:r}),a)},o),render:i?(0,U.jsx)(Cg,{render:e}):e,state:{active:t,sidebar:`menu-button`,size:r,slot:`sidebar-menu-button`}});return i?(typeof i==`string`&&(i={children:i}),(0,U.jsxs)(Sg,{children:[l,(0,U.jsx)(wg,{side:`right`,align:`center`,hidden:c!==`collapsed`||s,...i})]})):l}export{xg as $,Ks as $n,Fu as $t,Hg as A,Vl as An,xi as Ar,Ud as At,Yg as B,rl as Bn,h as Br,od as Bt,C_ as C,ou as Cn,Di as Cr,Qf as Ct,o_ as D,Xl as Dn,Xi as Dr,xf as Dt,s_ as E,$l as En,Bi as Er,Bf as Et,qg as F,yl as Fn,k as Fr,qd as Ft,Pg as G,Vc as Gn,l as Gr,Ku as Gt,t_ as H,Gc as Hn,d as Hr,rd as Ht,Jg as I,vl as In,D as Ir,Ld as It,Og as J,J as Jn,Au as Jt,Ng as K,Ec as Kn,qu as Kt,$g as L,ll as Ln,E as Lr,Gd as Lt,Bg as M,Fl as Mn,kr as Mr,Vd as Mt,Qg as N,Ol as Nn,j as Nr,zd as Nt,Vg as O,Wl as On,Ji as Or,Hd as Ot,Wg as P,bl as Pn,A as Pr,Rd as Pt,wg as Q,Qs as Qn,Iu as Qt,Kg as R,il as Rn,w as Rr,Fd as Rt,w_ as S,au as Sn,Ni as Sr,Zf as St,c_ as T,Ql as Tn,ji as Tr,zf as Tt,n_ as U,Hc as Un,o as Ur,Qu as Ut,Xg as V,Jc as Vn,p as Vr,Q as Vt,Fg as W,Uc as Wn,s as Wr,Z as Wt,Tg as X,Ys as Xn,Vu as Xt,Eg as Y,yc as Yn,ku as Yt,Sg as Z,q as Zn,zu as Zt,k_ as _,cu as _n,ea as _r,Em as _t,Q_ as a,Ru as an,eo as ar,rg as at,j_ as b,su as bn,Fi as br,hp as bt,K_ as c,Cu as cn,Ha as cr,Bh as ct,ev as d,wu as dn,Ta as dr,Hm as dt,Uu as en,Gs as er,Cg as et,U_ as f,Gu as fn,pa as fr,Km as ft,E_ as g,gu as gn,ra as gr,Am as gt,P_ as h,pu as hn,ia as hr,Fm as ht,X_ as i,Ou as in,no as ir,dg as it,Ug as j,Bl as jn,_i as jr,Wd as jt,Zg as k,Hl as kn,Si as kr,Bd as kt,$_ as l,Du as ln,Oa as lr,zh as lt,H_ as m,hu as mn,ca as mr,zm as mt,Y_ as n,Nu as nn,mo as nr,mg as nt,Z_ as o,Lu as on,Ka as or,Hh as ot,G_ as p,_u as pn,la as pr,Vm as pt,jg as q,Y as qn,Bu as qt,J_ as r,Pu as rn,so as rr,pg as rt,q_ as s,Hu as sn,Wa as sr,Vh as st,W_ as t,Mu as tn,yo as tr,bg as tt,nv as u,ju as un,Da as ur,sh as ut,M_ as v,X as vn,Oi as vr,$ as vt,__ as w,eu as wn,Li as wr,qf as wt,T_ as x,iu as xn,Pi as xr,cp as xt,A_ as y,lu as yn,Ii as yr,nm as yt,Gg as z,al as zn,C as zr,ad as zt};
|