@linkdlab/funcnodes_react_flow 0.4.6 → 0.4.7

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.es.js CHANGED
@@ -34750,15 +34750,21 @@ const $7 = ({ value: e }) => /* @__PURE__ */ b.jsx(
34750
34750
  onLoaded: n
34751
34751
  }) => {
34752
34752
  const [r, o] = k.useState(t || e);
34753
- return k.useEffect(() => {
34753
+ if (k.useEffect(() => {
34754
34754
  if (e === t) return;
34755
- const i = new Image();
34756
- return i.onload = () => {
34755
+ const a = new Image();
34756
+ return a.onload = () => {
34757
34757
  n == null || n(), o(e);
34758
- }, i.src = e, () => {
34759
- i.onload = null;
34758
+ }, a.src = e, () => {
34759
+ a.onload = null;
34760
34760
  };
34761
- }, [e, t, n]), r === void 0 ? /* @__PURE__ */ b.jsx(b.Fragment, {}) : typeof r != "string" ? (console.error("Base64ImageOutput: value is not a string", r), /* @__PURE__ */ b.jsx(b.Fragment, {})) : /* @__PURE__ */ b.jsx("img", { src: r, style: { maxWidth: "100%", maxHeight: "100%" } });
34761
+ }, [e, t, n]), r === void 0)
34762
+ return /* @__PURE__ */ b.jsx(b.Fragment, {});
34763
+ if (typeof r != "string")
34764
+ return console.error("ImageRenderer: value is not a string", r), /* @__PURE__ */ b.jsx(b.Fragment, {});
34765
+ const i = r.startsWith("data:") || r.startsWith("blob:");
34766
+ let s = r;
34767
+ return i || (s = "data:image/jpeg;base64," + r), /* @__PURE__ */ b.jsx("img", { src: s, style: { maxWidth: "100%", maxHeight: "100%" } });
34762
34768
  }, jS = ({
34763
34769
  value: e
34764
34770
  }) => /* @__PURE__ */ b.jsx($7, { value: e }), LS = ({
package/dist/index.umd.js CHANGED
@@ -856,7 +856,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
856
856
  * content-type
857
857
  * Copyright(c) 2015 Douglas Christopher Wilson
858
858
  * MIT Licensed
859
- */var $_;function e8(){if($_)return au;$_=1;var e=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,t=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,n=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/\\([\u000b\u0020-\u00ff])/g,o=/([\\"])/g,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;au.format=s,au.parse=a;function s(f){if(!f||typeof f!="object")throw new TypeError("argument obj is required");var d=f.parameters,p=f.type;if(!p||!i.test(p))throw new TypeError("invalid type");var g=p;if(d&&typeof d=="object")for(var h,y=Object.keys(d).sort(),m=0;m<y.length;m++){if(h=y[m],!n.test(h))throw new TypeError("invalid parameter name");g+="; "+h+"="+u(d[h])}return g}function a(f){if(!f)throw new TypeError("argument string is required");var d=typeof f=="object"?l(f):f;if(typeof d!="string")throw new TypeError("argument string is required to be a string");var p=d.indexOf(";"),g=p!==-1?d.slice(0,p).trim():d.trim();if(!i.test(g))throw new TypeError("invalid media type");var h=new c(g.toLowerCase());if(p!==-1){var y,m,x;for(e.lastIndex=p;m=e.exec(d);){if(m.index!==p)throw new TypeError("invalid parameter format");p+=m[0].length,y=m[1].toLowerCase(),x=m[2],x.charCodeAt(0)===34&&(x=x.slice(1,-1),x.indexOf("\\")!==-1&&(x=x.replace(r,"$1"))),h.parameters[y]=x}if(p!==d.length)throw new TypeError("invalid parameter format")}return h}function l(f){var d;if(typeof f.getHeader=="function"?d=f.getHeader("content-type"):typeof f.headers=="object"&&(d=f.headers&&f.headers["content-type"]),typeof d!="string")throw new TypeError("content-type header is missing from object");return d}function u(f){var d=String(f);if(n.test(d))return d;if(d.length>0&&!t.test(d))throw new TypeError("invalid parameter value");return'"'+d.replace(o,"\\$1")+'"'}function c(f){this.parameters=Object.create(null),this.type=f}return au}var t8=e8(),Qo=new Map,H_=function(t){return t.cloneNode(!0)},W_=function(){return window.location.protocol==="file:"},X_=function(t,n,r){var o=new XMLHttpRequest;o.onreadystatechange=function(){try{if(!/\.svg/i.test(t)&&o.readyState===2){var i=o.getResponseHeader("Content-Type");if(!i)throw new Error("Content type not found");var s=t8.parse(i).type;if(!(s==="image/svg+xml"||s==="text/plain"))throw new Error("Invalid content type: ".concat(s))}if(o.readyState===4){if(o.status===404||o.responseXML===null)throw new Error(W_()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+t);if(o.status===200||W_()&&o.status===0)r(null,o);else throw new Error("There was a problem injecting the SVG: "+o.status+" "+o.statusText)}}catch(a){if(o.abort(),a instanceof Error)r(a,o);else throw a}},o.open("GET",t),o.withCredentials=n,o.overrideMimeType&&o.overrideMimeType("text/xml"),o.send()},wr={},Y_=function(t,n){wr[t]=wr[t]||[],wr[t].push(n)},n8=function(t){for(var n=function(s,a){setTimeout(function(){if(Array.isArray(wr[t])){var l=Qo.get(t),u=wr[t][s];l instanceof SVGSVGElement&&u(null,H_(l)),l instanceof Error&&u(l),s===wr[t].length-1&&delete wr[t]}},0)},r=0,o=wr[t].length;r<o;r++)n(r)},r8=function(t,n,r){if(Qo.has(t)){var o=Qo.get(t);if(o===void 0){Y_(t,r);return}if(o instanceof SVGSVGElement){r(null,H_(o));return}}Qo.set(t,void 0),Y_(t,r),X_(t,n,function(i,s){var a;i?Qo.set(t,i):((a=s.responseXML)===null||a===void 0?void 0:a.documentElement)instanceof SVGSVGElement&&Qo.set(t,s.responseXML.documentElement),n8(t)})},o8=function(t,n,r){X_(t,n,function(o,i){var s;o?r(o):((s=i.responseXML)===null||s===void 0?void 0:s.documentElement)instanceof SVGSVGElement&&r(null,i.responseXML.documentElement)})},i8=0,s8=function(){return++i8},kn=[],U_={},a8="http://www.w3.org/2000/svg",Up="http://www.w3.org/1999/xlink",Z_=function(t,n,r,o,i,s,a){var l=t.getAttribute("data-src")||t.getAttribute("src");if(!l){a(new Error("Invalid data-src or src attribute"));return}if(kn.indexOf(t)!==-1){kn.splice(kn.indexOf(t),1),t=null;return}kn.push(t),t.setAttribute("src","");var u=o?r8:o8;u(l,i,function(c,f){if(!f){kn.splice(kn.indexOf(t),1),t=null,a(c);return}var d=t.getAttribute("id");d&&f.setAttribute("id",d);var p=t.getAttribute("title");p&&f.setAttribute("title",p);var g=t.getAttribute("width");g&&f.setAttribute("width",g);var h=t.getAttribute("height");h&&f.setAttribute("height",h);var y=Array.from(new Set(Aa(Aa(Aa([],(f.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(t.getAttribute("class")||"").split(" "),!0))).join(" ").trim();f.setAttribute("class",y);var m=t.getAttribute("style");m&&f.setAttribute("style",m),f.setAttribute("data-src",l);var x=[].filter.call(t.attributes,function(V){return/^data-\w[\w-]*$/.test(V.name)});if(Array.prototype.forEach.call(x,function(V){V.name&&V.value&&f.setAttribute(V.name,V.value)}),r){var v={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},C,S,E,I,O;Object.keys(v).forEach(function(V){C=V,E=v[V],S=f.querySelectorAll(C+"[id]");for(var F=function(P,H){I=S[P].id,O=I+"-"+s8();var J;Array.prototype.forEach.call(E,function(ce){J=f.querySelectorAll("["+ce+'*="'+I+'"]');for(var pe=0,Ie=J.length;pe<Ie;pe++){var Ze=J[pe].getAttribute(ce);Ze&&!Ze.match(new RegExp('url\\("?#'+I+'"?\\)'))||J[pe].setAttribute(ce,"url(#"+O+")")}});for(var W=f.querySelectorAll("[*|href]"),X=[],U=0,Q=W.length;U<Q;U++){var ne=W[U].getAttributeNS(Up,"href");ne&&ne.toString()==="#"+S[P].id&&X.push(W[U])}for(var oe=0,Z=X.length;oe<Z;oe++)X[oe].setAttributeNS(Up,"href","#"+O);S[P].id=O},_=0,G=S.length;_<G;_++)F(_)})}f.removeAttribute("xmlns:a");for(var M=f.querySelectorAll("script"),w=[],N,R,L=0,A=M.length;L<A;L++)R=M[L].getAttribute("type"),(!R||R==="application/ecmascript"||R==="application/javascript"||R==="text/javascript")&&(N=M[L].innerText||M[L].textContent,N&&w.push(N),f.removeChild(M[L]));if(w.length>0&&(n==="always"||n==="once"&&!U_[l])){for(var j=0,D=w.length;j<D;j++)new Function(w[j])(window);U_[l]=!0}var z=f.querySelectorAll("style");if(Array.prototype.forEach.call(z,function(V){V.textContent+=""}),f.setAttribute("xmlns",a8),f.setAttribute("xmlns:xlink",Up),s(f),!t.parentNode){kn.splice(kn.indexOf(t),1),t=null,a(new Error("Parent node is null"));return}t.parentNode.replaceChild(f,t),kn.splice(kn.indexOf(t),1),t=null,a(null,f)})},l8=function(t,n){var r=n===void 0?{}:n,o=r.afterAll,i=o===void 0?function(){}:o,s=r.afterEach,a=s===void 0?function(){}:s,l=r.beforeEach,u=l===void 0?function(){}:l,c=r.cacheRequests,f=c===void 0?!0:c,d=r.evalScripts,p=d===void 0?"never":d,g=r.httpRequestWithCredentials,h=g===void 0?!1:g,y=r.renumerateIRIElements,m=y===void 0?!0:y;if(t&&"length"in t)for(var x=0,v=0,C=t.length;v<C;v++)Z_(t[v],p,m,f,h,u,function(S,E){a(S,E),t&&"length"in t&&t.length===++x&&i(x)});else t?Z_(t,p,m,f,h,u,function(S,E){a(S,E),i(1),t=null}):i(0)},u8=function(t){var n=(t==null?void 0:t.ownerDocument)||document;return n.defaultView||window},c8=function(t,n){for(var r in t)if(!(r in n))return!0;for(var o in n)if(t[o]!==n[o])return!0;return!1},f8=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],lu="http://www.w3.org/2000/svg",J_="http://www.w3.org/1999/xlink",Zp=function(e){function t(){for(var r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=e.call.apply(e,[this].concat(i))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(a){r.reactWrapper=a},r}D_(t,e);var n=t.prototype;return n.renderSVG=function(){var o=this;if(this.reactWrapper instanceof u8(this.reactWrapper).Node){var i=this.props,s=i.desc,a=i.evalScripts,l=i.httpRequestWithCredentials,u=i.renumerateIRIElements,c=i.src,f=i.title,d=i.useRequestCache,p=this.props.onError,g=this.props.beforeInjection,h=this.props.afterInjection,y=this.props.wrapper,m,x;y==="svg"?(m=document.createElementNS(lu,y),m.setAttribute("xmlns",lu),m.setAttribute("xmlns:xlink",J_),x=document.createElementNS(lu,y)):(m=document.createElement(y),x=document.createElement(y)),m.appendChild(x),x.dataset.src=c,this.nonReactWrapper=this.reactWrapper.appendChild(m);var v=function(I){if(o.removeSVG(),!o._isMounted){p(I);return}o.setState(function(){return{hasError:!0,isLoading:!1}},function(){p(I)})},C=function(I,O){if(I){v(I);return}o._isMounted&&o.setState(function(){return{isLoading:!1}},function(){try{h(O)}catch(M){v(M)}})},S=function(I){if(I.setAttribute("role","img"),s){var O=I.querySelector(":scope > desc");O&&I.removeChild(O);var M=document.createElement("desc");M.innerHTML=s,I.prepend(M)}if(f){var w=I.querySelector(":scope > title");w&&I.removeChild(w);var N=document.createElement("title");N.innerHTML=f,I.prepend(N)}try{g(I)}catch(R){v(R)}};l8(x,{afterEach:C,beforeEach:S,cacheRequests:d,evalScripts:a,httpRequestWithCredentials:l,renumerateIRIElements:u})}},n.removeSVG=function(){var o;(o=this.nonReactWrapper)!=null&&o.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(o){var i=this;c8(ue({},o),this.props)&&this.setState(function(){return i.initialState},function(){i.removeSVG(),i.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var o=this.props;o.afterInjection,o.beforeInjection,o.desc,o.evalScripts;var i=o.fallback;o.httpRequestWithCredentials;var s=o.loading;o.renumerateIRIElements,o.src,o.title,o.useRequestCache;var a=o.wrapper,l=$p(o,f8),u=a;return k.createElement(u,ue({},l,{ref:this.refCallback},a==="svg"?{xmlns:lu,xmlnsXlink:J_}:{}),this.state.isLoading&&s&&k.createElement(s,null),this.state.hasError&&i&&k.createElement(i,null))},t}(k.Component);Zp.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},Zp.propTypes={afterInjection:Ke.func,beforeInjection:Ke.func,desc:Ke.string,evalScripts:Ke.oneOf(["always","once","never"]),fallback:Ke.oneOfType([Ke.func,Ke.object,Ke.string]),httpRequestWithCredentials:Ke.bool,loading:Ke.oneOfType([Ke.func,Ke.object,Ke.string]),onError:Ke.func,renumerateIRIElements:Ke.bool,src:Ke.string.isRequired,title:Ke.string,useRequestCache:Ke.bool,wrapper:Ke.oneOf(["div","span","svg"])};const d8=({value:e})=>b.jsx(Zp,{src:`data:image/svg+xml;base64,${btoa(e)}`,style:{maxWidth:"100%",maxHeight:"100%"},beforeInjection:t=>{t.classList.add("svg-class-name"),t.setAttribute("style","max-width: 100%; max-height: 100%;"),t.setAttribute("width","100%"),t.setAttribute("height","100%")}}),q_=({value:e,preValue:t,onLoaded:n})=>{const[r,o]=k.useState(t||e);return k.useEffect(()=>{if(e===t)return;const i=new Image;return i.onload=()=>{n==null||n(),o(e)},i.src=e,()=>{i.onload=null}},[e,t,n]),r===void 0?b.jsx(b.Fragment,{}):typeof r!="string"?(console.error("Base64ImageOutput: value is not a string",r),b.jsx(b.Fragment,{})):b.jsx("img",{src:r,style:{maxWidth:"100%",maxHeight:"100%"}})},K_=({value:e})=>b.jsx(d8,{value:e}),Q_=({value:e})=>{let t="";try{t=JSON.stringify(e)}catch{}return b.jsx("div",{children:b.jsx("pre",{children:t})})},Jp=({value:e})=>{if(typeof e!="string"||e.length%4!==0)return b.jsx("div",{children:e});const t=Math.round(3*e.length/4);return b.jsx("div",{children:b.jsxs("pre",{children:["Bytes(",t,")"]})})},eS=({value:e})=>b.jsx(QX,{tabledata:e||{columns:[],index:[],data:[]}}),uu=({value:e})=>b.jsx(V6,{data:e}),cu=uu,p8={string:Q_,table:eS,image:q_,svg:K_,dict:uu,bytes:Jp};function tS(e,[t,n]){return Math.min(n,Math.max(t,e))}function h8(e){const t=k.useRef({value:e,previous:e});return k.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var nS=["PageUp","PageDown"],rS=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],oS={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},ei="Slider",[qp,g8,m8]=$f(ei),[iS,sq]=ir(ei,[m8]),[y8,fu]=iS(ei),sS=k.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:s="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[r],value:c,onValueChange:f=()=>{},onValueCommit:d=()=>{},inverted:p=!1,form:g,...h}=e,y=k.useRef(new Set),m=k.useRef(0),v=s==="horizontal"?b8:v8,[C=[],S]=yo({prop:c,defaultProp:u,onChange:N=>{var L;(L=[...y.current][m.current])==null||L.focus(),f(N)}}),E=k.useRef(C);function I(N){const R=S8(C,N);w(N,R)}function O(N){w(N,m.current)}function M(){const N=E.current[m.current];C[m.current]!==N&&d(C)}function w(N,R,{commit:L}={commit:!1}){const A=A8(i),j=T8(Math.round((N-r)/i)*i+r,A),D=tS(j,[r,o]);S((z=[])=>{const V=C8(z,D,R);if(k8(V,l*i)){m.current=V.indexOf(D);const F=String(V)!==String(z);return F&&L&&d(V),F?V:z}else return z})}return b.jsx(y8,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:o,valueIndexToChangeRef:m,thumbs:y.current,values:C,orientation:s,form:g,children:b.jsx(qp.Provider,{scope:e.__scopeSlider,children:b.jsx(qp.Slot,{scope:e.__scopeSlider,children:b.jsx(v,{"aria-disabled":a,"data-disabled":a?"":void 0,...h,ref:t,onPointerDown:he(h.onPointerDown,()=>{a||(E.current=C)}),min:r,max:o,inverted:p,onSlideStart:a?void 0:I,onSlideMove:a?void 0:O,onSlideEnd:a?void 0:M,onHomeKeyDown:()=>!a&&w(r,0,{commit:!0}),onEndKeyDown:()=>!a&&w(o,C.length-1,{commit:!0}),onStepKeyDown:({event:N,direction:R})=>{if(!a){const j=nS.includes(N.key)||N.shiftKey&&rS.includes(N.key)?10:1,D=m.current,z=C[D],V=i*j*R;w(z+V,D,{commit:!0})}}})})})})});sS.displayName=ei;var[aS,lS]=iS(ei,{startEdge:"left",endEdge:"right",size:"width",direction:1}),b8=k.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:s,onSlideMove:a,onSlideEnd:l,onStepKeyDown:u,...c}=e,[f,d]=k.useState(null),p=Ge(t,v=>d(v)),g=k.useRef(void 0),h=Hf(o),y=h==="ltr",m=y&&!i||!y&&i;function x(v){const C=g.current||f.getBoundingClientRect(),S=[0,C.width],I=eh(S,m?[n,r]:[r,n]);return g.current=C,I(v-C.left)}return b.jsx(aS,{scope:e.__scopeSlider,startEdge:m?"left":"right",endEdge:m?"right":"left",direction:m?1:-1,size:"width",children:b.jsx(uS,{dir:h,"data-orientation":"horizontal",...c,ref:p,style:{...c.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:v=>{const C=x(v.clientX);s==null||s(C)},onSlideMove:v=>{const C=x(v.clientX);a==null||a(C)},onSlideEnd:()=>{g.current=void 0,l==null||l()},onStepKeyDown:v=>{const S=oS[m?"from-left":"from-right"].includes(v.key);u==null||u({event:v,direction:S?-1:1})}})})}),v8=k.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:s,onSlideEnd:a,onStepKeyDown:l,...u}=e,c=k.useRef(null),f=Ge(t,c),d=k.useRef(void 0),p=!o;function g(h){const y=d.current||c.current.getBoundingClientRect(),m=[0,y.height],v=eh(m,p?[r,n]:[n,r]);return d.current=y,v(h-y.top)}return b.jsx(aS,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:b.jsx(uS,{"data-orientation":"vertical",...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:h=>{const y=g(h.clientY);i==null||i(y)},onSlideMove:h=>{const y=g(h.clientY);s==null||s(y)},onSlideEnd:()=>{d.current=void 0,a==null||a()},onStepKeyDown:h=>{const m=oS[p?"from-bottom":"from-top"].includes(h.key);l==null||l({event:h,direction:m?-1:1})}})})}),uS=k.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:s,onEndKeyDown:a,onStepKeyDown:l,...u}=e,c=fu(ei,n);return b.jsx(Fe.span,{...u,ref:t,onKeyDown:he(e.onKeyDown,f=>{f.key==="Home"?(s(f),f.preventDefault()):f.key==="End"?(a(f),f.preventDefault()):nS.concat(rS).includes(f.key)&&(l(f),f.preventDefault())}),onPointerDown:he(e.onPointerDown,f=>{const d=f.target;d.setPointerCapture(f.pointerId),f.preventDefault(),c.thumbs.has(d)?d.focus():r(f)}),onPointerMove:he(e.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&o(f)}),onPointerUp:he(e.onPointerUp,f=>{const d=f.target;d.hasPointerCapture(f.pointerId)&&(d.releasePointerCapture(f.pointerId),i(f))})})}),cS="SliderTrack",fS=k.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=fu(cS,n);return b.jsx(Fe.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});fS.displayName=cS;var Kp="SliderRange",dS=k.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=fu(Kp,n),i=lS(Kp,n),s=k.useRef(null),a=Ge(t,s),l=o.values.length,u=o.values.map(d=>hS(d,o.min,o.max)),c=l>1?Math.min(...u):0,f=100-Math.max(...u);return b.jsx(Fe.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:a,style:{...e.style,[i.startEdge]:c+"%",[i.endEdge]:f+"%"}})});dS.displayName=Kp;var Qp="SliderThumb",pS=k.forwardRef((e,t)=>{const n=g8(e.__scopeSlider),[r,o]=k.useState(null),i=Ge(t,a=>o(a)),s=k.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return b.jsx(x8,{...e,ref:i,index:s})}),x8=k.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...i}=e,s=fu(Qp,n),a=lS(Qp,n),[l,u]=k.useState(null),c=Ge(t,x=>u(x)),f=l?s.form||!!l.closest("form"):!0,d=Uv(l),p=s.values[r],g=p===void 0?0:hS(p,s.min,s.max),h=_8(r,s.values.length),y=d==null?void 0:d[a.size],m=y?E8(y,g,a.direction):0;return k.useEffect(()=>{if(l)return s.thumbs.add(l),()=>{s.thumbs.delete(l)}},[l,s.thumbs]),b.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${g}% + ${m}px)`},children:[b.jsx(qp.ItemSlot,{scope:e.__scopeSlider,children:b.jsx(Fe.span,{role:"slider","aria-label":e["aria-label"]||h,"aria-valuemin":s.min,"aria-valuenow":p,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0,...i,ref:c,style:p===void 0?{display:"none"}:e.style,onFocus:he(e.onFocus,()=>{s.valueIndexToChangeRef.current=r})})}),f&&b.jsx(w8,{name:o??(s.name?s.name+(s.values.length>1?"[]":""):void 0),form:s.form,value:p},r)]})});pS.displayName=Qp;var w8=e=>{const{value:t,...n}=e,r=k.useRef(null),o=h8(t);return k.useEffect(()=>{const i=r.current,s=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(s,"value").set;if(o!==t&&l){const u=new Event("input",{bubbles:!0});l.call(i,t),i.dispatchEvent(u)}},[o,t]),b.jsx("input",{style:{display:"none"},...n,ref:r,defaultValue:t})};function C8(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,i)=>o-i)}function hS(e,t,n){const i=100/(n-t)*(e-t);return tS(i,[0,100])}function _8(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function S8(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function E8(e,t,n){const r=e/2,i=eh([0,50],[0,r]);return(r-i(t)*n)*n}function I8(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function k8(e,t){if(t>0){const n=I8(e);return Math.min(...n)>=t}return!0}function eh(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function A8(e){return(String(e).split(".")[1]||"").length}function T8(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var N8=sS,P8=fS,O8=dS,R8=pS;const Cs={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},gS={};for(const e of Object.keys(Cs))gS[Cs[e]]=e;const ie={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},Un=(6/29)**3;for(const e of Object.keys(ie)){if(!("channels"in ie[e]))throw new Error("missing channels property: "+e);if(!("labels"in ie[e]))throw new Error("missing channel labels property: "+e);if(ie[e].labels.length!==ie[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=ie[e];delete ie[e].channels,delete ie[e].labels,Object.defineProperty(ie[e],"channels",{value:t}),Object.defineProperty(ie[e],"labels",{value:n})}ie.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=i-o;let a,l;switch(i){case o:{a=0;break}case t:{a=(n-r)/s;break}case n:{a=2+(r-t)/s;break}case r:{a=4+(t-n)/s;break}}a=Math.min(a*60,360),a<0&&(a+=360);const u=(o+i)/2;return i===o?l=0:u<=.5?l=s/(i+o):l=s/(2-i-o),[a,l*100,u*100]},ie.rgb.hsv=function(e){let t,n,r,o,i;const s=e[0]/255,a=e[1]/255,l=e[2]/255,u=Math.max(s,a,l),c=u-Math.min(s,a,l),f=function(d){return(u-d)/6/c+1/2};if(c===0)o=0,i=0;else{switch(i=c/u,t=f(s),n=f(a),r=f(l),u){case s:{o=r-n;break}case a:{o=1/3+t-r;break}case l:{o=2/3+n-t;break}}o<0?o+=1:o>1&&(o-=1)}return[o*360,i*100,u*100]},ie.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=ie.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,i*100,r*100]},ie.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),i=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,a=(1-r-o)/(1-o)||0;return[i*100,s*100,a*100,o*100]};function M8(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}ie.rgb.keyword=function(e){const t=gS[e];if(t)return t;let n=Number.POSITIVE_INFINITY,r;for(const o of Object.keys(Cs)){const i=Cs[o],s=M8(e,i);s<n&&(n=s,r=o)}return r},ie.keyword.rgb=function(e){return Cs[e]},ie.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124564+n*.3575761+r*.1804375,i=t*.2126729+n*.7151522+r*.072175,s=t*.0193339+n*.119192+r*.9503041;return[o*100,i*100,s*100]},ie.rgb.lab=function(e){const t=ie.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>Un?n**(1/3):7.787*n+16/116,r=r>Un?r**(1/3):7.787*r+16/116,o=o>Un?o**(1/3):7.787*o+16/116;const i=116*r-16,s=500*(n-r),a=200*(r-o);return[i,s,a]},ie.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,i;if(n===0)return i=r*255,[i,i,i];const s=r<.5?r*(1+n):r+n-r*n,a=2*r-s,l=[0,0,0];for(let u=0;u<3;u++)o=t+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?i=a+(s-a)*6*o:2*o<1?i=s:3*o<2?i=a+(s-a)*(2/3-o)*6:i=a,l[u]=i*255;return l},ie.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const i=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i;const s=(r+n)/2,a=r===0?2*o/(i+o):2*n/(r+n);return[t,a*100,s*100]},ie.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,l,s];case 1:return[a,r,s];case 2:return[s,r,l];case 3:return[s,a,r];case 4:return[l,s,r];case 5:return[r,s,a]}},ie.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let i,s;s=(2-n)*r;const a=(2-n)*o;return i=n*o,i/=a<=1?a:2-a,i=i||0,s/=2,[t,i*100,s*100]},ie.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let i;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),a=1-r;i=6*t-s,(s&1)!==0&&(i=1-i);const l=n+i*(a-n);let u,c,f;switch(s){default:case 6:case 0:{u=a,c=l,f=n;break}case 1:{u=l,c=a,f=n;break}case 2:{u=n,c=a,f=l;break}case 3:{u=n,c=l,f=a;break}case 4:{u=l,c=n,f=a;break}case 5:{u=a,c=n,f=l;break}}return[u*255,c*255,f*255]},ie.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,i=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),a=1-Math.min(1,r*(1-o)+o);return[i*255,s*255,a*255]},ie.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,i,s;return o=t*3.2404542+n*-1.5371385+r*-.4985314,i=t*-.969266+n*1.8760108+r*.041556,s=t*.0556434+n*-.2040259+r*1.0572252,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[o*255,i*255,s*255]},ie.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>Un?t**(1/3):7.787*t+16/116,n=n>Un?n**(1/3):7.787*n+16/116,r=r>Un?r**(1/3):7.787*r+16/116;const o=116*n-16,i=500*(t-n),s=200*(n-r);return[o,i,s]},ie.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,i,s;i=(t+16)/116,o=n/500+i,s=i-r/200;const a=i**3,l=o**3,u=s**3;return i=a>Un?a:(i-16/116)/7.787,o=l>Un?l:(o-16/116)/7.787,s=u>Un?u:(s-16/116)/7.787,o*=95.047,i*=100,s*=108.883,[o,i,s]},ie.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]},ie.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,i=n*Math.cos(o),s=n*Math.sin(o);return[t,i,s]},ie.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let i=t===null?ie.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return i===2&&(s+=60),s},ie.hsv.ansi16=function(e){return ie.rgb.ansi16(ie.hsv.rgb(e),e[2])},ie.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t>>4===n>>4&&n>>4===r>>4?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},ie.ansi16.rgb=function(e){e=e[0];let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(Math.trunc(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,i=(t>>2&1)*n*255;return[r,o,i]},ie.ansi256.rgb=function(e){if(e=e[0],e>=232){const i=(e-232)*10+8;return[i,i,i]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]},ie.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".slice(n.length)+n},ie.hex.rgb=function(e){const t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=[...n].map(a=>a+a).join(""));const r=Number.parseInt(n,16),o=r>>16&255,i=r>>8&255,s=r&255;return[o,i,s]},ie.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),s=o-i;let a;const l=s<1?i/(1-s):0;return s<=0?a=0:o===t?a=(n-r)/s%6:o===n?a=2+(r-t)/s:a=4+(t-n)/s,a/=6,a%=1,[a*360,s*100,l*100]},ie.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]},ie.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]},ie.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],i=t%1*6,s=i%1,a=1-s;let l=0;switch(Math.floor(i)){case 0:{o[0]=1,o[1]=s,o[2]=0;break}case 1:{o[0]=a,o[1]=1,o[2]=0;break}case 2:{o[0]=0,o[1]=1,o[2]=s;break}case 3:{o[0]=0,o[1]=a,o[2]=1;break}case 4:{o[0]=s,o[1]=0,o[2]=1;break}default:o[0]=1,o[1]=0,o[2]=a}return l=(1-n)*r,[(n*o[0]+l)*255,(n*o[1]+l)*255,(n*o[2]+l)*255]},ie.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]},ie.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]},ie.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]},ie.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let i=0;return o<1&&(i=(r-o)/(1-o)),[e[0],o*100,i*100]},ie.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},ie.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},ie.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},ie.gray.hsl=function(e){return[0,0,e[0]]},ie.gray.hsv=ie.gray.hsl,ie.gray.hwb=function(e){return[0,100,e[0]]},ie.gray.cmyk=function(e){return[0,0,0,e[0]]},ie.gray.lab=function(e){return[e[0],0,0]},ie.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(r.length)+r},ie.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};function D8(){const e={},t=Object.keys(ie);for(let{length:n}=t,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function F8(e){const t=D8(),n=[e];for(t[e].distance=0;n.length>0;){const r=n.pop(),o=Object.keys(ie[r]);for(let{length:i}=o,s=0;s<i;s++){const a=o[s],l=t[a];l.distance===-1&&(l.distance=t[r].distance+1,l.parent=r,n.unshift(a))}}return t}function j8(e,t){return function(n){return t(e(n))}}function L8(e,t){const n=[t[e].parent,e];let r=ie[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),r=j8(ie[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}function B8(e){const t=F8(e),n={},r=Object.keys(t);for(let{length:o}=r,i=0;i<o;i++){const s=r[i];t[s].parent!==null&&(n[s]=L8(s,t))}return n}const Xr={},z8=Object.keys(ie);function V8(e){const t=function(...n){const r=n[0];return r==null?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function G8(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let{length:i}=o,s=0;s<i;s++)o[s]=Math.round(o[s]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}for(const e of z8){Xr[e]={},Object.defineProperty(Xr[e],"channels",{value:ie[e].channels}),Object.defineProperty(Xr[e],"labels",{value:ie[e].labels});const t=B8(e),n=Object.keys(t);for(const r of n){const o=t[r];Xr[e][r]=G8(o),Xr[e][r].raw=V8(o)}}const $8=Object.freeze(Object.defineProperty({__proto__:null,default:Xr},Symbol.toStringTag,{value:"Module"})),ct=(e,t)=>{const n=Array.isArray(t)?t:[t];if(n[0]===void 0||n[0]===null)return ct("rgb",[0,0,0]);const r=Xr[e];if(!r)throw new Error(`Unsupported color type: ${e} allowed are ${Object.keys($8).join(", ")}`);r[e]=()=>n;const o=s=>{const a=s(...n);return Array.isArray(a)?a[0]!=null:a};if(!o(r.rgb)||!o(r.hsl))return ct("rgb",[0,0,0]);const i={};return Object.keys(r).forEach(s=>{const a=r[s];typeof a=="function"&&(i[s]=()=>s===e?n:a(...n))}),i},H8=({onChange:e,colorconverter:t,allow_null:n=!1})=>{if(t===null&&!n)throw new Error("Color converter is null");const[r,o]=T.useState(t),[i,s]=T.useState([0,0,0]),[a,l]=T.useState([0,0,0]),[u,c]=T.useState([0,0,0]),[f,d]=T.useState("000");T.useEffect(()=>{if(!r){if(!n)throw new Error("Color converter is null");l([0,0,0]),s([0,0,0]),c([0,0,0]),d("");return}s(r.hsl()),l(r.rgb()),c(r.hsv()),d(r.hex())},[r]);const p={backgroundColor:`hsl(${i[0]}, ${i[1]}%, ${i[2]}%)`,padding:"10px",margin:"10px 0"};return b.jsxs("div",{style:{backgroundColor:"white"},children:[b.jsx("div",{style:p,children:"Color Preview"}),b.jsxs("div",{className:"colorspace",children:[b.jsx("div",{className:"colorspace_title",children:"RGB"}),b.jsx("div",{}),b.jsx("label",{children:"Red"}),b.jsx("input",{type:"range",min:"0",max:"255",value:a[0],onChange:g=>{const h=[parseInt(g.target.value),a[1],a[2]],y=ct("rgb",h);o(y),e(y)},style:{background:"linear-gradient(to right, #000, #f00)"}}),b.jsx("label",{children:"Green"}),b.jsx("input",{type:"range",min:"0",max:"255",value:a[1],onChange:g=>{const h=[a[0],parseInt(g.target.value),a[2]],y=ct("rgb",h);o(y),e(y)},style:{background:"linear-gradient(to right, #000, #0f0)"}}),b.jsx("label",{children:"Blue"}),b.jsx("input",{type:"range",min:"0",max:"255",value:a[2],onChange:g=>{const h=[a[0],a[1],parseInt(g.target.value)],y=ct("rgb",h);o(y),e(y)},style:{background:"linear-gradient(to right, #000, #00f)"}})]}),b.jsxs("div",{className:"colorspace",children:[b.jsx("div",{className:"colorspace_title",children:"HSL"}),b.jsx("div",{}),b.jsx("label",{children:"Hue"}),b.jsx("input",{type:"range",min:"0",max:"360",value:i[0],onChange:g=>{const h=[parseInt(g.target.value),i[1],i[2]],y=ct("hsl",h);o(y),e(y)},style:{background:"linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)"}}),b.jsx("label",{children:"Saturation"}),b.jsx("input",{type:"range",min:"0",max:"100",value:i[1],onChange:g=>{const h=[i[0],parseInt(g.target.value),i[2]],y=ct("hsl",h);o(y),e(y)},style:{background:`linear-gradient(to right, #fff, hsl(${i[0]}, 100%, 50%))`}}),b.jsx("label",{children:"Lightness"}),b.jsx("input",{type:"range",min:"0",max:"100",value:i[2],onChange:g=>{const h=[i[0],i[1],parseInt(g.target.value)],y=ct("hsl",h);o(y),e(y)},style:{background:`linear-gradient(to right, #000, hsl(${i[0]}, 100%, 50%), #fff)`}})]}),b.jsxs("div",{className:"colorspace",children:[b.jsx("div",{className:"colorspace_title",children:"HSV"}),b.jsx("div",{}),b.jsx("label",{children:"Hue"}),b.jsx("input",{type:"range",min:"0",max:"360",value:u[0],onChange:g=>{const h=[parseInt(g.target.value),u[1],u[2]],y=ct("hsv",h);o(y),e(y)},style:{background:"linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)"}}),b.jsx("label",{children:"Saturation"}),b.jsx("input",{type:"range",min:"0",max:"100",value:u[1],onChange:g=>{const h=[u[0],parseInt(g.target.value),u[2]],y=ct("hsv",h);o(y),e(y)},style:{background:`linear-gradient(to right, #fff, hsl(${i[0]}, 100%, 50%))`}}),b.jsx("label",{children:"Value"}),b.jsx("input",{type:"range",min:"0",max:"100",value:u[2],onChange:g=>{const h=[u[0],u[1],parseInt(g.target.value)],y=ct("hsv",h);o(y),e(y)},style:{background:`linear-gradient(to right, #000, hsl(${i[0]}, 100%, 50%))`}})]}),b.jsxs("div",{className:"colorspace",children:[b.jsx("div",{className:"colorspace_title",children:"HEX"}),b.jsx("div",{}),b.jsx("input",{type:"text",value:f,onChange:g=>{const h=g.target.value===""?null:ct("hex",[g.target.value]);o(h),e(h)}})]})]})},W8=({inicolordata:e,inicolorspace:t,allow_null:n=!1,delay:r=1e3,onChange:o})=>{const i=e!==void 0?e:[0,0,0],s=e===void 0?"rgb":t||"hex",a=Array.isArray(i)?i:[i],l=T.useMemo(()=>{let y=ct(s,a);return y.rgb()===void 0&&(y=ct("rgb",[0,0,0])),y},[s,a]),[u,c]=T.useState(l);T.useEffect(()=>{const y=e!==void 0?e:[0,0,0],m=e===void 0?"rgb":t||"hex",x=Array.isArray(y)?y:[y];let v=ct(m,x);v.rgb()===void 0&&(v=ct("rgb",[0,0,0])),c(v)},[JSON.stringify(e),t]);const f=T.useContext(xe),d=f.local_state(()=>f.reactflowRef),p=T.useRef(null),g=T.useCallback(y=>{if(y===null&&!n)throw new Error("Color is null");y!==null&&c(y),p.current&&clearTimeout(p.current),o&&(p.current=setTimeout(()=>{o(y),p.current=null},r))},[n,o,r]);T.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const h=T.useMemo(()=>({background:"#"+u.hex(),borderRadius:"0.3rem",width:"2rem",height:"1rem"}),[u]);return b.jsxs(uC,{children:[b.jsx(cC,{asChild:!0,children:b.jsx("button",{style:h})}),b.jsx(fC,{container:d,children:b.jsx(dC,{side:"left",className:"iotooltipcontent",children:b.jsx(H8,{onChange:g,colorconverter:u,allow_null:n})})})]})};function Yr(e){"@babel/helpers - typeof";return Yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yr(e)}function X8(e,t){if(Yr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mS(e){var t=X8(e,"string");return Yr(t)=="symbol"?t:t+""}function _s(e,t,n){return(t=mS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yS(Object(n),!0).forEach(function(r){_s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y8(e){if(Array.isArray(e))return e}function U8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(c){u=!0,o=c}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}function th(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bS(e,t){if(e){if(typeof e=="string")return th(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?th(e,t):void 0}}function Z8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
859
+ */var $_;function e8(){if($_)return au;$_=1;var e=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,t=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,n=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/\\([\u000b\u0020-\u00ff])/g,o=/([\\"])/g,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;au.format=s,au.parse=a;function s(f){if(!f||typeof f!="object")throw new TypeError("argument obj is required");var d=f.parameters,p=f.type;if(!p||!i.test(p))throw new TypeError("invalid type");var g=p;if(d&&typeof d=="object")for(var h,y=Object.keys(d).sort(),m=0;m<y.length;m++){if(h=y[m],!n.test(h))throw new TypeError("invalid parameter name");g+="; "+h+"="+u(d[h])}return g}function a(f){if(!f)throw new TypeError("argument string is required");var d=typeof f=="object"?l(f):f;if(typeof d!="string")throw new TypeError("argument string is required to be a string");var p=d.indexOf(";"),g=p!==-1?d.slice(0,p).trim():d.trim();if(!i.test(g))throw new TypeError("invalid media type");var h=new c(g.toLowerCase());if(p!==-1){var y,m,x;for(e.lastIndex=p;m=e.exec(d);){if(m.index!==p)throw new TypeError("invalid parameter format");p+=m[0].length,y=m[1].toLowerCase(),x=m[2],x.charCodeAt(0)===34&&(x=x.slice(1,-1),x.indexOf("\\")!==-1&&(x=x.replace(r,"$1"))),h.parameters[y]=x}if(p!==d.length)throw new TypeError("invalid parameter format")}return h}function l(f){var d;if(typeof f.getHeader=="function"?d=f.getHeader("content-type"):typeof f.headers=="object"&&(d=f.headers&&f.headers["content-type"]),typeof d!="string")throw new TypeError("content-type header is missing from object");return d}function u(f){var d=String(f);if(n.test(d))return d;if(d.length>0&&!t.test(d))throw new TypeError("invalid parameter value");return'"'+d.replace(o,"\\$1")+'"'}function c(f){this.parameters=Object.create(null),this.type=f}return au}var t8=e8(),Qo=new Map,H_=function(t){return t.cloneNode(!0)},W_=function(){return window.location.protocol==="file:"},X_=function(t,n,r){var o=new XMLHttpRequest;o.onreadystatechange=function(){try{if(!/\.svg/i.test(t)&&o.readyState===2){var i=o.getResponseHeader("Content-Type");if(!i)throw new Error("Content type not found");var s=t8.parse(i).type;if(!(s==="image/svg+xml"||s==="text/plain"))throw new Error("Invalid content type: ".concat(s))}if(o.readyState===4){if(o.status===404||o.responseXML===null)throw new Error(W_()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+t);if(o.status===200||W_()&&o.status===0)r(null,o);else throw new Error("There was a problem injecting the SVG: "+o.status+" "+o.statusText)}}catch(a){if(o.abort(),a instanceof Error)r(a,o);else throw a}},o.open("GET",t),o.withCredentials=n,o.overrideMimeType&&o.overrideMimeType("text/xml"),o.send()},wr={},Y_=function(t,n){wr[t]=wr[t]||[],wr[t].push(n)},n8=function(t){for(var n=function(s,a){setTimeout(function(){if(Array.isArray(wr[t])){var l=Qo.get(t),u=wr[t][s];l instanceof SVGSVGElement&&u(null,H_(l)),l instanceof Error&&u(l),s===wr[t].length-1&&delete wr[t]}},0)},r=0,o=wr[t].length;r<o;r++)n(r)},r8=function(t,n,r){if(Qo.has(t)){var o=Qo.get(t);if(o===void 0){Y_(t,r);return}if(o instanceof SVGSVGElement){r(null,H_(o));return}}Qo.set(t,void 0),Y_(t,r),X_(t,n,function(i,s){var a;i?Qo.set(t,i):((a=s.responseXML)===null||a===void 0?void 0:a.documentElement)instanceof SVGSVGElement&&Qo.set(t,s.responseXML.documentElement),n8(t)})},o8=function(t,n,r){X_(t,n,function(o,i){var s;o?r(o):((s=i.responseXML)===null||s===void 0?void 0:s.documentElement)instanceof SVGSVGElement&&r(null,i.responseXML.documentElement)})},i8=0,s8=function(){return++i8},kn=[],U_={},a8="http://www.w3.org/2000/svg",Up="http://www.w3.org/1999/xlink",Z_=function(t,n,r,o,i,s,a){var l=t.getAttribute("data-src")||t.getAttribute("src");if(!l){a(new Error("Invalid data-src or src attribute"));return}if(kn.indexOf(t)!==-1){kn.splice(kn.indexOf(t),1),t=null;return}kn.push(t),t.setAttribute("src","");var u=o?r8:o8;u(l,i,function(c,f){if(!f){kn.splice(kn.indexOf(t),1),t=null,a(c);return}var d=t.getAttribute("id");d&&f.setAttribute("id",d);var p=t.getAttribute("title");p&&f.setAttribute("title",p);var g=t.getAttribute("width");g&&f.setAttribute("width",g);var h=t.getAttribute("height");h&&f.setAttribute("height",h);var y=Array.from(new Set(Aa(Aa(Aa([],(f.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(t.getAttribute("class")||"").split(" "),!0))).join(" ").trim();f.setAttribute("class",y);var m=t.getAttribute("style");m&&f.setAttribute("style",m),f.setAttribute("data-src",l);var x=[].filter.call(t.attributes,function(V){return/^data-\w[\w-]*$/.test(V.name)});if(Array.prototype.forEach.call(x,function(V){V.name&&V.value&&f.setAttribute(V.name,V.value)}),r){var v={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},C,S,E,I,O;Object.keys(v).forEach(function(V){C=V,E=v[V],S=f.querySelectorAll(C+"[id]");for(var F=function(P,H){I=S[P].id,O=I+"-"+s8();var J;Array.prototype.forEach.call(E,function(ce){J=f.querySelectorAll("["+ce+'*="'+I+'"]');for(var pe=0,Ie=J.length;pe<Ie;pe++){var Ze=J[pe].getAttribute(ce);Ze&&!Ze.match(new RegExp('url\\("?#'+I+'"?\\)'))||J[pe].setAttribute(ce,"url(#"+O+")")}});for(var W=f.querySelectorAll("[*|href]"),X=[],U=0,Q=W.length;U<Q;U++){var ne=W[U].getAttributeNS(Up,"href");ne&&ne.toString()==="#"+S[P].id&&X.push(W[U])}for(var oe=0,Z=X.length;oe<Z;oe++)X[oe].setAttributeNS(Up,"href","#"+O);S[P].id=O},_=0,G=S.length;_<G;_++)F(_)})}f.removeAttribute("xmlns:a");for(var M=f.querySelectorAll("script"),w=[],N,R,L=0,A=M.length;L<A;L++)R=M[L].getAttribute("type"),(!R||R==="application/ecmascript"||R==="application/javascript"||R==="text/javascript")&&(N=M[L].innerText||M[L].textContent,N&&w.push(N),f.removeChild(M[L]));if(w.length>0&&(n==="always"||n==="once"&&!U_[l])){for(var j=0,D=w.length;j<D;j++)new Function(w[j])(window);U_[l]=!0}var z=f.querySelectorAll("style");if(Array.prototype.forEach.call(z,function(V){V.textContent+=""}),f.setAttribute("xmlns",a8),f.setAttribute("xmlns:xlink",Up),s(f),!t.parentNode){kn.splice(kn.indexOf(t),1),t=null,a(new Error("Parent node is null"));return}t.parentNode.replaceChild(f,t),kn.splice(kn.indexOf(t),1),t=null,a(null,f)})},l8=function(t,n){var r=n===void 0?{}:n,o=r.afterAll,i=o===void 0?function(){}:o,s=r.afterEach,a=s===void 0?function(){}:s,l=r.beforeEach,u=l===void 0?function(){}:l,c=r.cacheRequests,f=c===void 0?!0:c,d=r.evalScripts,p=d===void 0?"never":d,g=r.httpRequestWithCredentials,h=g===void 0?!1:g,y=r.renumerateIRIElements,m=y===void 0?!0:y;if(t&&"length"in t)for(var x=0,v=0,C=t.length;v<C;v++)Z_(t[v],p,m,f,h,u,function(S,E){a(S,E),t&&"length"in t&&t.length===++x&&i(x)});else t?Z_(t,p,m,f,h,u,function(S,E){a(S,E),i(1),t=null}):i(0)},u8=function(t){var n=(t==null?void 0:t.ownerDocument)||document;return n.defaultView||window},c8=function(t,n){for(var r in t)if(!(r in n))return!0;for(var o in n)if(t[o]!==n[o])return!0;return!1},f8=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],lu="http://www.w3.org/2000/svg",J_="http://www.w3.org/1999/xlink",Zp=function(e){function t(){for(var r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=e.call.apply(e,[this].concat(i))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(a){r.reactWrapper=a},r}D_(t,e);var n=t.prototype;return n.renderSVG=function(){var o=this;if(this.reactWrapper instanceof u8(this.reactWrapper).Node){var i=this.props,s=i.desc,a=i.evalScripts,l=i.httpRequestWithCredentials,u=i.renumerateIRIElements,c=i.src,f=i.title,d=i.useRequestCache,p=this.props.onError,g=this.props.beforeInjection,h=this.props.afterInjection,y=this.props.wrapper,m,x;y==="svg"?(m=document.createElementNS(lu,y),m.setAttribute("xmlns",lu),m.setAttribute("xmlns:xlink",J_),x=document.createElementNS(lu,y)):(m=document.createElement(y),x=document.createElement(y)),m.appendChild(x),x.dataset.src=c,this.nonReactWrapper=this.reactWrapper.appendChild(m);var v=function(I){if(o.removeSVG(),!o._isMounted){p(I);return}o.setState(function(){return{hasError:!0,isLoading:!1}},function(){p(I)})},C=function(I,O){if(I){v(I);return}o._isMounted&&o.setState(function(){return{isLoading:!1}},function(){try{h(O)}catch(M){v(M)}})},S=function(I){if(I.setAttribute("role","img"),s){var O=I.querySelector(":scope > desc");O&&I.removeChild(O);var M=document.createElement("desc");M.innerHTML=s,I.prepend(M)}if(f){var w=I.querySelector(":scope > title");w&&I.removeChild(w);var N=document.createElement("title");N.innerHTML=f,I.prepend(N)}try{g(I)}catch(R){v(R)}};l8(x,{afterEach:C,beforeEach:S,cacheRequests:d,evalScripts:a,httpRequestWithCredentials:l,renumerateIRIElements:u})}},n.removeSVG=function(){var o;(o=this.nonReactWrapper)!=null&&o.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(o){var i=this;c8(ue({},o),this.props)&&this.setState(function(){return i.initialState},function(){i.removeSVG(),i.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var o=this.props;o.afterInjection,o.beforeInjection,o.desc,o.evalScripts;var i=o.fallback;o.httpRequestWithCredentials;var s=o.loading;o.renumerateIRIElements,o.src,o.title,o.useRequestCache;var a=o.wrapper,l=$p(o,f8),u=a;return k.createElement(u,ue({},l,{ref:this.refCallback},a==="svg"?{xmlns:lu,xmlnsXlink:J_}:{}),this.state.isLoading&&s&&k.createElement(s,null),this.state.hasError&&i&&k.createElement(i,null))},t}(k.Component);Zp.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},Zp.propTypes={afterInjection:Ke.func,beforeInjection:Ke.func,desc:Ke.string,evalScripts:Ke.oneOf(["always","once","never"]),fallback:Ke.oneOfType([Ke.func,Ke.object,Ke.string]),httpRequestWithCredentials:Ke.bool,loading:Ke.oneOfType([Ke.func,Ke.object,Ke.string]),onError:Ke.func,renumerateIRIElements:Ke.bool,src:Ke.string.isRequired,title:Ke.string,useRequestCache:Ke.bool,wrapper:Ke.oneOf(["div","span","svg"])};const d8=({value:e})=>b.jsx(Zp,{src:`data:image/svg+xml;base64,${btoa(e)}`,style:{maxWidth:"100%",maxHeight:"100%"},beforeInjection:t=>{t.classList.add("svg-class-name"),t.setAttribute("style","max-width: 100%; max-height: 100%;"),t.setAttribute("width","100%"),t.setAttribute("height","100%")}}),q_=({value:e,preValue:t,onLoaded:n})=>{const[r,o]=k.useState(t||e);if(k.useEffect(()=>{if(e===t)return;const a=new Image;return a.onload=()=>{n==null||n(),o(e)},a.src=e,()=>{a.onload=null}},[e,t,n]),r===void 0)return b.jsx(b.Fragment,{});if(typeof r!="string")return console.error("ImageRenderer: value is not a string",r),b.jsx(b.Fragment,{});const i=r.startsWith("data:")||r.startsWith("blob:");let s=r;return i||(s="data:image/jpeg;base64,"+r),b.jsx("img",{src:s,style:{maxWidth:"100%",maxHeight:"100%"}})},K_=({value:e})=>b.jsx(d8,{value:e}),Q_=({value:e})=>{let t="";try{t=JSON.stringify(e)}catch{}return b.jsx("div",{children:b.jsx("pre",{children:t})})},Jp=({value:e})=>{if(typeof e!="string"||e.length%4!==0)return b.jsx("div",{children:e});const t=Math.round(3*e.length/4);return b.jsx("div",{children:b.jsxs("pre",{children:["Bytes(",t,")"]})})},eS=({value:e})=>b.jsx(QX,{tabledata:e||{columns:[],index:[],data:[]}}),uu=({value:e})=>b.jsx(V6,{data:e}),cu=uu,p8={string:Q_,table:eS,image:q_,svg:K_,dict:uu,bytes:Jp};function tS(e,[t,n]){return Math.min(n,Math.max(t,e))}function h8(e){const t=k.useRef({value:e,previous:e});return k.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var nS=["PageUp","PageDown"],rS=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],oS={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},ei="Slider",[qp,g8,m8]=$f(ei),[iS,sq]=ir(ei,[m8]),[y8,fu]=iS(ei),sS=k.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:s="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[r],value:c,onValueChange:f=()=>{},onValueCommit:d=()=>{},inverted:p=!1,form:g,...h}=e,y=k.useRef(new Set),m=k.useRef(0),v=s==="horizontal"?b8:v8,[C=[],S]=yo({prop:c,defaultProp:u,onChange:N=>{var L;(L=[...y.current][m.current])==null||L.focus(),f(N)}}),E=k.useRef(C);function I(N){const R=S8(C,N);w(N,R)}function O(N){w(N,m.current)}function M(){const N=E.current[m.current];C[m.current]!==N&&d(C)}function w(N,R,{commit:L}={commit:!1}){const A=A8(i),j=T8(Math.round((N-r)/i)*i+r,A),D=tS(j,[r,o]);S((z=[])=>{const V=C8(z,D,R);if(k8(V,l*i)){m.current=V.indexOf(D);const F=String(V)!==String(z);return F&&L&&d(V),F?V:z}else return z})}return b.jsx(y8,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:o,valueIndexToChangeRef:m,thumbs:y.current,values:C,orientation:s,form:g,children:b.jsx(qp.Provider,{scope:e.__scopeSlider,children:b.jsx(qp.Slot,{scope:e.__scopeSlider,children:b.jsx(v,{"aria-disabled":a,"data-disabled":a?"":void 0,...h,ref:t,onPointerDown:he(h.onPointerDown,()=>{a||(E.current=C)}),min:r,max:o,inverted:p,onSlideStart:a?void 0:I,onSlideMove:a?void 0:O,onSlideEnd:a?void 0:M,onHomeKeyDown:()=>!a&&w(r,0,{commit:!0}),onEndKeyDown:()=>!a&&w(o,C.length-1,{commit:!0}),onStepKeyDown:({event:N,direction:R})=>{if(!a){const j=nS.includes(N.key)||N.shiftKey&&rS.includes(N.key)?10:1,D=m.current,z=C[D],V=i*j*R;w(z+V,D,{commit:!0})}}})})})})});sS.displayName=ei;var[aS,lS]=iS(ei,{startEdge:"left",endEdge:"right",size:"width",direction:1}),b8=k.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:s,onSlideMove:a,onSlideEnd:l,onStepKeyDown:u,...c}=e,[f,d]=k.useState(null),p=Ge(t,v=>d(v)),g=k.useRef(void 0),h=Hf(o),y=h==="ltr",m=y&&!i||!y&&i;function x(v){const C=g.current||f.getBoundingClientRect(),S=[0,C.width],I=eh(S,m?[n,r]:[r,n]);return g.current=C,I(v-C.left)}return b.jsx(aS,{scope:e.__scopeSlider,startEdge:m?"left":"right",endEdge:m?"right":"left",direction:m?1:-1,size:"width",children:b.jsx(uS,{dir:h,"data-orientation":"horizontal",...c,ref:p,style:{...c.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:v=>{const C=x(v.clientX);s==null||s(C)},onSlideMove:v=>{const C=x(v.clientX);a==null||a(C)},onSlideEnd:()=>{g.current=void 0,l==null||l()},onStepKeyDown:v=>{const S=oS[m?"from-left":"from-right"].includes(v.key);u==null||u({event:v,direction:S?-1:1})}})})}),v8=k.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:s,onSlideEnd:a,onStepKeyDown:l,...u}=e,c=k.useRef(null),f=Ge(t,c),d=k.useRef(void 0),p=!o;function g(h){const y=d.current||c.current.getBoundingClientRect(),m=[0,y.height],v=eh(m,p?[r,n]:[n,r]);return d.current=y,v(h-y.top)}return b.jsx(aS,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:b.jsx(uS,{"data-orientation":"vertical",...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:h=>{const y=g(h.clientY);i==null||i(y)},onSlideMove:h=>{const y=g(h.clientY);s==null||s(y)},onSlideEnd:()=>{d.current=void 0,a==null||a()},onStepKeyDown:h=>{const m=oS[p?"from-bottom":"from-top"].includes(h.key);l==null||l({event:h,direction:m?-1:1})}})})}),uS=k.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:s,onEndKeyDown:a,onStepKeyDown:l,...u}=e,c=fu(ei,n);return b.jsx(Fe.span,{...u,ref:t,onKeyDown:he(e.onKeyDown,f=>{f.key==="Home"?(s(f),f.preventDefault()):f.key==="End"?(a(f),f.preventDefault()):nS.concat(rS).includes(f.key)&&(l(f),f.preventDefault())}),onPointerDown:he(e.onPointerDown,f=>{const d=f.target;d.setPointerCapture(f.pointerId),f.preventDefault(),c.thumbs.has(d)?d.focus():r(f)}),onPointerMove:he(e.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&o(f)}),onPointerUp:he(e.onPointerUp,f=>{const d=f.target;d.hasPointerCapture(f.pointerId)&&(d.releasePointerCapture(f.pointerId),i(f))})})}),cS="SliderTrack",fS=k.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=fu(cS,n);return b.jsx(Fe.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});fS.displayName=cS;var Kp="SliderRange",dS=k.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=fu(Kp,n),i=lS(Kp,n),s=k.useRef(null),a=Ge(t,s),l=o.values.length,u=o.values.map(d=>hS(d,o.min,o.max)),c=l>1?Math.min(...u):0,f=100-Math.max(...u);return b.jsx(Fe.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:a,style:{...e.style,[i.startEdge]:c+"%",[i.endEdge]:f+"%"}})});dS.displayName=Kp;var Qp="SliderThumb",pS=k.forwardRef((e,t)=>{const n=g8(e.__scopeSlider),[r,o]=k.useState(null),i=Ge(t,a=>o(a)),s=k.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return b.jsx(x8,{...e,ref:i,index:s})}),x8=k.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...i}=e,s=fu(Qp,n),a=lS(Qp,n),[l,u]=k.useState(null),c=Ge(t,x=>u(x)),f=l?s.form||!!l.closest("form"):!0,d=Uv(l),p=s.values[r],g=p===void 0?0:hS(p,s.min,s.max),h=_8(r,s.values.length),y=d==null?void 0:d[a.size],m=y?E8(y,g,a.direction):0;return k.useEffect(()=>{if(l)return s.thumbs.add(l),()=>{s.thumbs.delete(l)}},[l,s.thumbs]),b.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${g}% + ${m}px)`},children:[b.jsx(qp.ItemSlot,{scope:e.__scopeSlider,children:b.jsx(Fe.span,{role:"slider","aria-label":e["aria-label"]||h,"aria-valuemin":s.min,"aria-valuenow":p,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0,...i,ref:c,style:p===void 0?{display:"none"}:e.style,onFocus:he(e.onFocus,()=>{s.valueIndexToChangeRef.current=r})})}),f&&b.jsx(w8,{name:o??(s.name?s.name+(s.values.length>1?"[]":""):void 0),form:s.form,value:p},r)]})});pS.displayName=Qp;var w8=e=>{const{value:t,...n}=e,r=k.useRef(null),o=h8(t);return k.useEffect(()=>{const i=r.current,s=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(s,"value").set;if(o!==t&&l){const u=new Event("input",{bubbles:!0});l.call(i,t),i.dispatchEvent(u)}},[o,t]),b.jsx("input",{style:{display:"none"},...n,ref:r,defaultValue:t})};function C8(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,i)=>o-i)}function hS(e,t,n){const i=100/(n-t)*(e-t);return tS(i,[0,100])}function _8(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function S8(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function E8(e,t,n){const r=e/2,i=eh([0,50],[0,r]);return(r-i(t)*n)*n}function I8(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function k8(e,t){if(t>0){const n=I8(e);return Math.min(...n)>=t}return!0}function eh(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function A8(e){return(String(e).split(".")[1]||"").length}function T8(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var N8=sS,P8=fS,O8=dS,R8=pS;const Cs={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},gS={};for(const e of Object.keys(Cs))gS[Cs[e]]=e;const ie={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},Un=(6/29)**3;for(const e of Object.keys(ie)){if(!("channels"in ie[e]))throw new Error("missing channels property: "+e);if(!("labels"in ie[e]))throw new Error("missing channel labels property: "+e);if(ie[e].labels.length!==ie[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=ie[e];delete ie[e].channels,delete ie[e].labels,Object.defineProperty(ie[e],"channels",{value:t}),Object.defineProperty(ie[e],"labels",{value:n})}ie.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=i-o;let a,l;switch(i){case o:{a=0;break}case t:{a=(n-r)/s;break}case n:{a=2+(r-t)/s;break}case r:{a=4+(t-n)/s;break}}a=Math.min(a*60,360),a<0&&(a+=360);const u=(o+i)/2;return i===o?l=0:u<=.5?l=s/(i+o):l=s/(2-i-o),[a,l*100,u*100]},ie.rgb.hsv=function(e){let t,n,r,o,i;const s=e[0]/255,a=e[1]/255,l=e[2]/255,u=Math.max(s,a,l),c=u-Math.min(s,a,l),f=function(d){return(u-d)/6/c+1/2};if(c===0)o=0,i=0;else{switch(i=c/u,t=f(s),n=f(a),r=f(l),u){case s:{o=r-n;break}case a:{o=1/3+t-r;break}case l:{o=2/3+n-t;break}}o<0?o+=1:o>1&&(o-=1)}return[o*360,i*100,u*100]},ie.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=ie.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,i*100,r*100]},ie.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),i=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,a=(1-r-o)/(1-o)||0;return[i*100,s*100,a*100,o*100]};function M8(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}ie.rgb.keyword=function(e){const t=gS[e];if(t)return t;let n=Number.POSITIVE_INFINITY,r;for(const o of Object.keys(Cs)){const i=Cs[o],s=M8(e,i);s<n&&(n=s,r=o)}return r},ie.keyword.rgb=function(e){return Cs[e]},ie.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124564+n*.3575761+r*.1804375,i=t*.2126729+n*.7151522+r*.072175,s=t*.0193339+n*.119192+r*.9503041;return[o*100,i*100,s*100]},ie.rgb.lab=function(e){const t=ie.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>Un?n**(1/3):7.787*n+16/116,r=r>Un?r**(1/3):7.787*r+16/116,o=o>Un?o**(1/3):7.787*o+16/116;const i=116*r-16,s=500*(n-r),a=200*(r-o);return[i,s,a]},ie.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,i;if(n===0)return i=r*255,[i,i,i];const s=r<.5?r*(1+n):r+n-r*n,a=2*r-s,l=[0,0,0];for(let u=0;u<3;u++)o=t+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?i=a+(s-a)*6*o:2*o<1?i=s:3*o<2?i=a+(s-a)*(2/3-o)*6:i=a,l[u]=i*255;return l},ie.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const i=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i;const s=(r+n)/2,a=r===0?2*o/(i+o):2*n/(r+n);return[t,a*100,s*100]},ie.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,l,s];case 1:return[a,r,s];case 2:return[s,r,l];case 3:return[s,a,r];case 4:return[l,s,r];case 5:return[r,s,a]}},ie.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let i,s;s=(2-n)*r;const a=(2-n)*o;return i=n*o,i/=a<=1?a:2-a,i=i||0,s/=2,[t,i*100,s*100]},ie.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let i;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),a=1-r;i=6*t-s,(s&1)!==0&&(i=1-i);const l=n+i*(a-n);let u,c,f;switch(s){default:case 6:case 0:{u=a,c=l,f=n;break}case 1:{u=l,c=a,f=n;break}case 2:{u=n,c=a,f=l;break}case 3:{u=n,c=l,f=a;break}case 4:{u=l,c=n,f=a;break}case 5:{u=a,c=n,f=l;break}}return[u*255,c*255,f*255]},ie.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,i=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),a=1-Math.min(1,r*(1-o)+o);return[i*255,s*255,a*255]},ie.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,i,s;return o=t*3.2404542+n*-1.5371385+r*-.4985314,i=t*-.969266+n*1.8760108+r*.041556,s=t*.0556434+n*-.2040259+r*1.0572252,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[o*255,i*255,s*255]},ie.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>Un?t**(1/3):7.787*t+16/116,n=n>Un?n**(1/3):7.787*n+16/116,r=r>Un?r**(1/3):7.787*r+16/116;const o=116*n-16,i=500*(t-n),s=200*(n-r);return[o,i,s]},ie.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,i,s;i=(t+16)/116,o=n/500+i,s=i-r/200;const a=i**3,l=o**3,u=s**3;return i=a>Un?a:(i-16/116)/7.787,o=l>Un?l:(o-16/116)/7.787,s=u>Un?u:(s-16/116)/7.787,o*=95.047,i*=100,s*=108.883,[o,i,s]},ie.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]},ie.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,i=n*Math.cos(o),s=n*Math.sin(o);return[t,i,s]},ie.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let i=t===null?ie.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return i===2&&(s+=60),s},ie.hsv.ansi16=function(e){return ie.rgb.ansi16(ie.hsv.rgb(e),e[2])},ie.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t>>4===n>>4&&n>>4===r>>4?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},ie.ansi16.rgb=function(e){e=e[0];let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(Math.trunc(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,i=(t>>2&1)*n*255;return[r,o,i]},ie.ansi256.rgb=function(e){if(e=e[0],e>=232){const i=(e-232)*10+8;return[i,i,i]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]},ie.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".slice(n.length)+n},ie.hex.rgb=function(e){const t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=[...n].map(a=>a+a).join(""));const r=Number.parseInt(n,16),o=r>>16&255,i=r>>8&255,s=r&255;return[o,i,s]},ie.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),s=o-i;let a;const l=s<1?i/(1-s):0;return s<=0?a=0:o===t?a=(n-r)/s%6:o===n?a=2+(r-t)/s:a=4+(t-n)/s,a/=6,a%=1,[a*360,s*100,l*100]},ie.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]},ie.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]},ie.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],i=t%1*6,s=i%1,a=1-s;let l=0;switch(Math.floor(i)){case 0:{o[0]=1,o[1]=s,o[2]=0;break}case 1:{o[0]=a,o[1]=1,o[2]=0;break}case 2:{o[0]=0,o[1]=1,o[2]=s;break}case 3:{o[0]=0,o[1]=a,o[2]=1;break}case 4:{o[0]=s,o[1]=0,o[2]=1;break}default:o[0]=1,o[1]=0,o[2]=a}return l=(1-n)*r,[(n*o[0]+l)*255,(n*o[1]+l)*255,(n*o[2]+l)*255]},ie.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]},ie.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]},ie.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]},ie.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let i=0;return o<1&&(i=(r-o)/(1-o)),[e[0],o*100,i*100]},ie.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},ie.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},ie.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},ie.gray.hsl=function(e){return[0,0,e[0]]},ie.gray.hsv=ie.gray.hsl,ie.gray.hwb=function(e){return[0,100,e[0]]},ie.gray.cmyk=function(e){return[0,0,0,e[0]]},ie.gray.lab=function(e){return[e[0],0,0]},ie.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(r.length)+r},ie.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};function D8(){const e={},t=Object.keys(ie);for(let{length:n}=t,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function F8(e){const t=D8(),n=[e];for(t[e].distance=0;n.length>0;){const r=n.pop(),o=Object.keys(ie[r]);for(let{length:i}=o,s=0;s<i;s++){const a=o[s],l=t[a];l.distance===-1&&(l.distance=t[r].distance+1,l.parent=r,n.unshift(a))}}return t}function j8(e,t){return function(n){return t(e(n))}}function L8(e,t){const n=[t[e].parent,e];let r=ie[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),r=j8(ie[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}function B8(e){const t=F8(e),n={},r=Object.keys(t);for(let{length:o}=r,i=0;i<o;i++){const s=r[i];t[s].parent!==null&&(n[s]=L8(s,t))}return n}const Xr={},z8=Object.keys(ie);function V8(e){const t=function(...n){const r=n[0];return r==null?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function G8(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let{length:i}=o,s=0;s<i;s++)o[s]=Math.round(o[s]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}for(const e of z8){Xr[e]={},Object.defineProperty(Xr[e],"channels",{value:ie[e].channels}),Object.defineProperty(Xr[e],"labels",{value:ie[e].labels});const t=B8(e),n=Object.keys(t);for(const r of n){const o=t[r];Xr[e][r]=G8(o),Xr[e][r].raw=V8(o)}}const $8=Object.freeze(Object.defineProperty({__proto__:null,default:Xr},Symbol.toStringTag,{value:"Module"})),ct=(e,t)=>{const n=Array.isArray(t)?t:[t];if(n[0]===void 0||n[0]===null)return ct("rgb",[0,0,0]);const r=Xr[e];if(!r)throw new Error(`Unsupported color type: ${e} allowed are ${Object.keys($8).join(", ")}`);r[e]=()=>n;const o=s=>{const a=s(...n);return Array.isArray(a)?a[0]!=null:a};if(!o(r.rgb)||!o(r.hsl))return ct("rgb",[0,0,0]);const i={};return Object.keys(r).forEach(s=>{const a=r[s];typeof a=="function"&&(i[s]=()=>s===e?n:a(...n))}),i},H8=({onChange:e,colorconverter:t,allow_null:n=!1})=>{if(t===null&&!n)throw new Error("Color converter is null");const[r,o]=T.useState(t),[i,s]=T.useState([0,0,0]),[a,l]=T.useState([0,0,0]),[u,c]=T.useState([0,0,0]),[f,d]=T.useState("000");T.useEffect(()=>{if(!r){if(!n)throw new Error("Color converter is null");l([0,0,0]),s([0,0,0]),c([0,0,0]),d("");return}s(r.hsl()),l(r.rgb()),c(r.hsv()),d(r.hex())},[r]);const p={backgroundColor:`hsl(${i[0]}, ${i[1]}%, ${i[2]}%)`,padding:"10px",margin:"10px 0"};return b.jsxs("div",{style:{backgroundColor:"white"},children:[b.jsx("div",{style:p,children:"Color Preview"}),b.jsxs("div",{className:"colorspace",children:[b.jsx("div",{className:"colorspace_title",children:"RGB"}),b.jsx("div",{}),b.jsx("label",{children:"Red"}),b.jsx("input",{type:"range",min:"0",max:"255",value:a[0],onChange:g=>{const h=[parseInt(g.target.value),a[1],a[2]],y=ct("rgb",h);o(y),e(y)},style:{background:"linear-gradient(to right, #000, #f00)"}}),b.jsx("label",{children:"Green"}),b.jsx("input",{type:"range",min:"0",max:"255",value:a[1],onChange:g=>{const h=[a[0],parseInt(g.target.value),a[2]],y=ct("rgb",h);o(y),e(y)},style:{background:"linear-gradient(to right, #000, #0f0)"}}),b.jsx("label",{children:"Blue"}),b.jsx("input",{type:"range",min:"0",max:"255",value:a[2],onChange:g=>{const h=[a[0],a[1],parseInt(g.target.value)],y=ct("rgb",h);o(y),e(y)},style:{background:"linear-gradient(to right, #000, #00f)"}})]}),b.jsxs("div",{className:"colorspace",children:[b.jsx("div",{className:"colorspace_title",children:"HSL"}),b.jsx("div",{}),b.jsx("label",{children:"Hue"}),b.jsx("input",{type:"range",min:"0",max:"360",value:i[0],onChange:g=>{const h=[parseInt(g.target.value),i[1],i[2]],y=ct("hsl",h);o(y),e(y)},style:{background:"linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)"}}),b.jsx("label",{children:"Saturation"}),b.jsx("input",{type:"range",min:"0",max:"100",value:i[1],onChange:g=>{const h=[i[0],parseInt(g.target.value),i[2]],y=ct("hsl",h);o(y),e(y)},style:{background:`linear-gradient(to right, #fff, hsl(${i[0]}, 100%, 50%))`}}),b.jsx("label",{children:"Lightness"}),b.jsx("input",{type:"range",min:"0",max:"100",value:i[2],onChange:g=>{const h=[i[0],i[1],parseInt(g.target.value)],y=ct("hsl",h);o(y),e(y)},style:{background:`linear-gradient(to right, #000, hsl(${i[0]}, 100%, 50%), #fff)`}})]}),b.jsxs("div",{className:"colorspace",children:[b.jsx("div",{className:"colorspace_title",children:"HSV"}),b.jsx("div",{}),b.jsx("label",{children:"Hue"}),b.jsx("input",{type:"range",min:"0",max:"360",value:u[0],onChange:g=>{const h=[parseInt(g.target.value),u[1],u[2]],y=ct("hsv",h);o(y),e(y)},style:{background:"linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)"}}),b.jsx("label",{children:"Saturation"}),b.jsx("input",{type:"range",min:"0",max:"100",value:u[1],onChange:g=>{const h=[u[0],parseInt(g.target.value),u[2]],y=ct("hsv",h);o(y),e(y)},style:{background:`linear-gradient(to right, #fff, hsl(${i[0]}, 100%, 50%))`}}),b.jsx("label",{children:"Value"}),b.jsx("input",{type:"range",min:"0",max:"100",value:u[2],onChange:g=>{const h=[u[0],u[1],parseInt(g.target.value)],y=ct("hsv",h);o(y),e(y)},style:{background:`linear-gradient(to right, #000, hsl(${i[0]}, 100%, 50%))`}})]}),b.jsxs("div",{className:"colorspace",children:[b.jsx("div",{className:"colorspace_title",children:"HEX"}),b.jsx("div",{}),b.jsx("input",{type:"text",value:f,onChange:g=>{const h=g.target.value===""?null:ct("hex",[g.target.value]);o(h),e(h)}})]})]})},W8=({inicolordata:e,inicolorspace:t,allow_null:n=!1,delay:r=1e3,onChange:o})=>{const i=e!==void 0?e:[0,0,0],s=e===void 0?"rgb":t||"hex",a=Array.isArray(i)?i:[i],l=T.useMemo(()=>{let y=ct(s,a);return y.rgb()===void 0&&(y=ct("rgb",[0,0,0])),y},[s,a]),[u,c]=T.useState(l);T.useEffect(()=>{const y=e!==void 0?e:[0,0,0],m=e===void 0?"rgb":t||"hex",x=Array.isArray(y)?y:[y];let v=ct(m,x);v.rgb()===void 0&&(v=ct("rgb",[0,0,0])),c(v)},[JSON.stringify(e),t]);const f=T.useContext(xe),d=f.local_state(()=>f.reactflowRef),p=T.useRef(null),g=T.useCallback(y=>{if(y===null&&!n)throw new Error("Color is null");y!==null&&c(y),p.current&&clearTimeout(p.current),o&&(p.current=setTimeout(()=>{o(y),p.current=null},r))},[n,o,r]);T.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const h=T.useMemo(()=>({background:"#"+u.hex(),borderRadius:"0.3rem",width:"2rem",height:"1rem"}),[u]);return b.jsxs(uC,{children:[b.jsx(cC,{asChild:!0,children:b.jsx("button",{style:h})}),b.jsx(fC,{container:d,children:b.jsx(dC,{side:"left",className:"iotooltipcontent",children:b.jsx(H8,{onChange:g,colorconverter:u,allow_null:n})})})]})};function Yr(e){"@babel/helpers - typeof";return Yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yr(e)}function X8(e,t){if(Yr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mS(e){var t=X8(e,"string");return Yr(t)=="symbol"?t:t+""}function _s(e,t,n){return(t=mS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yS(Object(n),!0).forEach(function(r){_s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y8(e){if(Array.isArray(e))return e}function U8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(c){u=!0,o=c}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}function th(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bS(e,t){if(e){if(typeof e=="string")return th(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?th(e,t):void 0}}function Z8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
860
860
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zn(e,t){return Y8(e)||U8(e,t)||bS(e,t)||Z8()}function Jn(e,t){if(e==null)return{};var n,r,o=$p(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var J8=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function q8(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,o=r===void 0?!1:r,i=e.defaultValue,s=i===void 0?null:i,a=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,f=e.onMenuClose,d=e.onMenuOpen,p=e.value,g=Jn(e,J8),h=T.useState(a!==void 0?a:n),y=Zn(h,2),m=y[0],x=y[1],v=T.useState(l!==void 0?l:o),C=Zn(v,2),S=C[0],E=C[1],I=T.useState(p!==void 0?p:s),O=Zn(I,2),M=O[0],w=O[1],N=T.useCallback(function(V,F){typeof u=="function"&&u(V,F),w(V)},[u]),R=T.useCallback(function(V,F){var _;typeof c=="function"&&(_=c(V,F)),x(_!==void 0?_:V)},[c]),L=T.useCallback(function(){typeof d=="function"&&d(),E(!0)},[d]),A=T.useCallback(function(){typeof f=="function"&&f(),E(!1)},[f]),j=a!==void 0?a:m,D=l!==void 0?l:S,z=p!==void 0?p:M;return de(de({},g),{},{inputValue:j,menuIsOpen:D,onChange:N,onInputChange:R,onMenuClose:A,onMenuOpen:L,value:z})}function K8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mS(r.key),r)}}function Q8(e,t,n){return t&&vS(e.prototype,t),n&&vS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function e7(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iu(e,t)}function du(e){return du=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},du(e)}function xS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xS=function(){return!!e})()}function t7(e,t){if(t&&(Yr(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return j_(e)}function n7(e){var t=xS();return function(){var n,r=du(e);if(t){var o=du(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return t7(this,n)}}function r7(e){if(Array.isArray(e))return th(e)}function o7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function i7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
861
861
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nh(e){return r7(e)||o7(e)||bS(e)||i7()}function s7(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var rh=T.useLayoutEffect,a7=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],pu=function(){};function l7(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function u7(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&i.push("".concat(l7(e,s)));return i.filter(function(a){return a}).map(function(a){return String(a).trim()}).join(" ")}var wS=function(t){return b7(t)?t.filter(Boolean):Yr(t)==="object"&&t!==null?[t]:[]},CS=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=Jn(t,a7);return de({},n)},Xe=function(t,n,r){var o=t.cx,i=t.getStyles,s=t.getClassNames,a=t.className;return{css:i(n,t),className:o(r??{},s(n,t),a)}};function hu(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function c7(e){return hu(e)?window.innerHeight:e.clientHeight}function _S(e){return hu(e)?window.pageYOffset:e.scrollTop}function gu(e,t){if(hu(e)){window.scrollTo(0,t);return}e.scrollTop=t}function f7(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function d7(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function mu(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:pu,o=_S(e),i=t-o,s=10,a=0;function l(){a+=s;var u=d7(a,o,i,n);gu(e,u),a<n?window.requestAnimationFrame(l):r(e)}l()}function SS(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?gu(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&gu(e,Math.max(t.offsetTop-o,0))}function p7(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function ES(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function h7(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var IS=!1,g7={get passive(){return IS=!0}},yu=typeof window<"u"?window:{};yu.addEventListener&&yu.removeEventListener&&(yu.addEventListener("p",pu,g7),yu.removeEventListener("p",pu,!1));var m7=IS;function y7(e){return e!=null}function b7(e){return Array.isArray(e)}function bu(e,t,n){return e?t:n}function aq(e){return e}function lq(e){return e}var v7=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=Object.entries(t).filter(function(s){var a=Zn(s,1),l=a[0];return!r.includes(l)});return i.reduce(function(s,a){var l=Zn(a,2),u=l[0],c=l[1];return s[u]=c,s},{})},x7=["children","innerProps"],w7=["children","innerProps"];function C7(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,s=e.isFixedPosition,a=e.controlHeight,l=f7(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect(),f=c.height,d=n.getBoundingClientRect(),p=d.bottom,g=d.height,h=d.top,y=n.offsetParent.getBoundingClientRect(),m=y.top,x=s?window.innerHeight:c7(l),v=_S(l),C=parseInt(getComputedStyle(n).marginBottom,10),S=parseInt(getComputedStyle(n).marginTop,10),E=m-S,I=x-h,O=E+v,M=f-v-h,w=p-x+v+C,N=v+h-S,R=160;switch(o){case"auto":case"bottom":if(I>=g)return{placement:"bottom",maxHeight:t};if(M>=g&&!s)return i&&mu(l,w,R),{placement:"bottom",maxHeight:t};if(!s&&M>=r||s&&I>=r){i&&mu(l,w,R);var L=s?I-C:M-C;return{placement:"bottom",maxHeight:L}}if(o==="auto"||s){var A=t,j=s?E:O;return j>=r&&(A=Math.min(j-C-a,t)),{placement:"top",maxHeight:A}}if(o==="bottom")return i&&gu(l,w),{placement:"bottom",maxHeight:t};break;case"top":if(E>=g)return{placement:"top",maxHeight:t};if(O>=g&&!s)return i&&mu(l,N,R),{placement:"top",maxHeight:t};if(!s&&O>=r||s&&E>=r){var D=t;return(!s&&O>=r||s&&E>=r)&&(D=s?E-S:O-S),i&&mu(l,N,R),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}function _7(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var kS=function(t){return t==="auto"?"bottom":t},S7=function(t,n){var r,o=t.placement,i=t.theme,s=i.borderRadius,a=i.spacing,l=i.colors;return de((r={label:"menu"},_s(r,_7(o),"100%"),_s(r,"position","absolute"),_s(r,"width","100%"),_s(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},AS=T.createContext(null),E7=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,s=t.menuPosition,a=t.menuShouldScrollIntoView,l=t.theme,u=T.useContext(AS)||{},c=u.setPortalPlacement,f=T.useRef(null),d=T.useState(o),p=Zn(d,2),g=p[0],h=p[1],y=T.useState(null),m=Zn(y,2),x=m[0],v=m[1],C=l.spacing.controlHeight;return rh(function(){var S=f.current;if(S){var E=s==="fixed",I=a&&!E,O=C7({maxHeight:o,menuEl:S,minHeight:r,placement:i,shouldScroll:I,isFixedPosition:E,controlHeight:C});h(O.maxHeight),v(O.placement),c==null||c(O.placement)}},[o,i,s,a,r,c,C]),n({ref:f,placerProps:de(de({},t),{},{placement:x||kS(i),maxHeight:g})})},I7=function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return le("div",ue({},Xe(t,"menu",{menu:!0}),{ref:r},o),n)},k7=I7,A7=function(t,n){var r=t.maxHeight,o=t.theme.spacing.baseUnit;return de({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},T7=function(t){var n=t.children,r=t.innerProps,o=t.innerRef,i=t.isMulti;return le("div",ue({},Xe(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},r),n)},TS=function(t,n){var r=t.theme,o=r.spacing.baseUnit,i=r.colors;return de({textAlign:"center"},n?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},N7=TS,P7=TS,O7=function(t){var n=t.children,r=n===void 0?"No options":n,o=t.innerProps,i=Jn(t,x7);return le("div",ue({},Xe(de(de({},i),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},R7=function(t){var n=t.children,r=n===void 0?"Loading...":n,o=t.innerProps,i=Jn(t,w7);return le("div",ue({},Xe(de(de({},i),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},M7=function(t){var n=t.rect,r=t.offset,o=t.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},D7=function(t){var n=t.appendTo,r=t.children,o=t.controlElement,i=t.innerProps,s=t.menuPlacement,a=t.menuPosition,l=T.useRef(null),u=T.useRef(null),c=T.useState(kS(s)),f=Zn(c,2),d=f[0],p=f[1],g=T.useMemo(function(){return{setPortalPlacement:p}},[]),h=T.useState(null),y=Zn(h,2),m=y[0],x=y[1],v=T.useCallback(function(){if(o){var I=p7(o),O=a==="fixed"?0:window.pageYOffset,M=I[d]+O;(M!==(m==null?void 0:m.offset)||I.left!==(m==null?void 0:m.rect.left)||I.width!==(m==null?void 0:m.rect.width))&&x({offset:M,rect:I})}},[o,a,d,m==null?void 0:m.offset,m==null?void 0:m.rect.left,m==null?void 0:m.rect.width]);rh(function(){v()},[v]);var C=T.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),o&&l.current&&(u.current=$v(o,l.current,v,{elementResize:"ResizeObserver"in window}))},[o,v]);rh(function(){C()},[C]);var S=T.useCallback(function(I){l.current=I,C()},[C]);if(!n&&a!=="fixed"||!m)return null;var E=le("div",ue({ref:S},Xe(de(de({},t),{},{offset:m.offset,position:a,rect:m.rect}),"menuPortal",{"menu-portal":!0}),i),r);return le(AS.Provider,{value:g},n?Kn.createPortal(E,n):E)},F7=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},j7=function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,i=t.isRtl;return le("div",ue({},Xe(t,"container",{"--is-disabled":o,"--is-rtl":i}),r),n)},L7=function(t,n){var r=t.theme.spacing,o=t.isMulti,i=t.hasValue,s=t.selectProps.controlShouldRenderValue;return de({alignItems:"center",display:o&&i&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},B7=function(t){var n=t.children,r=t.innerProps,o=t.isMulti,i=t.hasValue;return le("div",ue({},Xe(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),r),n)},z7=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},V7=function(t){var n=t.children,r=t.innerProps;return le("div",ue({},Xe(t,"indicatorsContainer",{indicators:!0}),r),n)},NS,G7=["size"],$7=["innerProps","isRtl","size"];function H7(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var W7=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCI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b3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:H7},PS=function(t){var n=t.size,r=Jn(t,G7);return le("svg",ue({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:W7},r))},oh=function(t){return le(PS,ue({size:20},t),le("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},OS=function(t){return le(PS,ue({size:20},t),le("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},RS=function(t,n){var r=t.isFocused,o=t.theme,i=o.spacing.baseUnit,s=o.colors;return de({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?s.neutral60:s.neutral20,padding:i*2,":hover":{color:r?s.neutral80:s.neutral40}})},X7=RS,Y7=function(t){var n=t.children,r=t.innerProps;return le("div",ue({},Xe(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||le(OS,null))},U7=RS,Z7=function(t){var n=t.children,r=t.innerProps;return le("div",ue({},Xe(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||le(oh,null))},J7=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,s=o.colors;return de({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?s.neutral10:s.neutral20,marginBottom:i*2,marginTop:i*2})},q7=function(t){var n=t.innerProps;return le("span",ue({},n,Xe(t,"indicatorSeparator",{"indicator-separator":!0})))},K7=Jl(NS||(NS=s7([`
862
862
  0%, 80%, 100% { opacity: 0; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linkdlab/funcnodes_react_flow",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "Frontend with React Flow for FuncNodes",
5
5
  "repository": {
6
6
  "type": "git",