@reformer/builder 3.0.0-beta.3 → 3.0.0-beta.4

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.
Files changed (40) hide show
  1. package/dist/assets/{App-DDHZ1u4r.js → App-BzMuBv1U.js} +231 -230
  2. package/dist/assets/{BootError-BocATCDq.js → BootError-CH4BoW__.js} +1 -1
  3. package/dist/assets/ChatPanel-9qHpjmLO.js +82 -0
  4. package/dist/assets/{CodeEditor-D2CN7Y0Y.js → CodeEditor-CuHAtGtB.js} +1 -1
  5. package/dist/assets/{MarkdownPreview-DeF2kLYf.js → MarkdownPreview-DwyxNTbn.js} +3 -3
  6. package/dist/assets/{RawJsonEditor-CAn-6k60.js → RawJsonEditor-jYY7XCW2.js} +1 -1
  7. package/dist/assets/{boot-CGXL9DvO.js → boot-DTWnczkO.js} +1 -1
  8. package/dist/assets/{byok-AwgW0TGr.js → byok-BM21dMSQ.js} +35 -35
  9. package/dist/assets/{editor.api-D0kmPZPG.js → editor.api-B4g2PJYj.js} +1 -1
  10. package/dist/assets/{freemarker2-KoU2HZ3i.js → freemarker2-BlPZHoyx.js} +1 -1
  11. package/dist/assets/{handlebars-z9wljS-d.js → handlebars-Dd8yor3z.js} +1 -1
  12. package/dist/assets/{html-Dm_WSorp.js → html-C3wl1HPz.js} +1 -1
  13. package/dist/assets/{index-CQSolIG8.js → index-BC3M-FCZ.js} +3 -3
  14. package/dist/assets/{index-Bz9Zy-iu.js → index-BmJVVkA_.js} +1 -1
  15. package/dist/assets/index-BxUg93Np.css +1 -0
  16. package/dist/assets/{index-CQzoXBah.js → index-CU07HM8S.js} +1 -1
  17. package/dist/assets/{index-7XdLAZ8M.js → index-CY45QPm-.js} +2 -2
  18. package/dist/assets/{index-BcXYSsF-.js → index-DCa3wFwm.js} +3 -3
  19. package/dist/assets/{index-CwkqyHY1.js → index-OZOUDUGD.js} +1 -1
  20. package/dist/assets/{javascript-CLIFL9TE.js → javascript-BF-EEvQI.js} +1 -1
  21. package/dist/assets/{jsonMode-BWN-M-0M.js → jsonMode-DGlgsS1d.js} +1 -1
  22. package/dist/assets/{liquid-DMbcy3LU.js → liquid-C0Gfg9TY.js} +1 -1
  23. package/dist/assets/load-FrEYc91y.js +11 -0
  24. package/dist/assets/{mdx-CYOwcijj.js → mdx-bIG0iFaA.js} +1 -1
  25. package/dist/assets/{monaco-languages-ShM1TEHM.js → monaco-languages-D5Bh48hh.js} +2 -2
  26. package/dist/assets/{monaco-setup-Bf10EGeB.js → monaco-setup-CAOrXrMd.js} +3 -3
  27. package/dist/assets/{python-HPf0NxJ6.js → python-CciOb-4N.js} +1 -1
  28. package/dist/assets/{razor-DEx2UEDo.js → razor-cbEBt-Vr.js} +1 -1
  29. package/dist/assets/{reformer-ui-kit-11-DgIIndbm.js → reformer-ui-kit-11-BhXMU01R.js} +1 -1
  30. package/dist/assets/{reformer-ui-kit-DZ57GxjM.js → reformer-ui-kit-D8fAdwPH.js} +1 -1
  31. package/dist/assets/{typescript-D5hvGSDM.js → typescript-4hiO_obL.js} +1 -1
  32. package/dist/assets/{typescript-CMnYDCrh.js → typescript-CNVC9ZHk.js} +1 -1
  33. package/dist/assets/{useFormField-BLbvmpme-BbA23MvM.js → useFormField-BLbvmpme-BASGgtAT.js} +1 -1
  34. package/dist/assets/{xml-DNgl0Df8.js → xml-RU_PX54U.js} +1 -1
  35. package/dist/assets/{yaml-CyW3nQo2.js → yaml-DsXE0ah6.js} +1 -1
  36. package/dist/index.html +2 -2
  37. package/package.json +3 -2
  38. package/dist/assets/ChatPanel-CLGfEFwO.js +0 -82
  39. package/dist/assets/index-TeGkT1-d.css +0 -1
  40. package/dist/assets/load-DneTPRH1.js +0 -11
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CQzoXBah.js","assets/index-7XdLAZ8M.js","assets/index-TeGkT1-d.css","assets/useFormField-BLbvmpme-BbA23MvM.js"])))=>i.map(i=>d[i]);
2
- import{a as Jn,r as f,W as C,e as Pw,f as qg,c as Qi,g as Ow,j as Hn,_ as Vg}from"./index-7XdLAZ8M.js";import{R as Eo,v as wi,r as Pp,u as Iw}from"./useFormField-BLbvmpme-BbA23MvM.js";const At=e=>{const{testId:t,klId:n,componentId:r,componentType:a,...o}=e;return{testAttributes:{"data-component-version":"v6","data-component-type":a,"data-testid":t,"kl-id":n},...o}},yE=(e,t,n)=>{const r=t?.["kl-id"],a=t?.["data-testid"];return{klId:r?`${r}-${e}`:e,testId:a?`${a}-${e}`:e}},Nw=(e="body",t,n)=>{const r=t?.["data-testid"]||t?.["kl-id"];return{"data-testid":r?`${r}-${e}`:e}};var Ks={exports:{}};var om;function Mw(){return om||(om=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],a=0;a<arguments.length;a++){var o=arguments[a];if(o){var i=typeof o;if(i==="string"||i==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var l=n.apply(null,o);l&&r.push(l)}}else if(i==="object")if(o.toString===Object.prototype.toString)for(var s in o)t.call(o,s)&&o[s]&&r.push(s);else r.push(o.toString())}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ks)),Ks.exports}var Lw=Mw();const te=Jn(Lw);function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oe.apply(null,arguments)}function Op(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zw(e){if(Array.isArray(e))return Op(e)}function CE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ug(e,t){if(e){if(typeof e=="string")return Op(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Op(e,t):void 0}}function $w(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CU07HM8S.js","assets/index-CY45QPm-.js","assets/index-BxUg93Np.css","assets/useFormField-BLbvmpme-BASGgtAT.js"])))=>i.map(i=>d[i]);
2
+ import{a as Jn,r as f,W as C,e as Pw,f as qg,c as Qi,g as Ow,j as Hn,_ as Vg}from"./index-CY45QPm-.js";import{R as Eo,v as wi,r as Pp,u as Iw}from"./useFormField-BLbvmpme-BASGgtAT.js";const At=e=>{const{testId:t,klId:n,componentId:r,componentType:a,...o}=e;return{testAttributes:{"data-component-version":"v6","data-component-type":a,"data-testid":t,"kl-id":n},...o}},yE=(e,t,n)=>{const r=t?.["kl-id"],a=t?.["data-testid"];return{klId:r?`${r}-${e}`:e,testId:a?`${a}-${e}`:e}},Nw=(e="body",t,n)=>{const r=t?.["data-testid"]||t?.["kl-id"];return{"data-testid":r?`${r}-${e}`:e}};var Ks={exports:{}};var om;function Mw(){return om||(om=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],a=0;a<arguments.length;a++){var o=arguments[a];if(o){var i=typeof o;if(i==="string"||i==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var l=n.apply(null,o);l&&r.push(l)}}else if(i==="object")if(o.toString===Object.prototype.toString)for(var s in o)t.call(o,s)&&o[s]&&r.push(s);else r.push(o.toString())}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ks)),Ks.exports}var Lw=Mw();const te=Jn(Lw);function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oe.apply(null,arguments)}function Op(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zw(e){if(Array.isArray(e))return Op(e)}function CE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ug(e,t){if(e){if(typeof e=="string")return Op(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Op(e,t):void 0}}function $w(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Be(e){return zw(e)||CE(e)||Ug(e)||$w()}function wE(e){if(Array.isArray(e))return e}function jw(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,i,l=[],s=!0,d=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(u){d=!0,a=u}finally{try{if(!s&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(d)throw a}}return l}}function kE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ee(e,t){return wE(e)||jw(e,t)||Ug(e,t)||kE()}function lt(e){"@babel/helpers - typeof";return lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lt(e)}function Vn(e){var t=f.useRef();t.current=e;var n=f.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return n}function Sr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var im=Sr()?f.useLayoutEffect:f.useEffect,rn=function(t,n){var r=f.useRef(!0);im(function(){return t(r.current)},n),im(function(){return r.current=!1,function(){r.current=!0}},[])},vi=function(t,n){rn(function(r){if(!r)return t()},n)};function Do(e){var t=f.useRef(!1),n=f.useState(e),r=ee(n,2),a=r[0],o=r[1];f.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(l,s){s&&t.current||o(l)}return[a,i]}function Ys(e){return e!==void 0}function Gr(e,t){var n=t||{},r=n.defaultValue,a=n.value,o=n.onChange,i=n.postState,l=Do(function(){return Ys(a)?a:Ys(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=ee(l,2),d=s[0],u=s[1],c=a!==void 0?a:d,p=i?i(c):c,g=Vn(o),h=Do([c]),m=ee(h,2),v=m[0],b=m[1];vi(function(){var F=v[0];d!==F&&g(d,F)},[v]),vi(function(){Ys(a)||u(a)},[a]);var _=Vn(function(F,E){u(F,E),b([c],E)});return[p,_]}var Ip={},qw=function(t){};function Vw(e,t){}function Uw(e,t){}function Hw(){Ip={}}function xE(e,t,n){!t&&!Ip[n]&&(e(!1,n),Ip[n]=!0)}function yn(e,t){xE(Vw,e,t)}function Gw(e,t){xE(Uw,e,t)}yn.preMessage=qw;yn.resetWarned=Hw;yn.noteOnce=Gw;function Ww(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function _t(e,t){if(e==null)return{};var n,r,a=Ww(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Kw=Symbol.for("react.element"),Yw=Symbol.for("react.transitional.element"),Zw=Symbol.for("react.fragment");function AE(e){return e&&lt(e)==="object"&&(e.$$typeof===Kw||e.$$typeof===Yw)&&e.type===Zw}function yo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return C.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(yo(r)):AE(r)&&r.props?n=n.concat(yo(r.props.children,t)):n.push(r))}),n}function Jw(e,t){if(lt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BE(e){var t=Jw(e,"string");return lt(t)=="symbol"?t:t+""}function P(e,t,n){return(t=BE(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lm(Object(n),!0).forEach(function(r){P(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ki(e){return e instanceof HTMLElement||e instanceof SVGElement}function Xw(e){return e&&lt(e)==="object"&&ki(e.nativeElement)?e.nativeElement:ki(e)?e:null}function bi(e){var t=Xw(e);if(t)return t;if(e instanceof C.Component){var n;return(n=Eo.findDOMNode)===null||n===void 0?void 0:n.call(Eo,e)}return null}var Zs={exports:{}},Nt={};var sm;function Qw(){if(sm)return Nt;sm=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function m(v){if(typeof v=="object"&&v!==null){var b=v.$$typeof;switch(b){case e:switch(v=v.type,v){case n:case a:case r:case d:case u:return v;default:switch(v=v&&v.$$typeof,v){case l:case i:case s:case p:case c:case o:return v;default:return b}}case t:return b}}}return Nt.ContextConsumer=i,Nt.ContextProvider=o,Nt.Element=e,Nt.ForwardRef=s,Nt.Fragment=n,Nt.Lazy=p,Nt.Memo=c,Nt.Portal=t,Nt.Profiler=a,Nt.StrictMode=r,Nt.Suspense=d,Nt.SuspenseList=u,Nt.isAsyncMode=function(){return!1},Nt.isConcurrentMode=function(){return!1},Nt.isContextConsumer=function(v){return m(v)===i},Nt.isContextProvider=function(v){return m(v)===o},Nt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Nt.isForwardRef=function(v){return m(v)===s},Nt.isFragment=function(v){return m(v)===n},Nt.isLazy=function(v){return m(v)===p},Nt.isMemo=function(v){return m(v)===c},Nt.isPortal=function(v){return m(v)===t},Nt.isProfiler=function(v){return m(v)===a},Nt.isStrictMode=function(v){return m(v)===r},Nt.isSuspense=function(v){return m(v)===d},Nt.isSuspenseList=function(v){return m(v)===u},Nt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===a||v===r||v===d||v===u||v===g||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===c||v.$$typeof===o||v.$$typeof===i||v.$$typeof===s||v.$$typeof===h||v.getModuleId!==void 0)},Nt.typeOf=m,Nt}var dm;function ek(){return dm||(dm=1,Zs.exports=Qw()),Zs.exports}var Js=ek();function Hg(e,t,n){var r=f.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var tk=Number(f.version.split(".")[0]),Gg=function(t,n){typeof t=="function"?t(n):lt(t)==="object"&&t&&"current"in t&&(t.current=n)},Tr=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n.filter(Boolean);return a.length<=1?a[0]:function(o){n.forEach(function(i){Gg(i,o)})}},Mi=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Hg(function(){return Tr.apply(void 0,n)},n,function(a,o){return a.length!==o.length||a.every(function(i,l){return i!==o[l]})})},Ca=function(t){var n,r;if(!t)return!1;if(SE(t)&&tk>=19)return!0;var a=Js.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((n=a.prototype)!==null&&n!==void 0&&n.render)&&a.$$typeof!==Js.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Js.ForwardRef)};function SE(e){return f.isValidElement(e)&&!AE(e)}var Li=function(t){if(t&&SE(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},nk=f.createContext({});function Pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function um(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BE(r.key),r)}}function Ot(e,t,n){return t&&um(e.prototype,t),n&&um(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Np(e,t){return Np=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Np(e,t)}function wn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Np(e,t)}function Fr(e){return Fr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Fr(e)}function RE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RE=function(){return!!e})()}function We(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Po(e,t){if(t&&(lt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return We(e)}function Xn(e){var t=RE();return function(){var n,r=Fr(e);if(t){var a=Fr(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Po(this,n)}}var rk=(function(e){wn(n,e);var t=Xn(n);function n(){return Pt(this,n),t.apply(this,arguments)}return Ot(n,[{key:"render",value:function(){return this.props.children}}]),n})(f.Component);function TE(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Wg(e){return wE(e)||CE(e)||Ug(e)||kE()}function PE(e,t,n,r){if(!t.length)return n;var a=Wg(t),o=a[0],i=a.slice(1),l;return!e&&typeof o=="number"?l=[]:Array.isArray(e)?l=Be(e):l=$({},e),r&&n===void 0&&i.length===1?delete l[o][i[0]]:l[o]=PE(l[o],i,n,r),l}function ak(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!TE(e,t.slice(0,-1))?e:PE(e,t,n,r)}function ok(e){var t=f.useReducer(function(l){return l+1},0),n=ee(t,2),r=n[1],a=f.useRef(e),o=Vn(function(){return a.current}),i=Vn(function(l){a.current=typeof l=="function"?l(a.current):l,r()});return[o,i]}var ga="none",el="appear",tl="enter",nl="leave",cm="none",xr="prepare",uo="start",co="active",Kg="end",OE="prepared";function fm(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function ik(e,t){var n={animationend:fm("Animation","AnimationEnd"),transitionend:fm("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var lk=ik(Sr(),typeof window<"u"?window:{}),IE={};if(Sr()){var sk=document.createElement("div");IE=sk.style}var rl={};function NE(e){if(rl[e])return rl[e];var t=lk[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a<r;a+=1){var o=n[a];if(Object.prototype.hasOwnProperty.call(t,o)&&o in IE)return rl[e]=t[o],rl[e]}return""}var ME=NE("animationend"),LE=NE("transitionend"),zE=!!(ME&&LE),pm=ME||"animationend",gm=LE||"transitionend";function hm(e,t){if(!e)return null;if(lt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const dk=(function(e){var t=f.useRef();function n(a){a&&(a.removeEventListener(gm,e),a.removeEventListener(pm,e))}function r(a){t.current&&t.current!==a&&n(t.current),a&&a!==t.current&&(a.addEventListener(gm,e),a.addEventListener(pm,e),t.current=a)}return f.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var $E=Sr()?f.useLayoutEffect:f.useEffect,jE=function(t){return+setTimeout(t,16)},qE=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(jE=function(t){return window.requestAnimationFrame(t)},qE=function(t){return window.cancelAnimationFrame(t)});var mm=0,Yg=new Map;function VE(e){Yg.delete(e)}var It=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;mm+=1;var r=mm;function a(o){if(o===0)VE(r),t();else{var i=jE(function(){a(o-1)});Yg.set(r,i)}}return a(n),r};It.cancel=function(e){var t=Yg.get(e);return VE(e),qE(t)};const uk=(function(){var e=f.useRef(null);function t(){It.cancel(e.current)}function n(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=It(function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)});e.current=o}return f.useEffect(function(){return function(){t()}},[]),[n,t]});var ck=[xr,uo,co,Kg],fk=[xr,OE],UE=!1,pk=!0;function HE(e){return e===co||e===Kg}const gk=(function(e,t,n){var r=Do(cm),a=ee(r,2),o=a[0],i=a[1],l=uk(),s=ee(l,2),d=s[0],u=s[1];function c(){i(xr,!0)}var p=t?fk:ck;return $E(function(){if(o!==cm&&o!==Kg){var g=p.indexOf(o),h=p[g+1],m=n(o);m===UE?i(h,!0):h&&d(function(v){function b(){v.isCanceled()||i(h,!0)}m===!0?b():Promise.resolve(m).then(b)})}},[e,o]),f.useEffect(function(){return function(){u()}},[]),[c,o]});function hk(e,t,n,r){var a=r.motionEnter,o=a===void 0?!0:a,i=r.motionAppear,l=i===void 0?!0:i,s=r.motionLeave,d=s===void 0?!0:s,u=r.motionDeadline,c=r.motionLeaveImmediately,p=r.onAppearPrepare,g=r.onEnterPrepare,h=r.onLeavePrepare,m=r.onAppearStart,v=r.onEnterStart,b=r.onLeaveStart,_=r.onAppearActive,F=r.onEnterActive,E=r.onLeaveActive,D=r.onAppearEnd,y=r.onEnterEnd,k=r.onLeaveEnd,w=r.onVisibleChanged,B=Do(),x=ee(B,2),A=x[0],R=x[1],I=ok(ga),S=ee(I,2),O=S[0],N=S[1],z=Do(null),L=ee(z,2),W=L[0],K=L[1],G=O(),U=f.useRef(!1),q=f.useRef(null);function H(){return n()}var j=f.useRef(!1);function M(){N(ga),K(null,!0)}var ae=Vn(function(Ce){var we=O();if(we!==ga){var me=H();if(!(Ce&&!Ce.deadline&&Ce.target!==me)){var ie=j.current,ke;we===el&&ie?ke=D?.(me,Ce):we===tl&&ie?ke=y?.(me,Ce):we===nl&&ie&&(ke=k?.(me,Ce)),ie&&ke!==!1&&M()}}}),V=dk(ae),Q=ee(V,1),ne=Q[0],X=function(we){switch(we){case el:return P(P(P({},xr,p),uo,m),co,_);case tl:return P(P(P({},xr,g),uo,v),co,F);case nl:return P(P(P({},xr,h),uo,b),co,E);default:return{}}},J=f.useMemo(function(){return X(G)},[G]),Z=gk(G,!e,function(Ce){if(Ce===xr){var we=J[xr];return we?we(H()):UE}if(le in J){var me;K(((me=J[le])===null||me===void 0?void 0:me.call(J,H(),null))||null)}return le===co&&G!==ga&&(ne(H()),u>0&&(clearTimeout(q.current),q.current=setTimeout(function(){ae({deadline:!0})},u))),le===OE&&M(),pk}),se=ee(Z,2),re=se[0],le=se[1],ce=HE(le);j.current=ce;var fe=f.useRef(null);$E(function(){if(!(U.current&&fe.current===t)){R(t);var Ce=U.current;U.current=!0;var we;!Ce&&t&&l&&(we=el),Ce&&t&&o&&(we=tl),(Ce&&!t&&d||!Ce&&c&&!t&&d)&&(we=nl);var me=X(we);we&&(e||me[xr])?(N(we),re()):N(ga),fe.current=t}},[t]),f.useEffect(function(){(G===el&&!l||G===tl&&!o||G===nl&&!d)&&N(ga)},[l,o,d]),f.useEffect(function(){return function(){U.current=!1,clearTimeout(q.current)}},[]);var Te=f.useRef(!1);f.useEffect(function(){A&&(Te.current=!0),A!==void 0&&G===ga&&((Te.current||A)&&w?.(A),Te.current=!0)},[A,G]);var he=W;return J[xr]&&le===uo&&(he=$({transition:"none"},he)),[G,le,he,A??t]}function mk(e){var t=e;lt(e)==="object"&&(t=e.transitionSupport);function n(a,o){return!!(a.motionName&&t&&o!==!1)}var r=f.forwardRef(function(a,o){var i=a.visible,l=i===void 0?!0:i,s=a.removeOnLeave,d=s===void 0?!0:s,u=a.forceRender,c=a.children,p=a.motionName,g=a.leavedClassName,h=a.eventProps,m=f.useContext(nk),v=m.motion,b=n(a,v),_=f.useRef(),F=f.useRef();function E(){try{return _.current instanceof HTMLElement?_.current:bi(F.current)}catch{return null}}var D=hk(b,l,E,a),y=ee(D,4),k=y[0],w=y[1],B=y[2],x=y[3],A=f.useRef(x);x&&(A.current=!0);var R=f.useCallback(function(L){_.current=L,Gg(o,L)},[o]),I,S=$($({},h),{},{visible:l});if(!c)I=null;else if(k===ga)x?I=c($({},S),R):!d&&A.current&&g?I=c($($({},S),{},{className:g}),R):u||!d&&!g?I=c($($({},S),{},{style:{display:"none"}}),R):I=null;else{var O;w===xr?O="prepare":HE(w)?O="active":w===uo&&(O="start");var N=hm(p,"".concat(k,"-").concat(O));I=c($($({},S),{},{className:te(hm(p,k),P(P({},N,N&&O),p,typeof p=="string")),style:B}),R)}if(f.isValidElement(I)&&Ca(I)){var z=Li(I);z||(I=f.cloneElement(I,{ref:R}))}return f.createElement(rk,{ref:F},I)});return r.displayName="CSSMotion",r}const ia=mk(zE);var Mp="add",Lp="keep",zp="remove",Xs="removed";function vk(e){var t;return e&&lt(e)==="object"&&"key"in e?t=e:t={key:e},$($({},t),{},{key:String(t.key)})}function $p(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(vk)}function bk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,o=$p(e),i=$p(t);o.forEach(function(d){for(var u=!1,c=r;c<a;c+=1){var p=i[c];if(p.key===d.key){r<c&&(n=n.concat(i.slice(r,c).map(function(g){return $($({},g),{},{status:Mp})})),r=c),n.push($($({},p),{},{status:Lp})),r+=1,u=!0;break}}u||n.push($($({},d),{},{status:zp}))}),r<a&&(n=n.concat(i.slice(r).map(function(d){return $($({},d),{},{status:Mp})})));var l={};n.forEach(function(d){var u=d.key;l[u]=(l[u]||0)+1});var s=Object.keys(l).filter(function(d){return l[d]>1});return s.forEach(function(d){n=n.filter(function(u){var c=u.key,p=u.status;return c!==d||p!==zp}),n.forEach(function(u){u.key===d&&(u.status=Lp)})}),n}var _k=["component","children","onVisibleChanged","onAllRemoved"],Fk=["status"],Ek=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Dk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia,n=(function(r){wn(o,r);var a=Xn(o);function o(){var i;Pt(this,o);for(var l=arguments.length,s=new Array(l),d=0;d<l;d++)s[d]=arguments[d];return i=a.call.apply(a,[this].concat(s)),P(We(i),"state",{keyEntities:[]}),P(We(i),"removeKey",function(u){i.setState(function(c){var p=c.keyEntities.map(function(g){return g.key!==u?g:$($({},g),{},{status:Xs})});return{keyEntities:p}},function(){var c=i.state.keyEntities,p=c.filter(function(g){var h=g.status;return h!==Xs}).length;p===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return Ot(o,[{key:"render",value:function(){var l=this,s=this.state.keyEntities,d=this.props,u=d.component,c=d.children,p=d.onVisibleChanged;d.onAllRemoved;var g=_t(d,_k),h=u||f.Fragment,m={};return Ek.forEach(function(v){m[v]=g[v],delete g[v]}),delete g.keys,f.createElement(h,g,s.map(function(v,b){var _=v.status,F=_t(v,Fk),E=_===Mp||_===Lp;return f.createElement(t,oe({},m,{key:F.key,visible:E,eventProps:F,onVisibleChanged:function(y){p?.(y,{key:F.key}),y||l.removeKey(F.key)}}),function(D,y){return c($($({},D),{},{index:b}),y)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,s){var d=l.keys,u=s.keyEntities,c=$p(d),p=bk(u,c);return{keyEntities:p.filter(function(g){var h=u.find(function(m){var v=m.key;return g.key===v});return!(h&&h.status===Xs&&g.status===zp)})}}}]),o})(f.Component);return P(n,"defaultProps",{component:"div"}),n}Dk(zE);var Oe={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},yk=`accept acceptCharset accessKey action allowFullScreen allowTransparency
5
5
  alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
@@ -4690,7 +4690,7 @@ ${Object.entries(ra).map(([e,t])=>`--color-${e}: ${t};`).join(`
4690
4690
  :root,
4691
4691
  .theme-light {
4692
4692
  `}${r}}
4693
- `},"");Vg(()=>import("./index-CQzoXBah.js"),__vite__mapDeps([0,1,2,3]));Vg(()=>import("./index-Crsub4wy.js"),[]);Vg(()=>import("./index-BLGbxQaR.js"),[]);const g2e=ut`
4693
+ `},"");Vg(()=>import("./index-CU07HM8S.js"),__vite__mapDeps([0,1,2,3]));Vg(()=>import("./index-Crsub4wy.js"),[]);Vg(()=>import("./index-BLGbxQaR.js"),[]);const g2e=ut`
4694
4694
  .root-background-basic {
4695
4695
  transition: filter 0.2s ease-in-out;
4696
4696
  }
@@ -1,4 +1,4 @@
1
- import{r as c,e as tr,j as g,W as V}from"./index-7XdLAZ8M.js";import{v as yn,$ as Ks,z as Cn,A as Rm}from"./useFormField-BLbvmpme-BbA23MvM.js";const Mm=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Em=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase()),Di=e=>{const t=Em(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ol=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim(),Pm=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var _m={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"};const Dm=c.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:r="",children:s,iconNode:a,...i},l)=>c.createElement("svg",{ref:l,..._m,width:t,height:t,stroke:e,strokeWidth:o?Number(n)*24/Number(t):n,className:Ol("lucide",r),...!s&&!Pm(i)&&{"aria-hidden":"true"},...i},[...a.map(([u,d])=>c.createElement(u,d)),...Array.isArray(s)?s:[s]]));const Me=(e,t)=>{const n=c.forwardRef(({className:o,...r},s)=>c.createElement(Dm,{ref:s,iconNode:t,className:Ol(`lucide-${Mm(Di(e))}`,`lucide-${e}`,o),...r}));return n.displayName=Di(e),n};const Im=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],F_=Me("arrow-down",Im);const Tm=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],$_=Me("arrow-up",Tm);const Om=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],j_=Me("calendar",Om);const Am=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],L_=Me("check",Am);const Nm=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],W_=Me("chevron-down",Nm);const km=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],V_=Me("chevron-left",km);const Fm=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],B_=Me("chevron-right",Fm);const $m=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],H_=Me("chevron-up",$m);const jm=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],G_=Me("chevrons-up-down",jm);const Lm=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],z_=Me("circle",Lm);const Wm=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Y_=Me("ellipsis",Wm);const Vm=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],U_=Me("eye-off",Vm);const Bm=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],K_=Me("eye",Bm);const Hm=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],q_=Me("loader-circle",Hm);const Gm=[["path",{d:"M5 12h14",key:"1ays0h"}]],X_=Me("minus",Gm);const zm=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Z_=Me("search",zm);const Ym=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Q_=Me("x",Ym);function Ii(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dn(...e){return t=>{let n=!1;const o=e.map(r=>{const s=Ii(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():Ii(e[r],null)}}}}function H(...e){return c.useCallback(dn(...e),e)}function _t(e){const t=c.forwardRef((n,o)=>{let{children:r,...s}=n,a=null,i=!1;const l=[];Ti(r)&&typeof wo=="function"&&(r=wo(r._payload)),c.Children.forEach(r,p=>{if(Zm(p)){i=!0;const m=p;let h="child"in m.props?m.props.child:m.props.children;Ti(h)&&typeof wo=="function"&&(h=wo(h._payload)),a=Km(m,h),l.push(a?.props?.children)}else l.push(p)}),a?a=c.cloneElement(a,void 0,l):!i&&c.Children.count(r)===1&&c.isValidElement(r)&&(a=r);const u=a?Xm(a):void 0,d=H(o,u);if(!a){if(r||r===0)throw new Error(i?th(e):eh(e));return r}const f=qm(s,a.props??{});return a.type!==c.Fragment&&(f.ref=o?d:u),c.cloneElement(a,f)});return t.displayName=`${e}.Slot`,t}var J_=_t("Slot"),Al=Symbol.for("radix.slottable");function Um(e){const t=n=>"child"in n?n.children(n.child):n.children;return t.displayName=`${e}.Slottable`,t.__radixId=Al,t}var Km=(e,t)=>{if("child"in e.props){const n=e.props.child;return c.isValidElement(n)?c.cloneElement(n,void 0,e.props.children(n.props.children)):null}return c.isValidElement(t)?t:null};function qm(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...i)=>{const l=s(...i);return r(...i),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Xm(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Zm(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Al}var Qm=Symbol.for("react.lazy");function Ti(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Qm&&"_payload"in e&&Jm(e._payload)}function Jm(e){return typeof e=="object"&&e!==null&&"then"in e}var eh=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,th=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,wo=tr[" use ".trim().toString()],nh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],O=nh.reduce((e,t)=>{const n=_t(`Primitive.${t}`),o=c.forwardRef((r,s)=>{const{asChild:a,...i}=r,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...i,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function ko(e,t){e&&yn.flushSync(()=>e.dispatchEvent(t))}var Nl=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),oh="VisuallyHidden",kl=c.forwardRef((e,t)=>g.jsx(O.span,{...e,ref:t,style:{...Nl,...e.style}}));kl.displayName=oh;var Fl=kl;function ve(e,t=[]){let n=[];function o(s,a){const i=c.createContext(a);i.displayName=s+"Context";const l=n.length;n=[...n,a];const u=f=>{const{scope:p,children:m,...h}=f,v=p?.[e]?.[l]||i,y=c.useMemo(()=>h,Object.values(h));return g.jsx(v.Provider,{value:y,children:m})};u.displayName=s+"Provider";function d(f,p,m={}){const{optional:h=!1}=m,v=p?.[e]?.[l]||i,y=c.useContext(v);if(y)return y;if(a!==void 0)return a;if(!h)throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const r=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return r.scopeName=e,[o,rh(r,...t)]}function rh(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const a=o.reduce((i,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...i,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Nt(e){const t=e+"CollectionProvider",[n,o]=ve(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=v=>{const{scope:y,children:w}=v,S=c.useRef(null),C=c.useRef(new Map).current;return g.jsx(r,{scope:y,itemMap:C,collectionRef:S,children:w})};a.displayName=t;const i=e+"CollectionSlot",l=_t(i),u=c.forwardRef((v,y)=>{const{scope:w,children:S}=v,C=s(i,w),b=H(y,C.collectionRef);return g.jsx(l,{ref:b,children:S})});u.displayName=i;const d=e+"CollectionItemSlot",f="data-radix-collection-item",p=_t(d),m=c.forwardRef((v,y)=>{const{scope:w,children:S,...C}=v,b=c.useRef(null),x=H(y,b),R=s(d,w);return c.useEffect(()=>(R.itemMap.set(b,{ref:b,...C}),()=>void R.itemMap.delete(b))),g.jsx(p,{[f]:"",ref:x,children:S})});m.displayName=d;function h(v){const y=s(e+"CollectionConsumer",v);return c.useCallback(()=>{const S=y.collectionRef.current;if(!S)return[];const C=Array.from(S.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((R,M)=>C.indexOf(R.ref.current)-C.indexOf(M.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:a,Slot:u,ItemSlot:m},h,o]}function E(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)}}var ye=globalThis?.document?c.useLayoutEffect:()=>{},sh=tr[" useInsertionEffect ".trim().toString()]||ye;function he({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,a]=ah({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r;{const d=c.useRef(e!==void 0);c.useEffect(()=>{const f=d.current;f!==i&&console.warn(`${o} is changing from ${f?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=i},[i,o])}const u=c.useCallback(d=>{if(i){const f=ih(d)?d(e):d;f!==e&&a.current?.(f)}else s(d)},[i,e,s,a]);return[l,u]}function ah({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),s=c.useRef(t);return sh(()=>{s.current=t},[t]),c.useEffect(()=>{r.current!==n&&(s.current?.(n),r.current=n)},[n,r]),[n,o,s]}function ih(e){return typeof e=="function"}function lh(e,t){return c.useReducer((n,o)=>t[n][o]??n,e)}var ge=e=>{const{present:t,children:n}=e,o=ch(t),r=typeof n=="function"?n({present:o.isPresent}):c.Children.only(n),s=uh(o.ref,dh(r));return typeof n=="function"||o.isPresent?c.cloneElement(r,{ref:s}):null};ge.displayName="Presence";function ch(e){const[t,n]=c.useState(),o=c.useRef(null),r=c.useRef(e),s=c.useRef("none"),a=c.useRef(void 0),i=e?"mounted":"unmounted",[l,u]=lh(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{l==="mounted"?(s.current=a.current??Dn(o.current),a.current=void 0):s.current="none"},[l]),ye(()=>{const d=o.current,f=r.current;if(f!==e){const m=s.current,h=Dn(d);e?(a.current=h,u("MOUNT")):h==="none"||d?.display==="none"?u("UNMOUNT"):u(f&&m!==h?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),ye(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=h=>{const y=Dn(o.current).includes(CSS.escape(h.animationName));if(h.target===t&&y&&(u("ANIMATION_END"),!r.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},m=h=>{h.target===t&&(s.current=Dn(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:c.useCallback(d=>{if(d){const f=getComputedStyle(d);o.current=f,a.current=Dn(f)}else o.current=null;n(d)},[])}}function Oi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function uh(...e){const t=c.useRef(e);return t.current=e,c.useCallback(n=>{const o=t.current;let r=!1;const s=o.map(a=>{const i=Oi(a,n);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let a=0;a<s.length;a++){const i=s[a];typeof i=="function"?i():Oi(o[a],null)}}},[])}function Dn(e){return e?.animationName||"none"}function dh(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var fh=tr[" useId ".trim().toString()]||(()=>{}),ph=0;function pe(e){const[t,n]=c.useState(fh());return ye(()=>{n(o=>o??String(ph++))},[e]),e||(t?`radix-${t}`:"")}var nr="Collapsible",[gh,$l]=ve(nr),[mh,qs]=gh(nr),jl=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:o,defaultOpen:r,disabled:s,onOpenChange:a,...i}=e,[l,u]=he({prop:o,defaultProp:r??!1,onChange:a,caller:nr});return g.jsx(mh,{scope:n,disabled:s,contentId:pe(),open:l,onOpenToggle:c.useCallback(()=>u(d=>!d),[u]),children:g.jsx(O.div,{"data-state":Zs(l),"data-disabled":s?"":void 0,...i,ref:t})})});jl.displayName=nr;var Ll="CollapsibleTrigger",Wl=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,...o}=e,r=qs(Ll,n);return g.jsx(O.button,{type:"button","aria-controls":r.open?r.contentId:void 0,"aria-expanded":r.open||!1,"data-state":Zs(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...o,ref:t,onClick:E(e.onClick,r.onOpenToggle)})});Wl.displayName=Ll;var Xs="CollapsibleContent",Vl=c.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=qs(Xs,e.__scopeCollapsible);return g.jsx(ge,{present:n||r.open,children:({present:s})=>g.jsx(hh,{...o,ref:t,present:s})})});Vl.displayName=Xs;var hh=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:o,children:r,...s}=e,a=qs(Xs,n),[i,l]=c.useState(o),u=c.useRef(null),d=H(t,u),f=c.useRef(0),p=f.current,m=c.useRef(0),h=m.current,v=a.open||i,y=c.useRef(v),w=c.useRef(void 0);return c.useEffect(()=>{const S=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(S)},[]),ye(()=>{const S=u.current;if(S){w.current=w.current||{transitionDuration:S.style.transitionDuration,animationName:S.style.animationName},S.style.transitionDuration="0s",S.style.animationName="none";const C=S.getBoundingClientRect();f.current=C.height,m.current=C.width,y.current||(S.style.transitionDuration=w.current.transitionDuration,S.style.animationName=w.current.animationName),l(o)}},[a.open,o]),g.jsx(O.div,{"data-state":Zs(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!v,...s,ref:d,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:v&&r})});function Zs(e){return e?"open":"closed"}var vh=jl,wh=Wl,yh=Vl,Bl=c.createContext(void 0),e0=e=>{const{dir:t,children:n}=e;return g.jsx(Bl.Provider,{value:t,children:n})};function Qe(e){const t=c.useContext(Bl);return e||t||"ltr"}var Je="Accordion",Ch=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Qs,Sh,bh]=Nt(Je),[or]=ve(Je,[bh,$l]),Js=$l(),Hl=c.forwardRef((e,t)=>{const{type:n,...o}=e,r=o,s=o;return g.jsx(Qs.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?g.jsx(Eh,{...s,ref:t}):g.jsx(Mh,{...r,ref:t})})});Hl.displayName=Je;var[Gl,xh]=or(Je),[zl,Rh]=or(Je,{collapsible:!1}),Mh=c.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},collapsible:s=!1,...a}=e,[i,l]=he({prop:n,defaultProp:o??"",onChange:r,caller:Je});return g.jsx(Gl,{scope:e.__scopeAccordion,value:c.useMemo(()=>i?[i]:[],[i]),onItemOpen:l,onItemClose:c.useCallback(()=>s&&l(""),[s,l]),children:g.jsx(zl,{scope:e.__scopeAccordion,collapsible:s,children:g.jsx(Yl,{...a,ref:t})})})}),Eh=c.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},...s}=e,[a,i]=he({prop:n,defaultProp:o??[],onChange:r,caller:Je}),l=c.useCallback(d=>i((f=[])=>[...f,d]),[i]),u=c.useCallback(d=>i((f=[])=>f.filter(p=>p!==d)),[i]);return g.jsx(Gl,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u,children:g.jsx(zl,{scope:e.__scopeAccordion,collapsible:!0,children:g.jsx(Yl,{...s,ref:t})})})}),[Ph,rr]=or(Je),Yl=c.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:o,dir:r,orientation:s="vertical",...a}=e,i=c.useRef(null),l=H(i,t),u=Sh(n),f=Qe(r)==="ltr",p=E(e.onKeyDown,m=>{if(!Ch.includes(m.key))return;const h=m.target,v=u().filter(I=>!I.ref.current?.disabled),y=v.findIndex(I=>I.ref.current===h),w=v.length;if(y===-1)return;m.preventDefault();let S=y;const C=0,b=w-1,x=()=>{S=y+1,S>b&&(S=C)},R=()=>{S=y-1,S<C&&(S=b)};switch(m.key){case"Home":S=C;break;case"End":S=b;break;case"ArrowRight":s==="horizontal"&&(f?x():R());break;case"ArrowDown":s==="vertical"&&x();break;case"ArrowLeft":s==="horizontal"&&(f?R():x());break;case"ArrowUp":s==="vertical"&&R();break}const M=S%w;v[M].ref.current?.focus()});return g.jsx(Ph,{scope:n,disabled:o,direction:r,orientation:s,children:g.jsx(Qs.Slot,{scope:n,children:g.jsx(O.div,{...a,"data-orientation":s,ref:l,onKeyDown:o?void 0:p})})})}),Fo="AccordionItem",[_h,ea]=or(Fo),Ul=c.forwardRef((e,t)=>{const{__scopeAccordion:n,value:o,...r}=e,s=rr(Fo,n),a=xh(Fo,n),i=Js(n),l=pe(),u=o&&a.value.includes(o)||!1,d=s.disabled||e.disabled;return g.jsx(_h,{scope:n,open:u,disabled:d,triggerId:l,children:g.jsx(vh,{"data-orientation":s.orientation,"data-state":Jl(u),...i,...r,ref:t,disabled:d,open:u,onOpenChange:f=>{f?a.onItemOpen(o):a.onItemClose(o)}})})});Ul.displayName=Fo;var Kl="AccordionHeader",ql=c.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=rr(Je,n),s=ea(Kl,n);return g.jsx(O.h3,{"data-orientation":r.orientation,"data-state":Jl(s.open),"data-disabled":s.disabled?"":void 0,...o,ref:t})});ql.displayName=Kl;var vs="AccordionTrigger",Xl=c.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=rr(Je,n),s=ea(vs,n),a=Rh(vs,n),i=Js(n);return g.jsx(Qs.ItemSlot,{scope:n,children:g.jsx(wh,{"aria-disabled":s.open&&!a.collapsible||void 0,"data-orientation":r.orientation,id:s.triggerId,...i,...o,ref:t})})});Xl.displayName=vs;var Zl="AccordionContent",Ql=c.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=rr(Je,n),s=ea(Zl,n),a=Js(n);return g.jsx(yh,{role:"region","aria-labelledby":s.triggerId,"data-orientation":r.orientation,...a,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Ql.displayName=Zl;function Jl(e){return e?"open":"closed"}var t0=Hl,n0=Ul,o0=ql,r0=Xl,s0=Ql;function de(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>((...n)=>t.current?.(...n)),[])}var Dh="DismissableLayer",ws="dismissableLayer.update",Ih="dismissableLayer.pointerDownOutside",Th="dismissableLayer.focusOutside",Ai,ta=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),kt=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...u}=e,d=c.useContext(ta),[f,p]=c.useState(null),m=f?.ownerDocument??globalThis?.document,[,h]=c.useState({}),v=H(t,p),y=Array.from(d.layers),[w]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),S=w?y.indexOf(w):-1,C=f?y.indexOf(f):-1,b=d.layersWithOutsidePointerEventsDisabled.size>0,x=C>=S,R=c.useRef(!1),M=Fh(D=>{s?.(D),i?.(D),D.defaultPrevented||l?.()},{ownerDocument:m,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:R,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:c.useCallback(D=>{if(!(D instanceof Node))return!1;const N=[...d.branches].some(k=>k.contains(D));return x&&!N},[d.branches,x])}),I=$h(D=>{if(o&&R.current)return;const N=D.target;[...d.branches].some(B=>B.contains(N))||(a?.(D),i?.(D),D.defaultPrevented||l?.())},m),_=f?C===y.length-1:!1,T=de(D=>{D.key==="Escape"&&(r?.(D),!D.defaultPrevented&&l&&(D.preventDefault(),l()))});return c.useEffect(()=>{if(_)return m.addEventListener("keydown",T,{capture:!0}),()=>m.removeEventListener("keydown",T,{capture:!0})},[m,_,T]),c.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ai=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Ni(),()=>{n&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=Ai))}},[f,m,n,d]),c.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Ni())},[f,d]),c.useEffect(()=>{const D=()=>h({});return document.addEventListener(ws,D),()=>document.removeEventListener(ws,D)},[]),g.jsx(O.div,{...u,ref:v,style:{pointerEvents:b?x?"auto":"none":void 0,...e.style},onFocusCapture:E(e.onFocusCapture,I.onFocusCapture),onBlurCapture:E(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:E(e.onPointerDownCapture,M.onPointerDownCapture)})});kt.displayName=Dh;var Oh="DismissableLayerBranch",Ah=c.forwardRef((e,t)=>{const n=c.useContext(ta),o=c.useRef(null),r=H(t,o);return c.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),g.jsx(O.div,{...e,ref:r})});Ah.displayName=Oh;function Nh(){const e=c.useContext(ta),[t,n]=c.useState(null);return c.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}var kh=()=>!0;function Fh(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:s,shouldHandlePointerDownOutside:a=kh}=t,i=de(e),l=c.useRef(!1),u=c.useRef(!1),d=c.useRef(new Map),f=c.useRef(()=>{});return c.useEffect(()=>{function p(){u.current=!1,r.current=!1,d.current.clear()}function m(){return Array.from(d.current.values()).some(Boolean)}function h(C){if(!u.current)return;const b=C.target;b instanceof Node&&[...s].some(R=>R.contains(b))||d.current.set(C.type,!0),C.type==="click"&&window.setTimeout(()=>{u.current&&f.current()},0)}function v(C){u.current&&d.current.set(C.type,!1)}const y=C=>{if(C.target&&!l.current){let b=function(){n.removeEventListener("click",f.current);const R=m();p(),R||ec(Ih,i,x,{discrete:!0})};if(!a(C.target)){n.removeEventListener("click",f.current),p(),l.current=!1;return}const x={originalEvent:C};u.current=!0,r.current=o&&C.button===0,d.current.clear(),!o||C.button!==0?b():(n.removeEventListener("click",f.current),f.current=b,n.addEventListener("click",f.current,{once:!0}))}else n.removeEventListener("click",f.current),p();l.current=!1},w=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const C of w)n.addEventListener(C,h,!0),n.addEventListener(C,v);const S=window.setTimeout(()=>{n.addEventListener("pointerdown",y)},0);return()=>{window.clearTimeout(S),n.removeEventListener("pointerdown",y),n.removeEventListener("click",f.current);for(const C of w)n.removeEventListener(C,h,!0),n.removeEventListener(C,v)}},[n,i,o,r,s,a]),{onPointerDownCapture:()=>l.current=!0}}function $h(e,t=globalThis?.document){const n=de(e),o=c.useRef(!1);return c.useEffect(()=>{const r=s=>{s.target&&!o.current&&ec(Th,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ni(){const e=new CustomEvent(ws);document.dispatchEvent(e)}function ec(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?ko(r,s):r.dispatchEvent(s)}var zr="focusScope.autoFocusOnMount",Yr="focusScope.autoFocusOnUnmount",ki={bubbles:!1,cancelable:!0},jh="FocusScope",Kn=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...a}=e,[i,l]=c.useState(null),u=de(r),d=de(s),f=c.useRef(null),p=H(t,l),m=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let v=function(C){if(m.paused||!i)return;const b=C.target;i.contains(b)?f.current=b:Mt(f.current,{select:!0})},y=function(C){if(m.paused||!i)return;const b=C.relatedTarget;b!==null&&(i.contains(b)||Mt(f.current,{select:!0}))},w=function(C){if(document.activeElement===document.body)for(const x of C)x.removedNodes.length>0&&Mt(i)};document.addEventListener("focusin",v),document.addEventListener("focusout",y);const S=new MutationObserver(w);return i&&S.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y),S.disconnect()}}},[o,i,m.paused]),c.useEffect(()=>{if(i){$i.add(m);const v=document.activeElement;if(!i.contains(v)){const w=new CustomEvent(zr,ki);i.addEventListener(zr,u),i.dispatchEvent(w),w.defaultPrevented||(Lh(Gh(tc(i)),{select:!0}),document.activeElement===v&&Mt(i))}return()=>{i.removeEventListener(zr,u),setTimeout(()=>{const w=new CustomEvent(Yr,ki);i.addEventListener(Yr,d),i.dispatchEvent(w),w.defaultPrevented||Mt(v??document.body,{select:!0}),i.removeEventListener(Yr,d),$i.remove(m)},0)}}},[i,u,d,m]);const h=c.useCallback(v=>{if(!n&&!o||m.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,w=document.activeElement;if(y&&w){const S=v.currentTarget,[C,b]=Wh(S);C&&b?!v.shiftKey&&w===b?(v.preventDefault(),n&&Mt(C,{select:!0})):v.shiftKey&&w===C&&(v.preventDefault(),n&&Mt(b,{select:!0})):w===S&&v.preventDefault()}},[n,o,m.paused]);return g.jsx(O.div,{tabIndex:-1,...a,ref:p,onKeyDown:h})});Kn.displayName=jh;function Lh(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Mt(o,{select:t}),document.activeElement!==n)return}function Wh(e){const t=tc(e),n=Fi(t,e),o=Fi(t.reverse(),e);return[n,o]}function tc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Fi(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const o of e)if(!(n?!o.checkVisibility({checkVisibilityCSS:!0}):Vh(o,{upTo:t})))return o}function Vh(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Bh(e){return e instanceof HTMLInputElement&&"select"in e}function Mt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Bh(e)&&t&&e.select()}}var $i=Hh();function Hh(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ji(e,t),e.unshift(t)},remove(t){e=ji(e,t),e[0]?.resume()}}}function ji(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Gh(e){return e.filter(t=>t.tagName!=="A")}var zh="Portal",Yt=c.forwardRef((e,t)=>{const{container:n,...o}=e,[r,s]=c.useState(!1);ye(()=>s(!0),[]);const a=n||r&&globalThis?.document?.body;return a?yn.createPortal(g.jsx(O.div,{...o,ref:t}),a):null});Yt.displayName=zh;var yo=0,Jt=null;function sr(){c.useEffect(()=>{Jt||(Jt={start:Li(),end:Li()});const{start:e,end:t}=Jt;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),yo++,()=>{yo===1&&(Jt?.start.remove(),Jt?.end.remove(),Jt=null),yo=Math.max(0,yo-1)}},[])}function Li(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var st=function(){return st=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},st.apply(this,arguments)};function nc(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function Yh(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var Do="right-scroll-bar-position",Io="width-before-scroll-bar",Uh="with-scroll-bars-hidden",Kh="--removed-body-scroll-bar-size";function Ur(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function qh(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var Xh=typeof window<"u"?c.useLayoutEffect:c.useEffect,Wi=new WeakMap;function Zh(e,t){var n=qh(null,function(o){return e.forEach(function(r){return Ur(r,o)})});return Xh(function(){var o=Wi.get(n);if(o){var r=new Set(o),s=new Set(e),a=n.current;r.forEach(function(i){s.has(i)||Ur(i,null)}),s.forEach(function(i){r.has(i)||Ur(i,a)})}Wi.set(n,e)},[e]),n}function Qh(e){return e}function Jh(e,t){t===void 0&&(t=Qh);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,o);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(o=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){o=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var l=function(){var d=a;a=[],d.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}};return r}function ev(e){e===void 0&&(e={});var t=Jh(null);return t.options=st({async:!0,ssr:!1},e),t}var oc=function(e){var t=e.sideCar,n=nc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return c.createElement(o,st({},n))};oc.isSideCarExport=!0;function tv(e,t){return e.useMedium(t),oc}var rc=ev(),Kr=function(){},ar=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:Kr,onWheelCapture:Kr,onTouchMoveCapture:Kr}),r=o[0],s=o[1],a=e.forwardProps,i=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,v=e.inert,y=e.allowPinchZoom,w=e.as,S=w===void 0?"div":w,C=e.gapMode,b=nc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=p,R=Zh([n,t]),M=st(st({},b),r);return c.createElement(c.Fragment,null,d&&c.createElement(x,{sideCar:rc,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:v,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:C}),a?c.cloneElement(c.Children.only(i),st(st({},M),{ref:R})):c.createElement(S,st({},M,{className:l,ref:R}),i))});ar.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ar.classNames={fullWidth:Io,zeroRight:Do};var nv=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ov(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=nv();return t&&e.setAttribute("nonce",t),e}function rv(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function sv(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var av=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ov())&&(rv(t,n),sv(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},iv=function(){var e=av();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},sc=function(){var e=iv(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},lv={left:0,top:0,right:0,gap:0},qr=function(e){return parseInt(e||"",10)||0},cv=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[qr(n),qr(o),qr(r)]},uv=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return lv;var t=cv(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},dv=sc(),cn="data-scroll-locked",fv=function(e,t,n,o){var r=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
1
+ import{r as c,e as tr,j as g,W as V}from"./index-CY45QPm-.js";import{v as yn,$ as Ks,z as Cn,A as Rm}from"./useFormField-BLbvmpme-BASGgtAT.js";const Mm=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Em=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase()),Di=e=>{const t=Em(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ol=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim(),Pm=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var _m={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"};const Dm=c.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:r="",children:s,iconNode:a,...i},l)=>c.createElement("svg",{ref:l,..._m,width:t,height:t,stroke:e,strokeWidth:o?Number(n)*24/Number(t):n,className:Ol("lucide",r),...!s&&!Pm(i)&&{"aria-hidden":"true"},...i},[...a.map(([u,d])=>c.createElement(u,d)),...Array.isArray(s)?s:[s]]));const Me=(e,t)=>{const n=c.forwardRef(({className:o,...r},s)=>c.createElement(Dm,{ref:s,iconNode:t,className:Ol(`lucide-${Mm(Di(e))}`,`lucide-${e}`,o),...r}));return n.displayName=Di(e),n};const Im=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],F_=Me("arrow-down",Im);const Tm=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],$_=Me("arrow-up",Tm);const Om=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],j_=Me("calendar",Om);const Am=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],L_=Me("check",Am);const Nm=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],W_=Me("chevron-down",Nm);const km=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],V_=Me("chevron-left",km);const Fm=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],B_=Me("chevron-right",Fm);const $m=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],H_=Me("chevron-up",$m);const jm=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],G_=Me("chevrons-up-down",jm);const Lm=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],z_=Me("circle",Lm);const Wm=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Y_=Me("ellipsis",Wm);const Vm=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],U_=Me("eye-off",Vm);const Bm=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],K_=Me("eye",Bm);const Hm=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],q_=Me("loader-circle",Hm);const Gm=[["path",{d:"M5 12h14",key:"1ays0h"}]],X_=Me("minus",Gm);const zm=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Z_=Me("search",zm);const Ym=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Q_=Me("x",Ym);function Ii(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dn(...e){return t=>{let n=!1;const o=e.map(r=>{const s=Ii(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():Ii(e[r],null)}}}}function H(...e){return c.useCallback(dn(...e),e)}function _t(e){const t=c.forwardRef((n,o)=>{let{children:r,...s}=n,a=null,i=!1;const l=[];Ti(r)&&typeof wo=="function"&&(r=wo(r._payload)),c.Children.forEach(r,p=>{if(Zm(p)){i=!0;const m=p;let h="child"in m.props?m.props.child:m.props.children;Ti(h)&&typeof wo=="function"&&(h=wo(h._payload)),a=Km(m,h),l.push(a?.props?.children)}else l.push(p)}),a?a=c.cloneElement(a,void 0,l):!i&&c.Children.count(r)===1&&c.isValidElement(r)&&(a=r);const u=a?Xm(a):void 0,d=H(o,u);if(!a){if(r||r===0)throw new Error(i?th(e):eh(e));return r}const f=qm(s,a.props??{});return a.type!==c.Fragment&&(f.ref=o?d:u),c.cloneElement(a,f)});return t.displayName=`${e}.Slot`,t}var J_=_t("Slot"),Al=Symbol.for("radix.slottable");function Um(e){const t=n=>"child"in n?n.children(n.child):n.children;return t.displayName=`${e}.Slottable`,t.__radixId=Al,t}var Km=(e,t)=>{if("child"in e.props){const n=e.props.child;return c.isValidElement(n)?c.cloneElement(n,void 0,e.props.children(n.props.children)):null}return c.isValidElement(t)?t:null};function qm(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...i)=>{const l=s(...i);return r(...i),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Xm(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Zm(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Al}var Qm=Symbol.for("react.lazy");function Ti(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Qm&&"_payload"in e&&Jm(e._payload)}function Jm(e){return typeof e=="object"&&e!==null&&"then"in e}var eh=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,th=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,wo=tr[" use ".trim().toString()],nh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],O=nh.reduce((e,t)=>{const n=_t(`Primitive.${t}`),o=c.forwardRef((r,s)=>{const{asChild:a,...i}=r,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...i,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function ko(e,t){e&&yn.flushSync(()=>e.dispatchEvent(t))}var Nl=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),oh="VisuallyHidden",kl=c.forwardRef((e,t)=>g.jsx(O.span,{...e,ref:t,style:{...Nl,...e.style}}));kl.displayName=oh;var Fl=kl;function ve(e,t=[]){let n=[];function o(s,a){const i=c.createContext(a);i.displayName=s+"Context";const l=n.length;n=[...n,a];const u=f=>{const{scope:p,children:m,...h}=f,v=p?.[e]?.[l]||i,y=c.useMemo(()=>h,Object.values(h));return g.jsx(v.Provider,{value:y,children:m})};u.displayName=s+"Provider";function d(f,p,m={}){const{optional:h=!1}=m,v=p?.[e]?.[l]||i,y=c.useContext(v);if(y)return y;if(a!==void 0)return a;if(!h)throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const r=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return r.scopeName=e,[o,rh(r,...t)]}function rh(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const a=o.reduce((i,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...i,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Nt(e){const t=e+"CollectionProvider",[n,o]=ve(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=v=>{const{scope:y,children:w}=v,S=c.useRef(null),C=c.useRef(new Map).current;return g.jsx(r,{scope:y,itemMap:C,collectionRef:S,children:w})};a.displayName=t;const i=e+"CollectionSlot",l=_t(i),u=c.forwardRef((v,y)=>{const{scope:w,children:S}=v,C=s(i,w),b=H(y,C.collectionRef);return g.jsx(l,{ref:b,children:S})});u.displayName=i;const d=e+"CollectionItemSlot",f="data-radix-collection-item",p=_t(d),m=c.forwardRef((v,y)=>{const{scope:w,children:S,...C}=v,b=c.useRef(null),x=H(y,b),R=s(d,w);return c.useEffect(()=>(R.itemMap.set(b,{ref:b,...C}),()=>void R.itemMap.delete(b))),g.jsx(p,{[f]:"",ref:x,children:S})});m.displayName=d;function h(v){const y=s(e+"CollectionConsumer",v);return c.useCallback(()=>{const S=y.collectionRef.current;if(!S)return[];const C=Array.from(S.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((R,M)=>C.indexOf(R.ref.current)-C.indexOf(M.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:a,Slot:u,ItemSlot:m},h,o]}function E(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)}}var ye=globalThis?.document?c.useLayoutEffect:()=>{},sh=tr[" useInsertionEffect ".trim().toString()]||ye;function he({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,a]=ah({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r;{const d=c.useRef(e!==void 0);c.useEffect(()=>{const f=d.current;f!==i&&console.warn(`${o} is changing from ${f?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=i},[i,o])}const u=c.useCallback(d=>{if(i){const f=ih(d)?d(e):d;f!==e&&a.current?.(f)}else s(d)},[i,e,s,a]);return[l,u]}function ah({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),s=c.useRef(t);return sh(()=>{s.current=t},[t]),c.useEffect(()=>{r.current!==n&&(s.current?.(n),r.current=n)},[n,r]),[n,o,s]}function ih(e){return typeof e=="function"}function lh(e,t){return c.useReducer((n,o)=>t[n][o]??n,e)}var ge=e=>{const{present:t,children:n}=e,o=ch(t),r=typeof n=="function"?n({present:o.isPresent}):c.Children.only(n),s=uh(o.ref,dh(r));return typeof n=="function"||o.isPresent?c.cloneElement(r,{ref:s}):null};ge.displayName="Presence";function ch(e){const[t,n]=c.useState(),o=c.useRef(null),r=c.useRef(e),s=c.useRef("none"),a=c.useRef(void 0),i=e?"mounted":"unmounted",[l,u]=lh(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{l==="mounted"?(s.current=a.current??Dn(o.current),a.current=void 0):s.current="none"},[l]),ye(()=>{const d=o.current,f=r.current;if(f!==e){const m=s.current,h=Dn(d);e?(a.current=h,u("MOUNT")):h==="none"||d?.display==="none"?u("UNMOUNT"):u(f&&m!==h?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),ye(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=h=>{const y=Dn(o.current).includes(CSS.escape(h.animationName));if(h.target===t&&y&&(u("ANIMATION_END"),!r.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},m=h=>{h.target===t&&(s.current=Dn(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:c.useCallback(d=>{if(d){const f=getComputedStyle(d);o.current=f,a.current=Dn(f)}else o.current=null;n(d)},[])}}function Oi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function uh(...e){const t=c.useRef(e);return t.current=e,c.useCallback(n=>{const o=t.current;let r=!1;const s=o.map(a=>{const i=Oi(a,n);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let a=0;a<s.length;a++){const i=s[a];typeof i=="function"?i():Oi(o[a],null)}}},[])}function Dn(e){return e?.animationName||"none"}function dh(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var fh=tr[" useId ".trim().toString()]||(()=>{}),ph=0;function pe(e){const[t,n]=c.useState(fh());return ye(()=>{n(o=>o??String(ph++))},[e]),e||(t?`radix-${t}`:"")}var nr="Collapsible",[gh,$l]=ve(nr),[mh,qs]=gh(nr),jl=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:o,defaultOpen:r,disabled:s,onOpenChange:a,...i}=e,[l,u]=he({prop:o,defaultProp:r??!1,onChange:a,caller:nr});return g.jsx(mh,{scope:n,disabled:s,contentId:pe(),open:l,onOpenToggle:c.useCallback(()=>u(d=>!d),[u]),children:g.jsx(O.div,{"data-state":Zs(l),"data-disabled":s?"":void 0,...i,ref:t})})});jl.displayName=nr;var Ll="CollapsibleTrigger",Wl=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,...o}=e,r=qs(Ll,n);return g.jsx(O.button,{type:"button","aria-controls":r.open?r.contentId:void 0,"aria-expanded":r.open||!1,"data-state":Zs(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...o,ref:t,onClick:E(e.onClick,r.onOpenToggle)})});Wl.displayName=Ll;var Xs="CollapsibleContent",Vl=c.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=qs(Xs,e.__scopeCollapsible);return g.jsx(ge,{present:n||r.open,children:({present:s})=>g.jsx(hh,{...o,ref:t,present:s})})});Vl.displayName=Xs;var hh=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:o,children:r,...s}=e,a=qs(Xs,n),[i,l]=c.useState(o),u=c.useRef(null),d=H(t,u),f=c.useRef(0),p=f.current,m=c.useRef(0),h=m.current,v=a.open||i,y=c.useRef(v),w=c.useRef(void 0);return c.useEffect(()=>{const S=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(S)},[]),ye(()=>{const S=u.current;if(S){w.current=w.current||{transitionDuration:S.style.transitionDuration,animationName:S.style.animationName},S.style.transitionDuration="0s",S.style.animationName="none";const C=S.getBoundingClientRect();f.current=C.height,m.current=C.width,y.current||(S.style.transitionDuration=w.current.transitionDuration,S.style.animationName=w.current.animationName),l(o)}},[a.open,o]),g.jsx(O.div,{"data-state":Zs(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!v,...s,ref:d,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:v&&r})});function Zs(e){return e?"open":"closed"}var vh=jl,wh=Wl,yh=Vl,Bl=c.createContext(void 0),e0=e=>{const{dir:t,children:n}=e;return g.jsx(Bl.Provider,{value:t,children:n})};function Qe(e){const t=c.useContext(Bl);return e||t||"ltr"}var Je="Accordion",Ch=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Qs,Sh,bh]=Nt(Je),[or]=ve(Je,[bh,$l]),Js=$l(),Hl=c.forwardRef((e,t)=>{const{type:n,...o}=e,r=o,s=o;return g.jsx(Qs.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?g.jsx(Eh,{...s,ref:t}):g.jsx(Mh,{...r,ref:t})})});Hl.displayName=Je;var[Gl,xh]=or(Je),[zl,Rh]=or(Je,{collapsible:!1}),Mh=c.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},collapsible:s=!1,...a}=e,[i,l]=he({prop:n,defaultProp:o??"",onChange:r,caller:Je});return g.jsx(Gl,{scope:e.__scopeAccordion,value:c.useMemo(()=>i?[i]:[],[i]),onItemOpen:l,onItemClose:c.useCallback(()=>s&&l(""),[s,l]),children:g.jsx(zl,{scope:e.__scopeAccordion,collapsible:s,children:g.jsx(Yl,{...a,ref:t})})})}),Eh=c.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},...s}=e,[a,i]=he({prop:n,defaultProp:o??[],onChange:r,caller:Je}),l=c.useCallback(d=>i((f=[])=>[...f,d]),[i]),u=c.useCallback(d=>i((f=[])=>f.filter(p=>p!==d)),[i]);return g.jsx(Gl,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u,children:g.jsx(zl,{scope:e.__scopeAccordion,collapsible:!0,children:g.jsx(Yl,{...s,ref:t})})})}),[Ph,rr]=or(Je),Yl=c.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:o,dir:r,orientation:s="vertical",...a}=e,i=c.useRef(null),l=H(i,t),u=Sh(n),f=Qe(r)==="ltr",p=E(e.onKeyDown,m=>{if(!Ch.includes(m.key))return;const h=m.target,v=u().filter(I=>!I.ref.current?.disabled),y=v.findIndex(I=>I.ref.current===h),w=v.length;if(y===-1)return;m.preventDefault();let S=y;const C=0,b=w-1,x=()=>{S=y+1,S>b&&(S=C)},R=()=>{S=y-1,S<C&&(S=b)};switch(m.key){case"Home":S=C;break;case"End":S=b;break;case"ArrowRight":s==="horizontal"&&(f?x():R());break;case"ArrowDown":s==="vertical"&&x();break;case"ArrowLeft":s==="horizontal"&&(f?R():x());break;case"ArrowUp":s==="vertical"&&R();break}const M=S%w;v[M].ref.current?.focus()});return g.jsx(Ph,{scope:n,disabled:o,direction:r,orientation:s,children:g.jsx(Qs.Slot,{scope:n,children:g.jsx(O.div,{...a,"data-orientation":s,ref:l,onKeyDown:o?void 0:p})})})}),Fo="AccordionItem",[_h,ea]=or(Fo),Ul=c.forwardRef((e,t)=>{const{__scopeAccordion:n,value:o,...r}=e,s=rr(Fo,n),a=xh(Fo,n),i=Js(n),l=pe(),u=o&&a.value.includes(o)||!1,d=s.disabled||e.disabled;return g.jsx(_h,{scope:n,open:u,disabled:d,triggerId:l,children:g.jsx(vh,{"data-orientation":s.orientation,"data-state":Jl(u),...i,...r,ref:t,disabled:d,open:u,onOpenChange:f=>{f?a.onItemOpen(o):a.onItemClose(o)}})})});Ul.displayName=Fo;var Kl="AccordionHeader",ql=c.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=rr(Je,n),s=ea(Kl,n);return g.jsx(O.h3,{"data-orientation":r.orientation,"data-state":Jl(s.open),"data-disabled":s.disabled?"":void 0,...o,ref:t})});ql.displayName=Kl;var vs="AccordionTrigger",Xl=c.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=rr(Je,n),s=ea(vs,n),a=Rh(vs,n),i=Js(n);return g.jsx(Qs.ItemSlot,{scope:n,children:g.jsx(wh,{"aria-disabled":s.open&&!a.collapsible||void 0,"data-orientation":r.orientation,id:s.triggerId,...i,...o,ref:t})})});Xl.displayName=vs;var Zl="AccordionContent",Ql=c.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=rr(Je,n),s=ea(Zl,n),a=Js(n);return g.jsx(yh,{role:"region","aria-labelledby":s.triggerId,"data-orientation":r.orientation,...a,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Ql.displayName=Zl;function Jl(e){return e?"open":"closed"}var t0=Hl,n0=Ul,o0=ql,r0=Xl,s0=Ql;function de(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>((...n)=>t.current?.(...n)),[])}var Dh="DismissableLayer",ws="dismissableLayer.update",Ih="dismissableLayer.pointerDownOutside",Th="dismissableLayer.focusOutside",Ai,ta=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),kt=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...u}=e,d=c.useContext(ta),[f,p]=c.useState(null),m=f?.ownerDocument??globalThis?.document,[,h]=c.useState({}),v=H(t,p),y=Array.from(d.layers),[w]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),S=w?y.indexOf(w):-1,C=f?y.indexOf(f):-1,b=d.layersWithOutsidePointerEventsDisabled.size>0,x=C>=S,R=c.useRef(!1),M=Fh(D=>{s?.(D),i?.(D),D.defaultPrevented||l?.()},{ownerDocument:m,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:R,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:c.useCallback(D=>{if(!(D instanceof Node))return!1;const N=[...d.branches].some(k=>k.contains(D));return x&&!N},[d.branches,x])}),I=$h(D=>{if(o&&R.current)return;const N=D.target;[...d.branches].some(B=>B.contains(N))||(a?.(D),i?.(D),D.defaultPrevented||l?.())},m),_=f?C===y.length-1:!1,T=de(D=>{D.key==="Escape"&&(r?.(D),!D.defaultPrevented&&l&&(D.preventDefault(),l()))});return c.useEffect(()=>{if(_)return m.addEventListener("keydown",T,{capture:!0}),()=>m.removeEventListener("keydown",T,{capture:!0})},[m,_,T]),c.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ai=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Ni(),()=>{n&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=Ai))}},[f,m,n,d]),c.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Ni())},[f,d]),c.useEffect(()=>{const D=()=>h({});return document.addEventListener(ws,D),()=>document.removeEventListener(ws,D)},[]),g.jsx(O.div,{...u,ref:v,style:{pointerEvents:b?x?"auto":"none":void 0,...e.style},onFocusCapture:E(e.onFocusCapture,I.onFocusCapture),onBlurCapture:E(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:E(e.onPointerDownCapture,M.onPointerDownCapture)})});kt.displayName=Dh;var Oh="DismissableLayerBranch",Ah=c.forwardRef((e,t)=>{const n=c.useContext(ta),o=c.useRef(null),r=H(t,o);return c.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),g.jsx(O.div,{...e,ref:r})});Ah.displayName=Oh;function Nh(){const e=c.useContext(ta),[t,n]=c.useState(null);return c.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}var kh=()=>!0;function Fh(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:s,shouldHandlePointerDownOutside:a=kh}=t,i=de(e),l=c.useRef(!1),u=c.useRef(!1),d=c.useRef(new Map),f=c.useRef(()=>{});return c.useEffect(()=>{function p(){u.current=!1,r.current=!1,d.current.clear()}function m(){return Array.from(d.current.values()).some(Boolean)}function h(C){if(!u.current)return;const b=C.target;b instanceof Node&&[...s].some(R=>R.contains(b))||d.current.set(C.type,!0),C.type==="click"&&window.setTimeout(()=>{u.current&&f.current()},0)}function v(C){u.current&&d.current.set(C.type,!1)}const y=C=>{if(C.target&&!l.current){let b=function(){n.removeEventListener("click",f.current);const R=m();p(),R||ec(Ih,i,x,{discrete:!0})};if(!a(C.target)){n.removeEventListener("click",f.current),p(),l.current=!1;return}const x={originalEvent:C};u.current=!0,r.current=o&&C.button===0,d.current.clear(),!o||C.button!==0?b():(n.removeEventListener("click",f.current),f.current=b,n.addEventListener("click",f.current,{once:!0}))}else n.removeEventListener("click",f.current),p();l.current=!1},w=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const C of w)n.addEventListener(C,h,!0),n.addEventListener(C,v);const S=window.setTimeout(()=>{n.addEventListener("pointerdown",y)},0);return()=>{window.clearTimeout(S),n.removeEventListener("pointerdown",y),n.removeEventListener("click",f.current);for(const C of w)n.removeEventListener(C,h,!0),n.removeEventListener(C,v)}},[n,i,o,r,s,a]),{onPointerDownCapture:()=>l.current=!0}}function $h(e,t=globalThis?.document){const n=de(e),o=c.useRef(!1);return c.useEffect(()=>{const r=s=>{s.target&&!o.current&&ec(Th,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ni(){const e=new CustomEvent(ws);document.dispatchEvent(e)}function ec(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?ko(r,s):r.dispatchEvent(s)}var zr="focusScope.autoFocusOnMount",Yr="focusScope.autoFocusOnUnmount",ki={bubbles:!1,cancelable:!0},jh="FocusScope",Kn=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...a}=e,[i,l]=c.useState(null),u=de(r),d=de(s),f=c.useRef(null),p=H(t,l),m=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let v=function(C){if(m.paused||!i)return;const b=C.target;i.contains(b)?f.current=b:Mt(f.current,{select:!0})},y=function(C){if(m.paused||!i)return;const b=C.relatedTarget;b!==null&&(i.contains(b)||Mt(f.current,{select:!0}))},w=function(C){if(document.activeElement===document.body)for(const x of C)x.removedNodes.length>0&&Mt(i)};document.addEventListener("focusin",v),document.addEventListener("focusout",y);const S=new MutationObserver(w);return i&&S.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y),S.disconnect()}}},[o,i,m.paused]),c.useEffect(()=>{if(i){$i.add(m);const v=document.activeElement;if(!i.contains(v)){const w=new CustomEvent(zr,ki);i.addEventListener(zr,u),i.dispatchEvent(w),w.defaultPrevented||(Lh(Gh(tc(i)),{select:!0}),document.activeElement===v&&Mt(i))}return()=>{i.removeEventListener(zr,u),setTimeout(()=>{const w=new CustomEvent(Yr,ki);i.addEventListener(Yr,d),i.dispatchEvent(w),w.defaultPrevented||Mt(v??document.body,{select:!0}),i.removeEventListener(Yr,d),$i.remove(m)},0)}}},[i,u,d,m]);const h=c.useCallback(v=>{if(!n&&!o||m.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,w=document.activeElement;if(y&&w){const S=v.currentTarget,[C,b]=Wh(S);C&&b?!v.shiftKey&&w===b?(v.preventDefault(),n&&Mt(C,{select:!0})):v.shiftKey&&w===C&&(v.preventDefault(),n&&Mt(b,{select:!0})):w===S&&v.preventDefault()}},[n,o,m.paused]);return g.jsx(O.div,{tabIndex:-1,...a,ref:p,onKeyDown:h})});Kn.displayName=jh;function Lh(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Mt(o,{select:t}),document.activeElement!==n)return}function Wh(e){const t=tc(e),n=Fi(t,e),o=Fi(t.reverse(),e);return[n,o]}function tc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Fi(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const o of e)if(!(n?!o.checkVisibility({checkVisibilityCSS:!0}):Vh(o,{upTo:t})))return o}function Vh(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Bh(e){return e instanceof HTMLInputElement&&"select"in e}function Mt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Bh(e)&&t&&e.select()}}var $i=Hh();function Hh(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ji(e,t),e.unshift(t)},remove(t){e=ji(e,t),e[0]?.resume()}}}function ji(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Gh(e){return e.filter(t=>t.tagName!=="A")}var zh="Portal",Yt=c.forwardRef((e,t)=>{const{container:n,...o}=e,[r,s]=c.useState(!1);ye(()=>s(!0),[]);const a=n||r&&globalThis?.document?.body;return a?yn.createPortal(g.jsx(O.div,{...o,ref:t}),a):null});Yt.displayName=zh;var yo=0,Jt=null;function sr(){c.useEffect(()=>{Jt||(Jt={start:Li(),end:Li()});const{start:e,end:t}=Jt;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),yo++,()=>{yo===1&&(Jt?.start.remove(),Jt?.end.remove(),Jt=null),yo=Math.max(0,yo-1)}},[])}function Li(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var st=function(){return st=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},st.apply(this,arguments)};function nc(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function Yh(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var Do="right-scroll-bar-position",Io="width-before-scroll-bar",Uh="with-scroll-bars-hidden",Kh="--removed-body-scroll-bar-size";function Ur(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function qh(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var Xh=typeof window<"u"?c.useLayoutEffect:c.useEffect,Wi=new WeakMap;function Zh(e,t){var n=qh(null,function(o){return e.forEach(function(r){return Ur(r,o)})});return Xh(function(){var o=Wi.get(n);if(o){var r=new Set(o),s=new Set(e),a=n.current;r.forEach(function(i){s.has(i)||Ur(i,null)}),s.forEach(function(i){r.has(i)||Ur(i,a)})}Wi.set(n,e)},[e]),n}function Qh(e){return e}function Jh(e,t){t===void 0&&(t=Qh);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,o);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(o=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){o=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var l=function(){var d=a;a=[],d.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}};return r}function ev(e){e===void 0&&(e={});var t=Jh(null);return t.options=st({async:!0,ssr:!1},e),t}var oc=function(e){var t=e.sideCar,n=nc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return c.createElement(o,st({},n))};oc.isSideCarExport=!0;function tv(e,t){return e.useMedium(t),oc}var rc=ev(),Kr=function(){},ar=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:Kr,onWheelCapture:Kr,onTouchMoveCapture:Kr}),r=o[0],s=o[1],a=e.forwardProps,i=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,v=e.inert,y=e.allowPinchZoom,w=e.as,S=w===void 0?"div":w,C=e.gapMode,b=nc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=p,R=Zh([n,t]),M=st(st({},b),r);return c.createElement(c.Fragment,null,d&&c.createElement(x,{sideCar:rc,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:v,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:C}),a?c.cloneElement(c.Children.only(i),st(st({},M),{ref:R})):c.createElement(S,st({},M,{className:l,ref:R}),i))});ar.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ar.classNames={fullWidth:Io,zeroRight:Do};var nv=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ov(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=nv();return t&&e.setAttribute("nonce",t),e}function rv(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function sv(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var av=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ov())&&(rv(t,n),sv(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},iv=function(){var e=av();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},sc=function(){var e=iv(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},lv={left:0,top:0,right:0,gap:0},qr=function(e){return parseInt(e||"",10)||0},cv=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[qr(n),qr(o),qr(r)]},uv=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return lv;var t=cv(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},dv=sc(),cn="data-scroll-locked",fv=function(e,t,n,o){var r=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
2
2
  .`.concat(Uh,` {
3
3
  overflow: hidden `).concat(o,`;
4
4
  padding-right: `).concat(i,"px ").concat(o,`;
@@ -1 +1 @@
1
- import{conf as t,language as e}from"./typescript-D5hvGSDM.js";import"./editor.api-D0kmPZPG.js";import"./index-7XdLAZ8M.js";const r=t,n={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{r as conf,n as language};
1
+ import{conf as t,language as e}from"./typescript-4hiO_obL.js";import"./editor.api-B4g2PJYj.js";import"./index-CY45QPm-.js";const r=t,n={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{r as conf,n as language};