@tinyrack/issuary-server 0.29.3 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/oauth-client.entity.d.ts +6 -6
- package/dist/entities/oauth-code.entity.d.ts +6 -6
- package/dist/entities/oauth-device-code.entity.d.ts +6 -6
- package/dist/entities/revoked-token.entity.d.ts +6 -6
- package/dist/entities/terms-content.entity.d.ts +3 -3
- package/dist/entities/terms.entity.d.ts +3 -3
- package/dist/entities/user-consent.entity.d.ts +6 -6
- package/dist/entities/user-passkey.entity.d.ts +4 -4
- package/dist/entities/user-passkey.entity.d.ts.map +1 -1
- package/dist/entities/user-passkey.entity.js.map +1 -1
- package/dist/entities/user-terms-consent.entity.d.ts +3 -3
- package/dist/entities/user-totp-recovery-code.entity.d.ts +3 -3
- package/dist/entities/user-totp.entity.d.ts +3 -3
- package/dist/entities/user.entity.d.ts +3 -3
- package/dist/entrypoints/app.d.ts +252 -4
- package/dist/entrypoints/app.d.ts.map +1 -1
- package/dist/entrypoints/database/postgres/compiled-functions.js +1 -1
- package/dist/entrypoints/database/postgres/compiled-functions.js.map +1 -1
- package/dist/entrypoints/database/sqlite/compiled-functions.js +1 -1
- package/dist/entrypoints/database/sqlite/compiled-functions.js.map +1 -1
- package/dist/repositories/user-passkey.repository.d.ts +3 -3
- package/dist/repositories/user-totp-recovery-code.repository.d.ts +2 -2
- package/dist/repositories/user-totp.repository.d.ts +3 -3
- package/dist/routes/api/auth/accounts/remove.post.d.ts +5 -5
- package/dist/routes/api/auth/index.d.ts +126 -2
- package/dist/routes/api/auth/index.d.ts.map +1 -1
- package/dist/routes/api/auth/passkey/options/post.d.ts +126 -2
- package/dist/routes/api/auth/passkey/options/post.d.ts.map +1 -1
- package/dist/routes/api/index.d.ts +252 -4
- package/dist/routes/api/index.d.ts.map +1 -1
- package/dist/routes/api/user/index.d.ts +126 -2
- package/dist/routes/api/user/index.d.ts.map +1 -1
- package/dist/routes/api/user/passkeys/register/options/post.d.ts +126 -2
- package/dist/routes/api/user/passkeys/register/options/post.d.ts.map +1 -1
- package/dist/routes/index.d.ts +272 -24
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/oauth/index.d.ts +9 -9
- package/dist/services/passkey.service.d.ts.map +1 -1
- package/dist/services/passkey.service.js +8 -1
- package/dist/services/passkey.service.js.map +1 -1
- package/frontend/client/assets/{CompositeItem-VmYWaHnv.js → CompositeItem-JwkStZhq.js} +1 -1
- package/frontend/client/assets/{FieldControl-D6zWw018.js → FieldControl-CwHXFt7p.js} +1 -1
- package/frontend/client/assets/{FieldItemContext-CPjig163.js → FieldItemContext-B3N2qWH8.js} +1 -1
- package/frontend/client/assets/{HydrationBoundary-CGOTaz3j.js → HydrationBoundary-C71PwQKm.js} +1 -1
- package/frontend/client/assets/{NullStore-BxU9yW8l.js → NullStore-UyCsFQfz.js} +1 -1
- package/frontend/client/assets/{Separator-eMrsmRws.js → Separator-Bu_799IG.js} +1 -1
- package/frontend/client/assets/{admin-console-BVGtfvzy.js → admin-console-Ej5TUkij.js} +1 -1
- package/frontend/client/assets/{admin-users-notice-DcKE5B43.js → admin-users-notice-D3rf-k5S.js} +1 -1
- package/frontend/client/assets/{alert-B9BFeQs3.js → alert-BIM0hnda.js} +1 -1
- package/frontend/client/assets/{alert-CFUBsmUN.js → alert-DS8e0Gvg.js} +1 -1
- package/frontend/client/assets/api-CfCwvXbU.js +1 -0
- package/frontend/client/assets/auth-choice-row-DNB3B1Vs.js +1 -0
- package/frontend/client/assets/auth-field-CDCz-y27.js +1 -0
- package/frontend/client/assets/{auth-footer-DgRsLHyD.js → auth-footer-LG_gGuJv.js} +1 -1
- package/frontend/client/assets/{auth-layout-CFKu8bHI.js → auth-layout-B4h13HhN.js} +1 -1
- package/frontend/client/assets/{auth-outcome-B7tCCKZC.js → auth-outcome-DyY0JgWG.js} +1 -1
- package/frontend/client/assets/{auth-page-header-D5Z-EA6V.js → auth-page-header-BVY4zRzF.js} +1 -1
- package/frontend/client/assets/authorization-context-banner-az4f8FCY.js +1 -0
- package/frontend/client/assets/{avatar-BacTFLjX.js → avatar-DupqO5iP.js} +1 -1
- package/frontend/client/assets/badge-Cr0iG_iG.js +1 -0
- package/frontend/client/assets/{card-CTv8DubK.js → card-BaQElRNE.js} +1 -1
- package/frontend/client/assets/checkbox-BymOAmaw.js +1 -0
- package/frontend/client/assets/circle-alert-BZCKPkRn.js +1 -0
- package/frontend/client/assets/circle-check-BW_XcUlv.js +1 -0
- package/frontend/client/assets/code-Dc5QnXCh.js +1 -0
- package/frontend/client/assets/components-DF4L3dSB.js +1 -0
- package/frontend/client/assets/{entry.client-wT_SpBr6.js → entry.client-DVFGkhCN.js} +1 -1
- package/frontend/client/assets/{errorBoundaries-BmdAyh9C.js → errorBoundaries-C_UC4h4T.js} +2 -2
- package/frontend/client/assets/field-Du5xBKGW.js +2 -0
- package/frontend/client/assets/fingerprint-pattern-AUfgwio5.js +1 -0
- package/frontend/client/assets/i18n-CMepi_uj.js +1 -0
- package/frontend/client/assets/{initial-avatar-D4aPMV9z.js → initial-avatar-ByHiX-IF.js} +1 -1
- package/frontend/client/assets/{input-BFJdEx8B.js → input-Dyj4-3JM.js} +1 -1
- package/frontend/client/assets/{jsx-runtime-BFZ_fnNJ.js → jsx-runtime-B-57GDDH.js} +1 -1
- package/frontend/client/assets/key-round-BlUAV-K9.js +1 -0
- package/frontend/client/assets/{labeled-separator-DkexQjxp.js → labeled-separator-JGa2pO6H.js} +1 -1
- package/frontend/client/assets/language-selector-Chn-k7Pw.js +1 -0
- package/frontend/client/assets/{link-DcBltZGP.js → link-Dsq51NsW.js} +1 -1
- package/frontend/client/assets/{link-button-qvSTUE1n.js → link-button-DGt9hwk7.js} +1 -1
- package/frontend/client/assets/lock-Cr_egoXD.js +1 -0
- package/frontend/client/assets/logout-DpMjBzc5.js +1 -0
- package/frontend/client/assets/mail-B2PK2vlI.js +1 -0
- package/frontend/client/assets/manifest-8c4a603f.js +1 -0
- package/frontend/client/assets/{modal-LoTH9Ttl.js → modal-BDu41alh.js} +1 -1
- package/frontend/client/assets/{mutation-C0KT2UXZ.js → mutation-DMG1qWFd.js} +1 -1
- package/frontend/client/assets/{oauth-search-BtLPTIS7.js → oauth-search-DybZ6VWp.js} +1 -1
- package/frontend/client/assets/passkey-CWcdr7Vy.js +1 -0
- package/frontend/client/assets/{passkey-error-CZnhXTc7.js → passkey-error-C3DrncLi.js} +1 -1
- package/frontend/client/assets/{password-reset-BuDycpfY.js → password-reset-BhkJhVQ4.js} +1 -1
- package/frontend/client/assets/{password-strength-DLtV7dBZ.js → password-strength-B1w3RCA1.js} +1 -1
- package/frontend/client/assets/{pin-input-DtemAOnm.js → pin-input-DiWLndxH.js} +1 -1
- package/frontend/client/assets/{progress-xdWpxn2G.js → progress-vGb7EZn1.js} +1 -1
- package/frontend/client/assets/promise-EbDcmV0j.js +1 -0
- package/frontend/client/assets/provider-mark-CCOkSxh7.js +1 -0
- package/frontend/client/assets/{react-dom-BxmrrPTH.js → react-dom-oT9-I0GD.js} +1 -1
- package/frontend/client/assets/{root-DTCHNfT8.js → root-C2SlHCkE.js} +1 -1
- package/frontend/client/assets/route-3IIrVTOK.js +1 -0
- package/frontend/client/assets/route-3gQ9Nsqa.js +1 -0
- package/frontend/client/assets/route-9FLiqn21.js +4 -0
- package/frontend/client/assets/route-BFU8OK2a.js +1 -0
- package/frontend/client/assets/{route-ID67gqvy.js → route-BKFb9RYA.js} +1 -1
- package/frontend/client/assets/{route-DHEnEwHa.js → route-BKI6LDOW.js} +1 -1
- package/frontend/client/assets/{route-CsT5EJEh.js → route-BUM2hTU8.js} +1 -1
- package/frontend/client/assets/{route-Cvob9_0Q.js → route-BYWFA1fQ.js} +1 -1
- package/frontend/client/assets/{route-Ceht21dJ.js → route-C4_l_qs9.js} +1 -1
- package/frontend/client/assets/{route-DlKXugZV.js → route-CkpB3-_U.js} +1 -1
- package/frontend/client/assets/{route-Caw4ohFV.js → route-CrswLAAa.js} +1 -1
- package/frontend/client/assets/{route-DLNoCW7x.js → route-CusK9Y2K.js} +1 -1
- package/frontend/client/assets/{route-CkS9fAlL.js → route-D9Y1oCUO.js} +1 -1
- package/frontend/client/assets/{route-DCfkikii.js → route-DEVG2czp.js} +1 -1
- package/frontend/client/assets/route-DFwqLWT0.js +1 -0
- package/frontend/client/assets/route-DH6kQz8L.js +1 -0
- package/frontend/client/assets/route-DO38I3ML.js +1 -0
- package/frontend/client/assets/{route-DVMfGHhl.js → route-DQpLeFuG.js} +1 -1
- package/frontend/client/assets/{route-_DMD2pp1.js → route-DSD60oyb.js} +1 -1
- package/frontend/client/assets/route-DjCJn53Y.js +1 -0
- package/frontend/client/assets/route-E-_SSP-x.js +1 -0
- package/frontend/client/assets/{route-R-BJj3-W.js → route-J9z_OG4L.js} +1 -1
- package/frontend/client/assets/{route-xuoylbDO.js → route-LjqDZz5f.js} +1 -1
- package/frontend/client/assets/{route-Bx9hz_OF.js → route-N586tYcn.js} +1 -1
- package/frontend/client/assets/route-bKG0wKRh.js +1 -0
- package/frontend/client/assets/{route-error-fallback-C2OHu3JW.js → route-error-fallback-CRL2Et8O.js} +1 -1
- package/frontend/client/assets/{route-module-Bm4sHkx9.js → route-module-2foR49uh.js} +1 -1
- package/frontend/client/assets/{route-C9TWgUZf.js → route-nHjY3_n0.js} +1 -1
- package/frontend/client/assets/route-sHm4cfOd.js +1 -0
- package/frontend/client/assets/{sanitized-rich-text-nFi_4i6F.js → sanitized-rich-text-uZcpKo6H.js} +1 -1
- package/frontend/client/assets/{schemas-Dxi9xZo6.js → schemas-B87iTMww.js} +2 -2
- package/frontend/client/assets/search-QwZZIij9.js +1 -0
- package/frontend/client/assets/select-C_WHBpl_.js +1 -0
- package/frontend/client/assets/separator-nIgnJSXV.js +1 -0
- package/frontend/client/assets/shell-header-bar-Bg85QIAq.js +1 -0
- package/frontend/client/assets/shield-check-2DKLuF9J.js +1 -0
- package/frontend/client/assets/{standard-schema-C8Td_miB.js → standard-schema-kM5DbC12.js} +1 -1
- package/frontend/client/assets/{table-D2oRcUKc.js → table-BpQCtRY7.js} +1 -1
- package/frontend/client/assets/{terms-BReb6uEz.js → terms-DV0oDTRf.js} +1 -1
- package/frontend/client/assets/text-CBHShrvS.js +1 -0
- package/frontend/client/assets/{toast-_zV1SGz6.js → toast-XXVYYXim.js} +1 -1
- package/frontend/client/assets/{totp-BW4BoCpi.js → totp-4989Pb-o.js} +1 -1
- package/frontend/client/assets/trash-C7RyeTUJ.js +1 -0
- package/frontend/client/assets/triangle-alert-B0lTzZDi.js +1 -0
- package/frontend/client/assets/use-admin-selection-i-WvRvvB.js +1 -0
- package/frontend/client/assets/use-totp-setup-D7XZ6Nos.js +2 -0
- package/frontend/client/assets/{useAriaLabelledBy-CYSspZIu.js → useAriaLabelledBy-CQ_H8SUl.js} +1 -1
- package/frontend/client/assets/{useMutation-C4CmK9Sb.js → useMutation-BkuKGzks.js} +1 -1
- package/frontend/client/assets/usePositioner-CrQOY-iw.js +1 -0
- package/frontend/client/assets/useQuery-BLm0XsTI.js +1 -0
- package/frontend/client/assets/useRender-DSFiJ2Vm.js +1 -0
- package/frontend/server/assets/{hydration-yaDCGSA8.js → hydration-Cvbp7-6s.js} +1 -1
- package/frontend/server/assets/{root-loader.server-Cwm-l9OS.js → root-loader.server-DaTcVcNU.js} +3 -3
- package/frontend/server/assets/{route-runtime.server-CjDbp5w6.js → route-runtime.server-CEa264cW.js} +1 -1
- package/frontend/server/assets/{session-CSnQWUgx.js → session-QqvIIQ6R.js} +13 -13
- package/frontend/server/index.js +2200 -1697
- package/package.json +18 -18
- package/frontend/client/assets/api-0SzZx6X7.js +0 -1
- package/frontend/client/assets/auth-choice-row-DBHleTc9.js +0 -1
- package/frontend/client/assets/auth-field-1EM9pnWe.js +0 -1
- package/frontend/client/assets/authorization-context-banner-Cqtzj9A1.js +0 -1
- package/frontend/client/assets/badge-BCQspax5.js +0 -1
- package/frontend/client/assets/checkbox-OA4CFk-6.js +0 -1
- package/frontend/client/assets/circle-alert-DGTJ9B9k.js +0 -1
- package/frontend/client/assets/circle-check-CGasu2tI.js +0 -1
- package/frontend/client/assets/code-RrwtZcA2.js +0 -1
- package/frontend/client/assets/components-C1SipCbb.js +0 -1
- package/frontend/client/assets/field-DzNLNMM0.js +0 -2
- package/frontend/client/assets/fingerprint-pattern-V_eTEvnZ.js +0 -1
- package/frontend/client/assets/i18n-BY3irWek.js +0 -1
- package/frontend/client/assets/key-round-DgCbGqQL.js +0 -1
- package/frontend/client/assets/language-selector-CGXk9vW_.js +0 -1
- package/frontend/client/assets/lock-m97gMmUy.js +0 -1
- package/frontend/client/assets/logout-CBTnIosZ.js +0 -1
- package/frontend/client/assets/mail-tgQpWyoC.js +0 -1
- package/frontend/client/assets/manifest-9217f574.js +0 -1
- package/frontend/client/assets/passkey-C9bzur2Z.js +0 -1
- package/frontend/client/assets/promise-CFWkfv2A.js +0 -1
- package/frontend/client/assets/provider-mark-B05f08GZ.js +0 -1
- package/frontend/client/assets/route-48mZ_bkD.js +0 -1
- package/frontend/client/assets/route-9i9rqQdx.js +0 -4
- package/frontend/client/assets/route-Bc48Eq7F.js +0 -1
- package/frontend/client/assets/route-C5Pe2AZT.js +0 -1
- package/frontend/client/assets/route-CBjporWj.js +0 -1
- package/frontend/client/assets/route-CLo3eo-R.js +0 -1
- package/frontend/client/assets/route-CPIXY7eE.js +0 -1
- package/frontend/client/assets/route-D-ycfUyo.js +0 -1
- package/frontend/client/assets/route-DokK6Iod.js +0 -1
- package/frontend/client/assets/route-OWWRYmAT.js +0 -1
- package/frontend/client/assets/route-goGP2kXu.js +0 -1
- package/frontend/client/assets/search-DSkOjYwI.js +0 -1
- package/frontend/client/assets/select--ltVnlVl.js +0 -1
- package/frontend/client/assets/separator-C5dnwYaA.js +0 -1
- package/frontend/client/assets/shell-header-bar-C3KYib1D.js +0 -1
- package/frontend/client/assets/shield-check-93-WFkyJ.js +0 -1
- package/frontend/client/assets/text-CGN4ZtUZ.js +0 -1
- package/frontend/client/assets/trash-2-BOsxjkzU.js +0 -1
- package/frontend/client/assets/triangle-alert-DSSurAZ_.js +0 -1
- package/frontend/client/assets/use-admin-selection-CAegSKw5.js +0 -1
- package/frontend/client/assets/use-totp-setup-BOSkSnYG.js +0 -2
- package/frontend/client/assets/usePositioner-DcBnB2-O.js +0 -1
- package/frontend/client/assets/useQuery-BtUeFnRt.js +0 -1
- package/frontend/client/assets/useRender-BF5_Ad3C.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,J as t,Y as n}from"./components-DF4L3dSB.js";import{t as r}from"./react-dom-oT9-I0GD.js";import{t as i}from"./jsx-runtime-B-57GDDH.js";import{d as a,l as o}from"./api-CfCwvXbU.js";var s=e(t(),1),c=`data-tr-focus-modality`,l=new WeakMap;function u(e=document){let t=l.get(e);if(t)return t.count+=1,()=>d(e);let n=e.documentElement,r=!0,i=e=>{e.metaKey||e.altKey||e.ctrlKey||(r=!0)},a=()=>{r=!1},o=()=>{n.setAttribute(c,r?`keyboard`:`pointer`)},s=()=>{r=!0},u={capture:!0,passive:!0},f=e.defaultView;return e.addEventListener(`keydown`,i,u),e.addEventListener(`pointerdown`,a,u),e.addEventListener(`mousedown`,a,u),e.addEventListener(`touchstart`,a,u),e.addEventListener(`focusin`,o,u),f?.addEventListener(`blur`,s),l.set(e,{count:1,teardown:()=>{e.removeEventListener(`keydown`,i,u),e.removeEventListener(`pointerdown`,a,u),e.removeEventListener(`mousedown`,a,u),e.removeEventListener(`touchstart`,a,u),e.removeEventListener(`focusin`,o,u),f?.removeEventListener(`blur`,s),n.removeAttribute(c)}}),()=>d(e)}function d(e){let t=l.get(e);t&&(--t.count,!(t.count>0)&&(l.delete(e),t.teardown()))}function f(){(0,s.useEffect)(()=>u(),[])}function p(e,t,{tracksFocusModality:n=!1}={}){function r(n){if(t===void 0)return(0,s.createElement)(e,n);let{className:r,...i}=n;return(0,s.createElement)(e,{...i,className:a(t,r)})}return n?function(e){return f(),r(e)}:function(e){return r(e)}}var m=e(r(),1),h={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},g={...h,position:`fixed`,top:0,left:0},_={...h,position:`absolute`};function v(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function y(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 b=y(`https://base-ui.com/production-error`,`Base UI`),x={};function S(e,t){let n=s.useRef(x);return n.current===x&&(n.current=e(t)),n}var C=i();function w(e,t,n,r){let i=S(E).current;return D(i,e,t,n,r)&&O(i,[e,t,n,r]),i.callback}function T(e){let t=S(E).current;return ee(t,e)&&O(t,e),t.callback}function E(){return{callback:null,cleanup:null,refs:[]}}function D(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function ee(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function O(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}}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}}}}}}var te=19;function k(e){return te>=e}function A(e){if(!s.isValidElement(e))return null;let t=e,n=t.props;return(k(19)?n?.ref:t.ref)??null}function j(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function M(){}var ne=Object.freeze([]),N=Object.freeze({});function re(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 ie(e,t){return typeof e==`function`?e(t):e}function P(e,t){return typeof e==`function`?e(t):e}var ae={};function oe(e,t,n,r,i){if(!n&&!r&&!i&&!e)return ce(t);let a=ce(e);return t&&(a=F(a,t)),n&&(a=F(a,n)),r&&(a=F(a,r)),i&&(a=F(a,i)),a}function se(e){if(e.length===0)return ae;if(e.length===1)return ce(e[0]);let t=ce(e[0]);for(let n=1;n<e.length;n+=1)t=F(t,e[n]);return t}function ce(e){return de(e)?{...fe(e,ae)}:I(e)}function F(e,t){return de(t)?fe(t,e):le(e,t)}function I(e){let t={...e};for(let e in t){let n=t[e];ue(e,n)&&(t[e]=me(n))}return t}function le(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=j(e.style,r);break;case`className`:e[n]=ge(e.className,r);break;default:e[n]=ue(n,r)?pe(e[n],r):r}}return e}function ue(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 de(e){return typeof e==`function`}function fe(e,t){return de(e)?e(t):e??ae}function pe(e,t){return t?e?(...n)=>{let r=n[0];if(_e(r)){let i=r;he(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:me(t):e}function me(e){return e&&((...t)=>{let n=t[0];return _e(n)&&he(n),e(...t)})}function he(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function ge(e,t){return t?e?t+` `+e:t:e}function _e(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function ve(e,t,n={}){let r=t.render,i=ye(t,n);return n.enabled===!1?null:Se(e,r,i,n.state??N)}function ye(e,t={}){let{className:n,style:r,render:i}=e,{state:a=N,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?ie(n,a):void 0,d=l?P(r,a):void 0,f=l?re(a,c):N,p=l&&s?be(s):void 0,m=l?j(f,p)??{}:N;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?T([m.ref,A(i),...o]):w(m.ref,A(i),o):w(null,null)),l?(u!==void 0&&(m.className=ge(m.className,u)),d!==void 0&&(m.style=j(m.style,d)),m):N}function be(e){return Array.isArray(e)?se(e):oe(void 0,e)}var xe=Symbol.for(`react.lazy`);function Se(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=oe(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===xe&&(i=s.Children.toArray(t)[0]),s.cloneElement(i,e)}if(e&&typeof e==`string`)return Ce(e,n);throw Error(b(8))}function Ce(e,t){return e===`button`?(0,s.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,s.createElement)(`img`,{alt:``,...t,key:t.key}):s.createElement(e,t)}var L=typeof document<`u`?s.useLayoutEffect:()=>{},we={...s},Te=0;function Ee(e,t=`mui`){let[n,r]=s.useState(e),i=e||n;return s.useEffect(()=>{n??(Te+=1,r(`${t}-${Te}`))},[n,t]),i}var R=we.useId;function De(e,t){if(R!==void 0){let n=R();return e??(t?`${t}-${n}`:n)}return Ee(e,t)}function Oe(e){return De(e,`base-ui`)}function ke(e,t){let n=Oe(e);return L(()=>(t(n),()=>{t(e=>e===n?void 0:e)}),[n,t]),n}function Ae(e){s.useEffect(e,ne)}var je=n((e=>{var n=t(),r=o();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,s=r.useSyncExternalStore,c=n.useRef,l=n.useEffect,u=n.useMemo,d=n.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=c(null);if(o.current===null){var f={hasValue:!1,value:null};o.current=f}else f=o.current;o=u(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=s(e,o[0],o[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),d(p),p}})),Me=n(((e,t)=>{t.exports=je()})),z=o(),Ne=Me(),Pe=[],Fe=void 0;function Ie(){return Fe}function Le(e){Pe.push(e)}function Re(e){let t=(t,n)=>{let r=S(Be).current,i;try{Fe=r;for(let e of Pe)e.before(r);i=e(t,n);for(let e of Pe)e.after(r);r.didInitialize=!0}finally{Fe=void 0}return i};return t.displayName=e.displayName||e.name,t}function ze(e){return s.forwardRef(Re(e))}function Be(){return{didInitialize:!1}}var Ve=k(19)?We:Ge;function He(e,t,n,r,i){return Ve(e,t,n,r,i)}function Ue(e,t,n,r,i){let a=s.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,z.useSyncExternalStore)(e.subscribe,a,a)}Le({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);Object.is(r.value,i)||(t=!0,r.value=i)}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,z.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function We(e,t,n,r,i){let a=Ie();if(!a)return Ue(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.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function Ge(e,t,n,r,i){return(0,Ne.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Ke=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 He(this,e,t,n,r)}},qe=we.useInsertionEffect,Je=qe&&qe!==we.useLayoutEffect?qe:e=>e();function B(e){let t=S(Ye).current;return t.next=e,Je(t.effect),t.trampoline}function Ye(){let e={next:void 0,callback:Xe,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Xe(){}var Ze=class extends Ke{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){s.useDebugValue(e);let n=this;L(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;L(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;L(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){s.useDebugValue(e);let n=this,r=t!==void 0;L(()=>{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 s.useDebugValue(e),He(this,this.selectors[e],t,n,r)}useContextCallback(e,t){s.useDebugValue(e);let n=B(t??M);this.context[e]=n}useStateSetter(e){let t=s.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)}})}};function Qe(){return typeof window<`u`}function V(e){return $e(e)?(e.nodeName||``).toLowerCase():`#document`}function H(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function U(e){return(($e(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function $e(e){return Qe()?e instanceof Node||e instanceof H(e).Node:!1}function W(e){return Qe()?e instanceof Element||e instanceof H(e).Element:!1}function G(e){return Qe()?e instanceof HTMLElement||e instanceof H(e).HTMLElement:!1}function et(e){return!Qe()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof H(e).ShadowRoot}function tt(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=K(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function nt(e){return/^(table|td|th)$/.test(V(e))}function rt(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var it=/transform|translate|scale|rotate|perspective|filter/,at=/paint|layout|strict|content/,ot=e=>!!e&&e!==`none`,st;function ct(e){let t=W(e)?K(e):e;return ot(t.transform)||ot(t.translate)||ot(t.scale)||ot(t.rotate)||ot(t.perspective)||!ut()&&(ot(t.backdropFilter)||ot(t.filter))||it.test(t.willChange||``)||at.test(t.contain||``)}function lt(e){let t=q(e);for(;G(t)&&!dt(t);){if(ct(t))return t;if(rt(t))return null;t=q(t)}return null}function ut(){return st??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),st}function dt(e){return/^(html|body|#document)$/.test(V(e))}function K(e){return H(e).getComputedStyle(e)}function ft(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function q(e){if(V(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||et(e)&&e.host||U(e);return et(t)?t.host:t}function pt(e){let t=q(e);return dt(t)?(e.ownerDocument||e).body:G(t)&&tt(t)?t:pt(t)}function mt(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=pt(e),i=r===e.ownerDocument?.body,a=H(r);if(i){let e=ht(a);return t.concat(a,a.visualViewport||[],tt(r)?r:[],e&&n?mt(e):[])}return t.concat(r,mt(r,[],n))}function ht(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function gt(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function _t(e){return e?.ownerDocument||document}function vt(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}var yt=null;globalThis.requestAnimationFrame;var bt=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)}},xt=class e{static create(){return new e}static request(e){return bt.request(e)}static cancel(e){return bt.cancel(e)}currentId=yt;request(e){this.cancel(),this.currentId=bt.request(()=>{this.currentId=yt,e()})}cancel=()=>{this.currentId!==yt&&(bt.cancel(this.currentId),this.currentId=yt)};disposeEffect=()=>this.cancel};function St(){let e=S(xt.create).current;return Ae(e.disposeEffect),e}var Ct=0,wt=class e{static create(){return new e}currentId=Ct;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Ct,t()},e)}isStarted(){return this.currentId!==Ct}clear=()=>{this.currentId!==Ct&&(clearTimeout(this.currentId),this.currentId=Ct)};disposeEffect=()=>this.clear};function Tt(){let e=S(wt.create).current;return Ae(e.disposeEffect),e}function Et(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Dt,platform:Ot,maxTouchPoints:kt}=Et(),At=Dt.toLowerCase(),jt=Ot.toLowerCase(),Mt=/^i(os$|p)/.test(jt)||jt===`macintel`&&kt>1,Nt=`android`,Pt=jt===Nt||At.includes(Nt),Ft=!Mt&&jt.startsWith(`mac`);jt.startsWith(`win`),!Pt&&/^(linux|chrome os)/.test(jt);var It=Ft||Mt,Lt=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!Lt&&At.includes(`firefox`),!Lt&&At.includes(`chrom`);var Rt=It,zt=/jsdom|happydom/.test(At),Bt=`data-base-ui-focusable`,Vt=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,Ht=`ArrowLeft`,Ut=`ArrowRight`,Wt=`ArrowUp`,Gt=`ArrowDown`;function Kt(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function qt(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&et(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Jt(e){return`composedPath`in e?e.composedPath()[0]:e.target}function Yt(e,t){if(!W(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(qt(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function Xt(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 Zt(e){return e.matches(`html,body`)}function Qt(e){return G(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function $t(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Vt}`)!=null}function en(e){return e?e.getAttribute(`role`)===`combobox`&&Qt(e):!1}function tn(e){if(!e||zt)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function nn(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function rn(e){e.preventDefault(),e.stopPropagation()}function an(e){return`nativeEvent`in e}function on(e){return e.pointerType===``&&e.isTrusted?!0:Pt&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function sn(e){return zt?!1:!Pt&&e.width===0&&e.height===0||Pt&&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 cn(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function ln(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var un=Math.min,J=Math.max,dn=Math.round,fn=Math.floor,Y=e=>({x:e,y:e}),pn={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function mn(e,t,n){return J(e,un(t,n))}function X(e,t){return typeof e==`function`?e(t):e}function Z(e){return e.split(`-`)[0]}function Q(e){return e.split(`-`)[1]}function hn(e){return e===`x`?`y`:`x`}function gn(e){return e===`y`?`height`:`width`}function $(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function _n(e){return hn($(e))}function vn(e,t,n){n===void 0&&(n=!1);let r=Q(e),i=_n(e),a=gn(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Dn(o)),[o,Dn(o)]}function yn(e){let t=Dn(e);return[bn(e),t,bn(t)]}function bn(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var xn=[`left`,`right`],Sn=[`right`,`left`],Cn=[`top`,`bottom`],wn=[`bottom`,`top`];function Tn(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Sn:xn:t?xn:Sn;case`left`:case`right`:return t?Cn:wn;default:return[]}}function En(e,t,n,r){let i=Q(e),a=Tn(Z(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(bn)))),a}function Dn(e){let t=Z(e);return pn[t]+e.slice(t.length)}function On(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function kn(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:On(e)}function An(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 jn(e,t){return t<0||t>=e.length}function Mn(e,t){return Pn(e.current,{disabledIndices:t})}function Nn(e,t){return Pn(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Pn(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&&Fn(e,a,r));return a}function Fn(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!Ln(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function In(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Ln(e,t=e?K(e):null){return!e||!e.isConnected||!t||In(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var Rn=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function zn(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return et(n)?n.host:null}function Bn(e){for(let t of Array.from(e.children))if(V(t)===`summary`)return t;return null}function Vn(e,t){let n=Bn(t);return!!n&&(e===n||qt(n,e))}function Hn(e){let t=e?V(e):``;return e!=null&&e.matches(Rn)&&(t!==`summary`||e.parentElement!=null&&V(e.parentElement)===`details`&&Bn(e.parentElement)===e)&&(t!==`details`||Bn(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Un(e){if(!Hn(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=zn(t)){let n=t!==e,r=V(t)===`slot`;if(t.hasAttribute(`inert`)||n&&V(t)===`details`&&!t.open&&!Vn(e,t)||t.hasAttribute(`hidden`)||!r&&!Wn(t,n))return!1}return!0}function Wn(e,t){let n=K(e);return t?n.display!==`none`:Ln(e,n)}function Gn(e){let t=e.tabIndex;if(t<0){let t=V(e);if(t===`details`||t===`audio`||t===`video`||G(e)&&e.isContentEditable)return 0}return t}function Kn(e){if(V(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function qn(e,t){let n=Kn(e);if(!n)return!0;let r=t.find(e=>{let t=Kn(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Kn(e);return t?.name===n.name&&t.form===n.form})===n}function Jn(e){if(G(e)&&V(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return G(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Yn(e,t){Jn(e).forEach(e=>{Hn(e)&&t.push(e),Yn(e,t)})}function Xn(e,t,n){Jn(e).forEach(e=>{G(e)&&e.matches(t)&&n.push(e),Xn(e,t,n)})}function Zn(e){return Un(e)&&Gn(e)>=0}function Qn(e){let t=[];return Yn(e,t),t.filter(Un)}function $n(e){let t=Qn(e);return t.filter(e=>Gn(e)>=0&&qn(e,t))}function er(e,t){let n=$n(e),r=n.length;if(r===0)return;let i=Kt(_t(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function tr(e){return er(_t(e).body,1)||e}function nr(e){return er(_t(e).body,-1)||e}function rr(e,t){if(!e)return null;let n=$n(_t(e).body),r=n.length;if(r===0)return null;let i=n.indexOf(e);return i===-1?null:n[(i+t+r)%r]}function ir(e){return rr(e,1)}function ar(e){return rr(e,-1)}function or(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!qt(n,r)}function sr(e){$n(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function cr(e){let t=[];Xn(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var lr=s.forwardRef(function(e,t){let[n,r]=s.useState();L(()=>{Rt&&Lt&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,C.jsx)(`span`,{...e,ref:t,style:g,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function ur(e){return k(19)?e:e?`true`:void 0}var dr=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),fr={"data-starting-style":``},pr={"data-ending-style":``},mr={transitionStatus(e){return e===`starting`?fr:e===`ending`?pr:null}};function hr(e){return e==null?e:`current`in e?e.current:e}function gr(e,t=!1){let n=St();return B((r,i=null)=>{n.cancel();let a=hr(e);if(a==null)return;let o=a,s=()=>{m.flushSync(r)};if(typeof o.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){r();return}function c(){Promise.all(o.getAnimations().map(e=>e.finished)).then(()=>{i?.aborted||s()},()=>{if(!i?.aborted){if(o.getAnimations().some(e=>e.pending||e.playState!==`finished`)){c();return}s()}})}if(t){let e=`data-starting-style`;if(!o.hasAttribute(e)){n.request(c);return}let t=new MutationObserver(()=>{o.hasAttribute(e)||(t.disconnect(),c())});t.observe(o,{attributes:!0,attributeFilter:[e]}),i?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}n.request(c)})}function _r(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=B(i),o=gr(r,n);s.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}var vr={style:{transition:`none`}},yr=`data-base-ui-click-trigger`,br=`data-base-ui-swipe-ignore`,xr=`data-swipe-ignore`,Sr=`[${br}]`,Cr=`[${xr}]`,wr={fallbackAxisSide:`none`},Tr={fallbackAxisSide:`end`},Er={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},Dr=s.createContext(void 0);function Or(e=!1){let t=s.useContext(Dr);if(t===void 0&&!e)throw Error(b(16));return t}function kr(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,c=r&&t===!1;return{props:s.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||c)&&(e.disabled=n),e},[r,n,t,o,c,a,i])}}function Ar(e,t,{detail:n=0}={}){e.dispatchEvent(new(H(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function jr(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=s.useRef(null),c=Or(!0),l=a??c!==void 0,{props:u}=kr({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:r,isNativeButton:i}),d=s.useCallback(()=>{let e=o.current;Mr(e)&&l&&t&&u.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,u.disabled,l]);return L(d,[d]),{getButtonProps:s.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...c}=e;return oe({onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(he(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=Mr(r),s=!i&&Nr(r),c=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&l&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),Ar(r,e));return}if(!c||i||!d&&!u){n&&s&&d&&e.preventDefault();return}e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),Ar(r,e)))},onKeyUp(e){if(!t){if(he(e),a?.(e),e.target===e.currentTarget&&i&&l&&Mr(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!l&&!e.defaultPrevented&&e.key===` `&&(e.preventBaseUIHandler(),Ar(e.currentTarget,e))}},onPointerDown(e){if(t){e.preventDefault();return}s?.(e)}},i?{type:`button`}:{role:`button`},u,c)},[t,u,l,i]),buttonRef:B(e=>{o.current=e,d()})}}function Mr(e){return G(e)&&e.tagName===`BUTTON`}function Nr(e){return G(e)&&e.tagName===`A`&&!!e.href}var Pr=`none`,Fr=`trigger-press`,Ir=`trigger-hover`,Lr=`trigger-focus`,Rr=`outside-press`,zr=`item-press`,Br=`close-press`,Vr=`input-change`,Hr=`input-clear`,Ur=`input-paste`,Wr=`focus-out`,Gr=`escape-key`,Kr=`close-watcher`,qr=`list-navigation`,Jr=`keyboard`,Yr=`cancel-open`,Xr=`sibling-open`,Zr=`disabled`,Qr=`imperative-action`,$r=`swipe`,ei=`window-resize`;function ti(e,t,n,r){let i=!1,a=!1,o=r??N;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 ni(e,t,n){let r=n??N;return{reason:e,event:t??new Event(`base-ui`),...r}}function ri(e){return`data-base-ui-${e}`}var ii=s.createContext(null),ai=()=>s.useContext(ii),oi=ri(`portal`);function si(e={}){let{ref:t,container:n,componentProps:r=N,elementProps:i}=e,a=De(),o=ai()?.portalNode,[c,l]=s.useState(null),[u,d]=s.useState(null),f=B(e=>{e!==null&&d(e)}),p=s.useRef(null);L(()=>{if(n===null){p.current&&(p.current=null,d(null),l(null));return}let e=(n&&($e(n)?n:n.current))??o??document.body;if(e==null){p.current&&(p.current=null,d(null),l(null));return}p.current!==e&&(p.current=e,d(null),l(e))},[n,o]);let h=ve(`div`,r,{ref:[t,f],props:[{id:a,[oi]:``},i]}),g=c&&h?m.createPortal(h,c):null;return{node:u,nodeId:s.isValidElement(h)?h.props.id:void 0,subtree:g}}var ci=s.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,...c}=e,{node:l,nodeId:u,subtree:d}=si({container:o,ref:t,componentProps:e,elementProps:c}),f=s.useRef(null),p=s.useRef(null),h=s.useRef(null),g=s.useRef(null),[_,v]=s.useState(null),y=s.useRef(!1),b=_?.modal,x=_?.open,S=!!_&&!_.modal&&_.open&&!!l;s.useEffect(()=>{if(!l||b)return;function e(e){l&&e.relatedTarget&&or(e)&&(e.type===`focusin`?y.current&&=(cr(l),!1):(sr(l),y.current=!0))}return gt(vt(l,`focusin`,e,!0),vt(l,`focusout`,e,!0))},[l,b]),L(()=>{l&&x===!0&&y.current&&(cr(l),y.current=!1)},[x,l]);let w=s.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:h,afterInsideRef:g,portalNode:l,setFocusManagerState:v}),[l]);return(0,C.jsxs)(s.Fragment,{children:[d,(0,C.jsxs)(ii.Provider,{value:w,children:[S&&l&&(0,C.jsx)(lr,{"data-type":`outside`,ref:f,onFocus:e=>{or(e,l)?h.current?.focus():nr(_?_.domReference:null)?.focus()}}),S&&l&&(0,C.jsx)(`span`,{"aria-owns":u,style:Er}),l&&m.createPortal(a,l),S&&l&&(0,C.jsx)(lr,{"data-type":`outside`,ref:p,onFocus:e=>{or(e,l)?g.current?.focus():(tr(_?_.domReference:null)?.focus(),_?.closeOnFocusOut&&_?.onOpenChange(!1,ti(`focus-out`,e.nativeEvent)))}})]})]})});function li(e){let t=S(ui,e).current;return t.next=e,L(t.effect),t}function ui(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function di(){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 fi=class{nodesRef={current:[]};events=di();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},pi=s.createContext(null),mi=s.createContext(null),hi=()=>s.useContext(pi)?.id||null,gi=e=>{let t=s.useContext(mi);return e??t};function _i(e){let t=De(),n=gi(e),r=hi();return L(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function vi(e){let{children:t,id:n}=e,r=hi();return(0,C.jsx)(pi.Provider,{value:s.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function yi(e){let{children:t,externalTree:n}=e,r=S(()=>n??new fi).current;return(0,C.jsx)(mi.Provider,{value:r,children:t})}function bi(e,t,n){let{reference:r,floating:i}=e,a=$(t),o=_n(t),s=gn(o),c=Z(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}}let m=Q(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function xi(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}=X(t,e),p=kn(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=An(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=An(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 Si=50,Ci=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:xi},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=bi(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<Si&&(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}=bi(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},wi=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}=X(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Z(r),_=$(o),v=Z(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Dn(o)]:yn(o)),x=p!==`none`;!d&&x&&b.push(...En(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=vn(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===$(t)||T.every(e=>$(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.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=T.filter(e=>{if(x){let t=$(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}if(r!==n)return{reset:{placement:n}}}return{}}}},Ti=new Set([`left`,`top`]);async function Ei(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Z(n),s=Q(n),c=$(n)===`y`,l=Ti.has(o)?-1:1,u=a&&c?-1:1,d=X(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 Di=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 Ei(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}}}}},Oi=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}=X(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=$(i),p=hn(f),m=u[p],h=u[f],g=(e,t)=>mn(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},ki=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}=X(e,t),u={x:n,y:r},d=$(i),f=hn(d),p=u[f],m=u[d],h=X(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};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=Ti.has(Z(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}}}},Ai=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=X(e,t),c=await i.detectOverflow(t,s),l=Z(n),u=Q(n),d=$(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=un(p-c[m],g),y=un(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*J(c.left,c.right):S=p-2*J(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function ji(e){let t=K(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=G(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=dn(n)!==a||dn(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Mi(e){return W(e)?e:e.contextElement}function Ni(e){let t=Mi(e);if(!G(t))return Y(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ji(t),o=(a?dn(n.width):n.width)/r,s=(a?dn(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Pi=Y(0);function Fi(e){let t=H(e);return!ut()||!t.visualViewport?Pi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ii(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===H(e)}function Li(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Mi(e),o=Y(1);t&&(r?W(r)&&(o=Ni(r)):o=Ni(e));let s=Ii(a,n,r)?Fi(a):Y(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&&r){let e=H(a),t=W(r)?H(r):r,n=e,i=ht(n);for(;i&&t!==n;){let e=Ni(i),t=i.getBoundingClientRect(),r=K(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=H(i),i=ht(n)}}return An({width:u,height:d,x:c,y:l})}function Ri(e,t){let n=ft(e).scrollLeft;return t?t.left+n:Li(U(e)).left+n}function zi(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ri(e,n),y:n.top+t.scrollTop}}function Bi(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=U(r),s=t?rt(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Y(1),u=Y(0),d=G(r);if((d||!a)&&((V(r)!==`body`||tt(o))&&(c=ft(r)),d)){let e=Li(r);l=Ni(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?zi(o,c):Y(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 Vi(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Hi(e){let t=ft(e),n=e.ownerDocument.body,r=J(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=J(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Ri(e),o=-t.scrollTop;return K(n).direction===`rtl`&&(a+=J(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Ui=25;function Wi(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=H(e),a=U(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!ut()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Ri(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Ui&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Gi(e,t){let n=Li(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ni(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ki(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Wi(e,n,t);else if(t===`document`)r=Hi(U(e));else if(W(t))r=Gi(t,n);else{let n=Fi(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return An(r)}function qi(e,t){let n=t.get(e);if(n)return n;let r=mt(e,[],!1).filter(e=>W(e)&&V(e)!==`body`),i=null,a=K(e).position===`fixed`,o=a?q(e):e;for(;W(o)&&!dt(o);){let e=K(o),t=ct(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=q(o)}return t.set(e,r),r}function Ji(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?rt(t)?[]:qi(t,this._c):[].concat(n),r],o=Ki(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=Ki(t,a[e],i);s=J(n.top,s),c=un(n.right,c),l=un(n.bottom,l),u=J(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Yi(e){let{width:t,height:n}=ji(e);return{width:t,height:n}}function Xi(e,t,n){let r=G(t),i=U(t),a=n===`fixed`,o=Li(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Y(0);if((r||!a)&&((V(t)!==`body`||tt(i))&&(s=ft(t)),r)){let e=Li(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Ri(i));let l=i&&!r&&!a?zi(i,s):Y(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Zi(e){return K(e).position===`static`}function Qi(e,t){if(!G(e)||K(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return U(e)===n&&(n=n.ownerDocument.body),n}function $i(e,t){let n=H(e);if(rt(e))return n;if(!G(e)){let t=q(e);for(;t&&!dt(t);){if(W(t)&&!Zi(t))return t;t=q(t)}return n}let r=Qi(e,t);for(;r&&nt(r)&&Zi(r);)r=Qi(r,t);return r&&dt(r)&&Zi(r)&&!ct(r)?n:r||lt(e)||n}var ea=async function(e){let t=this.getOffsetParent||$i,n=this.getDimensions,r=await n(e.floating);return{reference:Xi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ta(e){return K(e).direction===`rtl`}var na={convertOffsetParentRelativeRectToViewportRelativeRect:Bi,getDocumentElement:U,getClippingRect:Ji,getOffsetParent:$i,getElementRects:ea,getClientRects:Vi,getDimensions:Yi,getScale:Ni,isElement:W,isRTL:ta};function ra(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ia(e,t,n){let r=null,i,a=U(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=fn(d),h=fn(a.clientWidth-(u+f)),g=fn(a.clientHeight-(d+p)),_=fn(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:J(0,un(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!ra(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=H(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function aa(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=Mi(e),u=i||a?[...l?mt(l):[],...t?mt(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?ia(l,n,a):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?Li(e):null;c&&g();function g(){let t=Li(e);h&&!ra(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 oa=Di,sa=Oi,ca=wi,la=Ai,ua=ki,da=(e,t,n)=>{let r=new Map,i=n??{},a={...na,...i.platform,_c:r};return Ci(e,t,{...i,platform:a})},fa=typeof document<`u`?s.useLayoutEffect:function(){};function pa(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(!pa(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)&&!pa(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function ma(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ha(e,t){let n=ma(e);return Math.round(t*n)/n}function ga(e){let t=s.useRef(e);return fa(()=>{t.current=e}),t}function _a(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[d,f]=s.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=s.useState(r);pa(p,r)||h(r);let[g,_]=s.useState(null),[v,y]=s.useState(null),b=s.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=s.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=a||g,C=o||v,w=s.useRef(null),T=s.useRef(null),E=s.useRef(d),D=l!=null,ee=ga(l),O=ga(i),te=ga(u),k=s.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:p};O.current&&(e.platform=O.current),da(w.current,T.current,e).then(e=>{let t={...e,isPositioned:te.current!==!1};A.current&&!pa(E.current,t)&&(E.current=t,m.flushSync(()=>{f(t)}))})},[p,t,n,O,te]);fa(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let A=s.useRef(!1);fa(()=>(A.current=!0,()=>{A.current=!1}),[]),fa(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(ee.current)return ee.current(S,C,k);k()}},[S,C,k,ee,D]);let j=s.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),M=s.useMemo(()=>({reference:S,floating:C}),[S,C]),ne=s.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=ha(M.floating,d.x),r=ha(M.floating,d.y);return c?{...e,transform:`translate(`+t+`px, `+r+`px)`,...ma(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,c,M.floating,d.x,d.y]);return s.useMemo(()=>({...d,update:k,refs:j,elements:M,floatingStyles:ne}),[d,k,j,M,ne])}var va=(e,t)=>{let n=oa(e);return{name:n.name,fn:n.fn,options:[e,t]}},ya=(e,t)=>{let n=sa(e);return{name:n.name,fn:n.fn,options:[e,t]}},ba=(e,t)=>({fn:ua(e).fn,options:[e,t]}),xa=(e,t)=>{let n=ca(e);return{name:n.name,fn:n.fn,options:[e,t]}},Sa=(e,t)=>{let n=la(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ca={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},wa=class extends Ze{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:di(),nested:n,triggerElements:i},Ca),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&ln(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)}},Ta=class{constructor(){this.idMap=new Map}add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}};function Ea(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=De(),a=hi()!=null,o=S(()=>new wa({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Ta,floatingId:i,syncOnly:!1,nested:a})).current;return L(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=W(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 Da(e){return Oa(e,e.rootContext)}function Oa(e,t){let{nodeId:n,externalTree:r}=e,i=t.useState(`referenceElement`),a=t.useState(`floatingElement`),o=t.useState(`domReferenceElement`),c=t.useState(`open`),l=t.useState(`floatingId`),[u,d]=s.useState(null),[f,p]=s.useState(void 0),[m,h]=s.useState(void 0),g=s.useRef(null),_=gi(r),v=s.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),y=_a({...e,elements:{...v,...u&&{reference:u}}}),b=W(f)?f:null,x=m===void 0?t.state.floatingElement:m;t.useSyncedValue(`referenceElement`,f??null),t.useSyncedValue(`domReferenceElement`,f===void 0?o:b),t.useSyncedValue(`floatingElement`,x);let S=s.useCallback(e=>{let t=W(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),y.refs.setReference(t)},[y.refs]),C=s.useCallback(e=>{(W(e)||e===null)&&(g.current=e,p(e)),(W(y.refs.reference.current)||y.refs.reference.current===null||e!==null&&!W(e))&&y.refs.setReference(e)},[y.refs,p]),w=s.useCallback(e=>{h(e),y.refs.setFloating(e)},[y.refs]),T=s.useMemo(()=>({...y.refs,setReference:C,setFloating:w,setPositionReference:S,domReference:g}),[y.refs,C,w,S]),E=s.useMemo(()=>({...y.elements,domReference:o}),[y.elements,o]),D=s.useMemo(()=>({...y,dataRef:t.context.dataRef,open:c,onOpenChange:t.setOpen,events:t.context.events,floatingId:l,refs:T,elements:E,nodeId:n,rootStore:t}),[y,T,E,n,t,c,l]);return L(()=>{o&&(g.current=o)},[o]),L(()=>{t.context.dataRef.current.floatingContext=D;let e=_?.nodesRef.current.find(e=>e.id===n);e&&(e.context=D)}),s.useMemo(()=>({...y,context:D,refs:T,elements:E,rootStore:t}),[y,T,E,D,t])}var ka=s.createContext(void 0);function Aa(){return s.useContext(ka)?.direction??`ltr`}var ja=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`}=X(e,t)||{};if(l==null)return{};let f=kn(u),p={x:n,y:r},m=_n(i),h=gn(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 T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),ee=Math.min(f[y],E),O=D,te=w-g[h]-ee,k=w/2-g[h]/2+T,A=mn(O,k,te),j=!c.arrow&&Q(i)!=null&&k!==A&&a.reference[h]/2-(k<O?D:ee)-g[h]/2<0,M=j?k<O?k-O:k-te:0;return{[m]:p[m]+M,data:{[m]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),Ma=(e,t)=>({...ja(e),options:[e,t]}),Na={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,o=await e.platform.detectOverflow(e,{elementContext:`reference`});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||a}}}},Pa={sideX:`left`,sideY:`top`},Fa=`--available-width`,Ia=`--available-height`;function La(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 Ra(e,t,n){let{rects:r,placement:i}=e;return{side:La(t,Z(i),n),align:Q(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function za(e){return Ba(e,Da)}function Ba(e,t){let{anchor:n,positionMethod:r=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:c=0,collisionBoundary:l,collisionPadding:u=5,sticky:d=!1,arrowPadding:f=5,disableAnchorTracking:p=!1,inline:m,keepMounted:h=!1,floatingRootContext:g,mounted:_,collisionAvoidance:v,shift:y,nodeId:b,adaptiveOrigin:x,lazyFlip:S=!1,externalTree:C}=e,[w,T]=s.useState(null);!_&&w!==null&&T(null);let E=v.side||`flip`,D=v.align||`flip`,ee=v.fallbackAxisSide||`end`,O=y?.crossAxis??!1,te=y?.rootBoundary,k=typeof n==`function`?n:void 0,A=B(k),j=k?A:n,M=li(n),ne=li(_),N=Aa()===`rtl`,re=w||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":N?`left`:`right`,"inline-start":N?`right`:`left`}[i],ie=o===`center`?re:`${re}-${o}`,P=u;typeof P==`number`?P={top:P,right:P,bottom:P,left:P}:P&&={top:P.top||0,right:P.right||0,bottom:P.bottom||0,left:P.left||0};let ae=+(i===`bottom`),oe=+(i===`top`),se=+(i===`right`),ce=+(i===`left`),F={boundary:l===`clipping-ancestors`?`clippingAncestors`:l,padding:P},I=s.useRef(null),le=li(a),ue=li(c),de=typeof a==`function`?0:a,fe=typeof c==`function`?0:c,pe=[];m&&pe.push(m),pe.push(va(e=>{let t=Ra(e,i,N),n=typeof le.current==`function`?le.current(t):le.current,r=typeof ue.current==`function`?ue.current(t):ue.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[de,fe,N,i]));let me=D===`none`&&E!==`shift`,he=!me&&(d||O||E===`shift`),ge=E===`none`?null:xa({...F,padding:{top:P.top+1+ae,right:P.right+1+ce,bottom:P.bottom+1+oe,left:P.left+1+se},mainAxis:!O&&E===`flip`,crossAxis:D===`flip`&&`alignment`,fallbackAxisSideDirection:ee}),_e=me?null:ya({...F,rootBoundary:te,mainAxis:D!==`none`,crossAxis:he,limiter:d||O?void 0:ba(e=>{if(!I.current)return{};let{width:t,height:n}=I.current.getBoundingClientRect(),r=$(Z(e.placement)),i=r===`y`?t:n,a=r===`y`?P.left+P.right:P.top+P.bottom;return{offset:i/2+a/2}})},[F,d,O,te,P,D]);E===`shift`||D===`shift`||o===`center`?pe.push(_e,ge):pe.push(ge,_e),pe.push(Sa({...F,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!ne.current)return;let i=e.style;i.setProperty(Fa,`${t}px`),i.setProperty(Ia,`${n}px`);let a=H(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`)}}),Ma(e=>({element:I.current||_t(e.elements.floating).createElement(`div`),padding:f,offsetParent:`floating`}),[f]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:r,rects:o,y:s}=e,c=Z(r),l=$(c),u=I.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 a==`function`?a(Ra(e,i,N)):a,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`,he&&l===`y`&&b?S:x),{}}},Na,x),L(()=>{!_&&g&&g.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[_,g]);let ve=s.useMemo(()=>({elementResize:!p&&typeof ResizeObserver<`u`,layoutShift:!p&&typeof IntersectionObserver<`u`}),[p]),{refs:ye,elements:be,x:xe,y:Se,middlewareData:Ce,update:we,placement:Te,context:Ee,isPositioned:R,floatingStyles:De}=t({rootContext:g,open:h?_:void 0,placement:ie,middleware:pe,strategy:r,whileElementsMounted:h?void 0:(...e)=>aa(...e,ve),nodeId:b,externalTree:C}),{sideX:Oe,sideY:ke}=Ce.adaptiveOrigin||Pa,Ae=R?r:`fixed`,je=s.useMemo(()=>{let e;return e=R?x?{position:Ae,[Oe]:xe,[ke]:Se}:{...De,position:Ae}:{position:Ae,top:0,left:0},e[Fa]=`100vw`,e[Ia]=`100vh`,R||(e.opacity=0),e},[x,Ae,Oe,xe,ke,Se,De,R]),Me=s.useRef(null);L(()=>{if(!_)return;let e=M.current,t=typeof e==`function`?e():e,n=(Va(t)?t.current:t)||null;n!==Me.current&&(ye.setPositionReference(n),Me.current=n)},[_,ye,j,M]),s.useEffect(()=>{if(!_)return;let e=M.current;typeof e!=`function`&&Va(e)&&e.current!==Me.current&&(ye.setPositionReference(e.current),Me.current=e.current)},[_,ye,j,M]),s.useEffect(()=>{if(h&&_&&be.reference&&be.floating)return aa(be.reference,be.floating,we,ve)},[h,_,be,we,ve]);let z=Z(Te),Ne=La(i,z,N),Pe=Q(Te)||`center`,Fe=!!Ce.hide?.referenceHidden;L(()=>{S&&_&&R&&z!==re&&T(z)},[S,_,R,z,re]);let Ie=s.useMemo(()=>({position:`absolute`,top:Ce.arrow?.y,left:Ce.arrow?.x}),[Ce.arrow]),Le=Ce.arrow?.centerOffset!==0;return s.useMemo(()=>({positionerStyles:je,arrowStyles:Ie,arrowRef:I,arrowUncentered:Le,side:Ne,align:Pe,physicalSide:z,anchorHidden:Fe,refs:ye,context:Ee,isPositioned:R,update:we}),[je,Ie,I,Le,Ne,Pe,z,Fe,ye,Ee,R,we])}function Va(e){return e!=null&&`current`in e}var Ha=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=dr.startingStyle]=`startingStyle`,e[e.endingStyle=dr.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),Ua={"data-popup-open":``},Wa={"data-popup-open":``,"data-pressed":``},Ga={"data-open":``},Ka={"data-closed":``},qa={"data-anchor-hidden":``},Ja={open(e){return e?Ua:null}},Ya={open(e){return e?Wa:null}},Xa={open(e){return e?Ga:Ka},anchorHidden(e){return e?qa:null}},Za={...Xa,...mr};function Qa(e){return e===`starting`?vr:N}function $a(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),ve(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},Qa(r),i],stateAttributesMapping:Xa})}export{Or as $,Pt as $t,Kr as A,P as An,an as At,qr as B,p as Bn,Qt as Bt,si as C,Ae as Cn,Ln as Ct,ni as D,L as Dn,An as Dt,ti as E,De as En,Z as Et,Vr as F,S as Fn,Xt as Ft,Lr as G,Gt,Rr as H,Kt as Ht,Hr as I,b as In,$t as It,ei as J,Wt as Jt,Ir as K,Ht as Kt,Ur as L,v as Ln,Zt as Lt,Gr as M,N as Mn,sn as Mt,Wr as N,M as Nn,rn as Nt,Yr as O,ve as On,dn as Ot,Qr as P,w as Pn,nn as Pt,Dr as Q,Lt as Qt,zr as R,g as Rn,Yt as Rt,ci as S,ze as Sn,Mn as St,ri as T,Oe as Tn,Fn as Tt,Xr as U,qt as Ut,Pr as V,f as Vn,tn as Vt,$r as W,Jt as Wt,Ar as X,zt as Xt,jr as Y,Bt as Yt,kr as Z,Rt as Zt,_i as _,et as _n,or as _t,Za as a,St as an,_r as at,fi as b,He as bn,Pn as bt,za as c,gt as cn,dr as ct,Ea as d,q as dn,lr as dt,Mt as en,Sr as et,Ta as f,H as fn,Qn as ft,yi as g,tt as gn,ar as gt,vi as h,dt as hn,ir as ht,Xa as i,xt as in,Tr as it,Zr as j,ne as jn,on as jt,Br as k,oe as kn,cn as kt,Pa as l,K as ln,mr as lt,na as m,G as mn,nr as mt,Qa as n,wt as nn,wr as nt,Ya as o,vt as on,gr as ot,wa as p,W as pn,tr as pt,Fr as q,Ut as qt,Ha as r,Tt as rn,Cr as rt,Ja as s,_t as sn,hr as st,$a as t,Ft as tn,yr as tt,Aa as u,V as un,ur as ut,hi as v,Ze as vn,Zn as vt,ai as w,ke as wn,jn as wt,li as x,Re as xn,Nn as xt,gi as y,B as yn,$n as yt,Jr as z,_ as zn,en as zt};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,i as t}from"./text-CBHShrvS.js";function n(n,r){return t(n,e,r)}export{n as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{On as e}from"./usePositioner-CrQOY-iw.js";function t(t){return e(t.defaultTagName??`div`,t,t)}export{t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as noop } from "./session-
|
|
1
|
+
import { I as noop } from "./session-QqvIIQ6R.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@tanstack+query-core@5.102.8/node_modules/@tanstack/query-core/build/modern/hydration.js
|
|
3
3
|
function tryResolveSync(promise) {
|
|
4
4
|
let data;
|
package/frontend/server/assets/{root-loader.server-Cwm-l9OS.js → root-loader.server-DaTcVcNU.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as getRouteRuntime } from "./session-
|
|
2
|
-
import { t as dehydrate } from "./hydration-
|
|
3
|
-
import { getRequestLanguage, getTheme } from "./route-runtime.server-
|
|
1
|
+
import { o as getRouteRuntime } from "./session-QqvIIQ6R.js";
|
|
2
|
+
import { t as dehydrate } from "./hydration-Cvbp7-6s.js";
|
|
3
|
+
import { getRequestLanguage, getTheme } from "./route-runtime.server-CEa264cW.js";
|
|
4
4
|
//#region src/root-loader.server.ts
|
|
5
5
|
function loadRoot(request, context) {
|
|
6
6
|
const runtime = getRouteRuntime(context);
|
package/frontend/server/assets/{route-runtime.server-CjDbp5w6.js → route-runtime.server-CEa264cW.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as createI18n, c as createAppQueryClient, d as createApiClient, i as createAppConfigQueryOptions, s as routeRuntimeContext, t as createSessionQueryOptions } from "./session-
|
|
1
|
+
import { _ as createI18n, c as createAppQueryClient, d as createApiClient, i as createAppConfigQueryOptions, s as routeRuntimeContext, t as createSessionQueryOptions } from "./session-QqvIIQ6R.js";
|
|
2
2
|
import { frontendRuntimeContext } from "@tinyrack/issuary-server/internal/frontend-runtime-context";
|
|
3
3
|
//#region src/libs/route-runtime.server.ts
|
|
4
4
|
function cookieValue(request, name) {
|
|
@@ -3636,7 +3636,7 @@ function queryOptions(options) {
|
|
|
3636
3636
|
return options;
|
|
3637
3637
|
}
|
|
3638
3638
|
//#endregion
|
|
3639
|
-
//#region ../../node_modules/.pnpm/i18next@26.4.
|
|
3639
|
+
//#region ../../node_modules/.pnpm/i18next@26.4.2_typescript@7.0.2/node_modules/i18next/dist/esm/i18next.js
|
|
3640
3640
|
var isString = (obj) => typeof obj === "string";
|
|
3641
3641
|
var defer = () => {
|
|
3642
3642
|
let res;
|
|
@@ -4766,7 +4766,7 @@ var Interpolator = class {
|
|
|
4766
4766
|
...options,
|
|
4767
4767
|
interpolationkey: match[1].trim()
|
|
4768
4768
|
}), value.trim());
|
|
4769
|
-
str = str.replace(match[0], value);
|
|
4769
|
+
str = str.replace(match[0], regexSafe(makeString(value)));
|
|
4770
4770
|
this.regexp.lastIndex = 0;
|
|
4771
4771
|
}
|
|
4772
4772
|
return str;
|
|
@@ -5658,7 +5658,7 @@ instance.hasLoadedNamespace;
|
|
|
5658
5658
|
instance.loadNamespaces;
|
|
5659
5659
|
instance.loadLanguages;
|
|
5660
5660
|
//#endregion
|
|
5661
|
-
//#region ../../node_modules/.pnpm/react-i18next@17.0.13_i18next@26.4.
|
|
5661
|
+
//#region ../../node_modules/.pnpm/react-i18next@17.0.13_i18next@26.4.2_typescript@7.0.2__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@7.0.2/node_modules/react-i18next/dist/es/unescape.js
|
|
5662
5662
|
var matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
|
|
5663
5663
|
var htmlEntities = {
|
|
5664
5664
|
"&": "&",
|
|
@@ -5685,7 +5685,7 @@ var htmlEntities = {
|
|
|
5685
5685
|
var unescapeHtmlEntity = (m) => htmlEntities[m];
|
|
5686
5686
|
var unescape = (text) => text.replace(matchHtmlEntity, unescapeHtmlEntity);
|
|
5687
5687
|
//#endregion
|
|
5688
|
-
//#region ../../node_modules/.pnpm/react-i18next@17.0.13_i18next@26.4.
|
|
5688
|
+
//#region ../../node_modules/.pnpm/react-i18next@17.0.13_i18next@26.4.2_typescript@7.0.2__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@7.0.2/node_modules/react-i18next/dist/es/defaults.js
|
|
5689
5689
|
var defaultOptions = {
|
|
5690
5690
|
bindI18n: "languageChanged",
|
|
5691
5691
|
bindI18nStore: "",
|
|
@@ -5710,14 +5710,14 @@ var setDefaults = (options = {}) => {
|
|
|
5710
5710
|
};
|
|
5711
5711
|
var getDefaults = () => defaultOptions;
|
|
5712
5712
|
//#endregion
|
|
5713
|
-
//#region ../../node_modules/.pnpm/react-i18next@17.0.13_i18next@26.4.
|
|
5713
|
+
//#region ../../node_modules/.pnpm/react-i18next@17.0.13_i18next@26.4.2_typescript@7.0.2__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@7.0.2/node_modules/react-i18next/dist/es/i18nInstance.js
|
|
5714
5714
|
var i18nInstance;
|
|
5715
5715
|
var setI18n = (instance) => {
|
|
5716
5716
|
i18nInstance = instance;
|
|
5717
5717
|
};
|
|
5718
5718
|
var getI18n = () => i18nInstance;
|
|
5719
5719
|
//#endregion
|
|
5720
|
-
//#region ../../node_modules/.pnpm/react-i18next@17.0.13_i18next@26.4.
|
|
5720
|
+
//#region ../../node_modules/.pnpm/react-i18next@17.0.13_i18next@26.4.2_typescript@7.0.2__react-dom@19.2.8_react@19.2.8__react@19.2.8_typescript@7.0.2/node_modules/react-i18next/dist/es/initReactI18next.js
|
|
5721
5721
|
var initReactI18next = {
|
|
5722
5722
|
type: "3rdParty",
|
|
5723
5723
|
init(instance) {
|
|
@@ -7855,7 +7855,7 @@ function getAppI18n(config, requestedLanguage) {
|
|
|
7855
7855
|
return typeof document === "undefined" ? createI18n(config, requestedLanguage) : getBrowserI18n(config, requestedLanguage);
|
|
7856
7856
|
}
|
|
7857
7857
|
//#endregion
|
|
7858
|
-
//#region ../../node_modules/.pnpm/hono@4.13.
|
|
7858
|
+
//#region ../../node_modules/.pnpm/hono@4.13.7/node_modules/hono/dist/utils/cookie.js
|
|
7859
7859
|
var validCookieNameRegEx = /^[\w!#$%&'*.^`|~+-]+$/;
|
|
7860
7860
|
var _serialize = (name, value, opt = {}) => {
|
|
7861
7861
|
if (!validCookieNameRegEx.test(name)) throw new Error("Invalid cookie name");
|
|
@@ -7897,7 +7897,7 @@ var serialize = (name, value, opt) => {
|
|
|
7897
7897
|
return _serialize(name, value, opt);
|
|
7898
7898
|
};
|
|
7899
7899
|
//#endregion
|
|
7900
|
-
//#region ../../node_modules/.pnpm/hono@4.13.
|
|
7900
|
+
//#region ../../node_modules/.pnpm/hono@4.13.7/node_modules/hono/dist/client/utils.js
|
|
7901
7901
|
var mergePath = (base, path) => {
|
|
7902
7902
|
base = base.replace(/\/+$/, "");
|
|
7903
7903
|
base = base + "/";
|
|
@@ -7947,7 +7947,7 @@ function deepMerge(target, source) {
|
|
|
7947
7947
|
return merged;
|
|
7948
7948
|
}
|
|
7949
7949
|
//#endregion
|
|
7950
|
-
//#region ../../node_modules/.pnpm/hono@4.13.
|
|
7950
|
+
//#region ../../node_modules/.pnpm/hono@4.13.7/node_modules/hono/dist/client/client.js
|
|
7951
7951
|
var createProxy = (callback, path) => {
|
|
7952
7952
|
return new Proxy(() => {}, {
|
|
7953
7953
|
get(_obj, key) {
|
|
@@ -8049,17 +8049,17 @@ var hc = (baseUrl, options) => createProxy(function proxyCallback(opts) {
|
|
|
8049
8049
|
}
|
|
8050
8050
|
const url = mergePath(baseUrl, parts.join("/"));
|
|
8051
8051
|
if (method === "url" || method === "path") {
|
|
8052
|
-
let result = url;
|
|
8052
|
+
let result = removeIndexString(url);
|
|
8053
8053
|
if (opts.args[0]) {
|
|
8054
|
-
if (opts.args[0].param) result = replaceUrlParam(
|
|
8054
|
+
if (opts.args[0].param) result = replaceUrlParam(result, opts.args[0].param);
|
|
8055
8055
|
if (opts.args[0].query) result = appendQueryParams(result, buildSearchParamsOption(opts.args[0].query));
|
|
8056
8056
|
}
|
|
8057
|
-
result = removeIndexString(result);
|
|
8058
8057
|
if (method === "url") return new URL(result);
|
|
8059
8058
|
return result.slice(baseUrl.replace(/\/+$/, "").length).replace(/^\/?/, "/");
|
|
8060
8059
|
}
|
|
8061
8060
|
if (method === "ws") {
|
|
8062
|
-
const
|
|
8061
|
+
const normalizedUrl = removeIndexString(url);
|
|
8062
|
+
const webSocketUrl = replaceUrlProtocol(opts.args[0]?.param ? replaceUrlParam(normalizedUrl, opts.args[0].param) : normalizedUrl, "ws");
|
|
8063
8063
|
const targetUrl = new URL(webSocketUrl);
|
|
8064
8064
|
const queryParams = opts.args[0]?.query;
|
|
8065
8065
|
if (queryParams) buildSearchParamsOption(queryParams).forEach((value, key) => {
|