figma-kit 1.0.0-beta.14 → 1.0.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -70
- package/dist/index.mjs +1232 -3367
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,78 +1,11 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var hn;function To(){if(hn)return I;hn=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),P=Symbol.iterator;function G(u){return u===null||typeof u!="object"?null:(u=P&&u[P]||u["@@iterator"],typeof u=="function"?u:null)}var Y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,Q={};function re(u,h,$){this.props=u,this.context=h,this.refs=Q,this.updater=$||Y}re.prototype.isReactComponent={},re.prototype.setState=function(u,h){if(typeof u!="object"&&typeof u!="function"&&u!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,u,h,"setState")},re.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};function ae(){}ae.prototype=re.prototype;function z(u,h,$){this.props=u,this.context=h,this.refs=Q,this.updater=$||Y}var Re=z.prototype=new ae;Re.constructor=z,k(Re,re.prototype),Re.isPureReactComponent=!0;var ce=Array.isArray,S=Object.prototype.hasOwnProperty,U={current:null},xe={key:!0,ref:!0,__self:!0,__source:!0};function Se(u,h,$){var D,F={},X=null,q=null;if(h!=null)for(D in h.ref!==void 0&&(q=h.ref),h.key!==void 0&&(X=""+h.key),h)S.call(h,D)&&!xe.hasOwnProperty(D)&&(F[D]=h[D]);var H=arguments.length-2;if(H===1)F.children=$;else if(1<H){for(var B=Array(H),se=0;se<H;se++)B[se]=arguments[se+2];F.children=B}if(u&&u.defaultProps)for(D in H=u.defaultProps,H)F[D]===void 0&&(F[D]=H[D]);return{$$typeof:t,type:u,key:X,ref:q,props:F,_owner:U.current}}function Ee(u,h){return{$$typeof:t,type:u.type,key:h,ref:u.ref,props:u.props,_owner:u._owner}}function ge(u){return typeof u=="object"&&u!==null&&u.$$typeof===t}function Ce(u){var h={"=":"=0",":":"=2"};return"$"+u.replace(/[=:]/g,function($){return h[$]})}var Te=/\/+/g;function le(u,h){return typeof u=="object"&&u!==null&&u.key!=null?Ce(""+u.key):h.toString(36)}function he(u,h,$,D,F){var X=typeof u;(X==="undefined"||X==="boolean")&&(u=null);var q=!1;if(u===null)q=!0;else switch(X){case"string":case"number":q=!0;break;case"object":switch(u.$$typeof){case t:case r:q=!0}}if(q)return q=u,F=F(q),u=D===""?"."+le(q,0):D,ce(F)?($="",u!=null&&($=u.replace(Te,"$&/")+"/"),he(F,h,$,"",function(se){return se})):F!=null&&(ge(F)&&(F=Ee(F,$+(!F.key||q&&q.key===F.key?"":(""+F.key).replace(Te,"$&/")+"/")+u)),h.push(F)),1;if(q=0,D=D===""?".":D+":",ce(u))for(var H=0;H<u.length;H++){X=u[H];var B=D+le(X,H);q+=he(X,h,$,B,F)}else if(B=G(u),typeof B=="function")for(u=B.call(u),H=0;!(X=u.next()).done;)X=X.value,B=D+le(X,H++),q+=he(X,h,$,B,F);else if(X==="object")throw h=String(u),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return q}function ue(u,h,$){if(u==null)return u;var D=[],F=0;return he(u,D,"","",function(X){return h.call($,X,F++)}),D}function Pe(u){if(u._status===-1){var h=u._result;h=h(),h.then(function($){(u._status===0||u._status===-1)&&(u._status=1,u._result=$)},function($){(u._status===0||u._status===-1)&&(u._status=2,u._result=$)}),u._status===-1&&(u._status=0,u._result=h)}if(u._status===1)return u._result.default;throw u._result}var j={current:null},Ne={transition:null},He={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:Ne,ReactCurrentOwner:U};function Oe(){throw Error("act(...) is not supported in production builds of React.")}return I.Children={map:ue,forEach:function(u,h,$){ue(u,function(){h.apply(this,arguments)},$)},count:function(u){var h=0;return ue(u,function(){h++}),h},toArray:function(u){return ue(u,function(h){return h})||[]},only:function(u){if(!ge(u))throw Error("React.Children.only expected to receive a single React element child.");return u}},I.Component=re,I.Fragment=n,I.Profiler=o,I.PureComponent=z,I.StrictMode=a,I.Suspense=x,I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=He,I.act=Oe,I.cloneElement=function(u,h,$){if(u==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+u+".");var D=k({},u.props),F=u.key,X=u.ref,q=u._owner;if(h!=null){if(h.ref!==void 0&&(X=h.ref,q=U.current),h.key!==void 0&&(F=""+h.key),u.type&&u.type.defaultProps)var H=u.type.defaultProps;for(B in h)S.call(h,B)&&!xe.hasOwnProperty(B)&&(D[B]=h[B]===void 0&&H!==void 0?H[B]:h[B])}var B=arguments.length-2;if(B===1)D.children=$;else if(1<B){H=Array(B);for(var se=0;se<B;se++)H[se]=arguments[se+2];D.children=H}return{$$typeof:t,type:u.type,key:F,ref:X,props:D,_owner:q}},I.createContext=function(u){return u={$$typeof:p,_currentValue:u,_currentValue2:u,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},u.Provider={$$typeof:l,_context:u},u.Consumer=u},I.createElement=Se,I.createFactory=function(u){var h=Se.bind(null,u);return h.type=u,h},I.createRef=function(){return{current:null}},I.forwardRef=function(u){return{$$typeof:g,render:u}},I.isValidElement=ge,I.lazy=function(u){return{$$typeof:R,_payload:{_status:-1,_result:u},_init:Pe}},I.memo=function(u,h){return{$$typeof:C,type:u,compare:h===void 0?null:h}},I.startTransition=function(u){var h=Ne.transition;Ne.transition={};try{u()}finally{Ne.transition=h}},I.unstable_act=Oe,I.useCallback=function(u,h){return j.current.useCallback(u,h)},I.useContext=function(u){return j.current.useContext(u)},I.useDebugValue=function(){},I.useDeferredValue=function(u){return j.current.useDeferredValue(u)},I.useEffect=function(u,h){return j.current.useEffect(u,h)},I.useId=function(){return j.current.useId()},I.useImperativeHandle=function(u,h,$){return j.current.useImperativeHandle(u,h,$)},I.useInsertionEffect=function(u,h){return j.current.useInsertionEffect(u,h)},I.useLayoutEffect=function(u,h){return j.current.useLayoutEffect(u,h)},I.useMemo=function(u,h){return j.current.useMemo(u,h)},I.useReducer=function(u,h,$){return j.current.useReducer(u,h,$)},I.useRef=function(u){return j.current.useRef(u)},I.useState=function(u){return j.current.useState(u)},I.useSyncExternalStore=function(u,h,$){return j.current.useSyncExternalStore(u,h,$)},I.useTransition=function(){return j.current.useTransition()},I.version="18.3.1",I}var br={exports:{}};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/br.exports;var vn;function Po(){return vn||(vn=1,function(t,r){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n="18.3.1",a=Symbol.for("react.element"),o=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),C=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),Q=Symbol.for("react.offscreen"),re=Symbol.iterator,ae="@@iterator";function z(e){if(e===null||typeof e!="object")return null;var s=re&&e[re]||e[ae];return typeof s=="function"?s:null}var Re={current:null},ce={transition:null},S={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},U={current:null},xe={},Se=null;function Ee(e){Se=e}xe.setExtraStackFrame=function(e){Se=e},xe.getCurrentStack=null,xe.getStackAddendum=function(){var e="";Se&&(e+=Se);var s=xe.getCurrentStack;return s&&(e+=s()||""),e};var ge=!1,Ce=!1,Te=!1,le=!1,he=!1,ue={ReactCurrentDispatcher:Re,ReactCurrentBatchConfig:ce,ReactCurrentOwner:U};ue.ReactDebugCurrentFrame=xe,ue.ReactCurrentActQueue=S;function Pe(e){{for(var s=arguments.length,f=new Array(s>1?s-1:0),d=1;d<s;d++)f[d-1]=arguments[d];Ne("warn",e,f)}}function j(e){{for(var s=arguments.length,f=new Array(s>1?s-1:0),d=1;d<s;d++)f[d-1]=arguments[d];Ne("error",e,f)}}function Ne(e,s,f){{var d=ue.ReactDebugCurrentFrame,b=d.getStackAddendum();b!==""&&(s+="%s",f=f.concat([b]));var E=f.map(function(w){return String(w)});E.unshift("Warning: "+s),Function.prototype.apply.call(console[e],console,E)}}var He={};function Oe(e,s){{var f=e.constructor,d=f&&(f.displayName||f.name)||"ReactClass",b=d+"."+s;if(He[b])return;j("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",s,d),He[b]=!0}}var u={isMounted:function(e){return!1},enqueueForceUpdate:function(e,s,f){Oe(e,"forceUpdate")},enqueueReplaceState:function(e,s,f,d){Oe(e,"replaceState")},enqueueSetState:function(e,s,f,d){Oe(e,"setState")}},h=Object.assign,$={};Object.freeze($);function D(e,s,f){this.props=e,this.context=s,this.refs=$,this.updater=f||u}D.prototype.isReactComponent={},D.prototype.setState=function(e,s){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,s,"setState")},D.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};{var F={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},X=function(e,s){Object.defineProperty(D.prototype,e,{get:function(){Pe("%s(...) is deprecated in plain JavaScript React classes. %s",s[0],s[1])}})};for(var q in F)F.hasOwnProperty(q)&&X(q,F[q])}function H(){}H.prototype=D.prototype;function B(e,s,f){this.props=e,this.context=s,this.refs=$,this.updater=f||u}var se=B.prototype=new H;se.constructor=B,h(se,D.prototype),se.isPureReactComponent=!0;function rt(){var e={current:null};return Object.seal(e),e}var _r=Array.isArray;function rr(e){return _r(e)}function tt(e){{var s=typeof Symbol=="function"&&Symbol.toStringTag,f=s&&e[Symbol.toStringTag]||e.constructor.name||"Object";return f}}function tr(e){try{return Ae(e),!1}catch{return!0}}function Ae(e){return""+e}function Ye(e){if(tr(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",tt(e)),Ae(e)}function wr(e,s,f){var d=e.displayName;if(d)return d;var b=s.displayName||s.name||"";return b!==""?f+"("+b+")":f}function qe(e){return e.displayName||"Context"}function ke(e){if(e==null)return null;if(typeof e.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case l:return"Fragment";case o:return"Portal";case g:return"Profiler";case p:return"StrictMode";case P:return"Suspense";case G:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case C:var s=e;return qe(s)+".Consumer";case x:var f=e;return qe(f._context)+".Provider";case R:return wr(e,e.render,"ForwardRef");case Y:var d=e.displayName||null;return d!==null?d:ke(e.type)||"Memo";case k:{var b=e,E=b._payload,w=b._init;try{return ke(w(E))}catch{return null}}}return null}var Ke=Object.prototype.hasOwnProperty,nr={key:!0,ref:!0,__self:!0,__source:!0},Sr,jr,ar;ar={};function dr(e){if(Ke.call(e,"ref")){var s=Object.getOwnPropertyDescriptor(e,"ref").get;if(s&&s.isReactWarning)return!1}return e.ref!==void 0}function Fe(e){if(Ke.call(e,"key")){var s=Object.getOwnPropertyDescriptor(e,"key").get;if(s&&s.isReactWarning)return!1}return e.key!==void 0}function nt(e,s){var f=function(){Sr||(Sr=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",s))};f.isReactWarning=!0,Object.defineProperty(e,"key",{get:f,configurable:!0})}function Er(e,s){var f=function(){jr||(jr=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",s))};f.isReactWarning=!0,Object.defineProperty(e,"ref",{get:f,configurable:!0})}function Tr(e){if(typeof e.ref=="string"&&U.current&&e.__self&&U.current.stateNode!==e.__self){var s=ke(U.current.type);ar[s]||(j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',s,e.ref),ar[s]=!0)}}var Xe=function(e,s,f,d,b,E,w){var N={$$typeof:a,type:e,key:s,ref:f,props:w,_owner:E};return N._store={},Object.defineProperty(N._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(N,"_self",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.defineProperty(N,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(N.props),Object.freeze(N)),N};function at(e,s,f){var d,b={},E=null,w=null,N=null,A=null;if(s!=null){dr(s)&&(w=s.ref,Tr(s)),Fe(s)&&(Ye(s.key),E=""+s.key),N=s.__self===void 0?null:s.__self,A=s.__source===void 0?null:s.__source;for(d in s)Ke.call(s,d)&&!nr.hasOwnProperty(d)&&(b[d]=s[d])}var K=arguments.length-2;if(K===1)b.children=f;else if(K>1){for(var Z=Array(K),ee=0;ee<K;ee++)Z[ee]=arguments[ee+2];Object.freeze&&Object.freeze(Z),b.children=Z}if(e&&e.defaultProps){var ne=e.defaultProps;for(d in ne)b[d]===void 0&&(b[d]=ne[d])}if(E||w){var ie=typeof e=="function"?e.displayName||e.name||"Unknown":e;E&&nt(b,ie),w&&Er(b,ie)}return Xe(e,E,w,N,A,U.current,b)}function ot(e,s){var f=Xe(e.type,s,e.ref,e._self,e._source,e._owner,e.props);return f}function st(e,s,f){if(e==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var d,b=h({},e.props),E=e.key,w=e.ref,N=e._self,A=e._source,K=e._owner;if(s!=null){dr(s)&&(w=s.ref,K=U.current),Fe(s)&&(Ye(s.key),E=""+s.key);var Z;e.type&&e.type.defaultProps&&(Z=e.type.defaultProps);for(d in s)Ke.call(s,d)&&!nr.hasOwnProperty(d)&&(s[d]===void 0&&Z!==void 0?b[d]=Z[d]:b[d]=s[d])}var ee=arguments.length-2;if(ee===1)b.children=f;else if(ee>1){for(var ne=Array(ee),ie=0;ie<ee;ie++)ne[ie]=arguments[ie+2];b.children=ne}return Xe(e.type,E,w,N,A,K,b)}function Le(e){return typeof e=="object"&&e!==null&&e.$$typeof===a}var Pr=".",it=":";function ct(e){var s=/[=:]/g,f={"=":"=0",":":"=2"},d=e.replace(s,function(b){return f[b]});return"$"+d}var or=!1,Nr=/\/+/g;function Ie(e){return e.replace(Nr,"$&/")}function Je(e,s){return typeof e=="object"&&e!==null&&e.key!=null?(Ye(e.key),ct(""+e.key)):s.toString(36)}function Ve(e,s,f,d,b){var E=typeof e;(E==="undefined"||E==="boolean")&&(e=null);var w=!1;if(e===null)w=!0;else switch(E){case"string":case"number":w=!0;break;case"object":switch(e.$$typeof){case a:case o:w=!0}}if(w){var N=e,A=b(N),K=d===""?Pr+Je(N,0):d;if(rr(A)){var Z="";K!=null&&(Z=Ie(K)+"/"),Ve(A,s,Z,"",function(uo){return uo})}else A!=null&&(Le(A)&&(A.key&&(!N||N.key!==A.key)&&Ye(A.key),A=ot(A,f+(A.key&&(!N||N.key!==A.key)?Ie(""+A.key)+"/":"")+K)),s.push(A));return 1}var ee,ne,ie=0,de=d===""?Pr:d+it;if(rr(e))for(var Ur=0;Ur<e.length;Ur++)ee=e[Ur],ne=de+Je(ee,Ur),ie+=Ve(ee,s,f,ne,b);else{var _t=z(e);if(typeof _t=="function"){var dn=e;_t===dn.entries&&(or||Pe("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),or=!0);for(var co=_t.call(dn),pn,lo=0;!(pn=co.next()).done;)ee=pn.value,ne=de+Je(ee,lo++),ie+=Ve(ee,s,f,ne,b)}else if(E==="object"){var mn=String(e);throw new Error("Objects are not valid as a React child (found: "+(mn==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":mn)+"). If you meant to render a collection of children, use an array instead.")}}return ie}function Qe(e,s,f){if(e==null)return e;var d=[],b=0;return Ve(e,d,"","",function(E){return s.call(f,E,b++)}),d}function lt(e){var s=0;return Qe(e,function(){s++}),s}function kr(e,s,f){Qe(e,function(){s.apply(this,arguments)},f)}function ut(e){return Qe(e,function(s){return s})||[]}function Or(e){if(!Le(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}function Ir(e){var s={$$typeof:C,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};s.Provider={$$typeof:x,_context:s};var f=!1,d=!1,b=!1;{var E={$$typeof:C,_context:s};Object.defineProperties(E,{Provider:{get:function(){return d||(d=!0,j("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),s.Provider},set:function(w){s.Provider=w}},_currentValue:{get:function(){return s._currentValue},set:function(w){s._currentValue=w}},_currentValue2:{get:function(){return s._currentValue2},set:function(w){s._currentValue2=w}},_threadCount:{get:function(){return s._threadCount},set:function(w){s._threadCount=w}},Consumer:{get:function(){return f||(f=!0,j("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),s.Consumer}},displayName:{get:function(){return s.displayName},set:function(w){b||(Pe("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",w),b=!0)}}}),s.Consumer=E}return s._currentRenderer=null,s._currentRenderer2=null,s}var Ze=-1,pr=0,mr=1,$r=2;function ft(e){if(e._status===Ze){var s=e._result,f=s();if(f.then(function(E){if(e._status===pr||e._status===Ze){var w=e;w._status=mr,w._result=E}},function(E){if(e._status===pr||e._status===Ze){var w=e;w._status=$r,w._result=E}}),e._status===Ze){var d=e;d._status=pr,d._result=f}}if(e._status===mr){var b=e._result;return b===void 0&&j(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
18
|
-
|
|
19
|
-
Your code should look like:
|
|
20
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
21
|
-
|
|
22
|
-
Did you accidentally put curly braces around the import?`,b),"default"in b||j(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
23
|
-
|
|
24
|
-
Your code should look like:
|
|
25
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,b),b.default}else throw e._result}function dt(e){var s={_status:Ze,_result:e},f={$$typeof:k,_payload:s,_init:ft};{var d,b;Object.defineProperties(f,{defaultProps:{configurable:!0,get:function(){return d},set:function(E){j("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),d=E,Object.defineProperty(f,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return b},set:function(E){j("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),b=E,Object.defineProperty(f,"propTypes",{enumerable:!0})}}})}return f}function pt(e){e!=null&&e.$$typeof===Y?j("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?j("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&j("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&(e.defaultProps!=null||e.propTypes!=null)&&j("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var s={$$typeof:R,render:e};{var f;Object.defineProperty(s,"displayName",{enumerable:!1,configurable:!0,get:function(){return f},set:function(d){f=d,!e.name&&!e.displayName&&(e.displayName=d)}})}return s}var Mr;Mr=Symbol.for("react.module.reference");function i(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===g||he||e===p||e===P||e===G||le||e===Q||ge||Ce||Te||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===Y||e.$$typeof===x||e.$$typeof===C||e.$$typeof===R||e.$$typeof===Mr||e.getModuleId!==void 0))}function m(e,s){i(e)||j("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e);var f={$$typeof:Y,type:e,compare:s===void 0?null:s};{var d;Object.defineProperty(f,"displayName",{enumerable:!1,configurable:!0,get:function(){return d},set:function(b){d=b,!e.name&&!e.displayName&&(e.displayName=b)}})}return f}function v(){var e=Re.current;return e===null&&j(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
26
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
27
|
-
2. You might be breaking the Rules of Hooks
|
|
28
|
-
3. You might have more than one copy of React in the same app
|
|
29
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function T(e){var s=v();if(e._context!==void 0){var f=e._context;f.Consumer===e?j("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):f.Provider===e&&j("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return s.useContext(e)}function L(e){var s=v();return s.useState(e)}function W(e,s,f){var d=v();return d.useReducer(e,s,f)}function M(e){var s=v();return s.useRef(e)}function O(e,s){var f=v();return f.useEffect(e,s)}function fe(e,s){var f=v();return f.useInsertionEffect(e,s)}function te(e,s){var f=v();return f.useLayoutEffect(e,s)}function oe(e,s){var f=v();return f.useCallback(e,s)}function _e(e,s){var f=v();return f.useMemo(e,s)}function ze(e,s,f){var d=v();return d.useImperativeHandle(e,s,f)}function $e(e,s){{var f=v();return f.useDebugValue(e,s)}}function ve(){var e=v();return e.useTransition()}function gr(e){var s=v();return s.useDeferredValue(e)}function mt(){var e=v();return e.useId()}function gt(e,s,f){var d=v();return d.useSyncExternalStore(e,s,f)}var hr=0,Wt,Gt,Ht,Yt,qt,Kt,Xt;function Jt(){}Jt.__reactDisabledLog=!0;function Wa(){{if(hr===0){Wt=console.log,Gt=console.info,Ht=console.warn,Yt=console.error,qt=console.group,Kt=console.groupCollapsed,Xt=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Jt,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}hr++}}function Ga(){{if(hr--,hr===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:h({},e,{value:Wt}),info:h({},e,{value:Gt}),warn:h({},e,{value:Ht}),error:h({},e,{value:Yt}),group:h({},e,{value:qt}),groupCollapsed:h({},e,{value:Kt}),groupEnd:h({},e,{value:Xt})})}hr<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ht=ue.ReactCurrentDispatcher,vt;function Dr(e,s,f){{if(vt===void 0)try{throw Error()}catch(b){var d=b.stack.trim().match(/\n( *(at )?)/);vt=d&&d[1]||""}return`
|
|
30
|
-
`+vt+e}}var yt=!1,Ar;{var Ha=typeof WeakMap=="function"?WeakMap:Map;Ar=new Ha}function Qt(e,s){if(!e||yt)return"";{var f=Ar.get(e);if(f!==void 0)return f}var d;yt=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var E;E=ht.current,ht.current=null,Wa();try{if(s){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(de){d=de}Reflect.construct(e,[],w)}else{try{w.call()}catch(de){d=de}e.call(w.prototype)}}else{try{throw Error()}catch(de){d=de}e()}}catch(de){if(de&&d&&typeof de.stack=="string"){for(var N=de.stack.split(`
|
|
31
|
-
`),A=d.stack.split(`
|
|
32
|
-
`),K=N.length-1,Z=A.length-1;K>=1&&Z>=0&&N[K]!==A[Z];)Z--;for(;K>=1&&Z>=0;K--,Z--)if(N[K]!==A[Z]){if(K!==1||Z!==1)do if(K--,Z--,Z<0||N[K]!==A[Z]){var ee=`
|
|
33
|
-
`+N[K].replace(" at new "," at ");return e.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",e.displayName)),typeof e=="function"&&Ar.set(e,ee),ee}while(K>=1&&Z>=0);break}}}finally{yt=!1,ht.current=E,Ga(),Error.prepareStackTrace=b}var ne=e?e.displayName||e.name:"",ie=ne?Dr(ne):"";return typeof e=="function"&&Ar.set(e,ie),ie}function Ya(e,s,f){return Qt(e,!1)}function qa(e){var s=e.prototype;return!!(s&&s.isReactComponent)}function Fr(e,s,f){if(e==null)return"";if(typeof e=="function")return Qt(e,qa(e));if(typeof e=="string")return Dr(e);switch(e){case P:return Dr("Suspense");case G:return Dr("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case R:return Ya(e.render);case Y:return Fr(e.type,s,f);case k:{var d=e,b=d._payload,E=d._init;try{return Fr(E(b),s,f)}catch{}}}return""}var Zt={},en=ue.ReactDebugCurrentFrame;function Lr(e){if(e){var s=e._owner,f=Fr(e.type,e._source,s?s.type:null);en.setExtraStackFrame(f)}else en.setExtraStackFrame(null)}function Ka(e,s,f,d,b){{var E=Function.call.bind(Ke);for(var w in e)if(E(e,w)){var N=void 0;try{if(typeof e[w]!="function"){var A=Error((d||"React class")+": "+f+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw A.name="Invariant Violation",A}N=e[w](s,w,d,f,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(K){N=K}N&&!(N instanceof Error)&&(Lr(b),j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",d||"React class",f,w,typeof N),Lr(null)),N instanceof Error&&!(N.message in Zt)&&(Zt[N.message]=!0,Lr(b),j("Failed %s type: %s",f,N.message),Lr(null))}}}function sr(e){if(e){var s=e._owner,f=Fr(e.type,e._source,s?s.type:null);Ee(f)}else Ee(null)}var bt;bt=!1;function rn(){if(U.current){var e=ke(U.current.type);if(e)return`
|
|
34
|
-
|
|
35
|
-
Check the render method of \``+e+"`."}return""}function Xa(e){if(e!==void 0){var s=e.fileName.replace(/^.*[\\\/]/,""),f=e.lineNumber;return`
|
|
36
|
-
|
|
37
|
-
Check your code at `+s+":"+f+"."}return""}function Ja(e){return e!=null?Xa(e.__source):""}var tn={};function Qa(e){var s=rn();if(!s){var f=typeof e=="string"?e:e.displayName||e.name;f&&(s=`
|
|
38
|
-
|
|
39
|
-
Check the top-level render call using <`+f+">.")}return s}function nn(e,s){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var f=Qa(s);if(!tn[f]){tn[f]=!0;var d="";e&&e._owner&&e._owner!==U.current&&(d=" It was passed a child from "+ke(e._owner.type)+"."),sr(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',f,d),sr(null)}}}function an(e,s){if(typeof e=="object"){if(rr(e))for(var f=0;f<e.length;f++){var d=e[f];Le(d)&&nn(d,s)}else if(Le(e))e._store&&(e._store.validated=!0);else if(e){var b=z(e);if(typeof b=="function"&&b!==e.entries)for(var E=b.call(e),w;!(w=E.next()).done;)Le(w.value)&&nn(w.value,s)}}}function on(e){{var s=e.type;if(s==null||typeof s=="string")return;var f;if(typeof s=="function")f=s.propTypes;else if(typeof s=="object"&&(s.$$typeof===R||s.$$typeof===Y))f=s.propTypes;else return;if(f){var d=ke(s);Ka(f,e.props,"prop",d,e)}else if(s.PropTypes!==void 0&&!bt){bt=!0;var b=ke(s);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof s.getDefaultProps=="function"&&!s.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Za(e){{for(var s=Object.keys(e.props),f=0;f<s.length;f++){var d=s[f];if(d!=="children"&&d!=="key"){sr(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",d),sr(null);break}}e.ref!==null&&(sr(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),sr(null))}}function sn(e,s,f){var d=i(e);if(!d){var b="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(b+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var E=Ja(s);E?b+=E:b+=rn();var w;e===null?w="null":rr(e)?w="array":e!==void 0&&e.$$typeof===a?(w="<"+(ke(e.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):w=typeof e,j("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",w,b)}var N=at.apply(this,arguments);if(N==null)return N;if(d)for(var A=2;A<arguments.length;A++)an(arguments[A],e);return e===l?Za(N):on(N),N}var cn=!1;function eo(e){var s=sn.bind(null,e);return s.type=e,cn||(cn=!0,Pe("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(s,"type",{enumerable:!1,get:function(){return Pe("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),s}function ro(e,s,f){for(var d=st.apply(this,arguments),b=2;b<arguments.length;b++)an(arguments[b],d.type);return on(d),d}function to(e,s){var f=ce.transition;ce.transition={};var d=ce.transition;ce.transition._updatedFibers=new Set;try{e()}finally{if(ce.transition=f,f===null&&d._updatedFibers){var b=d._updatedFibers.size;b>10&&Pe("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),d._updatedFibers.clear()}}}var ln=!1,Vr=null;function no(e){if(Vr===null)try{var s=("require"+Math.random()).slice(0,7),f=t&&t[s];Vr=f.call(t,"timers").setImmediate}catch{Vr=function(b){ln===!1&&(ln=!0,typeof MessageChannel>"u"&&j("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var E=new MessageChannel;E.port1.onmessage=b,E.port2.postMessage(void 0)}}return Vr(e)}var ir=0,un=!1;function fn(e){{var s=ir;ir++,S.current===null&&(S.current=[]);var f=S.isBatchingLegacy,d;try{if(S.isBatchingLegacy=!0,d=e(),!f&&S.didScheduleLegacyUpdate){var b=S.current;b!==null&&(S.didScheduleLegacyUpdate=!1,Ct(b))}}catch(ne){throw zr(s),ne}finally{S.isBatchingLegacy=f}if(d!==null&&typeof d=="object"&&typeof d.then=="function"){var E=d,w=!1,N={then:function(ne,ie){w=!0,E.then(function(de){zr(s),ir===0?xt(de,ne,ie):ne(de)},function(de){zr(s),ie(de)})}};return!un&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){w||(un=!0,j("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),N}else{var A=d;if(zr(s),ir===0){var K=S.current;K!==null&&(Ct(K),S.current=null);var Z={then:function(ne,ie){S.current===null?(S.current=[],xt(A,ne,ie)):ne(A)}};return Z}else{var ee={then:function(ne,ie){ne(A)}};return ee}}}}function zr(e){e!==ir-1&&j("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ir=e}function xt(e,s,f){{var d=S.current;if(d!==null)try{Ct(d),no(function(){d.length===0?(S.current=null,s(e)):xt(e,s,f)})}catch(b){f(b)}else s(e)}}var Rt=!1;function Ct(e){if(!Rt){Rt=!0;var s=0;try{for(;s<e.length;s++){var f=e[s];do f=f(!0);while(f!==null)}e.length=0}catch(d){throw e=e.slice(s+1),d}finally{Rt=!1}}}var ao=sn,oo=ro,so=eo,io={map:Qe,forEach:kr,count:lt,toArray:ut,only:Or};r.Children=io,r.Component=D,r.Fragment=l,r.Profiler=g,r.PureComponent=B,r.StrictMode=p,r.Suspense=P,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ue,r.act=fn,r.cloneElement=oo,r.createContext=Ir,r.createElement=ao,r.createFactory=so,r.createRef=rt,r.forwardRef=pt,r.isValidElement=Le,r.lazy=dt,r.memo=m,r.startTransition=to,r.unstable_act=fn,r.useCallback=oe,r.useContext=T,r.useDebugValue=$e,r.useDeferredValue=gr,r.useEffect=O,r.useId=mt,r.useImperativeHandle=ze,r.useInsertionEffect=fe,r.useLayoutEffect=te,r.useMemo=_e,r.useReducer=W,r.useRef=M,r.useState=L,r.useSyncExternalStore=gt,r.useTransition=ve,r.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(br,br.exports)),br.exports}process.env.NODE_ENV==="production"?Et.exports=To():Et.exports=Po();var V=Et.exports;const y=Eo(V);/**
|
|
40
|
-
* @license React
|
|
41
|
-
* react-jsx-runtime.production.min.js
|
|
42
|
-
*
|
|
43
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
44
|
-
*
|
|
45
|
-
* This source code is licensed under the MIT license found in the
|
|
46
|
-
* LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/var yn;function No(){if(yn)return vr;yn=1;var t=V,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function p(g,x,C){var R,P={},G=null,Y=null;C!==void 0&&(G=""+C),x.key!==void 0&&(G=""+x.key),x.ref!==void 0&&(Y=x.ref);for(R in x)a.call(x,R)&&!l.hasOwnProperty(R)&&(P[R]=x[R]);if(g&&g.defaultProps)for(R in x=g.defaultProps,x)P[R]===void 0&&(P[R]=x[R]);return{$$typeof:r,type:g,key:G,ref:Y,props:P,_owner:o.current}}return vr.Fragment=n,vr.jsx=p,vr.jsxs=p,vr}var yr={};/**
|
|
48
|
-
* @license React
|
|
49
|
-
* react-jsx-runtime.development.js
|
|
50
|
-
*
|
|
51
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
52
|
-
*
|
|
53
|
-
* This source code is licensed under the MIT license found in the
|
|
54
|
-
* LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/var bn;function ko(){return bn||(bn=1,process.env.NODE_ENV!=="production"&&function(){var t=V,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),g=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),k=Symbol.iterator,Q="@@iterator";function re(i){if(i===null||typeof i!="object")return null;var m=k&&i[k]||i[Q];return typeof m=="function"?m:null}var ae=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function z(i){{for(var m=arguments.length,v=new Array(m>1?m-1:0),T=1;T<m;T++)v[T-1]=arguments[T];Re("error",i,v)}}function Re(i,m,v){{var T=ae.ReactDebugCurrentFrame,L=T.getStackAddendum();L!==""&&(m+="%s",v=v.concat([L]));var W=v.map(function(M){return String(M)});W.unshift("Warning: "+m),Function.prototype.apply.call(console[i],console,W)}}var ce=!1,S=!1,U=!1,xe=!1,Se=!1,Ee;Ee=Symbol.for("react.module.reference");function ge(i){return!!(typeof i=="string"||typeof i=="function"||i===a||i===l||Se||i===o||i===C||i===R||xe||i===Y||ce||S||U||typeof i=="object"&&i!==null&&(i.$$typeof===G||i.$$typeof===P||i.$$typeof===p||i.$$typeof===g||i.$$typeof===x||i.$$typeof===Ee||i.getModuleId!==void 0))}function Ce(i,m,v){var T=i.displayName;if(T)return T;var L=m.displayName||m.name||"";return L!==""?v+"("+L+")":v}function Te(i){return i.displayName||"Context"}function le(i){if(i==null)return null;if(typeof i.tag=="number"&&z("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case a:return"Fragment";case n:return"Portal";case l:return"Profiler";case o:return"StrictMode";case C:return"Suspense";case R:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case g:var m=i;return Te(m)+".Consumer";case p:var v=i;return Te(v._context)+".Provider";case x:return Ce(i,i.render,"ForwardRef");case P:var T=i.displayName||null;return T!==null?T:le(i.type)||"Memo";case G:{var L=i,W=L._payload,M=L._init;try{return le(M(W))}catch{return null}}}return null}var he=Object.assign,ue=0,Pe,j,Ne,He,Oe,u,h;function $(){}$.__reactDisabledLog=!0;function D(){{if(ue===0){Pe=console.log,j=console.info,Ne=console.warn,He=console.error,Oe=console.group,u=console.groupCollapsed,h=console.groupEnd;var i={configurable:!0,enumerable:!0,value:$,writable:!0};Object.defineProperties(console,{info:i,log:i,warn:i,error:i,group:i,groupCollapsed:i,groupEnd:i})}ue++}}function F(){{if(ue--,ue===0){var i={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:he({},i,{value:Pe}),info:he({},i,{value:j}),warn:he({},i,{value:Ne}),error:he({},i,{value:He}),group:he({},i,{value:Oe}),groupCollapsed:he({},i,{value:u}),groupEnd:he({},i,{value:h})})}ue<0&&z("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var X=ae.ReactCurrentDispatcher,q;function H(i,m,v){{if(q===void 0)try{throw Error()}catch(L){var T=L.stack.trim().match(/\n( *(at )?)/);q=T&&T[1]||""}return`
|
|
56
|
-
`+q+i}}var B=!1,se;{var rt=typeof WeakMap=="function"?WeakMap:Map;se=new rt}function _r(i,m){if(!i||B)return"";{var v=se.get(i);if(v!==void 0)return v}var T;B=!0;var L=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var W;W=X.current,X.current=null,D();try{if(m){var M=function(){throw Error()};if(Object.defineProperty(M.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(M,[])}catch(ve){T=ve}Reflect.construct(i,[],M)}else{try{M.call()}catch(ve){T=ve}i.call(M.prototype)}}else{try{throw Error()}catch(ve){T=ve}i()}}catch(ve){if(ve&&T&&typeof ve.stack=="string"){for(var O=ve.stack.split(`
|
|
57
|
-
`),fe=T.stack.split(`
|
|
58
|
-
`),te=O.length-1,oe=fe.length-1;te>=1&&oe>=0&&O[te]!==fe[oe];)oe--;for(;te>=1&&oe>=0;te--,oe--)if(O[te]!==fe[oe]){if(te!==1||oe!==1)do if(te--,oe--,oe<0||O[te]!==fe[oe]){var _e=`
|
|
59
|
-
`+O[te].replace(" at new "," at ");return i.displayName&&_e.includes("<anonymous>")&&(_e=_e.replace("<anonymous>",i.displayName)),typeof i=="function"&&se.set(i,_e),_e}while(te>=1&&oe>=0);break}}}finally{B=!1,X.current=W,F(),Error.prepareStackTrace=L}var ze=i?i.displayName||i.name:"",$e=ze?H(ze):"";return typeof i=="function"&&se.set(i,$e),$e}function rr(i,m,v){return _r(i,!1)}function tt(i){var m=i.prototype;return!!(m&&m.isReactComponent)}function tr(i,m,v){if(i==null)return"";if(typeof i=="function")return _r(i,tt(i));if(typeof i=="string")return H(i);switch(i){case C:return H("Suspense");case R:return H("SuspenseList")}if(typeof i=="object")switch(i.$$typeof){case x:return rr(i.render);case P:return tr(i.type,m,v);case G:{var T=i,L=T._payload,W=T._init;try{return tr(W(L),m,v)}catch{}}}return""}var Ae=Object.prototype.hasOwnProperty,Ye={},wr=ae.ReactDebugCurrentFrame;function qe(i){if(i){var m=i._owner,v=tr(i.type,i._source,m?m.type:null);wr.setExtraStackFrame(v)}else wr.setExtraStackFrame(null)}function ke(i,m,v,T,L){{var W=Function.call.bind(Ae);for(var M in i)if(W(i,M)){var O=void 0;try{if(typeof i[M]!="function"){var fe=Error((T||"React class")+": "+v+" type `"+M+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[M]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw fe.name="Invariant Violation",fe}O=i[M](m,M,T,v,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(te){O=te}O&&!(O instanceof Error)&&(qe(L),z("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",T||"React class",v,M,typeof O),qe(null)),O instanceof Error&&!(O.message in Ye)&&(Ye[O.message]=!0,qe(L),z("Failed %s type: %s",v,O.message),qe(null))}}}var Ke=Array.isArray;function nr(i){return Ke(i)}function Sr(i){{var m=typeof Symbol=="function"&&Symbol.toStringTag,v=m&&i[Symbol.toStringTag]||i.constructor.name||"Object";return v}}function jr(i){try{return ar(i),!1}catch{return!0}}function ar(i){return""+i}function dr(i){if(jr(i))return z("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Sr(i)),ar(i)}var Fe=ae.ReactCurrentOwner,nt={key:!0,ref:!0,__self:!0,__source:!0},Er,Tr,Xe;Xe={};function at(i){if(Ae.call(i,"ref")){var m=Object.getOwnPropertyDescriptor(i,"ref").get;if(m&&m.isReactWarning)return!1}return i.ref!==void 0}function ot(i){if(Ae.call(i,"key")){var m=Object.getOwnPropertyDescriptor(i,"key").get;if(m&&m.isReactWarning)return!1}return i.key!==void 0}function st(i,m){if(typeof i.ref=="string"&&Fe.current&&m&&Fe.current.stateNode!==m){var v=le(Fe.current.type);Xe[v]||(z('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',le(Fe.current.type),i.ref),Xe[v]=!0)}}function Le(i,m){{var v=function(){Er||(Er=!0,z("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",m))};v.isReactWarning=!0,Object.defineProperty(i,"key",{get:v,configurable:!0})}}function Pr(i,m){{var v=function(){Tr||(Tr=!0,z("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",m))};v.isReactWarning=!0,Object.defineProperty(i,"ref",{get:v,configurable:!0})}}var it=function(i,m,v,T,L,W,M){var O={$$typeof:r,type:i,key:m,ref:v,props:M,_owner:W};return O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(O,"_self",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.defineProperty(O,"_source",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O};function ct(i,m,v,T,L){{var W,M={},O=null,fe=null;v!==void 0&&(dr(v),O=""+v),ot(m)&&(dr(m.key),O=""+m.key),at(m)&&(fe=m.ref,st(m,L));for(W in m)Ae.call(m,W)&&!nt.hasOwnProperty(W)&&(M[W]=m[W]);if(i&&i.defaultProps){var te=i.defaultProps;for(W in te)M[W]===void 0&&(M[W]=te[W])}if(O||fe){var oe=typeof i=="function"?i.displayName||i.name||"Unknown":i;O&&Le(M,oe),fe&&Pr(M,oe)}return it(i,O,fe,L,T,Fe.current,M)}}var or=ae.ReactCurrentOwner,Nr=ae.ReactDebugCurrentFrame;function Ie(i){if(i){var m=i._owner,v=tr(i.type,i._source,m?m.type:null);Nr.setExtraStackFrame(v)}else Nr.setExtraStackFrame(null)}var Je;Je=!1;function Ve(i){return typeof i=="object"&&i!==null&&i.$$typeof===r}function Qe(){{if(or.current){var i=le(or.current.type);if(i)return`
|
|
60
|
-
|
|
61
|
-
Check the render method of \``+i+"`."}return""}}function lt(i){return""}var kr={};function ut(i){{var m=Qe();if(!m){var v=typeof i=="string"?i:i.displayName||i.name;v&&(m=`
|
|
62
|
-
|
|
63
|
-
Check the top-level render call using <`+v+">.")}return m}}function Or(i,m){{if(!i._store||i._store.validated||i.key!=null)return;i._store.validated=!0;var v=ut(m);if(kr[v])return;kr[v]=!0;var T="";i&&i._owner&&i._owner!==or.current&&(T=" It was passed a child from "+le(i._owner.type)+"."),Ie(i),z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',v,T),Ie(null)}}function Ir(i,m){{if(typeof i!="object")return;if(nr(i))for(var v=0;v<i.length;v++){var T=i[v];Ve(T)&&Or(T,m)}else if(Ve(i))i._store&&(i._store.validated=!0);else if(i){var L=re(i);if(typeof L=="function"&&L!==i.entries)for(var W=L.call(i),M;!(M=W.next()).done;)Ve(M.value)&&Or(M.value,m)}}}function Ze(i){{var m=i.type;if(m==null||typeof m=="string")return;var v;if(typeof m=="function")v=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===x||m.$$typeof===P))v=m.propTypes;else return;if(v){var T=le(m);ke(v,i.props,"prop",T,i)}else if(m.PropTypes!==void 0&&!Je){Je=!0;var L=le(m);z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",L||"Unknown")}typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pr(i){{for(var m=Object.keys(i.props),v=0;v<m.length;v++){var T=m[v];if(T!=="children"&&T!=="key"){Ie(i),z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",T),Ie(null);break}}i.ref!==null&&(Ie(i),z("Invalid attribute `ref` supplied to `React.Fragment`."),Ie(null))}}var mr={};function $r(i,m,v,T,L,W){{var M=ge(i);if(!M){var O="";(i===void 0||typeof i=="object"&&i!==null&&Object.keys(i).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var fe=lt();fe?O+=fe:O+=Qe();var te;i===null?te="null":nr(i)?te="array":i!==void 0&&i.$$typeof===r?(te="<"+(le(i.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):te=typeof i,z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",te,O)}var oe=ct(i,m,v,L,W);if(oe==null)return oe;if(M){var _e=m.children;if(_e!==void 0)if(T)if(nr(_e)){for(var ze=0;ze<_e.length;ze++)Ir(_e[ze],i);Object.freeze&&Object.freeze(_e)}else z("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ir(_e,i)}if(Ae.call(m,"key")){var $e=le(i),ve=Object.keys(m).filter(function(gt){return gt!=="key"}),gr=ve.length>0?"{key: someKey, "+ve.join(": ..., ")+": ...}":"{key: someKey}";if(!mr[$e+gr]){var mt=ve.length>0?"{"+ve.join(": ..., ")+": ...}":"{}";z(`A props object containing a "key" prop is being spread into JSX:
|
|
64
|
-
let props = %s;
|
|
65
|
-
<%s {...props} />
|
|
66
|
-
React keys must be passed directly to JSX without using spread:
|
|
67
|
-
let props = %s;
|
|
68
|
-
<%s key={someKey} {...props} />`,gr,$e,mt,$e),mr[$e+gr]=!0}}return i===a?pr(oe):Ze(oe),oe}}function ft(i,m,v){return $r(i,m,v,!0)}function dt(i,m,v){return $r(i,m,v,!1)}var pt=dt,Mr=ft;yr.Fragment=a,yr.jsx=pt,yr.jsxs=Mr}()),yr}process.env.NODE_ENV==="production"?jt.exports=No():jt.exports=ko();var c=jt.exports;/**
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("react"),ro=require("@radix-ui/react-tabs"),p=require("class-variance-authority"),no=require("@radix-ui/react-toggle-group"),De=require("@radix-ui/react-slot"),ao=require("@radix-ui/react-radio-group"),so=require("@radix-ui/react-select"),lo=require("@radix-ui/react-dropdown-menu"),co=require("@radix-ui/react-context-menu"),io=require("@radix-ui/react-popover"),po=require("@radix-ui/react-tooltip"),uo=require("@radix-ui/react-dialog"),fo=require("@radix-ui/react-alert-dialog"),h=require("remeda"),mo=require("@emmetio/math-expression"),ke=require("merge-props"),go=require("@radix-ui/react-slider"),xo=require("@radix-ui/react-collapsible"),ho=require("react-textarea-autosize"),bo=require("@radix-ui/react-switch");function v(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const k=v(l),oe=v(ro),ze=v(no),Ae=v(ao),R=v(so),C=v(lo),N=v(co),F=v(io),B=v(po),V=v(uo),I=v(fo),de=v(go),xe=v(xo),Ie=v(bo);/**
|
|
69
2
|
* @license
|
|
70
3
|
* MIT License
|
|
71
4
|
* Copyright (c) 2022 WorkOS
|
|
72
5
|
* https://github.com/radix-ui/primitives/blob/main/LICENSE
|
|
73
|
-
* */function
|
|
6
|
+
* */function Co(t,o){typeof t=="function"?t(o):t!=null&&(t.current=o)}function Ee(...t){return o=>t.forEach(e=>Co(e,o))}function re(...t){return k.useCallback(Ee(...t),t)}const Le=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(oe.Root,{ref:o,className:p.cx(e,"fp-TabsRoot"),...r})}),Oe=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(oe.List,{ref:o,className:p.cx(e,"fp-TabsList"),...r})}),Ve=l.forwardRef((t,o)=>{const{className:e,...r}=t,n=No(),s=Ee(o,n);return a.jsx(oe.Trigger,{ref:s,className:p.cx(e,"fp-TabsTrigger"),...r})});function No(){return l.useCallback(t=>{t!==null&&(t.style.width=t.getBoundingClientRect().width+"px")},[])}const Be=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(oe.Content,{ref:o,className:p.cx(e,"fp-TabsContent"),...r})});Le.displayName="Tabs.Root";Oe.displayName="Tabs.List";Ve.displayName="Tabs.Trigger";Be.displayName="Tabs.Content";const Ro=Object.freeze(Object.defineProperty({__proto__:null,Content:Be,List:Oe,Root:Le,Trigger:Ve},Symbol.toStringTag,{value:"Module"})),ne=p.cva("fp-Text",{variants:{size:{small:"fp-size-small",medium:"fp-size-medium",large:"fp-size-large"},weight:{default:"fp-weight-default",strong:"fp-weight-strong"},align:{start:"fp-align-start",center:"fp-align-center",end:"fp-align-end"},block:{true:"fp-block"}}}),E=l.forwardRef((t,o)=>{const{asChild:e,className:r,size:n,weight:s,align:c,block:i,...u}=t,d=e?De.Slot:"span";return a.jsx(d,{ref:o,className:ne({className:r,size:n,weight:s,align:c,block:i}),...u})});E.displayName="Text";const ae=l.forwardRef((t,o)=>{const{className:e,size:r,weight:n,align:s,block:c,...i}=t;return a.jsx("label",{ref:o,className:ne({className:e,size:r,weight:n,align:s,block:c}),...i})});ae.displayName="Label";const Fe=l.forwardRef((t,o)=>{const{className:e,size:r,weight:n,align:s,block:c,...i}=t;return a.jsx("p",{ref:o,className:ne({className:e,size:r,weight:n,align:s,block:c}),...i})});Fe.displayName="Paragraph";const Ge=l.forwardRef((t,o)=>{const{asChild:e,className:r,size:n,weight:s,align:c,block:i,...u}=t,d=e?De.Slot:"a";return a.jsx(d,{ref:o,className:p.cx(ne({className:r,size:n,weight:s,align:c,block:i}),"fp-Link"),...u})});Ge.displayName="Link";/**
|
|
74
7
|
* @license
|
|
75
8
|
* MIT License
|
|
76
9
|
* Copyright (c) 2022 WorkOS
|
|
77
10
|
* https://github.com/radix-ui/primitives/blob/main/LICENSE
|
|
78
|
-
* */function In(t){const r=V.useRef(t);return V.useEffect(()=>{r.current=t}),V.useMemo(()=>(...n)=>{var a;return(a=r.current)==null?void 0:a.call(r,...n)},[])}function Tt({prop:t,defaultProp:r,onChange:n=()=>{}}){const[a,o]=Mo({defaultProp:r,onChange:n}),l=t!==void 0,p=l?t:a,g=In(n),x=V.useCallback(C=>{if(l){const P=typeof C=="function"?C(t):C;P!==t&&g(P)}else o(C)},[l,t,o,g]);return[p,x]}function Mo({defaultProp:t,onChange:r}){const n=V.useState(t),[a]=n,o=V.useRef(a),l=In(r);return V.useEffect(()=>{o.current!==a&&(l(a),o.current=a)},[a,o,l]),n}const $n=y.forwardRef((t,r)=>{const{className:n,fullWidth:a,value:o,defaultValue:l,onValueChange:p,...g}=t,[x,C]=Tt({prop:o,defaultProp:l,onChange:p});return c.jsx(wn.Root,{ref:r,className:_.cx(n,"fp-SegmentedControlRoot",{"fp-full-width":a}),...g,type:"single",value:x,onValueChange:R=>{R&&C(R)}})}),Mn=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(wn.Item,{ref:r,className:_.cx(n,"fp-SegmentedControlItem"),...a})}),Dn=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(We,{ref:r,className:_.cx(n,"fp-SegmentedControlText"),...a})});$n.displayName="SegmentedControl.Root";Mn.displayName="SegmentedControl.Item";Dn.displayName="SegmentedControl.Text";const Do=Object.freeze(Object.defineProperty({__proto__:null,Item:Mn,Root:$n,Text:Dn},Symbol.toStringTag,{value:"Module"}));function Jr(t,r){const n=y.createContext(r);function a(l){const{children:p,...g}=l,x=y.useMemo(()=>g,Object.values(g));return c.jsx(n.Provider,{value:x,children:p})}function o(l){const p=y.useContext(n);if(p)return p;if(r!==void 0)return r;throw new Error(`\`${l}\` must be used within \`${t}\``)}return a.displayName=t+"Provider",[a,o]}const[Ao,Fo]=Jr("RadioGroup"),An=y.forwardRef((t,r)=>{const{orientation:n="horizontal",disabled:a,className:o,...l}=t;return c.jsx(Ao,{orientation:n,disabled:a,children:c.jsx(Sn.Root,{ref:r,orientation:n,disabled:a,className:_.cx(o,"fp-RadioGroupRoot"),...l})})}),Fn=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(Sn.Item,{ref:r,className:_.cx(n,"fp-RadioGroupItem"),...a})}),Ln=y.forwardRef((t,r)=>{const{orientation:n,disabled:a}=Fo("Label"),{className:o,...l}=t;return c.jsx(Xr,{ref:r,className:_.cx(o,"fp-RadioGroupLabel"),"data-orientation":n,"data-disabled":a?"":void 0,...l})});An.displayName="RadioGroup.Root";Fn.displayName="RadioGroup.Item";Ln.displayName="RadioGroup.Label";const Lo=Object.freeze(Object.defineProperty({__proto__:null,Item:Fn,Label:Ln,Root:An},Symbol.toStringTag,{value:"Module"})),Vo="6",zo="0 0 24 24",Uo=_.cva("fp-Icon",{variants:{size:{1:"fp-size-1",2:"fp-size-2","2_5":"fp-size-2_5",3:"fp-size-3","3_5":"fp-size-3_5",4:"fp-size-4",5:"fp-size-5",6:"fp-size-6",7:"fp-size-7",8:"fp-size-8",9:"fp-size-9",10:"fp-size-10"}},defaultVariants:{size:Vo}});function Ge(t){const{path:r,viewBox:n=zo,displayName:a}=t,o=y.forwardRef((l,p)=>{const{size:g,className:x,...C}=l;return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",ref:p,viewBox:n,className:Uo({className:x,size:g}),fill:"none",...C,children:r})});return o.displayName=a||"Icon",o}const Vn=Ge({displayName:"Close",path:c.jsx("path",{stroke:"var(--color-icon)",strokeLinecap:"round",strokeLinejoin:"round",d:"M17 7 7 17M7 7l10 10"})}),kt=Ge({displayName:"ChevronRight",path:c.jsx("path",{stroke:"var(--color-icon)",strokeLinecap:"round",d:"M11.121 14.121L13.243 12L11.12 9.879"})}),Bo=Ge({displayName:"ChevronUp",path:c.jsx("path",{stroke:"var(--color-icon)",strokeLinecap:"round",d:"M14.121 12.879L12 10.757L9.87903 12.88"})}),zn=Ge({displayName:"ChevronDown",path:c.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{stroke:"var(--color-icon)",strokeLinecap:"round",d:"M9.87897 11.121L12 13.243L14.121 11.12"})})}),Qr=Ge({displayName:"Checkmark",viewBox:"0 0 16 16",path:c.jsx("path",{fill:"var(--color-icon)",fillRule:"evenodd",clipRule:"evenodd",d:"M11.777 4.08399C11.8873 4.1575 11.9639 4.27178 11.99 4.40172C12.016 4.53167 11.9894 4.66665 11.916 4.77699L7.91602 10.777C7.87506 10.8387 7.82091 10.8905 7.75748 10.9287C7.69405 10.9669 7.62294 10.9905 7.54926 10.9979C7.47559 11.0053 7.40119 10.9962 7.33146 10.9713C7.26172 10.9464 7.19839 10.9063 7.14602 10.854L4.14602 7.85399C4.09953 7.80751 4.06266 7.75232 4.0375 7.69158C4.01234 7.63084 3.99939 7.56574 3.99939 7.49999C3.99939 7.43425 4.01234 7.36915 4.0375 7.30841C4.06266 7.24767 4.09953 7.19248 4.14602 7.14599C4.19251 7.09951 4.2477 7.06263 4.30844 7.03747C4.36918 7.01231 4.43428 6.99936 4.50002 6.99936C4.56577 6.99936 4.63087 7.01231 4.6916 7.03747C4.75234 7.06263 4.80753 7.09951 4.85402 7.14599L7.42202 9.71599L11.084 4.22299C11.1575 4.11271 11.2718 4.03612 11.4018 4.01006C11.5317 3.98399 11.6667 4.01059 11.777 4.08399Z"})}),Un=Ge({displayName:"Circle",viewBox:"0 0 16 16",path:c.jsx("circle",{fill:"var(--color-icon)",cx:"8",cy:"8",r:"3"})}),Wo=Ge({displayName:"CheckmarkIndeterminate",viewBox:"0 0 16 16",path:c.jsx("path",{fill:"var(--color-icon)",d:"M4 8a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z"})}),[Go,Ot]=Jr("Checkbox"),Bn=y.forwardRef((t,r)=>{const{className:n,id:a,...o}=t,l=V.useId(),p=a??l;return c.jsx(Go,{id:p,children:c.jsx("div",{ref:r,className:_.cx(n,"fp-CheckboxRoot"),...o})})}),Wn=y.forwardRef((t,r)=>{const{className:n,indeterminate:a,...o}=t,{id:l}=Ot("Input"),p=Ho(a),g=qr(r,p);return c.jsxs(c.Fragment,{children:[c.jsx("input",{ref:g,className:_.cx(n,"fp-CheckboxInput"),id:l,"aria-labelledby":`checkbox-label-${l}`,"aria-describedby":`checkbox-description-${l}`,...o,type:"checkbox"}),c.jsx(Gn,{})]})}),Gn=()=>c.jsxs("span",{className:"fp-CheckboxIndicator","aria-hidden":"true",children:[c.jsx(Qr,{className:"fp-CheckboxCheckmark",size:"4"}),c.jsx(Wo,{className:"fp-CheckboxIndeterminate",size:"4"})]}),Hn=y.forwardRef((t,r)=>{const{className:n,...a}=t,{id:o}=Ot("Input");return c.jsx(Xr,{"aria-hidden":"true",ref:r,className:_.cx(n,"fp-CheckboxLabel"),htmlFor:o,id:`checkbox-label-${o}`,...a})}),Yn=y.forwardRef((t,r)=>{const{className:n,...a}=t,{id:o}=Ot("Description");return c.jsx(We,{"aria-hidden":"true",ref:r,className:_.cx(n,"fp-CheckboxDescription"),id:`checkbox-description-${o}`,...a})});function Ho(t){return V.useCallback(r=>{r&&(r.indeterminate=!!t)},[t])}Bn.displayName="Checkbox.Root";Wn.displayName="Checkbox.Input";Gn.displayName="Checkbox.Indicator";Hn.displayName="Checkbox.Label";Yn.displayName="Checkbox.Description";const Yo=Object.freeze(Object.defineProperty({__proto__:null,Description:Yn,Input:Wn,Label:Hn,Root:Bn},Symbol.toStringTag,{value:"Module"})),qn=ye.Root,qo=ye.Arrow,It=y.forwardRef((t,r)=>{const{placeholder:n,className:a,...o}=t;return c.jsxs(ye.Trigger,{ref:r,...o,className:_.cx(a,"fp-SelectTrigger"),children:[c.jsx(ye.Value,{placeholder:n}),c.jsx(ye.Icon,{className:"fp-SelectTriggerIcon",children:c.jsx(zn,{})})]})}),$t=y.forwardRef((t,r)=>{const{children:n,portal:a=!1,className:o,...l}=t,p=a?ye.Portal:y.Fragment;return c.jsx(p,{children:c.jsxs(ye.Content,{ref:r,...l,className:_.cx(o,"fp-MenuContent"),children:[c.jsx(ye.ScrollUpButton,{className:"fp-SelectScrollUpButton",children:c.jsx(Bo,{})}),c.jsx(ye.Viewport,{children:n}),c.jsx(ye.ScrollDownButton,{className:"fp-SelectScrollDownButton",children:c.jsx(zn,{})})]})})}),Mt=y.forwardRef((t,r)=>{const{children:n,className:a,...o}=t;return c.jsxs(ye.Item,{ref:r,...o,className:_.cx(a,"fp-MenuItem fp-MenuCheckboxItem"),children:[c.jsx(ye.ItemIndicator,{className:"fp-MenuItemIndicator",children:c.jsx(Qr,{size:"4"})}),c.jsx(ye.ItemText,{children:n})]})}),Kn=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(ye.Separator,{ref:r,className:_.cx(n,"fp-MenuSeparator"),...a})}),Xn=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(ye.Label,{ref:r,className:_.cx(n,"fp-MenuLabel"),...a})}),Jn=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(ye.Group,{ref:r,className:_.cx(n,"fp-MenuGroup"),...a})});It.displayName="Select.Trigger";$t.displayName="Select.Content";Mt.displayName="Select.Item";Kn.displayName="Select.Separator";Jn.displayName="Select.Group";Xn.displayName="Select.Label";const Ko=Object.freeze(Object.defineProperty({__proto__:null,Arrow:qo,Content:$t,Group:Jn,Item:Mt,Label:Xn,Root:qn,Separator:Kn,Trigger:It},Symbol.toStringTag,{value:"Module"})),Xo=pe.Root,Jo=pe.Trigger,Qo=pe.Sub,Zo=pe.RadioGroup,Qn=y.forwardRef((t,r)=>{const{children:n,className:a,...o}=t;return c.jsx(pe.Portal,{children:c.jsx(pe.Content,{ref:r,sideOffset:6,...o,className:_.cx(a,"fp-MenuContent"),children:n})})}),Zn=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(pe.Item,{ref:r,...a,className:_.cx(n,"fp-MenuItem")})}),ea=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(pe.Separator,{ref:r,className:_.cx(n,"fp-MenuSeparator"),...a})}),ra=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(pe.Label,{ref:r,className:_.cx(n,"fp-MenuLabel"),...a})}),ta=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(pe.Group,{ref:r,className:_.cx(n,"fp-MenuGroup"),...a})}),na=y.forwardRef((t,r)=>{const{children:n,className:a,...o}=t;return c.jsxs(pe.SubTrigger,{ref:r,...o,className:_.cx(a,"fp-MenuItem"),children:[n,c.jsx(kt,{className:"fp-MenuSubtriggerCaret"})]})}),aa=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(pe.Portal,{children:c.jsx(pe.SubContent,{ref:r,...a,className:_.cx(n,"fp-MenuContent"),sideOffset:12})})}),oa=y.forwardRef((t,r)=>{const{children:n,className:a,...o}=t;return c.jsxs(pe.CheckboxItem,{ref:r,...o,className:_.cx(a,"fp-MenuItem fp-MenuCheckboxItem"),children:[c.jsx(pe.ItemIndicator,{className:"fp-MenuItemIndicator",children:c.jsx(Qr,{size:"4"})}),n]})}),sa=y.forwardRef((t,r)=>{const{children:n,className:a,...o}=t;return c.jsxs(pe.RadioItem,{ref:r,...o,className:_.cx(a,"fp-MenuItem fp-MenuRadioItem"),children:[c.jsx(pe.ItemIndicator,{className:"fp-MenuItemIndicator",children:c.jsx(Un,{size:"4"})}),n]})});Qn.displayName="DropdownMenu.Content";Zn.displayName="DropdownMenu.Item";ea.displayName="DropdownMenu.Separator";ta.displayName="DropdownMenu.Group";ra.displayName="DropdownMenu.Label";na.displayName="DropdownMenu.SubTrigger";aa.displayName="DropdownMenu.SubContent";oa.displayName="DropdownMenu.CheckboxItem";sa.displayName="DropdownMenu.RadioItem";const es=Object.freeze(Object.defineProperty({__proto__:null,CheckboxItem:oa,Content:Qn,Group:ta,Item:Zn,Label:ra,RadioGroup:Zo,RadioItem:sa,Root:Xo,Separator:ea,Sub:Qo,SubContent:aa,SubTrigger:na,Trigger:Jo},Symbol.toStringTag,{value:"Module"})),rs=me.Root,ts=me.Trigger,ns=me.Sub,as=me.RadioGroup,ia=y.forwardRef((t,r)=>{const{children:n,className:a,...o}=t;return c.jsx(me.Portal,{children:c.jsx(me.Content,{ref:r,...o,className:_.cx(a,"fp-MenuContent"),children:n})})}),ca=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(me.Item,{ref:r,...a,className:_.cx(n,"fp-MenuItem")})}),la=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(me.Separator,{ref:r,className:_.cx(n,"fp-MenuSeparator"),...a})}),ua=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(me.Label,{ref:r,className:_.cx(n,"fp-MenuLabel"),...a})}),fa=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(me.Group,{ref:r,className:_.cx(n,"fp-MenuGroup"),...a})}),da=y.forwardRef((t,r)=>{const{children:n,className:a,...o}=t;return c.jsxs(me.SubTrigger,{ref:r,...o,className:_.cx(a,"fp-MenuItem"),children:[n,c.jsx(kt,{className:"fp-MenuSubtriggerCaret"})]})}),pa=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(me.Portal,{children:c.jsx(me.SubContent,{ref:r,...a,className:_.cx(n,"fp-MenuContent"),sideOffset:12})})}),ma=y.forwardRef((t,r)=>{const{children:n,className:a,...o}=t;return c.jsxs(me.CheckboxItem,{ref:r,...o,className:_.cx(a,"fp-MenuItem fp-MenuCheckboxItem"),children:[c.jsx(me.ItemIndicator,{className:"fp-MenuItemIndicator",children:c.jsx(Qr,{size:"4"})}),n]})}),ga=y.forwardRef((t,r)=>{const{children:n,className:a,...o}=t;return c.jsxs(me.RadioItem,{ref:r,...o,className:_.cx(a,"fp-MenuItem fp-MenuRadioItem"),children:[c.jsx(me.ItemIndicator,{className:"fp-MenuItemIndicator",children:c.jsx(Un,{size:"4"})}),n]})});ia.displayName="ContextMenu.Content";ca.displayName="ContextMenu.Item";la.displayName="ContextMenu.Separator";ua.displayName="ContextMenu.Label";fa.displayName="ContextMenu.Group";da.displayName="ContextMenu.SubTrigger";pa.displayName="ContextMenu.SubContent";ma.displayName="ContextMenu.CheckboxItem";ga.displayName="ContextMenu.RadioItem";const os=Object.freeze(Object.defineProperty({__proto__:null,CheckboxItem:ma,Content:ia,Group:fa,Item:ca,Label:ua,RadioGroup:as,RadioItem:ga,Root:rs,Separator:la,Sub:ns,SubContent:pa,SubTrigger:da,Trigger:ts},Symbol.toStringTag,{value:"Module"})),{TooltipProvider:ss}=cr,is=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(cr.Content,{ref:r,className:_.cx(n,"fp-tooltip"),...a})}),cs=t=>{const{className:r,...n}=t;return c.jsx(cr.Arrow,{className:_.cx(r,"fp-tooltip-arrow"),...n})},Dt=y.forwardRef((t,r)=>{const{defaultOpen:n,open:a,onOpenChange:o,delayDuration:l,disableHoverableContent:p,container:g,forceMount:x,children:C,content:R,...P}=t,G={open:a,defaultOpen:n,onOpenChange:o,delayDuration:l,disableHoverableContent:p};return c.jsxs(cr.Root,{...G,children:[c.jsx(cr.Trigger,{asChild:!0,children:C}),c.jsx(cr.Portal,{forceMount:x,container:g,children:c.jsxs(is,{ref:r,arrowPadding:10,...P,children:[R,c.jsx(cs,{})]})})]})});Dt.displayName="Tooltip";const ls=_.cva("fp-IconButton",{variants:{size:{small:"fp-size-small",medium:"fp-size-medium"},activeAppearance:{subtle:"fp-active-appearance-subtle",solid:"fp-active-appearance-solid"}},defaultVariants:{size:"small",activeAppearance:"subtle"}}),Zr=y.forwardRef((t,r)=>{const{className:n,size:a,activeAppearance:o,"aria-label":l,tooltipContent:p,disableTooltip:g,...x}=t,C=c.jsx("button",{ref:r,className:ls({className:n,size:a,activeAppearance:o}),"aria-label":l,...x});return g?C:c.jsx(Dt,{content:p??l,children:C})});Zr.displayName="IconButton";const At=y.forwardRef((t,r)=>{const{children:n,className:a,...o}=t;return c.jsx("header",{ref:r,className:_.cx(a,"fp-DialogBaseHeader"),...o,children:n})}),Ft=y.forwardRef((t,r)=>{const{className:n,size:a,...o}=t;return c.jsx("div",{ref:r,className:us({className:n,size:a}),...o})}),Lt=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx("div",{ref:r,className:_.cx(n,"fp-DialogBaseControls"),...a})}),us=_.cva("fp-DialogBaseSection",{variants:{size:{base:"fp-DialogBaseSection-base",small:"fp-DialogBaseSection-small"}},defaultVariants:{size:"base"}});At.displayName="Dialog.Header";Ft.displayName="Dialog.Section";Lt.displayName="Dialog.Controls";const fs=lr.Root,ds=lr.Anchor,ps=lr.Portal,ha=y.forwardRef((t,r)=>c.jsx(lr.Trigger,{ref:r,...t,asChild:!0})),va=y.forwardRef((t,r)=>{const{className:n,style:a,width:o,height:l,maxWidth:p,maxHeight:g,...x}=t;return c.jsx(lr.Content,{ref:r,className:_.cx(n,"fp-DialogBaseContent"),style:{...a,width:o,height:l,maxWidth:p,maxHeight:g},...x})}),ya=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(We,{ref:r,className:_.cx(n,"fp-DialogBaseTitle"),weight:"strong",...a})}),ba=y.forwardRef((t,r)=>{const{children:n,...a}=t;return c.jsx(lr.Close,{ref:r,asChild:!0,...a,children:n||c.jsx(Zr,{"aria-label":"Close",disableTooltip:!0,children:c.jsx(Vn,{})})})});ha.displayName="Popover.Trigger";va.displayName="Popover.Content";ya.displayName="Popover.Title";ba.displayName="Popover.Close";const ms=Object.freeze(Object.defineProperty({__proto__:null,Anchor:ds,Close:ba,Content:va,Controls:Lt,Header:At,Portal:ps,Root:fs,Section:Ft,Title:ya,Trigger:ha},Symbol.toStringTag,{value:"Module"})),gs=er.Root,hs=er.Portal,xa=y.forwardRef((t,r)=>c.jsx(er.Trigger,{ref:r,...t,asChild:!0})),vs=_.cva(["fp-DialogBaseContent","fp-DialogContent"],{variants:{size:{1:"fp-size-1",2:"fp-size-2",3:"fp-size-3",fullscreen:"fp-size-fullscreen"},placement:{center:"fp-placement-center",top:"fp-placement-top"}},defaultVariants:{size:"2",placement:"top"}}),Ra=y.forwardRef((t,r)=>{const{children:n,className:a,size:o,placement:l,style:p,width:g,height:x,maxWidth:C,maxHeight:R,...P}=t;return c.jsx(er.Content,{ref:r,className:vs({className:a,size:o,placement:l}),"aria-describedby":void 0,style:{...p,width:g,height:x,maxWidth:C,maxHeight:R},...P,children:n})}),Ca=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(er.Overlay,{ref:r,className:_.cx(n,"fp-DialogBaseOverlay"),...a})}),_a=y.forwardRef((t,r)=>{const{children:n,className:a,...o}=t;return c.jsx(er.Title,{ref:r,className:_.cx(a,"fp-DialogBaseTitle"),...o,asChild:!0,children:c.jsx(We,{weight:"strong",children:n})})}),wa=y.forwardRef((t,r)=>{const{children:n,...a}=t;return c.jsx(er.Close,{ref:r,asChild:!0,...a,children:n||c.jsx(Zr,{"aria-label":"Close",disableTooltip:!0,children:c.jsx(Vn,{})})})});xa.displayName="Dialog.Trigger";Ra.displayName="Dialog.Content";Ca.displayName="Dialog.Overlay";_a.displayName="Dialog.Title";wa.displayName="Dialog.Close";const ys=Object.freeze(Object.defineProperty({__proto__:null,Close:wa,Content:Ra,Controls:Lt,Header:At,Overlay:Ca,Portal:hs,Root:gs,Section:Ft,Title:_a,Trigger:xa},Symbol.toStringTag,{value:"Module"})),bs=Me.Root,xs=Me.Portal,Sa=y.forwardRef((t,r)=>c.jsx(Me.Trigger,{ref:r,...t,asChild:!0})),Rs=_.cva(["fp-DialogBaseContent","fp-AlertDialogContent"],{variants:{size:{1:"fp-size-1",2:"fp-size-2",3:"fp-size-3"},placement:{center:"fp-placement-center",top:"fp-placement-top"}},defaultVariants:{size:"2",placement:"top"}}),ja=y.forwardRef((t,r)=>{const{className:n,size:a,placement:o,style:l,width:p,height:g,maxWidth:x,maxHeight:C,...R}=t;return c.jsx(Me.Content,{ref:r,className:Rs({className:n,size:a,placement:o}),style:{...l,width:p,height:g,maxWidth:x,maxHeight:C},...R})}),Ea=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(Me.Overlay,{ref:r,className:_.cx(n,"fp-DialogBaseOverlay"),...a})}),Ta=y.forwardRef((t,r)=>{const{children:n,className:a,...o}=t;return c.jsx(Me.Title,{ref:r,className:_.cx(a,"fp-AlertDialogTitle"),...o,asChild:!0,children:c.jsx(We,{weight:"strong",children:n})})}),Pa=y.forwardRef((t,r)=>{const{children:n,className:a,...o}=t;return c.jsx(Me.Description,{ref:r,className:_.cx(a,"fp-AlertDialogDescription"),...o,asChild:!0,children:c.jsx(We,{children:n})})}),Na=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx("div",{ref:r,className:_.cx(n,"fp-AlertDialogActions"),...a})}),ka=y.forwardRef((t,r)=>c.jsx(Me.Cancel,{ref:r,asChild:!0,...t})),Oa=y.forwardRef((t,r)=>c.jsx(Me.Action,{ref:r,asChild:!0,...t}));Sa.displayName="AlertDialog.Trigger";ja.displayName="AlertDialog.Content";Ea.displayName="AlertDialog.Overlay";Ta.displayName="AlertDialog.Title";Pa.displayName="AlertDialog.Description";Na.displayName="AlertDialog.Actions";ka.displayName="AlertDialog.Cancel";Oa.displayName="AlertDialog.Action";const Cs=Object.freeze(Object.defineProperty({__proto__:null,Action:Oa,Actions:Na,Cancel:ka,Content:ja,Description:Pa,Overlay:Ea,Portal:xs,Root:bs,Title:Ta,Trigger:Sa},Symbol.toStringTag,{value:"Module"})),[Ia,Vt]=Jr("ValueFieldProvider",null),be=y.forwardRef((t,r)=>{const{className:n,disabled:a,...o}=t,l=Vt("Root");return c.jsx(Ia,{disabled:a,children:c.jsx("label",{ref:r,className:_.cx(n,"fp-ValueFieldRoot"),"data-disabled":a||l!=null&&l.disabled?"":void 0,...o})})}),ur=y.forwardRef((t,r)=>{const{className:n,disabled:a,...o}=t;return c.jsx(Ia,{disabled:a,children:c.jsx("div",{ref:r,className:_.cx(n,"fp-ValueFieldMulti"),"data-disabled":a?"":void 0,...o})})}),fr=y.forwardRef((t,r)=>{const{className:n,...a}=t,o=Vt("Root");return c.jsx("span",{ref:r,className:_.cx(n,"fp-ValueFieldLabel"),"data-disabled":o!=null&&o.disabled?"":void 0,...a})});be.displayName="ValueField.Root";fr.displayName="ValueField.Label";ur.displayName="ValueField.Multi";function Ue(t,r){const[n,a]=t,[o,l]=r;return function(p){return n===a||o===l?o:(p-n)/(a-n)*(l-o)+o}}function _s(){const[t,r]=V.useState(!0),n=V.useCallback(()=>{r(!0)},[]),a=V.useCallback(()=>{r(!1)},[]),o=V.useCallback(l=>{t&&l.currentTarget.selectionStart===l.currentTarget.selectionEnd&&(l.currentTarget.select(),r(!1))},[t]);return{onMouseLeave:a,onMouseUp:o,onFocus:n}}const zt=y.forwardRef((t,r)=>{const{type:n="text",className:a,selectOnClick:o=!1,...l}=t,p=V.useRef(null),g=qr(p,r),{onMouseLeave:x,onMouseUp:C,onFocus:R}=_s(),P=o?_n({onMouseLeave:x,onMouseUp:C,onFocus:R},l):l;return c.jsx("input",{ref:g,type:n,className:_.cx(a,"fp-Input"),...P})});zt.displayName="Input";const ws=1,Ss=10,Ut=t=>{const{className:r,inputRef:n,value:a,onChange:o,smallNudge:l=ws,bigNudge:p=Ss,formatter:g,disabled:x,...C}=t,R=V.useRef(null),P=qr(n,R),[G,Y]=V.useState(null),k=G??g.format(a),Q=Vt("ValueField"),re=S=>{const U=g.parse(S,a);if(S.length===0||!U.valid||U.value===a)return ae();Y(null),o(U.value)},ae=()=>{Y(null)},z=S=>{Y(S.currentTarget.value)},Re=S=>{const U=S.currentTarget;if(S.key==="Enter"&&(S.preventDefault(),U.blur()),S.key==="Escape"&&(S.preventDefault(),ae(),requestAnimationFrame(()=>{U.blur()})),S.key==="ArrowUp"||S.key==="ArrowDown"){if(!g.incrementBy)return;S.preventDefault();const xe=g.parse(U.value,a),Se=xe.valid?xe.value:a,Ee=S.shiftKey?p:l,ge=S.key==="ArrowUp"?Ee:-Ee,Ce=g.getIncrementTargets?g.getIncrementTargets(U):null,Te=g.incrementBy(Se,ge,Ce);re(g.format(Te)),requestAnimationFrame(()=>{if(Ce&&g.getIncrementSelection){const[le,he]=g.getIncrementSelection(Ce);U.setSelectionRange(le,he)}else U.select()})}},ce=S=>{re(S.currentTarget.value)};return c.jsx(zt,{ref:P,dir:"auto",autoComplete:"off",spellCheck:"false",selectOnClick:!0,className:_.cx(r,"fp-ValueFieldBase"),value:k,onChange:z,disabled:x||(Q==null?void 0:Q.disabled),..._n(C,{onBlur:ce,onKeyDown:Re})})};Ut.displayName="ValueField.Base";const js=15,we=y.forwardRef((t,r)=>{const{value:n,onChange:a,min:o,max:l,targetRange:p,precision:g,suffix:x,allowedUnits:C,...R}=t,P=V.useMemo(()=>Es({min:o,max:l,precision:g,targetRange:p,suffix:x,allowedUnits:C}),[o,l,g,p,x,C]);return c.jsx(Ut,{inputRef:r,value:n,onChange:a,formatter:P,...R})});function Es(t={}){const{min:r,max:n,targetRange:a,precision:o=js,suffix:l,allowedUnits:p=[]}=t,{toDisplayValue:g,fromDisplayValue:x}=Ts({min:r,max:n,targetRange:a});return{parse:(C,R)=>{try{return{valid:!0,value:J.pipe(C,P=>Ns({expression:P,displayValue:g(R),suffix:l,allowedUnits:p}),J.round(o),x,J.clamp({min:r,max:n}))}}catch{return{valid:!1}}},format:C=>J.pipe(C,J.clamp({min:r,max:n}),g,J.round(o),R=>Ps(R,l)),incrementBy(C,R){return C+x(R)}}}function Ts(t){const{min:r,max:n,targetRange:a}=t;if(!a)return{toDisplayValue:o=>o,fromDisplayValue:o=>o};if(typeof r!="number"||typeof n!="number")throw Error("'targetRange' requires specifying 'min' and 'max'.");if(r===n)throw Error("'min' and 'max' cannot be equal.");return{toDisplayValue:Ue([r,n],a),fromDisplayValue:Ue(a,[r,n])}}function Ps(t,r){return Number.isNaN(t)?"":r?`${t}${r}`:`${t}`}function Ns(t){const{displayValue:r,expression:n,suffix:a="",allowedUnits:o=[]}=t,l="(\\d*\\.?\\d+)",p=`(?:${[...o,a].join("|")})*`,g=n.replace(new RegExp(`${l}${p}`,"gi"),(C,R)=>R).replace(new RegExp(`${p}${l}`,"gi"),(C,R)=>R).replace(new RegExp(`${l}%`,"gi"),(C,R)=>`(${r}*${R}/100)`).replace(new RegExp(`%${l}`,"gi"),(C,R)=>`(${r}*${R}/100)`).replace(new RegExp(`${l}x`,"gi"),(C,R)=>`(${r}*${R})`).replace(new RegExp(`x${l}`,"gi"),(C,R)=>`(${r}*${R})`).replace(new RegExp("(?<!\\d)x(?!\\d)","gi"),`${r}`).trim(),x=Co(g);if(x===null)throw new Error("Invalid expression.");return x}const $a=y.forwardRef((t,r)=>{const{value:n,onChange:a,ignoreAlpha:o=!1,...l}=t,p=V.useMemo(()=>ks({ignoreAlpha:o}),[o]);return c.jsx(Ut,{inputRef:r,value:n,onChange:a,formatter:p,...l})});function ks(t){const{ignoreAlpha:r}=t;return{parse(n,a){try{return{value:J.pipe(n,Os,o=>Is(o,a),$s,o=>r?{...o,a:1}:o),valid:!0}}catch{return{valid:!1}}},format(n){return(Math.round(n.r*255).toString(16).padStart(2,"0")+Math.round(n.g*255).toString(16).padStart(2,"0")+Math.round(n.b*255).toString(16).padStart(2,"0")).toUpperCase()},incrementBy(n,a,o){return o??(o={r:!0,g:!0,b:!0}),{r:o.r?J.clamp(Math.round(n.r*255)+a,{min:0,max:255})/255:n.r,g:o.g?J.clamp(Math.round(n.g*255)+a,{min:0,max:255})/255:n.g,b:o.b?J.clamp(Math.round(n.b*255)+a,{min:0,max:255})/255:n.b,a:n.a}},getIncrementTargets(n){const a=n.selectionStart,o=n.selectionEnd;return a===null||o===null?null:{r:a<2||a===2&&o===2,g:a<4&&o>=3||a===4&&o===4,b:o>=5}},getIncrementSelection(n){let a,o;return n?(n.r?a=0:n.g?a=2:a=4,n.b?o=6:n.g?o=4:o=2,[a,o]):[0,6]}}}function Os(t){var n;const r=/[0-9a-f]+/gi;return((n=t.match(r))==null?void 0:n[0])??""}function Is(t,r){if(!/^[0-9a-f]{1,8}$/i.test(t))throw new Error("Invalid hex substring");switch(t.length){case 1:return t.repeat(6)+Br(r.a);case 2:return t.repeat(3)+Br(r.a);case 3:return t.split("").map(n=>n.repeat(2)).join("")+Br(r.a);case 4:return t.slice(0,3).split("").map(n=>n.repeat(2)).join("")+t[3].repeat(2);case 5:return t.slice(0,3).split("").map(n=>n.repeat(2)).join("")+t.slice(-2);case 6:return t+Br(r.a);case 7:return t.slice(0,6)+t[6].repeat(2);case 8:return t;default:throw new Error("Invalid hex substring")}}function $s(t){return{r:parseInt(t.substring(0,2),16)/255,g:parseInt(t.substring(2,4),16)/255,b:parseInt(t.substring(4,6),16)/255,a:parseInt(t.substring(6,8),16)/255}}function Br(t){return Math.round(t*255).toString(16)}const Ms=Object.freeze(Object.defineProperty({__proto__:null,Hex:$a,Label:fr,Multi:ur,Numeric:we,Root:be},Symbol.toStringTag,{value:"Module"}));function Wr(t){const r=J.round(t*255,0).toString(16);return r.length<2?"0"+r:r}function Hr({r:t,g:r,b:n,a}){const o=a<1?Wr(a):"";return"#"+Wr(t)+Wr(r)+Wr(n)+o}function Ds(t){return Hr(Pt(t))}function As(t){return Hr(Be(t))}function Cr({r:t,g:r,b:n,a}){const o=Math.max(t,r,n),l=o-Math.min(t,r,n),p=l?o===t?(r-n)/l:o===r?2+(n-t)/l:4+(t-r)/l:0;return{h:60*(p<0?p+6:p),s:o?l/o*100:0,v:o*100,a}}function Be({h:t,s:r,v:n,a}){t=t/360*6,r=r/100,n=n/100;const o=Math.floor(t),l=n*(1-r),p=n*(1-(t-o)*r),g=n*(1-(1-t+o)*r),x=o%6;return{r:[n,p,l,l,g,n][x],g:[g,n,n,p,l,l][x],b:[l,l,g,n,n,p][x],a}}function Ma({h:t,s:r,l:n,a}){return r*=(n<50?n:100-n)/100,{h:t,s:r>0?2*r/(n+r)*100:0,v:n+r,a}}function Da({h:t,s:r,v:n,a}){const o=(200-r)*n/100;return{h:t,s:o>0&&o<200?r*n/100/(o<=100?o:200-o)*100:0,l:o/2,a}}function Pt(t){return Be(Ma(t))}function xn(t){return Da(Cr(t))}function xr(t){const r=J.round(t.r,4),n=J.round(t.g,4),a=J.round(t.b,4),o=J.round(t.a,2);return o<1?`color(display-p3 ${r} ${n} ${a} / ${o})`:`color(display-p3 ${r} ${n} ${a})`}function Rr(t){const r=Math.round(t.r*255),n=Math.round(t.g*255),a=Math.round(t.b*255),o=t.a;return o<1?`rgb(${r} ${n} ${a} / ${o})`:`rgb(${r} ${n} ${a})`}function Rn(t){const{r,g:n,b:a,a:o}=t;return{r:r+(1-r)*(1-o),g:n+(1-n)*(1-o),b:a+(1-a)*(1-o),a:1}}const Fs={r:0,g:0,b:0,a:1},Ls=["hex","rgb","hsl","hsv"],[Vs,De]=Jr("ColorPicker"),zs=t=>{const{colorSpace:r,models:n=Ls,defaultActiveModel:a,activeModel:o,onActiveModelChange:l,defaultColor:p,color:g,onColorChange:x,children:C}=t;Us(o,a,n);const[R=Fs,P]=Tt({prop:g,defaultProp:p,onChange:x}),[G=n[0],Y]=Tt({prop:o,defaultProp:a,onChange:l}),[k,Q]=V.useState({}),re={hsv:k.hsv??Cr(R),hsl:k.hsl??xn(R),rgb:k.rgb??R,hex:k.hex??Hr(R)},ae=re.hsv.h,z=Re=>{const{mode:ce,value:S}=Re;ce==="rgb"?(Q({rgb:S,hsv:Cr(S),hsl:xn(S),hex:Hr(S)}),P(S)):ce==="hsv"?(Q({hsv:S,hsl:Da(S),rgb:Be(S),hex:As(S)}),P(Be(S))):ce==="hsl"&&(Q({hsv:Ma(S),hsl:S,rgb:Pt(S),hex:Ds(S)}),P(Pt(S)))};return c.jsx(Vs,{colorSpace:r,models:n,activeModel:G,onActiveModelChange:Y,color:R,onColorChange:z,hue:ae,colorsByModel:re,children:C})};function Us(t,r,n){if(n.length===0)throw new Error("The 'models' prop must contain at least one color model. Omit the 'models' prop entirely to use default models.");if(t&&!n.includes(t))throw new Error(`Invalid 'activeModel': '${t}' is not present in the 'models' array. Make sure 'activeModel' matches a model name in 'models'.`);if(r&&!n.includes(r))throw new Error(`Invalid 'defaultActiveModel': '${r}' is not present in the 'models' array. Make sure 'activeModel' matches a model name in 'models'.`)}const Bs=2,Ws=0,Gs=100,Hs="horizontal",Ys="ltr",et=y.forwardRef((t,r)=>{const{className:n,min:a=Ws,max:o=Gs,defaultValue:l=[a],value:p,onValueChange:g,orientation:x=Hs,dir:C=Ys,inverted:R,disabled:P,range:G=!0,rangeAnchor:Y,baseValue:k,hints:Q,...re}=t,ae=V.useRef(null),z=qr(ae,r),{onPointerDown:Re,focusVisible:ce}=Js(ae),[S,U]=V.useState(p??l),xe=V.useRef(p),Se=V.useRef(l);V.useEffect(()=>{J.isDeepEqual(p,xe.current)&&J.isDeepEqual(l,Se.current)||U(p??l)},[p,l]),V.useEffect(()=>{ae.current&&ae.current.style.setProperty("--radix-slider-thumb-transform",Xs(x,C,R))},[ae,x,C,R]);const Ee=ge=>{const Ce=ge.map(Te=>Qs(Te,Q,a,o));g==null||g(Ce),U(Ce)};return c.jsxs(wt.Root,{tabIndex:-1,ref:z,className:_.cx(n,"fp-SliderRoot"),value:S,onValueChange:Ee,onPointerDown:Re,min:a,max:o,orientation:x,dir:C,inverted:R,disabled:P,...re,children:[c.jsx(wt.Track,{className:"fp-SliderTrack"}),G&&c.jsx(Ks,{dir:C,value:S,min:a,max:o,orientation:x,inverted:R,rangeAnchor:Y,disabled:P}),Q&&Q.map(ge=>c.jsx(qs,{hint:ge,baseValue:k,min:a,max:o,orientation:x,dir:C,inverted:R},ge)),S.map((ge,Ce)=>c.jsx(wt.Thumb,{className:_.cx("fp-SliderThumb",{"fp-SliderThumb-focusVisible":ce,"fp-SliderThumb-baseValue":ge===k})},Ce))]})});et.displayName="Slider";const qs=t=>{const{baseValue:r,dir:n,inverted:a,max:o,min:l,orientation:p,hint:g}=t,{startEdge:x}=Aa(p,n,a),C=Ue([l,o],[0,100])(g),R=4;return c.jsx(c.Fragment,{children:c.jsx("span",{className:_.cx("fp-SliderHint",{"fp-SliderHint-baseValue":g===r}),"data-orientation":p,style:{[x]:`calc(${C}% - ${R/2}px)`}})})},Ks=t=>{const{min:r,max:n,value:a,rangeAnchor:o=r,orientation:l,dir:p,inverted:g,disabled:x}=t,C=a.length>1?Math.min(...a):Math.min(o,...a),R=a.length>1?Math.max(...a):Math.max(o,...a),P=Ue([r,n],[0,100])(C),G=100-Ue([r,n],[0,100])(R),Y=Aa(l,p,g);return c.jsx("span",{className:"fp-SliderRange","data-orientation":l,"data-disabled":x?"":void 0,style:{[Y.startEdge]:`${P}%`,[Y.endEdge]:`${G}%`}})};function Aa(t,r,n){const a=n?"inverted":"normal";return{vertical:{normal:{startEdge:"bottom",endEdge:"top"},inverted:{startEdge:"top",endEdge:"bottom"}},horizontal:{normal:{startEdge:r==="ltr"?"left":"right",endEdge:r==="ltr"?"right":"left"},inverted:{startEdge:r==="ltr"?"right":"left",endEdge:r==="ltr"?"left":"right"}}}[t][a]}function Xs(t,r,n){const a=n?"inverted":"normal";return{vertical:{normal:"translateY(50%)",inverted:"translateY(-50%)"},horizontal:{normal:r==="ltr"?"translateX(-50%)":"translateX(50%)",inverted:r==="ltr"?"translateX(50%)":"translateX(-50%)"}}[t][a]}function Js(t){const[r,n]=V.useState(!1),a=()=>{var l;n(!1),window.removeEventListener("pointerup",a),(l=t.current)==null||l.focus()};return{onPointerDown:()=>{n(!0),window.addEventListener("pointerup",a)},focusVisible:!r}}function Qs(t,r,n,a){const o=Ue([0,100],[0,a-n])(Bs),l=r==null?void 0:r.find(p=>Math.abs(p-t)<=o);return typeof l=="number"?l:t}const Zs=t=>{const{className:r,style:n}=t,{activeModel:a,colorSpace:o,hue:l,color:p,onColorChange:g}=De("Hue"),x=ei[a],C=P=>{const G=x.setHue(p,P[0]);g({mode:"rgb",value:G})},R=x.getThumbColor(l,o);return c.jsx(et,{"aria-label":"hue",range:!1,min:0,max:359,value:[l],onValueChange:C,className:`fp-ColorPickerHueSlider fp-color-model-${a} fp-color-space-${o} ${r}`,style:{"--slider-thumb-bg":R,...n}})},Gr={getHue:t=>Math.round(Cr(t).h),setHue:(t,r)=>{const{s:n,v:a}=Cr(t);return Be({h:r,s:n,v:a,a:t.a})},getThumbColor:(t,r)=>{const{r:n,g:a,b:o}=Be({h:t,s:100,v:100,a:1});return r==="display-p3"?`color(display-p3 ${+n.toFixed(4)} ${+a.toFixed(4)} ${+o.toFixed(4)})`:`rgb(${Math.round(n*255)} ${Math.round(a*255)} ${Math.round(o*255)})`}},ei={rgb:Gr,hsl:Gr,hsv:Gr,hex:Gr},ri=t=>{const{className:r,style:n}=t,{colorSpace:a,color:o,onColorChange:l}=De("Hue"),p={srgb:{transparent:Rr({...o,a:0}),opaque:Rr({...o,a:1})},p3:{transparent:xr({...o,a:0}),opaque:xr({...o,a:1})}},g={srgb:Rr(Rn(o)),p3:xr(Rn(o))},x=C=>{l({mode:"rgb",value:{...o,a:J.round(C[0]/100,2)}})};return c.jsx(et,{"aria-label":"alpha",min:0,max:100,range:!1,value:[o.a*100],onValueChange:x,className:`fp-ColorPickerAlphaSlider fp-color-space-${a} ${r}`,style:{"--track-bg-transparent-srgb":p.srgb.transparent,"--track-bg-opaque-srgb":p.srgb.opaque,"--track-bg-transparent-p3":p.p3.transparent,"--track-bg-opaque-p3":p.p3.opaque,"--thumb-bg-srgb":g.srgb,"--thumb-bg-p3":g.p3,...n}})},ti=8,ni=t=>{const{onColorChange:r,colorsByModel:n,hue:a,colorSpace:o,activeModel:l}=De("ColorPicker.Area"),p={srgb:Rr(Be({h:a,s:100,v:100,a:1})),p3:xr(Be({h:a,s:100,v:100,a:1}))},g={srgb:Rr(n.rgb),p3:xr(n.rgb)},x=ai(n,l),C=V.useRef(null),{size:R}=oi(C),P=k=>{r(l==="hsl"?{mode:"hsl",value:{h:a,s:k.x,l:100-k.y,a:n.rgb.a}}:{mode:"hsv",value:{h:a,s:k.x,v:100-k.y,a:n.rgb.a}})},G=k=>{if(k.type==="pointerdown"&&k.currentTarget.setPointerCapture(k.pointerId),k.type==="pointermove"&&!k.currentTarget.hasPointerCapture(k.pointerId))return;const Q=k.currentTarget.getBoundingClientRect();P({x:J.pipe(k.clientX-Q.x,Ue([0,R],[0,100]),J.clamp({min:0,max:100})),y:J.pipe(k.clientY-Q.y-ti,Ue([0,R],[0,100]),J.clamp({min:0,max:100}))})},Y=k=>{const Q=k.shiftKey?10:1,re={ArrowRight:{x:1,y:0},ArrowLeft:{x:-1,y:0},ArrowDown:{x:0,y:1},ArrowUp:{x:0,y:-1}}[k.key];re&&P({x:J.clamp(x.x+re.x*Q,{min:0,max:100}),y:J.clamp(x.y+re.y*Q,{min:0,max:100})})};return c.jsxs("div",{ref:C,className:"fp-ColorPickerArea",onPointerDown:G,onPointerMove:G,style:{"--base-color-srgb":p.srgb,"--base-color-p3":p.p3},children:[c.jsx("div",{className:`fp-ColorPickerAreaCanvas fp-color-space-${o} fp-color-model-${l}`}),c.jsx("div",{tabIndex:0,onKeyDown:Y,className:`fp-ColorPickerThumb fp-color-space-${o}`,style:{"--thumb-bg-srgb":g.srgb,"--thumb-bg-p3":g.p3,left:`${x.x}%`,top:`${x.y}%`}})]})};function ai(t,r){if(r==="hsl"){const n=t.hsl;return{x:n.s,y:100-n.l}}else{const n=t.hsv;return{x:n.s,y:100-n.v}}}function oi(t){const[r,n]=y.useState(0);return y.useLayoutEffect(()=>{const a=t.current;if(!a)return;n(a.getBoundingClientRect().width);const o=new ResizeObserver(l=>{for(const p of l)n(p.contentRect.width)});return o.observe(a),()=>{o.unobserve(a)}},[t]),{size:r}}const St={0:"fp-gap-0",px:"fp-gap-px","0.5":"fp-gap-0_5",1:"fp-gap-1","1.5":"fp-gap-1_5",2:"fp-gap-2","2.5":"fp-gap-2_5",3:"fp-gap-3","3.5":"fp-gap-3_5",4:"fp-gap-4",5:"fp-gap-5",6:"fp-gap-6",7:"fp-gap-7",8:"fp-gap-8",9:"fp-gap-9",10:"fp-gap-10",11:"fp-gap-11",12:"fp-gap-12",13:"fp-gap-13",14:"fp-gap-14",15:"fp-gap-15",16:"fp-gap-16"},si=_.cva("fp-Flex",{variants:{direction:{row:"fp-direction-row",column:"fp-direction-column",rowReverse:"fp-direction-row-reverse",columnReverse:"fp-direction-column-reverse"},align:{start:"fp-align-start",center:"fp-align-center",end:"fp-align-end",baseline:"fp-align-baseline",stretch:"fp-align-stretch"},justify:{start:"fp-justify-start",center:"fp-justify-center",end:"fp-justify-end",between:"fp-justify-between"},wrap:{nowrap:"fp-wrap-nowrap",wrap:"fp-wrap-wrap",wrapReverse:"fp-wrap-wrap-reverse"},gap:St,columnGap:St,rowGap:St},defaultVariants:{direction:"row"}}),Bt=y.forwardRef((t,r)=>{const{className:n,direction:a,align:o,justify:l,wrap:p,gap:g,columnGap:x,rowGap:C,...R}=t;return c.jsx("div",{ref:r,className:si({className:n,direction:a,align:o,justify:l,wrap:p,gap:g,columnGap:x,rowGap:C}),...R})});Bt.displayName="Flex";const ii=t=>{const{models:r,activeModel:n,onActiveModelChange:a}=De("ColorPicker.Input"),o=J.pick({hex:ci,hsv:ui,hsl:fi,rgb:li},r)[n];return c.jsxs(Bt,{gap:"2.5",className:t.className,style:t.style,children:[r.length>1&&c.jsxs(qn,{value:n,onValueChange:a,children:[c.jsx(It,{style:{width:56}}),c.jsx($t,{children:r.map(l=>c.jsx(Mt,{value:l,children:l.toUpperCase()},l))})]}),c.jsx(o,{})]})},ci=()=>{const{colorsByModel:t,onColorChange:r}=De("ColorPicker.HEX"),n=t.rgb,a=l=>{r({mode:"rgb",value:l})},o=l=>{r({mode:"rgb",value:{...n,a:l}})};return c.jsxs(ur,{children:[c.jsx(be,{children:c.jsx($a,{onChange:a,value:n})}),c.jsxs(be,{style:{flex:"0 0 52px"},children:[c.jsx(we,{onChange:o,value:n.a,min:0,max:1,targetRange:[0,100],precision:2,allowedUnits:["%"]}),c.jsx(fr,{children:"%"})]})]})},li=()=>{const{colorsByModel:t,onColorChange:r}=De("ColorPicker.RGBA"),n=t.rgb,a=o=>l=>{r({mode:"rgb",value:{...n,[o]:l}})};return c.jsxs(ur,{children:[c.jsx(be,{children:c.jsx(we,{onChange:a("r"),value:n.r,min:0,max:1,targetRange:[0,255],precision:0})}),c.jsx(be,{children:c.jsx(we,{onChange:a("g"),value:n.g,min:0,max:1,targetRange:[0,255],precision:0})}),c.jsx(be,{children:c.jsx(we,{onChange:a("b"),value:n.b,min:0,max:1,targetRange:[0,255],precision:0})}),c.jsxs(be,{style:{flex:"0 0 52px"},children:[c.jsx(we,{onChange:a("a"),value:n.a,min:0,max:1,targetRange:[0,100],precision:2,allowedUnits:["%"]}),c.jsx(fr,{children:"%"})]})]})},ui=()=>{const{colorsByModel:t,onColorChange:r}=De("ColorPicker.HSVA"),n=t.hsv,a=o=>l=>{r({mode:"hsv",value:{...n,[o]:l}})};return c.jsxs(ur,{children:[c.jsx(be,{children:c.jsx(we,{onChange:a("h"),value:n.h,min:0,max:360,precision:0})}),c.jsx(be,{children:c.jsx(we,{onChange:a("s"),value:n.s,min:0,max:100,precision:0})}),c.jsx(be,{children:c.jsx(we,{onChange:a("v"),value:n.v,min:0,max:100,precision:0})}),c.jsxs(be,{style:{flex:"0 0 52px"},children:[c.jsx(we,{onChange:a("a"),value:n.a,min:0,max:1,targetRange:[0,100],precision:2,allowedUnits:["%"]}),c.jsx(fr,{children:"%"})]})]})},fi=()=>{const{colorsByModel:t,onColorChange:r}=De("ColorPicker.HSLA"),n=t.hsl,a=o=>l=>{r({mode:"hsl",value:{...n,[o]:l}})};return c.jsxs(ur,{children:[c.jsx(be,{children:c.jsx(we,{onChange:a("h"),value:n.h,min:0,max:360,precision:0})}),c.jsx(be,{children:c.jsx(we,{onChange:a("s"),value:n.s,min:0,max:100,precision:0})}),c.jsx(be,{children:c.jsx(we,{onChange:a("l"),value:n.l,min:0,max:100,precision:0})}),c.jsxs(be,{style:{flex:"0 0 52px"},children:[c.jsx(we,{onChange:a("a"),value:n.a,min:0,max:1,targetRange:[0,100],precision:2,allowedUnits:["%"]}),c.jsx(fr,{children:"%"})]})]})},di=Object.freeze(Object.defineProperty({__proto__:null,Alpha:ri,Area:ni,Hue:Zs,Input:ii,Root:zs,useColorPickerContext:De},Symbol.toStringTag,{value:"Module"})),Fa=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(Nt.Root,{ref:r,className:_.cx(n,"fp-CollapsibleRoot"),...a})}),La=y.forwardRef((t,r)=>{const{className:n,children:a,...o}=t;return c.jsxs(Nt.Trigger,{ref:r,className:_.cx(n,"fp-CollapsibleTrigger"),...o,children:[c.jsx(kt,{viewBox:"4 4 16 16",size:"4",className:"fp-CollapsibleIndicator"}),a]})}),Va=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(Nt.Content,{ref:r,className:_.cx(n,"fp-CollapsibleContent"),...a})});Fa.displayName="Collapsible.Root";La.displayName="Collapsible.Trigger";Va.displayName="Collapsible.Content";const pi=Object.freeze(Object.defineProperty({__proto__:null,Content:Va,Root:Fa,Trigger:La},Symbol.toStringTag,{value:"Module"})),mi=_.cva("fp-Button",{variants:{variant:{primary:"fp-variant-primary",secondary:"fp-variant-secondary",inverse:"fp-variant-inverse",destructive:"fp-variant-destructive",success:"fp-variant-success",text:"fp-variant-text"},size:{small:"fp-size-small",medium:"fp-size-medium"},fullWidth:{true:"fp-full-width"}},defaultVariants:{variant:"secondary",size:"small"}}),za=y.forwardRef((t,r)=>{const{className:n,variant:a,size:o,fullWidth:l,...p}=t;return c.jsx("button",{ref:r,className:mi({className:n,variant:a,size:o,fullWidth:l}),...p})});za.displayName="Button";const Ua=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(So,{className:_.cx(n,"fp-textarea"),ref:r,...a})});Ua.displayName="Textarea";const Ba=y.forwardRef((t,r)=>{const{className:n,...a}=t;return c.jsx(gn.Root,{ref:r,className:_.cx(n,"fp-switchRoot"),...a,children:c.jsx(gn.Thumb,{ref:r,className:_.cx(n,"fp-switchThumb")})})});Ba.displayName="Switch";exports.AlertDialog=Cs;exports.Button=za;exports.Checkbox=Yo;exports.Collapsible=pi;exports.ColorPicker=di;exports.ContextMenu=os;exports.Dialog=ys;exports.DropdownMenu=es;exports.Flex=Bt;exports.IconButton=Zr;exports.Input=zt;exports.Label=Xr;exports.Link=On;exports.Paragraph=kn;exports.Popover=ms;exports.RadioGroup=Lo;exports.SegmentedControl=Do;exports.Select=Ko;exports.Slider=et;exports.Switch=Ba;exports.Tabs=$o;exports.Text=We;exports.Textarea=Ua;exports.Tooltip=Dt;exports.TooltipProvider=ss;exports.ValueField=Ms;exports.createIcon=Ge;
|
|
11
|
+
* */function He(t){const o=k.useRef(t);return k.useEffect(()=>{o.current=t}),k.useMemo(()=>(...e)=>{var r;return(r=o.current)==null?void 0:r.call(o,...e)},[])}function me({prop:t,defaultProp:o,onChange:e=()=>{}}){const[r,n]=yo({defaultProp:o,onChange:e}),s=t!==void 0,c=s?t:r,i=He(e),u=k.useCallback(d=>{if(s){const g=typeof d=="function"?d(t):d;g!==t&&i(g)}else n(d)},[s,t,n,i]);return[c,u]}function yo({defaultProp:t,onChange:o}){const e=k.useState(t),[r]=e,n=k.useRef(r),s=He(o);return k.useEffect(()=>{n.current!==r&&(s(r),n.current=r)},[r,n,s]),e}const Ue=l.forwardRef((t,o)=>{const{className:e,fullWidth:r,value:n,defaultValue:s,onValueChange:c,...i}=t,[u,d]=me({prop:n,defaultProp:s,onChange:c});return a.jsx(ze.Root,{ref:o,className:p.cx(e,"fp-SegmentedControlRoot",{"fp-full-width":r}),...i,type:"single",value:u,onValueChange:f=>{f&&d(f)}})}),qe=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(ze.Item,{ref:o,className:p.cx(e,"fp-SegmentedControlItem"),...r})}),We=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(E,{ref:o,className:p.cx(e,"fp-SegmentedControlText"),...r})});Ue.displayName="SegmentedControl.Root";qe.displayName="SegmentedControl.Item";We.displayName="SegmentedControl.Text";const jo=Object.freeze(Object.defineProperty({__proto__:null,Item:qe,Root:Ue,Text:We},Symbol.toStringTag,{value:"Module"}));function se(t,o){const e=l.createContext(o);function r(s){const{children:c,...i}=s,u=l.useMemo(()=>i,Object.values(i));return a.jsx(e.Provider,{value:u,children:c})}function n(s){const c=l.useContext(e);if(c)return c;if(o!==void 0)return o;throw new Error(`\`${s}\` must be used within \`${t}\``)}return r.displayName=t+"Provider",[r,n]}const[wo,vo]=se("RadioGroup"),Xe=l.forwardRef((t,o)=>{const{orientation:e="horizontal",disabled:r,className:n,...s}=t;return a.jsx(wo,{orientation:e,disabled:r,children:a.jsx(Ae.Root,{ref:o,orientation:e,disabled:r,className:p.cx(n,"fp-RadioGroupRoot"),...s})})}),Ke=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(Ae.Item,{ref:o,className:p.cx(e,"fp-RadioGroupItem"),...r})}),Ye=l.forwardRef((t,o)=>{const{orientation:e,disabled:r}=vo("Label"),{className:n,...s}=t;return a.jsx(ae,{ref:o,className:p.cx(n,"fp-RadioGroupLabel"),"data-orientation":e,"data-disabled":r?"":void 0,...s})});Xe.displayName="RadioGroup.Root";Ke.displayName="RadioGroup.Item";Ye.displayName="RadioGroup.Label";const Po=Object.freeze(Object.defineProperty({__proto__:null,Item:Ke,Label:Ye,Root:Xe},Symbol.toStringTag,{value:"Module"})),So="6",To="0 0 24 24",Mo=p.cva("fp-Icon",{variants:{size:{1:"fp-size-1",2:"fp-size-2","2_5":"fp-size-2_5",3:"fp-size-3","3_5":"fp-size-3_5",4:"fp-size-4",5:"fp-size-5",6:"fp-size-6",7:"fp-size-7",8:"fp-size-8",9:"fp-size-9",10:"fp-size-10"}},defaultVariants:{size:So}});function L(t){const{path:o,viewBox:e=To,displayName:r}=t,n=l.forwardRef((s,c)=>{const{size:i,className:u,...d}=s;return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",ref:c,viewBox:e,className:Mo({className:u,size:i}),fill:"none",...d,children:o})});return n.displayName=r||"Icon",n}const Ze=L({displayName:"Close",path:a.jsx("path",{stroke:"var(--color-icon)",strokeLinecap:"round",strokeLinejoin:"round",d:"M17 7 7 17M7 7l10 10"})}),he=L({displayName:"ChevronRight",path:a.jsx("path",{stroke:"var(--color-icon)",strokeLinecap:"round",d:"M11.121 14.121L13.243 12L11.12 9.879"})}),Io=L({displayName:"ChevronUp",path:a.jsx("path",{stroke:"var(--color-icon)",strokeLinecap:"round",d:"M14.121 12.879L12 10.757L9.87903 12.88"})}),Je=L({displayName:"ChevronDown",path:a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{stroke:"var(--color-icon)",strokeLinecap:"round",d:"M9.87897 11.121L12 13.243L14.121 11.12"})})}),le=L({displayName:"Checkmark",viewBox:"0 0 16 16",path:a.jsx("path",{fill:"var(--color-icon)",fillRule:"evenodd",clipRule:"evenodd",d:"M11.777 4.08399C11.8873 4.1575 11.9639 4.27178 11.99 4.40172C12.016 4.53167 11.9894 4.66665 11.916 4.77699L7.91602 10.777C7.87506 10.8387 7.82091 10.8905 7.75748 10.9287C7.69405 10.9669 7.62294 10.9905 7.54926 10.9979C7.47559 11.0053 7.40119 10.9962 7.33146 10.9713C7.26172 10.9464 7.19839 10.9063 7.14602 10.854L4.14602 7.85399C4.09953 7.80751 4.06266 7.75232 4.0375 7.69158C4.01234 7.63084 3.99939 7.56574 3.99939 7.49999C3.99939 7.43425 4.01234 7.36915 4.0375 7.30841C4.06266 7.24767 4.09953 7.19248 4.14602 7.14599C4.19251 7.09951 4.2477 7.06263 4.30844 7.03747C4.36918 7.01231 4.43428 6.99936 4.50002 6.99936C4.56577 6.99936 4.63087 7.01231 4.6916 7.03747C4.75234 7.06263 4.80753 7.09951 4.85402 7.14599L7.42202 9.71599L11.084 4.22299C11.1575 4.11271 11.2718 4.03612 11.4018 4.01006C11.5317 3.98399 11.6667 4.01059 11.777 4.08399Z"})}),Qe=L({displayName:"Circle",viewBox:"0 0 16 16",path:a.jsx("circle",{fill:"var(--color-icon)",cx:"8",cy:"8",r:"3"})}),$o=L({displayName:"CheckmarkIndeterminate",viewBox:"0 0 16 16",path:a.jsx("path",{fill:"var(--color-icon)",d:"M4 8a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z"})}),[_o,be]=se("Checkbox"),et=l.forwardRef((t,o)=>{const{className:e,id:r,...n}=t,s=l.useId(),c=r??s;return a.jsx(_o,{id:c,children:a.jsx("div",{ref:o,className:p.cx(e,"fp-CheckboxRoot"),...n})})}),tt=l.forwardRef((t,o)=>{const{className:e,indeterminate:r,...n}=t,{id:s}=be("Input"),c=Do(r),i=re(o,c);return a.jsxs(a.Fragment,{children:[a.jsx("input",{ref:i,className:p.cx(e,"fp-CheckboxInput"),id:s,"aria-labelledby":`checkbox-label-${s}`,"aria-describedby":`checkbox-description-${s}`,...n,type:"checkbox"}),a.jsx(ot,{})]})}),ot=()=>a.jsxs("span",{className:"fp-CheckboxIndicator","aria-hidden":"true",children:[a.jsx(le,{className:"fp-CheckboxCheckmark",size:"4"}),a.jsx($o,{className:"fp-CheckboxIndeterminate",size:"4"})]}),rt=l.forwardRef((t,o)=>{const{className:e,...r}=t,{id:n}=be("Input");return a.jsx(ae,{"aria-hidden":"true",ref:o,className:p.cx(e,"fp-CheckboxLabel"),htmlFor:n,id:`checkbox-label-${n}`,...r})}),nt=l.forwardRef((t,o)=>{const{className:e,...r}=t,{id:n}=be("Description");return a.jsx(E,{"aria-hidden":"true",ref:o,className:p.cx(e,"fp-CheckboxDescription"),id:`checkbox-description-${n}`,...r})});function Do(t){return l.useCallback(o=>{o&&(o.indeterminate=!!t)},[t])}et.displayName="Checkbox.Root";tt.displayName="Checkbox.Input";ot.displayName="Checkbox.Indicator";rt.displayName="Checkbox.Label";nt.displayName="Checkbox.Description";const ko=Object.freeze(Object.defineProperty({__proto__:null,Description:nt,Input:tt,Label:rt,Root:et},Symbol.toStringTag,{value:"Module"})),at=R.Root,zo=R.Arrow,Ce=l.forwardRef((t,o)=>{const{placeholder:e,className:r,...n}=t;return a.jsxs(R.Trigger,{ref:o,...n,className:p.cx(r,"fp-SelectTrigger"),children:[a.jsx(R.Value,{placeholder:e}),a.jsx(R.Icon,{className:"fp-SelectTriggerIcon",children:a.jsx(Je,{})})]})}),Ne=l.forwardRef((t,o)=>{const{children:e,portal:r=!1,className:n,...s}=t,c=r?R.Portal:l.Fragment;return a.jsx(c,{children:a.jsxs(R.Content,{ref:o,...s,className:p.cx(n,"fp-MenuContent"),children:[a.jsx(R.ScrollUpButton,{className:"fp-SelectScrollUpButton",children:a.jsx(Io,{})}),a.jsx(R.Viewport,{children:e}),a.jsx(R.ScrollDownButton,{className:"fp-SelectScrollDownButton",children:a.jsx(Je,{})})]})})}),Re=l.forwardRef((t,o)=>{const{children:e,className:r,...n}=t;return a.jsxs(R.Item,{ref:o,...n,className:p.cx(r,"fp-MenuItem fp-MenuCheckboxItem"),children:[a.jsx(R.ItemIndicator,{className:"fp-MenuItemIndicator",children:a.jsx(le,{size:"4"})}),a.jsx(R.ItemText,{children:e})]})}),st=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(R.Separator,{ref:o,className:p.cx(e,"fp-MenuSeparator"),...r})}),lt=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(R.Label,{ref:o,className:p.cx(e,"fp-MenuLabel"),...r})}),ct=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(R.Group,{ref:o,className:p.cx(e,"fp-MenuGroup"),...r})});Ce.displayName="Select.Trigger";Ne.displayName="Select.Content";Re.displayName="Select.Item";st.displayName="Select.Separator";ct.displayName="Select.Group";lt.displayName="Select.Label";const Ao=Object.freeze(Object.defineProperty({__proto__:null,Arrow:zo,Content:Ne,Group:ct,Item:Re,Label:lt,Root:at,Separator:st,Trigger:Ce},Symbol.toStringTag,{value:"Module"})),Eo=C.Root,Lo=C.Trigger,Oo=C.Sub,Vo=C.RadioGroup,it=l.forwardRef((t,o)=>{const{children:e,className:r,...n}=t;return a.jsx(C.Portal,{children:a.jsx(C.Content,{ref:o,sideOffset:6,...n,className:p.cx(r,"fp-MenuContent"),children:e})})}),pt=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(C.Item,{ref:o,...r,className:p.cx(e,"fp-MenuItem")})}),ut=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(C.Separator,{ref:o,className:p.cx(e,"fp-MenuSeparator"),...r})}),dt=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(C.Label,{ref:o,className:p.cx(e,"fp-MenuLabel"),...r})}),ft=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(C.Group,{ref:o,className:p.cx(e,"fp-MenuGroup"),...r})}),mt=l.forwardRef((t,o)=>{const{children:e,className:r,...n}=t;return a.jsxs(C.SubTrigger,{ref:o,...n,className:p.cx(r,"fp-MenuItem"),children:[e,a.jsx(he,{className:"fp-MenuSubtriggerCaret"})]})}),gt=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(C.Portal,{children:a.jsx(C.SubContent,{ref:o,...r,className:p.cx(e,"fp-MenuContent"),sideOffset:12})})}),xt=l.forwardRef((t,o)=>{const{children:e,className:r,...n}=t;return a.jsxs(C.CheckboxItem,{ref:o,...n,className:p.cx(r,"fp-MenuItem fp-MenuCheckboxItem"),children:[a.jsx(C.ItemIndicator,{className:"fp-MenuItemIndicator",children:a.jsx(le,{size:"4"})}),e]})}),ht=l.forwardRef((t,o)=>{const{children:e,className:r,...n}=t;return a.jsxs(C.RadioItem,{ref:o,...n,className:p.cx(r,"fp-MenuItem fp-MenuRadioItem"),children:[a.jsx(C.ItemIndicator,{className:"fp-MenuItemIndicator",children:a.jsx(Qe,{size:"4"})}),e]})});it.displayName="DropdownMenu.Content";pt.displayName="DropdownMenu.Item";ut.displayName="DropdownMenu.Separator";ft.displayName="DropdownMenu.Group";dt.displayName="DropdownMenu.Label";mt.displayName="DropdownMenu.SubTrigger";gt.displayName="DropdownMenu.SubContent";xt.displayName="DropdownMenu.CheckboxItem";ht.displayName="DropdownMenu.RadioItem";const Bo=Object.freeze(Object.defineProperty({__proto__:null,CheckboxItem:xt,Content:it,Group:ft,Item:pt,Label:dt,RadioGroup:Vo,RadioItem:ht,Root:Eo,Separator:ut,Sub:Oo,SubContent:gt,SubTrigger:mt,Trigger:Lo},Symbol.toStringTag,{value:"Module"})),Fo=N.Root,Go=N.Trigger,Ho=N.Sub,Uo=N.RadioGroup,bt=l.forwardRef((t,o)=>{const{children:e,className:r,...n}=t;return a.jsx(N.Portal,{children:a.jsx(N.Content,{ref:o,...n,className:p.cx(r,"fp-MenuContent"),children:e})})}),Ct=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(N.Item,{ref:o,...r,className:p.cx(e,"fp-MenuItem")})}),Nt=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(N.Separator,{ref:o,className:p.cx(e,"fp-MenuSeparator"),...r})}),Rt=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(N.Label,{ref:o,className:p.cx(e,"fp-MenuLabel"),...r})}),yt=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(N.Group,{ref:o,className:p.cx(e,"fp-MenuGroup"),...r})}),jt=l.forwardRef((t,o)=>{const{children:e,className:r,...n}=t;return a.jsxs(N.SubTrigger,{ref:o,...n,className:p.cx(r,"fp-MenuItem"),children:[e,a.jsx(he,{className:"fp-MenuSubtriggerCaret"})]})}),wt=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(N.Portal,{children:a.jsx(N.SubContent,{ref:o,...r,className:p.cx(e,"fp-MenuContent"),sideOffset:12})})}),vt=l.forwardRef((t,o)=>{const{children:e,className:r,...n}=t;return a.jsxs(N.CheckboxItem,{ref:o,...n,className:p.cx(r,"fp-MenuItem fp-MenuCheckboxItem"),children:[a.jsx(N.ItemIndicator,{className:"fp-MenuItemIndicator",children:a.jsx(le,{size:"4"})}),e]})}),Pt=l.forwardRef((t,o)=>{const{children:e,className:r,...n}=t;return a.jsxs(N.RadioItem,{ref:o,...n,className:p.cx(r,"fp-MenuItem fp-MenuRadioItem"),children:[a.jsx(N.ItemIndicator,{className:"fp-MenuItemIndicator",children:a.jsx(Qe,{size:"4"})}),e]})});bt.displayName="ContextMenu.Content";Ct.displayName="ContextMenu.Item";Nt.displayName="ContextMenu.Separator";Rt.displayName="ContextMenu.Label";yt.displayName="ContextMenu.Group";jt.displayName="ContextMenu.SubTrigger";wt.displayName="ContextMenu.SubContent";vt.displayName="ContextMenu.CheckboxItem";Pt.displayName="ContextMenu.RadioItem";const qo=Object.freeze(Object.defineProperty({__proto__:null,CheckboxItem:vt,Content:bt,Group:yt,Item:Ct,Label:Rt,RadioGroup:Uo,RadioItem:Pt,Root:Fo,Separator:Nt,Sub:Ho,SubContent:wt,SubTrigger:jt,Trigger:Go},Symbol.toStringTag,{value:"Module"})),{TooltipProvider:Wo}=B,Xo=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(B.Content,{ref:o,className:p.cx(e,"fp-tooltip"),...r})}),Ko=t=>{const{className:o,...e}=t;return a.jsx(B.Arrow,{className:p.cx(o,"fp-tooltip-arrow"),...e})},ye=l.forwardRef((t,o)=>{const{defaultOpen:e,open:r,onOpenChange:n,delayDuration:s,disableHoverableContent:c,container:i,forceMount:u,children:d,content:f,...g}=t,j={open:r,defaultOpen:e,onOpenChange:n,delayDuration:s,disableHoverableContent:c};return a.jsxs(B.Root,{...j,children:[a.jsx(B.Trigger,{asChild:!0,children:d}),a.jsx(B.Portal,{forceMount:u,container:i,children:a.jsxs(Xo,{ref:o,arrowPadding:10,...g,children:[f,a.jsx(Ko,{})]})})]})});ye.displayName="Tooltip";const Yo=p.cva("fp-IconButton",{variants:{size:{small:"fp-size-small",medium:"fp-size-medium"},activeAppearance:{subtle:"fp-active-appearance-subtle",solid:"fp-active-appearance-solid"}},defaultVariants:{size:"small",activeAppearance:"subtle"}}),ce=l.forwardRef((t,o)=>{const{className:e,size:r,activeAppearance:n,"aria-label":s,tooltipContent:c,disableTooltip:i,...u}=t,d=a.jsx("button",{ref:o,className:Yo({className:e,size:r,activeAppearance:n}),"aria-label":s,...u});return i?d:a.jsx(ye,{content:c??s,children:d})});ce.displayName="IconButton";const je=l.forwardRef((t,o)=>{const{children:e,className:r,...n}=t;return a.jsx("header",{ref:o,className:p.cx(r,"fp-DialogBaseHeader"),...n,children:e})}),we=l.forwardRef((t,o)=>{const{className:e,size:r,...n}=t;return a.jsx("div",{ref:o,className:Zo({className:e,size:r}),...n})}),ve=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx("div",{ref:o,className:p.cx(e,"fp-DialogBaseControls"),...r})}),Zo=p.cva("fp-DialogBaseSection",{variants:{size:{base:"fp-DialogBaseSection-base",small:"fp-DialogBaseSection-small"}},defaultVariants:{size:"base"}});je.displayName="Dialog.Header";we.displayName="Dialog.Section";ve.displayName="Dialog.Controls";const Jo=F.Root,Qo=F.Anchor,er=F.Portal,St=l.forwardRef((t,o)=>a.jsx(F.Trigger,{ref:o,...t,asChild:!0})),Tt=l.forwardRef((t,o)=>{const{className:e,style:r,width:n,height:s,maxWidth:c,maxHeight:i,...u}=t;return a.jsx(F.Content,{ref:o,className:p.cx(e,"fp-DialogBaseContent"),style:{...r,width:n,height:s,maxWidth:c,maxHeight:i},...u})}),Mt=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(E,{ref:o,className:p.cx(e,"fp-DialogBaseTitle"),weight:"strong",...r})}),It=l.forwardRef((t,o)=>{const{children:e,...r}=t;return a.jsx(F.Close,{ref:o,asChild:!0,...r,children:e||a.jsx(ce,{"aria-label":"Close",disableTooltip:!0,children:a.jsx(Ze,{})})})});St.displayName="Popover.Trigger";Tt.displayName="Popover.Content";Mt.displayName="Popover.Title";It.displayName="Popover.Close";const tr=Object.freeze(Object.defineProperty({__proto__:null,Anchor:Qo,Close:It,Content:Tt,Controls:ve,Header:je,Portal:er,Root:Jo,Section:we,Title:Mt,Trigger:St},Symbol.toStringTag,{value:"Module"})),or=V.Root,rr=V.Portal,$t=l.forwardRef((t,o)=>a.jsx(V.Trigger,{ref:o,...t,asChild:!0})),nr=p.cva(["fp-DialogBaseContent","fp-DialogContent"],{variants:{size:{1:"fp-size-1",2:"fp-size-2",3:"fp-size-3",fullscreen:"fp-size-fullscreen"},placement:{center:"fp-placement-center",top:"fp-placement-top"}},defaultVariants:{size:"2",placement:"top"}}),_t=l.forwardRef((t,o)=>{const{children:e,className:r,size:n,placement:s,style:c,width:i,height:u,maxWidth:d,maxHeight:f,...g}=t;return a.jsx(V.Content,{ref:o,className:nr({className:r,size:n,placement:s}),"aria-describedby":void 0,style:{...c,width:i,height:u,maxWidth:d,maxHeight:f},...g,children:e})}),Dt=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(V.Overlay,{ref:o,className:p.cx(e,"fp-DialogBaseOverlay"),...r})}),kt=l.forwardRef((t,o)=>{const{children:e,className:r,...n}=t;return a.jsx(V.Title,{ref:o,className:p.cx(r,"fp-DialogBaseTitle"),...n,asChild:!0,children:a.jsx(E,{weight:"strong",children:e})})}),zt=l.forwardRef((t,o)=>{const{children:e,...r}=t;return a.jsx(V.Close,{ref:o,asChild:!0,...r,children:e||a.jsx(ce,{"aria-label":"Close",disableTooltip:!0,children:a.jsx(Ze,{})})})});$t.displayName="Dialog.Trigger";_t.displayName="Dialog.Content";Dt.displayName="Dialog.Overlay";kt.displayName="Dialog.Title";zt.displayName="Dialog.Close";const ar=Object.freeze(Object.defineProperty({__proto__:null,Close:zt,Content:_t,Controls:ve,Header:je,Overlay:Dt,Portal:rr,Root:or,Section:we,Title:kt,Trigger:$t},Symbol.toStringTag,{value:"Module"})),sr=I.Root,lr=I.Portal,At=l.forwardRef((t,o)=>a.jsx(I.Trigger,{ref:o,...t,asChild:!0})),cr=p.cva(["fp-DialogBaseContent","fp-AlertDialogContent"],{variants:{size:{1:"fp-size-1",2:"fp-size-2",3:"fp-size-3"},placement:{center:"fp-placement-center",top:"fp-placement-top"}},defaultVariants:{size:"2",placement:"top"}}),Et=l.forwardRef((t,o)=>{const{className:e,size:r,placement:n,style:s,width:c,height:i,maxWidth:u,maxHeight:d,...f}=t;return a.jsx(I.Content,{ref:o,className:cr({className:e,size:r,placement:n}),style:{...s,width:c,height:i,maxWidth:u,maxHeight:d},...f})}),Lt=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(I.Overlay,{ref:o,className:p.cx(e,"fp-DialogBaseOverlay"),...r})}),Ot=l.forwardRef((t,o)=>{const{children:e,className:r,...n}=t;return a.jsx(I.Title,{ref:o,className:p.cx(r,"fp-AlertDialogTitle"),...n,asChild:!0,children:a.jsx(E,{weight:"strong",children:e})})}),Vt=l.forwardRef((t,o)=>{const{children:e,className:r,...n}=t;return a.jsx(I.Description,{ref:o,className:p.cx(r,"fp-AlertDialogDescription"),...n,asChild:!0,children:a.jsx(E,{children:e})})}),Bt=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx("div",{ref:o,className:p.cx(e,"fp-AlertDialogActions"),...r})}),Ft=l.forwardRef((t,o)=>a.jsx(I.Cancel,{ref:o,asChild:!0,...t})),Gt=l.forwardRef((t,o)=>a.jsx(I.Action,{ref:o,asChild:!0,...t}));At.displayName="AlertDialog.Trigger";Et.displayName="AlertDialog.Content";Lt.displayName="AlertDialog.Overlay";Ot.displayName="AlertDialog.Title";Vt.displayName="AlertDialog.Description";Bt.displayName="AlertDialog.Actions";Ft.displayName="AlertDialog.Cancel";Gt.displayName="AlertDialog.Action";const ir=Object.freeze(Object.defineProperty({__proto__:null,Action:Gt,Actions:Bt,Cancel:Ft,Content:Et,Description:Vt,Overlay:Lt,Portal:lr,Root:sr,Title:Ot,Trigger:At},Symbol.toStringTag,{value:"Module"})),[Ht,Pe]=se("ValueFieldProvider",null),y=l.forwardRef((t,o)=>{const{className:e,disabled:r,...n}=t,s=Pe("Root");return a.jsx(Ht,{disabled:r,children:a.jsx("label",{ref:o,className:p.cx(e,"fp-ValueFieldRoot"),"data-disabled":r||s!=null&&s.disabled?"":void 0,...n})})}),G=l.forwardRef((t,o)=>{const{className:e,disabled:r,...n}=t;return a.jsx(Ht,{disabled:r,children:a.jsx("div",{ref:o,className:p.cx(e,"fp-ValueFieldMulti"),"data-disabled":r?"":void 0,...n})})}),H=l.forwardRef((t,o)=>{const{className:e,...r}=t,n=Pe("Root");return a.jsx("span",{ref:o,className:p.cx(e,"fp-ValueFieldLabel"),"data-disabled":n!=null&&n.disabled?"":void 0,...r})});y.displayName="ValueField.Root";H.displayName="ValueField.Label";G.displayName="ValueField.Multi";function z(t,o){const[e,r]=t,[n,s]=o;return function(c){return e===r||n===s?n:(c-e)/(r-e)*(s-n)+n}}function pr(){const[t,o]=l.useState(!0),e=l.useCallback(()=>{o(!0)},[]),r=l.useCallback(()=>{o(!1)},[]),n=l.useCallback(s=>{t&&s.currentTarget.selectionStart===s.currentTarget.selectionEnd&&(s.currentTarget.select(),o(!1))},[t]);return{onMouseLeave:r,onMouseUp:n,onFocus:e}}const Se=l.forwardRef((t,o)=>{const{type:e="text",className:r,selectOnClick:n=!1,...s}=t,c=l.useRef(null),i=re(c,o),{onMouseLeave:u,onMouseUp:d,onFocus:f}=pr(),g=n?ke({onMouseLeave:u,onMouseUp:d,onFocus:f},s):s;return a.jsx("input",{ref:i,type:e,className:p.cx(r,"fp-Input"),...g})});Se.displayName="Input";const ur=1,dr=10,Te=t=>{const{className:o,inputRef:e,value:r,onChange:n,smallNudge:s=ur,bigNudge:c=dr,formatter:i,disabled:u,...d}=t,f=l.useRef(null),g=re(e,f),[j,S]=l.useState(null),x=j??i.format(r),b=Pe("ValueField"),T=m=>{const P=i.parse(m,r);if(m.length===0||!P.valid||P.value===r)return M();S(null),n(P.value)},M=()=>{S(null)},U=m=>{S(m.currentTarget.value)},q=m=>{const P=m.currentTarget;if(m.key==="Enter"&&(m.preventDefault(),P.blur()),m.key==="Escape"&&(m.preventDefault(),M(),requestAnimationFrame(()=>{P.blur()})),m.key==="ArrowUp"||m.key==="ArrowDown"){if(!i.incrementBy)return;m.preventDefault();const Y=i.parse(P.value,r),pe=Y.valid?Y.value:r,Z=m.shiftKey?c:s,_=m.key==="ArrowUp"?Z:-Z,D=i.getIncrementTargets?i.getIncrementTargets(P):null,ue=i.incrementBy(pe,_,D);T(i.format(ue)),requestAnimationFrame(()=>{if(D&&i.getIncrementSelection){const[to,oo]=i.getIncrementSelection(D);P.setSelectionRange(to,oo)}else P.select()})}},O=m=>{T(m.currentTarget.value)};return a.jsx(Se,{ref:g,dir:"auto",autoComplete:"off",spellCheck:"false",selectOnClick:!0,className:p.cx(o,"fp-ValueFieldBase"),value:x,onChange:U,disabled:u||(b==null?void 0:b.disabled),...ke(d,{onBlur:O,onKeyDown:q})})};Te.displayName="ValueField.Base";const fr=15,w=l.forwardRef((t,o)=>{const{value:e,onChange:r,min:n,max:s,targetRange:c,precision:i,suffix:u,allowedUnits:d,...f}=t,g=l.useMemo(()=>mr({min:n,max:s,precision:i,targetRange:c,suffix:u,allowedUnits:d}),[n,s,i,c,u,d]);return a.jsx(Te,{inputRef:o,value:e,onChange:r,formatter:g,...f})});function mr(t={}){const{min:o,max:e,targetRange:r,precision:n=fr,suffix:s,allowedUnits:c=[]}=t,{toDisplayValue:i,fromDisplayValue:u}=gr({min:o,max:e,targetRange:r});return{parse:(d,f)=>{try{return{valid:!0,value:h.pipe(d,g=>hr({expression:g,displayValue:i(f),suffix:s,allowedUnits:c}),h.round(n),u,h.clamp({min:o,max:e}))}}catch{return{valid:!1}}},format:d=>h.pipe(d,h.clamp({min:o,max:e}),i,h.round(n),f=>xr(f,s)),incrementBy(d,f){return d+u(f)}}}function gr(t){const{min:o,max:e,targetRange:r}=t;if(!r)return{toDisplayValue:n=>n,fromDisplayValue:n=>n};if(typeof o!="number"||typeof e!="number")throw Error("'targetRange' requires specifying 'min' and 'max'.");if(o===e)throw Error("'min' and 'max' cannot be equal.");return{toDisplayValue:z([o,e],r),fromDisplayValue:z(r,[o,e])}}function xr(t,o){return Number.isNaN(t)?"":o?`${t}${o}`:`${t}`}function hr(t){const{displayValue:o,expression:e,suffix:r="",allowedUnits:n=[]}=t,s="(\\d*\\.?\\d+)",c=`(?:${[...n,r].join("|")})*`,i=e.replace(new RegExp(`${s}${c}`,"gi"),(d,f)=>f).replace(new RegExp(`${c}${s}`,"gi"),(d,f)=>f).replace(new RegExp(`${s}%`,"gi"),(d,f)=>`(${o}*${f}/100)`).replace(new RegExp(`%${s}`,"gi"),(d,f)=>`(${o}*${f}/100)`).replace(new RegExp(`${s}x`,"gi"),(d,f)=>`(${o}*${f})`).replace(new RegExp(`x${s}`,"gi"),(d,f)=>`(${o}*${f})`).replace(new RegExp("(?<!\\d)x(?!\\d)","gi"),`${o}`).trim(),u=mo(i);if(u===null)throw new Error("Invalid expression.");return u}const Ut=l.forwardRef((t,o)=>{const{value:e,onChange:r,ignoreAlpha:n=!1,...s}=t,c=l.useMemo(()=>br({ignoreAlpha:n}),[n]);return a.jsx(Te,{inputRef:o,value:e,onChange:r,formatter:c,...s})});function br(t){const{ignoreAlpha:o}=t;return{parse(e,r){try{return{value:h.pipe(e,Cr,n=>Nr(n,r),Rr,n=>o?{...n,a:1}:n),valid:!0}}catch{return{valid:!1}}},format(e){return(Math.round(e.r*255).toString(16).padStart(2,"0")+Math.round(e.g*255).toString(16).padStart(2,"0")+Math.round(e.b*255).toString(16).padStart(2,"0")).toUpperCase()},incrementBy(e,r,n){return n??(n={r:!0,g:!0,b:!0}),{r:n.r?h.clamp(Math.round(e.r*255)+r,{min:0,max:255})/255:e.r,g:n.g?h.clamp(Math.round(e.g*255)+r,{min:0,max:255})/255:e.g,b:n.b?h.clamp(Math.round(e.b*255)+r,{min:0,max:255})/255:e.b,a:e.a}},getIncrementTargets(e){const r=e.selectionStart,n=e.selectionEnd;return r===null||n===null?null:{r:r<2||r===2&&n===2,g:r<4&&n>=3||r===4&&n===4,b:n>=5}},getIncrementSelection(e){let r,n;return e?(e.r?r=0:e.g?r=2:r=4,e.b?n=6:e.g?n=4:n=2,[r,n]):[0,6]}}}function Cr(t){var e;const o=/[0-9a-f]+/gi;return((e=t.match(o))==null?void 0:e[0])??""}function Nr(t,o){if(!/^[0-9a-f]{1,8}$/i.test(t))throw new Error("Invalid hex substring");switch(t.length){case 1:return t.repeat(6)+J(o.a);case 2:return t.repeat(3)+J(o.a);case 3:return t.split("").map(e=>e.repeat(2)).join("")+J(o.a);case 4:return t.slice(0,3).split("").map(e=>e.repeat(2)).join("")+t[3].repeat(2);case 5:return t.slice(0,3).split("").map(e=>e.repeat(2)).join("")+t.slice(-2);case 6:return t+J(o.a);case 7:return t.slice(0,6)+t[6].repeat(2);case 8:return t;default:throw new Error("Invalid hex substring")}}function Rr(t){return{r:parseInt(t.substring(0,2),16)/255,g:parseInt(t.substring(2,4),16)/255,b:parseInt(t.substring(4,6),16)/255,a:parseInt(t.substring(6,8),16)/255}}function J(t){return Math.round(t*255).toString(16)}const yr=Object.freeze(Object.defineProperty({__proto__:null,Hex:Ut,Label:H,Multi:G,Numeric:w,Root:y},Symbol.toStringTag,{value:"Module"}));function Q(t){const o=h.round(t*255,0).toString(16);return o.length<2?"0"+o:o}function te({r:t,g:o,b:e,a:r}){const n=r<1?Q(r):"";return"#"+Q(t)+Q(o)+Q(e)+n}function jr(t){return te(ge(t))}function wr(t){return te(A(t))}function K({r:t,g:o,b:e,a:r}){const n=Math.max(t,o,e),s=n-Math.min(t,o,e),c=s?n===t?(o-e)/s:n===o?2+(e-t)/s:4+(t-o)/s:0;return{h:60*(c<0?c+6:c),s:n?s/n*100:0,v:n*100,a:r}}function A({h:t,s:o,v:e,a:r}){t=t/360*6,o=o/100,e=e/100;const n=Math.floor(t),s=e*(1-o),c=e*(1-(t-n)*o),i=e*(1-(1-t+n)*o),u=n%6;return{r:[e,c,s,s,i,e][u],g:[i,e,e,c,s,s][u],b:[s,s,i,e,e,c][u],a:r}}function qt({h:t,s:o,l:e,a:r}){return o*=(e<50?e:100-e)/100,{h:t,s:o>0?2*o/(e+o)*100:0,v:e+o,a:r}}function Wt({h:t,s:o,v:e,a:r}){const n=(200-o)*e/100;return{h:t,s:n>0&&n<200?o*e/100/(n<=100?n:200-n)*100:0,l:n/2,a:r}}function ge(t){return A(qt(t))}function $e(t){return Wt(K(t))}function W(t){const o=h.round(t.r,4),e=h.round(t.g,4),r=h.round(t.b,4),n=h.round(t.a,2);return n<1?`color(display-p3 ${o} ${e} ${r} / ${n})`:`color(display-p3 ${o} ${e} ${r})`}function X(t){const o=Math.round(t.r*255),e=Math.round(t.g*255),r=Math.round(t.b*255),n=t.a;return n<1?`rgb(${o} ${e} ${r} / ${n})`:`rgb(${o} ${e} ${r})`}function _e(t){const{r:o,g:e,b:r,a:n}=t;return{r:o+(1-o)*(1-n),g:e+(1-e)*(1-n),b:r+(1-r)*(1-n),a:1}}const vr={r:0,g:0,b:0,a:1},Pr=["hex","rgb","hsl","hsv"],[Sr,$]=se("ColorPicker"),Tr=t=>{const{colorSpace:o,models:e=Pr,defaultActiveModel:r,activeModel:n,onActiveModelChange:s,defaultColor:c,color:i,onColorChange:u,children:d}=t;Mr(n,r,e);const[f=vr,g]=me({prop:i,defaultProp:c,onChange:u}),[j=e[0],S]=me({prop:n,defaultProp:r,onChange:s}),[x,b]=l.useState({}),T={hsv:x.hsv??K(f),hsl:x.hsl??$e(f),rgb:x.rgb??f,hex:x.hex??te(f)},M=T.hsv.h,U=q=>{const{mode:O,value:m}=q;O==="rgb"?(b({rgb:m,hsv:K(m),hsl:$e(m),hex:te(m)}),g(m)):O==="hsv"?(b({hsv:m,hsl:Wt(m),rgb:A(m),hex:wr(m)}),g(A(m))):O==="hsl"&&(b({hsv:qt(m),hsl:m,rgb:ge(m),hex:jr(m)}),g(ge(m)))};return a.jsx(Sr,{colorSpace:o,models:e,activeModel:j,onActiveModelChange:S,color:f,onColorChange:U,hue:M,colorsByModel:T,children:d})};function Mr(t,o,e){if(e.length===0)throw new Error("The 'models' prop must contain at least one color model. Omit the 'models' prop entirely to use default models.");if(t&&!e.includes(t))throw new Error(`Invalid 'activeModel': '${t}' is not present in the 'models' array. Make sure 'activeModel' matches a model name in 'models'.`);if(o&&!e.includes(o))throw new Error(`Invalid 'defaultActiveModel': '${o}' is not present in the 'models' array. Make sure 'activeModel' matches a model name in 'models'.`)}const Ir=2,$r=0,_r=100,Dr="horizontal",kr="ltr",ie=l.forwardRef((t,o)=>{const{className:e,min:r=$r,max:n=_r,defaultValue:s=[r],value:c,onValueChange:i,orientation:u=Dr,dir:d=kr,inverted:f,disabled:g,range:j=!0,rangeAnchor:S,baseValue:x,hints:b,...T}=t,M=l.useRef(null),U=re(M,o),{onPointerDown:q,focusVisible:O}=Lr(M),[m,P]=l.useState(c??s),Y=l.useRef(c),pe=l.useRef(s);l.useEffect(()=>{h.isDeepEqual(c,Y.current)&&h.isDeepEqual(s,pe.current)||P(c??s)},[c,s]),l.useEffect(()=>{M.current&&M.current.style.setProperty("--radix-slider-thumb-transform",Er(u,d,f))},[M,u,d,f]);const Z=_=>{const D=_.map(ue=>Or(ue,b,r,n));i==null||i(D),P(D)};return a.jsxs(de.Root,{tabIndex:-1,ref:U,className:p.cx(e,"fp-SliderRoot"),value:m,onValueChange:Z,onPointerDown:q,min:r,max:n,orientation:u,dir:d,inverted:f,disabled:g,...T,children:[a.jsx(de.Track,{className:"fp-SliderTrack"}),j&&a.jsx(Ar,{dir:d,value:m,min:r,max:n,orientation:u,inverted:f,rangeAnchor:S,disabled:g}),b&&b.map(_=>a.jsx(zr,{hint:_,baseValue:x,min:r,max:n,orientation:u,dir:d,inverted:f},_)),m.map((_,D)=>a.jsx(de.Thumb,{className:p.cx("fp-SliderThumb",{"fp-SliderThumb-focusVisible":O,"fp-SliderThumb-baseValue":_===x})},D))]})});ie.displayName="Slider";const zr=t=>{const{baseValue:o,dir:e,inverted:r,max:n,min:s,orientation:c,hint:i}=t,{startEdge:u}=Xt(c,e,r),d=z([s,n],[0,100])(i),f=4;return a.jsx(a.Fragment,{children:a.jsx("span",{className:p.cx("fp-SliderHint",{"fp-SliderHint-baseValue":i===o}),"data-orientation":c,style:{[u]:`calc(${d}% - ${f/2}px)`}})})},Ar=t=>{const{min:o,max:e,value:r,rangeAnchor:n=o,orientation:s,dir:c,inverted:i,disabled:u}=t,d=r.length>1?Math.min(...r):Math.min(n,...r),f=r.length>1?Math.max(...r):Math.max(n,...r),g=z([o,e],[0,100])(d),j=100-z([o,e],[0,100])(f),S=Xt(s,c,i);return a.jsx("span",{className:"fp-SliderRange","data-orientation":s,"data-disabled":u?"":void 0,style:{[S.startEdge]:`${g}%`,[S.endEdge]:`${j}%`}})};function Xt(t,o,e){const r=e?"inverted":"normal";return{vertical:{normal:{startEdge:"bottom",endEdge:"top"},inverted:{startEdge:"top",endEdge:"bottom"}},horizontal:{normal:{startEdge:o==="ltr"?"left":"right",endEdge:o==="ltr"?"right":"left"},inverted:{startEdge:o==="ltr"?"right":"left",endEdge:o==="ltr"?"left":"right"}}}[t][r]}function Er(t,o,e){const r=e?"inverted":"normal";return{vertical:{normal:"translateY(50%)",inverted:"translateY(-50%)"},horizontal:{normal:o==="ltr"?"translateX(-50%)":"translateX(50%)",inverted:o==="ltr"?"translateX(50%)":"translateX(-50%)"}}[t][r]}function Lr(t){const[o,e]=l.useState(!1),r=()=>{var s;e(!1),window.removeEventListener("pointerup",r),(s=t.current)==null||s.focus()};return{onPointerDown:()=>{e(!0),window.addEventListener("pointerup",r)},focusVisible:!o}}function Or(t,o,e,r){const n=z([0,100],[0,r-e])(Ir),s=o==null?void 0:o.find(c=>Math.abs(c-t)<=n);return typeof s=="number"?s:t}const Vr=t=>{const{className:o,style:e}=t,{activeModel:r,colorSpace:n,hue:s,color:c,onColorChange:i}=$("Hue"),u=Br[r],d=g=>{const j=u.setHue(c,g[0]);i({mode:"rgb",value:j})},f=u.getThumbColor(s,n);return a.jsx(ie,{"aria-label":"hue",range:!1,min:0,max:359,value:[s],onValueChange:d,className:`fp-ColorPickerHueSlider fp-color-model-${r} fp-color-space-${n} ${o}`,style:{"--slider-thumb-bg":f,...e}})},ee={getHue:t=>Math.round(K(t).h),setHue:(t,o)=>{const{s:e,v:r}=K(t);return A({h:o,s:e,v:r,a:t.a})},getThumbColor:(t,o)=>{const{r:e,g:r,b:n}=A({h:t,s:100,v:100,a:1});return o==="display-p3"?`color(display-p3 ${+e.toFixed(4)} ${+r.toFixed(4)} ${+n.toFixed(4)})`:`rgb(${Math.round(e*255)} ${Math.round(r*255)} ${Math.round(n*255)})`}},Br={rgb:ee,hsl:ee,hsv:ee,hex:ee},Fr=t=>{const{className:o,style:e}=t,{colorSpace:r,color:n,onColorChange:s}=$("Hue"),c={srgb:{transparent:X({...n,a:0}),opaque:X({...n,a:1})},p3:{transparent:W({...n,a:0}),opaque:W({...n,a:1})}},i={srgb:X(_e(n)),p3:W(_e(n))},u=d=>{s({mode:"rgb",value:{...n,a:h.round(d[0]/100,2)}})};return a.jsx(ie,{"aria-label":"alpha",min:0,max:100,range:!1,value:[n.a*100],onValueChange:u,className:`fp-ColorPickerAlphaSlider fp-color-space-${r} ${o}`,style:{"--track-bg-transparent-srgb":c.srgb.transparent,"--track-bg-opaque-srgb":c.srgb.opaque,"--track-bg-transparent-p3":c.p3.transparent,"--track-bg-opaque-p3":c.p3.opaque,"--thumb-bg-srgb":i.srgb,"--thumb-bg-p3":i.p3,...e}})},Gr=8,Hr=t=>{const{onColorChange:o,colorsByModel:e,hue:r,colorSpace:n,activeModel:s}=$("ColorPicker.Area"),c={srgb:X(A({h:r,s:100,v:100,a:1})),p3:W(A({h:r,s:100,v:100,a:1}))},i={srgb:X(e.rgb),p3:W(e.rgb)},u=Ur(e,s),d=l.useRef(null),{size:f}=qr(d),g=x=>{o(s==="hsl"?{mode:"hsl",value:{h:r,s:x.x,l:100-x.y,a:e.rgb.a}}:{mode:"hsv",value:{h:r,s:x.x,v:100-x.y,a:e.rgb.a}})},j=x=>{if(x.type==="pointerdown"&&x.currentTarget.setPointerCapture(x.pointerId),x.type==="pointermove"&&!x.currentTarget.hasPointerCapture(x.pointerId))return;const b=x.currentTarget.getBoundingClientRect();g({x:h.pipe(x.clientX-b.x,z([0,f],[0,100]),h.clamp({min:0,max:100})),y:h.pipe(x.clientY-b.y-Gr,z([0,f],[0,100]),h.clamp({min:0,max:100}))})},S=x=>{const b=x.shiftKey?10:1,T={ArrowRight:{x:1,y:0},ArrowLeft:{x:-1,y:0},ArrowDown:{x:0,y:1},ArrowUp:{x:0,y:-1}}[x.key];T&&g({x:h.clamp(u.x+T.x*b,{min:0,max:100}),y:h.clamp(u.y+T.y*b,{min:0,max:100})})};return a.jsxs("div",{ref:d,className:"fp-ColorPickerArea",onPointerDown:j,onPointerMove:j,style:{"--base-color-srgb":c.srgb,"--base-color-p3":c.p3},children:[a.jsx("div",{className:`fp-ColorPickerAreaCanvas fp-color-space-${n} fp-color-model-${s}`}),a.jsx("div",{tabIndex:0,onKeyDown:S,className:`fp-ColorPickerThumb fp-color-space-${n}`,style:{"--thumb-bg-srgb":i.srgb,"--thumb-bg-p3":i.p3,left:`${u.x}%`,top:`${u.y}%`}})]})};function Ur(t,o){if(o==="hsl"){const e=t.hsl;return{x:e.s,y:100-e.l}}else{const e=t.hsv;return{x:e.s,y:100-e.v}}}function qr(t){const[o,e]=l.useState(0);return l.useLayoutEffect(()=>{const r=t.current;if(!r)return;e(r.getBoundingClientRect().width);const n=new ResizeObserver(s=>{for(const c of s)e(c.contentRect.width)});return n.observe(r),()=>{n.unobserve(r)}},[t]),{size:o}}const fe={0:"fp-gap-0",px:"fp-gap-px","0.5":"fp-gap-0_5",1:"fp-gap-1","1.5":"fp-gap-1_5",2:"fp-gap-2","2.5":"fp-gap-2_5",3:"fp-gap-3","3.5":"fp-gap-3_5",4:"fp-gap-4",5:"fp-gap-5",6:"fp-gap-6",7:"fp-gap-7",8:"fp-gap-8",9:"fp-gap-9",10:"fp-gap-10",11:"fp-gap-11",12:"fp-gap-12",13:"fp-gap-13",14:"fp-gap-14",15:"fp-gap-15",16:"fp-gap-16"},Wr=p.cva("fp-Flex",{variants:{direction:{row:"fp-direction-row",column:"fp-direction-column",rowReverse:"fp-direction-row-reverse",columnReverse:"fp-direction-column-reverse"},align:{start:"fp-align-start",center:"fp-align-center",end:"fp-align-end",baseline:"fp-align-baseline",stretch:"fp-align-stretch"},justify:{start:"fp-justify-start",center:"fp-justify-center",end:"fp-justify-end",between:"fp-justify-between"},wrap:{nowrap:"fp-wrap-nowrap",wrap:"fp-wrap-wrap",wrapReverse:"fp-wrap-wrap-reverse"},gap:fe,columnGap:fe,rowGap:fe},defaultVariants:{direction:"row"}}),Me=l.forwardRef((t,o)=>{const{className:e,direction:r,align:n,justify:s,wrap:c,gap:i,columnGap:u,rowGap:d,...f}=t;return a.jsx("div",{ref:o,className:Wr({className:e,direction:r,align:n,justify:s,wrap:c,gap:i,columnGap:u,rowGap:d}),...f})});Me.displayName="Flex";const Xr=t=>{const{models:o,activeModel:e,onActiveModelChange:r}=$("ColorPicker.Input"),n=h.pick({hex:Kr,hsv:Zr,hsl:Jr,rgb:Yr},o)[e];return a.jsxs(Me,{gap:"2.5",className:t.className,style:t.style,children:[o.length>1&&a.jsxs(at,{value:e,onValueChange:r,children:[a.jsx(Ce,{style:{width:56}}),a.jsx(Ne,{children:o.map(s=>a.jsx(Re,{value:s,children:s.toUpperCase()},s))})]}),a.jsx(n,{})]})},Kr=()=>{const{colorsByModel:t,onColorChange:o}=$("ColorPicker.HEX"),e=t.rgb,r=s=>{o({mode:"rgb",value:s})},n=s=>{o({mode:"rgb",value:{...e,a:s}})};return a.jsxs(G,{children:[a.jsx(y,{children:a.jsx(Ut,{onChange:r,value:e})}),a.jsxs(y,{style:{flex:"0 0 52px"},children:[a.jsx(w,{onChange:n,value:e.a,min:0,max:1,targetRange:[0,100],precision:2,allowedUnits:["%"]}),a.jsx(H,{children:"%"})]})]})},Yr=()=>{const{colorsByModel:t,onColorChange:o}=$("ColorPicker.RGBA"),e=t.rgb,r=n=>s=>{o({mode:"rgb",value:{...e,[n]:s}})};return a.jsxs(G,{children:[a.jsx(y,{children:a.jsx(w,{onChange:r("r"),value:e.r,min:0,max:1,targetRange:[0,255],precision:0})}),a.jsx(y,{children:a.jsx(w,{onChange:r("g"),value:e.g,min:0,max:1,targetRange:[0,255],precision:0})}),a.jsx(y,{children:a.jsx(w,{onChange:r("b"),value:e.b,min:0,max:1,targetRange:[0,255],precision:0})}),a.jsxs(y,{style:{flex:"0 0 52px"},children:[a.jsx(w,{onChange:r("a"),value:e.a,min:0,max:1,targetRange:[0,100],precision:2,allowedUnits:["%"]}),a.jsx(H,{children:"%"})]})]})},Zr=()=>{const{colorsByModel:t,onColorChange:o}=$("ColorPicker.HSVA"),e=t.hsv,r=n=>s=>{o({mode:"hsv",value:{...e,[n]:s}})};return a.jsxs(G,{children:[a.jsx(y,{children:a.jsx(w,{onChange:r("h"),value:e.h,min:0,max:360,precision:0})}),a.jsx(y,{children:a.jsx(w,{onChange:r("s"),value:e.s,min:0,max:100,precision:0})}),a.jsx(y,{children:a.jsx(w,{onChange:r("v"),value:e.v,min:0,max:100,precision:0})}),a.jsxs(y,{style:{flex:"0 0 52px"},children:[a.jsx(w,{onChange:r("a"),value:e.a,min:0,max:1,targetRange:[0,100],precision:2,allowedUnits:["%"]}),a.jsx(H,{children:"%"})]})]})},Jr=()=>{const{colorsByModel:t,onColorChange:o}=$("ColorPicker.HSLA"),e=t.hsl,r=n=>s=>{o({mode:"hsl",value:{...e,[n]:s}})};return a.jsxs(G,{children:[a.jsx(y,{children:a.jsx(w,{onChange:r("h"),value:e.h,min:0,max:360,precision:0})}),a.jsx(y,{children:a.jsx(w,{onChange:r("s"),value:e.s,min:0,max:100,precision:0})}),a.jsx(y,{children:a.jsx(w,{onChange:r("l"),value:e.l,min:0,max:100,precision:0})}),a.jsxs(y,{style:{flex:"0 0 52px"},children:[a.jsx(w,{onChange:r("a"),value:e.a,min:0,max:1,targetRange:[0,100],precision:2,allowedUnits:["%"]}),a.jsx(H,{children:"%"})]})]})},Qr=Object.freeze(Object.defineProperty({__proto__:null,Alpha:Fr,Area:Hr,Hue:Vr,Input:Xr,Root:Tr,useColorPickerContext:$},Symbol.toStringTag,{value:"Module"})),Kt=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(xe.Root,{ref:o,className:p.cx(e,"fp-CollapsibleRoot"),...r})}),Yt=l.forwardRef((t,o)=>{const{className:e,children:r,...n}=t;return a.jsxs(xe.Trigger,{ref:o,className:p.cx(e,"fp-CollapsibleTrigger"),...n,children:[a.jsx(he,{viewBox:"4 4 16 16",size:"4",className:"fp-CollapsibleIndicator"}),r]})}),Zt=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(xe.Content,{ref:o,className:p.cx(e,"fp-CollapsibleContent"),...r})});Kt.displayName="Collapsible.Root";Yt.displayName="Collapsible.Trigger";Zt.displayName="Collapsible.Content";const en=Object.freeze(Object.defineProperty({__proto__:null,Content:Zt,Root:Kt,Trigger:Yt},Symbol.toStringTag,{value:"Module"})),tn=p.cva("fp-Button",{variants:{variant:{primary:"fp-variant-primary",secondary:"fp-variant-secondary",inverse:"fp-variant-inverse",destructive:"fp-variant-destructive",success:"fp-variant-success",text:"fp-variant-text"},size:{small:"fp-size-small",medium:"fp-size-medium"},fullWidth:{true:"fp-full-width"}},defaultVariants:{variant:"secondary",size:"small"}}),Jt=l.forwardRef((t,o)=>{const{className:e,variant:r,size:n,fullWidth:s,...c}=t;return a.jsx("button",{ref:o,className:tn({className:e,variant:r,size:n,fullWidth:s}),...c})});Jt.displayName="Button";const Qt=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(ho,{className:p.cx(e,"fp-textarea"),ref:o,...r})});Qt.displayName="Textarea";const eo=l.forwardRef((t,o)=>{const{className:e,...r}=t;return a.jsx(Ie.Root,{ref:o,className:p.cx(e,"fp-switchRoot"),...r,children:a.jsx(Ie.Thumb,{ref:o,className:p.cx(e,"fp-switchThumb")})})});eo.displayName="Switch";exports.AlertDialog=ir;exports.Button=Jt;exports.Checkbox=ko;exports.Collapsible=en;exports.ColorPicker=Qr;exports.ContextMenu=qo;exports.Dialog=ar;exports.DropdownMenu=Bo;exports.Flex=Me;exports.IconButton=ce;exports.Input=Se;exports.Label=ae;exports.Link=Ge;exports.Paragraph=Fe;exports.Popover=tr;exports.RadioGroup=Po;exports.SegmentedControl=jo;exports.Select=Ao;exports.Slider=ie;exports.Switch=eo;exports.Tabs=Ro;exports.Text=E;exports.Textarea=Qt;exports.Tooltip=ye;exports.TooltipProvider=Wo;exports.ValueField=yr;exports.createIcon=L;
|